eslint-cli-bundle 1.0.5 → 2.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/eslint.js CHANGED
@@ -1,23 +1,22 @@
1
1
  #!/usr/bin/env node
2
- import{r as e,t}from"./chunk-qnHZjHhP.js";import{C as n,S as r,T as i,a,b as o,c as s,i as c,n as l,p as u,r as d,t as f,v as p,w as m,y as h}from"./legacy-eslint-DYfSFaC6.js";var g=t(((t,n)=>{n.exports=o,o.sync=s;var r=e(`fs`);function i(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 a(e,t,n){return!e.isSymbolicLink()&&!e.isFile()?!1:i(t,n)}function o(e,t,n){r.stat(e,function(r,i){n(r,r?!1:a(i,e,t))})}function s(e,t){return a(r.statSync(e),e,t)}})),_=t(((t,n)=>{n.exports=i,i.sync=a;var r=e(`fs`);function i(e,t,n){r.stat(e,function(e,r){n(e,e?!1:o(r,t))})}function a(e,t){return o(r.statSync(e),t)}function o(e,t){return e.isFile()&&s(e,t)}function s(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}})),v=t(((t,n)=>{e(`fs`);var r=process.platform===`win32`||global.TESTING_WINDOWS?g():_();n.exports=i,i.sync=a;function i(e,t,n){if(typeof t==`function`&&(n=t,t={}),!n){if(typeof Promise!=`function`)throw TypeError(`callback not provided`);return new Promise(function(n,r){i(e,t||{},function(e,t){e?r(e):n(t)})})}r(e,t||{},function(e,r){e&&(e.code===`EACCES`||t&&t.ignoreErrors)&&(e=null,r=!1),n(e,r)})}function a(e,t){try{return r.sync(e,t||{})}catch(e){if(t&&t.ignoreErrors||e.code===`EACCES`)return!1;throw e}}})),y=t(((t,n)=>{let r=process.platform===`win32`||process.env.OSTYPE===`cygwin`||process.env.OSTYPE===`msys`,i=e(`path`),a=r?`;`:`:`,o=v(),s=e=>Object.assign(Error(`not found: ${e}`),{code:`ENOENT`}),c=(e,t)=>{let n=t.colon||a,i=e.match(/\//)||r&&e.match(/\\/)?[``]:[...r?[process.cwd()]:[],...(t.path||process.env.PATH||``).split(n)],o=r?t.pathExt||process.env.PATHEXT||`.EXE;.CMD;.BAT;.COM`:``,s=r?o.split(n):[``];return r&&e.indexOf(`.`)!==-1&&s[0]!==``&&s.unshift(``),{pathEnv:i,pathExt:s,pathExtExe:o}},l=(e,t,n)=>{typeof t==`function`&&(n=t,t={}),t||={};let{pathEnv:r,pathExt:a,pathExtExe:l}=c(e,t),u=[],d=n=>new Promise((a,o)=>{if(n===r.length)return t.all&&u.length?a(u):o(s(e));let c=r[n],l=/^".*"$/.test(c)?c.slice(1,-1):c,d=i.join(l,e);a(f(!l&&/^\.[\\\/]/.test(e)?e.slice(0,2)+d:d,n,0))}),f=(e,n,r)=>new Promise((i,s)=>{if(r===a.length)return i(d(n+1));let c=a[r];o(e+c,{pathExt:l},(a,o)=>{if(!a&&o)if(t.all)u.push(e+c);else return i(e+c);return i(f(e,n,r+1))})});return n?d(0).then(e=>n(null,e),n):d(0)};n.exports=l,l.sync=(e,t)=>{t||={};let{pathEnv:n,pathExt:r,pathExtExe:a}=c(e,t),l=[];for(let s=0;s<n.length;s++){let c=n[s],u=/^".*"$/.test(c)?c.slice(1,-1):c,d=i.join(u,e),f=!u&&/^\.[\\\/]/.test(e)?e.slice(0,2)+d:d;for(let e=0;e<r.length;e++){let n=f+r[e];try{if(o.sync(n,{pathExt:a}))if(t.all)l.push(n);else return n}catch{}}}if(t.all&&l.length)return l;if(t.nothrow)return null;throw s(e)}})),b=t(((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})),x=t(((t,n)=>{let r=e(`path`),i=y(),a=b();function o(e,t){let n=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=i.sync(e.command,{path:n[a({env:n})],pathExt:t?r.delimiter:void 0})}catch{}finally{c&&process.chdir(o)}return l&&=r.resolve(s?e.options.cwd:``,l),l}function s(e){return o(e)||o(e,!0)}n.exports=s})),S=t(((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})),C=t(((e,t)=>{t.exports=/^#!(.*)/})),w=t(((e,t)=>{let n=C();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}})),T=t(((t,n)=>{let r=e(`fs`),i=w();function a(e){let t=Buffer.alloc(150),n;try{n=r.openSync(e,`r`),r.readSync(n,t,0,150,0),r.closeSync(n)}catch{}return i(t.toString())}n.exports=a})),E=t(((t,n)=>{let r=e(`path`),i=x(),a=S(),o=T(),s=process.platform===`win32`,c=/\.(?:com|exe)$/i,l=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;function u(e){e.file=i(e);let t=e.file&&o(e.file);return t?(e.args.unshift(e.file),e.command=t,i(e)):e.file}function d(e){if(!s)return e;let t=u(e),n=!c.test(t);if(e.options.forceShell||n){let n=l.test(t);e.command=r.normalize(e.command),e.command=a.command(e.command),e.args=e.args.map(e=>a.argument(e,n)),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 f(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:d(r)}n.exports=f})),D=t(((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}})),O=t(((t,n)=>{let r=e(`child_process`),i=E(),a=D();function o(e,t,n){let o=i(e,t,n),s=r.spawn(o.command,o.args,o.options);return a.hookChildProcess(s,o),s}function s(e,t,n){let o=i(e,t,n),s=r.spawnSync(o.command,o.args,o.options);return s.error=s.error||a.verifyENOENTSync(s.status,o),s}n.exports=o,n.exports.spawn=o,n.exports.sync=s,n.exports._parse=i,n.exports._enoent=a})),k=t(((e,t)=>{let{ESLint:n}=l(),{LegacyESLint:r}=f();t.exports={ESLint:n,LegacyESLint:r}})),A=t(((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}})),j=t(((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)})()})),M=t(((e,t)=>{(function(){var e=o(),n=e.map,r=e.sortBy,i=j();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)})),N=t(((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(`
2
+ import{r as e,t}from"./chunk-qnHZjHhP.js";import{C as n,S as r,_ as i,a,n as o,p as s,r as c,t as l,v as u,w as d,x as f,y as p}from"./eslint-BTrx12MV.js";var m=t(((t,n)=>{n.exports=o,o.sync=s;var r=e(`fs`);function i(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 a(e,t,n){return!e.isSymbolicLink()&&!e.isFile()?!1:i(t,n)}function o(e,t,n){r.stat(e,function(r,i){n(r,r?!1:a(i,e,t))})}function s(e,t){return a(r.statSync(e),e,t)}})),h=t(((t,n)=>{n.exports=i,i.sync=a;var r=e(`fs`);function i(e,t,n){r.stat(e,function(e,r){n(e,e?!1:o(r,t))})}function a(e,t){return o(r.statSync(e),t)}function o(e,t){return e.isFile()&&s(e,t)}function s(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}})),g=t(((t,n)=>{e(`fs`);var r=process.platform===`win32`||global.TESTING_WINDOWS?m():h();n.exports=i,i.sync=a;function i(e,t,n){if(typeof t==`function`&&(n=t,t={}),!n){if(typeof Promise!=`function`)throw TypeError(`callback not provided`);return new Promise(function(n,r){i(e,t||{},function(e,t){e?r(e):n(t)})})}r(e,t||{},function(e,r){e&&(e.code===`EACCES`||t&&t.ignoreErrors)&&(e=null,r=!1),n(e,r)})}function a(e,t){try{return r.sync(e,t||{})}catch(e){if(t&&t.ignoreErrors||e.code===`EACCES`)return!1;throw e}}})),_=t(((t,n)=>{let r=process.platform===`win32`||process.env.OSTYPE===`cygwin`||process.env.OSTYPE===`msys`,i=e(`path`),a=r?`;`:`:`,o=g(),s=e=>Object.assign(Error(`not found: ${e}`),{code:`ENOENT`}),c=(e,t)=>{let n=t.colon||a,i=e.match(/\//)||r&&e.match(/\\/)?[``]:[...r?[process.cwd()]:[],...(t.path||process.env.PATH||``).split(n)],o=r?t.pathExt||process.env.PATHEXT||`.EXE;.CMD;.BAT;.COM`:``,s=r?o.split(n):[``];return r&&e.indexOf(`.`)!==-1&&s[0]!==``&&s.unshift(``),{pathEnv:i,pathExt:s,pathExtExe:o}},l=(e,t,n)=>{typeof t==`function`&&(n=t,t={}),t||={};let{pathEnv:r,pathExt:a,pathExtExe:l}=c(e,t),u=[],d=n=>new Promise((a,o)=>{if(n===r.length)return t.all&&u.length?a(u):o(s(e));let c=r[n],l=/^".*"$/.test(c)?c.slice(1,-1):c,d=i.join(l,e);a(f(!l&&/^\.[\\\/]/.test(e)?e.slice(0,2)+d:d,n,0))}),f=(e,n,r)=>new Promise((i,s)=>{if(r===a.length)return i(d(n+1));let c=a[r];o(e+c,{pathExt:l},(a,o)=>{if(!a&&o)if(t.all)u.push(e+c);else return i(e+c);return i(f(e,n,r+1))})});return n?d(0).then(e=>n(null,e),n):d(0)};n.exports=l,l.sync=(e,t)=>{t||={};let{pathEnv:n,pathExt:r,pathExtExe:a}=c(e,t),l=[];for(let s=0;s<n.length;s++){let c=n[s],u=/^".*"$/.test(c)?c.slice(1,-1):c,d=i.join(u,e),f=!u&&/^\.[\\\/]/.test(e)?e.slice(0,2)+d:d;for(let e=0;e<r.length;e++){let n=f+r[e];try{if(o.sync(n,{pathExt:a}))if(t.all)l.push(n);else return n}catch{}}}if(t.all&&l.length)return l;if(t.nothrow)return null;throw s(e)}})),v=t(((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})),y=t(((t,n)=>{let r=e(`path`),i=_(),a=v();function o(e,t){let n=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=i.sync(e.command,{path:n[a({env:n})],pathExt:t?r.delimiter:void 0})}catch{}finally{c&&process.chdir(o)}return l&&=r.resolve(s?e.options.cwd:``,l),l}function s(e){return o(e)||o(e,!0)}n.exports=s})),b=t(((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})),x=t(((e,t)=>{t.exports=/^#!(.*)/})),S=t(((e,t)=>{let n=x();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}})),C=t(((t,n)=>{let r=e(`fs`),i=S();function a(e){let t=Buffer.alloc(150),n;try{n=r.openSync(e,`r`),r.readSync(n,t,0,150,0),r.closeSync(n)}catch{}return i(t.toString())}n.exports=a})),w=t(((t,n)=>{let r=e(`path`),i=y(),a=b(),o=C(),s=process.platform===`win32`,c=/\.(?:com|exe)$/i,l=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;function u(e){e.file=i(e);let t=e.file&&o(e.file);return t?(e.args.unshift(e.file),e.command=t,i(e)):e.file}function d(e){if(!s)return e;let t=u(e),n=!c.test(t);if(e.options.forceShell||n){let n=l.test(t);e.command=r.normalize(e.command),e.command=a.command(e.command),e.args=e.args.map(e=>a.argument(e,n)),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 f(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:d(r)}n.exports=f})),T=t(((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}})),E=t(((t,n)=>{let r=e(`child_process`),i=w(),a=T();function o(e,t,n){let o=i(e,t,n),s=r.spawn(o.command,o.args,o.options);return a.hookChildProcess(s,o),s}function s(e,t,n){let o=i(e,t,n),s=r.spawnSync(o.command,o.args,o.options);return s.error=s.error||a.verifyENOENTSync(s.status,o),s}n.exports=o,n.exports.spawn=o,n.exports.sync=s,n.exports._parse=i,n.exports._enoent=a})),D=t(((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}})),O=t(((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)})()})),k=t(((e,t)=>{(function(){var e=p(),n=e.map,r=e.sortBy,i=O();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)})),A=t(((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(`
3
3
  `).map(e=>n(e)).join(`
4
4
  `)}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||`
5
5
  `+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)===`
6
- `&&(e=e.slice(0,e.length-1)),s(e)}).join(o);return t.trim===!0&&(u=r(u)),u};function i(e){return e}})),P=t(((e,t)=>{(function(){var e=o(),n=e.id,r,i,a,s,c,l,u,d,f,p,m,h,g,_;e.find,r=e.sort,i=e.min,a=e.max,s=e.map,c=e.unlines,e=M(),l=e.nameToRaw,u=e.dasherize,d=e.naturalJoin,f=N(),p=function(e,t){var n=t===void 0?[``,e-1]:[x(` `,e),t-e-1],r=n[0],i=n[1];return function(e){return f(e,{indent:r,width:i,trim:!0})}},m=function(e,t,n){var r=e.option,i=(a=e.shortNames)??[],a,o=e.longNames??[],c=e.type,u,d,f,m,h,g,_,v,y;return e.description,u=t.aliasSeparator,d=t.typeSeparator,f=t.initialIndent,e.negateName&&(r=`no-`+r,o&&=s(function(e){return`no-`+e},o)),m=r.length===1?[r].concat(i,o):i.concat([r],o),h=s(l,m).join(u),g=h.length,_=r===`NUM`?`::`:d,v=_.length,n!=null&&!e.boolean&&f+g+v+c.length>n?(y=p(f+g+v,n),h+``+_+y(c).replace(/^\s+/,``)):h+(e.boolean?``:_+``+c)},h=function(e){e.aliasSeparator??=`, `,e.typeSeparator??=` `,e.descriptionSeparator??=` `,e.initialIndent??=2,e.secondaryIndent??=4,e.maxPadFactor??=1.5},g=function(e,t){var r=t.stdout,i=(a=t.helpStyle)??{},a;return h(i),function(t){var a=r!=null&&r.isTTY?r.columns-1:null,o=a?p(a):n,s,l,d,f,h,g,_,v,b,S,C,w,T;try{s=e(u(t))}catch(e){return l=e,l.message}return d=m(s,i),f=s.default&&!s.negateName?`
7
- default: `+s.default:``,h=s.restPositional?`Everything after this option is considered a positional argument, even if it looks like an option.`:``,g=s.longDescription||s.description&&y(s.description),_=g&&h?g+` `+h:(v=g||h)?v:``,b=`description:`,S=_?a&&_.length-1-b.length>a?`
6
+ `&&(e=e.slice(0,e.length-1)),s(e)}).join(o);return t.trim===!0&&(u=r(u)),u};function i(e){return e}})),j=t(((e,t)=>{(function(){var e=p(),n=e.id,r,i,a,o,s,c,l,u,d,f,m,h,g,_;e.find,r=e.sort,i=e.min,a=e.max,o=e.map,s=e.unlines,e=k(),c=e.nameToRaw,l=e.dasherize,u=e.naturalJoin,d=A(),f=function(e,t){var n=t===void 0?[``,e-1]:[x(` `,e),t-e-1],r=n[0],i=n[1];return function(e){return d(e,{indent:r,width:i,trim:!0})}},m=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)},h=function(e){e.aliasSeparator??=`, `,e.typeSeparator??=` `,e.descriptionSeparator??=` `,e.initialIndent??=2,e.secondaryIndent??=4,e.maxPadFactor??=1.5},g=function(e,t){var r=t.stdout,i=(a=t.helpStyle)??{},a;return h(i),function(t){var a=r!=null&&r.isTTY?r.columns-1:null,o=a?f(a):n,c,u,d,p,h,g,_,v,b,S,C,w,T;try{c=e(l(t))}catch(e){return u=e,u.message}return d=m(c,i),p=c.default&&!c.negateName?`
7
+ 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&&y(c.description),_=g&&h?g+` `+h:(v=g||h)?v:``,b=`description:`,S=_?a&&_.length-1-b.length>a?`
8
8
  `+b+`
9
9
  `+o(_):`
10
- `+b+` `+_:``,C=(v=s.example)?(w=[].concat(v),w.length>1?`
10
+ `+b+` `+_:``,C=(v=c.example)?(w=[].concat(v),w.length>1?`
11
11
  examples:
12
- `+c(w):`
13
- example: `+w[0]):``,T=f||S||C?`
14
- `+x(`=`,d.length):``,d+``+T+f+S+C}},_=function(e){var t=e.options,n=e.prepend,o=e.append,s=(l=e.helpStyle)??{},l,u=e.stdout,f,g,_,y;return h(s),s.aliasSeparator,s.typeSeparator,f=s.descriptionSeparator,g=s.maxPadFactor,_=s.initialIndent,y=s.secondaryIndent,function(e){var l=e??{},h=l.showHidden,S=l.interpolate,C=u!=null&&u.isTTY?u.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,W,G,K,q,J,ee,Y,X;for(n&&(T(S?b(n,S):n),T()),E=[],D=0,O=0,k=[],A=0,j=(l=t).length;A<j;++A)M=l[A],(h||!M.hidden)&&((N=M.heading)?E.push({type:`heading`,value:N}):(P=m(M,s,C),F=[],(N=M.description)!=null&&F.push(N),(N=M.enum)&&F.push(`either: `+d(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=_+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=f.length,C!=null)for(W=0,G=0,A=0,j=E.length;A<j;++A)M=E[A],M.type===`option`&&(P=M.pre,I=M.desc,K=M.descLen,K===0?M.wrap=`none`:(L=a(H,P.length)+_+U,q=L+K,q>C?K/2.5>C-L?(W++,M.wrap=`full`):(G++,M.wrap=`partial`):M.wrap=`none`));for(J=x(` `,_),ee=D>1&&W+G*.5>D*.5,A=0,j=E.length;A<j;++A)if(Y=A,M=E[A],M.type===`heading`)Y!==0&&T(),T(M.value+`:`);else{if(P=M.pre,I=M.desc,K=M.descLen,X=M.wrap,C!=null){if(ee||X===`full`){X=p(_+y,C),T(J+``+P+`
15
- `+X(I));continue}else if(X===`partial`){X=p(_+U+a(H,P.length),C),T(J+``+v(P,H)+f+X(I).replace(/^\s+/,``));continue}}T(K===0?J+``+P:J+``+v(P,H)+f+I)}return o&&(T(),T(S?b(o,S):o)),c(w)}};function v(e,t){var n=t-e.length;return e+``+x(` `,n>0?n:0)}function y(e){var t=e.charAt(0).toUpperCase(),n=e.slice(1),r=/[\.!\?]$/.test(e)?``:`.`;return t+``+n+r}function b(e,t){return e.replace(/{{([a-zA-Z$_][a-zA-Z$_0-9]*)}}/g,function(e,n){return t[n]??`{{`+n+`}}`})}t.exports={generateHelp:_,generateHelpForOption:g};function x(e,t){for(var n=``;t>0;(t>>=1)&&(e+=e))t&1&&(n+=e);return n}}).call(e)})),F=t(((e,t)=>{(function(){var e,n,r,i,a,s,c,l,u,d,f,m,g,_,v,y,b,x,S,C,w,T={}.toString,E=[].slice,D=Array.from||function(e){return E.call(e)};e=`0.9.4`,n=o(),n.id,r=n.map,n.compact,i=n.any,n.groupBy,a=n.partition,s=n.chars,n.isItNaN,c=n.keys,n.Obj,l=n.camelize,u=A(),n=M(),d=n.closestString,f=n.nameToRaw,m=n.dasherize,g=n.naturalJoin,n=P(),_=n.generateHelp,v=n.generateHelpForOption,n=h(),y=n.parsedTypeCheck,b=n.parseType,x=p().parsedTypeParse,S=function(e){var t,n,r={};for(t in e)n=e[t],r[l(t)]=n;return r},C=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)||[])},w=function(e){var t={},n={},r=[],o,l,p;return T.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),o=function(i){var o,s,c,l,u,d,f,p,m,h,g,_,v,y,S,C,w,O,k,A,j,M;if(T.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=b(p)}catch(e){throw h=e,Error(`Option '`+l+`': Error parsing type '`+c.type+`': `+h.message)}}if(c.default)try{n[l]=x(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=[],_=c.parsedType,v=0,y=(d=c.enum).length;v<y;++v){S=d[v];try{g.push(x(_,S))}catch(e){throw h=e,Error(`Option '`+l+`': Error parsing enum value '`+S+`' for type '`+c.type+`': `+h.message)}}c.parsedPossibilities=g}if(m=c.dependsOn)if(m.length)if(d=[].concat(c.dependsOn),C=d[0],w=E.call(d,1),O=C.toLowerCase(),w.length)if(O===`and`||O===`or`)c.dependsOn=[O].concat(D(w));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`,C];else c.dependsOn=null;if(c.required&&r.push(l),t[l]=c,c.concatRepeatedArrays!=null){if(k=c.concatRepeatedArrays,T.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)),v=0,y=(d=c.aliases).length;v<y;++v){if(A=d[v],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}},o(e.options),l=function(e){var n=t[e],r;if(n==null)throw r=d(c(t),e),Error(`Invalid option '`+f(e)+`'`+(r?` - perhaps you meant '`+f(r)+`'?`:`.`));return n},p=function(a,o){var c=(o??{}).slice,d={},p=[],h=!1,_=!1,v=null,b=function(e,t){var n=l(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`?[x(n.parsedType[0].of,t)]:x(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 u(e,r)},n.parsedPossibilities))throw Error(`Option `+e+`: '`+r+`' not one of `+g(n.enum)+`.`)}o=T.call(d[e]).slice(8,-1),d[e]==null?d[e]=r:n.concatRepeatedArrays!=null&&n.concatRepeatedArrays[0]&&o===`Array`?d[e]=d[e].concat(r):n.mergeRepeatedObjects&&o===`Object`?O(d[e],r):d[e]=r,n.restPositional&&(h=!0),n.overrideRequired&&(_=!0)},w=function(){var e,t,r;for(e in t=n)r=t[e],d[e]??(d[e]=r)},D=function(){var e,t,n,i;if(!_){for(e=0,n=(t=r).length;e<n;++e)if(i=t[e],!d[i])throw Error(`Option `+f(i)+` is required.`)}},k=function(e,t){throw Error(`The options `+f(e)+` and `+f(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,u,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],T.call(c).slice(8,-1)===`Array`){for(l=0,u=c.length;l<u;++l)if(f=c[l],f in d)if(a!=null)k(a,f);else{a=f;break}}else c in d&&(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=E.call(t,1),i=0,a=r.length;i<a;++i)if(o=r[i],s=d[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 d)j(t[e])},N=function(){if(v)throw Error(`Value for '`+v+`' of type '`+l(v).type+`' required.`)},P,F,I,L,R,z,B,V,H,U,W,G,K,q,J,ee,Y,X,te,ne,Z,Q,$,re,ie;switch(T.call(a).slice(8,-1)){case`String`:P=C(a.slice(c??0));break;case`Array`:P=a.slice(c??2);break;case`Object`:for(F in d={},a)if(I=a[F],F!==`_`)if(L=l(m(F)),y(L.parsedType,I))d[L.option]=I;else throw Error(`Option '`+L.option+`': Invalid type for '`+I+`' - expected type '`+L.type+`'.`);return A(),M(),w(),D(),R=S(d),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)p.push(V);else if(H=V.match(/^(--?)([a-zA-Z][-a-zA-Z0-9]*)(=)?(.*)?$/)){if(U=H,N(),W=U[1].length===1,G=U[2],K=U[3]!=null,q=U[4],K&&q==null)throw Error(`No value for '`+G+`' specified.`);if(W)for(J=s(G),ee=J.length,Y=0,X=J.length;Y<X;++Y)if(te=Y,ne=J[Y],Z=l(ne),Q=Z.option,h)p.push(ne);else if(te===ee-1)K?($=Z.boolean?x([{type:`Boolean`}],q):q,b(Q,$)):Z.boolean?b(Q,!0):v=Q;else if(Z.boolean)b(Q,!0);else throw Error(`Can't set argument '`+ne+`' when not last flag in a group of short flags.`);else if(re=!1,(H=G.match(/^no-(.+)$/))?(re=!0,ie=H[1],Z=l(ie)):Z=l(G),Q=Z.option,Z.boolean)$=K?x([{type:`Boolean`}],q):!0,re?b(Q,!$):b(Q,$);else{if(re)throw Error(`Only use 'no-' prefix for Boolean options, not with '`+ie+`'.`);K?b(Q,q):v=Q}}else if(H=V.match(/^-([0-9]+(?:\.[0-9]+)?)$/)){if(Z=t.NUM,!Z)throw Error(`No -NUM option defined.`);b(Z.option,H[1])}else v?(b(v,V),v=null):(p.push(V),e.positionalAnywhere||(h=!0));return N(),A(),M(),w(),D(),R=S(d),R._=p,R},{parse:p,parseArgv:function(e){return p(e,{slice:2})},generateHelp:_(e),generateHelpForOption:v(l,e)}},w.VERSION=e,t.exports=w;function O(e,t){var n={}.hasOwnProperty;for(var r in t)n.call(t,r)&&(e[r]=t[r]);return e}}).call(e)})),I=t(((e,t)=>{let n=F();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)})}})),L=t(((e,t)=>{t.exports={info(...e){console.log(...e)},warn(...e){console.warn(...e)},error(...e){console.error(...e)}}})),R=t(((t,n)=>{let r=e(`node:path`),i=O(),a=e(`node:os`),o=L(),s=m();function c(){let e=new Map;function t(e,t){return!r.relative(e,t).startsWith(`..`)}function n(t,n){let r=[t,...n].join(` `);if(e.has(r))return e.get(r);let a=i.sync(t,n,{encoding:`utf8`});if(a.error)throw a.error;let o=a.stdout.trim();return e.set(r,o),o}function s(e){return e.startsWith(`v`)?e:`v${e}`}function c(e){let t=[`--version`];try{return s(n(e,t))}catch(n){throw o.error(`Error finding ${e} version running the command \`${e} ${t.join(` `)}\``),n}}function l(e,{global:r=!1}={}){let i=[`bin`,`-g`],a=[`ls`,`--depth=0`,`--json`,e];r&&a.push(`-g`);try{let e=JSON.parse(n(`npm`,a));if(Object.keys(e).length===0||!(e.dependencies&&e.dependencies.eslint))return`Not found`;let[,c]=process.argv,l;try{l=n(`npm`,i)}catch(e){throw o.error(`Error finding npm binary path when running command \`npm ${i.join(` `)}\``),e}let u=t(l,c),d=e.dependencies.eslint.version;return(r&&u||!r&&!u)&&(d+=` (Currently used)`),s(d)}catch(t){throw o.error(`Error finding ${e} version running the command \`npm ${a.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: ${a.platform()} ${a.release()}`].join(`
16
- `)}function l(){return`v${s.version}`}n.exports={__esModule:!0,environment:c,version:l}})),z=t((t=>{let{createRequire:n}=e(`module`),{pathToFileURL:r}=e(`url`),i=new Set([`/`,`\\`]);function a(e){return i.has(e[e.length-1])?e:e+`/`}t.ModuleImporter=class{constructor(e=process.cwd()){this.cwd=a(e)}resolve(e){return n(this.cwd).resolve(e)}import(e){return import(r(this.resolve(e)).href)}}})),B=t(((e,t)=>{let{normalizeSeverityToString:n}=u(),{getShorthandName:r,normalizePackageName:i}=a(),{ModuleImporter:o}=z();async function s(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 c(e){return e.severity===2}function l(e){return e.severity===2}async function d({cache:e,cacheFile:t,cacheLocation:r,cacheStrategy:i,concurrency:a,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 o;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 s(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?c:!0),fixTypes:v,ignore:x,overrideConfig:B,overrideConfigFile:V,passOnNoPatterns:L};return z===`flat`?(U.concurrency=a,U.flags=y,U.ignorePatterns=C,U.stats=F,U.warnIgnored=I,U.ruleFilter=O&&R===-1?l:()=>!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=d})),V=t(((t,n)=>{let r=e(`node:fs`),i=e(`node:path`),{calculateStatsPerFile:a}=d(),o=c();n.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:n}=this.applySuppressions(e,t);for(let e in n)if(t[e]){for(let r in n[e]){if(!t[e][r])continue;let i=t[e][r].count,a=n[e][r].count;i===a?delete t[e][r]:t[e][r].count-=a}Object.keys(t[e]).length===0&&delete t[e]}for(let e of Object.keys(t)){let n=i.resolve(this.cwd,e);r.existsSync(n)||delete t[e]}return this.save(t)}applySuppressions(t,n){let r=structuredClone(t),i={};for(let t of r){let r=this.getRelativeFilePath(t.filePath);if(!n[r])continue;let o=e.countViolationsByRule(t.messages),s=!1;for(let a in o){if(!n[r][a])continue;let c=n[r][a].count,l=o[a].count;l<=c&&(e.suppressMessagesByRule(t,a),s=!0),l<c&&(i[r]??={},i[r][a]??={},i[r][a].count=c-l)}for(let e in n[r])o[e]||(i[r]??={},i[r][e]=n[r][e]);s&&Object.assign(t,a(t.messages))}return{results:r,unused:i}}async load(){try{let e=await r.promises.readFile(this.filePath,`utf8`);return JSON.parse(e)}catch(e){if(e.code===`ENOENT`)return{};throw Error(`Failed to parse suppressions file at ${this.filePath}`,{cause:e})}}save(e){return r.promises.writeFile(this.filePath,o(e,{space:2}))}static countViolationsByRule(e){return e.reduce((e,t)=>(t.severity===2&&t.ruleId&&(e[t.ruleId]??={count:0},e[t.ruleId].count++),e),{})}getRelativeFilePath(e){return i.relative(this.cwd,e).split(i.sep).join(i.posix.sep)}static suppressMessagesByRule(e,t){let n=e.messages.filter(e=>e.ruleId===t);e.suppressedMessages=e.suppressedMessages.concat(n.map(e=>(e.suppressions=[{kind:`file`,justification:``}],e))),e.messages=e.messages.filter(e=>e.ruleId!==t)}}}})),H=t(((t,a)=>{n();let o=e(`node:fs`),{mkdir:c,stat:u,writeFile:f}=e(`node:fs/promises`),p=e(`node:path`),{pathToFileURL:m}=e(`node:url`),{LegacyESLint:h}=k(),{ESLint:g,shouldUseFlatConfig:_,locateConfigFileToUse:v}=l(),y=I(),b=L(),x=R(),S=B(),{getCacheFile:C}=d(),{SuppressionsService:w}=V(),T=i()(`eslint:cli`);function E(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 D(e){let t=new URL(`./shared/translate-cli-options.js`,m(r)).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 A(e){try{return(await u(e)).isDirectory()}catch(e){if(e.code===`ENOENT`||e.code===`ENOTDIR`)return!1;throw e}}async function j(e,t,n,r,i){let a;try{a=await e.loadFormatter(n)}catch(e){return b.error(e.message),!1}let o=await a.format(t,i);if(r){let e=p.resolve(process.cwd(),r);if(await A(e))return b.error(`Cannot write to output file path, it is a directory: %s`,r),!1;try{await c(p.dirname(e),{recursive:!0}),await f(e,o)}catch(e){return b.error(`There was a problem writing the output file:
17
- %s`,e),!1}}else o&&b.info(o);return!0}function M(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 N={async calculateInspectConfigFlags(e){let{configFilePath:t,basePath:n}=await v({cwd:process.cwd(),configFile:e});return[`--config`,t,`--basePath`,n]},async execute(e,t,n=!0){Array.isArray(e)&&T(`CLI args: %o`,e.slice(2));let r=n&&await _();if(T(`Using flat config?`,r),n&&!r){let{WarningService:e}=s();new e().emitESLintRCWarning()}let i=y(r),a;try{a=i.parse(e),M(a.concurrency)}catch(e){T(`Error parsing CLI options:`,e.message);let t=e.message;return r&&(t+=`
18
- 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.`),b.error(t),2}let c=a._,l=typeof t==`string`;if(a.help)return b.info(i.generateHelp()),0;if(a.version)return b.info(x.version()),0;if(a.envInfo)try{return b.info(x.environment()),0}catch(e){return T(`Error retrieving environment info`),b.error(e.message),2}if(a.printConfig){if(c.length)return b.error(`The --print-config option must be used with exactly one file name.`),2;if(l)return b.error(`The --print-config option is not available for piped-in code.`),2;let e=await(r?new g(await S(a,`flat`)):new h(await S(a))).calculateConfigForFile(a.printConfig);return b.info(JSON.stringify(e,null,` `)),0}if(a.inspectConfig){b.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 S(a,`flat`),t=O(),n=await N.calculateInspectConfigFlags(e.overrideConfigFile);t.sync(`npx`,[`@eslint/config-inspector@latest`,...n],{encoding:`utf8`,stdio:`inherit`})}catch(e){return b.error(e),2}return 0}if(T(`Running on ${l?`text`:`files`}`),a.fix&&a.fixDryRun)return b.error(`The --fix option and the --fix-dry-run option cannot be used together.`),2;if(l&&a.fix)return b.error(`The --fix option is not available for piped-in code; use --fix-dry-run instead.`),2;if(a.fixType&&!a.fix&&!a.fixDryRun)return b.error(`The --fix-type option requires either --fix or --fix-dry-run.`),2;if(a.reportUnusedDisableDirectives&&a.reportUnusedDisableDirectivesSeverity!==void 0)return b.error(`The --report-unused-disable-directives option and the --report-unused-disable-directives-severity option cannot be used together.`),2;if(r&&a.ext){if(a.ext.length===0)return b.error(`The --ext option value cannot be empty.`),2;let e=a.ext.indexOf(``);if(e>=0)return b.error(`The --ext option arguments cannot be empty strings. Found an empty string at index ${e}.`),2}if(a.suppressAll&&a.suppressRule)return b.error(`The --suppress-all option and the --suppress-rule option cannot be used together.`),2;if(a.suppressAll&&a.pruneSuppressions)return b.error(`The --suppress-all option and the --prune-suppressions option cannot be used together.`),2;if(a.suppressRule&&a.pruneSuppressions)return b.error(`The --suppress-rule option and the --prune-suppressions option cannot be used together.`),2;if(l&&(a.suppressAll||a.suppressRule||a.pruneSuppressions))return b.error(`The --suppress-all, --suppress-rule, and --prune-suppressions options cannot be used with piped-in code.`),2;let u=r?g:h,d;if(a.concurrency&&a.concurrency!==`off`){let e=D(a);d=await g.fromOptionsModule(e)}else d=new u(await S(a,r?`flat`:`eslintrc`));let f;f=l?await d.lintText(t,{filePath:a.stdinFilename,warnIgnored:r?void 0:!0}):await d.lintFiles(c),a.fix&&(T(`Fix mode enabled - applying fixes`),await u.outputFixes(f));let p={};if(!l){let e=C(a.suppressionsLocation||`eslint-suppressions.json`,process.cwd(),{prefix:`suppressions_`});if(a.suppressionsLocation&&!o.existsSync(e)&&!a.suppressAll&&!a.suppressRule)return b.error("The suppressions file does not exist. Please run the command with `--suppress-all` or `--suppress-rule` to create it."),2;if(a.suppressAll||a.suppressRule||a.pruneSuppressions||o.existsSync(e)){let t=new w({filePath:e,cwd:process.cwd()});(a.suppressAll||a.suppressRule)&&await t.suppress(f,a.suppressRule),a.pruneSuppressions&&await t.prune(f);let n=t.applySuppressions(f,await t.load());f=n.results,p=n.unused}}let m=f;a.quiet&&(T(`Quiet mode enabled - filtering out warnings`),m=u.getErrorResults(m));let v=E(f),k=a.maxWarnings>=0&&v.warningCount>a.maxWarnings,A=k?{maxWarningsExceeded:{maxWarnings:a.maxWarnings,foundWarnings:v.warningCount}}:{};if(await j(d,m,a.format,a.outputFile,A)){let e=a.exitOnFatalError&&v.fatalErrorCount>0;return!v.errorCount&&k&&b.error(`ESLint found too many warnings (maximum: %s).`,a.maxWarnings),!a.passOnUnprunedSuppressions&&Object.keys(p).length>0?(b.error("There are suppressions left that do not occur anymore. Consider re-running the command with `--prune-suppressions`."),T(JSON.stringify(p,null,2)),2):e?2:v.errorCount||k?1:0}return 2}};a.exports=N})),U=t((()=>{e(`node:module`).enableCompileCache?.(),process.argv.includes(`--debug`)&&i().enable(`eslint:*,-eslint:code-path,eslintrc:*`);function t(){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 n(t){let n=e(`node:util`);if(typeof t!=`object`||!t)return String(t);if(typeof t.messageTemplate==`string`)try{return e(`../messages/${t.messageTemplate}.js`)(t.messageData||{})}catch{}return typeof t.stack==`string`?t.stack:n.format(`%o`,t)}let r=new Set,a=!1;function o(e){process.exitCode=2,a=!0;let{version:t}=m(),i=`
12
+ `+s(w):`
13
+ example: `+w[0]):``,T=p||S||C?`
14
+ `+x(`=`,d.length):``,d+``+T+p+S+C}},_=function(e){var t=e.options,n=e.prepend,o=e.append,c=(l=e.helpStyle)??{},l,d=e.stdout,p,g,_,y;return h(c),c.aliasSeparator,c.typeSeparator,p=c.descriptionSeparator,g=c.maxPadFactor,_=c.initialIndent,y=c.secondaryIndent,function(e){var l=e??{},h=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,W,G,K,q,J,ee,Y,X;for(n&&(T(S?b(n,S):n),T()),E=[],D=0,O=0,k=[],A=0,j=(l=t).length;A<j;++A)M=l[A],(h||!M.hidden)&&((N=M.heading)?E.push({type:`heading`,value:N}):(P=m(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=_+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=p.length,C!=null)for(W=0,G=0,A=0,j=E.length;A<j;++A)M=E[A],M.type===`option`&&(P=M.pre,I=M.desc,K=M.descLen,K===0?M.wrap=`none`:(L=a(H,P.length)+_+U,q=L+K,q>C?K/2.5>C-L?(W++,M.wrap=`full`):(G++,M.wrap=`partial`):M.wrap=`none`));for(J=x(` `,_),ee=D>1&&W+G*.5>D*.5,A=0,j=E.length;A<j;++A)if(Y=A,M=E[A],M.type===`heading`)Y!==0&&T(),T(M.value+`:`);else{if(P=M.pre,I=M.desc,K=M.descLen,X=M.wrap,C!=null){if(ee||X===`full`){X=f(_+y,C),T(J+``+P+`
15
+ `+X(I));continue}else if(X===`partial`){X=f(_+U+a(H,P.length),C),T(J+``+v(P,H)+p+X(I).replace(/^\s+/,``));continue}}T(K===0?J+``+P:J+``+v(P,H)+p+I)}return o&&(T(),T(S?b(o,S):o)),s(w)}};function v(e,t){var n=t-e.length;return e+``+x(` `,n>0?n:0)}function y(e){var t=e.charAt(0).toUpperCase(),n=e.slice(1),r=/[\.!\?]$/.test(e)?``:`.`;return t+``+n+r}function b(e,t){return e.replace(/{{([a-zA-Z$_][a-zA-Z$_0-9]*)}}/g,function(e,n){return t[n]??`{{`+n+`}}`})}t.exports={generateHelp:_,generateHelpForOption:g};function x(e,t){for(var n=``;t>0;(t>>=1)&&(e+=e))t&1&&(n+=e);return n}}).call(e)})),M=t(((e,t)=>{(function(){var e,n,r,a,o,s,c,l,d,f,m,h,g,_,v,y,b,x,S,C,w,T={}.toString,E=[].slice,O=Array.from||function(e){return E.call(e)};e=`0.9.4`,n=p(),n.id,r=n.map,n.compact,a=n.any,n.groupBy,o=n.partition,s=n.chars,n.isItNaN,c=n.keys,n.Obj,l=n.camelize,d=D(),n=k(),f=n.closestString,m=n.nameToRaw,h=n.dasherize,g=n.naturalJoin,n=j(),_=n.generateHelp,v=n.generateHelpForOption,n=u(),y=n.parsedTypeCheck,b=n.parseType,x=i().parsedTypeParse,S=function(e){var t,n,r={};for(t in e)n=e[t],r[l(t)]=n;return r},C=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)||[])},w=function(e){var t={},n={},r=[],i,l,u;return T.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),i=function(i){var a,s,c,l,u,d,f,p,m,h,g,_,v,y,S,C,w,D,k,A,j,M;if(T.call(i).slice(8,-1)!==`Array`)throw Error(`No options defined.`);for(a=0,s=i.length;a<s;++a)if(c=i[a],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=b(p)}catch(e){throw h=e,Error(`Option '`+l+`': Error parsing type '`+c.type+`': `+h.message)}}if(c.default)try{n[l]=x(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=[],_=c.parsedType,v=0,y=(d=c.enum).length;v<y;++v){S=d[v];try{g.push(x(_,S))}catch(e){throw h=e,Error(`Option '`+l+`': Error parsing enum value '`+S+`' for type '`+c.type+`': `+h.message)}}c.parsedPossibilities=g}if(m=c.dependsOn)if(m.length)if(d=[].concat(c.dependsOn),C=d[0],w=E.call(d,1),D=C.toLowerCase(),w.length)if(D===`and`||D===`or`)c.dependsOn=[D].concat(O(w));else throw Error(`Option '`+l+`': If you have more than one dependency, you must specify either 'and' or 'or'`);else (d=D.toLowerCase())===`and`||d===`or`?c.dependsOn=null:c.dependsOn=[`and`,C];else c.dependsOn=null;if(c.required&&r.push(l),t[l]=c,c.concatRepeatedArrays!=null){if(k=c.concatRepeatedArrays,T.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)),v=0,y=(d=c.aliases).length;v<y;++v){if(A=d[v],t[A]!=null)throw Error(`Option '`+A+`' already defined.`);t[A]=c}d=o(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}},i(e.options),l=function(e){var n=t[e],r;if(n==null)throw r=f(c(t),e),Error(`Invalid option '`+m(e)+`'`+(r?` - perhaps you meant '`+m(r)+`'?`:`.`));return n},u=function(i,o){var c=(o??{}).slice,u={},f=[],p=!1,_=!1,v=null,b=function(e,t){var n=l(e),r,i,o;if(n.boolean)r=t;else{try{i=n.concatRepeatedArrays,r=i!=null&&i[0]&&i[1].oneValuePerFlag&&n.parsedType.length===1&&n.parsedType[0].structure===`array`?[x(n.parsedType[0].of,t)]:x(n.parsedType,t)}catch{throw Error(`Invalid value for option '`+e+`' - expected type `+n.type+`, received value: `+t+`.`)}if(n.enum&&!a(function(e){return d(e,r)},n.parsedPossibilities))throw Error(`Option `+e+`: '`+r+`' not one of `+g(n.enum)+`.`)}o=T.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`?A(u[e],r):u[e]=r,n.restPositional&&(p=!0),n.overrideRequired&&(_=!0)},w=function(){var e,t,r;for(e in t=n)r=t[e],u[e]??(u[e]=r)},D=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 `+m(i)+` is required.`)}},O=function(e,t){throw Error(`The options `+m(e)+` and `+m(t)+` are mutually exclusive - you cannot use them at the same time.`)},k=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],T.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)O(a,f);else{a=f;break}}else c in u&&(a==null?a=c:O(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=E.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(v)throw Error(`Value for '`+v+`' of type '`+l(v).type+`' required.`)},P,F,I,L,R,z,B,V,H,U,W,G,K,q,J,ee,Y,X,te,ne,Z,Q,$,re,ie;switch(T.call(i).slice(8,-1)){case`String`:P=C(i.slice(c??0));break;case`Array`:P=i.slice(c??2);break;case`Object`:for(F in u={},i)if(I=i[F],F!==`_`)if(L=l(h(F)),y(L.parsedType,I))u[L.option]=I;else throw Error(`Option '`+L.option+`': Invalid type for '`+I+`' - expected type '`+L.type+`'.`);return k(),M(),w(),D(),R=S(u),R._=i._||[],R;default:throw Error(`Invalid argument to 'parse': `+i+`.`)}for(z=0,B=P.length;z<B;++z)if(V=P[z],V===`--`)p=!0;else if(p)f.push(V);else if(H=V.match(/^(--?)([a-zA-Z][-a-zA-Z0-9]*)(=)?(.*)?$/)){if(U=H,N(),W=U[1].length===1,G=U[2],K=U[3]!=null,q=U[4],K&&q==null)throw Error(`No value for '`+G+`' specified.`);if(W)for(J=s(G),ee=J.length,Y=0,X=J.length;Y<X;++Y)if(te=Y,ne=J[Y],Z=l(ne),Q=Z.option,p)f.push(ne);else if(te===ee-1)K?($=Z.boolean?x([{type:`Boolean`}],q):q,b(Q,$)):Z.boolean?b(Q,!0):v=Q;else if(Z.boolean)b(Q,!0);else throw Error(`Can't set argument '`+ne+`' when not last flag in a group of short flags.`);else if(re=!1,(H=G.match(/^no-(.+)$/))?(re=!0,ie=H[1],Z=l(ie)):Z=l(G),Q=Z.option,Z.boolean)$=K?x([{type:`Boolean`}],q):!0,re?b(Q,!$):b(Q,$);else{if(re)throw Error(`Only use 'no-' prefix for Boolean options, not with '`+ie+`'.`);K?b(Q,q):v=Q}}else if(H=V.match(/^-([0-9]+(?:\.[0-9]+)?)$/)){if(Z=t.NUM,!Z)throw Error(`No -NUM option defined.`);b(Z.option,H[1])}else v?(b(v,V),v=null):(f.push(V),e.positionalAnywhere||(p=!0));return N(),k(),M(),w(),D(),R=S(u),R._=f,R},{parse:u,parseArgv:function(e){return u(e,{slice:2})},generateHelp:_(e),generateHelpForOption:v(l,e)}},w.VERSION=e,t.exports=w;function A(e,t){var n={}.hasOwnProperty;for(var r in t)n.call(t,r)&&(e[r]=t[r]);return e}}).call(e)})),N=t(((e,t)=>{let n=M();t.exports=function(){return n({prepend:`eslint [options] file.js [file.js] [dir]`,defaults:{concatRepeatedArrays:!0,mergeRepeatedObjects:!0},options:[{heading:`Basic configuration`},{option:`config-lookup`,type:`Boolean`,default:`true`,description:`Disable look up for eslint.config.js`},{option:`config`,alias:`c`,type:`path::String`,description:`Use this configuration instead of eslint.config.js, eslint.config.mjs, or eslint.config.cjs`},{option:`inspect-config`,type:`Boolean`,description:`Open the config inspector with the current configuration`},{option:`ext`,type:`[String]`,description:`Specify additional file extensions to lint`},{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`},{heading:`Specify Rules and Plugins`},{option:`plugin`,type:`[String]`,description:`Specify plugins`},{option:`rule`,type:`Object`,description:`Specify rules`},{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`},{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`,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`]},{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`]},{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`},{option:`warn-ignored`,type:`Boolean`,default:`true`,description:`Suppress warnings when the file list includes ignored files`},{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`},{option:`stats`,type:`Boolean`,default:`false`,description:`Add statistics to the lint report`},{option:`flag`,type:`[String]`,description:`Enable a feature flag`},{option:`mcp`,type:`Boolean`,description:`Start the ESLint MCP server`},{option:`concurrency`,type:`Int|String`,default:`off`,description:`Number of linting threads, auto to choose automatically, off for no multithreading`}]})}})),P=t(((e,t)=>{t.exports={info(...e){console.log(...e)},warn(...e){console.warn(...e)},error(...e){console.error(...e)}}})),F=t(((t,r)=>{let i=e(`node:path`),a=E(),o=e(`node:os`),s=P(),c=n();function l(){let e=new Map;function t(e,t){return!i.relative(e,t).startsWith(`..`)}function n(t,n){let r=[t,...n].join(` `);if(e.has(r))return e.get(r);let i=a.sync(t,n,{encoding:`utf8`});if(i.error)throw i.error;let o=i.stdout.trim();return e.set(r,o),o}function r(e){return e.startsWith(`v`)?e:`v${e}`}function c(e){let t=[`--version`];try{return r(n(e,t))}catch(n){throw s.error(`Error finding ${e} version running the command \`${e} ${t.join(` `)}\``),n}}function l(e,{global:i=!1}={}){let a=[`bin`,`-g`],o=[`ls`,`--depth=0`,`--json`,e];i&&o.push(`-g`);try{let e=JSON.parse(n(`npm`,o));if(Object.keys(e).length===0||!(e.dependencies&&e.dependencies.eslint))return`Not found`;let[,c]=process.argv,l;try{l=n(`npm`,a)}catch(e){throw s.error(`Error finding npm binary path when running command \`npm ${a.join(` `)}\``),e}let u=t(l,c),d=e.dependencies.eslint.version;return(i&&u||!i&&!u)&&(d+=` (Currently used)`),r(d)}catch(t){throw s.error(`Error finding ${e} version running the command \`npm ${o.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: ${o.platform()} ${o.release()}`].join(`
16
+ `)}function u(){return`v${c.version}`}r.exports={__esModule:!0,environment:l,version:u}})),I=t((t=>{let{createRequire:n}=e(`module`),{pathToFileURL:r}=e(`url`),i=new Set([`/`,`\\`]);function a(e){return i.has(e[e.length-1])?e:e+`/`}t.ModuleImporter=class{constructor(e=process.cwd()){this.cwd=a(e)}resolve(e){return n(this.cwd).resolve(e)}import(e){return import(r(this.resolve(e)).href)}}})),L=t(((e,t)=>{let{normalizeSeverityToString:n}=s(),{getShorthandName:r,normalizePackageName:i}=a(),{ModuleImporter:o}=I();async function c(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 l(e){return e.severity===2}function u(e){return e.severity===2}async function d({cache:e,cacheFile:t,cacheLocation:r,cacheStrategy:i,concurrency:a,config:s,configLookup:d,errorOnUnmatchedPattern:f,ext:p,fix:m,fixDryRun:h,fixType:g,flag:_,global:v,ignore:y,ignorePattern:b,inlineConfig:x,parser:S,parserOptions:C,plugin:w,quiet:T,reportUnusedDisableDirectives:E,reportUnusedDisableDirectivesSeverity:D,reportUnusedInlineConfigs:O,rule:k,stats:A,warnIgnored:j,passOnNoPatterns:M,maxWarnings:N}){let P=new o,F=typeof s==`string`?s:!d;F===!1&&(F=void 0);let I={};v&&(I.globals=v.reduce((e,t)=>(t.endsWith(`:true`)?e[t.slice(0,-5)]=`writable`:e[t]=`readonly`,e),{})),C&&(I.parserOptions=C),S&&(I.parser=await P.import(S));let L=[{...Object.keys(I).length>0?{languageOptions:I}:{},rules:k||{}}];return(E||D!==void 0)&&(L[0].linterOptions={reportUnusedDisableDirectives:E?`error`:n(D)}),O!==void 0&&(L[0].linterOptions={...L[0].linterOptions,reportUnusedInlineConfigs:n(O)}),w&&(L[0].plugins=await c(P,w)),p&&L.push({files:p.map(e=>`**/*${e.startsWith(`.`)?``:`.`}${e}`)}),{allowInlineConfig:x,cache:e,cacheLocation:r||t,cacheStrategy:i,concurrency:a,errorOnUnmatchedPattern:f,fix:(m||h)&&(T?l:!0),fixTypes:g,flags:_,ignore:y,ignorePatterns:b,overrideConfig:L,overrideConfigFile:F,passOnNoPatterns:M,ruleFilter:T&&N===-1?u:()=>!0,stats:A,warnIgnored:j}}t.exports=d})),R=t(((t,n)=>{r();let i=e(`node:fs`),{mkdir:a,stat:s,writeFile:u}=e(`node:fs/promises`),p=e(`node:path`),{pathToFileURL:m}=e(`node:url`),{ESLint:h,locateConfigFileToUse:g}=l(),_=N(),v=P(),y=F(),b=L(),{getCacheFile:x}=o(),{SuppressionsService:S}=c(),C=d()(`eslint:cli`);function w(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 T(e){let t=new URL(`./shared/translate-cli-options.js`,m(f)).href,n=`import translateOptions from ${JSON.stringify(t)};\nexport default await translateOptions(${JSON.stringify(e)});\n`;return new URL(`data:text/javascript;base64,${Buffer.from(n).toString(`base64`)}`)}async function D(e){try{return(await s(e)).isDirectory()}catch(e){if(e.code===`ENOENT`||e.code===`ENOTDIR`)return!1;throw e}}async function O(e,t,n,r,i){let o;try{o=await e.loadFormatter(n)}catch(e){return v.error(e.message),!1}let s=await o.format(t,i);if(r){let e=p.resolve(process.cwd(),r);if(await D(e))return v.error(`Cannot write to output file path, it is a directory: %s`,r),!1;try{await a(p.dirname(e),{recursive:!0}),await u(e,s)}catch(e){return v.error(`There was a problem writing the output file:
17
+ %s`,e),!1}}else s&&v.info(s);return!0}function k(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 A={async calculateInspectConfigFlags(e){let{configFilePath:t,basePath:n}=await g({cwd:process.cwd(),configFile:e});return[`--config`,t,`--basePath`,n]},async execute(e,t){Array.isArray(e)&&C(`CLI args: %o`,e.slice(2));let n=_(),r;try{r=n.parse(e),k(r.concurrency)}catch(e){return v.error(e.message),2}let a=r._,o=typeof t==`string`;if(r.help)return v.info(n.generateHelp()),0;if(r.version)return v.info(y.version()),0;if(r.envInfo)try{return v.info(y.environment()),0}catch(e){return C(`Error retrieving environment info`),v.error(e.message),2}if(r.printConfig){if(a.length)return v.error(`The --print-config option must be used with exactly one file name.`),2;if(o)return v.error(`The --print-config option is not available for piped-in code.`),2;let e=await new h(await b(r)).calculateConfigForFile(r.printConfig);return v.info(JSON.stringify(e,null,` `)),0}if(r.inspectConfig){v.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 b(r),t=E(),n=await A.calculateInspectConfigFlags(e.overrideConfigFile);t.sync(`npx`,[`@eslint/config-inspector@latest`,...n],{encoding:`utf8`,stdio:`inherit`})}catch(e){return v.error(e),2}return 0}if(C(`Running on ${o?`text`:`files`}`),r.fix&&r.fixDryRun)return v.error(`The --fix option and the --fix-dry-run option cannot be used together.`),2;if(o&&r.fix)return v.error(`The --fix option is not available for piped-in code; use --fix-dry-run instead.`),2;if(r.fixType&&!r.fix&&!r.fixDryRun)return v.error(`The --fix-type option requires either --fix or --fix-dry-run.`),2;if(r.reportUnusedDisableDirectives&&r.reportUnusedDisableDirectivesSeverity!==void 0)return v.error(`The --report-unused-disable-directives option and the --report-unused-disable-directives-severity option cannot be used together.`),2;if(r.ext){if(r.ext.length===0)return v.error(`The --ext option value cannot be empty.`),2;let e=r.ext.indexOf(``);if(e>=0)return v.error(`The --ext option arguments cannot be empty strings. Found an empty string at index ${e}.`),2}if(r.suppressAll&&r.suppressRule)return v.error(`The --suppress-all option and the --suppress-rule option cannot be used together.`),2;if(r.suppressAll&&r.pruneSuppressions)return v.error(`The --suppress-all option and the --prune-suppressions option cannot be used together.`),2;if(r.suppressRule&&r.pruneSuppressions)return v.error(`The --suppress-rule option and the --prune-suppressions option cannot be used together.`),2;if(o&&(r.suppressAll||r.suppressRule||r.pruneSuppressions))return v.error(`The --suppress-all, --suppress-rule, and --prune-suppressions options cannot be used with piped-in code.`),2;let s;if(r.concurrency!==`off`){let e=T(r);s=await h.fromOptionsModule(e)}else s=new h(await b(r));let c;c=o?await s.lintText(t,{filePath:r.stdinFilename}):await s.lintFiles(a),r.fix&&(C(`Fix mode enabled - applying fixes`),await h.outputFixes(c));let l={};if(!o){let e=x(r.suppressionsLocation||S.DEFAULT_SUPPRESSIONS_FILENAME,process.cwd(),{prefix:`suppressions_`});if(r.suppressionsLocation&&!i.existsSync(e)&&!r.suppressAll&&!r.suppressRule)return v.error("The suppressions file does not exist. Please run the command with `--suppress-all` or `--suppress-rule` to create it."),2;if(r.suppressAll||r.suppressRule||r.pruneSuppressions||i.existsSync(e)){let t=new S({filePath:e,cwd:process.cwd()});(r.suppressAll||r.suppressRule)&&await t.suppress(c,r.suppressRule),r.pruneSuppressions&&await t.prune(c);let n=t.applySuppressions(c,await t.load());c=n.results,l=n.unused}}let u=c;r.quiet&&(C(`Quiet mode enabled - filtering out warnings`),u=h.getErrorResults(u));let d=w(c),f=r.maxWarnings>=0&&d.warningCount>r.maxWarnings,p={};if(r.color!==void 0&&(C(`Color setting for output: ${r.color}`),p.color=r.color),f&&(p.maxWarningsExceeded={maxWarnings:r.maxWarnings,foundWarnings:d.warningCount}),await O(s,u,r.format,r.outputFile,p)){let e=r.exitOnFatalError&&d.fatalErrorCount>0;return!d.errorCount&&f&&v.error(`ESLint found too many warnings (maximum: %s).`,r.maxWarnings),!r.passOnUnprunedSuppressions&&Object.keys(l).length>0?(v.error("There are suppressions left that do not occur anymore. To resolve this, re-run the command with `--prune-suppressions` to remove unused suppressions. To ignore unused suppressions, use `--pass-on-unpruned-suppressions`."),C(JSON.stringify(l,null,2)),2):e?2:d.errorCount||f?1:0}return 2}};n.exports=A})),z=t((()=>{e(`node:module`).enableCompileCache?.(),process.argv.includes(`--debug`)&&d().enable(`eslint:*,-eslint:code-path,eslintrc:*`);function t(){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 r(t){let n=e(`node:util`);if(typeof t!=`object`||!t)return String(t);if(typeof t.messageTemplate==`string`)try{return e(`../messages/${t.messageTemplate}.js`)(t.messageData||{})}catch{}return typeof t.stack==`string`?t.stack:n.format(`%o`,t)}let i=new Set,a=!1;function o(e){process.exitCode=2,a=!0;let{version:t}=n(),o=`
19
18
  Oops! Something went wrong! :(
20
19
 
21
20
  ESLint: ${t}
22
21
 
23
- ${n(e)}`;r.has(i)||(console.error(i),r.add(i))}(async function(){if(process.on(`uncaughtException`,o),process.on(`unhandledRejection`,o),process.argv.includes(`--init`)){console.warn(`You can also run this command directly using 'npm init @eslint/config@latest'.`),O().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'.`),O().sync(`npx`,[`@eslint/mcp@latest`],{encoding:`utf8`,stdio:`inherit`});return}let e=await H().execute(process.argv,process.argv.includes(`--stdin`)?await t():null,!0);a||(process.exitCode=e)})().catch(o)}));export default U();export{};
22
+ ${r(e)}`;i.has(o)||(console.error(o),i.add(o))}(async function(){if(process.on(`uncaughtException`,o),process.on(`unhandledRejection`,o),process.argv.includes(`--init`)){console.warn(`You can also run this command directly using 'npm init @eslint/config@latest'.`),E().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'.`),E().sync(`npx`,[`@eslint/mcp@latest`],{encoding:`utf8`,stdio:`inherit`});return}let e=await R().execute(process.argv,process.argv.includes(`--stdin`)?await t():void 0);a||(process.exitCode=e)})().catch(o)}));export default z();export{};
@@ -6,4 +6,4 @@ Defaulting to 2020, but this will stop working in the future.`)),t.ecmaVersion=1
6
6
  `;break;default:e+=String.fromCharCode(n)}this.options.locations&&(++this.curLine,this.lineStart=this.pos),t=this.pos}else ++this.pos}},R.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(x.invalidTemplate,this.input.slice(this.start,this.pos));case`\r`:this.input[this.pos+1]===`
7
7
  `&&++this.pos;case`
8
8
  `:case`\u2028`:case`\u2029`:++this.curLine,this.lineStart=this.pos+1}this.raise(this.start,`Unterminated template`)},R.readEscapedChar=function(e){var t=this.input.charCodeAt(++this.pos);switch(++this.pos,t){case 110:return`
9
- `;case 114:return`\r`;case 120:return String.fromCharCode(this.readHexChar(2));case 117:return E(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 ne(t)?(this.options.locations&&(this.lineStart=this.pos,++this.curLine),``):String.fromCharCode(t)}},R.readHexChar=function(e){var t=this.pos,n=this.readInt(16,e);return n===null&&this.invalidStringToken(t,`Bad character escape sequence`),n},R.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(h(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?m:h)(o,r)||this.invalidStringToken(a,`Invalid Unicode escape`),e+=E(o),n=this.pos}t=!1}return e+this.input.slice(n,this.pos)},R.readWord=function(){var e=this.readWord1(),t=x.name;return this.keywords.test(e)&&(t=ee[e]),this.finishToken(t,e)},D.acorn={Parser:D,version:`8.15.0`,defaultOptions:me,Position:de,SourceLocation:fe,getLineInfo:pe,Node:Fe,TokenType:g,tokTypes:x,keywordTypes:ee,TokContext:M,tokContexts:N,isIdentifierChar:h,isIdentifierStart:m,Token:ut,isNewLine:ne,lineBreak:S,lineBreakG:te,nonASCIIwhitespace:ie};let pt=n(`node:module`),z=n(`node:fs`);String.fromCharCode;let mt=/\/$|\/\?|\/#/,ht=/^\.?\//;function gt(e=``,t){return t?mt.test(e):e.endsWith(`/`)}function _t(e=``,t){if(!t)return e.endsWith(`/`)?e:e+`/`;if(gt(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 vt(e){return e&&e!==`/`}function yt(e,...t){let n=e||``;for(let e of t.filter(e=>vt(e)))if(n){let t=e.replace(ht,``);n=_t(n)+t}else n=e;return n}let bt=/^[A-Za-z]:\//;function xt(e=``){return e&&e.replace(/\\/g,`/`).replace(bt,e=>e.toUpperCase())}let St=/^[/\\]{2}/,Ct=/^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/,wt=/^[A-Za-z]:$/,Tt=/.(\.[^./]+|\.)$/,Et=function(e){if(e.length===0)return`.`;let t=(e=xt(e)).match(St),n=V(e),r=e[e.length-1]===`/`;return(e=kt(e,!n)).length===0?n?`/`:r?`./`:`.`:(r&&(e+=`/`),wt.test(e)&&(e+=`/`),t?n?`//${e}`:`//./${e}`:n&&!V(e)?`/${e}`:e)},B=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 Et(t)};function Dt(){return typeof process<`u`&&typeof process.cwd==`function`?process.cwd().replace(/\\/g,`/`):`/`}let Ot=function(...e){let t=``,n=!1;for(let r=(e=e.map(e=>xt(e))).length-1;r>=-1&&!n;r--){let i=r>=0?e[r]:Dt();i&&i.length!==0&&(t=`${i}/${t}`,n=V(i))}return t=kt(t,!n),n&&!V(t)?`/${t}`:t.length>0?t:`.`};function kt(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 V=function(e){return Ct.test(e)},At=function(e){if(e===`..`)return``;let t=Tt.exec(xt(e));return t&&t[1]||``},jt=function(e){let t=xt(e).replace(/\/$/,``).split(`/`).slice(0,-1);return t.length===1&&wt.test(t[0])&&(t[0]+=`/`),t.join(`/`)||(V(e)?`/`:`.`)},Mt=function(e,t){let n=xt(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},H=n(`node:url`),U=n(`node:assert`),W=n(`node:process`),Nt=n(`node:path`),Pt=n(`node:v8`),Ft=n(`node:util`),It=new Set(pt.builtinModules);function Lt(e){return e.replace(/\\/g,`/`)}let Rt={}.hasOwnProperty,zt=/^([A-Z][a-z\d]*)+$/,Bt=new Set([`string`,`function`,`number`,`object`,`Function`,`Object`,`boolean`,`bigint`,`symbol`]),G={};function Vt(e,t=`and`){return e.length<3?e.join(` ${t} `):`${e.slice(0,-1).join(`, `)}, ${t} ${e[e.length-1]}`}let Ht=new Map,Ut;function K(e,t,n){return Ht.set(e,t),function(e,t){return n;function n(...n){let r=Error.stackTraceLimit;Wt()&&(Error.stackTraceLimit=0);let i=new e;Wt()&&(Error.stackTraceLimit=r);let a=function(e,t,n){let r=Ht.get(e);if(U(r!==void 0,"expected `message` to be found"),typeof r==`function`)return U(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 U(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(Ft.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}}),Gt(i),i.code=t,i}}(n,e)}function Wt(){try{if(Pt.startupSnapshot.isBuildingSnapshot())return!1}catch{}let e=Object.getOwnPropertyDescriptor(Error,`stackTraceLimit`);return e===void 0?Object.isExtensible(Error):Rt.call(e,`writable`)&&e.writable!==void 0?e.writable:e.set!==void 0}G.ERR_INVALID_ARG_TYPE=K(`ERR_INVALID_ARG_TYPE`,(e,t,n)=>{U(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)U(typeof e==`string`,`All expected entries have to be of type string`),Bt.has(e)?i.push(e.toLowerCase()):zt.exec(e)===null?(U(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`} ${Vt(i,`or`)}`,(a.length>0||o.length>0)&&(r+=` or `)),a.length>0&&(r+=`an instance of ${Vt(a,`or`)}`,o.length>0&&(r+=` or `)),o.length>0&&(o.length>1?r+=`one of ${Vt(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,Ft.inspect)(e,{depth:-1})}`;let t=(0,Ft.inspect)(e,{colors:!1});return t.length>28&&(t=`${t.slice(0,25)}...`),`type ${typeof e} (${t})`}(n)}`,r},TypeError),G.ERR_INVALID_MODULE_SPECIFIER=K(`ERR_INVALID_MODULE_SPECIFIER`,(e,t,n=void 0)=>`Invalid module "${e}" ${t}${n?` imported from ${n}`:``}`,TypeError),G.ERR_INVALID_PACKAGE_CONFIG=K(`ERR_INVALID_PACKAGE_CONFIG`,(e,t,n)=>`Invalid package config ${e}${t?` while importing ${t}`:``}${n?`. ${n}`:``}`,Error),G.ERR_INVALID_PACKAGE_TARGET=K(`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===`.`?(U(!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),G.ERR_MODULE_NOT_FOUND=K(`ERR_MODULE_NOT_FOUND`,(e,t,n=!1)=>`Cannot find ${n?`module`:`package`} '${e}' imported from ${t}`,Error),G.ERR_NETWORK_IMPORT_DISALLOWED=K(`ERR_NETWORK_IMPORT_DISALLOWED`,`import of '%s' by %s is not supported: %s`,Error),G.ERR_PACKAGE_IMPORT_NOT_DEFINED=K(`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),G.ERR_PACKAGE_PATH_NOT_EXPORTED=K(`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),G.ERR_UNSUPPORTED_DIR_IMPORT=K(`ERR_UNSUPPORTED_DIR_IMPORT`,`Directory import '%s' is not supported resolving ES modules imported from %s`,Error),G.ERR_UNSUPPORTED_RESOLVE_REQUEST=K(`ERR_UNSUPPORTED_RESOLVE_REQUEST`,`Failed to resolve module specifier "%s" from "%s": Invalid relative URL or base scheme is not hierarchical.`,TypeError),G.ERR_UNKNOWN_FILE_EXTENSION=K(`ERR_UNKNOWN_FILE_EXTENSION`,(e,t)=>`Unknown file extension "${e}" for ${t}`,TypeError),G.ERR_INVALID_ARG_VALUE=K(`ERR_INVALID_ARG_VALUE`,(e,t,n=`is invalid`)=>{let r=(0,Ft.inspect)(t);return r.length>128&&(r=`${r.slice(0,128)}...`),`The ${e.includes(`.`)?`property`:`argument`} '${e}' ${n}. Received ${r}`},TypeError);let Gt=function(e){let t=`__node_internal_`+e.name;return Object.defineProperty(e,`name`,{value:t}),e}(function(e){let t=Wt();return t&&(Ut=Error.stackTraceLimit,Error.stackTraceLimit=1/0),Error.captureStackTrace(e),t&&(Error.stackTraceLimit=Ut),e}),Kt={}.hasOwnProperty,{ERR_INVALID_PACKAGE_CONFIG:qt}=G,Jt=new Map;function Yt(e,{base:t,specifier:n}){let r=Jt.get(e);if(r)return r;let i;try{i=z.readFileSync(Nt.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 qt(e,(t?`"${n}" from `:``)+(0,H.fileURLToPath)(t||n),i.message);throw a.cause=i,a}a.exists=!0,Kt.call(r,`name`)&&typeof r.name==`string`&&(a.name=r.name),Kt.call(r,`main`)&&typeof r.main==`string`&&(a.main=r.main),Kt.call(r,`exports`)&&(a.exports=r.exports),Kt.call(r,`imports`)&&(a.imports=r.imports),!Kt.call(r,`type`)||r.type!==`commonjs`&&r.type!==`module`||(a.type=r.type)}return Jt.set(e,a),a}function Xt(e){let t=new URL(`package.json`,e);for(;!t.pathname.endsWith(`node_modules/package.json`);){let n=Yt((0,H.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,H.fileURLToPath)(t),exists:!1,type:`none`}}function Zt(e){return Xt(e).type}let{ERR_UNKNOWN_FILE_EXTENSION:Qt}=G,$t={}.hasOwnProperty,en={__proto__:null,".cjs":`commonjs`,".js":`module`,".json":`json`,".mjs":`module`},tn={__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=Zt(e);return t===`none`?`commonjs`:t}if(r===``){let t=Zt(e);return t===`none`||t===`commonjs`?`commonjs`:`module`}let i=en[r];if(i)return i;if(!n)throw new Qt(r,(0,H.fileURLToPath)(e))},"http:":nn,"https:":nn,"node:":()=>`builtin`};function nn(){}let rn=RegExp.prototype[Symbol.replace],{ERR_INVALID_MODULE_SPECIFIER:an,ERR_INVALID_PACKAGE_CONFIG:on,ERR_INVALID_PACKAGE_TARGET:sn,ERR_MODULE_NOT_FOUND:cn,ERR_PACKAGE_IMPORT_NOT_DEFINED:ln,ERR_PACKAGE_PATH_NOT_EXPORTED:un,ERR_UNSUPPORTED_DIR_IMPORT:dn,ERR_UNSUPPORTED_RESOLVE_REQUEST:fn}=G,pn={}.hasOwnProperty,mn=/(^|\\|\/)((\.|%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,hn=/(^|\\|\/)((\.|%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,gn=/^\.|%|\\/,_n=/\*/g,vn=/%2f|%5c/i,yn=new Set,bn=/[/\\]{2}/;function xn(e,t,n,r,i,a,o){if(W.noDeprecation)return;let s=(0,H.fileURLToPath)(r),c=bn.exec(o?e:t)!==null;W.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,H.fileURLToPath)(a)}`:``}.`,`DeprecationWarning`,`DEP0166`)}function Sn(e,t,n,r){if(W.noDeprecation||function(e,t){let n=e.protocol;return $t.call(tn,n)&&tn[n](e,t,!0)||null}(e,{parentURL:n.href})!==`module`)return;let i=(0,H.fileURLToPath)(e.href),a=(0,H.fileURLToPath)(new H.URL(`.`,t)),o=(0,H.fileURLToPath)(n);r?Nt.resolve(a,r)!==i&&W.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`):W.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 Cn(e){try{return(0,z.statSync)(e)}catch{}}function wn(e){let t=(0,z.statSync)(e,{throwIfNoEntry:!1}),n=t?t.isFile():void 0;return n!=null&&n}function Tn(e,t,n){let r;if(t.main!==void 0){if(r=new H.URL(t.main,e),wn(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 H.URL(i[a],e),!wn(r));)r=void 0;if(r)return Sn(r,e,n,t.main),r}let i=[`./index.js`,`./index.json`,`./index.node`],a=-1;for(;++a<i.length&&(r=new H.URL(i[a],e),!wn(r));)r=void 0;if(r)return Sn(r,e,n,t.main),r;throw new cn((0,H.fileURLToPath)(new H.URL(`.`,e)),(0,H.fileURLToPath)(n))}function En(e,t,n){return new un((0,H.fileURLToPath)(new H.URL(`.`,t)),e,n&&(0,H.fileURLToPath)(n))}function Dn(e,t,n,r,i){return t=typeof t==`object`&&t?JSON.stringify(t,null,``):`${t}`,new sn((0,H.fileURLToPath)(new H.URL(`.`,n)),e,t,r,i&&(0,H.fileURLToPath)(i))}function On(e,t,n,r,i,a,o,s,c){if(t!==``&&!a&&e[e.length-1]!==`/`)throw Dn(n,e,r,o,i);if(!e.startsWith(`./`)){if(o&&!e.startsWith(`../`)&&!e.startsWith(`/`)){let n=!1;try{new H.URL(e),n=!0}catch{}if(!n)return Fn(a?rn.call(_n,e,()=>t):e+t,r,c)}throw Dn(n,e,r,o,i)}if(mn.exec(e.slice(2))!==null){if(hn.exec(e.slice(2))!==null)throw Dn(n,e,r,o,i);if(!s){let s=a?n.replace(`*`,()=>t):n+t;xn(a?rn.call(_n,e,()=>t):e,s,n,r,o,i,!0)}}let l=new H.URL(e,r),u=l.pathname,d=new H.URL(`.`,r).pathname;if(!u.startsWith(d))throw Dn(n,e,r,o,i);if(t===``)return l;if(mn.exec(t)!==null){let c=a?n.replace(`*`,()=>t):n+t;hn.exec(t)===null?s||xn(a?rn.call(_n,e,()=>t):e,c,n,r,o,i,!1):(function(e,t,n,r,i){throw new an(e,`request is not a valid match in pattern "${t}" for the "${r?`imports`:`exports`}" resolution of ${(0,H.fileURLToPath)(n)}`,i&&(0,H.fileURLToPath)(i))})(c,n,r,o,i)}return a?new H.URL(rn.call(_n,l.href,()=>t)):new H.URL(t,l)}function kn(e){let t=Number(e);return`${t}`===e&&t>=0&&t<4294967295}function An(e,t,n,r,i,a,o,s,c){if(typeof t==`string`)return On(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=An(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(kn(l[u]))throw new on((0,H.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=An(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 Dn(r,t,e,o,i)}function jn(e,t,n){if(W.noDeprecation)return;let r=(0,H.fileURLToPath)(t);yn.has(r+`|`+e)||(yn.add(r+`|`+e),W.emitWarning(`Use of deprecated trailing slash pattern mapping "${e}" in the "exports" field module resolution of the package at ${r}${n?` imported from ${(0,H.fileURLToPath)(n)}`:``}. Mapping specifiers ending in "/" is no longer supported.`,`DeprecationWarning`,`DEP0155`))}function Mn(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 on((0,H.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}),pn.call(a,t)&&!t.includes(`*`)&&!t.endsWith(`/`)){let n=An(e,a[t],``,t,r,!1,!1,!1,i);if(n==null)throw En(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(`/`)&&jn(t,e,r);let a=n.slice(i+1);t.length>=n.length&&t.endsWith(a)&&Nn(o,n)===1&&n.lastIndexOf(`*`)===i&&(o=n,s=t.slice(i,t.length-a.length))}}if(o){let n=An(e,a[o],s,o,r,!0,!1,t.endsWith(`/`),i);if(n==null)throw En(t,e,r);return n}throw En(t,e,r)}function Nn(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 Pn(e,t,n){if(e===`#`||e.startsWith(`#/`)||e.endsWith(`/`))throw new an(e,`is not a valid internal imports specifier name`,(0,H.fileURLToPath)(t));let r,i=Xt(t);if(i.exists){r=(0,H.pathToFileURL)(i.pjsonPath);let a=i.imports;if(a)if(pn.call(a,e)&&!e.includes(`*`)){let i=An(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)&&Nn(i,t)===1&&t.lastIndexOf(`*`)===n&&(i=t,o=e.slice(n,e.length-r.length))}}if(i){let e=An(r,a[i],o,i,t,!0,!0,!1,n);if(e!=null)return e}}}throw function(e,t,n){return new ln(e,t&&(0,H.fileURLToPath)(new H.URL(`.`,t)),(0,H.fileURLToPath)(n))}(e,r,t)}function Fn(e,t,n){if(pt.builtinModules.includes(e))return new H.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(gn.exec(a)!==null&&(r=!1),!r)throw new an(e,`is not a valid package name`,(0,H.fileURLToPath)(t));return{packageName:a,packageSubpath:`.`+(n===-1?``:e.slice(n)),isScoped:i}}(e,t),o=Xt(t);if(o.exists){let e=(0,H.pathToFileURL)(o.pjsonPath);if(o.name===r&&o.exports!==void 0&&o.exports!==null)return Mn(e,i,o,t,n)}let s,c=new H.URL(`./node_modules/`+r+`/package.json`,t),l=(0,H.fileURLToPath)(c);do{let o=Cn(l.slice(0,-13));if(!o||!o.isDirectory()){s=l,c=new H.URL((a?`../../../../node_modules/`:`../../../node_modules/`)+r+`/package.json`,c),l=(0,H.fileURLToPath)(c);continue}let u=Yt(l,{base:t,specifier:e});return u.exports!==void 0&&u.exports!==null?Mn(c,i,u,t,n):i===`.`?Tn(c,u,t):new H.URL(i,c)}while(l.length!==s.length);throw new cn(r,(0,H.fileURLToPath)(t),!1)}function In(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 H.URL(e,t)}catch(n){let r=new fn(e,t);throw r.cause=n,r}else if(i===`file:`&&e[0]===`#`)o=Pn(e,t,n);else try{o=new H.URL(e)}catch(r){if(a&&!pt.builtinModules.includes(e)){let n=new fn(e,t);throw n.cause=r,n}o=Fn(e,t,n)}return U(o!==void 0,`expected to be defined`),o.protocol===`file:`?function(e,t){if(vn.exec(e.pathname)!==null)throw new an(e.pathname,`must not include encoded "/" or "\\" characters`,(0,H.fileURLToPath)(t));let n;try{n=(0,H.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=Cn(n.endsWith(`/`)?n.slice(-1):n);if(r&&r.isDirectory()){let r=new dn(n,(0,H.fileURLToPath)(t));throw r.url=String(e),r}if(!r||!r.isFile()){let r=new cn(n||e.pathname,t&&(0,H.fileURLToPath)(t),!0);throw r.url=String(e),r}{let t=(0,z.realpathSync)(n),{search:r,hash:i}=e;(e=(0,H.pathToFileURL)(t+(n.endsWith(Nt.sep)?`/`:``))).search=r,e.hash=i}return e}(o,t):o}function Ln(e){return typeof e!=`string`||e.startsWith(`file://`)?Lt((0,H.fileURLToPath)(e)):Lt(e)}function Rn(e){return(0,H.pathToFileURL)(Ln(e)).toString()}let zn=new Set([`node`,`import`]),Bn=[`.mjs`,`.cjs`,`.js`,`.json`],Vn=new Set([`ERR_MODULE_NOT_FOUND`,`ERR_UNSUPPORTED_DIR_IMPORT`,`MODULE_NOT_FOUND`,`ERR_PACKAGE_PATH_NOT_EXPORTED`]);function Hn(e,t,n){try{return In(e,t,n)}catch(e){if(!Vn.has(e?.code))throw e}}function Un(e,t={}){if(typeof e!=`string`){if(!(e instanceof URL))throw TypeError("input must be a `string` or `URL`");e=Ln(e)}if(/(?:node|data|http|https):/.test(e))return e;if(It.has(e))return`node:`+e;if(e.startsWith(`file://`)&&(e=Ln(e)),V(e))try{if((0,z.statSync)(e).isFile())return Rn(e)}catch(e){if(e?.code!==`ENOENT`)throw e}let n=t.conditions?new Set(t.conditions):zn,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:It.has(e)?`node:`+e:`file://`+encodeURI(Lt(e))}(e.toString())));r.length===0&&r.push(new URL(Rn(process.cwd())));let i=[...r];for(let e of r)e.protocol===`file:`&&i.push(new URL(`./`,e),new URL(yt(e.pathname,`_index.js`),e),new URL(`node_modules`,e));let a;for(let r of i){if(a=Hn(e,r,n),a)break;for(let i of[``,`/index`]){for(let o of t.extensions||Bn)if(a=Hn(yt(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 Rn(a)}function Wn(e,t){return Un(e,t)}function Gn(e,t){return Ln(Wn(e,t))}let Kn=/(?:[\s;]|^)(?:import[\s\w*,{}]*from|import\s*["'*{]|export\b\s*(?:[*{]|default|class|type|function|const|var|let|async function)|import\.meta\b)/m,qn=/\/\*.+?\*\/|\/\/.*(?=[nr])/g;function Jn(e,t={}){return t.stripComments&&(e=e.replace(qn,``)),Kn.test(e)}function Yn(e){if(typeof e!=`string`)throw TypeError(`Expected a string`);return e.replace(/[|\\{}()[\]^$+*?.]/g,`\\$&`).replace(/-/g,`\\x2d`)}let Xn=new Set([`/`,`\\`,void 0]),Zn=Symbol.for(`pathe:normalizedAlias`),Qn=/[/\\]/;function $n(e){if(e[Zn])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)&&Xn.has(t[e][n.length])&&(t[e]=t[n]+t[e].slice(n.length));return Object.defineProperty(t,Zn,{value:!0,enumerable:!1}),t}function er(e=`/`){let t=e[e.length-1];return t===`/`||t===`\\`}var tr={rE:`2.6.1`};let nr=n(`node:crypto`);var rr=i.n(nr);let ir=Object.create(null),ar=e=>globalThis.process?.env||globalThis.Deno?.env.toObject()||globalThis.__env__||(e?ir:globalThis),q=new Proxy(ir,{get:(e,t)=>ar()[t]??ir[t],has:(e,t)=>t in ar()||t in ir,set:(e,t,n)=>(ar(!0)[t]=n,!0),deleteProperty(e,t){return t?(delete ar(!0)[t],!0):!1},ownKeys(){let e=ar(!0);return Object.keys(e)}}),or=typeof process<`u`&&process.env&&process.env.NODE_ENV||``,sr=[[`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}]],cr=function(){if(globalThis.process?.env)for(let e of sr){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}}();cr.name;function lr(e){return!!e&&e!==`false`}let ur=globalThis.process?.platform||``;lr(q.CI)||cr.ci;let dr=lr(globalThis.process?.stdout&&globalThis.process?.stdout.isTTY);q.DEBUG,or===`test`||q.TEST;let fr=(q.MINIMAL,/^win/i.test(ur)),pr=(/^linux/i.test(ur),/^darwin/i.test(ur),!lr(q.NO_COLOR)&&(lr(q.FORCE_COLOR)||(dr||fr)&&q.TERM),(globalThis.process?.versions?.node||``).replace(/^v/,``)||null),mr=(Number(pr?.split(`.`)[0]),globalThis.process||Object.create(null)),hr={versions:{}},gr=(new Proxy(mr,{get:(e,t)=>t===`env`?q:t in e?e[t]:t in hr?hr[t]:void 0}),globalThis.process?.release?.name===`node`),_r=!!globalThis.Bun||!!globalThis.process?.versions?.bun,vr=!!globalThis.Deno,yr=!!globalThis.fastly,br=[[!!globalThis.Netlify,`netlify`],[!!globalThis.EdgeRuntime,`edge-light`],[globalThis.navigator?.userAgent===`Cloudflare-Workers`,`workerd`],[yr,`fastly`],[vr,`deno`],[_r,`bun`],[gr,`node`]];(function(){let e=br.find(e=>e[0]);e&&e[1]})();let xr=n(`node:tty`)?.WriteStream?.prototype?.hasColors?.()??!1,J=(e,t)=>{if(!xr)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}},Sr=(J(0,0),J(1,22),J(2,22),J(3,23),J(4,24),J(53,55),J(7,27),J(8,28),J(9,29),J(30,39),J(31,39)),Cr=J(32,39),wr=J(33,39),Tr=J(34,39),Er=(J(35,39),J(36,39)),Dr=(J(37,39),J(90,39));J(40,49),J(41,49),J(42,49),J(43,49),J(44,49),J(45,49),J(46,49),J(47,49),J(100,49),J(91,39),J(92,39),J(93,39),J(94,39),J(95,39),J(96,39),J(97,39),J(101,49),J(102,49),J(103,49),J(104,49),J(105,49),J(106,49),J(107,49);function Or(e){if(typeof e!=`string`||e.startsWith(`file://`))return!1;try{return(0,z.lstatSync)(e).isDirectory()}catch{return!1}}function kr(e,t=8){return(function(){if(jr!==void 0)return jr;try{return jr=!!rr().getFips?.(),jr}catch{return jr=!1,jr}}()?rr().createHash(`sha256`):rr().createHash(`md5`)).update(e).digest(`hex`).slice(0,t)}let Ar={true:Cr(`true`),false:wr(`false`),"[rebuild]":wr(`[rebuild]`),"[esm]":Tr(`[esm]`),"[cjs]":Cr(`[cjs]`),"[import]":Tr(`[import]`),"[require]":Cr(`[require]`),"[native]":Er(`[native]`),"[transpile]":wr(`[transpile]`),"[fallback]":Sr(`[fallback]`),"[unknown]":Sr(`[unknown]`),"[hit]":Cr(`[hit]`),"[miss]":wr(`[miss]`),"[json]":Cr(`[json]`),"[data]":Cr(`[data]`)};function Y(e,...t){if(!e.opts.debug)return;let n=process.cwd();console.log(Dr([`[jiti]`,...t.map(e=>e in Ar?Ar[e]:typeof e==`string`?e.replace(n,`.`):JSON.stringify(e))].join(` `)))}function X(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 jr;function Z(e,t){return!!Q(e,t)}function Q(e,t){let n=process.env[e];if(!(e in process.env))return t;try{return JSON.parse(n)}catch{return t}}let Mr=/\.(c|m)?j(sx?)$/,Nr=/\.(c|m)?t(sx?)$/;function Pr(e,t,n){let r,i;if(e.isNativeRe.test(t))return t;e.alias&&(t=function(e,t){let n=xt(e);t=$n(t);for(let[e,r]of Object.entries(t))if(n.startsWith(e)&&er(n[(er(e)?e.slice(0,-1):e).length]))return B(r,n.slice(e.length));return n}(t,e.alias));let a=n?.parentURL||e.url;Or(a)&&(a=B(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=Gn(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=Fr(e,t+i,a,n)||Fr(e,t+`/index`+i,a,n),r||(Nr.test(e.filename)||Nr.test(e.parentModule?.filename||``)||Mr.test(t))&&(r=Fr(e,t.replace(Mr,`.$1t$2`),a,n),r))return r;if(!n?.try)throw i}function Fr(e,t,n,r){try{return e.nativeRequire.resolve(t,{...r,paths:[jt(Ln(n)),...r?.paths||[]]})}catch{}}let Ir=n(`node:perf_hooks`),Lr=n(`node:vm`);var Rr=i.n(Lr);function zr(e,t,n){let r=e.parentCache||{};if(t.startsWith(`node:`))return $(e,t,n.async);if(t.startsWith(`file:`))t=(0,H.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 Y(e,`[native]`,`[data]`,`[import]`,t),$(e,t,!0)}if(pt.builtinModules.includes(t)||t===`.pnp.js`)return $(e,t,n.async);if(e.opts.tryNative&&!e.opts.transformOptions)try{if(!(t=Pr(e,t,n))&&n.try)return;if(Y(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],X(e,n)));{let n=e.nativeRequire(t);return!1===e.opts.moduleCache&&delete e.nativeRequire.cache[t],X(e,n)}}catch(n){Y(e,`[try-native] Using fallback for ${t} because of an error:`,n)}let i=Pr(e,t,n);if(!i&&n.try)return;let a=At(i);if(a===`.json`){Y(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 Y(e,`[native]`,`[unknown]`,n.async?`[import]`:`[require]`,i),$(e,i,n.async);if(e.isNativeRe.test(i))return Y(e,`[native]`,n.async?`[import]`:`[require]`,i),$(e,i,n.async);if(r[i])return X(e,r[i]?.exports);if(e.opts.moduleCache){let t=e.nativeRequire.cache[i];if(t?.loaded)return X(e,t.exports)}return Ur(e,(0,z.readFileSync)(i,`utf8`),{id:t,filename:i,ext:a,cache:r,async:n.async})}function $(e,t,n){return n&&e.nativeImport?e.nativeImport(function(e){return fr&&V(e)?Rn(e):e}(t)).then(t=>X(e,t)):X(e,e.nativeRequire(t))}function Br(e,t,n){if(!e.opts.fsCache||!t.filename)return n();let r=` /* v9-${kr(t.source,16)} */\n`,i=`${Mt(jt(t.filename))}-${function(e){let t=e.split(Qn).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`:``)+`.${kr(t.filename)}`+(t.async?`.mjs`:`.cjs`);t.jsx&&t.filename.endsWith(`x`)&&(i+=`x`);let a=e.opts.fsCache,o=B(a,i);if(!e.opts.rebuildFsCache&&(0,z.existsSync)(o)){let n=(0,z.readFileSync)(o,`utf8`);if(n.endsWith(r))return Y(e,`[cache]`,`[hit]`,t.filename,`~>`,o),n}Y(e,`[cache]`,`[miss]`,t.filename);let s=n();return s.includes(`__JITI_ERROR__`)||((0,z.writeFileSync)(o,s+r,`utf8`),Y(e,`[cache]`,`[store]`,t.filename,`~>`,o)),s}function Vr(t){if(!0===t.opts.fsCache&&(t.opts.fsCache=function(t){let n=t.filename&&Ot(t.filename,`../node_modules`);if(n&&(0,z.existsSync)(n))return B(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 B(r,`jiti`)}(t)),t.opts.fsCache)try{if((0,z.mkdirSync)(t.opts.fsCache,{recursive:!0}),!function(e){try{return(0,z.accessSync)(e,z.constants.W_OK),!0}catch{return!1}}(t.opts.fsCache))throw Error(`directory is not writable!`)}catch(e){Y(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&&Y(e,n.error),n.code});return n.startsWith(`#!`)&&(n=`// `+n),n}function Ur(e,t,n={}){let r=n.id||(n.filename?Mt(n.filename):`_jitiEval.${n.ext||(n.async?`mjs`:`js`)}`),i=n.filename||Pr(e,r,{async:n.async}),a=n.ext||At(i),o=n.cache||e.parentCache||{},s=/\.[cm]?tsx?$/.test(a),c=a===`.mjs`||a===`.js`&&function(e){for(;e&&e!==`.`&&e!==`/`;){e=B(e,`..`);try{let t=(0,z.readFileSync)(B(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)||Jn(t))),d=Ir.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*(Ir.performance.now()-d))/1e3;Y(e,`[transpile]`,n.async?`[esm]`:`[cjs]`,i,`(${r}ms)`)}else{if(Y(e,`[native]`,n.async?`[import]`:`[require]`,i),n.async)return Promise.resolve($(e,i,n.async)).catch(r=>(Y(e,`Native import error:`,r),Y(e,`[fallback]`,i),Ur(e,t,{...n,forceTranspile:!0})));try{return $(e,i,n.async)}catch(r){Y(e,`Native require error:`,r),Y(e,`[fallback]`,i),t=Hr(e,{filename:i,source:t,ts:s,async:n.async??!1,jsx:e.opts.jsx})}}let f=new pt.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=jt(i),f.paths=pt.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=Rr().runInThisContext(h,{filename:i,lineOffset:0,displayErrors:!1})}catch(t){t.name===`SyntaxError`&&n.async&&e.nativeImport?(Y(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,jt(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,zr),e.onError(o)}return f.loaded=!0,X(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:Z(`JITI_FS_CACHE`,Z(`JITI_CACHE`,!0)),rebuildFsCache:Z(`JITI_REBUILD_FS_CACHE`,!1),moduleCache:Z(`JITI_MODULE_CACHE`,Z(`JITI_REQUIRE_CACHE`,!0)),debug:Z(`JITI_DEBUG`,!1),sourceMaps:Z(`JITI_SOURCE_MAPS`,!1),interopDefault:Z(`JITI_INTEROP_DEFAULT`,!0),extensions:Q(`JITI_EXTENSIONS`,[`.js`,`.mjs`,`.cjs`,`.ts`,`.tsx`,`.mts`,`.cts`,`.mtsx`,`.ctsx`]),alias:Q(`JITI_ALIAS`,{}),nativeModules:Q(`JITI_NATIVE_MODULES`,[]),transformModules:Q(`JITI_TRANSFORM_MODULES`,[]),tryNative:Q(`JITI_TRY_NATIVE`,`Bun`in globalThis),jsx:Z(`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?$n(i.alias||{}):void 0,o=[`typescript`,`jiti`,...i.nativeModules||[]],s=RegExp(`node_modules/(${o.map(e=>Yn(e)).join(`|`)})/`),c=[...i.transformModules||[]],l=RegExp(`node_modules/(${c.map(e=>Yn(e)).join(`|`)})/`);e||=process.cwd(),!r&&Or(e)&&(e=B(e,`_index.js`));let u=Rn(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||Y(p,`[init]`,...[[`version:`,tr.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 zr(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 Pr(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 zr(p,e,{...t,async:!0});return t?.default?n?.default??n:n},esmResolve(e,t){typeof t==`string`&&(t={parentURL:t});let n=Pr(p,e,{parentURL:u,...t,async:!0});return!n||typeof n!=`string`||n.startsWith(`file://`)?n:Rn(n)}})}})(),t.exports=a.default})()}));function o(e){throw e}function s(...e){return d||=i(import.meta.url)(`../dist/babel.cjs`),d(...e)}function c(e,t={}){return t.transform||(t={...t,transform:s}),(0,l.default)(e,t,{onError:o,nativeImport:u,createRequire:i})}var l,u,d;t((()=>{l=e(a(),1),u=e=>import(e)}))();export{c as createJiti};
9
+ `;case 114:return`\r`;case 120:return String.fromCharCode(this.readHexChar(2));case 117:return E(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 ne(t)?(this.options.locations&&(this.lineStart=this.pos,++this.curLine),``):String.fromCharCode(t)}},R.readHexChar=function(e){var t=this.pos,n=this.readInt(16,e);return n===null&&this.invalidStringToken(t,`Bad character escape sequence`),n},R.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(h(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?m:h)(o,r)||this.invalidStringToken(a,`Invalid Unicode escape`),e+=E(o),n=this.pos}t=!1}return e+this.input.slice(n,this.pos)},R.readWord=function(){var e=this.readWord1(),t=x.name;return this.keywords.test(e)&&(t=ee[e]),this.finishToken(t,e)},D.acorn={Parser:D,version:`8.15.0`,defaultOptions:me,Position:de,SourceLocation:fe,getLineInfo:pe,Node:Fe,TokenType:g,tokTypes:x,keywordTypes:ee,TokContext:M,tokContexts:N,isIdentifierChar:h,isIdentifierStart:m,Token:ut,isNewLine:ne,lineBreak:S,lineBreakG:te,nonASCIIwhitespace:ie};let pt=n(`node:module`),z=n(`node:fs`);String.fromCharCode;let mt=/\/$|\/\?|\/#/,ht=/^\.?\//;function gt(e=``,t){return t?mt.test(e):e.endsWith(`/`)}function _t(e=``,t){if(!t)return e.endsWith(`/`)?e:e+`/`;if(gt(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 vt(e){return e&&e!==`/`}function yt(e,...t){let n=e||``;for(let e of t.filter(e=>vt(e)))if(n){let t=e.replace(ht,``);n=_t(n)+t}else n=e;return n}let bt=/^[A-Za-z]:\//;function xt(e=``){return e&&e.replace(/\\/g,`/`).replace(bt,e=>e.toUpperCase())}let St=/^[/\\]{2}/,Ct=/^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/,wt=/^[A-Za-z]:$/,Tt=/.(\.[^./]+|\.)$/,Et=function(e){if(e.length===0)return`.`;let t=(e=xt(e)).match(St),n=V(e),r=e[e.length-1]===`/`;return(e=kt(e,!n)).length===0?n?`/`:r?`./`:`.`:(r&&(e+=`/`),wt.test(e)&&(e+=`/`),t?n?`//${e}`:`//./${e}`:n&&!V(e)?`/${e}`:e)},B=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 Et(t)};function Dt(){return typeof process<`u`&&typeof process.cwd==`function`?process.cwd().replace(/\\/g,`/`):`/`}let Ot=function(...e){let t=``,n=!1;for(let r=(e=e.map(e=>xt(e))).length-1;r>=-1&&!n;r--){let i=r>=0?e[r]:Dt();i&&i.length!==0&&(t=`${i}/${t}`,n=V(i))}return t=kt(t,!n),n&&!V(t)?`/${t}`:t.length>0?t:`.`};function kt(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 V=function(e){return Ct.test(e)},At=function(e){if(e===`..`)return``;let t=Tt.exec(xt(e));return t&&t[1]||``},jt=function(e){let t=xt(e).replace(/\/$/,``).split(`/`).slice(0,-1);return t.length===1&&wt.test(t[0])&&(t[0]+=`/`),t.join(`/`)||(V(e)?`/`:`.`)},Mt=function(e,t){let n=xt(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},H=n(`node:url`),U=n(`node:assert`),W=n(`node:process`),Nt=n(`node:path`),Pt=n(`node:v8`),Ft=n(`node:util`),It=new Set(pt.builtinModules);function Lt(e){return e.replace(/\\/g,`/`)}let Rt={}.hasOwnProperty,zt=/^([A-Z][a-z\d]*)+$/,Bt=new Set([`string`,`function`,`number`,`object`,`Function`,`Object`,`boolean`,`bigint`,`symbol`]),G={};function Vt(e,t=`and`){return e.length<3?e.join(` ${t} `):`${e.slice(0,-1).join(`, `)}, ${t} ${e[e.length-1]}`}let Ht=new Map,Ut;function K(e,t,n){return Ht.set(e,t),function(e,t){return n;function n(...n){let r=Error.stackTraceLimit;Wt()&&(Error.stackTraceLimit=0);let i=new e;Wt()&&(Error.stackTraceLimit=r);let a=function(e,t,n){let r=Ht.get(e);if(U(r!==void 0,"expected `message` to be found"),typeof r==`function`)return U(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 U(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(Ft.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}}),Gt(i),i.code=t,i}}(n,e)}function Wt(){try{if(Pt.startupSnapshot.isBuildingSnapshot())return!1}catch{}let e=Object.getOwnPropertyDescriptor(Error,`stackTraceLimit`);return e===void 0?Object.isExtensible(Error):Rt.call(e,`writable`)&&e.writable!==void 0?e.writable:e.set!==void 0}G.ERR_INVALID_ARG_TYPE=K(`ERR_INVALID_ARG_TYPE`,(e,t,n)=>{U(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)U(typeof e==`string`,`All expected entries have to be of type string`),Bt.has(e)?i.push(e.toLowerCase()):zt.exec(e)===null?(U(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`} ${Vt(i,`or`)}`,(a.length>0||o.length>0)&&(r+=` or `)),a.length>0&&(r+=`an instance of ${Vt(a,`or`)}`,o.length>0&&(r+=` or `)),o.length>0&&(o.length>1?r+=`one of ${Vt(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,Ft.inspect)(e,{depth:-1})}`;let t=(0,Ft.inspect)(e,{colors:!1});return t.length>28&&(t=`${t.slice(0,25)}...`),`type ${typeof e} (${t})`}(n)}`,r},TypeError),G.ERR_INVALID_MODULE_SPECIFIER=K(`ERR_INVALID_MODULE_SPECIFIER`,(e,t,n=void 0)=>`Invalid module "${e}" ${t}${n?` imported from ${n}`:``}`,TypeError),G.ERR_INVALID_PACKAGE_CONFIG=K(`ERR_INVALID_PACKAGE_CONFIG`,(e,t,n)=>`Invalid package config ${e}${t?` while importing ${t}`:``}${n?`. ${n}`:``}`,Error),G.ERR_INVALID_PACKAGE_TARGET=K(`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===`.`?(U(!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),G.ERR_MODULE_NOT_FOUND=K(`ERR_MODULE_NOT_FOUND`,(e,t,n=!1)=>`Cannot find ${n?`module`:`package`} '${e}' imported from ${t}`,Error),G.ERR_NETWORK_IMPORT_DISALLOWED=K(`ERR_NETWORK_IMPORT_DISALLOWED`,`import of '%s' by %s is not supported: %s`,Error),G.ERR_PACKAGE_IMPORT_NOT_DEFINED=K(`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),G.ERR_PACKAGE_PATH_NOT_EXPORTED=K(`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),G.ERR_UNSUPPORTED_DIR_IMPORT=K(`ERR_UNSUPPORTED_DIR_IMPORT`,`Directory import '%s' is not supported resolving ES modules imported from %s`,Error),G.ERR_UNSUPPORTED_RESOLVE_REQUEST=K(`ERR_UNSUPPORTED_RESOLVE_REQUEST`,`Failed to resolve module specifier "%s" from "%s": Invalid relative URL or base scheme is not hierarchical.`,TypeError),G.ERR_UNKNOWN_FILE_EXTENSION=K(`ERR_UNKNOWN_FILE_EXTENSION`,(e,t)=>`Unknown file extension "${e}" for ${t}`,TypeError),G.ERR_INVALID_ARG_VALUE=K(`ERR_INVALID_ARG_VALUE`,(e,t,n=`is invalid`)=>{let r=(0,Ft.inspect)(t);return r.length>128&&(r=`${r.slice(0,128)}...`),`The ${e.includes(`.`)?`property`:`argument`} '${e}' ${n}. Received ${r}`},TypeError);let Gt=function(e){let t=`__node_internal_`+e.name;return Object.defineProperty(e,`name`,{value:t}),e}(function(e){let t=Wt();return t&&(Ut=Error.stackTraceLimit,Error.stackTraceLimit=1/0),Error.captureStackTrace(e),t&&(Error.stackTraceLimit=Ut),e}),Kt={}.hasOwnProperty,{ERR_INVALID_PACKAGE_CONFIG:qt}=G,Jt=new Map;function Yt(e,{base:t,specifier:n}){let r=Jt.get(e);if(r)return r;let i;try{i=z.readFileSync(Nt.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 qt(e,(t?`"${n}" from `:``)+(0,H.fileURLToPath)(t||n),i.message);throw a.cause=i,a}a.exists=!0,Kt.call(r,`name`)&&typeof r.name==`string`&&(a.name=r.name),Kt.call(r,`main`)&&typeof r.main==`string`&&(a.main=r.main),Kt.call(r,`exports`)&&(a.exports=r.exports),Kt.call(r,`imports`)&&(a.imports=r.imports),!Kt.call(r,`type`)||r.type!==`commonjs`&&r.type!==`module`||(a.type=r.type)}return Jt.set(e,a),a}function Xt(e){let t=new URL(`package.json`,e);for(;!t.pathname.endsWith(`node_modules/package.json`);){let n=Yt((0,H.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,H.fileURLToPath)(t),exists:!1,type:`none`}}function Zt(e){return Xt(e).type}let{ERR_UNKNOWN_FILE_EXTENSION:Qt}=G,$t={}.hasOwnProperty,en={__proto__:null,".cjs":`commonjs`,".js":`module`,".json":`json`,".mjs":`module`},tn={__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=Zt(e);return t===`none`?`commonjs`:t}if(r===``){let t=Zt(e);return t===`none`||t===`commonjs`?`commonjs`:`module`}let i=en[r];if(i)return i;if(!n)throw new Qt(r,(0,H.fileURLToPath)(e))},"http:":nn,"https:":nn,"node:":()=>`builtin`};function nn(){}let rn=RegExp.prototype[Symbol.replace],{ERR_INVALID_MODULE_SPECIFIER:an,ERR_INVALID_PACKAGE_CONFIG:on,ERR_INVALID_PACKAGE_TARGET:sn,ERR_MODULE_NOT_FOUND:cn,ERR_PACKAGE_IMPORT_NOT_DEFINED:ln,ERR_PACKAGE_PATH_NOT_EXPORTED:un,ERR_UNSUPPORTED_DIR_IMPORT:dn,ERR_UNSUPPORTED_RESOLVE_REQUEST:fn}=G,pn={}.hasOwnProperty,mn=/(^|\\|\/)((\.|%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,hn=/(^|\\|\/)((\.|%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,gn=/^\.|%|\\/,_n=/\*/g,vn=/%2f|%5c/i,yn=new Set,bn=/[/\\]{2}/;function xn(e,t,n,r,i,a,o){if(W.noDeprecation)return;let s=(0,H.fileURLToPath)(r),c=bn.exec(o?e:t)!==null;W.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,H.fileURLToPath)(a)}`:``}.`,`DeprecationWarning`,`DEP0166`)}function Sn(e,t,n,r){if(W.noDeprecation||function(e,t){let n=e.protocol;return $t.call(tn,n)&&tn[n](e,t,!0)||null}(e,{parentURL:n.href})!==`module`)return;let i=(0,H.fileURLToPath)(e.href),a=(0,H.fileURLToPath)(new H.URL(`.`,t)),o=(0,H.fileURLToPath)(n);r?Nt.resolve(a,r)!==i&&W.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`):W.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 Cn(e){try{return(0,z.statSync)(e)}catch{}}function wn(e){let t=(0,z.statSync)(e,{throwIfNoEntry:!1}),n=t?t.isFile():void 0;return n!=null&&n}function Tn(e,t,n){let r;if(t.main!==void 0){if(r=new H.URL(t.main,e),wn(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 H.URL(i[a],e),!wn(r));)r=void 0;if(r)return Sn(r,e,n,t.main),r}let i=[`./index.js`,`./index.json`,`./index.node`],a=-1;for(;++a<i.length&&(r=new H.URL(i[a],e),!wn(r));)r=void 0;if(r)return Sn(r,e,n,t.main),r;throw new cn((0,H.fileURLToPath)(new H.URL(`.`,e)),(0,H.fileURLToPath)(n))}function En(e,t,n){return new un((0,H.fileURLToPath)(new H.URL(`.`,t)),e,n&&(0,H.fileURLToPath)(n))}function Dn(e,t,n,r,i){return t=typeof t==`object`&&t?JSON.stringify(t,null,``):`${t}`,new sn((0,H.fileURLToPath)(new H.URL(`.`,n)),e,t,r,i&&(0,H.fileURLToPath)(i))}function On(e,t,n,r,i,a,o,s,c){if(t!==``&&!a&&e[e.length-1]!==`/`)throw Dn(n,e,r,o,i);if(!e.startsWith(`./`)){if(o&&!e.startsWith(`../`)&&!e.startsWith(`/`)){let n=!1;try{new H.URL(e),n=!0}catch{}if(!n)return Fn(a?rn.call(_n,e,()=>t):e+t,r,c)}throw Dn(n,e,r,o,i)}if(mn.exec(e.slice(2))!==null){if(hn.exec(e.slice(2))!==null)throw Dn(n,e,r,o,i);if(!s){let s=a?n.replace(`*`,()=>t):n+t;xn(a?rn.call(_n,e,()=>t):e,s,n,r,o,i,!0)}}let l=new H.URL(e,r),u=l.pathname,d=new H.URL(`.`,r).pathname;if(!u.startsWith(d))throw Dn(n,e,r,o,i);if(t===``)return l;if(mn.exec(t)!==null){let c=a?n.replace(`*`,()=>t):n+t;hn.exec(t)===null?s||xn(a?rn.call(_n,e,()=>t):e,c,n,r,o,i,!1):(function(e,t,n,r,i){throw new an(e,`request is not a valid match in pattern "${t}" for the "${r?`imports`:`exports`}" resolution of ${(0,H.fileURLToPath)(n)}`,i&&(0,H.fileURLToPath)(i))})(c,n,r,o,i)}return a?new H.URL(rn.call(_n,l.href,()=>t)):new H.URL(t,l)}function kn(e){let t=Number(e);return`${t}`===e&&t>=0&&t<4294967295}function An(e,t,n,r,i,a,o,s,c){if(typeof t==`string`)return On(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=An(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(kn(l[u]))throw new on((0,H.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=An(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 Dn(r,t,e,o,i)}function jn(e,t,n){if(W.noDeprecation)return;let r=(0,H.fileURLToPath)(t);yn.has(r+`|`+e)||(yn.add(r+`|`+e),W.emitWarning(`Use of deprecated trailing slash pattern mapping "${e}" in the "exports" field module resolution of the package at ${r}${n?` imported from ${(0,H.fileURLToPath)(n)}`:``}. Mapping specifiers ending in "/" is no longer supported.`,`DeprecationWarning`,`DEP0155`))}function Mn(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 on((0,H.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}),pn.call(a,t)&&!t.includes(`*`)&&!t.endsWith(`/`)){let n=An(e,a[t],``,t,r,!1,!1,!1,i);if(n==null)throw En(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(`/`)&&jn(t,e,r);let a=n.slice(i+1);t.length>=n.length&&t.endsWith(a)&&Nn(o,n)===1&&n.lastIndexOf(`*`)===i&&(o=n,s=t.slice(i,t.length-a.length))}}if(o){let n=An(e,a[o],s,o,r,!0,!1,t.endsWith(`/`),i);if(n==null)throw En(t,e,r);return n}throw En(t,e,r)}function Nn(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 Pn(e,t,n){if(e===`#`||e.startsWith(`#/`)||e.endsWith(`/`))throw new an(e,`is not a valid internal imports specifier name`,(0,H.fileURLToPath)(t));let r,i=Xt(t);if(i.exists){r=(0,H.pathToFileURL)(i.pjsonPath);let a=i.imports;if(a)if(pn.call(a,e)&&!e.includes(`*`)){let i=An(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)&&Nn(i,t)===1&&t.lastIndexOf(`*`)===n&&(i=t,o=e.slice(n,e.length-r.length))}}if(i){let e=An(r,a[i],o,i,t,!0,!0,!1,n);if(e!=null)return e}}}throw function(e,t,n){return new ln(e,t&&(0,H.fileURLToPath)(new H.URL(`.`,t)),(0,H.fileURLToPath)(n))}(e,r,t)}function Fn(e,t,n){if(pt.builtinModules.includes(e))return new H.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(gn.exec(a)!==null&&(r=!1),!r)throw new an(e,`is not a valid package name`,(0,H.fileURLToPath)(t));return{packageName:a,packageSubpath:`.`+(n===-1?``:e.slice(n)),isScoped:i}}(e,t),o=Xt(t);if(o.exists){let e=(0,H.pathToFileURL)(o.pjsonPath);if(o.name===r&&o.exports!==void 0&&o.exports!==null)return Mn(e,i,o,t,n)}let s,c=new H.URL(`./node_modules/`+r+`/package.json`,t),l=(0,H.fileURLToPath)(c);do{let o=Cn(l.slice(0,-13));if(!o||!o.isDirectory()){s=l,c=new H.URL((a?`../../../../node_modules/`:`../../../node_modules/`)+r+`/package.json`,c),l=(0,H.fileURLToPath)(c);continue}let u=Yt(l,{base:t,specifier:e});return u.exports!==void 0&&u.exports!==null?Mn(c,i,u,t,n):i===`.`?Tn(c,u,t):new H.URL(i,c)}while(l.length!==s.length);throw new cn(r,(0,H.fileURLToPath)(t),!1)}function In(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 H.URL(e,t)}catch(n){let r=new fn(e,t);throw r.cause=n,r}else if(i===`file:`&&e[0]===`#`)o=Pn(e,t,n);else try{o=new H.URL(e)}catch(r){if(a&&!pt.builtinModules.includes(e)){let n=new fn(e,t);throw n.cause=r,n}o=Fn(e,t,n)}return U(o!==void 0,`expected to be defined`),o.protocol===`file:`?function(e,t){if(vn.exec(e.pathname)!==null)throw new an(e.pathname,`must not include encoded "/" or "\\" characters`,(0,H.fileURLToPath)(t));let n;try{n=(0,H.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=Cn(n.endsWith(`/`)?n.slice(-1):n);if(r&&r.isDirectory()){let r=new dn(n,(0,H.fileURLToPath)(t));throw r.url=String(e),r}if(!r||!r.isFile()){let r=new cn(n||e.pathname,t&&(0,H.fileURLToPath)(t),!0);throw r.url=String(e),r}{let t=(0,z.realpathSync)(n),{search:r,hash:i}=e;(e=(0,H.pathToFileURL)(t+(n.endsWith(Nt.sep)?`/`:``))).search=r,e.hash=i}return e}(o,t):o}function Ln(e){return typeof e!=`string`||e.startsWith(`file://`)?Lt((0,H.fileURLToPath)(e)):Lt(e)}function Rn(e){return(0,H.pathToFileURL)(Ln(e)).toString()}let zn=new Set([`node`,`import`]),Bn=[`.mjs`,`.cjs`,`.js`,`.json`],Vn=new Set([`ERR_MODULE_NOT_FOUND`,`ERR_UNSUPPORTED_DIR_IMPORT`,`MODULE_NOT_FOUND`,`ERR_PACKAGE_PATH_NOT_EXPORTED`]);function Hn(e,t,n){try{return In(e,t,n)}catch(e){if(!Vn.has(e?.code))throw e}}function Un(e,t={}){if(typeof e!=`string`){if(!(e instanceof URL))throw TypeError("input must be a `string` or `URL`");e=Ln(e)}if(/(?:node|data|http|https):/.test(e))return e;if(It.has(e))return`node:`+e;if(e.startsWith(`file://`)&&(e=Ln(e)),V(e))try{if((0,z.statSync)(e).isFile())return Rn(e)}catch(e){if(e?.code!==`ENOENT`)throw e}let n=t.conditions?new Set(t.conditions):zn,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:It.has(e)?`node:`+e:`file://`+encodeURI(Lt(e))}(e.toString())));r.length===0&&r.push(new URL(Rn(process.cwd())));let i=[...r];for(let e of r)e.protocol===`file:`&&i.push(new URL(`./`,e),new URL(yt(e.pathname,`_index.js`),e),new URL(`node_modules`,e));let a;for(let r of i){if(a=Hn(e,r,n),a)break;for(let i of[``,`/index`]){for(let o of t.extensions||Bn)if(a=Hn(yt(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 Rn(a)}function Wn(e,t){return Un(e,t)}function Gn(e,t){return Ln(Wn(e,t))}let Kn=/(?:[\s;]|^)(?:import[\s\w*,{}]*from|import\s*["'*{]|export\b\s*(?:[*{]|default|class|type|function|const|var|let|async function)|import\.meta\b)/m,qn=/\/\*.+?\*\/|\/\/.*(?=[nr])/g;function Jn(e,t={}){return t.stripComments&&(e=e.replace(qn,``)),Kn.test(e)}function Yn(e){if(typeof e!=`string`)throw TypeError(`Expected a string`);return e.replace(/[|\\{}()[\]^$+*?.]/g,`\\$&`).replace(/-/g,`\\x2d`)}let Xn=new Set([`/`,`\\`,void 0]),Zn=Symbol.for(`pathe:normalizedAlias`),Qn=/[/\\]/;function $n(e){if(e[Zn])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)&&Xn.has(t[e][n.length])&&(t[e]=t[n]+t[e].slice(n.length));return Object.defineProperty(t,Zn,{value:!0,enumerable:!1}),t}function er(e=`/`){let t=e[e.length-1];return t===`/`||t===`\\`}var tr={rE:`2.6.1`};let nr=n(`node:crypto`);var rr=i.n(nr);let ir=Object.create(null),ar=e=>globalThis.process?.env||globalThis.Deno?.env.toObject()||globalThis.__env__||(e?ir:globalThis),q=new Proxy(ir,{get:(e,t)=>ar()[t]??ir[t],has:(e,t)=>t in ar()||t in ir,set:(e,t,n)=>(ar(!0)[t]=n,!0),deleteProperty(e,t){return t?(delete ar(!0)[t],!0):!1},ownKeys(){let e=ar(!0);return Object.keys(e)}}),or=typeof process<`u`&&process.env&&process.env.NODE_ENV||``,sr=[[`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}]],cr=function(){if(globalThis.process?.env)for(let e of sr){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}}();cr.name;function lr(e){return!!e&&e!==`false`}let ur=globalThis.process?.platform||``;lr(q.CI)||cr.ci;let dr=lr(globalThis.process?.stdout&&globalThis.process?.stdout.isTTY);q.DEBUG,or===`test`||q.TEST;let fr=(q.MINIMAL,/^win/i.test(ur)),pr=(/^linux/i.test(ur),/^darwin/i.test(ur),!lr(q.NO_COLOR)&&(lr(q.FORCE_COLOR)||(dr||fr)&&q.TERM),(globalThis.process?.versions?.node||``).replace(/^v/,``)||null),mr=(Number(pr?.split(`.`)[0]),globalThis.process||Object.create(null)),hr={versions:{}},gr=(new Proxy(mr,{get:(e,t)=>t===`env`?q:t in e?e[t]:t in hr?hr[t]:void 0}),globalThis.process?.release?.name===`node`),_r=!!globalThis.Bun||!!globalThis.process?.versions?.bun,vr=!!globalThis.Deno,yr=!!globalThis.fastly,br=[[!!globalThis.Netlify,`netlify`],[!!globalThis.EdgeRuntime,`edge-light`],[globalThis.navigator?.userAgent===`Cloudflare-Workers`,`workerd`],[yr,`fastly`],[vr,`deno`],[_r,`bun`],[gr,`node`]];(function(){let e=br.find(e=>e[0]);e&&e[1]})();let xr=n(`node:tty`)?.WriteStream?.prototype?.hasColors?.()??!1,J=(e,t)=>{if(!xr)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}},Sr=(J(0,0),J(1,22),J(2,22),J(3,23),J(4,24),J(53,55),J(7,27),J(8,28),J(9,29),J(30,39),J(31,39)),Cr=J(32,39),wr=J(33,39),Tr=J(34,39),Er=(J(35,39),J(36,39)),Dr=(J(37,39),J(90,39));J(40,49),J(41,49),J(42,49),J(43,49),J(44,49),J(45,49),J(46,49),J(47,49),J(100,49),J(91,39),J(92,39),J(93,39),J(94,39),J(95,39),J(96,39),J(97,39),J(101,49),J(102,49),J(103,49),J(104,49),J(105,49),J(106,49),J(107,49);function Or(e){if(typeof e!=`string`||e.startsWith(`file://`))return!1;try{return(0,z.lstatSync)(e).isDirectory()}catch{return!1}}function kr(e,t=8){return(function(){if(jr!==void 0)return jr;try{return jr=!!rr().getFips?.(),jr}catch{return jr=!1,jr}}()?rr().createHash(`sha256`):rr().createHash(`md5`)).update(e).digest(`hex`).slice(0,t)}let Ar={true:Cr(`true`),false:wr(`false`),"[rebuild]":wr(`[rebuild]`),"[esm]":Tr(`[esm]`),"[cjs]":Cr(`[cjs]`),"[import]":Tr(`[import]`),"[require]":Cr(`[require]`),"[native]":Er(`[native]`),"[transpile]":wr(`[transpile]`),"[fallback]":Sr(`[fallback]`),"[unknown]":Sr(`[unknown]`),"[hit]":Cr(`[hit]`),"[miss]":wr(`[miss]`),"[json]":Cr(`[json]`),"[data]":Cr(`[data]`)};function Y(e,...t){if(!e.opts.debug)return;let n=process.cwd();console.log(Dr([`[jiti]`,...t.map(e=>e in Ar?Ar[e]:typeof e==`string`?e.replace(n,`.`):JSON.stringify(e))].join(` `)))}function X(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 jr;function Z(e,t){return!!Q(e,t)}function Q(e,t){let n=process.env[e];if(!(e in process.env))return t;try{return JSON.parse(n)}catch{return t}}let Mr=/\.(c|m)?j(sx?)$/,Nr=/\.(c|m)?t(sx?)$/;function Pr(e,t,n){let r,i;if(e.isNativeRe.test(t))return t;e.alias&&(t=function(e,t){let n=xt(e);t=$n(t);for(let[e,r]of Object.entries(t))if(n.startsWith(e)&&er(n[(er(e)?e.slice(0,-1):e).length]))return B(r,n.slice(e.length));return n}(t,e.alias));let a=n?.parentURL||e.url;Or(a)&&(a=B(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=Gn(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=Fr(e,t+i,a,n)||Fr(e,t+`/index`+i,a,n),r||(Nr.test(e.filename)||Nr.test(e.parentModule?.filename||``)||Mr.test(t))&&(r=Fr(e,t.replace(Mr,`.$1t$2`),a,n),r))return r;if(!n?.try)throw i}function Fr(e,t,n,r){try{return e.nativeRequire.resolve(t,{...r,paths:[jt(Ln(n)),...r?.paths||[]]})}catch{}}let Ir=n(`node:perf_hooks`),Lr=n(`node:vm`);var Rr=i.n(Lr);function zr(e,t,n){let r=e.parentCache||{};if(t.startsWith(`node:`))return $(e,t,n.async);if(t.startsWith(`file:`))t=(0,H.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 Y(e,`[native]`,`[data]`,`[import]`,t),$(e,t,!0)}if(pt.builtinModules.includes(t)||t===`.pnp.js`)return $(e,t,n.async);if(e.opts.tryNative&&!e.opts.transformOptions)try{if(!(t=Pr(e,t,n))&&n.try)return;if(Y(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],X(e,n)));{let n=e.nativeRequire(t);return!1===e.opts.moduleCache&&delete e.nativeRequire.cache[t],X(e,n)}}catch(n){Y(e,`[try-native] Using fallback for ${t} because of an error:`,n)}let i=Pr(e,t,n);if(!i&&n.try)return;let a=At(i);if(a===`.json`){Y(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 Y(e,`[native]`,`[unknown]`,n.async?`[import]`:`[require]`,i),$(e,i,n.async);if(e.isNativeRe.test(i))return Y(e,`[native]`,n.async?`[import]`:`[require]`,i),$(e,i,n.async);if(r[i])return X(e,r[i]?.exports);if(e.opts.moduleCache){let t=e.nativeRequire.cache[i];if(t?.loaded)return X(e,t.exports)}return Ur(e,(0,z.readFileSync)(i,`utf8`),{id:t,filename:i,ext:a,cache:r,async:n.async})}function $(e,t,n){return n&&e.nativeImport?e.nativeImport(function(e){return fr&&V(e)?Rn(e):e}(t)).then(t=>X(e,t)):X(e,e.nativeRequire(t))}function Br(e,t,n){if(!e.opts.fsCache||!t.filename)return n();let r=` /* v9-${kr(t.source,16)} */\n`,i=`${Mt(jt(t.filename))}-${function(e){let t=e.split(Qn).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`:``)+`.${kr(t.filename)}`+(t.async?`.mjs`:`.cjs`);t.jsx&&t.filename.endsWith(`x`)&&(i+=`x`);let a=e.opts.fsCache,o=B(a,i);if(!e.opts.rebuildFsCache&&(0,z.existsSync)(o)){let n=(0,z.readFileSync)(o,`utf8`);if(n.endsWith(r))return Y(e,`[cache]`,`[hit]`,t.filename,`~>`,o),n}Y(e,`[cache]`,`[miss]`,t.filename);let s=n();return s.includes(`__JITI_ERROR__`)||((0,z.writeFileSync)(o,s+r,`utf8`),Y(e,`[cache]`,`[store]`,t.filename,`~>`,o)),s}function Vr(t){if(!0===t.opts.fsCache&&(t.opts.fsCache=function(t){let n=t.filename&&Ot(t.filename,`../node_modules`);if(n&&(0,z.existsSync)(n))return B(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 B(r,`jiti`)}(t)),t.opts.fsCache)try{if((0,z.mkdirSync)(t.opts.fsCache,{recursive:!0}),!function(e){try{return(0,z.accessSync)(e,z.constants.W_OK),!0}catch{return!1}}(t.opts.fsCache))throw Error(`directory is not writable!`)}catch(e){Y(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&&Y(e,n.error),n.code});return n.startsWith(`#!`)&&(n=`// `+n),n}function Ur(e,t,n={}){let r=n.id||(n.filename?Mt(n.filename):`_jitiEval.${n.ext||(n.async?`mjs`:`js`)}`),i=n.filename||Pr(e,r,{async:n.async}),a=n.ext||At(i),o=n.cache||e.parentCache||{},s=/\.[cm]?tsx?$/.test(a),c=a===`.mjs`||a===`.js`&&function(e){for(;e&&e!==`.`&&e!==`/`;){e=B(e,`..`);try{let t=(0,z.readFileSync)(B(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)||Jn(t))),d=Ir.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*(Ir.performance.now()-d))/1e3;Y(e,`[transpile]`,n.async?`[esm]`:`[cjs]`,i,`(${r}ms)`)}else{if(Y(e,`[native]`,n.async?`[import]`:`[require]`,i),n.async)return Promise.resolve($(e,i,n.async)).catch(r=>(Y(e,`Native import error:`,r),Y(e,`[fallback]`,i),Ur(e,t,{...n,forceTranspile:!0})));try{return $(e,i,n.async)}catch(r){Y(e,`Native require error:`,r),Y(e,`[fallback]`,i),t=Hr(e,{filename:i,source:t,ts:s,async:n.async??!1,jsx:e.opts.jsx})}}let f=new pt.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=jt(i),f.paths=pt.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=Rr().runInThisContext(h,{filename:i,lineOffset:0,displayErrors:!1})}catch(t){t.name===`SyntaxError`&&n.async&&e.nativeImport?(Y(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,jt(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,zr),e.onError(o)}return f.loaded=!0,X(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:Z(`JITI_FS_CACHE`,Z(`JITI_CACHE`,!0)),rebuildFsCache:Z(`JITI_REBUILD_FS_CACHE`,!1),moduleCache:Z(`JITI_MODULE_CACHE`,Z(`JITI_REQUIRE_CACHE`,!0)),debug:Z(`JITI_DEBUG`,!1),sourceMaps:Z(`JITI_SOURCE_MAPS`,!1),interopDefault:Z(`JITI_INTEROP_DEFAULT`,!0),extensions:Q(`JITI_EXTENSIONS`,[`.js`,`.mjs`,`.cjs`,`.ts`,`.tsx`,`.mts`,`.cts`,`.mtsx`,`.ctsx`]),alias:Q(`JITI_ALIAS`,{}),nativeModules:Q(`JITI_NATIVE_MODULES`,[]),transformModules:Q(`JITI_TRANSFORM_MODULES`,[]),tryNative:Q(`JITI_TRY_NATIVE`,`Bun`in globalThis),jsx:Z(`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?$n(i.alias||{}):void 0,o=[`typescript`,`jiti`,...i.nativeModules||[]],s=RegExp(`node_modules/(${o.map(e=>Yn(e)).join(`|`)})/`),c=[...i.transformModules||[]],l=RegExp(`node_modules/(${c.map(e=>Yn(e)).join(`|`)})/`);e||=process.cwd(),!r&&Or(e)&&(e=B(e,`_index.js`));let u=Rn(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||Y(p,`[init]`,...[[`version:`,tr.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 zr(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 Pr(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 zr(p,e,{...t,async:!0});return t?.default?n?.default??n:n},esmResolve(e,t){typeof t==`string`&&(t={parentURL:t});let n=Pr(p,e,{parentURL:u,...t,async:!0});return!n||typeof n!=`string`||n.startsWith(`file://`)?n:Rn(n)}})}})(),t.exports=a.default})()}));function o(e){throw e}function s(...e){return d||=i(import.meta.url)(`../dist/babel.cjs`),d(...e)}function c(e,t={}){return t.transform||(t={...t,transform:s}),(0,l.default)(e,t,{onError:o,nativeImport:u,createRequire:i})}var l,u,d;t((()=>{l=e(a(),1),u=e=>import(e)}))();export{c as createJiti,c as default};
@@ -1,4 +1,4 @@
1
- //#region node_modules/@types/json-schema/index.d.ts
1
+ //#region node_modules/.pnpm/@types+json-schema@7.0.15/node_modules/@types/json-schema/index.d.ts
2
2
  // ==================================================================================================
3
3
  // JSON Schema Draft 04
4
4
  // ==================================================================================================
@@ -197,7 +197,7 @@ interface JSONSchema4 {
197
197
  format?: string | undefined;
198
198
  }
199
199
  //#endregion
200
- //#region node_modules/@eslint/core/dist/esm/types.d.ts
200
+ //#region node_modules/.pnpm/@eslint+core@1.1.1/node_modules/@eslint/core/dist/esm/types.d.ts
201
201
  /**
202
202
  * Represents an error inside of a file.
203
203
  */
@@ -266,11 +266,6 @@ interface RulesMetaDocs {
266
266
  * The URL to the documentation for the rule.
267
267
  */
268
268
  url?: string | undefined;
269
- /**
270
- * The category the rule falls under.
271
- * @deprecated No longer used.
272
- */
273
- category?: string | undefined;
274
269
  /**
275
270
  * Indicates if the rule is generally recommended for all users.
276
271
  *
@@ -417,56 +412,26 @@ interface RuleContext<Options extends RuleContextTypeOptions = RuleContextTypeOp
417
412
  * The current working directory for the session.
418
413
  */
419
414
  cwd: string;
420
- /**
421
- * Returns the current working directory for the session.
422
- * @deprecated Use `cwd` instead.
423
- */
424
- getCwd(): string;
425
415
  /**
426
416
  * The filename of the file being linted.
427
417
  */
428
418
  filename: string;
429
- /**
430
- * Returns the filename of the file being linted.
431
- * @deprecated Use `filename` instead.
432
- */
433
- getFilename(): string;
434
419
  /**
435
420
  * The physical filename of the file being linted.
436
421
  */
437
422
  physicalFilename: string;
438
- /**
439
- * Returns the physical filename of the file being linted.
440
- * @deprecated Use `physicalFilename` instead.
441
- */
442
- getPhysicalFilename(): string;
443
423
  /**
444
424
  * The source code object that the rule is running on.
445
425
  */
446
426
  sourceCode: Options["Code"];
447
- /**
448
- * Returns the source code object that the rule is running on.
449
- * @deprecated Use `sourceCode` instead.
450
- */
451
- getSourceCode(): Options["Code"];
452
427
  /**
453
428
  * Shared settings for the configuration.
454
429
  */
455
430
  settings: SettingsConfig;
456
- /**
457
- * Parser-specific options for the configuration.
458
- * @deprecated Use `languageOptions.parserOptions` instead.
459
- */
460
- parserOptions: Record<string, unknown>;
461
431
  /**
462
432
  * The language options for the configuration.
463
433
  */
464
434
  languageOptions: Options["LangOptions"];
465
- /**
466
- * The CommonJS path to the parser used while parsing this file.
467
- * @deprecated No longer used.
468
- */
469
- parserPath: string | undefined;
470
435
  /**
471
436
  * The rule ID.
472
437
  */
@@ -555,11 +520,15 @@ interface RuleTextEdit {
555
520
  * @returns The fix(es) for the violation.
556
521
  */
557
522
  type RuleFixer = (fixer: RuleTextEditor) => RuleTextEdit | Iterable<RuleTextEdit> | null;
558
- interface ViolationReportBase {
523
+ /**
524
+ * Data that can be used to fill placeholders in error messages.
525
+ */
526
+ type MessagePlaceholderData = Record<string, string | number | boolean | bigint | null | undefined>;
527
+ interface ViolationReportBase<MessageIds extends string = string> {
559
528
  /**
560
529
  * The data to insert into the message.
561
530
  */
562
- data?: Record<string, unknown> | undefined;
531
+ data?: MessagePlaceholderData | undefined;
563
532
  /**
564
533
  * The fix to be applied for the violation.
565
534
  */
@@ -568,9 +537,9 @@ interface ViolationReportBase {
568
537
  * An array of suggested fixes for the problem. These fixes may change the
569
538
  * behavior of the code, so they are not applied automatically.
570
539
  */
571
- suggest?: SuggestedEdit[] | null | undefined;
540
+ suggest?: SuggestedEdit<MessageIds>[] | null | undefined;
572
541
  }
573
- type ViolationMessage<MessageIds = string> = {
542
+ type ViolationMessage<MessageIds extends string = string> = {
574
543
  message: string;
575
544
  } | {
576
545
  messageId: MessageIds;
@@ -580,26 +549,26 @@ type ViolationLocation<Node> = {
580
549
  } | {
581
550
  node: Node;
582
551
  };
583
- type ViolationReport<Node = unknown, MessageIds = string> = ViolationReportBase & ViolationMessage<MessageIds> & ViolationLocation<Node>;
552
+ type ViolationReport<Node = unknown, MessageIds extends string = string> = ViolationReportBase<MessageIds> & ViolationMessage<MessageIds> & ViolationLocation<Node>;
584
553
  interface SuggestedEditBase {
585
554
  /**
586
555
  * The data to insert into the message.
587
556
  */
588
- data?: Record<string, unknown> | undefined;
557
+ data?: MessagePlaceholderData | undefined;
589
558
  /**
590
559
  * The fix to be applied for the suggestion.
591
560
  */
592
561
  fix: RuleFixer;
593
562
  }
594
- type SuggestionMessage = {
563
+ type SuggestionMessage<MessageIds extends string = string> = {
595
564
  desc: string;
596
565
  } | {
597
- messageId: string;
566
+ messageId: MessageIds;
598
567
  };
599
568
  /**
600
569
  * A suggested edit for a rule violation.
601
570
  */
602
- type SuggestedEdit = SuggestedEditBase & SuggestionMessage;
571
+ type SuggestedEdit<MessageIds extends string = string> = SuggestedEditBase & SuggestionMessage<MessageIds>;
603
572
  /**
604
573
  * The normalized version of a lint suggestion.
605
574
  */
@@ -629,11 +598,6 @@ interface LintMessage {
629
598
  message: string;
630
599
  /** The ID of the message in the rule's meta. */
631
600
  messageId?: string | undefined;
632
- /**
633
- * Type of node.
634
- * @deprecated `nodeType` is deprecated and will be removed in the next major version.
635
- */
636
- nodeType?: string | undefined;
637
601
  /** If `true` then this is a fatal error. */
638
602
  fatal?: true | undefined;
639
603
  /** The severity of this message. */
@@ -801,7 +765,7 @@ interface ConfigObject<Rules extends RulesConfig = RulesConfig> {
801
765
  * An object containing name-value pairs of information that should be
802
766
  * available to all rules.
803
767
  */
804
- settings?: Record<string, unknown>;
768
+ settings?: SettingsConfig;
805
769
  }
806
770
  /** @deprecated Only supported in legacy eslintrc config format. */
807
771
  type GlobalAccess = boolean | "off" | "readable" | "readonly" | "writable" | "writeable";
@@ -864,7 +828,6 @@ interface JavaScriptParserOptionsConfig {
864
828
  globalReturn?: boolean | undefined;
865
829
  impliedStrict?: boolean | undefined;
866
830
  jsx?: boolean | undefined;
867
- experimentalObjectRestSpread?: boolean | undefined;
868
831
  [key: string]: any;
869
832
  } | undefined;
870
833
  [key: string]: any;
@@ -1333,4 +1296,4 @@ interface Directive {
1333
1296
  justification?: string;
1334
1297
  }
1335
1298
  //#endregion
1336
- export { Severity as A, ViolationMessage as B, RuleDefinition as C, RuleVisitor as D, RuleTextEditor as E, SuggestedEditBase as F, ViolationReportBase as H, SuggestionMessage as I, TextSourceCode as L, SeverityName as M, SourceRange as N, RulesConfig as O, SuggestedEdit as P, TraversalStep as R, RuleContext as S, RuleTextEdit as T, ViolationReport as V, ObjectMetaProperties as _, EcmaVersion as a, ProcessorFile as b, GlobalsConfig as c, JavaScriptSourceType as d, LanguageOptions as f, LinterOptionsConfig as g, LintSuggestion as h, DeprecatedInfo as i, SeverityLevel as j, RulesMeta as k, HasRules as l, LintMessage as m, ConfigObject as n, EnvironmentConfig as o, LegacyConfigObject as p, ConfigOverride as r, GlobalAccess as s, BaseConfig as t, JavaScriptParserOptionsConfig as u, Plugin as v, RuleFixer as w, RuleConfig as x, Processor as y, ViolationLocation as z };
1299
+ export { Severity as A, ViolationMessage as B, RuleDefinition as C, RuleVisitor as D, RuleTextEditor as E, SuggestedEditBase as F, ViolationReportBase as H, SuggestionMessage as I, TextSourceCode as L, SeverityName as M, SourceRange as N, RulesConfig as O, SuggestedEdit as P, TraversalStep as R, RuleContext as S, RuleTextEdit as T, ViolationReport as V, ObjectMetaProperties as _, EcmaVersion as a, ProcessorFile as b, GlobalsConfig as c, LanguageOptions as d, LegacyConfigObject as f, MessagePlaceholderData as g, LinterOptionsConfig as h, DeprecatedInfo as i, SeverityLevel as j, RulesMeta as k, HasRules as l, LintSuggestion as m, ConfigObject as n, EnvironmentConfig as o, LintMessage as p, ConfigOverride as r, GlobalAccess as s, BaseConfig as t, JavaScriptSourceType as u, Plugin as v, RuleFixer as w, RuleConfig as x, Processor as y, ViolationLocation as z };