eslint-cli-bundle 1.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.
- package/README.md +3 -0
- package/dist/babel.cjs +246 -0
- package/dist/eslint.js +128 -0
- package/package.json +30 -0
package/dist/eslint.js
ADDED
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import{createRequire as e}from"node:module";import t from"node:path";import{fileURLToPath as n}from"node:url";import r from"node:fs/promises";var i=Object.create,a=Object.defineProperty,o=Object.getOwnPropertyDescriptor,s=Object.getOwnPropertyNames,c=Object.getPrototypeOf,l=Object.prototype.hasOwnProperty,u=(e,t)=>()=>(e&&(t=e(e=0)),t),d=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),f=(e,t)=>{let n={};for(var r in e)a(n,r,{get:e[r],enumerable:!0});return t&&a(n,Symbol.toStringTag,{value:`Module`}),n},p=(e,t,n,r)=>{if(t&&typeof t==`object`||typeof t==`function`)for(var i=s(t),c=0,u=i.length,d;c<u;c++)d=i[c],!l.call(e,d)&&d!==n&&a(e,d,{get:(e=>t[e]).bind(null,d),enumerable:!(r=o(t,d))||r.enumerable});return e},m=(e,t,n)=>(n=e==null?{}:i(c(e)),p(t||!e||!e.__esModule?a(n,`default`,{value:e,enumerable:!0}):n,e)),h=e(import.meta.url),g=d(((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`:``)}})),_=d(((e,t)=>{function n(e){n.debug=n,n.default=n,n.coerce=c,n.disable=o,n.enable=i,n.enabled=s,n.humanize=g(),n.destroy=l,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 a(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 o(){let e=[...n.names,...n.skips.map(e=>`-`+e)].join(`,`);return n.enable(``),e}function s(e){for(let t of n.skips)if(a(e,t))return!1;for(let t of n.names)if(a(e,t))return!0;return!1}function c(e){return e instanceof Error?e.stack||e.message:e}function l(){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})),v=d(((e,t)=>{e.formatArgs=r,e.save=i,e.load=a,e.useColors=n,e.storage=o(),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 o(){try{return localStorage}catch{}}t.exports=_()(e);let{formatters:s}=t.exports;s.j=function(e){try{return JSON.stringify(e)}catch(e){return`[UnexpectedJSONParseError]: `+e.message}}})),y=d(((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)}})),b=d(((e,t)=>{let n=h(`os`),r=h(`tty`),i=y(),{env:a}=process,o;i(`no-color`)||i(`no-colors`)||i(`color=false`)||i(`color=never`)?o=0:(i(`color`)||i(`colors`)||i(`color=true`)||i(`color=always`))&&(o=1),`FORCE_COLOR`in a&&(o=a.FORCE_COLOR===`true`?1:a.FORCE_COLOR===`false`?0:a.FORCE_COLOR.length===0?1:Math.min(parseInt(a.FORCE_COLOR,10),3));function s(e){return e===0?!1:{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function c(e,t){if(o===0)return 0;if(i(`color=16m`)||i(`color=full`)||i(`color=truecolor`))return 3;if(i(`color=256`))return 2;if(e&&!t&&o===void 0)return 0;let r=o||0;if(a.TERM===`dumb`)return r;if(process.platform===`win32`){let e=n.release().split(`.`);return Number(e[0])>=10&&Number(e[2])>=10586?Number(e[2])>=14931?3:2:1}if(`CI`in a)return[`TRAVIS`,`CIRCLECI`,`APPVEYOR`,`GITLAB_CI`,`GITHUB_ACTIONS`,`BUILDKITE`].some(e=>e in a)||a.CI_NAME===`codeship`?1:r;if(`TEAMCITY_VERSION`in a)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(a.TEAMCITY_VERSION)?1:0;if(a.COLORTERM===`truecolor`)return 3;if(`TERM_PROGRAM`in a){let e=parseInt((a.TERM_PROGRAM_VERSION||``).split(`.`)[0],10);switch(a.TERM_PROGRAM){case`iTerm.app`:return e>=3?3:2;case`Apple_Terminal`:return 2}}return/-256(color)?$/i.test(a.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(a.TERM)||`COLORTERM`in a?1:r}function l(e){return s(c(e,e&&e.isTTY))}t.exports={supportsColor:l,stdout:s(c(!0,r.isatty(1))),stderr:s(c(!0,r.isatty(2)))}})),x=d(((e,t)=>{let n=h(`tty`),r=h(`util`);e.init=u,e.log=s,e.formatArgs=a,e.save=c,e.load=l,e.useColors=i,e.destroy=r.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=b();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 i(){return`colors`in e.inspectOpts?!!e.inspectOpts.colors:n.isatty(process.stderr.fd)}function a(e){let{namespace:n,useColors:r}=this;if(r){let r=this.color,i=`\x1B[3`+(r<8?r:`8;5;`+r),a=` ${i};1m${n} \u001B[0m`;e[0]=a+e[0].split(`
|
|
3
|
+
`).join(`
|
|
4
|
+
`+a),e.push(i+`m+`+t.exports.humanize(this.diff)+`\x1B[0m`)}else e[0]=o()+n+` `+e[0]}function o(){return e.inspectOpts.hideDate?``:new Date().toISOString()+` `}function s(...t){return process.stderr.write(r.formatWithOptions(e.inspectOpts,...t)+`
|
|
5
|
+
`)}function c(e){e?process.env.DEBUG=e:delete process.env.DEBUG}function l(){return process.env.DEBUG}function u(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]]}t.exports=_()(e);let{formatters:d}=t.exports;d.o=function(e){return this.inspectOpts.colors=this.useColors,r.inspect(e,this.inspectOpts).split(`
|
|
6
|
+
`).map(e=>e.trim()).join(` `)},d.O=function(e){return this.inspectOpts.colors=this.useColors,r.inspect(e,this.inspectOpts)}})),S=d(((e,t)=>{typeof process>`u`||process.type===`renderer`||process.browser===!0||process.__nwjs?t.exports=v():t.exports=x()})),C=d(((e,t)=>{t.exports={name:`eslint`,version:`9.39.2`,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`,lint:`trunk check --no-fix --ignore=docs/**/*.js -a --filter=eslint && trunk check --no-fix --ignore=docs/**/*.js`,"lint:docs:js":`trunk check --no-fix --ignore=** --ignore=!docs/**/*.js -a --filter=eslint && trunk check --no-fix --ignore=** --ignore=!docs/**/*.js`,"lint:docs:rule-examples":`node Makefile.js checkRuleExamples`,"lint:unused":`knip`,"lint:fix":`trunk check -y --ignore=docs/**/*.js -a --filter=eslint && trunk check -y --ignore=docs/**/*.js`,"lint:fix:docs:js":`trunk check -y --ignore=** --ignore=!docs/**/*.js -a --filter=eslint && trunk check -y --ignore=** --ignore=!docs/**/*.js`,"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":{"*":`trunk check --fix`,"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`]},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.1`,"@eslint/config-array":`^0.21.1`,"@eslint/config-helpers":`^0.4.2`,"@eslint/core":`^0.17.0`,"@eslint/eslintrc":`^3.3.1`,"@eslint/js":`9.39.2`,"@eslint/plugin-kit":`^0.4.1`,"@humanfs/node":`^0.16.6`,"@humanwhocodes/module-importer":`^1.0.1`,"@humanwhocodes/retry":`^0.4.2`,"@types/estree":`^1.0.6`,ajv:`^6.12.4`,chalk:`^4.0.0`,"cross-spawn":`^7.0.6`,debug:`^4.3.2`,"escape-string-regexp":`^4.0.0`,"eslint-scope":`^8.4.0`,"eslint-visitor-keys":`^4.2.1`,espree:`^10.4.0`,esquery:`^1.5.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`,"lodash.merge":`^4.6.2`,minimatch:`^3.1.2`,"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/json":`^0.13.2`,"@trunkio/launcher":`^1.3.4`,"@types/esquery":`^1.5.4`,"@types/node":`^22.13.14`,"@typescript-eslint/parser":`^8.4.0`,"babel-loader":`^8.0.5`,c8:`^7.12.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-composer":`^0.3.0`,eslump:`^3.0.0`,esprima:`^4.0.1`,"fast-glob":`^3.2.11`,"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`,"jiti-v2.0":`npm:jiti@2.0.x`,"jiti-v2.1":`npm:jiti@2.1.x`,knip:`^5.60.2`,"lint-staged":`^11.0.0`,"markdown-it":`^12.2.0`,"markdown-it-container":`^3.0.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`,pirates:`^4.0.5`,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.3.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:`^18.18.0 || ^20.9.0 || >=21.1.0`}}})),w=d(((e,t)=>{t.exports=a,a.sync=o;var n=h(`fs`);function r(e,t){var n=t.pathExt===void 0?process.env.PATHEXT:t.pathExt;if(!n||(n=n.split(`;`),n.indexOf(``)!==-1))return!0;for(var r=0;r<n.length;r++){var i=n[r].toLowerCase();if(i&&e.substr(-i.length).toLowerCase()===i)return!0}return!1}function i(e,t,n){return!e.isSymbolicLink()&&!e.isFile()?!1:r(t,n)}function a(e,t,r){n.stat(e,function(n,a){r(n,n?!1:i(a,e,t))})}function o(e,t){return i(n.statSync(e),e,t)}})),T=d(((e,t)=>{t.exports=r,r.sync=i;var n=h(`fs`);function r(e,t,r){n.stat(e,function(e,n){r(e,e?!1:a(n,t))})}function i(e,t){return a(n.statSync(e),t)}function a(e,t){return e.isFile()&&o(e,t)}function o(e,t){var n=e.mode,r=e.uid,i=e.gid,a=t.uid===void 0?process.getuid&&process.getuid():t.uid,o=t.gid===void 0?process.getgid&&process.getgid():t.gid,s=64,c=8,l=1,u=s|c;return n&l||n&c&&i===o||n&s&&r===a||n&u&&a===0}})),E=d(((e,t)=>{h(`fs`);var n=process.platform===`win32`||global.TESTING_WINDOWS?w():T();t.exports=r,r.sync=i;function r(e,t,i){if(typeof t==`function`&&(i=t,t={}),!i){if(typeof Promise!=`function`)throw TypeError(`callback not provided`);return new Promise(function(n,i){r(e,t||{},function(e,t){e?i(e):n(t)})})}n(e,t||{},function(e,n){e&&(e.code===`EACCES`||t&&t.ignoreErrors)&&(e=null,n=!1),i(e,n)})}function i(e,t){try{return n.sync(e,t||{})}catch(e){if(t&&t.ignoreErrors||e.code===`EACCES`)return!1;throw e}}})),D=d(((e,t)=>{let n=process.platform===`win32`||process.env.OSTYPE===`cygwin`||process.env.OSTYPE===`msys`,r=h(`path`),i=n?`;`:`:`,a=E(),o=e=>Object.assign(Error(`not found: ${e}`),{code:`ENOENT`}),s=(e,t)=>{let r=t.colon||i,a=e.match(/\//)||n&&e.match(/\\/)?[``]:[...n?[process.cwd()]:[],...(t.path||process.env.PATH||``).split(r)],o=n?t.pathExt||process.env.PATHEXT||`.EXE;.CMD;.BAT;.COM`:``,s=n?o.split(r):[``];return n&&e.indexOf(`.`)!==-1&&s[0]!==``&&s.unshift(``),{pathEnv:a,pathExt:s,pathExtExe:o}},c=(e,t,n)=>{typeof t==`function`&&(n=t,t={}),t||={};let{pathEnv:i,pathExt:c,pathExtExe:l}=s(e,t),u=[],d=n=>new Promise((a,s)=>{if(n===i.length)return t.all&&u.length?a(u):s(o(e));let c=i[n],l=/^".*"$/.test(c)?c.slice(1,-1):c,d=r.join(l,e);a(f(!l&&/^\.[\\\/]/.test(e)?e.slice(0,2)+d:d,n,0))}),f=(e,n,r)=>new Promise((i,o)=>{if(r===c.length)return i(d(n+1));let s=c[r];a(e+s,{pathExt:l},(a,o)=>{if(!a&&o)if(t.all)u.push(e+s);else return i(e+s);return i(f(e,n,r+1))})});return n?d(0).then(e=>n(null,e),n):d(0)};t.exports=c,c.sync=(e,t)=>{t||={};let{pathEnv:n,pathExt:i,pathExtExe:c}=s(e,t),l=[];for(let o=0;o<n.length;o++){let s=n[o],u=/^".*"$/.test(s)?s.slice(1,-1):s,d=r.join(u,e),f=!u&&/^\.[\\\/]/.test(e)?e.slice(0,2)+d:d;for(let e=0;e<i.length;e++){let n=f+i[e];try{if(a.sync(n,{pathExt:c}))if(t.all)l.push(n);else return n}catch{}}}if(t.all&&l.length)return l;if(t.nothrow)return null;throw o(e)}})),O=d(((e,t)=>{let n=(e={})=>{let t=e.env||process.env;return(e.platform||process.platform)===`win32`?Object.keys(t).reverse().find(e=>e.toUpperCase()===`PATH`)||`Path`:`PATH`};t.exports=n,t.exports.default=n})),k=d(((e,t)=>{let n=h(`path`),r=D(),i=O();function a(e,t){let a=e.options.env||process.env,o=process.cwd(),s=e.options.cwd!=null,c=s&&process.chdir!==void 0&&!process.chdir.disabled;if(c)try{process.chdir(e.options.cwd)}catch{}let l;try{l=r.sync(e.command,{path:a[i({env:a})],pathExt:t?n.delimiter:void 0})}catch{}finally{c&&process.chdir(o)}return l&&=n.resolve(s?e.options.cwd:``,l),l}function o(e){return a(e)||a(e,!0)}t.exports=o})),A=d(((e,t)=>{let n=/([()\][%!^"`<>&|;, *?])/g;function r(e){return e=e.replace(n,`^$1`),e}function i(e,t){return e=`${e}`,e=e.replace(/(?=(\\+?)?)\1"/g,`$1$1\\"`),e=e.replace(/(?=(\\+?)?)\1$/,`$1$1`),e=`"${e}"`,e=e.replace(n,`^$1`),t&&(e=e.replace(n,`^$1`)),e}t.exports.command=r,t.exports.argument=i})),j=d(((e,t)=>{t.exports=/^#!(.*)/})),M=d(((e,t)=>{let n=j();t.exports=(e=``)=>{let t=e.match(n);if(!t)return null;let[r,i]=t[0].replace(/#! ?/,``).split(` `),a=r.split(`/`).pop();return a===`env`?i:i?`${a} ${i}`:a}})),N=d(((e,t)=>{let n=h(`fs`),r=M();function i(e){let t=Buffer.alloc(150),i;try{i=n.openSync(e,`r`),n.readSync(i,t,0,150,0),n.closeSync(i)}catch{}return r(t.toString())}t.exports=i})),P=d(((e,t)=>{let n=h(`path`),r=k(),i=A(),a=N(),o=process.platform===`win32`,s=/\.(?:com|exe)$/i,c=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;function l(e){e.file=r(e);let t=e.file&&a(e.file);return t?(e.args.unshift(e.file),e.command=t,r(e)):e.file}function u(e){if(!o)return e;let t=l(e),r=!s.test(t);if(e.options.forceShell||r){let r=c.test(t);e.command=n.normalize(e.command),e.command=i.command(e.command),e.args=e.args.map(e=>i.argument(e,r)),e.args=[`/d`,`/s`,`/c`,`"${[e.command].concat(e.args).join(` `)}"`],e.command=process.env.comspec||`cmd.exe`,e.options.windowsVerbatimArguments=!0}return e}function d(e,t,n){t&&!Array.isArray(t)&&(n=t,t=null),t=t?t.slice(0):[],n=Object.assign({},n);let r={command:e,args:t,options:n,file:void 0,original:{command:e,args:t}};return n.shell?r:u(r)}t.exports=d})),F=d(((e,t)=>{let n=process.platform===`win32`;function r(e,t){return Object.assign(Error(`${t} ${e.command} ENOENT`),{code:`ENOENT`,errno:`ENOENT`,syscall:`${t} ${e.command}`,path:e.command,spawnargs:e.args})}function i(e,t){if(!n)return;let r=e.emit;e.emit=function(n,i){if(n===`exit`){let n=a(i,t);if(n)return r.call(e,`error`,n)}return r.apply(e,arguments)}}function a(e,t){return n&&e===1&&!t.file?r(t.original,`spawn`):null}function o(e,t){return n&&e===1&&!t.file?r(t.original,`spawnSync`):null}t.exports={hookChildProcess:i,verifyENOENT:a,verifyENOENTSync:o,notFoundError:r}})),I=d(((e,t)=>{let n=h(`child_process`),r=P(),i=F();function a(e,t,a){let o=r(e,t,a),s=n.spawn(o.command,o.args,o.options);return i.hookChildProcess(s,o),s}function o(e,t,a){let o=r(e,t,a),s=n.spawnSync(o.command,o.args,o.options);return s.error=s.error||i.verifyENOENTSync(s.status,o),s}t.exports=a,t.exports.spawn=a,t.exports.sync=o,t.exports._parse=r,t.exports._enoent=i})),L,R,z,B,V=u((()=>{L=()=>n(import.meta.url),R=()=>t.dirname(L()),z=R(),B=L()})),H=d(((e,t)=>{let n=S()(`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}})),U=d((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})),ee=d(((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}})()})),W=d(((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}})()})),te=d(((e,t)=>{(function(){var e=W();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}})()})),ne=d((e=>{(function(){e.ast=ee(),e.code=W(),e.keyword=te()})()})),re=d(((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,80,3,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,68,8,2,0,3,0,2,3,2,4,2,0,15,1,83,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,7,19,58,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,343,9,54,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,330,3,10,1,2,0,49,6,4,4,14,10,5350,0,7,14,11465,27,2343,9,87,9,39,4,60,6,26,9,535,9,470,0,2,54,8,3,82,0,12,1,19628,1,4178,9,519,45,3,22,543,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,101,0,161,6,10,9,357,0,62,13,499,13,245,1,2,9,726,6,110,6,6,9,4759,9,787719,239],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,71,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,39,27,10,22,251,41,7,1,17,2,60,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,20,1,64,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,31,9,2,0,3,0,2,37,2,0,26,0,2,0,45,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,200,32,32,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,328,18,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,26,3994,6,582,6842,29,1763,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,433,44,212,63,129,74,6,0,67,12,65,1,2,0,29,6135,9,1237,42,9,8936,3,2,6,2,1,2,290,16,0,30,2,3,0,15,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,229,29,3,0,496,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4153,7,221,3,5761,15,7472,16,621,2467,541,1507,4938,6,4191],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},B=!1;function V(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?(!B&&typeof console==`object`&&console.warn&&(B=!0,console.warn(`Since Acorn 8.0.0, options.ecmaVersion is required.
|
|
7
|
+
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)}}return j(t.onComment)&&(t.onComment=H(t,t.onComment)),t}function H(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 U=1,ee=2,W=4,te=8,ne=16,re=32,ie=64,ae=128,oe=256,G=512,se=U|ee|oe;function ce(e,t){return ee|(e?W:0)|(t?te:0)}var le=0,K=1,ue=2,de=3,fe=4,pe=5,me=function(e,t,n){this.options=e=V(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(`
|
|
8
|
+
`,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(U),this.regexpState=null,this.privateNameStack=[]},he={inFunction:{configurable:!0},inGenerator:{configurable:!0},inAsync:{configurable:!0},canAwait:{configurable:!0},allowSuper:{configurable:!0},allowDirectSuper:{configurable:!0},treatFunctionsAsVar:{configurable:!0},allowNewDotTarget:{configurable:!0},inClassStaticBlock:{configurable:!0}};me.prototype.parse=function(){var e=this.options.program||this.startNode();return this.nextToken(),this.parseTopLevel(e)},he.inFunction.get=function(){return(this.currentVarScope().flags&ee)>0},he.inGenerator.get=function(){return(this.currentVarScope().flags&te)>0},he.inAsync.get=function(){return(this.currentVarScope().flags&W)>0},he.canAwait.get=function(){for(var e=this.scopeStack.length-1;e>=0;e--){var t=this.scopeStack[e].flags;if(t&(oe|G))return!1;if(t&ee)return(t&W)>0}return this.inModule&&this.options.ecmaVersion>=13||this.options.allowAwaitOutsideFunction},he.allowSuper.get=function(){return(this.currentThisScope().flags&ie)>0||this.options.allowSuperOutsideMethod},he.allowDirectSuper.get=function(){return(this.currentThisScope().flags&ae)>0},he.treatFunctionsAsVar.get=function(){return this.treatFunctionsAsVarInScope(this.currentScope())},he.allowNewDotTarget.get=function(){for(var e=this.scopeStack.length-1;e>=0;e--){var t=this.scopeStack[e].flags;if(t&(oe|G)||t&ee&&!(t&ne))return!0}return!1},he.inClassStaticBlock.get=function(){return(this.currentVarScope().flags&oe)>0},me.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},me.parse=function(e,t){return new this(t,e).parse()},me.parseExpressionAt=function(e,t,n){var r=new this(n,e,t);return r.nextToken(),r.parseExpression()},me.tokenizer=function(e,t){return new this(t,e)},Object.defineProperties(me.prototype,he);var ge=me.prototype,q=/^(?:'((?:\\[^]|[^'\\])*?)'|"((?:\\[^]|[^"\\])*?)")/;ge.strictDirective=function(e){if(this.options.ecmaVersion<5)return!1;for(;;){E.lastIndex=e,e+=E.exec(this.input)[0].length;var t=q.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++}},ge.eat=function(e){return this.type===e?(this.next(),!0):!1},ge.isContextual=function(e){return this.type===b.name&&this.value===e&&!this.containsEsc},ge.eatContextual=function(e){return this.isContextual(e)?(this.next(),!0):!1},ge.expectContextual=function(e){this.eatContextual(e)||this.unexpected()},ge.canInsertSemicolon=function(){return this.type===b.eof||this.type===b.braceR||x.test(this.input.slice(this.lastTokEnd,this.start))},ge.insertSemicolon=function(){if(this.canInsertSemicolon())return this.options.onInsertedSemicolon&&this.options.onInsertedSemicolon(this.lastTokEnd,this.lastTokEndLoc),!0},ge.semicolon=function(){!this.eat(b.semi)&&!this.insertSemicolon()&&this.unexpected()},ge.afterTrailingComma=function(e,t){if(this.type===e)return this.options.onTrailingComma&&this.options.onTrailingComma(this.lastTokStart,this.lastTokStartLoc),t||this.next(),!0},ge.expect=function(e){this.eat(e)||this.unexpected()},ge.unexpected=function(e){this.raise(e??this.start,`Unexpected token`)};var _e=function(){this.shorthandAssign=this.trailingComma=this.parenthesizedAssign=this.parenthesizedBind=this.doubleProto=-1};ge.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`)}},ge.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`)},ge.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`)},ge.isSimpleAssignTarget=function(e){return e.type===`ParenthesizedExpression`?this.isSimpleAssignTarget(e.expression):e.type===`Identifier`||e.type===`MemberExpression`};var J=me.prototype;J.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,this.finishNode(e,`Program`)};var ve={kind:`loop`},Y={kind:`switch`};J.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.input.charCodeAt(n);if(r===91||r===92)return!0;if(e)return!1;if(r===123||r>55295&&r<56320)return!0;if(f(r,!0)){for(var i=n+1;p(r=this.input.charCodeAt(i),!0);)++i;if(r===92||r>55295&&r<56320)return!0;var a=this.input.slice(n,i);if(!c.test(a))return!0}return!1},J.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.input.charCodeAt(t+8))||n>55295&&n<56320))},J.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.input.charCodeAt(i))||a>55295&&a<56320)return!1;E.lastIndex=i;var o=E.exec(this.input);if(o&&x.test(this.input.slice(i,i+o[0].length)))return!1}if(t){var s=r+2,c;if(this.input.slice(r,s)===`of`&&(s===this.input.length||!p(c=this.input.charCodeAt(s))&&!(c>55295&&c<56320)))return!1}var l=this.input.charCodeAt(r);return f(l,!0)||l===92},J.isAwaitUsing=function(e){return this.isUsingKeyword(!0,e)},J.isUsing=function(e){return this.isUsingKeyword(!1,e)},J.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 t&&this.options.sourceType===`script`&&this.raise(this.start,"Using declaration cannot appear in the top level when source type is `script`"),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)}},J.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`)},J.parseDebuggerStatement=function(e){return this.next(),this.semicolon(),this.finishNode(e,`DebuggerStatement`)},J.parseDoStatement=function(e){return this.next(),this.labels.push(ve),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`)},J.parseForStatement=function(e){this.next();var t=this.options.ecmaVersion>=9&&this.canAwait&&this.eatContextual(`await`)?this.lastTokStart:-1;if(this.labels.push(ve),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.next(),this.parseVar(c,!0,s),this.finishNode(c,`VariableDeclaration`),this.parseForAfterInit(e,c,t)}var l=this.containsEsc,u=new _e,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))},J.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))},J.parseFunctionStatement=function(e,t,n){return this.next(),this.parseFunction(e,be|(n?0:xe),!1,t)},J.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`)},J.parseReturnStatement=function(e){return!this.inFunction&&!this.options.allowReturnOutsideFunction&&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`)},J.parseSwitchStatement=function(e){this.next(),e.discriminant=this.parseParenExpression(),e.cases=[],this.expect(b.braceL),this.labels.push(Y),this.enterScope(0);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`)},J.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 ye=[];J.parseCatchClauseParam=function(){var e=this.parseBindingAtom(),t=e.type===`Identifier`;return this.enterScope(t?re:0),this.checkLValPattern(e,t?fe:ue),this.expect(b.parenR),e},J.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`)},J.parseVarStatement=function(e,t,n){return this.next(),this.parseVar(e,!1,t,n),this.semicolon(),this.finishNode(e,`VariableDeclaration`)},J.parseWhileStatement=function(e){return this.next(),e.test=this.parseParenExpression(),this.labels.push(ve),e.body=this.parseStatement(`while`),this.labels.pop(),this.finishNode(e,`WhileStatement`)},J.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`)},J.parseEmptyStatement=function(e){return this.next(),this.finishNode(e,`EmptyStatement`)},J.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`)},J.parseExpressionStatement=function(e,t){return e.expression=t,this.semicolon(),this.finishNode(e,`ExpressionStatement`)},J.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`)},J.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`)},J.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`)},J.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},J.parseVarId=function(e,t){e.id=t===`using`||t===`await using`?this.parseIdent():this.parseBindingAtom(),this.checkLValPattern(e.id,t===`var`?K:ue,!1)};var be=1,xe=2,Se=4;J.parseFunction=function(e,t,n,r,i){this.initFunction(e),(this.options.ecmaVersion>=9||this.options.ecmaVersion>=6&&!r)&&(this.type===b.star&&t&xe&&this.unexpected(),e.generator=this.eat(b.star)),this.options.ecmaVersion>=8&&(e.async=!!r),t&be&&(e.id=t&Se&&this.type!==b.name?null:this.parseIdent(),e.id&&!(t&xe)&&this.checkLValSimple(e.id,this.strict||e.generator||e.async?this.treatFunctionsAsVar?K:ue:de));var a=this.yieldPos,o=this.awaitPos,s=this.awaitIdentPos;return this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(ce(e.async,e.generator)),t&be||(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&be?`FunctionDeclaration`:`FunctionExpression`)},J.parseFunctionParams=function(e){this.expect(b.parenL),e.params=this.parseBindingList(b.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams()},J.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`&&X(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`)},J.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&&Ce(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},J.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},J.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)},J.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&&Ce(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`)},J.parseClassField=function(e){return Ce(e,`constructor`)?this.raise(e.key.start,`Classes can't have a field named 'constructor'`):e.static&&Ce(e,`prototype`)&&this.raise(e.key.start,`Classes can't have a static field named 'prototype'`),this.eat(b.eq)?(this.enterScope(G|ie),e.value=this.parseMaybeAssign(),this.exitScope()):e.value=null,this.semicolon(),this.finishNode(e,`PropertyDefinition`)},J.parseClassStaticBlock=function(e){e.body=[];var t=this.labels;for(this.labels=[],this.enterScope(oe|ie);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`)},J.parseClassId=function(e,t){this.type===b.name?(e.id=this.parseIdent(),t&&this.checkLValSimple(e.id,ue,!1)):(t===!0&&this.unexpected(),e.id=null)},J.parseClassSuper=function(e){e.superClass=this.eat(b._extends)?this.parseExprSubscripts(null,!1):null},J.enterClassBody=function(){var e={declared:Object.create(null),used:[]};return this.privateNameStack.push(e),e.declared},J.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 X(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 Ce(e,t){var n=e.computed,r=e.key;return!n&&(r.type===`Identifier`&&r.name===t||r.type===`Literal`&&r.value===t)}J.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`)},J.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`)},J.parseExportDeclaration=function(e){return this.parseStatement(null)},J.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,be|Se,!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}},J.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)},J.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)},J.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)}},J.shouldParseExportStatement=function(){return this.type.keyword===`var`||this.type.keyword===`const`||this.type.keyword===`class`||this.type.keyword===`function`||this.isLet()||this.isAsyncFunction()},J.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`)},J.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},J.parseImport=function(e){return this.next(),this.type===b.string?(e.specifiers=ye,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`)},J.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,ue),this.finishNode(e,`ImportSpecifier`)},J.parseImportDefaultSpecifier=function(){var e=this.startNode();return e.local=this.parseIdent(),this.checkLValSimple(e.local,ue),this.finishNode(e,`ImportDefaultSpecifier`)},J.parseImportNamespaceSpecifier=function(){var e=this.startNode();return this.next(),this.expectContextual(`as`),e.local=this.parseIdent(),this.checkLValSimple(e.local,ue),this.finishNode(e,`ImportNamespaceSpecifier`)},J.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},J.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},J.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`)},J.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)},J.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)},J.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 Z=me.prototype;Z.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},Z.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},Z.parseSpread=function(e){var t=this.startNode();return this.next(),t.argument=this.parseMaybeAssign(!1,e),this.finishNode(t,`SpreadElement`)},Z.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`)},Z.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()},Z.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},Z.parseAssignableListItem=function(e){var t=this.parseMaybeDefault(this.start,this.startLoc);return this.parseBindingListItem(t),t},Z.parseBindingListItem=function(e){return e},Z.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`)},Z.checkLValSimple=function(e,t,n){t===void 0&&(t=le);var r=t!==le;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===ue&&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!==pe&&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`)}},Z.checkLValPattern=function(e,t,n){switch(t===void 0&&(t=le),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)}},Z.checkLValInnerPattern=function(e,t,n){switch(t===void 0&&(t=le),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 we=function(e,t,n,r,i){this.token=e,this.isExpr=!!t,this.preserveSpace=!!n,this.override=r,this.generator=!!i},Te={b_stat:new we(`{`,!1),b_expr:new we(`{`,!0),b_tmpl:new we("${",!1),p_stat:new we(`(`,!1),p_expr:new we(`(`,!0),q_tmpl:new we("`",!0,!0,function(e){return e.tryReadTemplateToken()}),f_stat:new we(`function`,!1),f_expr:new we(`function`,!0),f_expr_gen:new we(`function`,!0,!1,null,!0),f_gen:new we(`function`,!1,!1,null,!0)},Ee=me.prototype;Ee.initialContext=function(){return[Te.b_stat]},Ee.curContext=function(){return this.context[this.context.length-1]},Ee.braceIsBlock=function(e){var t=this.curContext();return t===Te.f_expr||t===Te.f_stat?!0:e===b.colon&&(t===Te.b_stat||t===Te.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===Te.b_stat:e===b._var||e===b._const||e===b.name?!1:!this.exprAllowed},Ee.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},Ee.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},Ee.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===Te.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)?Te.b_stat:Te.b_expr),this.exprAllowed=!0},b.dollarBraceL.updateContext=function(){this.context.push(Te.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?Te.p_stat:Te.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()!==Te.p_stat)&&!(e===b._return&&x.test(this.input.slice(this.lastTokEnd,this.start)))&&!((e===b.colon||e===b.braceL)&&this.curContext()===Te.b_stat)?this.context.push(Te.f_expr):this.context.push(Te.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()===Te.q_tmpl?this.context.pop():this.context.push(Te.q_tmpl),this.exprAllowed=!1},b.star.updateContext=function(e){if(e===b._function){var t=this.context.length-1;this.context[t]===Te.f_expr?this.context[t]=Te.f_expr_gen:this.context[t]=Te.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 De=me.prototype;De.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}},De.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},De.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 _e,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},De.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},De.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)},De.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},De.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`)},De.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)}De.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},De.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}},De.shouldParseAsyncArrow=function(){return!this.canInsertSemicolon()&&this.eat(b.arrow)},De.parseSubscriptAsyncArrow=function(e,t,n,r){return this.parseArrowExpression(this.startNodeAt(e,t),n,!0,r)},De.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 _e,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},De.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(Te.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(Te.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()}},De.parseExprAtomDefault=function(){this.unexpected()},De.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()},De.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`)},De.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`)},De.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`)},De.parseParenExpression=function(){this.expect(b.parenL);var e=this.parseExpression();return this.expect(b.parenR),e},De.shouldParseArrow=function(e){return!this.canInsertSemicolon()},De.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 _e,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},De.parseParenItem=function(e){return e},De.parseParenArrowList=function(e,t,n,r){return this.parseArrowExpression(this.startNodeAt(e,t),n,!1,r)};var Ae=[];De.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`)},De.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,`
|
|
9
|
+
`),cooked:null}):n.value={raw:this.input.slice(this.start,this.end).replace(/\r\n?/g,`
|
|
10
|
+
`),cooked:this.value},this.next(),n.tail=this.type===b.backQuote,this.finishNode(n,`TemplateElement`)},De.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`)},De.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))},De.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`)},De.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`)},De.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`)},De.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()},De.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`)},De.initFunction=function(e){e.id=null,this.options.ecmaVersion>=6&&(e.generator=e.expression=!1),this.options.ecmaVersion>=8&&(e.async=!1)},De.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(ce(t,r.generator)|ie|(n?ae: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`)},De.parseArrowExpression=function(e,t,n,r){var i=this.yieldPos,a=this.awaitPos,o=this.awaitIdentPos;return this.enterScope(ce(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`)},De.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,pe),e.body=this.parseBlock(!1,void 0,o&&!a),e.expression=!1,this.adaptDirectivePrologue(e.body.body),this.labels=c}this.exitScope()},De.isSimpleParamList=function(e){for(var t=0,n=e;t<n.length;t+=1)if(n[t].type!==`Identifier`)return!1;return!0},De.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,K,t?null:n)}},De.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},De.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&se)&&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`))},De.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},De.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},De.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},De.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`)},De.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=me.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=me.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&ee||!this.inModule&&e.flags&U},Me.declareName=function(e,t,n){var r=!1;if(t===ue){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&U&&delete this.undefinedExports[e]}else if(t===fe)this.currentScope().lexical.push(e);else if(t===de){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&U&&delete this.undefinedExports[e],s.flags&se)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&(se|G|oe))return t}},Me.currentThisScope=function(){for(var e=this.scopeStack.length-1;;e--){var t=this.scopeStack[e];if(t.flags&(se|G|oe)&&!(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=me.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=`Gara Garay Gukh Gurung_Khema Hrkt Katakana_Or_Hiragana Kawi Kirat_Rai Krai Nag_Mundari Nagm Ol_Onal Onao Sunu Sunuwar Todhri Todr Tulu_Tigalari Tutg Unknown Zzzz`,Q=`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`,Re=Q+` Extended_Pictographic`,ze=Re,Be=ze+` EBase EComp EMod EPres ExtPict`,Ve=Be,He=Ve,Ue={9:Q,10:Re,11:ze,12:Be,13:Ve,14:He},We=`Basic_Emoji Emoji_Keycap_Sequence RGI_Emoji_Modifier_Sequence RGI_Emoji_Flag_Sequence RGI_Emoji_Tag_Sequence RGI_Emoji_ZWJ_Sequence RGI_Emoji`,Ge={9:``,10:``,11:``,12:``,13:``,14:We},Ke=`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`,qe=`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`,Je=qe+` Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd`,Ye=Je+` Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho`,Xe=Ye+` Chorasmian Chrs Diak Dives_Akuru Khitan_Small_Script Kits Yezi Yezidi`,Ze=Xe+` Cypro_Minoan Cpmn Old_Uyghur Ougr Tangsa Tnsa Toto Vithkuqi Vith`,Qe=Ze+` `+Le,$e={9:qe,10:Je,11:Ye,12:Xe,13:Ze,14:Qe},et={};function tt(e){var t=et[e]={binary:N(Ue[e]+` `+Ke),binaryOfStrings:N(Ge[e]),nonBinary:{General_Category:N(Ke),Script:N($e[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 nt=0,rt=[9,10,11,12,13,14];nt<rt.length;nt+=1){var it=rt[nt];tt(it)}var $=me.prototype,at=function(e,t){this.parent=e,this.base=t||this};at.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},at.prototype.sibling=function(){return new at(this.parent,this.base)};var ot=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=et[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};ot.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)},ot.prototype.raise=function(e){this.parser.raiseRecoverable(this.start,`Invalid regular expression: /`+this.source+`/: `+e)},ot.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},ot.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},ot.prototype.current=function(e){return e===void 0&&(e=!1),this.at(this.pos,e)},ot.prototype.lookahead=function(e){return e===void 0&&(e=!1),this.at(this.nextIndex(this.pos,e),e)},ot.prototype.advance=function(e){e===void 0&&(e=!1),this.pos=this.nextIndex(this.pos,e)},ot.prototype.eat=function(e,t){return t===void 0&&(t=!1),this.current(t)===e?(this.advance(t),!0):!1},ot.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 st(e){for(var t in e)return!0;return!1}$.validateRegExpPattern=function(e){this.regexp_pattern(e),!e.switchN&&this.options.ecmaVersion>=9&&st(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 at(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&&ct(n);)t+=P(n),e.advance();return t};function ct(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 lt(t)?(e.lastIntValue=t,e.advance(),!0):!1};function lt(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&&!lt(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),ut(r)?(e.lastIntValue=r,!0):(e.pos=t,!1)};function ut(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),dt(r)?(e.lastIntValue=r,!0):(e.pos=t,!1)};function dt(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&&!Ct(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 ft(t)?(e.lastIntValue=t%32,e.advance(),!0):!1};function ft(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)&&pt(e.lastIntValue))return!0;r&&e.raise(`Invalid unicode escape`),e.pos=n}return!1};function pt(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 mt=0,ht=1,gt=2;$.regexp_eatCharacterClassEscape=function(e){var t=e.current();if(_t(t))return e.lastIntValue=-1,e.advance(),ht;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===gt&&e.raise(`Invalid property name`),r;e.raise(`Invalid property name`)}return mt};function _t(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),ht}}if(e.pos=t,this.regexp_eatLoneUnicodePropertyNameOrValue(e)){var i=e.lastStringValue;return this.regexp_validateUnicodePropertyNameOrValue(e,i)}return mt},$.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 ht;if(e.switchV&&e.unicodeProperties.binaryOfStrings.test(t))return gt;e.raise(`Invalid property name`)},$.regexp_eatUnicodePropertyName=function(e){var t=0;for(e.lastStringValue=``;vt(t=e.current());)e.lastStringValue+=P(t),e.advance();return e.lastStringValue!==``};function vt(e){return ft(e)||e===95}$.regexp_eatUnicodePropertyValue=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 vt(e)||Ct(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===gt&&e.raise(`Negated character class may contain strings`),!0}return!1},$.regexp_classContents=function(e){return e.current()===93?ht:e.switchV?this.regexp_classSetExpression(e):(this.regexp_nonEmptyClassRanges(e),ht)},$.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||Et(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=ht,n;if(!this.regexp_eatClassSetRange(e))if(n=this.regexp_eatClassSetOperand(e)){n===gt&&(t=gt);for(var r=e.pos;e.eatChars([38,38]);){if(e.current()!==38&&(n=this.regexp_eatClassSetOperand(e))){n!==gt&&(t=ht);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===gt&&(t=gt)}},$.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)?ht: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===gt&&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)===gt&&(t=gt);return t},$.regexp_classString=function(e){for(var t=0;this.regexp_eatClassSetCharacter(e);)t++;return t===1?ht:gt},$.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()&&bt(n)||xt(n)?!1:(e.advance(),e.lastIntValue=n,!0)};function bt(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 xt(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 St(t)?(e.lastIntValue=t,e.advance(),!0):!1};function St(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 Ct(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;Ct(n=e.current());)e.lastIntValue=10*e.lastIntValue+(n-48),e.advance();return e.pos!==t};function Ct(e){return e>=48&&e<=57}$.regexp_eatHexDigits=function(e){var t=e.pos,n=0;for(e.lastIntValue=0;wt(n=e.current());)e.lastIntValue=16*e.lastIntValue+Tt(n),e.advance();return e.pos!==t};function wt(e){return e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102}function Tt(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 Et(t)?(e.lastIntValue=t-48,e.advance(),!0):(e.lastIntValue=0,!1)};function Et(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(!wt(i))return e.pos=n,!1;e.lastIntValue=16*e.lastIntValue+Tt(i),e.advance()}return!0};var Dt=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])},Ot=me.prototype;Ot.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 Dt(this)),this.lastTokEnd=this.end,this.lastTokStart=this.start,this.lastTokEndLoc=this.endLoc,this.lastTokStartLoc=this.startLoc,this.nextToken()},Ot.getToken=function(){return this.next(),new Dt(this)},typeof Symbol<`u`&&(Ot[Symbol.iterator]=function(){var e=this;return{next:function(){var t=e.getToken();return{done:t.type===b.eof,value:t}}}}),Ot.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())},Ot.readToken=function(e){return f(e,this.options.ecmaVersion>=6)||e===92?this.readWord():this.getTokenFromCode(e)},Ot.fullCharCodeAtPos=function(){var e=this.input.charCodeAt(this.pos);if(e<=55295||e>=56320)return e;var t=this.input.charCodeAt(this.pos+1);return t<=56319||t>=57344?e:(e<<10)+t-56613888},Ot.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())},Ot.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())},Ot.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}}},Ot.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)},Ot.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))},Ot.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)},Ot.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)},Ot.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)},Ot.readToken_caret=function(){return this.input.charCodeAt(this.pos+1)===61?this.finishOp(b.assign,2):this.finishOp(b.bitwiseXOR,1)},Ot.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)},Ot.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))},Ot.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)},Ot.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)},Ot.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)+`'`)},Ot.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)+`'`)},Ot.finishOp=function(e,t){var n=this.input.slice(this.pos,this.pos+t);return this.pos+=t,this.finishToken(e,n)},Ot.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 ot(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})},Ot.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 kt(e,t){return t?parseInt(e,8):parseFloat(e.replace(/_/g,``))}function At(e){return typeof BigInt==`function`?BigInt(e.replace(/_/g,``)):null}Ot.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=At(this.input.slice(t,this.pos)),++this.pos):f(this.fullCharCodeAtPos())&&this.raise(this.pos,`Identifier directly after number`),this.finishToken(b.num,n)},Ot.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=At(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=kt(this.input.slice(t,this.pos),n);return this.finishToken(b.num,a)},Ot.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},Ot.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 jt={};Ot.tryReadTemplateToken=function(){this.inTemplateElement=!0;try{this.readTmplToken()}catch(e){if(e===jt)this.readInvalidTemplateToken();else throw e}this.inTemplateElement=!1},Ot.invalidStringToken=function(e,t){if(this.inTemplateElement&&this.options.ecmaVersion>=9)throw jt;this.raise(e,t)},Ot.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+=`
|
|
11
|
+
`;break;default:e+=String.fromCharCode(n);break}this.options.locations&&(++this.curLine,this.lineStart=this.pos),t=this.pos}else ++this.pos}},Ot.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]===`
|
|
12
|
+
`&&++this.pos;case`
|
|
13
|
+
`:case`\u2028`:case`\u2029`:++this.curLine,this.lineStart=this.pos+1;break}this.raise(this.start,`Unterminated template`)},Ot.readEscapedChar=function(e){var t=this.input.charCodeAt(++this.pos);switch(++this.pos,t){case 110:return`
|
|
14
|
+
`;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)}},Ot.readHexChar=function(e){var t=this.pos,n=this.readInt(16,e);return n===null&&this.invalidStringToken(t,`Bad character escape sequence`),n},Ot.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)},Ot.readWord=function(){var e=this.readWord1(),t=b.name;return this.keywords.test(e)&&(t=v[e]),this.finishToken(t,e)};var Mt=`8.15.0`;me.acorn={Parser:me,version:Mt,defaultOptions:z,Position:I,SourceLocation:L,getLineInfo:R,Node:Pe,TokenType:m,tokTypes:b,keywordTypes:v,TokContext:we,tokContexts:Te,isIdentifierChar:p,isIdentifierStart:f,Token:Dt,isNewLine:C,lineBreak:x,lineBreakG:S,nonASCIIwhitespace:T};function Nt(e,t){return me.parse(e,t)}function Pt(e,t,n){return me.parseExpressionAt(e,t,n)}function Ft(e,t){return me.tokenizer(e,t)}e.Node=Pe,e.Parser=me,e.Position=I,e.SourceLocation=L,e.TokContext=we,e.Token=Dt,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=Nt,e.parseExpressionAt=Pt,e.tokContexts=Te,e.tokTypes=b,e.tokenizer=Ft,e.version=Mt}))})),ie=d(((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:`♦`}})),ae=d(((e,t)=>{let n=ie(),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(re()).tokTypes},configurable:!0,enumerable:!0});function c(e,t){let a=t.acorn||re(),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?`>`:`}`)+'` 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?`
|
|
15
|
+
`:`\r
|
|
16
|
+
`):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)}}}})),oe=d((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=re(),n=ae(),r=U();function i(e){return e&&typeof e==`object`&&`default`in e?e:{default:e}}function a(e){if(e&&e.__esModule)return 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 o=a(t),s=i(n),c=a(r);let l={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 u(e,t){let n=e[0],r=e.at(-1),i={type:l.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}function d(e,t){this._acornTokTypes=e,this._tokens=[],this._curlyBrace=null,this._code=t}d.prototype={constructor:d,translate(e,t){let n=e.type,r=this._acornTokTypes;if(n===r.name)e.type=l.Identifier,e.value===`static`&&(e.type=l.Keyword),t.ecmaVersion>5&&(e.value===`yield`||e.value===`let`)&&(e.type=l.Keyword);else if(n===r.privateId)e.type=l.PrivateIdentifier;else if(n===r.semi||n===r.comma||n===r.parenL||n===r.parenR||n===r.braceL||n===r.braceR||n===r.dot||n===r.bracketL||n===r.colon||n===r.question||n===r.bracketR||n===r.ellipsis||n===r.arrow||n===r.jsxTagStart||n===r.incDec||n===r.starstar||n===r.jsxTagEnd||n===r.prefix||n===r.questionDot||n.binop&&!n.keyword||n.isAssign)e.type=l.Punctuator,e.value=this._code.slice(e.start,e.end);else if(n===r.jsxName)e.type=l.JSXIdentifier;else if(n.label===`jsxText`||n===r.jsxAttrValueToken)e.type=l.JSXText;else if(n.keyword)n.keyword===`true`||n.keyword===`false`?e.type=l.Boolean:n.keyword===`null`?e.type=l.Null:e.type=l.Keyword;else if(n===r.num)e.type=l.Numeric,e.value=this._code.slice(e.start,e.end);else if(n===r.string)t.jsxAttrValueToken?(t.jsxAttrValueToken=!1,e.type=l.JSXText):e.type=l.String,e.value=this._code.slice(e.start,e.end);else if(n===r.regexp){e.type=l.RegularExpression;let t=e.value;e.regex={flags:t.flags,pattern:t.pattern},e.value=`/${t.pattern}/${t.flags}`}return e},onToken(e,t){let n=this._acornTokTypes,r=t.tokens,i=this._tokens,a=()=>{r.push(u(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 f=[3,5,6,7,8,9,10,11,12,13,14,15,16,17];function p(){return f.at(-1)}function m(){return[...f]}function h(e=5){let t=e===`latest`?p():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),!f.includes(t))throw Error(`Invalid ecmaVersion.`);return t}function g(e=`script`){if(e===`script`||e===`module`)return e;if(e===`commonjs`)return`script`;throw Error(`Invalid sourceType.`)}function _(e){let t=h(e.ecmaVersion),n=g(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 v=Symbol(`espree's internal state`),y=Symbol(`espree's esprimaFinishNode`);function b(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 x=()=>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=_(e),a=i.ecmaFeatures||{},o=i.tokens===!0?new d(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=b(e,t,r,i,a,o,n);s.comments.push(c)}}},n),this[v]=s}tokenize(){do this.next();while(this.type!==t.eof);this.next();let e=this[v],n=e.tokens;return e.comments&&(n.comments=e.comments),n}finishNode(...e){let t=super.finishNode(...e);return this[y](t)}finishNodeAt(...e){let t=super.finishNodeAt(...e);return this[y](t)}parse(){let e=this[v],t=super.parse();if(t.sourceType=e.originalSourceType,e.comments&&(t.comments=e.comments),e.tokens&&(t.tokens=e.tokens),t.body.length){let[e]=t.body;t.range&&(t.range[0]=e.range[0]),t.loc&&(t.loc.start=e.loc.start),t.start=e.start}return e.lastToken&&(t.range&&(t.range[1]=e.lastToken.range[1]),t.loc&&(t.loc.end=e.lastToken.loc.end),t.end=e.lastToken.end),this[v].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[v].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(`
|
|
17
|
+
`,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[v].jsxAttrValueToken=!0),n}[y](e){return e.type===`TemplateElement`&&this[v].templateElements.push(e),e.type.includes(`Function`)&&!e.generator&&(e.generator=!1),e}}};let S={_regular:null,_jsx:null,get regular(){return this._regular===null&&(this._regular=o.Parser.extend(x())),this._regular},get jsx(){return this._jsx===null&&(this._jsx=o.Parser.extend(s.default(),x())),this._jsx},get(e){return e&&e.ecmaFeatures&&e.ecmaFeatures.jsx?this.jsx:this.regular}};function C(e,t){let n=S.get(t);return(!t||t.tokens!==!0)&&(t=Object.assign({},t,{tokens:!0})),new n(t,e).tokenize()}function w(e,t){return new(S.get(t))(t,e).parse()}let T=function(){return c.KEYS}(),E=function(){let e,t={};for(e in typeof Object.create==`function`&&(t=Object.create(null)),T)Object.hasOwn(T,e)&&(t[e]=e);return typeof Object.freeze==`function`&&Object.freeze(t),t}(),D=p(),O=m();e.Syntax=E,e.VisitorKeys=T,e.latestEcmaVersion=D,e.name=`espree`,e.parse=w,e.supportedEcmaVersions=O,e.tokenize=C,e.version=`10.4.0`})),G=d(((e,t)=>{t.exports=e=>{if(typeof e!=`string`)throw TypeError(`Expected a string`);return e.replace(/[|\\{}()[\]^$+*?.]/g,`\\$&`).replace(/-/g,`\\x2d`)}})),se=d(((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}})),ce=d(((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}}})),le=d(((e,t)=>{t.exports={LATEST_ECMA_VERSION:2026}})),K=d(((e,t)=>{let{KEYS:n}=U(),r=ne(),i=oe(),a=G(),{breakableTypePattern:o,createGlobalLinebreakMatcher:s,lineBreakPattern:c,shebangPattern:l}=se(),u=ce(),{LATEST_ECMA_VERSION:d}=le(),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,y=/^(?:eslint[- ]|(?:globals?|exported) )/u,b=new Set([`\r
|
|
18
|
+
`,`\r`,`
|
|
19
|
+
`,`\u2028`,`\u2029`]),x=new Set([`Program`,`BlockStatement`,`StaticBlock`,`SwitchCase`]),S=new Set([`let`,`const`,`using`,`await using`]),C=/^(?:0|0[0-7]*[89]\d*|[1-9](?:_?\d)*)$/u,w=/^(?:[^\\]|\\.)*\\(?:[1-9]|0\d)/su,T=new Set([`&&=`,`||=`,`??=`]),E=u[`es${d}`];function D(e,t,n){let r=e.identifier,i=t===0||n[t-1].identifier!==r;return r&&e.init===!1&&e.isWrite()&&i}function O(e){return e[0]!==e[0].toLocaleLowerCase()}function k(e){return e.id&&O(e.id.name)}function A(e){for(let t=e;t;t=t.parent)if(f.test(t.type))return t;return null}function j(e){return!!(e&&f.test(e.type))}function M(e){return!!(e&&p.test(e.type))}function N(e){for(let t=e;t&&!j(t);t=t.parent)if(M(t))return!0;return!1}function P(e){return e.type===`Literal`&&e.value===null&&!e.regex&&!e.bigint}function F(e){return P(e)||e.type===`Identifier`&&e.name===`undefined`||e.type===`UnaryExpression`&&e.operator===`void`}function I(e){return e.parent.type===`CallExpression`&&e.parent.callee===e}function L(e){switch(e.type){case`Literal`:if(e.value===null){if(P(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 R(e){let t;switch(e&&e.type){case`ChainExpression`:return R(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:L(t):null}function z(e){return e&&e.type===`ChainExpression`?e.expression:e}function B(e,t){return typeof t==`string`?e===t:t.test(e)}function V(e,t){return e.type===`Identifier`&&B(e.name,t)}function H(e,t,n){let r=z(e);if(r.type!==`MemberExpression`||t&&!V(r.object,t))return!1;if(n){let e=R(r);if(typeof e!=`string`||!B(e,n))return!1}return!0}function ee(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 W(e,t,n=!1){if(e.type!==t.type)return e.type===`ChainExpression`?W(e.expression,t,n):t.type===`ChainExpression`?W(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 ee(e,t);case`ChainExpression`:return W(e.expression,t.expression,n);case`MemberExpression`:if(!n){let r=R(e);if(r!==null)return W(e.object,t.object,n)&&r===R(t)}return e.computed===t.computed&&W(e.object,t.object,n)&&W(e.property,t.property,n);default:return!1}}function te(e){return H(e,`Reflect`,`apply`)}function re(e){return H(e,h,`from`)}function ie(e){return H(e,null,m)}function ae(e){return t=>!e(t)}function K(e,t){let n=t.getJSDocComment(e);return n&&_.test(n.value)?!0:t.getCommentsBefore(e).some(e=>_.test(e.value))}function ue(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 de(e){return e.value===`=`&&e.type===`Punctuator`}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 q(e){return e.value===`:`&&e.type===`Punctuator`}function _e(e){return e.value===`(`&&e.type===`Punctuator`}function J(e){return e.value===`)`&&e.type===`Punctuator`}function ve(e){return e.value===`[`&&e.type===`Punctuator`}function Y(e){return e.value===`]`&&e.type===`Punctuator`}function ye(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,t){if(e.type===`ArrowFunctionExpression`&&e.params.length===1){let n=t.getFirstToken(e.params[0]),r=t.getTokenBefore(n);return _e(r)?r:n}return e.id?t.getTokenAfter(e.id,_e):t.getFirstToken(e,_e)}function Ce(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 Z(e){return e.type===`LogicalExpression`&&(e.operator===`&&`||e.operator===`||`)}function we(e){return e.type===`LogicalExpression`&&e.operator===`??`}function Te(e,t){return Z(e)&&we(t)||we(e)&&Z(t)}function Ee(e){return T.has(e)}function De(e,t){return e.test?t.getTokenAfter(e.test,q):t.getFirstToken(e,1)}function Oe(e){return e.type===`Identifier`?e.name:e.value}function ke(e){return e.value===null?e.raw===`null`?!1:typeof e.regex==`object`?!0:null:!!e.value}function Ae(e,t){switch(e.type){case`Literal`:return t===`||`&&ke(e)===!0||t===`&&`&&ke(e)===!1;case`UnaryExpression`:return t===`&&`&&e.operator===`void`;case`LogicalExpression`:return t===e.operator&&(Ae(e.left,t)||Ae(e.right,t));case`AssignmentExpression`:return[`||=`,`&&=`].includes(e.operator)&&t===e.operator.slice(0,-1)&&Ae(e.right,t)}return!1}function je(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 Me(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=>Me(e,t,!1));case`ArrayExpression`:return n?!0:t.elements.every(t=>Me(e,t,!1));case`UnaryExpression`:return t.operator===`void`||t.operator===`typeof`&&n?!0:t.operator===`!`?Me(e,t.argument,!0):Me(e,t.argument,!1);case`BinaryExpression`:return Me(e,t.left,!1)&&Me(e,t.right,!1)&&t.operator!==`in`;case`LogicalExpression`:{let r=Me(e,t.left,n),i=Me(e,t.right,n),a=r&&Ae(t.left,t.operator),o=n&&i&&Ae(t.right,t.operator);return r&&i||a||o}case`NewExpression`:return n;case`AssignmentExpression`:return t.operator===`=`?Me(e,t.right,n):[`||=`,`&&=`].includes(t.operator)&&n?Ae(t.right,t.operator.slice(0,-1)):!1;case`SequenceExpression`:return Me(e,t.expressions.at(-1),n);case`SpreadElement`:return Me(e,t.argument,n);case`CallExpression`:return t.callee.type===`Identifier`&&t.callee.name===`Boolean`&&(t.arguments.length===0||Me(e,t.arguments[0],!0))?je(e,t.callee):!1;case`Identifier`:return t.name===`undefined`&&je(e,t)}return!1}function Ne(e){if(e.type!==`ExpressionStatement`)return!1;let t=e.parent;return t.type===`Program`||t.type===`TSModuleBlock`||t.type===`BlockStatement`&&j(t.parent)}function Pe(e){return e.type===`ExpressionStatement`&&typeof e.directive==`string`}function Fe(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 Ie;{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}Ie=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(J(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 Le(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 Le(n.key)}return!1}t.exports={COMMENTS_IGNORE_PATTERN:v,LINEBREAKS:b,LINEBREAK_MATCHER:c,SHEBANG_MATCHER:l,STATEMENT_LIST_PARENTS:x,ECMASCRIPT_GLOBALS:E,isTokenOnSameLine(e,t){return e.loc.end.line===t.loc.start.line},isNullOrUndefined:F,isCallee:I,isES5Constructor:k,getUpperFunction:A,isFunction:j,isLoop:M,isInLoop:N,isArrayFromMethod:re,isParenthesised:ue,createGlobalLinebreakMatcher:s,equalTokens:Ce,isArrowToken:fe,isClosingBraceToken:be,isClosingBracketToken:Y,isClosingParenToken:J,isColonToken:q,isCommaToken:pe,isCommentToken:xe,isDotToken:me,isQuestionDotToken:he,isKeywordToken:Se,isNotClosingBraceToken:ae(be),isNotClosingBracketToken:ae(Y),isNotClosingParenToken:ae(J),isNotColonToken:ae(q),isNotCommaToken:ae(pe),isNotDotToken:ae(me),isNotQuestionDotToken:ae(he),isNotOpeningBraceToken:ae(ye),isNotOpeningBracketToken:ae(ve),isNotOpeningParenToken:ae(_e),isNotSemicolonToken:ae(ge),isOpeningBraceToken:ye,isOpeningBracketToken:ve,isOpeningParenToken:_e,isSemicolonToken:ge,isEqToken:de,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(D)},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`&&y.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&&k(e)||K(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=A(e);if(t===null||!I(t))return!0;i=t.parent;break}case`ArrowFunctionExpression`:if(i!==e.body||!I(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`&&O(e.left.name));case`VariableDeclarator`:return!(n&&r&&e.init===i&&e.id.type===`Identifier`&&O(e.id.name));case`MemberExpression`:if(e.object===i&&H(e,null,g)){let t=e.parent.type===`ChainExpression`?e.parent:e;return!(I(t)&&t.parent.arguments.length>=1&&!F(t.parent.arguments[0]))}return!0;case`CallExpression`:return te(e.callee)?e.arguments.length!==3||e.arguments[0]!==i||F(e.arguments[1]):re(e.callee)?e.arguments.length!==3||e.arguments[1]!==i||F(e.arguments[2]):ie(e.callee)?e.arguments.length!==2||e.arguments[0]!==i||F(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 j(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`&&C.test(e.raw)},isDecimalIntegerNumericToken(e){return e.type===`Numeric`&&C.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=R(t);r===null?e.id&&n.push(`'${e.id.name}'`):n.push(`'${r}'`)}else e.type===`TSMethodSignature`?n.push(`'${R(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=X(e,t).loc.start;else if(e.type===`ArrowFunctionExpression`){let n=t.getTokenBefore(e.body,fe);r=n.loc.start,i=n.loc.end}else r=e.loc.start,i=X(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 w.test(e)},isStaticTemplateLiteral(e){return e.type===`TemplateLiteral`&&e.expressions.length===0},areBracesNecessary(e,t){function n(e){return e.type===`VariableDeclaration`?S.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:je,isLogicalExpression:Z,isCoalesceExpression:we,isMixedLogicalAndCoalesceExpressions:Te,isNullLiteral:P,getStaticStringValue:L,getStaticPropertyName:R,skipChainExpression:z,isSpecificId:V,isSpecificMemberAccess:H,equalLiteralValue:ee,isSameReference:W,isLogicalAssignmentOperator:Ee,getSwitchCaseColonToken:De,getModuleExportName:Oe,isConstant:Me,isTopLevelExpressionStatement:Ne,isDirective:Pe,isStartOfExpressionStatement:Fe,needsPrecedingSemicolon:Ie,isImportAttributeKey:Le,getOpeningParenOfParams:X}})),ue=d(((e,t)=>{let n=K();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}}})),de=d(((e,t)=>{let n=K();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,`
|
|
20
|
+
`)}})}function c(t,n){e.report({node:t,loc:n.loc,messageId:`missingClosingLinebreak`,fix(e){return e.insertTextBefore(n,`
|
|
21
|
+
`)}})}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}}}})),fe=d(((e,t)=>{let n=K();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.isSpaceBetweenTokens(t,i)&&c(e,t),!g&&r.isSpaceBetweenTokens(t,i)&&o(e,t)),t!==p&&n.isTokenOnSameLine(p,f)&&(_&&!r.isSpaceBetweenTokens(p,f)&&l(e,f),!_&&r.isSpaceBetweenTokens(p,f)&&s(e,f))}return{ArrayPattern:f,ArrayExpression:f}}}})),pe=d(((e,t)=>{let n=K(),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`,`of`,`isArray`].includes(e)?`Array.${e}`:`Array.prototype.${e}`}function c(e){let t=e;for(;t;){let e=t.parent;switch(e.type){case`LogicalExpression`:case`ConditionalExpression`:case`ChainExpression`:t=e;break;case`ReturnStatement`:{let r=n.getUpperFunction(e);if(r===null||!n.isCallee(r))return null;t=r.parent;break}case`CallExpression`:return n.isArrayFromMethod(e.callee)&&e.arguments.length>=2&&e.arguments[1]===t?`from`:a(e.callee)&&e.arguments.length>=1&&e.arguments[0]===t?n.getStaticPropertyName(e.callee):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&&!t.async&&!t.generator,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}}}})),me=d(((e,t)=>{let n=K();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]],`
|
|
22
|
+
`)}})}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}}}})),he=d(((e,t)=>{let n=K();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}}}}})),ge=d(((e,t)=>{let n=K();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]])}})}}}}})),q=d(((e,t)=>{let n=K();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}}}})),_e=d(((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}}}})),J=d(((e,t)=>{let n=K();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.isSpaceBetweenTokens(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}}}})),ve=d(((e,t)=>{let n=K();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,`
|
|
23
|
+
`)}),n.isTokenOnSameLine(o,l)&&l!==s&&!d&&e.report({node:o,messageId:`blockSameLine`,fix:e=>e.insertTextAfter(o,`
|
|
24
|
+
`)}),u!==o&&!d&&n.isTokenOnSameLine(u,s)&&e.report({node:s,messageId:`singleLineClose`,fix:e=>e.insertTextBefore(s,`
|
|
25
|
+
`)})}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,`
|
|
26
|
+
`)})}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))}}}}})),Y=d(((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`})}}}}}})),ye=d(((e,t)=>{let n=K();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)}}}}})),be=d(((e,t)=>{let n=K().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)}}}}})),xe=d(((e,t)=>{let n=K();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}}}}})),Se=d(((e,t)=>{let n=K(),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]}}}})),X=d(((e,t)=>{let n=K();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.isSpaceBetweenTokens(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.isSpaceBetweenTokens(e,l)&&o(e,`after`,l)})},ArrayExpression:s,ArrayPattern:s}}}})),Ce=d(((e,t)=>{let n=K();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}}})),Z=d(((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}})),we=d(((e,t)=>{let n=K(),{upperCaseFirst:r}=Z();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}})}}}}}})),Te=d(((e,t)=>{let n=K();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.isSpaceBetweenTokens(u,d)&&n.isTokenOnSameLine(u,d)&&s(i,u):t.isSpaceBetweenTokens(u,d)&&a(i,u,d)),n.isTokenOnSameLine(p,f)&&(r?!t.isSpaceBetweenTokens(p,f)&&n.isTokenOnSameLine(p,f)&&c(i,f):t.isSpaceBetweenTokens(p,f)&&o(i,f,p))}}let u={Property:l(`key`),MemberExpression:l(`property`)};return i&&(u.MethodDefinition=u.PropertyDefinition=u.Property),u}}})),Ee=d(((e,t)=>{let n=K(),{upperCaseFirst:r}=Z();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}}}})),De=d(((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)}}}}})),Oe=d(((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}}}}}})),ke=d(((e,t)=>{let n=K();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()}}}}})),Ae=d(((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`})}}}}}})),je=d(((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=d(((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}}}})),Ne=d(((e,t)=>{let n=K();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}}}})),Pe=d(((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(`.`)})),Fe=d(((e,t)=>{let n=K(),r=Pe(),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]],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}"]`))}})}}}}})),Ie=d(((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(`
|
|
27
|
+
`);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
|
|
28
|
+
`:`
|
|
29
|
+
`)}});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],``)}})}}}}}})),Le=d(((e,t)=>{let n=K();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}=`)}}}}})),Q=d((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})),Re=d((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=Q();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=U(i.argument,t);if(e==null)return null;n.push(...e.value)}else{let e=U(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`||B(e)))}function B(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 V(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(ee(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 H=Object.freeze({ArrayExpression(e,t){let n=L(e.elements,t);return n==null?null:{value:n}},AssignmentExpression(e,t){return e.operator===`=`?U(e.right,t):null},BinaryExpression(e,t){if(e.operator===`in`||e.operator===`instanceof`)return null;let n=U(e.left,t),r=U(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=U(n.object,t);if(i!=null){if(i.value==null&&(i.optional||e.optional))return{value:void 0,optional:!0};let a=ee(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=U(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=U(e.test,t);return n==null?null:n.value?U(e.consequent,t):U(e.alternate,t)},ExpressionStatement(e,t){return U(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=U(e.node.init,t);return r&&typeof r.value==`object`&&r.value!==null&&V(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=U(e.left,t);if(n!=null){if(e.operator===`||`&&n.value||e.operator===`&&`&&!n.value||e.operator===`??`&&n.value!=null)return n;let r=U(e.right,t);if(r!=null)return r}return null},MemberExpression(e,t){if(e.property.type===`PrivateIdentifier`)return null;let n=U(e.object,t);if(n!=null){if(n.value==null&&(n.optional||e.optional))return{value:void 0,optional:!0};let r=ee(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=U(e.expression,t);return n==null?null:{value:n.value}},NewExpression(e,t){let n=U(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=ee(r,t),i=U(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=U(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 U(n,t)},TaggedTemplateExpression(e,t){let n=U(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=U(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 U(e.expression,t)},TSSatisfiesExpression(e,t){return U(e.expression,t)},TSTypeAssertion(e,t){return U(e.expression,t)},TSNonNullExpression(e,t){return U(e.expression,t)},TSInstantiationExpression(e,t){return U(e.expression,t)}});function U(e,t){return e!=null&&Object.hasOwnProperty.call(H,e.type)?H[e.type](e,t):null}function ee(e,t){let n=e.type===`Property`?e.key:e.property;return e.computed?U(n,t):n.type===`Identifier`?{value:n.name}:n.type===`Literal`?n.bigint?{value:n.bigint}:{value:String(n.value)}:null}function W(e,t=null){try{return U(e,t)}catch{return null}}function te(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=W(e,t);if(n)try{return String(n.value)}catch{}return null}function ne(e,t){switch(e.type){case`MemberExpression`:return e.computed?te(e.property,t):e.property.type===`PrivateIdentifier`?null:e.property.name;case`Property`:case`MethodDefinition`:case`PropertyDefinition`:return e.computed?te(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(`
|
|
30
|
+
`)||r.push(`[${e}]`)}}else ie(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 ie(e){return!!e.id}let ae=Object.freeze(new Set([`==`,`!=`,`<`,`<=`,`>`,`>=`,`<<`,`>>`,`>>>`,`+`,`-`,`*`,`/`,`%`,`|`,`^`,`&`,`in`])),oe=Object.freeze(new Set([`-`,`+`,`!`,`~`]));function G(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(G(e)&&this.$visit(e,n,r))return!0}else if(G(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&&ae.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&&oe.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 K(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 ue=/\$(?:[$&`']|[1-9][0-9]?)/gu,de=new WeakMap;function fe(e,t){let n=!1;for(let r=t-1;r>=0&&e.charCodeAt(r)===92;--r)n=!n;return n}function pe(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(ue,e=>a(e,o))),i=o.index+o[0].length;return r.push(t.slice(i)),r.join(``)}function me(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 he=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.`);de.set(this,{pattern:new RegExp(e.source,e.flags),escaped:!!n})}*execAll(e){let{pattern:t,escaped:n}=de.get(this),r=null,i=0;for(t.lastIndex=0;(r=t.exec(e))!=null;)(n||!fe(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`?me(this,String(e),t):pe(this,String(e),String(t))}};let ge=/^(?:Import|Export(?:All|Default|Named))Declaration$/u;function q(e){return ge.test(e.type)&&e.source!=null}let _e=Function.call.bind(Object.hasOwnProperty),J=Symbol(`read`),ve=Symbol(`call`),Y=Symbol(`construct`),ye=Symbol(`esm`),be={require:{[ve]:!0}};function xe(e){return e==null||e.defs.length!==0||e.references.some(e=>e.isWrite())}function Se(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 X=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);xe(i)||(yield*this._iterateVariableReferences(i,r,n,!0))}for(let t of this.globalObjectNames){let n=[],r=this.globalScope.set.get(t);xe(r)||(yield*this._iterateVariableReferences(r,n,e,!1))}}*iterateCjsReferences(e){for(let{node:t}of this.iterateGlobalReferences(be)){let n=te(t.arguments[0]);if(n==null||!_e(e,n))continue;let r=e[n],i=[n];r[J]&&(yield{node:t,path:i,type:J,info:r[J]}),yield*this._iteratePropertyReferences(t,i,r)}}*iterateEsmReferences(e){let t=this.globalScope.block;for(let n of t.body){if(!q(n))continue;let t=n.source.value;if(!_e(e,t))continue;let r=e[t],i=[t];if(r[J]&&(yield{node:n,path:i,type:J,info:r[J]}),n.type===`ExportAllDeclaration`)for(let e of Object.keys(r)){let t=r[e];t[J]&&(yield{node:n,path:i.concat(e),type:J,info:t[J]})}else for(let e of n.specifiers){let t=_e(r,ye),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(Ce),(e.path.length>=2||e.type!==J)&&(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[J]&&(yield{node:e,path:t,type:J,info:n[J]}),yield*this._iteratePropertyReferences(e,t,n)}}finally{this.variableStack.pop()}}}*_iteratePropertyReferences(e,t,n){let r=e;for(;Se(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||!_e(n,e))return;t=t.concat(e);let r=n[e];r[J]&&(yield{node:i,path:t,type:J,info:r[J]}),yield*this._iteratePropertyReferences(i,t,r)}return}if(i.type===`CallExpression`){i.callee===r&&n[ve]&&(yield{node:i,path:t,type:ve,info:n[ve]});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||!_e(n,e))continue;let i=t.concat(e),a=n[e];a[J]&&(yield{node:r,path:i,type:J,info:a[J]}),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(!_e(n,a))return;t=t.concat(a);let o=n[a];o[J]&&(yield{node:e,path:t,type:J,info:o[J]}),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(!_e(n,r))return;t=t.concat(r);let i=n[r];i[J]&&(yield{node:e,path:t,type:J,info:i[J]})}}};X.READ=J,X.CALL=ve,X.CONSTRUCT=Y,X.ESM=ye;function Ce(e,t){return!(t===1&&e===`default`)}var Z={CALL:ve,CONSTRUCT:Y,ESM:ye,findVariable:r,getFunctionHeadLocation:k,getFunctionNameWithKind:re,getInnermostScope:n,getPropertyName:ne,getStaticValue:W,getStringIfConstant:te,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:K,isSemicolonToken:c,PatternMatcher:he,READ:J,ReferenceTracker:X};e.CALL=ve,e.CONSTRUCT=Y,e.ESM=ye,e.PatternMatcher=he,e.READ=J,e.ReferenceTracker=X,e.default=Z,e.findVariable=r,e.getFunctionHeadLocation=k,e.getFunctionNameWithKind=re,e.getInnermostScope=n,e.getPropertyName=ne,e.getStaticValue=W,e.getStringIfConstant=te,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=K,e.isSemicolonToken=c})),ze=d(((e,t)=>{let{getStaticValue:n}=Re();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)}}}}}})),Be=d(((e,t)=>{let n=K();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))}}}}})),Ve=d(((e,t)=>{let n=K(),r=ne();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)}}}}}})),He=d(((e,t)=>{let n=K();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`]}},items:[{$ref:`#/definitions/value`},{type:`object`,properties:{generators:{$ref:`#/definitions/value`}},additionalProperties:!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}}}})),Ue=d(((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}}})),We=d(((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]],`
|
|
31
|
+
`)}};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}}}})),Ge=d(((e,t)=>{let n=K();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,`
|
|
32
|
+
`)}),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,`
|
|
33
|
+
`)})}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,`
|
|
34
|
+
`)})}}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))}}}}})),Ke=d(((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}}}})),qe=d(((e,t)=>{let n=K(),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}}}})),Je=d(((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`}))}}}}})),Ye=d(((e,t)=>{let n=K();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`)}}}}})),Xe=d(((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`})}}}}}})),Ze=d(((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}}}})),Qe=d(((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)}}}}})),$e=d(((e,t)=>{let n=K();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)}}}}})),et=d(((e,t)=>{let{getGraphemeCount:n}=Z(),{getModuleExportName:r,isImportAttributeKey:i}=K();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}})}}}}}})),tt=d(((e,t)=>{let n=K();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)}}}}})),nt=d(((e,t)=>{let{isCommentToken:n,isNotOpeningParenToken:r}=K();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,`
|
|
35
|
+
`)}):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)}}}})),rt=d(((e,t)=>{let n=K(),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))}}}})}}})),it=d(((e,t)=>{let n=K();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))}}}}})),$=d(((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}})}}}}}})),at=d(((e,t)=>{let n=K(),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))}})}}}}})),ot=d(((e,t)=>{let n=K(),{getGraphemeCount:r}=Z();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)}}}}})),st=d(((e,t)=>{let n=K(),r=Pe(),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.isSpaceBetweenTokens(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.isSpaceBetweenTokens(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.isSpaceBetweenTokens(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.isSpaceBetweenTokens(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)}}}}})),ct=d(((e,t)=>{let n=K();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`})})}}}}})),lt=d(((e,t)=>{let n=K();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?`
|
|
36
|
+
`:`\r
|
|
37
|
+
`,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)})}}}}}})),ut=d(((e,t)=>{let n=K();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,`
|
|
38
|
+
`)}})}!F&&u&&!h.has(m)&&!(n.isCommentToken(L)&&n.isTokenOnSameLine(r,L))&&e.report({node:r,messageId:`after`,fix(e){return e.insertTextAfter(r,`
|
|
39
|
+
`)}})}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})})}}}}})),dt=d(((e,t)=>{let n=K();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,`
|
|
40
|
+
`):e.insertTextAfter(i,`
|
|
41
|
+
`):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}}}})),ft=d(((e,t)=>{let n=K(),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]],`
|
|
42
|
+
`)}}):b===`always`&&!m&&!_&&e.report({node:i[r+1],messageId:`always`,fix(e){return v?null:e.insertTextAfter(y,`
|
|
43
|
+
`)}})}}}}}})),pt=d(((e,t)=>{let n=K(),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))}}}}}})),mt=d(((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++}}}}})),ht=d(((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}}}})),gt=d(((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}}}})),_t=d(((e,t)=>{let n=K();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}})}}}}}})),vt=d(((e,t)=>{let n=K(),{upperCaseFirst:r}=Z(),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}}}})),yt=d(((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}}}})),bt=d(((e,t)=>{let n=K(),{upperCaseFirst:r}=Z();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`."}},additionalProperties:!1}]}],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=!1;typeof i==`object`&&((Object.hasOwn(i,`maximum`)||Object.hasOwn(i,`max`))&&(a=i.maximum||i.max),o=i.countVoidThis),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].typeAnnotation?.typeAnnotation.type===`TSVoidKeyword`&&!o?i.params.length-1:i.params.length;s>a&&e.report({loc:n.getFunctionHeadLoc(i,t),node:i,messageId:`exceed`,data:{name:r(n.getFunctionNameWithKind(i)),count:s,max:a}})}return{FunctionDeclaration:s,ArrowFunctionExpression:s,FunctionExpression:s,TSDeclareFunction:s,TSFunctionType:s}}}})),xt=d(((e,t)=>{let n=K(),{upperCaseFirst:r}=Z();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)})}}}}})),St=d(((e,t)=>{let n=K();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}}}})),Ct=d(((e,t)=>{let n=K();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(`
|
|
44
|
+
`)}\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])}}}}})),wt=d(((e,t)=>{let n=K();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]],`
|
|
45
|
+
`)}),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]],`
|
|
46
|
+
`)})}}}}}})),Tt=d(((e,t)=>{let n=K(),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}}})),Et=d(((e,t)=>{let n=K();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,`)`)]})}}}}})),Dt=d(((e,t)=>{let n=K();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,`
|
|
47
|
+
|
|
48
|
+
`):e.insertTextBeforeRange([m.range[0]-m.loc.start.column,m.range[1]],`
|
|
49
|
+
`)}})}return{VariableDeclaration:f}}}})),Ot=d(((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?`
|
|
50
|
+
|
|
51
|
+
`:`
|
|
52
|
+
`;return e.insertTextBefore(n,i)}return null}})}}}}})),kt=d(((e,t)=>{let n=K();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,`
|
|
53
|
+
`)}})}}}}}})),At=d(((e,t)=>{let{getStaticPropertyName:n,getVariableByName:r,skipChainExpression:i}=K();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}})}}}}}})),jt=d(((e,t)=>{let{getVariableByName:n,isClosingParenToken:r,isOpeningParenToken:i,isStartOfExpressionStatement:a,needsPrecedingSemicolon:o}=K();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}}}})),Mt=d(((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`})}}}}})),Nt=d(((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}}}})),Pt=d(((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}}}})),Ft=d(((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()`}})}}}}})),It=d(((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}})}}}}})),Lt=d(((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),` }`)]}]})}}}}}})),Rt=d(((e,t)=>{let n=K();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}})}}}}})),zt=d(((e,t)=>{let n=K();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}}}})),Bt=d(((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}})}}}}})),Vt=d(((e,t)=>{let n=K(),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}}}})),Ht=d(((e,t)=>{let n=K();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}}}})),Ut=d(((e,t)=>{let n=K();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)}}}}})),Wt=d(((e,t)=>{let n=K(),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)}}}}})),Gt=d(((e,t)=>{let{isNullLiteral:n,isConstant:r,isReferenceToGlobalVariable:i,isLogicalAssignmentOperator:a,ECMASCRIPT_GLOBALS:o}=K(),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`})}}}}})),Kt=d(((e,t)=>{let{isConstant:n}=K();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()}}}})),qt=d(((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`})}}}}})),Jt=d(((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`})}}}}})),Yt=d((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 B(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 V=new Set([94,36,92,46,42,43,63,40,41,91,93,123,125,124]),H=new Set([38,33,35,36,37,42,43,44,46,58,59,60,61,62,63,64,94,96,126]),U=new Set([40,41,91,93,123,125,47,45,92,124]),ee=new Set([38,45,33,35,37,44,58,59,60,61,62,64,96,126]),W={global:103,ignoreCase:105,multiline:109,unicode:117,sticky:121,dotAll:115,hasIndices:100,unicodeSets:118},te=Object.fromEntries(Object.entries(W).map(([e,t])=>[t,e]));function ne(e){return V.has(e)}function re(e){return H.has(e)}function ie(e){return U.has(e)}function ae(e){return ee.has(e)}function oe(e){return a(e)||e===36||e===95}function G(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 K=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 B(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(W[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&&!ie(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(ae(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()),oe(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()),G(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=te[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 ue={},de={},fe={};function pe(e){return e.type===`Character`||e.type===`CharacterSet`||e.type===`CharacterClass`||e.type===`ExpressionCharacterClass`||e.type===`ClassStringDisjunction`}var me=class{constructor(e){this._node=ue,this._expressionBufferMap=new Map,this._flags=de,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:fe};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`&&!pe(i)||!pe(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`&&!pe(i)||!pe(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}},he=class{constructor(e){this._state=new me(e),this._validator=new K(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}},ge=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 q(e,t){return new he(t).parseLiteral(String(e))}function _e(e,t){new K(t).validateLiteral(e)}function J(e,t){new ge(t).visit(e)}e.AST=t,e.RegExpParser=he,e.RegExpSyntaxError=z,e.RegExpValidator=K,e.parseRegExpLiteral=q,e.validateRegExpLiteral=_e,e.visitRegExpAST=J})),Xt=d(((e,t)=>{let n=Yt().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(`, `)}})}}}}}})),Zt=d(((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`})}}}}})),Qt=d(((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`})}}}}})),$t=d(((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],`[=]`)}})}}}}})),en=d(((e,t)=>{let n=K();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}}}})),tn=d(((e,t)=>{let n=K();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}})}}}}})),nn=d(((e,t)=>{let n=K();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}}}}}}})),rn=d(((e,t)=>{let n=K(),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)))}}}}})),an=d(((e,t)=>{let n=K();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)}}}}}})),on=d(((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}}})),sn=d(((e,t)=>{let n=K();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,``)}}})),cn=d(((e,t)=>{let n=K(),r=sn();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}}}})),ln=d(((e,t)=>{let n=K();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 */ `)}}]})}}}}}})),un=d(((e,t)=>{let{RegExpParser:n,visitRegExpAST:r}=Yt(),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`})}})}}}}})),dn=d(((e,t)=>{let n=K(),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}}}})),fn=d(((e,t)=>{let n=K();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`}})}}}}})),pn=d(((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 */ `)}}]})}}}}}})),mn=d(((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`})}}}}})),hn=d(((e,t)=>{let n=K(),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))}}}}})),gn=d(((e,t)=>{let n=K();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)}}}}})),_n=d(((e,t)=>{let n=K();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)})}}}}})),vn=d(((e,t)=>{let n=K(),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}}}})),yn=d(((e,t)=>{let n=K(),r=Re(),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}})}}}}})),bn=d(((e,t)=>{let n=K();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}}}})),xn=d(((e,t)=>{let{isParenthesized:n}=Re(),r=K();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.isSpaceBetweenTokens(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 B(e){let t=e.object,n=e.object.type;for(;n===`MemberExpression`;)t=t.object,n=t.type;return n===`CallExpression`}function V(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`&&B(t)||!e.optional&&t.type===`ChainExpression`))&&R(e.callee),e.arguments.filter(e=>E(e,_)).forEach(R)}function H(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 U(e){e.superClass&&(a(e.superClass)>v?w(e.superClass):T(e.superClass))&&R(e.superClass)}function ee(e){E(e.argument,_)&&R(e.argument)}function W(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 te(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 te(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 ie(){y={upper:y,inExpressionNodes:[],reports:[]}}function ae(){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 oe(e){return y.reports.some(t=>t.node===e)}function G(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),H(e)},CallExpression:V,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=>W(e.declaration),ExpressionStatement:e=>W(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)}ie(),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(oe(t)){if(C(t))return;r||=t}else return}G(r)}),ae()},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:H,MemberExpression(e){let t=se(e)&&B(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:V,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:U,ClassExpression:U,SpreadElement:ee,SpreadProperty:ee,ExperimentalSpreadProperty:ee,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)}}}}})),Sn=d(((e,t)=>{let n=sn(),r=K();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))}}}}})),Cn=d(((e,t)=>{t.exports={directivesPattern:/^(eslint(?:-env|-enable|-disable(?:(?:-next)?-line)?)?|exported|globals?)(?:\s|$)/u}})),wn=d(((e,t)=>{let{directivesPattern:n}=Cn(),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}}}}}})),Tn=d(((e,t)=>{let n=K();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`)}))}}}}})),En=d(((e,t)=>{let n=K();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}}}})),Dn=d(((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)}}}}})),On=d(((e,t)=>{let n=K(),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))}}}}})),kn=d(((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`)})})}}}}})),An=d(((e,t)=>{let n=K(),{getStaticValue:r}=Re();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`]),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)}}}}})),jn=d(((e,t)=>{let{findVariable:n}=Re(),r=K(),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}}))}}}}}}})),Mn=d(((e,t)=>{let n=K();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)}}}}})),Nn=d(((e,t)=>{let n=K(),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)}}}}})),Pn=d(((e,t)=>{let n=Yt().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`}}},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)}}}}})),Fn=d(((e,t)=>{let n=K();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`})}}}}})),In=d(((e,t)=>{let n=K(),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}}})),Ln=d(((e,t)=>{let{getStaticPropertyName:n}=K();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`})}}}}})),Rn=d(((e,t)=>{let n=K();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`})}}}}})),zn=d(((e,t)=>{let n=K();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`})}}}}})),Bn=d(((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}}})),Vn=d(((e,t)=>{let n=K();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))}})}}}}})),Hn=d(((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}}}})),Un=d(((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})}}}}})),Wn=d(((e,t)=>{let n=K(),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}}))}}}}})),Gn=d(((e,t)=>{t.exports=function(e){return/^[\p{Mc}\p{Me}\p{Mn}]$/u.test(String.fromCodePoint(e))}})),Kn=d(((e,t)=>{t.exports=function(e){return e>=127995&&e<=127999}})),qn=d(((e,t)=>{t.exports=function(e){return e>=127462&&e<=127487}})),Jn=d(((e,t)=>{t.exports=function(e,t){return e>=55296&&e<56320&&t>=56320&&t<57344}})),Yn=d(((e,t)=>{t.exports={isCombiningCharacter:Gn(),isEmojiModifier:Kn(),isRegionalIndicatorSymbol:qn(),isSurrogatePair:Jn()}})),Xn=d(((e,t)=>{let{RegExpValidator:n}=Yt(),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}})),Zn=d(((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:`
|
|
54
|
+
`,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()===`
|
|
55
|
+
`&&e.advance(1);case`
|
|
56
|
+
`: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)===`
|
|
57
|
+
`?`\r
|
|
58
|
+
`:e,i.push(new n(t.pos,r)),t.advance(r.length)}}return i}t.exports={parseStringLiteral:u,parseTemplateToken:d}})),Qn=d(((e,t)=>{let{CALL:n,CONSTRUCT:r,ReferenceTracker:i,getStaticValue:a,getStringIfConstant:o}=Re(),{RegExpParser:s,visitRegExpAST:c}=Yt(),{isCombiningCharacter:l,isEmojiModifier:u,isRegionalIndicatorSymbol:d,isSurrogatePair:f}=Yn(),p=K(),{isValidWithUnicodeFlag:m}=Xn(),{parseStringLiteral:h,parseTemplateToken:g}=Zn();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})}}}}}}})),$n=d(((e,t)=>{let n=K(),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}}}})),er=d(((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`})}}}}})),tr=d(((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`})}}})}}}}})),nr=d(((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`})}}}}})),rr=d(((e,t)=>{let n=K();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(`
|
|
59
|
+
`),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]],` `)})})}}}}})),ir=d(((e,t)=>{let n=K();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`})}}}}})),ar=d(((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)}}}}})),or=d(((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)}}}}})),sr=d(((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`})}}}}})),cr=d(((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`})}}}}})),lr=d(((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`})}}}}})),ur=d(((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`})}}}}})),dr=d(((e,t)=>{let n=K(),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`})})}}}}})),fr=d(((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}})})}}}}}})),pr=d(((e,t)=>{let n=K();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`})}}}}})),mr=d(((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`})}}}}})),hr=d(((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`})})}}}}})),gr=d(((e,t)=>{let{getVariableByName:n}=K();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}})}}}}}})),_r=d(((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})}}}}}})),vr=d(((e,t)=>{let{CALL:n,CONSTRUCT:r,ReferenceTracker:i}=Re(),a=K().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}})}}}}}})),yr=d(((e,t)=>{let{getVariableByName:n,isArrowToken:r,isStartOfExpressionStatement:i,needsPrecedingSemicolon:a}=K();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}}}})),br=d(((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`})}}}}})),xr=d(((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]}})}}}}})),Sr=d(((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}}}})),Cr=d(((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`})}}}}})),wr=d(((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=d(((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`})}}}}})),Er=d(((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`})}}}}})),Dr=d(((e,t)=>{let n=K(),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)}}]})}}}}}})),Or=d(((e,t)=>{let{getStaticPropertyName:n}=K();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`})}}}}})),kr=d(((e,t)=>{let n=K();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}}}})),Ar=d(((e,t)=>{let n=K();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}}}})),jr=d(((e,t)=>{let n=K(),r=Yt(),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}}}})),Mr=d(((e,t)=>{let n=K();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)}}}}})),Nr=d(((e,t)=>{let n=K(),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}})}})})}}}}})),Pr=d(((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)}})),Fr=d(((e,t)=>{let n=K(),r=Pr(),i={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}}' is 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}}' is 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}}' is restricted.`,everythingWithCustomMessage:`* import is invalid because '{{importNames}}' from '{{importSource}}' is 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}}' import(s) is/are allowed.`,allowedImportNameWithCustomMessage:`'{{importName}}' import from '{{importSource}}' is restricted because only '{{allowedImportNames}}' import(s) is/are allowed. {{customMessage}}`,everythingWithAllowImportNames:`* import is invalid because only '{{allowedImportNames}}' from '{{importSource}}' is/are allowed.`,everythingWithAllowImportNamesAndCustomMessage:`* import is invalid because only '{{allowedImportNames}}' from '{{importSource}}' is/are 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:[i,{type:`array`,items:[{type:`object`,properties:{paths:i,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,i=Array.isArray(e.options)?e.options:[],a=typeof i[0]==`object`&&(Object.hasOwn(i[0],`paths`)||Object.hasOwn(i[0],`patterns`)),o=(a?i[0].paths:e.options)||[],s=o.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)),c=(a?i[0].patterns:[])||[];c.length>0&&typeof c[0]==`string`&&(c=[{group:c}]);let l=c.map(({group:e,regex:t,message:n,caseSensitive:i,importNames:a,importNamePattern:o,allowImportNames:s,allowImportNamePattern:c,allowTypeImports:l})=>({...e?{matcher:r({allowRelativePaths:!0,ignorecase:!i}).add(e)}:{},...typeof t==`string`?{regexMatcher:new RegExp(t,i?`u`:`iu`)}:{},customMessage:n,importNames:a,importNamePattern:o,allowImportNames:s,allowImportNamePattern:c,allowTypeImports:l}));if(Object.keys(o).length===0&&l.length===0)return{};function u(e){return e.importKind===`type`||e.specifiers?.length>0&&e.specifiers.every(e=>e.importKind===`type`)}function d(e){return e.importKind===`type`||e.exportKind===`type`}function f(e){return e.exportKind===`type`||e.specifiers?.length>0&&e.specifiers.every(e=>e.exportKind===`type`)}function p(t,n,r){Object.hasOwn(s,t)&&s[t].forEach(i=>{let a=i.message,o=i.importNames,s=i.allowImportNames,c=i.allowTypeImports;if(!(c&&(r.type===`ImportDeclaration`||r.type===`TSImportEqualsDeclaration`)&&u(r))&&!(c&&(r.type===`ExportNamedDeclaration`||r.type===`ExportAllDeclaration`)&&f(r))){if(!o&&!s){e.report({node:r,messageId:a?`pathWithCustomMessage`:`path`,data:{importSource:t,customMessage:a}});return}n.forEach((n,i)=>{if(i===`*`){let[i]=n;o?e.report({node:r,messageId:a?`everythingWithCustomMessage`:`everything`,loc:i.loc,data:{importSource:t,importNames:o,customMessage:a}}):s&&e.report({node:r,messageId:a?`everythingWithAllowImportNamesAndCustomMessage`:`everythingWithAllowImportNames`,loc:i.loc,data:{importSource:t,allowedImportNames:s,customMessage:a}});return}o&&o.includes(i)&&n.forEach(n=>{c&&d(n.specifier)||e.report({node:r,messageId:a?`importNameWithCustomMessage`:`importName`,loc:n.loc,data:{importSource:t,customMessage:a,importName:i}})}),s&&!s.includes(i)&&n.forEach(n=>{c&&d(n.specifier)||e.report({node:r,loc:n.loc,messageId:a?`allowedImportNameWithCustomMessage`:`allowedImportName`,data:{importSource:t,customMessage:a,importName:i,allowedImportNames:s}})})})}})}function m(t,n,r,i){if(n.allowTypeImports&&(t.type===`ImportDeclaration`||t.type===`TSImportEqualsDeclaration`)&&u(t)||n.allowTypeImports&&(t.type===`ExportNamedDeclaration`||t.type===`ExportAllDeclaration`)&&f(t))return;let a=n.customMessage,o=n.importNames,s=n.importNamePattern?new RegExp(n.importNamePattern,`u`):null,c=n.allowImportNames,l=n.allowImportNamePattern?new RegExp(n.allowImportNamePattern,`u`):null;if(!o&&!c&&!s&&!l){e.report({node:t,messageId:a?`patternWithCustomMessage`:`patterns`,data:{importSource:i,customMessage:a}});return}r.forEach((r,u)=>{if(u===`*`){let[n]=r;o?e.report({node:t,messageId:a?`patternAndEverythingWithCustomMessage`:`patternAndEverything`,loc:n.loc,data:{importSource:i,importNames:o,customMessage:a}}):c?e.report({node:t,messageId:a?`everythingWithAllowImportNamesAndCustomMessage`:`everythingWithAllowImportNames`,loc:n.loc,data:{importSource:i,allowedImportNames:c,customMessage:a}}):l?e.report({node:t,messageId:a?`everythingWithAllowedImportNamePatternWithCustomMessage`:`everythingWithAllowedImportNamePattern`,loc:n.loc,data:{importSource:i,allowedImportNamePattern:l,customMessage:a}}):e.report({node:t,messageId:a?`patternAndEverythingWithRegexImportNameAndCustomMessage`:`patternAndEverythingWithRegexImportName`,loc:n.loc,data:{importSource:i,importNames:s,customMessage:a}});return}(o&&o.includes(u)||s&&s.test(u))&&r.forEach(r=>{n.allowTypeImports&&d(r.specifier)||e.report({node:t,messageId:a?`patternAndImportNameWithCustomMessage`:`patternAndImportName`,loc:r.loc,data:{importSource:i,customMessage:a,importName:u}})}),c&&!c.includes(u)?r.forEach(r=>{n.allowTypeImports&&d(r.specifier)||e.report({node:t,messageId:a?`allowedImportNameWithCustomMessage`:`allowedImportName`,loc:r.loc,data:{importSource:i,customMessage:a,importName:u,allowedImportNames:c}})}):l&&!l.test(u)&&r.forEach(r=>{n.allowTypeImports&&d(r.specifier)||e.report({node:t,messageId:a?`allowedImportNamePatternWithCustomMessage`:`allowedImportNamePattern`,loc:r.loc,data:{importSource:i,customMessage:a,importName:u,allowedImportNamePattern:l}})})})}function h(e,t){return t.regexMatcher?t.regexMatcher.test(e):t.matcher.ignores(e)}function g(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]))}p(r,i,e),l.forEach(t=>{h(r,t)&&m(e,t,i,r)})}return{ImportDeclaration:g,ExportNamedDeclaration(e){e.source&&g(e)},ExportAllDeclaration:g,TSImportEqualsDeclaration(e){if(e.moduleReference.type===`TSExternalModuleReference`){let t=e.moduleReference.expression.value,n=new Map;p(t,n,e),l.forEach(r=>{h(t,r)&&m(e,r,n,t)})}}}}}})),Ir=d(((e,t)=>{let n=K(),r=Pr(),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}}))}}}}}})),Lr=d(((e,t)=>{let n=K();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))})}}}}})),Rr=d(((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}})}})},{})}}})),zr=d(((e,t)=>{let n=K(),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`})}}}}})),Br=d(((e,t)=>{let n=K();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)}}}}})),Vr=d(((e,t)=>{let n=K();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)}}}}})),Hr=d(((e,t)=>{let n=K(),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)}}}}})),Ur=d(((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`})}}}}})),Wr=d(((e,t)=>{let n=K();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`})}}}}})),Gr=d(((e,t)=>{let n=K();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)}}}}})),Kr=d(((e,t)=>{let n=K(),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,t){let n=t.scope,r=t.defs[0],i=r&&r.parent&&r.parent.range,a=e.scope,o=e.defs[0],s=o&&o.name.range;return i&&s&&i[0]<s[0]&&s[1]<i[1]&&(o.type===`FunctionName`&&o.node.type===`FunctionExpression`||o.node.type===`ClassExpression`)&&n===a.upper}function O(e){let t=e.defs[0];return t&&t.name.range}function k(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 A(e,t){let n=t.defs[0],r=O(e),i=O(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 j(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 M(e){let t=e.scope.block;return t.type===`TSEnumDeclaration`&&t.id===e.identifiers[0]}function N(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 P(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)||M(o)||T(o)||j(o)||g(o))continue;let s=n.getVariableByName(r.upper,o.name);if(s&&(s.identifiers.length>0||t&&`writeable`in s)&&!D(o,s)&&!(d&&w(o,s))&&!(l!==`all`&&A(o,s))&&!_(o,s)&&!v(o)&&!b(o,s)&&!N(r,o,s)){let t=k(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),P(e)}}}}}})),qr=d(((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:!1}],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}}))}}}}}})),Jr=d(((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.isSpaceBetweenTokens(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}}}})),Yr=d(((e,t)=>{let n=K();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`})}}}}}})),Xr=d(((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}})}}}}})),Zr=d(((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`})})}}}}})),Qr=d(((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`})}}}}})),$r=d(((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`})}}}}})),ei=d(((e,t)=>{let n=K();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)}}}}})),ti=d(((e,t)=>{let n=K();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`})}}}}})),ni=d(((e,t)=>{let n=K();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}}}}}})),ri=d(((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:!1,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}})}}}}})),ii=d(((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})})}}}}})),ai=d(((e,t)=>{let n=K(),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]])}})}}}}})),oi=d(((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)}}}}}})),si=d(((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:_}}}})),ci=d(((e,t)=>{let n=K();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`)}}}}})),li=d(((e,t)=>{let n=U(),r=S()(`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}}})),ui=d(((e,t)=>{let n=li(),r=K(),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}}}}})),di=d(((e,t)=>{let n=K(),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}`)}})}}}}})),fi=d(((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)}}}}})),pi=d(((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`}))}}}}})),mi=d(((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}}}})),hi=d(((e,t)=>{let n=K();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)})`)}}]})}}}}})),gi=d(((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)}}}}})),_i=d(((e,t)=>{let n=K();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`})}}}}})),vi=d(((e,t)=>{let n=K();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}}}})),yi=d(((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}`}})}}}}})),bi=d(((e,t)=>{let n=K();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)})}}}}}}})),xi=d(((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))}}}}})),Si=d(((e,t)=>{let{findVariable:n}=Re();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:!1,url:`https://eslint.org/docs/latest/rules/no-useless-assignment`},schema:[],messages:{unnecessaryAssignment:`This assigned value 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=>e.identifier.type!==`Identifier`))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`})}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(e){for(let t of o.currentSegments){let n=o.segments[t.id];n.first||=e,n.last=e}},":matches(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]})}}}}}})),Ci=d(((e,t)=>{let{CALL:n,CONSTRUCT:r,ReferenceTracker:i,getStringIfConstant:a}=Re(),{RegExpParser:o,visitRegExpAST:s}=Yt(),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||``)}}}}}})),wi=d(((e,t)=>{let n=K();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=d(((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`}))}}}}})),Ei=d(((e,t)=>{let n=K();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}}}})),Di=d(((e,t)=>{let n=K();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`})}}}}}})),Oi=d(((e,t)=>{let n=K();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){function t(t){if(t.kind!==`constructor`||t.value.type!==`FunctionExpression`||r(t)||i(t)||!t.value.body)return;let a=t.value.body.body,o=t.value.params;(t.parent.parent.superClass?f(a,o):a.length===0)&&e.report({node:t,messageId:`noUselessConstructor`,suggest:[{messageId:`removeConstructor`,*fix(r){let i=e.sourceCode.getTokenAfter(t),a=i.type===`Punctuator`&&i.value===`[`&&n.needsPrecedingSemicolon(e.sourceCode,t);yield r.replaceText(t,a?`;`:``)}}]})}return{MethodDefinition:t}}}})),ki=d(((e,t)=>{let n=K(),{RegExpParser:r,visitRegExpAST:i}=Yt();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}}}})),Ai=d(((e,t)=>{let n=K();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}}}})),ji=d(((e,t)=>{let n=K(),r=sn();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}}}})),Mi=d(((e,t)=>{let n=K();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`}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);return!(e.parent.type===`SwitchCase`||e.declarations.some(i)||c.some(r)||c.some(u)||c.some(d(f))||c.some(p)||n.isInLoop(e)&&(c.some(a)||!o(e)&&!s(e))||!o(e)&&!(e.parent.type===`ForStatement`&&e.parent.init===e)&&!n.STATEMENT_LIST_PARENTS.has(e.parent.type))}function m(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||m(e))}}}}})),Ni=d(((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`})}}}}})),Pi=d(((e,t)=>{let n=G(),r=K();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)}}}}})),Fi=d(((e,t)=>{let n=K();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.isSpaceBetweenTokens(a,i)&&r(e,a,i))}}}}})),Ii=d(((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`})}}}}})),Li=d(((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,`
|
|
60
|
+
`)}):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`)}}}})),Ri=d(((e,t)=>{let n=K(),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,`
|
|
61
|
+
`)}}),n.isTokenOnSameLine(u,s)&&e.report({messageId:`expectedLinebreakBeforeClosingBrace`,node:i,loc:s.loc,fix(e){return p?null:e.insertTextBefore(s,`
|
|
62
|
+
`)}});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}}}})),zi=d(((e,t)=>{let n=K();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.isSpaceBetweenTokens(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.isSpaceBetweenTokens(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}}}})),Bi=d(((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,`
|
|
63
|
+
`)}})}}}}}})),Vi=d(((e,t)=>{let n={always:`always`,never:`never`,methods:`methods`,properties:`properties`,consistent:`consistent`,consistentAsNeeded:`consistent-as-needed`},r=K(),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)}})}}}}}}})),Hi=d(((e,t)=>{let n=K();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}}}})),Ui=d(((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,`
|
|
64
|
+
`)}),a=n})}return{VariableDeclaration:r}}}})),Wi=d(((e,t)=>{let n=K();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}}}})),Gi=d(((e,t)=>{let n=K();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,`:`)}}}}})),Ki=d(((e,t)=>{let n=K();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,`
|
|
65
|
+
`)},messageId:`alwaysPadBlock`}),h||e.report({node:r,loc:{end:p.loc.start,start:f.loc.end},fix(e){return e.insertTextBefore(p,`
|
|
66
|
+
`)},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],`
|
|
67
|
+
`)},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],`
|
|
68
|
+
`)}})))}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}}})),qi=d(((e,t)=>{let n=K(),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)?`
|
|
69
|
+
|
|
70
|
+
`:`
|
|
71
|
+
`;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}}}})),Ji=d(((e,t)=>{let n=K();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,`)`))}})}}}}})),Yi=d(((e,t)=>{let n=sn(),r=K(),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))}}}}})),Xi=d(((e,t)=>{let n=K(),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}}}})),Zi=d(((e,t)=>{let n=K(),{CALL:r,ReferenceTracker:i}=Re(),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)}}}}})),Qi=d(((e,t)=>{let{CALL:n,CONSTRUCT:r,ReferenceTracker:i,getStringIfConstant:a}=Re(),o=Yt(),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)}}}}}})),$i=d(((e,t)=>{let n=K(),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}`)}})}}}}}})),ea=d(((e,t)=>{let n=K();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`)}})}}}}})),ta=d(((e,t)=>{let{CALL:n,ReferenceTracker:r}=Re(),{isCommaToken:i,isOpeningParenToken:a,isClosingParenToken:o,isParenthesised:s}=K(),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})}}}}}})),na=d(((e,t)=>{let n=K();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))}}}}})),ra=d(((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`)}}}}})),ia=d(((e,t)=>{let n=K(),{CALL:r,CONSTRUCT:i,ReferenceTracker:a}=Re(),{RegExpValidator:o,visitRegExpAST:s,RegExpParser:c}=Yt(),{canTokensBeAdjacent:l}=K(),{REGEXPP_LATEST_ECMA_VERSION:u}=Xn();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`
|
|
72
|
+
`:case`\\
|
|
73
|
+
`: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))}}]})}}}}}})),aa=d(((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}}}})),oa=d(((e,t)=>{let n=K();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`})}}}}})),sa=d(((e,t)=>{let n=K();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}}}})),ca=d(((e,t)=>{let n=K(),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:!1,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})}}}}}})),la=d(((e,t)=>{let n=oe(),r=K(),i=Pe();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)}}}}})),ua=d(((e,t)=>{let n=K(),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)))}})}}}}})),da=d(((e,t)=>{let n=K(),r=`always`,i=new Set(Array.from({length:35},(e,t)=>t+2));function a(e){return e.defs.length>=1}function o(e){return e.type===`MemberExpression`&&!e.computed&&e.property.type===`Identifier`&&e.property.name===`parseInt`}function s(e){return!(e.type===`Literal`&&!i.has(e.value)||e.type===`Identifier`&&e.name===`undefined`)}function c(e){return e.type===`Literal`&&e.value===10}t.exports={meta:{type:`suggestion`,defaultOptions:[r],docs:{description:"Enforce the consistent 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.`,redundantRadix:`Redundant radix parameter.`,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.options,i=e.sourceCode;function l(n){let a=n.arguments;switch(a.length){case 0:e.report({node:n,messageId:`missingParameters`});break;case 1:t===r&&e.report({node:n,messageId:`missingRadix`,suggest:[{messageId:`addRadixParameter10`,fix(e){let t=i.getTokens(n),r=t.at(-1),a=t.at(-2),o=a.type===`Punctuator`&&a.value===`,`;return e.insertTextBefore(r,o?` 10,`:`, 10`)}}]});break;default:t===`as-needed`&&c(a[1])?e.report({node:n,messageId:`redundantRadix`}):s(a[1])||e.report({node:n,messageId:`invalidRadix`});break}}return{"Program:exit"(e){let t=i.getScope(e),r;r=n.getVariableByName(t,`parseInt`),r&&!a(r)&&r.references.forEach(e=>{let t=e.identifier;n.isCallee(t)&&l(t.parent)}),r=n.getVariableByName(t,`Number`),r&&!a(r)&&r.references.forEach(e=>{let t=e.identifier.parent,r=t.parent.type===`ChainExpression`?t.parent:t;o(t)&&n.isCallee(r)&&l(r.parent)})}}}}})),fa=d(((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}}))}}}}}}})),pa=d(((e,t)=>{let n=K();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)}}}}})),ma=d(((e,t)=>{let{CALL:n,CONSTRUCT:r,ReferenceTracker:i,getStringIfConstant:a}=Re(),o=K(),{isValidWithUnicodeFlag:s}=Xn();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})}}}}}})),ha=d(((e,t)=>{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=[];function n(e){e.generator&&t.push(0)}function r(n){n.generator&&t.pop()===0&&n.body.body.length>0&&e.report({node:n,messageId:`missingYield`})}return{FunctionDeclaration:n,"FunctionDeclaration:exit":r,FunctionExpression:n,"FunctionExpression:exit":r,YieldExpression(){t.length>0&&(t[t.length-1]+=1)}}}}})),ga=d(((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.isSpaceBetweenTokens(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}}}})),_a=d(((e,t)=>{let n=sn(),r=K();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}}}})),va=d(((e,t)=>{let n=K();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.isSpaceBetweenTokens(t,e)}function s(e){let t=r.getTokenAfter(e);return t&&n.isTokenOnSameLine(e,t)&&r.isSpaceBetweenTokens(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}}}})),ya=d(((e,t)=>{let n=K(),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`?`;
|
|
74
|
+
`:`
|
|
75
|
+
;`;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`)}}}}})),ba=d(((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},``))}})}}}}}})),xa=d(((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}})),Sa=d(((e,t)=>{let n=K(),r=xa();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 `:``}})}}}}})),Ca=d(((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])}}}}})),wa=d(((e,t)=>{let n=K();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.isSpaceBetweenTokens(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=d(((e,t)=>{let n=K();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.isSpaceBetweenTokens(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}}}})),Ea=d(((e,t)=>{let n=K();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.isSpaceBetweenTokens(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.isSpaceBetweenTokens(e,r)?!1:t?c(r):!c(r)}function f(e,r){return s.isSpaceBetweenTokens(e,r)||!i.empty&&n.isOpeningParenToken(e)?!1:t?!l(e):l(e)}function p(e,r){return!n.isTokenOnSameLine(e,r)||!s.isSpaceBetweenTokens(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]])}}))})}}}}})),Da=d(((e,t)=>{let{isEqToken:n}=K();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.isSpaceBetweenTokens(a,i)||!r.isSpaceBetweenTokens(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.isSpaceBetweenTokens(i,t)||!r.isSpaceBetweenTokens(t,o))&&a(e,t)}}}}})),Oa=d(((e,t)=>{let n=K();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}}}})),ka=d(((e,t)=>{let n=G(),r=K();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:a&&n?RegExp(`${s(d)}$`,`u`):RegExp(`[ ]+$`,`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)}}}}})),Aa=d(((e,t)=>{let n=K();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({node:t,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}}})),ja=d(((e,t)=>{let n=K();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.isSpaceBetweenTokens(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)})}}}}})),Ma=d(((e,t)=>{let n=K();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)})}}}}})),Na=d(((e,t)=>{let n=K();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)}}}}})),Pa=d(((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.isSpaceBetweenTokens(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}}}})),Fa=d(((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])}})}}}}})),Ia=d(((e,t)=>{let n=K();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}}})),La=d(((e,t)=>{let n=K();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`})}}}}}}})),Ra=d(((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)}}}}})),za=d(((e,t)=>{let n=K(),r=Re();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])})`)}})}}}}})),Ba=d(((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)})`)})}}}}}})),Va=d(((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.isSpaceBetweenTokens(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}}}})),Ha=d(((e,t)=>{let n=K();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))})}}}}})),Ua=d(((e,t)=>{let{LazyLoadingRuleMap:n}=H();t.exports=new n(Object.entries({"accessor-pairs":()=>ue(),"array-bracket-newline":()=>de(),"array-bracket-spacing":()=>fe(),"array-callback-return":()=>pe(),"array-element-newline":()=>me(),"arrow-body-style":()=>he(),"arrow-parens":()=>ge(),"arrow-spacing":()=>q(),"block-scoped-var":()=>_e(),"block-spacing":()=>J(),"brace-style":()=>ve(),"callback-return":()=>Y(),camelcase:()=>ye(),"capitalized-comments":()=>be(),"class-methods-use-this":()=>xe(),"comma-dangle":()=>Se(),"comma-spacing":()=>X(),"comma-style":()=>Ce(),complexity:()=>we(),"computed-property-spacing":()=>Te(),"consistent-return":()=>Ee(),"consistent-this":()=>De(),"constructor-super":()=>Oe(),curly:()=>ke(),"default-case":()=>Ae(),"default-case-last":()=>je(),"default-param-last":()=>Me(),"dot-location":()=>Ne(),"dot-notation":()=>Fe(),"eol-last":()=>Ie(),eqeqeq:()=>Le(),"for-direction":()=>ze(),"func-call-spacing":()=>Be(),"func-name-matching":()=>Ve(),"func-names":()=>He(),"func-style":()=>Ue(),"function-call-argument-newline":()=>We(),"function-paren-newline":()=>Ge(),"generator-star-spacing":()=>Ke(),"getter-return":()=>qe(),"global-require":()=>Je(),"grouped-accessor-pairs":()=>Ye(),"guard-for-in":()=>Xe(),"handle-callback-err":()=>Ze(),"id-blacklist":()=>Qe(),"id-denylist":()=>$e(),"id-length":()=>et(),"id-match":()=>tt(),"implicit-arrow-linebreak":()=>nt(),indent:()=>rt(),"indent-legacy":()=>it(),"init-declarations":()=>$(),"jsx-quotes":()=>at(),"key-spacing":()=>ot(),"keyword-spacing":()=>st(),"line-comment-position":()=>ct(),"linebreak-style":()=>lt(),"lines-around-comment":()=>ut(),"lines-around-directive":()=>dt(),"lines-between-class-members":()=>ft(),"logical-assignment-operators":()=>pt(),"max-classes-per-file":()=>mt(),"max-depth":()=>ht(),"max-len":()=>gt(),"max-lines":()=>_t(),"max-lines-per-function":()=>vt(),"max-nested-callbacks":()=>yt(),"max-params":()=>bt(),"max-statements":()=>xt(),"max-statements-per-line":()=>St(),"multiline-comment-style":()=>Ct(),"multiline-ternary":()=>wt(),"new-cap":()=>Tt(),"new-parens":()=>Et(),"newline-after-var":()=>Dt(),"newline-before-return":()=>Ot(),"newline-per-chained-call":()=>kt(),"no-alert":()=>At(),"no-array-constructor":()=>jt(),"no-async-promise-executor":()=>Mt(),"no-await-in-loop":()=>Nt(),"no-bitwise":()=>Pt(),"no-buffer-constructor":()=>Ft(),"no-caller":()=>It(),"no-case-declarations":()=>Lt(),"no-catch-shadow":()=>Rt(),"no-class-assign":()=>zt(),"no-compare-neg-zero":()=>Bt(),"no-cond-assign":()=>Vt(),"no-confusing-arrow":()=>Ht(),"no-console":()=>Ut(),"no-const-assign":()=>Wt(),"no-constant-binary-expression":()=>Gt(),"no-constant-condition":()=>Kt(),"no-constructor-return":()=>qt(),"no-continue":()=>Jt(),"no-control-regex":()=>Xt(),"no-debugger":()=>Zt(),"no-delete-var":()=>Qt(),"no-div-regex":()=>$t(),"no-dupe-args":()=>en(),"no-dupe-class-members":()=>tn(),"no-dupe-else-if":()=>nn(),"no-dupe-keys":()=>rn(),"no-duplicate-case":()=>an(),"no-duplicate-imports":()=>on(),"no-else-return":()=>cn(),"no-empty":()=>ln(),"no-empty-character-class":()=>un(),"no-empty-function":()=>dn(),"no-empty-pattern":()=>fn(),"no-empty-static-block":()=>pn(),"no-eq-null":()=>mn(),"no-eval":()=>hn(),"no-ex-assign":()=>gn(),"no-extend-native":()=>_n(),"no-extra-bind":()=>vn(),"no-extra-boolean-cast":()=>yn(),"no-extra-label":()=>bn(),"no-extra-parens":()=>xn(),"no-extra-semi":()=>Sn(),"no-fallthrough":()=>wn(),"no-floating-decimal":()=>Tn(),"no-func-assign":()=>En(),"no-global-assign":()=>Dn(),"no-implicit-coercion":()=>On(),"no-implicit-globals":()=>kn(),"no-implied-eval":()=>An(),"no-import-assign":()=>jn(),"no-inline-comments":()=>Mn(),"no-inner-declarations":()=>Nn(),"no-invalid-regexp":()=>Pn(),"no-invalid-this":()=>Fn(),"no-irregular-whitespace":()=>In(),"no-iterator":()=>Ln(),"no-label-var":()=>Rn(),"no-labels":()=>zn(),"no-lone-blocks":()=>Bn(),"no-lonely-if":()=>Vn(),"no-loop-func":()=>Hn(),"no-loss-of-precision":()=>Un(),"no-magic-numbers":()=>Wn(),"no-misleading-character-class":()=>Qn(),"no-mixed-operators":()=>$n(),"no-mixed-requires":()=>er(),"no-mixed-spaces-and-tabs":()=>tr(),"no-multi-assign":()=>nr(),"no-multi-spaces":()=>rr(),"no-multi-str":()=>ir(),"no-multiple-empty-lines":()=>ar(),"no-native-reassign":()=>or(),"no-negated-condition":()=>sr(),"no-negated-in-lhs":()=>cr(),"no-nested-ternary":()=>lr(),"no-new":()=>ur(),"no-new-func":()=>dr(),"no-new-native-nonconstructor":()=>fr(),"no-new-object":()=>pr(),"no-new-require":()=>mr(),"no-new-symbol":()=>hr(),"no-new-wrappers":()=>gr(),"no-nonoctal-decimal-escape":()=>_r(),"no-obj-calls":()=>vr(),"no-object-constructor":()=>yr(),"no-octal":()=>br(),"no-octal-escape":()=>xr(),"no-param-reassign":()=>Sr(),"no-path-concat":()=>Cr(),"no-plusplus":()=>wr(),"no-process-env":()=>Tr(),"no-process-exit":()=>Er(),"no-promise-executor-return":()=>Dr(),"no-proto":()=>Or(),"no-prototype-builtins":()=>kr(),"no-redeclare":()=>Ar(),"no-regex-spaces":()=>jr(),"no-restricted-exports":()=>Mr(),"no-restricted-globals":()=>Nr(),"no-restricted-imports":()=>Fr(),"no-restricted-modules":()=>Ir(),"no-restricted-properties":()=>Lr(),"no-restricted-syntax":()=>Rr(),"no-return-assign":()=>zr(),"no-return-await":()=>Br(),"no-script-url":()=>Vr(),"no-self-assign":()=>Hr(),"no-self-compare":()=>Ur(),"no-sequences":()=>Wr(),"no-setter-return":()=>Gr(),"no-shadow":()=>Kr(),"no-shadow-restricted-names":()=>qr(),"no-spaced-func":()=>Jr(),"no-sparse-arrays":()=>Yr(),"no-sync":()=>Xr(),"no-tabs":()=>Zr(),"no-template-curly-in-string":()=>Qr(),"no-ternary":()=>$r(),"no-this-before-super":()=>ei(),"no-throw-literal":()=>ti(),"no-trailing-spaces":()=>ni(),"no-unassigned-vars":()=>ri(),"no-undef":()=>ii(),"no-undef-init":()=>ai(),"no-undefined":()=>oi(),"no-underscore-dangle":()=>si(),"no-unexpected-multiline":()=>ci(),"no-unmodified-loop-condition":()=>ui(),"no-unneeded-ternary":()=>di(),"no-unreachable":()=>fi(),"no-unreachable-loop":()=>pi(),"no-unsafe-finally":()=>mi(),"no-unsafe-negation":()=>hi(),"no-unsafe-optional-chaining":()=>gi(),"no-unused-expressions":()=>_i(),"no-unused-labels":()=>vi(),"no-unused-private-class-members":()=>yi(),"no-unused-vars":()=>bi(),"no-use-before-define":()=>xi(),"no-useless-assignment":()=>Si(),"no-useless-backreference":()=>Ci(),"no-useless-call":()=>wi(),"no-useless-catch":()=>Ti(),"no-useless-computed-key":()=>Ei(),"no-useless-concat":()=>Di(),"no-useless-constructor":()=>Oi(),"no-useless-escape":()=>ki(),"no-useless-rename":()=>Ai(),"no-useless-return":()=>ji(),"no-var":()=>Mi(),"no-void":()=>Ni(),"no-warning-comments":()=>Pi(),"no-whitespace-before-property":()=>Fi(),"no-with":()=>Ii(),"nonblock-statement-body-position":()=>Li(),"object-curly-newline":()=>Ri(),"object-curly-spacing":()=>zi(),"object-property-newline":()=>Bi(),"object-shorthand":()=>Vi(),"one-var":()=>Hi(),"one-var-declaration-per-line":()=>Ui(),"operator-assignment":()=>Wi(),"operator-linebreak":()=>Gi(),"padded-blocks":()=>Ki(),"padding-line-between-statements":()=>qi(),"prefer-arrow-callback":()=>Ji(),"prefer-const":()=>Yi(),"prefer-destructuring":()=>Xi(),"prefer-exponentiation-operator":()=>Zi(),"prefer-named-capture-group":()=>Qi(),"prefer-numeric-literals":()=>$i(),"prefer-object-has-own":()=>ea(),"prefer-object-spread":()=>ta(),"prefer-promise-reject-errors":()=>na(),"prefer-reflect":()=>ra(),"prefer-regex-literals":()=>ia(),"prefer-rest-params":()=>aa(),"prefer-spread":()=>oa(),"prefer-template":()=>sa(),"preserve-caught-error":()=>ca(),"quote-props":()=>la(),quotes:()=>ua(),radix:()=>da(),"require-atomic-updates":()=>fa(),"require-await":()=>pa(),"require-unicode-regexp":()=>ma(),"require-yield":()=>ha(),"rest-spread-spacing":()=>ga(),semi:()=>_a(),"semi-spacing":()=>va(),"semi-style":()=>ya(),"sort-imports":()=>ba(),"sort-keys":()=>Sa(),"sort-vars":()=>Ca(),"space-before-blocks":()=>wa(),"space-before-function-paren":()=>Ta(),"space-in-parens":()=>Ea(),"space-infix-ops":()=>Da(),"space-unary-ops":()=>Oa(),"spaced-comment":()=>ka(),strict:()=>Aa(),"switch-colon-spacing":()=>ja(),"symbol-description":()=>Ma(),"template-curly-spacing":()=>Na(),"template-tag-spacing":()=>Pa(),"unicode-bom":()=>Fa(),"use-isnan":()=>Ia(),"valid-typeof":()=>La(),"vars-on-top":()=>Ra(),"wrap-iife":()=>za(),"wrap-regex":()=>Ba(),"yield-star-spacing":()=>Va(),yoda:()=>Ha()}))})),Wa=d(((e,t)=>{function n(e,t=`Assertion failed.`){if(!e)throw Error(t)}t.exports=n})),Ga=d(((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.`)}}})),Ka=d((e=>{e.search=function(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},e.getFirstIndex=function(e,t,n){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 0},e.getLastIndex=function(e,t,n){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 e.length-1}})),qa=d(((e,t)=>{let n=Ga(),r=Ka();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)}}})),Ja=d(((e,t)=>{let n=Ga(),{getLastIndex:r,getFirstIndex:i}=Ka();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}}})),Ya=d(((e,t)=>{let n=Ga();t.exports=class extends n{constructor(e){super(),this.cursor=e}moveNext(){let e=this.cursor.moveNext();return this.current=this.cursor.current,e}}})),Xa=d(((e,t)=>{let n=Ya();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}}})),Za=d(((e,t)=>{let n=Ga(),{getFirstIndex:r,search:i}=Ka();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)}}})),Qa=d(((e,t)=>{let n=Ga(),{getFirstIndex:r,getLastIndex:i}=Ka();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)}}})),$a=d(((e,t)=>{let n=Ya();t.exports=class extends n{constructor(e,t){super(e),this.count=t}moveNext(){return this.count>0?(--this.count,super.moveNext()):!1}}})),eo=d(((e,t)=>{let n=Ya();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()}}})),to=d(((e,t)=>{let n=qa(),r=Ja(),i=Xa(),a=Za(),o=Qa(),s=$a(),c=eo();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)}})),no=d(((e,t)=>{let n=Qa();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)}}})),ro=d(((e,t)=>{let{isCommentToken:n}=Re(),r=Wa(),i=to(),a=Qa(),o=no(),s=Ka(),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()}getTokenOrCommentBefore(e,t){return this.getTokenBefore(e,{includeComments:!0,skip:t})}getTokenOrCommentAfter(e,t){return this.getTokenAfter(e,{includeComments:!0,skip:t})}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})}}})),io=d(((e,t)=>{let n=S()(`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=`
|
|
76
|
+
digraph {
|
|
77
|
+
node[shape=box,style="rounded,filled",fillcolor=white];
|
|
78
|
+
initial[label="",shape=circle,style=filled,fillcolor=black,width=0.25,height=0.25];
|
|
79
|
+
`;e.returnedSegments.length>0&&(t+=`final[label="",shape=doublecircle,style=filled,fillcolor=black,width=0.25,height=0.25];
|
|
80
|
+
`),e.thrownSegments.length>0&&(t+=`thrown[label="✘",shape=circle,width=0.3,height=0.3,fixedsize=true];
|
|
81
|
+
`);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+=`"];
|
|
82
|
+
`}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};`}}})),ao=d(((e,t)=>{let n=io();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]}}})),oo=d(((e,t)=>{let n=Wa(),r=ao();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)}}})),so=d(((e,t)=>{let n=ao(),r=oo();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)}}})),co=d(((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}}})),lo=d(((e,t)=>{let n=so(),r=co();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()}}}})),uo=d(((e,t)=>{let n=Wa(),{breakableTypePattern:r}=se(),i=lo(),a=ao(),o=co(),s=io();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]))}}})),fo=d(((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()}})),po=d(((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,B,V,H,U,ee,W,te,ne,re,ie,ae,oe,G,se,ce,le,K,ue,de,fe,pe,me,he,ge,q,_e,J,ve,Y,ye,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=Y(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)}),B=X(function(e,t){return t.concat().sort(function(t,n){return e(t)>e(n)?1:e(t)<e(n)?-1:0})}),V=function(e){var t=0,n,r,i;for(n=0,r=e.length;n<r;++n)i=e[n],t+=i;return t},H=function(e){var t=1,n,r,i;for(n=0,r=e.length;n<r;++n)i=e[n],t*=i;return t},U=ee=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},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},te=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}),ie=ae=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}())}),oe=G=X(function(e,t){if(t.length)return ie(e,t[0],t.slice(1))}),se=X(function(e,t,n){return n=n.concat().reverse(),ie(e,t,n).reverse()}),ce=X(function(e,t){if(t.length)return t=t.concat().reverse(),ie(e,t[0],t.slice(1)).reverse()}),le=X(function(e,t,n){return n.slice(e,t)}),K=X(function(e,t){return e<=0?t.slice(0,0):t.slice(0,e)}),ue=X(function(e,t){return e<=0?t:t.slice(e)}),de=X(function(e,t){return[K(e,t),ue(e,t)]}),fe=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)}),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(r)}),me=X(function(e,t){return[fe(e,t),pe(e,t)]}),he=X(function(e,t){return me(Z(e,we),t)}),ge=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}),q=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}),_e=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},J=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}},ve=X(function(e,t){return e<0?t[t.length+e]:t[e]}),Y=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}),ye=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:B,sum:V,product:H,mean:U,average:ee,concat:E,concatMap:D,flatten:O,maximum:W,minimum:te,maximumBy:ne,minimumBy:re,scan:ie,scan1:oe,scanl:ae,scanl1:G,scanr:se,scanr1:ce,slice:le,take:K,drop:ue,splitAt:de,takeWhile:fe,dropWhile:pe,span:me,breakList:he,zip:ge,zipWith:q,zipAll:_e,zipAllWith:J,at:ve,elemIndex:Y,elemIndices:ye,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}})),mo=d(((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()}})),ho=d(((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(`
|
|
83
|
+
`):[]},unlines:function(e){return e.join(`
|
|
84
|
+
`)},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()}})),go=d(((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()}})),_o=d(((e,t)=>{var n,r,i,a,o,s,c,l,u,d={}.toString;n=fo(),r=po(),i=mo(),a=ho(),o=go(),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()}})),vo=d(((e,t)=>{(function(){var e=_o().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)})),yo=d(((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)})),bo=d(((e,t)=>{(function(){var e,n,r,i,a,o,s={}.toString;e=_o(),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)})),xo=d(((e,t)=>{(function(){var e=`0.4.0`,n=yo(),r=bo();t.exports={VERSION:e,typeCheck:function(e,t,i){return r(n(e),t,i)},parsedTypeCheck:r,parseType:n}}).call(e)})),So=d(((e,t)=>{(function(){var e,n,r={}.toString;e=xo().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`
|
|
85
|
+
`;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)})),Co=d(((e,t)=>{(function(){var e=vo(),n=So(),r=xo().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)})),wo=d((e=>{var t=Co();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})),To=d((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)})),Eo=d(((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`]}}})),Do=d((e=>{(function(){var t=To();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=Eo().version,e.Visitor=i,e.visit=function(e,t,n){new i(t,n).visit(e)}})()})),Oo=d((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=To(),n=Do();function r(e){return e&&typeof e==`object`&&`default`in e?e:{default:e}}var i=r(t),a=r(n);function o(e,t=`Assertion failed.`){if(!e)throw Error(t)}var s=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}};s.READ=1,s.WRITE=2,s.RW=3;var c=class{constructor(e,t){this.name=e,this.identifiers=[],this.references=[],this.defs=[],this.tainted=!1,this.stack=!0,this.scope=t}};c.CatchClause=`CatchClause`,c.Parameter=`Parameter`,c.FunctionName=`FunctionName`,c.ClassName=`ClassName`,c.Variable=`Variable`,c.ImportBinding=`ImportBinding`,c.ImplicitGlobalVariable=`ImplicitGlobalVariable`;var l=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}},u=class extends l{constructor(e,t,n,r){super(c.Parameter,e,t,null,n,null),this.rest=r}};let{Syntax:d}=i.default;function f(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===d.ArrowFunctionExpression&&t.body.type!==d.BlockStatement||(r=t.type===d.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 p(e,t){e.scopes.push(t);let n=e.__nodeToScope.get(t.block);n?n.push(t):e.__nodeToScope.set(t.block,[t])}function m(e){return e.type===c.ClassName||e.type===c.Variable&&e.parent.kind!==`var`}var h=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()?f(this,r,i):!1,this.childScopes=[],this.upper&&this.upper.childScopes.push(this),this.__declaredVariables=e.__declaredVariables,p(e,this)}__shouldStaticallyClose(e){return!this.dynamic||e.__isOptimistic()}__shouldStaticallyCloseForGlobal(e){let t=e.identifier.name;if(!this.set.has(t))return!1;let n=this.set.get(t).defs;return n.length>0&&n.every(m)}__staticCloseRef(e){this.__resolve(e)||this.__delegateToUpperScope(e)}__dynamicCloseRef(e){let t=this;do t.through.push(e),t=t.upper;while(t)}__globalCloseRef(e){this.__shouldStaticallyCloseForGlobal(e)?this.__staticCloseRef(e):this.__dynamicCloseRef(e)}__close(e){let t;t=this.__shouldStaticallyClose(e)?this.__staticCloseRef:this.type===`global`?this.__globalCloseRef: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 a;a=t.get(e),a||(a=new c(e,this),t.set(e,a),n.push(a)),i&&(a.defs.push(i),this.__addDeclaredVariablesOfNode(a,i.node),this.__addDeclaredVariablesOfNode(a,i.parent)),r&&a.identifiers.push(r)}__define(e,t){e&&e.type===d.Identifier&&this.__defineGeneric(e.name,this.set,this.variables,e,t)}__referencing(e,t,n,r,i,a){if(!e||e.type!==d.Identifier&&e.type!==`JSXIdentifier`||e.name===`super`)return;let o=new s(e,this,t||s.READ,n,r,!!i,!!a);this.references.push(o),this.__left.push(o)}__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,r;for(o(this.__isClosed(),`Scope should be closed.`),o(e.type===d.Identifier,`Target should be identifier.`),n=0,r=this.references.length;n<r;++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}},g=class extends h{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 l(c.ImplicitGlobalVariable,n.pattern,n.node,null,null,null))}return this.implicit.left=this.__left,super.__close(e)}__defineImplicit(e,t){e&&e.type===d.Identifier&&this.__defineGeneric(e.name,this.implicit.set,this.implicit.variables,e,t)}},_=class extends h{constructor(e,t,n){super(e,`module`,t,n,!1)}},v=class extends h{constructor(e,t,n){super(e,`function-expression-name`,t,n,!1),this.__define(n.id,new l(c.FunctionName,n.id,n,null,null,null)),this.functionExpressionScope=!0}},y=class extends h{constructor(e,t,n){super(e,`catch`,t,n,!1)}},b=class extends h{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}},x=class extends h{constructor(e,t,n){super(e,`block`,t,n,!1)}},S=class extends h{constructor(e,t,n){super(e,`switch`,t,n,!1)}},C=class extends h{constructor(e,t,n,r){super(e,`function`,t,n,r),this.block.type!==d.ArrowFunctionExpression&&this.__defineArguments()}isArgumentsMaterialized(){if(this.block.type===d.ArrowFunctionExpression)return!1;if(!this.isStatic())return!0;let e=this.set.get(`arguments`);return o(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))}},w=class extends h{constructor(e,t,n){super(e,`for`,t,n,!1)}},T=class extends h{constructor(e,t,n){super(e,`class`,t,n,!1)}},E=class extends h{constructor(e,t,n){super(e,`class-field-initializer`,t,n,!0)}},D=class extends h{constructor(e,t,n){super(e,`class-static-block`,t,n,!0)}},O=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}attach(){}detach(){}__nestScope(e){return e instanceof g&&(o(this.__currentScope===null),this.globalScope=e),this.__currentScope=e,e}__nestGlobalScope(e){return this.__nestScope(new g(this,e))}__nestBlockScope(e){return this.__nestScope(new x(this,this.__currentScope,e))}__nestFunctionScope(e,t){return this.__nestScope(new C(this,this.__currentScope,e,t))}__nestForScope(e){return this.__nestScope(new w(this,this.__currentScope,e))}__nestCatchScope(e){return this.__nestScope(new y(this,this.__currentScope,e))}__nestWithScope(e){return this.__nestScope(new b(this,this.__currentScope,e))}__nestClassScope(e){return this.__nestScope(new T(this,this.__currentScope,e))}__nestClassFieldInitializerScope(e){return this.__nestScope(new E(this,this.__currentScope,e))}__nestClassStaticBlockScope(e){return this.__nestScope(new D(this,this.__currentScope,e))}__nestSwitchScope(e){return this.__nestScope(new S(this,this.__currentScope,e))}__nestModuleScope(e){return this.__nestScope(new _(this,this.__currentScope,e))}__nestFunctionExpressionNameScope(e){return this.__nestScope(new v(this,this.__currentScope,e))}__isES6(){return this.__options.ecmaVersion>=6}};let{Syntax:k}=i.default;function A(e){return e.at(-1)||null}var j=class extends a.default.Visitor{static isPattern(e){let t=e.type;return t===k.Identifier||t===k.ObjectPattern||t===k.ArrayPattern||t===k.SpreadElement||t===k.RestElement||t===k.AssignmentPattern}constructor(e,t,n){super(null,e),this.rootPattern=t,this.callback=n,this.assignments=[],this.rightHandNodes=[],this.restElements=[]}Identifier(e){let t=A(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:M}=i.default;function N(e,t,n,r){let i=new j(e,t,r);i.visit(t),n!=null&&i.rightHandNodes.forEach(n.visit,n)}var P=class extends a.default.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 l(c.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)}},F=class extends a.default.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 i=this.currentScope();t.forEach(t=>{i.__referencing(e,s.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}),N(this.options,e,r.processRightHandNodes?this:null,i)}visitFunction(e){let t,n;e.type===M.FunctionDeclaration&&this.currentScope().__define(e.id,new l(c.FunctionName,e.id,e,null,null,null)),e.type===M.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 u(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 u(t,e,e.params.length,!0))}),e.body&&(e.body.type===M.BlockStatement?this.visitChildren(e.body):this.visit(e.body)),this.close(e)}visitClass(e){e.type===M.ClassDeclaration&&this.currentScope().__define(e.id,new l(c.ClassName,e.id,e,null,null,null)),this.scopeManager.__nestClassScope(e),e.id&&this.currentScope().__define(e.id,new l(c.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===M.MethodDefinition;n&&(t=this.pushInnerMethodDefinition(!0)),this.visit(e.value),n&&this.popInnerMethodDefinition(t)}visitForIn(e){e.left.type===M.VariableDeclaration&&e.left.kind!==`var`&&this.scopeManager.__nestForScope(e),e.left.type===M.VariableDeclaration?(this.visit(e.left),this.visitPattern(e.left.declarations[0].id,t=>{this.currentScope().__referencing(t,s.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,s.WRITE,e.right,r,!0,!1)}),this.visit(e.right),this.visit(e.body),this.close(e)}visitVariableDeclaration(e,t,n,r){let i=n.declarations[r],a=i.init;this.visitPattern(i.id,{processRightHandNodes:!0},(o,c)=>{e.__define(o,new l(t,o,i,n,r,n.kind)),this.referencingDefaultValue(o,c.assignments,null,!0),a&&this.currentScope().__referencing(o,s.WRITE,a,null,!c.topLevel,!0)})}AssignmentExpression(e){j.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,s.WRITE,e.right,r,!n.topLevel,!1)}):this.currentScope().__referencing(e.left,s.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 l(c.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){j.isPattern(e.argument)?this.currentScope().__referencing(e.argument,s.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===M.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===M.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,c.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){o(this.scopeManager.__isES6()&&this.scopeManager.isModule(),`ImportDeclaration should appear when the mode is ES6 and in the module context.`),new P(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 I(){return{optimistic:!1,nodejsScope:!1,impliedStrict:!1,sourceType:`script`,ecmaVersion:5,childVisitorKeys:null,fallback:`iteration`}}function L(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])?L(e[r],i):e[r]=L({},i):e[r]=i}return e}function R(e,t){let n=L(I(),t),r=new O(n);return new F(n,r).visit(e),o(r.__currentScope===null,`currentScope should be null.`),r}e.Definition=l,e.PatternVisitor=j,e.Reference=s,e.Referencer=F,e.Scope=h,e.ScopeManager=O,e.Variable=c,e.analyze=R,e.version=`8.4.0`})),ko=d(((e,t)=>{let{isCommentToken:n}=Re(),r=ro(),i=se(),a=li(),o=ce(),{directivesPattern:s}=Cn(),c=uo(),{ConfigCommentParser:l,VisitNodeStep:u,CallMethodStep:d,Directive:f}=wo(),p=Oo(),m=new l;function h(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 g(e){switch(e){case 3:return o.es3;case 5:return o.es5;default:return e<2015?o[`es${e+2009}`]:o[`es${e}`]}}function _(e){return e.type===`ExportDefaultDeclaration`||e.type===`ExportNamedDeclaration`||e.type===`ExportAllDeclaration`||e.type===`ExportSpecifier`}function v(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 y(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 b(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 x(e,t,n,r){if(b(t,n))return!1;let[i,a]=t.range[1]<=n.range[0]?[t,n]:[n,t],o=e.getLastToken(i)||i,s=e.getFirstToken(a)||a,c=o;for(;c!==s;){let t=e.getTokenAfter(c,{includeComments:!0});if(c.range[1]!==t.range[0]||r&&t!==s&&t.type===`JSXText`&&/\s/u.test(t.value))return!0;c=t}return!1}function S(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 C(e,t={},n={}){for(let r of new Set([...Object.keys(t),...Object.keys(n)])){let i=t[r]===void 0?void 0:y(t[r]),a=n[r]&&n[r].value||i,o=n[r]&&n[r].comments;if(a===`off`)continue;let s=e.set.get(r);s||(s=new p.Variable(r,e),e.variables.push(s),e.set.set(r,s)),s.eslintImplicitGlobalSetting=i,s.eslintExplicitGlobal=o!==void 0,s.eslintExplicitGlobalComments=o,s.writeable=a===`writable`}e.through=e.through.filter(t=>{let n=t.identifier.name,r=e.set.get(n);return r?(t.resolved=r,r.references.push(t),!1):!0});let{implicit:r}=e;typeof r==`object`&&r&&(r.variables=r.variables.filter(t=>{let n=t.name;return e.set.has(n)?(r.set.delete(n),!1):!0}),r.left&&=r.left.filter(t=>!e.set.has(t.identifier.name)))}function w(e,t){Object.keys(t).forEach(t=>{let n=e.set.get(t);n&&(n.eslintUsed=!0,n.eslintExported=!0)})}let T=Symbol(`caches`);t.exports=class extends r{#e;constructor(e,t){let n,r,o,s,c,l;typeof e==`string`?(n=e,o=t,r=!1):typeof e==`object`&&e&&(n=e.text,o=e.ast,r=e.hasBOM,s=e.parserServices,c=e.scopeManager,l=e.visitorKeys),h(o),super(o.tokens,o.comments),this[T]=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||!!r,this.text=u?n.slice(1):n,this.ast=o,this.parserServices=s||{},this.scopeManager=c||null,this.visitorKeys=l||a.DEFAULT_VISITOR_KEYS;let d=this.text.match(i.shebangPattern);d&&o.comments.length&&o.comments[0].value===d[1]&&(o.comments[0].type=`Shebang`),this.tokensAndComments=v(o.tokens,o.comments),this.lines=[],this.lineStartIndices=[0];let f=i.createGlobalLinebreakMatcher(),p;for(;p=f.exec(this.text);)this.lines.push(this.text.slice(this.lineStartIndices.at(-1),p.index)),this.lineStartIndices.push(p.index+p[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(i.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}getJSDocComment(e){let t=e=>{let t=this.getTokenBefore(e,{includeComments:!0});return t&&n(t)&&t.type===`Block`&&t.value.charAt(0)===`*`&&e.loc.start.line-t.loc.end.line<=1?t:null},r=e.parent;switch(e.type){case`ClassDeclaration`:case`FunctionDeclaration`:return t(_(r)?r:e);case`ClassExpression`:return t(r.parent);case`ArrowFunctionExpression`:case`FunctionExpression`:if(r.type!==`CallExpression`&&r.type!==`NewExpression`){for(;!this.getCommentsBefore(r).length&&!/Function/u.test(r.type)&&r.type!==`MethodDefinition`&&r.type!==`Property`&&(r=r.parent,r););if(r&&r.type!==`FunctionDeclaration`&&r.type!==`Program`)return t(r)}return t(e);default:return null}}getNodeByRangeIndex(e){let t=null;return a.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){return x(this,e,t,!1)}isSpaceBetweenTokens(e,t){return x(this,e,t,!0)}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:S(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[T].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[T].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[T].get(`configNodes`);return e||(e=this.ast.comments.filter(e=>{if(e.type===`Shebang`)return!1;let t=m.parseDirective(e.value);return!t||!s.test(t.label)?!1:e.type!==`Line`||!!/^eslint-disable-(?:next-)?line$/u.test(t.label)}),this[T].set(`configNodes`,e),e)}getDisableDirectives(){let e=this[T].get(`disableDirectives`);if(e)return e;let t=[],n=[];this.getInlineConfigNodes().forEach(e=>{let{label:r,value:i,justification:a}=m.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 f({type:t,node:e,value:i,justification:a}))}}}});let r={problems:t,directives:n};return this[T].set(`disableDirectives`,r),r}applyLanguageOptions(e){let t=Object.assign(Object.create(null),g(e.ecmaVersion),e.sourceType===`commonjs`?o.commonjs:void 0,e.globals);this[T].get(`vars`).set(`configGlobals`,t)}applyInlineConfig(){let e=[],t=[],n={},r=Object.create(null);this.getInlineConfigNodes().forEach(i=>{let{label:a,value:o}=m.parseDirective(i.value);switch(a){case`exported`:Object.assign(n,m.parseListConfig(o));break;case`globals`:case`global`:for(let[t,n]of Object.entries(m.parseStringConfig(o))){let a;try{a=y(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=m.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}}});let i=this[T].get(`vars`);return i.set(`inlineGlobals`,r),i.set(`exportedVariables`,n),{configs:t,problems:e}}finalize(){let e=this[T].get(`vars`),t=e.get(`configGlobals`),n=e.get(`inlineGlobals`),r=e.get(`exportedVariables`),i=this.scopeManager.scopes[0];C(i,t,n),r&&w(i,r)}traverse(){if(this.#e)return this.#e;let e=this.#e=[],t={enterNode(t){e.push(new u({target:t,phase:1,args:[t]}))},leaveNode(t){e.push(new u({target:t,phase:2,args:[t]}))},emit(t,n){e.push(new d({target:t,args:n}))}};return this.isESTree&&(t=new c(t)),a.traverse(this.ast,{enter(e,n){e.parent=n,t.enterNode(e)},leave(e){t.leaveNode(e)},visitorKeys:this.visitorKeys}),e}}})),Ao=d(((e,t)=>{t.exports={SourceCode:ko()}})),jo=d(((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}})),Mo=d(((e,t)=>{let{SourceCode:n}=Ao(),r=S(),i=se(),a=oe(),o=Oo(),s=U(),{validateLanguageOptions:c}=jo(),{LATEST_ECMA_VERSION:l}=le(),u=r(`eslint:languages:js`),d=Symbol.for(`eslint.RuleTester.parser`);function f(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})}function p(e){return e===a||e[d]===a}function m(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=m(e.ecmaVersion),p(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,raw:!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
|
|
86
|
+
%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||f(s,r,l);return u(`Scope analysis successful:`,a),new n({text:i,ast:s,hasBOM:o,parserServices:c,scopeManager:d,visitorKeys:l})}}})),No=d((e=>{let t=Ua(),n=[{files:[`**/*.js`,`**/*.mjs`]},{files:[`**/*.cjs`],languageOptions:{sourceType:`commonjs`,ecmaVersion:`latest`}}];e.defaultConfig=Object.freeze([{plugins:{"@":{languages:{js:Mo()},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])})),Po=d(((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}})),Fo=d(((e,t)=>{let{startTime:n,endTime:r}=Po();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(`
|
|
87
|
+
`))}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}})()})),Io=d(((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}})),Lo=d(((e,t)=>{var n=Io(),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)}})),Ro=d(((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})()})),zo=d(((e,t)=>{let n=Ro();function r(e){return n(e).result().toString(36)}t.exports=r})),Bo=d(((e,t)=>{t.exports=function(e,t){for(var r=[],i=0;i<e.length;i++){var a=t(e[i],i);n(a)?r.push.apply(r,a):r.push(a)}return r};var n=Array.isArray||function(e){return Object.prototype.toString.call(e)===`[object Array]`}})),Vo=d(((e,t)=>{t.exports=n;function n(e,t,n){e instanceof RegExp&&(e=r(e,n)),t instanceof RegExp&&(t=r(t,n));var a=i(e,t,n);return a&&{start:a[0],end:a[1],pre:n.slice(0,a[0]),body:n.slice(a[0]+e.length,a[1]),post:n.slice(a[1]+t.length)}}function r(e,t){var n=t.match(e);return n?n[0]:null}n.range=i;function i(e,t,n){var 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;)u==c?(r.push(u),c=n.indexOf(e,u+1)):r.length==1?s=[r.pop(),l]:(i=r.pop(),i<a&&(a=i,o=l),l=n.indexOf(t,u+1)),u=c<l&&c>=0?c:l;r.length&&(s=[a,o])}return s}})),Ho=d(((e,t)=>{var n=Bo(),r=Vo();t.exports=p;var i=`\0SLASH`+Math.random()+`\0`,a=`\0OPEN`+Math.random()+`\0`,o=`\0CLOSE`+Math.random()+`\0`,s=`\0COMMA`+Math.random()+`\0`,c=`\0PERIOD`+Math.random()+`\0`;function l(e){return parseInt(e,10)==e?parseInt(e,10):e.charCodeAt(0)}function u(e){return e.split(`\\\\`).join(i).split(`\\{`).join(a).split(`\\}`).join(o).split(`\\,`).join(s).split(`\\.`).join(c)}function d(e){return e.split(i).join(`\\`).split(a).join(`{`).split(o).join(`}`).split(s).join(`,`).split(c).join(`.`)}function f(e){if(!e)return[``];var t=[],n=r(`{`,`}`,e);if(!n)return e.split(`,`);var i=n.pre,a=n.body,o=n.post,s=i.split(`,`);s[s.length-1]+=`{`+a+`}`;var c=f(o);return o.length&&(s[s.length-1]+=c.shift(),s.push.apply(s,c)),t.push.apply(t,s),t}function p(e){return e?(e.substr(0,2)===`{}`&&(e=`\\{\\}`+e.substr(2)),v(u(e),!0).map(d)):[]}function m(e){return`{`+e+`}`}function h(e){return/^-?0\d/.test(e)}function g(e,t){return e<=t}function _(e,t){return e>=t}function v(e,t){var i=[],a=r(`{`,`}`,e);if(!a||/\$$/.test(a.pre))return[e];var s=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(a.body),c=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(a.body),u=s||c,d=a.body.indexOf(`,`)>=0;if(!u&&!d)return a.post.match(/,(?!,).*\}/)?(e=a.pre+`{`+a.body+o+a.post,v(e)):[e];var p;if(u)p=a.body.split(/\.\./);else if(p=f(a.body),p.length===1&&(p=v(p[0],!1).map(m),p.length===1)){var y=a.post.length?v(a.post,!1):[``];return y.map(function(e){return a.pre+p[0]+e})}var b=a.pre,y=a.post.length?v(a.post,!1):[``],x;if(u){var S=l(p[0]),C=l(p[1]),w=Math.max(p[0].length,p[1].length),T=p.length==3?Math.abs(l(p[2])):1,E=g;C<S&&(T*=-1,E=_);var D=p.some(h);x=[];for(var O=S;E(O,C);O+=T){var k;if(c)k=String.fromCharCode(O),k===`\\`&&(k=``);else if(k=String(O),D){var A=w-k.length;if(A>0){var j=Array(A+1).join(`0`);k=O<0?`-`+j+k.slice(1):j+k}}x.push(k)}}else x=n(p,function(e){return v(e,!1)});for(var M=0;M<x.length;M++)for(var N=0;N<y.length;N++){var P=b+x[M]+y[N];(!t||u||P)&&i.push(P)}return i}})),Uo=d(((e,t)=>{t.exports=g,g.Minimatch=_;var n=function(){try{return h(`path`)}catch{}}()||{sep:`/`};g.sep=n.sep;var r=g.GLOBSTAR=_.GLOBSTAR={},i=Ho(),a={"!":{open:`(?:(?!(?:`,close:`))[^/]*?)`},"?":{open:`(?:`,close:`)?`},"+":{open:`(?:`,close:`)+`},"*":{open:`(?:`,close:`)*`},"@":{open:`(?:`,close:`)`}},o=`[^/]`,s=o+`*?`,c=`(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?`,l=`(?:(?!(?:\\/|^)\\.).)*?`,u=d(`().*{}+?[]^$\\!`);function d(e){return e.split(``).reduce(function(e,t){return e[t]=!0,e},{})}var f=/\/+/;g.filter=p;function p(e,t){return t||={},function(n,r,i){return g(n,e,t)}}function m(e,t){t||={};var n={};return Object.keys(e).forEach(function(t){n[t]=e[t]}),Object.keys(t).forEach(function(e){n[e]=t[e]}),n}g.defaults=function(e){if(!e||typeof e!=`object`||!Object.keys(e).length)return g;var t=g,n=function(n,r,i){return t(n,r,m(e,i))};return n.Minimatch=function(n,r){return new t.Minimatch(n,m(e,r))},n.Minimatch.defaults=function(n){return t.defaults(m(e,n)).Minimatch},n.filter=function(n,r){return t.filter(n,m(e,r))},n.defaults=function(n){return t.defaults(m(e,n))},n.makeRe=function(n,r){return t.makeRe(n,m(e,r))},n.braceExpand=function(n,r){return t.braceExpand(n,m(e,r))},n.match=function(n,r,i){return t.match(n,r,m(e,i))},n},_.defaults=function(e){return g.defaults(e).Minimatch};function g(e,t,n){return S(t),n||={},!n.nocomment&&t.charAt(0)===`#`?!1:new _(t,n).match(e)}function _(e,t){if(!(this instanceof _))return new _(e,t);S(e),t||={},e=e.trim(),!t.allowWindowsEscape&&n.sep!==`/`&&(e=e.split(n.sep).join(`/`)),this.options=t,this.set=[],this.pattern=e,this.regexp=null,this.negate=!1,this.comment=!1,this.empty=!1,this.partial=!!t.partial,this.make()}_.prototype.debug=function(){},_.prototype.make=v;function v(){var e=this.pattern,t=this.options;if(!t.nocomment&&e.charAt(0)===`#`){this.comment=!0;return}if(!e){this.empty=!0;return}this.parseNegate();var n=this.globSet=this.braceExpand();t.debug&&(this.debug=function(){console.error.apply(console,arguments)}),this.debug(this.pattern,n),n=this.globParts=n.map(function(e){return e.split(f)}),this.debug(this.pattern,n),n=n.map(function(e,t,n){return e.map(this.parse,this)},this),this.debug(this.pattern,n),n=n.filter(function(e){return e.indexOf(!1)===-1}),this.debug(this.pattern,n),this.set=n}_.prototype.parseNegate=y;function y(){var e=this.pattern,t=!1,n=this.options,r=0;if(!n.nonegate){for(var i=0,a=e.length;i<a&&e.charAt(i)===`!`;i++)t=!t,r++;r&&(this.pattern=e.substr(r)),this.negate=t}}g.braceExpand=function(e,t){return b(e,t)},_.prototype.braceExpand=b;function b(e,t){return t||=this instanceof _?this.options:{},e=e===void 0?this.pattern:e,S(e),t.nobrace||!/\{(?:(?!\{).)*\}/.test(e)?[e]:i(e)}var x=1024*64,S=function(e){if(typeof e!=`string`)throw TypeError(`invalid pattern`);if(e.length>x)throw TypeError(`pattern is too long`)};_.prototype.parse=w;var C={};function w(e,t){S(e);var n=this.options;if(e===`**`)if(n.noglobstar)e=`*`;else return r;if(e===``)return``;var i=``,c=!!n.nocase,l=!1,d=[],f=[],p,m=!1,h=-1,g=-1,_=e.charAt(0)===`.`?``:n.dot?`(?!(?:^|\\/)\\.{1,2}(?:$|\\/))`:`(?!\\.)`,v=this;function y(){if(p){switch(p){case`*`:i+=s,c=!0;break;case`?`:i+=o,c=!0;break;default:i+=`\\`+p;break}v.debug(`clearStateChar %j %j`,p,i),p=!1}}for(var b=0,x=e.length,w;b<x&&(w=e.charAt(b));b++){if(this.debug(`%s %s %s %j`,e,b,i,w),l&&u[w]){i+=`\\`+w,l=!1;continue}switch(w){case`/`:return!1;case`\\`:y(),l=!0;continue;case`?`:case`*`:case`+`:case`@`:case`!`:if(this.debug(`%s %s %s %j <-- stateChar`,e,b,i,w),m){this.debug(` in class`),w===`!`&&b===g+1&&(w=`^`),i+=w;continue}v.debug(`call clearStateChar %j`,p),y(),p=w,n.noext&&y();continue;case`(`:if(m){i+=`(`;continue}if(!p){i+=`\\(`;continue}d.push({type:p,start:b-1,reStart:i.length,open:a[p].open,close:a[p].close}),i+=p===`!`?`(?:(?!(?:`:`(?:`,this.debug(`plType %j %j`,p,i),p=!1;continue;case`)`:if(m||!d.length){i+=`\\)`;continue}y(),c=!0;var T=d.pop();i+=T.close,T.type===`!`&&f.push(T),T.reEnd=i.length;continue;case`|`:if(m||!d.length||l){i+=`\\|`,l=!1;continue}y(),i+=`|`;continue;case`[`:if(y(),m){i+=`\\`+w;continue}m=!0,g=b,h=i.length,i+=w;continue;case`]`:if(b===g+1||!m){i+=`\\`+w,l=!1;continue}var D=e.substring(g+1,b);try{RegExp(`[`+D+`]`)}catch{var O=this.parse(D,C);i=i.substr(0,h)+`\\[`+O[0]+`\\]`,c||=O[1],m=!1;continue}c=!0,m=!1,i+=w;continue;default:y(),l?l=!1:u[w]&&!(w===`^`&&m)&&(i+=`\\`),i+=w}}for(m&&(D=e.substr(g+1),O=this.parse(D,C),i=i.substr(0,h)+`\\[`+O[0],c||=O[1]),T=d.pop();T;T=d.pop()){var k=i.slice(T.reStart+T.open.length);this.debug(`setting tail`,i,T),k=k.replace(/((?:\\{2}){0,64})(\\?)\|/g,function(e,t,n){return n||=`\\`,t+t+n+`|`}),this.debug(`tail=%j
|
|
88
|
+
%s`,k,k,T,i);var A=T.type===`*`?s:T.type===`?`?o:`\\`+T.type;c=!0,i=i.slice(0,T.reStart)+A+`\\(`+k}y(),l&&(i+=`\\\\`);var j=!1;switch(i.charAt(0)){case`[`:case`.`:case`(`:j=!0}for(var M=f.length-1;M>-1;M--){var N=f[M],P=i.slice(0,N.reStart),F=i.slice(N.reStart,N.reEnd-8),I=i.slice(N.reEnd-8,N.reEnd),L=i.slice(N.reEnd);I+=L;var R=P.split(`(`).length-1,z=L;for(b=0;b<R;b++)z=z.replace(/\)[+*?]?/,``);L=z;var B=``;L===``&&t!==C&&(B=`$`),i=P+F+L+B+I}if(i!==``&&c&&(i=`(?=.)`+i),j&&(i=_+i),t===C)return[i,c];if(!c)return E(e);var V=n.nocase?`i`:``;try{var H=RegExp(`^`+i+`$`,V)}catch{return RegExp(`$.`)}return H._glob=e,H._src=i,H}g.makeRe=function(e,t){return new _(e,t||{}).makeRe()},_.prototype.makeRe=T;function T(){if(this.regexp||this.regexp===!1)return this.regexp;var e=this.set;if(!e.length)return this.regexp=!1,this.regexp;var t=this.options,n=t.noglobstar?s:t.dot?c:l,i=t.nocase?`i`:``,a=e.map(function(e){return e.map(function(e){return e===r?n:typeof e==`string`?D(e):e._src}).join(`\\/`)}).join(`|`);a=`^(?:`+a+`)$`,this.negate&&(a=`^(?!`+a+`).*$`);try{this.regexp=new RegExp(a,i)}catch{this.regexp=!1}return this.regexp}g.match=function(e,t,n){n||={};var r=new _(t,n);return e=e.filter(function(e){return r.match(e)}),r.options.nonull&&!e.length&&e.push(t),e},_.prototype.match=function(e,t){if(t===void 0&&(t=this.partial),this.debug(`match`,e,this.pattern),this.comment)return!1;if(this.empty)return e===``;if(e===`/`&&t)return!0;var r=this.options;n.sep!==`/`&&(e=e.split(n.sep).join(`/`)),e=e.split(f),this.debug(this.pattern,`split`,e);var i=this.set;this.debug(this.pattern,`set`,i);var a,o;for(o=e.length-1;o>=0&&(a=e[o],!a);o--);for(o=0;o<i.length;o++){var s=i[o],c=e;if(r.matchBase&&s.length===1&&(c=[a]),this.matchOne(c,s,t))return r.flipNegate?!0:!this.negate}return r.flipNegate?!1:this.negate},_.prototype.matchOne=function(e,t,n){var i=this.options;this.debug(`matchOne`,{this:this,file:e,pattern:t}),this.debug(`matchOne`,e.length,t.length);for(var a=0,o=0,s=e.length,c=t.length;a<s&&o<c;a++,o++){this.debug(`matchOne loop`);var l=t[o],u=e[a];if(this.debug(t,l,u),l===!1)return!1;if(l===r){this.debug(`GLOBSTAR`,[t,l,u]);var d=a,f=o+1;if(f===c){for(this.debug(`** at the end`);a<s;a++)if(e[a]===`.`||e[a]===`..`||!i.dot&&e[a].charAt(0)===`.`)return!1;return!0}for(;d<s;){var p=e[d];if(this.debug(`
|
|
89
|
+
globstar while`,e,d,t,f,p),this.matchOne(e.slice(d),t.slice(f),n))return this.debug(`globstar found match!`,d,s,p),!0;if(p===`.`||p===`..`||!i.dot&&p.charAt(0)===`.`){this.debug(`dot detected!`,e,d,t,f);break}this.debug(`globstar swallow a segment, and continue`),d++}return!!(n&&(this.debug(`
|
|
90
|
+
>>> no match, partial?`,e,d,t,f),d===s))}var m;if(typeof l==`string`?(m=u===l,this.debug(`string match`,l,u,m)):(m=u.match(l),this.debug(`pattern match`,l,u,m)),!m)return!1}if(a===s&&o===c)return!0;if(a===s)return n;if(o===c)return a===s-1&&e[a]===``;throw Error(`wtf?`)};function E(e){return e.replace(/\\(.)/g,`$1`)}function D(e){return e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,`\\$&`)}})),Wo=d(((e,t)=>{var n=Lo(),r=h(`path`).posix.dirname,i=h(`os`).platform()===`win32`,a=`/`,o=/\\/g,s=/\\([!*?|[\](){}])/g;t.exports=function(e,t){Object.assign({flipBackslashes:!0},t).flipBackslashes&&i&&e.indexOf(a)<0&&(e=e.replace(o,a)),c(e)&&(e+=a),e+=`a`;do e=r(e);while(l(e));return e.replace(s,`$1`)};function c(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(a)}function l(e){return/\([^()]+$/.test(e)||e[0]===`{`||e[0]===`[`||/[^\\][{[]/.test(e)?!0:n(e)}})),Go=d(((e,t)=>{var n=200,r=`__lodash_hash_undefined__`,i=800,a=16,o=9007199254740991,s=`[object Arguments]`,c=`[object Array]`,l=`[object AsyncFunction]`,u=`[object Boolean]`,d=`[object Date]`,f=`[object Error]`,p=`[object Function]`,m=`[object GeneratorFunction]`,h=`[object Map]`,g=`[object Number]`,_=`[object Null]`,v=`[object Object]`,y=`[object Proxy]`,b=`[object RegExp]`,x=`[object Set]`,S=`[object String]`,C=`[object Undefined]`,w=`[object WeakMap]`,T=`[object ArrayBuffer]`,E=`[object DataView]`,D=`[object Float32Array]`,O=`[object Float64Array]`,k=`[object Int8Array]`,A=`[object Int16Array]`,j=`[object Int32Array]`,M=`[object Uint8Array]`,N=`[object Uint8ClampedArray]`,P=`[object Uint16Array]`,F=`[object Uint32Array]`,I=/[\\^$.*+?()[\]{}|]/g,L=/^\[object .+?Constructor\]$/,R=/^(?:0|[1-9]\d*)$/,z={};z[D]=z[O]=z[k]=z[A]=z[j]=z[M]=z[N]=z[P]=z[F]=!0,z[s]=z[c]=z[T]=z[u]=z[E]=z[d]=z[f]=z[p]=z[h]=z[g]=z[v]=z[b]=z[x]=z[S]=z[w]=!1;var B=typeof global==`object`&&global&&global.Object===Object&&global,V=typeof self==`object`&&self&&self.Object===Object&&self,H=B||V||Function(`return this`)(),U=typeof e==`object`&&e&&!e.nodeType&&e,ee=U&&typeof t==`object`&&t&&!t.nodeType&&t,W=ee&&ee.exports===U,te=W&&B.process,ne=function(){try{return ee&&ee.require&&ee.require(`util`).types||te&&te.binding&&te.binding(`util`)}catch{}}(),re=ne&&ne.isTypedArray;function ie(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function ae(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function oe(e){return function(t){return e(t)}}function G(e,t){return e?.[t]}function se(e,t){return function(n){return e(t(n))}}var ce=Array.prototype,le=Function.prototype,K=Object.prototype,ue=H[`__core-js_shared__`],de=le.toString,fe=K.hasOwnProperty,pe=function(){var e=/[^.]+$/.exec(ue&&ue.keys&&ue.keys.IE_PROTO||``);return e?`Symbol(src)_1.`+e:``}(),me=K.toString,he=de.call(Object),ge=RegExp(`^`+de.call(fe).replace(I,`\\$&`).replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,`$1.*?`)+`$`),q=W?H.Buffer:void 0,_e=H.Symbol,J=H.Uint8Array,ve=q?q.allocUnsafe:void 0,Y=se(Object.getPrototypeOf,Object),ye=Object.create,be=K.propertyIsEnumerable,xe=ce.splice,Se=_e?_e.toStringTag:void 0,X=function(){try{var e=yt(Object,`defineProperty`);return e({},``,{}),e}catch{}}(),Ce=q?q.isBuffer:void 0,Z=Math.max,we=Date.now,Te=yt(H,`Map`),Ee=yt(Object,`create`),De=function(){function e(){}return function(t){if(!Ht(t))return{};if(ye)return ye(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();function Oe(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function ke(){this.__data__=Ee?Ee(null):{},this.size=0}function Ae(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}function je(e){var t=this.__data__;if(Ee){var n=t[e];return n===r?void 0:n}return fe.call(t,e)?t[e]:void 0}function Me(e){var t=this.__data__;return Ee?t[e]!==void 0:fe.call(t,e)}function Ne(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Ee&&t===void 0?r:t,this}Oe.prototype.clear=ke,Oe.prototype.delete=Ae,Oe.prototype.get=je,Oe.prototype.has=Me,Oe.prototype.set=Ne;function Pe(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Fe(){this.__data__=[],this.size=0}function Ie(e){var t=this.__data__,n=et(t,e);return n<0?!1:(n==t.length-1?t.pop():xe.call(t,n,1),--this.size,!0)}function Le(e){var t=this.__data__,n=et(t,e);return n<0?void 0:t[n][1]}function Q(e){return et(this.__data__,e)>-1}function Re(e,t){var n=this.__data__,r=et(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}Pe.prototype.clear=Fe,Pe.prototype.delete=Ie,Pe.prototype.get=Le,Pe.prototype.has=Q,Pe.prototype.set=Re;function ze(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Be(){this.size=0,this.__data__={hash:new Oe,map:new(Te||Pe),string:new Oe}}function Ve(e){var t=vt(this,e).delete(e);return this.size-=t?1:0,t}function He(e){return vt(this,e).get(e)}function Ue(e){return vt(this,e).has(e)}function We(e,t){var n=vt(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}ze.prototype.clear=Be,ze.prototype.delete=Ve,ze.prototype.get=He,ze.prototype.has=Ue,ze.prototype.set=We;function Ge(e){this.size=(this.__data__=new Pe(e)).size}function Ke(){this.__data__=new Pe,this.size=0}function qe(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function Je(e){return this.__data__.get(e)}function Ye(e){return this.__data__.has(e)}function Xe(e,t){var r=this.__data__;if(r instanceof Pe){var i=r.__data__;if(!Te||i.length<n-1)return i.push([e,t]),this.size=++r.size,this;r=this.__data__=new ze(i)}return r.set(e,t),this.size=r.size,this}Ge.prototype.clear=Ke,Ge.prototype.delete=qe,Ge.prototype.get=Je,Ge.prototype.has=Ye,Ge.prototype.set=Xe;function Ze(e,t){var n=It(e),r=!n&&Ft(e),i=!n&&!r&&zt(e),a=!n&&!r&&!i&&Gt(e),o=n||r||i||a,s=o?ae(e.length,String):[],c=s.length;for(var l in e)(t||fe.call(e,l))&&!(o&&(l==`length`||i&&(l==`offset`||l==`parent`)||a&&(l==`buffer`||l==`byteLength`||l==`byteOffset`)||St(l,c)))&&s.push(l);return s}function Qe(e,t,n){(n!==void 0&&!Pt(e[t],n)||n===void 0&&!(t in e))&&tt(e,t,n)}function $e(e,t,n){var r=e[t];(!(fe.call(e,t)&&Pt(r,n))||n===void 0&&!(t in e))&&tt(e,t,n)}function et(e,t){for(var n=e.length;n--;)if(Pt(e[n][0],t))return n;return-1}function tt(e,t,n){t==`__proto__`&&X?X(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}var nt=_t();function rt(e){return e==null?e===void 0?C:_:Se&&Se in Object(e)?bt(e):Ot(e)}function it(e){return Ut(e)&&rt(e)==s}function $(e){return!Ht(e)||Tt(e)?!1:(Bt(e)?ge:L).test(Nt(e))}function at(e){return Ut(e)&&Vt(e.length)&&!!z[rt(e)]}function ot(e){if(!Ht(e))return Dt(e);var t=Et(e),n=[];for(var r in e)r==`constructor`&&(t||!fe.call(e,r))||n.push(r);return n}function st(e,t,n,r,i){e!==t&&nt(t,function(a,o){if(i||=new Ge,Ht(a))ct(e,t,o,n,st,r,i);else{var s=r?r(At(e,o),a,o+``,e,t,i):void 0;s===void 0&&(s=a),Qe(e,o,s)}},qt)}function ct(e,t,n,r,i,a,o){var s=At(e,n),c=At(t,n),l=o.get(c);if(l){Qe(e,n,l);return}var u=a?a(s,c,n+``,e,t,o):void 0,d=u===void 0;if(d){var f=It(c),p=!f&&zt(c),m=!f&&!p&&Gt(c);u=c,f||p||m?It(s)?u=s:Rt(s)?u=mt(s):p?(d=!1,u=dt(c,!0)):m?(d=!1,u=pt(c,!0)):u=[]:Wt(c)||Ft(c)?(u=s,Ft(s)?u=Kt(s):(!Ht(s)||Bt(s))&&(u=xt(c))):d=!1}d&&(o.set(c,u),i(u,c,r,a,o),o.delete(c)),Qe(e,n,u)}function lt(e,t){return jt(kt(e,t,Xt),e+``)}var ut=X?function(e,t){return X(e,`toString`,{configurable:!0,enumerable:!1,value:Yt(t),writable:!0})}:Xt;function dt(e,t){if(t)return e.slice();var n=e.length,r=ve?ve(n):new e.constructor(n);return e.copy(r),r}function ft(e){var t=new e.constructor(e.byteLength);return new J(t).set(new J(e)),t}function pt(e,t){var n=t?ft(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function mt(e,t){var n=-1,r=e.length;for(t||=Array(r);++n<r;)t[n]=e[n];return t}function ht(e,t,n,r){var i=!n;n||={};for(var a=-1,o=t.length;++a<o;){var s=t[a],c=r?r(n[s],e[s],s,n,e):void 0;c===void 0&&(c=e[s]),i?tt(n,s,c):$e(n,s,c)}return n}function gt(e){return lt(function(t,n){var r=-1,i=n.length,a=i>1?n[i-1]:void 0,o=i>2?n[2]:void 0;for(a=e.length>3&&typeof a==`function`?(i--,a):void 0,o&&Ct(n[0],n[1],o)&&(a=i<3?void 0:a,i=1),t=Object(t);++r<i;){var s=n[r];s&&e(t,s,r,a)}return t})}function _t(e){return function(t,n,r){for(var i=-1,a=Object(t),o=r(t),s=o.length;s--;){var c=o[e?s:++i];if(n(a[c],c,a)===!1)break}return t}}function vt(e,t){var n=e.__data__;return wt(t)?n[typeof t==`string`?`string`:`hash`]:n.map}function yt(e,t){var n=G(e,t);return $(n)?n:void 0}function bt(e){var t=fe.call(e,Se),n=e[Se];try{e[Se]=void 0;var r=!0}catch{}var i=me.call(e);return r&&(t?e[Se]=n:delete e[Se]),i}function xt(e){return typeof e.constructor==`function`&&!Et(e)?De(Y(e)):{}}function St(e,t){var n=typeof e;return t??=o,!!t&&(n==`number`||n!=`symbol`&&R.test(e))&&e>-1&&e%1==0&&e<t}function Ct(e,t,n){if(!Ht(n))return!1;var r=typeof t;return(r==`number`?Lt(n)&&St(t,n.length):r==`string`&&t in n)?Pt(n[t],e):!1}function wt(e){var t=typeof e;return t==`string`||t==`number`||t==`symbol`||t==`boolean`?e!==`__proto__`:e===null}function Tt(e){return!!pe&&pe in e}function Et(e){var t=e&&e.constructor;return e===(typeof t==`function`&&t.prototype||K)}function Dt(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}function Ot(e){return me.call(e)}function kt(e,t,n){return t=Z(t===void 0?e.length-1:t,0),function(){for(var r=arguments,i=-1,a=Z(r.length-t,0),o=Array(a);++i<a;)o[i]=r[t+i];i=-1;for(var s=Array(t+1);++i<t;)s[i]=r[i];return s[t]=n(o),ie(e,this,s)}}function At(e,t){if(!(t===`constructor`&&typeof e[t]==`function`)&&t!=`__proto__`)return e[t]}var jt=Mt(ut);function Mt(e){var t=0,n=0;return function(){var r=we(),o=a-(r-n);if(n=r,o>0){if(++t>=i)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function Nt(e){if(e!=null){try{return de.call(e)}catch{}try{return e+``}catch{}}return``}function Pt(e,t){return e===t||e!==e&&t!==t}var Ft=it(function(){return arguments}())?it:function(e){return Ut(e)&&fe.call(e,`callee`)&&!be.call(e,`callee`)},It=Array.isArray;function Lt(e){return e!=null&&Vt(e.length)&&!Bt(e)}function Rt(e){return Ut(e)&&Lt(e)}var zt=Ce||Zt;function Bt(e){if(!Ht(e))return!1;var t=rt(e);return t==p||t==m||t==l||t==y}function Vt(e){return typeof e==`number`&&e>-1&&e%1==0&&e<=o}function Ht(e){var t=typeof e;return e!=null&&(t==`object`||t==`function`)}function Ut(e){return typeof e==`object`&&!!e}function Wt(e){if(!Ut(e)||rt(e)!=v)return!1;var t=Y(e);if(t===null)return!0;var n=fe.call(t,`constructor`)&&t.constructor;return typeof n==`function`&&n instanceof n&&de.call(n)==he}var Gt=re?oe(re):at;function Kt(e){return ht(e,qt(e))}function qt(e){return Lt(e)?Ze(e,!0):ot(e)}var Jt=gt(function(e,t,n){st(e,t,n)});function Yt(e){return function(){return e}}function Xt(e){return e}function Zt(){return!1}t.exports=Jt})),Ko=d(((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),B=n(p+`\\:`+z+n(`\\?`+L)+`?`+n(`\\#`+R)+`?`),V=n(n(n(`\\/\\/`+D+M)+`|`+N+`|`+P+`|`+I)+n(`\\?`+L)+`?`+n(`\\#`+R)+`?`);return n(B+`|`+V),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 B=z.value;if(B<r&&++i>f&&O(`overflow`),B==r){for(var V=i,H=p;;H+=p){var U=H<=a?m:H>=a+h?h:H-a;if(V<U)break;var ee=V-U,W=p-U;t.push(D(P(U+ee%W,0))),V=E(ee/W)}t.push(D(P(V,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 B(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 V(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 H(e,t){function n(e){var n=V(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,B).replace(t.PCT_ENCODED,i)),e.host!==void 0&&(e.host=String(e.host).replace(t.PCT_ENCODED,n).toLowerCase().replace(t.NOT_HOST,B).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,B).replace(t.PCT_ENCODED,i)),e.query!==void 0&&(e.query=String(e.query).replace(t.PCT_ENCODED,n).replace(t.NOT_QUERY,B).replace(t.PCT_ENCODED,i)),e.fragment!==void 0&&(e.fragment=String(e.fragment).replace(t.PCT_ENCODED,n).replace(t.NOT_FRAGMENT,B).replace(t.PCT_ENCODED,i)),e}function U(e){return e.replace(/^0*(.*)/,`$1`)||`0`}function ee(e,t){var n=u(e.match(t.IPV4ADDRESS)||[],2)[1];return n?n.split(`.`).map(U).join(`.`):e}function W(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(U):[],l=o.split(`:`).map(U),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]=ee(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 te=/^(?:([^:\/?#]+):)?(?:\/\/((?:([^\/?#@]*)@)?(\[[^\/?#\]]+\]|[^\/?#:]*)(?:\:(\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(te);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&&=W(ee(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,V).toLowerCase())}catch(e){n.error=n.error||`Host's domain name can not be converted to ASCII via punycode: `+e}H(n,c)}else H(n,r);a&&a.parse&&a.parse(n,t)}else n.error=n.error||`URI can not be parsed.`;return n}function ie(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(W(ee(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 ae=/^\.\.?\//,oe=/^\/\.(\/|$)/,G=/^\/\.\.(\/|$)/,se=/^\/?(?:.|\n)*?(?=\/|$)/;function ce(e){for(var t=[];e.length;)if(e.match(ae))e=e.replace(ae,``);else if(e.match(oe))e=e.replace(oe,`/`);else if(e.match(G))e=e.replace(G,`/`),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,V).toLowerCase())}catch(n){e.error=e.error||`Host's domain name can not be converted to `+(t.iri?`Unicode`:`ASCII`)+` via punycode: `+n}H(e,n),t.reference!==`suffix`&&e.scheme&&(r.push(e.scheme),r.push(`:`));var a=ie(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 K(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 ue(e,t,n){var r=o({scheme:`null`},n);return le(K(re(e,r),re(t,r),r,!0),r)}function de(e,t){return typeof e==`string`?e=le(re(e,t),t):r(e)===`object`&&(e=re(le(e,t),t)),e}function fe(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 pe(e,t){return e&&e.toString().replace(!t||!t.iri?c.ESCAPE:l.ESCAPE,B)}function me(e,t){return e&&e.toString().replace(!t||!t.iri?c.PCT_ENCODED:l.PCT_ENCODED,V)}var he={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}},ge={scheme:`https`,domainHost:he.domainHost,parse:he.parse,serialize:he.serialize};function q(e){return typeof e.secure==`boolean`?e.secure:String(e.scheme).toLowerCase()===`wss`}var _e={scheme:`ws`,domainHost:!0,parse:function(e,t){var n=e;return n.secure=q(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===(q(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}},J={scheme:`wss`,domainHost:_e.domainHost,parse:_e.parse,serialize:_e.serialize},ve={},Y=`[A-Za-z0-9\\-\\.\\_\\~\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]`,ye=`[0-9A-Fa-f]`,be=n(n(`%[EFef]`+ye+`%`+ye+ye+`%`+ye+ye)+`|`+n(`%[89A-Fa-f]`+ye+`%`+ye+ye)+`|`+n(`%`+ye+ye)),xe="[A-Za-z0-9\\!\\$\\%\\'\\*\\+\\-\\^\\_\\`\\{\\|\\}\\~]",Se=t(`[\\!\\$\\%\\'\\(\\)\\*\\+\\,\\-\\.0-9\\<\\>A-Z\\x5E-\\x7E]`,`[\\"\\\\]`),X=`[\\!\\$\\'\\(\\)\\*\\+\\,\\;\\:\\@]`,Ce=new RegExp(Y,`g`),Z=new RegExp(be,`g`),we=new RegExp(t(`[^]`,xe,`[\\.]`,`[\\"]`,Se),`g`),Te=new RegExp(t(`[^]`,Y,X),`g`),Ee=Te;function De(e){var t=V(e);return t.match(Ce)?t:e}var Oe={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=me(l[1],t);break;case`body`:n.body=me(l[1],t);break;default:i=!0,a[me(l[0],t)]=me(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]=me(h[0]),t.unicodeSupport)h[1]=me(h[1],t).toLowerCase();else try{h[1]=R.toASCII(me(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,B),d=c.slice(l+1);try{d=t.iri?R.toUnicode(d):R.toASCII(me(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]!==ve[m]&&p.push(m.replace(Z,De).replace(Z,i).replace(Te,B)+`=`+f[m].replace(Z,De).replace(Z,i).replace(Ee,B));return p.length&&(n.query=p.join(`&`)),n}},ke=/^([^\:]+)\:(.*)/,Ae={scheme:`urn`,parse:function(e,t){var n=e.path&&e.path.match(ke),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}},je=/^[0-9A-Fa-f]{8}(?:\-[0-9A-Fa-f]{4}){3}\-[0-9A-Fa-f]{12}$/,Me={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(je))&&(n.error=n.error||`UUID is not valid.`),n},serialize:function(e,t){var n=e;return n.nss=(e.uuid||``).toLowerCase(),n}};z[he.scheme]=he,z[ge.scheme]=ge,z[_e.scheme]=_e,z[J.scheme]=J,z[Oe.scheme]=Oe,z[Ae.scheme]=Ae,z[Me.scheme]=Me,e.SCHEMES=z,e.pctEncChar=B,e.pctDecChars=V,e.parse=re,e.removeDotSegments=ce,e.serialize=le,e.resolveComponents=K,e.resolve=ue,e.normalize=de,e.equal=fe,e.escapeComponent=pe,e.unescapeComponent=me,Object.defineProperty(e,`__esModule`,{value:!0})}))})),qo=d(((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}})),Jo=d(((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}})),Yo=d(((e,t)=>{t.exports={copy:n,checkDataType:r,checkDataTypes:i,coerceToTypes:o,toHash:s,getProperty:u,escapeQuotes:d,equal:qo(),ucs2length:Jo(),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,`~`)}})),Xo=d(((e,t)=>{var n=Yo();t.exports=r;function r(e){n.copy(e,this)}})),Zo=d(((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`)}})),Qo=d(((e,t)=>{var n=Ko(),r=qo(),i=Yo(),a=Xo(),o=Zo();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}})),$o=d(((e,t)=>{var n=Qo();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}})),es=d(((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)}})),ts=d(((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,B=Object.keys(d);if(B)for(var V,H=-1,U=B.length-1;H<U;){V=B[H+=1];var ee=d[V];if(ee.default!==void 0){var W=g+e.util.getProperty(V);if(e.compositeRule){if(e.opts.strictDefaults){var x=`default is ignored for: `+W;if(e.opts.strictDefaults===`log`)e.logger.warn(x);else throw Error(x)}}else r+=` if (`+W+` === undefined `,e.opts.useDefaults==`empty`&&(r+=` || `+W+` === null || `+W+` === '' `),r+=` ) `+W+` = `,e.opts.useDefaults==`shared`?r+=` `+e.useDefault(ee.default)+` `:r+=` `+JSON.stringify(ee.default)+` `,r+=`; `}}}else if(D.type==`array`&&Array.isArray(e.schema.items)){var te=e.schema.items;if(te){for(var ee,N=-1,ne=te.length-1;N<ne;)if(ee=te[N+=1],ee.default!==void 0){var W=g+`[`+N+`]`;if(e.compositeRule){if(e.opts.strictDefaults){var x=`default is ignored for: `+W;if(e.opts.strictDefaults===`log`)e.logger.warn(x);else throw Error(x)}}else r+=` if (`+W+` === undefined `,e.opts.useDefaults==`empty`&&(r+=` || `+W+` === null || `+W+` === '' `),r+=` ) `+W+` = `,e.opts.useDefaults==`shared`?r+=` `+e.useDefault(ee.default)+` `:r+=` `+JSON.stringify(ee.default)+` `,r+=`; `}}}}var re=D.rules;if(re){for(var ie,ae=-1,oe=re.length-1;ae<oe;)if(ie=re[ae+=1],ce(ie)){var G=ie.code(e,ie.keyword,D.type);G&&(r+=` `+G+` `,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}})),ns=d(((e,t)=>{var n=Qo(),r=Yo(),i=$o(),a=es(),o=ts(),s=r.ucs2length,c=qo(),l=i.Validation;t.exports=u;function u(e,t,p,y){var b=this,x=this._opts,S=[void 0],C={},w=[],T={},E=[],D={},O=[];t||={schema:e,refVal:S,refs:C};var k=d.call(this,e,t,y),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,y);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,x.sourceCode&&(P.source=N.source)),N}finally{f.call(this,e,t,y)}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(b,e,a,d,f);var y=e.$async===!0,T=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:H,useDefault:U,useCustomRule:ee,opts:x,formats:j,logger:b.logger,self:b});T=v(S,g)+v(w,m)+v(E,h)+v(O,_)+T,x.processCode&&(T=x.processCode(T,e));var D;try{D=Function(`self`,`RULES`,`formats`,`root`,`refVal`,`defaults`,`customRules`,`equal`,`ucs2length`,`ValidationError`,T)(b,M,j,t,S,E,O,c,s,l),S[0]=D}catch(e){throw b.logger.error(`Error compiling schema, function code:`,T),e}return D.schema=e,D.errors=null,D.refs=C,D.refVal=S,D.root=p?D:a,y&&(D.$async=!0),x.sourceCode===!0&&(D.source={code:T,patterns:w,defaults:E}),D}function L(e,r,i){r=n.url(e,r);var a=C[r],o,s;if(a!==void 0)return o=S[a],s=`refVal[`+a+`]`,V(o,s);if(!i&&t.refs){var c=t.refs[r];if(c!==void 0)return o=t.refVal[c],s=R(r,o),V(o,s)}s=R(r);var l=n.call(b,I,t,r);if(l===void 0){var d=p&&p[r];d&&(l=n.inlineRef(d,x.inlineRefs)?d:u.call(b,d,t,p,e))}if(l===void 0)z(r);else return B(r,l),V(l,s)}function R(e,t){var n=S.length;return S[n]=t,C[e]=n,`refVal`+n}function z(e){delete C[e]}function B(e,t){var n=C[e];S[n]=t}function V(e,t){return typeof e==`object`||typeof e==`boolean`?{code:t,schema:e,inline:!0}:{code:t,$async:e&&!!e.$async}}function H(e){var t=T[e];return t===void 0&&(t=T[e]=w.length,w[t]=e),`pattern`+t}function U(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=D[t];return n===void 0&&(n=D[t]=E.length,E[n]=e),`default`+n}}function ee(e,t,n,r){if(b._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: `+b.errorsText(a.errors);if(b._opts.validateSchema==`log`)b.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(b,t,n,r);else if(l)u=l.call(b,t,n,r),x.validateSchema!==!1&&b.validateSchema(u,!0);else if(c)u=c.call(b,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=O.length;return O[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,t){return`var pattern`+e+` = new RegExp(`+r.toQuotedString(t[e])+`);`}function h(e){return`var default`+e+` = defaults[`+e+`];`}function g(e,t){return t[e]===void 0?``:`var refVal`+e+` = refVal[`+e+`];`}function _(e){return`var customRule`+e+` = customRules[`+e+`];`}function v(e,t){if(!e.length)return``;for(var n=``,r=0;r<e.length;r++)n+=t(r,e);return n}})),rs=d(((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={}}})),is=d(((e,t)=>{var n=Yo(),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}}})),as=d(((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}})),os=d(((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}})),ss=d(((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}})),cs=d(((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}})),ls=d(((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}})),us=d(((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}})),ds=d(((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}})),fs=d(((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}})),ps=d(((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}})),ms=d(((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}})),hs=d(((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}})),gs=d(((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}})),_s=d(((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}})),vs=d(((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}})),ys=d(((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}})),bs=d(((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}})),xs=d(((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}})),Ss=d(((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}})),Cs=d(((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;d?(r+=` var schema`+i+` = `+e.util.getData(o.$data,a,e.dataPathArr)+`; `,f=`schema`+i):f=o;var p=d?`(new RegExp(`+f+`))`:e.usePattern(o);r+=`if ( `,d&&(r+=` (`+f+` !== undefined && typeof `+f+` != 'string') || `),r+=` !`+p+`.test(`+u+`) ) { `;var m=m||[];m.push(r),r=``,e.createErrors===!1?r+=` {} `:(r+=` { keyword: 'pattern' , dataPath: (dataPath || '') + `+e.errorPath+` , schemaPath: `+e.util.toQuotedString(c)+` , params: { pattern: `,d?r+=``+f:r+=``+e.util.toQuotedString(o),r+=` } `,e.opts.messages!==!1&&(r+=` , message: 'should match pattern "`,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 h=r;return r=m.pop(),!e.compositeRule&&l?e.async?r+=` throw new ValidationError([`+h+`]); `:r+=` validate.errors = [`+h+`]; return false; `:r+=` var err = `+h+`; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; `,r+=`} `,l&&(r+=` else { `),r}})),ws=d(((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,B=-1,V=R.length-1;B<V;)z=R[B+=1],r+=` || `+e.usePattern(z)+`.test(`+h+`) `}r+=` ); if (isAdditional`+i+`) { `}if(D==`all`)r+=` delete `+u+`[`+h+`]; `;else{var H=e.errorPath,U=`' + `+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 ee=c;c=e.errSchemaPath+`/additionalProperties`;var W=W||[];W.push(r),r=``,e.createErrors===!1?r+=` {} `:(r+=` { keyword: 'additionalProperties' , dataPath: (dataPath || '') + `+e.errorPath+` , schemaPath: `+e.util.toQuotedString(c)+` , params: { additionalProperty: '`+U+`' } `,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 te=r;r=W.pop(),!e.compositeRule&&l?e.async?r+=` throw new ValidationError([`+te+`]); `:r+=` validate.errors = [`+te+`]; return false; `:r+=` var err = `+te+`; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; `,c=ee,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 ie=e.validate(f);f.baseId=A,e.util.varOccurences(ie,v)<2?r+=` `+e.util.varReplace(ie,v,re)+` `:r+=` var `+v+` = `+re+`; `+ie+` `,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 ie=e.validate(f);f.baseId=A,e.util.varOccurences(ie,v)<2?r+=` `+e.util.varReplace(ie,v,re)+` `:r+=` var `+v+` = `+re+`; `+ie+` `,l&&(r+=` if (!`+m+`) break; `)}e.errorPath=H}w&&(r+=` } `),r+=` } `,l&&(r+=` if (`+m+`) { `,p+=`}`)}var ae=e.opts.useDefaults&&!e.compositeRule;if(b.length){var oe=b;if(oe)for(var F,G=-1,se=oe.length-1;G<se;){F=oe[G+=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,K=ae&&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 ie=e.validate(f);if(f.baseId=A,e.util.varOccurences(ie,v)<2){ie=e.util.varReplace(ie,v,re);var ue=re}else{var ue=v;r+=` var `+v+` = `+re+`; `}if(K)r+=` `+ie+` `;else{if(M&&M[F]){r+=` if ( `+ue+` === undefined `,k&&(r+=` || ! Object.prototype.hasOwnProperty.call(`+u+`, '`+e.util.escapeQuotes(F)+`') `),r+=`) { `+m+` = false; `;var H=e.errorPath,ee=c,de=e.util.escapeQuotes(F);e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPath(H,F,e.opts.jsonPointers)),c=e.errSchemaPath+`/required`;var W=W||[];W.push(r),r=``,e.createErrors===!1?r+=` {} `:(r+=` { keyword: 'required' , dataPath: (dataPath || '') + `+e.errorPath+` , schemaPath: `+e.util.toQuotedString(c)+` , params: { missingProperty: '`+de+`' } `,e.opts.messages!==!1&&(r+=` , message: '`,e.opts._errorDataPathProperty?r+=`is a required property`:r+=`should have required property \\'`+de+`\\'`,r+=`' `),e.opts.verbose&&(r+=` , schema: validate.schema`+s+` , parentSchema: validate.schema`+e.schemaPath+` , data: `+u+` `),r+=` } `);var te=r;r=W.pop(),!e.compositeRule&&l?e.async?r+=` throw new ValidationError([`+te+`]); `:r+=` validate.errors = [`+te+`]; return false; `:r+=` var err = `+te+`; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; `,c=ee,e.errorPath=H,r+=` } else { `}else l?(r+=` if ( `+ue+` === undefined `,k&&(r+=` || ! Object.prototype.hasOwnProperty.call(`+u+`, '`+e.util.escapeQuotes(F)+`') `),r+=`) { `+m+` = true; } else { `):(r+=` if (`+ue+` !== undefined `,k&&(r+=` && Object.prototype.hasOwnProperty.call(`+u+`, '`+e.util.escapeQuotes(F)+`') `),r+=` ) { `);r+=` `+ie+` } `}}l&&(r+=` if (`+m+`) { `,p+=`}`)}}if(S.length){var fe=S;if(fe)for(var z,pe=-1,me=fe.length-1;pe<me;){z=fe[pe+=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 ie=e.validate(f);f.baseId=A,e.util.varOccurences(ie,v)<2?r+=` `+e.util.varReplace(ie,v,re)+` `:r+=` var `+v+` = `+re+`; `+ie+` `,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}})),Ts=d(((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}})),Es=d(((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}})),Ds=d(((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}})),Os=d(((e,t)=>{t.exports={$ref:as(),allOf:os(),anyOf:ss(),$comment:cs(),const:ls(),contains:us(),dependencies:ds(),enum:fs(),format:ps(),if:ms(),items:hs(),maximum:gs(),minimum:gs(),maxItems:_s(),minItems:_s(),maxLength:vs(),minLength:vs(),maxProperties:ys(),minProperties:ys(),multipleOf:bs(),not:xs(),oneOf:Ss(),pattern:Cs(),properties:ws(),propertyNames:Ts(),required:Es(),uniqueItems:Ds(),validate:ts()}})),ks=d(((e,t)=>{var n=Os(),r=Yo().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}})),As=d(((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}})),js=d(((e,t)=>{var n=$o().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]}}}}})),Ms=d(((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}})),Ns=d(((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}})),Ps=d(((e,t)=>{var n=Ns();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`}]}}}})),Fs=d(((e,t)=>{var n=/^[a-z_$][a-z0-9_$-]*$/i,r=Ms(),i=Ps();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}})),Is=d(((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}})),Ls=d(((e,t)=>{var n=ns(),r=Qo(),i=rs(),a=Xo(),o=es(),s=is(),c=ks(),l=As(),u=Yo();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=js();var d=Fs();g.prototype.addKeyword=d.add,g.prototype.getKeyword=d.get,g.prototype.removeKeyword=d.remove,g.prototype.validateKeyword=d.validate;var f=$o();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)||{},H(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=V(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),B(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&&B(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=Is(),e.addMetaSchema(t,t.$id,!0)),e._opts.meta!==!1){var n=Ns();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 B(e,t){if(e._schemas[t]||e._refs[t])throw Error(`schema with key or id "`+t+`" already exists`)}function V(e){for(var t=u.copy(e._opts),n=0;n<m.length;n++)delete t[m[n]];return t}function H(e){var t=e._opts.logger;if(t===!1)e.logger={log:U,warn:U,error:U};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 U(){}})),Rs=d(((e,t)=>{t.exports={builtin:{AggregateError:!1,Array:!1,ArrayBuffer:!1,Atomics:!1,BigInt:!1,BigInt64Array:!1,BigUint64Array:!1,Boolean:!1,constructor:!1,DataView:!1,Date:!1,decodeURI:!1,decodeURIComponent:!1,encodeURI:!1,encodeURIComponent:!1,Error:!1,escape:!1,eval:!1,EvalError:!1,FinalizationRegistry:!1,Float32Array:!1,Float64Array:!1,Function:!1,globalThis:!1,hasOwnProperty:!1,Infinity:!1,Int16Array:!1,Int32Array:!1,Int8Array:!1,isFinite:!1,isNaN:!1,isPrototypeOf:!1,JSON:!1,Map:!1,Math:!1,NaN:!1,Number:!1,Object:!1,parseFloat:!1,parseInt:!1,Promise:!1,propertyIsEnumerable:!1,Proxy:!1,RangeError:!1,ReferenceError:!1,Reflect:!1,RegExp:!1,Set:!1,SharedArrayBuffer:!1,String:!1,Symbol:!1,SyntaxError:!1,toLocaleString:!1,toString:!1,TypeError:!1,Uint16Array:!1,Uint32Array:!1,Uint8Array:!1,Uint8ClampedArray:!1,undefined:!1,unescape:!1,URIError:!1,valueOf:!1,WeakMap:!1,WeakRef:!1,WeakSet:!1},es5:{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,JSON:!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},es2015:{Array:!1,ArrayBuffer:!1,Boolean:!1,constructor:!1,DataView:!1,Date:!1,decodeURI:!1,decodeURIComponent:!1,encodeURI:!1,encodeURIComponent:!1,Error:!1,escape:!1,eval:!1,EvalError:!1,Float32Array:!1,Float64Array:!1,Function:!1,hasOwnProperty:!1,Infinity:!1,Int16Array:!1,Int32Array:!1,Int8Array:!1,isFinite:!1,isNaN:!1,isPrototypeOf:!1,JSON:!1,Map:!1,Math:!1,NaN:!1,Number:!1,Object:!1,parseFloat:!1,parseInt:!1,Promise:!1,propertyIsEnumerable:!1,Proxy:!1,RangeError:!1,ReferenceError:!1,Reflect:!1,RegExp:!1,Set:!1,String:!1,Symbol:!1,SyntaxError:!1,toLocaleString:!1,toString:!1,TypeError:!1,Uint16Array:!1,Uint32Array:!1,Uint8Array:!1,Uint8ClampedArray:!1,undefined:!1,unescape:!1,URIError:!1,valueOf:!1,WeakMap:!1,WeakSet:!1},es2017:{Array:!1,ArrayBuffer:!1,Atomics:!1,Boolean:!1,constructor:!1,DataView:!1,Date:!1,decodeURI:!1,decodeURIComponent:!1,encodeURI:!1,encodeURIComponent:!1,Error:!1,escape:!1,eval:!1,EvalError:!1,Float32Array:!1,Float64Array:!1,Function:!1,hasOwnProperty:!1,Infinity:!1,Int16Array:!1,Int32Array:!1,Int8Array:!1,isFinite:!1,isNaN:!1,isPrototypeOf:!1,JSON:!1,Map:!1,Math:!1,NaN:!1,Number:!1,Object:!1,parseFloat:!1,parseInt:!1,Promise:!1,propertyIsEnumerable:!1,Proxy:!1,RangeError:!1,ReferenceError:!1,Reflect:!1,RegExp:!1,Set:!1,SharedArrayBuffer:!1,String:!1,Symbol:!1,SyntaxError:!1,toLocaleString:!1,toString:!1,TypeError:!1,Uint16Array:!1,Uint32Array:!1,Uint8Array:!1,Uint8ClampedArray:!1,undefined:!1,unescape:!1,URIError:!1,valueOf:!1,WeakMap:!1,WeakSet:!1},es2020:{Array:!1,ArrayBuffer:!1,Atomics:!1,BigInt:!1,BigInt64Array:!1,BigUint64Array:!1,Boolean:!1,constructor:!1,DataView:!1,Date:!1,decodeURI:!1,decodeURIComponent:!1,encodeURI:!1,encodeURIComponent:!1,Error:!1,escape:!1,eval:!1,EvalError:!1,Float32Array:!1,Float64Array:!1,Function:!1,globalThis:!1,hasOwnProperty:!1,Infinity:!1,Int16Array:!1,Int32Array:!1,Int8Array:!1,isFinite:!1,isNaN:!1,isPrototypeOf:!1,JSON:!1,Map:!1,Math:!1,NaN:!1,Number:!1,Object:!1,parseFloat:!1,parseInt:!1,Promise:!1,propertyIsEnumerable:!1,Proxy:!1,RangeError:!1,ReferenceError:!1,Reflect:!1,RegExp:!1,Set:!1,SharedArrayBuffer:!1,String:!1,Symbol:!1,SyntaxError:!1,toLocaleString:!1,toString:!1,TypeError:!1,Uint16Array:!1,Uint32Array:!1,Uint8Array:!1,Uint8ClampedArray:!1,undefined:!1,unescape:!1,URIError:!1,valueOf:!1,WeakMap:!1,WeakSet:!1},es2021:{AggregateError:!1,Array:!1,ArrayBuffer:!1,Atomics:!1,BigInt:!1,BigInt64Array:!1,BigUint64Array:!1,Boolean:!1,constructor:!1,DataView:!1,Date:!1,decodeURI:!1,decodeURIComponent:!1,encodeURI:!1,encodeURIComponent:!1,Error:!1,escape:!1,eval:!1,EvalError:!1,FinalizationRegistry:!1,Float32Array:!1,Float64Array:!1,Function:!1,globalThis:!1,hasOwnProperty:!1,Infinity:!1,Int16Array:!1,Int32Array:!1,Int8Array:!1,isFinite:!1,isNaN:!1,isPrototypeOf:!1,JSON:!1,Map:!1,Math:!1,NaN:!1,Number:!1,Object:!1,parseFloat:!1,parseInt:!1,Promise:!1,propertyIsEnumerable:!1,Proxy:!1,RangeError:!1,ReferenceError:!1,Reflect:!1,RegExp:!1,Set:!1,SharedArrayBuffer:!1,String:!1,Symbol:!1,SyntaxError:!1,toLocaleString:!1,toString:!1,TypeError:!1,Uint16Array:!1,Uint32Array:!1,Uint8Array:!1,Uint8ClampedArray:!1,undefined:!1,unescape:!1,URIError:!1,valueOf:!1,WeakMap:!1,WeakRef:!1,WeakSet:!1},browser:{AbortController:!1,AbortSignal:!1,addEventListener:!1,alert:!1,AnalyserNode:!1,Animation:!1,AnimationEffectReadOnly:!1,AnimationEffectTiming:!1,AnimationEffectTimingReadOnly:!1,AnimationEvent:!1,AnimationPlaybackEvent:!1,AnimationTimeline:!1,applicationCache:!1,ApplicationCache:!1,ApplicationCacheErrorEvent:!1,atob:!1,Attr:!1,Audio:!1,AudioBuffer:!1,AudioBufferSourceNode:!1,AudioContext:!1,AudioDestinationNode:!1,AudioListener:!1,AudioNode:!1,AudioParam:!1,AudioProcessingEvent:!1,AudioScheduledSourceNode:!1,AudioWorkletGlobalScope:!1,AudioWorkletNode:!1,AudioWorkletProcessor:!1,BarProp:!1,BaseAudioContext:!1,BatteryManager:!1,BeforeUnloadEvent:!1,BiquadFilterNode:!1,Blob:!1,BlobEvent:!1,blur:!1,BroadcastChannel:!1,btoa:!1,BudgetService:!1,ByteLengthQueuingStrategy:!1,Cache:!1,caches:!1,CacheStorage:!1,cancelAnimationFrame:!1,cancelIdleCallback:!1,CanvasCaptureMediaStreamTrack:!1,CanvasGradient:!1,CanvasPattern:!1,CanvasRenderingContext2D:!1,ChannelMergerNode:!1,ChannelSplitterNode:!1,CharacterData:!1,clearInterval:!1,clearTimeout:!1,clientInformation:!1,ClipboardEvent:!1,ClipboardItem:!1,close:!1,closed:!1,CloseEvent:!1,Comment:!1,CompositionEvent:!1,CompressionStream:!1,confirm:!1,console:!1,ConstantSourceNode:!1,ConvolverNode:!1,CountQueuingStrategy:!1,createImageBitmap:!1,Credential:!1,CredentialsContainer:!1,crypto:!1,Crypto:!1,CryptoKey:!1,CSS:!1,CSSConditionRule:!1,CSSFontFaceRule:!1,CSSGroupingRule:!1,CSSImportRule:!1,CSSKeyframeRule:!1,CSSKeyframesRule:!1,CSSMatrixComponent:!1,CSSMediaRule:!1,CSSNamespaceRule:!1,CSSPageRule:!1,CSSPerspective:!1,CSSRotate:!1,CSSRule:!1,CSSRuleList:!1,CSSScale:!1,CSSSkew:!1,CSSSkewX:!1,CSSSkewY:!1,CSSStyleDeclaration:!1,CSSStyleRule:!1,CSSStyleSheet:!1,CSSSupportsRule:!1,CSSTransformValue:!1,CSSTranslate:!1,CustomElementRegistry:!1,customElements:!1,CustomEvent:!1,DataTransfer:!1,DataTransferItem:!1,DataTransferItemList:!1,DecompressionStream:!1,defaultstatus:!1,defaultStatus:!1,DelayNode:!1,DeviceMotionEvent:!1,DeviceOrientationEvent:!1,devicePixelRatio:!1,dispatchEvent:!1,document:!1,Document:!1,DocumentFragment:!1,DocumentType:!1,DOMError:!1,DOMException:!1,DOMImplementation:!1,DOMMatrix:!1,DOMMatrixReadOnly:!1,DOMParser:!1,DOMPoint:!1,DOMPointReadOnly:!1,DOMQuad:!1,DOMRect:!1,DOMRectList:!1,DOMRectReadOnly:!1,DOMStringList:!1,DOMStringMap:!1,DOMTokenList:!1,DragEvent:!1,DynamicsCompressorNode:!1,Element:!1,ErrorEvent:!1,event:!1,Event:!1,EventSource:!1,EventTarget:!1,external:!1,fetch:!1,File:!1,FileList:!1,FileReader:!1,find:!1,focus:!1,FocusEvent:!1,FontFace:!1,FontFaceSetLoadEvent:!1,FormData:!1,FormDataEvent:!1,frameElement:!1,frames:!1,GainNode:!1,Gamepad:!1,GamepadButton:!1,GamepadEvent:!1,getComputedStyle:!1,getSelection:!1,HashChangeEvent:!1,Headers:!1,history:!1,History:!1,HTMLAllCollection:!1,HTMLAnchorElement:!1,HTMLAreaElement:!1,HTMLAudioElement:!1,HTMLBaseElement:!1,HTMLBodyElement:!1,HTMLBRElement:!1,HTMLButtonElement:!1,HTMLCanvasElement:!1,HTMLCollection:!1,HTMLContentElement:!1,HTMLDataElement:!1,HTMLDataListElement:!1,HTMLDetailsElement:!1,HTMLDialogElement:!1,HTMLDirectoryElement:!1,HTMLDivElement:!1,HTMLDListElement:!1,HTMLDocument:!1,HTMLElement:!1,HTMLEmbedElement:!1,HTMLFieldSetElement:!1,HTMLFontElement:!1,HTMLFormControlsCollection:!1,HTMLFormElement:!1,HTMLFrameElement:!1,HTMLFrameSetElement:!1,HTMLHeadElement:!1,HTMLHeadingElement:!1,HTMLHRElement:!1,HTMLHtmlElement:!1,HTMLIFrameElement:!1,HTMLImageElement:!1,HTMLInputElement:!1,HTMLLabelElement:!1,HTMLLegendElement:!1,HTMLLIElement:!1,HTMLLinkElement:!1,HTMLMapElement:!1,HTMLMarqueeElement:!1,HTMLMediaElement:!1,HTMLMenuElement:!1,HTMLMetaElement:!1,HTMLMeterElement:!1,HTMLModElement:!1,HTMLObjectElement:!1,HTMLOListElement:!1,HTMLOptGroupElement:!1,HTMLOptionElement:!1,HTMLOptionsCollection:!1,HTMLOutputElement:!1,HTMLParagraphElement:!1,HTMLParamElement:!1,HTMLPictureElement:!1,HTMLPreElement:!1,HTMLProgressElement:!1,HTMLQuoteElement:!1,HTMLScriptElement:!1,HTMLSelectElement:!1,HTMLShadowElement:!1,HTMLSlotElement:!1,HTMLSourceElement:!1,HTMLSpanElement:!1,HTMLStyleElement:!1,HTMLTableCaptionElement:!1,HTMLTableCellElement:!1,HTMLTableColElement:!1,HTMLTableElement:!1,HTMLTableRowElement:!1,HTMLTableSectionElement:!1,HTMLTemplateElement:!1,HTMLTextAreaElement:!1,HTMLTimeElement:!1,HTMLTitleElement:!1,HTMLTrackElement:!1,HTMLUListElement:!1,HTMLUnknownElement:!1,HTMLVideoElement:!1,IDBCursor:!1,IDBCursorWithValue:!1,IDBDatabase:!1,IDBFactory:!1,IDBIndex:!1,IDBKeyRange:!1,IDBObjectStore:!1,IDBOpenDBRequest:!1,IDBRequest:!1,IDBTransaction:!1,IDBVersionChangeEvent:!1,IdleDeadline:!1,IIRFilterNode:!1,Image:!1,ImageBitmap:!1,ImageBitmapRenderingContext:!1,ImageCapture:!1,ImageData:!1,indexedDB:!1,innerHeight:!1,innerWidth:!1,InputEvent:!1,IntersectionObserver:!1,IntersectionObserverEntry:!1,Intl:!1,isSecureContext:!1,KeyboardEvent:!1,KeyframeEffect:!1,KeyframeEffectReadOnly:!1,length:!1,localStorage:!1,location:!0,Location:!1,locationbar:!1,matchMedia:!1,MediaDeviceInfo:!1,MediaDevices:!1,MediaElementAudioSourceNode:!1,MediaEncryptedEvent:!1,MediaError:!1,MediaKeyMessageEvent:!1,MediaKeySession:!1,MediaKeyStatusMap:!1,MediaKeySystemAccess:!1,MediaList:!1,MediaMetadata:!1,MediaQueryList:!1,MediaQueryListEvent:!1,MediaRecorder:!1,MediaSettingsRange:!1,MediaSource:!1,MediaStream:!1,MediaStreamAudioDestinationNode:!1,MediaStreamAudioSourceNode:!1,MediaStreamConstraints:!1,MediaStreamEvent:!1,MediaStreamTrack:!1,MediaStreamTrackEvent:!1,menubar:!1,MessageChannel:!1,MessageEvent:!1,MessagePort:!1,MIDIAccess:!1,MIDIConnectionEvent:!1,MIDIInput:!1,MIDIInputMap:!1,MIDIMessageEvent:!1,MIDIOutput:!1,MIDIOutputMap:!1,MIDIPort:!1,MimeType:!1,MimeTypeArray:!1,MouseEvent:!1,moveBy:!1,moveTo:!1,MutationEvent:!1,MutationObserver:!1,MutationRecord:!1,name:!1,NamedNodeMap:!1,NavigationPreloadManager:!1,navigator:!1,Navigator:!1,NavigatorUAData:!1,NetworkInformation:!1,Node:!1,NodeFilter:!1,NodeIterator:!1,NodeList:!1,Notification:!1,OfflineAudioCompletionEvent:!1,OfflineAudioContext:!1,offscreenBuffering:!1,OffscreenCanvas:!0,OffscreenCanvasRenderingContext2D:!1,onabort:!0,onafterprint:!0,onanimationend:!0,onanimationiteration:!0,onanimationstart:!0,onappinstalled:!0,onauxclick:!0,onbeforeinstallprompt:!0,onbeforeprint:!0,onbeforeunload:!0,onblur:!0,oncancel:!0,oncanplay:!0,oncanplaythrough:!0,onchange:!0,onclick:!0,onclose:!0,oncontextmenu:!0,oncuechange:!0,ondblclick:!0,ondevicemotion:!0,ondeviceorientation:!0,ondeviceorientationabsolute:!0,ondrag:!0,ondragend:!0,ondragenter:!0,ondragleave:!0,ondragover:!0,ondragstart:!0,ondrop:!0,ondurationchange:!0,onemptied:!0,onended:!0,onerror:!0,onfocus:!0,ongotpointercapture:!0,onhashchange:!0,oninput:!0,oninvalid:!0,onkeydown:!0,onkeypress:!0,onkeyup:!0,onlanguagechange:!0,onload:!0,onloadeddata:!0,onloadedmetadata:!0,onloadstart:!0,onlostpointercapture:!0,onmessage:!0,onmessageerror:!0,onmousedown:!0,onmouseenter:!0,onmouseleave:!0,onmousemove:!0,onmouseout:!0,onmouseover:!0,onmouseup:!0,onmousewheel:!0,onoffline:!0,ononline:!0,onpagehide:!0,onpageshow:!0,onpause:!0,onplay:!0,onplaying:!0,onpointercancel:!0,onpointerdown:!0,onpointerenter:!0,onpointerleave:!0,onpointermove:!0,onpointerout:!0,onpointerover:!0,onpointerup:!0,onpopstate:!0,onprogress:!0,onratechange:!0,onrejectionhandled:!0,onreset:!0,onresize:!0,onscroll:!0,onsearch:!0,onseeked:!0,onseeking:!0,onselect:!0,onstalled:!0,onstorage:!0,onsubmit:!0,onsuspend:!0,ontimeupdate:!0,ontoggle:!0,ontransitionend:!0,onunhandledrejection:!0,onunload:!0,onvolumechange:!0,onwaiting:!0,onwheel:!0,open:!1,openDatabase:!1,opener:!1,Option:!1,origin:!1,OscillatorNode:!1,outerHeight:!1,outerWidth:!1,OverconstrainedError:!1,PageTransitionEvent:!1,pageXOffset:!1,pageYOffset:!1,PannerNode:!1,parent:!1,Path2D:!1,PaymentAddress:!1,PaymentRequest:!1,PaymentRequestUpdateEvent:!1,PaymentResponse:!1,performance:!1,Performance:!1,PerformanceEntry:!1,PerformanceLongTaskTiming:!1,PerformanceMark:!1,PerformanceMeasure:!1,PerformanceNavigation:!1,PerformanceNavigationTiming:!1,PerformanceObserver:!1,PerformanceObserverEntryList:!1,PerformancePaintTiming:!1,PerformanceResourceTiming:!1,PerformanceTiming:!1,PeriodicWave:!1,Permissions:!1,PermissionStatus:!1,personalbar:!1,PhotoCapabilities:!1,Plugin:!1,PluginArray:!1,PointerEvent:!1,PopStateEvent:!1,postMessage:!1,Presentation:!1,PresentationAvailability:!1,PresentationConnection:!1,PresentationConnectionAvailableEvent:!1,PresentationConnectionCloseEvent:!1,PresentationConnectionList:!1,PresentationReceiver:!1,PresentationRequest:!1,print:!1,ProcessingInstruction:!1,ProgressEvent:!1,PromiseRejectionEvent:!1,prompt:!1,PushManager:!1,PushSubscription:!1,PushSubscriptionOptions:!1,queueMicrotask:!1,RadioNodeList:!1,Range:!1,ReadableByteStreamController:!1,ReadableStream:!1,ReadableStreamBYOBReader:!1,ReadableStreamBYOBRequest:!1,ReadableStreamDefaultController:!1,ReadableStreamDefaultReader:!1,registerProcessor:!1,RemotePlayback:!1,removeEventListener:!1,reportError:!1,Request:!1,requestAnimationFrame:!1,requestIdleCallback:!1,resizeBy:!1,ResizeObserver:!1,ResizeObserverEntry:!1,resizeTo:!1,Response:!1,RTCCertificate:!1,RTCDataChannel:!1,RTCDataChannelEvent:!1,RTCDtlsTransport:!1,RTCIceCandidate:!1,RTCIceGatherer:!1,RTCIceTransport:!1,RTCPeerConnection:!1,RTCPeerConnectionIceEvent:!1,RTCRtpContributingSource:!1,RTCRtpReceiver:!1,RTCRtpSender:!1,RTCSctpTransport:!1,RTCSessionDescription:!1,RTCStatsReport:!1,RTCTrackEvent:!1,screen:!1,Screen:!1,screenLeft:!1,ScreenOrientation:!1,screenTop:!1,screenX:!1,screenY:!1,ScriptProcessorNode:!1,scroll:!1,scrollbars:!1,scrollBy:!1,scrollTo:!1,scrollX:!1,scrollY:!1,SecurityPolicyViolationEvent:!1,Selection:!1,self:!1,ServiceWorker:!1,ServiceWorkerContainer:!1,ServiceWorkerRegistration:!1,sessionStorage:!1,setInterval:!1,setTimeout:!1,ShadowRoot:!1,SharedWorker:!1,SourceBuffer:!1,SourceBufferList:!1,speechSynthesis:!1,SpeechSynthesisEvent:!1,SpeechSynthesisUtterance:!1,StaticRange:!1,status:!1,statusbar:!1,StereoPannerNode:!1,stop:!1,Storage:!1,StorageEvent:!1,StorageManager:!1,structuredClone:!1,styleMedia:!1,StyleSheet:!1,StyleSheetList:!1,SubmitEvent:!1,SubtleCrypto:!1,SVGAElement:!1,SVGAngle:!1,SVGAnimatedAngle:!1,SVGAnimatedBoolean:!1,SVGAnimatedEnumeration:!1,SVGAnimatedInteger:!1,SVGAnimatedLength:!1,SVGAnimatedLengthList:!1,SVGAnimatedNumber:!1,SVGAnimatedNumberList:!1,SVGAnimatedPreserveAspectRatio:!1,SVGAnimatedRect:!1,SVGAnimatedString:!1,SVGAnimatedTransformList:!1,SVGAnimateElement:!1,SVGAnimateMotionElement:!1,SVGAnimateTransformElement:!1,SVGAnimationElement:!1,SVGCircleElement:!1,SVGClipPathElement:!1,SVGComponentTransferFunctionElement:!1,SVGDefsElement:!1,SVGDescElement:!1,SVGDiscardElement:!1,SVGElement:!1,SVGEllipseElement:!1,SVGFEBlendElement:!1,SVGFEColorMatrixElement:!1,SVGFEComponentTransferElement:!1,SVGFECompositeElement:!1,SVGFEConvolveMatrixElement:!1,SVGFEDiffuseLightingElement:!1,SVGFEDisplacementMapElement:!1,SVGFEDistantLightElement:!1,SVGFEDropShadowElement:!1,SVGFEFloodElement:!1,SVGFEFuncAElement:!1,SVGFEFuncBElement:!1,SVGFEFuncGElement:!1,SVGFEFuncRElement:!1,SVGFEGaussianBlurElement:!1,SVGFEImageElement:!1,SVGFEMergeElement:!1,SVGFEMergeNodeElement:!1,SVGFEMorphologyElement:!1,SVGFEOffsetElement:!1,SVGFEPointLightElement:!1,SVGFESpecularLightingElement:!1,SVGFESpotLightElement:!1,SVGFETileElement:!1,SVGFETurbulenceElement:!1,SVGFilterElement:!1,SVGForeignObjectElement:!1,SVGGElement:!1,SVGGeometryElement:!1,SVGGradientElement:!1,SVGGraphicsElement:!1,SVGImageElement:!1,SVGLength:!1,SVGLengthList:!1,SVGLinearGradientElement:!1,SVGLineElement:!1,SVGMarkerElement:!1,SVGMaskElement:!1,SVGMatrix:!1,SVGMetadataElement:!1,SVGMPathElement:!1,SVGNumber:!1,SVGNumberList:!1,SVGPathElement:!1,SVGPatternElement:!1,SVGPoint:!1,SVGPointList:!1,SVGPolygonElement:!1,SVGPolylineElement:!1,SVGPreserveAspectRatio:!1,SVGRadialGradientElement:!1,SVGRect:!1,SVGRectElement:!1,SVGScriptElement:!1,SVGSetElement:!1,SVGStopElement:!1,SVGStringList:!1,SVGStyleElement:!1,SVGSVGElement:!1,SVGSwitchElement:!1,SVGSymbolElement:!1,SVGTextContentElement:!1,SVGTextElement:!1,SVGTextPathElement:!1,SVGTextPositioningElement:!1,SVGTitleElement:!1,SVGTransform:!1,SVGTransformList:!1,SVGTSpanElement:!1,SVGUnitTypes:!1,SVGUseElement:!1,SVGViewElement:!1,TaskAttributionTiming:!1,Text:!1,TextDecoder:!1,TextDecoderStream:!1,TextEncoder:!1,TextEncoderStream:!1,TextEvent:!1,TextMetrics:!1,TextTrack:!1,TextTrackCue:!1,TextTrackCueList:!1,TextTrackList:!1,TimeRanges:!1,ToggleEvent:!1,toolbar:!1,top:!1,Touch:!1,TouchEvent:!1,TouchList:!1,TrackEvent:!1,TransformStream:!1,TransformStreamDefaultController:!1,TransitionEvent:!1,TreeWalker:!1,UIEvent:!1,URL:!1,URLSearchParams:!1,ValidityState:!1,visualViewport:!1,VisualViewport:!1,VTTCue:!1,WaveShaperNode:!1,WebAssembly:!1,WebGL2RenderingContext:!1,WebGLActiveInfo:!1,WebGLBuffer:!1,WebGLContextEvent:!1,WebGLFramebuffer:!1,WebGLProgram:!1,WebGLQuery:!1,WebGLRenderbuffer:!1,WebGLRenderingContext:!1,WebGLSampler:!1,WebGLShader:!1,WebGLShaderPrecisionFormat:!1,WebGLSync:!1,WebGLTexture:!1,WebGLTransformFeedback:!1,WebGLUniformLocation:!1,WebGLVertexArrayObject:!1,WebSocket:!1,WheelEvent:!1,window:!1,Window:!1,Worker:!1,WritableStream:!1,WritableStreamDefaultController:!1,WritableStreamDefaultWriter:!1,XMLDocument:!1,XMLHttpRequest:!1,XMLHttpRequestEventTarget:!1,XMLHttpRequestUpload:!1,XMLSerializer:!1,XPathEvaluator:!1,XPathExpression:!1,XPathResult:!1,XRAnchor:!1,XRBoundedReferenceSpace:!1,XRCPUDepthInformation:!1,XRDepthInformation:!1,XRFrame:!1,XRInputSource:!1,XRInputSourceArray:!1,XRInputSourceEvent:!1,XRInputSourcesChangeEvent:!1,XRPose:!1,XRReferenceSpace:!1,XRReferenceSpaceEvent:!1,XRRenderState:!1,XRRigidTransform:!1,XRSession:!1,XRSessionEvent:!1,XRSpace:!1,XRSystem:!1,XRView:!1,XRViewerPose:!1,XRViewport:!1,XRWebGLBinding:!1,XRWebGLDepthInformation:!1,XRWebGLLayer:!1,XSLTProcessor:!1},worker:{addEventListener:!1,applicationCache:!1,atob:!1,Blob:!1,BroadcastChannel:!1,btoa:!1,ByteLengthQueuingStrategy:!1,Cache:!1,caches:!1,clearInterval:!1,clearTimeout:!1,close:!0,CompressionStream:!1,console:!1,CountQueuingStrategy:!1,crypto:!1,Crypto:!1,CryptoKey:!1,CustomEvent:!1,DecompressionStream:!1,ErrorEvent:!1,Event:!1,fetch:!1,File:!1,FileReaderSync:!1,FormData:!1,Headers:!1,IDBCursor:!1,IDBCursorWithValue:!1,IDBDatabase:!1,IDBFactory:!1,IDBIndex:!1,IDBKeyRange:!1,IDBObjectStore:!1,IDBOpenDBRequest:!1,IDBRequest:!1,IDBTransaction:!1,IDBVersionChangeEvent:!1,ImageData:!1,importScripts:!0,indexedDB:!1,location:!1,MessageChannel:!1,MessageEvent:!1,MessagePort:!1,name:!1,navigator:!1,Notification:!1,onclose:!0,onconnect:!0,onerror:!0,onlanguagechange:!0,onmessage:!0,onoffline:!0,ononline:!0,onrejectionhandled:!0,onunhandledrejection:!0,performance:!1,Performance:!1,PerformanceEntry:!1,PerformanceMark:!1,PerformanceMeasure:!1,PerformanceNavigation:!1,PerformanceObserver:!1,PerformanceObserverEntryList:!1,PerformanceResourceTiming:!1,PerformanceTiming:!1,postMessage:!0,Promise:!1,queueMicrotask:!1,ReadableByteStreamController:!1,ReadableStream:!1,ReadableStreamBYOBReader:!1,ReadableStreamBYOBRequest:!1,ReadableStreamDefaultController:!1,ReadableStreamDefaultReader:!1,removeEventListener:!1,reportError:!1,Request:!1,Response:!1,self:!0,ServiceWorkerRegistration:!1,setInterval:!1,setTimeout:!1,SubtleCrypto:!1,TextDecoder:!1,TextDecoderStream:!1,TextEncoder:!1,TextEncoderStream:!1,TransformStream:!1,TransformStreamDefaultController:!1,URL:!1,URLSearchParams:!1,WebAssembly:!1,WebSocket:!1,Worker:!1,WorkerGlobalScope:!1,WritableStream:!1,WritableStreamDefaultController:!1,WritableStreamDefaultWriter:!1,XMLHttpRequest:!1},node:{__dirname:!1,__filename:!1,AbortController:!1,AbortSignal:!1,atob:!1,Blob:!1,BroadcastChannel:!1,btoa:!1,Buffer:!1,ByteLengthQueuingStrategy:!1,clearImmediate:!1,clearInterval:!1,clearTimeout:!1,CompressionStream:!1,console:!1,CountQueuingStrategy:!1,crypto:!1,Crypto:!1,CryptoKey:!1,CustomEvent:!1,DecompressionStream:!1,DOMException:!1,Event:!1,EventTarget:!1,exports:!0,fetch:!1,File:!1,FormData:!1,global:!1,Headers:!1,Intl:!1,MessageChannel:!1,MessageEvent:!1,MessagePort:!1,module:!1,performance:!1,PerformanceEntry:!1,PerformanceMark:!1,PerformanceMeasure:!1,PerformanceObserver:!1,PerformanceObserverEntryList:!1,PerformanceResourceTiming:!1,process:!1,queueMicrotask:!1,ReadableByteStreamController:!1,ReadableStream:!1,ReadableStreamBYOBReader:!1,ReadableStreamBYOBRequest:!1,ReadableStreamDefaultController:!1,ReadableStreamDefaultReader:!1,Request:!1,require:!1,Response:!1,setImmediate:!1,setInterval:!1,setTimeout:!1,structuredClone:!1,SubtleCrypto:!1,TextDecoder:!1,TextDecoderStream:!1,TextEncoder:!1,TextEncoderStream:!1,TransformStream:!1,TransformStreamDefaultController:!1,URL:!1,URLSearchParams:!1,WebAssembly:!1,WritableStream:!1,WritableStreamDefaultController:!1,WritableStreamDefaultWriter:!1},nodeBuiltin:{AbortController:!1,AbortSignal:!1,atob:!1,Blob:!1,BroadcastChannel:!1,btoa:!1,Buffer:!1,ByteLengthQueuingStrategy:!1,clearImmediate:!1,clearInterval:!1,clearTimeout:!1,CompressionStream:!1,console:!1,CountQueuingStrategy:!1,crypto:!1,Crypto:!1,CryptoKey:!1,CustomEvent:!1,DecompressionStream:!1,DOMException:!1,Event:!1,EventTarget:!1,fetch:!1,File:!1,FormData:!1,global:!1,Headers:!1,Intl:!1,MessageChannel:!1,MessageEvent:!1,MessagePort:!1,performance:!1,PerformanceEntry:!1,PerformanceMark:!1,PerformanceMeasure:!1,PerformanceObserver:!1,PerformanceObserverEntryList:!1,PerformanceResourceTiming:!1,process:!1,queueMicrotask:!1,ReadableByteStreamController:!1,ReadableStream:!1,ReadableStreamBYOBReader:!1,ReadableStreamBYOBRequest:!1,ReadableStreamDefaultController:!1,ReadableStreamDefaultReader:!1,Request:!1,Response:!1,setImmediate:!1,setInterval:!1,setTimeout:!1,structuredClone:!1,SubtleCrypto:!1,TextDecoder:!1,TextDecoderStream:!1,TextEncoder:!1,TextEncoderStream:!1,TransformStream:!1,TransformStreamDefaultController:!1,URL:!1,URLSearchParams:!1,WebAssembly:!1,WritableStream:!1,WritableStreamDefaultController:!1,WritableStreamDefaultWriter:!1},commonjs:{exports:!0,global:!1,module:!1,require:!1},amd:{define:!1,require:!1},mocha:{after:!1,afterEach:!1,before:!1,beforeEach:!1,context:!1,describe:!1,it:!1,mocha:!1,run:!1,setup:!1,specify:!1,suite:!1,suiteSetup:!1,suiteTeardown:!1,teardown:!1,test:!1,xcontext:!1,xdescribe:!1,xit:!1,xspecify:!1},jasmine:{afterAll:!1,afterEach:!1,beforeAll:!1,beforeEach:!1,describe:!1,expect:!1,expectAsync:!1,fail:!1,fdescribe:!1,fit:!1,it:!1,jasmine:!1,pending:!1,runs:!1,spyOn:!1,spyOnAllFunctions:!1,spyOnProperty:!1,waits:!1,waitsFor:!1,xdescribe:!1,xit:!1},jest:{afterAll:!1,afterEach:!1,beforeAll:!1,beforeEach:!1,describe:!1,expect:!1,fdescribe:!1,fit:!1,it:!1,jest:!1,pit:!1,require:!1,test:!1,xdescribe:!1,xit:!1,xtest:!1},qunit:{asyncTest:!1,deepEqual:!1,equal:!1,expect:!1,module:!1,notDeepEqual:!1,notEqual:!1,notOk:!1,notPropEqual:!1,notStrictEqual:!1,ok:!1,propEqual:!1,QUnit:!1,raises:!1,start:!1,stop:!1,strictEqual:!1,test:!1,throws:!1},phantomjs:{console:!0,exports:!0,phantom:!0,require:!0,WebPage:!0},couch:{emit:!1,exports:!1,getRow:!1,log:!1,module:!1,provides:!1,require:!1,respond:!1,send:!1,start:!1,sum:!1},rhino:{defineClass:!1,deserialize:!1,gc:!1,help:!1,importClass:!1,importPackage:!1,java:!1,load:!1,loadClass:!1,Packages:!1,print:!1,quit:!1,readFile:!1,readUrl:!1,runCommand:!1,seal:!1,serialize:!1,spawn:!1,sync:!1,toint32:!1,version:!1},nashorn:{__DIR__:!1,__FILE__:!1,__LINE__:!1,com:!1,edu:!1,exit:!1,java:!1,Java:!1,javafx:!1,JavaImporter:!1,javax:!1,JSAdapter:!1,load:!1,loadWithNewGlobal:!1,org:!1,Packages:!1,print:!1,quit:!1},wsh:{ActiveXObject:!1,CollectGarbage:!1,Debug:!1,Enumerator:!1,GetObject:!1,RuntimeObject:!1,ScriptEngine:!1,ScriptEngineBuildVersion:!1,ScriptEngineMajorVersion:!1,ScriptEngineMinorVersion:!1,VBArray:!1,WScript:!1,WSH:!1},jquery:{$:!1,jQuery:!1},yui:{YAHOO:!1,YAHOO_config:!1,YUI:!1,YUI_config:!1},shelljs:{cat:!1,cd:!1,chmod:!1,config:!1,cp:!1,dirs:!1,echo:!1,env:!1,error:!1,exec:!1,exit:!1,find:!1,grep:!1,ln:!1,ls:!1,mkdir:!1,mv:!1,popd:!1,pushd:!1,pwd:!1,rm:!1,sed:!1,set:!1,target:!1,tempdir:!1,test:!1,touch:!1,which:!1},prototypejs:{$:!1,$$:!1,$A:!1,$break:!1,$continue:!1,$F:!1,$H:!1,$R:!1,$w:!1,Abstract:!1,Ajax:!1,Autocompleter:!1,Builder:!1,Class:!1,Control:!1,Draggable:!1,Draggables:!1,Droppables:!1,Effect:!1,Element:!1,Enumerable:!1,Event:!1,Field:!1,Form:!1,Hash:!1,Insertion:!1,ObjectRange:!1,PeriodicalExecuter:!1,Position:!1,Prototype:!1,Scriptaculous:!1,Selector:!1,Sortable:!1,SortableObserver:!1,Sound:!1,Template:!1,Toggle:!1,Try:!1},meteor:{$:!1,Accounts:!1,AccountsClient:!1,AccountsCommon:!1,AccountsServer:!1,App:!1,Assets:!1,Blaze:!1,check:!1,Cordova:!1,DDP:!1,DDPRateLimiter:!1,DDPServer:!1,Deps:!1,EJSON:!1,Email:!1,HTTP:!1,Log:!1,Match:!1,Meteor:!1,Mongo:!1,MongoInternals:!1,Npm:!1,Package:!1,Plugin:!1,process:!1,Random:!1,ReactiveDict:!1,ReactiveVar:!1,Router:!1,ServiceConfiguration:!1,Session:!1,share:!1,Spacebars:!1,Template:!1,Tinytest:!1,Tracker:!1,UI:!1,Utils:!1,WebApp:!1,WebAppInternals:!1},mongo:{_isWindows:!1,_rand:!1,BulkWriteResult:!1,cat:!1,cd:!1,connect:!1,db:!1,getHostName:!1,getMemInfo:!1,hostname:!1,ISODate:!1,listFiles:!1,load:!1,ls:!1,md5sumFile:!1,mkdir:!1,Mongo:!1,NumberInt:!1,NumberLong:!1,ObjectId:!1,PlanCache:!1,print:!1,printjson:!1,pwd:!1,quit:!1,removeFile:!1,rs:!1,sh:!1,UUID:!1,version:!1,WriteResult:!1},applescript:{$:!1,Application:!1,Automation:!1,console:!1,delay:!1,Library:!1,ObjC:!1,ObjectSpecifier:!1,Path:!1,Progress:!1,Ref:!1},serviceworker:{addEventListener:!1,applicationCache:!1,atob:!1,Blob:!1,BroadcastChannel:!1,btoa:!1,ByteLengthQueuingStrategy:!1,Cache:!1,caches:!1,CacheStorage:!1,clearInterval:!1,clearTimeout:!1,Client:!1,clients:!1,Clients:!1,close:!0,CompressionStream:!1,console:!1,CountQueuingStrategy:!1,crypto:!1,Crypto:!1,CryptoKey:!1,CustomEvent:!1,DecompressionStream:!1,ErrorEvent:!1,Event:!1,ExtendableEvent:!1,ExtendableMessageEvent:!1,fetch:!1,FetchEvent:!1,File:!1,FileReaderSync:!1,FormData:!1,Headers:!1,IDBCursor:!1,IDBCursorWithValue:!1,IDBDatabase:!1,IDBFactory:!1,IDBIndex:!1,IDBKeyRange:!1,IDBObjectStore:!1,IDBOpenDBRequest:!1,IDBRequest:!1,IDBTransaction:!1,IDBVersionChangeEvent:!1,ImageData:!1,importScripts:!1,indexedDB:!1,location:!1,MessageChannel:!1,MessageEvent:!1,MessagePort:!1,name:!1,navigator:!1,Notification:!1,onclose:!0,onconnect:!0,onerror:!0,onfetch:!0,oninstall:!0,onlanguagechange:!0,onmessage:!0,onmessageerror:!0,onnotificationclick:!0,onnotificationclose:!0,onoffline:!0,ononline:!0,onpush:!0,onpushsubscriptionchange:!0,onrejectionhandled:!0,onsync:!0,onunhandledrejection:!0,performance:!1,Performance:!1,PerformanceEntry:!1,PerformanceMark:!1,PerformanceMeasure:!1,PerformanceNavigation:!1,PerformanceObserver:!1,PerformanceObserverEntryList:!1,PerformanceResourceTiming:!1,PerformanceTiming:!1,postMessage:!0,Promise:!1,queueMicrotask:!1,ReadableByteStreamController:!1,ReadableStream:!1,ReadableStreamBYOBReader:!1,ReadableStreamBYOBRequest:!1,ReadableStreamDefaultController:!1,ReadableStreamDefaultReader:!1,registration:!1,removeEventListener:!1,Request:!1,Response:!1,self:!1,ServiceWorker:!1,ServiceWorkerContainer:!1,ServiceWorkerGlobalScope:!1,ServiceWorkerMessageEvent:!1,ServiceWorkerRegistration:!1,setInterval:!1,setTimeout:!1,skipWaiting:!1,SubtleCrypto:!1,TextDecoder:!1,TextDecoderStream:!1,TextEncoder:!1,TextEncoderStream:!1,TransformStream:!1,TransformStreamDefaultController:!1,URL:!1,URLSearchParams:!1,WebAssembly:!1,WebSocket:!1,WindowClient:!1,Worker:!1,WorkerGlobalScope:!1,WritableStream:!1,WritableStreamDefaultController:!1,WritableStreamDefaultWriter:!1,XMLHttpRequest:!1},atomtest:{advanceClock:!1,atom:!1,fakeClearInterval:!1,fakeClearTimeout:!1,fakeSetInterval:!1,fakeSetTimeout:!1,resetTimeouts:!1,waitsForPromise:!1},embertest:{andThen:!1,click:!1,currentPath:!1,currentRouteName:!1,currentURL:!1,fillIn:!1,find:!1,findAll:!1,findWithAssert:!1,keyEvent:!1,pauseTest:!1,resumeTest:!1,triggerEvent:!1,visit:!1,wait:!1},protractor:{$:!1,$$:!1,browser:!1,by:!1,By:!1,DartObject:!1,element:!1,protractor:!1},"shared-node-browser":{AbortController:!1,AbortSignal:!1,atob:!1,Blob:!1,BroadcastChannel:!1,btoa:!1,ByteLengthQueuingStrategy:!1,clearInterval:!1,clearTimeout:!1,CompressionStream:!1,console:!1,CountQueuingStrategy:!1,crypto:!1,Crypto:!1,CryptoKey:!1,CustomEvent:!1,DecompressionStream:!1,DOMException:!1,Event:!1,EventTarget:!1,fetch:!1,File:!1,FormData:!1,Headers:!1,Intl:!1,MessageChannel:!1,MessageEvent:!1,MessagePort:!1,performance:!1,PerformanceEntry:!1,PerformanceMark:!1,PerformanceMeasure:!1,PerformanceObserver:!1,PerformanceObserverEntryList:!1,PerformanceResourceTiming:!1,queueMicrotask:!1,ReadableByteStreamController:!1,ReadableStream:!1,ReadableStreamBYOBReader:!1,ReadableStreamBYOBRequest:!1,ReadableStreamDefaultController:!1,ReadableStreamDefaultReader:!1,Request:!1,Response:!1,setInterval:!1,setTimeout:!1,structuredClone:!1,SubtleCrypto:!1,TextDecoder:!1,TextDecoderStream:!1,TextEncoder:!1,TextEncoderStream:!1,TransformStream:!1,TransformStreamDefaultController:!1,URL:!1,URLSearchParams:!1,WebAssembly:!1,WritableStream:!1,WritableStreamDefaultController:!1,WritableStreamDefaultWriter:!1},webextensions:{browser:!1,chrome:!1,opr:!1},greasemonkey:{cloneInto:!1,createObjectIn:!1,exportFunction:!1,GM:!1,GM_addElement:!1,GM_addStyle:!1,GM_addValueChangeListener:!1,GM_deleteValue:!1,GM_download:!1,GM_getResourceText:!1,GM_getResourceURL:!1,GM_getTab:!1,GM_getTabs:!1,GM_getValue:!1,GM_info:!1,GM_listValues:!1,GM_log:!1,GM_notification:!1,GM_openInTab:!1,GM_registerMenuCommand:!1,GM_removeValueChangeListener:!1,GM_saveTab:!1,GM_setClipboard:!1,GM_setValue:!1,GM_unregisterMenuCommand:!1,GM_xmlhttpRequest:!1,unsafeWindow:!1},devtools:{$:!1,$_:!1,$$:!1,$0:!1,$1:!1,$2:!1,$3:!1,$4:!1,$x:!1,chrome:!1,clear:!1,copy:!1,debug:!1,dir:!1,dirxml:!1,getEventListeners:!1,inspect:!1,keys:!1,monitor:!1,monitorEvents:!1,profile:!1,profileEnd:!1,queryObjects:!1,table:!1,undebug:!1,unmonitor:!1,unmonitorEvents:!1,values:!1}}})),zs=d(((e,t)=>{t.exports=Rs()})),Bs=d((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=h(`node:util`),n=h(`node:path`),r=Ls(),i=zs();function a(e){return e&&typeof e==`object`&&`default`in e?e:{default:e}}var o=a(t),s=a(n),c=a(r),l=a(i);let u=[`off`,`warn`,`error`],d=u.reduce((e,t,n)=>(e[t]=n,e),{}),f=new Set([0,1,2,`off`,`warn`,`error`]);function p(e){let t=Array.isArray(e)?e[0]:e;return t===0||t===1||t===2?t:typeof t==`string`&&d[t.toLowerCase()]||0}function m(e){e.rules&&Object.keys(e.rules).forEach(t=>{let n=e.rules[t];typeof n==`number`?e.rules[t]=u[n]||u[0]:Array.isArray(n)&&typeof n[0]==`number`&&(n[0]=u[n[0]]||u[0])})}function g(e){return p(e)===2}function _(e){let t=Array.isArray(e)?e[0]:e;return typeof t==`string`&&(t=t.toLowerCase()),f.has(t)}function v(e){return Object.keys(e).every(t=>_(e[t]))}function y(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')`)}}var b={__proto__:null,getRuleSeverity:p,normalizeToStrings:m,isErrorSeverity:g,isValidSeverity:_,isEverySeverityValid:v,normalizeConfigGlobal:y};let x={ESLINT_LEGACY_ECMAFEATURES:`The 'ecmaFeatures' config file property is deprecated and has no effect.`,ESLINT_PERSONAL_CONFIG_LOAD:`'~/.eslintrc.*' config files have been deprecated. Please use a config file per project or the '--config' option.`,ESLINT_PERSONAL_CONFIG_SUPPRESS:`'~/.eslintrc.*' config files have been deprecated. Please remove it or add 'root:true' to the config files in your projects in order to avoid loading '~/.eslintrc.*' accidentally.`},S=new Set;function C(e,t){let n=JSON.stringify({source:e,errorCode:t});if(S.has(n))return;S.add(n);let r=s.default.relative(process.cwd(),e),i=x[t];process.emitWarning(`${i} (found in "${r}")`,`DeprecationWarning`,t)}let w={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:{}};var T=(e={})=>{let t=new c.default({meta:!1,useDefaults:!0,validateSchema:!1,missingRefs:`ignore`,verbose:!0,schemaId:`auto`,...e});return t.addMetaSchema(w),t._opts.defaultMeta=w.id,t};function E(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}function D(e,t){if(t===void 0)return e;if(!E(e)||!E(t))return t;let n={...e,...t};for(let r of Object.keys(t))Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=D(e[r],t[r]));return n}function O(e,t){return!e||!t?t||e||[]:[...e.map((e,n)=>D(e,t[n])),...t.slice(e.length)]}let k={$schema:{type:`string`},env:{type:`object`},extends:{$ref:`#/definitions/stringOrStrings`},globals:{type:`object`},overrides:{type:`array`,items:{$ref:`#/definitions/overrideConfig`},additionalItems:!1},parser:{type:[`string`,`null`]},parserOptions:{type:`object`},plugins:{type:`array`},processor:{type:`string`},rules:{type:`object`},settings:{type:`object`},noInlineConfig:{type:`boolean`},reportUnusedDisableDirectives:{type:`boolean`},ecmaFeatures:{type:`object`}},A={definitions:{stringOrStrings:{oneOf:[{type:`string`},{type:`array`,items:{type:`string`},additionalItems:!1}]},stringOrStringsRequired:{oneOf:[{type:`string`},{type:`array`,items:{type:`string`},additionalItems:!1,minItems:1}]},objectConfig:{type:`object`,properties:{root:{type:`boolean`},ignorePatterns:{$ref:`#/definitions/stringOrStrings`},...k},additionalProperties:!1},overrideConfig:{type:`object`,properties:{excludedFiles:{$ref:`#/definitions/stringOrStrings`},files:{$ref:`#/definitions/stringOrStringsRequired`},...k},required:[`files`],additionalProperties:!1}},$ref:`#/definitions/objectConfig`};function j(e,t){let n={};for(let[r,i]of Object.entries(e))Object.hasOwn(t,r)||(n[r]=i);return n}let M=j(l.default.es2015,l.default.es5),N={Atomics:!1,SharedArrayBuffer:!1},P={BigInt:!1,BigInt64Array:!1,BigUint64Array:!1,globalThis:!1},F={AggregateError:!1,FinalizationRegistry:!1,WeakRef:!1};var I=new Map(Object.entries({builtin:{globals:l.default.es5},es6:{globals:M,parserOptions:{ecmaVersion:6}},es2015:{globals:M,parserOptions:{ecmaVersion:6}},es2016:{globals:M,parserOptions:{ecmaVersion:7}},es2017:{globals:{...M,...N},parserOptions:{ecmaVersion:8}},es2018:{globals:{...M,...N},parserOptions:{ecmaVersion:9}},es2019:{globals:{...M,...N},parserOptions:{ecmaVersion:10}},es2020:{globals:{...M,...N,...P},parserOptions:{ecmaVersion:11}},es2021:{globals:{...M,...N,...P,...F},parserOptions:{ecmaVersion:12}},es2022:{globals:{...M,...N,...P,...F},parserOptions:{ecmaVersion:13}},es2023:{globals:{...M,...N,...P,...F},parserOptions:{ecmaVersion:14}},es2024:{globals:{...M,...N,...P,...F},parserOptions:{ecmaVersion:15}},browser:{globals:l.default.browser},node:{globals:l.default.node,parserOptions:{ecmaFeatures:{globalReturn:!0}}},"shared-node-browser":{globals:l.default[`shared-node-browser`]},worker:{globals:l.default.worker},serviceworker:{globals:l.default.serviceworker},commonjs:{globals:l.default.commonjs,parserOptions:{ecmaFeatures:{globalReturn:!0}}},amd:{globals:l.default.amd},mocha:{globals:l.default.mocha},jasmine:{globals:l.default.jasmine},jest:{globals:l.default.jest},phantomjs:{globals:l.default.phantomjs},jquery:{globals:l.default.jquery},qunit:{globals:l.default.qunit},prototypejs:{globals:l.default.prototypejs},shelljs:{globals:l.default.shelljs},meteor:{globals:l.default.meteor},mongo:{globals:l.default.mongo},protractor:{globals:l.default.protractor},applescript:{globals:l.default.applescript},nashorn:{globals:l.default.nashorn},atomtest:{globals:l.default.atomtest},embertest:{globals:l.default.embertest},webextensions:{globals:l.default.webextensions},greasemonkey:{globals:l.default.greasemonkey}}));let L=T(),R=new WeakMap,z=Function.prototype,B,V={error:2,warn:1,off:0},H=new WeakSet,U=Object.freeze({type:`array`,minItems:0,maxItems:0});var ee=class{constructor({builtInRules:e=new Map}={}){this.builtInRules=e}getRuleOptionsSchema(e){if(!e)return null;if(!e.meta)return{...U};let t=e.meta.schema;if(t===void 0)return{...U};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}:{...U}:t}validateRuleSeverity(e){let t=Array.isArray(e)?e[0]:e,n=typeof t==`string`?V[t.toLowerCase()]:t;if(n===0||n===1||n===2)return n;throw Error(`\tSeverity should be one of the following: 0 = off, 1 = warn, 2 = error (you passed '${o.default.inspect(t).replace(/'/gu,`"`).replace(/\n/gu,``)}').\n`)}validateRuleSchema(e,t){if(!R.has(e))try{let t=this.getRuleOptionsSchema(e);t&&R.set(e,L.compile(t))}catch(e){let t=Error(e.message,{cause:e});throw t.code=`ESLINT_INVALID_RULE_OPTIONS_SCHEMA`,t}let n=R.get(e);if(n&&(n(O(e.meta?.defaultOptions,t)),n.errors))throw Error(n.errors.map(e=>`\tValue ${JSON.stringify(e.data)} ${e.message}.\n`).join(``))}validateRuleOptions(e,t,n,r=null){try{this.validateRuleSeverity(n)!==0&&this.validateRuleSchema(e,Array.isArray(n)?n.slice(1):[])}catch(e){let n=e.code===`ESLINT_INVALID_RULE_OPTIONS_SCHEMA`?`Error while processing options validation schema of rule '${t}': ${e.message}`:`Configuration for rule "${t}" is invalid:\n${e.message}`;typeof r==`string`&&(n=`${r}:\n\t${n}`);let i=Error(n,{cause:e});throw e.code&&(i.code=e.code),i}}validateEnvironment(e,t,n=z){e&&Object.keys(e).forEach(e=>{if(!(n(e)||I.get(e))){let n=`${t}:\n\tEnvironment key "${e}" is unknown\n`;throw Error(n)}})}validateRules(e,t,n=z){e&&Object.keys(e).forEach(r=>{let i=n(r)||this.builtInRules.get(r)||null;this.validateRuleOptions(i,r,e[r],t)})}validateGlobals(e,t=null){e&&Object.entries(e).forEach(([e,n])=>{try{y(n)}catch(n){throw Error(`ESLint configuration of global '${e}' in ${t} is invalid:\n${n.message}`)}})}validateProcessor(e,t,n){if(e&&!n(e))throw Error(`ESLint configuration of processor in '${t}' is invalid: '${e}' was not found.`)}formatErrors(e){return e.map(e=>e.keyword===`additionalProperties`?`Unexpected top-level property "${e.dataPath.length?`${e.dataPath.slice(1)}.${e.params.additionalProperty}`:e.params.additionalProperty}"`:e.keyword===`type`?`Property "${e.dataPath.slice(1)}" is the wrong type (expected ${Array.isArray(e.schema)?e.schema.join(`/`):e.schema} but got \`${JSON.stringify(e.data)}\`)`:`"${e.dataPath[0]===`.`?e.dataPath.slice(1):e.dataPath}" ${e.message}. Value: ${JSON.stringify(e.data)}`).map(e=>`\t- ${e}.\n`).join(``)}validateConfigSchema(e,t=null){if(B||=L.compile(A),!B(e))throw Error(`ESLint configuration in ${t} is invalid:\n${this.formatErrors(B.errors)}`);Object.hasOwn(e,`ecmaFeatures`)&&C(t,`ESLINT_LEGACY_ECMAFEATURES`)}validate(e,t,n,r){this.validateConfigSchema(e,t),this.validateRules(e.rules,t,n),this.validateEnvironment(e.env,t,r),this.validateGlobals(e.globals,t);for(let i of e.overrides||[])this.validateRules(i.rules,t,n),this.validateEnvironment(i.env,t,r),this.validateGlobals(e.globals,t)}validateConfigArray(e){let t=Map.prototype.get.bind(e.pluginEnvironments),n=Map.prototype.get.bind(e.pluginProcessors),r=Map.prototype.get.bind(e.pluginRules);for(let i of e)H.has(i)||(H.add(i),this.validateEnvironment(i.env,i.name,t),this.validateGlobals(i.globals,i.name),this.validateProcessor(i.processor,i.name,n),this.validateRules(i.rules,i.name,r))}};let W=/^@.*\//iu;function te(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 ne(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 re(e){let t=e.match(W);return t?t[0]:``}e.Legacy={environments:I,ConfigOps:b,ConfigValidator:ee,naming:{__proto__:null,normalizePackageName:te,getShorthandName:ne,getNamespaceFromTerm:re}}})),Vs=d(((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}})),Hs=d(((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}})),Us=d(((e,t)=>{let{normalizeSeverityToNumber:n}=Hs(),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}})),Ws=d((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]);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})),Gs=d((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]);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 B(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 V(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?B(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=V,e.normalize=S,e.normalizeGlob=B,e.parse=w,e.relative=D,e.resolve=T,e.toFileUrl=A,e.toNamespacedPath=j})),Ks=d((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})),qs=d((e=>{var t=Ws(),n=Gs(),r=Uo(),i=S(),a=Ks();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 d(e){if(!Array.isArray(e))throw TypeError(`Expected value to be an array.`)}function f(e){if(d(e),e.some(e=>typeof e!=`string`&&typeof e!=`function`))throw TypeError(`Expected array to only contain strings and functions.`)}function p(e){if(!Array.isArray(e)||e.length===0)throw TypeError(`Expected value to be a non-empty array.`)}let m=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){p(e),e.forEach(e=>{if(Array.isArray(e))f(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:f}}),h=r.Minimatch,g=i(`@eslint/config-array`),_=new Map,v=new Map,y={dot:!0,allowWindowsEscape:!0},b=new Set([`array`,`function`]),x=new Set([`name`,`basePath`]),C=new a.ObjectSchema(m),w=Object.freeze({status:`external`}),T=Object.freeze({status:`ignored`}),E=Object.freeze({status:`unconfigured`}),D=/^\.\.(?:\/|$)/u;var O=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 k(e){return e&&typeof e.name==`string`&&e.name?`"${e.name}"`:`(unnamed)`}function A(e,t,n){throw new O(k(e),t,{cause:n})}function j(e){return typeof e==`string`}function M(e,t){if(e===null)throw new O(k(e),t,{message:`Unexpected null config.`});if(e===void 0)throw new O(k(e),t,{message:`Unexpected undefined config.`});if(typeof e!=`object`)throw new O(k(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{C.validate(n)}catch(n){A(e,t,n)}}function N(e,t,n={}){let r=_;n.flipNegate&&(r=v);let i=r.get(t);return i||(i=new h(t,Object.assign({},y,n)),r.set(t,i)),i.match(e)}function P(e){if(j(e)){if(e.startsWith(`./`))return e.slice(2);if(e.startsWith(`!./`))return`!${e.slice(3)}`}return e}function F(e){return j(e)&&(e.startsWith(`./`)||e.startsWith(`!./`))}function I(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(F):F(e))),!i&&Array.isArray(e.ignores)&&(i=e.ignores.some(F)),!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(P):P(e))),Array.isArray(a.ignores)&&(a.ignores=a.ignores.map(P)),a}async function L(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=await s(e),l=[];for await(let e of c)l.push(I(e,r,i));return l}function R(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(I(t,r,i));return c}function z(e,t,n){let r=n.resolve(t,e),i=n.toNamespacedPath(r);return n.relative(t,i).replaceAll(n.SEPARATOR,`/`)}function B(e,t,n,{basePath:r,path:i}={}){let a=!1;for(let o of e){let e=n;if(o.basePath){if(e=z(i.resolve(r,n),o.basePath,i),e===``||D.test(e))continue;n.endsWith(`/`)&&(e+=`/`)}a=o.ignores.reduce((n,r)=>n?typeof r==`string`&&r.startsWith(`!`)?!N(e,r,{flipNegate:!0}):n:typeof r==`function`?r(t):r.startsWith(`!`)?!1:N(e,r),a)}return a}function V(e,t,n){function r(n){if(j(n))return N(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=!B([{ignores:n.ignores}],e,t)),i}function H(e){if(!e.isNormalized())throw Error(`ConfigArray must be normalized to perform this operation.`)}function U(e){if(e.length>2)throw TypeError(`configTypes must be an array with at most two items.`);for(let t of e)if(!b.has(t))throw TypeError(`Unexpected config type "${t}" found. Expected one of: "object", "array", "function".`)}function ee(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 W={isNormalized:Symbol(`isNormalized`),configCache:Symbol(`configCache`),schema:Symbol(`schema`),finalizeConfig:Symbol(`finalizeConfig`),preprocessConfig:Symbol(`preprocessConfig`)},te=new WeakMap;var ne=class extends Array{#e;#t;constructor(e,{basePath:t=`/`,normalized:n=!1,schema:r,extraConfigTypes:i=[]}={}){if(super(),this[W.isNormalized]=n,this[W.schema]=new a.ObjectSchema(Object.assign({},r,u)),!j(t)||!t)throw TypeError(`basePath must be a non-empty string`);this.basePath=t,U(i),this.extraConfigTypes=[...i],Object.freeze(this.extraConfigTypes),this[W.configCache]=new Map,te.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=ee(t),this.#e=this.#t.toNamespacedPath(t)}static get[Symbol.species](){return Array}get files(){H(this);let e=te.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,te.set(this,e),t}get ignores(){H(this);let e=te.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,te.set(this,e),t}isNormalized(){return this[W.isNormalized]}async normalize(e={}){if(!this.isNormalized()){let t=await L(this,e,this.extraConfigTypes,this.#e,this.#t);this.length=0,this.push(...t.map(this[W.preprocessConfig].bind(this))),this.forEach(M),this[W.isNormalized]=!0,Object.freeze(this)}return this}normalizeSync(e={}){if(!this.isNormalized()){let t=R(this,e,this.extraConfigTypes,this.#e,this.#t);this.length=0,this.push(...t.map(this[W.preprocessConfig].bind(this))),this.forEach(M),this[W.isNormalized]=!0,Object.freeze(this)}return this}[W.finalizeConfig](e){return e}[W.preprocessConfig](e){return e}getConfigWithStatus(e){H(this);let t=this[W.configCache];if(t.has(e))return t.get(e);let n=z(e,this.#e,this.#t);if(D.test(n))return g(`No config for file ${e} outside of base path`),t.set(e,w),w;if(this.isDirectoryIgnored(this.#t.dirname(e)))return g(`Ignoring ${e} based on directory pattern`),t.set(e,T),T;if(B(this.ignores,e,n,{basePath:this.#e,path:this.#t}))return g(`Ignoring ${e} based on file pattern`),t.set(e,T),T;let r=[],i=!1,a=/^\*$|^!|\/\*{1,2}$/u;if(this.forEach((t,o)=>{let s=t.basePath?z(this.#t.resolve(this.#e,e),t.basePath,this.#t):n;if(t.basePath&&D.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(B([{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&&V(e,s,{files:c,ignores:t.ignores})){g(`Matching config found for ${e}`),r.push(o),i=!0;return}if(l.length&&V(e,s,{files:l,ignores:t.ignores})){g(`Matching config found for ${e}`),r.push(o);return}return}V(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,E),E;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[W.schema].merge(e,this[t])}catch(e){A(this[t],t,e)}},{});return c=this[W.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){H(this);let t=z(e,this.#e,this.#t);if(t===``)return!1;if(D.test(t))return!0;let n=te.get(this).directoryMatches;if(n.has(t))return n.get(t);let r=t.split(`/`),i=``,a;do i+=`${r.shift()}/`,a=B(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=ne,e.ConfigArraySymbol=W})),Js=d(((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:{}}})),Ys=d(((e,t)=>{let n=Ls(),r=Js();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}})),Xs=d(((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`]}}})),Zs=d(((e,t)=>{let{deepMergeArrays:n}=Vs(),{flatConfigSchema:r,hasMethod:i}=Us(),{ObjectSchema:a}=qs(),o=Ys()(),s=Xs(),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}}}})),Qs=d(((e,t)=>{let n=G(),{Config:r}=Zs();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,nodeType:null,...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)}})),$s=d(((e,t)=>{let n=Ua();t.exports=class{constructor(){this._rules=Object.create(null)}define(e,t){this._rules[e]=t}get(e){return typeof this._rules[e]==`string`&&this.define(e,h(this._rules[e])),this._rules[e]?this._rules[e]:n.has(e)?n.get(e):null}*[Symbol.iterator](){yield*n;for(let e of Object.keys(this._rules))yield[e,this.get(e)]}}})),ec=d(((e,t)=>{let n=S()(`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})),tc=d(((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))}}}})),nc=d((e=>{let{ConfigArray:t,ConfigArraySymbol:n}=qs(),{flatConfigSchema:r}=Us(),{defaultConfig:i}=No(),{Config:a}=Zs(),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)}}})),rc=d(((e,t)=>{let n=new Map([[`test_only`,`Used only for testing.`],[`test_only_2`,`Used only for testing.`],[`v10_config_lookup_from_file`,"Look up `eslint.config.js` from the file being linted."],[`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.`}],[`unstable_ts_config`,{description:`Enable TypeScript configuration files.`,replacedBy:null}],[`unstable_config_lookup_from_file`,{description:"Look up `eslint.config.js` from the file being linted.",replacedBy:`v10_config_lookup_from_file`}]]);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}})),ic=d(((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}}}})),ac=d(((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,nodeType:null,fatal:!0,severity:2,message:`Parsing error: ${e.message}`,line:e.line,column:e.column}))}}}}})),oc=d((e=>{e.FileContext=class{cwd;filename;physicalFilename;sourceCode;parserOptions;parserPath;languageOptions;settings;constructor({cwd:e,filename:t,physicalFilename:n,sourceCode:r,parserOptions:i,parserPath:a,languageOptions:o,settings:s}){this.cwd=e,this.filename=t,this.physicalFilename=n,this.sourceCode=r,this.parserOptions=i,this.parserPath=a,this.languageOptions=o,this.settings=s,Object.freeze(this)}getCwd(){return this.cwd}getFilename(){return this.filename}getPhysicalFilename(){return this.physicalFilename}getSourceCode(){return this.sourceCode}extend(e){return Object.freeze(Object.assign(Object.create(this),e))}}})),sc=d(((e,t)=>{let n=h(`node:path`),{VFile:r}=ic();t.exports={ProcessorService:class{preprocessSync(e,t){let{processor:i}=t,a;try{a=i.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,nodeType:null}]}}if(typeof a.then==`function`)throw Error(`Unsupported: Preprocessor returned a promise.`);return{ok:!0,files:a.map((t,i)=>typeof t==`string`?t:new r(n.join(e.path,`${i}_${t.filename}`),t.text,{physicalPath:e.physicalPath}))}}postprocessSync(e,t,n){let{processor:r}=n;return r.postprocess(t,e.path)}}}})),cc=d(((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}})),lc=d(((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#ignoring-files`,`ESLintIgnoreWarning`)}emitESLintRCWarning(){this.emitWarning(`You are using an eslintrc configuration file, which is deprecated and support will be removed in v10.0.0. Please migrate to an eslint.config.js file. See https://eslint.org/docs/latest/use/configure/migration-guide for details. An eslintrc configuration file is used because you have the ESLINT_USE_FLAT_CONFIG environment variable set to false. If you want to use an eslint.config.js file, remove the environment variable. If you want to find the location of the eslintrc configuration file, use the --debug flag.`,`ESLintRCWarning`)}emitInactiveFlagWarning(e,t){this.emitWarning(t,`ESLintInactiveFlag_${e}`)}emitPoorConcurrencyWarning(e){this.emitWarning(`You may ${e} to improve performance.`,`ESLintPoorConcurrencyWarning`)}emitESLintEnvWarning(e,t){this.emitWarning(`/* eslint-env */ comments are no longer recognized when linting with flat config and will be reported as errors as of v10.0.0. Replace them with /* global */ comments or define globals in your config file. See https://eslint.org/docs/latest/use/configure/migration-guide#eslint-env-configuration-comments for details. Found in ${e} at line ${t}.`,`ESLintEnvWarning`)}}}})),uc=d(((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.
|
|
91
|
+
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.
|
|
92
|
+
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=ye(` `,!1),d=/^[^ [\],():#!=><~+.]/,f=be([` `,`[`,`]`,`,`,`(`,`)`,`:`,`#`,`!`,`=`,`>`,`<`,`~`,`+`,`.`],!0,!1),p=ye(`>`,!1),m=ye(`~`,!1),h=ye(`+`,!1),g=ye(`,`,!1),_=function(e,t){return[e].concat(t.map((function(e){return e[3]})))},v=ye(`!`,!1),y=ye(`*`,!1),b=ye(`#`,!1),x=ye(`[`,!1),S=ye(`]`,!1),C=/^[><!]/,w=be([`>`,`<`,`!`],!1,!1),T=ye(`=`,!1),E=function(e){return(e||``)+`=`},D=/^[><]/,O=be([`>`,`<`],!1,!1),k=ye(`.`,!1),A=function(e,t,n){return{type:`attribute`,name:e,operator:t,value:n}},j=ye(`"`,!1),M=/^[^\\"]/,N=be([`\\`,`"`],!0,!1),P=ye(`\\`,!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`
|
|
93
|
+
`;case`r`:return`\r`;case`t`:return` `;case`v`:return`\v`;default:return t}})))};var t},R=ye(`'`,!1),z=/^[^\\']/,B=be([`\\`,`'`],!0,!1),V=/^[0-9]/,H=be([[`0`,`9`]],!1,!1),U=ye(`type(`,!1),ee=/^[^ )]/,W=be([` `,`)`],!0,!1),te=ye(`)`,!1),ne=/^[imsu]/,re=be([`i`,`m`,`s`,`u`],!1,!1),ie=ye(`/`,!1),ae=/^[^\]\\]/,oe=be([`]`,`\\`],!0,!1),G=/^[^\/\\[]/,se=be([`/`,`\\`,`[`],!0,!1),ce=ye(`:not(`,!1),le=ye(`:matches(`,!1),K=function(e){return{type:`matches`,selectors:e}},ue=ye(`:is(`,!1),de=ye(`:has(`,!1),fe=ye(`:first-child`,!1),pe=ye(`:last-child`,!1),me=ye(`:nth-child(`,!1),he=ye(`:nth-last-child(`,!1),ge=ye(`:`,!1),q=0,_e=[{line:1,column:1}],J=0,ve=[],Y={};if(`startRule`in n){if(!(n.startRule in c))throw Error(`Can't start parsing from rule "`+n.startRule+`".`);l=c[n.startRule]}function ye(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=_e[e];if(r)return r;for(n=e-1;!_e[n];)n--;for(r={line:(r=_e[n]).line,column:r.column};n<e;)t.charCodeAt(n)===10?(r.line++,r.column=1):r.column++,n++;return _e[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){q<J||(q>J&&(J=q,ve=[]),ve.push(e))}function Ce(){var e,t,n,r,i=36*q+0,a=Y[i];return a?(q=a.nextPos,a.result):(e=q,(t=Z())!==s&&(n=Ee())!==s&&Z()!==s?e=t=(r=n).length===1?r[0]:{type:`matches`,selectors:r}:(q=e,e=s),e===s&&(e=q,(t=Z())!==s&&(t=void 0),e=t),Y[i]={nextPos:q,result:e},e)}function Z(){var e,n,r=36*q+1,i=Y[r];if(i)return q=i.nextPos,i.result;for(e=[],t.charCodeAt(q)===32?(n=` `,q++):(n=s,X(u));n!==s;)e.push(n),t.charCodeAt(q)===32?(n=` `,q++):(n=s,X(u));return Y[r]={nextPos:q,result:e},e}function we(){var e,n,r,i=36*q+2,a=Y[i];if(a)return q=a.nextPos,a.result;if(n=[],d.test(t.charAt(q))?(r=t.charAt(q),q++):(r=s,X(f)),r!==s)for(;r!==s;)n.push(r),d.test(t.charAt(q))?(r=t.charAt(q),q++):(r=s,X(f));else n=s;return n!==s&&(n=n.join(``)),e=n,Y[i]={nextPos:q,result:e},e}function Te(){var e,n,r,i=36*q+3,a=Y[i];return a?(q=a.nextPos,a.result):(e=q,(n=Z())===s?(q=e,e=s):(t.charCodeAt(q)===62?(r=`>`,q++):(r=s,X(p)),r!==s&&Z()!==s?e=n=`child`:(q=e,e=s)),e===s&&(e=q,(n=Z())===s?(q=e,e=s):(t.charCodeAt(q)===126?(r=`~`,q++):(r=s,X(m)),r!==s&&Z()!==s?e=n=`sibling`:(q=e,e=s)),e===s&&(e=q,(n=Z())===s?(q=e,e=s):(t.charCodeAt(q)===43?(r=`+`,q++):(r=s,X(h)),r!==s&&Z()!==s?e=n=`adjacent`:(q=e,e=s)),e===s&&(e=q,t.charCodeAt(q)===32?(n=` `,q++):(n=s,X(u)),n!==s&&(r=Z())!==s?e=n=`descendant`:(q=e,e=s)))),Y[i]={nextPos:q,result:e},e)}function Ee(){var e,n,r,i,a,o,c,l,u=36*q+5,d=Y[u];if(d)return q=d.nextPos,d.result;if(e=q,(n=Oe())!==s){for(r=[],i=q,(a=Z())===s?(q=i,i=s):(t.charCodeAt(q)===44?(o=`,`,q++):(o=s,X(g)),o!==s&&(c=Z())!==s&&(l=Oe())!==s?i=a=[a,o,c,l]:(q=i,i=s));i!==s;)r.push(i),i=q,(a=Z())===s?(q=i,i=s):(t.charCodeAt(q)===44?(o=`,`,q++):(o=s,X(g)),o!==s&&(c=Z())!==s&&(l=Oe())!==s?i=a=[a,o,c,l]:(q=i,i=s));r===s?(q=e,e=s):e=n=_(n,r)}else q=e,e=s;return Y[u]={nextPos:q,result:e},e}function De(){var e,t,n,r,i,a=36*q+6,o=Y[a];return o?(q=o.nextPos,o.result):(e=q,(t=Te())===s&&(t=null),t!==s&&(n=Oe())!==s?(i=n,e=t=(r=t)?{type:r,left:{type:`exactNode`},right:i}:i):(q=e,e=s),Y[a]={nextPos:q,result:e},e)}function Oe(){var e,t,n,r,i,a,o,c=36*q+7,l=Y[c];if(l)return q=l.nextPos,l.result;if(e=q,(t=ke())!==s){for(n=[],r=q,(i=Te())!==s&&(a=ke())!==s?r=i=[i,a]:(q=r,r=s);r!==s;)n.push(r),r=q,(i=Te())!==s&&(a=ke())!==s?r=i=[i,a]:(q=r,r=s);n===s?(q=e,e=s):(o=t,e=t=n.reduce((function(e,t){return{type:t[0],left:e,right:t[1]}}),o))}else q=e,e=s;return Y[c]={nextPos:q,result:e},e}function ke(){var e,n,r,i,a,o,c,l=36*q+8,u=Y[l];if(u)return q=u.nextPos,u.result;if(e=q,t.charCodeAt(q)===33?(n=`!`,q++):(n=s,X(v)),n===s&&(n=null),n!==s){if(r=[],(i=Ae())!==s)for(;i!==s;)r.push(i),i=Ae();else r=s;r===s?(q=e,e=s):(a=n,c=(o=r).length===1?o[0]:{type:`compound`,selectors:o},a&&(c.subject=!0),e=n=c)}else q=e,e=s;return Y[l]={nextPos:q,result:e},e}function Ae(){var e,n=36*q+9,r=Y[n];return r?(q=r.nextPos,r.result):((e=function(){var e,n,r=36*q+10,i=Y[r];return i?(q=i.nextPos,i.result):(t.charCodeAt(q)===42?(n=`*`,q++):(n=s,X(y)),n!==s&&(n={type:`wildcard`,value:n}),e=n,Y[r]={nextPos:q,result:e},e)}())===s&&(e=function(){var e,n,r,i=36*q+11,a=Y[i];return a?(q=a.nextPos,a.result):(e=q,t.charCodeAt(q)===35?(n=`#`,q++):(n=s,X(b)),n===s&&(n=null),n!==s&&(r=we())!==s?e=n={type:`identifier`,value:r}:(q=e,e=s),Y[i]={nextPos:q,result:e},e)}())===s&&(e=function(){var e,n,r,i,a=36*q+12,o=Y[a];return o?(q=o.nextPos,o.result):(e=q,t.charCodeAt(q)===91?(n=`[`,q++):(n=s,X(x)),n!==s&&Z()!==s&&(r=function(){var e,n,r,i,a=36*q+16,o=Y[a];return o?(q=o.nextPos,o.result):(e=q,(n=je())!==s&&Z()!==s&&(r=function(){var e,n,r,i=36*q+14,a=Y[i];return a?(q=a.nextPos,a.result):(e=q,t.charCodeAt(q)===33?(n=`!`,q++):(n=s,X(v)),n===s&&(n=null),n===s?(q=e,e=s):(t.charCodeAt(q)===61?(r=`=`,q++):(r=s,X(T)),r===s?(q=e,e=s):(n=E(n),e=n)),Y[i]={nextPos:q,result:e},e)}())!==s&&Z()!==s?((i=function(){var e,n,r,i,a,o=36*q+20,c=Y[o];if(c)return q=c.nextPos,c.result;if(e=q,t.substr(q,5)===`type(`?(n=`type(`,q+=5):(n=s,X(U)),n!==s)if(Z()!==s){if(r=[],ee.test(t.charAt(q))?(i=t.charAt(q),q++):(i=s,X(W)),i!==s)for(;i!==s;)r.push(i),ee.test(t.charAt(q))?(i=t.charAt(q),q++):(i=s,X(W));else r=s;r!==s&&(i=Z())!==s?(t.charCodeAt(q)===41?(a=`)`,q++):(a=s,X(te)),a===s?(q=e,e=s):(n={type:`type`,value:r.join(``)},e=n)):(q=e,e=s)}else q=e,e=s;else q=e,e=s;return Y[o]={nextPos:q,result:e},e}())===s&&(i=function(){var e,n,r,i,a,o,c=36*q+22,l=Y[c];if(l)return q=l.nextPos,l.result;if(e=q,t.charCodeAt(q)===47?(n=`/`,q++):(n=s,X(ie)),n!==s){if(r=[],(i=Me())===s&&(i=Ne())===s&&(i=Pe()),i!==s)for(;i!==s;)r.push(i),(i=Me())===s&&(i=Ne())===s&&(i=Pe());else r=s;r===s?(q=e,e=s):(t.charCodeAt(q)===47?(i=`/`,q++):(i=s,X(ie)),i===s?(q=e,e=s):((a=function(){var e,n,r=36*q+21,i=Y[r];if(i)return q=i.nextPos,i.result;if(e=[],ne.test(t.charAt(q))?(n=t.charAt(q),q++):(n=s,X(re)),n!==s)for(;n!==s;)e.push(n),ne.test(t.charAt(q))?(n=t.charAt(q),q++):(n=s,X(re));else e=s;return Y[r]={nextPos:q,result:e},e}())===s&&(a=null),a===s?(q=e,e=s):(o=a,n={type:`regexp`,value:new RegExp(r.join(``),o?o.join(``):``)},e=n)))}else q=e,e=s;return Y[c]={nextPos:q,result:e},e}()),i===s?(q=e,e=s):(n=A(n,r,i),e=n)):(q=e,e=s),e===s&&(e=q,(n=je())!==s&&Z()!==s&&(r=function(){var e,n,r,i=36*q+13,a=Y[i];return a?(q=a.nextPos,a.result):(e=q,C.test(t.charAt(q))?(n=t.charAt(q),q++):(n=s,X(w)),n===s&&(n=null),n===s?(q=e,e=s):(t.charCodeAt(q)===61?(r=`=`,q++):(r=s,X(T)),r===s?(q=e,e=s):(n=E(n),e=n)),e===s&&(D.test(t.charAt(q))?(e=t.charAt(q),q++):(e=s,X(O))),Y[i]={nextPos:q,result:e},e)}())!==s&&Z()!==s?((i=function(){var e,n,r,i,a,o,c=36*q+17,l=Y[c];if(l)return q=l.nextPos,l.result;if(e=q,t.charCodeAt(q)===34?(n=`"`,q++):(n=s,X(j)),n!==s){for(r=[],M.test(t.charAt(q))?(i=t.charAt(q),q++):(i=s,X(N)),i===s&&(i=q,t.charCodeAt(q)===92?(a=`\\`,q++):(a=s,X(P)),a===s?(q=i,i=s):(t.length>q?(o=t.charAt(q),q++):(o=s,X(F)),o===s?(q=i,i=s):(a=I(a,o),i=a)));i!==s;)r.push(i),M.test(t.charAt(q))?(i=t.charAt(q),q++):(i=s,X(N)),i===s&&(i=q,t.charCodeAt(q)===92?(a=`\\`,q++):(a=s,X(P)),a===s?(q=i,i=s):(t.length>q?(o=t.charAt(q),q++):(o=s,X(F)),o===s?(q=i,i=s):(a=I(a,o),i=a)));r===s?(q=e,e=s):(t.charCodeAt(q)===34?(i=`"`,q++):(i=s,X(j)),i===s?(q=e,e=s):(n=L(r),e=n))}else q=e,e=s;if(e===s)if(e=q,t.charCodeAt(q)===39?(n=`'`,q++):(n=s,X(R)),n!==s){for(r=[],z.test(t.charAt(q))?(i=t.charAt(q),q++):(i=s,X(B)),i===s&&(i=q,t.charCodeAt(q)===92?(a=`\\`,q++):(a=s,X(P)),a===s?(q=i,i=s):(t.length>q?(o=t.charAt(q),q++):(o=s,X(F)),o===s?(q=i,i=s):(a=I(a,o),i=a)));i!==s;)r.push(i),z.test(t.charAt(q))?(i=t.charAt(q),q++):(i=s,X(B)),i===s&&(i=q,t.charCodeAt(q)===92?(a=`\\`,q++):(a=s,X(P)),a===s?(q=i,i=s):(t.length>q?(o=t.charAt(q),q++):(o=s,X(F)),o===s?(q=i,i=s):(a=I(a,o),i=a)));r===s?(q=e,e=s):(t.charCodeAt(q)===39?(i=`'`,q++):(i=s,X(R)),i===s?(q=e,e=s):(n=L(r),e=n))}else q=e,e=s;return Y[c]={nextPos:q,result:e},e}())===s&&(i=function(){var e,n,r,i,a,o,c,l=36*q+18,u=Y[l];if(u)return q=u.nextPos,u.result;for(e=q,n=q,r=[],V.test(t.charAt(q))?(i=t.charAt(q),q++):(i=s,X(H));i!==s;)r.push(i),V.test(t.charAt(q))?(i=t.charAt(q),q++):(i=s,X(H));if(r===s?(q=n,n=s):(t.charCodeAt(q)===46?(i=`.`,q++):(i=s,X(k)),i===s?(q=n,n=s):n=r=[r,i]),n===s&&(n=null),n!==s){if(r=[],V.test(t.charAt(q))?(i=t.charAt(q),q++):(i=s,X(H)),i!==s)for(;i!==s;)r.push(i),V.test(t.charAt(q))?(i=t.charAt(q),q++):(i=s,X(H));else r=s;r===s?(q=e,e=s):(o=r,c=(a=n)?[].concat.apply([],a).join(``):``,n={type:`literal`,value:parseFloat(c+o.join(``))},e=n)}else q=e,e=s;return Y[l]={nextPos:q,result:e},e}())===s&&(i=function(){var e,t,n=36*q+19,r=Y[n];return r?(q=r.nextPos,r.result):((t=we())!==s&&(t={type:`literal`,value:t}),e=t,Y[n]={nextPos:q,result:e},e)}()),i===s?(q=e,e=s):(n=A(n,r,i),e=n)):(q=e,e=s),e===s&&(e=q,(n=je())!==s&&(n={type:`attribute`,name:n}),e=n)),Y[a]={nextPos:q,result:e},e)}())!==s&&Z()!==s?(t.charCodeAt(q)===93?(i=`]`,q++):(i=s,X(S)),i===s?(q=e,e=s):e=n=r):(q=e,e=s),Y[a]={nextPos:q,result:e},e)}())===s&&(e=function(){var e,n,r,i,a,o,c,l,u=36*q+26,d=Y[u];if(d)return q=d.nextPos,d.result;if(e=q,t.charCodeAt(q)===46?(n=`.`,q++):(n=s,X(k)),n!==s)if((r=we())!==s){for(i=[],a=q,t.charCodeAt(q)===46?(o=`.`,q++):(o=s,X(k)),o!==s&&(c=we())!==s?a=o=[o,c]:(q=a,a=s);a!==s;)i.push(a),a=q,t.charCodeAt(q)===46?(o=`.`,q++):(o=s,X(k)),o!==s&&(c=we())!==s?a=o=[o,c]:(q=a,a=s);i===s?(q=e,e=s):(l=r,n={type:`field`,name:i.reduce((function(e,t){return e+t[0]+t[1]}),l)},e=n)}else q=e,e=s;else q=e,e=s;return Y[u]={nextPos:q,result:e},e}())===s&&(e=function(){var e,n,r,i,a=36*q+27,o=Y[a];return o?(q=o.nextPos,o.result):(e=q,t.substr(q,5)===`:not(`?(n=`:not(`,q+=5):(n=s,X(ce)),n!==s&&Z()!==s&&(r=Ee())!==s&&Z()!==s?(t.charCodeAt(q)===41?(i=`)`,q++):(i=s,X(te)),i===s?(q=e,e=s):e=n={type:`not`,selectors:r}):(q=e,e=s),Y[a]={nextPos:q,result:e},e)}())===s&&(e=function(){var e,n,r,i,a=36*q+28,o=Y[a];return o?(q=o.nextPos,o.result):(e=q,t.substr(q,9)===`:matches(`?(n=`:matches(`,q+=9):(n=s,X(le)),n!==s&&Z()!==s&&(r=Ee())!==s&&Z()!==s?(t.charCodeAt(q)===41?(i=`)`,q++):(i=s,X(te)),i===s?(q=e,e=s):(n=K(r),e=n)):(q=e,e=s),Y[a]={nextPos:q,result:e},e)}())===s&&(e=function(){var e,n,r,i,a=36*q+29,o=Y[a];return o?(q=o.nextPos,o.result):(e=q,t.substr(q,4)===`:is(`?(n=`:is(`,q+=4):(n=s,X(ue)),n!==s&&Z()!==s&&(r=Ee())!==s&&Z()!==s?(t.charCodeAt(q)===41?(i=`)`,q++):(i=s,X(te)),i===s?(q=e,e=s):(n=K(r),e=n)):(q=e,e=s),Y[a]={nextPos:q,result:e},e)}())===s&&(e=function(){var e,n,r,i,a=36*q+30,o=Y[a];return o?(q=o.nextPos,o.result):(e=q,t.substr(q,5)===`:has(`?(n=`:has(`,q+=5):(n=s,X(de)),n!==s&&Z()!==s&&(r=function(){var e,n,r,i,a,o,c,l,u=36*q+4,d=Y[u];if(d)return q=d.nextPos,d.result;if(e=q,(n=De())!==s){for(r=[],i=q,(a=Z())===s?(q=i,i=s):(t.charCodeAt(q)===44?(o=`,`,q++):(o=s,X(g)),o!==s&&(c=Z())!==s&&(l=De())!==s?i=a=[a,o,c,l]:(q=i,i=s));i!==s;)r.push(i),i=q,(a=Z())===s?(q=i,i=s):(t.charCodeAt(q)===44?(o=`,`,q++):(o=s,X(g)),o!==s&&(c=Z())!==s&&(l=De())!==s?i=a=[a,o,c,l]:(q=i,i=s));r===s?(q=e,e=s):e=n=_(n,r)}else q=e,e=s;return Y[u]={nextPos:q,result:e},e}())!==s&&Z()!==s?(t.charCodeAt(q)===41?(i=`)`,q++):(i=s,X(te)),i===s?(q=e,e=s):e=n={type:`has`,selectors:r}):(q=e,e=s),Y[a]={nextPos:q,result:e},e)}())===s&&(e=function(){var e,n,r=36*q+31,i=Y[r];return i?(q=i.nextPos,i.result):(t.substr(q,12)===`:first-child`?(n=`:first-child`,q+=12):(n=s,X(fe)),n!==s&&(n=Fe(1)),e=n,Y[r]={nextPos:q,result:e},e)}())===s&&(e=function(){var e,n,r=36*q+32,i=Y[r];return i?(q=i.nextPos,i.result):(t.substr(q,11)===`:last-child`?(n=`:last-child`,q+=11):(n=s,X(pe)),n!==s&&(n=Ie(1)),e=n,Y[r]={nextPos:q,result:e},e)}())===s&&(e=function(){var e,n,r,i,a,o=36*q+33,c=Y[o];if(c)return q=c.nextPos,c.result;if(e=q,t.substr(q,11)===`:nth-child(`?(n=`:nth-child(`,q+=11):(n=s,X(me)),n!==s)if(Z()!==s){if(r=[],V.test(t.charAt(q))?(i=t.charAt(q),q++):(i=s,X(H)),i!==s)for(;i!==s;)r.push(i),V.test(t.charAt(q))?(i=t.charAt(q),q++):(i=s,X(H));else r=s;r!==s&&(i=Z())!==s?(t.charCodeAt(q)===41?(a=`)`,q++):(a=s,X(te)),a===s?(q=e,e=s):(n=Fe(parseInt(r.join(``),10)),e=n)):(q=e,e=s)}else q=e,e=s;else q=e,e=s;return Y[o]={nextPos:q,result:e},e}())===s&&(e=function(){var e,n,r,i,a,o=36*q+34,c=Y[o];if(c)return q=c.nextPos,c.result;if(e=q,t.substr(q,16)===`:nth-last-child(`?(n=`:nth-last-child(`,q+=16):(n=s,X(he)),n!==s)if(Z()!==s){if(r=[],V.test(t.charAt(q))?(i=t.charAt(q),q++):(i=s,X(H)),i!==s)for(;i!==s;)r.push(i),V.test(t.charAt(q))?(i=t.charAt(q),q++):(i=s,X(H));else r=s;r!==s&&(i=Z())!==s?(t.charCodeAt(q)===41?(a=`)`,q++):(a=s,X(te)),a===s?(q=e,e=s):(n=Ie(parseInt(r.join(``),10)),e=n)):(q=e,e=s)}else q=e,e=s;else q=e,e=s;return Y[o]={nextPos:q,result:e},e}())===s&&(e=function(){var e,n,r,i=36*q+35,a=Y[i];return a?(q=a.nextPos,a.result):(e=q,t.charCodeAt(q)===58?(n=`:`,q++):(n=s,X(ge)),n!==s&&(r=we())!==s?e=n={type:`class`,name:r}:(q=e,e=s),Y[i]={nextPos:q,result:e},e)}()),Y[n]={nextPos:q,result:e},e)}function je(){var e,n,r,i,a,o,c,l,u=36*q+15,d=Y[u];if(d)return q=d.nextPos,d.result;if(e=q,(n=we())!==s){for(r=[],i=q,t.charCodeAt(q)===46?(a=`.`,q++):(a=s,X(k)),a!==s&&(o=we())!==s?i=a=[a,o]:(q=i,i=s);i!==s;)r.push(i),i=q,t.charCodeAt(q)===46?(a=`.`,q++):(a=s,X(k)),a!==s&&(o=we())!==s?i=a=[a,o]:(q=i,i=s);r===s?(q=e,e=s):(c=n,l=r,e=n=[].concat.apply([c],l).join(``))}else q=e,e=s;return Y[u]={nextPos:q,result:e},e}function Me(){var e,n,r,i,a=36*q+23,o=Y[a];if(o)return q=o.nextPos,o.result;if(e=q,t.charCodeAt(q)===91?(n=`[`,q++):(n=s,X(x)),n!==s){if(r=[],ae.test(t.charAt(q))?(i=t.charAt(q),q++):(i=s,X(oe)),i===s&&(i=Ne()),i!==s)for(;i!==s;)r.push(i),ae.test(t.charAt(q))?(i=t.charAt(q),q++):(i=s,X(oe)),i===s&&(i=Ne());else r=s;r===s?(q=e,e=s):(t.charCodeAt(q)===93?(i=`]`,q++):(i=s,X(S)),i===s?(q=e,e=s):e=n=`[`+r.join(``)+`]`)}else q=e,e=s;return Y[a]={nextPos:q,result:e},e}function Ne(){var e,n,r,i=36*q+24,a=Y[i];return a?(q=a.nextPos,a.result):(e=q,t.charCodeAt(q)===92?(n=`\\`,q++):(n=s,X(P)),n===s?(q=e,e=s):(t.length>q?(r=t.charAt(q),q++):(r=s,X(F)),r===s?(q=e,e=s):e=n=`\\`+r),Y[i]={nextPos:q,result:e},e)}function Pe(){var e,n,r,i=36*q+25,a=Y[i];if(a)return q=a.nextPos,a.result;if(n=[],G.test(t.charAt(q))?(r=t.charAt(q),q++):(r=s,X(se)),r!==s)for(;r!==s;)n.push(r),G.test(t.charAt(q))?(r=t.charAt(q),q++):(r=s,X(se));else n=s;return n!==s&&(n=n.join(``)),e=n,Y[i]={nextPos:q,result:e},e}function Fe(e){return{type:`nth-child`,index:{type:`literal`,value:e}}}function Ie(e){return{type:`nth-last-child`,index:{type:`literal`,value:e}}}if((r=l())!==s&&q===t.length)return r;throw r!==s&&q<t.length&&X({type:`end`}),i=ve,a=J<t.length?t.charAt(J):null,o=J<t.length?Se(J,J+1):Se(J,J),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}))})),dc=d(((e,t)=>{let n=uc();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}})),fc=d(((e,t)=>{let{parse:n,matches:r}=dc(),i=U();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}".`)}}}}})),pc=d(((e,t)=>{function n(e,t){return{range:[e,e],text:t}}t.exports={RuleFixer:class{#e;constructor({sourceCode:e}){this.#e=e}insertTextAfter(e,t){let n=this.#e.getRange(e);return this.insertTextAfterRange(n,t)}insertTextAfterRange(e,t){return n(e[1],t)}insertTextBefore(e,t){let n=this.#e.getRange(e);return this.insertTextBeforeRange(n,t)}insertTextBeforeRange(e,t){return n(e[0],t)}replaceText(e,t){let n=this.#e.getRange(e);return this.replaceTextRange(n,t)}replaceTextRange(e,t){return{range:e,text:t}}remove(e){let t=this.#e.getRange(e);return this.removeRange(t)}removeRange(e){return{range:e,text:``}}}}})),mc=d(((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}})),hc=d(((e,t)=>{let n=Wa(),{RuleFixer:r}=pc(),{interpolate:i}=mc(),a=Xs(),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,nodeType:null}}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,nodeType:e.node&&e.node.type||null};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,node:r.node,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}})),gc=d(((e,t)=>{let n=h(`node:path`),r=Oo(),i=U(),a=oe(),o=Go(),s=C(),{Legacy:{ConfigOps:c,ConfigValidator:l,environments:u}}=Bs(),d=li(),{SourceCode:f}=Ao(),p=Qs(),{ConfigCommentParser:m}=wo(),g=$s(),_=ec(),{SourceCodeVisitor:v}=tc(),y=Fo(),{FlatConfigArray:b}=nc(),{startTime:x,endTime:w}=Po(),{assertIsRuleSeverity:T}=Us(),{normalizeSeverityToString:E,normalizeSeverityToNumber:D}=Hs(),{deepMergeArrays:O}=Vs(),k=Mo(),{activeFlags:A,inactiveFlags:j,getInactivityReasonMessage:M}=rc(),N=S()(`eslint:linter`),P=new m,F=Symbol.for(`eslint.RuleTester.parser`),{LATEST_ECMA_VERSION:I}=le(),{VFile:L}=ic(),{ParserService:R}=ac(),{FileContext:z}=oc(),{ProcessorService:B}=sc(),{containsDifferentProperty:V}=cc(),{Config:H}=Zs(),{WarningService:ee}=lc(),{SourceCodeTraverser:W}=fc(),{FileReport:te,updateLocationInformation:ne}=hc();function re(e){return e===a||e[F]===a}function ie(e,t,{exportedVariables:n,enabledGlobals:i}){for(let n of new Set([...Object.keys(t),...Object.keys(i)])){let a=t[n]===void 0?void 0:c.normalizeConfigGlobal(t[n]),o=i[n]&&i[n].value||a,s=i[n]&&i[n].comments;if(o===`off`)continue;let l=e.set.get(n);l||(l=new r.Variable(n,e),e.variables.push(l),e.set.set(n,l)),l.eslintImplicitGlobalSetting=a,l.eslintExplicitGlobal=s!==void 0,l.eslintExplicitGlobalComments=s,l.writeable=o===`writable`}Object.keys(n).forEach(t=>{let n=e.set.get(t);n&&(n.eslintUsed=!0,n.eslintExported=!0)}),e.through=e.through.filter(t=>{let n=t.identifier.name,r=e.set.get(n);return r?(t.resolved=r,r.references.push(t),!1):!0})}function ae(e){return Array.isArray(e)?e:[e]}function G(e,t,n,r,i,a,o){let s=e.rules?.[r],c=s?ae(s):[`off`],l=E(c[0]);if(l!==E(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}).`:V(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=D(o),r={message:d,loc:t};e===1?n.addWarning(r):e===2&&n.addError(r)}}function se({type:e,value:t,justification:n,node:r},i,a,o,s){let c=Object.keys(P.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}=ne(c.end,a);u.push({parentDirective:d,type:e,line:r,column:i,ruleId:t,justification:n})}else{let{line:r,column:i}=ne(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 ce(e,t,n,r,i){let a={},o=Object.create(null),s={},u=[],d=new l({builtInRules:g});return e.getInlineConfigNodes().filter(e=>e.type!==`Shebang`).forEach(l=>{let f=P.parseDirective(l.value);if(!f)return;let{label:p,value:m,justification:h}=f,g=/^eslint-disable-(?:next-)?line$/u.test(p);if(l.type===`Line`&&!g)return;let _=e.getLoc(l);if(n){let e=l.type===`Block`?`/*${p}*/`:`//${p}`;i.addWarning({ruleId:null,message:`'${e}' has no effect because you have 'noInlineConfig' setting in ${n}.`,loc:_});return}if(p===`eslint-disable-line`&&_.start.line!==_.end.line){let e=`${p} comment should not span multiple lines.`;i.addError({message:e,loc:_});return}switch(p){case`eslint-disable`:case`eslint-enable`:case`eslint-disable-next-line`:case`eslint-disable-line`:{let n=se({type:p.slice(7),value:m,justification:h,node:l},t,k,e,i);u.push(...n);break}case`exported`:Object.assign(s,P.parseListConfig(m));break;case`globals`:case`global`:for(let[e,t]of Object.entries(P.parseStringConfig(m))){let n;try{n=c.normalizeConfigGlobal(t)}catch(e){i.addError({loc:_,message:e.message});continue}o[e]?(o[e].comments.push(l),o[e].value=n):o[e]={comments:[l],value:n}}break;case`eslint`:{let e=P.parseJSONLikeConfig(m);e.ok?Object.keys(e.config).forEach(n=>{let o=t(n),s=e.config[n];if(!o){i.addError({ruleId:n,loc:_});return}if(Object.hasOwn(a,n)){i.addError({message:`Rule "${n}" is already configured by another configuration comment in the preceding code. This configuration is ignored.`,loc:_});return}let c=ae(s);c.length===1&&r.rules&&Object.hasOwn(r.rules,n)&&(c=[c[0],...ae(r.rules[n]).slice(1)]);try{d.validateRuleOptions(o,n,c)}catch(e){if(e.code===`ESLINT_INVALID_RULE_OPTIONS_SCHEMA`)throw e;i.addError({ruleId:n,message:e.message,loc:_});return}a[n]=c}):i.addFatal({loc:_,message:e.error.message});break}}}),{configuredRules:a,enabledGlobals:o,exportedVariables:s,disableDirectives:u}}function K(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=se(a,t,n,e,r);i.push(...o)})}return i}function ue(e,t){return re(e)&&t===`latest`?a.latestEcmaVersion:t>=2015?t-2009:t}function de(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 I}let fe=/\/\*\s*eslint-env\s.+?(?:\*\/|$)/gsu;function pe(e){let t,n;for(fe.lastIndex=0;(t=fe.exec(e))!==null;)t[0].endsWith(`*/`)&&(n=Object.assign(n||{},P.parseListConfig(P.parseDirective(t[0].slice(2,-2)).value)));return n}function me(e){let t=e.split(n.sep),r=t.lastIndexOf(`<text>`);return r===-1?e:t.slice(r).join(n.sep)}function he(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`:E(n.reportUnusedDisableDirectives));let s=n.reportUnusedInlineConfigs===void 0?`off`:E(n.reportUnusedInlineConfigs),c=e.ruleFilter;return typeof c!=`function`&&(c=()=>!0),{filename:me(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 ge(e,t,n){let r=o(n.filter(e=>e.parserOptions).reduce((e,t)=>o(e,t.parserOptions),{}),t||{});return r.sourceType===`module`&&(r.ecmaFeatures=Object.assign({},r.ecmaFeatures,{globalReturn:!1})),r.ecmaVersion=ue(e,r.ecmaVersion),r}function q({globals:e,parser:t,parserOptions:n}){let{ecmaVersion:r,sourceType:i}=n;return{globals:e,ecmaVersion:de(r),sourceType:i,parser:t,parserOptions:n}}function _e(e,t){return Object.assign(Object.create(null),...t.filter(e=>e.globals).map(e=>e.globals),e)}function J(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 ve(e,t){return Array.isArray(e)?O(t,e.slice(1)):t??[]}function Y(e,t,n){let a=t.parserOptions.ecmaFeatures||{},o=t.ecmaVersion||5;return r.analyze(e,{ignoreEval:!0,nodejsScope:a.globalReturn,impliedStrict:a.impliedStrict,ecmaVersion:typeof o==`number`?o:6,sourceType:t.sourceType||`script`,childVisitorKeys:n||i.KEYS,fallback:d.getKeys})}function ye(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 be(e,t,n,r,i,a,o,s,c,l,u,d,f,p,m){let h=new v,g=new z({cwd:l,filename:s,physicalFilename:u||s,sourceCode:e,parserOptions:{...a.parserOptions},parserPath:r,languageOptions:a,settings:o}),_=e.traverse();return Object.keys(t).forEach(e=>{let r=H.getRuleNumericSeverity(t[e]);if(r===0||d&&!d({ruleId:e,severity:r}))return;let i=n(e);if(!i){m.addError({ruleId:e});return}let a=g.extend({id:e,options:ve(t[e],c?i.meta?.defaultOptions:void 0),report(...t){let n=m.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=y.enabled||f?y.time(e,ye,f)(i,a):ye(i,a),s=f?o.result:o;f&&J(o.tdiff,{type:`rules`,key:e},p);function l(t){return function(...n){try{let r=t(...n),i=f?r.result:r;return f&&J(r.tdiff,{type:`rules`,key:e},p),i}catch(t){throw t.ruleId=e,t}}}if(s==null)throw Error(`The create() function for rule '${e}' did not return an object.`);Object.keys(s).forEach(t=>{let n=y.enabled||f?y.time(e,s[t],f):s[t];h.add(t,l(n))})}),W.getInstance(i).traverseSync(e,h,{steps:_}),m}function xe(e){if(typeof e==`object`){let{hasBOM:t,text:n}=e;return(t?``:``)+n}return String(e)}function Se(e,t){return e.lastConfigArray&&e.lastConfigArray.pluginEnvironments.get(t)||u.get(t)||null}function X(e,t){return e.lastConfigArray&&e.lastConfigArray.pluginRules.get(t)||e.ruleMap.get(t)}function Ce(e){if(e)return e;if(typeof process==`object`)return process.cwd()}let Z=new WeakMap;function we(e){let{configType:t}=Z.get(e);if(t===`flat`)throw Error(`This method cannot be used with flat config. Add your entries directly into the config array.`)}t.exports={Linter:class{constructor({cwd:e,configType:t=`flat`,flags:n=[],warningService:r=new ee}={}){let i=[];n.forEach(e=>{if(j.has(e)){let t=j.get(e),n=`The flag '${e}' is inactive: ${M(t)}`;if(t.replacedBy===void 0)throw Error(n);typeof t.replacedBy==`string`&&i.push(t.replacedBy),r.emitInactiveFlagWarning(e,n);return}if(!A.has(e))throw Error(`Unknown flag '${e}'.`);i.push(e)}),Z.set(this,{cwd:Ce(e),flags:i,lastConfigArray:null,lastSourceCode:null,lastSuppressedMessages:[],configType:t,parserMap:new Map([[`espree`,a]]),ruleMap:new g,warningService:r}),this.version=s.version}static get version(){return s.version}hasFlag(e){return Z.get(this).flags.includes(e)}#e(e,t,n){let r=Z.get(this),i=t||{},o=he(n,i),s=`espree`,c=a;if(typeof i.parser==`object`&&i.parser!==null)s=i.parser.filePath,c=i.parser.definition;else if(typeof i.parser==`string`){if(!r.parserMap.has(i.parser))return[{ruleId:null,fatal:!0,severity:2,message:`Configured parser '${i.parser}' was not found.`,line:0,column:0,nodeType:null}];s=i.parser,c=r.parserMap.get(i.parser)}let l=o.allowInlineConfig&&!o.warnInlineConfig?pe(e.body):{},u=Object.assign({builtin:!0},i.env,l),d=Object.keys(u).filter(e=>u[e]).map(e=>Se(r,e)).filter(e=>e),m=ge(c,i.parserOptions||{},d),h=_e(i.globals||{},d),g=i.settings||{},_=q({globals:i.globals,parser:c,parserOptions:m});if(r.lastSourceCode)r.lastSourceCode.scopeManager||(r.lastSourceCode=new f({text:r.lastSourceCode.text,ast:r.lastSourceCode.ast,hasBOM:r.lastSourceCode.hasBOM,parserServices:r.lastSourceCode.parserServices,visitorKeys:r.lastSourceCode.visitorKeys,scopeManager:Y(r.lastSourceCode.ast,_)}));else{let t;o.stats&&(t=x());let n=new R().parseSync(e,{language:k,languageOptions:_});if(o.stats&&J(w(t),{type:`parse`},r),!n.ok)return n.errors;r.lastSourceCode=n.sourceCode}let v=r.lastSourceCode,y=new te({ruleMapper:e=>X(r,e),language:k,sourceCode:v,disableFixes:o.disableFixes}),b=o.allowInlineConfig?ce(v,e=>X(r,e),o.warnInlineConfig,i,y):{configuredRules:{},enabledGlobals:{},exportedVariables:{},disableDirectives:[]};ie(v.scopeManager.scopes[0],h,{exportedVariables:b.exportedVariables,enabledGlobals:b.enabledGlobals});let S=Object.assign({},i.rules,b.configuredRules);try{be(v,S,e=>X(r,e),s,k,_,g,o.filename,!0,r.cwd,n.physicalFilename,null,o.stats,r,y)}catch(e){if(e.message+=`\nOccurred while linting ${o.filename}`,N(`An error occurred while traversing`),N(`Filename:`,o.filename),e.currentNode){let{line:t}=v.getLoc(e.currentNode).start;N(`Line:`,t),e.message+=`:${t}`}throw N(`Parser Options:`,m),N(`Parser Path:`,s),N(`Settings:`,g),e.ruleId&&(e.message+=`\nRule: "${e.ruleId}"`),e}return p({language:k,sourceCode:v,directives:b.disableDirectives,disableFixes:o.disableFixes,problems:y.messages.sort((e,t)=>e.line-t.line||e.column-t.column),reportUnusedDisableDirectives:o.reportUnusedDisableDirectives})}_verifyWithoutProcessors(e,t,n){let r=Z.get(this),i=me(n.filename||`<input>`),a;typeof e==`string`?(r.lastSourceCode=null,a=e):(r.lastSourceCode=e,a=e.text);let o=new L(i,a,{physicalPath:n.physicalFilename});return this.#e(o,t,n)}verify(e,t,n){N(`Verify`);let{configType:r,cwd:i}=Z.get(this),a=typeof n==`string`?{filename:n}:n||{},o=t??{};if(r!==`eslintrc`){let t=o;return(!Array.isArray(o)||typeof o.getConfig!=`function`)&&(t=new b(o,{basePath:i}),t.normalizeSync()),this._distinguishSuppressedMessages(this._verifyWithFlatConfigArray(e,t,a,!0))}return typeof o.extractConfig==`function`?this._distinguishSuppressedMessages(this._verifyWithConfigArray(e,o,a)):a.preprocess||a.postprocess?this._distinguishSuppressedMessages(this._verifyWithProcessor(e,o,a)):this._distinguishSuppressedMessages(this._verifyWithoutProcessors(e,o,a))}_verifyWithFlatConfigArrayAndProcessor(e,t,r,i){let a=Z.get(this),o=r.filename||`<input>`,s=me(o),c=r.physicalFilename||s,l=xe(e),u=new L(s,l,{physicalPath:c}),d=r.preprocess||(e=>[e]),f=r.postprocess||(e=>e.flat()),p=new B,m=p.preprocessSync(u,{processor:{preprocess:d,postprocess:f}});if(!m.ok)return m.errors;let h=r.filterCodeBlock||(e=>e.endsWith(`.js`)),g=n.extname(o),{files:_}=m,v=_.map(e=>(N(`A code block was found: %o`,e.path||`(unnamed)`),typeof e==`string`?this._verifyWithFlatConfigArrayAndWithoutProcessors(e,t,r):h(e.path,e.body)?i&&(l!==e.rawBody||n.extname(e.path)!==g)?(N(`Resolving configuration again because the file content or extension was changed.`),this._verifyWithFlatConfigArray(e.rawBody,i,{...r,filename:e.path,physicalFilename:e.physicalPath})):(a.lastSourceCode=null,this.#t(e,t,{...r,filename:e.path,physicalFilename:e.physicalPath})):(N(`This code block was skipped.`),[])));return p.postprocessSync(u,v,{processor:{preprocess:d,postprocess:f}})}#t(e,t,n){let r=Z.get(this),i=t||{},{settings:a={},languageOptions:o}=i,s=he(n,i);if(r.lastSourceCode)r.lastSourceCode.scopeManager===null&&(r.lastSourceCode=new f({text:r.lastSourceCode.text,ast:r.lastSourceCode.ast,hasBOM:r.lastSourceCode.hasBOM,parserServices:r.lastSourceCode.parserServices,visitorKeys:r.lastSourceCode.visitorKeys,scopeManager:Y(r.lastSourceCode.ast,o)}));else{let t;s.stats&&(t=x());let n=new R().parseSync(e,i);if(s.stats&&J(w(t),{type:`parse`},r),!n.ok)return n.errors;r.lastSourceCode=n.sourceCode}let c=r.lastSourceCode,l=new te({ruleMapper:e=>i.getRuleDefinition(e),language:i.language,sourceCode:c,disableFixes:s.disableFixes});c.applyLanguageOptions?.(o);let u={rules:{}};if(s.allowInlineConfig)if(s.warnInlineConfig)c.getInlineConfigNodes&&c.getInlineConfigNodes().forEach(e=>{let t=c.getLoc(e),n=c.getRange(e);l.addWarning({message:`'${c.text.slice(n[0],n[1])}' has no effect because you have 'noInlineConfig' setting in ${s.warnInlineConfig}.`,loc:t})});else{if(i.language===k)for(let e of c.getInlineConfigNodes()){let{label:t}=P.parseDirective(e.value);t===`eslint-env`&&r.warningService.emitESLintEnvWarning(s.filename,e.loc.start.line)}let e=c.applyInlineConfig?.();if(e){e.problems.forEach(e=>{l.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){l.addError({ruleId:e,loc:n});return}if(Object.hasOwn(u.rules,e)){l.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=ae(a),o=t;T(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=O(r.meta?.defaultOptions,e);t.length&&(o=[o[0],...t])}s.reportUnusedInlineConfigs!==`off`&&G(i,n,l,e,o,t,s.reportUnusedInlineConfigs),c&&i.validateRulesConfig({[e]:o}),u.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}".`),l.addError({ruleId:e,message:`Inline configuration for rule "${e}" is invalid:\n\t${r}\n`,loc:n})}})}}let d=s.allowInlineConfig&&!s.warnInlineConfig?K(c,e=>i.getRuleDefinition(e),i.language,l):[],m=Object.assign({},i.rules,u.rules);c.finalize?.();try{be(c,m,e=>i.getRuleDefinition(e),void 0,i.language,o,a,s.filename,!1,r.cwd,n.physicalFilename,s.ruleFilter,s.stats,r,l)}catch(e){if(e.message+=`\nOccurred while linting ${s.filename}`,N(`An error occurred while traversing`),N(`Filename:`,s.filename),e.currentNode){let{line:t}=c.getLoc(e.currentNode).start;N(`Line:`,t),e.message+=`:${t}`}throw N(`Parser Options:`,o.parserOptions),N(`Settings:`,a),e.ruleId&&(e.message+=`\nRule: "${e.ruleId}"`),e}return p({language:i.language,sourceCode:c,directives:d,disableFixes:s.disableFixes,problems:l.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=Z.get(this),i=me(n.filename||`<input>`),a;typeof e==`string`?(r.lastSourceCode=null,a=e):(r.lastSourceCode=e,a=e.text);let o=new L(i,a,{physicalPath:n.physicalFilename});return this.#t(o,t,n)}_verifyWithConfigArray(e,t,n){N(`With ConfigArray: %s`,n.filename),Z.get(this).lastConfigArray=t;let r=t.extractConfig(n.filename),i=r.processor&&t.pluginProcessors.get(r.processor);if(i){N(`Apply the processor: %o`,r.processor);let{preprocess:a,postprocess:o,supportsAutofix:s}=i,c=n.disableFixes||!s;return this._verifyWithProcessor(e,r,{...n,disableFixes:c,postprocess:o,preprocess:a},t)}return this._verifyWithoutProcessors(e,r,n)}_verifyWithFlatConfigArray(e,t,n,r=!1){N(`With flat config: %s`,n.filename);let i=n.filename||`__placeholder__.js`;Z.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,nodeType:null}];if(a.processor){N(`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)}_verifyWithProcessor(e,t,r,i){let a=Z.get(this),o=r.filename||`<input>`,s=me(o),c=r.physicalFilename||s,l=xe(e),u=new L(s,l,{physicalPath:c}),d=r.preprocess||(e=>[e]),f=r.postprocess||(e=>e.flat()),p=new B,m=p.preprocessSync(u,{processor:{preprocess:d,postprocess:f}});if(!m.ok)return m.errors;let h=r.filterCodeBlock||(e=>e.endsWith(`.js`)),g=n.extname(o),{files:_}=m,v=_.map(e=>(N(`A code block was found: %o`,e.path??`(unnamed)`),typeof e==`string`?this._verifyWithoutProcessors(e,t,r):h(e.path,e.body)?i&&(l!==e.rawBody||n.extname(e.path)!==g)?(N(`Resolving configuration again because the file content or extension was changed.`),this._verifyWithConfigArray(e.rawBody,i,{...r,filename:e.path,physicalFilename:e.physicalPath})):(a.lastSourceCode=null,this.#e(e,t,{...r,filename:e.path,physicalFilename:e.physicalPath})):(N(`This code block was skipped.`),[])));return p.postprocessSync(u,v,{processor:{preprocess:d,postprocess:f}})}_distinguishSuppressedMessages(e){let t=[],n=[],r=Z.get(this);for(let r of e)r.suppressions?n.push(r):t.push(r);return r.lastSuppressedMessages=n,t}getSourceCode(){return Z.get(this).lastSourceCode}getTimes(){return Z.get(this).times??{passes:[]}}getFixPassCount(){return Z.get(this).fixPasses??0}getSuppressedMessages(){return Z.get(this).lastSuppressedMessages}defineRule(e,t){we(this),Z.get(this).ruleMap.define(e,t)}defineRules(e){we(this),Object.getOwnPropertyNames(e).forEach(t=>{this.defineRule(t,e[t])})}getRules(){we(this);let{lastConfigArray:e,ruleMap:t}=Z.get(this);return new Map((function*(){yield*t,e&&(yield*e.pluginRules)})())}defineParser(e,t){we(this),Z.get(this).parserMap.set(e,t)}verifyAndFix(e,t,n){let r,i,a=!1,o=0,s=e,c,l,u=n&&n.filename||`${e.slice(0,10)}...`,d=n&&n.fix!==void 0?n.fix:!0,f=n?.stats,p=Z.get(this);f&&(delete p.times,p.fixPasses=0);do{o++;let e;f&&(e=x()),N(`Linting code for ${u} (pass ${o})`),r=this.verify(s,t,n),N(`Generating fixed text for ${u} (pass ${o})`);let m;if(f&&(m=x()),i=_.applyFixes(s,r,d),f&&(i.fixed?(J(w(m),{type:`fix`},p),p.fixPasses++):J(0,{type:`fix`},p)),r.length===1&&r[0].fatal)break;if(a||=i.fixed,c=l,l=s,s=i.output,f){e=w(e);let t=p.times.passes.length-1;p.times.passes[t].total=e}if(o>1&&s.length===c.length&&s===c){N(`Circular fixes detected after pass ${o}. Exiting fix loop.`),p.warningService.emitCircularFixesWarning(n?.filename??`text`);break}}while(i.fixed&&o<10);if(i.fixed){let e;f&&(e=x()),i.messages=this.verify(s,t,n),f&&(J(0,{type:`fix`},p),p.times.passes.at(-1).total=w(e))}return i.fixed=a,i.output=s,i}},getLinterInternalSlots(e){return Z.get(e)}}})),_c=d(((e,t)=>{let{Linter:n}=gc();t.exports={Linter:n,SourceCodeFixer:ec()}})),vc=d(((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}})),yc=d((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})}})),bc=d(((e,t)=>{let n=h(`events`),r=yc(),i=e=>e.adapter||e.uri?new(h({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,a=[`sqlite`,`postgres`,`mysql`,`mongo`,`redis`,`tiered`];t.exports=class extends n{constructor(e,{emitErrors:t=!0,...n}={}){if(super(),this.opts={namespace:`keyv`,serialize:r.stringify,deserialize:r.parse,...typeof e==`string`?{uri:e}:e,...n},!this.opts.store){let e={...this.opts};this.opts.store=i(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 a=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=a(this.opts.store):typeof this.opts.store.iterator==`function`&&this.opts.store.opts&&this._checkIterableAdaptar()&&(this.iterator=a(this.opts.store.iterator.bind(this.opts.store)))}_checkIterableAdaptar(){return a.includes(this.opts.store.opts.dialect)||a.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()}}})),xc=d((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)=>{let c=[];for(let l=r(n),{length:u}=l,d=0;d<u;d++){let r=l[d],u=n[r];if(u instanceof i){let i=e[u];typeof i===s&&!t.has(i)?(t.add(i),n[r]=o,c.push({k:r,a:[e,t,i,a]})):n[r]=a.call(n,r,i)}else n[r]!==o&&(n[r]=a.call(n,r,u))}for(let{length:e}=c,t=0;t<e;t++){let{k:e,a:r}=c[t];n[e]=a.call(n,e,d.apply(null,r))}return n},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=r[0],a=n||c,o=typeof i===s&&i?d(r,new Set,i,a):i;return a.call({"":o},``,o)};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))})),Sc=d(((e,t)=>{let n=h(`fs`),r=h(`path`),i=xc();function a(e,t){let n;try{n=o(e)}catch{n=t}return n}function o(e){return i.parse(n.readFileSync(e,{encoding:`utf8`}))}function s(e,t){n.mkdirSync(r.dirname(e),{recursive:!0}),n.writeFileSync(e,i.stringify(t))}t.exports={tryParse:a,readJSON:o,writeJSON:s}})),Cc=d(((e,t)=>{let n=h(`fs`),r=h(`path`);function i(e){if(!n.existsSync(e))return!1;try{return n.statSync(e).isDirectory()?(n.readdirSync(e).forEach(t=>{let i=r.join(e,t);n.statSync(i).isFile()&&n.unlinkSync(i)}),n.rmdirSync(e)):n.unlinkSync(e),!0}catch(t){console.error(`Error while deleting ${e}: ${t.message}`)}}t.exports={del:i}})),wc=d(((e,t)=>{V();let n=h(`path`),r=h(`fs`),i=bc(),{writeJSON:a,tryParse:o}=Sc(),{del:s}=Cc(),c={load:function(e,t){let a=this;a.keyv=new i,a.__visited={},a.__persisted={},a._pathToFile=t?n.resolve(t,e):n.resolve(z,`../.cache/`,e),r.existsSync(a._pathToFile)&&(a._persisted=o(a._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,r=n.dirname(e),i=n.basename(e);t.load(i,r)},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(),a(t._pathToFile,t._persisted)},removeCacheFile:function(){return s(this._pathToFile)},destroy:function(){let e=this;e._visited={},e._persisted={},e.removeCacheFile()}};t.exports={load:function(e,t){return this.create(e,t)},create:function(e,t){let n=Object.create(c);return n.load(e,t),n},createFromFile:function(e){let t=Object.create(c);return t.loadFile(e),t},clearCacheById:function(e,t){return s(t?n.resolve(t,e):n.resolve(z,`../.cache/`,e))},clearAll:function(e){return s(e?n.resolve(e):n.resolve(z,`../.cache/`))}}})),Tc=d(((e,t)=>{var n=h(`path`),r=h(`crypto`);t.exports={createFromFile:function(e,t){var r=n.basename(e),i=n.dirname(e);return this.create(r,i,t)},create:function(e,t,n){var i=h(`fs`),a=wc().load(e,t),o={},s=function(){a.keys().forEach(function(e){try{i.statSync(e)}catch(t){t.code===`ENOENT`&&a.removeKey(e)}})};return s(),{cache:a,getHash:function(e){return r.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=i.statSync(e)}catch(t){return this.removeEntry(e),{key:e,notFound:!0,err:t}}return n?this._getFileDescriptorUsingChecksum(e):this._getFileDescriptorUsingMtimeAndSize(e,t)},_getFileDescriptorUsingMtimeAndSize:function(e,t){var n=a.getKey(e),r=!!n,i=t.size,s=t.mtime.getTime(),c,l;return n?(c=s!==n.mtime,l=i!==n.size):n={size:i,mtime:s},o[e]={key:e,changed:!r||c||l,meta:n}},_getFileDescriptorUsingChecksum:function(e){var t=a.getKey(e),n=!!t,r;try{r=i.readFileSync(e)}catch{r=``}var s=!0,c=this.getHash(r);return t?s=c!==t.hash:t={hash:c},o[e]={key:e,changed:!n||s,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 o[e],a.removeKey(e)},deleteCacheFile:function(){a.removeCacheFile()},destroy:function(){o={},a.destroy()},_getMetaForFileUsingCheckSum:function(e){var t=i.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=i.statSync(e.key),n=Object.assign(e.meta,{size:t.size,mtime:t.mtime.getTime()});return delete n.hash,n},reconcile:function(e){s(),e=e===void 0?!0:e;var t=o,r=Object.keys(t);if(r.length!==0){var i=this;r.forEach(function(e){var r=t[e];try{var o=n?i._getMetaForFileUsingCheckSum(r):i._getMetaForFileUsingMtimeAndSize(r);a.setKey(e,o)}catch(e){if(e.code!==`ENOENT`)throw e}}),a.save(e)}}}}}})),Ec=d(((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?`
|
|
94
|
+
`+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}})),Dc=d(((e,t)=>{let n=h(`node:fs`),r=Tc(),i=Ec(),a=C(),o=Wa(),s=zo(),c=S()(`eslint:lint-result-cache`),l=new WeakMap,u=process&&process.version,d=[`metadata`,`content`],f=`Cache strategy must be one of: ${d.map(e=>`"${e}"`).join(`, `)}`;function p(e){return d.includes(e)}function m(e){return l.has(e)||l.set(e,s(`${a.version}_${u}_${i(e)}`)),l.get(e)}t.exports=class{constructor(e,t){o(e,`Cache file location is required`),o(t,`Cache strategy is required`),o(p(t),f),c(`Caching results to ${e}`);let n=t===`content`;c(`Using "${t}" strategy to detect changes`),this.fileEntryCache=r.create(e,void 0,n),this.cacheFileLocation=e}getCachedLintResults(e,t){let r=this.getValidCachedLintResults(e,t);if(!r)return r;let i={...r};return i.source===null&&(c(`Rereading cached result source from filesystem: ${e}`),i.source=n.readFileSync(e,`utf-8`)),i}getValidCachedLintResults(e,t){let n=this.fileEntryCache.getFileDescriptor(e);if(n.notFound)return c(`File not found on the file system: ${e}`),null;let r=m(t);return n.changed||n.meta.hashOfConfig!==r?(c(`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){c(`Updating cached result: ${e}`);let i=Object.assign({},n);Object.hasOwn(i,`source`)&&(i.source=null),r.meta.results=i,r.meta.hashOfConfig=m(t)}}reconcile(){c(`Persisting cached results: ${this.cacheFileLocation}`),this.fileEntryCache.reconcile()}}})),Oc=d(((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}}})),kc=d(((e,t)=>{let n=Oc();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}})),Ac=d(((e,t)=>{let n=kc();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}}})),jc=d(((e,t)=>{let n=h(`path`),r=h(`fs`),{promisify:i}=h(`util`),a=Ac(),o=i(r.stat),s=i(r.lstat),c={directory:`isDirectory`,file:`isFile`};function l({type:e}){if(!(e in c))throw Error(`Invalid type specified: ${e}`)}let u=(e,t)=>e===void 0||t[c[e]]();t.exports=async(e,t)=>{t={cwd:process.cwd(),type:`file`,allowSymlinks:!0,...t},l(t);let r=t.allowSymlinks?o:s;return a(e,async e=>{try{let i=await r(n.resolve(t.cwd,e));return u(t.type,i)}catch{return!1}},t)},t.exports.sync=(e,t)=>{t={cwd:process.cwd(),allowSymlinks:!0,type:`file`,...t},l(t);let i=t.allowSymlinks?r.statSync:r.lstatSync;for(let r of e)try{let e=i(n.resolve(t.cwd,r));if(u(t.type,e))return r}catch{}}})),Mc=d(((e,t)=>{let n=h(`fs`),{promisify:r}=h(`util`),i=r(n.access);t.exports=async e=>{try{return await i(e),!0}catch{return!1}},t.exports.sync=e=>{try{return n.accessSync(e),!0}catch{return!1}}})),Nc=d(((e,t)=>{let n=h(`path`),r=jc(),i=Mc(),a=Symbol(`findUp.stop`);t.exports=async(e,t={})=>{let i=n.resolve(t.cwd||``),{root:o}=n.parse(i),s=[].concat(e),c=async t=>{if(typeof e!=`function`)return r(s,t);let n=await e(t.cwd);return typeof n==`string`?r([n],t):n};for(;;){let e=await c({...t,cwd:i});if(e===a)return;if(e)return n.resolve(i,e);if(i===o)return;i=n.dirname(i)}},t.exports.sync=(e,t={})=>{let i=n.resolve(t.cwd||``),{root:o}=n.parse(i),s=[].concat(e),c=t=>{if(typeof e!=`function`)return r.sync(s,t);let n=e(t.cwd);return typeof n==`string`?r.sync([n],t):n};for(;;){let e=c({...t,cwd:i});if(e===a)return;if(e)return n.resolve(i,e);if(i===o)return;i=n.dirname(i)}},t.exports.exists=i,t.exports.sync.exists=i.sync,t.exports.stop=a})),Pc=d(((e,t)=>{(()=>{var e={"./node_modules/.pnpm/mlly@1.8.0/node_modules/mlly/dist lazy recursive":function(e){function t(e){return Promise.resolve().then(function(){var t=Error(`Cannot find module '`+e+`'`);throw t.code=`MODULE_NOT_FOUND`,t})}t.keys=()=>[],t.resolve=t,t.id=`./node_modules/.pnpm/mlly@1.8.0/node_modules/mlly/dist lazy recursive`,e.exports=t}},n={};function r(t){var i=n[t];if(i!==void 0)return i.exports;var a=n[t]={exports:{}};return e[t](a,a.exports,r),a.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var i={};(()=>{r.d(i,{default:()=>Gr});let e=h(`node:os`);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,80,3,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,68,8,2,0,3,0,2,3,2,4,2,0,15,1,83,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,7,19,58,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,343,9,54,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,330,3,10,1,2,0,49,6,4,4,14,10,5350,0,7,14,11465,27,2343,9,87,9,39,4,60,6,26,9,535,9,470,0,2,54,8,3,82,0,12,1,19628,1,4178,9,519,45,3,22,543,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,101,0,161,6,10,9,357,0,62,13,499,13,245,1,2,9,726,6,110,6,6,9,4759,9,787719,239],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,71,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,39,27,10,22,251,41,7,1,17,2,60,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,20,1,64,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,31,9,2,0,3,0,2,37,2,0,26,0,2,0,45,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,200,32,32,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,328,18,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,26,3994,6,582,6842,29,1763,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,433,44,212,63,129,74,6,0,67,12,65,1,2,0,29,6135,9,1237,42,9,8936,3,2,6,2,1,2,290,16,0,30,2,3,0,15,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,229,29,3,0,496,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4153,7,221,3,5761,15,7472,16,621,2467,541,1507,4938,6,4191],a=`ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-ࢎࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೝೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-Ა-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-Ꟑꟑꟓꟕ-ꟲ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ`,o={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`},s=`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`,c={5:s,"5module":s+` export import`,6:s+` const class extends export import super`},l=/^in(stanceof)?$/,u=RegExp(`[`+a+`]`),d=RegExp(`[`+a+`·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ-ᫎᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_・]`);function f(e,t){for(var n=65536,r=0;r<t.length;r+=2){if((n+=t[r])>e)return!1;if((n+=t[r+1])>=e)return!0}return!1}function p(e,t){return e<65?e===36:e<91||(e<97?e===95:e<123||(e<=65535?e>=170&&u.test(String.fromCharCode(e)):!1!==t&&f(e,n)))}function m(e,r){return e<48?e===36:e<58||!(e<65)&&(e<91||(e<97?e===95:e<123||(e<=65535?e>=170&&d.test(String.fromCharCode(e)):!1!==r&&(f(e,n)||f(e,t)))))}var g=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 _(e,t){return new g(e,{beforeExpr:!0,binop:t})}var v={beforeExpr:!0},y={startsExpr:!0},b={};function x(e,t){return t===void 0&&(t={}),t.keyword=e,b[e]=new g(e,t)}var S={num:new g(`num`,y),regexp:new g(`regexp`,y),string:new g(`string`,y),name:new g(`name`,y),privateId:new g(`privateId`,y),eof:new g(`eof`),bracketL:new g(`[`,{beforeExpr:!0,startsExpr:!0}),bracketR:new g(`]`),braceL:new g(`{`,{beforeExpr:!0,startsExpr:!0}),braceR:new g(`}`),parenL:new g(`(`,{beforeExpr:!0,startsExpr:!0}),parenR:new g(`)`),comma:new g(`,`,v),semi:new g(`;`,v),colon:new g(`:`,v),dot:new g(`.`),question:new g(`?`,v),questionDot:new g(`?.`),arrow:new g(`=>`,v),template:new g(`template`),invalidTemplate:new g(`invalidTemplate`),ellipsis:new g(`...`,v),backQuote:new g("`",y),dollarBraceL:new g("${",{beforeExpr:!0,startsExpr:!0}),eq:new g(`=`,{beforeExpr:!0,isAssign:!0}),assign:new g(`_=`,{beforeExpr:!0,isAssign:!0}),incDec:new g(`++/--`,{prefix:!0,postfix:!0,startsExpr:!0}),prefix:new g(`!/~`,{beforeExpr:!0,prefix:!0,startsExpr:!0}),logicalOR:_(`||`,1),logicalAND:_(`&&`,2),bitwiseOR:_(`|`,3),bitwiseXOR:_(`^`,4),bitwiseAND:_(`&`,5),equality:_(`==/!=/===/!==`,6),relational:_(`</>/<=/>=`,7),bitShift:_(`<</>>/>>>`,8),plusMin:new g(`+/-`,{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:_(`%`,10),star:_(`*`,10),slash:_(`/`,10),starstar:new g(`**`,{beforeExpr:!0}),coalesce:_(`??`,1),_break:x(`break`),_case:x(`case`,v),_catch:x(`catch`),_continue:x(`continue`),_debugger:x(`debugger`),_default:x(`default`,v),_do:x(`do`,{isLoop:!0,beforeExpr:!0}),_else:x(`else`,v),_finally:x(`finally`),_for:x(`for`,{isLoop:!0}),_function:x(`function`,y),_if:x(`if`),_return:x(`return`,v),_switch:x(`switch`),_throw:x(`throw`,v),_try:x(`try`),_var:x(`var`),_const:x(`const`),_while:x(`while`,{isLoop:!0}),_with:x(`with`),_new:x(`new`,{beforeExpr:!0,startsExpr:!0}),_this:x(`this`,y),_super:x(`super`,y),_class:x(`class`,y),_extends:x(`extends`,v),_export:x(`export`),_import:x(`import`,y),_null:x(`null`,y),_true:x(`true`,y),_false:x(`false`,y),_in:x(`in`,{beforeExpr:!0,binop:7}),_instanceof:x(`instanceof`,{beforeExpr:!0,binop:7}),_typeof:x(`typeof`,{beforeExpr:!0,prefix:!0,startsExpr:!0}),_void:x(`void`,{beforeExpr:!0,prefix:!0,startsExpr:!0}),_delete:x(`delete`,{beforeExpr:!0,prefix:!0,startsExpr:!0})},C=/\r\n?|\n|\u2028|\u2029/,w=new RegExp(C.source,`g`);function T(e){return e===10||e===13||e===8232||e===8233}function E(e,t,n){n===void 0&&(n=e.length);for(var r=t;r<n;r++){var i=e.charCodeAt(r);if(T(i))return r<n-1&&i===13&&e.charCodeAt(r+1)===10?r+2:r+1}return-1}var D=/[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/,O=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,k=Object.prototype,A=k.hasOwnProperty,j=k.toString,M=Object.hasOwn||function(e,t){return A.call(e,t)},N=Array.isArray||function(e){return j.call(e)===`[object Array]`},P=Object.create(null);function F(e){return P[e]||(P[e]=RegExp(`^(?:`+e.replace(/ /g,`|`)+`)$`))}function I(e){return e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode(55296+(e>>10),56320+(1023&e)))}var L=/(?:[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/,R=function(e,t){this.line=e,this.column=t};R.prototype.offset=function(e){return new R(this.line,this.column+e)};var z=function(e,t,n){this.start=t,this.end=n,e.sourceFile!==null&&(this.source=e.sourceFile)};function B(e,t){for(var n=1,r=0;;){var i=E(e,r,t);if(i<0)return new R(n,t-r);++n,r=i}}var V={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},H=!1;function U(e){var t={};for(var n in V)t[n]=e&&M(e,n)?e[n]:V[n];if(t.ecmaVersion===`latest`?t.ecmaVersion=1e8:t.ecmaVersion==null?(!H&&typeof console==`object`&&console.warn&&(H=!0,console.warn(`Since Acorn 8.0.0, options.ecmaVersion is required.
|
|
95
|
+
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),N(t.onToken)){var r=t.onToken;t.onToken=function(e){return r.push(e)}}return N(t.onComment)&&(t.onComment=function(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 z(this,o,s)),e.ranges&&(c.range=[i,a]),t.push(c)}}(t,t.onComment)),t}var ee=256,W=259;function te(e,t){return 2|(e?4:0)|(t?8:0)}var ne=function(e,t,n){this.options=e=U(e),this.sourceFile=e.sourceFile,this.keywords=F(c[e.ecmaVersion>=6?6:e.sourceType===`module`?`5module`:5]);var r=``;!0!==e.allowReserved&&(r=o[e.ecmaVersion>=6?6:e.ecmaVersion===5?5:3],e.sourceType===`module`&&(r+=` await`)),this.reservedWords=F(r);var i=(r?r+` `:``)+o.strict;this.reservedWordsStrict=F(i),this.reservedWordsStrictBind=F(i+` `+o.strictBind),this.input=String(t),this.containsEsc=!1,n?(this.pos=n,this.lineStart=this.input.lastIndexOf(`
|
|
96
|
+
`,n-1)+1,this.curLine=this.input.slice(0,this.lineStart).split(C).length):(this.pos=this.lineStart=0,this.curLine=1),this.type=S.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(1),this.regexpState=null,this.privateNameStack=[]},re={inFunction:{configurable:!0},inGenerator:{configurable:!0},inAsync:{configurable:!0},canAwait:{configurable:!0},allowSuper:{configurable:!0},allowDirectSuper:{configurable:!0},treatFunctionsAsVar:{configurable:!0},allowNewDotTarget:{configurable:!0},inClassStaticBlock:{configurable:!0}};ne.prototype.parse=function(){var e=this.options.program||this.startNode();return this.nextToken(),this.parseTopLevel(e)},re.inFunction.get=function(){return(2&this.currentVarScope().flags)>0},re.inGenerator.get=function(){return(8&this.currentVarScope().flags)>0},re.inAsync.get=function(){return(4&this.currentVarScope().flags)>0},re.canAwait.get=function(){for(var e=this.scopeStack.length-1;e>=0;e--){var t=this.scopeStack[e].flags;if(768&t)return!1;if(2&t)return(4&t)>0}return this.inModule&&this.options.ecmaVersion>=13||this.options.allowAwaitOutsideFunction},re.allowSuper.get=function(){return(64&this.currentThisScope().flags)>0||this.options.allowSuperOutsideMethod},re.allowDirectSuper.get=function(){return(128&this.currentThisScope().flags)>0},re.treatFunctionsAsVar.get=function(){return this.treatFunctionsAsVarInScope(this.currentScope())},re.allowNewDotTarget.get=function(){for(var e=this.scopeStack.length-1;e>=0;e--){var t=this.scopeStack[e].flags;if(768&t||2&t&&!(16&t))return!0}return!1},re.inClassStaticBlock.get=function(){return(this.currentVarScope().flags&ee)>0},ne.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},ne.parse=function(e,t){return new this(t,e).parse()},ne.parseExpressionAt=function(e,t,n){var r=new this(n,e,t);return r.nextToken(),r.parseExpression()},ne.tokenizer=function(e,t){return new this(t,e)},Object.defineProperties(ne.prototype,re);var ie=ne.prototype,ae=/^(?:'((?:\\[^]|[^'\\])*?)'|"((?:\\[^]|[^"\\])*?)")/;ie.strictDirective=function(e){if(this.options.ecmaVersion<5)return!1;for(;;){O.lastIndex=e,e+=O.exec(this.input)[0].length;var t=ae.exec(this.input.slice(e));if(!t)return!1;if((t[1]||t[2])===`use strict`){O.lastIndex=e+t[0].length;var n=O.exec(this.input),r=n.index+n[0].length,i=this.input.charAt(r);return i===`;`||i===`}`||C.test(n[0])&&!(/[(`.[+\-/*%<>=,?^&]/.test(i)||i===`!`&&this.input.charAt(r+1)===`=`)}e+=t[0].length,O.lastIndex=e,e+=O.exec(this.input)[0].length,this.input[e]===`;`&&e++}},ie.eat=function(e){return this.type===e&&(this.next(),!0)},ie.isContextual=function(e){return this.type===S.name&&this.value===e&&!this.containsEsc},ie.eatContextual=function(e){return!!this.isContextual(e)&&(this.next(),!0)},ie.expectContextual=function(e){this.eatContextual(e)||this.unexpected()},ie.canInsertSemicolon=function(){return this.type===S.eof||this.type===S.braceR||C.test(this.input.slice(this.lastTokEnd,this.start))},ie.insertSemicolon=function(){if(this.canInsertSemicolon())return this.options.onInsertedSemicolon&&this.options.onInsertedSemicolon(this.lastTokEnd,this.lastTokEndLoc),!0},ie.semicolon=function(){this.eat(S.semi)||this.insertSemicolon()||this.unexpected()},ie.afterTrailingComma=function(e,t){if(this.type===e)return this.options.onTrailingComma&&this.options.onTrailingComma(this.lastTokStart,this.lastTokStartLoc),t||this.next(),!0},ie.expect=function(e){this.eat(e)||this.unexpected()},ie.unexpected=function(e){this.raise(e??this.start,`Unexpected token`)};var oe=function(){this.shorthandAssign=this.trailingComma=this.parenthesizedAssign=this.parenthesizedBind=this.doubleProto=-1};ie.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`)}},ie.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`)},ie.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`)},ie.isSimpleAssignTarget=function(e){return e.type===`ParenthesizedExpression`?this.isSimpleAssignTarget(e.expression):e.type===`Identifier`||e.type===`MemberExpression`};var G=ne.prototype;G.parseTopLevel=function(e){var t=Object.create(null);for(e.body||=[];this.type!==S.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,this.finishNode(e,`Program`)};var se={kind:`loop`},ce={kind:`switch`};G.isLet=function(e){if(this.options.ecmaVersion<6||!this.isContextual(`let`))return!1;O.lastIndex=this.pos;var t=O.exec(this.input),n=this.pos+t[0].length,r=this.input.charCodeAt(n);if(r===91||r===92)return!0;if(e)return!1;if(r===123||r>55295&&r<56320)return!0;if(p(r,!0)){for(var i=n+1;m(r=this.input.charCodeAt(i),!0);)++i;if(r===92||r>55295&&r<56320)return!0;var a=this.input.slice(n,i);if(!l.test(a))return!0}return!1},G.isAsyncFunction=function(){if(this.options.ecmaVersion<8||!this.isContextual(`async`))return!1;O.lastIndex=this.pos;var e,t=O.exec(this.input),n=this.pos+t[0].length;return!(C.test(this.input.slice(this.pos,n))||this.input.slice(n,n+8)!==`function`||n+8!==this.input.length&&(m(e=this.input.charCodeAt(n+8))||e>55295&&e<56320))},G.isUsingKeyword=function(e,t){if(this.options.ecmaVersion<17||!this.isContextual(e?`await`:`using`))return!1;O.lastIndex=this.pos;var n=O.exec(this.input),r=this.pos+n[0].length;if(C.test(this.input.slice(this.pos,r)))return!1;if(e){var i,a=r+5;if(this.input.slice(r,a)!==`using`||a===this.input.length||m(i=this.input.charCodeAt(a))||i>55295&&i<56320)return!1;O.lastIndex=a;var o=O.exec(this.input);if(o&&C.test(this.input.slice(a,a+o[0].length)))return!1}if(t){var s,c=r+2;if(!(this.input.slice(r,c)!==`of`||c!==this.input.length&&(m(s=this.input.charCodeAt(c))||s>55295&&s<56320)))return!1}var l=this.input.charCodeAt(r);return p(l,!0)||l===92},G.isAwaitUsing=function(e){return this.isUsingKeyword(!0,e)},G.isUsing=function(e){return this.isUsingKeyword(!1,e)},G.parseStatement=function(e,t,n){var r,i=this.type,a=this.startNode();switch(this.isLet(e)&&(i=S._var,r=`let`),i){case S._break:case S._continue:return this.parseBreakContinueStatement(a,i.keyword);case S._debugger:return this.parseDebuggerStatement(a);case S._do:return this.parseDoStatement(a);case S._for:return this.parseForStatement(a);case S._function:return e&&(this.strict||e!==`if`&&e!==`label`)&&this.options.ecmaVersion>=6&&this.unexpected(),this.parseFunctionStatement(a,!1,!e);case S._class:return e&&this.unexpected(),this.parseClass(a,!0);case S._if:return this.parseIfStatement(a);case S._return:return this.parseReturnStatement(a);case S._switch:return this.parseSwitchStatement(a);case S._throw:return this.parseThrowStatement(a);case S._try:return this.parseTryStatement(a);case S._const:case S._var:return r||=this.value,e&&r!==`var`&&this.unexpected(),this.parseVarStatement(a,r);case S._while:return this.parseWhileStatement(a);case S._with:return this.parseWithStatement(a);case S.braceL:return this.parseBlock(!0,a);case S.semi:return this.parseEmptyStatement(a);case S._export:case S._import:if(this.options.ecmaVersion>10&&i===S._import){O.lastIndex=this.pos;var o=O.exec(this.input),s=this.pos+o[0].length,c=this.input.charCodeAt(s);if(c===40||c===46)return this.parseExpressionStatement(a,this.parseExpression())}return this.options.allowImportExportEverywhere||(t||this.raise(this.start,`'import' and 'export' may only appear at the top level`),this.inModule||this.raise(this.start,`'import' and 'export' may appear only with 'sourceType: module'`)),i===S._import?this.parseImport(a):this.parseExport(a,n);default:if(this.isAsyncFunction())return e&&this.unexpected(),this.next(),this.parseFunctionStatement(a,!0,!e);var l=this.isAwaitUsing(!1)?`await using`:this.isUsing(!1)?`using`:null;if(l)return t&&this.options.sourceType===`script`&&this.raise(this.start,"Using declaration cannot appear in the top level when source type is `script`"),l===`await using`&&(this.canAwait||this.raise(this.start,`Await using cannot appear outside of async function`),this.next()),this.next(),this.parseVar(a,!1,l),this.semicolon(),this.finishNode(a,`VariableDeclaration`);var u=this.value,d=this.parseExpression();return i===S.name&&d.type===`Identifier`&&this.eat(S.colon)?this.parseLabeledStatement(a,u,d,e):this.parseExpressionStatement(a,d)}},G.parseBreakContinueStatement=function(e,t){var n=t===`break`;this.next(),this.eat(S.semi)||this.insertSemicolon()?e.label=null:this.type===S.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`)},G.parseDebuggerStatement=function(e){return this.next(),this.semicolon(),this.finishNode(e,`DebuggerStatement`)},G.parseDoStatement=function(e){return this.next(),this.labels.push(se),e.body=this.parseStatement(`do`),this.labels.pop(),this.expect(S._while),e.test=this.parseParenExpression(),this.options.ecmaVersion>=6?this.eat(S.semi):this.semicolon(),this.finishNode(e,`DoWhileStatement`)},G.parseForStatement=function(e){this.next();var t=this.options.ecmaVersion>=9&&this.canAwait&&this.eatContextual(`await`)?this.lastTokStart:-1;if(this.labels.push(se),this.enterScope(0),this.expect(S.parenL),this.type===S.semi)return t>-1&&this.unexpected(t),this.parseFor(e,null);var n=this.isLet();if(this.type===S._var||this.type===S._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.next(),this.parseVar(c,!0,s),this.finishNode(c,`VariableDeclaration`),this.parseForAfterInit(e,c,t)}var l=this.containsEsc,u=new oe,d=this.start,f=t>-1?this.parseExprSubscripts(u,`await`):this.parseExpression(!0,u);return this.type===S._in||(o=this.options.ecmaVersion>=6&&this.isContextual(`of`))?(t>-1?(this.type===S._in&&this.unexpected(t),e.await=!0):o&&this.options.ecmaVersion>=8&&(f.start!==d||l||f.type!==`Identifier`||f.name!==`async`?this.options.ecmaVersion>=9&&(e.await=!1):this.unexpected()),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))},G.parseForAfterInit=function(e,t,n){return(this.type===S._in||this.options.ecmaVersion>=6&&this.isContextual(`of`))&&t.declarations.length===1?(this.options.ecmaVersion>=9&&(this.type===S._in?n>-1&&this.unexpected(n):e.await=n>-1),this.parseForIn(e,t)):(n>-1&&this.unexpected(n),this.parseFor(e,t))},G.parseFunctionStatement=function(e,t,n){return this.next(),this.parseFunction(e,K|(n?0:ue),!1,t)},G.parseIfStatement=function(e){return this.next(),e.test=this.parseParenExpression(),e.consequent=this.parseStatement(`if`),e.alternate=this.eat(S._else)?this.parseStatement(`if`):null,this.finishNode(e,`IfStatement`)},G.parseReturnStatement=function(e){return this.inFunction||this.options.allowReturnOutsideFunction||this.raise(this.start,`'return' outside of function`),this.next(),this.eat(S.semi)||this.insertSemicolon()?e.argument=null:(e.argument=this.parseExpression(),this.semicolon()),this.finishNode(e,`ReturnStatement`)},G.parseSwitchStatement=function(e){var t;this.next(),e.discriminant=this.parseParenExpression(),e.cases=[],this.expect(S.braceL),this.labels.push(ce),this.enterScope(0);for(var n=!1;this.type!==S.braceR;)if(this.type===S._case||this.type===S._default){var r=this.type===S._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(S.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`)},G.parseThrowStatement=function(e){return this.next(),C.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 le=[];G.parseCatchClauseParam=function(){var e=this.parseBindingAtom(),t=e.type===`Identifier`;return this.enterScope(t?32:0),this.checkLValPattern(e,t?4:2),this.expect(S.parenR),e},G.parseTryStatement=function(e){if(this.next(),e.block=this.parseBlock(),e.handler=null,this.type===S._catch){var t=this.startNode();this.next(),this.eat(S.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(S._finally)?this.parseBlock():null,e.handler||e.finalizer||this.raise(e.start,`Missing catch or finally clause`),this.finishNode(e,`TryStatement`)},G.parseVarStatement=function(e,t,n){return this.next(),this.parseVar(e,!1,t,n),this.semicolon(),this.finishNode(e,`VariableDeclaration`)},G.parseWhileStatement=function(e){return this.next(),e.test=this.parseParenExpression(),this.labels.push(se),e.body=this.parseStatement(`while`),this.labels.pop(),this.finishNode(e,`WhileStatement`)},G.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`)},G.parseEmptyStatement=function(e){return this.next(),this.finishNode(e,`EmptyStatement`)},G.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===S._switch?`switch`:null,s=this.labels.length-1;s>=0;s--){var c=this.labels[s];if(c.statementStart!==e.start)break;c.statementStart=this.start,c.kind=o}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`)},G.parseExpressionStatement=function(e,t){return e.expression=t,this.semicolon(),this.finishNode(e,`ExpressionStatement`)},G.parseBlock=function(e,t,n){for(e===void 0&&(e=!0),t===void 0&&(t=this.startNode()),t.body=[],this.expect(S.braceL),e&&this.enterScope(0);this.type!==S.braceR;){var r=this.parseStatement(null);t.body.push(r)}return n&&(this.strict=!1),this.next(),e&&this.exitScope(),this.finishNode(t,`BlockStatement`)},G.parseFor=function(e,t){return e.init=t,this.expect(S.semi),e.test=this.type===S.semi?null:this.parseExpression(),this.expect(S.semi),e.update=this.type===S.parenR?null:this.parseExpression(),this.expect(S.parenR),e.body=this.parseStatement(`for`),this.exitScope(),this.labels.pop(),this.finishNode(e,`ForStatement`)},G.parseForIn=function(e,t){var n=this.type===S._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(S.parenR),e.body=this.parseStatement(`for`),this.exitScope(),this.labels.pop(),this.finishNode(e,n?`ForInStatement`:`ForOfStatement`)},G.parseVar=function(e,t,n,r){for(e.declarations=[],e.kind=n;;){var i=this.startNode();if(this.parseVarId(i,n),this.eat(S.eq)?i.init=this.parseMaybeAssign(t):r||n!==`const`||this.type===S._in||this.options.ecmaVersion>=6&&this.isContextual(`of`)?r||n!==`using`&&n!==`await using`||!(this.options.ecmaVersion>=17)||this.type===S._in||this.isContextual(`of`)?r||i.id.type===`Identifier`||t&&(this.type===S._in||this.isContextual(`of`))?i.init=null:this.raise(this.lastTokEnd,`Complex binding patterns require an initialization value`):this.raise(this.lastTokEnd,`Missing initializer in `+n+` declaration`):this.unexpected(),e.declarations.push(this.finishNode(i,`VariableDeclarator`)),!this.eat(S.comma))break}return e},G.parseVarId=function(e,t){e.id=t===`using`||t===`await using`?this.parseIdent():this.parseBindingAtom(),this.checkLValPattern(e.id,t===`var`?1:2,!1)};var K=1,ue=2;function de(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||(e[n]=i,!1)}function fe(e,t){var n=e.computed,r=e.key;return!n&&(r.type===`Identifier`&&r.name===t||r.type===`Literal`&&r.value===t)}G.parseFunction=function(e,t,n,r,i){this.initFunction(e),(this.options.ecmaVersion>=9||this.options.ecmaVersion>=6&&!r)&&(this.type===S.star&&t&ue&&this.unexpected(),e.generator=this.eat(S.star)),this.options.ecmaVersion>=8&&(e.async=!!r),t&K&&(e.id=4&t&&this.type!==S.name?null:this.parseIdent(),!e.id||t&ue||this.checkLValSimple(e.id,this.strict||e.generator||e.async?this.treatFunctionsAsVar?1:2:3));var a=this.yieldPos,o=this.awaitPos,s=this.awaitIdentPos;return this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(te(e.async,e.generator)),t&K||(e.id=this.type===S.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&K?`FunctionDeclaration`:`FunctionExpression`)},G.parseFunctionParams=function(e){this.expect(S.parenL),e.params=this.parseBindingList(S.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams()},G.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(S.braceL);this.type!==S.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`&&de(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`)},G.parseClassElement=function(e){if(this.eat(S.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(S.braceL))return this.parseClassStaticBlock(n),n;this.isClassElementNameStart()||this.type===S.star?s=!0:r=`static`}if(n.static=s,!r&&t>=8&&this.eatContextual(`async`)&&(!this.isClassElementNameStart()&&this.type!==S.star||this.canInsertSemicolon()?r=`async`:a=!0),!r&&(t>=9||!a)&&this.eat(S.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===S.parenL||o!==`method`||i||a){var l=!n.static&&fe(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},G.isClassElementNameStart=function(){return this.type===S.name||this.type===S.privateId||this.type===S.num||this.type===S.string||this.type===S.bracketL||this.type.keyword},G.parseClassElementName=function(e){this.type===S.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)},G.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&&fe(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`)},G.parseClassField=function(e){return fe(e,`constructor`)?this.raise(e.key.start,`Classes can't have a field named 'constructor'`):e.static&&fe(e,`prototype`)&&this.raise(e.key.start,`Classes can't have a static field named 'prototype'`),this.eat(S.eq)?(this.enterScope(576),e.value=this.parseMaybeAssign(),this.exitScope()):e.value=null,this.semicolon(),this.finishNode(e,`PropertyDefinition`)},G.parseClassStaticBlock=function(e){e.body=[];var t=this.labels;for(this.labels=[],this.enterScope(320);this.type!==S.braceR;){var n=this.parseStatement(null);e.body.push(n)}return this.next(),this.exitScope(),this.labels=t,this.finishNode(e,`StaticBlock`)},G.parseClassId=function(e,t){this.type===S.name?(e.id=this.parseIdent(),t&&this.checkLValSimple(e.id,2,!1)):(!0===t&&this.unexpected(),e.id=null)},G.parseClassSuper=function(e){e.superClass=this.eat(S._extends)?this.parseExprSubscripts(null,!1):null},G.enterClassBody=function(){var e={declared:Object.create(null),used:[]};return this.privateNameStack.push(e),e.declared},G.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];M(t,o.name)||(i?i.used.push(o):this.raiseRecoverable(o.start,`Private field '#`+o.name+`' must be declared in an enclosing class`))}},G.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!==S.string&&this.unexpected(),e.source=this.parseExprAtom(),this.options.ecmaVersion>=16&&(e.attributes=this.parseWithClause()),this.semicolon(),this.finishNode(e,`ExportAllDeclaration`)},G.parseExport=function(e,t){if(this.next(),this.eat(S.star))return this.parseExportAllDeclaration(e,t);if(this.eat(S._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!==S.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`)},G.parseExportDeclaration=function(e){return this.parseStatement(null)},G.parseExportDefaultDeclaration=function(){var e;if(this.type===S._function||(e=this.isAsyncFunction())){var t=this.startNode();return this.next(),e&&this.next(),this.parseFunction(t,4|K,!1,e)}if(this.type===S._class){var n=this.startNode();return this.parseClass(n,`nullableID`)}var r=this.parseMaybeAssign();return this.semicolon(),r},G.checkExport=function(e,t,n){e&&(typeof t!=`string`&&(t=t.type===`Identifier`?t.name:t.value),M(e,t)&&this.raiseRecoverable(n,`Duplicate export '`+t+`'`),e[t]=!0)},G.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)},G.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)}},G.shouldParseExportStatement=function(){return this.type.keyword===`var`||this.type.keyword===`const`||this.type.keyword===`class`||this.type.keyword===`function`||this.isLet()||this.isAsyncFunction()},G.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`)},G.parseExportSpecifiers=function(e){var t=[],n=!0;for(this.expect(S.braceL);!this.eat(S.braceR);){if(n)n=!1;else if(this.expect(S.comma),this.afterTrailingComma(S.braceR))break;t.push(this.parseExportSpecifier(e))}return t},G.parseImport=function(e){return this.next(),this.type===S.string?(e.specifiers=le,e.source=this.parseExprAtom()):(e.specifiers=this.parseImportSpecifiers(),this.expectContextual(`from`),e.source=this.type===S.string?this.parseExprAtom():this.unexpected()),this.options.ecmaVersion>=16&&(e.attributes=this.parseWithClause()),this.semicolon(),this.finishNode(e,`ImportDeclaration`)},G.parseImportSpecifier=function(){var e=this.startNode();return e.imported=this.parseModuleExportName(),this.eatContextual(`as`)?e.local=this.parseIdent():(this.checkUnreserved(e.imported),e.local=e.imported),this.checkLValSimple(e.local,2),this.finishNode(e,`ImportSpecifier`)},G.parseImportDefaultSpecifier=function(){var e=this.startNode();return e.local=this.parseIdent(),this.checkLValSimple(e.local,2),this.finishNode(e,`ImportDefaultSpecifier`)},G.parseImportNamespaceSpecifier=function(){var e=this.startNode();return this.next(),this.expectContextual(`as`),e.local=this.parseIdent(),this.checkLValSimple(e.local,2),this.finishNode(e,`ImportNamespaceSpecifier`)},G.parseImportSpecifiers=function(){var e=[],t=!0;if(this.type===S.name&&(e.push(this.parseImportDefaultSpecifier()),!this.eat(S.comma)))return e;if(this.type===S.star)return e.push(this.parseImportNamespaceSpecifier()),e;for(this.expect(S.braceL);!this.eat(S.braceR);){if(t)t=!1;else if(this.expect(S.comma),this.afterTrailingComma(S.braceR))break;e.push(this.parseImportSpecifier())}return e},G.parseWithClause=function(){var e=[];if(!this.eat(S._with))return e;this.expect(S.braceL);for(var t={},n=!0;!this.eat(S.braceR);){if(n)n=!1;else if(this.expect(S.comma),this.afterTrailingComma(S.braceR))break;var r=this.parseImportAttribute(),i=r.key.type===`Identifier`?r.key.name:r.key.value;M(t,i)&&this.raiseRecoverable(r.key.start,`Duplicate attribute key '`+i+`'`),t[i]=!0,e.push(r)}return e},G.parseImportAttribute=function(){var e=this.startNode();return e.key=this.type===S.string?this.parseExprAtom():this.parseIdent(this.options.allowReserved!==`never`),this.expect(S.colon),this.type!==S.string&&this.unexpected(),e.value=this.parseExprAtom(),this.finishNode(e,`ImportAttribute`)},G.parseModuleExportName=function(){if(this.options.ecmaVersion>=13&&this.type===S.string){var e=this.parseLiteral(this.value);return L.test(e.value)&&this.raise(e.start,`An export name cannot include a lone surrogate.`),e}return this.parseIdent(!0)},G.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)},G.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 pe=ne.prototype;pe.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},pe.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},pe.parseSpread=function(e){var t=this.startNode();return this.next(),t.argument=this.parseMaybeAssign(!1,e),this.finishNode(t,`SpreadElement`)},pe.parseRestBinding=function(){var e=this.startNode();return this.next(),this.options.ecmaVersion===6&&this.type!==S.name&&this.unexpected(),e.argument=this.parseBindingAtom(),this.finishNode(e,`RestElement`)},pe.parseBindingAtom=function(){if(this.options.ecmaVersion>=6)switch(this.type){case S.bracketL:var e=this.startNode();return this.next(),e.elements=this.parseBindingList(S.bracketR,!0,!0),this.finishNode(e,`ArrayPattern`);case S.braceL:return this.parseObj(!0)}return this.parseIdent()},pe.parseBindingList=function(e,t,n,r){for(var i=[],a=!0;!this.eat(e);)if(a?a=!1:this.expect(S.comma),t&&this.type===S.comma)i.push(null);else{if(n&&this.afterTrailingComma(e))break;if(this.type===S.ellipsis){var o=this.parseRestBinding();this.parseBindingListItem(o),i.push(o),this.type===S.comma&&this.raiseRecoverable(this.start,`Comma is not permitted after the rest element`),this.expect(e);break}i.push(this.parseAssignableListItem(r))}return i},pe.parseAssignableListItem=function(e){var t=this.parseMaybeDefault(this.start,this.startLoc);return this.parseBindingListItem(t),t},pe.parseBindingListItem=function(e){return e},pe.parseMaybeDefault=function(e,t,n){if(n||=this.parseBindingAtom(),this.options.ecmaVersion<6||!this.eat(S.eq))return n;var r=this.startNodeAt(e,t);return r.left=n,r.right=this.parseMaybeAssign(),this.finishNode(r,`AssignmentPattern`)},pe.checkLValSimple=function(e,t,n){t===void 0&&(t=0);var r=t!==0;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===2&&e.name===`let`&&this.raiseRecoverable(e.start,`let is disallowed as a lexically bound name`),n&&(M(n,e.name)&&this.raiseRecoverable(e.start,`Argument name clash`),n[e.name]=!0),t!==5&&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`)}},pe.checkLValPattern=function(e,t,n){switch(t===void 0&&(t=0),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)}},pe.checkLValInnerPattern=function(e,t,n){switch(t===void 0&&(t=0),e.type){case`Property`:this.checkLValInnerPattern(e.value,t,n);break;case`AssignmentPattern`:this.checkLValPattern(e.left,t,n);break;case`RestElement`:this.checkLValPattern(e.argument,t,n);break;default:this.checkLValPattern(e,t,n)}};var me=function(e,t,n,r,i){this.token=e,this.isExpr=!!t,this.preserveSpace=!!n,this.override=r,this.generator=!!i},he={b_stat:new me(`{`,!1),b_expr:new me(`{`,!0),b_tmpl:new me("${",!1),p_stat:new me(`(`,!1),p_expr:new me(`(`,!0),q_tmpl:new me("`",!0,!0,function(e){return e.tryReadTemplateToken()}),f_stat:new me(`function`,!1),f_expr:new me(`function`,!0),f_expr_gen:new me(`function`,!0,!1,null,!0),f_gen:new me(`function`,!1,!1,null,!0)},ge=ne.prototype;ge.initialContext=function(){return[he.b_stat]},ge.curContext=function(){return this.context[this.context.length-1]},ge.braceIsBlock=function(e){var t=this.curContext();return t===he.f_expr||t===he.f_stat||(e!==S.colon||t!==he.b_stat&&t!==he.b_expr?e===S._return||e===S.name&&this.exprAllowed?C.test(this.input.slice(this.lastTokEnd,this.start)):e===S._else||e===S.semi||e===S.eof||e===S.parenR||e===S.arrow||(e===S.braceL?t===he.b_stat:e!==S._var&&e!==S._const&&e!==S.name&&!this.exprAllowed):!t.isExpr)},ge.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},ge.updateContext=function(e){var t,n=this.type;n.keyword&&e===S.dot?this.exprAllowed=!1:(t=n.updateContext)?t.call(this,e):this.exprAllowed=n.beforeExpr},ge.overrideContext=function(e){this.curContext()!==e&&(this.context[this.context.length-1]=e)},S.parenR.updateContext=S.braceR.updateContext=function(){if(this.context.length!==1){var e=this.context.pop();e===he.b_stat&&this.curContext().token===`function`&&(e=this.context.pop()),this.exprAllowed=!e.isExpr}else this.exprAllowed=!0},S.braceL.updateContext=function(e){this.context.push(this.braceIsBlock(e)?he.b_stat:he.b_expr),this.exprAllowed=!0},S.dollarBraceL.updateContext=function(){this.context.push(he.b_tmpl),this.exprAllowed=!0},S.parenL.updateContext=function(e){var t=e===S._if||e===S._for||e===S._with||e===S._while;this.context.push(t?he.p_stat:he.p_expr),this.exprAllowed=!0},S.incDec.updateContext=function(){},S._function.updateContext=S._class.updateContext=function(e){!e.beforeExpr||e===S._else||e===S.semi&&this.curContext()!==he.p_stat||e===S._return&&C.test(this.input.slice(this.lastTokEnd,this.start))||(e===S.colon||e===S.braceL)&&this.curContext()===he.b_stat?this.context.push(he.f_stat):this.context.push(he.f_expr),this.exprAllowed=!1},S.colon.updateContext=function(){this.curContext().token===`function`&&this.context.pop(),this.exprAllowed=!0},S.backQuote.updateContext=function(){this.curContext()===he.q_tmpl?this.context.pop():this.context.push(he.q_tmpl),this.exprAllowed=!1},S.star.updateContext=function(e){if(e===S._function){var t=this.context.length-1;this.context[t]===he.f_expr?this.context[t]=he.f_expr_gen:this.context[t]=he.f_gen}this.exprAllowed=!0},S.name.updateContext=function(e){var t=!1;this.options.ecmaVersion>=6&&e!==S.dot&&(this.value===`of`&&!this.exprAllowed||this.value===`yield`&&this.inGeneratorContext())&&(t=!0),this.exprAllowed=t};var q=ne.prototype;function _e(e){return e.type===`Identifier`||e.type===`ParenthesizedExpression`&&_e(e.expression)}function J(e){return e.type===`MemberExpression`&&e.property.type===`PrivateIdentifier`||e.type===`ChainExpression`&&J(e.expression)||e.type===`ParenthesizedExpression`&&J(e.expression)}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,i=e.key;switch(i.type){case`Identifier`:r=i.name;break;case`Literal`:r=String(i.value);break;default:return}var a=e.kind;if(this.options.ecmaVersion>=6)r===`__proto__`&&a===`init`&&(t.proto&&(n?n.doubleProto<0&&(n.doubleProto=i.start):this.raiseRecoverable(i.start,`Redefinition of __proto__ property`)),t.proto=!0);else{var o=t[r=`$`+r];o?(a===`init`?this.strict&&o.init||o.get||o.set:o.init||o[a])&&this.raiseRecoverable(i.start,`Redefinition of property`):o=t[r]={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===S.comma){var a=this.startNodeAt(n,r);for(a.expressions=[i];this.eat(S.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 oe,r=!0);var s=this.start,c=this.startLoc;this.type!==S.parenL&&this.type!==S.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===S.eq&&(l=this.toAssignable(l,!1,t)),r||(t.parenthesizedAssign=t.trailingComma=t.doubleProto=-1),t.shorthandAssign>=l.start&&(t.shorthandAssign=-1),this.type===S.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`)}return r&&this.checkExpressionErrors(t,!0),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(S.question)){var a=this.startNodeAt(n,r);return a.test=i,a.consequent=this.parseMaybeAssign(),this.expect(S.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!==S._in)&&a>r){var o=this.type===S.logicalOR||this.type===S.logicalAND,s=this.type===S.coalesce;s&&(a=S.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===S.coalesce||s&&(this.type===S.logicalOR||this.type===S.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,a=this.start,o=this.startLoc;if(this.isContextual(`await`)&&this.canAwait)i=this.parseAwait(r),t=!0;else if(this.type.prefix){var s=this.startNode(),c=this.type===S.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`&&_e(s.argument)?this.raiseRecoverable(s.start,`Deleting local variable in strict mode`):s.operator===`delete`&&J(s.argument)?this.raiseRecoverable(s.start,`Private fields can not be deleted`):t=!0,i=this.finishNode(s,c?`UpdateExpression`:`UnaryExpression`)}else if(t||this.type!==S.privateId){if(i=this.parseExprSubscripts(e,r),this.checkExpressionErrors(e))return i;for(;this.type.postfix&&!this.canInsertSemicolon();){var l=this.startNodeAt(a,o);l.operator=this.value,l.prefix=!1,l.argument=i,this.checkLValSimple(i),this.next(),i=this.finishNode(l,`UpdateExpression`)}}else (r||this.privateNameStack.length===0)&&this.options.checkPrivateFields&&this.unexpected(),i=this.parsePrivateIdent(),this.type!==S._in&&this.unexpected();return n||!this.eat(S.starstar)?i:t?void this.unexpected(this.lastTokStart):this.buildBinary(a,o,i,this.parseMaybeUnary(null,!1,!1,r),`**`,!1)},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(S.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(S.questionDot);r&&c&&this.raise(this.lastTokStart,`Optional chaining cannot appear in the callee of new expressions`);var l=this.eat(S.bracketL);if(l||c&&this.type!==S.parenL&&this.type!==S.backQuote||this.eat(S.dot)){var u=this.startNodeAt(t,n);u.object=e,l?(u.property=this.parseExpression(),this.expect(S.bracketR)):this.type===S.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(S.parenL)){var d=new oe,f=this.yieldPos,p=this.awaitPos,m=this.awaitIdentPos;this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0;var h=this.parseExprList(S.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===S.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===S.slash&&this.readRegexp();var r,i=this.potentialArrowAt===this.start;switch(this.type){case S._super:return this.allowSuper||this.raise(this.start,`'super' keyword outside a method`),r=this.startNode(),this.next(),this.type!==S.parenL||this.allowDirectSuper||this.raise(r.start,`super() call outside constructor of a subclass`),this.type!==S.dot&&this.type!==S.bracketL&&this.type!==S.parenL&&this.unexpected(),this.finishNode(r,`Super`);case S._this:return r=this.startNode(),this.next(),this.finishNode(r,`ThisExpression`);case S.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(S._function))return this.overrideContext(he.f_expr),this.parseFunction(this.startNodeAt(a,o),0,!1,!0,t);if(i&&!this.canInsertSemicolon()){if(this.eat(S.arrow))return this.parseArrowExpression(this.startNodeAt(a,o),[c],!1,t);if(this.options.ecmaVersion>=8&&c.name===`async`&&this.type===S.name&&!s&&(!this.potentialArrowInForAwait||this.value!==`of`||this.containsEsc))return c=this.parseIdent(!1),!this.canInsertSemicolon()&&this.eat(S.arrow)||this.unexpected(),this.parseArrowExpression(this.startNodeAt(a,o),[c],!0,t)}return c;case S.regexp:var l=this.value;return(r=this.parseLiteral(l.value)).regex={pattern:l.pattern,flags:l.flags},r;case S.num:case S.string:return this.parseLiteral(this.value);case S._null:case S._true:case S._false:return(r=this.startNode()).value=this.type===S._null?null:this.type===S._true,r.raw=this.type.keyword,this.next(),this.finishNode(r,`Literal`);case S.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 S.bracketL:return r=this.startNode(),this.next(),r.elements=this.parseExprList(S.bracketR,!0,!0,e),this.finishNode(r,`ArrayExpression`);case S.braceL:return this.overrideContext(he.b_expr),this.parseObj(!1,e);case S._function:return r=this.startNode(),this.next(),this.parseFunction(r,0);case S._class:return this.parseClass(this.startNode(),!1);case S._new:return this.parseNew();case S.backQuote:return this.parseTemplate();case S._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===S.parenL&&!e)return this.parseDynamicImport(t);if(this.type===S.dot){var n=this.startNodeAt(t.start,t.loc&&t.loc.start);return n.name=`import`,t.meta=this.finishNode(n,`Identifier`),this.parseImportMeta(t)}this.unexpected()},q.parseDynamicImport=function(e){if(this.next(),e.source=this.parseMaybeAssign(),this.options.ecmaVersion>=16)this.eat(S.parenR)?e.options=null:(this.expect(S.comma),this.afterTrailingComma(S.parenR)?e.options=null:(e.options=this.parseMaybeAssign(),this.eat(S.parenR)||(this.expect(S.comma),this.afterTrailingComma(S.parenR)||this.unexpected())));else if(!this.eat(S.parenR)){var t=this.start;this.eat(S.comma)&&this.eat(S.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(S.parenL);var e=this.parseExpression();return this.expect(S.parenR),e},q.shouldParseArrow=function(e){return!this.canInsertSemicolon()},q.parseParenAndDistinguishExpression=function(e,t){var n,r=this.start,i=this.startLoc,a=this.options.ecmaVersion>=8;if(this.options.ecmaVersion>=6){this.next();var o,s=this.start,c=this.startLoc,l=[],u=!0,d=!1,f=new oe,p=this.yieldPos,m=this.awaitPos;for(this.yieldPos=0,this.awaitPos=0;this.type!==S.parenR;){if(u?u=!1:this.expect(S.comma),a&&this.afterTrailingComma(S.parenR,!0)){d=!0;break}if(this.type===S.ellipsis){o=this.start,l.push(this.parseParenItem(this.parseRestBinding())),this.type===S.comma&&this.raiseRecoverable(this.start,`Comma is not permitted after the rest element`);break}l.push(this.parseMaybeAssign(!1,f,this.parseParenItem))}var h=this.lastTokEnd,g=this.lastTokEndLoc;if(this.expect(S.parenR),e&&this.shouldParseArrow(l)&&this.eat(S.arrow))return this.checkPatternErrors(f,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=p,this.awaitPos=m,this.parseParenArrowList(r,i,l,t);l.length&&!d||this.unexpected(this.lastTokStart),o&&this.unexpected(o),this.checkExpressionErrors(f,!0),this.yieldPos=p||this.yieldPos,this.awaitPos=m||this.awaitPos,l.length>1?((n=this.startNodeAt(s,c)).expressions=l,this.finishNodeAt(n,`SequenceExpression`,h,g)):n=l[0]}else n=this.parseParenExpression();if(this.options.preserveParens){var _=this.startNodeAt(r,i);return _.expression=n,this.finishNode(_,`ParenthesizedExpression`)}return n},q.parseParenItem=function(e){return e},q.parseParenArrowList=function(e,t,n,r){return this.parseArrowExpression(this.startNodeAt(e,t),n,!1,r)};var ve=[];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===S.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(S.parenL)?e.arguments=this.parseExprList(S.parenR,this.options.ecmaVersion>=8,!1):e.arguments=ve,this.finishNode(e,`NewExpression`)},q.parseTemplateElement=function(e){var t=e.isTagged,n=this.startNode();return this.type===S.invalidTemplate?(t||this.raiseRecoverable(this.start,`Bad escape sequence in untagged template literal`),n.value={raw:this.value.replace(/\r\n?/g,`
|
|
97
|
+
`),cooked:null}):n.value={raw:this.input.slice(this.start,this.end).replace(/\r\n?/g,`
|
|
98
|
+
`),cooked:this.value},this.next(),n.tail=this.type===S.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===S.eof&&this.raise(this.pos,`Unterminated template literal`),this.expect(S.dollarBraceL),n.expressions.push(this.parseExpression()),this.expect(S.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===S.name||this.type===S.num||this.type===S.string||this.type===S.bracketL||this.type.keyword||this.options.ecmaVersion>=9&&this.type===S.star)&&!C.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(S.braceR);){if(r)r=!1;else if(this.expect(S.comma),this.options.ecmaVersion>=5&&this.afterTrailingComma(S.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,r,i,a,o=this.startNode();if(this.options.ecmaVersion>=9&&this.eat(S.ellipsis))return e?(o.argument=this.parseIdent(!1),this.type===S.comma&&this.raiseRecoverable(this.start,`Comma is not permitted after the rest element`),this.finishNode(o,`RestElement`)):(o.argument=this.parseMaybeAssign(!1,t),this.type===S.comma&&t&&t.trailingComma<0&&(t.trailingComma=this.start),this.finishNode(o,`SpreadElement`));this.options.ecmaVersion>=6&&(o.method=!1,o.shorthand=!1,(e||t)&&(i=this.start,a=this.startLoc),e||(n=this.eat(S.star)));var s=this.containsEsc;return this.parsePropertyName(o),!e&&!s&&this.options.ecmaVersion>=8&&!n&&this.isAsyncProp(o)?(r=!0,n=this.options.ecmaVersion>=9&&this.eat(S.star),this.parsePropertyName(o)):r=!1,this.parsePropertyValue(o,e,n,r,i,a,t,s),this.finishNode(o,`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===S.colon&&this.unexpected(),this.eat(S.colon)?(e.value=t?this.parseMaybeDefault(this.start,this.startLoc):this.parseMaybeAssign(!1,o),e.kind=`init`):this.options.ecmaVersion>=6&&this.type===S.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===S.comma||this.type===S.braceR||this.type===S.eq?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===S.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():((n||r)&&this.unexpected(),this.parseGetterSetter(e))},q.parsePropertyName=function(e){if(this.options.ecmaVersion>=6){if(this.eat(S.bracketL))return e.computed=!0,e.key=this.parseMaybeAssign(),this.expect(S.bracketR),e.key;e.computed=!1}return e.key=this.type===S.num||this.type===S.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(64|te(t,r.generator)|(n?128:0)),this.expect(S.parenL),r.params=this.parseBindingList(S.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(16|te(n,!1)),this.initFunction(e),this.options.ecmaVersion>=8&&(e.async=!!n),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,e.params=this.toAssignableList(t,!0),this.parseFunctionBody(e,!0,!1,r),this.yieldPos=i,this.awaitPos=a,this.awaitIdentPos=o,this.finishNode(e,`ArrowFunctionExpression`)},q.parseFunctionBody=function(e,t,n,r){var i=t&&this.type!==S.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))&&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,5),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,1,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(S.comma),t&&this.afterTrailingComma(e))break;var o=void 0;n&&this.type===S.comma?o=null:this.type===S.ellipsis?(o=this.parseSpread(r),r&&this.type===S.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&W||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===S.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=S.name):this.unexpected(),e},q.parsePrivateIdent=function(){var e=this.startNode();return this.type===S.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===S.semi||this.canInsertSemicolon()||this.type!==S.star&&!this.type.startsExpr?(t.delegate=!1,t.argument=null):(t.delegate=this.eat(S.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 Y=ne.prototype;Y.raise=function(e,t){var n=B(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},Y.raiseRecoverable=Y.raise,Y.curPosition=function(){if(this.options.locations)return new R(this.curLine,this.pos-this.lineStart)};var ye=ne.prototype,be=function(e){this.flags=e,this.var=[],this.lexical=[],this.functions=[]};ye.enterScope=function(e){this.scopeStack.push(new be(e))},ye.exitScope=function(){this.scopeStack.pop()},ye.treatFunctionsAsVarInScope=function(e){return 2&e.flags||!this.inModule&&1&e.flags},ye.declareName=function(e,t,n){var r=!1;if(t===2){var i=this.currentScope();r=i.lexical.indexOf(e)>-1||i.functions.indexOf(e)>-1||i.var.indexOf(e)>-1,i.lexical.push(e),this.inModule&&1&i.flags&&delete this.undefinedExports[e]}else if(t===4)this.currentScope().lexical.push(e);else if(t===3){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&&!(32&s.flags&&s.lexical[0]===e)||!this.treatFunctionsAsVarInScope(s)&&s.functions.indexOf(e)>-1){r=!0;break}if(s.var.push(e),this.inModule&&1&s.flags&&delete this.undefinedExports[e],s.flags&W)break}r&&this.raiseRecoverable(n,`Identifier '`+e+`' has already been declared`)},ye.checkLocalExport=function(e){this.scopeStack[0].lexical.indexOf(e.name)===-1&&this.scopeStack[0].var.indexOf(e.name)===-1&&(this.undefinedExports[e.name]=e)},ye.currentScope=function(){return this.scopeStack[this.scopeStack.length-1]},ye.currentVarScope=function(){for(var e=this.scopeStack.length-1;;e--){var t=this.scopeStack[e];if(771&t.flags)return t}},ye.currentThisScope=function(){for(var e=this.scopeStack.length-1;;e--){var t=this.scopeStack[e];if(771&t.flags&&!(16&t.flags))return t}};var xe=function(e,t,n){this.type=``,this.start=t,this.end=0,e.options.locations&&(this.loc=new z(e,n)),e.options.directSourceFile&&(this.sourceFile=e.options.directSourceFile),e.options.ranges&&(this.range=[t,0])},Se=ne.prototype;function X(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}Se.startNode=function(){return new xe(this,this.start,this.startLoc)},Se.startNodeAt=function(e,t){return new xe(this,e,t)},Se.finishNode=function(e,t){return X.call(this,e,t,this.lastTokEnd,this.lastTokEndLoc)},Se.finishNodeAt=function(e,t,n,r){return X.call(this,e,t,n,r)},Se.copyNode=function(e){var t=new xe(this,e.start,this.startLoc);for(var n in e)t[n]=e[n];return t};var Ce=`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`,Z=Ce+` Extended_Pictographic`,we=Z+` EBase EComp EMod EPres ExtPict`,Te={9:Ce,10:Z,11:Z,12:we,13:we,14:we},Ee={9:``,10:``,11:``,12:``,13:``,14:`Basic_Emoji Emoji_Keycap_Sequence RGI_Emoji_Modifier_Sequence RGI_Emoji_Flag_Sequence RGI_Emoji_Tag_Sequence RGI_Emoji_ZWJ_Sequence RGI_Emoji`},De=`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`,Oe=`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`,ke=Oe+` Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd`,Ae=ke+` Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho`,je=Ae+` Chorasmian Chrs Diak Dives_Akuru Khitan_Small_Script Kits Yezi Yezidi`,Me=je+` Cypro_Minoan Cpmn Old_Uyghur Ougr Tangsa Tnsa Toto Vithkuqi Vith`,Ne={9:Oe,10:ke,11:Ae,12:je,13:Me,14:Me+` Gara Garay Gukh Gurung_Khema Hrkt Katakana_Or_Hiragana Kawi Kirat_Rai Krai Nag_Mundari Nagm Ol_Onal Onao Sunu Sunuwar Todhri Todr Tulu_Tigalari Tutg Unknown Zzzz`},Pe={};function Fe(e){var t=Pe[e]={binary:F(Te[e]+` `+De),binaryOfStrings:F(Ee[e]),nonBinary:{General_Category:F(De),Script:F(Ne[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 Ie=0,Le=[9,10,11,12,13,14];Ie<Le.length;Ie+=1)Fe(Le[Ie]);var Q=ne.prototype,Re=function(e,t){this.parent=e,this.base=t||this};Re.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},Re.prototype.sibling=function(){return new Re(this.parent,this.base)};var ze=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=Pe[e.options.ecmaVersion>=14?14:e.options.ecmaVersion],this.source=``,this.flags=``,this.start=0,this.switchU=!1,this.switchV=!1,this.switchN=!1,this.pos=0,this.lastIntValue=0,this.lastStringValue=``,this.lastAssertionIsQuantifiable=!1,this.numCapturingParens=0,this.maxBackReference=0,this.groupNames=Object.create(null),this.backReferenceNames=[],this.branchID=null};function Be(e){return e===105||e===109||e===115}function Ve(e){return e===36||e>=40&&e<=43||e===46||e===63||e>=91&&e<=94||e>=123&&e<=125}function He(e){return e>=65&&e<=90||e>=97&&e<=122}ze.prototype.reset=function(e,t,n){var r=n.indexOf(`v`)!==-1,i=n.indexOf(`u`)!==-1;this.start=0|e,this.source=t+``,this.flags=n,r&&this.parser.options.ecmaVersion>=15?(this.switchU=!0,this.switchV=!0,this.switchN=!0):(this.switchU=i&&this.parser.options.ecmaVersion>=6,this.switchV=!1,this.switchN=i&&this.parser.options.ecmaVersion>=9)},ze.prototype.raise=function(e){this.parser.raiseRecoverable(this.start,`Invalid regular expression: /`+this.source+`/: `+e)},ze.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},ze.prototype.nextIndex=function(e,t){t===void 0&&(t=!1);var n=this.source,r=n.length;if(e>=r)return r;var i,a=n.charCodeAt(e);return!t&&!this.switchU||a<=55295||a>=57344||e+1>=r||(i=n.charCodeAt(e+1))<56320||i>57343?e+1:e+2},ze.prototype.current=function(e){return e===void 0&&(e=!1),this.at(this.pos,e)},ze.prototype.lookahead=function(e){return e===void 0&&(e=!1),this.at(this.nextIndex(this.pos,e),e)},ze.prototype.advance=function(e){e===void 0&&(e=!1),this.pos=this.nextIndex(this.pos,e)},ze.prototype.eat=function(e,t){return t===void 0&&(t=!1),this.current(t)===e&&(this.advance(t),!0)},ze.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},Q.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`)},Q.validateRegExpPattern=function(e){this.regexp_pattern(e),!e.switchN&&this.options.ecmaVersion>=9&&function(e){for(var t in e)return!0;return!1}(e.groupNames)&&(e.switchN=!0,this.regexp_pattern(e))},Q.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`)}},Q.regexp_disjunction=function(e){var t=this.options.ecmaVersion>=16;for(t&&(e.branchID=new Re(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`)},Q.regexp_alternative=function(e){for(;e.pos<e.source.length&&this.regexp_eatTerm(e););},Q.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)},Q.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},Q.regexp_eatQuantifier=function(e,t){return t===void 0&&(t=!1),!!this.regexp_eatQuantifierPrefix(e,t)&&(e.eat(63),!0)},Q.regexp_eatQuantifierPrefix=function(e,t){return e.eat(42)||e.eat(43)||e.eat(63)||this.regexp_eatBracedQuantifier(e,t)},Q.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},Q.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)},Q.regexp_eatReverseSolidusAtomEscape=function(e){var t=e.pos;if(e.eat(92)){if(this.regexp_eatAtomEscape(e))return!0;e.pos=t}return!1},Q.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},Q.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},Q.regexp_eatModifiers=function(e){for(var t=``,n=0;(n=e.current())!==-1&&Be(n);)t+=I(n),e.advance();return t},Q.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)},Q.regexp_eatInvalidBracedQuantifier=function(e){return this.regexp_eatBracedQuantifier(e,!0)&&e.raise(`Nothing to repeat`),!1},Q.regexp_eatSyntaxCharacter=function(e){var t=e.current();return!!Ve(t)&&(e.lastIntValue=t,e.advance(),!0)},Q.regexp_eatPatternCharacters=function(e){for(var t=e.pos,n=0;(n=e.current())!==-1&&!Ve(n);)e.advance();return e.pos!==t},Q.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)},Q.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}},Q.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},Q.regexp_eatRegExpIdentifierName=function(e){if(e.lastStringValue=``,this.regexp_eatRegExpIdentifierStart(e)){for(e.lastStringValue+=I(e.lastIntValue);this.regexp_eatRegExpIdentifierPart(e);)e.lastStringValue+=I(e.lastIntValue);return!0}return!1},Q.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),function(e){return p(e,!0)||e===36||e===95}(r)?(e.lastIntValue=r,!0):(e.pos=t,!1)},Q.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),function(e){return m(e,!0)||e===36||e===95||e===8204||e===8205}(r)?(e.lastIntValue=r,!0):(e.pos=t,!1)},Q.regexp_eatAtomEscape=function(e){return!!(this.regexp_eatBackReference(e)||this.regexp_eatCharacterClassEscape(e)||this.regexp_eatCharacterEscape(e)||e.switchN&&this.regexp_eatKGroupName(e))||(e.switchU&&(e.current()===99&&e.raise(`Invalid unicode escape`),e.raise(`Invalid escape`)),!1)},Q.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},Q.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},Q.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)},Q.regexp_eatCControlLetter=function(e){var t=e.pos;if(e.eat(99)){if(this.regexp_eatControlLetter(e))return!0;e.pos=t}return!1},Q.regexp_eatZero=function(e){return e.current()===48&&!Ge(e.lookahead())&&(e.lastIntValue=0,e.advance(),!0)},Q.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)},Q.regexp_eatControlLetter=function(e){var t=e.current();return!!He(t)&&(e.lastIntValue=t%32,e.advance(),!0)},Q.regexp_eatRegExpUnicodeEscapeSequence=function(e,t){t===void 0&&(t=!1);var n,r=e.pos,i=t||e.switchU;if(e.eat(117)){if(this.regexp_eatFixedHexDigits(e,4)){var a=e.lastIntValue;if(i&&a>=55296&&a<=56319){var o=e.pos;if(e.eat(92)&&e.eat(117)&&this.regexp_eatFixedHexDigits(e,4)){var s=e.lastIntValue;if(s>=56320&&s<=57343)return e.lastIntValue=1024*(a-55296)+(s-56320)+65536,!0}e.pos=o,e.lastIntValue=a}return!0}if(i&&e.eat(123)&&this.regexp_eatHexDigits(e)&&e.eat(125)&&(n=e.lastIntValue)>=0&&n<=1114111)return!0;i&&e.raise(`Invalid unicode escape`),e.pos=r}return!1},Q.regexp_eatIdentityEscape=function(e){if(e.switchU)return!!this.regexp_eatSyntaxCharacter(e)||!!e.eat(47)&&(e.lastIntValue=47,!0);var t=e.current();return!(t===99||e.switchN&&t===107)&&(e.lastIntValue=t,e.advance(),!0)},Q.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};function Ue(e){return He(e)||e===95}function We(e){return Ue(e)||Ge(e)}function Ge(e){return e>=48&&e<=57}function Ke(e){return e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102}function qe(e){return e>=65&&e<=70?e-65+10:e>=97&&e<=102?e-97+10:e-48}function Je(e){return e>=48&&e<=55}Q.regexp_eatCharacterClassEscape=function(e){var t=e.current();if(function(e){return e===100||e===68||e===115||e===83||e===119||e===87}(t))return e.lastIntValue=-1,e.advance(),1;var n=!1;if(e.switchU&&this.options.ecmaVersion>=9&&((n=t===80)||t===112)){var r;if(e.lastIntValue=-1,e.advance(),e.eat(123)&&(r=this.regexp_eatUnicodePropertyValueExpression(e))&&e.eat(125))return n&&r===2&&e.raise(`Invalid property name`),r;e.raise(`Invalid property name`)}return 0},Q.regexp_eatUnicodePropertyValueExpression=function(e){var t=e.pos;if(this.regexp_eatUnicodePropertyName(e)&&e.eat(61)){var n=e.lastStringValue;if(this.regexp_eatUnicodePropertyValue(e)){var r=e.lastStringValue;return this.regexp_validateUnicodePropertyNameAndValue(e,n,r),1}}if(e.pos=t,this.regexp_eatLoneUnicodePropertyNameOrValue(e)){var i=e.lastStringValue;return this.regexp_validateUnicodePropertyNameOrValue(e,i)}return 0},Q.regexp_validateUnicodePropertyNameAndValue=function(e,t,n){M(e.unicodeProperties.nonBinary,t)||e.raise(`Invalid property name`),e.unicodeProperties.nonBinary[t].test(n)||e.raise(`Invalid property value`)},Q.regexp_validateUnicodePropertyNameOrValue=function(e,t){return e.unicodeProperties.binary.test(t)?1:e.switchV&&e.unicodeProperties.binaryOfStrings.test(t)?2:void e.raise(`Invalid property name`)},Q.regexp_eatUnicodePropertyName=function(e){var t=0;for(e.lastStringValue=``;Ue(t=e.current());)e.lastStringValue+=I(t),e.advance();return e.lastStringValue!==``},Q.regexp_eatUnicodePropertyValue=function(e){var t=0;for(e.lastStringValue=``;We(t=e.current());)e.lastStringValue+=I(t),e.advance();return e.lastStringValue!==``},Q.regexp_eatLoneUnicodePropertyNameOrValue=function(e){return this.regexp_eatUnicodePropertyValue(e)},Q.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===2&&e.raise(`Negated character class may contain strings`),!0}return!1},Q.regexp_classContents=function(e){return e.current()===93?1:e.switchV?this.regexp_classSetExpression(e):(this.regexp_nonEmptyClassRanges(e),1)},Q.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`)}}},Q.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||Je(n))&&e.raise(`Invalid class escape`),e.raise(`Invalid escape`)}e.pos=t}var r=e.current();return r!==93&&(e.lastIntValue=r,e.advance(),!0)},Q.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)},Q.regexp_classSetExpression=function(e){var t,n=1;if(!this.regexp_eatClassSetRange(e))if(t=this.regexp_eatClassSetOperand(e)){t===2&&(n=2);for(var r=e.pos;e.eatChars([38,38]);)e.current()!==38&&(t=this.regexp_eatClassSetOperand(e))?t!==2&&(n=1):e.raise(`Invalid character in character class`);if(r!==e.pos)return n;for(;e.eatChars([45,45]);)this.regexp_eatClassSetOperand(e)||e.raise(`Invalid character in character class`);if(r!==e.pos)return n}else e.raise(`Invalid character in character class`);for(;;)if(!this.regexp_eatClassSetRange(e)){if(!(t=this.regexp_eatClassSetOperand(e)))return n;t===2&&(n=2)}},Q.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},Q.regexp_eatClassSetOperand=function(e){return this.regexp_eatClassSetCharacter(e)?1:this.regexp_eatClassStringDisjunction(e)||this.regexp_eatNestedClass(e)},Q.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===2&&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},Q.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},Q.regexp_classStringDisjunctionContents=function(e){for(var t=this.regexp_classString(e);e.eat(124);)this.regexp_classString(e)===2&&(t=2);return t},Q.regexp_classString=function(e){for(var t=0;this.regexp_eatClassSetCharacter(e);)t++;return t===1?1:2},Q.regexp_eatClassSetCharacter=function(e){var t=e.pos;if(e.eat(92))return!(!this.regexp_eatCharacterEscape(e)&&!this.regexp_eatClassSetReservedPunctuator(e))||(e.eat(98)?(e.lastIntValue=8,!0):(e.pos=t,!1));var n=e.current();return!(n<0||n===e.lookahead()&&function(e){return e===33||e>=35&&e<=38||e>=42&&e<=44||e===46||e>=58&&e<=64||e===94||e===96||e===126}(n))&&!function(e){return e===40||e===41||e===45||e===47||e>=91&&e<=93||e>=123&&e<=125}(n)&&(e.advance(),e.lastIntValue=n,!0)},Q.regexp_eatClassSetReservedPunctuator=function(e){var t=e.current();return!!function(e){return e===33||e===35||e===37||e===38||e===44||e===45||e>=58&&e<=62||e===64||e===96||e===126}(t)&&(e.lastIntValue=t,e.advance(),!0)},Q.regexp_eatClassControlLetter=function(e){var t=e.current();return!(!Ge(t)&&t!==95)&&(e.lastIntValue=t%32,e.advance(),!0)},Q.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},Q.regexp_eatDecimalDigits=function(e){var t=e.pos,n=0;for(e.lastIntValue=0;Ge(n=e.current());)e.lastIntValue=10*e.lastIntValue+(n-48),e.advance();return e.pos!==t},Q.regexp_eatHexDigits=function(e){var t=e.pos,n=0;for(e.lastIntValue=0;Ke(n=e.current());)e.lastIntValue=16*e.lastIntValue+qe(n),e.advance();return e.pos!==t},Q.regexp_eatLegacyOctalEscapeSequence=function(e){if(this.regexp_eatOctalDigit(e)){var t=e.lastIntValue;if(this.regexp_eatOctalDigit(e)){var n=e.lastIntValue;t<=3&&this.regexp_eatOctalDigit(e)?e.lastIntValue=64*t+8*n+e.lastIntValue:e.lastIntValue=8*t+n}else e.lastIntValue=t;return!0}return!1},Q.regexp_eatOctalDigit=function(e){var t=e.current();return Je(t)?(e.lastIntValue=t-48,e.advance(),!0):(e.lastIntValue=0,!1)},Q.regexp_eatFixedHexDigits=function(e,t){var n=e.pos;e.lastIntValue=0;for(var r=0;r<t;++r){var i=e.current();if(!Ke(i))return e.pos=n,!1;e.lastIntValue=16*e.lastIntValue+qe(i),e.advance()}return!0};var Ye=function(e){this.type=e.type,this.value=e.value,this.start=e.start,this.end=e.end,e.options.locations&&(this.loc=new z(e,e.startLoc,e.endLoc)),e.options.ranges&&(this.range=[e.start,e.end])},Xe=ne.prototype;function Ze(e){return typeof BigInt==`function`?BigInt(e.replace(/_/g,``)):null}Xe.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 Ye(this)),this.lastTokEnd=this.end,this.lastTokStart=this.start,this.lastTokEndLoc=this.endLoc,this.lastTokStartLoc=this.startLoc,this.nextToken()},Xe.getToken=function(){return this.next(),new Ye(this)},typeof Symbol<`u`&&(Xe[Symbol.iterator]=function(){var e=this;return{next:function(){var t=e.getToken();return{done:t.type===S.eof,value:t}}}}),Xe.nextToken=function(){var e=this.curContext();return e&&e.preserveSpace||this.skipSpace(),this.start=this.pos,this.options.locations&&(this.startLoc=this.curPosition()),this.pos>=this.input.length?this.finishToken(S.eof):e.override?e.override(this):void this.readToken(this.fullCharCodeAtPos())},Xe.readToken=function(e){return p(e,this.options.ecmaVersion>=6)||e===92?this.readWord():this.getTokenFromCode(e)},Xe.fullCharCodeAtPos=function(){var e=this.input.charCodeAt(this.pos);if(e<=55295||e>=56320)return e;var t=this.input.charCodeAt(this.pos+1);return t<=56319||t>=57344?e:(e<<10)+t-56613888},Xe.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=E(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())},Xe.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&&!T(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())},Xe.skipSpace=function(){e:for(;this.pos<this.input.length;){var e=this.input.charCodeAt(this.pos);switch(e){case 32:case 160:++this.pos;break;case 13: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 e}break;default:if(!(e>8&&e<14||e>=5760&&D.test(String.fromCharCode(e))))break e;++this.pos}}},Xe.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)},Xe.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(S.ellipsis)):(++this.pos,this.finishToken(S.dot))},Xe.readToken_slash=function(){var e=this.input.charCodeAt(this.pos+1);return this.exprAllowed?(++this.pos,this.readRegexp()):e===61?this.finishOp(S.assign,2):this.finishOp(S.slash,1)},Xe.readToken_mult_modulo_exp=function(e){var t=this.input.charCodeAt(this.pos+1),n=1,r=e===42?S.star:S.modulo;return this.options.ecmaVersion>=7&&e===42&&t===42&&(++n,r=S.starstar,t=this.input.charCodeAt(this.pos+2)),t===61?this.finishOp(S.assign,n+1):this.finishOp(r,n)},Xe.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(S.assign,3):this.finishOp(e===124?S.logicalOR:S.logicalAND,2):t===61?this.finishOp(S.assign,2):this.finishOp(e===124?S.bitwiseOR:S.bitwiseAND,1)},Xe.readToken_caret=function(){return this.input.charCodeAt(this.pos+1)===61?this.finishOp(S.assign,2):this.finishOp(S.bitwiseXOR,1)},Xe.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&&!C.test(this.input.slice(this.lastTokEnd,this.pos))?this.finishOp(S.incDec,2):(this.skipLineComment(3),this.skipSpace(),this.nextToken()):t===61?this.finishOp(S.assign,2):this.finishOp(S.plusMin,1)},Xe.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(S.assign,n+1):this.finishOp(S.bitShift,n)):t!==33||e!==60||this.inModule||this.input.charCodeAt(this.pos+2)!==45||this.input.charCodeAt(this.pos+3)!==45?(t===61&&(n=2),this.finishOp(S.relational,n)):(this.skipLineComment(4),this.skipSpace(),this.nextToken())},Xe.readToken_eq_excl=function(e){var t=this.input.charCodeAt(this.pos+1);return t===61?this.finishOp(S.equality,this.input.charCodeAt(this.pos+2)===61?3:2):e===61&&t===62&&this.options.ecmaVersion>=6?(this.pos+=2,this.finishToken(S.arrow)):this.finishOp(e===61?S.eq:S.prefix,1)},Xe.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(S.questionDot,2)}if(t===63)return e>=12&&this.input.charCodeAt(this.pos+2)===61?this.finishOp(S.assign,3):this.finishOp(S.coalesce,2)}return this.finishOp(S.question,1)},Xe.readToken_numberSign=function(){var e=35;if(this.options.ecmaVersion>=13&&(++this.pos,p(e=this.fullCharCodeAtPos(),!0)||e===92))return this.finishToken(S.privateId,this.readWord1());this.raise(this.pos,`Unexpected character '`+I(e)+`'`)},Xe.getTokenFromCode=function(e){switch(e){case 46:return this.readToken_dot();case 40:return++this.pos,this.finishToken(S.parenL);case 41:return++this.pos,this.finishToken(S.parenR);case 59:return++this.pos,this.finishToken(S.semi);case 44:return++this.pos,this.finishToken(S.comma);case 91:return++this.pos,this.finishToken(S.bracketL);case 93:return++this.pos,this.finishToken(S.bracketR);case 123:return++this.pos,this.finishToken(S.braceL);case 125:return++this.pos,this.finishToken(S.braceR);case 58:return++this.pos,this.finishToken(S.colon);case 96:if(this.options.ecmaVersion<6)break;return++this.pos,this.finishToken(S.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(S.prefix,1);case 35:return this.readToken_numberSign()}this.raise(this.pos,`Unexpected character '`+I(e)+`'`)},Xe.finishOp=function(e,t){var n=this.input.slice(this.pos,this.pos+t);return this.pos+=t,this.finishToken(e,n)},Xe.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(C.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 ze(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(S.regexp,{pattern:i,flags:o,value:c})},Xe.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;else{if((d=u>=97?u-97+10:u>=65?u-65+10:u>=48&&u<=57?u-48:1/0)>=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},Xe.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=Ze(this.input.slice(t,this.pos)),++this.pos):p(this.fullCharCodeAtPos())&&this.raise(this.pos,`Identifier directly after number`),this.finishToken(S.num,n)},Xe.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=Ze(this.input.slice(t,this.pos));return++this.pos,p(this.fullCharCodeAtPos())&&this.raise(this.pos,`Identifier directly after number`),this.finishToken(S.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))!==43&&r!==45||++this.pos,this.readInt(10)===null&&this.raise(t,`Invalid number`)),p(this.fullCharCodeAtPos())&&this.raise(this.pos,`Identifier directly after number`);var a,o=(a=this.input.slice(t,this.pos),n?parseInt(a,8):parseFloat(a.replace(/_/g,``)));return this.finishToken(S.num,o)},Xe.readCodePoint=function(){var e;if(this.input.charCodeAt(this.pos)===123){this.options.ecmaVersion<6&&this.unexpected();var t=++this.pos;e=this.readHexChar(this.input.indexOf(`}`,this.pos)-this.pos),++this.pos,e>1114111&&this.invalidStringToken(t,`Code point out of bounds`)}else e=this.readHexChar(4);return e},Xe.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)):(T(r)&&this.raise(this.start,`Unterminated string constant`),++this.pos)}return t+=this.input.slice(n,this.pos++),this.finishToken(S.string,t)};var Qe={};Xe.tryReadTemplateToken=function(){this.inTemplateElement=!0;try{this.readTmplToken()}catch(e){if(e!==Qe)throw e;this.readInvalidTemplateToken()}this.inTemplateElement=!1},Xe.invalidStringToken=function(e,t){if(this.inTemplateElement&&this.options.ecmaVersion>=9)throw Qe;this.raise(e,t)},Xe.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!==S.template&&this.type!==S.invalidTemplate?(e+=this.input.slice(t,this.pos),this.finishToken(S.template,e)):n===36?(this.pos+=2,this.finishToken(S.dollarBraceL)):(++this.pos,this.finishToken(S.backQuote));if(n===92)e+=this.input.slice(t,this.pos),e+=this.readEscapedChar(!0),t=this.pos;else if(T(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+=`
|
|
99
|
+
`;break;default:e+=String.fromCharCode(n)}this.options.locations&&(++this.curLine,this.lineStart=this.pos),t=this.pos}else ++this.pos}},Xe.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(S.invalidTemplate,this.input.slice(this.start,this.pos));case`\r`:this.input[this.pos+1]===`
|
|
100
|
+
`&&++this.pos;case`
|
|
101
|
+
`:case`\u2028`:case`\u2029`:++this.curLine,this.lineStart=this.pos+1}this.raise(this.start,`Unterminated template`)},Xe.readEscapedChar=function(e){var t=this.input.charCodeAt(++this.pos);switch(++this.pos,t){case 110:return`
|
|
102
|
+
`;case 114:return`\r`;case 120:return String.fromCharCode(this.readHexChar(2));case 117:return I(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 T(t)?(this.options.locations&&(this.lineStart=this.pos,++this.curLine),``):String.fromCharCode(t)}},Xe.readHexChar=function(e){var t=this.pos,n=this.readInt(16,e);return n===null&&this.invalidStringToken(t,`Bad character escape sequence`),n},Xe.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(m(i,r))this.pos+=i<=65535?1:2;else{if(i!==92)break;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?p:m)(o,r)||this.invalidStringToken(a,`Invalid Unicode escape`),e+=I(o),n=this.pos}t=!1}return e+this.input.slice(n,this.pos)},Xe.readWord=function(){var e=this.readWord1(),t=S.name;return this.keywords.test(e)&&(t=b[e]),this.finishToken(t,e)},ne.acorn={Parser:ne,version:`8.15.0`,defaultOptions:V,Position:R,SourceLocation:z,getLineInfo:B,Node:xe,TokenType:g,tokTypes:S,keywordTypes:b,TokContext:me,tokContexts:he,isIdentifierChar:m,isIdentifierStart:p,Token:Ye,isNewLine:T,lineBreak:C,lineBreakG:w,nonASCIIwhitespace:D};let $e=h(`node:module`),et=h(`node:fs`);String.fromCharCode;let tt=/\/$|\/\?|\/#/,nt=/^\.?\//;function rt(e=``,t){return t?tt.test(e):e.endsWith(`/`)}function it(e=``,t){if(!t)return e.endsWith(`/`)?e:e+`/`;if(rt(e,!0))return e||`/`;let n=e,r=``,i=e.indexOf(`#`);if(i!==-1&&(n=e.slice(0,i),r=e.slice(i),!n))return r;let[a,...o]=n.split(`?`);return a+`/`+(o.length>0?`?${o.join(`?`)}`:``)+r}function $(e){return e&&e!==`/`}function at(e,...t){let n=e||``;for(let e of t.filter(e=>$(e)))if(n){let t=e.replace(nt,``);n=it(n)+t}else n=e;return n}let ot=/^[A-Za-z]:\//;function st(e=``){return e&&e.replace(/\\/g,`/`).replace(ot,e=>e.toUpperCase())}let ct=/^[/\\]{2}/,lt=/^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/,ut=/^[A-Za-z]:$/,dt=/.(\.[^./]+|\.)$/,ft=function(e){if(e.length===0)return`.`;let t=(e=st(e)).match(ct),n=_t(e),r=e[e.length-1]===`/`;return(e=gt(e,!n)).length===0?n?`/`:r?`./`:`.`:(r&&(e+=`/`),ut.test(e)&&(e+=`/`),t?n?`//${e}`:`//./${e}`:n&&!_t(e)?`/${e}`:e)},pt=function(...e){let t=``;for(let n of e)if(n)if(t.length>0){let e=t[t.length-1]===`/`,r=n[0]===`/`;t+=e&&r?n.slice(1):e||r?n:`/${n}`}else t+=n;return ft(t)};function mt(){return typeof process<`u`&&typeof process.cwd==`function`?process.cwd().replace(/\\/g,`/`):`/`}let ht=function(...e){let t=``,n=!1;for(let r=(e=e.map(e=>st(e))).length-1;r>=-1&&!n;r--){let i=r>=0?e[r]:mt();i&&i.length!==0&&(t=`${i}/${t}`,n=_t(i))}return t=gt(t,!n),n&&!_t(t)?`/${t}`:t.length>0?t:`.`};function gt(e,t){let n=``,r=0,i=-1,a=0,o=null;for(let s=0;s<=e.length;++s){if(s<e.length)o=e[s];else{if(o===`/`)break;o=`/`}if(o===`/`){if(!(i===s-1||a===1))if(a===2){if(n.length<2||r!==2||n[n.length-1]!==`.`||n[n.length-2]!==`.`){if(n.length>2){let e=n.lastIndexOf(`/`);e===-1?(n=``,r=0):(n=n.slice(0,e),r=n.length-1-n.lastIndexOf(`/`)),i=s,a=0;continue}if(n.length>0){n=``,r=0,i=s,a=0;continue}}t&&(n+=n.length>0?`/..`:`..`,r=2)}else n.length>0?n+=`/${e.slice(i+1,s)}`:n=e.slice(i+1,s),r=s-i-1;i=s,a=0}else o===`.`&&a!==-1?++a:a=-1}return n}let _t=function(e){return lt.test(e)},vt=function(e){if(e===`..`)return``;let t=dt.exec(st(e));return t&&t[1]||``},yt=function(e){let t=st(e).replace(/\/$/,``).split(`/`).slice(0,-1);return t.length===1&&ut.test(t[0])&&(t[0]+=`/`),t.join(`/`)||(_t(e)?`/`:`.`)},bt=function(e,t){let n=st(e).split(`/`),r=``;for(let e=n.length-1;e>=0;e--){let t=n[e];if(t){r=t;break}}return t&&r.endsWith(t)?r.slice(0,-t.length):r},xt=h(`node:url`),St=h(`node:assert`),Ct=h(`node:process`),wt=h(`node:path`),Tt=h(`node:v8`),Et=h(`node:util`),Dt=new Set($e.builtinModules);function Ot(e){return e.replace(/\\/g,`/`)}let kt={}.hasOwnProperty,At=/^([A-Z][a-z\d]*)+$/,jt=new Set([`string`,`function`,`number`,`object`,`Function`,`Object`,`boolean`,`bigint`,`symbol`]),Mt={};function Nt(e,t=`and`){return e.length<3?e.join(` ${t} `):`${e.slice(0,-1).join(`, `)}, ${t} ${e[e.length-1]}`}let Pt=new Map,Ft;function It(e,t,n){return Pt.set(e,t),function(e,t){return n;function n(...n){let r=Error.stackTraceLimit;Lt()&&(Error.stackTraceLimit=0);let i=new e;Lt()&&(Error.stackTraceLimit=r);let a=function(e,t,n){let r=Pt.get(e);if(St(r!==void 0,"expected `message` to be found"),typeof r==`function`)return St(r.length<=t.length,`Code: ${e}; The provided arguments length (${t.length}) does not match the required ones (${r.length}).`),Reflect.apply(r,n,t);let i=/%[dfijoOs]/g,a=0;for(;i.exec(r)!==null;)a++;return St(a===t.length,`Code: ${e}; The provided arguments length (${t.length}) does not match the required ones (${a}).`),t.length===0?r:(t.unshift(r),Reflect.apply(Et.format,null,t))}(t,n,i);return Object.defineProperties(i,{message:{value:a,enumerable:!1,writable:!0,configurable:!0},toString:{value(){return`${this.name} [${t}]: ${this.message}`},enumerable:!1,writable:!0,configurable:!0}}),Rt(i),i.code=t,i}}(n,e)}function Lt(){try{if(Tt.startupSnapshot.isBuildingSnapshot())return!1}catch{}let e=Object.getOwnPropertyDescriptor(Error,`stackTraceLimit`);return e===void 0?Object.isExtensible(Error):kt.call(e,`writable`)&&e.writable!==void 0?e.writable:e.set!==void 0}Mt.ERR_INVALID_ARG_TYPE=It(`ERR_INVALID_ARG_TYPE`,(e,t,n)=>{St(typeof e==`string`,`'name' must be a string`),Array.isArray(t)||(t=[t]);let r=`The `;if(e.endsWith(` argument`))r+=`${e} `;else{let t=e.includes(`.`)?`property`:`argument`;r+=`"${e}" ${t} `}r+=`must be `;let i=[],a=[],o=[];for(let e of t)St(typeof e==`string`,`All expected entries have to be of type string`),jt.has(e)?i.push(e.toLowerCase()):At.exec(e)===null?(St(e!==`object`,`The value "object" should be written as "Object"`),o.push(e)):a.push(e);if(a.length>0){let e=i.indexOf(`object`);e!==-1&&(i.slice(e,1),a.push(`Object`))}return i.length>0&&(r+=`${i.length>1?`one of type`:`of type`} ${Nt(i,`or`)}`,(a.length>0||o.length>0)&&(r+=` or `)),a.length>0&&(r+=`an instance of ${Nt(a,`or`)}`,o.length>0&&(r+=` or `)),o.length>0&&(o.length>1?r+=`one of ${Nt(o,`or`)}`:(o[0].toLowerCase()!==o[0]&&(r+=`an `),r+=`${o[0]}`)),r+=`. Received ${function(e){if(e==null)return String(e);if(typeof e==`function`&&e.name)return`function ${e.name}`;if(typeof e==`object`)return e.constructor&&e.constructor.name?`an instance of ${e.constructor.name}`:`${(0,Et.inspect)(e,{depth:-1})}`;let t=(0,Et.inspect)(e,{colors:!1});return t.length>28&&(t=`${t.slice(0,25)}...`),`type ${typeof e} (${t})`}(n)}`,r},TypeError),Mt.ERR_INVALID_MODULE_SPECIFIER=It(`ERR_INVALID_MODULE_SPECIFIER`,(e,t,n=void 0)=>`Invalid module "${e}" ${t}${n?` imported from ${n}`:``}`,TypeError),Mt.ERR_INVALID_PACKAGE_CONFIG=It(`ERR_INVALID_PACKAGE_CONFIG`,(e,t,n)=>`Invalid package config ${e}${t?` while importing ${t}`:``}${n?`. ${n}`:``}`,Error),Mt.ERR_INVALID_PACKAGE_TARGET=It(`ERR_INVALID_PACKAGE_TARGET`,(e,t,n,r=!1,i=void 0)=>{let a=typeof n==`string`&&!r&&n.length>0&&!n.startsWith(`./`);return t===`.`?(St(!1===r),`Invalid "exports" main target ${JSON.stringify(n)} defined in the package config ${e}package.json${i?` imported from ${i}`:``}${a?`; targets must start with "./"`:``}`):`Invalid "${r?`imports`:`exports`}" target ${JSON.stringify(n)} defined for '${t}' in the package config ${e}package.json${i?` imported from ${i}`:``}${a?`; targets must start with "./"`:``}`},Error),Mt.ERR_MODULE_NOT_FOUND=It(`ERR_MODULE_NOT_FOUND`,(e,t,n=!1)=>`Cannot find ${n?`module`:`package`} '${e}' imported from ${t}`,Error),Mt.ERR_NETWORK_IMPORT_DISALLOWED=It(`ERR_NETWORK_IMPORT_DISALLOWED`,`import of '%s' by %s is not supported: %s`,Error),Mt.ERR_PACKAGE_IMPORT_NOT_DEFINED=It(`ERR_PACKAGE_IMPORT_NOT_DEFINED`,(e,t,n)=>`Package import specifier "${e}" is not defined${t?` in package ${t}package.json`:``} imported from ${n}`,TypeError),Mt.ERR_PACKAGE_PATH_NOT_EXPORTED=It(`ERR_PACKAGE_PATH_NOT_EXPORTED`,(e,t,n=void 0)=>t===`.`?`No "exports" main defined in ${e}package.json${n?` imported from ${n}`:``}`:`Package subpath '${t}' is not defined by "exports" in ${e}package.json${n?` imported from ${n}`:``}`,Error),Mt.ERR_UNSUPPORTED_DIR_IMPORT=It(`ERR_UNSUPPORTED_DIR_IMPORT`,`Directory import '%s' is not supported resolving ES modules imported from %s`,Error),Mt.ERR_UNSUPPORTED_RESOLVE_REQUEST=It(`ERR_UNSUPPORTED_RESOLVE_REQUEST`,`Failed to resolve module specifier "%s" from "%s": Invalid relative URL or base scheme is not hierarchical.`,TypeError),Mt.ERR_UNKNOWN_FILE_EXTENSION=It(`ERR_UNKNOWN_FILE_EXTENSION`,(e,t)=>`Unknown file extension "${e}" for ${t}`,TypeError),Mt.ERR_INVALID_ARG_VALUE=It(`ERR_INVALID_ARG_VALUE`,(e,t,n=`is invalid`)=>{let r=(0,Et.inspect)(t);return r.length>128&&(r=`${r.slice(0,128)}...`),`The ${e.includes(`.`)?`property`:`argument`} '${e}' ${n}. Received ${r}`},TypeError);let Rt=function(e){let t=`__node_internal_`+e.name;return Object.defineProperty(e,`name`,{value:t}),e}(function(e){let t=Lt();return t&&(Ft=Error.stackTraceLimit,Error.stackTraceLimit=1/0),Error.captureStackTrace(e),t&&(Error.stackTraceLimit=Ft),e}),zt={}.hasOwnProperty,{ERR_INVALID_PACKAGE_CONFIG:Bt}=Mt,Vt=new Map;function Ht(e,{base:t,specifier:n}){let r=Vt.get(e);if(r)return r;let i;try{i=et.readFileSync(wt.toNamespacedPath(e),`utf8`)}catch(e){let t=e;if(t.code!==`ENOENT`)throw t}let a={exists:!1,pjsonPath:e,main:void 0,name:void 0,type:`none`,exports:void 0,imports:void 0};if(i!==void 0){let r;try{r=JSON.parse(i)}catch(r){let i=r,a=new Bt(e,(t?`"${n}" from `:``)+(0,xt.fileURLToPath)(t||n),i.message);throw a.cause=i,a}a.exists=!0,zt.call(r,`name`)&&typeof r.name==`string`&&(a.name=r.name),zt.call(r,`main`)&&typeof r.main==`string`&&(a.main=r.main),zt.call(r,`exports`)&&(a.exports=r.exports),zt.call(r,`imports`)&&(a.imports=r.imports),!zt.call(r,`type`)||r.type!==`commonjs`&&r.type!==`module`||(a.type=r.type)}return Vt.set(e,a),a}function Ut(e){let t=new URL(`package.json`,e);for(;!t.pathname.endsWith(`node_modules/package.json`);){let n=Ht((0,xt.fileURLToPath)(t),{specifier:e});if(n.exists)return n;let r=t;if(t=new URL(`../package.json`,t),t.pathname===r.pathname)break}return{pjsonPath:(0,xt.fileURLToPath)(t),exists:!1,type:`none`}}function Wt(e){return Ut(e).type}let{ERR_UNKNOWN_FILE_EXTENSION:Gt}=Mt,Kt={}.hasOwnProperty,qt={__proto__:null,".cjs":`commonjs`,".js":`module`,".json":`json`,".mjs":`module`},Jt={__proto__:null,"data:":function(e){let{1:t}=/^([^/]+\/[^;,]+)[^,]*?(;base64)?,/.exec(e.pathname)||[null,null,null];return function(e){return e&&/\s*(text|application)\/javascript\s*(;\s*charset=utf-?8\s*)?/i.test(e)?`module`:e===`application/json`?`json`:null}(t)},"file:":function(e,t,n){let r=function(e){let t=e.pathname,n=t.length;for(;n--;){let e=t.codePointAt(n);if(e===47)return``;if(e===46)return t.codePointAt(n-1)===47?``:t.slice(n)}return``}(e);if(r===`.js`){let t=Wt(e);return t===`none`?`commonjs`:t}if(r===``){let t=Wt(e);return t===`none`||t===`commonjs`?`commonjs`:`module`}let i=qt[r];if(i)return i;if(!n)throw new Gt(r,(0,xt.fileURLToPath)(e))},"http:":Yt,"https:":Yt,"node:":()=>`builtin`};function Yt(){}let Xt=RegExp.prototype[Symbol.replace],{ERR_INVALID_MODULE_SPECIFIER:Zt,ERR_INVALID_PACKAGE_CONFIG:Qt,ERR_INVALID_PACKAGE_TARGET:$t,ERR_MODULE_NOT_FOUND:en,ERR_PACKAGE_IMPORT_NOT_DEFINED:tn,ERR_PACKAGE_PATH_NOT_EXPORTED:nn,ERR_UNSUPPORTED_DIR_IMPORT:rn,ERR_UNSUPPORTED_RESOLVE_REQUEST:an}=Mt,on={}.hasOwnProperty,sn=/(^|\\|\/)((\.|%2e)(\.|%2e)?|(n|%6e|%4e)(o|%6f|%4f)(d|%64|%44)(e|%65|%45)(_|%5f)(m|%6d|%4d)(o|%6f|%4f)(d|%64|%44)(u|%75|%55)(l|%6c|%4c)(e|%65|%45)(s|%73|%53))?(\\|\/|$)/i,cn=/(^|\\|\/)((\.|%2e)(\.|%2e)?|(n|%6e|%4e)(o|%6f|%4f)(d|%64|%44)(e|%65|%45)(_|%5f)(m|%6d|%4d)(o|%6f|%4f)(d|%64|%44)(u|%75|%55)(l|%6c|%4c)(e|%65|%45)(s|%73|%53))(\\|\/|$)/i,ln=/^\.|%|\\/,un=/\*/g,dn=/%2f|%5c/i,fn=new Set,pn=/[/\\]{2}/;function mn(e,t,n,r,i,a,o){if(Ct.noDeprecation)return;let s=(0,xt.fileURLToPath)(r),c=pn.exec(o?e:t)!==null;Ct.emitWarning(`Use of deprecated ${c?`double slash`:`leading or trailing slash matching`} resolving "${e}" for module request "${t}" ${t===n?``:`matched to "${n}" `}in the "${i?`imports`:`exports`}" field module resolution of the package at ${s}${a?` imported from ${(0,xt.fileURLToPath)(a)}`:``}.`,`DeprecationWarning`,`DEP0166`)}function hn(e,t,n,r){if(Ct.noDeprecation||function(e,t){let n=e.protocol;return Kt.call(Jt,n)&&Jt[n](e,t,!0)||null}(e,{parentURL:n.href})!==`module`)return;let i=(0,xt.fileURLToPath)(e.href),a=(0,xt.fileURLToPath)(new xt.URL(`.`,t)),o=(0,xt.fileURLToPath)(n);r?wt.resolve(a,r)!==i&&Ct.emitWarning(`Package ${a} has a "main" field set to "${r}", excluding the full filename and extension to the resolved file at "${i.slice(a.length)}", imported from ${o}.\n Automatic extension resolution of the "main" field is deprecated for ES modules.`,`DeprecationWarning`,`DEP0151`):Ct.emitWarning(`No "main" or "exports" field defined in the package.json for ${a} resolving the main entry point "${i.slice(a.length)}", imported from ${o}.\nDefault "index" lookups for the main are deprecated for ES modules.`,`DeprecationWarning`,`DEP0151`)}function gn(e){try{return(0,et.statSync)(e)}catch{}}function _n(e){let t=(0,et.statSync)(e,{throwIfNoEntry:!1}),n=t?t.isFile():void 0;return n!=null&&n}function vn(e,t,n){let r;if(t.main!==void 0){if(r=new xt.URL(t.main,e),_n(r))return r;let i=[`./${t.main}.js`,`./${t.main}.json`,`./${t.main}.node`,`./${t.main}/index.js`,`./${t.main}/index.json`,`./${t.main}/index.node`],a=-1;for(;++a<i.length&&(r=new xt.URL(i[a],e),!_n(r));)r=void 0;if(r)return hn(r,e,n,t.main),r}let i=[`./index.js`,`./index.json`,`./index.node`],a=-1;for(;++a<i.length&&(r=new xt.URL(i[a],e),!_n(r));)r=void 0;if(r)return hn(r,e,n,t.main),r;throw new en((0,xt.fileURLToPath)(new xt.URL(`.`,e)),(0,xt.fileURLToPath)(n))}function yn(e,t,n){return new nn((0,xt.fileURLToPath)(new xt.URL(`.`,t)),e,n&&(0,xt.fileURLToPath)(n))}function bn(e,t,n,r,i){return t=typeof t==`object`&&t?JSON.stringify(t,null,``):`${t}`,new $t((0,xt.fileURLToPath)(new xt.URL(`.`,n)),e,t,r,i&&(0,xt.fileURLToPath)(i))}function xn(e,t,n,r,i,a,o,s,c){if(t!==``&&!a&&e[e.length-1]!==`/`)throw bn(n,e,r,o,i);if(!e.startsWith(`./`)){if(o&&!e.startsWith(`../`)&&!e.startsWith(`/`)){let n=!1;try{new xt.URL(e),n=!0}catch{}if(!n)return On(a?Xt.call(un,e,()=>t):e+t,r,c)}throw bn(n,e,r,o,i)}if(sn.exec(e.slice(2))!==null){if(cn.exec(e.slice(2))!==null)throw bn(n,e,r,o,i);if(!s){let s=a?n.replace(`*`,()=>t):n+t;mn(a?Xt.call(un,e,()=>t):e,s,n,r,o,i,!0)}}let l=new xt.URL(e,r),u=l.pathname,d=new xt.URL(`.`,r).pathname;if(!u.startsWith(d))throw bn(n,e,r,o,i);if(t===``)return l;if(sn.exec(t)!==null){let c=a?n.replace(`*`,()=>t):n+t;cn.exec(t)===null?s||mn(a?Xt.call(un,e,()=>t):e,c,n,r,o,i,!1):(function(e,t,n,r,i){throw new Zt(e,`request is not a valid match in pattern "${t}" for the "${r?`imports`:`exports`}" resolution of ${(0,xt.fileURLToPath)(n)}`,i&&(0,xt.fileURLToPath)(i))})(c,n,r,o,i)}return a?new xt.URL(Xt.call(un,l.href,()=>t)):new xt.URL(t,l)}function Sn(e){let t=Number(e);return`${t}`===e&&t>=0&&t<4294967295}function Cn(e,t,n,r,i,a,o,s,c){if(typeof t==`string`)return xn(t,n,r,e,i,a,o,s,c);if(Array.isArray(t)){let l=t;if(l.length===0)return null;let u,d=-1;for(;++d<l.length;){let t=l[d],f;try{f=Cn(e,t,n,r,i,a,o,s,c)}catch(e){if(u=e,e.code===`ERR_INVALID_PACKAGE_TARGET`)continue;throw e}if(f!==void 0){if(f!==null)return f;u=null}}if(u==null)return null;throw u}if(typeof t==`object`&&t){let l=Object.getOwnPropertyNames(t),u=-1;for(;++u<l.length;)if(Sn(l[u]))throw new Qt((0,xt.fileURLToPath)(e),i,`"exports" cannot contain numeric property keys.`);for(u=-1;++u<l.length;){let d=l[u];if(d===`default`||c&&c.has(d)){let l=Cn(e,t[d],n,r,i,a,o,s,c);if(l===void 0)continue;return l}}return null}if(t===null)return null;throw bn(r,t,e,o,i)}function wn(e,t,n){if(Ct.noDeprecation)return;let r=(0,xt.fileURLToPath)(t);fn.has(r+`|`+e)||(fn.add(r+`|`+e),Ct.emitWarning(`Use of deprecated trailing slash pattern mapping "${e}" in the "exports" field module resolution of the package at ${r}${n?` imported from ${(0,xt.fileURLToPath)(n)}`:``}. Mapping specifiers ending in "/" is no longer supported.`,`DeprecationWarning`,`DEP0155`))}function Tn(e,t,n,r,i){let a=n.exports;if(function(e,t,n){if(typeof e==`string`||Array.isArray(e))return!0;if(typeof e!=`object`||!e)return!1;let r=Object.getOwnPropertyNames(e),i=!1,a=0,o=-1;for(;++o<r.length;){let e=r[o],s=e===``||e[0]!==`.`;if(a++===0)i=s;else if(i!==s)throw new Qt((0,xt.fileURLToPath)(t),n,`"exports" cannot contain some keys starting with '.' and some not. The exports object must either be an object of package subpath keys or an object of main entry condition name keys only.`)}return i}(a,e,r)&&(a={".":a}),on.call(a,t)&&!t.includes(`*`)&&!t.endsWith(`/`)){let n=Cn(e,a[t],``,t,r,!1,!1,!1,i);if(n==null)throw yn(t,e,r);return n}let o=``,s=``,c=Object.getOwnPropertyNames(a),l=-1;for(;++l<c.length;){let n=c[l],i=n.indexOf(`*`);if(i!==-1&&t.startsWith(n.slice(0,i))){t.endsWith(`/`)&&wn(t,e,r);let a=n.slice(i+1);t.length>=n.length&&t.endsWith(a)&&En(o,n)===1&&n.lastIndexOf(`*`)===i&&(o=n,s=t.slice(i,t.length-a.length))}}if(o){let n=Cn(e,a[o],s,o,r,!0,!1,t.endsWith(`/`),i);if(n==null)throw yn(t,e,r);return n}throw yn(t,e,r)}function En(e,t){let n=e.indexOf(`*`),r=t.indexOf(`*`),i=n===-1?e.length:n+1,a=r===-1?t.length:r+1;return i>a?-1:a>i||n===-1?1:r===-1||e.length>t.length?-1:t.length>e.length?1:0}function Dn(e,t,n){if(e===`#`||e.startsWith(`#/`)||e.endsWith(`/`))throw new Zt(e,`is not a valid internal imports specifier name`,(0,xt.fileURLToPath)(t));let r,i=Ut(t);if(i.exists){r=(0,xt.pathToFileURL)(i.pjsonPath);let a=i.imports;if(a)if(on.call(a,e)&&!e.includes(`*`)){let i=Cn(r,a[e],``,e,t,!1,!0,!1,n);if(i!=null)return i}else{let i=``,o=``,s=Object.getOwnPropertyNames(a),c=-1;for(;++c<s.length;){let t=s[c],n=t.indexOf(`*`);if(n!==-1&&e.startsWith(t.slice(0,-1))){let r=t.slice(n+1);e.length>=t.length&&e.endsWith(r)&&En(i,t)===1&&t.lastIndexOf(`*`)===n&&(i=t,o=e.slice(n,e.length-r.length))}}if(i){let e=Cn(r,a[i],o,i,t,!0,!0,!1,n);if(e!=null)return e}}}throw function(e,t,n){return new tn(e,t&&(0,xt.fileURLToPath)(new xt.URL(`.`,t)),(0,xt.fileURLToPath)(n))}(e,r,t)}function On(e,t,n){if($e.builtinModules.includes(e))return new xt.URL(`node:`+e);let{packageName:r,packageSubpath:i,isScoped:a}=function(e,t){let n=e.indexOf(`/`),r=!0,i=!1;e[0]===`@`&&(i=!0,n===-1||e.length===0?r=!1:n=e.indexOf(`/`,n+1));let a=n===-1?e:e.slice(0,n);if(ln.exec(a)!==null&&(r=!1),!r)throw new Zt(e,`is not a valid package name`,(0,xt.fileURLToPath)(t));return{packageName:a,packageSubpath:`.`+(n===-1?``:e.slice(n)),isScoped:i}}(e,t),o=Ut(t);if(o.exists){let e=(0,xt.pathToFileURL)(o.pjsonPath);if(o.name===r&&o.exports!==void 0&&o.exports!==null)return Tn(e,i,o,t,n)}let s,c=new xt.URL(`./node_modules/`+r+`/package.json`,t),l=(0,xt.fileURLToPath)(c);do{let o=gn(l.slice(0,-13));if(!o||!o.isDirectory()){s=l,c=new xt.URL((a?`../../../../node_modules/`:`../../../node_modules/`)+r+`/package.json`,c),l=(0,xt.fileURLToPath)(c);continue}let u=Ht(l,{base:t,specifier:e});return u.exports!==void 0&&u.exports!==null?Tn(c,i,u,t,n):i===`.`?vn(c,u,t):new xt.URL(i,c)}while(l.length!==s.length);throw new en(r,(0,xt.fileURLToPath)(t),!1)}function kn(e,t,n,r){let i=t.protocol,a=i===`data:`||i===`http:`||i===`https:`,o;if(function(e){return e!==``&&(e[0]===`/`||function(e){return e[0]===`.`&&(e.length===1||e[1]===`/`||e[1]===`.`&&(e.length===2||e[2]===`/`))}(e))}(e))try{o=new xt.URL(e,t)}catch(n){let r=new an(e,t);throw r.cause=n,r}else if(i===`file:`&&e[0]===`#`)o=Dn(e,t,n);else try{o=new xt.URL(e)}catch(r){if(a&&!$e.builtinModules.includes(e)){let n=new an(e,t);throw n.cause=r,n}o=On(e,t,n)}return St(o!==void 0,`expected to be defined`),o.protocol===`file:`?function(e,t){if(dn.exec(e.pathname)!==null)throw new Zt(e.pathname,`must not include encoded "/" or "\\" characters`,(0,xt.fileURLToPath)(t));let n;try{n=(0,xt.fileURLToPath)(e)}catch(n){let r=n;throw Object.defineProperty(r,`input`,{value:String(e)}),Object.defineProperty(r,`module`,{value:String(t)}),r}let r=gn(n.endsWith(`/`)?n.slice(-1):n);if(r&&r.isDirectory()){let r=new rn(n,(0,xt.fileURLToPath)(t));throw r.url=String(e),r}if(!r||!r.isFile()){let r=new en(n||e.pathname,t&&(0,xt.fileURLToPath)(t),!0);throw r.url=String(e),r}{let t=(0,et.realpathSync)(n),{search:r,hash:i}=e;(e=(0,xt.pathToFileURL)(t+(n.endsWith(wt.sep)?`/`:``))).search=r,e.hash=i}return e}(o,t):o}function An(e){return typeof e!=`string`||e.startsWith(`file://`)?Ot((0,xt.fileURLToPath)(e)):Ot(e)}function jn(e){return(0,xt.pathToFileURL)(An(e)).toString()}let Mn=new Set([`node`,`import`]),Nn=[`.mjs`,`.cjs`,`.js`,`.json`],Pn=new Set([`ERR_MODULE_NOT_FOUND`,`ERR_UNSUPPORTED_DIR_IMPORT`,`MODULE_NOT_FOUND`,`ERR_PACKAGE_PATH_NOT_EXPORTED`]);function Fn(e,t,n){try{return kn(e,t,n)}catch(e){if(!Pn.has(e?.code))throw e}}function In(e,t={}){if(typeof e!=`string`){if(!(e instanceof URL))throw TypeError("input must be a `string` or `URL`");e=An(e)}if(/(?:node|data|http|https):/.test(e))return e;if(Dt.has(e))return`node:`+e;if(e.startsWith(`file://`)&&(e=An(e)),_t(e))try{if((0,et.statSync)(e).isFile())return jn(e)}catch(e){if(e?.code!==`ENOENT`)throw e}let n=t.conditions?new Set(t.conditions):Mn,r=(Array.isArray(t.url)?t.url:[t.url]).filter(Boolean).map(e=>new URL(function(e){return typeof e!=`string`&&(e=e.toString()),/(?:node|data|http|https|file):/.test(e)?e:Dt.has(e)?`node:`+e:`file://`+encodeURI(Ot(e))}(e.toString())));r.length===0&&r.push(new URL(jn(process.cwd())));let i=[...r];for(let e of r)e.protocol===`file:`&&i.push(new URL(`./`,e),new URL(at(e.pathname,`_index.js`),e),new URL(`node_modules`,e));let a;for(let r of i){if(a=Fn(e,r,n),a)break;for(let i of[``,`/index`]){for(let o of t.extensions||Nn)if(a=Fn(at(e,i)+o,r,n),a)break;if(a)break}if(a)break}if(!a){let t=Error(`Cannot find module ${e} imported from ${i.join(`, `)}`);throw t.code=`ERR_MODULE_NOT_FOUND`,t}return jn(a)}function Ln(e,t){return In(e,t)}function Rn(e,t){return An(Ln(e,t))}let zn=/(?:[\s;]|^)(?:import[\s\w*,{}]*from|import\s*["'*{]|export\b\s*(?:[*{]|default|class|type|function|const|var|let|async function)|import\.meta\b)/m,Bn=/\/\*.+?\*\/|\/\/.*(?=[nr])/g;function Vn(e,t={}){return t.stripComments&&(e=e.replace(Bn,``)),zn.test(e)}function Hn(e){if(typeof e!=`string`)throw TypeError(`Expected a string`);return e.replace(/[|\\{}()[\]^$+*?.]/g,`\\$&`).replace(/-/g,`\\x2d`)}let Un=new Set([`/`,`\\`,void 0]),Wn=Symbol.for(`pathe:normalizedAlias`),Gn=/[/\\]/;function Kn(e){if(e[Wn])return e;let t=Object.fromEntries(Object.entries(e).sort(([e],[t])=>function(e,t){return t.split(`/`).length-e.split(`/`).length}(e,t)));for(let e in t)for(let n in t)n===e||e.startsWith(n)||t[e]?.startsWith(n)&&Un.has(t[e][n.length])&&(t[e]=t[n]+t[e].slice(n.length));return Object.defineProperty(t,Wn,{value:!0,enumerable:!1}),t}function qn(e=`/`){let t=e[e.length-1];return t===`/`||t===`\\`}var Jn={rE:`2.6.1`};let Yn=h(`node:crypto`);var Xn=r.n(Yn);let Zn=Object.create(null),Qn=e=>globalThis.process?.env||globalThis.Deno?.env.toObject()||globalThis.__env__||(e?Zn:globalThis),$n=new Proxy(Zn,{get:(e,t)=>Qn()[t]??Zn[t],has:(e,t)=>t in Qn()||t in Zn,set:(e,t,n)=>(Qn(!0)[t]=n,!0),deleteProperty(e,t){return t?(delete Qn(!0)[t],!0):!1},ownKeys(){let e=Qn(!0);return Object.keys(e)}}),er=typeof process<`u`&&process.env&&process.env.NODE_ENV||``,tr=[[`APPVEYOR`],[`AWS_AMPLIFY`,`AWS_APP_ID`,{ci:!0}],[`AZURE_PIPELINES`,`SYSTEM_TEAMFOUNDATIONCOLLECTIONURI`],[`AZURE_STATIC`,`INPUT_AZURE_STATIC_WEB_APPS_API_TOKEN`],[`APPCIRCLE`,`AC_APPCIRCLE`],[`BAMBOO`,`bamboo_planKey`],[`BITBUCKET`,`BITBUCKET_COMMIT`],[`BITRISE`,`BITRISE_IO`],[`BUDDY`,`BUDDY_WORKSPACE_ID`],[`BUILDKITE`],[`CIRCLE`,`CIRCLECI`],[`CIRRUS`,`CIRRUS_CI`],[`CLOUDFLARE_PAGES`,`CF_PAGES`,{ci:!0}],[`CLOUDFLARE_WORKERS`,`WORKERS_CI`,{ci:!0}],[`CODEBUILD`,`CODEBUILD_BUILD_ARN`],[`CODEFRESH`,`CF_BUILD_ID`],[`DRONE`],[`DRONE`,`DRONE_BUILD_EVENT`],[`DSARI`],[`GITHUB_ACTIONS`],[`GITLAB`,`GITLAB_CI`],[`GITLAB`,`CI_MERGE_REQUEST_ID`],[`GOCD`,`GO_PIPELINE_LABEL`],[`LAYERCI`],[`HUDSON`,`HUDSON_URL`],[`JENKINS`,`JENKINS_URL`],[`MAGNUM`],[`NETLIFY`],[`NETLIFY`,`NETLIFY_LOCAL`,{ci:!1}],[`NEVERCODE`],[`RENDER`],[`SAIL`,`SAILCI`],[`SEMAPHORE`],[`SCREWDRIVER`],[`SHIPPABLE`],[`SOLANO`,`TDDIUM`],[`STRIDER`],[`TEAMCITY`,`TEAMCITY_VERSION`],[`TRAVIS`],[`VERCEL`,`NOW_BUILDER`],[`VERCEL`,`VERCEL`,{ci:!1}],[`VERCEL`,`VERCEL_ENV`,{ci:!1}],[`APPCENTER`,`APPCENTER_BUILD_ID`],[`CODESANDBOX`,`CODESANDBOX_SSE`,{ci:!1}],[`CODESANDBOX`,`CODESANDBOX_HOST`,{ci:!1}],[`STACKBLITZ`],[`STORMKIT`],[`CLEAVR`],[`ZEABUR`],[`CODESPHERE`,`CODESPHERE_APP_ID`,{ci:!0}],[`RAILWAY`,`RAILWAY_PROJECT_ID`],[`RAILWAY`,`RAILWAY_SERVICE_ID`],[`DENO-DEPLOY`,`DENO_DEPLOYMENT_ID`],[`FIREBASE_APP_HOSTING`,`FIREBASE_APP_HOSTING`,{ci:!0}]],nr=function(){if(globalThis.process?.env)for(let e of tr){let t=e[1]||e[0];if(globalThis.process?.env[t])return{name:e[0].toLowerCase(),...e[2]}}return globalThis.process?.env?.SHELL===`/bin/jsh`&&globalThis.process?.versions?.webcontainer?{name:`stackblitz`,ci:!1}:{name:``,ci:!1}}();nr.name;function rr(e){return!!e&&e!==`false`}let ir=globalThis.process?.platform||``;rr($n.CI)||nr.ci;let ar=rr(globalThis.process?.stdout&&globalThis.process?.stdout.isTTY);$n.DEBUG,er===`test`||$n.TEST;let or=($n.MINIMAL,/^win/i.test(ir)),sr=(/^linux/i.test(ir),/^darwin/i.test(ir),!rr($n.NO_COLOR)&&(rr($n.FORCE_COLOR)||(ar||or)&&$n.TERM),(globalThis.process?.versions?.node||``).replace(/^v/,``)||null),cr=(Number(sr?.split(`.`)[0]),globalThis.process||Object.create(null)),lr={versions:{}},ur=(new Proxy(cr,{get:(e,t)=>t===`env`?$n:t in e?e[t]:t in lr?lr[t]:void 0}),globalThis.process?.release?.name===`node`),dr=!!globalThis.Bun||!!globalThis.process?.versions?.bun,fr=!!globalThis.Deno,pr=!!globalThis.fastly,mr=[[!!globalThis.Netlify,`netlify`],[!!globalThis.EdgeRuntime,`edge-light`],[globalThis.navigator?.userAgent===`Cloudflare-Workers`,`workerd`],[pr,`fastly`],[fr,`deno`],[dr,`bun`],[ur,`node`]];(function(){let e=mr.find(e=>e[0]);e&&e[1]})();let hr=h(`node:tty`)?.WriteStream?.prototype?.hasColors?.()??!1,gr=(e,t)=>{if(!hr)return e=>e;let n=`[${e}m`,r=`[${t}m`;return e=>{let i=e+``,a=i.indexOf(r);if(a===-1)return n+i+r;let o=n,s=0,c=(t===22?r:``)+n;for(;a!==-1;)o+=i.slice(s,a)+c,s=a+r.length,a=i.indexOf(r,s);return o+=i.slice(s)+r,o}},_r=(gr(0,0),gr(1,22),gr(2,22),gr(3,23),gr(4,24),gr(53,55),gr(7,27),gr(8,28),gr(9,29),gr(30,39),gr(31,39)),vr=gr(32,39),yr=gr(33,39),br=gr(34,39),xr=(gr(35,39),gr(36,39)),Sr=(gr(37,39),gr(90,39));gr(40,49),gr(41,49),gr(42,49),gr(43,49),gr(44,49),gr(45,49),gr(46,49),gr(47,49),gr(100,49),gr(91,39),gr(92,39),gr(93,39),gr(94,39),gr(95,39),gr(96,39),gr(97,39),gr(101,49),gr(102,49),gr(103,49),gr(104,49),gr(105,49),gr(106,49),gr(107,49);function Cr(e){if(typeof e!=`string`||e.startsWith(`file://`))return!1;try{return(0,et.lstatSync)(e).isDirectory()}catch{return!1}}function wr(e,t=8){return(function(){if(Or!==void 0)return Or;try{return Or=!!Xn().getFips?.(),Or}catch{return Or=!1,Or}}()?Xn().createHash(`sha256`):Xn().createHash(`md5`)).update(e).digest(`hex`).slice(0,t)}let Tr={true:vr(`true`),false:yr(`false`),"[rebuild]":yr(`[rebuild]`),"[esm]":br(`[esm]`),"[cjs]":vr(`[cjs]`),"[import]":br(`[import]`),"[require]":vr(`[require]`),"[native]":xr(`[native]`),"[transpile]":yr(`[transpile]`),"[fallback]":_r(`[fallback]`),"[unknown]":_r(`[unknown]`),"[hit]":vr(`[hit]`),"[miss]":yr(`[miss]`),"[json]":vr(`[json]`),"[data]":vr(`[data]`)};function Er(e,...t){if(!e.opts.debug)return;let n=process.cwd();console.log(Sr([`[jiti]`,...t.map(e=>e in Tr?Tr[e]:typeof e==`string`?e.replace(n,`.`):JSON.stringify(e))].join(` `)))}function Dr(e,t){return e.opts.interopDefault?function(e){let t=typeof e;if(e===null||t!==`object`&&t!==`function`)return e;let n=e.default,r=typeof n,i=n==null,a=r===`object`||r===`function`;return i&&e instanceof Promise?e:new Proxy(e,{get(t,r,o){if(r===`__esModule`)return!0;if(r===`default`)return i?e:typeof n?.default==`function`&&e.__esModule?n.default:n;if(Reflect.has(t,r))return Reflect.get(t,r,o);if(a&&!(n instanceof Promise)){let e=Reflect.get(n,r,o);return typeof e==`function`&&(e=e.bind(n)),e}},apply:(e,t,i)=>typeof e==`function`?Reflect.apply(e,t,i):r===`function`?Reflect.apply(n,t,i):void 0})}(t):t}let Or;function kr(e,t){return!!Ar(e,t)}function Ar(e,t){let n=process.env[e];if(!(e in process.env))return t;try{return JSON.parse(n)}catch{return t}}let jr=/\.(c|m)?j(sx?)$/,Mr=/\.(c|m)?t(sx?)$/;function Nr(e,t,n){let r,i;if(e.isNativeRe.test(t))return t;e.alias&&(t=function(e,t){let n=st(e);t=Kn(t);for(let[e,r]of Object.entries(t))if(n.startsWith(e)&&qn(n[(qn(e)?e.slice(0,-1):e).length]))return pt(r,n.slice(e.length));return n}(t,e.alias));let a=n?.parentURL||e.url;Cr(a)&&(a=pt(a,`_index.js`));let o=(n?.async?[n?.conditions,[`node`,`import`],[`node`,`require`]]:[n?.conditions,[`node`,`require`],[`node`,`import`]]).filter(Boolean);for(let n of o){try{r=Rn(t,{url:a,conditions:n,extensions:e.opts.extensions})}catch(e){i=e}if(r)return r}try{return e.nativeRequire.resolve(t,{paths:n.paths})}catch(e){i=e}for(let i of e.additionalExts)if(r=Pr(e,t+i,a,n)||Pr(e,t+`/index`+i,a,n),r||(Mr.test(e.filename)||Mr.test(e.parentModule?.filename||``)||jr.test(t))&&(r=Pr(e,t.replace(jr,`.$1t$2`),a,n),r))return r;if(!n?.try)throw i}function Pr(e,t,n,r){try{return e.nativeRequire.resolve(t,{...r,paths:[yt(An(n)),...r?.paths||[]]})}catch{}}let Fr=h(`node:perf_hooks`),Ir=h(`node:vm`);var Lr=r.n(Ir);function Rr(e,t,n){let r=e.parentCache||{};if(t.startsWith(`node:`))return zr(e,t,n.async);if(t.startsWith(`file:`))t=(0,xt.fileURLToPath)(t);else if(t.startsWith(`data:`)){if(!n.async)throw Error("`data:` URLs are only supported in ESM context. Use `import` or `jiti.import` instead.");return Er(e,`[native]`,`[data]`,`[import]`,t),zr(e,t,!0)}if($e.builtinModules.includes(t)||t===`.pnp.js`)return zr(e,t,n.async);if(e.opts.tryNative&&!e.opts.transformOptions)try{if(!(t=Nr(e,t,n))&&n.try)return;if(Er(e,`[try-native]`,n.async&&e.nativeImport?`[import]`:`[require]`,t),n.async&&e.nativeImport)return e.nativeImport(t).then(n=>(!1===e.opts.moduleCache&&delete e.nativeRequire.cache[t],Dr(e,n)));{let n=e.nativeRequire(t);return!1===e.opts.moduleCache&&delete e.nativeRequire.cache[t],Dr(e,n)}}catch(n){Er(e,`[try-native] Using fallback for ${t} because of an error:`,n)}let i=Nr(e,t,n);if(!i&&n.try)return;let a=vt(i);if(a===`.json`){Er(e,`[json]`,i);let t=e.nativeRequire(i);return t&&!(`default`in t)&&Object.defineProperty(t,`default`,{value:t,enumerable:!1}),t}if(a&&!e.opts.extensions.includes(a))return Er(e,`[native]`,`[unknown]`,n.async?`[import]`:`[require]`,i),zr(e,i,n.async);if(e.isNativeRe.test(i))return Er(e,`[native]`,n.async?`[import]`:`[require]`,i),zr(e,i,n.async);if(r[i])return Dr(e,r[i]?.exports);if(e.opts.moduleCache){let t=e.nativeRequire.cache[i];if(t?.loaded)return Dr(e,t.exports)}return Ur(e,(0,et.readFileSync)(i,`utf8`),{id:t,filename:i,ext:a,cache:r,async:n.async})}function zr(e,t,n){return n&&e.nativeImport?e.nativeImport(function(e){return or&&_t(e)?jn(e):e}(t)).then(t=>Dr(e,t)):Dr(e,e.nativeRequire(t))}function Br(e,t,n){if(!e.opts.fsCache||!t.filename)return n();let r=` /* v9-${wr(t.source,16)} */\n`,i=`${bt(yt(t.filename))}-${function(e){let t=e.split(Gn).pop();if(!t)return;let n=t.lastIndexOf(`.`);return n<=0?t:t.slice(0,n)}(t.filename)}`+(e.opts.sourceMaps?`+map`:``)+(t.interopDefault?`.i`:``)+`.${wr(t.filename)}`+(t.async?`.mjs`:`.cjs`);t.jsx&&t.filename.endsWith(`x`)&&(i+=`x`);let a=e.opts.fsCache,o=pt(a,i);if(!e.opts.rebuildFsCache&&(0,et.existsSync)(o)){let n=(0,et.readFileSync)(o,`utf8`);if(n.endsWith(r))return Er(e,`[cache]`,`[hit]`,t.filename,`~>`,o),n}Er(e,`[cache]`,`[miss]`,t.filename);let s=n();return s.includes(`__JITI_ERROR__`)||((0,et.writeFileSync)(o,s+r,`utf8`),Er(e,`[cache]`,`[store]`,t.filename,`~>`,o)),s}function Vr(t){if(!0===t.opts.fsCache&&(t.opts.fsCache=function(t){let n=t.filename&&ht(t.filename,`../node_modules`);if(n&&(0,et.existsSync)(n))return pt(n,`.cache/jiti`);let r=(0,e.tmpdir)();if(process.env.TMPDIR&&r===process.cwd()&&!process.env.JITI_RESPECT_TMPDIR_ENV){let t=process.env.TMPDIR;delete process.env.TMPDIR,r=(0,e.tmpdir)(),process.env.TMPDIR=t}return pt(r,`jiti`)}(t)),t.opts.fsCache)try{if((0,et.mkdirSync)(t.opts.fsCache,{recursive:!0}),!function(e){try{return(0,et.accessSync)(e,et.constants.W_OK),!0}catch{return!1}}(t.opts.fsCache))throw Error(`directory is not writable!`)}catch(e){Er(t,`Error creating cache directory at `,t.opts.fsCache,e),t.opts.fsCache=!1}}function Hr(e,t){let n=Br(e,t,()=>{let n=e.opts.transform({...e.opts.transformOptions,babel:{...e.opts.sourceMaps?{sourceFileName:t.filename,sourceMaps:`inline`}:{},...e.opts.transformOptions?.babel},interopDefault:e.opts.interopDefault,...t});return n.error&&e.opts.debug&&Er(e,n.error),n.code});return n.startsWith(`#!`)&&(n=`// `+n),n}function Ur(e,t,n={}){let r=n.id||(n.filename?bt(n.filename):`_jitiEval.${n.ext||(n.async?`mjs`:`js`)}`),i=n.filename||Nr(e,r,{async:n.async}),a=n.ext||vt(i),o=n.cache||e.parentCache||{},s=/\.[cm]?tsx?$/.test(a),c=a===`.mjs`||a===`.js`&&function(e){for(;e&&e!==`.`&&e!==`/`;){e=pt(e,`..`);try{let t=(0,et.readFileSync)(pt(e,`package.json`),`utf8`);try{return JSON.parse(t)}catch{}break}catch{}}}(i)?.type===`module`,l=a===`.cjs`,u=n.forceTranspile??(!l&&!(c&&n.async)&&(s||c||e.isTransformRe.test(i)||Vn(t))),d=Fr.performance.now();if(u){t=Hr(e,{filename:i,source:t,ts:s,async:n.async??!1,jsx:e.opts.jsx});let r=Math.round(1e3*(Fr.performance.now()-d))/1e3;Er(e,`[transpile]`,n.async?`[esm]`:`[cjs]`,i,`(${r}ms)`)}else{if(Er(e,`[native]`,n.async?`[import]`:`[require]`,i),n.async)return Promise.resolve(zr(e,i,n.async)).catch(r=>(Er(e,`Native import error:`,r),Er(e,`[fallback]`,i),Ur(e,t,{...n,forceTranspile:!0})));try{return zr(e,i,n.async)}catch(r){Er(e,`Native require error:`,r),Er(e,`[fallback]`,i),t=Hr(e,{filename:i,source:t,ts:s,async:n.async??!1,jsx:e.opts.jsx})}}let f=new $e.Module(i);f.filename=i,e.parentModule&&(f.parent=e.parentModule,Array.isArray(e.parentModule.children)&&!e.parentModule.children.includes(f)&&e.parentModule.children.push(f));let p=Gr(i,e.opts,{parentModule:f,parentCache:o,nativeImport:e.nativeImport,onError:e.onError,createRequire:e.createRequire},!0),m;f.require=p,f.path=yt(i),f.paths=$e.Module._nodeModulePaths(f.path),o[i]=f,e.opts.moduleCache&&(e.nativeRequire.cache[i]=f);let h=function(e,t){return`(${t?.async?`async `:``}function (exports, require, module, __filename, __dirname, jitiImport, jitiESMResolve) { ${e}\n});`}(t,{async:n.async});try{m=Lr().runInThisContext(h,{filename:i,lineOffset:0,displayErrors:!1})}catch(t){t.name===`SyntaxError`&&n.async&&e.nativeImport?(Er(e,`[esm]`,`[import]`,`[fallback]`,i),m=function(e,t){let n=`data:text/javascript;base64,${Buffer.from(`export default ${e}`).toString(`base64`)}`;return(...e)=>t(n).then(t=>t.default(...e))}(h,e.nativeImport)):(e.opts.moduleCache&&delete e.nativeRequire.cache[i],e.onError(t))}let g;try{g=m(f.exports,f.require,f,f.filename,yt(f.filename),p.import,p.esmResolve)}catch(t){e.opts.moduleCache&&delete e.nativeRequire.cache[i],e.onError(t)}function _(){if(f.exports&&f.exports.__JITI_ERROR__){let{filename:t,line:n,column:r,code:i,message:a}=f.exports.__JITI_ERROR__,o=Error(`${i}: ${a} \n ${`${t}:${n}:${r}`}`);Error.captureStackTrace(o,Rr),e.onError(o)}return f.loaded=!0,Dr(e,f.exports)}return n.async?Promise.resolve(g).then(_):_()}let Wr=(0,e.platform)()===`win32`;function Gr(e,t={},n,r=!1){let i=r?t:function(e){let t={fsCache:kr(`JITI_FS_CACHE`,kr(`JITI_CACHE`,!0)),rebuildFsCache:kr(`JITI_REBUILD_FS_CACHE`,!1),moduleCache:kr(`JITI_MODULE_CACHE`,kr(`JITI_REQUIRE_CACHE`,!0)),debug:kr(`JITI_DEBUG`,!1),sourceMaps:kr(`JITI_SOURCE_MAPS`,!1),interopDefault:kr(`JITI_INTEROP_DEFAULT`,!0),extensions:Ar(`JITI_EXTENSIONS`,[`.js`,`.mjs`,`.cjs`,`.ts`,`.tsx`,`.mts`,`.cts`,`.mtsx`,`.ctsx`]),alias:Ar(`JITI_ALIAS`,{}),nativeModules:Ar(`JITI_NATIVE_MODULES`,[]),transformModules:Ar(`JITI_TRANSFORM_MODULES`,[]),tryNative:Ar(`JITI_TRY_NATIVE`,`Bun`in globalThis),jsx:kr(`JITI_JSX`,!1)};t.jsx&&t.extensions.push(`.jsx`,`.tsx`);let n={};return e.cache!==void 0&&(n.fsCache=e.cache),e.requireCache!==void 0&&(n.moduleCache=e.requireCache),{...t,...n,...e}}(t),a=i.alias&&Object.keys(i.alias).length>0?Kn(i.alias||{}):void 0,o=[`typescript`,`jiti`,...i.nativeModules||[]],s=RegExp(`node_modules/(${o.map(e=>Hn(e)).join(`|`)})/`),c=[...i.transformModules||[]],l=RegExp(`node_modules/(${c.map(e=>Hn(e)).join(`|`)})/`);e||=process.cwd(),!r&&Cr(e)&&(e=pt(e,`_index.js`));let u=jn(e),d=[...i.extensions].filter(e=>e!==`.js`),f=n.createRequire(Wr?e.replace(/\//g,`\\`):e),p={filename:e,url:u,opts:i,alias:a,nativeModules:o,transformModules:c,isNativeRe:s,isTransformRe:l,additionalExts:d,nativeRequire:f,onError:n.onError,parentModule:n.parentModule,parentCache:n.parentCache,nativeImport:n.nativeImport,createRequire:n.createRequire};return r||Er(p,`[init]`,...[[`version:`,Jn.rE],[`module-cache:`,i.moduleCache],[`fs-cache:`,i.fsCache],[`rebuild-fs-cache:`,i.rebuildFsCache],[`interop-defaults:`,i.interopDefault]].flat()),r||Vr(p),Object.assign(function(e){return Rr(p,e,{async:!1})},{cache:i.moduleCache?f.cache:Object.create(null),extensions:f.extensions,main:f.main,options:i,resolve:Object.assign(function(e){return Nr(p,e,{async:!1})},{paths:f.resolve.paths}),transform:e=>Hr(p,e),evalModule:(e,t)=>Ur(p,e,t),async import(e,t){let n=await Rr(p,e,{...t,async:!0});return t?.default?n?.default??n:n},esmResolve(e,t){typeof t==`string`&&(t={parentURL:t});let n=Nr(p,e,{parentURL:u,...t,async:!0});return!n||typeof n!=`string`||n.startsWith(`file://`)?n:jn(n)}})}})(),t.exports=i.default})()})),Fc=f({createJiti:()=>Rc,default:()=>Hc});function Ic(e){throw e}function Lc(...t){return Vc||=e(import.meta.url)(`../dist/babel.cjs`),Vc(...t)}function Rc(t,n={}){return n.transform||(n={...n,transform:Lc}),(0,zc.default)(t,n,{onError:Ic,nativeImport:Bc,createRequire:e})}var zc,Bc,Vc,Hc,Uc=u((()=>{zc=m(Pc(),1),Bc=e=>import(e),Hc=Rc})),Wc=d(((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=d(((e,t)=>{V();let n=h(`node:path`),r=h(`node:fs/promises`),i=Nc(),{pathToFileURL:a}=h(`node:url`),o=S()(`eslint:config-loader`),{FlatConfigArray:s}=nc(),{WarningService:c}=lc(),l=[`eslint.config.js`,`eslint.config.mjs`,`eslint.config.cjs`,`eslint.config.ts`,`eslint.config.mts`,`eslint.config.cts`],u=new Map;function d(e){if(!e||typeof e!=`string`)throw Error(`'filePath' must be a non-empty string`)}function f(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 p(e){let t=n.extname(e);return/^\.[mc]?ts$/u.test(t)}function m(){return!!globalThis.Bun}function g(){return!!globalThis.Deno}function _(){return[`strip`,`transform`].includes(process.features.typescript)}async function v(e,t,n){let{createJiti:r,version:i}=await x.loadJiti().catch(()=>{throw Error(`The 'jiti' library is required for loading TypeScript configuration files. Make sure to install it.`)});if(typeof r!=`function`)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 a={moduleCache:!1};i.startsWith(`2.1.`)&&(a.interopDefault=!1);let o=await r(B,a).import(t.href);return u.set(e,n),o?.default??o}async function y(e,t,n){let r=await import(t.href);return u.set(e,n),r.default}async function b(e,t){o(`Loading config from ${e}`);let n=a(e);o(`Config file URL is ${n}`);let i=(await r.stat(e)).mtime.getTime();n.searchParams.append(`mtime`,i),u.get(e)!==i&&delete h.cache[e];let s=p(e),c=m(),l=g();if(s){if(t){if(_())return await y(e,n,i);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(!l&&!c)return await v(e,n,i)}return await y(e,n,i)}var x=class e{#e=new Map;#t=new Map;#n;constructor(e){this.#n=e.warningService?e:{...e,warningService:new c}}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){d(e);let t=n.resolve(this.#n.cwd,n.dirname(e)),{configFilePath:r}=await this.#r(t);return r}async loadConfigArrayForFile(e){return d(e),o(`Calculating config for file ${e}`),f(await this.findConfigFileForPath(e),this.#n),this.loadConfigArrayForDirectory(e)}async loadConfigArrayForDirectory(e){d(e),o(`Calculating config for directory ${e}`);let t=n.resolve(this.#n.cwd,n.dirname(e)),{configFilePath:r,basePath:i}=await this.#r(t);return o(`Using config file ${r} and base path ${i}`),this.#i(r,i)}getCachedConfigArrayForFile(e){return d(e),o(`Looking up cached config for ${e}`),this.getCachedConfigArrayForPath(n.dirname(e))}getCachedConfigArrayForPath(e){d(e),o(`Looking up cached config for ${e}`);let t=n.resolve(this.#n.cwd,e);if(!this.#t.has(t))throw Error(`Could not find config file for ${e}`);let r=this.#t.get(t);if(typeof r.then==`function`)throw Error(`Config file path for ${e} has not yet been calculated or an error occurred during the calculation`);let{configFilePath:i}=r,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 Promise.resolve().then(()=>(Uc(),Fc));return{createJiti:e,version:Wc().version}}static async locateConfigFileToUse({useConfigFile:e,cwd:t,fromDirectory:r=t}){let a,s=t;return typeof e==`string`?(o(`Override config file path is ${e}`),a=n.resolve(t,e),s=t):e!==!1&&(o(`Searching for eslint.config.js`),a=await i(l,{cwd:r}),a&&(s=n.dirname(a))),{configFilePath:a,basePath:s}}static async calculateConfigArray(e,t,n){let{cwd:r,baseConfig:i,ignoreEnabled:a,ignorePatterns:c,overrideConfig:l,hasUnstableNativeNodeJsTSConfigFlag:u=!1,defaultConfigs:d=[],warningService:f}=n;o(`Calculating config array from config file ${e} and base path ${t}`);let p=new s(i||[],{basePath:t,shouldIgnore:a});if(e){o(`Loading config file ${e}`);let t=await b(e,u),n=t===void 0;o(`Config file ${e} is ${n?`empty`:`not empty`}`),n||(Array.isArray(t)?t.length===0?(o(`Config file ${e} is an empty array`),n=!0):p.push(...t):typeof t==`object`&&t&&Object.keys(t).length===0?(o(`Config file ${e} is an empty object`),n=!0):p.push(t)),n&&f.emitEmptyConfigWarning(e)}return p.push(...d),c&&c.length>0&&p.push({basePath:r,ignores:c}),l&&(Array.isArray(l)?p.push(...l):p.push(l)),await p.normalize(),p}};t.exports={ConfigLoader:x,LegacyConfigLoader:class extends x{#e;#t;#n;constructor(e){let t=e.warningService?e:{...e,warningService:new c};super(t),this.#e=t}#r(){return this.#t||=x.locateConfigFileToUse({useConfigFile:this.#e.configFile,cwd:this.#e.cwd}),this.#t}async#i(e,t){return this.#n?this.#n:(this.#n=x.calculateConfigArray(e,t,this.#e),this.#n=await this.#n,this.#n)}async findConfigFileForPath(e){d(e);let{configFilePath:t}=await this.#r();return t}async loadConfigArrayForDirectory(e){d(e),o(`[Legacy]: Calculating config for ${e}`);let{configFilePath:t,basePath:n}=await this.#r();return o(`[Legacy]: Using config file ${t} and base path ${n}`),this.#i(t,n)}getCachedConfigArrayForPath(e){if(d(e),o(`[Legacy]: Looking up cached config for ${e}`),!this.#n)throw Error(`Could not find config file for ${e}`);if(typeof this.#n.then==`function`)throw Error(`Config array for ${e} has not yet been calculated or an error occurred during the calculation`);return this.#n}}}}));function Kc(e){if(!e||!(e instanceof URL)&&typeof e!=`string`)throw TypeError(`Path must be a non-empty string or URL.`)}function qc(e){if(typeof e!=`string`&&!(e instanceof ArrayBuffer)&&!ArrayBuffer.isView(e))throw TypeError(`File contents must be a string, ArrayBuffer, or ArrayBuffer view.`)}function Jc(e){if(e instanceof Uint8Array)return e;if(typeof e==`string`)return Xc.encode(e);if(e instanceof ArrayBuffer)return new Uint8Array(e);if(ArrayBuffer.isView(e)){let t=e.buffer.slice(e.byteOffset,e.byteOffset+e.byteLength);return new Uint8Array(t)}throw TypeError(`Invalid contents type. Expected string or ArrayBuffer.`)}var Yc,Xc,Zc,Qc,$c,el,tl,nl=u((()=>{Yc=new TextDecoder,Xc=new TextEncoder,Zc=class extends Error{constructor(e){super(`Method "${e}" does not exist on impl.`)}},Qc=class extends Error{constructor(e){super(`Method "${e}" is not supported on this impl.`)}},$c=class extends Error{constructor(){super(`Implementation already set.`)}},el=class{type;data;timestamp=Date.now();constructor(e,t){this.type=e,this.data=t}},tl=class{#e;#t;#n=new Map;constructor({impl:e}){this.#e=e,this.#t=e}#r(e,...t){for(let n of this.#n.values())n.push(new el(`call`,{methodName:e,args:t}))}logStart(e){if(!e||typeof e!=`string`)throw TypeError(`Log name must be a non-empty string.`);if(this.#n.has(e))throw Error(`Log "${e}" already exists.`);this.#n.set(e,[])}logEnd(e){if(this.#n.has(e)){let t=this.#n.get(e);return this.#n.delete(e),t}throw Error(`Log "${e}" does not exist.`)}isBaseImpl(){return this.#t===this.#e}setImpl(e){if(this.#r(`implSet`,e),this.#t!==this.#e)throw new $c;this.#t=e}resetImpl(){this.#r(`implReset`),this.#t=this.#e}#i(e){if(typeof this.#t[e]!=`function`)throw new Zc(e)}#a(e,t){if(typeof this.#t[e]!=`function`)throw new Qc(t)}#o(e,...t){return this.#r(e,...t),this.#i(e),this.#t[e](...t)}#s(e,...t){return this.#i(e),this.#t[e](...t)}#c(e,t,...n){return this.#r(t,...n),this.#a(e,t),this.#t[e](...n)}async text(e){Kc(e);let t=await this.#c(`bytes`,`text`,e);return t?Yc.decode(t):void 0}async json(e){Kc(e);let t=await this.#c(`bytes`,`json`,e);return t?JSON.parse(Yc.decode(t)):void 0}async arrayBuffer(e){return Kc(e),(await this.#c(`bytes`,`arrayBuffer`,e))?.buffer}async bytes(e){return Kc(e),this.#o(`bytes`,e)}async write(e,t){Kc(e),qc(t),this.#r(`write`,e,t);let n=Jc(t);return this.#s(`write`,e,n)}async append(e,t){Kc(e),qc(t),this.#r(`append`,e,t);let n=Jc(t);return this.#s(`append`,e,n)}async isFile(e){return Kc(e),this.#o(`isFile`,e)}async isDirectory(e){return Kc(e),this.#o(`isDirectory`,e)}async createDirectory(e){return Kc(e),this.#o(`createDirectory`,e)}async delete(e){return Kc(e),this.#o(`delete`,e)}async deleteAll(e){return Kc(e),this.#o(`deleteAll`,e)}async*list(e){Kc(e),yield*await this.#o(`list`,e)}async*walk(e,{directoryFilter:t=()=>!0,entryFilter:n=()=>!0}={}){Kc(e),this.#r(`walk`,e,{directoryFilter:t,entryFilter:n});let r=async function*(e,{directoryFilter:t,entryFilter:n,parentPath:i=``,depth:a=1}){let o;try{o=await this.#s(`list`,e)}catch(e){if(e.code===`ENOENT`)return;throw e}for await(let s of o){let o={path:s.name,depth:a,...s};i&&(o.path=`${i}/${o.path}`);let c=n(o);if(c.then&&(c=await c),c&&(yield o),s.isDirectory){let i=t(o);if(i.then&&(i=await i),!i)continue;yield*r(e instanceof URL?new URL(s.name,e.href.endsWith(`/`)?e.href:`${e.href}/`):`${e.endsWith(`/`)?e:`${e}/`}${s.name}`,{directoryFilter:t,entryFilter:n,parentPath:o.path,depth:a+1})}}}.bind(this);yield*r(e,{directoryFilter:t,entryFilter:n})}async size(e){return Kc(e),this.#o(`size`,e)}async lastModified(e){return Kc(e),this.#o(`lastModified`,e)}async copy(e,t){return Kc(e),Kc(t),this.#o(`copy`,e,t)}async copyAll(e,t){return Kc(e),Kc(t),this.#o(`copyAll`,e,t)}async move(e,t){return Kc(e),Kc(t),this.#o(`move`,e,t)}async moveAll(e,t){return Kc(e),Kc(t),this.#o(`moveAll`,e,t)}}})),rl=u((()=>{})),il=u((()=>{nl(),rl()}));function al(e){globalThis?.process?.env.DEBUG===`@hwc/retry`&&console.debug(e)}function ol(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 sl(e,t){return e.age>t}function cl(){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 ll,ul,dl,fl,pl,ml=u((()=>{ll=6e4,ul=100,dl=1e3,fl=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}},pl=class{#e=[];#t=[];#n=0;#r;#i;#a;#o;#s;constructor(e,{timeout:t=ll,maxDelay:n=ul,concurrency:r=dl}={}){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:t,promise:n,resolve:r,reject:i}){let a;try{a=e()}catch(e){return i(Error(`Synchronous error: ${e.message}`,{cause:e})),n}return!a||typeof a.then!=`function`?(i(Error(`Result is not a promise.`)),n):(this.#n++,n.finally(()=>{this.#n--,this.#u()}).catch(()=>{}),Promise.resolve(a).then(e=>{al(`Function called successfully without retry.`),r(e)}).catch(n=>{if(!this.#o(n)){i(n);return}let a=new fl(e,n,r,i,t);al(`Function failed, queuing for retry with task ${a.id}.`),this.#e.push(a),t?.addEventListener(`abort`,()=>{al(`Task ${a.id} was aborted due to AbortSignal.`),i(t.reason)}),this.#d()}),n)}retry(e,{signal:t}={}){t?.throwIfAborted();let{promise:n,resolve:r,reject:i}=cl();return this.#t.push(()=>this.#c(e,{signal:t,promise:n,resolve:r,reject:i})),this.#u(),n}#l(){this.pending&&this.#u(),this.retrying&&this.#d()}#u(){al(`Processing pending tasks: ${this.pending} pending, ${this.working} working.`);let e=this.#s-this.working;if(e<=0)return;let t=Math.min(this.pending,e);for(let e=0;e<t;e++)this.#t.shift()?.();al(`Processed pending tasks: ${this.pending} pending, ${this.working} working.`)}#d(){clearTimeout(this.#a),this.#a=void 0,al(`Processing retry queue: ${this.retrying} retrying, ${this.working} working.`);let e=()=>{this.#a=setTimeout(()=>this.#l(),0)},t=this.#e.shift();if(!t){al(`Queue is empty, exiting.`),this.pending&&e();return}if(sl(t,this.#r)){al(`Task ${t.id} was abandoned due to timeout.`),t.reject(t.error),e();return}if(!ol(t,this.#i)){al(`Task ${t.id} is not ready to retry, skipping.`),this.#e.push(t),e();return}t.lastAttempt=Date.now(),Promise.resolve(t.fn()).then(e=>{al(`Task ${t.id} succeeded after ${t.age}ms.`),t.resolve(e)}).catch(e=>{if(!this.#o(e)){al(`Task ${t.id} failed with non-retryable error: ${e.message}.`),t.reject(e);return}t.lastAttempt=Date.now(),this.#e.push(t),al(`Task ${t.id} failed, requeueing to try again.`)}).finally(()=>{this.#l()})}}})),hl,gl,_l,vl,yl,bl=u((()=>{il(),ml(),hl=new Set([`ENFILE`,`EMFILE`]),gl=class{name;isFile;isDirectory;isSymlink;constructor(e){this.name=e.name,this.isFile=e.isFile(),this.isDirectory=e.isDirectory(),this.isSymlink=e.isSymbolicLink()}},_l=class{#e;#t;constructor({fsp:e=r}={}){this.#e=e,this.#t=new pl(e=>hl.has(e.code))}bytes(e){return this.#t.retry(()=>this.#e.readFile(e)).then(e=>new Uint8Array(e.buffer)).catch(e=>{if(e.code!==`ENOENT`)throw e})}async write(e,r){let i=Buffer.from(r);return this.#t.retry(()=>this.#e.writeFile(e,i)).catch(r=>{if(r.code===`ENOENT`){let r=t.dirname(e instanceof URL?n(e):e);return this.#e.mkdir(r,{recursive:!0}).then(()=>this.#e.writeFile(e,i))}throw r})}async append(e,r){let i=Buffer.from(r);return this.#t.retry(()=>this.#e.appendFile(e,i)).catch(r=>{if(r.code===`ENOENT`){let r=t.dirname(e instanceof URL?n(e):e);return this.#e.mkdir(r,{recursive:!0}).then(()=>this.#e.appendFile(e,i))}throw r})}isFile(e){return this.#e.stat(e).then(e=>e.isFile()).catch(e=>{if(e.code===`ENOENT`)return!1;throw e})}isDirectory(e){return this.#e.stat(e).then(e=>e.isDirectory()).catch(e=>{if(e.code===`ENOENT`)return!1;throw e})}async createDirectory(e){await this.#e.mkdir(e,{recursive:!0})}delete(e){return this.#e.rm(e).then(()=>!0).catch(t=>{if(t.code===`ERR_FS_EISDIR`)return this.#e.rmdir(e).then(()=>!0);if(t.code===`ENOENT`)return!1;throw t})}deleteAll(e){return this.#e.rm(e,{recursive:!0}).then(()=>!0).catch(e=>{if(e.code===`ENOENT`)return!1;throw e})}async*list(e){let t=await this.#e.readdir(e,{withFileTypes:!0});for(let e of t)yield new gl(e)}size(e){return this.#e.stat(e).then(e=>e.size).catch(e=>{if(e.code!==`ENOENT`)throw e})}lastModified(e){return this.#e.stat(e).then(e=>e.mtime).catch(e=>{if(e.code!==`ENOENT`)throw e})}copy(e,t){return this.#e.copyFile(e,t)}async copyAll(e,r){if(await this.isFile(e))return this.copy(e,r);let i=e instanceof URL?n(e):e,a=r instanceof URL?n(r):r;await this.createDirectory(r);for await(let n of this.list(e)){let e=t.join(i,n.name),r=t.join(a,n.name);n.isDirectory?await this.copyAll(e,r):await this.copy(e,r)}}move(e,t){return this.#e.stat(e).then(n=>{if(n.isDirectory())throw Error(`EISDIR: illegal operation on a directory, move '${e}' -> '${t}'`);return this.#e.rename(e,t)})}async moveAll(e,t){return this.#e.rename(e,t)}},vl=class extends tl{constructor({fsp:e}={}){super({impl:new _l({fsp:e})})}},yl=new vl})),xl=f({Hfs:()=>tl,NodeHfs:()=>vl,NodeHfsImpl:()=>_l,hfs:()=>yl}),Sl=u((()=>{bl(),il()})),Cl=d(((e,t)=>{let n=h(`node:path`),r=h(`node:fs`),{isMainThread:i,threadId:a}=h(`node:worker_threads`),o=r.promises,s=Lo(),c=zo(),l=Uo(),u=Wo(),{Linter:d}=_c(),{getShorthandName:f}=vc(),p=Dc(),{ConfigLoader:m,LegacyConfigLoader:g}=Gc(),_=S(),v=l.Minimatch,y={dot:!0},b=process.hrtime.bigint;_.formatters.t=e=>`${(e+500000n)/1000000n} ms`;let x=_(`eslint:eslint-helpers${i?``:`:thread-${a}`}`);var C=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}}},w=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}},T=class extends Error{constructor(e){super(`All files matched by '${e}' are ignored.`),this.messageTemplate=`all-matched-files-ignored`,this.messageData={pattern:e}}};function E(e){return typeof e==`string`&&e.trim()!==``}function D(e){return Array.isArray(e)&&!!e.length&&e.every(E)}function O(e){return Array.isArray(e)&&e.every(E)}function k(e){return Number.isInteger(e)&&e>0}function A(e){return e.replace(/\\/gu,`/`)}function j(e){return s(n.sep===`\\`?A(e):e)}async function M({basePath:e,pattern:t}){let r=!1,{hfs:i}=await Promise.resolve().then(()=>(Sl(),xl)),a=new v(A(n.relative(e,t)),y);return await i.isDirectory(e)?i.walk(e,{directoryFilter(e){return!r&&a.match(e.path,!0)},entryFilter(e){return r||e.isDirectory?!1:a.match(e.path)?(r=!0,!0):!1}}).next().then(()=>r):r}async function N({basePath:e,patterns:t,rawPatterns:r,configLoader:i,errorOnUnmatchedPattern:a}){if(t.length===0)return[];let o=new Map,s=t.map((r,i)=>{let a=A(n.relative(e,r));return o.set(a,t[i]),new v(a,y)}),c=new Set([...o.keys()]),{hfs:l}=await Promise.resolve().then(()=>(Sl(),xl)),u=l.walk(e,{async directoryFilter(t){if(!s.some(e=>e.match(t.path,!0)))return!1;let r=n.resolve(e,t.path);return!(await i.loadConfigArrayForDirectory(r)).isDirectoryIgnored(r)},async entryFilter(t){let r=n.resolve(e,t.path);if(t.isDirectory)return!1;let a=(await i.loadConfigArrayForFile(r)).getConfig(r);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(n.resolve(e,t.path));if(a&&c.size>0)throw new w({basePath:e,unmatchedPatterns:[...c].map(e=>o.get(e)),patterns:t,rawPatterns:r});return d}async function P({basePath:e,patterns:t,rawPatterns:n,unmatchedPatterns:r}){let i=r[0],a=n[t.indexOf(i)];throw await M({basePath:e,pattern:i})?new T(a):new C(a,!0)}async function F({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})=>N({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 P({...a,unmatchedPatterns:o.unmatchedPatterns})}return i.flatMap(e=>e.value)}async function I({patterns:e,globInputPaths:t,cwd:r,configLoader:i,errorOnUnmatchedPattern:a}){let s=[],c=[],l=[],d=[],f=new Map([[r,{patterns:l,rawPatterns:[]}]]),p=e.map(e=>n.resolve(r,e)),m=await Promise.all(p.map(e=>o.stat(e).catch(()=>{}))),h=[];if(m.forEach((a,o)=>{let m=p[o],g=A(e[o]);if(a){a.isFile()&&(s.push(m),h.push(i.loadConfigArrayForFile(m))),a.isDirectory()&&(f.has(m)||f.set(m,{patterns:[],rawPatterns:[]}),{patterns:l,rawPatterns:d}=f.get(m),l.push(`${A(m)}/**`),d.push(g));return}if(t&&j(g)){let e=n.resolve(r,u(g));f.has(e)||f.set(e,{patterns:[],rawPatterns:[]}),{patterns:l,rawPatterns:d}=f.get(e),l.push(m),d.push(g)}else c.push(g)}),a&&c.length)throw new C(c[0],t);h.push(F({searches:f,configLoader:i,errorOnUnmatchedPattern:a}));let g=(await Promise.all(h)).at(-1);return[...new Set([...s,...g])]}function L(e){return n.join(e,`__placeholder__.js`)}function R(e){return e.severity===2}function z(e,t,r){let i;switch(r){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&&n.dirname(n.relative(t,e)).split(n.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,nodeType:null}],suppressedMessages:[],errorCount:0,warningCount:1,fatalErrorCount:0,fixableErrorCount:0,fixableWarningCount:0}}function B(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}function V(e){return e===`directive`||e===`problem`||e===`suggestion`||e===`layout`}function H(e){return Array.isArray(e)&&e.every(V)}var U=class e extends Error{constructor(t){super(`Invalid Options:\n- ${t.join(`
|
|
103
|
+
- `)}`),this.code=`ESLINT_INVALID_OPTIONS`,Error.captureStackTrace(this,e)}};function ee({allowInlineConfig:e=!0,baseConfig:t=null,cache:r=!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:y=!0,passOnNoPatterns:b=!1,ruleFilter:x=()=>!0,...S}){let C=[],w=Object.keys(S);if(w.length>=1&&(C.push(`Unknown options: ${w.join(`, `)}`),w.includes(`cacheFile`)&&C.push(`'cacheFile' has been removed. Please use the 'cacheLocation' option instead.`),w.includes(`configFile`)&&C.push(`'configFile' has been removed. Please use the 'overrideConfigFile' option instead.`),w.includes(`envs`)&&C.push(`'envs' has been removed.`),w.includes(`extensions`)&&C.push(`'extensions' has been removed.`),w.includes(`resolvePluginsRelativeTo`)&&C.push(`'resolvePluginsRelativeTo' has been removed.`),w.includes(`globals`)&&C.push(`'globals' has been removed. Please use the 'overrideConfig.languageOptions.globals' option instead.`),w.includes(`ignorePath`)&&C.push(`'ignorePath' has been removed.`),w.includes(`ignorePattern`)&&C.push(`'ignorePattern' has been removed. Please use the 'overrideConfig.ignorePatterns' option instead.`),w.includes(`parser`)&&C.push(`'parser' has been removed. Please use the 'overrideConfig.languageOptions.parser' option instead.`),w.includes(`parserOptions`)&&C.push(`'parserOptions' has been removed. Please use the 'overrideConfig.languageOptions.parserOptions' option instead.`),w.includes(`rules`)&&C.push(`'rules' has been removed. Please use the 'overrideConfig.rules' option instead.`),w.includes(`rulePaths`)&&C.push(`'rulePaths' has been removed. Please define your rules using plugins.`),w.includes(`reportUnusedDisableDirectives`)&&C.push(`'reportUnusedDisableDirectives' has been removed. Please use the 'overrideConfig.linterOptions.reportUnusedDisableDirectives' option instead.`)),typeof e!=`boolean`&&C.push(`'allowInlineConfig' must be a boolean.`),typeof t!=`object`&&C.push(`'baseConfig' must be an object or null.`),typeof r!=`boolean`&&C.push(`'cache' must be a boolean.`),E(i)||C.push(`'cacheLocation' must be a non-empty string.`),a!==`metadata`&&a!==`content`&&C.push(`'cacheStrategy' must be any of "metadata", "content".`),o!==`off`&&o!==`auto`&&!k(o)&&C.push(`'concurrency' must be a positive integer, "auto", or "off".`),(!E(s)||!n.isAbsolute(s))&&C.push(`'cwd' must be an absolute path.`),typeof c!=`boolean`&&C.push(`'errorOnUnmatchedPattern' must be a boolean.`),typeof l!=`boolean`&&typeof l!=`function`&&C.push(`'fix' must be a boolean or a function.`),u!==null&&!H(u)&&C.push(`'fixTypes' must be an array of any of "directive", "problem", "suggestion", and "layout".`),O(d)||C.push(`'flags' must be an array of non-empty strings.`),typeof f!=`boolean`&&C.push(`'globInputPaths' must be a boolean.`),typeof p!=`boolean`&&C.push(`'ignore' must be a boolean.`),!O(m)&&m!==null&&C.push(`'ignorePatterns' must be an array of non-empty strings or null.`),typeof h!=`object`&&C.push(`'overrideConfig' must be an object or null.`),!E(g)&&g!==null&&g!==!0&&C.push(`'overrideConfigFile' must be a non-empty string, null, or true.`),typeof b!=`boolean`&&C.push(`'passOnNoPatterns' must be a boolean.`),typeof _==`object`?_!==null&&Object.keys(_).includes(``)&&C.push(`'plugins' must not include an empty string.`):C.push(`'plugins' must be an object or null.`),Array.isArray(_)&&C.push(`'plugins' doesn't add plugins to configuration to load. Please use the 'overrideConfig.plugins' option instead.`),typeof v!=`boolean`&&C.push(`'stats' must be a boolean.`),typeof y!=`boolean`&&C.push(`'warnIgnored' must be a boolean.`),typeof x!=`function`&&C.push(`'ruleFilter' must be a function.`),C.length>0)throw new U(C);return{allowInlineConfig:e,baseConfig:t,cache:r,cacheLocation:i,cacheStrategy:a,concurrency:o,configFile:g===!0?!1:g,overrideConfig:h,cwd:n.normalize(s),errorOnUnmatchedPattern:c,fix:l,fixTypes:u,flags:[...d],globInputPaths:f,ignore:p,ignorePatterns:m,stats:v,passOnNoPatterns:b,warnIgnored:y,ruleFilter:x}}async function W(e){return(await import(e)).default}function te(e,t,{prefix:i=`.cache_`}={}){let a=n.normalize(e),o=n.resolve(t,a),s=a.slice(-1)===n.sep;function l(){return n.join(o,`${i}${c(t)}`)}let u;try{u=r.lstatSync(o)}catch{u=null}return u?u.isDirectory()||s?l():o:s?l():o}function ne({cache:e,cacheStrategy:t},n){return e?new p(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 ie(e,t,n){if(!e||!t)return e;let r=typeof e==`function`?e:()=>!0;return e=>re(e,n,t)&&r(e)}function ae({text:e,cwd:t,filePath:r,configs:i,fix:a,allowInlineConfig:o,ruleFilter:s,stats:c,linter:l}){let u=b(),d=r||`<text>`,f=d===`<text>`?L(t):d,{fixed:p,messages:m,output:h}=l.verifyAndFix(e,i,{allowInlineConfig:o,filename:f,fix:a,ruleFilter:s,stats:c,filterCodeBlock(e){return i.getConfig(e)!==void 0}}),g={filePath:d===`<text>`?d:n.resolve(d),messages:m,suppressedMessages:l.getSuppressedMessages(),...B(m)};return p&&(g.output=h),g.errorCount+g.warningCount>0&&g.output===void 0&&(g.source=e),c&&(g.stats={times:l.getTimes(),fixPasses:l.getFixPassCount()}),x(`File "%s" linted in %t`,d,b()-u),g}async function oe(e,t,n,r,i,a,s,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?z(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)x(`Reprocessing cached file to allow autofix: ${e}`);else return x(`Skipping file since it hasn't changed: ${e}`),t}let v=ie(f,_,l);async function y(){let n=b(),i=await o.readFile(e,{encoding:`utf8`,signal:c?.signal}),s=b()-n;return x(`File "%s" read in %t`,e,s),a&&(a.duration+=s),c?.signal.throwIfAborted(),ae({text:i,filePath:e,configs:t,cwd:d,fix:v,allowInlineConfig:u,ruleFilter:m,stats:h,linter:r})}return(s?s.retry(y,{signal:c?.signal}):y()).catch(e=>{throw c?.abort(e),e})}function G(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 d({configType:`flat`,cwd:e,flags:G(t),warningService:n})}function ce(e){let t=[];if(e){let n={};for(let[t,r]of Object.entries(e))n[f(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){let l={cwd:e,baseConfig:t,overrideConfig:n,configFile:r,ignoreEnabled:i,ignorePatterns:a,defaultConfigs:o,hasUnstableNativeNodeJsTSConfigFlag:s.hasFlag(`unstable_native_nodejs_ts_config`),warningService:c};return s.hasFlag(`v10_config_lookup_from_file`)?new m(l):new g(l)}t.exports={createDebug:_,findFiles:I,isNonEmptyString:E,isArrayOfNonEmptyString:D,createIgnoreResult:z,isErrorMessage:R,calculateStatsPerFile:B,getPlaceholderPath:L,processOptions:ee,loadOptionsFromModule:W,getCacheFile:te,createLintResultCache:ne,getFixerForFixTypes:ie,verifyText:ae,lintFile:oe,createLinter:se,createDefaultConfigs:ce,createConfigLoader:le}})),wl=d((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()})}}})),Tl=d((e=>{let t=h(`node:module`).createRequire;function n(e,n){return t(n).resolve(e)}e.resolve=n})),El=d(((e,t)=>{V();let{existsSync:n}=h(`node:fs`),r=h(`node:fs/promises`),i=h(`node:os`),a=h(`node:path`),{pathToFileURL:o}=h(`node:url`),{SHARE_ENV:s,Worker:c}=h(`node:worker_threads`),{version:l}=C(),{defaultConfig:u}=No(),d=Fo(),{createDebug:f,findFiles:p,getCacheFile:m,isNonEmptyString:g,isArrayOfNonEmptyString:_,createIgnoreResult:v,isErrorMessage:y,getPlaceholderPath:b,processOptions:x,loadOptionsFromModule:S,getFixerForFixTypes:w,verifyText:T,lintFile:E,createLinter:D,createLintResultCache:O,createDefaultConfigs:k,createConfigLoader:A}=Cl(),{Retrier:j}=wl(),{ConfigLoader:M}=Gc(),{WarningService:N}=lc(),{Config:P}=Zs(),{getShorthandName:F,getNamespaceFromTerm:I,normalizePackageName:L}=vc(),{resolve:R}=Tl(),B=process.hrtime.bigint,H=f(`eslint:eslint`),U=new WeakMap,ee=new Set([`checkstyle`,`codeframe`,`compact`,`jslint-xml`,`junit`,`table`,`tap`,`unix`,`visualstudio`]),W=new Set([`ENFILE`,`EMFILE`]);function te(e){return Array.from(e).reduce((e,[t,n])=>(e[t]=n.meta,e),{})}let ne=new WeakMap;function re(e,t){let{options:{cwd:n},configLoader:r}=U.get(e),i=a.isAbsolute(t)?t:b(n),o=r.getCachedConfigArrayForFile(i).getConfig(i);if(o&&!ne.has(o)){let e=[];if(o.rules)for(let[t,n]of Object.entries(o.rules)){if(P.getRuleNumericSeverity(n)===0)continue;let r=o.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?``:`${F(e.plugin.name,`eslint-plugin`)}/`}${e.rule?.name??``}`)??[]:i.replacedBy||[],info:n?i.deprecated:void 0})}}ne.set(o,Object.freeze(e))}return o?ne.get(o):Object.freeze([])}function ie(e,t){let n={configurable:!0,enumerable:!0,get(){return re(e,this.filePath)}};for(let e of t)Object.defineProperty(e,`usedDeprecatedRules`,n);return t}function ae(e,t){return e.filePath<t.filePath?-1:e.filePath>t.filePath?1:0}async function oe({configFile:e,cwd:t}){let n=await new M({cwd:t,configFile:e}).findConfigFileForPath(a.join(t,`__placeholder__.js`));if(!n)throw Error(`No ESLint configuration file was found.`);return{configFilePath:n,basePath:e?t:a.dirname(n)}}function G(e){return TypeError(`Results object was not created from this ESLint instance.`,{cause:e})}function se(e,t){let n=Math.ceil(e/50);return n>t&&(n=t),n<=1&&(n=0),n}function ce(e,t,n,r){let i=e.getValidCachedLintResults(n,r);return!i||t&&i.messages&&i.messages.length>0}function le(e,t,n){let r=B(),{configLoader:i,lintResultCache:a,options:{cacheStrategy:o,fix:s}}=U.get(e),c=!a||o===`content`,l=0,u=t.length,d=0;for(let e of t){let t=se(l+u,n);if(d>=t)break;u--;let r=i.getCachedConfigArrayForFile(e).getConfig(e);r&&(c||ce(a,s,e,r))&&(l++,d=se(l,n))}return H(`%d file(s) to process counted in %t`,l,B()-r),d}function K(e,t,{availableParallelism:n}=i){let{concurrency:r}=U.get(e).options;switch(r){case`off`:return 0;case`auto`:return le(e,t,n()>>1);default:{let e=Math.min(r,t.length);return e>1?e:0}}}let ue=Symbol(`Do not check for uncloneable options.`);async function de(e,t,n,r){let i=e.length,l=Array(i),u=o(a.join(z,`./worker.js`)),f=new Uint32Array(new SharedArrayBuffer(Uint32Array.BYTES_PER_ELEMENT)),p=new AbortController,m=p.signal,h={env:s,workerData:{eslintOptionsOrURL:n,filePathIndexArray:f,filePaths:e}},g=1;function _(e,t){let n=B(),r=new c(u,h);r.once(`message`,t=>{let r=B()-n,i=Number(t.netLintingDuration)/Number(r);g=Math.min(g,i),d.enabled&&t.timings&&d.mergeData(t.timings);for(let e of t){let{index:t}=e;delete e.index,l[t]=e}e()}),r.once(`error`,e=>{p.abort(e),t(e)}),m.addEventListener(`abort`,()=>r.terminate())}let v=Array(t);for(let e=0;e<t;++e)v[e]=new Promise(_);try{await Promise.all(v)}catch(e){throw d.disableDisplay(),e}return g<.7&&r(),l}async function fe(e,t,n,r,i){let{configLoader:a,lintResultCache:o}=U.get(e),s=await de(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 pe(e,t){let{configLoader:n,linter:r,lintResultCache:i,options:a}=U.get(e),o=new AbortController,s=new j(e=>W.has(e.code),{concurrency:100});return await Promise.all(t.map(async e=>{let t=n.getCachedConfigArrayForFile(e),c=t.getConfig(e),l=await E(e,t,a,r,i,null,s,o);return c&&i?.setCachedLintResults(e,c,l),l}))}function me(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 he=class e{static configType=`flat`;#e;#t;constructor(e={}){let t=x(e);!e[ue]&&t.concurrency!==`off`&&(me(e),this.#t=e);let r=new N,i=D(t,r),o=m(t.cacheLocation,t.cwd),s=O(t,o),c=k(e.plugins);this.#e=A(t,c,i,r),H(`Using config loader ${this.#e.constructor.name}`),U.set(this,{options:t,linter:i,cacheFilePath:o,lintResultCache:s,defaultConfigs:c,configs:null,configLoader:this.#e,warningService:r}),n(a.resolve(t.cwd,`.eslintignore`))&&r.emitESLintIgnoreWarning()}static get version(){return l}static get defaultConfig(){return u}static async outputFixes(e){if(!Array.isArray(e))throw Error(`'results' must be an array`);let t=new j(e=>W.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`&&a.isAbsolute(e.filePath)}).map(e=>t.retry(()=>r.writeFile(e.filePath,e.output))))}static getErrorResults(e){let t=[];return e.forEach(e=>{let n=e.messages.filter(y),r=e.suppressedMessages.filter(y);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 S(n),[ue]:!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}}=U.get(this);for(let i of e){let e=i.filePath===`<text>`?b(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 G(e)}let a=i.getConfig(e);if(!a)throw G();let o=a.getRuleDefinition(r);o&&t.set(r,o)}}return te(t)}hasFlag(e){return U.get(this).linter.hasFlag(e)}async lintFiles(e){let i=e,{cacheFilePath:a,lintResultCache:o,options:s,warningService:c}=U.get(this);if(e===``||Array.isArray(e)&&e.length===0){if(s.passOnNoPatterns)return[];i=[`.`]}else{if(!g(e)&&!_(e))throw Error(`'patterns' must be a non-empty string or an array of non-empty strings`);typeof e==`string`&&(i=[e])}H(`Using file patterns: ${i}`);let{concurrency:l,cwd:u,globInputPaths:d,errorOnUnmatchedPattern:f}=s;if(!o&&a){H(`Deleting cache file at ${a}`);try{n(a)&&await r.unlink(a)}catch(e){if(n(a))throw e}}let m=B(),h=await p({patterns:i,cwd:u,globInputPaths:d,configLoader:this.#e,errorOnUnmatchedPattern:f});H(`%d file(s) found in %t`,h.length,B()-m);let v,y=t.exports.calculateWorkerCount(this,h);if(y){H(`Linting using ${y} worker thread(s).`);let e;e=y<=2?`disable concurrency`:l===`auto`?`disable concurrency or use a numeric concurrency setting`:`reduce or disable concurrency`,v=await fe(this,h,y,this.#t,()=>c.emitPoorConcurrencyWarning(e))}else H(`Linting in single-thread mode.`),v=await pe(this,h);o&&o.reconcile();let b=v.filter(e=>!!e);return ie(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||{},o=Object.keys(i);if(o.length>0)throw Error(`'options' must not include the unknown option(s): ${o.join(`, `)}`);if(n!==void 0&&!g(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}=U.get(this),{allowInlineConfig:l,cwd:u,fix:d,fixTypes:f,warnIgnored:p,ruleFilter:m,stats:h}=c,_=[],y=B(),b=f?new Set(f):null,x=a.resolve(u,n||`__placeholder__.js`),S=await this.#e.loadConfigArrayForFile(x),C=S?.getConfigStatus(x)??`unconfigured`;if(x&&C!==`matched`)(typeof r==`boolean`?r:p)&&_.push(v(x,u,C));else{let t=w(d,b,S.getConfig(x));_.push(T({text:e,filePath:x.endsWith(`__placeholder__.js`)?`<text>`:x,configs:S,cwd:u,fix:t,allowInlineConfig:l,ruleFilter:m,stats:h,linter:s}))}return H(`Linting complete in %t`,B()-y),ie(this,_)}async loadFormatter(e=`stylish`){if(typeof e!=`string`)throw Error(`'name' must be a string`);let t=e.replace(/\\/gu,`/`),n=I(t),{cwd:r}=U.get(this).options,i;if(!n&&t.includes(`/`))i=a.resolve(r,t);else try{i=R(L(t,`eslint-formatter`),b(r))}catch{i=a.resolve(z,`../node_modules/eslint/lib`,`cli-engine`,`formatters`,`${t}.js`)}let s;try{s=(await import(o(i))).default}catch(t){throw ee.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 s!=`function`)throw TypeError(`Formatter must be a function, but got a ${typeof s}.`);let c=this;return{format(e,t){let n=null;return e.sort(ae),s(e,{...t,cwd:r,get rulesMeta(){return n||=c.getRulesMetaForResults(e),n}})}}}async calculateConfigForFile(e){if(!g(e))throw Error(`'filePath' must be a non-empty string`);let t=U.get(this).options,n=a.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=U.get(this).options,n=a.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 ge(){return process.env.ESLINT_USE_FLAT_CONFIG!==`false`}t.exports={ESLint:he,shouldUseFlatConfig:ge,locateConfigFileToUse:oe,calculateWorkerCount:K}})),Dl=d(((e,t)=>{t.exports={configFile:null,baseConfig:!1,rulePaths:[],useEslintrc:!0,envs:[],globals:[],extensions:null,ignore:!0,ignorePath:void 0,cache:!1,cacheLocation:``,cacheFile:`.eslintcache`,cacheStrategy:`metadata`,fix:!1,allowInlineConfig:!0,reportUnusedDisableDirectives:void 0,globInputPaths:!0}})),Ol=d(((e,t)=>{let n=h(`path`),r=h(`module`),i=h(`fs`),a=(e,t,a)=>{if(typeof e!=`string`)throw TypeError(`Expected \`fromDir\` to be of type \`string\`, got \`${typeof e}\``);if(typeof t!=`string`)throw TypeError(`Expected \`moduleId\` to be of type \`string\`, got \`${typeof t}\``);try{e=i.realpathSync(e)}catch(t){if(t.code===`ENOENT`)e=n.resolve(e);else if(a)return null;else throw t}let o=n.join(e,`noop.js`),s=()=>r._resolveFilename(t,{id:o,filename:o,paths:r._nodeModulePaths(e)});if(a)try{return s()}catch{return null}return s()};t.exports=(e,t)=>a(e,t),t.exports.silent=(e,t)=>a(e,t,!0)})),kl=d(((e,t)=>{let n=()=>{let e=Error.prepareStackTrace;Error.prepareStackTrace=(e,t)=>t;let t=Error().stack.slice(1);return Error.prepareStackTrace=e,t};t.exports=n,t.exports.default=n})),Al=d(((e,t)=>{let n=kl();t.exports=e=>{let t=n();if(!e)return t[2].getFileName();let r=!1;t.shift();for(let n of t){let t=n.getFileName();if(typeof t==`string`){if(t===e){r=!0;continue}if(t!==`module.js`&&r&&t!==e)return t}}}})),jl=d(((e,t)=>{V();let n=h(`path`),r=Ol(),i=Al();t.exports=e=>{if(typeof e!=`string`)throw TypeError(`Expected a string`);let t=i(B),a=r(t?n.dirname(t):z,e),o=h.cache[a];if(o&&o.parent){let e=o.parent.children.length;for(;e--;)o.parent.children[e].id===a&&o.parent.children.splice(e,1)}delete h.cache[a];let s=h.cache[t];return s===void 0||s.require===void 0?h(a):s.require(a)}})),Ml=d(((e,t)=>{let n=Symbol(`singleComment`),r=Symbol(`multiComment`),i=()=>``,a=(e,t,n)=>e.slice(t,n).replace(/\S/g,` `),o=(e,t)=>{let n=t-1,r=0;for(;e[n]===`\\`;)--n,r+=1;return!!(r%2)};t.exports=(e,t={})=>{if(typeof e!=`string`)throw TypeError(`Expected argument \`jsonString\` to be a \`string\`, got \`${typeof e}\``);let s=t.whitespace===!1?i:a,c=!1,l=!1,u=0,d=``;for(let t=0;t<e.length;t++){let i=e[t],a=e[t+1];if(!l&&i===`"`&&(o(e,t)||(c=!c)),!c){if(!l&&i+a===`//`)d+=e.slice(u,t),u=t,l=n,t++;else if(l===n&&i+a===`\r
|
|
104
|
+
`){t++,l=!1,d+=s(e,u,t),u=t;continue}else if(l===n&&i===`
|
|
105
|
+
`)l=!1,d+=s(e,u,t),u=t;else if(!l&&i+a===`/*`){d+=e.slice(u,t),u=t,l=r,t++;continue}else if(l===r&&i+a===`*/`){t++,l=!1,d+=s(e,u,t+1),u=t+1;continue}}}return d+(l?s(e.slice(u)):e.slice(u))}})),Nl=d((e=>{V(),Object.defineProperty(e,`__esModule`,{value:!0});var t=S(),n=h(`node:fs`),r=jl(),i=h(`node:module`),a=h(`node:path`),o=Ml(),s=h(`node:assert`),c=Pr(),l=h(`node:util`),u=Uo(),d=Ls(),f=zs(),p=h(`node:os`);function m(e){return e&&typeof e==`object`&&`default`in e?e:{default:e}}var g=m(t),_=m(n),v=m(r),y=m(i),b=m(a),x=m(o),C=m(s),w=m(c),T=m(l),E=m(u),D=m(d),O=m(f),k=m(p);let A=g.default(`eslintrc:ignore-pattern`);function j(e){let t=e[0];for(let n=1;n<e.length;++n){let r=t,i=e[n];t=r.length<i.length?r:i;for(let e=0,n=0;e<r.length&&e<i.length;++e){if(r[e]!==i[e]){t=r.slice(0,n);break}r[e]===b.default.sep&&(n=e)}}let n=t||b.default.sep;return n&&n.endsWith(`:`)&&process.platform===`win32`&&(n+=b.default.sep),n}function M(e,t){let n=b.default.relative(e,t);return b.default.sep===`/`?n:n.split(b.default.sep).join(`/`)}function N(e){return e.endsWith(b.default.sep)||process.platform===`win32`&&e.endsWith(`/`)?`/`:``}let P=Object.freeze([`/**/node_modules/*`]),F=Object.freeze([`.*`,`!.eslintrc.*`,`!../`]);var I=class e{static get DefaultPatterns(){return P}static createDefaultIgnore(t){return this.createIgnore([new e(P,t)])}static createIgnore(e){A(`Create with: %o`,e);let t=j(e.map(e=>e.basePath)),n=e.flatMap(e=>e.getPatternsRelativeTo(t)),r=w.default({allowRelativePaths:!0}).add([...F,...n]),i=w.default({allowRelativePaths:!0}).add(n);return A(` processed: %o`,{basePath:t,patterns:n}),Object.assign((e,n=!1)=>{C.default(b.default.isAbsolute(e),`'filePath' should be an absolute path.`);let a=M(t,e),o=a&&a+N(e),s=o!==``&&(n?i:r).ignores(o);return A(`Check`,{filePath:e,dot:n,relativePath:o,result:s}),s},{basePath:t,patterns:n})}constructor(e,t){C.default(b.default.isAbsolute(t),`'basePath' should be an absolute path.`),this.patterns=e,this.basePath=t,this.loose=!1}getPatternsRelativeTo(e){C.default(b.default.isAbsolute(e),`'newBasePath' should be an absolute path.`);let{basePath:t,loose:n,patterns:r}=this;if(e===t)return r;let i=`/${M(e,t)}`;return r.map(e=>{let t=e.startsWith(`!`),r=t?`!`:``,a=t?e.slice(1):e;return a.startsWith(`/`)||a.startsWith(`../`)?`${r}${i}${a}`:n?e:`${r}${i}/**/${a}`})}};function L(e,t){return e.length>=t.length&&t.every((t,n)=>t===e[n])}var R=class{constructor(){this.configNameOfNoInlineConfig=``,this.env={},this.globals={},this.ignores=void 0,this.noInlineConfig=void 0,this.parser=null,this.parserOptions={},this.plugins={},this.processor=null,this.reportUnusedDisableDirectives=void 0,this.rules={},this.settings={}}toCompatibleObjectAsConfigFileContent(){let{configNameOfNoInlineConfig:e,processor:t,ignores:n,...r}=this;return r.parser=r.parser&&r.parser.filePath,r.plugins=Object.keys(r.plugins).filter(Boolean).reverse(),r.ignorePatterns=n?n.patterns:[],L(r.ignorePatterns,I.DefaultPatterns)&&(r.ignorePatterns=r.ignorePatterns.slice(I.DefaultPatterns.length)),r}};let z=new class extends WeakMap{get(e){let t=super.get(e);return t||(t={cache:new Map,envMap:null,processorMap:null,ruleMap:null},super.set(e,t)),t}};function H(e,t){let n=[];for(let r=e.length-1;r>=0;--r){let i=e[r];(!i.criteria||t&&i.criteria.test(t))&&n.push(r)}return n}function U(e){return typeof e==`object`&&!!e}function ee(e,t){if(U(t))for(let n of Object.keys(t))n!==`__proto__`&&(U(e[n])?ee(e[n],t[n]):e[n]===void 0&&(U(t[n])?(e[n]=Array.isArray(t[n])?[]:{},ee(e[n],t[n])):t[n]!==void 0&&(e[n]=t[n])))}var W=class extends Error{constructor(e,t){super(`Plugin "${e}" was conflicted between ${t.map(e=>`"${e.importerName}"`).join(` and `)}.`),this.messageTemplate=`plugin-conflict`,this.messageData={pluginId:e,plugins:t}}};function te(e,t){if(U(t))for(let n of Object.keys(t)){if(n===`__proto__`)continue;let r=e[n],i=t[n];if(r===void 0){if(i.error)throw i.error;e[n]=i}else if(i.filePath!==r.filePath)throw new W(n,[{filePath:r.filePath,importerName:r.importerName},{filePath:i.filePath,importerName:i.importerName}])}}function ne(e,t){if(U(t))for(let n of Object.keys(t)){if(n===`__proto__`)continue;let r=e[n],i=t[n];r===void 0?Array.isArray(i)?e[n]=[...i]:e[n]=[i]:r.length===1&&Array.isArray(i)&&i.length>=2&&r.push(...i.slice(1))}}function re(e,t){let n=new R,r=[];for(let i of t){let t=e[i];if(!n.parser&&t.parser){if(t.parser.error)throw t.parser.error;n.parser=t.parser}!n.processor&&t.processor&&(n.processor=t.processor),n.noInlineConfig===void 0&&t.noInlineConfig!==void 0&&(n.noInlineConfig=t.noInlineConfig,n.configNameOfNoInlineConfig=t.name),n.reportUnusedDisableDirectives===void 0&&t.reportUnusedDisableDirectives!==void 0&&(n.reportUnusedDisableDirectives=t.reportUnusedDisableDirectives),t.ignorePattern&&r.push(t.ignorePattern),ee(n.env,t.env),ee(n.globals,t.globals),ee(n.parserOptions,t.parserOptions),ee(n.settings,t.settings),te(n.plugins,t.plugins),ne(n.rules,t.rules)}return r.length>0&&(n.ignores=I.createIgnore(r.reverse())),n}function ie(e,t,n){if(t){let r=e&&`${e}/`;for(let[e,i]of Object.entries(t))n.set(`${r}${e}`,i)}}function ae(e){Object.defineProperties(e,{clear:{configurable:!0,value:void 0},delete:{configurable:!0,value:void 0},set:{configurable:!0,value:void 0}})}function oe(e,t){let n=new Set;t.envMap=new Map,t.processorMap=new Map,t.ruleMap=new Map;for(let r of e)if(r.plugins)for(let[e,i]of Object.entries(r.plugins)){let r=i.definition;!r||n.has(e)||(n.add(e),ie(e,r.environments,t.envMap),ie(e,r.processors,t.processorMap),ie(e,r.rules,t.ruleMap))}ae(t.envMap),ae(t.processorMap),ae(t.ruleMap)}function G(e){let t=z.get(e);return t.ruleMap||oe(e,t),t}var se=class extends Array{get pluginEnvironments(){return G(this).envMap}get pluginProcessors(){return G(this).processorMap}get pluginRules(){return G(this).ruleMap}isRoot(){for(let e=this.length-1;e>=0;--e){let t=this[e].root;if(typeof t==`boolean`)return t}return!1}extractConfig(e){let{cache:t}=z.get(this),n=H(this,e),r=n.join(`,`);return t.has(r)||t.set(r,re(this,n)),t.get(r)}isAdditionalTargetPath(e){for(let{criteria:t,type:n}of this)if(n===`config`&&t&&!t.endsWithWildcard&&t.test(e))return!0;return!1}};function ce(e){let{cache:t}=z.get(e);return Array.from(t.values())}var le=class{constructor({definition:e=null,original:t=null,error:n=null,filePath:r=null,id:i,importerName:a,importerPath:o}){this.definition=e,this.original=t,this.error=n,this.filePath=r,this.id=i,this.importerName=a,this.importerPath=o}toJSON(){let e=this[T.default.inspect.custom]();return e.error instanceof Error&&(e.error={...e.error,message:e.error.message}),e}[T.default.inspect.custom](){let{definition:e,original:t,...n}=this;return n}};let{Minimatch:K}=E.default,ue={dot:!0,matchBase:!0};function de(e){return Array.isArray(e)?e.filter(Boolean):typeof e==`string`&&e?[e]:[]}function fe(e){return e.length===0?null:e.map(e=>/^\.[/\\]/u.test(e)?new K(e.slice(2),{...ue,matchBase:!1}):new K(e,ue))}function pe({includes:e,excludes:t}){return{includes:e&&e.map(e=>e.pattern),excludes:t&&t.map(e=>e.pattern)}}var me=class e{static create(t,n,r){let i=de(t),a=de(n),o=!1;if(i.length===0)return null;for(let e of i){if(b.default.isAbsolute(e)||e.includes(`..`))throw Error(`Invalid override pattern (expected relative path not containing '..'): ${e}`);e.endsWith(`*`)&&(o=!0)}for(let e of a)if(b.default.isAbsolute(e)||e.includes(`..`))throw Error(`Invalid override pattern (expected relative path not containing '..'): ${e}`);return new e([{includes:fe(i),excludes:fe(a)}],r,o)}static and(t,n){return n?t?(C.default.strictEqual(t.basePath,n.basePath),new e(t.patterns.concat(n.patterns),t.basePath,t.endsWithWildcard||n.endsWithWildcard)):new e(n.patterns,n.basePath,n.endsWithWildcard):t&&new e(t.patterns,t.basePath,t.endsWithWildcard)}constructor(e,t,n=!1){this.patterns=e,this.basePath=t,this.endsWithWildcard=n}test(e){if(typeof e!=`string`||!b.default.isAbsolute(e))throw Error(`'filePath' should be an absolute path, but got ${e}.`);let t=b.default.relative(this.basePath,e);return this.patterns.every(({includes:e,excludes:n})=>(!e||e.some(e=>e.match(t)))&&(!n||!n.some(e=>e.match(t))))}toJSON(){return this.patterns.length===1?{...pe(this.patterns[0]),basePath:this.basePath}:{AND:this.patterns.map(pe),basePath:this.basePath}}[T.default.inspect.custom](){return this.toJSON()}};let he=[`off`,`warn`,`error`],ge=he.reduce((e,t,n)=>(e[t]=n,e),{}),q=new Set([0,1,2,`off`,`warn`,`error`]);function _e(e){let t=Array.isArray(e)?e[0]:e;return t===0||t===1||t===2?t:typeof t==`string`&&ge[t.toLowerCase()]||0}function J(e){e.rules&&Object.keys(e.rules).forEach(t=>{let n=e.rules[t];typeof n==`number`?e.rules[t]=he[n]||he[0]:Array.isArray(n)&&typeof n[0]==`number`&&(n[0]=he[n[0]]||he[0])})}function ve(e){return _e(e)===2}function Y(e){let t=Array.isArray(e)?e[0]:e;return typeof t==`string`&&(t=t.toLowerCase()),q.has(t)}function ye(e){return Object.keys(e).every(t=>Y(e[t]))}function be(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')`)}}var xe={__proto__:null,getRuleSeverity:_e,normalizeToStrings:J,isErrorSeverity:ve,isValidSeverity:Y,isEverySeverityValid:ye,normalizeConfigGlobal:be};let Se={ESLINT_LEGACY_ECMAFEATURES:`The 'ecmaFeatures' config file property is deprecated and has no effect.`,ESLINT_PERSONAL_CONFIG_LOAD:`'~/.eslintrc.*' config files have been deprecated. Please use a config file per project or the '--config' option.`,ESLINT_PERSONAL_CONFIG_SUPPRESS:`'~/.eslintrc.*' config files have been deprecated. Please remove it or add 'root:true' to the config files in your projects in order to avoid loading '~/.eslintrc.*' accidentally.`},X=new Set;function Ce(e,t){let n=JSON.stringify({source:e,errorCode:t});if(X.has(n))return;X.add(n);let r=b.default.relative(process.cwd(),e),i=Se[t];process.emitWarning(`${i} (found in "${r}")`,`DeprecationWarning`,t)}let Z={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:{}};var we=(e={})=>{let t=new D.default({meta:!1,useDefaults:!0,validateSchema:!1,missingRefs:`ignore`,verbose:!0,schemaId:`auto`,...e});return t.addMetaSchema(Z),t._opts.defaultMeta=Z.id,t};function Te(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}function Ee(e,t){if(t===void 0)return e;if(!Te(e)||!Te(t))return t;let n={...e,...t};for(let r of Object.keys(t))Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=Ee(e[r],t[r]));return n}function De(e,t){return!e||!t?t||e||[]:[...e.map((e,n)=>Ee(e,t[n])),...t.slice(e.length)]}let Oe={$schema:{type:`string`},env:{type:`object`},extends:{$ref:`#/definitions/stringOrStrings`},globals:{type:`object`},overrides:{type:`array`,items:{$ref:`#/definitions/overrideConfig`},additionalItems:!1},parser:{type:[`string`,`null`]},parserOptions:{type:`object`},plugins:{type:`array`},processor:{type:`string`},rules:{type:`object`},settings:{type:`object`},noInlineConfig:{type:`boolean`},reportUnusedDisableDirectives:{type:`boolean`},ecmaFeatures:{type:`object`}},ke={definitions:{stringOrStrings:{oneOf:[{type:`string`},{type:`array`,items:{type:`string`},additionalItems:!1}]},stringOrStringsRequired:{oneOf:[{type:`string`},{type:`array`,items:{type:`string`},additionalItems:!1,minItems:1}]},objectConfig:{type:`object`,properties:{root:{type:`boolean`},ignorePatterns:{$ref:`#/definitions/stringOrStrings`},...Oe},additionalProperties:!1},overrideConfig:{type:`object`,properties:{excludedFiles:{$ref:`#/definitions/stringOrStrings`},files:{$ref:`#/definitions/stringOrStringsRequired`},...Oe},required:[`files`],additionalProperties:!1}},$ref:`#/definitions/objectConfig`};function Ae(e,t){let n={};for(let[r,i]of Object.entries(e))Object.hasOwn(t,r)||(n[r]=i);return n}let je=Ae(O.default.es2015,O.default.es5),Me={Atomics:!1,SharedArrayBuffer:!1},Ne={BigInt:!1,BigInt64Array:!1,BigUint64Array:!1,globalThis:!1},Pe={AggregateError:!1,FinalizationRegistry:!1,WeakRef:!1};var Fe=new Map(Object.entries({builtin:{globals:O.default.es5},es6:{globals:je,parserOptions:{ecmaVersion:6}},es2015:{globals:je,parserOptions:{ecmaVersion:6}},es2016:{globals:je,parserOptions:{ecmaVersion:7}},es2017:{globals:{...je,...Me},parserOptions:{ecmaVersion:8}},es2018:{globals:{...je,...Me},parserOptions:{ecmaVersion:9}},es2019:{globals:{...je,...Me},parserOptions:{ecmaVersion:10}},es2020:{globals:{...je,...Me,...Ne},parserOptions:{ecmaVersion:11}},es2021:{globals:{...je,...Me,...Ne,...Pe},parserOptions:{ecmaVersion:12}},es2022:{globals:{...je,...Me,...Ne,...Pe},parserOptions:{ecmaVersion:13}},es2023:{globals:{...je,...Me,...Ne,...Pe},parserOptions:{ecmaVersion:14}},es2024:{globals:{...je,...Me,...Ne,...Pe},parserOptions:{ecmaVersion:15}},browser:{globals:O.default.browser},node:{globals:O.default.node,parserOptions:{ecmaFeatures:{globalReturn:!0}}},"shared-node-browser":{globals:O.default[`shared-node-browser`]},worker:{globals:O.default.worker},serviceworker:{globals:O.default.serviceworker},commonjs:{globals:O.default.commonjs,parserOptions:{ecmaFeatures:{globalReturn:!0}}},amd:{globals:O.default.amd},mocha:{globals:O.default.mocha},jasmine:{globals:O.default.jasmine},jest:{globals:O.default.jest},phantomjs:{globals:O.default.phantomjs},jquery:{globals:O.default.jquery},qunit:{globals:O.default.qunit},prototypejs:{globals:O.default.prototypejs},shelljs:{globals:O.default.shelljs},meteor:{globals:O.default.meteor},mongo:{globals:O.default.mongo},protractor:{globals:O.default.protractor},applescript:{globals:O.default.applescript},nashorn:{globals:O.default.nashorn},atomtest:{globals:O.default.atomtest},embertest:{globals:O.default.embertest},webextensions:{globals:O.default.webextensions},greasemonkey:{globals:O.default.greasemonkey}}));let Ie=we(),Le=new WeakMap,Q=Function.prototype,Re,ze={error:2,warn:1,off:0},Be=new WeakSet,Ve=Object.freeze({type:`array`,minItems:0,maxItems:0});var He=class{constructor({builtInRules:e=new Map}={}){this.builtInRules=e}getRuleOptionsSchema(e){if(!e)return null;if(!e.meta)return{...Ve};let t=e.meta.schema;if(t===void 0)return{...Ve};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}:{...Ve}:t}validateRuleSeverity(e){let t=Array.isArray(e)?e[0]:e,n=typeof t==`string`?ze[t.toLowerCase()]:t;if(n===0||n===1||n===2)return n;throw Error(`\tSeverity should be one of the following: 0 = off, 1 = warn, 2 = error (you passed '${T.default.inspect(t).replace(/'/gu,`"`).replace(/\n/gu,``)}').\n`)}validateRuleSchema(e,t){if(!Le.has(e))try{let t=this.getRuleOptionsSchema(e);t&&Le.set(e,Ie.compile(t))}catch(e){let t=Error(e.message,{cause:e});throw t.code=`ESLINT_INVALID_RULE_OPTIONS_SCHEMA`,t}let n=Le.get(e);if(n&&(n(De(e.meta?.defaultOptions,t)),n.errors))throw Error(n.errors.map(e=>`\tValue ${JSON.stringify(e.data)} ${e.message}.\n`).join(``))}validateRuleOptions(e,t,n,r=null){try{this.validateRuleSeverity(n)!==0&&this.validateRuleSchema(e,Array.isArray(n)?n.slice(1):[])}catch(e){let n=e.code===`ESLINT_INVALID_RULE_OPTIONS_SCHEMA`?`Error while processing options validation schema of rule '${t}': ${e.message}`:`Configuration for rule "${t}" is invalid:\n${e.message}`;typeof r==`string`&&(n=`${r}:\n\t${n}`);let i=Error(n,{cause:e});throw e.code&&(i.code=e.code),i}}validateEnvironment(e,t,n=Q){e&&Object.keys(e).forEach(e=>{if(!(n(e)||Fe.get(e))){let n=`${t}:\n\tEnvironment key "${e}" is unknown\n`;throw Error(n)}})}validateRules(e,t,n=Q){e&&Object.keys(e).forEach(r=>{let i=n(r)||this.builtInRules.get(r)||null;this.validateRuleOptions(i,r,e[r],t)})}validateGlobals(e,t=null){e&&Object.entries(e).forEach(([e,n])=>{try{be(n)}catch(n){throw Error(`ESLint configuration of global '${e}' in ${t} is invalid:\n${n.message}`)}})}validateProcessor(e,t,n){if(e&&!n(e))throw Error(`ESLint configuration of processor in '${t}' is invalid: '${e}' was not found.`)}formatErrors(e){return e.map(e=>e.keyword===`additionalProperties`?`Unexpected top-level property "${e.dataPath.length?`${e.dataPath.slice(1)}.${e.params.additionalProperty}`:e.params.additionalProperty}"`:e.keyword===`type`?`Property "${e.dataPath.slice(1)}" is the wrong type (expected ${Array.isArray(e.schema)?e.schema.join(`/`):e.schema} but got \`${JSON.stringify(e.data)}\`)`:`"${e.dataPath[0]===`.`?e.dataPath.slice(1):e.dataPath}" ${e.message}. Value: ${JSON.stringify(e.data)}`).map(e=>`\t- ${e}.\n`).join(``)}validateConfigSchema(e,t=null){if(Re||=Ie.compile(ke),!Re(e))throw Error(`ESLint configuration in ${t} is invalid:\n${this.formatErrors(Re.errors)}`);Object.hasOwn(e,`ecmaFeatures`)&&Ce(t,`ESLINT_LEGACY_ECMAFEATURES`)}validate(e,t,n,r){this.validateConfigSchema(e,t),this.validateRules(e.rules,t,n),this.validateEnvironment(e.env,t,r),this.validateGlobals(e.globals,t);for(let i of e.overrides||[])this.validateRules(i.rules,t,n),this.validateEnvironment(i.env,t,r),this.validateGlobals(e.globals,t)}validateConfigArray(e){let t=Map.prototype.get.bind(e.pluginEnvironments),n=Map.prototype.get.bind(e.pluginProcessors),r=Map.prototype.get.bind(e.pluginRules);for(let i of e)Be.has(i)||(Be.add(i),this.validateEnvironment(i.env,i.name,t),this.validateGlobals(i.globals,i.name),this.validateProcessor(i.processor,i.name,n),this.validateRules(i.rules,i.name,r))}};let Ue=/^@.*\//iu;function We(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 Ge(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 Ke(e){let t=e.match(Ue);return t?t[0]:``}var qe={__proto__:null,normalizePackageName:We,getShorthandName:Ge,getNamespaceFromTerm:Ke};let Je=y.default.createRequire;function Ye(e,t){try{return Je(t).resolve(e)}catch(n){throw typeof n==`object`&&n&&n.code===`MODULE_NOT_FOUND`&&!n.requireStack&&n.message.includes(e)&&(n.message+=`\nRequire stack:\n- ${t}`),n}}var Xe={__proto__:null,resolve:Ye};let Ze=i.createRequire(h(`url`).pathToFileURL(B).toString()),Qe=g.default(`eslintrc:config-array-factory`),$e=[`.eslintrc.js`,`.eslintrc.cjs`,`.eslintrc.yaml`,`.eslintrc.yml`,`.eslintrc.json`,`.eslintrc`,`package.json`],et=new WeakMap,tt=new WeakMap;function nt(e){return/^\.{1,2}[/\\]/u.test(e)||b.default.isAbsolute(e)}function rt(e){return _.default.readFileSync(e,`utf8`).replace(/^\ufeff/u,``)}function it(e){Qe(`Loading YAML config file: ${e}`);let t=Ze(`js-yaml`);try{return t.load(rt(e))||{}}catch(t){throw Qe(`Error reading YAML file: ${e}`),t.message=`Cannot read config file: ${e}\nError: ${t.message}`,t}}function $(e){Qe(`Loading JSON config file: ${e}`);try{return JSON.parse(x.default(rt(e)))}catch(t){throw Qe(`Error reading JSON file: ${e}`),t.message=`Cannot read config file: ${e}\nError: ${t.message}`,t.messageTemplate=`failed-to-read-json`,t.messageData={path:e,message:t.message},t}}function at(e){Qe(`Loading legacy config file: ${e}`);let t=Ze(`js-yaml`);try{return t.load(x.default(rt(e)))||{}}catch(t){throw Qe(`Error reading YAML file: %s
|
|
106
|
+
%o`,e,t),t.message=`Cannot read config file: ${e}\nError: ${t.message}`,t}}function ot(e){Qe(`Loading JS config file: ${e}`);try{return v.default(e)}catch(t){throw Qe(`Error reading JavaScript file: ${e}`),t.message=`Cannot read config file: ${e}\nError: ${t.message}`,t}}function st(e){Qe(`Loading package.json config file: ${e}`);try{let t=$(e);if(!Object.hasOwn(t,`eslintConfig`))throw Object.assign(Error(`package.json file doesn't have 'eslintConfig' field.`),{code:`ESLINT_CONFIG_FIELD_NOT_FOUND`});return t.eslintConfig}catch(t){throw Qe(`Error reading package.json file: ${e}`),t.message=`Cannot read config file: ${e}\nError: ${t.message}`,t}}function ct(e){Qe(`Loading .eslintignore file: ${e}`);try{return rt(e).split(/\r?\n/gu).filter(e=>e.trim()!==``&&!e.startsWith(`#`))}catch(t){throw Qe(`Error reading .eslintignore file: ${e}`),t.message=`Cannot read .eslintignore file: ${e}\nError: ${t.message}`,t}}function lt(e,t,n){return Object.assign(Error(`Failed to load config "${e}" to extend from.`),{messageTemplate:n,messageData:{configName:e,importerName:t}})}function ut(e){switch(b.default.extname(e)){case`.js`:case`.cjs`:return ot(e);case`.json`:return b.default.basename(e)===`package.json`?st(e):$(e);case`.yaml`:case`.yml`:return it(e);default:return at(e)}}function dt(e,t,n){if(Qe.enabled){let r=null;try{let{version:n=`unknown`}=Ze(Ye(`${e}/package.json`,t));r=`${e}@${n}`}catch(t){Qe(`package.json was not found:`,t.message),r=e}Qe(`Loaded: %s (%s)`,r,n)}}function ft({cwd:e,resolvePluginsRelativeTo:t},n,r,i,a){let o=i?b.default.resolve(e,i):``;return{filePath:o,matchBasePath:a&&b.default.resolve(e,a)||o&&b.default.dirname(o)||e,name:r||o&&b.default.relative(e,o)||``,pluginBasePath:t||o&&b.default.dirname(o)||e,type:n||`config`}}function pt(e){let t=tt.get(e);return t||(t={configs:e.configs||{},environments:e.environments||{},processors:e.processors||{},rules:e.rules||{}},tt.set(e,t),t)}var mt=class{constructor({additionalPluginPool:e=new Map,cwd:t=process.cwd(),resolvePluginsRelativeTo:n,builtInRules:r,resolver:i=Xe,eslintAllPath:a,getEslintAllConfig:o,eslintRecommendedPath:s,getEslintRecommendedConfig:c}={}){et.set(this,{additionalPluginPool:e,cwd:t,resolvePluginsRelativeTo:n&&b.default.resolve(t,n),builtInRules:r,resolver:i,eslintAllPath:a,getEslintAllConfig:o,eslintRecommendedPath:s,getEslintRecommendedConfig:c})}create(e,{basePath:t,filePath:n,name:r}={}){if(!e)return new se;let i=ft(et.get(this),`config`,r,n,t);return new se(...this._normalizeConfigData(e,i))}loadFile(e,{basePath:t,name:n}={}){let r=ft(et.get(this),`config`,n,e,t);return new se(...this._loadConfigData(r))}loadInDirectory(e,{basePath:t,name:n}={}){let r=et.get(this);for(let i of $e){let a=ft(r,`config`,n,b.default.join(e,i),t);if(_.default.existsSync(a.filePath)&&_.default.statSync(a.filePath).isFile()){let e;try{e=ut(a.filePath)}catch(e){if(!e||e.code!==`ESLINT_CONFIG_FIELD_NOT_FOUND`)throw e}if(e)return Qe(`Config file found: ${a.filePath}`),new se(...this._normalizeConfigData(e,a))}}return Qe(`Config file not found on ${e}`),new se}static getPathToConfigFileInDirectory(e){for(let t of $e){let n=b.default.join(e,t);if(_.default.existsSync(n))if(t===`package.json`)try{return st(n),n}catch{}else return n}return null}loadESLintIgnore(e){let t=et.get(this),n=ft(t,`ignore`,void 0,e,t.cwd),r=ct(n.filePath);return new se(...this._normalizeESLintIgnoreData(r,n))}loadDefaultESLintIgnore(){let e=et.get(this),t=b.default.resolve(e.cwd,`.eslintignore`),n=b.default.resolve(e.cwd,`package.json`);if(_.default.existsSync(t))return this.loadESLintIgnore(t);if(_.default.existsSync(n)){let t=$(n);if(Object.hasOwn(t,`eslintIgnore`)){if(!Array.isArray(t.eslintIgnore))throw Error(`Package.json eslintIgnore property requires an array of paths`);let r=ft(e,`ignore`,`eslintIgnore in package.json`,n,e.cwd);return new se(...this._normalizeESLintIgnoreData(t.eslintIgnore,r))}}return new se}_loadConfigData(e){return this._normalizeConfigData(ut(e.filePath),e)}*_normalizeESLintIgnoreData(e,t){let n=this._normalizeObjectConfigData({ignorePatterns:e},t);for(let e of n)e.ignorePattern&&(e.ignorePattern.loose=!0),yield e}_normalizeConfigData(e,t){return new He().validateConfigSchema(e,t.name||t.filePath),this._normalizeObjectConfigData(e,t)}*_normalizeObjectConfigData(e,t){let{files:n,excludedFiles:r,...i}=e,a=me.create(n,r,t.matchBasePath),o=this._normalizeObjectConfigDataBody(i,t);for(let e of o)e.criteria=me.and(a,e.criteria),e.criteria&&(e.root=void 0),yield e}*_normalizeObjectConfigDataBody({env:e,extends:t,globals:n,ignorePatterns:r,noInlineConfig:i,parser:a,parserOptions:o,plugins:s,processor:c,reportUnusedDisableDirectives:l,root:u,rules:d,settings:f,overrides:p=[]},m){let h=Array.isArray(t)?t:[t],g=r&&new I(Array.isArray(r)?r:[r],m.matchBasePath);for(let e of h.filter(Boolean))yield*this._loadExtends(e,m);let _=a&&this._loadParser(a,m),v=s&&this._loadPlugins(s,m);v&&(yield*this._takeFileExtensionProcessors(v,m)),yield{type:m.type,name:m.name,filePath:m.filePath,criteria:null,env:e,globals:n,ignorePattern:g,noInlineConfig:i,parser:_,parserOptions:o,plugins:v,processor:c,reportUnusedDisableDirectives:l,root:u,rules:d,settings:f};for(let e=0;e<p.length;++e)yield*this._normalizeObjectConfigData(p[e],{...m,name:`${m.name}#overrides[${e}]`})}_loadExtends(e,t){Qe(`Loading {extends:%j} relative to %s`,e,t.filePath);try{return e.startsWith(`eslint:`)?this._loadExtendedBuiltInConfig(e,t):e.startsWith(`plugin:`)?this._loadExtendedPluginConfig(e,t):this._loadExtendedShareableConfig(e,t)}catch(e){throw e.message+=`\nReferenced from: ${t.filePath||t.name}`,e}}_loadExtendedBuiltInConfig(e,t){let{eslintAllPath:n,getEslintAllConfig:r,eslintRecommendedPath:i,getEslintRecommendedConfig:a}=et.get(this);if(e===`eslint:recommended`){let n=`${t.name} » ${e}`;if(a){if(typeof a!=`function`)throw Error(`getEslintRecommendedConfig must be a function instead of '${a}'`);return this._normalizeConfigData(a(),{...t,name:n,filePath:``})}return this._loadConfigData({...t,name:n,filePath:i})}if(e===`eslint:all`){let i=`${t.name} » ${e}`;if(r){if(typeof r!=`function`)throw Error(`getEslintAllConfig must be a function instead of '${r}'`);return this._normalizeConfigData(r(),{...t,name:i,filePath:``})}return this._loadConfigData({...t,name:i,filePath:n})}throw lt(e,t.name,`extend-config-missing`)}_loadExtendedPluginConfig(e,t){let n=e.lastIndexOf(`/`);if(n===-1)throw lt(e,t.filePath,`plugin-invalid`);let r=e.slice(7,n),i=e.slice(n+1);if(nt(r))throw Error(`'extends' cannot use a file path for plugins.`);let a=this._loadPlugin(r,t),o=a.definition&&a.definition.configs[i];if(o)return this._normalizeConfigData(o,{...t,filePath:a.filePath||t.filePath,name:`${t.name} » plugin:${a.id}/${i}`});throw a.error||lt(e,t.filePath,`extend-config-missing`)}_loadExtendedShareableConfig(e,t){let{cwd:n,resolver:r}=et.get(this),i=t.filePath||b.default.join(n,`__placeholder__.js`),a;a=nt(e)?e:e.startsWith(`.`)?`./${e}`:We(e,`eslint-config`);let o;try{o=r.resolve(a,i)}catch(n){throw n&&n.code===`MODULE_NOT_FOUND`?lt(e,t.filePath,`extend-config-missing`):n}return dt(a,i,o),this._loadConfigData({...t,filePath:o,name:`${t.name} » ${a}`})}_loadPlugins(e,t){return e.reduce((e,n)=>{if(nt(n))throw Error(`Plugins array cannot includes file paths.`);let r=this._loadPlugin(n,t);return e[r.id]=r,e},{})}_loadParser(e,t){Qe(`Loading parser %j from %s`,e,t.filePath);let{cwd:n,resolver:r}=et.get(this),i=t.filePath||b.default.join(n,`__placeholder__.js`);try{let n=r.resolve(e,i);return dt(e,i,n),new le({definition:Ze(n),filePath:n,id:e,importerName:t.name,importerPath:t.filePath})}catch(n){return e===`espree`?(Qe(`Fallback espree.`),new le({definition:Ze(`espree`),filePath:Ze.resolve(`espree`),id:e,importerName:t.name,importerPath:t.filePath})):(Qe(`Failed to load parser '%s' declared in '%s'.`,e,t.name),n.message=`Failed to load parser '${e}' declared in '${t.name}': ${n.message}`,new le({error:n,id:e,importerName:t.name,importerPath:t.filePath}))}}_loadPlugin(e,t){Qe(`Loading plugin %j from %s`,e,t.filePath);let{additionalPluginPool:n,resolver:r}=et.get(this),i=We(e,`eslint-plugin`),a=Ge(i,`eslint-plugin`),o=b.default.join(t.pluginBasePath,`__placeholder__.js`);if(e.match(/\s+/u))return new le({error:Object.assign(Error(`Whitespace found in plugin name '${e}'`),{messageTemplate:`whitespace-found`,messageData:{pluginName:i}}),id:a,importerName:t.name,importerPath:t.filePath});let s=n.get(i)||n.get(a);if(s)return new le({definition:pt(s),original:s,filePath:``,id:a,importerName:t.name,importerPath:t.filePath});let c,l;try{c=r.resolve(i,o)}catch(e){l=e,l&&l.code===`MODULE_NOT_FOUND`&&(l.messageTemplate=`plugin-missing`,l.messageData={pluginName:i,resolvePluginsRelativeTo:t.pluginBasePath,importerName:t.name})}if(c)try{dt(i,o,c);let e=Date.now(),n=Ze(c);return Qe(`Plugin ${c} loaded in: ${Date.now()-e}ms`),new le({definition:pt(n),original:n,filePath:c,id:a,importerName:t.name,importerPath:t.filePath})}catch(e){l=e}return Qe(`Failed to load plugin '%s' declared in '%s'.`,e,t.name),l.message=`Failed to load plugin '${e}' declared in '${t.name}': ${l.message}`,new le({error:l,id:a,importerName:t.name,importerPath:t.filePath})}*_takeFileExtensionProcessors(e,t){for(let n of Object.keys(e)){let r=e[n]&&e[n].definition&&e[n].definition.processors;if(r)for(let e of Object.keys(r))e.startsWith(`.`)&&(yield*this._normalizeObjectConfigData({files:[`*${e}`],processor:`${n}/${e}`},{...t,type:`implicit-processor`,name:`${t.name}#processors["${n}/${e}"]`}))}}};let ht=g.default(`eslintrc:cascading-config-array-factory`),gt=new WeakMap;function _t({configArrayFactory:e,baseConfigData:t,rulePaths:n,cwd:r,loadRules:i}){let a=e.create(t,{name:`BaseConfig`});return a.unshift(e.create({ignorePatterns:I.DefaultPatterns},{name:`DefaultIgnorePattern`})[0]),n&&n.length>0&&a.push({type:`config`,name:`--rulesdir`,filePath:``,plugins:{"":new le({definition:{rules:n.reduce((e,t)=>Object.assign(e,i(t,r)),{})},filePath:``,id:``,importerName:`--rulesdir`,importerPath:``})}}),a}function vt({cliConfigData:e,configArrayFactory:t,cwd:n,ignorePath:r,specificConfigPath:i}){let a=t.create(e,{name:`CLIOptions`});return a.unshift(...r?t.loadESLintIgnore(r):t.loadDefaultESLintIgnore()),i&&a.unshift(...t.loadFile(i,{name:`--config`,basePath:n})),a}var yt=class extends Error{constructor(e){super(`No ESLint configuration found in ${e}.`),this.messageTemplate=`no-config-found`,this.messageData={directoryPath:e}}},bt=class{constructor({additionalPluginPool:e=new Map,baseConfig:t=null,cliConfig:n=null,cwd:r=process.cwd(),ignorePath:i,resolvePluginsRelativeTo:a,rulePaths:o=[],specificConfigPath:s=null,useEslintrc:c=!0,builtInRules:l=new Map,loadRules:u,resolver:d,eslintRecommendedPath:f,getEslintRecommendedConfig:p,eslintAllPath:m,getEslintAllConfig:h}={}){let g=new mt({additionalPluginPool:e,cwd:r,resolvePluginsRelativeTo:a,builtInRules:l,resolver:d,eslintRecommendedPath:f,getEslintRecommendedConfig:p,eslintAllPath:m,getEslintAllConfig:h});gt.set(this,{baseConfigArray:_t({baseConfigData:t,configArrayFactory:g,cwd:r,rulePaths:o,loadRules:u}),baseConfigData:t,cliConfigArray:vt({cliConfigData:n,configArrayFactory:g,cwd:r,ignorePath:i,specificConfigPath:s}),cliConfigData:n,configArrayFactory:g,configCache:new Map,cwd:r,finalizeCache:new WeakMap,ignorePath:i,rulePaths:o,specificConfigPath:s,useEslintrc:c,builtInRules:l,loadRules:u})}get cwd(){let{cwd:e}=gt.get(this);return e}getConfigArrayForFile(e,{ignoreNotFoundError:t=!1}={}){let{baseConfigArray:n,cliConfigArray:r,cwd:i}=gt.get(this);if(!e)return new se(...n,...r);let a=b.default.dirname(b.default.resolve(i,e));return ht(`Load config files for ${a}.`),this._finalizeConfigArray(this._loadConfigInAncestors(a),a,t)}setOverrideConfig(e){let t=gt.get(this);t.cliConfigData=e}clearCache(){let e=gt.get(this);e.baseConfigArray=_t(e),e.cliConfigArray=vt(e),e.configCache.clear()}_loadConfigInAncestors(e,t=!1){let{baseConfigArray:n,configArrayFactory:r,configCache:i,cwd:a,useEslintrc:o}=gt.get(this);if(!o)return n;let s=i.get(e);if(s)return ht(`Cache hit: ${e}.`),s;ht(`No cache found: ${e}.`);let c=k.default.homedir();if(e===c&&a!==c){if(ht(`Stop traversing because of considered root.`),t){let t=mt.getPathToConfigFileInDirectory(e);t&&Ce(t,`ESLINT_PERSONAL_CONFIG_SUPPRESS`)}return this._cacheConfig(e,n)}try{s=r.loadInDirectory(e)}catch(t){if(t.code===`EACCES`)return ht(`Stop traversing because of 'EACCES' error.`),this._cacheConfig(e,n);throw t}if(s.length>0&&s.isRoot())return ht(`Stop traversing because of 'root:true'.`),s.unshift(...n),this._cacheConfig(e,s);let l=b.default.dirname(e),u=l&&l!==e?this._loadConfigInAncestors(l,t||s.length>0):n;return s.length>0?s.unshift(...u):s=u,this._cacheConfig(e,s)}_cacheConfig(e,t){let{configCache:n}=gt.get(this);return Object.freeze(t),n.set(e,t),t}_finalizeConfigArray(e,t,n){let{cliConfigArray:r,configArrayFactory:i,finalizeCache:a,useEslintrc:o,builtInRules:s}=gt.get(this),c=a.get(e);if(!c){if(c=e,o&&e.every(e=>!e.filePath)&&r.every(e=>!e.filePath)){let e=k.default.homedir();ht(`Loading the config file of the home directory:`,e);let n=i.loadInDirectory(e,{name:`PersonalConfig`});n.length>0&&!t.startsWith(e)&&Ce(n.at(-1).filePath,`ESLINT_PERSONAL_CONFIG_LOAD`),c=c.concat(n)}r.length>0&&(c=c.concat(r)),new He({builtInRules:s}).validateConfigArray(c),Object.freeze(c),a.set(e,c),ht(`Configuration was determined: %o on %s`,c,t)}if(!n&&o&&c.length<=1)throw new yt(t);return c}};let xt=g.default(`eslintrc:flat-compat`),St=Symbol(`cafactory`);function Ct(e,{resolveConfigRelativeTo:t,resolvePluginsRelativeTo:n,pluginEnvironments:r,pluginProcessors:i}){let a={},o=[],s={},c={},l=[`settings`,`rules`,`processor`],u=[`globals`,`parser`,`parserOptions`],d=[`noInlineConfig`,`reportUnusedDisableDirectives`];for(let t of l)t in e&&e[t]!==void 0&&(a[t]=e[t]);for(let n of u)if(n in e&&e[n]!==void 0){if(a.languageOptions=s,n===`parser`){if(xt(`Resolving parser '${s[n]}' relative to ${t}`),e[n].error)throw e[n].error;s[n]=e[n].definition;continue}e[n]&&typeof e[n]==`object`?s[n]={...e[n]}:s[n]=e[n]}for(let t of d)t in e&&e[t]!==void 0&&(a.linterOptions=c,c[t]=e[t]);if(s.parserOptions&&(`ecmaVersion`in s.parserOptions&&(s.ecmaVersion=s.parserOptions.ecmaVersion,delete s.parserOptions.ecmaVersion),`sourceType`in s.parserOptions&&(s.sourceType=s.parserOptions.sourceType,delete s.parserOptions.sourceType),Object.keys(s.parserOptions).length===0&&delete s.parserOptions),e.criteria&&(a.files=[t=>e.criteria.test(t)]),e.plugins&&typeof e.plugins==`object`){xt(`Translating plugins: ${e.plugins}`),a.plugins={};for(let t of Object.keys(e.plugins)){xt(`Translating plugin: ${t}`),xt(`Resolving plugin '${t} relative to ${n}`);let{original:r,error:s}=e.plugins[t];if(s)throw s;if(a.plugins[t]=r,r.processors)for(let e of Object.keys(r.processors))e.startsWith(`.`)&&(xt(`Assigning processor: ${t}/${e}`),o.unshift({files:[`**/*${e}`],processor:i.get(`${t}/${e}`)}))}}if(e.env&&typeof e.env==`object`)for(let i of Object.keys(e.env))e.env[i]&&(xt(`Translating environment: ${i}`),Fe.has(i)?o.unshift(...Ct({criteria:e.criteria,...Fe.get(i)},{resolveConfigRelativeTo:t,resolvePluginsRelativeTo:n})):r.has(i)&&o.push(...Ct({criteria:e.criteria,...r.get(i)},{resolveConfigRelativeTo:t,resolvePluginsRelativeTo:n})));return Object.keys(a).length>0&&o.push(a),o}var wt=class{constructor({baseDirectory:e=process.cwd(),resolvePluginsRelativeTo:t=e,recommendedConfig:n,allConfig:r}={}){this.baseDirectory=e,this.resolvePluginsRelativeTo=t,this[St]=new mt({cwd:e,resolvePluginsRelativeTo:t,getEslintAllConfig(){if(!r)throw TypeError(`Missing parameter 'allConfig' in FlatCompat constructor.`);let e={...r};return delete e.name,e},getEslintRecommendedConfig(){if(!n)throw TypeError(`Missing parameter 'recommendedConfig' in FlatCompat constructor.`);let e={...n};return delete e.name,e}})}config(e){let t=this[St].create(e,{basePath:this.baseDirectory}),n=[],r=!1;return t.forEach(e=>{e.type===`config`&&(r||=e.ignorePattern,n.push(...Ct(e,{resolveConfigRelativeTo:b.default.join(this.baseDirectory,`__placeholder.js`),resolvePluginsRelativeTo:b.default.join(this.resolvePluginsRelativeTo,`__placeholder.js`),pluginEnvironments:t.pluginEnvironments,pluginProcessors:t.pluginProcessors})))}),r&&n.unshift({ignores:[e=>{let n=t.extractConfig(e);return!!n.ignores&&n.ignores(e)}]}),n}env(e){return this.config({env:e})}extends(...e){return this.config({extends:e})}plugins(...e){return this.config({plugins:e})}};let Tt={ConfigArray:se,createConfigArrayFactoryContext:ft,CascadingConfigArrayFactory:bt,ConfigArrayFactory:mt,ConfigDependency:le,ExtractedConfig:R,IgnorePattern:I,OverrideTester:me,getUsedExtractedConfigs:ce,environments:Fe,loadConfigFile:ut,ConfigOps:xe,ConfigValidator:He,ModuleResolver:Xe,naming:qe};e.FlatCompat=wt,e.Legacy=Tt})),Pl=d(((e,t)=>{t.exports={name:`@eslint/js`,version:`9.39.2`,description:`ESLint JavaScript language implementation`,funding:`https://eslint.org/donate`,main:`./src/index.js`,types:`./types/index.d.ts`,scripts:{"test:types":`tsc -p tests/types/tsconfig.json`},files:[`LICENSE`,`README.md`,`src`,`types`],publishConfig:{access:`public`},repository:{type:`git`,url:`https://github.com/eslint/eslint.git`,directory:`packages/js`},homepage:`https://eslint.org`,bugs:`https://github.com/eslint/eslint/issues/`,keywords:[`javascript`,`eslint-plugin`,`eslint`],license:`MIT`,engines:{node:`^18.18.0 || ^20.9.0 || >=21.1.0`}}})),Fl=d(((e,t)=>{t.exports=Object.freeze({rules:Object.freeze({"accessor-pairs":`error`,"array-callback-return":`error`,"arrow-body-style":`error`,"block-scoped-var":`error`,camelcase:`error`,"capitalized-comments":`error`,"class-methods-use-this":`error`,complexity:`error`,"consistent-return":`error`,"consistent-this":`error`,"constructor-super":`error`,curly:`error`,"default-case":`error`,"default-case-last":`error`,"default-param-last":`error`,"dot-notation":`error`,eqeqeq:`error`,"for-direction":`error`,"func-name-matching":`error`,"func-names":`error`,"func-style":`error`,"getter-return":`error`,"grouped-accessor-pairs":`error`,"guard-for-in":`error`,"id-denylist":`error`,"id-length":`error`,"id-match":`error`,"init-declarations":`error`,"logical-assignment-operators":`error`,"max-classes-per-file":`error`,"max-depth":`error`,"max-lines":`error`,"max-lines-per-function":`error`,"max-nested-callbacks":`error`,"max-params":`error`,"max-statements":`error`,"new-cap":`error`,"no-alert":`error`,"no-array-constructor":`error`,"no-async-promise-executor":`error`,"no-await-in-loop":`error`,"no-bitwise":`error`,"no-caller":`error`,"no-case-declarations":`error`,"no-class-assign":`error`,"no-compare-neg-zero":`error`,"no-cond-assign":`error`,"no-console":`error`,"no-const-assign":`error`,"no-constant-binary-expression":`error`,"no-constant-condition":`error`,"no-constructor-return":`error`,"no-continue":`error`,"no-control-regex":`error`,"no-debugger":`error`,"no-delete-var":`error`,"no-div-regex":`error`,"no-dupe-args":`error`,"no-dupe-class-members":`error`,"no-dupe-else-if":`error`,"no-dupe-keys":`error`,"no-duplicate-case":`error`,"no-duplicate-imports":`error`,"no-else-return":`error`,"no-empty":`error`,"no-empty-character-class":`error`,"no-empty-function":`error`,"no-empty-pattern":`error`,"no-empty-static-block":`error`,"no-eq-null":`error`,"no-eval":`error`,"no-ex-assign":`error`,"no-extend-native":`error`,"no-extra-bind":`error`,"no-extra-boolean-cast":`error`,"no-extra-label":`error`,"no-fallthrough":`error`,"no-func-assign":`error`,"no-global-assign":`error`,"no-implicit-coercion":`error`,"no-implicit-globals":`error`,"no-implied-eval":`error`,"no-import-assign":`error`,"no-inline-comments":`error`,"no-inner-declarations":`error`,"no-invalid-regexp":`error`,"no-invalid-this":`error`,"no-irregular-whitespace":`error`,"no-iterator":`error`,"no-label-var":`error`,"no-labels":`error`,"no-lone-blocks":`error`,"no-lonely-if":`error`,"no-loop-func":`error`,"no-loss-of-precision":`error`,"no-magic-numbers":`error`,"no-misleading-character-class":`error`,"no-multi-assign":`error`,"no-multi-str":`error`,"no-negated-condition":`error`,"no-nested-ternary":`error`,"no-new":`error`,"no-new-func":`error`,"no-new-native-nonconstructor":`error`,"no-new-wrappers":`error`,"no-nonoctal-decimal-escape":`error`,"no-obj-calls":`error`,"no-object-constructor":`error`,"no-octal":`error`,"no-octal-escape":`error`,"no-param-reassign":`error`,"no-plusplus":`error`,"no-promise-executor-return":`error`,"no-proto":`error`,"no-prototype-builtins":`error`,"no-redeclare":`error`,"no-regex-spaces":`error`,"no-restricted-exports":`error`,"no-restricted-globals":`error`,"no-restricted-imports":`error`,"no-restricted-properties":`error`,"no-restricted-syntax":`error`,"no-return-assign":`error`,"no-script-url":`error`,"no-self-assign":`error`,"no-self-compare":`error`,"no-sequences":`error`,"no-setter-return":`error`,"no-shadow":`error`,"no-shadow-restricted-names":`error`,"no-sparse-arrays":`error`,"no-template-curly-in-string":`error`,"no-ternary":`error`,"no-this-before-super":`error`,"no-throw-literal":`error`,"no-unassigned-vars":`error`,"no-undef":`error`,"no-undef-init":`error`,"no-undefined":`error`,"no-underscore-dangle":`error`,"no-unexpected-multiline":`error`,"no-unmodified-loop-condition":`error`,"no-unneeded-ternary":`error`,"no-unreachable":`error`,"no-unreachable-loop":`error`,"no-unsafe-finally":`error`,"no-unsafe-negation":`error`,"no-unsafe-optional-chaining":`error`,"no-unused-expressions":`error`,"no-unused-labels":`error`,"no-unused-private-class-members":`error`,"no-unused-vars":`error`,"no-use-before-define":`error`,"no-useless-assignment":`error`,"no-useless-backreference":`error`,"no-useless-call":`error`,"no-useless-catch":`error`,"no-useless-computed-key":`error`,"no-useless-concat":`error`,"no-useless-constructor":`error`,"no-useless-escape":`error`,"no-useless-rename":`error`,"no-useless-return":`error`,"no-var":`error`,"no-void":`error`,"no-warning-comments":`error`,"no-with":`error`,"object-shorthand":`error`,"one-var":`error`,"operator-assignment":`error`,"prefer-arrow-callback":`error`,"prefer-const":`error`,"prefer-destructuring":`error`,"prefer-exponentiation-operator":`error`,"prefer-named-capture-group":`error`,"prefer-numeric-literals":`error`,"prefer-object-has-own":`error`,"prefer-object-spread":`error`,"prefer-promise-reject-errors":`error`,"prefer-regex-literals":`error`,"prefer-rest-params":`error`,"prefer-spread":`error`,"prefer-template":`error`,"preserve-caught-error":`error`,radix:`error`,"require-atomic-updates":`error`,"require-await":`error`,"require-unicode-regexp":`error`,"require-yield":`error`,"sort-imports":`error`,"sort-keys":`error`,"sort-vars":`error`,strict:`error`,"symbol-description":`error`,"unicode-bom":`error`,"use-isnan":`error`,"valid-typeof":`error`,"vars-on-top":`error`,yoda:`error`})})})),Il=d(((e,t)=>{t.exports=Object.freeze({rules:Object.freeze({"constructor-super":`error`,"for-direction":`error`,"getter-return":`error`,"no-async-promise-executor":`error`,"no-case-declarations":`error`,"no-class-assign":`error`,"no-compare-neg-zero":`error`,"no-cond-assign":`error`,"no-const-assign":`error`,"no-constant-binary-expression":`error`,"no-constant-condition":`error`,"no-control-regex":`error`,"no-debugger":`error`,"no-delete-var":`error`,"no-dupe-args":`error`,"no-dupe-class-members":`error`,"no-dupe-else-if":`error`,"no-dupe-keys":`error`,"no-duplicate-case":`error`,"no-empty":`error`,"no-empty-character-class":`error`,"no-empty-pattern":`error`,"no-empty-static-block":`error`,"no-ex-assign":`error`,"no-extra-boolean-cast":`error`,"no-fallthrough":`error`,"no-func-assign":`error`,"no-global-assign":`error`,"no-import-assign":`error`,"no-invalid-regexp":`error`,"no-irregular-whitespace":`error`,"no-loss-of-precision":`error`,"no-misleading-character-class":`error`,"no-new-native-nonconstructor":`error`,"no-nonoctal-decimal-escape":`error`,"no-obj-calls":`error`,"no-octal":`error`,"no-prototype-builtins":`error`,"no-redeclare":`error`,"no-regex-spaces":`error`,"no-self-assign":`error`,"no-setter-return":`error`,"no-shadow-restricted-names":`error`,"no-sparse-arrays":`error`,"no-this-before-super":`error`,"no-undef":`error`,"no-unexpected-multiline":`error`,"no-unreachable":`error`,"no-unsafe-finally":`error`,"no-unsafe-negation":`error`,"no-unsafe-optional-chaining":`error`,"no-unused-labels":`error`,"no-unused-private-class-members":`error`,"no-unused-vars":`error`,"no-useless-backreference":`error`,"no-useless-catch":`error`,"no-useless-escape":`error`,"no-with":`error`,"require-yield":`error`,"use-isnan":`error`,"valid-typeof":`error`})})})),Ll=d(((e,t)=>{let{name:n,version:r}=Pl();t.exports={meta:{name:n,version:r},configs:{all:Fl(),recommended:Il()}}})),Rl=d(((e,t)=>{let n=h(`node:fs`),r=h(`node:path`),i=Wo(),a=Lo(),o=G(),{Minimatch:s}=Uo(),{Legacy:{IgnorePattern:c,CascadingConfigArrayFactory:l}}=Nl(),u=S()(`eslint:file-enumerator`),d={dot:!0,matchBase:!0},f=/(?:^\.|[/\\]\.)[^/\\.].*/u,p=new WeakMap;function m(e){return a(r.sep===`\\`?e.replace(/\\/gu,`/`):e)}function g(e){try{return n.statSync(e)}catch(e){if(e.code!==`ENOENT`)throw e;return null}}function _(e){try{return n.readdirSync(e,{withFileTypes:!0})}catch(e){if(e.code!==`ENOENT`)throw e;return[]}}function v(e){if(e){let t=e.map(e=>o(e.startsWith(`.`)?e.slice(1):e));return RegExp(`.\\.(?:${t.join(`|`)})$`,`u`)}return null}var y=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}}},b=class extends Error{constructor(e){super(`All files matched by '${e}' are ignored.`),this.messageTemplate=`all-files-ignored`,this.messageData={pattern:e}}};t.exports={FileEnumerator:class{constructor({cwd:e=process.cwd(),configArrayFactory:t=new l({cwd:e,getEslintRecommendedConfig:()=>Ll().configs.recommended,getEslintAllConfig:()=>Ll().configs.all}),extensions:n=null,globInputPaths:r=!0,errorOnUnmatchedPattern:i=!0,ignore:a=!0}={}){p.set(this,{configArrayFactory:t,cwd:e,defaultIgnores:c.createDefaultIgnore(e),extensionRegExp:v(n),globInputPaths:r,errorOnUnmatchedPattern:i,ignoreFlag:a})}isTargetPath(e,t){let{configArrayFactory:n,extensionRegExp:r}=p.get(this);return r?r.test(e):e.endsWith(`.js`)?!0:(t||n.getConfigArrayForFile(e,{ignoreNotFoundError:!0})).isAdditionalTargetPath(e)}*iterateFiles(e){let{globInputPaths:t,errorOnUnmatchedPattern:n}=p.get(this),r=Array.isArray(e)?e:[e];u(`Start to iterate files: %o`,r);let i=new Set;for(let e of r){let r=!1,o=!1;if(e){for(let{config:t,filePath:n,flag:a}of this._iterateFiles(e))r=!0,a!==1&&(o=!0,i.has(n)||(i.add(n),yield{config:t,filePath:n,ignored:a===2}));if(n){if(!r)throw new y(e,!t&&a(e));if(!o)throw new b(e)}}}u(`Complete iterating files: ${JSON.stringify(r)}`)}_iterateFiles(e){let{cwd:t,globInputPaths:n}=p.get(this),i=r.resolve(t,e),a=f.test(e),o=g(i);return o&&o.isDirectory()?this._iterateFilesWithDirectory(i,a):o&&o.isFile()?this._iterateFilesWithFile(i):n&&m(e)?this._iterateFilesWithGlob(e,a):[]}_iterateFilesWithFile(e){u(`File: ${e}`);let{configArrayFactory:t}=p.get(this),n=t.getConfigArrayForFile(e);return[{config:n,filePath:e,flag:this._isIgnoredFile(e,{config:n,direct:!0})?2:0}]}_iterateFilesWithDirectory(e,t){return u(`Directory: ${e}`),this._iterateFilesRecursive(e,{dotfiles:t,recursive:!0,selector:null})}_iterateFilesWithGlob(e,t){u(`Glob: ${e}`);let{cwd:n}=p.get(this),a=r.resolve(n,i(e)),o=r.resolve(n,e),c=o.slice(a.length+1),l=/\*\*|\/|\\/u.test(c),f=new s(o,d);return u(`recursive? ${l}`),this._iterateFilesRecursive(a,{dotfiles:t,recursive:l,selector:f})}*_iterateFilesRecursive(e,t){u(`Enter the directory: ${e}`);let{configArrayFactory:n}=p.get(this),i=null;for(let a of _(e)){let o=r.join(e,a.name),s=a.isSymbolicLink()?g(o):a;if(s)if(s.isFile())if(i||=n.getConfigArrayForFile(o,{ignoreNotFoundError:!0}),t.selector?t.selector.match(o):this.isTargetPath(o,i)){let e=this._isIgnoredFile(o,{...t,config:i}),r=e?1:0;u(`Yield: ${a.name}${e?` but ignored`:``}`),yield{config:n.getConfigArrayForFile(o),filePath:o,flag:r}}else u(`Didn't match: ${a.name}`);else t.recursive&&s.isDirectory()&&(i||=n.getConfigArrayForFile(o,{ignoreNotFoundError:!0}),this._isIgnoredFile(o+r.sep,{...t,config:i})||(yield*this._iterateFilesRecursive(o,t)))}u(`Leave the directory: ${e}`)}_isIgnoredFile(e,{config:t,dotfiles:n=!1,direct:r=!1}){let{configArrayFactory:i,defaultIgnores:a,ignoreFlag:o}=p.get(this);return o?((t||i.getConfigArrayForFile(e,{ignoreNotFoundError:!0})).extractConfig(e).ignores||a)(e,n):!r&&a(e,n)}}}})),zl=d(((e,t)=>{let n=h(`node:fs`),r=h(`node:path`),i={};t.exports=function(e,t){let a=r.resolve(t,e);if(i[a])return i[a];let o=Object.create(null);return n.readdirSync(a).forEach(e=>{r.extname(e)===`.js`&&(o[e.slice(0,-3)]=h(r.join(a,e)))}),i[a]=o,o}})),Bl=d(((e,t)=>{V();let n=h(`node:fs`),r=h(`node:path`),i=Dl(),a=C(),{Legacy:{ConfigOps:o,naming:s,CascadingConfigArrayFactory:c,IgnorePattern:l,getUsedExtractedConfigs:u,ModuleResolver:d}}=Nl(),{FileEnumerator:f}=Rl(),{Linter:p}=_c(),m=Ua(),g=zl(),_=zo(),v=Dc(),y=S()(`eslint:cli-engine`),b=new Set([`checkstyle`,`codeframe`,`compact`,`jslint-xml`,`junit`,`table`,`tap`,`unix`,`visualstudio`]),x=new Set([`directive`,`problem`,`suggestion`,`layout`]),w=new WeakMap;function T(e){for(let t of e)if(!x.has(t))throw Error(`Invalid fix type "${t}" found.`)}function E(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}function D(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];t.errorCount+=r.errorCount,t.fatalErrorCount+=r.fatalErrorCount,t.warningCount+=r.warningCount,t.fixableErrorCount+=r.fixableErrorCount,t.fixableWarningCount+=r.fixableWarningCount}return t}function O({text:e,cwd:t,filePath:n,config:i,fix:a,allowInlineConfig:o,reportUnusedDisableDirectives:s,fileEnumerator:c,linter:l}){let u=n||`<text>`;y(`Lint ${u}`);let d=u===`<text>`?r.join(t,u):u,{fixed:f,messages:p,output:m}=l.verifyAndFix(e,i,{allowInlineConfig:o,filename:d,fix:a,reportUnusedDisableDirectives:s,filterCodeBlock(e){return c.isTargetPath(e)}}),h={filePath:u,messages:p,suppressedMessages:l.getSuppressedMessages(),...E(p)};return f&&(h.output=m),h.errorCount+h.warningCount>0&&h.output===void 0&&(h.source=e),h}function k(e,t){let n,i=e.split(r.sep).find(e=>/^\./u.test(e)),a=t&&r.relative(t,e).startsWith(`node_modules`);return n=i?`File ignored by default. Use a negated ignore pattern (like "--ignore-pattern '!<relative/path/to/filename>'") to override.`:a?`File ignored by default. Use "--ignore-pattern '!node_modules/*'" to override.`:`File ignored because of a matching ignore pattern. Use "--no-ignore" to override.`,{filePath:r.resolve(e),messages:[{ruleId:null,fatal:!1,severity:1,message:n,nodeType:null}],suppressedMessages:[],errorCount:0,fatalErrorCount:0,warningCount:1,fixableErrorCount:0,fixableWarningCount:0}}function A(e,t){for(let n of t){let t=n.pluginRules.get(e);if(t)return t}return m.get(e)||null}function j(e,t,n){if(!e.ruleId)return n.has(`directive`);let r=e.ruleId&&A(e.ruleId,t);return!!(r&&r.meta&&n.has(r.meta.type))}function*M(e){let t=new Set,n=e.flatMap(u);for(let r of n)for(let[n,i]of Object.entries(r.rules)){if(t.has(n)||(t.add(n),!o.getRuleSeverity(i)))continue;let r=A(n,e);r&&r.meta&&r.meta.deprecated&&(yield{ruleId:n,replacedBy:r.meta.replacedBy||[]})}}function N(e){return e.severity===2}function P(e,t){let i=r.normalize(e),a=r.resolve(t,i),o=i.slice(-1)===r.sep;function s(){return r.join(a,`.cache_${_(t)}`)}let c;try{c=n.lstatSync(a)}catch{c=null}return c?c.isDirectory()||o?s():a:o?s():a}function F(e,t,n){if(e&&!Array.isArray(e))throw Error(`${n} must be an array.`);if(e&&e.length>0)return e.reduce((e,n)=>{let[r,i]=n.split(`:`);return r!==`__proto__`&&(e[r]=i===void 0?t:i===`true`),e},{})}function I(e){let{ignorePattern:t,parser:n,parserOptions:r,plugins:i,rules:a}=e,o=F(e.envs,!0,`envs`),s=F(e.globals,!1,`globals`);return o===void 0&&s===void 0&&(t===void 0||t.length===0)&&n===void 0&&r===void 0&&i===void 0&&a===void 0?null:{env:o,globals:s,ignorePatterns:t,parser:n,parserOptions:r,plugins:i,rules:a}}function L(e){try{return n.statSync(e).isDirectory()}catch(e){if(e&&(e.code===`ENOENT`||e.code===`ENOTDIR`))return!1;throw e}}var R=class{constructor(e,{preloadedPlugins:t}={}){let n=Object.assign(Object.create(null),i,{cwd:process.cwd()},e);n.fix===void 0&&(n.fix=!1);let r=new Map;if(t)for(let[e,n]of Object.entries(t))r.set(e,n);let a=P(n.cacheLocation||n.cacheFile,n.cwd),o=new c({additionalPluginPool:r,baseConfig:n.baseConfig||null,cliConfig:I(n),cwd:n.cwd,ignorePath:n.ignorePath,resolvePluginsRelativeTo:n.resolvePluginsRelativeTo,rulePaths:n.rulePaths,specificConfigPath:n.configFile,useEslintrc:n.useEslintrc,builtInRules:m,loadRules:g,getEslintRecommendedConfig:()=>Ll().configs.recommended,getEslintAllConfig:()=>Ll().configs.all}),s=new f({configArrayFactory:o,cwd:n.cwd,extensions:n.extensions,globInputPaths:n.globInputPaths,errorOnUnmatchedPattern:n.errorOnUnmatchedPattern,ignore:n.ignore}),u=n.cache?new v(a,n.cacheStrategy):null,d=new p({cwd:n.cwd,configType:`eslintrc`}),h=[o.getConfigArrayForFile()];if(w.set(this,{additionalPluginPool:r,cacheFilePath:a,configArrayFactory:o,defaultIgnores:l.createDefaultIgnore(n.cwd),fileEnumerator:s,lastConfigArrays:h,lintResultCache:u,linter:d,options:n}),n.fix&&n.fixTypes&&n.fixTypes.length>0){y(`Using fix types ${n.fixTypes}`),T(n.fixTypes);let e=new Set(n.fixTypes),t=typeof n.fix==`function`?n.fix:()=>!0;n.fix=n=>j(n,h,e)&&t(n)}}getRules(){let{lastConfigArrays:e}=w.get(this);return new Map((function*(){yield*m;for(let t of e)yield*t.pluginRules})())}static getErrorResults(e){let t=[];return e.forEach(e=>{let n=e.messages.filter(N),r=e.suppressedMessages.filter(N);n.length>0&&t.push({...e,messages:n,suppressedMessages:r,errorCount:n.length,warningCount:0,fixableErrorCount:e.fixableErrorCount,fixableWarningCount:0})}),t}static outputFixes(e){e.results.filter(e=>Object.hasOwn(e,`output`)).forEach(e=>{n.writeFileSync(e.filePath,e.output)})}resolveFileGlobPatterns(e){let{options:t}=w.get(this);if(t.globInputPaths===!1)return e.filter(Boolean);let n=`/**/*.{${(t.extensions||[`.js`]).map(e=>e.replace(/^\./u,``)).join(`,`)}}`;return e.filter(Boolean).map(e=>{let i=L(r.resolve(t.cwd,e))?e.replace(/[/\\]$/u,``)+n:e;return r.normalize(i).replace(/\\/gu,`/`)})}executeOnFiles(e){let{cacheFilePath:t,fileEnumerator:r,lastConfigArrays:i,lintResultCache:a,linter:o,options:{allowInlineConfig:s,cache:c,cwd:l,fix:u,reportUnusedDisableDirectives:d}}=w.get(this),f=[],p=Date.now();if(i.length=0,!c)try{n.unlinkSync(t)}catch(e){let r=e&&e.code;if(r!==`ENOENT`&&!(r===`EROFS`&&!n.existsSync(t)))throw e}for(let{config:t,filePath:c,ignored:p}of r.iterateFiles(e)){if(p){f.push(k(c,l));continue}if(i.includes(t)||i.push(t),a){let e=a.getCachedLintResults(c,t);if(e)if(e.messages&&e.messages.length>0&&u)y(`Reprocessing cached file to allow autofix: ${c}`);else{y(`Skipping file since it hasn't changed: ${c}`),f.push(e);continue}}let e=O({text:n.readFileSync(c,`utf8`),filePath:c,config:t,cwd:l,fix:u,allowInlineConfig:s,reportUnusedDisableDirectives:d,fileEnumerator:r,linter:o});f.push(e),a&&a.setCachedLintResults(c,t,e)}a&&a.reconcile(),y(`Linting complete in: ${Date.now()-p}ms`);let m;return{results:f,...D(f),get usedDeprecatedRules(){return m||=Array.from(M(i)),m}}}executeOnText(e,t,n){let{configArrayFactory:i,fileEnumerator:a,lastConfigArrays:o,linter:s,options:{allowInlineConfig:c,cwd:l,fix:u,reportUnusedDisableDirectives:d}}=w.get(this),f=[],p=Date.now(),m=t&&r.resolve(l,t);if(o.length=0,m&&this.isPathIgnored(m))n&&f.push(k(m,l));else{let t=i.getConfigArrayForFile(m||`__placeholder__.js`);o.push(t),f.push(O({text:e,filePath:m,config:t,cwd:l,fix:u,allowInlineConfig:c,reportUnusedDisableDirectives:d,fileEnumerator:a,linter:s}))}y(`Linting complete in: ${Date.now()-p}ms`);let h;return{results:f,...D(f),get usedDeprecatedRules(){return h||=Array.from(M(o)),h}}}getConfigForFile(e){let{configArrayFactory:t,options:n}=w.get(this),i=r.resolve(n.cwd,e);if(L(i))throw Object.assign(Error(`'filePath' should not be a directory path.`),{messageTemplate:`print-config-with-directory-path`});return t.getConfigArrayForFile(i).extractConfig(i).toCompatibleObjectAsConfigFileContent()}isPathIgnored(e){let{configArrayFactory:t,defaultIgnores:n,options:{cwd:i,ignore:a}}=w.get(this),o=r.resolve(i,e);return a?(t.getConfigArrayForFile(o).extractConfig(o).ignores||n)(o):n(o)}getFormatter(e){let t=e||`stylish`;if(typeof t==`string`){let n=t.replace(/\\/gu,`/`),i=w.get(this),a=i?i.options.cwd:process.cwd(),o=s.getNamespaceFromTerm(n),c;if(!o&&n.includes(`/`))c=r.resolve(a,n);else try{let e=s.normalizePackageName(n,`eslint-formatter`);c=d.resolve(e,r.join(a,`__placeholder__.js`))}catch{c=r.resolve(z,`formatters`,n)}try{return h(c)}catch(t){throw b.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: ${c}\nError: ${t.message}`,t}}else return null}};R.version=a.version,R.getFormatter=R.prototype.getFormatter,t.exports={CLIEngine:R,getCLIEngineInternalSlots(e){return w.get(e)}}})),Vl=d(((e,t)=>{let n=h(`node:path`),r=h(`node:fs`),{promisify:i}=h(`node:util`),{CLIEngine:a,getCLIEngineInternalSlots:o}=Bl(),s=Ua(),{Legacy:{ConfigOps:{getRuleSeverity:c}}}=Nl(),{version:l}=C(),u=i(r.writeFile),d=new WeakMap;function f(e){return typeof e==`string`&&e.trim()!==``}function p(e){return Array.isArray(e)&&e.length&&e.every(f)}function m(e){return Array.isArray(e)&&e.every(f)}function g(e){return e===`directive`||e===`problem`||e===`suggestion`||e===`layout`}function _(e){return Array.isArray(e)&&e.every(g)}var v=class e extends Error{constructor(t){super(`Invalid Options:\n- ${t.join(`
|
|
107
|
+
- `)}`),this.code=`ESLINT_INVALID_OPTIONS`,Error.captureStackTrace(this,e)}};function y({allowInlineConfig:e=!0,baseConfig:t=null,cache:r=!1,cacheLocation:i=`.eslintcache`,cacheStrategy:a=`metadata`,cwd:o=process.cwd(),errorOnUnmatchedPattern:s=!0,extensions:c=null,fix:l=!1,fixTypes:u=null,flags:d,globInputPaths:p=!0,ignore:h=!0,ignorePath:g=null,overrideConfig:y=null,overrideConfigFile:b=null,plugins:x={},reportUnusedDisableDirectives:S=null,resolvePluginsRelativeTo:C=null,rulePaths:w=[],useEslintrc:T=!0,passOnNoPatterns:E=!1,...D}){let O=[],k=Object.keys(D);if(k.length>=1&&(O.push(`Unknown options: ${k.join(`, `)}`),k.includes(`cacheFile`)&&O.push(`'cacheFile' has been removed. Please use the 'cacheLocation' option instead.`),k.includes(`configFile`)&&O.push(`'configFile' has been removed. Please use the 'overrideConfigFile' option instead.`),k.includes(`envs`)&&O.push(`'envs' has been removed. Please use the 'overrideConfig.env' option instead.`),k.includes(`globals`)&&O.push(`'globals' has been removed. Please use the 'overrideConfig.globals' option instead.`),k.includes(`ignorePattern`)&&O.push(`'ignorePattern' has been removed. Please use the 'overrideConfig.ignorePatterns' option instead.`),k.includes(`parser`)&&O.push(`'parser' has been removed. Please use the 'overrideConfig.parser' option instead.`),k.includes(`parserOptions`)&&O.push(`'parserOptions' has been removed. Please use the 'overrideConfig.parserOptions' option instead.`),k.includes(`rules`)&&O.push(`'rules' has been removed. Please use the 'overrideConfig.rules' option instead.`)),typeof e!=`boolean`&&O.push(`'allowInlineConfig' must be a boolean.`),typeof t!=`object`&&O.push(`'baseConfig' must be an object or null.`),typeof r!=`boolean`&&O.push(`'cache' must be a boolean.`),f(i)||O.push(`'cacheLocation' must be a non-empty string.`),a!==`metadata`&&a!==`content`&&O.push(`'cacheStrategy' must be any of "metadata", "content".`),(!f(o)||!n.isAbsolute(o))&&O.push(`'cwd' must be an absolute path.`),typeof s!=`boolean`&&O.push(`'errorOnUnmatchedPattern' must be a boolean.`),!m(c)&&c!==null&&O.push(`'extensions' must be an array of non-empty strings or null.`),typeof l!=`boolean`&&typeof l!=`function`&&O.push(`'fix' must be a boolean or a function.`),u!==null&&!_(u)&&O.push(`'fixTypes' must be an array of any of "directive", "problem", "suggestion", and "layout".`),typeof p!=`boolean`&&O.push(`'globInputPaths' must be a boolean.`),typeof h!=`boolean`&&O.push(`'ignore' must be a boolean.`),!f(g)&&g!==null&&O.push(`'ignorePath' must be a non-empty string or null.`),typeof y!=`object`&&O.push(`'overrideConfig' must be an object or null.`),!f(b)&&b!==null&&O.push(`'overrideConfigFile' must be a non-empty string or null.`),typeof x==`object`?x!==null&&Object.keys(x).includes(``)&&O.push(`'plugins' must not include an empty string.`):O.push(`'plugins' must be an object or null.`),Array.isArray(x)&&O.push(`'plugins' doesn't add plugins to configuration to load. Please use the 'overrideConfig.plugins' option instead.`),S!==`error`&&S!==`warn`&&S!==`off`&&S!==null&&O.push(`'reportUnusedDisableDirectives' must be any of "error", "warn", "off", and null.`),!f(C)&&C!==null&&O.push(`'resolvePluginsRelativeTo' must be a non-empty string or null.`),m(w)||O.push(`'rulePaths' must be an array of non-empty strings.`),typeof T!=`boolean`&&O.push(`'useEslintrc' must be a boolean.`),typeof E!=`boolean`&&O.push(`'passOnNoPatterns' must be a boolean.`),O.length>0)throw new v(O);return{allowInlineConfig:e,baseConfig:t,cache:r,cacheLocation:i,cacheStrategy:a,configFile:b,cwd:n.normalize(o),errorOnUnmatchedPattern:s,extensions:c,fix:l,fixTypes:u,flags:[],globInputPaths:p,ignore:h,ignorePath:g,reportUnusedDisableDirectives:S,resolvePluginsRelativeTo:C,rulePaths:w,useEslintrc:T,passOnNoPatterns:E}}function b(e){if(typeof e==`object`&&e){for(let t in e)if(e[t]!==void 0)return!0}return!1}function x(e){return Array.from(e).reduce((e,[t,n])=>(e[t]=n.meta,e),{})}let S=new WeakMap;function w(e,t){let{configArrayFactory:r,options:{cwd:i}}=o(e),a=n.isAbsolute(t)?t:n.join(i,`__placeholder__.js`),l=r.getConfigArrayForFile(a),u=l.extractConfig(a);if(!S.has(u)){let e=l.pluginRules,t=[];for(let[n,r]of Object.entries(u.rules)){if(c(r)===0)continue;let i=e.get(n)||s.get(n),a=i&&i.meta;a&&a.deprecated&&t.push({ruleId:n,replacedBy:a.replacedBy||[]})}S.set(u,Object.freeze(t))}return S.get(u)}function T(e,{results:t}){let n={configurable:!0,enumerable:!0,get(){return w(e,this.filePath)}};for(let e of t)Object.defineProperty(e,`usedDeprecatedRules`,n);return t}function E(e,t){return e.filePath<t.filePath?-1:e.filePath>t.filePath?1:0}t.exports={LegacyESLint:class{static configType=`eslintrc`;constructor(e={}){let t=y(e),n=new a(t,{preloadedPlugins:e.plugins}),{configArrayFactory:r,lastConfigArrays:i}=o(n),s=!1;b(e.overrideConfig)&&(r.setOverrideConfig(e.overrideConfig),s=!0),s&&(r.clearCache(),i[0]=r.getConfigArrayForFile()),d.set(this,{cliEngine:n,options:t})}static get version(){return l}static async outputFixes(e){if(!Array.isArray(e))throw Error(`'results' must be an array`);await Promise.all(e.filter(e=>{if(typeof e!=`object`||!e)throw Error(`'results' must include only objects`);return typeof e.output==`string`&&n.isAbsolute(e.filePath)}).map(e=>u(e.filePath,e.output)))}static getErrorResults(e){return a.getErrorResults(e)}getRulesMetaForResults(e){let t=new Set;for(let n of e){for(let{ruleId:e}of n.messages)t.add(e);for(let{ruleId:e}of n.suppressedMessages)t.add(e)}let{cliEngine:n}=d.get(this),r=n.getRules(),i=new Map;for(let[e,n]of r)t.has(e)&&i.set(e,n);return x(i)}hasFlag(e){return!1}async lintFiles(e){let{cliEngine:t,options:n}=d.get(this);if(n.passOnNoPatterns&&(e===``||Array.isArray(e)&&e.length===0))return[];if(!f(e)&&!p(e))throw Error(`'patterns' must be a non-empty string or an array of non-empty strings`);return T(t,t.executeOnFiles(e))}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=!1,...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&&!f(n))throw Error(`'options.filePath' must be a non-empty string or undefined`);if(typeof r!=`boolean`)throw Error(`'options.warnIgnored' must be a boolean or undefined`);let{cliEngine:o}=d.get(this);return T(o,o.executeOnText(e,n,r))}async loadFormatter(e=`stylish`){if(typeof e!=`string`)throw Error(`'name' must be a string`);let{cliEngine:t,options:n}=d.get(this),r=t.getFormatter(e);if(typeof r!=`function`)throw Error(`Formatter must be a function, but got a ${typeof r}.`);return{format(e,i){let a=null;return e.sort(E),r(e,{...i,get cwd(){return n.cwd},get rulesMeta(){return a||=x(t.getRules()),a}})}}}async calculateConfigForFile(e){if(!f(e))throw Error(`'filePath' must be a non-empty string`);let{cliEngine:t}=d.get(this);return t.getConfigForFile(e)}async isPathIgnored(e){if(!f(e))throw Error(`'filePath' must be a non-empty string`);let{cliEngine:t}=d.get(this);return t.isPathIgnored(e)}},getESLintPrivateMembers(e){return d.get(e)}}})),Hl=d(((e,t)=>{let{ESLint:n}=El(),{LegacyESLint:r}=Vl();t.exports={ESLint:n,LegacyESLint:r}})),Ul=d(((e,t)=>{var n=Array.prototype.slice,r=typeof Object.keys==`function`?Object.keys:function(e){var t=[];for(var n in e)t.push(n);return t},i=t.exports=function(e,t){return e===0&&t===0?c(e,t):e===t?!0:e instanceof Date&&t instanceof Date?e.getTime()===t.getTime():s(e)?s(t):typeof e!=`object`&&typeof t!=`object`?e==t:l(e,t)};function a(e){return e==null}function o(e){return Object.prototype.toString.call(e)==`[object Arguments]`}function s(e){return typeof e==`number`&&e!==e}function c(e,t){return 1/e==1/t}function l(e,t){if(a(e)||a(t)||e.prototype!==t.prototype)return!1;if(o(e))return o(t)?(e=n.call(e),t=n.call(t),i(e,t)):!1;try{var s=r(e),c=r(t),l,u}catch{return!1}if(s.length!=c.length)return!1;for(s.sort(),c.sort(),u=s.length-1;u>=0;u--)if(s[u]!=c[u])return!1;for(u=s.length-1;u>=0;u--)if(l=s[u],!i(e[l],t[l]))return!1;return!0}})),Wl=d(((e,t)=>{(function(){var n;try{n=typeof Intl<`u`&&Intl.Collator!==void 0?Intl.Collator(`generic`,{sensitivity:`base`}):null}catch{console.log(`Collator could not be initialized and wouldn't be used`)}var r=[],i=[],a={get:function(e,t,a){var o=a&&n&&a.useCollator,s=e.length,c=t.length;if(s===0)return c;if(c===0)return s;var l,u,d,f,p;for(d=0;d<c;++d)r[d]=d,i[d]=t.charCodeAt(d);r[c]=c;var m;if(o)for(d=0;d<s;++d){for(u=d+1,f=0;f<c;++f)l=u,m=n.compare(e.charAt(d),String.fromCharCode(i[f]))===0,u=r[f]+(m?0:1),p=l+1,u>p&&(u=p),p=r[f+1]+1,u>p&&(u=p),r[f]=l;r[f]=u}else for(d=0;d<s;++d){for(u=d+1,f=0;f<c;++f)l=u,m=e.charCodeAt(d)===i[f],u=r[f]+(m?0:1),p=l+1,u>p&&(u=p),p=r[f+1]+1,u>p&&(u=p),r[f]=l;r[f]=u}return u}};typeof define<`u`&&define!==null&&define.amd?define(function(){return a}):t!=null&&e!==void 0&&t.exports===e?t.exports=a:typeof self<`u`&&typeof self.postMessage==`function`&&typeof self.importScripts==`function`?self.Levenshtein=a:typeof window<`u`&&window!==null&&(window.Levenshtein=a)})()})),Gl=d(((e,t)=>{(function(){var e=_o(),n=e.map,r=e.sortBy,i=Wl();t.exports={closestString:function(e,t){var a,o,s;if(e.length)return a=n(function(e){var n=t.length>e.length?[t,e]:[e,t],r=n[0],a=n[1];return{string:e,distance:i.get(r,a)}})(e),o=r(function(e){return e.distance},a)[0],s=o.string,o.distance,s},nameToRaw:function(e){return e.length===1||e===`NUM`?`-`+e:`--`+e},dasherize:function(t){return/^[A-Z]/.test(t)?t:e.dasherize(t)},naturalJoin:function(e){return e.length<3?e.join(` or `):e.slice(0,-1).join(`, `)+`, or `+e[e.length-1]}}}).call(e)})),Kl=d(((e,t)=>{function n(e){let t=e.length-1,n=e[t];for(;n===` `||n===` `;)n=e[--t];return e.substring(0,t+1)}function r(e){return e.split(`
|
|
108
|
+
`).map(e=>n(e)).join(`
|
|
109
|
+
`)}t.exports=function(e,t){if(t||={},e==null)return e;var n=t.width||50,a=typeof t.indent==`string`?t.indent:` `,o=t.newline||`
|
|
110
|
+
`+a,s=typeof t.escape==`function`?t.escape:i,c=`.{1,`+n+`}`;t.cut!==!0&&(c+=`([\\s]+|$)|[^\\s]+?([\\s]+|$)`);var l=new RegExp(c,`g`),u=a+(e.match(l)||[]).map(function(e){return e.slice(-1)===`
|
|
111
|
+
`&&(e=e.slice(0,e.length-1)),s(e)}).join(o);return t.trim===!0&&(u=r(u)),u};function i(e){return e}})),ql=d(((e,t)=>{(function(){var e=_o(),n=e.id,r,i,a,o,s,c,l,u,d,f,p,m,h,g;e.find,r=e.sort,i=e.min,a=e.max,o=e.map,s=e.unlines,e=Gl(),c=e.nameToRaw,l=e.dasherize,u=e.naturalJoin,d=Kl(),f=function(e,t){var n=t===void 0?[``,e-1]:[b(` `,e),t-e-1],r=n[0],i=n[1];return function(e){return d(e,{indent:r,width:i,trim:!0})}},p=function(e,t,n){var r=e.option,i=(a=e.shortNames)??[],a,s=e.longNames??[],l=e.type,u,d,p,m,h,g,_,v,y;return e.description,u=t.aliasSeparator,d=t.typeSeparator,p=t.initialIndent,e.negateName&&(r=`no-`+r,s&&=o(function(e){return`no-`+e},s)),m=r.length===1?[r].concat(i,s):i.concat([r],s),h=o(c,m).join(u),g=h.length,_=r===`NUM`?`::`:d,v=_.length,n!=null&&!e.boolean&&p+g+v+l.length>n?(y=f(p+g+v,n),h+``+_+y(l).replace(/^\s+/,``)):h+(e.boolean?``:_+``+l)},m=function(e){e.aliasSeparator??=`, `,e.typeSeparator??=` `,e.descriptionSeparator??=` `,e.initialIndent??=2,e.secondaryIndent??=4,e.maxPadFactor??=1.5},h=function(e,t){var r=t.stdout,i=(a=t.helpStyle)??{},a;return m(i),function(t){var a=r!=null&&r.isTTY?r.columns-1:null,o=a?f(a):n,c,u,d,m,h,g,_,y,x,S,C,w,T;try{c=e(l(t))}catch(e){return u=e,u.message}return d=p(c,i),m=c.default&&!c.negateName?`
|
|
112
|
+
default: `+c.default:``,h=c.restPositional?`Everything after this option is considered a positional argument, even if it looks like an option.`:``,g=c.longDescription||c.description&&v(c.description),_=g&&h?g+` `+h:(y=g||h)?y:``,x=`description:`,S=_?a&&_.length-1-x.length>a?`
|
|
113
|
+
`+x+`
|
|
114
|
+
`+o(_):`
|
|
115
|
+
`+x+` `+_:``,C=(y=c.example)?(w=[].concat(y),w.length>1?`
|
|
116
|
+
examples:
|
|
117
|
+
`+s(w):`
|
|
118
|
+
example: `+w[0]):``,T=m||S||C?`
|
|
119
|
+
`+b(`=`,d.length):``,d+``+T+m+S+C}},g=function(e){var t=e.options,n=e.prepend,o=e.append,c=(l=e.helpStyle)??{},l,d=e.stdout,h,g,v,x;return m(c),c.aliasSeparator,c.typeSeparator,h=c.descriptionSeparator,g=c.maxPadFactor,v=c.initialIndent,x=c.secondaryIndent,function(e){var l=e??{},m=l.showHidden,S=l.interpolate,C=d!=null&&d.isTTY?d.columns-1:null,w=[],T=function(e){return w.push(e??``)},E,D,O,k,A,j,M,N,P,F,I,L,R,z,B,V,H,U,ee,W,te,ne,re,ie,ae,oe;for(n&&(T(S?y(n,S):n),T()),E=[],D=0,O=0,k=[],A=0,j=(l=t).length;A<j;++A)M=l[A],(m||!M.hidden)&&((N=M.heading)?E.push({type:`heading`,value:N}):(P=p(M,c,C),F=[],(N=M.description)!=null&&F.push(N),(N=M.enum)&&F.push(`either: `+u(N)),M.default&&!M.negateName&&F.push(`default: `+M.default),I=F.join(` - `),E.push({type:`option`,pre:P,desc:I,descLen:I.length}),L=P.length,D++,O+=L,k.push(L)));for(R=r(k),z=R[R.length-1],B=v+O/D,V=D>2?i(B*g,z):z,A=R.length-1;A>=0;--A)if(L=R[A],L<=V){H=L;break}if(U=h.length,C!=null)for(ee=0,W=0,A=0,j=E.length;A<j;++A)M=E[A],M.type===`option`&&(P=M.pre,I=M.desc,te=M.descLen,te===0?M.wrap=`none`:(L=a(H,P.length)+v+U,ne=L+te,ne>C?te/2.5>C-L?(ee++,M.wrap=`full`):(W++,M.wrap=`partial`):M.wrap=`none`));for(re=b(` `,v),ie=D>1&&ee+W*.5>D*.5,A=0,j=E.length;A<j;++A)if(ae=A,M=E[A],M.type===`heading`)ae!==0&&T(),T(M.value+`:`);else{if(P=M.pre,I=M.desc,te=M.descLen,oe=M.wrap,C!=null){if(ie||oe===`full`){oe=f(v+x,C),T(re+``+P+`
|
|
120
|
+
`+oe(I));continue}else if(oe===`partial`){oe=f(v+U+a(H,P.length),C),T(re+``+_(P,H)+h+oe(I).replace(/^\s+/,``));continue}}T(te===0?re+``+P:re+``+_(P,H)+h+I)}return o&&(T(),T(S?y(o,S):o)),s(w)}};function _(e,t){var n=t-e.length;return e+``+b(` `,n>0?n:0)}function v(e){var t=e.charAt(0).toUpperCase(),n=e.slice(1),r=/[\.!\?]$/.test(e)?``:`.`;return t+``+n+r}function y(e,t){return e.replace(/{{([a-zA-Z$_][a-zA-Z$_0-9]*)}}/g,function(e,n){return t[n]??`{{`+n+`}}`})}t.exports={generateHelp:g,generateHelpForOption:h};function b(e,t){for(var n=``;t>0;(t>>=1)&&(e+=e))t&1&&(n+=e);return n}}).call(e)})),Jl=d(((e,t)=>{(function(){var e,n,r,i,a,o,s,c,l,u,d,f,p,m,h,g,_,v,y,b,x,S={}.toString,C=[].slice,w=Array.from||function(e){return C.call(e)};e=`0.9.4`,n=_o(),n.id,r=n.map,n.compact,i=n.any,n.groupBy,a=n.partition,o=n.chars,n.isItNaN,s=n.keys,n.Obj,c=n.camelize,l=Ul(),n=Gl(),u=n.closestString,d=n.nameToRaw,f=n.dasherize,p=n.naturalJoin,n=ql(),m=n.generateHelp,h=n.generateHelpForOption,n=xo(),g=n.parsedTypeCheck,_=n.parseType,v=Co().parsedTypeParse,y=function(e){var t,n,r={};for(t in e)n=e[t],r[c(t)]=n;return r},b=function(e){var t=`--?[a-zA-Z][-a-z-A-Z0-9]*=`,n=RegExp(`(?:`+t+`)?(?:'(?:\\\\'|[^'])+'|"(?:\\\\"|[^"])+")|[^'"\\s]+`,`g`),i=RegExp(`^(`+t+`)?['"]([\\s\\S]*)['"]$`);return r(function(e){return e.replace(i,`$1$2`)},e.match(n)||[])},x=function(e){var t={},n={},r=[],c,x,E;return S.call(e.stdout).slice(8,-1)===`Undefined`&&(e.stdout=process.stdout),e.positionalAnywhere??=!0,e.typeAliases??={},e.defaults??={},e.concatRepeatedArrays!=null&&(e.defaults.concatRepeatedArrays=e.concatRepeatedArrays),e.mergeRepeatedObjects!=null&&(e.defaults.mergeRepeatedObjects=e.mergeRepeatedObjects),c=function(i){var o,s,c,l,u,d,f,p,m,h,g,y,b,x,T,E,D,O,k,A,j,M;if(S.call(i).slice(8,-1)!==`Array`)throw Error(`No options defined.`);for(o=0,s=i.length;o<s;++o)if(c=i[o],c.heading==null){if(l=c.option,t[l]!=null)throw Error(`Option '`+l+`' already defined.`);for(u in d=e.defaults)f=d[u],c[u]??(c[u]=f);if(c.type===`Boolean`&&(c.boolean??=!0),c.parsedType==null){if(!c.type)throw Error(`No type defined for option '`+l+`'.`);try{p=(m=e.typeAliases[c.type])??c.type,c.parsedType=_(p)}catch(e){throw h=e,Error(`Option '`+l+`': Error parsing type '`+c.type+`': `+h.message)}}if(c.default)try{n[l]=v(c.parsedType,c.default)}catch(e){throw h=e,Error(`Option '`+l+`': Error parsing default value '`+c.default+`' for type '`+c.type+`': `+h.message)}if(c.enum&&!c.parsedPossiblities){for(g=[],y=c.parsedType,b=0,x=(d=c.enum).length;b<x;++b){T=d[b];try{g.push(v(y,T))}catch(e){throw h=e,Error(`Option '`+l+`': Error parsing enum value '`+T+`' for type '`+c.type+`': `+h.message)}}c.parsedPossibilities=g}if(m=c.dependsOn)if(m.length)if(d=[].concat(c.dependsOn),E=d[0],D=C.call(d,1),O=E.toLowerCase(),D.length)if(O===`and`||O===`or`)c.dependsOn=[O].concat(w(D));else throw Error(`Option '`+l+`': If you have more than one dependency, you must specify either 'and' or 'or'`);else (d=O.toLowerCase())===`and`||d===`or`?c.dependsOn=null:c.dependsOn=[`and`,E];else c.dependsOn=null;if(c.required&&r.push(l),t[l]=c,c.concatRepeatedArrays!=null){if(k=c.concatRepeatedArrays,S.call(k).slice(8,-1)===`Boolean`)c.concatRepeatedArrays=[k,{}];else if(k.length===1)c.concatRepeatedArrays=[k[0],{}];else if(k.length!==2)throw Error(`Invalid setting for concatRepeatedArrays`)}if(c.alias||c.aliases){if(l===`NUM`)throw Error(`-NUM option can't have aliases.`);for(c.alias&&(c.aliases??=[].concat(c.alias)),b=0,x=(d=c.aliases).length;b<x;++b){if(A=d[b],t[A]!=null)throw Error(`Option '`+A+`' already defined.`);t[A]=c}d=a(N,c.aliases),j=d[0],M=d[1],c.shortNames??=j,c.longNames??=M}(!c.aliases||c.shortNames.length===0)&&c.type===`Boolean`&&c.default===`true`&&(c.negateName=!0)}function N(e){return e.length===1}},c(e.options),x=function(e){var n=t[e],r;if(n==null)throw r=u(s(t),e),Error(`Invalid option '`+d(e)+`'`+(r?` - perhaps you meant '`+d(r)+`'?`:`.`));return n},E=function(a,s){var c=(s??{}).slice,u={},m=[],h=!1,_=!1,w=null,E=function(e,t){var n=x(e),r,a,o;if(n.boolean)r=t;else{try{a=n.concatRepeatedArrays,r=a!=null&&a[0]&&a[1].oneValuePerFlag&&n.parsedType.length===1&&n.parsedType[0].structure===`array`?[v(n.parsedType[0].of,t)]:v(n.parsedType,t)}catch{throw Error(`Invalid value for option '`+e+`' - expected type `+n.type+`, received value: `+t+`.`)}if(n.enum&&!i(function(e){return l(e,r)},n.parsedPossibilities))throw Error(`Option `+e+`: '`+r+`' not one of `+p(n.enum)+`.`)}o=S.call(u[e]).slice(8,-1),u[e]==null?u[e]=r:n.concatRepeatedArrays!=null&&n.concatRepeatedArrays[0]&&o===`Array`?u[e]=u[e].concat(r):n.mergeRepeatedObjects&&o===`Object`?T(u[e],r):u[e]=r,n.restPositional&&(h=!0),n.overrideRequired&&(_=!0)},D=function(){var e,t,r;for(e in t=n)r=t[e],u[e]??(u[e]=r)},O=function(){var e,t,n,i;if(!_){for(e=0,n=(t=r).length;e<n;++e)if(i=t[e],!u[i])throw Error(`Option `+d(i)+` is required.`)}},k=function(e,t){throw Error(`The options `+d(e)+` and `+d(t)+` are mutually exclusive - you cannot use them at the same time.`)},A=function(){var t=e.mutuallyExclusive,n,r,i,a,o,s,c,l,d,f;if(t)for(n=0,r=t.length;n<r;++n)for(i=t[n],a=null,o=0,s=i.length;o<s;++o)if(c=i[o],S.call(c).slice(8,-1)===`Array`){for(l=0,d=c.length;l<d;++l)if(f=c[l],f in u)if(a!=null)k(a,f);else{a=f;break}}else c in u&&(a==null?a=c:k(a,c))},j=function(e){var t=e.dependsOn,n,r,i,a,o,s;if(!t||e.dependenciesMet)return!0;for(n=t[0],r=C.call(t,1),i=0,a=r.length;i<a;++i)if(o=r[i],s=u[o],s&&j(s)){if(n===`or`)return!0}else if(n===`and`)throw Error(`The option '`+e.option+`' did not have its dependencies met.`);if(n===`and`)return!0;throw Error(`The option '`+e.option+`' did not meet any of its dependencies.`)},M=function(){for(var e in u)j(t[e])},N=function(){if(w)throw Error(`Value for '`+w+`' of type '`+x(w).type+`' required.`)},P,F,I,L,R,z,B,V,H,U,ee,W,te,ne,re,ie,ae,oe,G,se,ce,le,K,ue,de;switch(S.call(a).slice(8,-1)){case`String`:P=b(a.slice(c??0));break;case`Array`:P=a.slice(c??2);break;case`Object`:for(F in u={},a)if(I=a[F],F!==`_`)if(L=x(f(F)),g(L.parsedType,I))u[L.option]=I;else throw Error(`Option '`+L.option+`': Invalid type for '`+I+`' - expected type '`+L.type+`'.`);return A(),M(),D(),O(),R=y(u),R._=a._||[],R;default:throw Error(`Invalid argument to 'parse': `+a+`.`)}for(z=0,B=P.length;z<B;++z)if(V=P[z],V===`--`)h=!0;else if(h)m.push(V);else if(H=V.match(/^(--?)([a-zA-Z][-a-zA-Z0-9]*)(=)?(.*)?$/)){if(U=H,N(),ee=U[1].length===1,W=U[2],te=U[3]!=null,ne=U[4],te&&ne==null)throw Error(`No value for '`+W+`' specified.`);if(ee)for(re=o(W),ie=re.length,ae=0,oe=re.length;ae<oe;++ae)if(G=ae,se=re[ae],ce=x(se),le=ce.option,h)m.push(se);else if(G===ie-1)te?(K=ce.boolean?v([{type:`Boolean`}],ne):ne,E(le,K)):ce.boolean?E(le,!0):w=le;else if(ce.boolean)E(le,!0);else throw Error(`Can't set argument '`+se+`' when not last flag in a group of short flags.`);else if(ue=!1,(H=W.match(/^no-(.+)$/))?(ue=!0,de=H[1],ce=x(de)):ce=x(W),le=ce.option,ce.boolean)K=te?v([{type:`Boolean`}],ne):!0,ue?E(le,!K):E(le,K);else{if(ue)throw Error(`Only use 'no-' prefix for Boolean options, not with '`+de+`'.`);te?E(le,ne):w=le}}else if(H=V.match(/^-([0-9]+(?:\.[0-9]+)?)$/)){if(ce=t.NUM,!ce)throw Error(`No -NUM option defined.`);E(ce.option,H[1])}else w?(E(w,V),w=null):(m.push(V),e.positionalAnywhere||(h=!0));return N(),A(),M(),D(),O(),R=y(u),R._=m,R},{parse:E,parseArgv:function(e){return E(e,{slice:2})},generateHelp:m(e),generateHelpForOption:h(x,e)}},x.VERSION=e,t.exports=x;function T(e,t){var n={}.hasOwnProperty;for(var r in t)n.call(t,r)&&(e[r]=t[r]);return e}}).call(e)})),Yl=d(((e,t)=>{let n=Jl();t.exports=function(e){let t;t=e?{option:`config-lookup`,type:`Boolean`,default:`true`,description:`Disable look up for eslint.config.js`}:{option:`eslintrc`,type:`Boolean`,default:`true`,description:`Disable use of configuration from .eslintrc.*`};let r;e||(r={option:`env`,type:`[String]`,description:`Specify environments`});let i;e&&(i={option:`inspect-config`,type:`Boolean`,description:`Open the config inspector with the current configuration`});let a;a=e?{option:`ext`,type:`[String]`,description:`Specify additional file extensions to lint`}:{option:`ext`,type:`[String]`,description:`Specify JavaScript file extensions`};let o;e||(o={option:`resolve-plugins-relative-to`,type:`path::String`,description:`A folder where plugins should be resolved from, CWD by default`});let s;e||(s={option:`rulesdir`,type:`[path::String]`,description:`Load additional rules from this directory. Deprecated: Use rules from plugins`});let c;e||(c={option:`ignore-path`,type:`path::String`,description:`Specify path of ignore file`});let l;e&&(l={option:`stats`,type:`Boolean`,default:`false`,description:`Add statistics to the lint report`});let u;e&&(u={option:`warn-ignored`,type:`Boolean`,default:`true`,description:`Suppress warnings when the file list includes ignored files`});let d;e&&(d={option:`flag`,type:`[String]`,description:`Enable a feature flag`});let f;e&&(f={option:`report-unused-inline-configs`,type:`String`,default:void 0,description:`Adds reported errors for unused eslint inline config comments`,enum:[`off`,`warn`,`error`,`0`,`1`,`2`]});let p;e&&(p={option:`mcp`,type:`Boolean`,description:`Start the ESLint MCP server`});let m;return e&&(m={option:`concurrency`,type:`Int|String`,default:`off`,description:`Number of linting threads, auto to choose automatically, off for no multithreading`}),n({prepend:`eslint [options] file.js [file.js] [dir]`,defaults:{concatRepeatedArrays:!0,mergeRepeatedObjects:!0},options:[{heading:`Basic configuration`},t,{option:`config`,alias:`c`,type:`path::String`,description:e?`Use this configuration instead of eslint.config.js, eslint.config.mjs, or eslint.config.cjs`:`Use this configuration, overriding .eslintrc.* config options if present`},i,r,a,{option:`global`,type:`[String]`,description:`Define global variables`},{option:`parser`,type:`String`,description:`Specify the parser to be used`},{option:`parser-options`,type:`Object`,description:`Specify parser options`},o,{heading:`Specify Rules and Plugins`},{option:`plugin`,type:`[String]`,description:`Specify plugins`},{option:`rule`,type:`Object`,description:`Specify rules`},s,{heading:`Fix Problems`},{option:`fix`,type:`Boolean`,default:!1,description:`Automatically fix problems`},{option:`fix-dry-run`,type:`Boolean`,default:!1,description:`Automatically fix problems without saving the changes to the file system`},{option:`fix-type`,type:`Array`,description:`Specify the types of fixes to apply (directive, problem, suggestion, layout)`},{heading:`Ignore Files`},c,{option:`ignore`,type:`Boolean`,default:`true`,description:`Disable use of ignore files and patterns`},{option:`ignore-pattern`,type:`[String]`,description:`Patterns of files to ignore${e?``:` (in addition to those in .eslintignore)`}`,concatRepeatedArrays:[!0,{oneValuePerFlag:!0}]},{heading:`Use stdin`},{option:`stdin`,type:`Boolean`,default:`false`,description:`Lint code provided on <STDIN>`},{option:`stdin-filename`,type:`String`,description:`Specify filename to process STDIN as`},{heading:`Handle Warnings`},{option:`quiet`,type:`Boolean`,default:`false`,description:`Report errors only`},{option:`max-warnings`,type:`Int`,default:`-1`,description:`Number of warnings to trigger nonzero exit code`},{heading:`Output`},{option:`output-file`,alias:`o`,type:`path::String`,description:`Specify file to write report to`},{option:`format`,alias:`f`,type:`String`,default:`stylish`,description:`Use a specific output format`},{option:`color`,type:`Boolean`,alias:`no-color`,description:`Force enabling/disabling of color`},{heading:`Inline configuration comments`},{option:`inline-config`,type:`Boolean`,default:`true`,description:`Prevent comments from changing config or rules`},{option:`report-unused-disable-directives`,type:`Boolean`,default:void 0,description:`Adds reported errors for unused eslint-disable and eslint-enable directives`},{option:`report-unused-disable-directives-severity`,type:`String`,default:void 0,description:`Chooses severity level for reporting unused eslint-disable and eslint-enable directives`,enum:[`off`,`warn`,`error`,`0`,`1`,`2`]},f,{heading:`Caching`},{option:`cache`,type:`Boolean`,default:`false`,description:`Only check changed files`},{option:`cache-file`,type:`path::String`,default:`.eslintcache`,description:`Path to the cache file. Deprecated: use --cache-location`},{option:`cache-location`,type:`path::String`,description:`Path to the cache file or directory`},{option:`cache-strategy`,dependsOn:[`cache`],type:`String`,default:`metadata`,enum:[`metadata`,`content`],description:`Strategy to use for detecting changed files in the cache`},{heading:`Suppressing Violations`},{option:`suppress-all`,type:`Boolean`,default:`false`,description:`Suppress all violations`},{option:`suppress-rule`,type:`[String]`,description:`Suppress specific rules`},{option:`suppressions-location`,type:`path::String`,description:`Specify the location of the suppressions file`},{option:`prune-suppressions`,type:`Boolean`,default:`false`,description:`Prune unused suppressions`},{option:`pass-on-unpruned-suppressions`,type:`Boolean`,default:`false`,description:`Ignore unused suppressions`},{heading:`Miscellaneous`},{option:`init`,type:`Boolean`,default:`false`,description:`Run config initialization wizard`},{option:`env-info`,type:`Boolean`,default:`false`,description:`Output execution environment information`},{option:`error-on-unmatched-pattern`,type:`Boolean`,default:`true`,description:`Prevent errors when pattern is unmatched`},{option:`exit-on-fatal-error`,type:`Boolean`,default:`false`,description:`Exit with exit code 2 in case of fatal error`},u,{option:`pass-on-no-patterns`,type:`Boolean`,default:!1,description:`Exit with exit code 0 in case no file patterns are passed`},{option:`debug`,type:`Boolean`,default:!1,description:`Output debugging information`},{option:`help`,alias:`h`,type:`Boolean`,description:`Show help`},{option:`version`,alias:`v`,type:`Boolean`,description:`Output the version number`},{option:`print-config`,type:`path::String`,description:`Print the configuration for the given file`},l,d,p,m].filter(e=>!!e)})}})),Xl=d(((e,t)=>{t.exports={info(...e){console.log(...e)},warn(...e){console.warn(...e)},error(...e){console.error(...e)}}})),Zl=d(((e,t)=>{let n=h(`node:path`),r=I(),i=h(`node:os`),a=Xl(),o=C();function s(){let e=new Map;function t(e,t){return!n.relative(e,t).startsWith(`..`)}function o(t,n){let i=[t,...n].join(` `);if(e.has(i))return e.get(i);let a=r.sync(t,n,{encoding:`utf8`});if(a.error)throw a.error;let o=a.stdout.trim();return e.set(i,o),o}function s(e){return e.startsWith(`v`)?e:`v${e}`}function c(e){let t=[`--version`];try{return s(o(e,t))}catch(n){throw a.error(`Error finding ${e} version running the command \`${e} ${t.join(` `)}\``),n}}function l(e,{global:n=!1}={}){let r=[`bin`,`-g`],i=[`ls`,`--depth=0`,`--json`,e];n&&i.push(`-g`);try{let e=JSON.parse(o(`npm`,i));if(Object.keys(e).length===0||!(e.dependencies&&e.dependencies.eslint))return`Not found`;let[,c]=process.argv,l;try{l=o(`npm`,r)}catch(e){throw a.error(`Error finding npm binary path when running command \`npm ${r.join(` `)}\``),e}let u=t(l,c),d=e.dependencies.eslint.version;return(n&&u||!n&&!u)&&(d+=` (Currently used)`),s(d)}catch(t){throw a.error(`Error finding ${e} version running the command \`npm ${i.join(` `)}\``),t}}return[`Environment Info:`,``,`Node version: ${process.version}`,`npm version: ${c(`npm`)}`,`Local ESLint version: ${l(`eslint`,{global:!1})}`,`Global ESLint version: ${l(`eslint`,{global:!0})}`,`Operating System: ${i.platform()} ${i.release()}`].join(`
|
|
121
|
+
`)}function c(){return`v${o.version}`}t.exports={__esModule:!0,environment:s,version:c}})),Ql=d((e=>{let{createRequire:t}=h(`module`),{pathToFileURL:n}=h(`url`),r=new Set([`/`,`\\`]);function i(e){return r.has(e[e.length-1])?e:e+`/`}e.ModuleImporter=class{constructor(e=process.cwd()){this.cwd=i(e)}resolve(e){return t(this.cwd).resolve(e)}import(e){return import(n(this.resolve(e)).href)}}})),$l=d(((e,t)=>{let{normalizeSeverityToString:n}=Hs(),{getShorthandName:r,normalizePackageName:i}=vc(),{ModuleImporter:a}=Ql();async function o(e,t){let n={};return await Promise.all(t.map(async t=>{let a=i(t,`eslint-plugin`),o=await e.import(a);if(!(`default`in o))throw Error(`"${a}" cannot be used with the \`--plugin\` option because its default module does not provide a \`default\` export`);let s=r(t,`eslint-plugin`);n[s]=o.default})),n}function s(e){return e.severity===2}function c(e){return e.severity===2}async function l({cache:e,cacheFile:t,cacheLocation:r,cacheStrategy:i,concurrency:l,config:u,configLookup:d,env:f,errorOnUnmatchedPattern:p,eslintrc:m,ext:h,fix:g,fixDryRun:_,fixType:v,flag:y,global:b,ignore:x,ignorePath:S,ignorePattern:C,inlineConfig:w,parser:T,parserOptions:E,plugin:D,quiet:O,reportUnusedDisableDirectives:k,reportUnusedDisableDirectivesSeverity:A,reportUnusedInlineConfigs:j,resolvePluginsRelativeTo:M,rule:N,rulesdir:P,stats:F,warnIgnored:I,passOnNoPatterns:L,maxWarnings:R},z){let B,V,H=new a;if(z===`flat`){V=typeof u==`string`?u:!d,V===!1&&(V=void 0);let e={};b&&(e.globals=b.reduce((e,t)=>(t.endsWith(`:true`)?e[t.slice(0,-5)]=`writable`:e[t]=`readonly`,e),{})),E&&(e.parserOptions=E),T&&(e.parser=await H.import(T)),B=[{...Object.keys(e).length>0?{languageOptions:e}:{},rules:N||{}}],(k||A!==void 0)&&(B[0].linterOptions={reportUnusedDisableDirectives:k?`error`:n(A)}),j!==void 0&&(B[0].linterOptions={...B[0].linterOptions,reportUnusedInlineConfigs:n(j)}),D&&(B[0].plugins=await o(H,D)),h&&B.push({files:h.map(e=>`**/*${e.startsWith(`.`)?``:`.`}${e}`)})}else V=u,B={env:f&&f.reduce((e,t)=>(e[t]=!0,e),{}),globals:b&&b.reduce((e,t)=>(t.endsWith(`:true`)?e[t.slice(0,-5)]=`writable`:e[t]=`readonly`,e),{}),ignorePatterns:C,parser:T,parserOptions:E,plugins:D,rules:N};let U={allowInlineConfig:w,cache:e,cacheLocation:r||t,cacheStrategy:i,errorOnUnmatchedPattern:p,fix:(g||_)&&(O?s:!0),fixTypes:v,ignore:x,overrideConfig:B,overrideConfigFile:V,passOnNoPatterns:L};return z===`flat`?(U.concurrency=l,U.flags=y,U.ignorePatterns=C,U.stats=F,U.warnIgnored=I,U.ruleFilter=O&&R===-1?c:()=>!0):(U.resolvePluginsRelativeTo=M,U.rulePaths=P,U.useEslintrc=m,U.extensions=h,U.ignorePath=S,(k||A!==void 0)&&(U.reportUnusedDisableDirectives=k?`error`:n(A))),U}t.exports=l})),eu=d(((e,t)=>{let n=h(`node:fs`),r=h(`node:path`),{calculateStatsPerFile:i}=Cl(),a=Ec();t.exports={SuppressionsService:class e{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:i}=this.applySuppressions(e,t);for(let e in i)if(t[e]){for(let n in i[e]){if(!t[e][n])continue;let r=t[e][n].count,a=i[e][n].count;r===a?delete t[e][n]:t[e][n].count-=a}Object.keys(t[e]).length===0&&delete t[e]}for(let e of Object.keys(t)){let i=r.resolve(this.cwd,e);n.existsSync(i)||delete t[e]}return this.save(t)}applySuppressions(t,n){let r=structuredClone(t),a={};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 i in o){if(!n[r][i])continue;let c=n[r][i].count,l=o[i].count;l<=c&&(e.suppressMessagesByRule(t,i),s=!0),l<c&&(a[r]??={},a[r][i]??={},a[r][i].count=c-l)}for(let e in n[r])o[e]||(a[r]??={},a[r][e]=n[r][e]);s&&Object.assign(t,i(t.messages))}return{results:r,unused:a}}async load(){try{let e=await n.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 n.promises.writeFile(this.filePath,a(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 r.relative(this.cwd,e).split(r.sep).join(r.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)}}}})),tu=d(((e,t)=>{V();let n=h(`node:fs`),{mkdir:r,stat:i,writeFile:a}=h(`node:fs/promises`),o=h(`node:path`),{pathToFileURL:s}=h(`node:url`),{LegacyESLint:c}=Hl(),{ESLint:l,shouldUseFlatConfig:u,locateConfigFileToUse:d}=El(),f=Yl(),p=Xl(),m=Zl(),g=$l(),{getCacheFile:_}=Cl(),{SuppressionsService:v}=eu(),y=S()(`eslint:cli`);function b(e){let t=0,n=0,r=0;for(let i of e)t+=i.errorCount,n+=i.fatalErrorCount,r+=i.warningCount;return{errorCount:t,fatalErrorCount:n,warningCount:r}}function x(e){let t=new URL(`./shared/translate-cli-options.js`,s(B)).href,n=`import translateOptions from ${JSON.stringify(t)};\nexport default await translateOptions(${JSON.stringify(e)}, "flat");\n`;return new URL(`data:text/javascript;base64,${Buffer.from(n).toString(`base64`)}`)}async function C(e){try{return(await i(e)).isDirectory()}catch(e){if(e.code===`ENOENT`||e.code===`ENOTDIR`)return!1;throw e}}async function w(e,t,n,i,s){let c;try{c=await e.loadFormatter(n)}catch(e){return p.error(e.message),!1}let l=await c.format(t,s);if(i){let e=o.resolve(process.cwd(),i);if(await C(e))return p.error(`Cannot write to output file path, it is a directory: %s`,i),!1;try{await r(o.dirname(e),{recursive:!0}),await a(e,l)}catch(e){return p.error(`There was a problem writing the output file:
|
|
122
|
+
%s`,e),!1}}else l&&p.info(l);return!0}function T(e){if(e===void 0||e===`auto`||e===`off`)return;let t=Number(e);if(!Number.isInteger(t)||t<1)throw Error(`Option concurrency: '${e}' is not a positive integer, 'auto' or 'off'.`)}let E={async calculateInspectConfigFlags(e){let{configFilePath:t,basePath:n}=await d({cwd:process.cwd(),configFile:e});return[`--config`,t,`--basePath`,n]},async execute(e,t,r=!0){Array.isArray(e)&&y(`CLI args: %o`,e.slice(2));let i=r&&await u();if(y(`Using flat config?`,i),r&&!i){let{WarningService:e}=lc();new e().emitESLintRCWarning()}let a=f(i),o;try{o=a.parse(e),T(o.concurrency)}catch(e){y(`Error parsing CLI options:`,e.message);let t=e.message;return i&&(t+=`
|
|
123
|
+
You're using eslint.config.js, some command line flags are no longer available. Please see https://eslint.org/docs/latest/use/command-line-interface for details.`),p.error(t),2}let s=o._,d=typeof t==`string`;if(o.help)return p.info(a.generateHelp()),0;if(o.version)return p.info(m.version()),0;if(o.envInfo)try{return p.info(m.environment()),0}catch(e){return y(`Error retrieving environment info`),p.error(e.message),2}if(o.printConfig){if(s.length)return p.error(`The --print-config option must be used with exactly one file name.`),2;if(d)return p.error(`The --print-config option is not available for piped-in code.`),2;let e=await(i?new l(await g(o,`flat`)):new c(await g(o))).calculateConfigForFile(o.printConfig);return p.info(JSON.stringify(e,null,` `)),0}if(o.inspectConfig){p.info(`You can also run this command directly using 'npx @eslint/config-inspector@latest' in the same directory as your configuration file.`);try{let e=await g(o,`flat`),t=I(),n=await E.calculateInspectConfigFlags(e.overrideConfigFile);t.sync(`npx`,[`@eslint/config-inspector@latest`,...n],{encoding:`utf8`,stdio:`inherit`})}catch(e){return p.error(e),2}return 0}if(y(`Running on ${d?`text`:`files`}`),o.fix&&o.fixDryRun)return p.error(`The --fix option and the --fix-dry-run option cannot be used together.`),2;if(d&&o.fix)return p.error(`The --fix option is not available for piped-in code; use --fix-dry-run instead.`),2;if(o.fixType&&!o.fix&&!o.fixDryRun)return p.error(`The --fix-type option requires either --fix or --fix-dry-run.`),2;if(o.reportUnusedDisableDirectives&&o.reportUnusedDisableDirectivesSeverity!==void 0)return p.error(`The --report-unused-disable-directives option and the --report-unused-disable-directives-severity option cannot be used together.`),2;if(i&&o.ext){if(o.ext.length===0)return p.error(`The --ext option value cannot be empty.`),2;let e=o.ext.indexOf(``);if(e>=0)return p.error(`The --ext option arguments cannot be empty strings. Found an empty string at index ${e}.`),2}if(o.suppressAll&&o.suppressRule)return p.error(`The --suppress-all option and the --suppress-rule option cannot be used together.`),2;if(o.suppressAll&&o.pruneSuppressions)return p.error(`The --suppress-all option and the --prune-suppressions option cannot be used together.`),2;if(o.suppressRule&&o.pruneSuppressions)return p.error(`The --suppress-rule option and the --prune-suppressions option cannot be used together.`),2;if(d&&(o.suppressAll||o.suppressRule||o.pruneSuppressions))return p.error(`The --suppress-all, --suppress-rule, and --prune-suppressions options cannot be used with piped-in code.`),2;let h=i?l:c,S;if(o.concurrency&&o.concurrency!==`off`){let e=x(o);S=await l.fromOptionsModule(e)}else S=new h(await g(o,i?`flat`:`eslintrc`));let C;C=d?await S.lintText(t,{filePath:o.stdinFilename,warnIgnored:i?void 0:!0}):await S.lintFiles(s),o.fix&&(y(`Fix mode enabled - applying fixes`),await h.outputFixes(C));let D={};if(!d){let e=_(o.suppressionsLocation||`eslint-suppressions.json`,process.cwd(),{prefix:`suppressions_`});if(o.suppressionsLocation&&!n.existsSync(e)&&!o.suppressAll&&!o.suppressRule)return p.error("The suppressions file does not exist. Please run the command with `--suppress-all` or `--suppress-rule` to create it."),2;if(o.suppressAll||o.suppressRule||o.pruneSuppressions||n.existsSync(e)){let t=new v({filePath:e,cwd:process.cwd()});(o.suppressAll||o.suppressRule)&&await t.suppress(C,o.suppressRule),o.pruneSuppressions&&await t.prune(C);let n=t.applySuppressions(C,await t.load());C=n.results,D=n.unused}}let O=C;o.quiet&&(y(`Quiet mode enabled - filtering out warnings`),O=h.getErrorResults(O));let k=b(C),A=o.maxWarnings>=0&&k.warningCount>o.maxWarnings,j=A?{maxWarningsExceeded:{maxWarnings:o.maxWarnings,foundWarnings:k.warningCount}}:{};if(await w(S,O,o.format,o.outputFile,j)){let e=o.exitOnFatalError&&k.fatalErrorCount>0;return!k.errorCount&&A&&p.error(`ESLint found too many warnings (maximum: %s).`,o.maxWarnings),!o.passOnUnprunedSuppressions&&Object.keys(D).length>0?(p.error("There are suppressions left that do not occur anymore. Consider re-running the command with `--prune-suppressions`."),y(JSON.stringify(D,null,2)),2):e?2:k.errorCount||A?1:0}return 2}};t.exports=E})),nu=d((()=>{h(`node:module`).enableCompileCache?.(),process.argv.includes(`--debug`)&&S().enable(`eslint:*,-eslint:code-path,eslintrc:*`);function e(){return new Promise((e,t)=>{let n=``,r=``;process.stdin.setEncoding(`utf8`).on(`readable`,()=>{for(;(r=process.stdin.read())!==null;)n+=r}).on(`end`,()=>e(n)).on(`error`,t)})}function t(e){let t=h(`node:util`);if(typeof e!=`object`||!e)return String(e);if(typeof e.messageTemplate==`string`)try{return h(`../messages/${e.messageTemplate}.js`)(e.messageData||{})}catch{}return typeof e.stack==`string`?e.stack:t.format(`%o`,e)}let n=new Set,r=!1;function i(e){process.exitCode=2,r=!0;let{version:i}=C(),a=`
|
|
124
|
+
Oops! Something went wrong! :(
|
|
125
|
+
|
|
126
|
+
ESLint: ${i}
|
|
127
|
+
|
|
128
|
+
${t(e)}`;n.has(a)||(console.error(a),n.add(a))}(async function(){if(process.on(`uncaughtException`,i),process.on(`unhandledRejection`,i),process.argv.includes(`--init`)){console.warn(`You can also run this command directly using 'npm init @eslint/config@latest'.`),I().sync(`npm`,[`init`,`@eslint/config@latest`],{encoding:`utf8`,stdio:`inherit`});return}if(process.argv.includes(`--mcp`)){console.warn(`You can also run this command directly using 'npx @eslint/mcp@latest'.`),I().sync(`npx`,[`@eslint/mcp@latest`],{encoding:`utf8`,stdio:`inherit`});return}let t=await tu().execute(process.argv,process.argv.includes(`--stdin`)?await e():null,!0);r||(process.exitCode=t)})().catch(i)}));export default nu();export{};
|