@eslint-sukka/react 8.0.3 → 8.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +3 -3
- package/package.json +9 -9
package/dist/index.cjs
CHANGED
|
@@ -389,13 +389,13 @@ The file was not found in any of the provided ${a}: ${r}`)},Tl.createProgramFrom
|
|
|
389
389
|
Having many files run with the default project is known to cause performance issues and slow down linting.
|
|
390
390
|
|
|
391
391
|
See https://typescript-eslint.io/troubleshooting/typed-linting#allowdefaultproject-glob-too-wide
|
|
392
|
-
`,Tg)}var Ty={};function Tv(){if(i5)return Ty;i5=1,Object.defineProperty(Ty,"__esModule",{value:!0}),Ty.addCandidateTSConfigRootDir=function(t){e.add(t)},Ty.clearCandidateTSConfigRootDirs=function(){e.clear()},Ty.getInferredTSConfigRootDir=function(){let t=[...e];switch(t.length){case 0:return process.cwd();case 1:return t[0];default:throw Error(["No tsconfigRootDir was set, and multiple candidate TSConfigRootDirs are present:",...t.map(e=>` - ${e}`),"You'll need to explicitly set tsconfigRootDir in your parser options.","See: https://typescript-eslint.io/packages/parser/#tsconfigrootdir"].join("\n"))}};let e=new Set;return Ty}var Tb={};function TT(){if(i7)return Tb;i7=1,Object.defineProperty(Tb,"__esModule",{value:!0}),Tb.ExpiringCache=Tb.DEFAULT_TSCONFIG_CACHE_DURATION_SECONDS=void 0,Tb.DEFAULT_TSCONFIG_CACHE_DURATION_SECONDS=30;let e=[0,0];return Tb.ExpiringCache=class{#$;#W=new Map;constructor(e){this.#$=e}clear(){this.#W.clear()}get(e){let t=this.#W.get(e);if(t?.value!=null){if("Infinity"===this.#$||process.hrtime(t.lastSeen)[0]<this.#$)return t.value;this.#W.delete(e)}}set(t,n){return this.#W.set(t,{lastSeen:"Infinity"===this.#$?e:process.hrtime(),value:n}),this}},Tb}var TS={},Tx={},TE={},Tk={},TP={},TC={},Tw={},TA={},TD={},TN={};function TF(){if(al)return as;al=1;var e=ao?aa:(ao=1,aa=function(e){var t;if("string"!=typeof e||""===e)return!1;for(;t=/(\\).|([@?!+*]\(.*\))/g.exec(e);){if(t[2])return!0;e=e.slice(t.index+t[0].length)}return!1}),t={"{":"}","(":")","[":"]"},n=function(e){if("!"===e[0])return!0;for(var n=0,r=-2,i=-2,a=-2,o=-2,s=-2;n<e.length;){if("*"===e[n]||"?"===e[n+1]&&/[\].+)]/.test(e[n])||-1!==i&&"["===e[n]&&"]"!==e[n+1]&&(i<n&&(i=e.indexOf("]",n)),i>n)&&(-1===s||s>i||-1===(s=e.indexOf("\\",n))||s>i)||-1!==a&&"{"===e[n]&&"}"!==e[n+1]&&(a=e.indexOf("}",n))>n&&(-1===(s=e.indexOf("\\",n))||s>a)||-1!==o&&"("===e[n]&&"?"===e[n+1]&&/[:!=]/.test(e[n+2])&&")"!==e[n+3]&&(o=e.indexOf(")",n))>n&&(-1===(s=e.indexOf("\\",n))||s>o)||-1!==r&&"("===e[n]&&"|"!==e[n+1]&&(r<n&&(r=e.indexOf("|",n)),-1!==r&&")"!==e[r+1]&&(o=e.indexOf(")",r))>r)&&(-1===(s=e.indexOf("\\",r))||s>o))return!0;if("\\"===e[n]){var l=e[n+1];n+=2;var c=t[l];if(c){var u=e.indexOf(c,n);-1!==u&&(n=u+1)}if("!"===e[n])return!0}else n++}return!1},r=function(e){if("!"===e[0])return!0;for(var n=0;n<e.length;){if(/[*?{}()[\]]/.test(e[n]))return!0;if("\\"===e[n]){var r=e[n+1];n+=2;var i=t[r];if(i){var a=e.indexOf(i,n);-1!==a&&(n=a+1)}if("!"===e[n])return!0}else n++}return!1};return as=function(t,i){if("string"!=typeof t||""===t)return!1;if(e(t))return!0;var a=n;return i&&!1===i.strict&&(a=r),a(t)}}var TO={};function TI(){return a_?TO:(a_=1,TO.isInteger=e=>"number"==typeof e?Number.isInteger(e):"string"==typeof e&&""!==e.trim()&&Number.isInteger(Number(e)),TO.find=(e,t)=>e.nodes.find(e=>e.type===t),TO.exceedsLimit=(e,t,n=1,r)=>!1!==r&&!!TO.isInteger(e)&&!!TO.isInteger(t)&&(Number(t)-Number(e))/Number(n)>=r,TO.escapeNode=(e,t=0,n)=>{let r=e.nodes[t];r&&(n&&r.type===n||"open"===r.type||"close"===r.type)&&!0!==r.escaped&&(r.value="\\"+r.value,r.escaped=!0)},TO.encloseBrace=e=>"brace"===e.type&&e.commas>>0+e.ranges==0&&(e.invalid=!0,!0),TO.isInvalidBrace=e=>"brace"===e.type&&(!0===e.invalid||!!e.dollar||(e.commas>>0+e.ranges==0||!0!==e.open||!0!==e.close)&&(e.invalid=!0,!0)),TO.isOpenOrClose=e=>"open"===e.type||"close"===e.type||!0===e.open||!0===e.close,TO.reduce=e=>e.reduce((e,t)=>("text"===t.type&&e.push(t.value),"range"===t.type&&(t.type="text"),e),[]),TO.flatten=(...e)=>{let t=[],n=e=>{for(let r=0;r<e.length;r++){let i=e[r];if(Array.isArray(i)){n(i);continue}void 0!==i&&t.push(i)}return t};return n(e),t},TO)}function TL(){if(ap)return ad;ap=1;let e=TI();return ad=(t,n={})=>{let r=(t,i={})=>{let a=n.escapeInvalid&&e.isInvalidBrace(i),o=!0===t.invalid&&!0===n.escapeInvalid,s="";if(t.value)return(a||o)&&e.isOpenOrClose(t)?"\\"+t.value:t.value;if(t.value)return t.value;if(t.nodes)for(let e of t.nodes)s+=r(e);return s};return r(t)}}function TM(){if(av)return ay;av=1;let e=function(){if(ah)return ag;ah=1;let e=am?af:(am=1,af=function(e){return"number"==typeof e?e-e==0:"string"==typeof e&&""!==e.trim()&&(Number.isFinite?Number.isFinite(+e):isFinite(+e))}),t=(i,a,o)=>{var s,l;let u,_,d;if(!1===e(i))throw TypeError("toRegexRange: expected the first argument to be a number");if(void 0===a||i===a)return String(i);if(!1===e(a))throw TypeError("toRegexRange: expected the second argument to be a number.");let p={relaxZeros:!0,...o};"boolean"==typeof p.strictZeros&&(p.relaxZeros=!1===p.strictZeros);let f=i+":"+a+"="+String(p.relaxZeros)+String(p.shorthand)+String(p.capture)+String(p.wrap);if(t.cache.hasOwnProperty(f))return t.cache[f].result;let m=Math.min(i,a),g=Math.max(i,a);if(1===Math.abs(m-g)){let e=i+"|"+a;return p.capture?`(${e})`:!1===p.wrap?e:`(?:${e})`}let h=c(i)||c(a),y={min:i,max:a,a:m,b:g},b=[],T=[];return h&&(y.isPadded=h,y.maxLen=String(y.max).length),m<0&&(T=n(g<0?Math.abs(g):1,Math.abs(m),y,p),m=y.a=0),g>=0&&(b=n(m,g,y,p)),y.negatives=T,y.positives=b,u=r(s=T,l=b,"-",!1)||[],_=r(l,s,"",!1)||[],d=r(s,l,"-?",!0)||[],y.result=u.concat(d).concat(_).join("|"),!0===p.capture?y.result=`(${y.result})`:!1!==p.wrap&&b.length+T.length>1&&(y.result=`(?:${y.result})`),t.cache[f]=y,y.result};function n(e,t,n,r){let a,c=function(e,t){let n=1,r=1,a=o(e,1),l=new Set([t]);for(;e<=a&&a<=t;)l.add(a),n+=1,a=o(e,n);for(a=s(t+1,r)-1;e<a&&a<=t;)l.add(a),r+=1,a=s(t+1,r)-1;return(l=[...l]).sort(i),l}(e,t),u=[],_=e;for(let e=0;e<c.length;e++){let t=c[e],i=function(e,t,n){if(e===t)return{pattern:e,count:[],digits:0};let r=function(e,t){let n=[];for(let r=0;r<e.length;r++)n.push([e[r],t[r]]);return n}(e,t),i=r.length,a="",o=0;for(let e=0;e<i;e++){var s,l;let[t,n]=r[e];t===n?a+=t:"0"!==t||"9"!==n?a+=(s=t,l=n,`[${s}${l-s==1?"":"-"}${l}]`):o++}return o&&(a+=!0===n.shorthand?"\\d":"[0-9]"),{pattern:a,count:[o],digits:i}}(String(_),String(t),r),o="";if(!n.isPadded&&a&&a.pattern===i.pattern){a.count.length>1&&a.count.pop(),a.count.push(i.count[0]),a.string=a.pattern+l(a.count),_=t+1;continue}n.isPadded&&(o=function(e,t,n){if(!t.isPadded)return e;let r=Math.abs(t.maxLen-String(e).length),i=!1!==n.relaxZeros;switch(r){case 0:return"";case 1:return i?"0?":"0";case 2:return i?"0{0,2}":"00";default:return i?`0{0,${r}}`:`0{${r}}`}}(t,n,r)),i.string=o+i.pattern+l(i.count),u.push(i),_=t+1,a=i}return u}function r(e,t,n,r,i){let o=[];for(let i of e){let{string:e}=i;r||a(t,"string",e)||o.push(n+e),r&&a(t,"string",e)&&o.push(n+e)}return o}function i(e,t){return e>t?1:t>e?-1:0}function a(e,t,n){return e.some(e=>e[t]===n)}function o(e,t){return Number(String(e).slice(0,-t)+"9".repeat(t))}function s(e,t){return e-e%Math.pow(10,t)}function l(e){let[t=0,n=""]=e;return n||t>1?`{${t+(n?","+n:"")}}`:""}function c(e){return/^-?(0+)\d/.test(e)}return t.cache={},t.clearCache=()=>t.cache={},ag=t}(),t=e=>null!==e&&"object"==typeof e&&!Array.isArray(e),n=e=>"number"==typeof e||"string"==typeof e&&""!==e,r=e=>{let t=`${e}`,n=-1;if("-"===t[0]&&(t=t.slice(1)),"0"===t)return!1;for(;"0"===t[++n];);return n>0},i=(e,t,n)=>{if(t>0){let n="-"===e[0]?"-":"";n&&(e=e.slice(1)),e=n+e.padStart(n?t-1:t,"0")}return!1===n?String(e):e},a=(e,t)=>{let n="-"===e[0]?"-":"";for(n&&(e=e.slice(1),t--);e.length<t;)e="0"+e;return n?"-"+e:e},o=(t,n,r,i)=>{if(r)return e(t,n,{wrap:!1,...i});let a=String.fromCharCode(t);if(t===n)return a;let o=String.fromCharCode(n);return`[${a}-${o}]`},s=(t,n,r)=>{if(Array.isArray(t)){let e=!0===r.wrap,n=r.capture?"":"?:";return e?`(${n}${t.join("|")})`:t.join("|")}return e(t,n,r)},l=(...e)=>RangeError("Invalid range arguments: "+ba.inspect(...e)),c=(e,t,n)=>{if(!0===n.strictRanges)throw l([e,t]);return[]},u=(e,_,d,p={})=>{if(null==_&&n(e))return[e];if(!n(e)||!n(_))return c(e,_,p);if("function"==typeof d)return u(e,_,1,{transform:d});if(t(d))return u(e,_,0,d);let f={...p};if(!0===f.capture&&(f.wrap=!0),!Number.isInteger(+(d=d||f.step||1))){if(null!=d&&!t(d)){var m=d;if(!0===f.strictRanges)throw TypeError(`Expected step "${m}" to be a number`);return[]}return u(e,_,1,d)}return Number.isInteger(+e)&&Number.isInteger(+_)?((e,t,n=1,c={})=>{let u=Number(e),_=Number(t);if(!Number.isInteger(u)||!Number.isInteger(_)){if(!0===c.strictRanges)throw l([e,t]);return[]}0===u&&(u=0),0===_&&(_=0);let d=u>_,p=String(e),f=String(t),m=String(n);n=Math.max(Math.abs(n),1);let g=r(p)||r(f)||r(m),h=g?Math.max(p.length,f.length,m.length):0,y=!1===g&&!1==("string"==typeof e||"string"==typeof t||!0===c.stringify),b=c.transform||(e=>!0===y?Number(e):String(e));if(c.toRegex&&1===n)return o(a(e,h),a(t,h),!0,c);let T={negatives:[],positives:[]},S=e=>T[e<0?"negatives":"positives"].push(Math.abs(e)),x=[],E=0;for(;d?u>=_:u<=_;)!0===c.toRegex&&n>1?S(u):x.push(i(b(u,E),h,y)),u=d?u-n:u+n,E++;if(!0===c.toRegex){let e,t,r,i;return n>1?(T.negatives.sort((e,t)=>e<t?-1:+(e>t)),T.positives.sort((e,t)=>e<t?-1:+(e>t)),t=c.capture?"":"?:",r="",i="",(T.positives.length&&(r=T.positives.map(e=>a(String(e),h)).join("|")),T.negatives.length&&(i=`-(${t}${T.negatives.map(e=>a(String(e),h)).join("|")})`),e=r&&i?`${r}|${i}`:r||i,c.wrap)?`(${t}${e})`:e):s(x,null,{wrap:!1,...c})}return x})(e,_,d,f):((e,t,n=1,r={})=>{if(!Number.isInteger(+e)&&e.length>1||!Number.isInteger(+t)&&t.length>1)return c(e,t,r);let i=r.transform||(e=>String.fromCharCode(e)),a=`${e}`.charCodeAt(0),l=`${t}`.charCodeAt(0),u=a>l,_=Math.min(a,l),d=Math.max(a,l);if(r.toRegex&&1===n)return o(_,d,!1,r);let p=[],f=0;for(;u?a>=l:a<=l;)p.push(i(a,f)),a=u?a-n:a+n,f++;return!0===r.toRegex?s(p,null,{wrap:!1,options:r}):p})(e,_,Math.max(Math.abs(d),1),f)};return ay=u}var TR={};function Tj(){if(aN)return aD;aN=1;let e="[^\\\\/]",t="[^/]",n="(?:\\/|$)",r="(?:^|\\/)",i=`\\.{1,2}${n}`,a=`(?!${r}${i})`,o=`(?!\\.{0,1}${n})`,s=`(?!${i})`,l=`${t}*?`,c={DOT_LITERAL:"\\.",PLUS_LITERAL:"\\+",QMARK_LITERAL:"\\?",SLASH_LITERAL:"\\/",ONE_CHAR:"(?=.)",QMARK:t,END_ANCHOR:n,DOTS_SLASH:i,NO_DOT:"(?!\\.)",NO_DOTS:a,NO_DOT_SLASH:o,NO_DOTS_SLASH:s,QMARK_NO_DOT:"[^.\\/]",STAR:l,START_ANCHOR:r},u={...c,SLASH_LITERAL:"[\\\\/]",QMARK:e,STAR:`${e}*?`,DOTS_SLASH:"\\.{1,2}(?:[\\\\/]|$)",NO_DOT:"(?!\\.)",NO_DOTS:"(?!(?:^|[\\\\/])\\.{1,2}(?:[\\\\/]|$))",NO_DOT_SLASH:"(?!\\.{0,1}(?:[\\\\/]|$))",NO_DOTS_SLASH:"(?!\\.{1,2}(?:[\\\\/]|$))",QMARK_NO_DOT:"[^.\\\\/]",START_ANCHOR:"(?:^|[\\\\/])",END_ANCHOR:"(?:[\\\\/]|$)"};return aD={MAX_LENGTH:65536,POSIX_REGEX_SOURCE:{alnum:"a-zA-Z0-9",alpha:"a-zA-Z",ascii:"\\x00-\\x7F",blank:" \\t",cntrl:"\\x00-\\x1F\\x7F",digit:"0-9",graph:"\\x21-\\x7E",lower:"a-z",print:"\\x20-\\x7E ",punct:"\\-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~",space:" \\t\\r\\n\\v\\f",upper:"A-Z",word:"A-Za-z0-9_",xdigit:"A-Fa-f0-9"},REGEX_BACKSLASH:/\\(?![*+?^${}(|)[\]])/g,REGEX_NON_SPECIAL_CHARS:/^[^@![\].,$*+?^{}()|\\/]+/,REGEX_SPECIAL_CHARS:/[-*+?.^${}(|)[\]]/,REGEX_SPECIAL_CHARS_BACKREF:/(\\?)((\W)(\3*))/g,REGEX_SPECIAL_CHARS_GLOBAL:/([-*+?.^${}(|)[\]])/g,REGEX_REMOVE_BACKSLASH:/(?:\[.*?[^\\]\]|\\(?=.))/g,REPLACEMENTS:{"***":"*","**/**":"**","**/**/**":"**"},CHAR_0:48,CHAR_9:57,CHAR_UPPERCASE_A:65,CHAR_LOWERCASE_A:97,CHAR_UPPERCASE_Z:90,CHAR_LOWERCASE_Z:122,CHAR_LEFT_PARENTHESES:40,CHAR_RIGHT_PARENTHESES:41,CHAR_ASTERISK:42,CHAR_AMPERSAND:38,CHAR_AT:64,CHAR_BACKWARD_SLASH:92,CHAR_CARRIAGE_RETURN:13,CHAR_CIRCUMFLEX_ACCENT:94,CHAR_COLON:58,CHAR_COMMA:44,CHAR_DOT:46,CHAR_DOUBLE_QUOTE:34,CHAR_EQUAL:61,CHAR_EXCLAMATION_MARK:33,CHAR_FORM_FEED:12,CHAR_FORWARD_SLASH:47,CHAR_GRAVE_ACCENT:96,CHAR_HASH:35,CHAR_HYPHEN_MINUS:45,CHAR_LEFT_ANGLE_BRACKET:60,CHAR_LEFT_CURLY_BRACE:123,CHAR_LEFT_SQUARE_BRACKET:91,CHAR_LINE_FEED:10,CHAR_NO_BREAK_SPACE:160,CHAR_PERCENT:37,CHAR_PLUS:43,CHAR_QUESTION_MARK:63,CHAR_RIGHT_ANGLE_BRACKET:62,CHAR_RIGHT_CURLY_BRACE:125,CHAR_RIGHT_SQUARE_BRACKET:93,CHAR_SEMICOLON:59,CHAR_SINGLE_QUOTE:39,CHAR_SPACE:32,CHAR_TAB:9,CHAR_UNDERSCORE:95,CHAR_VERTICAL_LINE:124,CHAR_ZERO_WIDTH_NOBREAK_SPACE:65279,SEP:h6.sep,extglobChars:e=>({"!":{type:"negate",open:"(?:(?!(?:",close:`))${e.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}),globChars:e=>!0===e?u:c}}function TY(){return aF||(aF=1,!function(e){let t="win32"===process.platform,{REGEX_BACKSLASH:n,REGEX_REMOVE_BACKSLASH:r,REGEX_SPECIAL_CHARS:i,REGEX_SPECIAL_CHARS_GLOBAL:a}=Tj();e.isObject=e=>null!==e&&"object"==typeof e&&!Array.isArray(e),e.hasRegexChars=e=>i.test(e),e.isRegexChar=t=>1===t.length&&e.hasRegexChars(t),e.escapeRegex=e=>e.replace(a,"\\$1"),e.toPosixSlashes=e=>e.replace(n,"/"),e.removeBackslashes=e=>e.replace(r,e=>"\\"===e?"":e),e.supportsLookbehinds=()=>{let e=process.version.slice(1).split(".").map(Number);return 3===e.length&&!!(e[0]>=9)||8===e[0]&&!!(e[1]>=10)},e.isWindows=e=>e&&"boolean"==typeof e.windows?e.windows:!0===t||"\\"===h6.sep,e.escapeLast=(t,n,r)=>{let i=t.lastIndexOf(n,r);return -1===i?t:"\\"===t[i-1]?e.escapeLast(t,n,i-1):`${t.slice(0,i)}\\${t.slice(i)}`},e.removePrefix=(e,t={})=>{let n=e;return n.startsWith("./")&&(n=n.slice(2),t.prefix="./"),n},e.wrapOutput=(e,t={},n={})=>{let r=n.contains?"":"^",i=n.contains?"":"$",a=`${r}(?:${e})${i}`;return!0===t.negated&&(a=`(?:^(?!${a}).*$)`),a}}(TR)),TR}var TU={},TB=s2(sQ),TV={};function TJ(){return aK||(aK=1,Object.defineProperty(TP,"__esModule",{value:!0}),TP.string=TP.stream=TP.pattern=TP.path=TP.fs=TP.errno=TP.array=void 0,at||(at=1,Object.defineProperty(TC,"__esModule",{value:!0}),TC.splitWhen=TC.flatten=void 0,TC.flatten=function(e){return e.reduce((e,t)=>[].concat(e,t),[])},TC.splitWhen=function(e,t){let n=[[]],r=0;for(let i of e)t(i)?n[++r]=[]:n[r].push(i);return n}),TP.array=TC,an||(an=1,Object.defineProperty(Tw,"__esModule",{value:!0}),Tw.isEnoentCodeError=void 0,Tw.isEnoentCodeError=function(e){return"ENOENT"===e.code}),TP.errno=Tw,TP.fs=function(){if(ar)return TA;ar=1,Object.defineProperty(TA,"__esModule",{value:!0}),TA.createDirentFromStats=void 0;class e{constructor(e,t){this.name=e,this.isBlockDevice=t.isBlockDevice.bind(t),this.isCharacterDevice=t.isCharacterDevice.bind(t),this.isDirectory=t.isDirectory.bind(t),this.isFIFO=t.isFIFO.bind(t),this.isFile=t.isFile.bind(t),this.isSocket=t.isSocket.bind(t),this.isSymbolicLink=t.isSymbolicLink.bind(t)}}return TA.createDirentFromStats=function(t,n){return new e(t,n)},TA}(),TP.path=function(){if(ai)return TD;ai=1,Object.defineProperty(TD,"__esModule",{value:!0}),TD.convertPosixPathToPattern=TD.convertWindowsPathToPattern=TD.convertPathToPattern=TD.escapePosixPath=TD.escapeWindowsPath=TD.escape=TD.removeLeadingDotSegment=TD.makeAbsolute=TD.unixify=void 0;let e="win32"===h4.platform(),t=/(\\?)([()*?[\]{|}]|^!|[!+@](?=\()|\\(?![!()*+?@[\]{|}]))/g,n=/(\\?)([()[\]{}]|^!|[!+@](?=\())/g,r=/^\\\\([.?])/,i=/\\(?![!()+@[\]{}])/g;function a(e){return e.replace(n,"\\$2")}function o(e){return e.replace(t,"\\$2")}function s(e){return a(e).replace(r,"//$1").replace(i,"/")}function l(e){return o(e)}return TD.unixify=function(e){return e.replace(/\\/g,"/")},TD.makeAbsolute=function(e,t){return h6.resolve(e,t)},TD.removeLeadingDotSegment=function(e){if("."===e.charAt(0)){let t=e.charAt(1);if("/"===t||"\\"===t)return e.slice(2)}return e},TD.escape=e?a:o,TD.escapeWindowsPath=a,TD.escapePosixPath=o,TD.convertPathToPattern=e?s:l,TD.convertWindowsPathToPattern=s,TD.convertPosixPathToPattern=l,TD}(),TP.pattern=function(){if(aJ)return TN;aJ=1,Object.defineProperty(TN,"__esModule",{value:!0}),TN.isAbsolute=TN.partitionAbsoluteAndRelative=TN.removeDuplicateSlashes=TN.matchAny=TN.convertPatternsToRe=TN.makeRe=TN.getPatternParts=TN.expandBraceExpansion=TN.expandPatternsWithBraceExpansion=TN.isAffectDepthOfReadingPattern=TN.endsWithSlashGlobStar=TN.hasGlobStar=TN.getBaseDirectory=TN.isPatternRelatedToParentDirectory=TN.getPatternsOutsideCurrentDirectory=TN.getPatternsInsideCurrentDirectory=TN.getPositivePatterns=TN.getNegativePatterns=TN.isPositivePattern=TN.isNegativePattern=TN.convertToNegativePattern=TN.convertToPositivePattern=TN.isDynamicPattern=TN.isStaticPattern=void 0;let e=function(){if(au)return ac;au=1;var e=TF(),t=h6.posix.dirname,n="win32"===h4.platform(),r=/\\/g,i=/[\{\[].*[\}\]]$/,a=/(^|[^\\])([\{\[]|\([^\)]+$)/,o=/\\([\!\*\?\|\[\]\(\)\{\}])/g;return ac=function(s,l){Object.assign({flipBackslashes:!0},l).flipBackslashes&&n&&0>s.indexOf("/")&&(s=s.replace(r,"/")),i.test(s)&&(s+="/"),s+="a";do s=t(s);while(e(s)||a.test(s));return s.replace(o,"$1")}}(),t=function(){if(aV)return aB;aV=1;let e=function(){if(aA)return aw;aA=1;let e=TL(),t=function(){if(aT)return ab;aT=1;let e=TM(),t=TI();return ab=(n,r={})=>{let i=(n,a={})=>{let o=t.isInvalidBrace(a),s=!0===n.invalid&&!0===r.escapeInvalid,l=!0===o||!0===s,c=!0===r.escapeInvalid?"\\":"",u="";if(!0===n.isOpen)return c+n.value;if(!0===n.isClose)return console.log("node.isClose",c,n.value),c+n.value;if("open"===n.type)return l?c+n.value:"(";if("close"===n.type)return l?c+n.value:")";if("comma"===n.type)return"comma"===n.prev.type?"":l?n.value:"|";if(n.value)return n.value;if(n.nodes&&n.ranges>0){let i=t.reduce(n.nodes),a=e(...i,{...r,wrap:!1,toRegex:!0,strictZeros:!0});if(0!==a.length)return i.length>1&&a.length>1?`(${a})`:a}if(n.nodes)for(let e of n.nodes)u+=i(e,n);return u};return i(n)}}(),n=function(){if(ax)return aS;ax=1;let e=TM(),t=TL(),n=TI(),r=(e="",t="",i=!1)=>{let a=[];if(e=[].concat(e),!(t=[].concat(t)).length)return e;if(!e.length)return i?n.flatten(t).map(e=>`{${e}}`):t;for(let n of e)if(Array.isArray(n))for(let e of n)a.push(r(e,t,i));else for(let e of t)!0===i&&"string"==typeof e&&(e=`{${e}}`),a.push(Array.isArray(e)?r(n,e,i):n+e);return n.flatten(a)};return aS=(i,a={})=>{let o=void 0===a.rangeLimit?1e3:a.rangeLimit,s=(i,l={})=>{i.queue=[];let c=l,u=l.queue;for(;"brace"!==c.type&&"root"!==c.type&&c.parent;)u=(c=c.parent).queue;if(i.invalid||i.dollar)return void u.push(r(u.pop(),t(i,a)));if("brace"===i.type&&!0!==i.invalid&&2===i.nodes.length)return void u.push(r(u.pop(),["{}"]));if(i.nodes&&i.ranges>0){let s=n.reduce(i.nodes);if(n.exceedsLimit(...s,a.step,o))throw RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.");let l=e(...s,a);0===l.length&&(l=t(i,a)),u.push(r(u.pop(),l)),i.nodes=[];return}let _=n.encloseBrace(i),d=i.queue,p=i;for(;"brace"!==p.type&&"root"!==p.type&&p.parent;)d=(p=p.parent).queue;for(let e=0;e<i.nodes.length;e++){let t=i.nodes[e];if("comma"===t.type&&"brace"===i.type){1===e&&d.push(""),d.push("");continue}if("close"===t.type){u.push(r(u.pop(),d,_));continue}if(t.value&&"open"!==t.type){d.push(r(d.pop(),t.value));continue}t.nodes&&s(t,i)}return d};return n.flatten(s(i))}}(),r=function(){if(aC)return aP;aC=1;let e=TL(),{MAX_LENGTH:t,CHAR_BACKSLASH:n,CHAR_BACKTICK:r,CHAR_COMMA:i,CHAR_DOT:a,CHAR_LEFT_PARENTHESES:o,CHAR_RIGHT_PARENTHESES:s,CHAR_LEFT_CURLY_BRACE:l,CHAR_RIGHT_CURLY_BRACE:c,CHAR_LEFT_SQUARE_BRACKET:u,CHAR_RIGHT_SQUARE_BRACKET:_,CHAR_DOUBLE_QUOTE:d,CHAR_SINGLE_QUOTE:p,CHAR_NO_BREAK_SPACE:f,CHAR_ZERO_WIDTH_NOBREAK_SPACE:m}=ak?aE:(ak=1,aE={MAX_LENGTH:1e4,CHAR_0:"0",CHAR_9:"9",CHAR_UPPERCASE_A:"A",CHAR_LOWERCASE_A:"a",CHAR_UPPERCASE_Z:"Z",CHAR_LOWERCASE_Z:"z",CHAR_LEFT_PARENTHESES:"(",CHAR_RIGHT_PARENTHESES:")",CHAR_ASTERISK:"*",CHAR_AMPERSAND:"&",CHAR_AT:"@",CHAR_BACKSLASH:"\\",CHAR_BACKTICK:"`",CHAR_CARRIAGE_RETURN:"\r",CHAR_CIRCUMFLEX_ACCENT:"^",CHAR_COLON:":",CHAR_COMMA:",",CHAR_DOLLAR:"$",CHAR_DOT:".",CHAR_DOUBLE_QUOTE:'"',CHAR_EQUAL:"=",CHAR_EXCLAMATION_MARK:"!",CHAR_FORM_FEED:"\f",CHAR_FORWARD_SLASH:"/",CHAR_HASH:"#",CHAR_HYPHEN_MINUS:"-",CHAR_LEFT_ANGLE_BRACKET:"<",CHAR_LEFT_CURLY_BRACE:"{",CHAR_LEFT_SQUARE_BRACKET:"[",CHAR_LINE_FEED:"\n",CHAR_NO_BREAK_SPACE:"\xa0",CHAR_PERCENT:"%",CHAR_PLUS:"+",CHAR_QUESTION_MARK:"?",CHAR_RIGHT_ANGLE_BRACKET:">",CHAR_RIGHT_CURLY_BRACE:"}",CHAR_RIGHT_SQUARE_BRACKET:"]",CHAR_SEMICOLON:";",CHAR_SINGLE_QUOTE:"'",CHAR_SPACE:" ",CHAR_TAB:" ",CHAR_UNDERSCORE:"_",CHAR_VERTICAL_LINE:"|",CHAR_ZERO_WIDTH_NOBREAK_SPACE:"\uFEFF"});return aP=(g,h={})=>{let y;if("string"!=typeof g)throw TypeError("Expected a string");let b=h||{},T="number"==typeof b.maxLength?Math.min(t,b.maxLength):t;if(g.length>T)throw SyntaxError(`Input length (${g.length}), exceeds max characters (${T})`);let S={type:"root",input:g,nodes:[]},x=[S],E=S,k=S,P=0,C=g.length,w=0,A=0,D=()=>g[w++],N=e=>{if("text"===e.type&&"dot"===k.type&&(k.type="text"),k&&"text"===k.type&&"text"===e.type){k.value+=e.value;return}return E.nodes.push(e),e.parent=E,e.prev=k,k=e,e};for(N({type:"bos"});w<C;)if(E=x[x.length-1],(y=D())!==m&&y!==f){if(y===n){N({type:"text",value:(h.keepEscaping?y:"")+D()});continue}if(y===_){N({type:"text",value:"\\"+y});continue}if(y===u){let e;for(P++;w<C&&(e=D());){if(y+=e,e===u){P++;continue}if(e===n){y+=D();continue}if(e===_&&0==--P)break}N({type:"text",value:y});continue}if(y===o){E=N({type:"paren",nodes:[]}),x.push(E),N({type:"text",value:y});continue}if(y===s){if("paren"!==E.type){N({type:"text",value:y});continue}E=x.pop(),N({type:"text",value:y}),E=x[x.length-1];continue}if(y===d||y===p||y===r){let e,t=y;for(!0!==h.keepQuotes&&(y="");w<C&&(e=D());){if(e===n){y+=e+D();continue}if(e===t){!0===h.keepQuotes&&(y+=e);break}y+=e}N({type:"text",value:y});continue}if(y===l){A++,E=N({type:"brace",open:!0,close:!1,dollar:k.value&&"$"===k.value.slice(-1)||!0===E.dollar,depth:A,commas:0,ranges:0,nodes:[]}),x.push(E),N({type:"open",value:y});continue}if(y===c){if("brace"!==E.type){N({type:"text",value:y});continue}(E=x.pop()).close=!0,N({type:"close",value:y}),A--,E=x[x.length-1];continue}if(y===i&&A>0){if(E.ranges>0){E.ranges=0;let t=E.nodes.shift();E.nodes=[t,{type:"text",value:e(E)}]}N({type:"comma",value:y}),E.commas++;continue}if(y===a&&A>0&&0===E.commas){let e=E.nodes;if(0===A||0===e.length){N({type:"text",value:y});continue}if("dot"===k.type){if(E.range=[],k.value+=y,k.type="range",3!==E.nodes.length&&5!==E.nodes.length){E.invalid=!0,E.ranges=0,k.type="text";continue}E.ranges++,E.args=[];continue}if("range"===k.type){e.pop();let t=e[e.length-1];t.value+=k.value+y,k=t,E.ranges--;continue}N({type:"dot",value:y});continue}N({type:"text",value:y})}do if("root"!==(E=x.pop()).type){E.nodes.forEach(e=>{e.nodes||("open"===e.type&&(e.isOpen=!0),"close"===e.type&&(e.isClose=!0),e.nodes||(e.type="text"),e.invalid=!0)});let e=x[x.length-1],t=e.nodes.indexOf(E);e.nodes.splice(t,1,...E.nodes)}while(x.length>0);return N({type:"eos"}),S}}(),i=(e,t={})=>{let n=[];if(Array.isArray(e))for(let r of e){let e=i.create(r,t);Array.isArray(e)?n.push(...e):n.push(e)}else n=[].concat(i.create(e,t));return t&&!0===t.expand&&!0===t.nodupes&&(n=[...new Set(n)]),n};return i.parse=(e,t={})=>r(e,t),i.stringify=(t,n={})=>"string"==typeof t?e(i.parse(t,n),n):e(t,n),i.compile=(e,n={})=>("string"==typeof e&&(e=i.parse(e,n)),t(e,n)),i.expand=(e,t={})=>{"string"==typeof e&&(e=i.parse(e,t));let r=n(e,t);return!0===t.noempty&&(r=r.filter(Boolean)),!0===t.nodupes&&(r=[...new Set(r)]),r},i.create=(e,t={})=>""===e||e.length<3?[e]:!0!==t.expand?i.compile(e,t):i.expand(e,t),aw=i}(),t=aU?aY:(aU=1,aY=function(){if(aj)return aR;aj=1;let e=function(){if(aI)return aO;aI=1;let e=TY(),{CHAR_ASTERISK:t,CHAR_AT:n,CHAR_BACKWARD_SLASH:r,CHAR_COMMA:i,CHAR_DOT:a,CHAR_EXCLAMATION_MARK:o,CHAR_FORWARD_SLASH:s,CHAR_LEFT_CURLY_BRACE:l,CHAR_LEFT_PARENTHESES:c,CHAR_LEFT_SQUARE_BRACKET:u,CHAR_PLUS:_,CHAR_QUESTION_MARK:d,CHAR_RIGHT_CURLY_BRACE:p,CHAR_RIGHT_PARENTHESES:f,CHAR_RIGHT_SQUARE_BRACKET:m}=Tj(),g=e=>e===s||e===r,h=e=>{!0!==e.isPrefix&&(e.depth=e.isGlobstar?1/0:1)};return aO=(y,b)=>{let T,S,x=b||{},E=y.length-1,k=!0===x.parts||!0===x.scanToEnd,P=[],C=[],w=[],A=y,D=-1,N=0,F=0,O=!1,I=!1,L=!1,M=!1,R=!1,j=!1,Y=!1,U=!1,B=!1,V=!1,J=0,z={value:"",depth:0,isGlob:!1},q=()=>D>=E,$=()=>A.charCodeAt(D+1),W=()=>(T=S,A.charCodeAt(++D));for(;D<E;){let e;if((S=W())===r){Y=z.backslashes=!0,(S=W())===l&&(j=!0);continue}if(!0===j||S===l){for(J++;!0!==q()&&(S=W());){if(S===r){Y=z.backslashes=!0,W();continue}if(S===l){J++;continue}if(!0!==j&&S===a&&(S=W())===a||!0!==j&&S===i){if(O=z.isBrace=!0,L=z.isGlob=!0,V=!0,!0===k)continue;break}if(S===p&&0==--J){j=!1,O=z.isBrace=!0,V=!0;break}}if(!0===k)continue;break}if(S===s){if(P.push(D),C.push(z),z={value:"",depth:0,isGlob:!1},!0===V)continue;if(T===a&&D===N+1){N+=2;continue}F=D+1;continue}if(!0!==x.noext&&!0==(S===_||S===n||S===t||S===d||S===o)&&$()===c){if(L=z.isGlob=!0,M=z.isExtglob=!0,V=!0,S===o&&D===N&&(B=!0),!0===k){for(;!0!==q()&&(S=W());){if(S===r){Y=z.backslashes=!0,S=W();continue}if(S===f){L=z.isGlob=!0,V=!0;break}}continue}break}if(S===t){if(T===t&&(R=z.isGlobstar=!0),L=z.isGlob=!0,V=!0,!0===k)continue;break}if(S===d){if(L=z.isGlob=!0,V=!0,!0===k)continue;break}if(S===u){for(;!0!==q()&&(e=W());){if(e===r){Y=z.backslashes=!0,W();continue}if(e===m){I=z.isBracket=!0,L=z.isGlob=!0,V=!0;break}}if(!0===k)continue;break}if(!0!==x.nonegate&&S===o&&D===N){U=z.negated=!0,N++;continue}if(!0!==x.noparen&&S===c){if(L=z.isGlob=!0,!0===k){for(;!0!==q()&&(S=W());){if(S===c){Y=z.backslashes=!0,S=W();continue}if(S===f){V=!0;break}}continue}break}if(!0===L){if(V=!0,!0===k)continue;break}}!0===x.noext&&(M=!1,L=!1);let K=A,H="",G="";N>0&&(H=A.slice(0,N),A=A.slice(N),F-=N),K&&!0===L&&F>0?(K=A.slice(0,F),G=A.slice(F)):!0===L?(K="",G=A):K=A,K&&""!==K&&"/"!==K&&K!==A&&g(K.charCodeAt(K.length-1))&&(K=K.slice(0,-1)),!0===x.unescape&&(G&&(G=e.removeBackslashes(G)),K&&!0===Y&&(K=e.removeBackslashes(K)));let X={prefix:H,input:y,start:N,base:K,glob:G,isBrace:O,isBracket:I,isGlob:L,isExtglob:M,isGlobstar:R,negated:U,negatedExtglob:B};if(!0===x.tokens&&(X.maxDepth=0,g(S)||C.push(z),X.tokens=C),!0===x.parts||!0===x.tokens){let e;for(let t=0;t<P.length;t++){let n=e?e+1:N,r=P[t],i=y.slice(n,r);x.tokens&&(0===t&&0!==N?(C[t].isPrefix=!0,C[t].value=H):C[t].value=i,h(C[t]),X.maxDepth+=C[t].depth),(0!==t||""!==i)&&w.push(i),e=r}if(e&&e+1<y.length){let t=y.slice(e+1);w.push(t),x.tokens&&(C[C.length-1].value=t,h(C[C.length-1]),X.maxDepth+=C[C.length-1].depth)}X.slashes=P,X.parts=w}return X}}(),t=function(){if(aM)return aL;aM=1;let e=Tj(),t=TY(),{MAX_LENGTH:n,POSIX_REGEX_SOURCE:r,REGEX_NON_SPECIAL_CHARS:i,REGEX_SPECIAL_CHARS_BACKREF:a,REPLACEMENTS:o}=e,s=(e,n)=>{if("function"==typeof n.expandRange)return n.expandRange(...e,n);e.sort();let r=`[${e.join("-")}]`;try{new RegExp(r)}catch(n){return e.map(e=>t.escapeRegex(e)).join("..")}return r},l=(e,t)=>`Missing ${e}: "${t}" - use "\\\\${t}" to match literal characters`,c=(u,_)=>{let d;if("string"!=typeof u)throw TypeError("Expected a string");u=o[u]||u;let p={..._},f="number"==typeof p.maxLength?Math.min(n,p.maxLength):n,m=u.length;if(m>f)throw SyntaxError(`Input length: ${m}, exceeds maximum allowed length: ${f}`);let g={type:"bos",value:"",output:p.prepend||""},h=[g],y=p.capture?"":"?:",b=t.isWindows(_),T=e.globChars(b),S=e.extglobChars(T),{DOT_LITERAL:x,PLUS_LITERAL:E,SLASH_LITERAL:k,ONE_CHAR:P,DOTS_SLASH:C,NO_DOT:w,NO_DOT_SLASH:A,NO_DOTS_SLASH:D,QMARK:N,QMARK_NO_DOT:F,STAR:O,START_ANCHOR:I}=T,L=e=>`(${y}(?:(?!${I}${e.dot?C:x}).)*?)`,M=p.dot?"":w,R=p.dot?N:F,j=!0===p.bash?L(p):O;p.capture&&(j=`(${j})`),"boolean"==typeof p.noext&&(p.noextglob=p.noext);let Y={input:u,index:-1,start:0,dot:!0===p.dot,consumed:"",output:"",prefix:"",backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:h};m=(u=t.removePrefix(u,Y)).length;let U=[],B=[],V=[],J=g,z=()=>Y.index===m-1,q=Y.peek=(e=1)=>u[Y.index+e],$=Y.advance=()=>u[++Y.index]||"",W=()=>u.slice(Y.index+1),K=(e="",t=0)=>{Y.consumed+=e,Y.index+=t},H=e=>{Y.output+=null!=e.output?e.output:e.value,K(e.value)},G=()=>{let e=1;for(;"!"===q()&&("("!==q(2)||"?"===q(3));)$(),Y.start++,e++;return e%2!=0&&(Y.negated=!0,Y.start++,!0)},X=e=>{Y[e]++,V.push(e)},Q=e=>{Y[e]--,V.pop()},Z=e=>{if("globstar"===J.type){let t=Y.braces>0&&("comma"===e.type||"brace"===e.type),n=!0===e.extglob||U.length&&("pipe"===e.type||"paren"===e.type);"slash"===e.type||"paren"===e.type||t||n||(Y.output=Y.output.slice(0,-J.output.length),J.type="star",J.value="*",J.output=j,Y.output+=J.output)}if(U.length&&"paren"!==e.type&&(U[U.length-1].inner+=e.value),(e.value||e.output)&&H(e),J&&"text"===J.type&&"text"===e.type){J.value+=e.value,J.output=(J.output||"")+e.value;return}e.prev=J,h.push(e),J=e},ee=(e,t)=>{let n={...S[t],conditions:1,inner:""};n.prev=J,n.parens=Y.parens,n.output=Y.output;let r=(p.capture?"(":"")+n.open;X("parens"),Z({type:e,value:t,output:Y.output?"":P}),Z({type:"paren",extglob:!0,value:$(),output:r}),U.push(n)},et=e=>{let t,n=e.close+(p.capture?")":"");if("negate"===e.type){let r=j;if(e.inner&&e.inner.length>1&&e.inner.includes("/")&&(r=L(p)),(r!==j||z()||/^\)+$/.test(W()))&&(n=e.close=`)$))${r}`),e.inner.includes("*")&&(t=W())&&/^\.[^\\/.]+$/.test(t)){let i=c(t,{..._,fastpaths:!1}).output;n=e.close=`)${i})${r})`}"bos"===e.prev.type&&(Y.negatedExtglob=!0)}Z({type:"paren",extglob:!0,value:d,output:n}),Q("parens")};if(!1!==p.fastpaths&&!/(^[*!]|[/()[\]{}"])/.test(u)){let e=!1,n=u.replace(a,(t,n,r,i,a,o)=>"\\"===i?(e=!0,t):"?"===i?n?n+i+(a?N.repeat(a.length):""):0===o?R+(a?N.repeat(a.length):""):N.repeat(r.length):"."===i?x.repeat(r.length):"*"===i?n?n+i+(a?j:""):j:n?t:`\\${t}`);return(!0===e&&(n=!0===p.unescape?n.replace(/\\/g,""):n.replace(/\\+/g,e=>e.length%2==0?"\\\\":e?"\\":"")),n===u&&!0===p.contains)?Y.output=u:Y.output=t.wrapOutput(n,Y,_),Y}for(;!z();){if("\0"===(d=$()))continue;if("\\"===d){let e=q();if("/"===e&&!0!==p.bash||"."===e||";"===e)continue;if(!e){Z({type:"text",value:d+="\\"});continue}let t=/^\\+/.exec(W()),n=0;if(t&&t[0].length>2&&(n=t[0].length,Y.index+=n,n%2!=0&&(d+="\\")),!0===p.unescape?d=$():d+=$(),0===Y.brackets){Z({type:"text",value:d});continue}}if(Y.brackets>0&&("]"!==d||"["===J.value||"[^"===J.value)){if(!1!==p.posix&&":"===d){let e=J.value.slice(1);if(e.includes("[")&&(J.posix=!0,e.includes(":"))){let e=J.value.lastIndexOf("["),t=J.value.slice(0,e),n=r[J.value.slice(e+2)];if(n){J.value=t+n,Y.backtrack=!0,$(),g.output||1!==h.indexOf(J)||(g.output=P);continue}}}("["===d&&":"!==q()||"-"===d&&"]"===q())&&(d=`\\${d}`),"]"===d&&("["===J.value||"[^"===J.value)&&(d=`\\${d}`),!0===p.posix&&"!"===d&&"["===J.value&&(d="^"),J.value+=d,H({value:d});continue}if(1===Y.quotes&&'"'!==d){d=t.escapeRegex(d),J.value+=d,H({value:d});continue}if('"'===d){Y.quotes=+(1!==Y.quotes),!0===p.keepQuotes&&Z({type:"text",value:d});continue}if("("===d){X("parens"),Z({type:"paren",value:d});continue}if(")"===d){if(0===Y.parens&&!0===p.strictBrackets)throw SyntaxError(l("opening","("));let e=U[U.length-1];if(e&&Y.parens===e.parens+1){et(U.pop());continue}Z({type:"paren",value:d,output:Y.parens?")":"\\)"}),Q("parens");continue}if("["===d){if(!0!==p.nobracket&&W().includes("]"))X("brackets");else{if(!0!==p.nobracket&&!0===p.strictBrackets)throw SyntaxError(l("closing","]"));d=`\\${d}`}Z({type:"bracket",value:d});continue}if("]"===d){if(!0===p.nobracket||J&&"bracket"===J.type&&1===J.value.length){Z({type:"text",value:d,output:`\\${d}`});continue}if(0===Y.brackets){if(!0===p.strictBrackets)throw SyntaxError(l("opening","["));Z({type:"text",value:d,output:`\\${d}`});continue}Q("brackets");let e=J.value.slice(1);if(!0===J.posix||"^"!==e[0]||e.includes("/")||(d=`/${d}`),J.value+=d,H({value:d}),!1===p.literalBrackets||t.hasRegexChars(e))continue;let n=t.escapeRegex(J.value);if(Y.output=Y.output.slice(0,-J.value.length),!0===p.literalBrackets){Y.output+=n,J.value=n;continue}J.value=`(${y}${n}|${J.value})`,Y.output+=J.value;continue}if("{"===d&&!0!==p.nobrace){X("braces");let e={type:"brace",value:d,output:"(",outputIndex:Y.output.length,tokensIndex:Y.tokens.length};B.push(e),Z(e);continue}if("}"===d){let e=B[B.length-1];if(!0===p.nobrace||!e){Z({type:"text",value:d,output:d});continue}let t=")";if(!0===e.dots){let e=h.slice(),n=[];for(let t=e.length-1;t>=0&&(h.pop(),"brace"!==e[t].type);t--)"dots"!==e[t].type&&n.unshift(e[t].value);t=s(n,p),Y.backtrack=!0}if(!0!==e.comma&&!0!==e.dots){let n=Y.output.slice(0,e.outputIndex),r=Y.tokens.slice(e.tokensIndex);for(let i of(e.value=e.output="\\{",d=t="\\}",Y.output=n,r))Y.output+=i.output||i.value}Z({type:"brace",value:d,output:t}),Q("braces"),B.pop();continue}if("|"===d){U.length>0&&U[U.length-1].conditions++,Z({type:"text",value:d});continue}if(","===d){let e=d,t=B[B.length-1];t&&"braces"===V[V.length-1]&&(t.comma=!0,e="|"),Z({type:"comma",value:d,output:e});continue}if("/"===d){if("dot"===J.type&&Y.index===Y.start+1){Y.start=Y.index+1,Y.consumed="",Y.output="",h.pop(),J=g;continue}Z({type:"slash",value:d,output:k});continue}if("."===d){if(Y.braces>0&&"dot"===J.type){"."===J.value&&(J.output=x);let e=B[B.length-1];J.type="dots",J.output+=d,J.value+=d,e.dots=!0;continue}if(Y.braces+Y.parens===0&&"bos"!==J.type&&"slash"!==J.type){Z({type:"text",value:d,output:x});continue}Z({type:"dot",value:d,output:x});continue}if("?"===d){if(!(J&&"("===J.value)&&!0!==p.noextglob&&"("===q()&&"?"!==q(2)){ee("qmark",d);continue}if(J&&"paren"===J.type){let e=q(),n=d;if("<"===e&&!t.supportsLookbehinds())throw Error("Node.js v10 or higher is required for regex lookbehinds");("("!==J.value||/[!=<:]/.test(e))&&("<"!==e||/<([!=]|\w+>)/.test(W()))||(n=`\\${d}`),Z({type:"text",value:d,output:n});continue}if(!0!==p.dot&&("slash"===J.type||"bos"===J.type)){Z({type:"qmark",value:d,output:F});continue}Z({type:"qmark",value:d,output:N});continue}if("!"===d){if(!0!==p.noextglob&&"("===q()&&("?"!==q(2)||!/[!=<:]/.test(q(3)))){ee("negate",d);continue}if(!0!==p.nonegate&&0===Y.index){G();continue}}if("+"===d){if(!0!==p.noextglob&&"("===q()&&"?"!==q(2)){ee("plus",d);continue}if(J&&"("===J.value||!1===p.regex){Z({type:"plus",value:d,output:E});continue}if(J&&("bracket"===J.type||"paren"===J.type||"brace"===J.type)||Y.parens>0){Z({type:"plus",value:d});continue}Z({type:"plus",value:E});continue}if("@"===d){if(!0!==p.noextglob&&"("===q()&&"?"!==q(2)){Z({type:"at",extglob:!0,value:d,output:""});continue}Z({type:"text",value:d});continue}if("*"!==d){("$"===d||"^"===d)&&(d=`\\${d}`);let e=i.exec(W());e&&(d+=e[0],Y.index+=e[0].length),Z({type:"text",value:d});continue}if(J&&("globstar"===J.type||!0===J.star)){J.type="star",J.star=!0,J.value+=d,J.output=j,Y.backtrack=!0,Y.globstar=!0,K(d);continue}let e=W();if(!0!==p.noextglob&&/^\([^?]/.test(e)){ee("star",d);continue}if("star"===J.type){if(!0===p.noglobstar){K(d);continue}let t=J.prev,n=t.prev,r="slash"===t.type||"bos"===t.type,i=n&&("star"===n.type||"globstar"===n.type);if(!0===p.bash&&(!r||e[0]&&"/"!==e[0])){Z({type:"star",value:d,output:""});continue}let a=Y.braces>0&&("comma"===t.type||"brace"===t.type),o=U.length&&("pipe"===t.type||"paren"===t.type);if(!r&&"paren"!==t.type&&!a&&!o){Z({type:"star",value:d,output:""});continue}for(;"/**"===e.slice(0,3);){let t=u[Y.index+4];if(t&&"/"!==t)break;e=e.slice(3),K("/**",3)}if("bos"===t.type&&z()){J.type="globstar",J.value+=d,J.output=L(p),Y.output=J.output,Y.globstar=!0,K(d);continue}if("slash"===t.type&&"bos"!==t.prev.type&&!i&&z()){Y.output=Y.output.slice(0,-(t.output+J.output).length),t.output=`(?:${t.output}`,J.type="globstar",J.output=L(p)+(p.strictSlashes?")":"|$)"),J.value+=d,Y.globstar=!0,Y.output+=t.output+J.output,K(d);continue}if("slash"===t.type&&"bos"!==t.prev.type&&"/"===e[0]){let n=void 0!==e[1]?"|$":"";Y.output=Y.output.slice(0,-(t.output+J.output).length),t.output=`(?:${t.output}`,J.type="globstar",J.output=`${L(p)}${k}|${k}${n})`,J.value+=d,Y.output+=t.output+J.output,Y.globstar=!0,K(d+$()),Z({type:"slash",value:"/",output:""});continue}if("bos"===t.type&&"/"===e[0]){J.type="globstar",J.value+=d,J.output=`(?:^|${k}|${L(p)}${k})`,Y.output=J.output,Y.globstar=!0,K(d+$()),Z({type:"slash",value:"/",output:""});continue}Y.output=Y.output.slice(0,-J.output.length),J.type="globstar",J.output=L(p),J.value+=d,Y.output+=J.output,Y.globstar=!0,K(d);continue}let n={type:"star",value:d,output:j};if(!0===p.bash){n.output=".*?",("bos"===J.type||"slash"===J.type)&&(n.output=M+n.output),Z(n);continue}if(J&&("bracket"===J.type||"paren"===J.type)&&!0===p.regex){n.output=d,Z(n);continue}(Y.index===Y.start||"slash"===J.type||"dot"===J.type)&&("dot"===J.type?(Y.output+=A,J.output+=A):!0===p.dot?(Y.output+=D,J.output+=D):(Y.output+=M,J.output+=M),"*"!==q()&&(Y.output+=P,J.output+=P)),Z(n)}for(;Y.brackets>0;){if(!0===p.strictBrackets)throw SyntaxError(l("closing","]"));Y.output=t.escapeLast(Y.output,"["),Q("brackets")}for(;Y.parens>0;){if(!0===p.strictBrackets)throw SyntaxError(l("closing",")"));Y.output=t.escapeLast(Y.output,"("),Q("parens")}for(;Y.braces>0;){if(!0===p.strictBrackets)throw SyntaxError(l("closing","}"));Y.output=t.escapeLast(Y.output,"{"),Q("braces")}if(!0!==p.strictSlashes&&("star"===J.type||"bracket"===J.type)&&Z({type:"maybe_slash",value:"",output:`${k}?`}),!0===Y.backtrack)for(let e of(Y.output="",Y.tokens))Y.output+=null!=e.output?e.output:e.value,e.suffix&&(Y.output+=e.suffix);return Y};return c.fastpaths=(r,i)=>{let a={...i},s="number"==typeof a.maxLength?Math.min(n,a.maxLength):n,l=r.length;if(l>s)throw SyntaxError(`Input length: ${l}, exceeds maximum allowed length: ${s}`);r=o[r]||r;let c=t.isWindows(i),{DOT_LITERAL:u,SLASH_LITERAL:_,ONE_CHAR:d,DOTS_SLASH:p,NO_DOT:f,NO_DOTS:m,NO_DOTS_SLASH:g,STAR:h,START_ANCHOR:y}=e.globChars(c),b=a.dot?m:f,T=a.dot?g:f,S=a.capture?"":"?:",x=!0===a.bash?".*?":h;a.capture&&(x=`(${x})`);let E=e=>!0===e.noglobstar?x:`(${S}(?:(?!${y}${e.dot?p:u}).)*?)`,k=e=>{switch(e){case"*":return`${b}${d}${x}`;case".*":return`${u}${d}${x}`;case"*.*":return`${b}${x}${u}${d}${x}`;case"*/*":return`${b}${x}${_}${d}${T}${x}`;case"**":return b+E(a);case"**/*":return`(?:${b}${E(a)}${_})?${T}${d}${x}`;case"**/*.*":return`(?:${b}${E(a)}${_})?${T}${x}${u}${d}${x}`;case"**/.*":return`(?:${b}${E(a)}${_})?${u}${d}${x}`;default:{let t=/^(.*?)\.(\w+)$/.exec(e);if(!t)return;let n=k(t[1]);if(!n)return;return n+u+t[2]}}},P=k(t.removePrefix(r,{negated:!1,prefix:""}));return P&&!0!==a.strictSlashes&&(P+=`${_}?`),P},aL=c}(),n=TY(),r=Tj(),i=(e,t,r=!1)=>{if(Array.isArray(e)){let n=e.map(e=>i(e,t,r));return e=>{for(let t of n){let n=t(e);if(n)return n}return!1}}let a=e&&"object"==typeof e&&!Array.isArray(e)&&e.tokens&&e.input;if(""===e||"string"!=typeof e&&!a)throw TypeError("Expected pattern to be a non-empty string");let o=t||{},s=n.isWindows(t),l=a?i.compileRe(e,t):i.makeRe(e,t,!1,!0),c=l.state;delete l.state;let u=()=>!1;if(o.ignore){let e={...t,ignore:null,onMatch:null,onResult:null};u=i(o.ignore,e,r)}let _=(n,r=!1)=>{let{isMatch:a,match:_,output:d}=i.test(n,l,t,{glob:e,posix:s}),p={glob:e,state:c,regex:l,posix:s,input:n,output:d,match:_,isMatch:a};return("function"==typeof o.onResult&&o.onResult(p),!1===a)?(p.isMatch=!1,!!r&&p):u(n)?("function"==typeof o.onIgnore&&o.onIgnore(p),p.isMatch=!1,!!r&&p):("function"==typeof o.onMatch&&o.onMatch(p),!r||p)};return r&&(_.state=c),_};return i.test=(e,t,r,{glob:a,posix:o}={})=>{if("string"!=typeof e)throw TypeError("Expected input to be a string");if(""===e)return{isMatch:!1,output:""};let s=r||{},l=s.format||(o?n.toPosixSlashes:null),c=e===a,u=c&&l?l(e):e;return!1===c&&(c=(u=l?l(e):e)===a),(!1===c||!0===s.capture)&&(c=!0===s.matchBase||!0===s.basename?i.matchBase(e,t,r,o):t.exec(u)),{isMatch:!!c,match:c,output:u}},i.matchBase=(e,t,r,a=n.isWindows(r))=>(t instanceof RegExp?t:i.makeRe(t,r)).test(h6.basename(e)),i.isMatch=(e,t,n)=>i(t,n)(e),i.parse=(e,n)=>Array.isArray(e)?e.map(e=>i.parse(e,n)):t(e,{...n,fastpaths:!1}),i.scan=(t,n)=>e(t,n),i.compileRe=(e,t,n=!1,r=!1)=>{if(!0===n)return e.output;let a=t||{},o=a.contains?"":"^",s=a.contains?"":"$",l=`${o}(?:${e.output})${s}`;e&&!0===e.negated&&(l=`^(?!${l}).*$`);let c=i.toRegex(l,t);return!0===r&&(c.state=e),c},i.makeRe=(e,n={},r=!1,a=!1)=>{if(!e||"string"!=typeof e)throw TypeError("Expected a non-empty string");let o={negated:!1,fastpaths:!0};return!1!==n.fastpaths&&("."===e[0]||"*"===e[0])&&(o.output=t.fastpaths(e,n)),o.output||(o=t(e,n)),i.compileRe(o,n,r,a)},i.toRegex=(e,t)=>{try{let n=t||{};return new RegExp(e,n.flags||(n.nocase?"i":""))}catch(e){if(t&&!0===t.debug)throw e;return/$^/}},i.constants=r,aR=i}()),n=TY(),r=e=>""===e||"./"===e,i=e=>{let t=e.indexOf("{");return t>-1&&e.indexOf("}",t)>-1},a=(e,n,r)=>{n=[].concat(n),e=[].concat(e);let i=new Set,a=new Set,o=new Set,s=0,l=e=>{o.add(e.output),r&&r.onResult&&r.onResult(e)};for(let o=0;o<n.length;o++){let c=t(String(n[o]),{...r,onResult:l},!0),u=c.state.negated||c.state.negatedExtglob;for(let t of(u&&s++,e)){let e=c(t,!0);(u?!e.isMatch:e.isMatch)&&(u?i.add(e.output):(i.delete(e.output),a.add(e.output)))}}let c=(s===n.length?[...o]:[...a]).filter(e=>!i.has(e));if(r&&0===c.length){if(!0===r.failglob)throw Error(`No matches found for "${n.join(", ")}"`);if(!0===r.nonull||!0===r.nullglob)return r.unescape?n.map(e=>e.replace(/\\/g,"")):n}return c};return a.match=a,a.matcher=(e,n)=>t(e,n),a.isMatch=(e,n,r)=>t(n,r)(e),a.any=a.isMatch,a.not=(e,t,n={})=>{t=[].concat(t).map(String);let r=new Set,i=[],o=new Set(a(e,t,{...n,onResult:e=>{n.onResult&&n.onResult(e),i.push(e.output)}}));for(let e of i)o.has(e)||r.add(e);return[...r]},a.contains=(e,t,n)=>{if("string"!=typeof e)throw TypeError(`Expected a string: "${ba.inspect(e)}"`);if(Array.isArray(t))return t.some(t=>a.contains(e,t,n));if("string"==typeof t){if(r(e)||r(t))return!1;if(e.includes(t)||e.startsWith("./")&&e.slice(2).includes(t))return!0}return a.isMatch(e,t,{...n,contains:!0})},a.matchKeys=(e,t,r)=>{if(!n.isObject(e))throw TypeError("Expected the first argument to be an object");let i=a(Object.keys(e),t,r),o={};for(let t of i)o[t]=e[t];return o},a.some=(e,n,r)=>{let i=[].concat(e);for(let e of[].concat(n)){let n=t(String(e),r);if(i.some(e=>n(e)))return!0}return!1},a.every=(e,n,r)=>{let i=[].concat(e);for(let e of[].concat(n)){let n=t(String(e),r);if(!i.every(e=>n(e)))return!1}return!0},a.all=(e,n,r)=>{if("string"!=typeof e)throw TypeError(`Expected a string: "${ba.inspect(e)}"`);return[].concat(n).every(n=>t(n,r)(e))},a.capture=(e,r,i)=>{let a=n.isWindows(i),o=t.makeRe(String(e),{...i,capture:!0}).exec(a?n.toPosixSlashes(r):r);if(o)return o.slice(1).map(e=>void 0===e?"":e)},a.makeRe=(...e)=>t.makeRe(...e),a.scan=(...e)=>t.scan(...e),a.parse=(n,r)=>{let i=[];for(let a of[].concat(n||[]))for(let n of e(String(a),r))i.push(t.parse(n,r));return i},a.braces=(t,n)=>{if("string"!=typeof t)throw TypeError("Expected a string");return n&&!0===n.nobrace||!i(t)?[t]:e(t,n)},a.braceExpand=(e,t)=>{if("string"!=typeof e)throw TypeError("Expected a string");return a.braces(e,{...t,expand:!0})},a.hasBraces=i,aB=a}(),n=/[*?]|^!/,r=/\[[^[]*]/,i=/(?:^|[^!*+?@])\([^(]*\|[^|]*\)/,a=/[!*+?@]\([^(]*\)/,o=/,|\.\./,s=/(?!^)\/{2,}/g;function l(e,t={}){return!c(e,t)}function c(e,t={}){return""!==e&&!!(!1===t.caseSensitiveMatch||e.includes("\\")||n.test(e)||r.test(e)||i.test(e)||!1!==t.extglob&&a.test(e)||!1!==t.braceExpansion&&function(e){let t=e.indexOf("{");if(-1===t)return!1;let n=e.indexOf("}",t+1);if(-1===n)return!1;let r=e.slice(t,n);return o.test(r)}(e))}function u(e){return e.startsWith("!")&&"("!==e[1]}function _(e){return!u(e)}function d(e){return e.startsWith("..")||e.startsWith("./..")}function p(e){return e.endsWith("/**")}function f(e){let n=t.braces(e,{expand:!0,nodupes:!0,keepEscaping:!0});return n.sort((e,t)=>e.length-t.length),n.filter(e=>""!==e)}function m(e,n){return t.makeRe(e,n)}function g(e){return h6.isAbsolute(e)}return TN.isStaticPattern=l,TN.isDynamicPattern=c,TN.convertToPositivePattern=function(e){return u(e)?e.slice(1):e},TN.convertToNegativePattern=function(e){return"!"+e},TN.isNegativePattern=u,TN.isPositivePattern=_,TN.getNegativePatterns=function(e){return e.filter(u)},TN.getPositivePatterns=function(e){return e.filter(_)},TN.getPatternsInsideCurrentDirectory=function(e){return e.filter(e=>!d(e))},TN.getPatternsOutsideCurrentDirectory=function(e){return e.filter(d)},TN.isPatternRelatedToParentDirectory=d,TN.getBaseDirectory=function(t){return e(t,{flipBackslashes:!1})},TN.hasGlobStar=function(e){return e.includes("**")},TN.endsWithSlashGlobStar=p,TN.isAffectDepthOfReadingPattern=function(e){let t=h6.basename(e);return p(e)||l(t)},TN.expandPatternsWithBraceExpansion=function(e){return e.reduce((e,t)=>e.concat(f(t)),[])},TN.expandBraceExpansion=f,TN.getPatternParts=function(e,n){let{parts:r}=t.scan(e,Object.assign(Object.assign({},n),{parts:!0}));return 0===r.length&&(r=[e]),r[0].startsWith("/")&&(r[0]=r[0].slice(1),r.unshift("")),r},TN.makeRe=m,TN.convertPatternsToRe=function(e,t){return e.map(e=>m(e,t))},TN.matchAny=function(e,t){return t.some(t=>t.test(e))},TN.removeDuplicateSlashes=function(e){return e.replace(s,"/")},TN.partitionAbsoluteAndRelative=function(e){let t=[],n=[];for(let r of e)g(r)?t.push(r):n.push(r);return[t,n]},TN.isAbsolute=g,TN}(),TP.stream=function(){if(a$)return TU;a$=1,Object.defineProperty(TU,"__esModule",{value:!0}),TU.merge=void 0;let e=function(){if(aq)return az;aq=1;let e=TB.PassThrough,t=Array.prototype.slice;return az=function(){let n=[],r=t.call(arguments),i=!1,a=r[r.length-1];a&&!Array.isArray(a)&&null==a.pipe?r.pop():a={};let o=!1!==a.end,s=!0===a.pipeError;null==a.objectMode&&(a.objectMode=!0),null==a.highWaterMark&&(a.highWaterMark=65536);let l=e(a);function c(){for(let t=0,r=arguments.length;t<r;t++)n.push(function t(n,r){if(Array.isArray(n))for(let e=0,i=n.length;e<i;e++)n[e]=t(n[e],r);else{if(!n._readableState&&n.pipe&&(n=n.pipe(e(r))),!n._readableState||!n.pause||!n.pipe)throw Error("Only readable stream can be merged.");n.pause()}return n}(arguments[t],a));return function e(){if(i)return;i=!0;let t=n.shift();if(!t)return void process.nextTick(u);Array.isArray(t)||(t=[t]);let r=t.length+1;function a(){--r>0||(i=!1,e())}for(let e=0;e<t.length;e++)!function(e){function t(){e.removeListener("merge2UnpipeEnd",t),e.removeListener("end",t),s&&e.removeListener("error",n),a()}function n(e){l.emit("error",e)}if(e._readableState.endEmitted)return a();e.on("merge2UnpipeEnd",t),e.on("end",t),s&&e.on("error",n),e.pipe(l,{end:!1}),e.resume()}(t[e]);a()}(),this}function u(){i=!1,l.emit("queueDrain"),o&&l.end()}return l.setMaxListeners(0),l.add=c,l.on("unpipe",function(e){e.emit("merge2UnpipeEnd")}),r.length&&c.apply(null,r),l}}();function t(e){e.forEach(e=>e.emit("close"))}return TU.merge=function(n){let r=e(n);return n.forEach(e=>{e.once("error",e=>r.emit("error",e))}),r.once("close",()=>t(n)),r.once("end",()=>t(n)),r},TU}(),aW||(aW=1,Object.defineProperty(TV,"__esModule",{value:!0}),TV.isEmpty=TV.isString=void 0,TV.isString=function(e){return"string"==typeof e},TV.isEmpty=function(e){return""===e}),TP.string=TV),TP}var Tz={},Tq={},T$={},TW={},TK={},TH=s2(sZ),TG={},TX={},TQ={},TZ={},T0={},T1={},T2={};function T3(){if(a0)return TQ;a0=1,Object.defineProperty(TQ,"__esModule",{value:!0}),TQ.statSync=TQ.stat=TQ.Settings=void 0;let e=aG?TZ:(aG=1,Object.defineProperty(TZ,"__esModule",{value:!0}),TZ.read=void 0,TZ.read=function(e,t,n){t.fs.lstat(e,(r,i)=>{null!==r?n(r):i.isSymbolicLink()&&t.followSymbolicLink?t.fs.stat(e,(e,r)=>{if(null!==e)return t.throwErrorOnBrokenSymbolicLink?void n(e):(n(null,i),void 0);t.markSymbolicLink&&(r.isSymbolicLink=()=>!0),n(null,r)}):n(null,i)})},TZ),t=(aX||(aX=1,Object.defineProperty(T0,"__esModule",{value:!0}),T0.read=void 0,T0.read=function(e,t){let n=t.fs.lstatSync(e);if(!n.isSymbolicLink()||!t.followSymbolicLink)return n;try{let n=t.fs.statSync(e);return t.markSymbolicLink&&(n.isSymbolicLink=()=>!0),n}catch(e){if(!t.throwErrorOnBrokenSymbolicLink)return n;throw e}}),T0),n=function(){if(aZ)return T1;aZ=1,Object.defineProperty(T1,"__esModule",{value:!0});let e=function(){return aQ?T2:(aQ=1,Object.defineProperty(T2,"__esModule",{value:!0}),T2.createFileSystemAdapter=T2.FILE_SYSTEM_ADAPTER=void 0,T2.FILE_SYSTEM_ADAPTER={lstat:h3.lstat,stat:h3.stat,lstatSync:h3.lstatSync,statSync:h3.statSync},T2.createFileSystemAdapter=function(e){return void 0===e?T2.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},T2.FILE_SYSTEM_ADAPTER),e)},T2)}();return T1.default=class{constructor(t={}){this._options=t,this.followSymbolicLink=this._getValue(this._options.followSymbolicLink,!0),this.fs=e.createFileSystemAdapter(this._options.fs),this.markSymbolicLink=this._getValue(this._options.markSymbolicLink,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0)}_getValue(e,t){return null!=e?e:t}},T1}();function r(e={}){return e instanceof n.default?e:new n.default(e)}return TQ.Settings=n.default,TQ.stat=function(t,n,i){"function"==typeof n?e.read(t,r(),n):e.read(t,r(n),i)},TQ.statSync=function(e,n){let i=r(n);return t.read(e,i)},TQ}var T6={};function T4(){if(a4)return T6;a4=1,Object.defineProperty(T6,"__esModule",{value:!0}),T6.IS_SUPPORT_READDIR_WITH_FILE_TYPES=void 0;let e=process.versions.node.split(".");if(void 0===e[0]||void 0===e[1])throw Error(`Unexpected behavior. The 'process.versions.node' variable has invalid value: ${process.versions.node}`);let t=Number.parseInt(e[0],10),n=Number.parseInt(e[1],10);return T6.IS_SUPPORT_READDIR_WITH_FILE_TYPES=t>10||10===t&&n>=10,T6}var T8={},T5={};function T7(){return a5||(a5=1,Object.defineProperty(T8,"__esModule",{value:!0}),T8.fs=void 0,T8.fs=function(){if(a8)return T5;a8=1,Object.defineProperty(T5,"__esModule",{value:!0}),T5.createDirentFromStats=void 0;class e{constructor(e,t){this.name=e,this.isBlockDevice=t.isBlockDevice.bind(t),this.isCharacterDevice=t.isCharacterDevice.bind(t),this.isDirectory=t.isDirectory.bind(t),this.isFIFO=t.isFIFO.bind(t),this.isFile=t.isFile.bind(t),this.isSocket=t.isSocket.bind(t),this.isSymbolicLink=t.isSymbolicLink.bind(t)}}return T5.createDirentFromStats=function(t,n){return new e(t,n)},T5}()),T8}var T9={};function Se(){return a7||(a7=1,Object.defineProperty(T9,"__esModule",{value:!0}),T9.joinPathSegments=void 0,T9.joinPathSegments=function(e,t,n){return e.endsWith(n)?e+t:e+n+t}),T9}var St={},Sn={},Sr={};function Si(){if(or)return TG;or=1,Object.defineProperty(TG,"__esModule",{value:!0}),TG.Settings=TG.scandirSync=TG.scandir=void 0;let e=function(){if(a9)return TX;a9=1,Object.defineProperty(TX,"__esModule",{value:!0}),TX.readdir=TX.readdirWithFileTypes=TX.read=void 0;let e=T3(),t=function(){let e;if(a6)return a3;a6=1,a3=function(e,n){let r,i,a,o=!0;function s(e){function i(){n&&n(e,r),n=null}o?t(i):i()}function l(e,t,n){r[e]=n,(0==--i||t)&&s(t)}Array.isArray(e)?(r=[],i=e.length):(a=Object.keys(e),r={},i=a.length),i?a?a.forEach(function(t){e[t](function(e,n){l(t,e,n)})}):e.forEach(function(e,t){e(function(e,n){l(t,e,n)})}):s(null),o=!1};let t=a2?a1:(a2=1,a1="function"==typeof queueMicrotask?queueMicrotask.bind("undefined"!=typeof window?window:s0):t=>(e||(e=Promise.resolve())).then(t).catch(e=>setTimeout(()=>{throw e},0)));return a3}(),n=T4(),r=T7(),i=Se();function a(e,n,a){n.fs.readdir(e,{withFileTypes:!0},(o,s)=>{if(null!==o)return void a(o);let l=s.map(t=>({dirent:t,name:t.name,path:i.joinPathSegments(e,t.name,n.pathSegmentSeparator)}));n.followSymbolicLinks?t(l.map(e=>{var t,i;return t=e,i=n,e=>{t.dirent.isSymbolicLink()?i.fs.stat(t.path,(n,a)=>{null!==n?i.throwErrorOnBrokenSymbolicLink?e(n):e(null,t):(t.dirent=r.fs.createDirentFromStats(t.name,a),e(null,t))}):e(null,t)}}),(e,t)=>{null!==e?a(e):a(null,t)}):a(null,l)})}function o(n,a,o){a.fs.readdir(n,(s,l)=>{null!==s?o(s):t(l.map(t=>{let o=i.joinPathSegments(n,t,a.pathSegmentSeparator);return n=>{e.stat(o,a.fsStatSettings,(e,i)=>{if(null!==e)return void n(e);let s={name:t,path:o,dirent:r.fs.createDirentFromStats(t,i)};a.stats&&(s.stats=i),n(null,s)})}}),(e,t)=>{null!==e?o(e):o(null,t)})})}return TX.read=function(e,t,r){!t.stats&&n.IS_SUPPORT_READDIR_WITH_FILE_TYPES?a(e,t,r):o(e,t,r)},TX.readdirWithFileTypes=a,TX.readdir=o,TX}(),t=function(){if(oe)return St;oe=1,Object.defineProperty(St,"__esModule",{value:!0}),St.readdir=St.readdirWithFileTypes=St.read=void 0;let e=T3(),t=T4(),n=T7(),r=Se();function i(e,t){return t.fs.readdirSync(e,{withFileTypes:!0}).map(i=>{let a={dirent:i,name:i.name,path:r.joinPathSegments(e,i.name,t.pathSegmentSeparator)};if(a.dirent.isSymbolicLink()&&t.followSymbolicLinks)try{let e=t.fs.statSync(a.path);a.dirent=n.fs.createDirentFromStats(a.name,e)}catch(e){if(t.throwErrorOnBrokenSymbolicLink)throw e}return a})}function a(t,i){return i.fs.readdirSync(t).map(a=>{let o=r.joinPathSegments(t,a,i.pathSegmentSeparator),s=e.statSync(o,i.fsStatSettings),l={name:a,path:o,dirent:n.fs.createDirentFromStats(a,s)};return i.stats&&(l.stats=s),l})}return St.read=function(e,n){return!n.stats&&t.IS_SUPPORT_READDIR_WITH_FILE_TYPES?i(e,n):a(e,n)},St.readdirWithFileTypes=i,St.readdir=a,St}(),n=function(){if(on)return Sn;on=1,Object.defineProperty(Sn,"__esModule",{value:!0});let e=T3(),t=function(){return ot?Sr:(ot=1,Object.defineProperty(Sr,"__esModule",{value:!0}),Sr.createFileSystemAdapter=Sr.FILE_SYSTEM_ADAPTER=void 0,Sr.FILE_SYSTEM_ADAPTER={lstat:h3.lstat,stat:h3.stat,lstatSync:h3.lstatSync,statSync:h3.statSync,readdir:h3.readdir,readdirSync:h3.readdirSync},Sr.createFileSystemAdapter=function(e){return void 0===e?Sr.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},Sr.FILE_SYSTEM_ADAPTER),e)},Sr)}();return Sn.default=class{constructor(n={}){this._options=n,this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!1),this.fs=t.createFileSystemAdapter(this._options.fs),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,h6.sep),this.stats=this._getValue(this._options.stats,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0),this.fsStatSettings=new e.Settings({followSymbolicLink:this.followSymbolicLinks,fs:this.fs,throwErrorOnBrokenSymbolicLink:this.throwErrorOnBrokenSymbolicLink})}_getValue(e,t){return null!=e?e:t}},Sn}();function r(e={}){return e instanceof n.default?e:new n.default(e)}return TG.Settings=n.default,TG.scandir=function(t,n,i){"function"==typeof n?e.read(t,r(),n):e.read(t,r(n),i)},TG.scandirSync=function(e,n){let i=r(n);return t.read(e,i)},TG}var Sa={exports:{}},So={};function Ss(){return os||(os=1,Object.defineProperty(So,"__esModule",{value:!0}),So.joinPathSegments=So.replacePathSegmentSeparator=So.isAppliedFilter=So.isFatalError=void 0,So.isFatalError=function(e,t){return null===e.errorFilter||!e.errorFilter(t)},So.isAppliedFilter=function(e,t){return null===e||e(t)},So.replacePathSegmentSeparator=function(e,t){return e.split(/[/\\]/).join(t)},So.joinPathSegments=function(e,t,n){return""===e?t:e.endsWith(n)?e+t:e+n+t}),So}var Sl={};function Sc(){if(ol)return Sl;ol=1,Object.defineProperty(Sl,"__esModule",{value:!0});let e=Ss();return Sl.default=class{constructor(t,n){this._root=t,this._settings=n,this._root=e.replacePathSegmentSeparator(t,n.pathSegmentSeparator)}},Sl}function Su(){if(oc)return TK;oc=1,Object.defineProperty(TK,"__esModule",{value:!0});let e=Si(),t=function(){if(oo)return Sa.exports;oo=1;var e=oa?oi:(oa=1,oi=function(e){var t=new e,n=t;return{get:function(){var r=t;return r.next?t=r.next:n=t=new e,r.next=null,r},release:function(e){n.next=e,n=e}}});function t(t,i,a){if("function"==typeof t&&(a=i,i=t,t=null),!(a>=1))throw Error("fastqueue concurrency must be equal to or greater than 1");var o=e(r),s=null,l=null,c=0,u=null,_={push:function(e,r){var p=o.get();p.context=t,p.release=d,p.value=e,p.callback=r||n,p.errorHandler=u,c>=a||_.paused?l?(l.next=p,l=p):(s=p,l=p,_.saturated()):(c++,i.call(t,p.value,p.worked))},drain:n,saturated:n,pause:function(){_.paused=!0},paused:!1,get concurrency(){return a},set concurrency(value){if(!(value>=1))throw Error("fastqueue concurrency must be equal to or greater than 1");if(a=value,_.paused)return;for(;s&&c<a;)c++,d()},running:function(){return c},resume:function(){if(_.paused){if(_.paused=!1,null===s){c++,d();return}for(;s&&c<a;)c++,d()}},idle:function(){return 0===c&&0===_.length()},length:function(){for(var e=s,t=0;e;)e=e.next,t++;return t},getQueue:function(){for(var e=s,t=[];e;)t.push(e.value),e=e.next;return t},unshift:function(e,r){var p=o.get();p.context=t,p.release=d,p.value=e,p.callback=r||n,p.errorHandler=u,c>=a||_.paused?s?(p.next=s,s=p):(s=p,l=p,_.saturated()):(c++,i.call(t,p.value,p.worked))},empty:n,kill:function(){s=null,l=null,_.drain=n},killAndDrain:function(){s=null,l=null,_.drain(),_.drain=n},error:function(e){u=e}};return _;function d(e){e&&o.release(e);var n=s;n&&c<=a?_.paused?c--:(l===s&&(l=null),s=n.next,n.next=null,i.call(t,n.value,n.worked),null===l&&_.empty()):0==--c&&_.drain()}}function n(){}function r(){this.value=null,this.callback=n,this.next=null,this.release=n,this.context=null,this.errorHandler=null;var e=this;this.worked=function(t,r){var i=e.callback,a=e.errorHandler,o=e.value;e.value=null,e.callback=n,e.errorHandler&&a(t,o),i.call(e.context,t,r),e.release(e)}}return Sa.exports=t,Sa.exports.promise=function(e,r,i){"function"==typeof e&&(i=r,r=e,e=null);var a=t(e,function(e,t){r.call(this,e).then(function(e){t(null,e)},t)},i),o=a.push,s=a.unshift;return a.push=function(e){var t=new Promise(function(t,n){o(e,function(e,r){e?n(e):t(r)})});return t.catch(n),t},a.unshift=function(e){var t=new Promise(function(t,n){s(e,function(e,r){e?n(e):t(r)})});return t.catch(n),t},a.drained=function(){return new Promise(function(e){process.nextTick(function(){if(a.idle())e();else{var t=a.drain;a.drain=function(){"function"==typeof t&&t(),e(),a.drain=t}}})})},a},Sa.exports}(),n=Ss(),r=Sc();class i extends r.default{constructor(n,r){super(n,r),this._settings=r,this._scandir=e.scandir,this._emitter=new TH.EventEmitter,this._queue=t(this._worker.bind(this),this._settings.concurrency),this._isFatalError=!1,this._isDestroyed=!1,this._queue.drain=()=>{this._isFatalError||this._emitter.emit("end")}}read(){return this._isFatalError=!1,this._isDestroyed=!1,setImmediate(()=>{this._pushToQueue(this._root,this._settings.basePath)}),this._emitter}get isDestroyed(){return this._isDestroyed}destroy(){if(this._isDestroyed)throw Error("The reader is already destroyed");this._isDestroyed=!0,this._queue.killAndDrain()}onEntry(e){this._emitter.on("entry",e)}onError(e){this._emitter.once("error",e)}onEnd(e){this._emitter.once("end",e)}_pushToQueue(e,t){this._queue.push({directory:e,base:t},e=>{null!==e&&this._handleError(e)})}_worker(e,t){this._scandir(e.directory,this._settings.fsScandirSettings,(n,r)=>{if(null!==n)return void t(n,void 0);for(let t of r)this._handleEntry(t,e.base);t(null,void 0)})}_handleError(e){!this._isDestroyed&&n.isFatalError(this._settings,e)&&(this._isFatalError=!0,this._isDestroyed=!0,this._emitter.emit("error",e))}_handleEntry(e,t){if(this._isDestroyed||this._isFatalError)return;let r=e.path;void 0!==t&&(e.path=n.joinPathSegments(t,e.name,this._settings.pathSegmentSeparator)),n.isAppliedFilter(this._settings.entryFilter,e)&&this._emitEntry(e),e.dirent.isDirectory()&&n.isAppliedFilter(this._settings.deepFilter,e)&&this._pushToQueue(r,void 0===t?void 0:e.path)}_emitEntry(e){this._emitter.emit("entry",e)}}return TK.default=i,TK}var S_={},Sd={},Sp={},Sf={};function Sm(){if(om)return T$;om=1,Object.defineProperty(T$,"__esModule",{value:!0}),T$.Settings=T$.walkStream=T$.walkSync=T$.walk=void 0;let e=function(){if(ou)return TW;ou=1,Object.defineProperty(TW,"__esModule",{value:!0});let e=Su();return TW.default=class{constructor(t,n){this._root=t,this._settings=n,this._reader=new e.default(this._root,this._settings),this._storage=[]}read(e){this._reader.onError(t=>{e(t)}),this._reader.onEntry(e=>{this._storage.push(e)}),this._reader.onEnd(()=>{e(null,this._storage)}),this._reader.read()}},TW}(),t=function(){if(o_)return S_;o_=1,Object.defineProperty(S_,"__esModule",{value:!0});let e=Su();return S_.default=class{constructor(t,n){this._root=t,this._settings=n,this._reader=new e.default(this._root,this._settings),this._stream=new TB.Readable({objectMode:!0,read:()=>{},destroy:()=>{this._reader.isDestroyed||this._reader.destroy()}})}read(){return this._reader.onError(e=>{this._stream.emit("error",e)}),this._reader.onEntry(e=>{this._stream.push(e)}),this._reader.onEnd(()=>{this._stream.push(null)}),this._reader.read(),this._stream}},S_}(),n=function(){if(op)return Sd;op=1,Object.defineProperty(Sd,"__esModule",{value:!0});let e=function(){if(od)return Sp;od=1,Object.defineProperty(Sp,"__esModule",{value:!0});let e=Si(),t=Ss(),n=Sc();class r extends n.default{constructor(){super(...arguments),this._scandir=e.scandirSync,this._storage=[],this._queue=new Set}read(){return this._pushToQueue(this._root,this._settings.basePath),this._handleQueue(),this._storage}_pushToQueue(e,t){this._queue.add({directory:e,base:t})}_handleQueue(){for(let e of this._queue.values())this._handleDirectory(e.directory,e.base)}_handleDirectory(e,t){try{for(let n of this._scandir(e,this._settings.fsScandirSettings))this._handleEntry(n,t)}catch(e){this._handleError(e)}}_handleError(e){if(t.isFatalError(this._settings,e))throw e}_handleEntry(e,n){let r=e.path;void 0!==n&&(e.path=t.joinPathSegments(n,e.name,this._settings.pathSegmentSeparator)),t.isAppliedFilter(this._settings.entryFilter,e)&&this._pushToStorage(e),e.dirent.isDirectory()&&t.isAppliedFilter(this._settings.deepFilter,e)&&this._pushToQueue(r,void 0===n?void 0:e.path)}_pushToStorage(e){this._storage.push(e)}}return Sp.default=r,Sp}();return Sd.default=class{constructor(t,n){this._root=t,this._settings=n,this._reader=new e.default(this._root,this._settings)}read(){return this._reader.read()}},Sd}(),r=function(){if(of)return Sf;of=1,Object.defineProperty(Sf,"__esModule",{value:!0});let e=Si();return Sf.default=class{constructor(t={}){this._options=t,this.basePath=this._getValue(this._options.basePath,void 0),this.concurrency=this._getValue(this._options.concurrency,1/0),this.deepFilter=this._getValue(this._options.deepFilter,null),this.entryFilter=this._getValue(this._options.entryFilter,null),this.errorFilter=this._getValue(this._options.errorFilter,null),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,h6.sep),this.fsScandirSettings=new e.Settings({followSymbolicLinks:this._options.followSymbolicLinks,fs:this._options.fs,pathSegmentSeparator:this._options.pathSegmentSeparator,stats:this._options.stats,throwErrorOnBrokenSymbolicLink:this._options.throwErrorOnBrokenSymbolicLink})}_getValue(e,t){return null!=e?e:t}},Sf}();function i(e={}){return e instanceof r.default?e:new r.default(e)}return T$.Settings=r.default,T$.walk=function(t,n,r){"function"==typeof n?new e.default(t,i()).read(n):new e.default(t,i(n)).read(r)},T$.walkSync=function(e,t){let r=i(t);return new n.default(e,r).read()},T$.walkStream=function(e,n){let r=i(n);return new t.default(e,r).read()},T$}var Sg={};function Sh(){if(og)return Sg;og=1,Object.defineProperty(Sg,"__esModule",{value:!0});let e=T3(),t=TJ();return Sg.default=class{constructor(t){this._settings=t,this._fsStatSettings=new e.Settings({followSymbolicLink:this._settings.followSymbolicLinks,fs:this._settings.fs,throwErrorOnBrokenSymbolicLink:this._settings.followSymbolicLinks})}_getFullEntryPath(e){return h6.resolve(this._settings.cwd,e)}_makeEntry(e,n){let r={name:n,path:n,dirent:t.fs.createDirentFromStats(n,e)};return this._settings.stats&&(r.stats=e),r}_isFatalError(e){return!t.errno.isEnoentCodeError(e)&&!this._settings.suppressErrors}},Sg}var Sy={};function Sv(){if(oh)return Sy;oh=1,Object.defineProperty(Sy,"__esModule",{value:!0});let e=T3(),t=Sm(),n=Sh();class r extends n.default{constructor(){super(...arguments),this._walkStream=t.walkStream,this._stat=e.stat}dynamic(e,t){return this._walkStream(e,t)}static(e,t){let n=e.map(this._getFullEntryPath,this),r=new TB.PassThrough({objectMode:!0});r._write=(i,a,o)=>this._getEntry(n[i],e[i],t).then(e=>{null!==e&&t.entryFilter(e)&&r.push(e),i===n.length-1&&r.end(),o()}).catch(o);for(let e=0;e<n.length;e++)r.write(e);return r}_getEntry(e,t,n){return this._getStat(e).then(e=>this._makeEntry(e,t)).catch(e=>{if(n.errorFilter(e))return null;throw e})}_getStat(e){return new Promise((t,n)=>{this._stat(e,this._fsStatSettings,(e,r)=>null===e?t(r):n(e))})}}return Sy.default=r,Sy}var Sb={},ST={},SS={},Sx={},SE={},Sk={},SP={};function SC(){if(ok)return Sb;ok=1,Object.defineProperty(Sb,"__esModule",{value:!0});let e=function(){if(oT)return ST;oT=1,Object.defineProperty(ST,"__esModule",{value:!0});let e=TJ(),t=function(){if(ob)return SS;ob=1,Object.defineProperty(SS,"__esModule",{value:!0});let e=function(){if(ov)return Sx;ov=1,Object.defineProperty(Sx,"__esModule",{value:!0});let e=TJ();return Sx.default=class{constructor(e,t,n){this._patterns=e,this._settings=t,this._micromatchOptions=n,this._storage=[],this._fillStorage()}_fillStorage(){for(let e of this._patterns){let t=this._getPatternSegments(e),n=this._splitSegmentsIntoSections(t);this._storage.push({complete:n.length<=1,pattern:e,segments:t,sections:n})}}_getPatternSegments(t){return e.pattern.getPatternParts(t,this._micromatchOptions).map(t=>e.pattern.isDynamicPattern(t,this._settings)?{dynamic:!0,pattern:t,patternRe:e.pattern.makeRe(t,this._micromatchOptions)}:{dynamic:!1,pattern:t})}_splitSegmentsIntoSections(t){return e.array.splitWhen(t,t=>t.dynamic&&e.pattern.hasGlobStar(t.pattern))}},Sx}();class t extends e.default{match(e){let t=e.split("/"),n=t.length;for(let e of this._storage.filter(e=>!e.complete||e.segments.length>n)){let r=e.sections[0];if(!e.complete&&n>r.length||t.every((t,n)=>{let r=e.segments[n];return!!(r.dynamic&&r.patternRe.test(t))||!r.dynamic&&r.pattern===t}))return!0}return!1}}return SS.default=t,SS}();return ST.default=class{constructor(e,t){this._settings=e,this._micromatchOptions=t}getFilter(e,t,n){let r=this._getMatcher(t),i=this._getNegativePatternsRe(n);return t=>this._filter(e,t,r,i)}_getMatcher(e){return new t.default(e,this._settings,this._micromatchOptions)}_getNegativePatternsRe(t){let n=t.filter(e.pattern.isAffectDepthOfReadingPattern);return e.pattern.convertPatternsToRe(n,this._micromatchOptions)}_filter(t,n,r,i){if(this._isSkippedByDeep(t,n.path)||this._isSkippedSymbolicLink(n))return!1;let a=e.path.removeLeadingDotSegment(n.path);return!this._isSkippedByPositivePatterns(a,r)&&this._isSkippedByNegativePatterns(a,i)}_isSkippedByDeep(e,t){return this._settings.deep!==1/0&&this._getEntryLevel(e,t)>=this._settings.deep}_getEntryLevel(e,t){let n=t.split("/").length;return""===e?n:n-e.split("/").length}_isSkippedSymbolicLink(e){return!this._settings.followSymbolicLinks&&e.dirent.isSymbolicLink()}_isSkippedByPositivePatterns(e,t){return!this._settings.baseNameMatch&&!t.match(e)}_isSkippedByNegativePatterns(t,n){return!e.pattern.matchAny(t,n)}},ST}(),t=function(){if(oS)return SE;oS=1,Object.defineProperty(SE,"__esModule",{value:!0});let e=TJ();return SE.default=class{constructor(e,t){this._settings=e,this._micromatchOptions=t,this.index=new Map}getFilter(t,n){let[r,i]=e.pattern.partitionAbsoluteAndRelative(n),a={positive:{all:e.pattern.convertPatternsToRe(t,this._micromatchOptions)},negative:{absolute:e.pattern.convertPatternsToRe(r,Object.assign(Object.assign({},this._micromatchOptions),{dot:!0})),relative:e.pattern.convertPatternsToRe(i,Object.assign(Object.assign({},this._micromatchOptions),{dot:!0}))}};return e=>this._filter(e,a)}_filter(t,n){let r=e.path.removeLeadingDotSegment(t.path);if(this._settings.unique&&this._isDuplicateEntry(r)||this._onlyFileFilter(t)||this._onlyDirectoryFilter(t))return!1;let i=this._isMatchToPatternsSet(r,n,t.dirent.isDirectory());return this._settings.unique&&i&&this._createIndexRecord(r),i}_isDuplicateEntry(e){return this.index.has(e)}_createIndexRecord(e){this.index.set(e,void 0)}_onlyFileFilter(e){return this._settings.onlyFiles&&!e.dirent.isFile()}_onlyDirectoryFilter(e){return this._settings.onlyDirectories&&!e.dirent.isDirectory()}_isMatchToPatternsSet(e,t,n){return!(!this._isMatchToPatterns(e,t.positive.all,n)||this._isMatchToPatterns(e,t.negative.relative,n)||this._isMatchToAbsoluteNegative(e,t.negative.absolute,n))}_isMatchToAbsoluteNegative(t,n,r){if(0===n.length)return!1;let i=e.path.makeAbsolute(this._settings.cwd,t);return this._isMatchToPatterns(i,n,r)}_isMatchToPatterns(t,n,r){if(0===n.length)return!1;let i=e.pattern.matchAny(t,n);return!i&&r?e.pattern.matchAny(t+"/",n):i}},SE}(),n=function(){if(ox)return Sk;ox=1,Object.defineProperty(Sk,"__esModule",{value:!0});let e=TJ();return Sk.default=class{constructor(e){this._settings=e}getFilter(){return e=>this._isNonFatalError(e)}_isNonFatalError(t){return e.errno.isEnoentCodeError(t)||this._settings.suppressErrors}},Sk}(),r=function(){if(oE)return SP;oE=1,Object.defineProperty(SP,"__esModule",{value:!0});let e=TJ();return SP.default=class{constructor(e){this._settings=e}getTransformer(){return e=>this._transform(e)}_transform(t){let n=t.path;return(this._settings.absolute&&(n=e.path.makeAbsolute(this._settings.cwd,n),n=e.path.unixify(n)),this._settings.markDirectories&&t.dirent.isDirectory()&&(n+="/"),this._settings.objectMode)?Object.assign(Object.assign({},t),{path:n}):n}},SP}();return Sb.default=class{constructor(i){this._settings=i,this.errorFilter=new n.default(this._settings),this.entryFilter=new t.default(this._settings,this._getMicromatchOptions()),this.deepFilter=new e.default(this._settings,this._getMicromatchOptions()),this.entryTransformer=new r.default(this._settings)}_getRootDirectory(e){return h6.resolve(this._settings.cwd,e.base)}_getReaderOptions(e){let t="."===e.base?"":e.base;return{basePath:t,pathSegmentSeparator:"/",concurrency:this._settings.concurrency,deepFilter:this.deepFilter.getFilter(t,e.positive,e.negative),entryFilter:this.entryFilter.getFilter(e.positive,e.negative),errorFilter:this.errorFilter.getFilter(),followSymbolicLinks:this._settings.followSymbolicLinks,fs:this._settings.fs,stats:this._settings.stats,throwErrorOnBrokenSymbolicLink:this._settings.throwErrorOnBrokenSymbolicLink,transform:this.entryTransformer.getTransformer()}}_getMicromatchOptions(){return{dot:this._settings.dot,matchBase:this._settings.baseNameMatch,nobrace:!this._settings.braceExpansion,nocase:!this._settings.caseSensitiveMatch,noext:!this._settings.extglob,noglobstar:!this._settings.globstar,posix:!0,strictSlashes:!1}}},Sb}var Sw={},SA={},SD={},SN={};function SF(){if(oO)return TE;oO=1;var e=TE&&TE.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(TE,"__esModule",{value:!0}),TE.clearGlobCache=function(){s?.clear()},TE.resolveProjectList=function(e){let t=[];if(null!=e.project)for(let n of e.project)"string"==typeof n&&t.push(n);if(0===t.length)return new Map;let l=(e.projectFolderIgnoreList??["**/node_modules/**"]).filter(e=>"string"==typeof e).map(e=>e.startsWith("!")?e:`!${e}`),c=function({project:e,projectFolderIgnoreList:t,tsconfigRootDir:n}){let r={tsconfigRootDir:n,project:e,projectFolderIgnoreList:[...t].sort()};return(0,i.createHash)(JSON.stringify(r))}({project:t,projectFolderIgnoreList:l,tsconfigRootDir:e.tsconfigRootDir});if(null==s)s=new a.ExpiringCache(e.singleRun?"Infinity":e.cacheLifetime?.glob??a.DEFAULT_TSCONFIG_CACHE_DURATION_SECONDS);else{let e=s.get(c);if(e)return e}let u=t.filter(e=>!(0,r.default)(e)),_=t.filter(e=>(0,r.default)(e)),d=[];_.length>0&&(d=_.flatMap(t=>(0,n.sync)(t,{cwd:e.tsconfigRootDir,ignore:l})));let p=new Map([...u,...d].map(t=>[(0,i.getCanonicalFileName)((0,i.ensureAbsolutePath)(t,e.tsconfigRootDir)),(0,i.ensureAbsolutePath)(t,e.tsconfigRootDir)]));return o("parserOptions.project (excluding ignored) matched projects: %s",p),s.set(c,p),p},TE.clearGlobResolutionCache=function(){s?.clear(),s=null};let t=e(bo()),n=function(){if(oF)return oN;oF=1;let e=function(){if(aH)return Tk;aH=1,Object.defineProperty(Tk,"__esModule",{value:!0}),Tk.convertPatternGroupToTask=Tk.convertPatternGroupsToTasks=Tk.groupPatternsByBaseDirectory=Tk.getNegativePatternsAsPositive=Tk.getPositivePatterns=Tk.convertPatternsToTasks=Tk.generate=void 0;let e=TJ();function t(t,n){let r=t;return n.braceExpansion&&(r=e.pattern.expandPatternsWithBraceExpansion(r)),n.baseNameMatch&&(r=r.map(e=>e.includes("/")?e:`**/${e}`)),r.map(t=>e.pattern.removeDuplicateSlashes(t))}function n(t,n,r){let i=[],l=e.pattern.getPatternsOutsideCurrentDirectory(t),c=e.pattern.getPatternsInsideCurrentDirectory(t),u=a(l),_=a(c);return i.push(...o(u,n,r)),"."in _?i.push(s(".",c,n,r)):i.push(...o(_,n,r)),i}function r(t){return e.pattern.getPositivePatterns(t)}function i(t,n){return e.pattern.getNegativePatterns(t).concat(n).map(e.pattern.convertToPositivePattern)}function a(t){return t.reduce((t,n)=>{let r=e.pattern.getBaseDirectory(n);return r in t?t[r].push(n):t[r]=[n],t},{})}function o(e,t,n){return Object.keys(e).map(r=>s(r,e[r],t,n))}function s(t,n,r,i){return{dynamic:i,positive:n,negative:r,base:t,patterns:[].concat(n,r.map(e.pattern.convertToNegativePattern))}}return Tk.generate=function(a,o){let s=t(a,o),l=t(o.ignore,o),c=r(s),u=i(s,l),_=c.filter(t=>e.pattern.isStaticPattern(t,o)),d=c.filter(t=>e.pattern.isDynamicPattern(t,o)),p=n(_,u,!1),f=n(d,u,!0);return p.concat(f)},Tk.convertPatternsToTasks=n,Tk.getPositivePatterns=r,Tk.getNegativePatternsAsPositive=i,Tk.groupPatternsByBaseDirectory=a,Tk.convertPatternGroupsToTasks=o,Tk.convertPatternGroupToTask=s,Tk}(),t=function(){if(oP)return Tz;oP=1,Object.defineProperty(Tz,"__esModule",{value:!0});let e=function(){if(oy)return Tq;oy=1,Object.defineProperty(Tq,"__esModule",{value:!0});let e=Sm(),t=Sh(),n=Sv();class r extends t.default{constructor(){super(...arguments),this._walkAsync=e.walk,this._readerStream=new n.default(this._settings)}dynamic(e,t){return new Promise((n,r)=>{this._walkAsync(e,t,(e,t)=>{null===e?n(t):r(e)})})}async static(e,t){let n=[],r=this._readerStream.static(e,t);return new Promise((e,t)=>{r.once("error",t),r.on("data",e=>n.push(e)),r.once("end",()=>e(n))})}}return Tq.default=r,Tq}(),t=SC();class n extends t.default{constructor(){super(...arguments),this._reader=new e.default(this._settings)}async read(e){let t=this._getRootDirectory(e),n=this._getReaderOptions(e);return(await this.api(t,e,n)).map(e=>n.transform(e))}api(e,t,n){return t.dynamic?this._reader.dynamic(e,n):this._reader.static(t.patterns,n)}}return Tz.default=n,Tz}(),n=function(){if(oC)return Sw;oC=1,Object.defineProperty(Sw,"__esModule",{value:!0});let e=Sv(),t=SC();class n extends t.default{constructor(){super(...arguments),this._reader=new e.default(this._settings)}read(e){let t=this._getRootDirectory(e),n=this._getReaderOptions(e),r=this.api(t,e,n),i=new TB.Readable({objectMode:!0,read:()=>{}});return r.once("error",e=>i.emit("error",e)).on("data",e=>i.emit("data",n.transform(e))).once("end",()=>i.emit("end")),i.once("close",()=>r.destroy()),i}api(e,t,n){return t.dynamic?this._reader.dynamic(e,n):this._reader.static(t.patterns,n)}}return Sw.default=n,Sw}(),r=function(){if(oA)return SA;oA=1,Object.defineProperty(SA,"__esModule",{value:!0});let e=function(){if(ow)return SD;ow=1,Object.defineProperty(SD,"__esModule",{value:!0});let e=T3(),t=Sm(),n=Sh();class r extends n.default{constructor(){super(...arguments),this._walkSync=t.walkSync,this._statSync=e.statSync}dynamic(e,t){return this._walkSync(e,t)}static(e,t){let n=[];for(let r of e){let e=this._getFullEntryPath(r),i=this._getEntry(e,r,t);null!==i&&t.entryFilter(i)&&n.push(i)}return n}_getEntry(e,t,n){try{let n=this._getStat(e);return this._makeEntry(n,t)}catch(e){if(n.errorFilter(e))return null;throw e}}_getStat(e){return this._statSync(e,this._fsStatSettings)}}return SD.default=r,SD}(),t=SC();class n extends t.default{constructor(){super(...arguments),this._reader=new e.default(this._settings)}read(e){let t=this._getRootDirectory(e),n=this._getReaderOptions(e);return this.api(t,e,n).map(n.transform)}api(e,t,n){return t.dynamic?this._reader.dynamic(e,n):this._reader.static(t.patterns,n)}}return SA.default=n,SA}(),i=function(){let e;return oD?SN:(oD=1,Object.defineProperty(SN,"__esModule",{value:!0}),SN.DEFAULT_FILE_SYSTEM_ADAPTER=void 0,e=Math.max(h4.cpus().length,1),SN.DEFAULT_FILE_SYSTEM_ADAPTER={lstat:h3.lstat,lstatSync:h3.lstatSync,stat:h3.stat,statSync:h3.statSync,readdir:h3.readdir,readdirSync:h3.readdirSync},SN.default=class{constructor(t={}){this._options=t,this.absolute=this._getValue(this._options.absolute,!1),this.baseNameMatch=this._getValue(this._options.baseNameMatch,!1),this.braceExpansion=this._getValue(this._options.braceExpansion,!0),this.caseSensitiveMatch=this._getValue(this._options.caseSensitiveMatch,!0),this.concurrency=this._getValue(this._options.concurrency,e),this.cwd=this._getValue(this._options.cwd,process.cwd()),this.deep=this._getValue(this._options.deep,1/0),this.dot=this._getValue(this._options.dot,!1),this.extglob=this._getValue(this._options.extglob,!0),this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!0),this.fs=this._getFileSystemMethods(this._options.fs),this.globstar=this._getValue(this._options.globstar,!0),this.ignore=this._getValue(this._options.ignore,[]),this.markDirectories=this._getValue(this._options.markDirectories,!1),this.objectMode=this._getValue(this._options.objectMode,!1),this.onlyDirectories=this._getValue(this._options.onlyDirectories,!1),this.onlyFiles=this._getValue(this._options.onlyFiles,!0),this.stats=this._getValue(this._options.stats,!1),this.suppressErrors=this._getValue(this._options.suppressErrors,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!1),this.unique=this._getValue(this._options.unique,!0),this.onlyDirectories&&(this.onlyFiles=!1),this.stats&&(this.objectMode=!0),this.ignore=[].concat(this.ignore)}_getValue(e,t){return void 0===e?t:e}_getFileSystemMethods(e={}){return Object.assign(Object.assign({},SN.DEFAULT_FILE_SYSTEM_ADAPTER),e)}},SN)}(),a=TJ();async function o(e,n){l(e);let r=s(e,t.default,n),i=await Promise.all(r);return a.array.flatten(i)}function s(t,n,r){let a=[].concat(t),o=new i.default(r),s=e.generate(a,o),l=new n(o);return s.map(l.read,l)}function l(e){if(![].concat(e).every(e=>a.string.isString(e)&&!a.string.isEmpty(e)))throw TypeError("Patterns must be a string (non empty) or an array of strings")}return!function(t){var o,c;function u(e,t){l(e);let n=s(e,r.default,t);return a.array.flatten(n)}function _(e,t){l(e);let r=s(e,n.default,t);return a.stream.merge(r)}t.glob=t,t.globSync=u,t.globStream=_,t.async=t,t.sync=u,t.stream=_,t.generateTasks=function(t,n){l(t);let r=[].concat(t),a=new i.default(n);return e.generate(r,a)},t.isDynamicPattern=function(e,t){l(e);let n=new i.default(t);return a.pattern.isDynamicPattern(e,n)},t.escapePath=function(e){return l(e),a.path.escape(e)},t.convertPathToPattern=function(e){return l(e),a.path.convertPathToPattern(e)},(o=t.posix||(t.posix={})).escapePath=function(e){return l(e),a.path.escapePosixPath(e)},o.convertPathToPattern=function(e){return l(e),a.path.convertPosixPathToPattern(e)},(c=t.win32||(t.win32={})).escapePath=function(e){return l(e),a.path.escapeWindowsPath(e)},c.convertPathToPattern=function(e){return l(e),a.path.convertWindowsPathToPattern(e)}}(o||(o={})),oN=o}(),r=e(TF()),i=bv(),a=TT(),o=(0,t.default)("typescript-eslint:typescript-estree:parseSettings:resolveProjectList"),s=null;return TE}var SO={},SI={};function SL(){return oI||(oI=1,Object.defineProperty(SI,"__esModule",{value:!0}),SI.version=void 0,SI.version="8.46.4"),SI}function SM(){let e;if(oM)return T_;oM=1;var t,n=T_&&T_.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),r=T_&&T_.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=T_&&T_.__importStar||(t=function(e){return(t=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t})(e)},function(e){if(e&&e.__esModule)return e;var i={};if(null!=e)for(var a=t(e),o=0;o<a.length;o++)"default"!==a[o]&&n(i,e,a[o]);return r(i,e),i}),a=T_&&T_.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(T_,"__esModule",{value:!0}),T_.createParseSettings=function(t,n={}){var r,i,a;let x,E=(r=t,(0,d.isSourceFile)(r)?r.getFullText(r):"string"==typeof r?r:String(r)),k=(0,g.inferSingleRun)(n),P=(()=>{if(null==n.tsconfigRootDir){let e=(0,p.getInferredTSConfigRootDir)();if(l.default.resolve(e)!==e)throw Error(`inferred tsconfigRootDir should be a resolved absolute path, but received: ${JSON.stringify(e)}. This is a bug in typescript-eslint! Please report it to us at https://github.com/typescript-eslint/typescript-eslint/issues/new/choose.`);return e}if("string"==typeof n.tsconfigRootDir){let e=n.tsconfigRootDir;if(!l.default.isAbsolute(e)||"win32"===process.platform&&!/^[a-zA-Z]:/.test(e))throw Error(`parserOptions.tsconfigRootDir must be an absolute path, but received: ${JSON.stringify(e)}. This is a bug in your configuration; please supply an absolute path.`);return l.default.resolve(e)}throw Error(`If provided, parserOptions.tsconfigRootDir must be a string, but received a value of type "${typeof n.tsconfigRootDir}"`)})(),C="function"==typeof n.loggerFn,w=(0,u.ensureAbsolutePath)("string"==typeof n.filePath&&"<input>"!==n.filePath?n.filePath:n.jsx?"estree.tsx":"estree.ts",P),A=l.default.extname(w).toLowerCase(),D=(()=>{switch(n.jsDocParsingMode){case"all":default:return S.ParseAll;case"none":return S.ParseNone;case"type-info":return S.ParseForTypeInfo}})(),N={loc:!0===n.loc,range:!0===n.range,allowInvalidAST:!0===n.allowInvalidAST,code:t,codeFullText:E,comment:!0===n.comment,comments:[],debugLevel:!0===n.debugLevel?new Set(["typescript-eslint"]):Array.isArray(n.debugLevel)?new Set(n.debugLevel):new Set,errorOnTypeScriptSyntacticAndSemanticIssues:!1,errorOnUnknownASTType:!0===n.errorOnUnknownASTType,extraFileExtensions:Array.isArray(n.extraFileExtensions)&&n.extraFileExtensions.every(e=>"string"==typeof e)?n.extraFileExtensions:[],filePath:w,jsDocParsingMode:D,jsx:!0===n.jsx,log:"function"==typeof n.loggerFn?n.loggerFn:!1===n.loggerFn?()=>{}:console.log,preserveNodeMaps:!1!==n.preserveNodeMaps,programs:Array.isArray(n.programs)?n.programs:null,projects:new Map,projectService:n.projectService||n.project&&!1!==n.projectService&&"true"===process.env.TYPESCRIPT_ESLINT_PROJECT_SERVICE?(i=n.projectService,a={jsDocParsingMode:D,tsconfigRootDir:P},x="object"==typeof i?i:{},(0,_.validateDefaultProjectForFilesGlob)(x.allowDefaultProject),T??=(0,o.createProjectService)({options:x,...a})):void 0,setExternalModuleIndicator:"module"===n.sourceType||null==n.sourceType&&A===c.Extension.Mjs||null==n.sourceType&&A===c.Extension.Mts?e=>{e.externalModuleIndicator=!0}:void 0,singleRun:k,suppressDeprecatedPropertyWarnings:n.suppressDeprecatedPropertyWarnings??"test"!==process.env.NODE_ENV,tokens:!0===n.tokens?[]:null,tsconfigMatchCache:e??=new f.ExpiringCache(k?"Infinity":n.cacheLifetime?.glob??f.DEFAULT_TSCONFIG_CACHE_DURATION_SECONDS),tsconfigRootDir:P};if(N.projectService&&n.project&&"true"!==process.env.TYPESCRIPT_ESLINT_IGNORE_PROJECT_AND_PROJECT_SERVICE_ERROR)throw Error('Enabling "project" does nothing when "projectService" is enabled. You can remove the "project" setting.');if(N.debugLevel.size>0){let e=[];N.debugLevel.has("typescript-eslint")&&e.push("typescript-eslint:*"),(N.debugLevel.has("eslint")||s.default.enabled("eslint:*,-eslint:code-path"))&&e.push("eslint:*,-eslint:code-path"),s.default.enable(e.join(","))}if(Array.isArray(n.programs)){if(!n.programs.length)throw Error("You have set parserOptions.programs to an empty array. This will cause all files to not be found in existing programs. Either provide one or more existing TypeScript Program instances in the array, or remove the parserOptions.programs setting.");b("parserOptions.programs was provided, so parserOptions.project will be ignored.")}return N.programs||N.projectService||(N.projects=(0,h.resolveProjectList)({cacheLifetime:n.cacheLifetime,project:(0,m.getProjectConfigFiles)(N,n.project),projectFolderIgnoreList:n.projectFolderIgnoreList,singleRun:N.singleRun,tsconfigRootDir:P})),null==n.jsDocParsingMode&&0===N.projects.size&&null==N.programs&&null==N.projectService&&(N.jsDocParsingMode=S.ParseNone),(0,y.warnAboutTSVersion)(N,C),N},T_.clearTSConfigMatchCache=function(){e?.clear()},T_.clearTSServerProjectService=function(){T=null};let o=function(){var e,t;return i4?Td:(i4=1,e=Td&&Td.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),t=Td&&Td.__exportStar||function(t,n){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||e(n,t,r)},Object.defineProperty(Td,"__esModule",{value:!0}),t(function(){if(i6)return Tp;i6=1;var e=Tp&&Tp.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Tp,"__esModule",{value:!0}),Tp.createProjectService=function({jsDocParsingMode:e,options:t={},tsconfigRootDir:u}={}){let _={defaultProject:"tsconfig.json",...t},d=function(){if(i3)return Tm.exports;i3=1;if(Tm.exports)Tm.exports=yp();else throw Error("tsserverlibrary requires CommonJS; use typescript.js instead");return Tm.exports}(),p={...d.sys,clearImmediate,clearTimeout,setImmediate,setTimeout,watchDirectory:c,watchFile:c,...!_.loadTypeScriptPlugins&&{require:()=>({error:{message:"TypeScript plugins are not required when using parserOptions.projectService."},module:void 0})}};r("Creating Project Service with: %o",_);let f=new d.server.ProjectService({cancellationToken:{isCancellationRequested:()=>!1},eventHandler:s.enabled?e=>{s(e)}:void 0,host:p,jsDocParsingMode:e,logger:{close:l,endGroup:l,getLogFileName:()=>void 0,hasLevel:()=>!0,info(e){this.msg(e,d.server.Msg.Info)},loggingEnabled:()=>a.enabled||i.enabled||o.enabled,msg:(e,t)=>{switch(t){case d.server.Msg.Err:i(e);break;case d.server.Msg.Perf:o(e);break;default:a(e)}},perftrc(e){this.msg(e,d.server.Msg.Perf)},startGroup:l},session:void 0,useInferredProjectPerProjectRoot:!1,useSingleInferredProject:!1});f.setHostConfiguration({preferences:{includePackageJsonAutoImports:"off"}}),r("Enabling default project: %s",_.defaultProject);let m=(0,n.getParsedConfigFileFromTSServer)(d,_.defaultProject,!!t.defaultProject,u);return m&&f.setCompilerOptionsForInferredProjects(m.options),{allowDefaultProject:_.allowDefaultProject,lastReloadTimestamp:performance.now(),maximumDefaultProjectFileMatchCount:_.maximumDefaultProjectFileMatchCount_THIS_WILL_SLOW_DOWN_LINTING??8,service:f}};let t=e(bo()),n=function(){if(i2)return Tf;i2=1,Object.defineProperty(Tf,"__esModule",{value:!0}),Tf.getParsedConfigFileFromTSServer=function(t,n,r,i){try{return(0,e.getParsedConfigFile)(t,n,i)}catch(e){if(r)throw Error(`Could not read Project Service default project '${n}': ${e.message}`)}};let e=by();return Tf}(),r=(0,t.default)("typescript-eslint:project-service:createProjectService"),i=(0,t.default)("typescript-eslint:project-service:tsserver:err"),a=(0,t.default)("typescript-eslint:project-service:tsserver:info"),o=(0,t.default)("typescript-eslint:project-service:tsserver:perf"),s=(0,t.default)("typescript-eslint:project-service:tsserver:event"),l=()=>{},c=()=>({close:l});return Tp}(),Td),Td)}(),s=a(bo()),l=a(bh()),c=i(yp()),u=bv(),_=Th(),d=bu(),p=Tv(),f=TT(),m=function(){if(i9)return TS;i9=1;var e,t=TS&&TS.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),n=TS&&TS.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),r=TS&&TS.__importStar||(e=function(t){return(e=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t})(t)},function(r){if(r&&r.__esModule)return r;var i={};if(null!=r)for(var a=e(r),o=0;o<a.length;o++)"default"!==a[o]&&t(i,r,a[o]);return n(i,r),i}),i=TS&&TS.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(TS,"__esModule",{value:!0}),TS.getProjectConfigFiles=function(e,t){if(!0!==t)return null==t||!1===t?null:Array.isArray(t)?t:[t];l("Looking for tsconfig.json at or above file: %s",e.filePath);let n=s.dirname(e.filePath),r=[n];do{l("Checking tsconfig.json path: %s",n);let t=s.join(n,"tsconfig.json"),i=e.tsconfigMatchCache.get(n)??(o.existsSync(t)&&t);if(i){for(let t of r)e.tsconfigMatchCache.set(t,i);return[i]}n=s.dirname(n),r.push(n)}while(n.length>1&&n.length>=e.tsconfigRootDir.length);throw Error(`project was set to \`true\` but couldn't find any tsconfig.json relative to '${e.filePath}' within '${e.tsconfigRootDir}'.`)};let a=i(bo()),o=r(bl()),s=r(bh()),l=(0,a.default)("typescript-eslint:typescript-estree:parseSettings:getProjectConfigFiles");return TS}(),g=function(){if(ae)return Tx;ae=1;var e=Tx&&Tx.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Tx,"__esModule",{value:!0}),Tx.inferSingleRun=function(e){return!e?.extraFileExtensions?.length&&e?.project!=null&&null==e.programs&&"false"!==process.env.TSESTREE_SINGLE_RUN&&("true"===process.env.TSESTREE_SINGLE_RUN||!!(!e.disallowAutomaticSingleRunInference&&("true"===process.env.CI||["node_modules/.bin/eslint","node_modules/eslint/bin/eslint.js"].some(e=>process.argv.length>1&&process.argv[1].endsWith(t.default.normalize(e)))))&&!process.argv.includes("--fix"))};let t=e(bh());return Tx}(),h=SF(),y=function(){var e,t,n,r,i;let a,o,s,l,c,u;return oL?SO:(oL=1,e=SO&&SO.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),t=SO&&SO.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),r=SO&&SO.__importStar||(n=function(e){return(n=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t})(e)},function(r){if(r&&r.__esModule)return r;var i={};if(null!=r)for(var a=n(r),o=0;o<a.length;o++)"default"!==a[o]&&e(i,r,a[o]);return t(i,r),i}),i=SO&&SO.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},Object.defineProperty(SO,"__esModule",{value:!0}),SO.SUPPORTED_TYPESCRIPT_VERSIONS=void 0,SO.warnAboutTSVersion=function(e,t){if(!c&&!u){if(t||"undefined"!=typeof process&&process.stdout?.isTTY){let t="=============",n=[t,"\n\nWARNING: You are currently running a version of TypeScript which is not officially supported by @typescript-eslint/typescript-estree.\n\n",`* @typescript-eslint/typescript-estree version: ${s.version}`,`* Supported TypeScript versions: ${SO.SUPPORTED_TYPESCRIPT_VERSIONS}`,`* Your TypeScript version: ${l}`,"\n\nPlease only submit bug reports when using the officially supported version.\n\n",t].join("\n");e.log(n)}u=!0}},a=i(bK()),o=r(yp()),s=SL(),SO.SUPPORTED_TYPESCRIPT_VERSIONS=">=4.8.4 <6.0.0",l=o.version,c=a.default.satisfies(l,[SO.SUPPORTED_TYPESCRIPT_VERSIONS].join(" || ")),u=!1,SO)}(),b=(0,s.default)("typescript-eslint:typescript-estree:parseSettings:createParseSettings"),T=null,S={ParseAll:c.JSDocParsingMode?.ParseAll,ParseForTypeErrors:c.JSDocParsingMode?.ParseForTypeErrors,ParseForTypeInfo:c.JSDocParsingMode?.ParseForTypeInfo,ParseNone:c.JSDocParsingMode?.ParseNone};return T_}var SR={},Sj={},SY=s1(function(){if(oB)return oU;oB=1;var e=function(){if(oY)return oj;function e(e,r,i){e instanceof RegExp&&(e=t(e,i)),r instanceof RegExp&&(r=t(r,i));var a=n(e,r,i);return a&&{start:a[0],end:a[1],pre:i.slice(0,a[0]),body:i.slice(a[0]+e.length,a[1]),post:i.slice(a[1]+r.length)}}function t(e,t){var n=t.match(e);return n?n[0]:null}function n(e,t,n){var r,i,a,o,s,l=n.indexOf(e),c=n.indexOf(t,l+1),u=l;if(l>=0&&c>0){if(e===t)return[l,c];for(r=[],a=n.length;u>=0&&!s;)u==l?(r.push(u),l=n.indexOf(e,u+1)):1==r.length?s=[r.pop(),c]:((i=r.pop())<a&&(a=i,o=c),c=n.indexOf(t,u+1)),u=l<c&&l>=0?l:c;r.length&&(s=[a,o])}return s}return oY=1,oj=e,e.range=n,oj}(),t="\0SLASH"+Math.random()+"\0",n="\0OPEN"+Math.random()+"\0",r="\0CLOSE"+Math.random()+"\0",i="\0COMMA"+Math.random()+"\0",a="\0PERIOD"+Math.random()+"\0";function o(e){return parseInt(e,10)==e?parseInt(e,10):e.charCodeAt(0)}function s(e){return e.split(t).join("\\").split(n).join("{").split(r).join("}").split(i).join(",").split(a).join(".")}function l(e){return"{"+e+"}"}function c(e){return/^-?0\d/.test(e)}function u(e,t){return e<=t}function _(e,t){return e>=t}return oU=function(d){return d?("{}"===d.substr(0,2)&&(d="\\{\\}"+d.substr(2)),(function t(n,i){var a=[],s=e("{","}",n);if(!s)return[n];var d=s.pre,p=s.post.length?t(s.post,!1):[""];if(/\$$/.test(s.pre))for(var f=0;f<p.length;f++){var m=d+"{"+s.body+"}"+p[f];a.push(m)}else{var g=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(s.body),h=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(s.body),y=g||h,b=s.body.indexOf(",")>=0;if(!y&&!b)return s.post.match(/,(?!,).*\}/)?t(n=s.pre+"{"+s.body+r+s.post):[n];if(y)T=s.body.split(/\.\./);else if(1===(T=function t(n){if(!n)return[""];var r=[],i=e("{","}",n);if(!i)return n.split(",");var a=i.pre,o=i.body,s=i.post,l=a.split(",");l[l.length-1]+="{"+o+"}";var c=t(s);return s.length&&(l[l.length-1]+=c.shift(),l.push.apply(l,c)),r.push.apply(r,l),r}(s.body)).length&&1===(T=t(T[0],!1).map(l)).length)return p.map(function(e){return s.pre+T[0]+e});if(y){var T,S,x,E=o(T[0]),k=o(T[1]),P=Math.max(T[0].length,T[1].length),C=3==T.length?Math.abs(o(T[2])):1,w=u;k<E&&(C*=-1,w=_);var A=T.some(c);S=[];for(var D=E;w(D,k);D+=C){if(h)"\\"===(x=String.fromCharCode(D))&&(x="");else if(x=String(D),A){var N=P-x.length;if(N>0){var F=Array(N+1).join("0");x=D<0?"-"+F+x.slice(1):F+x}}S.push(x)}}else{S=[];for(var O=0;O<T.length;O++)S.push.apply(S,t(T[O],!1))}for(var O=0;O<S.length;O++)for(var f=0;f<p.length;f++){var m=d+S[O]+p[f];(!i||y||m)&&a.push(m)}}return a})(d.split("\\\\").join(t).split("\\{").join(n).split("\\}").join(r).split("\\,").join(i).split("\\.").join(a),!0).map(s)):[]}}());let SU=e=>{if("string"!=typeof e)throw TypeError("invalid pattern");if(e.length>65536)throw TypeError("pattern is too long")},SB={"[:alnum:]":["\\p{L}\\p{Nl}\\p{Nd}",!0],"[:alpha:]":["\\p{L}\\p{Nl}",!0],"[:ascii:]":["\\x00-\\x7f",!1],"[:blank:]":["\\p{Zs}\\t",!0],"[:cntrl:]":["\\p{Cc}",!0],"[:digit:]":["\\p{Nd}",!0],"[:graph:]":["\\p{Z}\\p{C}",!0,!0],"[:lower:]":["\\p{Ll}",!0],"[:print:]":["\\p{C}",!0],"[:punct:]":["\\p{P}",!0],"[:space:]":["\\p{Z}\\t\\r\\n\\v\\f",!0],"[:upper:]":["\\p{Lu}",!0],"[:word:]":["\\p{L}\\p{Nl}\\p{Nd}\\p{Pc}",!0],"[:xdigit:]":["A-Fa-f0-9",!1]},SV=e=>e.replace(/[[\]\\-]/g,"\\$&"),SJ=(e,t)=>{if("["!==e.charAt(t))throw Error("not in a brace expression");let n=[],r=[],i=t+1,a=!1,o=!1,s=!1,l=!1,c=t,u="";l:for(;i<e.length;){let _=e.charAt(i);if(("!"===_||"^"===_)&&i===t+1){l=!0,i++;continue}if("]"===_&&a&&!s){c=i+1;break}if(a=!0,"\\"===_&&!s){s=!0,i++;continue}if("["===_&&!s){for(let[a,[s,l,c]]of Object.entries(SB))if(e.startsWith(a,i)){if(u)return["$.",!1,e.length-t,!0];i+=a.length,c?r.push(s):n.push(s),o=o||l;continue l}}if(s=!1,u){_>u?n.push(SV(u)+"-"+SV(_)):_===u&&n.push(SV(_)),u="",i++;continue}if(e.startsWith("-]",i+1)){n.push(SV(_+"-")),i+=2;continue}if(e.startsWith("-",i+1)){u=_,i+=2;continue}n.push(SV(_)),i++}if(c<i)return["",!1,0,!1];if(!n.length&&!r.length)return["$.",!1,e.length-t,!0];if(0===r.length&&1===n.length&&/^\\?.$/.test(n[0])&&!l)return[(2===n[0].length?n[0].slice(-1):n[0]).replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),!1,c-t,!1];let _="["+(l?"^":"")+n.join("")+"]",d="["+(l?"":"^")+r.join("")+"]";return[n.length&&r.length?"("+_+"|"+d+")":n.length?_:d,o,c-t,!0]},Sz=(e,{windowsPathsNoEscape:t=!1}={})=>t?e.replace(/\[([^\/\\])\]/g,"$1"):e.replace(/((?!\\).|^)\[([^\/\\])\]/g,"$1$2").replace(/\\([^\/])/g,"$1"),Sq=new Set(["!","?","+","*","@"]),S$=e=>Sq.has(e),SW="(?!\\.)",SK=new Set(["[","."]),SH=new Set(["..","."]),SG=new Set("().*{}+?[]^$\\!"),SX=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),SQ="[^/]",SZ=SQ+"*?",S0=SQ+"+?";class S1{type;#K;#H;#G=!1;#X=[];#Q;#Z;#ee;#et=!1;#p;#en;#er=!1;constructor(e,t,n={}){this.type=e,e&&(this.#H=!0),this.#Q=t,this.#K=this.#Q?this.#Q.#K:this,this.#p=this.#K===this?n:this.#K.#p,this.#ee=this.#K===this?[]:this.#K.#ee,"!"!==e||this.#K.#et||this.#ee.push(this),this.#Z=this.#Q?this.#Q.#X.length:0}get hasMagic(){if(void 0!==this.#H)return this.#H;for(let e of this.#X)if("string"!=typeof e&&(e.type||e.hasMagic))return this.#H=!0;return this.#H}toString(){return void 0!==this.#en?this.#en:this.type?this.#en=this.type+"("+this.#X.map(e=>String(e)).join("|")+")":this.#en=this.#X.map(e=>String(e)).join("")}#ei(){let e;if(this!==this.#K)throw Error("should only call on root");if(this.#et)return this;for(this.toString(),this.#et=!0;e=this.#ee.pop();){if("!"!==e.type)continue;let t=e,n=t.#Q;for(;n;){for(let r=t.#Z+1;!n.type&&r<n.#X.length;r++)for(let t of e.#X){if("string"==typeof t)throw Error("string part in extglob AST??");t.copyIn(n.#X[r])}n=(t=n).#Q}}return this}push(...e){for(let t of e)if(""!==t){if("string"!=typeof t&&!(t instanceof S1&&t.#Q===this))throw Error("invalid part: "+t);this.#X.push(t)}}toJSON(){let e=null===this.type?this.#X.slice().map(e=>"string"==typeof e?e:e.toJSON()):[this.type,...this.#X.map(e=>e.toJSON())];return this.isStart()&&!this.type&&e.unshift([]),this.isEnd()&&(this===this.#K||this.#K.#et&&this.#Q?.type==="!")&&e.push({}),e}isStart(){if(this.#K===this)return!0;if(!this.#Q?.isStart())return!1;if(0===this.#Z)return!0;let e=this.#Q;for(let t=0;t<this.#Z;t++){let n=e.#X[t];if(!(n instanceof S1&&"!"===n.type))return!1}return!0}isEnd(){if(this.#K===this||this.#Q?.type==="!")return!0;if(!this.#Q?.isEnd())return!1;if(!this.type)return this.#Q?.isEnd();let e=this.#Q?this.#Q.#X.length:0;return this.#Z===e-1}copyIn(e){"string"==typeof e?this.push(e):this.push(e.clone(this))}clone(e){let t=new S1(this.type,e);for(let e of this.#X)t.copyIn(e);return t}static #ea(e,t,n,r){let i=!1,a=!1,o=-1,s=!1;if(null===t.type){let l=n,c="";for(;l<e.length;){let n=e.charAt(l++);if(i||"\\"===n){i=!i,c+=n;continue}if(a){l===o+1?("^"===n||"!"===n)&&(s=!0):"]"!==n||l===o+2&&s||(a=!1),c+=n;continue}if("["===n){a=!0,o=l,s=!1,c+=n;continue}if(!r.noext&&S$(n)&&"("===e.charAt(l)){t.push(c),c="";let i=new S1(n,t);l=S1.#ea(e,i,l,r),t.push(i);continue}c+=n}return t.push(c),l}let l=n+1,c=new S1(null,t),u=[],_="";for(;l<e.length;){let n=e.charAt(l++);if(i||"\\"===n){i=!i,_+=n;continue}if(a){l===o+1?("^"===n||"!"===n)&&(s=!0):"]"!==n||l===o+2&&s||(a=!1),_+=n;continue}if("["===n){a=!0,o=l,s=!1,_+=n;continue}if(S$(n)&&"("===e.charAt(l)){c.push(_),_="";let t=new S1(n,c);c.push(t),l=S1.#ea(e,t,l,r);continue}if("|"===n){c.push(_),_="",u.push(c),c=new S1(null,t);continue}if(")"===n)return""===_&&0===t.#X.length&&(t.#er=!0),c.push(_),_="",t.push(...u,c),l;_+=n}return t.type=null,t.#H=void 0,t.#X=[e.substring(n-1)],l}static fromGlob(e,t={}){let n=new S1(null,void 0,t);return S1.#ea(e,n,0,t),n}toMMPattern(){if(this!==this.#K)return this.#K.toMMPattern();let e=this.toString(),[t,n,r,i]=this.toRegExpSource();return r||this.#H||this.#p.nocase&&!this.#p.nocaseMagicOnly&&e.toUpperCase()!==e.toLowerCase()?Object.assign(RegExp(`^${t}$`,(this.#p.nocase?"i":"")+(i?"u":"")),{_src:t,_glob:e}):n}get options(){return this.#p}toRegExpSource(e){let t=e??!!this.#p.dot;if(this.#K===this&&this.#ei(),!this.type){let n=this.isStart()&&this.isEnd(),r=this.#X.map(t=>{let[r,i,a,o]="string"==typeof t?S1.#eo(t,this.#H,n):t.toRegExpSource(e);return this.#H=this.#H||a,this.#G=this.#G||o,r}).join(""),i="";if(this.isStart()&&"string"==typeof this.#X[0]&&!(1===this.#X.length&&SH.has(this.#X[0]))){let n=t&&SK.has(r.charAt(0))||r.startsWith("\\.")&&SK.has(r.charAt(2))||r.startsWith("\\.\\.")&&SK.has(r.charAt(4)),a=!t&&!e&&SK.has(r.charAt(0));i=n?"(?!(?:^|/)\\.\\.?(?:$|/))":a?SW:""}let a="";return this.isEnd()&&this.#K.#et&&this.#Q?.type==="!"&&(a="(?:$|\\/)"),[i+r+a,Sz(r),this.#H=!!this.#H,this.#G]}let n="*"===this.type||"+"===this.type,r="!"===this.type?"(?:(?!(?:":"(?:",i=this.#es(t);if(this.isStart()&&this.isEnd()&&!i&&"!"!==this.type){let e=this.toString();return this.#X=[e],this.type=null,this.#H=void 0,[e,Sz(this.toString()),!1,!1]}let a=!n||e||t||!SW?"":this.#es(!0);a===i&&(a=""),a&&(i=`(?:${i})(?:${a})*?`);return["!"===this.type&&this.#er?(this.isStart()&&!t?SW:"")+S0:r+i+("!"===this.type?"))"+(!this.isStart()||t||e?"":SW)+SZ+")":"@"===this.type?")":"?"===this.type?")?":"+"===this.type&&a?")":"*"===this.type&&a?")?":`)${this.type}`),Sz(i),this.#H=!!this.#H,this.#G]}#es(e){return this.#X.map(t=>{if("string"==typeof t)throw Error("string type in extglob ast??");let[n,r,i,a]=t.toRegExpSource(e);return this.#G=this.#G||a,n}).filter(e=>!(this.isStart()&&this.isEnd())||!!e).join("|")}static #eo(e,t,n=!1){let r=!1,i="",a=!1;for(let o=0;o<e.length;o++){let s=e.charAt(o);if(r){r=!1,i+=(SG.has(s)?"\\":"")+s;continue}if("\\"===s){o===e.length-1?i+="\\\\":r=!0;continue}if("["===s){let[n,r,s,l]=SJ(e,o);if(s){i+=n,a=a||r,o+=s-1,t=t||l;continue}}if("*"===s){n&&"*"===e?i+=S0:i+=SZ,t=!0;continue}if("?"===s){i+=SQ,t=!0;continue}i+=SX(s)}return[i,Sz(e),!!t,a]}}let S2=(e,{windowsPathsNoEscape:t=!1}={})=>t?e.replace(/[?*()[\]]/g,"[$&]"):e.replace(/[?*()[\]\\]/g,"\\$&"),S3=(e,t,n={})=>(SU(t),(!!n.nocomment||"#"!==t.charAt(0))&&new xg(t,n).match(e)),S6=/^\*+([^+@!?\*\[\(]*)$/,S4=/^\*+\.\*+$/,S8=e=>!e.startsWith(".")&&e.includes("."),S5=e=>"."!==e&&".."!==e&&e.includes("."),S7=/^\.\*+$/,S9=e=>"."!==e&&".."!==e&&e.startsWith("."),xe=/^\*+$/,xt=e=>0!==e.length&&!e.startsWith("."),xn=e=>0!==e.length&&"."!==e&&".."!==e,xr=/^\?+([^+@!?\*\[\(]*)?$/,xi=([e])=>{let t=e.length;return e=>e.length===t&&!e.startsWith(".")},xa=([e])=>{let t=e.length;return e=>e.length===t&&"."!==e&&".."!==e},xo="object"==typeof process&&process?"object"==typeof process.env&&process.env&&process.env.__MINIMATCH_TESTING_PLATFORM__||process.platform:"posix",xs="win32"===xo?"\\":"/";S3.sep=xs;let xl=Symbol("globstar **");S3.GLOBSTAR=xl;let xc=(e,t={})=>n=>S3(n,e,t);S3.filter=xc;let xu=(e,t={})=>Object.assign({},e,t),x_=e=>{if(!e||"object"!=typeof e||!Object.keys(e).length)return S3;let t=S3;return Object.assign((n,r,i={})=>t(n,r,xu(e,i)),{Minimatch:class extends t.Minimatch{constructor(t,n={}){super(t,xu(e,n))}static defaults(n){return t.defaults(xu(e,n)).Minimatch}},AST:class extends t.AST{constructor(t,n,r={}){super(t,n,xu(e,r))}static fromGlob(n,r={}){return t.AST.fromGlob(n,xu(e,r))}},unescape:(n,r={})=>t.unescape(n,xu(e,r)),escape:(n,r={})=>t.escape(n,xu(e,r)),filter:(n,r={})=>t.filter(n,xu(e,r)),defaults:n=>t.defaults(xu(e,n)),makeRe:(n,r={})=>t.makeRe(n,xu(e,r)),braceExpand:(n,r={})=>t.braceExpand(n,xu(e,r)),match:(n,r,i={})=>t.match(n,r,xu(e,i)),sep:t.sep,GLOBSTAR:xl})};S3.defaults=x_;let xd=(e,t={})=>(SU(e),t.nobrace||!/\{(?:(?!\{).)*\}/.test(e))?[e]:SY(e);S3.braceExpand=xd;let xp=(e,t={})=>new xg(e,t).makeRe();S3.makeRe=xp;let xf=(e,t,n={})=>{let r=new xg(t,n);return e=e.filter(e=>r.match(e)),r.options.nonull&&!e.length&&e.push(t),e};S3.match=xf;let xm=/[?*]|[+@!]\(.*?\)|\[|\]/;class xg{options;set;pattern;windowsPathsNoEscape;nonegate;negate;comment;empty;preserveMultipleSlashes;partial;globSet;globParts;nocase;isWindows;platform;windowsNoMagicRoot;regexp;constructor(e,t={}){SU(e),t=t||{},this.options=t,this.pattern=e,this.platform=t.platform||xo,this.isWindows="win32"===this.platform,this.windowsPathsNoEscape=!!t.windowsPathsNoEscape||!1===t.allowWindowsEscape,this.windowsPathsNoEscape&&(this.pattern=this.pattern.replace(/\\/g,"/")),this.preserveMultipleSlashes=!!t.preserveMultipleSlashes,this.regexp=null,this.negate=!1,this.nonegate=!!t.nonegate,this.comment=!1,this.empty=!1,this.partial=!!t.partial,this.nocase=!!this.options.nocase,this.windowsNoMagicRoot=void 0!==t.windowsNoMagicRoot?t.windowsNoMagicRoot:!!(this.isWindows&&this.nocase),this.globSet=[],this.globParts=[],this.set=[],this.make()}hasMagic(){if(this.options.magicalBraces&&this.set.length>1)return!0;for(let e of this.set)for(let t of e)if("string"!=typeof t)return!0;return!1}debug(){}make(){let e=this.pattern,t=this.options;if(!t.nocomment&&"#"===e.charAt(0)){this.comment=!0;return}if(!e){this.empty=!0;return}this.parseNegate(),this.globSet=[...new Set(this.braceExpand())],t.debug&&(this.debug=(...e)=>console.error(...e)),this.debug(this.pattern,this.globSet);let n=this.globSet.map(e=>this.slashSplit(e));this.globParts=this.preprocess(n),this.debug(this.pattern,this.globParts);let r=this.globParts.map((e,t,n)=>{if(this.isWindows&&this.windowsNoMagicRoot){let t=""===e[0]&&""===e[1]&&("?"===e[2]||!xm.test(e[2]))&&!xm.test(e[3]),n=/^[a-z]:/i.test(e[0]);if(t)return[...e.slice(0,4),...e.slice(4).map(e=>this.parse(e))];if(n)return[e[0],...e.slice(1).map(e=>this.parse(e))]}return e.map(e=>this.parse(e))});if(this.debug(this.pattern,r),this.set=r.filter(e=>-1===e.indexOf(!1)),this.isWindows)for(let e=0;e<this.set.length;e++){let t=this.set[e];""===t[0]&&""===t[1]&&"?"===this.globParts[e][2]&&"string"==typeof t[3]&&/^[a-z]:$/i.test(t[3])&&(t[2]="?")}this.debug(this.pattern,this.set)}preprocess(e){if(this.options.noglobstar)for(let t=0;t<e.length;t++)for(let n=0;n<e[t].length;n++)"**"===e[t][n]&&(e[t][n]="*");let{optimizationLevel:t=1}=this.options;return t>=2?(e=this.firstPhasePreProcess(e),e=this.secondPhasePreProcess(e)):e=t>=1?this.levelOneOptimize(e):this.adjascentGlobstarOptimize(e),e}adjascentGlobstarOptimize(e){return e.map(e=>{let t=-1;for(;-1!==(t=e.indexOf("**",t+1));){let n=t;for(;"**"===e[n+1];)n++;n!==t&&e.splice(t,n-t)}return e})}levelOneOptimize(e){return e.map(e=>0===(e=e.reduce((e,t)=>{let n=e[e.length-1];return"**"===t&&"**"===n||(".."===t&&n&&".."!==n&&"."!==n&&"**"!==n?e.pop():e.push(t)),e},[])).length?[""]:e)}levelTwoFileOptimize(e){Array.isArray(e)||(e=this.slashSplit(e));let t=!1;do{if(t=!1,!this.preserveMultipleSlashes){for(let n=1;n<e.length-1;n++){let r=e[n];(1!==n||""!==r||""!==e[0])&&("."===r||""===r)&&(t=!0,e.splice(n,1),n--)}"."===e[0]&&2===e.length&&("."===e[1]||""===e[1])&&(t=!0,e.pop())}let n=0;for(;-1!==(n=e.indexOf("..",n+1));){let r=e[n-1];r&&"."!==r&&".."!==r&&"**"!==r&&(t=!0,e.splice(n-1,2),n-=2)}}while(t);return 0===e.length?[""]:e}firstPhasePreProcess(e){let t=!1;do for(let n of(t=!1,e)){let r=-1;for(;-1!==(r=n.indexOf("**",r+1));){let i=r;for(;"**"===n[i+1];)i++;i>r&&n.splice(r+1,i-r);let a=n[r+1],o=n[r+2],s=n[r+3];if(".."!==a||!o||"."===o||".."===o||!s||"."===s||".."===s)continue;t=!0,n.splice(r,1);let l=n.slice(0);l[r]="**",e.push(l),r--}if(!this.preserveMultipleSlashes){for(let e=1;e<n.length-1;e++){let r=n[e];(1!==e||""!==r||""!==n[0])&&("."===r||""===r)&&(t=!0,n.splice(e,1),e--)}"."===n[0]&&2===n.length&&("."===n[1]||""===n[1])&&(t=!0,n.pop())}let i=0;for(;-1!==(i=n.indexOf("..",i+1));){let e=n[i-1];if(e&&"."!==e&&".."!==e&&"**"!==e){t=!0;let e=1===i&&"**"===n[i+1]?["."]:[];n.splice(i-1,2,...e),0===n.length&&n.push(""),i-=2}}}while(t);return e}secondPhasePreProcess(e){for(let t=0;t<e.length-1;t++)for(let n=t+1;n<e.length;n++){let r=this.partsMatch(e[t],e[n],!this.preserveMultipleSlashes);if(r){e[t]=[],e[n]=r;break}}return e.filter(e=>e.length)}partsMatch(e,t,n=!1){let r=0,i=0,a=[],o="";for(;r<e.length&&i<t.length;)if(e[r]===t[i])a.push("b"===o?t[i]:e[r]),r++,i++;else if(n&&"**"===e[r]&&t[i]===e[r+1])a.push(e[r]),r++;else if(n&&"**"===t[i]&&e[r]===t[i+1])a.push(t[i]),i++;else if("*"===e[r]&&t[i]&&(this.options.dot||!t[i].startsWith("."))&&"**"!==t[i]){if("b"===o)return!1;o="a",a.push(e[r]),r++,i++}else{if("*"!==t[i]||!e[r]||!this.options.dot&&e[r].startsWith(".")||"**"===e[r]||"a"===o)return!1;o="b",a.push(t[i]),r++,i++}return e.length===t.length&&a}parseNegate(){if(this.nonegate)return;let e=this.pattern,t=!1,n=0;for(let r=0;r<e.length&&"!"===e.charAt(r);r++)t=!t,n++;n&&(this.pattern=e.slice(n)),this.negate=t}matchOne(e,t,n=!1){let r=this.options;if(this.isWindows){let n="string"==typeof e[0]&&/^[a-z]:$/i.test(e[0]),r=!n&&""===e[0]&&""===e[1]&&"?"===e[2]&&/^[a-z]:$/i.test(e[3]),i="string"==typeof t[0]&&/^[a-z]:$/i.test(t[0]),a=!i&&""===t[0]&&""===t[1]&&"?"===t[2]&&"string"==typeof t[3]&&/^[a-z]:$/i.test(t[3]),o=r?3:n?0:void 0,s=a?3:i?0:void 0;if("number"==typeof o&&"number"==typeof s){let[n,r]=[e[o],t[s]];n.toLowerCase()===r.toLowerCase()&&(t[s]=n,s>o?t=t.slice(s):o>s&&(e=e.slice(o)))}}let{optimizationLevel:i=1}=this.options;i>=2&&(e=this.levelTwoFileOptimize(e)),this.debug("matchOne",this,{file:e,pattern:t}),this.debug("matchOne",e.length,t.length);for(var a=0,o=0,s=e.length,l=t.length;a<s&&o<l;a++,o++){let i;this.debug("matchOne loop");var c=t[o],u=e[a];if(this.debug(t,c,u),!1===c)return!1;if(c===xl){this.debug("GLOBSTAR",[t,c,u]);var _=a,d=o+1;if(d===l){for(this.debug("** at the end");a<s;a++)if("."===e[a]||".."===e[a]||!r.dot&&"."===e[a].charAt(0))return!1;return!0}for(;_<s;){var p=e[_];if(this.debug("\nglobstar while",e,_,t,d,p),this.matchOne(e.slice(_),t.slice(d),n))return this.debug("globstar found match!",_,s,p),!0;if("."===p||".."===p||!r.dot&&"."===p.charAt(0)){this.debug("dot detected!",e,_,t,d);break}this.debug("globstar swallow a segment, and continue"),_++}if(n&&(this.debug("\n>>> no match, partial?",e,_,t,d),_===s))return!0;return!1}if("string"==typeof c?(i=u===c,this.debug("string match",c,u,i)):(i=c.test(u),this.debug("pattern match",c,u,i)),!i)return!1}if(a===s&&o===l)return!0;if(a===s)return n;if(o===l)return a===s-1&&""===e[a];throw Error("wtf?")}braceExpand(){return xd(this.pattern,this.options)}parse(e){let t;SU(e);let n=this.options;if("**"===e)return xl;if(""===e)return"";let r=null;(t=e.match(xe))?r=n.dot?xn:xt:(t=e.match(S6))?r=(n.nocase?n.dot?e=>(e=e.toLowerCase(),t=>t.toLowerCase().endsWith(e)):e=>(e=e.toLowerCase(),t=>!t.startsWith(".")&&t.toLowerCase().endsWith(e)):n.dot?e=>t=>t.endsWith(e):e=>t=>!t.startsWith(".")&&t.endsWith(e))(t[1]):(t=e.match(xr))?r=(n.nocase?n.dot?([e,t=""])=>{let n=xa([e]);return t?(t=t.toLowerCase(),e=>n(e)&&e.toLowerCase().endsWith(t)):n}:([e,t=""])=>{let n=xi([e]);return t?(t=t.toLowerCase(),e=>n(e)&&e.toLowerCase().endsWith(t)):n}:n.dot?([e,t=""])=>{let n=xa([e]);return t?e=>n(e)&&e.endsWith(t):n}:([e,t=""])=>{let n=xi([e]);return t?e=>n(e)&&e.endsWith(t):n})(t):(t=e.match(S4))?r=n.dot?S5:S8:(t=e.match(S7))&&(r=S9);let i=S1.fromGlob(e,this.options).toMMPattern();return r&&"object"==typeof i&&Reflect.defineProperty(i,"test",{value:r}),i}makeRe(){if(this.regexp||!1===this.regexp)return this.regexp;let e=this.set;if(!e.length)return this.regexp=!1,this.regexp;let t=this.options,n=t.noglobstar?"[^/]*?":t.dot?"(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?":"(?:(?!(?:\\/|^)\\.).)*?",r=new Set(t.nocase?["i"]:[]),i=e.map(e=>{let t=e.map(e=>{if(e instanceof RegExp)for(let t of e.flags.split(""))r.add(t);return"string"==typeof e?e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"):e===xl?xl:e._src});return t.forEach((e,r)=>{let i=t[r+1],a=t[r-1];e===xl&&a!==xl&&(void 0===a?void 0!==i&&i!==xl?t[r+1]="(?:\\/|"+n+"\\/)?"+i:t[r]=n:void 0===i?t[r-1]=a+"(?:\\/|"+n+")?":i!==xl&&(t[r-1]=a+"(?:\\/|\\/"+n+"\\/)"+i,t[r+1]=xl))}),t.filter(e=>e!==xl).join("/")}).join("|"),[a,o]=e.length>1?["(?:",")"]:["",""];i="^"+a+i+o+"$",this.negate&&(i="^(?!"+i+").+$");try{this.regexp=new RegExp(i,[...r].join(""))}catch(e){this.regexp=!1}return this.regexp}slashSplit(e){return this.preserveMultipleSlashes?e.split("/"):this.isWindows&&/^\/\/[^\/]+/.test(e)?["",...e.split(/\/+/)]:e.split(/\/+/)}match(e,t=this.partial){if(this.debug("match",e,this.pattern),this.comment)return!1;if(this.empty)return""===e;if("/"===e&&t)return!0;let n=this.options;this.isWindows&&(e=e.split("\\").join("/"));let r=this.slashSplit(e);this.debug(this.pattern,"split",r);let i=this.set;this.debug(this.pattern,"set",i);let a=r[r.length-1];if(!a)for(let e=r.length-2;!a&&e>=0;e--)a=r[e];for(let e=0;e<i.length;e++){let o=i[e],s=r;if(n.matchBase&&1===o.length&&(s=[a]),this.matchOne(s,o,t)){if(n.flipNegate)return!0;return!this.negate}}return!n.flipNegate&&this.negate}static defaults(e){return S3.defaults(e).Minimatch}}S3.AST=S1,S3.Minimatch=xg,S3.escape=S2,S3.unescape=Sz;var xh=s2(Object.freeze({__proto__:null,AST:S1,GLOBSTAR:xl,Minimatch:xg,braceExpand:xd,defaults:x_,escape:S2,filter:xc,makeRe:xp,match:xf,minimatch:S3,sep:xs,unescape:Sz}));let xy=sE.createRequire("undefined"==typeof document?require("url").pathToFileURL(__filename).href:sB&&"SCRIPT"===sB.tagName.toUpperCase()&&sB.src||new URL("index.cjs",document.baseURI).href);function xv(){if(oJ)return bT;oJ=1;var e=bT&&bT.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(bT,"__esModule",{value:!0}),bT.clearProgramCache=function(){f.clear()},bT.clearDefaultProjectMatchedFiles=function(){m.clear()},bT.parse=function(e,t){let{ast:r}=function(e,t,r){let i=(0,u.createParseSettings)(e,t);if(t?.errorOnTypeScriptSyntacticAndSemanticIssues)throw Error('"errorOnTypeScriptSyntacticAndSemanticIssues" is only supported for parseAndGenerateServices()');let a=(0,o.createSourceFile)(i),{astMaps:s,estree:l}=(0,n.astConverter)(a,i,r);return{ast:l,esTreeNodeToTSNodeMap:s.esTreeNodeToTSNodeMap,tsNodeToESTreeNodeMap:s.tsNodeToESTreeNodeMap}}(e,t,!1);return r},bT.clearParseAndGenerateServicesCalls=function(){g={}},bT.parseAndGenerateServices=function(e,t){let h=(0,u.createParseSettings)(e,t);h.singleRun&&!h.programs&&h.projects.size>0&&(h.programs={*[Symbol.iterator](){for(let e of h.projects){let t=f.get(e[0]);if(t)yield t;else{p("Detected single-run/CLI usage, creating Program once ahead of time for project: %s",e);let t=(0,l.createProgramFromConfigFile)(e[1]);f.set(e[0],t),yield t}}}});let y=null!=h.programs||h.projects.size>0||!!h.projectService;if("boolean"==typeof t.errorOnTypeScriptSyntacticAndSemanticIssues&&t.errorOnTypeScriptSyntacticAndSemanticIssues&&(h.errorOnTypeScriptSyntacticAndSemanticIssues=!0),h.errorOnTypeScriptSyntacticAndSemanticIssues&&!y)throw Error("Cannot calculate TypeScript semantic issues without a valid project.");h.singleRun&&t.filePath&&(g[t.filePath]=(g[t.filePath]||0)+1);let{ast:b,program:T}=h.singleRun&&t.filePath&&g[t.filePath]>1?(0,i.createIsolatedProgram)(h):function(e,t){if(e.projectService){let n=(0,d.useProgramFromProjectService)(e.projectService,e,t,m);if(n)return n}return e.programs?(0,l.useProvidedPrograms)(e.programs,e):t?(0,a.createProjectProgram)(e,(0,s.getWatchProgramsForProjects)(e)):(0,o.createNoProgram)(e)}(h,y),S="boolean"!=typeof h.preserveNodeMaps||h.preserveNodeMaps,{astMaps:x,estree:E}=(0,n.astConverter)(b,h,S);if(T&&h.errorOnTypeScriptSyntacticAndSemanticIssues){let e=(0,_.getFirstSemanticOrSyntacticError)(T,b);if(e)throw(0,r.convertError)(e)}return{ast:E,services:(0,c.createParserServices)(x,T)}};let t=e(bo()),n=function(){if(iW)return bS;iW=1,Object.defineProperty(bS,"__esModule",{value:!0}),bS.astConverter=function(i,a,o){let{parseDiagnostics:s}=i;if(s.length)throw(0,e.convertError)(s[0]);let l=new e.Converter(i,{allowInvalidAST:a.allowInvalidAST,errorOnUnknownASTType:a.errorOnUnknownASTType,shouldPreserveNodeMaps:o,suppressDeprecatedPropertyWarnings:a.suppressDeprecatedPropertyWarnings}),c=l.convertProgram();return a.range&&a.loc||(0,r.simpleTraverse)(c,{enter:e=>{a.range||delete e.range,a.loc||delete e.loc}}),a.tokens&&(c.tokens=(0,n.convertTokens)(i)),a.comment&&(c.comments=(0,t.convertComments)(i,a.codeFullText)),{astMaps:l.getASTMaps(),estree:c}};let e=b6(),t=function(){if(iq)return b4;iq=1;var e,t=b4&&b4.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),n=b4&&b4.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),r=b4&&b4.__importStar||(e=function(t){return(e=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t})(t)},function(r){if(r&&r.__esModule)return r;var i={};if(null!=r)for(var a=e(r),o=0;o<a.length;o++)"default"!==a[o]&&t(i,r,a[o]);return n(i,r),i});Object.defineProperty(b4,"__esModule",{value:!0}),b4.convertComments=function(e,t){let n=[];return i.forEachComment(e,(r,i)=>{let l=i.kind===a.SyntaxKind.SingleLineCommentTrivia?s.AST_TOKEN_TYPES.Line:s.AST_TOKEN_TYPES.Block,c=[i.pos,i.end],u=(0,o.getLocFor)(c,e),_=c[0]+2,d=i.kind===a.SyntaxKind.SingleLineCommentTrivia?c[1]:c[1]-2;n.push({type:l,loc:u,range:c,value:t.slice(_,d)})},e),n};let i=r(b8),a=r(yp()),o=b3(),s=b2();return b4}(),n=b3(),r=b7();return bS}(),r=b6(),i=function(){if(iH)return b9;iH=1;var e,t=b9&&b9.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),n=b9&&b9.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),r=b9&&b9.__importStar||(e=function(t){return(e=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t})(t)},function(r){if(r&&r.__esModule)return r;var i={};if(null!=r)for(var a=e(r),o=0;o<a.length;o++)"default"!==a[o]&&t(i,r,a[o]);return n(i,r),i}),i=b9&&b9.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(b9,"__esModule",{value:!0}),b9.createIsolatedProgram=function(e){c("Getting isolated program in %s mode for: %s",e.jsx?"TSX":"TS",e.filePath);let t=o.createProgram([e.filePath],{jsDocParsingMode:e.jsDocParsingMode,jsx:e.jsx?o.JsxEmit.Preserve:void 0,noResolve:!0,target:o.ScriptTarget.Latest,...(0,l.createDefaultCompilerOptionsFromExtra)(e)},{fileExists:()=>!0,getCanonicalFileName:()=>e.filePath,getCurrentDirectory:()=>"",getDefaultLibFileName:()=>"lib.d.ts",getDirectories:()=>[],getNewLine:()=>"\n",getSourceFile:t=>o.createSourceFile(t,e.codeFullText,o.ScriptTarget.Latest,!0,(0,s.getScriptKind)(e.filePath,e.jsx)),readFile(){},useCaseSensitiveFileNames:()=>!0,writeFile:()=>null}),n=t.getSourceFile(e.filePath);if(!n)throw Error("Expected an ast to be returned for the single-file isolated program.");return{ast:n,program:t}};let a=i(bo()),o=r(yp()),s=Tt(),l=bv(),c=(0,a.default)("typescript-eslint:typescript-estree:create-program:createIsolatedProgram");return b9}(),a=Ta(),o=Ts(),s=bb(),l=Tc(),c=(i1||(i1=1,Object.defineProperty(Tu,"__esModule",{value:!0}),Tu.createParserServices=function(e,t){if(!t)return{emitDecoratorMetadata:void 0,experimentalDecorators:void 0,isolatedDeclarations:void 0,program:t,...e};let n=t.getTypeChecker(),r=t.getCompilerOptions();return{program:t,emitDecoratorMetadata:r.emitDecoratorMetadata??!1,experimentalDecorators:r.experimentalDecorators??!1,isolatedDeclarations:r.isolatedDeclarations??!1,...e,getSymbolAtLocation:t=>n.getSymbolAtLocation(e.esTreeNodeToTSNodeMap.get(t)),getTypeAtLocation:t=>n.getTypeAtLocation(e.esTreeNodeToTSNodeMap.get(t))}}),Tu),u=SM(),_=function(){if(oR)return SR;oR=1,Object.defineProperty(SR,"__esModule",{value:!0}),SR.getFirstSemanticOrSyntacticError=function(e,r){try{let i=t(e.getSyntacticDiagnostics(r));if(i.length>0)return n(i[0]);let a=t(e.getSemanticDiagnostics(r));if(a.length>0)return n(a[0]);return}catch(e){console.warn(`Warning From TSC: "${e.message}`);return}};let e=yp();function t(e){return e.filter(e=>{switch(e.code){case 1013:case 1014:case 1044:case 1045:case 1048:case 1049:case 1070:case 1071:case 1085:case 1090:case 1096:case 1097:case 1098:case 1099:case 1117:case 1121:case 1123:case 1141:case 1162:case 1164:case 1172:case 1173:case 1175:case 1176:case 1190:case 1196:case 1200:case 1206:case 1211:case 1242:case 1246:case 1255:case 1308:case 2364:case 2369:case 2452:case 2462:case 8017:case 17012:case 17013:return!0}return!1})}function n(t){return{...t,message:(0,e.flattenDiagnosticMessageText)(t.messageText,e.sys.newLine)}}return SR}(),d=function(){if(oV)return Sj;oV=1;var e,t=Sj&&Sj.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),n=Sj&&Sj.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),r=Sj&&Sj.__importStar||(e=function(t){return(e=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t})(t)},function(r){if(r&&r.__esModule)return r;var i={};if(null!=r)for(var a=e(r),o=0;o<a.length;o++)"default"!==a[o]&&t(i,r,a[o]);return n(i,r),i}),i=Sj&&Sj.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Sj,"__esModule",{value:!0}),Sj.useProgramFromProjectService=function(e,t,n,r){var i,a,m,g,h,y,b;let T,S,x;i=e.service,a=t.extraFileExtensions,T=f.get(i)??[],s.default.isDeepStrictEqual(T,a)||(p("Updating extra file extensions: before=%s: after=%s",T,a),i.setHostConfiguration({extraFileExtensions:a.map(e=>({extension:e,isMixedContent:!1,scriptKind:l.ScriptKind.Deferred}))}),f.set(i,a),p("Extra file extensions updated: %o",a));let E=(g=t.filePath,h=e,o.default.isAbsolute(g)?g:o.default.join(h.service.host.getCurrentDirectory(),g));p("Opening project service file for: %s at absolute path %s",t.filePath,E);let k=(y=o.default.relative(t.tsconfigRootDir,E),b=e.allowDefaultProject,!!b?.some(e=>(0,xh.minimatch)(y,e,{dot:!0})));if(!n&&!k)return m=e.service,p("No project service information available. Creating no program."),m.getScriptInfo(E)&&(p("Script info available. Opening client file in project service."),m.openClientFile(E,t.codeFullText,void 0,t.tsconfigRootDir)),(0,u.createNoProgram)(t);let P=n&&function(e,t,n,r,i){let a,s=(p("Opening project service client file at path: %s",n),!(a=l()).configFileErrors&&!a.configFileName&&!r.singleRun&&!t&&performance.now()-i.lastReloadTimestamp>250&&(p("No config file found; reloading project service and retrying."),i.service.reloadProjects(),a=l(),i.lastReloadTimestamp=performance.now()),a);if(p("Result from attempting to open client file: %o",s),p("Default project allowed path: %s, based on config file: %s",t,s.configFileName),s.configFileName){if(t)throw Error(`${r.filePath} was included by allowDefaultProject but also was found in the project service. Consider removing it from allowDefaultProject.`)}else{let e=`${r.filePath} was not found by the project service`,i=o.default.extname(r.filePath),a=r.extraFileExtensions;if(!_.DEFAULT_EXTRA_FILE_EXTENSIONS.has(i)&&!a.includes(i)){let t=`${e} because the extension for the file (\`${i}\`) is non-standard`;if(a.length>0)throw Error(`${t}. It should be added to your existing \`parserOptions.extraFileExtensions\`.`);throw Error(`${t}. You should add \`parserOptions.extraFileExtensions\` to your config.`)}if(!t){let t=`${e}. Consider either including it in the tsconfig.json or including it in allowDefaultProject.`,i=r.projectService?.allowDefaultProject;if(!i)throw Error(t);let a=o.default.relative(r.tsconfigRootDir,n);throw Error([t,`allowDefaultProject is set to ${JSON.stringify(i)}, which does not match '${a}'.`].join("\n"))}}if(!s.configFileName&&(e.add(n),e.size>i.maximumDefaultProjectFileMatchCount)){let t=[...e].slice(0,20),n=e.size-t.length;throw Error(`Too many files (>${i.maximumDefaultProjectFileMatchCount}) have matched the default project.${d.DEFAULT_PROJECT_FILES_ERROR_EXPLANATION}
|
|
392
|
+
`,Tg)}var Ty={};function Tv(){if(i5)return Ty;i5=1,Object.defineProperty(Ty,"__esModule",{value:!0}),Ty.addCandidateTSConfigRootDir=function(t){e.add(t)},Ty.clearCandidateTSConfigRootDirs=function(){e.clear()},Ty.getInferredTSConfigRootDir=function(){let t=[...e];switch(t.length){case 0:return process.cwd();case 1:return t[0];default:throw Error(["No tsconfigRootDir was set, and multiple candidate TSConfigRootDirs are present:",...t.map(e=>` - ${e}`),"You'll need to explicitly set tsconfigRootDir in your parser options.","See: https://typescript-eslint.io/packages/parser/#tsconfigrootdir"].join("\n"))}};let e=new Set;return Ty}var Tb={};function TT(){if(i7)return Tb;i7=1,Object.defineProperty(Tb,"__esModule",{value:!0}),Tb.ExpiringCache=Tb.DEFAULT_TSCONFIG_CACHE_DURATION_SECONDS=void 0,Tb.DEFAULT_TSCONFIG_CACHE_DURATION_SECONDS=30;let e=[0,0];return Tb.ExpiringCache=class{#$;#W=new Map;constructor(e){this.#$=e}clear(){this.#W.clear()}get(e){let t=this.#W.get(e);if(t?.value!=null){if("Infinity"===this.#$||process.hrtime(t.lastSeen)[0]<this.#$)return t.value;this.#W.delete(e)}}set(t,n){return this.#W.set(t,{lastSeen:"Infinity"===this.#$?e:process.hrtime(),value:n}),this}},Tb}var TS={},Tx={},TE={},Tk={},TP={},TC={},Tw={},TA={},TD={},TN={};function TF(){if(al)return as;al=1;var e=ao?aa:(ao=1,aa=function(e){var t;if("string"!=typeof e||""===e)return!1;for(;t=/(\\).|([@?!+*]\(.*\))/g.exec(e);){if(t[2])return!0;e=e.slice(t.index+t[0].length)}return!1}),t={"{":"}","(":")","[":"]"},n=function(e){if("!"===e[0])return!0;for(var n=0,r=-2,i=-2,a=-2,o=-2,s=-2;n<e.length;){if("*"===e[n]||"?"===e[n+1]&&/[\].+)]/.test(e[n])||-1!==i&&"["===e[n]&&"]"!==e[n+1]&&(i<n&&(i=e.indexOf("]",n)),i>n)&&(-1===s||s>i||-1===(s=e.indexOf("\\",n))||s>i)||-1!==a&&"{"===e[n]&&"}"!==e[n+1]&&(a=e.indexOf("}",n))>n&&(-1===(s=e.indexOf("\\",n))||s>a)||-1!==o&&"("===e[n]&&"?"===e[n+1]&&/[:!=]/.test(e[n+2])&&")"!==e[n+3]&&(o=e.indexOf(")",n))>n&&(-1===(s=e.indexOf("\\",n))||s>o)||-1!==r&&"("===e[n]&&"|"!==e[n+1]&&(r<n&&(r=e.indexOf("|",n)),-1!==r&&")"!==e[r+1]&&(o=e.indexOf(")",r))>r)&&(-1===(s=e.indexOf("\\",r))||s>o))return!0;if("\\"===e[n]){var l=e[n+1];n+=2;var c=t[l];if(c){var u=e.indexOf(c,n);-1!==u&&(n=u+1)}if("!"===e[n])return!0}else n++}return!1},r=function(e){if("!"===e[0])return!0;for(var n=0;n<e.length;){if(/[*?{}()[\]]/.test(e[n]))return!0;if("\\"===e[n]){var r=e[n+1];n+=2;var i=t[r];if(i){var a=e.indexOf(i,n);-1!==a&&(n=a+1)}if("!"===e[n])return!0}else n++}return!1};return as=function(t,i){if("string"!=typeof t||""===t)return!1;if(e(t))return!0;var a=n;return i&&!1===i.strict&&(a=r),a(t)}}var TO={};function TI(){return a_?TO:(a_=1,TO.isInteger=e=>"number"==typeof e?Number.isInteger(e):"string"==typeof e&&""!==e.trim()&&Number.isInteger(Number(e)),TO.find=(e,t)=>e.nodes.find(e=>e.type===t),TO.exceedsLimit=(e,t,n=1,r)=>!1!==r&&!!TO.isInteger(e)&&!!TO.isInteger(t)&&(Number(t)-Number(e))/Number(n)>=r,TO.escapeNode=(e,t=0,n)=>{let r=e.nodes[t];r&&(n&&r.type===n||"open"===r.type||"close"===r.type)&&!0!==r.escaped&&(r.value="\\"+r.value,r.escaped=!0)},TO.encloseBrace=e=>"brace"===e.type&&e.commas>>0+e.ranges==0&&(e.invalid=!0,!0),TO.isInvalidBrace=e=>"brace"===e.type&&(!0===e.invalid||!!e.dollar||(e.commas>>0+e.ranges==0||!0!==e.open||!0!==e.close)&&(e.invalid=!0,!0)),TO.isOpenOrClose=e=>"open"===e.type||"close"===e.type||!0===e.open||!0===e.close,TO.reduce=e=>e.reduce((e,t)=>("text"===t.type&&e.push(t.value),"range"===t.type&&(t.type="text"),e),[]),TO.flatten=(...e)=>{let t=[],n=e=>{for(let r=0;r<e.length;r++){let i=e[r];if(Array.isArray(i)){n(i);continue}void 0!==i&&t.push(i)}return t};return n(e),t},TO)}function TL(){if(ap)return ad;ap=1;let e=TI();return ad=(t,n={})=>{let r=(t,i={})=>{let a=n.escapeInvalid&&e.isInvalidBrace(i),o=!0===t.invalid&&!0===n.escapeInvalid,s="";if(t.value)return(a||o)&&e.isOpenOrClose(t)?"\\"+t.value:t.value;if(t.value)return t.value;if(t.nodes)for(let e of t.nodes)s+=r(e);return s};return r(t)}}function TM(){if(av)return ay;av=1;let e=function(){if(ah)return ag;ah=1;let e=am?af:(am=1,af=function(e){return"number"==typeof e?e-e==0:"string"==typeof e&&""!==e.trim()&&(Number.isFinite?Number.isFinite(+e):isFinite(+e))}),t=(i,a,o)=>{var s,l;let u,_,d;if(!1===e(i))throw TypeError("toRegexRange: expected the first argument to be a number");if(void 0===a||i===a)return String(i);if(!1===e(a))throw TypeError("toRegexRange: expected the second argument to be a number.");let p={relaxZeros:!0,...o};"boolean"==typeof p.strictZeros&&(p.relaxZeros=!1===p.strictZeros);let f=i+":"+a+"="+String(p.relaxZeros)+String(p.shorthand)+String(p.capture)+String(p.wrap);if(t.cache.hasOwnProperty(f))return t.cache[f].result;let m=Math.min(i,a),g=Math.max(i,a);if(1===Math.abs(m-g)){let e=i+"|"+a;return p.capture?`(${e})`:!1===p.wrap?e:`(?:${e})`}let h=c(i)||c(a),y={min:i,max:a,a:m,b:g},b=[],T=[];return h&&(y.isPadded=h,y.maxLen=String(y.max).length),m<0&&(T=n(g<0?Math.abs(g):1,Math.abs(m),y,p),m=y.a=0),g>=0&&(b=n(m,g,y,p)),y.negatives=T,y.positives=b,u=r(s=T,l=b,"-",!1)||[],_=r(l,s,"",!1)||[],d=r(s,l,"-?",!0)||[],y.result=u.concat(d).concat(_).join("|"),!0===p.capture?y.result=`(${y.result})`:!1!==p.wrap&&b.length+T.length>1&&(y.result=`(?:${y.result})`),t.cache[f]=y,y.result};function n(e,t,n,r){let a,c=function(e,t){let n=1,r=1,a=o(e,1),l=new Set([t]);for(;e<=a&&a<=t;)l.add(a),n+=1,a=o(e,n);for(a=s(t+1,r)-1;e<a&&a<=t;)l.add(a),r+=1,a=s(t+1,r)-1;return(l=[...l]).sort(i),l}(e,t),u=[],_=e;for(let e=0;e<c.length;e++){let t=c[e],i=function(e,t,n){if(e===t)return{pattern:e,count:[],digits:0};let r=function(e,t){let n=[];for(let r=0;r<e.length;r++)n.push([e[r],t[r]]);return n}(e,t),i=r.length,a="",o=0;for(let e=0;e<i;e++){var s,l;let[t,n]=r[e];t===n?a+=t:"0"!==t||"9"!==n?a+=(s=t,l=n,`[${s}${l-s==1?"":"-"}${l}]`):o++}return o&&(a+=!0===n.shorthand?"\\d":"[0-9]"),{pattern:a,count:[o],digits:i}}(String(_),String(t),r),o="";if(!n.isPadded&&a&&a.pattern===i.pattern){a.count.length>1&&a.count.pop(),a.count.push(i.count[0]),a.string=a.pattern+l(a.count),_=t+1;continue}n.isPadded&&(o=function(e,t,n){if(!t.isPadded)return e;let r=Math.abs(t.maxLen-String(e).length),i=!1!==n.relaxZeros;switch(r){case 0:return"";case 1:return i?"0?":"0";case 2:return i?"0{0,2}":"00";default:return i?`0{0,${r}}`:`0{${r}}`}}(t,n,r)),i.string=o+i.pattern+l(i.count),u.push(i),_=t+1,a=i}return u}function r(e,t,n,r,i){let o=[];for(let i of e){let{string:e}=i;r||a(t,"string",e)||o.push(n+e),r&&a(t,"string",e)&&o.push(n+e)}return o}function i(e,t){return e>t?1:t>e?-1:0}function a(e,t,n){return e.some(e=>e[t]===n)}function o(e,t){return Number(String(e).slice(0,-t)+"9".repeat(t))}function s(e,t){return e-e%Math.pow(10,t)}function l(e){let[t=0,n=""]=e;return n||t>1?`{${t+(n?","+n:"")}}`:""}function c(e){return/^-?(0+)\d/.test(e)}return t.cache={},t.clearCache=()=>t.cache={},ag=t}(),t=e=>null!==e&&"object"==typeof e&&!Array.isArray(e),n=e=>"number"==typeof e||"string"==typeof e&&""!==e,r=e=>{let t=`${e}`,n=-1;if("-"===t[0]&&(t=t.slice(1)),"0"===t)return!1;for(;"0"===t[++n];);return n>0},i=(e,t,n)=>{if(t>0){let n="-"===e[0]?"-":"";n&&(e=e.slice(1)),e=n+e.padStart(n?t-1:t,"0")}return!1===n?String(e):e},a=(e,t)=>{let n="-"===e[0]?"-":"";for(n&&(e=e.slice(1),t--);e.length<t;)e="0"+e;return n?"-"+e:e},o=(t,n,r,i)=>{if(r)return e(t,n,{wrap:!1,...i});let a=String.fromCharCode(t);if(t===n)return a;let o=String.fromCharCode(n);return`[${a}-${o}]`},s=(t,n,r)=>{if(Array.isArray(t)){let e=!0===r.wrap,n=r.capture?"":"?:";return e?`(${n}${t.join("|")})`:t.join("|")}return e(t,n,r)},l=(...e)=>RangeError("Invalid range arguments: "+ba.inspect(...e)),c=(e,t,n)=>{if(!0===n.strictRanges)throw l([e,t]);return[]},u=(e,_,d,p={})=>{if(null==_&&n(e))return[e];if(!n(e)||!n(_))return c(e,_,p);if("function"==typeof d)return u(e,_,1,{transform:d});if(t(d))return u(e,_,0,d);let f={...p};if(!0===f.capture&&(f.wrap=!0),!Number.isInteger(+(d=d||f.step||1))){if(null!=d&&!t(d)){var m=d;if(!0===f.strictRanges)throw TypeError(`Expected step "${m}" to be a number`);return[]}return u(e,_,1,d)}return Number.isInteger(+e)&&Number.isInteger(+_)?((e,t,n=1,c={})=>{let u=Number(e),_=Number(t);if(!Number.isInteger(u)||!Number.isInteger(_)){if(!0===c.strictRanges)throw l([e,t]);return[]}0===u&&(u=0),0===_&&(_=0);let d=u>_,p=String(e),f=String(t),m=String(n);n=Math.max(Math.abs(n),1);let g=r(p)||r(f)||r(m),h=g?Math.max(p.length,f.length,m.length):0,y=!1===g&&!1==("string"==typeof e||"string"==typeof t||!0===c.stringify),b=c.transform||(e=>!0===y?Number(e):String(e));if(c.toRegex&&1===n)return o(a(e,h),a(t,h),!0,c);let T={negatives:[],positives:[]},S=e=>T[e<0?"negatives":"positives"].push(Math.abs(e)),x=[],E=0;for(;d?u>=_:u<=_;)!0===c.toRegex&&n>1?S(u):x.push(i(b(u,E),h,y)),u=d?u-n:u+n,E++;if(!0===c.toRegex){let e,t,r,i;return n>1?(T.negatives.sort((e,t)=>e<t?-1:+(e>t)),T.positives.sort((e,t)=>e<t?-1:+(e>t)),t=c.capture?"":"?:",r="",i="",(T.positives.length&&(r=T.positives.map(e=>a(String(e),h)).join("|")),T.negatives.length&&(i=`-(${t}${T.negatives.map(e=>a(String(e),h)).join("|")})`),e=r&&i?`${r}|${i}`:r||i,c.wrap)?`(${t}${e})`:e):s(x,null,{wrap:!1,...c})}return x})(e,_,d,f):((e,t,n=1,r={})=>{if(!Number.isInteger(+e)&&e.length>1||!Number.isInteger(+t)&&t.length>1)return c(e,t,r);let i=r.transform||(e=>String.fromCharCode(e)),a=`${e}`.charCodeAt(0),l=`${t}`.charCodeAt(0),u=a>l,_=Math.min(a,l),d=Math.max(a,l);if(r.toRegex&&1===n)return o(_,d,!1,r);let p=[],f=0;for(;u?a>=l:a<=l;)p.push(i(a,f)),a=u?a-n:a+n,f++;return!0===r.toRegex?s(p,null,{wrap:!1,options:r}):p})(e,_,Math.max(Math.abs(d),1),f)};return ay=u}var TR={};function Tj(){if(aN)return aD;aN=1;let e="[^\\\\/]",t="[^/]",n="(?:\\/|$)",r="(?:^|\\/)",i=`\\.{1,2}${n}`,a=`(?!${r}${i})`,o=`(?!\\.{0,1}${n})`,s=`(?!${i})`,l=`${t}*?`,c={DOT_LITERAL:"\\.",PLUS_LITERAL:"\\+",QMARK_LITERAL:"\\?",SLASH_LITERAL:"\\/",ONE_CHAR:"(?=.)",QMARK:t,END_ANCHOR:n,DOTS_SLASH:i,NO_DOT:"(?!\\.)",NO_DOTS:a,NO_DOT_SLASH:o,NO_DOTS_SLASH:s,QMARK_NO_DOT:"[^.\\/]",STAR:l,START_ANCHOR:r},u={...c,SLASH_LITERAL:"[\\\\/]",QMARK:e,STAR:`${e}*?`,DOTS_SLASH:"\\.{1,2}(?:[\\\\/]|$)",NO_DOT:"(?!\\.)",NO_DOTS:"(?!(?:^|[\\\\/])\\.{1,2}(?:[\\\\/]|$))",NO_DOT_SLASH:"(?!\\.{0,1}(?:[\\\\/]|$))",NO_DOTS_SLASH:"(?!\\.{1,2}(?:[\\\\/]|$))",QMARK_NO_DOT:"[^.\\\\/]",START_ANCHOR:"(?:^|[\\\\/])",END_ANCHOR:"(?:[\\\\/]|$)"};return aD={MAX_LENGTH:65536,POSIX_REGEX_SOURCE:{alnum:"a-zA-Z0-9",alpha:"a-zA-Z",ascii:"\\x00-\\x7F",blank:" \\t",cntrl:"\\x00-\\x1F\\x7F",digit:"0-9",graph:"\\x21-\\x7E",lower:"a-z",print:"\\x20-\\x7E ",punct:"\\-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~",space:" \\t\\r\\n\\v\\f",upper:"A-Z",word:"A-Za-z0-9_",xdigit:"A-Fa-f0-9"},REGEX_BACKSLASH:/\\(?![*+?^${}(|)[\]])/g,REGEX_NON_SPECIAL_CHARS:/^[^@![\].,$*+?^{}()|\\/]+/,REGEX_SPECIAL_CHARS:/[-*+?.^${}(|)[\]]/,REGEX_SPECIAL_CHARS_BACKREF:/(\\?)((\W)(\3*))/g,REGEX_SPECIAL_CHARS_GLOBAL:/([-*+?.^${}(|)[\]])/g,REGEX_REMOVE_BACKSLASH:/(?:\[.*?[^\\]\]|\\(?=.))/g,REPLACEMENTS:{"***":"*","**/**":"**","**/**/**":"**"},CHAR_0:48,CHAR_9:57,CHAR_UPPERCASE_A:65,CHAR_LOWERCASE_A:97,CHAR_UPPERCASE_Z:90,CHAR_LOWERCASE_Z:122,CHAR_LEFT_PARENTHESES:40,CHAR_RIGHT_PARENTHESES:41,CHAR_ASTERISK:42,CHAR_AMPERSAND:38,CHAR_AT:64,CHAR_BACKWARD_SLASH:92,CHAR_CARRIAGE_RETURN:13,CHAR_CIRCUMFLEX_ACCENT:94,CHAR_COLON:58,CHAR_COMMA:44,CHAR_DOT:46,CHAR_DOUBLE_QUOTE:34,CHAR_EQUAL:61,CHAR_EXCLAMATION_MARK:33,CHAR_FORM_FEED:12,CHAR_FORWARD_SLASH:47,CHAR_GRAVE_ACCENT:96,CHAR_HASH:35,CHAR_HYPHEN_MINUS:45,CHAR_LEFT_ANGLE_BRACKET:60,CHAR_LEFT_CURLY_BRACE:123,CHAR_LEFT_SQUARE_BRACKET:91,CHAR_LINE_FEED:10,CHAR_NO_BREAK_SPACE:160,CHAR_PERCENT:37,CHAR_PLUS:43,CHAR_QUESTION_MARK:63,CHAR_RIGHT_ANGLE_BRACKET:62,CHAR_RIGHT_CURLY_BRACE:125,CHAR_RIGHT_SQUARE_BRACKET:93,CHAR_SEMICOLON:59,CHAR_SINGLE_QUOTE:39,CHAR_SPACE:32,CHAR_TAB:9,CHAR_UNDERSCORE:95,CHAR_VERTICAL_LINE:124,CHAR_ZERO_WIDTH_NOBREAK_SPACE:65279,SEP:h6.sep,extglobChars:e=>({"!":{type:"negate",open:"(?:(?!(?:",close:`))${e.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}),globChars:e=>!0===e?u:c}}function TY(){return aF||(aF=1,!function(e){let t="win32"===process.platform,{REGEX_BACKSLASH:n,REGEX_REMOVE_BACKSLASH:r,REGEX_SPECIAL_CHARS:i,REGEX_SPECIAL_CHARS_GLOBAL:a}=Tj();e.isObject=e=>null!==e&&"object"==typeof e&&!Array.isArray(e),e.hasRegexChars=e=>i.test(e),e.isRegexChar=t=>1===t.length&&e.hasRegexChars(t),e.escapeRegex=e=>e.replace(a,"\\$1"),e.toPosixSlashes=e=>e.replace(n,"/"),e.removeBackslashes=e=>e.replace(r,e=>"\\"===e?"":e),e.supportsLookbehinds=()=>{let e=process.version.slice(1).split(".").map(Number);return 3===e.length&&!!(e[0]>=9)||8===e[0]&&!!(e[1]>=10)},e.isWindows=e=>e&&"boolean"==typeof e.windows?e.windows:!0===t||"\\"===h6.sep,e.escapeLast=(t,n,r)=>{let i=t.lastIndexOf(n,r);return -1===i?t:"\\"===t[i-1]?e.escapeLast(t,n,i-1):`${t.slice(0,i)}\\${t.slice(i)}`},e.removePrefix=(e,t={})=>{let n=e;return n.startsWith("./")&&(n=n.slice(2),t.prefix="./"),n},e.wrapOutput=(e,t={},n={})=>{let r=n.contains?"":"^",i=n.contains?"":"$",a=`${r}(?:${e})${i}`;return!0===t.negated&&(a=`(?:^(?!${a}).*$)`),a}}(TR)),TR}var TU={},TB=s2(sQ),TV={};function TJ(){return aK||(aK=1,Object.defineProperty(TP,"__esModule",{value:!0}),TP.string=TP.stream=TP.pattern=TP.path=TP.fs=TP.errno=TP.array=void 0,at||(at=1,Object.defineProperty(TC,"__esModule",{value:!0}),TC.splitWhen=TC.flatten=void 0,TC.flatten=function(e){return e.reduce((e,t)=>[].concat(e,t),[])},TC.splitWhen=function(e,t){let n=[[]],r=0;for(let i of e)t(i)?n[++r]=[]:n[r].push(i);return n}),TP.array=TC,an||(an=1,Object.defineProperty(Tw,"__esModule",{value:!0}),Tw.isEnoentCodeError=void 0,Tw.isEnoentCodeError=function(e){return"ENOENT"===e.code}),TP.errno=Tw,TP.fs=function(){if(ar)return TA;ar=1,Object.defineProperty(TA,"__esModule",{value:!0}),TA.createDirentFromStats=void 0;class e{constructor(e,t){this.name=e,this.isBlockDevice=t.isBlockDevice.bind(t),this.isCharacterDevice=t.isCharacterDevice.bind(t),this.isDirectory=t.isDirectory.bind(t),this.isFIFO=t.isFIFO.bind(t),this.isFile=t.isFile.bind(t),this.isSocket=t.isSocket.bind(t),this.isSymbolicLink=t.isSymbolicLink.bind(t)}}return TA.createDirentFromStats=function(t,n){return new e(t,n)},TA}(),TP.path=function(){if(ai)return TD;ai=1,Object.defineProperty(TD,"__esModule",{value:!0}),TD.convertPosixPathToPattern=TD.convertWindowsPathToPattern=TD.convertPathToPattern=TD.escapePosixPath=TD.escapeWindowsPath=TD.escape=TD.removeLeadingDotSegment=TD.makeAbsolute=TD.unixify=void 0;let e="win32"===h4.platform(),t=/(\\?)([()*?[\]{|}]|^!|[!+@](?=\()|\\(?![!()*+?@[\]{|}]))/g,n=/(\\?)([()[\]{}]|^!|[!+@](?=\())/g,r=/^\\\\([.?])/,i=/\\(?![!()+@[\]{}])/g;function a(e){return e.replace(n,"\\$2")}function o(e){return e.replace(t,"\\$2")}function s(e){return a(e).replace(r,"//$1").replace(i,"/")}function l(e){return o(e)}return TD.unixify=function(e){return e.replace(/\\/g,"/")},TD.makeAbsolute=function(e,t){return h6.resolve(e,t)},TD.removeLeadingDotSegment=function(e){if("."===e.charAt(0)){let t=e.charAt(1);if("/"===t||"\\"===t)return e.slice(2)}return e},TD.escape=e?a:o,TD.escapeWindowsPath=a,TD.escapePosixPath=o,TD.convertPathToPattern=e?s:l,TD.convertWindowsPathToPattern=s,TD.convertPosixPathToPattern=l,TD}(),TP.pattern=function(){if(aJ)return TN;aJ=1,Object.defineProperty(TN,"__esModule",{value:!0}),TN.isAbsolute=TN.partitionAbsoluteAndRelative=TN.removeDuplicateSlashes=TN.matchAny=TN.convertPatternsToRe=TN.makeRe=TN.getPatternParts=TN.expandBraceExpansion=TN.expandPatternsWithBraceExpansion=TN.isAffectDepthOfReadingPattern=TN.endsWithSlashGlobStar=TN.hasGlobStar=TN.getBaseDirectory=TN.isPatternRelatedToParentDirectory=TN.getPatternsOutsideCurrentDirectory=TN.getPatternsInsideCurrentDirectory=TN.getPositivePatterns=TN.getNegativePatterns=TN.isPositivePattern=TN.isNegativePattern=TN.convertToNegativePattern=TN.convertToPositivePattern=TN.isDynamicPattern=TN.isStaticPattern=void 0;let e=function(){if(au)return ac;au=1;var e=TF(),t=h6.posix.dirname,n="win32"===h4.platform(),r=/\\/g,i=/[\{\[].*[\}\]]$/,a=/(^|[^\\])([\{\[]|\([^\)]+$)/,o=/\\([\!\*\?\|\[\]\(\)\{\}])/g;return ac=function(s,l){Object.assign({flipBackslashes:!0},l).flipBackslashes&&n&&0>s.indexOf("/")&&(s=s.replace(r,"/")),i.test(s)&&(s+="/"),s+="a";do s=t(s);while(e(s)||a.test(s));return s.replace(o,"$1")}}(),t=function(){if(aV)return aB;aV=1;let e=function(){if(aA)return aw;aA=1;let e=TL(),t=function(){if(aT)return ab;aT=1;let e=TM(),t=TI();return ab=(n,r={})=>{let i=(n,a={})=>{let o=t.isInvalidBrace(a),s=!0===n.invalid&&!0===r.escapeInvalid,l=!0===o||!0===s,c=!0===r.escapeInvalid?"\\":"",u="";if(!0===n.isOpen)return c+n.value;if(!0===n.isClose)return console.log("node.isClose",c,n.value),c+n.value;if("open"===n.type)return l?c+n.value:"(";if("close"===n.type)return l?c+n.value:")";if("comma"===n.type)return"comma"===n.prev.type?"":l?n.value:"|";if(n.value)return n.value;if(n.nodes&&n.ranges>0){let i=t.reduce(n.nodes),a=e(...i,{...r,wrap:!1,toRegex:!0,strictZeros:!0});if(0!==a.length)return i.length>1&&a.length>1?`(${a})`:a}if(n.nodes)for(let e of n.nodes)u+=i(e,n);return u};return i(n)}}(),n=function(){if(ax)return aS;ax=1;let e=TM(),t=TL(),n=TI(),r=(e="",t="",i=!1)=>{let a=[];if(e=[].concat(e),!(t=[].concat(t)).length)return e;if(!e.length)return i?n.flatten(t).map(e=>`{${e}}`):t;for(let n of e)if(Array.isArray(n))for(let e of n)a.push(r(e,t,i));else for(let e of t)!0===i&&"string"==typeof e&&(e=`{${e}}`),a.push(Array.isArray(e)?r(n,e,i):n+e);return n.flatten(a)};return aS=(i,a={})=>{let o=void 0===a.rangeLimit?1e3:a.rangeLimit,s=(i,l={})=>{i.queue=[];let c=l,u=l.queue;for(;"brace"!==c.type&&"root"!==c.type&&c.parent;)u=(c=c.parent).queue;if(i.invalid||i.dollar)return void u.push(r(u.pop(),t(i,a)));if("brace"===i.type&&!0!==i.invalid&&2===i.nodes.length)return void u.push(r(u.pop(),["{}"]));if(i.nodes&&i.ranges>0){let s=n.reduce(i.nodes);if(n.exceedsLimit(...s,a.step,o))throw RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.");let l=e(...s,a);0===l.length&&(l=t(i,a)),u.push(r(u.pop(),l)),i.nodes=[];return}let _=n.encloseBrace(i),d=i.queue,p=i;for(;"brace"!==p.type&&"root"!==p.type&&p.parent;)d=(p=p.parent).queue;for(let e=0;e<i.nodes.length;e++){let t=i.nodes[e];if("comma"===t.type&&"brace"===i.type){1===e&&d.push(""),d.push("");continue}if("close"===t.type){u.push(r(u.pop(),d,_));continue}if(t.value&&"open"!==t.type){d.push(r(d.pop(),t.value));continue}t.nodes&&s(t,i)}return d};return n.flatten(s(i))}}(),r=function(){if(aC)return aP;aC=1;let e=TL(),{MAX_LENGTH:t,CHAR_BACKSLASH:n,CHAR_BACKTICK:r,CHAR_COMMA:i,CHAR_DOT:a,CHAR_LEFT_PARENTHESES:o,CHAR_RIGHT_PARENTHESES:s,CHAR_LEFT_CURLY_BRACE:l,CHAR_RIGHT_CURLY_BRACE:c,CHAR_LEFT_SQUARE_BRACKET:u,CHAR_RIGHT_SQUARE_BRACKET:_,CHAR_DOUBLE_QUOTE:d,CHAR_SINGLE_QUOTE:p,CHAR_NO_BREAK_SPACE:f,CHAR_ZERO_WIDTH_NOBREAK_SPACE:m}=ak?aE:(ak=1,aE={MAX_LENGTH:1e4,CHAR_0:"0",CHAR_9:"9",CHAR_UPPERCASE_A:"A",CHAR_LOWERCASE_A:"a",CHAR_UPPERCASE_Z:"Z",CHAR_LOWERCASE_Z:"z",CHAR_LEFT_PARENTHESES:"(",CHAR_RIGHT_PARENTHESES:")",CHAR_ASTERISK:"*",CHAR_AMPERSAND:"&",CHAR_AT:"@",CHAR_BACKSLASH:"\\",CHAR_BACKTICK:"`",CHAR_CARRIAGE_RETURN:"\r",CHAR_CIRCUMFLEX_ACCENT:"^",CHAR_COLON:":",CHAR_COMMA:",",CHAR_DOLLAR:"$",CHAR_DOT:".",CHAR_DOUBLE_QUOTE:'"',CHAR_EQUAL:"=",CHAR_EXCLAMATION_MARK:"!",CHAR_FORM_FEED:"\f",CHAR_FORWARD_SLASH:"/",CHAR_HASH:"#",CHAR_HYPHEN_MINUS:"-",CHAR_LEFT_ANGLE_BRACKET:"<",CHAR_LEFT_CURLY_BRACE:"{",CHAR_LEFT_SQUARE_BRACKET:"[",CHAR_LINE_FEED:"\n",CHAR_NO_BREAK_SPACE:"\xa0",CHAR_PERCENT:"%",CHAR_PLUS:"+",CHAR_QUESTION_MARK:"?",CHAR_RIGHT_ANGLE_BRACKET:">",CHAR_RIGHT_CURLY_BRACE:"}",CHAR_RIGHT_SQUARE_BRACKET:"]",CHAR_SEMICOLON:";",CHAR_SINGLE_QUOTE:"'",CHAR_SPACE:" ",CHAR_TAB:" ",CHAR_UNDERSCORE:"_",CHAR_VERTICAL_LINE:"|",CHAR_ZERO_WIDTH_NOBREAK_SPACE:"\uFEFF"});return aP=(g,h={})=>{let y;if("string"!=typeof g)throw TypeError("Expected a string");let b=h||{},T="number"==typeof b.maxLength?Math.min(t,b.maxLength):t;if(g.length>T)throw SyntaxError(`Input length (${g.length}), exceeds max characters (${T})`);let S={type:"root",input:g,nodes:[]},x=[S],E=S,k=S,P=0,C=g.length,w=0,A=0,D=()=>g[w++],N=e=>{if("text"===e.type&&"dot"===k.type&&(k.type="text"),k&&"text"===k.type&&"text"===e.type){k.value+=e.value;return}return E.nodes.push(e),e.parent=E,e.prev=k,k=e,e};for(N({type:"bos"});w<C;)if(E=x[x.length-1],(y=D())!==m&&y!==f){if(y===n){N({type:"text",value:(h.keepEscaping?y:"")+D()});continue}if(y===_){N({type:"text",value:"\\"+y});continue}if(y===u){let e;for(P++;w<C&&(e=D());){if(y+=e,e===u){P++;continue}if(e===n){y+=D();continue}if(e===_&&0==--P)break}N({type:"text",value:y});continue}if(y===o){E=N({type:"paren",nodes:[]}),x.push(E),N({type:"text",value:y});continue}if(y===s){if("paren"!==E.type){N({type:"text",value:y});continue}E=x.pop(),N({type:"text",value:y}),E=x[x.length-1];continue}if(y===d||y===p||y===r){let e,t=y;for(!0!==h.keepQuotes&&(y="");w<C&&(e=D());){if(e===n){y+=e+D();continue}if(e===t){!0===h.keepQuotes&&(y+=e);break}y+=e}N({type:"text",value:y});continue}if(y===l){A++,E=N({type:"brace",open:!0,close:!1,dollar:k.value&&"$"===k.value.slice(-1)||!0===E.dollar,depth:A,commas:0,ranges:0,nodes:[]}),x.push(E),N({type:"open",value:y});continue}if(y===c){if("brace"!==E.type){N({type:"text",value:y});continue}(E=x.pop()).close=!0,N({type:"close",value:y}),A--,E=x[x.length-1];continue}if(y===i&&A>0){if(E.ranges>0){E.ranges=0;let t=E.nodes.shift();E.nodes=[t,{type:"text",value:e(E)}]}N({type:"comma",value:y}),E.commas++;continue}if(y===a&&A>0&&0===E.commas){let e=E.nodes;if(0===A||0===e.length){N({type:"text",value:y});continue}if("dot"===k.type){if(E.range=[],k.value+=y,k.type="range",3!==E.nodes.length&&5!==E.nodes.length){E.invalid=!0,E.ranges=0,k.type="text";continue}E.ranges++,E.args=[];continue}if("range"===k.type){e.pop();let t=e[e.length-1];t.value+=k.value+y,k=t,E.ranges--;continue}N({type:"dot",value:y});continue}N({type:"text",value:y})}do if("root"!==(E=x.pop()).type){E.nodes.forEach(e=>{e.nodes||("open"===e.type&&(e.isOpen=!0),"close"===e.type&&(e.isClose=!0),e.nodes||(e.type="text"),e.invalid=!0)});let e=x[x.length-1],t=e.nodes.indexOf(E);e.nodes.splice(t,1,...E.nodes)}while(x.length>0);return N({type:"eos"}),S}}(),i=(e,t={})=>{let n=[];if(Array.isArray(e))for(let r of e){let e=i.create(r,t);Array.isArray(e)?n.push(...e):n.push(e)}else n=[].concat(i.create(e,t));return t&&!0===t.expand&&!0===t.nodupes&&(n=[...new Set(n)]),n};return i.parse=(e,t={})=>r(e,t),i.stringify=(t,n={})=>"string"==typeof t?e(i.parse(t,n),n):e(t,n),i.compile=(e,n={})=>("string"==typeof e&&(e=i.parse(e,n)),t(e,n)),i.expand=(e,t={})=>{"string"==typeof e&&(e=i.parse(e,t));let r=n(e,t);return!0===t.noempty&&(r=r.filter(Boolean)),!0===t.nodupes&&(r=[...new Set(r)]),r},i.create=(e,t={})=>""===e||e.length<3?[e]:!0!==t.expand?i.compile(e,t):i.expand(e,t),aw=i}(),t=aU?aY:(aU=1,aY=function(){if(aj)return aR;aj=1;let e=function(){if(aI)return aO;aI=1;let e=TY(),{CHAR_ASTERISK:t,CHAR_AT:n,CHAR_BACKWARD_SLASH:r,CHAR_COMMA:i,CHAR_DOT:a,CHAR_EXCLAMATION_MARK:o,CHAR_FORWARD_SLASH:s,CHAR_LEFT_CURLY_BRACE:l,CHAR_LEFT_PARENTHESES:c,CHAR_LEFT_SQUARE_BRACKET:u,CHAR_PLUS:_,CHAR_QUESTION_MARK:d,CHAR_RIGHT_CURLY_BRACE:p,CHAR_RIGHT_PARENTHESES:f,CHAR_RIGHT_SQUARE_BRACKET:m}=Tj(),g=e=>e===s||e===r,h=e=>{!0!==e.isPrefix&&(e.depth=e.isGlobstar?1/0:1)};return aO=(y,b)=>{let T,S,x=b||{},E=y.length-1,k=!0===x.parts||!0===x.scanToEnd,P=[],C=[],w=[],A=y,D=-1,N=0,F=0,O=!1,I=!1,L=!1,M=!1,R=!1,j=!1,Y=!1,U=!1,B=!1,V=!1,J=0,z={value:"",depth:0,isGlob:!1},q=()=>D>=E,$=()=>A.charCodeAt(D+1),W=()=>(T=S,A.charCodeAt(++D));for(;D<E;){let e;if((S=W())===r){Y=z.backslashes=!0,(S=W())===l&&(j=!0);continue}if(!0===j||S===l){for(J++;!0!==q()&&(S=W());){if(S===r){Y=z.backslashes=!0,W();continue}if(S===l){J++;continue}if(!0!==j&&S===a&&(S=W())===a||!0!==j&&S===i){if(O=z.isBrace=!0,L=z.isGlob=!0,V=!0,!0===k)continue;break}if(S===p&&0==--J){j=!1,O=z.isBrace=!0,V=!0;break}}if(!0===k)continue;break}if(S===s){if(P.push(D),C.push(z),z={value:"",depth:0,isGlob:!1},!0===V)continue;if(T===a&&D===N+1){N+=2;continue}F=D+1;continue}if(!0!==x.noext&&!0==(S===_||S===n||S===t||S===d||S===o)&&$()===c){if(L=z.isGlob=!0,M=z.isExtglob=!0,V=!0,S===o&&D===N&&(B=!0),!0===k){for(;!0!==q()&&(S=W());){if(S===r){Y=z.backslashes=!0,S=W();continue}if(S===f){L=z.isGlob=!0,V=!0;break}}continue}break}if(S===t){if(T===t&&(R=z.isGlobstar=!0),L=z.isGlob=!0,V=!0,!0===k)continue;break}if(S===d){if(L=z.isGlob=!0,V=!0,!0===k)continue;break}if(S===u){for(;!0!==q()&&(e=W());){if(e===r){Y=z.backslashes=!0,W();continue}if(e===m){I=z.isBracket=!0,L=z.isGlob=!0,V=!0;break}}if(!0===k)continue;break}if(!0!==x.nonegate&&S===o&&D===N){U=z.negated=!0,N++;continue}if(!0!==x.noparen&&S===c){if(L=z.isGlob=!0,!0===k){for(;!0!==q()&&(S=W());){if(S===c){Y=z.backslashes=!0,S=W();continue}if(S===f){V=!0;break}}continue}break}if(!0===L){if(V=!0,!0===k)continue;break}}!0===x.noext&&(M=!1,L=!1);let K=A,H="",G="";N>0&&(H=A.slice(0,N),A=A.slice(N),F-=N),K&&!0===L&&F>0?(K=A.slice(0,F),G=A.slice(F)):!0===L?(K="",G=A):K=A,K&&""!==K&&"/"!==K&&K!==A&&g(K.charCodeAt(K.length-1))&&(K=K.slice(0,-1)),!0===x.unescape&&(G&&(G=e.removeBackslashes(G)),K&&!0===Y&&(K=e.removeBackslashes(K)));let X={prefix:H,input:y,start:N,base:K,glob:G,isBrace:O,isBracket:I,isGlob:L,isExtglob:M,isGlobstar:R,negated:U,negatedExtglob:B};if(!0===x.tokens&&(X.maxDepth=0,g(S)||C.push(z),X.tokens=C),!0===x.parts||!0===x.tokens){let e;for(let t=0;t<P.length;t++){let n=e?e+1:N,r=P[t],i=y.slice(n,r);x.tokens&&(0===t&&0!==N?(C[t].isPrefix=!0,C[t].value=H):C[t].value=i,h(C[t]),X.maxDepth+=C[t].depth),(0!==t||""!==i)&&w.push(i),e=r}if(e&&e+1<y.length){let t=y.slice(e+1);w.push(t),x.tokens&&(C[C.length-1].value=t,h(C[C.length-1]),X.maxDepth+=C[C.length-1].depth)}X.slashes=P,X.parts=w}return X}}(),t=function(){if(aM)return aL;aM=1;let e=Tj(),t=TY(),{MAX_LENGTH:n,POSIX_REGEX_SOURCE:r,REGEX_NON_SPECIAL_CHARS:i,REGEX_SPECIAL_CHARS_BACKREF:a,REPLACEMENTS:o}=e,s=(e,n)=>{if("function"==typeof n.expandRange)return n.expandRange(...e,n);e.sort();let r=`[${e.join("-")}]`;try{new RegExp(r)}catch(n){return e.map(e=>t.escapeRegex(e)).join("..")}return r},l=(e,t)=>`Missing ${e}: "${t}" - use "\\\\${t}" to match literal characters`,c=(u,_)=>{let d;if("string"!=typeof u)throw TypeError("Expected a string");u=o[u]||u;let p={..._},f="number"==typeof p.maxLength?Math.min(n,p.maxLength):n,m=u.length;if(m>f)throw SyntaxError(`Input length: ${m}, exceeds maximum allowed length: ${f}`);let g={type:"bos",value:"",output:p.prepend||""},h=[g],y=p.capture?"":"?:",b=t.isWindows(_),T=e.globChars(b),S=e.extglobChars(T),{DOT_LITERAL:x,PLUS_LITERAL:E,SLASH_LITERAL:k,ONE_CHAR:P,DOTS_SLASH:C,NO_DOT:w,NO_DOT_SLASH:A,NO_DOTS_SLASH:D,QMARK:N,QMARK_NO_DOT:F,STAR:O,START_ANCHOR:I}=T,L=e=>`(${y}(?:(?!${I}${e.dot?C:x}).)*?)`,M=p.dot?"":w,R=p.dot?N:F,j=!0===p.bash?L(p):O;p.capture&&(j=`(${j})`),"boolean"==typeof p.noext&&(p.noextglob=p.noext);let Y={input:u,index:-1,start:0,dot:!0===p.dot,consumed:"",output:"",prefix:"",backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:h};m=(u=t.removePrefix(u,Y)).length;let U=[],B=[],V=[],J=g,z=()=>Y.index===m-1,q=Y.peek=(e=1)=>u[Y.index+e],$=Y.advance=()=>u[++Y.index]||"",W=()=>u.slice(Y.index+1),K=(e="",t=0)=>{Y.consumed+=e,Y.index+=t},H=e=>{Y.output+=null!=e.output?e.output:e.value,K(e.value)},G=()=>{let e=1;for(;"!"===q()&&("("!==q(2)||"?"===q(3));)$(),Y.start++,e++;return e%2!=0&&(Y.negated=!0,Y.start++,!0)},X=e=>{Y[e]++,V.push(e)},Q=e=>{Y[e]--,V.pop()},Z=e=>{if("globstar"===J.type){let t=Y.braces>0&&("comma"===e.type||"brace"===e.type),n=!0===e.extglob||U.length&&("pipe"===e.type||"paren"===e.type);"slash"===e.type||"paren"===e.type||t||n||(Y.output=Y.output.slice(0,-J.output.length),J.type="star",J.value="*",J.output=j,Y.output+=J.output)}if(U.length&&"paren"!==e.type&&(U[U.length-1].inner+=e.value),(e.value||e.output)&&H(e),J&&"text"===J.type&&"text"===e.type){J.value+=e.value,J.output=(J.output||"")+e.value;return}e.prev=J,h.push(e),J=e},ee=(e,t)=>{let n={...S[t],conditions:1,inner:""};n.prev=J,n.parens=Y.parens,n.output=Y.output;let r=(p.capture?"(":"")+n.open;X("parens"),Z({type:e,value:t,output:Y.output?"":P}),Z({type:"paren",extglob:!0,value:$(),output:r}),U.push(n)},et=e=>{let t,n=e.close+(p.capture?")":"");if("negate"===e.type){let r=j;if(e.inner&&e.inner.length>1&&e.inner.includes("/")&&(r=L(p)),(r!==j||z()||/^\)+$/.test(W()))&&(n=e.close=`)$))${r}`),e.inner.includes("*")&&(t=W())&&/^\.[^\\/.]+$/.test(t)){let i=c(t,{..._,fastpaths:!1}).output;n=e.close=`)${i})${r})`}"bos"===e.prev.type&&(Y.negatedExtglob=!0)}Z({type:"paren",extglob:!0,value:d,output:n}),Q("parens")};if(!1!==p.fastpaths&&!/(^[*!]|[/()[\]{}"])/.test(u)){let e=!1,n=u.replace(a,(t,n,r,i,a,o)=>"\\"===i?(e=!0,t):"?"===i?n?n+i+(a?N.repeat(a.length):""):0===o?R+(a?N.repeat(a.length):""):N.repeat(r.length):"."===i?x.repeat(r.length):"*"===i?n?n+i+(a?j:""):j:n?t:`\\${t}`);return(!0===e&&(n=!0===p.unescape?n.replace(/\\/g,""):n.replace(/\\+/g,e=>e.length%2==0?"\\\\":e?"\\":"")),n===u&&!0===p.contains)?Y.output=u:Y.output=t.wrapOutput(n,Y,_),Y}for(;!z();){if("\0"===(d=$()))continue;if("\\"===d){let e=q();if("/"===e&&!0!==p.bash||"."===e||";"===e)continue;if(!e){Z({type:"text",value:d+="\\"});continue}let t=/^\\+/.exec(W()),n=0;if(t&&t[0].length>2&&(n=t[0].length,Y.index+=n,n%2!=0&&(d+="\\")),!0===p.unescape?d=$():d+=$(),0===Y.brackets){Z({type:"text",value:d});continue}}if(Y.brackets>0&&("]"!==d||"["===J.value||"[^"===J.value)){if(!1!==p.posix&&":"===d){let e=J.value.slice(1);if(e.includes("[")&&(J.posix=!0,e.includes(":"))){let e=J.value.lastIndexOf("["),t=J.value.slice(0,e),n=r[J.value.slice(e+2)];if(n){J.value=t+n,Y.backtrack=!0,$(),g.output||1!==h.indexOf(J)||(g.output=P);continue}}}("["===d&&":"!==q()||"-"===d&&"]"===q())&&(d=`\\${d}`),"]"===d&&("["===J.value||"[^"===J.value)&&(d=`\\${d}`),!0===p.posix&&"!"===d&&"["===J.value&&(d="^"),J.value+=d,H({value:d});continue}if(1===Y.quotes&&'"'!==d){d=t.escapeRegex(d),J.value+=d,H({value:d});continue}if('"'===d){Y.quotes=+(1!==Y.quotes),!0===p.keepQuotes&&Z({type:"text",value:d});continue}if("("===d){X("parens"),Z({type:"paren",value:d});continue}if(")"===d){if(0===Y.parens&&!0===p.strictBrackets)throw SyntaxError(l("opening","("));let e=U[U.length-1];if(e&&Y.parens===e.parens+1){et(U.pop());continue}Z({type:"paren",value:d,output:Y.parens?")":"\\)"}),Q("parens");continue}if("["===d){if(!0!==p.nobracket&&W().includes("]"))X("brackets");else{if(!0!==p.nobracket&&!0===p.strictBrackets)throw SyntaxError(l("closing","]"));d=`\\${d}`}Z({type:"bracket",value:d});continue}if("]"===d){if(!0===p.nobracket||J&&"bracket"===J.type&&1===J.value.length){Z({type:"text",value:d,output:`\\${d}`});continue}if(0===Y.brackets){if(!0===p.strictBrackets)throw SyntaxError(l("opening","["));Z({type:"text",value:d,output:`\\${d}`});continue}Q("brackets");let e=J.value.slice(1);if(!0===J.posix||"^"!==e[0]||e.includes("/")||(d=`/${d}`),J.value+=d,H({value:d}),!1===p.literalBrackets||t.hasRegexChars(e))continue;let n=t.escapeRegex(J.value);if(Y.output=Y.output.slice(0,-J.value.length),!0===p.literalBrackets){Y.output+=n,J.value=n;continue}J.value=`(${y}${n}|${J.value})`,Y.output+=J.value;continue}if("{"===d&&!0!==p.nobrace){X("braces");let e={type:"brace",value:d,output:"(",outputIndex:Y.output.length,tokensIndex:Y.tokens.length};B.push(e),Z(e);continue}if("}"===d){let e=B[B.length-1];if(!0===p.nobrace||!e){Z({type:"text",value:d,output:d});continue}let t=")";if(!0===e.dots){let e=h.slice(),n=[];for(let t=e.length-1;t>=0&&(h.pop(),"brace"!==e[t].type);t--)"dots"!==e[t].type&&n.unshift(e[t].value);t=s(n,p),Y.backtrack=!0}if(!0!==e.comma&&!0!==e.dots){let n=Y.output.slice(0,e.outputIndex),r=Y.tokens.slice(e.tokensIndex);for(let i of(e.value=e.output="\\{",d=t="\\}",Y.output=n,r))Y.output+=i.output||i.value}Z({type:"brace",value:d,output:t}),Q("braces"),B.pop();continue}if("|"===d){U.length>0&&U[U.length-1].conditions++,Z({type:"text",value:d});continue}if(","===d){let e=d,t=B[B.length-1];t&&"braces"===V[V.length-1]&&(t.comma=!0,e="|"),Z({type:"comma",value:d,output:e});continue}if("/"===d){if("dot"===J.type&&Y.index===Y.start+1){Y.start=Y.index+1,Y.consumed="",Y.output="",h.pop(),J=g;continue}Z({type:"slash",value:d,output:k});continue}if("."===d){if(Y.braces>0&&"dot"===J.type){"."===J.value&&(J.output=x);let e=B[B.length-1];J.type="dots",J.output+=d,J.value+=d,e.dots=!0;continue}if(Y.braces+Y.parens===0&&"bos"!==J.type&&"slash"!==J.type){Z({type:"text",value:d,output:x});continue}Z({type:"dot",value:d,output:x});continue}if("?"===d){if(!(J&&"("===J.value)&&!0!==p.noextglob&&"("===q()&&"?"!==q(2)){ee("qmark",d);continue}if(J&&"paren"===J.type){let e=q(),n=d;if("<"===e&&!t.supportsLookbehinds())throw Error("Node.js v10 or higher is required for regex lookbehinds");("("!==J.value||/[!=<:]/.test(e))&&("<"!==e||/<([!=]|\w+>)/.test(W()))||(n=`\\${d}`),Z({type:"text",value:d,output:n});continue}if(!0!==p.dot&&("slash"===J.type||"bos"===J.type)){Z({type:"qmark",value:d,output:F});continue}Z({type:"qmark",value:d,output:N});continue}if("!"===d){if(!0!==p.noextglob&&"("===q()&&("?"!==q(2)||!/[!=<:]/.test(q(3)))){ee("negate",d);continue}if(!0!==p.nonegate&&0===Y.index){G();continue}}if("+"===d){if(!0!==p.noextglob&&"("===q()&&"?"!==q(2)){ee("plus",d);continue}if(J&&"("===J.value||!1===p.regex){Z({type:"plus",value:d,output:E});continue}if(J&&("bracket"===J.type||"paren"===J.type||"brace"===J.type)||Y.parens>0){Z({type:"plus",value:d});continue}Z({type:"plus",value:E});continue}if("@"===d){if(!0!==p.noextglob&&"("===q()&&"?"!==q(2)){Z({type:"at",extglob:!0,value:d,output:""});continue}Z({type:"text",value:d});continue}if("*"!==d){("$"===d||"^"===d)&&(d=`\\${d}`);let e=i.exec(W());e&&(d+=e[0],Y.index+=e[0].length),Z({type:"text",value:d});continue}if(J&&("globstar"===J.type||!0===J.star)){J.type="star",J.star=!0,J.value+=d,J.output=j,Y.backtrack=!0,Y.globstar=!0,K(d);continue}let e=W();if(!0!==p.noextglob&&/^\([^?]/.test(e)){ee("star",d);continue}if("star"===J.type){if(!0===p.noglobstar){K(d);continue}let t=J.prev,n=t.prev,r="slash"===t.type||"bos"===t.type,i=n&&("star"===n.type||"globstar"===n.type);if(!0===p.bash&&(!r||e[0]&&"/"!==e[0])){Z({type:"star",value:d,output:""});continue}let a=Y.braces>0&&("comma"===t.type||"brace"===t.type),o=U.length&&("pipe"===t.type||"paren"===t.type);if(!r&&"paren"!==t.type&&!a&&!o){Z({type:"star",value:d,output:""});continue}for(;"/**"===e.slice(0,3);){let t=u[Y.index+4];if(t&&"/"!==t)break;e=e.slice(3),K("/**",3)}if("bos"===t.type&&z()){J.type="globstar",J.value+=d,J.output=L(p),Y.output=J.output,Y.globstar=!0,K(d);continue}if("slash"===t.type&&"bos"!==t.prev.type&&!i&&z()){Y.output=Y.output.slice(0,-(t.output+J.output).length),t.output=`(?:${t.output}`,J.type="globstar",J.output=L(p)+(p.strictSlashes?")":"|$)"),J.value+=d,Y.globstar=!0,Y.output+=t.output+J.output,K(d);continue}if("slash"===t.type&&"bos"!==t.prev.type&&"/"===e[0]){let n=void 0!==e[1]?"|$":"";Y.output=Y.output.slice(0,-(t.output+J.output).length),t.output=`(?:${t.output}`,J.type="globstar",J.output=`${L(p)}${k}|${k}${n})`,J.value+=d,Y.output+=t.output+J.output,Y.globstar=!0,K(d+$()),Z({type:"slash",value:"/",output:""});continue}if("bos"===t.type&&"/"===e[0]){J.type="globstar",J.value+=d,J.output=`(?:^|${k}|${L(p)}${k})`,Y.output=J.output,Y.globstar=!0,K(d+$()),Z({type:"slash",value:"/",output:""});continue}Y.output=Y.output.slice(0,-J.output.length),J.type="globstar",J.output=L(p),J.value+=d,Y.output+=J.output,Y.globstar=!0,K(d);continue}let n={type:"star",value:d,output:j};if(!0===p.bash){n.output=".*?",("bos"===J.type||"slash"===J.type)&&(n.output=M+n.output),Z(n);continue}if(J&&("bracket"===J.type||"paren"===J.type)&&!0===p.regex){n.output=d,Z(n);continue}(Y.index===Y.start||"slash"===J.type||"dot"===J.type)&&("dot"===J.type?(Y.output+=A,J.output+=A):!0===p.dot?(Y.output+=D,J.output+=D):(Y.output+=M,J.output+=M),"*"!==q()&&(Y.output+=P,J.output+=P)),Z(n)}for(;Y.brackets>0;){if(!0===p.strictBrackets)throw SyntaxError(l("closing","]"));Y.output=t.escapeLast(Y.output,"["),Q("brackets")}for(;Y.parens>0;){if(!0===p.strictBrackets)throw SyntaxError(l("closing",")"));Y.output=t.escapeLast(Y.output,"("),Q("parens")}for(;Y.braces>0;){if(!0===p.strictBrackets)throw SyntaxError(l("closing","}"));Y.output=t.escapeLast(Y.output,"{"),Q("braces")}if(!0!==p.strictSlashes&&("star"===J.type||"bracket"===J.type)&&Z({type:"maybe_slash",value:"",output:`${k}?`}),!0===Y.backtrack)for(let e of(Y.output="",Y.tokens))Y.output+=null!=e.output?e.output:e.value,e.suffix&&(Y.output+=e.suffix);return Y};return c.fastpaths=(r,i)=>{let a={...i},s="number"==typeof a.maxLength?Math.min(n,a.maxLength):n,l=r.length;if(l>s)throw SyntaxError(`Input length: ${l}, exceeds maximum allowed length: ${s}`);r=o[r]||r;let c=t.isWindows(i),{DOT_LITERAL:u,SLASH_LITERAL:_,ONE_CHAR:d,DOTS_SLASH:p,NO_DOT:f,NO_DOTS:m,NO_DOTS_SLASH:g,STAR:h,START_ANCHOR:y}=e.globChars(c),b=a.dot?m:f,T=a.dot?g:f,S=a.capture?"":"?:",x=!0===a.bash?".*?":h;a.capture&&(x=`(${x})`);let E=e=>!0===e.noglobstar?x:`(${S}(?:(?!${y}${e.dot?p:u}).)*?)`,k=e=>{switch(e){case"*":return`${b}${d}${x}`;case".*":return`${u}${d}${x}`;case"*.*":return`${b}${x}${u}${d}${x}`;case"*/*":return`${b}${x}${_}${d}${T}${x}`;case"**":return b+E(a);case"**/*":return`(?:${b}${E(a)}${_})?${T}${d}${x}`;case"**/*.*":return`(?:${b}${E(a)}${_})?${T}${x}${u}${d}${x}`;case"**/.*":return`(?:${b}${E(a)}${_})?${u}${d}${x}`;default:{let t=/^(.*?)\.(\w+)$/.exec(e);if(!t)return;let n=k(t[1]);if(!n)return;return n+u+t[2]}}},P=k(t.removePrefix(r,{negated:!1,prefix:""}));return P&&!0!==a.strictSlashes&&(P+=`${_}?`),P},aL=c}(),n=TY(),r=Tj(),i=(e,t,r=!1)=>{if(Array.isArray(e)){let n=e.map(e=>i(e,t,r));return e=>{for(let t of n){let n=t(e);if(n)return n}return!1}}let a=e&&"object"==typeof e&&!Array.isArray(e)&&e.tokens&&e.input;if(""===e||"string"!=typeof e&&!a)throw TypeError("Expected pattern to be a non-empty string");let o=t||{},s=n.isWindows(t),l=a?i.compileRe(e,t):i.makeRe(e,t,!1,!0),c=l.state;delete l.state;let u=()=>!1;if(o.ignore){let e={...t,ignore:null,onMatch:null,onResult:null};u=i(o.ignore,e,r)}let _=(n,r=!1)=>{let{isMatch:a,match:_,output:d}=i.test(n,l,t,{glob:e,posix:s}),p={glob:e,state:c,regex:l,posix:s,input:n,output:d,match:_,isMatch:a};return("function"==typeof o.onResult&&o.onResult(p),!1===a)?(p.isMatch=!1,!!r&&p):u(n)?("function"==typeof o.onIgnore&&o.onIgnore(p),p.isMatch=!1,!!r&&p):("function"==typeof o.onMatch&&o.onMatch(p),!r||p)};return r&&(_.state=c),_};return i.test=(e,t,r,{glob:a,posix:o}={})=>{if("string"!=typeof e)throw TypeError("Expected input to be a string");if(""===e)return{isMatch:!1,output:""};let s=r||{},l=s.format||(o?n.toPosixSlashes:null),c=e===a,u=c&&l?l(e):e;return!1===c&&(c=(u=l?l(e):e)===a),(!1===c||!0===s.capture)&&(c=!0===s.matchBase||!0===s.basename?i.matchBase(e,t,r,o):t.exec(u)),{isMatch:!!c,match:c,output:u}},i.matchBase=(e,t,r,a=n.isWindows(r))=>(t instanceof RegExp?t:i.makeRe(t,r)).test(h6.basename(e)),i.isMatch=(e,t,n)=>i(t,n)(e),i.parse=(e,n)=>Array.isArray(e)?e.map(e=>i.parse(e,n)):t(e,{...n,fastpaths:!1}),i.scan=(t,n)=>e(t,n),i.compileRe=(e,t,n=!1,r=!1)=>{if(!0===n)return e.output;let a=t||{},o=a.contains?"":"^",s=a.contains?"":"$",l=`${o}(?:${e.output})${s}`;e&&!0===e.negated&&(l=`^(?!${l}).*$`);let c=i.toRegex(l,t);return!0===r&&(c.state=e),c},i.makeRe=(e,n={},r=!1,a=!1)=>{if(!e||"string"!=typeof e)throw TypeError("Expected a non-empty string");let o={negated:!1,fastpaths:!0};return!1!==n.fastpaths&&("."===e[0]||"*"===e[0])&&(o.output=t.fastpaths(e,n)),o.output||(o=t(e,n)),i.compileRe(o,n,r,a)},i.toRegex=(e,t)=>{try{let n=t||{};return new RegExp(e,n.flags||(n.nocase?"i":""))}catch(e){if(t&&!0===t.debug)throw e;return/$^/}},i.constants=r,aR=i}()),n=TY(),r=e=>""===e||"./"===e,i=e=>{let t=e.indexOf("{");return t>-1&&e.indexOf("}",t)>-1},a=(e,n,r)=>{n=[].concat(n),e=[].concat(e);let i=new Set,a=new Set,o=new Set,s=0,l=e=>{o.add(e.output),r&&r.onResult&&r.onResult(e)};for(let o=0;o<n.length;o++){let c=t(String(n[o]),{...r,onResult:l},!0),u=c.state.negated||c.state.negatedExtglob;for(let t of(u&&s++,e)){let e=c(t,!0);(u?!e.isMatch:e.isMatch)&&(u?i.add(e.output):(i.delete(e.output),a.add(e.output)))}}let c=(s===n.length?[...o]:[...a]).filter(e=>!i.has(e));if(r&&0===c.length){if(!0===r.failglob)throw Error(`No matches found for "${n.join(", ")}"`);if(!0===r.nonull||!0===r.nullglob)return r.unescape?n.map(e=>e.replace(/\\/g,"")):n}return c};return a.match=a,a.matcher=(e,n)=>t(e,n),a.isMatch=(e,n,r)=>t(n,r)(e),a.any=a.isMatch,a.not=(e,t,n={})=>{t=[].concat(t).map(String);let r=new Set,i=[],o=new Set(a(e,t,{...n,onResult:e=>{n.onResult&&n.onResult(e),i.push(e.output)}}));for(let e of i)o.has(e)||r.add(e);return[...r]},a.contains=(e,t,n)=>{if("string"!=typeof e)throw TypeError(`Expected a string: "${ba.inspect(e)}"`);if(Array.isArray(t))return t.some(t=>a.contains(e,t,n));if("string"==typeof t){if(r(e)||r(t))return!1;if(e.includes(t)||e.startsWith("./")&&e.slice(2).includes(t))return!0}return a.isMatch(e,t,{...n,contains:!0})},a.matchKeys=(e,t,r)=>{if(!n.isObject(e))throw TypeError("Expected the first argument to be an object");let i=a(Object.keys(e),t,r),o={};for(let t of i)o[t]=e[t];return o},a.some=(e,n,r)=>{let i=[].concat(e);for(let e of[].concat(n)){let n=t(String(e),r);if(i.some(e=>n(e)))return!0}return!1},a.every=(e,n,r)=>{let i=[].concat(e);for(let e of[].concat(n)){let n=t(String(e),r);if(!i.every(e=>n(e)))return!1}return!0},a.all=(e,n,r)=>{if("string"!=typeof e)throw TypeError(`Expected a string: "${ba.inspect(e)}"`);return[].concat(n).every(n=>t(n,r)(e))},a.capture=(e,r,i)=>{let a=n.isWindows(i),o=t.makeRe(String(e),{...i,capture:!0}).exec(a?n.toPosixSlashes(r):r);if(o)return o.slice(1).map(e=>void 0===e?"":e)},a.makeRe=(...e)=>t.makeRe(...e),a.scan=(...e)=>t.scan(...e),a.parse=(n,r)=>{let i=[];for(let a of[].concat(n||[]))for(let n of e(String(a),r))i.push(t.parse(n,r));return i},a.braces=(t,n)=>{if("string"!=typeof t)throw TypeError("Expected a string");return n&&!0===n.nobrace||!i(t)?[t]:e(t,n)},a.braceExpand=(e,t)=>{if("string"!=typeof e)throw TypeError("Expected a string");return a.braces(e,{...t,expand:!0})},a.hasBraces=i,aB=a}(),n=/[*?]|^!/,r=/\[[^[]*]/,i=/(?:^|[^!*+?@])\([^(]*\|[^|]*\)/,a=/[!*+?@]\([^(]*\)/,o=/,|\.\./,s=/(?!^)\/{2,}/g;function l(e,t={}){return!c(e,t)}function c(e,t={}){return""!==e&&!!(!1===t.caseSensitiveMatch||e.includes("\\")||n.test(e)||r.test(e)||i.test(e)||!1!==t.extglob&&a.test(e)||!1!==t.braceExpansion&&function(e){let t=e.indexOf("{");if(-1===t)return!1;let n=e.indexOf("}",t+1);if(-1===n)return!1;let r=e.slice(t,n);return o.test(r)}(e))}function u(e){return e.startsWith("!")&&"("!==e[1]}function _(e){return!u(e)}function d(e){return e.startsWith("..")||e.startsWith("./..")}function p(e){return e.endsWith("/**")}function f(e){let n=t.braces(e,{expand:!0,nodupes:!0,keepEscaping:!0});return n.sort((e,t)=>e.length-t.length),n.filter(e=>""!==e)}function m(e,n){return t.makeRe(e,n)}function g(e){return h6.isAbsolute(e)}return TN.isStaticPattern=l,TN.isDynamicPattern=c,TN.convertToPositivePattern=function(e){return u(e)?e.slice(1):e},TN.convertToNegativePattern=function(e){return"!"+e},TN.isNegativePattern=u,TN.isPositivePattern=_,TN.getNegativePatterns=function(e){return e.filter(u)},TN.getPositivePatterns=function(e){return e.filter(_)},TN.getPatternsInsideCurrentDirectory=function(e){return e.filter(e=>!d(e))},TN.getPatternsOutsideCurrentDirectory=function(e){return e.filter(d)},TN.isPatternRelatedToParentDirectory=d,TN.getBaseDirectory=function(t){return e(t,{flipBackslashes:!1})},TN.hasGlobStar=function(e){return e.includes("**")},TN.endsWithSlashGlobStar=p,TN.isAffectDepthOfReadingPattern=function(e){let t=h6.basename(e);return p(e)||l(t)},TN.expandPatternsWithBraceExpansion=function(e){return e.reduce((e,t)=>e.concat(f(t)),[])},TN.expandBraceExpansion=f,TN.getPatternParts=function(e,n){let{parts:r}=t.scan(e,Object.assign(Object.assign({},n),{parts:!0}));return 0===r.length&&(r=[e]),r[0].startsWith("/")&&(r[0]=r[0].slice(1),r.unshift("")),r},TN.makeRe=m,TN.convertPatternsToRe=function(e,t){return e.map(e=>m(e,t))},TN.matchAny=function(e,t){return t.some(t=>t.test(e))},TN.removeDuplicateSlashes=function(e){return e.replace(s,"/")},TN.partitionAbsoluteAndRelative=function(e){let t=[],n=[];for(let r of e)g(r)?t.push(r):n.push(r);return[t,n]},TN.isAbsolute=g,TN}(),TP.stream=function(){if(a$)return TU;a$=1,Object.defineProperty(TU,"__esModule",{value:!0}),TU.merge=void 0;let e=function(){if(aq)return az;aq=1;let e=TB.PassThrough,t=Array.prototype.slice;return az=function(){let n=[],r=t.call(arguments),i=!1,a=r[r.length-1];a&&!Array.isArray(a)&&null==a.pipe?r.pop():a={};let o=!1!==a.end,s=!0===a.pipeError;null==a.objectMode&&(a.objectMode=!0),null==a.highWaterMark&&(a.highWaterMark=65536);let l=e(a);function c(){for(let t=0,r=arguments.length;t<r;t++)n.push(function t(n,r){if(Array.isArray(n))for(let e=0,i=n.length;e<i;e++)n[e]=t(n[e],r);else{if(!n._readableState&&n.pipe&&(n=n.pipe(e(r))),!n._readableState||!n.pause||!n.pipe)throw Error("Only readable stream can be merged.");n.pause()}return n}(arguments[t],a));return function e(){if(i)return;i=!0;let t=n.shift();if(!t)return void process.nextTick(u);Array.isArray(t)||(t=[t]);let r=t.length+1;function a(){--r>0||(i=!1,e())}for(let e=0;e<t.length;e++)!function(e){function t(){e.removeListener("merge2UnpipeEnd",t),e.removeListener("end",t),s&&e.removeListener("error",n),a()}function n(e){l.emit("error",e)}if(e._readableState.endEmitted)return a();e.on("merge2UnpipeEnd",t),e.on("end",t),s&&e.on("error",n),e.pipe(l,{end:!1}),e.resume()}(t[e]);a()}(),this}function u(){i=!1,l.emit("queueDrain"),o&&l.end()}return l.setMaxListeners(0),l.add=c,l.on("unpipe",function(e){e.emit("merge2UnpipeEnd")}),r.length&&c.apply(null,r),l}}();function t(e){e.forEach(e=>e.emit("close"))}return TU.merge=function(n){let r=e(n);return n.forEach(e=>{e.once("error",e=>r.emit("error",e))}),r.once("close",()=>t(n)),r.once("end",()=>t(n)),r},TU}(),aW||(aW=1,Object.defineProperty(TV,"__esModule",{value:!0}),TV.isEmpty=TV.isString=void 0,TV.isString=function(e){return"string"==typeof e},TV.isEmpty=function(e){return""===e}),TP.string=TV),TP}var Tz={},Tq={},T$={},TW={},TK={},TH=s2(sZ),TG={},TX={},TQ={},TZ={},T0={},T1={},T2={};function T3(){if(a0)return TQ;a0=1,Object.defineProperty(TQ,"__esModule",{value:!0}),TQ.statSync=TQ.stat=TQ.Settings=void 0;let e=aG?TZ:(aG=1,Object.defineProperty(TZ,"__esModule",{value:!0}),TZ.read=void 0,TZ.read=function(e,t,n){t.fs.lstat(e,(r,i)=>{null!==r?n(r):i.isSymbolicLink()&&t.followSymbolicLink?t.fs.stat(e,(e,r)=>{if(null!==e)return t.throwErrorOnBrokenSymbolicLink?void n(e):(n(null,i),void 0);t.markSymbolicLink&&(r.isSymbolicLink=()=>!0),n(null,r)}):n(null,i)})},TZ),t=(aX||(aX=1,Object.defineProperty(T0,"__esModule",{value:!0}),T0.read=void 0,T0.read=function(e,t){let n=t.fs.lstatSync(e);if(!n.isSymbolicLink()||!t.followSymbolicLink)return n;try{let n=t.fs.statSync(e);return t.markSymbolicLink&&(n.isSymbolicLink=()=>!0),n}catch(e){if(!t.throwErrorOnBrokenSymbolicLink)return n;throw e}}),T0),n=function(){if(aZ)return T1;aZ=1,Object.defineProperty(T1,"__esModule",{value:!0});let e=function(){return aQ?T2:(aQ=1,Object.defineProperty(T2,"__esModule",{value:!0}),T2.createFileSystemAdapter=T2.FILE_SYSTEM_ADAPTER=void 0,T2.FILE_SYSTEM_ADAPTER={lstat:h3.lstat,stat:h3.stat,lstatSync:h3.lstatSync,statSync:h3.statSync},T2.createFileSystemAdapter=function(e){return void 0===e?T2.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},T2.FILE_SYSTEM_ADAPTER),e)},T2)}();return T1.default=class{constructor(t={}){this._options=t,this.followSymbolicLink=this._getValue(this._options.followSymbolicLink,!0),this.fs=e.createFileSystemAdapter(this._options.fs),this.markSymbolicLink=this._getValue(this._options.markSymbolicLink,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0)}_getValue(e,t){return null!=e?e:t}},T1}();function r(e={}){return e instanceof n.default?e:new n.default(e)}return TQ.Settings=n.default,TQ.stat=function(t,n,i){"function"==typeof n?e.read(t,r(),n):e.read(t,r(n),i)},TQ.statSync=function(e,n){let i=r(n);return t.read(e,i)},TQ}var T6={};function T4(){if(a4)return T6;a4=1,Object.defineProperty(T6,"__esModule",{value:!0}),T6.IS_SUPPORT_READDIR_WITH_FILE_TYPES=void 0;let e=process.versions.node.split(".");if(void 0===e[0]||void 0===e[1])throw Error(`Unexpected behavior. The 'process.versions.node' variable has invalid value: ${process.versions.node}`);let t=Number.parseInt(e[0],10),n=Number.parseInt(e[1],10);return T6.IS_SUPPORT_READDIR_WITH_FILE_TYPES=t>10||10===t&&n>=10,T6}var T8={},T5={};function T7(){return a5||(a5=1,Object.defineProperty(T8,"__esModule",{value:!0}),T8.fs=void 0,T8.fs=function(){if(a8)return T5;a8=1,Object.defineProperty(T5,"__esModule",{value:!0}),T5.createDirentFromStats=void 0;class e{constructor(e,t){this.name=e,this.isBlockDevice=t.isBlockDevice.bind(t),this.isCharacterDevice=t.isCharacterDevice.bind(t),this.isDirectory=t.isDirectory.bind(t),this.isFIFO=t.isFIFO.bind(t),this.isFile=t.isFile.bind(t),this.isSocket=t.isSocket.bind(t),this.isSymbolicLink=t.isSymbolicLink.bind(t)}}return T5.createDirentFromStats=function(t,n){return new e(t,n)},T5}()),T8}var T9={};function Se(){return a7||(a7=1,Object.defineProperty(T9,"__esModule",{value:!0}),T9.joinPathSegments=void 0,T9.joinPathSegments=function(e,t,n){return e.endsWith(n)?e+t:e+n+t}),T9}var St={},Sn={},Sr={};function Si(){if(or)return TG;or=1,Object.defineProperty(TG,"__esModule",{value:!0}),TG.Settings=TG.scandirSync=TG.scandir=void 0;let e=function(){if(a9)return TX;a9=1,Object.defineProperty(TX,"__esModule",{value:!0}),TX.readdir=TX.readdirWithFileTypes=TX.read=void 0;let e=T3(),t=function(){let e;if(a6)return a3;a6=1,a3=function(e,n){let r,i,a,o=!0;function s(e){function i(){n&&n(e,r),n=null}o?t(i):i()}function l(e,t,n){r[e]=n,(0==--i||t)&&s(t)}Array.isArray(e)?(r=[],i=e.length):(a=Object.keys(e),r={},i=a.length),i?a?a.forEach(function(t){e[t](function(e,n){l(t,e,n)})}):e.forEach(function(e,t){e(function(e,n){l(t,e,n)})}):s(null),o=!1};let t=a2?a1:(a2=1,a1="function"==typeof queueMicrotask?queueMicrotask.bind("undefined"!=typeof window?window:s0):t=>(e||(e=Promise.resolve())).then(t).catch(e=>setTimeout(()=>{throw e},0)));return a3}(),n=T4(),r=T7(),i=Se();function a(e,n,a){n.fs.readdir(e,{withFileTypes:!0},(o,s)=>{if(null!==o)return void a(o);let l=s.map(t=>({dirent:t,name:t.name,path:i.joinPathSegments(e,t.name,n.pathSegmentSeparator)}));n.followSymbolicLinks?t(l.map(e=>{var t,i;return t=e,i=n,e=>{t.dirent.isSymbolicLink()?i.fs.stat(t.path,(n,a)=>{null!==n?i.throwErrorOnBrokenSymbolicLink?e(n):e(null,t):(t.dirent=r.fs.createDirentFromStats(t.name,a),e(null,t))}):e(null,t)}}),(e,t)=>{null!==e?a(e):a(null,t)}):a(null,l)})}function o(n,a,o){a.fs.readdir(n,(s,l)=>{null!==s?o(s):t(l.map(t=>{let o=i.joinPathSegments(n,t,a.pathSegmentSeparator);return n=>{e.stat(o,a.fsStatSettings,(e,i)=>{if(null!==e)return void n(e);let s={name:t,path:o,dirent:r.fs.createDirentFromStats(t,i)};a.stats&&(s.stats=i),n(null,s)})}}),(e,t)=>{null!==e?o(e):o(null,t)})})}return TX.read=function(e,t,r){!t.stats&&n.IS_SUPPORT_READDIR_WITH_FILE_TYPES?a(e,t,r):o(e,t,r)},TX.readdirWithFileTypes=a,TX.readdir=o,TX}(),t=function(){if(oe)return St;oe=1,Object.defineProperty(St,"__esModule",{value:!0}),St.readdir=St.readdirWithFileTypes=St.read=void 0;let e=T3(),t=T4(),n=T7(),r=Se();function i(e,t){return t.fs.readdirSync(e,{withFileTypes:!0}).map(i=>{let a={dirent:i,name:i.name,path:r.joinPathSegments(e,i.name,t.pathSegmentSeparator)};if(a.dirent.isSymbolicLink()&&t.followSymbolicLinks)try{let e=t.fs.statSync(a.path);a.dirent=n.fs.createDirentFromStats(a.name,e)}catch(e){if(t.throwErrorOnBrokenSymbolicLink)throw e}return a})}function a(t,i){return i.fs.readdirSync(t).map(a=>{let o=r.joinPathSegments(t,a,i.pathSegmentSeparator),s=e.statSync(o,i.fsStatSettings),l={name:a,path:o,dirent:n.fs.createDirentFromStats(a,s)};return i.stats&&(l.stats=s),l})}return St.read=function(e,n){return!n.stats&&t.IS_SUPPORT_READDIR_WITH_FILE_TYPES?i(e,n):a(e,n)},St.readdirWithFileTypes=i,St.readdir=a,St}(),n=function(){if(on)return Sn;on=1,Object.defineProperty(Sn,"__esModule",{value:!0});let e=T3(),t=function(){return ot?Sr:(ot=1,Object.defineProperty(Sr,"__esModule",{value:!0}),Sr.createFileSystemAdapter=Sr.FILE_SYSTEM_ADAPTER=void 0,Sr.FILE_SYSTEM_ADAPTER={lstat:h3.lstat,stat:h3.stat,lstatSync:h3.lstatSync,statSync:h3.statSync,readdir:h3.readdir,readdirSync:h3.readdirSync},Sr.createFileSystemAdapter=function(e){return void 0===e?Sr.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},Sr.FILE_SYSTEM_ADAPTER),e)},Sr)}();return Sn.default=class{constructor(n={}){this._options=n,this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!1),this.fs=t.createFileSystemAdapter(this._options.fs),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,h6.sep),this.stats=this._getValue(this._options.stats,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0),this.fsStatSettings=new e.Settings({followSymbolicLink:this.followSymbolicLinks,fs:this.fs,throwErrorOnBrokenSymbolicLink:this.throwErrorOnBrokenSymbolicLink})}_getValue(e,t){return null!=e?e:t}},Sn}();function r(e={}){return e instanceof n.default?e:new n.default(e)}return TG.Settings=n.default,TG.scandir=function(t,n,i){"function"==typeof n?e.read(t,r(),n):e.read(t,r(n),i)},TG.scandirSync=function(e,n){let i=r(n);return t.read(e,i)},TG}var Sa={exports:{}},So={};function Ss(){return os||(os=1,Object.defineProperty(So,"__esModule",{value:!0}),So.joinPathSegments=So.replacePathSegmentSeparator=So.isAppliedFilter=So.isFatalError=void 0,So.isFatalError=function(e,t){return null===e.errorFilter||!e.errorFilter(t)},So.isAppliedFilter=function(e,t){return null===e||e(t)},So.replacePathSegmentSeparator=function(e,t){return e.split(/[/\\]/).join(t)},So.joinPathSegments=function(e,t,n){return""===e?t:e.endsWith(n)?e+t:e+n+t}),So}var Sl={};function Sc(){if(ol)return Sl;ol=1,Object.defineProperty(Sl,"__esModule",{value:!0});let e=Ss();return Sl.default=class{constructor(t,n){this._root=t,this._settings=n,this._root=e.replacePathSegmentSeparator(t,n.pathSegmentSeparator)}},Sl}function Su(){if(oc)return TK;oc=1,Object.defineProperty(TK,"__esModule",{value:!0});let e=Si(),t=function(){if(oo)return Sa.exports;oo=1;var e=oa?oi:(oa=1,oi=function(e){var t=new e,n=t;return{get:function(){var r=t;return r.next?t=r.next:n=t=new e,r.next=null,r},release:function(e){n.next=e,n=e}}});function t(t,i,a){if("function"==typeof t&&(a=i,i=t,t=null),!(a>=1))throw Error("fastqueue concurrency must be equal to or greater than 1");var o=e(r),s=null,l=null,c=0,u=null,_={push:function(e,r){var p=o.get();p.context=t,p.release=d,p.value=e,p.callback=r||n,p.errorHandler=u,c>=a||_.paused?l?(l.next=p,l=p):(s=p,l=p,_.saturated()):(c++,i.call(t,p.value,p.worked))},drain:n,saturated:n,pause:function(){_.paused=!0},paused:!1,get concurrency(){return a},set concurrency(value){if(!(value>=1))throw Error("fastqueue concurrency must be equal to or greater than 1");if(a=value,_.paused)return;for(;s&&c<a;)c++,d()},running:function(){return c},resume:function(){if(_.paused){if(_.paused=!1,null===s){c++,d();return}for(;s&&c<a;)c++,d()}},idle:function(){return 0===c&&0===_.length()},length:function(){for(var e=s,t=0;e;)e=e.next,t++;return t},getQueue:function(){for(var e=s,t=[];e;)t.push(e.value),e=e.next;return t},unshift:function(e,r){var p=o.get();p.context=t,p.release=d,p.value=e,p.callback=r||n,p.errorHandler=u,c>=a||_.paused?s?(p.next=s,s=p):(s=p,l=p,_.saturated()):(c++,i.call(t,p.value,p.worked))},empty:n,kill:function(){s=null,l=null,_.drain=n},killAndDrain:function(){s=null,l=null,_.drain(),_.drain=n},error:function(e){u=e}};return _;function d(e){e&&o.release(e);var n=s;n&&c<=a?_.paused?c--:(l===s&&(l=null),s=n.next,n.next=null,i.call(t,n.value,n.worked),null===l&&_.empty()):0==--c&&_.drain()}}function n(){}function r(){this.value=null,this.callback=n,this.next=null,this.release=n,this.context=null,this.errorHandler=null;var e=this;this.worked=function(t,r){var i=e.callback,a=e.errorHandler,o=e.value;e.value=null,e.callback=n,e.errorHandler&&a(t,o),i.call(e.context,t,r),e.release(e)}}return Sa.exports=t,Sa.exports.promise=function(e,r,i){"function"==typeof e&&(i=r,r=e,e=null);var a=t(e,function(e,t){r.call(this,e).then(function(e){t(null,e)},t)},i),o=a.push,s=a.unshift;return a.push=function(e){var t=new Promise(function(t,n){o(e,function(e,r){e?n(e):t(r)})});return t.catch(n),t},a.unshift=function(e){var t=new Promise(function(t,n){s(e,function(e,r){e?n(e):t(r)})});return t.catch(n),t},a.drained=function(){return new Promise(function(e){process.nextTick(function(){if(a.idle())e();else{var t=a.drain;a.drain=function(){"function"==typeof t&&t(),e(),a.drain=t}}})})},a},Sa.exports}(),n=Ss(),r=Sc();class i extends r.default{constructor(n,r){super(n,r),this._settings=r,this._scandir=e.scandir,this._emitter=new TH.EventEmitter,this._queue=t(this._worker.bind(this),this._settings.concurrency),this._isFatalError=!1,this._isDestroyed=!1,this._queue.drain=()=>{this._isFatalError||this._emitter.emit("end")}}read(){return this._isFatalError=!1,this._isDestroyed=!1,setImmediate(()=>{this._pushToQueue(this._root,this._settings.basePath)}),this._emitter}get isDestroyed(){return this._isDestroyed}destroy(){if(this._isDestroyed)throw Error("The reader is already destroyed");this._isDestroyed=!0,this._queue.killAndDrain()}onEntry(e){this._emitter.on("entry",e)}onError(e){this._emitter.once("error",e)}onEnd(e){this._emitter.once("end",e)}_pushToQueue(e,t){this._queue.push({directory:e,base:t},e=>{null!==e&&this._handleError(e)})}_worker(e,t){this._scandir(e.directory,this._settings.fsScandirSettings,(n,r)=>{if(null!==n)return void t(n,void 0);for(let t of r)this._handleEntry(t,e.base);t(null,void 0)})}_handleError(e){!this._isDestroyed&&n.isFatalError(this._settings,e)&&(this._isFatalError=!0,this._isDestroyed=!0,this._emitter.emit("error",e))}_handleEntry(e,t){if(this._isDestroyed||this._isFatalError)return;let r=e.path;void 0!==t&&(e.path=n.joinPathSegments(t,e.name,this._settings.pathSegmentSeparator)),n.isAppliedFilter(this._settings.entryFilter,e)&&this._emitEntry(e),e.dirent.isDirectory()&&n.isAppliedFilter(this._settings.deepFilter,e)&&this._pushToQueue(r,void 0===t?void 0:e.path)}_emitEntry(e){this._emitter.emit("entry",e)}}return TK.default=i,TK}var S_={},Sd={},Sp={},Sf={};function Sm(){if(om)return T$;om=1,Object.defineProperty(T$,"__esModule",{value:!0}),T$.Settings=T$.walkStream=T$.walkSync=T$.walk=void 0;let e=function(){if(ou)return TW;ou=1,Object.defineProperty(TW,"__esModule",{value:!0});let e=Su();return TW.default=class{constructor(t,n){this._root=t,this._settings=n,this._reader=new e.default(this._root,this._settings),this._storage=[]}read(e){this._reader.onError(t=>{e(t)}),this._reader.onEntry(e=>{this._storage.push(e)}),this._reader.onEnd(()=>{e(null,this._storage)}),this._reader.read()}},TW}(),t=function(){if(o_)return S_;o_=1,Object.defineProperty(S_,"__esModule",{value:!0});let e=Su();return S_.default=class{constructor(t,n){this._root=t,this._settings=n,this._reader=new e.default(this._root,this._settings),this._stream=new TB.Readable({objectMode:!0,read:()=>{},destroy:()=>{this._reader.isDestroyed||this._reader.destroy()}})}read(){return this._reader.onError(e=>{this._stream.emit("error",e)}),this._reader.onEntry(e=>{this._stream.push(e)}),this._reader.onEnd(()=>{this._stream.push(null)}),this._reader.read(),this._stream}},S_}(),n=function(){if(op)return Sd;op=1,Object.defineProperty(Sd,"__esModule",{value:!0});let e=function(){if(od)return Sp;od=1,Object.defineProperty(Sp,"__esModule",{value:!0});let e=Si(),t=Ss(),n=Sc();class r extends n.default{constructor(){super(...arguments),this._scandir=e.scandirSync,this._storage=[],this._queue=new Set}read(){return this._pushToQueue(this._root,this._settings.basePath),this._handleQueue(),this._storage}_pushToQueue(e,t){this._queue.add({directory:e,base:t})}_handleQueue(){for(let e of this._queue.values())this._handleDirectory(e.directory,e.base)}_handleDirectory(e,t){try{for(let n of this._scandir(e,this._settings.fsScandirSettings))this._handleEntry(n,t)}catch(e){this._handleError(e)}}_handleError(e){if(t.isFatalError(this._settings,e))throw e}_handleEntry(e,n){let r=e.path;void 0!==n&&(e.path=t.joinPathSegments(n,e.name,this._settings.pathSegmentSeparator)),t.isAppliedFilter(this._settings.entryFilter,e)&&this._pushToStorage(e),e.dirent.isDirectory()&&t.isAppliedFilter(this._settings.deepFilter,e)&&this._pushToQueue(r,void 0===n?void 0:e.path)}_pushToStorage(e){this._storage.push(e)}}return Sp.default=r,Sp}();return Sd.default=class{constructor(t,n){this._root=t,this._settings=n,this._reader=new e.default(this._root,this._settings)}read(){return this._reader.read()}},Sd}(),r=function(){if(of)return Sf;of=1,Object.defineProperty(Sf,"__esModule",{value:!0});let e=Si();return Sf.default=class{constructor(t={}){this._options=t,this.basePath=this._getValue(this._options.basePath,void 0),this.concurrency=this._getValue(this._options.concurrency,1/0),this.deepFilter=this._getValue(this._options.deepFilter,null),this.entryFilter=this._getValue(this._options.entryFilter,null),this.errorFilter=this._getValue(this._options.errorFilter,null),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,h6.sep),this.fsScandirSettings=new e.Settings({followSymbolicLinks:this._options.followSymbolicLinks,fs:this._options.fs,pathSegmentSeparator:this._options.pathSegmentSeparator,stats:this._options.stats,throwErrorOnBrokenSymbolicLink:this._options.throwErrorOnBrokenSymbolicLink})}_getValue(e,t){return null!=e?e:t}},Sf}();function i(e={}){return e instanceof r.default?e:new r.default(e)}return T$.Settings=r.default,T$.walk=function(t,n,r){"function"==typeof n?new e.default(t,i()).read(n):new e.default(t,i(n)).read(r)},T$.walkSync=function(e,t){let r=i(t);return new n.default(e,r).read()},T$.walkStream=function(e,n){let r=i(n);return new t.default(e,r).read()},T$}var Sg={};function Sh(){if(og)return Sg;og=1,Object.defineProperty(Sg,"__esModule",{value:!0});let e=T3(),t=TJ();return Sg.default=class{constructor(t){this._settings=t,this._fsStatSettings=new e.Settings({followSymbolicLink:this._settings.followSymbolicLinks,fs:this._settings.fs,throwErrorOnBrokenSymbolicLink:this._settings.followSymbolicLinks})}_getFullEntryPath(e){return h6.resolve(this._settings.cwd,e)}_makeEntry(e,n){let r={name:n,path:n,dirent:t.fs.createDirentFromStats(n,e)};return this._settings.stats&&(r.stats=e),r}_isFatalError(e){return!t.errno.isEnoentCodeError(e)&&!this._settings.suppressErrors}},Sg}var Sy={};function Sv(){if(oh)return Sy;oh=1,Object.defineProperty(Sy,"__esModule",{value:!0});let e=T3(),t=Sm(),n=Sh();class r extends n.default{constructor(){super(...arguments),this._walkStream=t.walkStream,this._stat=e.stat}dynamic(e,t){return this._walkStream(e,t)}static(e,t){let n=e.map(this._getFullEntryPath,this),r=new TB.PassThrough({objectMode:!0});r._write=(i,a,o)=>this._getEntry(n[i],e[i],t).then(e=>{null!==e&&t.entryFilter(e)&&r.push(e),i===n.length-1&&r.end(),o()}).catch(o);for(let e=0;e<n.length;e++)r.write(e);return r}_getEntry(e,t,n){return this._getStat(e).then(e=>this._makeEntry(e,t)).catch(e=>{if(n.errorFilter(e))return null;throw e})}_getStat(e){return new Promise((t,n)=>{this._stat(e,this._fsStatSettings,(e,r)=>null===e?t(r):n(e))})}}return Sy.default=r,Sy}var Sb={},ST={},SS={},Sx={},SE={},Sk={},SP={};function SC(){if(ok)return Sb;ok=1,Object.defineProperty(Sb,"__esModule",{value:!0});let e=function(){if(oT)return ST;oT=1,Object.defineProperty(ST,"__esModule",{value:!0});let e=TJ(),t=function(){if(ob)return SS;ob=1,Object.defineProperty(SS,"__esModule",{value:!0});let e=function(){if(ov)return Sx;ov=1,Object.defineProperty(Sx,"__esModule",{value:!0});let e=TJ();return Sx.default=class{constructor(e,t,n){this._patterns=e,this._settings=t,this._micromatchOptions=n,this._storage=[],this._fillStorage()}_fillStorage(){for(let e of this._patterns){let t=this._getPatternSegments(e),n=this._splitSegmentsIntoSections(t);this._storage.push({complete:n.length<=1,pattern:e,segments:t,sections:n})}}_getPatternSegments(t){return e.pattern.getPatternParts(t,this._micromatchOptions).map(t=>e.pattern.isDynamicPattern(t,this._settings)?{dynamic:!0,pattern:t,patternRe:e.pattern.makeRe(t,this._micromatchOptions)}:{dynamic:!1,pattern:t})}_splitSegmentsIntoSections(t){return e.array.splitWhen(t,t=>t.dynamic&&e.pattern.hasGlobStar(t.pattern))}},Sx}();class t extends e.default{match(e){let t=e.split("/"),n=t.length;for(let e of this._storage.filter(e=>!e.complete||e.segments.length>n)){let r=e.sections[0];if(!e.complete&&n>r.length||t.every((t,n)=>{let r=e.segments[n];return!!(r.dynamic&&r.patternRe.test(t))||!r.dynamic&&r.pattern===t}))return!0}return!1}}return SS.default=t,SS}();return ST.default=class{constructor(e,t){this._settings=e,this._micromatchOptions=t}getFilter(e,t,n){let r=this._getMatcher(t),i=this._getNegativePatternsRe(n);return t=>this._filter(e,t,r,i)}_getMatcher(e){return new t.default(e,this._settings,this._micromatchOptions)}_getNegativePatternsRe(t){let n=t.filter(e.pattern.isAffectDepthOfReadingPattern);return e.pattern.convertPatternsToRe(n,this._micromatchOptions)}_filter(t,n,r,i){if(this._isSkippedByDeep(t,n.path)||this._isSkippedSymbolicLink(n))return!1;let a=e.path.removeLeadingDotSegment(n.path);return!this._isSkippedByPositivePatterns(a,r)&&this._isSkippedByNegativePatterns(a,i)}_isSkippedByDeep(e,t){return this._settings.deep!==1/0&&this._getEntryLevel(e,t)>=this._settings.deep}_getEntryLevel(e,t){let n=t.split("/").length;return""===e?n:n-e.split("/").length}_isSkippedSymbolicLink(e){return!this._settings.followSymbolicLinks&&e.dirent.isSymbolicLink()}_isSkippedByPositivePatterns(e,t){return!this._settings.baseNameMatch&&!t.match(e)}_isSkippedByNegativePatterns(t,n){return!e.pattern.matchAny(t,n)}},ST}(),t=function(){if(oS)return SE;oS=1,Object.defineProperty(SE,"__esModule",{value:!0});let e=TJ();return SE.default=class{constructor(e,t){this._settings=e,this._micromatchOptions=t,this.index=new Map}getFilter(t,n){let[r,i]=e.pattern.partitionAbsoluteAndRelative(n),a={positive:{all:e.pattern.convertPatternsToRe(t,this._micromatchOptions)},negative:{absolute:e.pattern.convertPatternsToRe(r,Object.assign(Object.assign({},this._micromatchOptions),{dot:!0})),relative:e.pattern.convertPatternsToRe(i,Object.assign(Object.assign({},this._micromatchOptions),{dot:!0}))}};return e=>this._filter(e,a)}_filter(t,n){let r=e.path.removeLeadingDotSegment(t.path);if(this._settings.unique&&this._isDuplicateEntry(r)||this._onlyFileFilter(t)||this._onlyDirectoryFilter(t))return!1;let i=this._isMatchToPatternsSet(r,n,t.dirent.isDirectory());return this._settings.unique&&i&&this._createIndexRecord(r),i}_isDuplicateEntry(e){return this.index.has(e)}_createIndexRecord(e){this.index.set(e,void 0)}_onlyFileFilter(e){return this._settings.onlyFiles&&!e.dirent.isFile()}_onlyDirectoryFilter(e){return this._settings.onlyDirectories&&!e.dirent.isDirectory()}_isMatchToPatternsSet(e,t,n){return!(!this._isMatchToPatterns(e,t.positive.all,n)||this._isMatchToPatterns(e,t.negative.relative,n)||this._isMatchToAbsoluteNegative(e,t.negative.absolute,n))}_isMatchToAbsoluteNegative(t,n,r){if(0===n.length)return!1;let i=e.path.makeAbsolute(this._settings.cwd,t);return this._isMatchToPatterns(i,n,r)}_isMatchToPatterns(t,n,r){if(0===n.length)return!1;let i=e.pattern.matchAny(t,n);return!i&&r?e.pattern.matchAny(t+"/",n):i}},SE}(),n=function(){if(ox)return Sk;ox=1,Object.defineProperty(Sk,"__esModule",{value:!0});let e=TJ();return Sk.default=class{constructor(e){this._settings=e}getFilter(){return e=>this._isNonFatalError(e)}_isNonFatalError(t){return e.errno.isEnoentCodeError(t)||this._settings.suppressErrors}},Sk}(),r=function(){if(oE)return SP;oE=1,Object.defineProperty(SP,"__esModule",{value:!0});let e=TJ();return SP.default=class{constructor(e){this._settings=e}getTransformer(){return e=>this._transform(e)}_transform(t){let n=t.path;return(this._settings.absolute&&(n=e.path.makeAbsolute(this._settings.cwd,n),n=e.path.unixify(n)),this._settings.markDirectories&&t.dirent.isDirectory()&&(n+="/"),this._settings.objectMode)?Object.assign(Object.assign({},t),{path:n}):n}},SP}();return Sb.default=class{constructor(i){this._settings=i,this.errorFilter=new n.default(this._settings),this.entryFilter=new t.default(this._settings,this._getMicromatchOptions()),this.deepFilter=new e.default(this._settings,this._getMicromatchOptions()),this.entryTransformer=new r.default(this._settings)}_getRootDirectory(e){return h6.resolve(this._settings.cwd,e.base)}_getReaderOptions(e){let t="."===e.base?"":e.base;return{basePath:t,pathSegmentSeparator:"/",concurrency:this._settings.concurrency,deepFilter:this.deepFilter.getFilter(t,e.positive,e.negative),entryFilter:this.entryFilter.getFilter(e.positive,e.negative),errorFilter:this.errorFilter.getFilter(),followSymbolicLinks:this._settings.followSymbolicLinks,fs:this._settings.fs,stats:this._settings.stats,throwErrorOnBrokenSymbolicLink:this._settings.throwErrorOnBrokenSymbolicLink,transform:this.entryTransformer.getTransformer()}}_getMicromatchOptions(){return{dot:this._settings.dot,matchBase:this._settings.baseNameMatch,nobrace:!this._settings.braceExpansion,nocase:!this._settings.caseSensitiveMatch,noext:!this._settings.extglob,noglobstar:!this._settings.globstar,posix:!0,strictSlashes:!1}}},Sb}var Sw={},SA={},SD={},SN={};function SF(){if(oO)return TE;oO=1;var e=TE&&TE.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(TE,"__esModule",{value:!0}),TE.clearGlobCache=function(){s?.clear()},TE.resolveProjectList=function(e){let t=[];if(null!=e.project)for(let n of e.project)"string"==typeof n&&t.push(n);if(0===t.length)return new Map;let l=(e.projectFolderIgnoreList??["**/node_modules/**"]).filter(e=>"string"==typeof e).map(e=>e.startsWith("!")?e:`!${e}`),c=function({project:e,projectFolderIgnoreList:t,tsconfigRootDir:n}){let r={tsconfigRootDir:n,project:e,projectFolderIgnoreList:[...t].sort()};return(0,i.createHash)(JSON.stringify(r))}({project:t,projectFolderIgnoreList:l,tsconfigRootDir:e.tsconfigRootDir});if(null==s)s=new a.ExpiringCache(e.singleRun?"Infinity":e.cacheLifetime?.glob??a.DEFAULT_TSCONFIG_CACHE_DURATION_SECONDS);else{let e=s.get(c);if(e)return e}let u=t.filter(e=>!(0,r.default)(e)),_=t.filter(e=>(0,r.default)(e)),d=[];_.length>0&&(d=_.flatMap(t=>(0,n.sync)(t,{cwd:e.tsconfigRootDir,ignore:l})));let p=new Map([...u,...d].map(t=>[(0,i.getCanonicalFileName)((0,i.ensureAbsolutePath)(t,e.tsconfigRootDir)),(0,i.ensureAbsolutePath)(t,e.tsconfigRootDir)]));return o("parserOptions.project (excluding ignored) matched projects: %s",p),s.set(c,p),p},TE.clearGlobResolutionCache=function(){s?.clear(),s=null};let t=e(bo()),n=function(){if(oF)return oN;oF=1;let e=function(){if(aH)return Tk;aH=1,Object.defineProperty(Tk,"__esModule",{value:!0}),Tk.convertPatternGroupToTask=Tk.convertPatternGroupsToTasks=Tk.groupPatternsByBaseDirectory=Tk.getNegativePatternsAsPositive=Tk.getPositivePatterns=Tk.convertPatternsToTasks=Tk.generate=void 0;let e=TJ();function t(t,n){let r=t;return n.braceExpansion&&(r=e.pattern.expandPatternsWithBraceExpansion(r)),n.baseNameMatch&&(r=r.map(e=>e.includes("/")?e:`**/${e}`)),r.map(t=>e.pattern.removeDuplicateSlashes(t))}function n(t,n,r){let i=[],l=e.pattern.getPatternsOutsideCurrentDirectory(t),c=e.pattern.getPatternsInsideCurrentDirectory(t),u=a(l),_=a(c);return i.push(...o(u,n,r)),"."in _?i.push(s(".",c,n,r)):i.push(...o(_,n,r)),i}function r(t){return e.pattern.getPositivePatterns(t)}function i(t,n){return e.pattern.getNegativePatterns(t).concat(n).map(e.pattern.convertToPositivePattern)}function a(t){return t.reduce((t,n)=>{let r=e.pattern.getBaseDirectory(n);return r in t?t[r].push(n):t[r]=[n],t},{})}function o(e,t,n){return Object.keys(e).map(r=>s(r,e[r],t,n))}function s(t,n,r,i){return{dynamic:i,positive:n,negative:r,base:t,patterns:[].concat(n,r.map(e.pattern.convertToNegativePattern))}}return Tk.generate=function(a,o){let s=t(a,o),l=t(o.ignore,o),c=r(s),u=i(s,l),_=c.filter(t=>e.pattern.isStaticPattern(t,o)),d=c.filter(t=>e.pattern.isDynamicPattern(t,o)),p=n(_,u,!1),f=n(d,u,!0);return p.concat(f)},Tk.convertPatternsToTasks=n,Tk.getPositivePatterns=r,Tk.getNegativePatternsAsPositive=i,Tk.groupPatternsByBaseDirectory=a,Tk.convertPatternGroupsToTasks=o,Tk.convertPatternGroupToTask=s,Tk}(),t=function(){if(oP)return Tz;oP=1,Object.defineProperty(Tz,"__esModule",{value:!0});let e=function(){if(oy)return Tq;oy=1,Object.defineProperty(Tq,"__esModule",{value:!0});let e=Sm(),t=Sh(),n=Sv();class r extends t.default{constructor(){super(...arguments),this._walkAsync=e.walk,this._readerStream=new n.default(this._settings)}dynamic(e,t){return new Promise((n,r)=>{this._walkAsync(e,t,(e,t)=>{null===e?n(t):r(e)})})}async static(e,t){let n=[],r=this._readerStream.static(e,t);return new Promise((e,t)=>{r.once("error",t),r.on("data",e=>n.push(e)),r.once("end",()=>e(n))})}}return Tq.default=r,Tq}(),t=SC();class n extends t.default{constructor(){super(...arguments),this._reader=new e.default(this._settings)}async read(e){let t=this._getRootDirectory(e),n=this._getReaderOptions(e);return(await this.api(t,e,n)).map(e=>n.transform(e))}api(e,t,n){return t.dynamic?this._reader.dynamic(e,n):this._reader.static(t.patterns,n)}}return Tz.default=n,Tz}(),n=function(){if(oC)return Sw;oC=1,Object.defineProperty(Sw,"__esModule",{value:!0});let e=Sv(),t=SC();class n extends t.default{constructor(){super(...arguments),this._reader=new e.default(this._settings)}read(e){let t=this._getRootDirectory(e),n=this._getReaderOptions(e),r=this.api(t,e,n),i=new TB.Readable({objectMode:!0,read:()=>{}});return r.once("error",e=>i.emit("error",e)).on("data",e=>i.emit("data",n.transform(e))).once("end",()=>i.emit("end")),i.once("close",()=>r.destroy()),i}api(e,t,n){return t.dynamic?this._reader.dynamic(e,n):this._reader.static(t.patterns,n)}}return Sw.default=n,Sw}(),r=function(){if(oA)return SA;oA=1,Object.defineProperty(SA,"__esModule",{value:!0});let e=function(){if(ow)return SD;ow=1,Object.defineProperty(SD,"__esModule",{value:!0});let e=T3(),t=Sm(),n=Sh();class r extends n.default{constructor(){super(...arguments),this._walkSync=t.walkSync,this._statSync=e.statSync}dynamic(e,t){return this._walkSync(e,t)}static(e,t){let n=[];for(let r of e){let e=this._getFullEntryPath(r),i=this._getEntry(e,r,t);null!==i&&t.entryFilter(i)&&n.push(i)}return n}_getEntry(e,t,n){try{let n=this._getStat(e);return this._makeEntry(n,t)}catch(e){if(n.errorFilter(e))return null;throw e}}_getStat(e){return this._statSync(e,this._fsStatSettings)}}return SD.default=r,SD}(),t=SC();class n extends t.default{constructor(){super(...arguments),this._reader=new e.default(this._settings)}read(e){let t=this._getRootDirectory(e),n=this._getReaderOptions(e);return this.api(t,e,n).map(n.transform)}api(e,t,n){return t.dynamic?this._reader.dynamic(e,n):this._reader.static(t.patterns,n)}}return SA.default=n,SA}(),i=function(){let e;return oD?SN:(oD=1,Object.defineProperty(SN,"__esModule",{value:!0}),SN.DEFAULT_FILE_SYSTEM_ADAPTER=void 0,e=Math.max(h4.cpus().length,1),SN.DEFAULT_FILE_SYSTEM_ADAPTER={lstat:h3.lstat,lstatSync:h3.lstatSync,stat:h3.stat,statSync:h3.statSync,readdir:h3.readdir,readdirSync:h3.readdirSync},SN.default=class{constructor(t={}){this._options=t,this.absolute=this._getValue(this._options.absolute,!1),this.baseNameMatch=this._getValue(this._options.baseNameMatch,!1),this.braceExpansion=this._getValue(this._options.braceExpansion,!0),this.caseSensitiveMatch=this._getValue(this._options.caseSensitiveMatch,!0),this.concurrency=this._getValue(this._options.concurrency,e),this.cwd=this._getValue(this._options.cwd,process.cwd()),this.deep=this._getValue(this._options.deep,1/0),this.dot=this._getValue(this._options.dot,!1),this.extglob=this._getValue(this._options.extglob,!0),this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!0),this.fs=this._getFileSystemMethods(this._options.fs),this.globstar=this._getValue(this._options.globstar,!0),this.ignore=this._getValue(this._options.ignore,[]),this.markDirectories=this._getValue(this._options.markDirectories,!1),this.objectMode=this._getValue(this._options.objectMode,!1),this.onlyDirectories=this._getValue(this._options.onlyDirectories,!1),this.onlyFiles=this._getValue(this._options.onlyFiles,!0),this.stats=this._getValue(this._options.stats,!1),this.suppressErrors=this._getValue(this._options.suppressErrors,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!1),this.unique=this._getValue(this._options.unique,!0),this.onlyDirectories&&(this.onlyFiles=!1),this.stats&&(this.objectMode=!0),this.ignore=[].concat(this.ignore)}_getValue(e,t){return void 0===e?t:e}_getFileSystemMethods(e={}){return Object.assign(Object.assign({},SN.DEFAULT_FILE_SYSTEM_ADAPTER),e)}},SN)}(),a=TJ();async function o(e,n){l(e);let r=s(e,t.default,n),i=await Promise.all(r);return a.array.flatten(i)}function s(t,n,r){let a=[].concat(t),o=new i.default(r),s=e.generate(a,o),l=new n(o);return s.map(l.read,l)}function l(e){if(![].concat(e).every(e=>a.string.isString(e)&&!a.string.isEmpty(e)))throw TypeError("Patterns must be a string (non empty) or an array of strings")}return!function(t){var o,c;function u(e,t){l(e);let n=s(e,r.default,t);return a.array.flatten(n)}function _(e,t){l(e);let r=s(e,n.default,t);return a.stream.merge(r)}t.glob=t,t.globSync=u,t.globStream=_,t.async=t,t.sync=u,t.stream=_,t.generateTasks=function(t,n){l(t);let r=[].concat(t),a=new i.default(n);return e.generate(r,a)},t.isDynamicPattern=function(e,t){l(e);let n=new i.default(t);return a.pattern.isDynamicPattern(e,n)},t.escapePath=function(e){return l(e),a.path.escape(e)},t.convertPathToPattern=function(e){return l(e),a.path.convertPathToPattern(e)},(o=t.posix||(t.posix={})).escapePath=function(e){return l(e),a.path.escapePosixPath(e)},o.convertPathToPattern=function(e){return l(e),a.path.convertPosixPathToPattern(e)},(c=t.win32||(t.win32={})).escapePath=function(e){return l(e),a.path.escapeWindowsPath(e)},c.convertPathToPattern=function(e){return l(e),a.path.convertWindowsPathToPattern(e)}}(o||(o={})),oN=o}(),r=e(TF()),i=bv(),a=TT(),o=(0,t.default)("typescript-eslint:typescript-estree:parseSettings:resolveProjectList"),s=null;return TE}var SO={},SI={};function SL(){return oI||(oI=1,Object.defineProperty(SI,"__esModule",{value:!0}),SI.version=void 0,SI.version="8.47.0"),SI}function SM(){let e;if(oM)return T_;oM=1;var t,n=T_&&T_.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),r=T_&&T_.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=T_&&T_.__importStar||(t=function(e){return(t=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t})(e)},function(e){if(e&&e.__esModule)return e;var i={};if(null!=e)for(var a=t(e),o=0;o<a.length;o++)"default"!==a[o]&&n(i,e,a[o]);return r(i,e),i}),a=T_&&T_.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(T_,"__esModule",{value:!0}),T_.createParseSettings=function(t,n={}){var r,i,a;let x,E=(r=t,(0,d.isSourceFile)(r)?r.getFullText(r):"string"==typeof r?r:String(r)),k=(0,g.inferSingleRun)(n),P=(()=>{if(null==n.tsconfigRootDir){let e=(0,p.getInferredTSConfigRootDir)();if(l.default.resolve(e)!==e)throw Error(`inferred tsconfigRootDir should be a resolved absolute path, but received: ${JSON.stringify(e)}. This is a bug in typescript-eslint! Please report it to us at https://github.com/typescript-eslint/typescript-eslint/issues/new/choose.`);return e}if("string"==typeof n.tsconfigRootDir){let e=n.tsconfigRootDir;if(!l.default.isAbsolute(e)||"win32"===process.platform&&!/^[a-zA-Z]:/.test(e))throw Error(`parserOptions.tsconfigRootDir must be an absolute path, but received: ${JSON.stringify(e)}. This is a bug in your configuration; please supply an absolute path.`);return l.default.resolve(e)}throw Error(`If provided, parserOptions.tsconfigRootDir must be a string, but received a value of type "${typeof n.tsconfigRootDir}"`)})(),C="function"==typeof n.loggerFn,w=(0,u.ensureAbsolutePath)("string"==typeof n.filePath&&"<input>"!==n.filePath?n.filePath:n.jsx?"estree.tsx":"estree.ts",P),A=l.default.extname(w).toLowerCase(),D=(()=>{switch(n.jsDocParsingMode){case"all":default:return S.ParseAll;case"none":return S.ParseNone;case"type-info":return S.ParseForTypeInfo}})(),N={loc:!0===n.loc,range:!0===n.range,allowInvalidAST:!0===n.allowInvalidAST,code:t,codeFullText:E,comment:!0===n.comment,comments:[],debugLevel:!0===n.debugLevel?new Set(["typescript-eslint"]):Array.isArray(n.debugLevel)?new Set(n.debugLevel):new Set,errorOnTypeScriptSyntacticAndSemanticIssues:!1,errorOnUnknownASTType:!0===n.errorOnUnknownASTType,extraFileExtensions:Array.isArray(n.extraFileExtensions)&&n.extraFileExtensions.every(e=>"string"==typeof e)?n.extraFileExtensions:[],filePath:w,jsDocParsingMode:D,jsx:!0===n.jsx,log:"function"==typeof n.loggerFn?n.loggerFn:!1===n.loggerFn?()=>{}:console.log,preserveNodeMaps:!1!==n.preserveNodeMaps,programs:Array.isArray(n.programs)?n.programs:null,projects:new Map,projectService:n.projectService||n.project&&!1!==n.projectService&&"true"===process.env.TYPESCRIPT_ESLINT_PROJECT_SERVICE?(i=n.projectService,a={jsDocParsingMode:D,tsconfigRootDir:P},x="object"==typeof i?i:{},(0,_.validateDefaultProjectForFilesGlob)(x.allowDefaultProject),T??=(0,o.createProjectService)({options:x,...a})):void 0,setExternalModuleIndicator:"module"===n.sourceType||null==n.sourceType&&A===c.Extension.Mjs||null==n.sourceType&&A===c.Extension.Mts?e=>{e.externalModuleIndicator=!0}:void 0,singleRun:k,suppressDeprecatedPropertyWarnings:n.suppressDeprecatedPropertyWarnings??"test"!==process.env.NODE_ENV,tokens:!0===n.tokens?[]:null,tsconfigMatchCache:e??=new f.ExpiringCache(k?"Infinity":n.cacheLifetime?.glob??f.DEFAULT_TSCONFIG_CACHE_DURATION_SECONDS),tsconfigRootDir:P};if(N.projectService&&n.project&&"true"!==process.env.TYPESCRIPT_ESLINT_IGNORE_PROJECT_AND_PROJECT_SERVICE_ERROR)throw Error('Enabling "project" does nothing when "projectService" is enabled. You can remove the "project" setting.');if(N.debugLevel.size>0){let e=[];N.debugLevel.has("typescript-eslint")&&e.push("typescript-eslint:*"),(N.debugLevel.has("eslint")||s.default.enabled("eslint:*,-eslint:code-path"))&&e.push("eslint:*,-eslint:code-path"),s.default.enable(e.join(","))}if(Array.isArray(n.programs)){if(!n.programs.length)throw Error("You have set parserOptions.programs to an empty array. This will cause all files to not be found in existing programs. Either provide one or more existing TypeScript Program instances in the array, or remove the parserOptions.programs setting.");b("parserOptions.programs was provided, so parserOptions.project will be ignored.")}return N.programs||N.projectService||(N.projects=(0,h.resolveProjectList)({cacheLifetime:n.cacheLifetime,project:(0,m.getProjectConfigFiles)(N,n.project),projectFolderIgnoreList:n.projectFolderIgnoreList,singleRun:N.singleRun,tsconfigRootDir:P})),null==n.jsDocParsingMode&&0===N.projects.size&&null==N.programs&&null==N.projectService&&(N.jsDocParsingMode=S.ParseNone),(0,y.warnAboutTSVersion)(N,C),N},T_.clearTSConfigMatchCache=function(){e?.clear()},T_.clearTSServerProjectService=function(){T=null};let o=function(){var e,t;return i4?Td:(i4=1,e=Td&&Td.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),t=Td&&Td.__exportStar||function(t,n){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||e(n,t,r)},Object.defineProperty(Td,"__esModule",{value:!0}),t(function(){if(i6)return Tp;i6=1;var e=Tp&&Tp.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Tp,"__esModule",{value:!0}),Tp.createProjectService=function({jsDocParsingMode:e,options:t={},tsconfigRootDir:u}={}){let _={defaultProject:"tsconfig.json",...t},d=function(){if(i3)return Tm.exports;i3=1;if(Tm.exports)Tm.exports=yp();else throw Error("tsserverlibrary requires CommonJS; use typescript.js instead");return Tm.exports}(),p={...d.sys,clearImmediate,clearTimeout,setImmediate,setTimeout,watchDirectory:c,watchFile:c,...!_.loadTypeScriptPlugins&&{require:()=>({error:{message:"TypeScript plugins are not required when using parserOptions.projectService."},module:void 0})}};r("Creating Project Service with: %o",_);let f=new d.server.ProjectService({cancellationToken:{isCancellationRequested:()=>!1},eventHandler:s.enabled?e=>{s(e)}:void 0,host:p,jsDocParsingMode:e,logger:{close:l,endGroup:l,getLogFileName:()=>void 0,hasLevel:()=>!0,info(e){this.msg(e,d.server.Msg.Info)},loggingEnabled:()=>a.enabled||i.enabled||o.enabled,msg:(e,t)=>{switch(t){case d.server.Msg.Err:i(e);break;case d.server.Msg.Perf:o(e);break;default:a(e)}},perftrc(e){this.msg(e,d.server.Msg.Perf)},startGroup:l},session:void 0,useInferredProjectPerProjectRoot:!1,useSingleInferredProject:!1});f.setHostConfiguration({preferences:{includePackageJsonAutoImports:"off"}}),r("Enabling default project: %s",_.defaultProject);let m=(0,n.getParsedConfigFileFromTSServer)(d,_.defaultProject,!!t.defaultProject,u);return m&&f.setCompilerOptionsForInferredProjects(m.options),{allowDefaultProject:_.allowDefaultProject,lastReloadTimestamp:performance.now(),maximumDefaultProjectFileMatchCount:_.maximumDefaultProjectFileMatchCount_THIS_WILL_SLOW_DOWN_LINTING??8,service:f}};let t=e(bo()),n=function(){if(i2)return Tf;i2=1,Object.defineProperty(Tf,"__esModule",{value:!0}),Tf.getParsedConfigFileFromTSServer=function(t,n,r,i){try{return(0,e.getParsedConfigFile)(t,n,i)}catch(e){if(r)throw Error(`Could not read Project Service default project '${n}': ${e.message}`)}};let e=by();return Tf}(),r=(0,t.default)("typescript-eslint:project-service:createProjectService"),i=(0,t.default)("typescript-eslint:project-service:tsserver:err"),a=(0,t.default)("typescript-eslint:project-service:tsserver:info"),o=(0,t.default)("typescript-eslint:project-service:tsserver:perf"),s=(0,t.default)("typescript-eslint:project-service:tsserver:event"),l=()=>{},c=()=>({close:l});return Tp}(),Td),Td)}(),s=a(bo()),l=a(bh()),c=i(yp()),u=bv(),_=Th(),d=bu(),p=Tv(),f=TT(),m=function(){if(i9)return TS;i9=1;var e,t=TS&&TS.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),n=TS&&TS.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),r=TS&&TS.__importStar||(e=function(t){return(e=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t})(t)},function(r){if(r&&r.__esModule)return r;var i={};if(null!=r)for(var a=e(r),o=0;o<a.length;o++)"default"!==a[o]&&t(i,r,a[o]);return n(i,r),i}),i=TS&&TS.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(TS,"__esModule",{value:!0}),TS.getProjectConfigFiles=function(e,t){if(!0!==t)return null==t||!1===t?null:Array.isArray(t)?t:[t];l("Looking for tsconfig.json at or above file: %s",e.filePath);let n=s.dirname(e.filePath),r=[n];do{l("Checking tsconfig.json path: %s",n);let t=s.join(n,"tsconfig.json"),i=e.tsconfigMatchCache.get(n)??(o.existsSync(t)&&t);if(i){for(let t of r)e.tsconfigMatchCache.set(t,i);return[i]}n=s.dirname(n),r.push(n)}while(n.length>1&&n.length>=e.tsconfigRootDir.length);throw Error(`project was set to \`true\` but couldn't find any tsconfig.json relative to '${e.filePath}' within '${e.tsconfigRootDir}'.`)};let a=i(bo()),o=r(bl()),s=r(bh()),l=(0,a.default)("typescript-eslint:typescript-estree:parseSettings:getProjectConfigFiles");return TS}(),g=function(){if(ae)return Tx;ae=1;var e=Tx&&Tx.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Tx,"__esModule",{value:!0}),Tx.inferSingleRun=function(e){return!e?.extraFileExtensions?.length&&e?.project!=null&&null==e.programs&&"false"!==process.env.TSESTREE_SINGLE_RUN&&("true"===process.env.TSESTREE_SINGLE_RUN||!!(!e.disallowAutomaticSingleRunInference&&("true"===process.env.CI||["node_modules/.bin/eslint","node_modules/eslint/bin/eslint.js"].some(e=>process.argv.length>1&&process.argv[1].endsWith(t.default.normalize(e)))))&&!process.argv.includes("--fix"))};let t=e(bh());return Tx}(),h=SF(),y=function(){var e,t,n,r,i;let a,o,s,l,c,u;return oL?SO:(oL=1,e=SO&&SO.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),t=SO&&SO.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),r=SO&&SO.__importStar||(n=function(e){return(n=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t})(e)},function(r){if(r&&r.__esModule)return r;var i={};if(null!=r)for(var a=n(r),o=0;o<a.length;o++)"default"!==a[o]&&e(i,r,a[o]);return t(i,r),i}),i=SO&&SO.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},Object.defineProperty(SO,"__esModule",{value:!0}),SO.SUPPORTED_TYPESCRIPT_VERSIONS=void 0,SO.warnAboutTSVersion=function(e,t){if(!c&&!u){if(t||"undefined"!=typeof process&&process.stdout?.isTTY){let t="=============",n=[t,"\n\nWARNING: You are currently running a version of TypeScript which is not officially supported by @typescript-eslint/typescript-estree.\n\n",`* @typescript-eslint/typescript-estree version: ${s.version}`,`* Supported TypeScript versions: ${SO.SUPPORTED_TYPESCRIPT_VERSIONS}`,`* Your TypeScript version: ${l}`,"\n\nPlease only submit bug reports when using the officially supported version.\n\n",t].join("\n");e.log(n)}u=!0}},a=i(bK()),o=r(yp()),s=SL(),SO.SUPPORTED_TYPESCRIPT_VERSIONS=">=4.8.4 <6.0.0",l=o.version,c=a.default.satisfies(l,[SO.SUPPORTED_TYPESCRIPT_VERSIONS].join(" || ")),u=!1,SO)}(),b=(0,s.default)("typescript-eslint:typescript-estree:parseSettings:createParseSettings"),T=null,S={ParseAll:c.JSDocParsingMode?.ParseAll,ParseForTypeErrors:c.JSDocParsingMode?.ParseForTypeErrors,ParseForTypeInfo:c.JSDocParsingMode?.ParseForTypeInfo,ParseNone:c.JSDocParsingMode?.ParseNone};return T_}var SR={},Sj={},SY=s1(function(){if(oB)return oU;oB=1;var e=function(){if(oY)return oj;function e(e,r,i){e instanceof RegExp&&(e=t(e,i)),r instanceof RegExp&&(r=t(r,i));var a=n(e,r,i);return a&&{start:a[0],end:a[1],pre:i.slice(0,a[0]),body:i.slice(a[0]+e.length,a[1]),post:i.slice(a[1]+r.length)}}function t(e,t){var n=t.match(e);return n?n[0]:null}function n(e,t,n){var r,i,a,o,s,l=n.indexOf(e),c=n.indexOf(t,l+1),u=l;if(l>=0&&c>0){if(e===t)return[l,c];for(r=[],a=n.length;u>=0&&!s;)u==l?(r.push(u),l=n.indexOf(e,u+1)):1==r.length?s=[r.pop(),c]:((i=r.pop())<a&&(a=i,o=c),c=n.indexOf(t,u+1)),u=l<c&&l>=0?l:c;r.length&&(s=[a,o])}return s}return oY=1,oj=e,e.range=n,oj}(),t="\0SLASH"+Math.random()+"\0",n="\0OPEN"+Math.random()+"\0",r="\0CLOSE"+Math.random()+"\0",i="\0COMMA"+Math.random()+"\0",a="\0PERIOD"+Math.random()+"\0";function o(e){return parseInt(e,10)==e?parseInt(e,10):e.charCodeAt(0)}function s(e){return e.split(t).join("\\").split(n).join("{").split(r).join("}").split(i).join(",").split(a).join(".")}function l(e){return"{"+e+"}"}function c(e){return/^-?0\d/.test(e)}function u(e,t){return e<=t}function _(e,t){return e>=t}return oU=function(d){return d?("{}"===d.substr(0,2)&&(d="\\{\\}"+d.substr(2)),(function t(n,i){var a=[],s=e("{","}",n);if(!s)return[n];var d=s.pre,p=s.post.length?t(s.post,!1):[""];if(/\$$/.test(s.pre))for(var f=0;f<p.length;f++){var m=d+"{"+s.body+"}"+p[f];a.push(m)}else{var g=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(s.body),h=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(s.body),y=g||h,b=s.body.indexOf(",")>=0;if(!y&&!b)return s.post.match(/,(?!,).*\}/)?t(n=s.pre+"{"+s.body+r+s.post):[n];if(y)T=s.body.split(/\.\./);else if(1===(T=function t(n){if(!n)return[""];var r=[],i=e("{","}",n);if(!i)return n.split(",");var a=i.pre,o=i.body,s=i.post,l=a.split(",");l[l.length-1]+="{"+o+"}";var c=t(s);return s.length&&(l[l.length-1]+=c.shift(),l.push.apply(l,c)),r.push.apply(r,l),r}(s.body)).length&&1===(T=t(T[0],!1).map(l)).length)return p.map(function(e){return s.pre+T[0]+e});if(y){var T,S,x,E=o(T[0]),k=o(T[1]),P=Math.max(T[0].length,T[1].length),C=3==T.length?Math.abs(o(T[2])):1,w=u;k<E&&(C*=-1,w=_);var A=T.some(c);S=[];for(var D=E;w(D,k);D+=C){if(h)"\\"===(x=String.fromCharCode(D))&&(x="");else if(x=String(D),A){var N=P-x.length;if(N>0){var F=Array(N+1).join("0");x=D<0?"-"+F+x.slice(1):F+x}}S.push(x)}}else{S=[];for(var O=0;O<T.length;O++)S.push.apply(S,t(T[O],!1))}for(var O=0;O<S.length;O++)for(var f=0;f<p.length;f++){var m=d+S[O]+p[f];(!i||y||m)&&a.push(m)}}return a})(d.split("\\\\").join(t).split("\\{").join(n).split("\\}").join(r).split("\\,").join(i).split("\\.").join(a),!0).map(s)):[]}}());let SU=e=>{if("string"!=typeof e)throw TypeError("invalid pattern");if(e.length>65536)throw TypeError("pattern is too long")},SB={"[:alnum:]":["\\p{L}\\p{Nl}\\p{Nd}",!0],"[:alpha:]":["\\p{L}\\p{Nl}",!0],"[:ascii:]":["\\x00-\\x7f",!1],"[:blank:]":["\\p{Zs}\\t",!0],"[:cntrl:]":["\\p{Cc}",!0],"[:digit:]":["\\p{Nd}",!0],"[:graph:]":["\\p{Z}\\p{C}",!0,!0],"[:lower:]":["\\p{Ll}",!0],"[:print:]":["\\p{C}",!0],"[:punct:]":["\\p{P}",!0],"[:space:]":["\\p{Z}\\t\\r\\n\\v\\f",!0],"[:upper:]":["\\p{Lu}",!0],"[:word:]":["\\p{L}\\p{Nl}\\p{Nd}\\p{Pc}",!0],"[:xdigit:]":["A-Fa-f0-9",!1]},SV=e=>e.replace(/[[\]\\-]/g,"\\$&"),SJ=(e,t)=>{if("["!==e.charAt(t))throw Error("not in a brace expression");let n=[],r=[],i=t+1,a=!1,o=!1,s=!1,l=!1,c=t,u="";l:for(;i<e.length;){let _=e.charAt(i);if(("!"===_||"^"===_)&&i===t+1){l=!0,i++;continue}if("]"===_&&a&&!s){c=i+1;break}if(a=!0,"\\"===_&&!s){s=!0,i++;continue}if("["===_&&!s){for(let[a,[s,l,c]]of Object.entries(SB))if(e.startsWith(a,i)){if(u)return["$.",!1,e.length-t,!0];i+=a.length,c?r.push(s):n.push(s),o=o||l;continue l}}if(s=!1,u){_>u?n.push(SV(u)+"-"+SV(_)):_===u&&n.push(SV(_)),u="",i++;continue}if(e.startsWith("-]",i+1)){n.push(SV(_+"-")),i+=2;continue}if(e.startsWith("-",i+1)){u=_,i+=2;continue}n.push(SV(_)),i++}if(c<i)return["",!1,0,!1];if(!n.length&&!r.length)return["$.",!1,e.length-t,!0];if(0===r.length&&1===n.length&&/^\\?.$/.test(n[0])&&!l)return[(2===n[0].length?n[0].slice(-1):n[0]).replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),!1,c-t,!1];let _="["+(l?"^":"")+n.join("")+"]",d="["+(l?"":"^")+r.join("")+"]";return[n.length&&r.length?"("+_+"|"+d+")":n.length?_:d,o,c-t,!0]},Sz=(e,{windowsPathsNoEscape:t=!1}={})=>t?e.replace(/\[([^\/\\])\]/g,"$1"):e.replace(/((?!\\).|^)\[([^\/\\])\]/g,"$1$2").replace(/\\([^\/])/g,"$1"),Sq=new Set(["!","?","+","*","@"]),S$=e=>Sq.has(e),SW="(?!\\.)",SK=new Set(["[","."]),SH=new Set(["..","."]),SG=new Set("().*{}+?[]^$\\!"),SX=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),SQ="[^/]",SZ=SQ+"*?",S0=SQ+"+?";class S1{type;#K;#H;#G=!1;#X=[];#Q;#Z;#ee;#et=!1;#p;#en;#er=!1;constructor(e,t,n={}){this.type=e,e&&(this.#H=!0),this.#Q=t,this.#K=this.#Q?this.#Q.#K:this,this.#p=this.#K===this?n:this.#K.#p,this.#ee=this.#K===this?[]:this.#K.#ee,"!"!==e||this.#K.#et||this.#ee.push(this),this.#Z=this.#Q?this.#Q.#X.length:0}get hasMagic(){if(void 0!==this.#H)return this.#H;for(let e of this.#X)if("string"!=typeof e&&(e.type||e.hasMagic))return this.#H=!0;return this.#H}toString(){return void 0!==this.#en?this.#en:this.type?this.#en=this.type+"("+this.#X.map(e=>String(e)).join("|")+")":this.#en=this.#X.map(e=>String(e)).join("")}#ei(){let e;if(this!==this.#K)throw Error("should only call on root");if(this.#et)return this;for(this.toString(),this.#et=!0;e=this.#ee.pop();){if("!"!==e.type)continue;let t=e,n=t.#Q;for(;n;){for(let r=t.#Z+1;!n.type&&r<n.#X.length;r++)for(let t of e.#X){if("string"==typeof t)throw Error("string part in extglob AST??");t.copyIn(n.#X[r])}n=(t=n).#Q}}return this}push(...e){for(let t of e)if(""!==t){if("string"!=typeof t&&!(t instanceof S1&&t.#Q===this))throw Error("invalid part: "+t);this.#X.push(t)}}toJSON(){let e=null===this.type?this.#X.slice().map(e=>"string"==typeof e?e:e.toJSON()):[this.type,...this.#X.map(e=>e.toJSON())];return this.isStart()&&!this.type&&e.unshift([]),this.isEnd()&&(this===this.#K||this.#K.#et&&this.#Q?.type==="!")&&e.push({}),e}isStart(){if(this.#K===this)return!0;if(!this.#Q?.isStart())return!1;if(0===this.#Z)return!0;let e=this.#Q;for(let t=0;t<this.#Z;t++){let n=e.#X[t];if(!(n instanceof S1&&"!"===n.type))return!1}return!0}isEnd(){if(this.#K===this||this.#Q?.type==="!")return!0;if(!this.#Q?.isEnd())return!1;if(!this.type)return this.#Q?.isEnd();let e=this.#Q?this.#Q.#X.length:0;return this.#Z===e-1}copyIn(e){"string"==typeof e?this.push(e):this.push(e.clone(this))}clone(e){let t=new S1(this.type,e);for(let e of this.#X)t.copyIn(e);return t}static #ea(e,t,n,r){let i=!1,a=!1,o=-1,s=!1;if(null===t.type){let l=n,c="";for(;l<e.length;){let n=e.charAt(l++);if(i||"\\"===n){i=!i,c+=n;continue}if(a){l===o+1?("^"===n||"!"===n)&&(s=!0):"]"!==n||l===o+2&&s||(a=!1),c+=n;continue}if("["===n){a=!0,o=l,s=!1,c+=n;continue}if(!r.noext&&S$(n)&&"("===e.charAt(l)){t.push(c),c="";let i=new S1(n,t);l=S1.#ea(e,i,l,r),t.push(i);continue}c+=n}return t.push(c),l}let l=n+1,c=new S1(null,t),u=[],_="";for(;l<e.length;){let n=e.charAt(l++);if(i||"\\"===n){i=!i,_+=n;continue}if(a){l===o+1?("^"===n||"!"===n)&&(s=!0):"]"!==n||l===o+2&&s||(a=!1),_+=n;continue}if("["===n){a=!0,o=l,s=!1,_+=n;continue}if(S$(n)&&"("===e.charAt(l)){c.push(_),_="";let t=new S1(n,c);c.push(t),l=S1.#ea(e,t,l,r);continue}if("|"===n){c.push(_),_="",u.push(c),c=new S1(null,t);continue}if(")"===n)return""===_&&0===t.#X.length&&(t.#er=!0),c.push(_),_="",t.push(...u,c),l;_+=n}return t.type=null,t.#H=void 0,t.#X=[e.substring(n-1)],l}static fromGlob(e,t={}){let n=new S1(null,void 0,t);return S1.#ea(e,n,0,t),n}toMMPattern(){if(this!==this.#K)return this.#K.toMMPattern();let e=this.toString(),[t,n,r,i]=this.toRegExpSource();return r||this.#H||this.#p.nocase&&!this.#p.nocaseMagicOnly&&e.toUpperCase()!==e.toLowerCase()?Object.assign(RegExp(`^${t}$`,(this.#p.nocase?"i":"")+(i?"u":"")),{_src:t,_glob:e}):n}get options(){return this.#p}toRegExpSource(e){let t=e??!!this.#p.dot;if(this.#K===this&&this.#ei(),!this.type){let n=this.isStart()&&this.isEnd(),r=this.#X.map(t=>{let[r,i,a,o]="string"==typeof t?S1.#eo(t,this.#H,n):t.toRegExpSource(e);return this.#H=this.#H||a,this.#G=this.#G||o,r}).join(""),i="";if(this.isStart()&&"string"==typeof this.#X[0]&&!(1===this.#X.length&&SH.has(this.#X[0]))){let n=t&&SK.has(r.charAt(0))||r.startsWith("\\.")&&SK.has(r.charAt(2))||r.startsWith("\\.\\.")&&SK.has(r.charAt(4)),a=!t&&!e&&SK.has(r.charAt(0));i=n?"(?!(?:^|/)\\.\\.?(?:$|/))":a?SW:""}let a="";return this.isEnd()&&this.#K.#et&&this.#Q?.type==="!"&&(a="(?:$|\\/)"),[i+r+a,Sz(r),this.#H=!!this.#H,this.#G]}let n="*"===this.type||"+"===this.type,r="!"===this.type?"(?:(?!(?:":"(?:",i=this.#es(t);if(this.isStart()&&this.isEnd()&&!i&&"!"!==this.type){let e=this.toString();return this.#X=[e],this.type=null,this.#H=void 0,[e,Sz(this.toString()),!1,!1]}let a=!n||e||t||!SW?"":this.#es(!0);a===i&&(a=""),a&&(i=`(?:${i})(?:${a})*?`);return["!"===this.type&&this.#er?(this.isStart()&&!t?SW:"")+S0:r+i+("!"===this.type?"))"+(!this.isStart()||t||e?"":SW)+SZ+")":"@"===this.type?")":"?"===this.type?")?":"+"===this.type&&a?")":"*"===this.type&&a?")?":`)${this.type}`),Sz(i),this.#H=!!this.#H,this.#G]}#es(e){return this.#X.map(t=>{if("string"==typeof t)throw Error("string type in extglob ast??");let[n,r,i,a]=t.toRegExpSource(e);return this.#G=this.#G||a,n}).filter(e=>!(this.isStart()&&this.isEnd())||!!e).join("|")}static #eo(e,t,n=!1){let r=!1,i="",a=!1;for(let o=0;o<e.length;o++){let s=e.charAt(o);if(r){r=!1,i+=(SG.has(s)?"\\":"")+s;continue}if("\\"===s){o===e.length-1?i+="\\\\":r=!0;continue}if("["===s){let[n,r,s,l]=SJ(e,o);if(s){i+=n,a=a||r,o+=s-1,t=t||l;continue}}if("*"===s){n&&"*"===e?i+=S0:i+=SZ,t=!0;continue}if("?"===s){i+=SQ,t=!0;continue}i+=SX(s)}return[i,Sz(e),!!t,a]}}let S2=(e,{windowsPathsNoEscape:t=!1}={})=>t?e.replace(/[?*()[\]]/g,"[$&]"):e.replace(/[?*()[\]\\]/g,"\\$&"),S3=(e,t,n={})=>(SU(t),(!!n.nocomment||"#"!==t.charAt(0))&&new xg(t,n).match(e)),S6=/^\*+([^+@!?\*\[\(]*)$/,S4=/^\*+\.\*+$/,S8=e=>!e.startsWith(".")&&e.includes("."),S5=e=>"."!==e&&".."!==e&&e.includes("."),S7=/^\.\*+$/,S9=e=>"."!==e&&".."!==e&&e.startsWith("."),xe=/^\*+$/,xt=e=>0!==e.length&&!e.startsWith("."),xn=e=>0!==e.length&&"."!==e&&".."!==e,xr=/^\?+([^+@!?\*\[\(]*)?$/,xi=([e])=>{let t=e.length;return e=>e.length===t&&!e.startsWith(".")},xa=([e])=>{let t=e.length;return e=>e.length===t&&"."!==e&&".."!==e},xo="object"==typeof process&&process?"object"==typeof process.env&&process.env&&process.env.__MINIMATCH_TESTING_PLATFORM__||process.platform:"posix",xs="win32"===xo?"\\":"/";S3.sep=xs;let xl=Symbol("globstar **");S3.GLOBSTAR=xl;let xc=(e,t={})=>n=>S3(n,e,t);S3.filter=xc;let xu=(e,t={})=>Object.assign({},e,t),x_=e=>{if(!e||"object"!=typeof e||!Object.keys(e).length)return S3;let t=S3;return Object.assign((n,r,i={})=>t(n,r,xu(e,i)),{Minimatch:class extends t.Minimatch{constructor(t,n={}){super(t,xu(e,n))}static defaults(n){return t.defaults(xu(e,n)).Minimatch}},AST:class extends t.AST{constructor(t,n,r={}){super(t,n,xu(e,r))}static fromGlob(n,r={}){return t.AST.fromGlob(n,xu(e,r))}},unescape:(n,r={})=>t.unescape(n,xu(e,r)),escape:(n,r={})=>t.escape(n,xu(e,r)),filter:(n,r={})=>t.filter(n,xu(e,r)),defaults:n=>t.defaults(xu(e,n)),makeRe:(n,r={})=>t.makeRe(n,xu(e,r)),braceExpand:(n,r={})=>t.braceExpand(n,xu(e,r)),match:(n,r,i={})=>t.match(n,r,xu(e,i)),sep:t.sep,GLOBSTAR:xl})};S3.defaults=x_;let xd=(e,t={})=>(SU(e),t.nobrace||!/\{(?:(?!\{).)*\}/.test(e))?[e]:SY(e);S3.braceExpand=xd;let xp=(e,t={})=>new xg(e,t).makeRe();S3.makeRe=xp;let xf=(e,t,n={})=>{let r=new xg(t,n);return e=e.filter(e=>r.match(e)),r.options.nonull&&!e.length&&e.push(t),e};S3.match=xf;let xm=/[?*]|[+@!]\(.*?\)|\[|\]/;class xg{options;set;pattern;windowsPathsNoEscape;nonegate;negate;comment;empty;preserveMultipleSlashes;partial;globSet;globParts;nocase;isWindows;platform;windowsNoMagicRoot;regexp;constructor(e,t={}){SU(e),t=t||{},this.options=t,this.pattern=e,this.platform=t.platform||xo,this.isWindows="win32"===this.platform,this.windowsPathsNoEscape=!!t.windowsPathsNoEscape||!1===t.allowWindowsEscape,this.windowsPathsNoEscape&&(this.pattern=this.pattern.replace(/\\/g,"/")),this.preserveMultipleSlashes=!!t.preserveMultipleSlashes,this.regexp=null,this.negate=!1,this.nonegate=!!t.nonegate,this.comment=!1,this.empty=!1,this.partial=!!t.partial,this.nocase=!!this.options.nocase,this.windowsNoMagicRoot=void 0!==t.windowsNoMagicRoot?t.windowsNoMagicRoot:!!(this.isWindows&&this.nocase),this.globSet=[],this.globParts=[],this.set=[],this.make()}hasMagic(){if(this.options.magicalBraces&&this.set.length>1)return!0;for(let e of this.set)for(let t of e)if("string"!=typeof t)return!0;return!1}debug(){}make(){let e=this.pattern,t=this.options;if(!t.nocomment&&"#"===e.charAt(0)){this.comment=!0;return}if(!e){this.empty=!0;return}this.parseNegate(),this.globSet=[...new Set(this.braceExpand())],t.debug&&(this.debug=(...e)=>console.error(...e)),this.debug(this.pattern,this.globSet);let n=this.globSet.map(e=>this.slashSplit(e));this.globParts=this.preprocess(n),this.debug(this.pattern,this.globParts);let r=this.globParts.map((e,t,n)=>{if(this.isWindows&&this.windowsNoMagicRoot){let t=""===e[0]&&""===e[1]&&("?"===e[2]||!xm.test(e[2]))&&!xm.test(e[3]),n=/^[a-z]:/i.test(e[0]);if(t)return[...e.slice(0,4),...e.slice(4).map(e=>this.parse(e))];if(n)return[e[0],...e.slice(1).map(e=>this.parse(e))]}return e.map(e=>this.parse(e))});if(this.debug(this.pattern,r),this.set=r.filter(e=>-1===e.indexOf(!1)),this.isWindows)for(let e=0;e<this.set.length;e++){let t=this.set[e];""===t[0]&&""===t[1]&&"?"===this.globParts[e][2]&&"string"==typeof t[3]&&/^[a-z]:$/i.test(t[3])&&(t[2]="?")}this.debug(this.pattern,this.set)}preprocess(e){if(this.options.noglobstar)for(let t=0;t<e.length;t++)for(let n=0;n<e[t].length;n++)"**"===e[t][n]&&(e[t][n]="*");let{optimizationLevel:t=1}=this.options;return t>=2?(e=this.firstPhasePreProcess(e),e=this.secondPhasePreProcess(e)):e=t>=1?this.levelOneOptimize(e):this.adjascentGlobstarOptimize(e),e}adjascentGlobstarOptimize(e){return e.map(e=>{let t=-1;for(;-1!==(t=e.indexOf("**",t+1));){let n=t;for(;"**"===e[n+1];)n++;n!==t&&e.splice(t,n-t)}return e})}levelOneOptimize(e){return e.map(e=>0===(e=e.reduce((e,t)=>{let n=e[e.length-1];return"**"===t&&"**"===n||(".."===t&&n&&".."!==n&&"."!==n&&"**"!==n?e.pop():e.push(t)),e},[])).length?[""]:e)}levelTwoFileOptimize(e){Array.isArray(e)||(e=this.slashSplit(e));let t=!1;do{if(t=!1,!this.preserveMultipleSlashes){for(let n=1;n<e.length-1;n++){let r=e[n];(1!==n||""!==r||""!==e[0])&&("."===r||""===r)&&(t=!0,e.splice(n,1),n--)}"."===e[0]&&2===e.length&&("."===e[1]||""===e[1])&&(t=!0,e.pop())}let n=0;for(;-1!==(n=e.indexOf("..",n+1));){let r=e[n-1];r&&"."!==r&&".."!==r&&"**"!==r&&(t=!0,e.splice(n-1,2),n-=2)}}while(t);return 0===e.length?[""]:e}firstPhasePreProcess(e){let t=!1;do for(let n of(t=!1,e)){let r=-1;for(;-1!==(r=n.indexOf("**",r+1));){let i=r;for(;"**"===n[i+1];)i++;i>r&&n.splice(r+1,i-r);let a=n[r+1],o=n[r+2],s=n[r+3];if(".."!==a||!o||"."===o||".."===o||!s||"."===s||".."===s)continue;t=!0,n.splice(r,1);let l=n.slice(0);l[r]="**",e.push(l),r--}if(!this.preserveMultipleSlashes){for(let e=1;e<n.length-1;e++){let r=n[e];(1!==e||""!==r||""!==n[0])&&("."===r||""===r)&&(t=!0,n.splice(e,1),e--)}"."===n[0]&&2===n.length&&("."===n[1]||""===n[1])&&(t=!0,n.pop())}let i=0;for(;-1!==(i=n.indexOf("..",i+1));){let e=n[i-1];if(e&&"."!==e&&".."!==e&&"**"!==e){t=!0;let e=1===i&&"**"===n[i+1]?["."]:[];n.splice(i-1,2,...e),0===n.length&&n.push(""),i-=2}}}while(t);return e}secondPhasePreProcess(e){for(let t=0;t<e.length-1;t++)for(let n=t+1;n<e.length;n++){let r=this.partsMatch(e[t],e[n],!this.preserveMultipleSlashes);if(r){e[t]=[],e[n]=r;break}}return e.filter(e=>e.length)}partsMatch(e,t,n=!1){let r=0,i=0,a=[],o="";for(;r<e.length&&i<t.length;)if(e[r]===t[i])a.push("b"===o?t[i]:e[r]),r++,i++;else if(n&&"**"===e[r]&&t[i]===e[r+1])a.push(e[r]),r++;else if(n&&"**"===t[i]&&e[r]===t[i+1])a.push(t[i]),i++;else if("*"===e[r]&&t[i]&&(this.options.dot||!t[i].startsWith("."))&&"**"!==t[i]){if("b"===o)return!1;o="a",a.push(e[r]),r++,i++}else{if("*"!==t[i]||!e[r]||!this.options.dot&&e[r].startsWith(".")||"**"===e[r]||"a"===o)return!1;o="b",a.push(t[i]),r++,i++}return e.length===t.length&&a}parseNegate(){if(this.nonegate)return;let e=this.pattern,t=!1,n=0;for(let r=0;r<e.length&&"!"===e.charAt(r);r++)t=!t,n++;n&&(this.pattern=e.slice(n)),this.negate=t}matchOne(e,t,n=!1){let r=this.options;if(this.isWindows){let n="string"==typeof e[0]&&/^[a-z]:$/i.test(e[0]),r=!n&&""===e[0]&&""===e[1]&&"?"===e[2]&&/^[a-z]:$/i.test(e[3]),i="string"==typeof t[0]&&/^[a-z]:$/i.test(t[0]),a=!i&&""===t[0]&&""===t[1]&&"?"===t[2]&&"string"==typeof t[3]&&/^[a-z]:$/i.test(t[3]),o=r?3:n?0:void 0,s=a?3:i?0:void 0;if("number"==typeof o&&"number"==typeof s){let[n,r]=[e[o],t[s]];n.toLowerCase()===r.toLowerCase()&&(t[s]=n,s>o?t=t.slice(s):o>s&&(e=e.slice(o)))}}let{optimizationLevel:i=1}=this.options;i>=2&&(e=this.levelTwoFileOptimize(e)),this.debug("matchOne",this,{file:e,pattern:t}),this.debug("matchOne",e.length,t.length);for(var a=0,o=0,s=e.length,l=t.length;a<s&&o<l;a++,o++){let i;this.debug("matchOne loop");var c=t[o],u=e[a];if(this.debug(t,c,u),!1===c)return!1;if(c===xl){this.debug("GLOBSTAR",[t,c,u]);var _=a,d=o+1;if(d===l){for(this.debug("** at the end");a<s;a++)if("."===e[a]||".."===e[a]||!r.dot&&"."===e[a].charAt(0))return!1;return!0}for(;_<s;){var p=e[_];if(this.debug("\nglobstar while",e,_,t,d,p),this.matchOne(e.slice(_),t.slice(d),n))return this.debug("globstar found match!",_,s,p),!0;if("."===p||".."===p||!r.dot&&"."===p.charAt(0)){this.debug("dot detected!",e,_,t,d);break}this.debug("globstar swallow a segment, and continue"),_++}if(n&&(this.debug("\n>>> no match, partial?",e,_,t,d),_===s))return!0;return!1}if("string"==typeof c?(i=u===c,this.debug("string match",c,u,i)):(i=c.test(u),this.debug("pattern match",c,u,i)),!i)return!1}if(a===s&&o===l)return!0;if(a===s)return n;if(o===l)return a===s-1&&""===e[a];throw Error("wtf?")}braceExpand(){return xd(this.pattern,this.options)}parse(e){let t;SU(e);let n=this.options;if("**"===e)return xl;if(""===e)return"";let r=null;(t=e.match(xe))?r=n.dot?xn:xt:(t=e.match(S6))?r=(n.nocase?n.dot?e=>(e=e.toLowerCase(),t=>t.toLowerCase().endsWith(e)):e=>(e=e.toLowerCase(),t=>!t.startsWith(".")&&t.toLowerCase().endsWith(e)):n.dot?e=>t=>t.endsWith(e):e=>t=>!t.startsWith(".")&&t.endsWith(e))(t[1]):(t=e.match(xr))?r=(n.nocase?n.dot?([e,t=""])=>{let n=xa([e]);return t?(t=t.toLowerCase(),e=>n(e)&&e.toLowerCase().endsWith(t)):n}:([e,t=""])=>{let n=xi([e]);return t?(t=t.toLowerCase(),e=>n(e)&&e.toLowerCase().endsWith(t)):n}:n.dot?([e,t=""])=>{let n=xa([e]);return t?e=>n(e)&&e.endsWith(t):n}:([e,t=""])=>{let n=xi([e]);return t?e=>n(e)&&e.endsWith(t):n})(t):(t=e.match(S4))?r=n.dot?S5:S8:(t=e.match(S7))&&(r=S9);let i=S1.fromGlob(e,this.options).toMMPattern();return r&&"object"==typeof i&&Reflect.defineProperty(i,"test",{value:r}),i}makeRe(){if(this.regexp||!1===this.regexp)return this.regexp;let e=this.set;if(!e.length)return this.regexp=!1,this.regexp;let t=this.options,n=t.noglobstar?"[^/]*?":t.dot?"(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?":"(?:(?!(?:\\/|^)\\.).)*?",r=new Set(t.nocase?["i"]:[]),i=e.map(e=>{let t=e.map(e=>{if(e instanceof RegExp)for(let t of e.flags.split(""))r.add(t);return"string"==typeof e?e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"):e===xl?xl:e._src});return t.forEach((e,r)=>{let i=t[r+1],a=t[r-1];e===xl&&a!==xl&&(void 0===a?void 0!==i&&i!==xl?t[r+1]="(?:\\/|"+n+"\\/)?"+i:t[r]=n:void 0===i?t[r-1]=a+"(?:\\/|"+n+")?":i!==xl&&(t[r-1]=a+"(?:\\/|\\/"+n+"\\/)"+i,t[r+1]=xl))}),t.filter(e=>e!==xl).join("/")}).join("|"),[a,o]=e.length>1?["(?:",")"]:["",""];i="^"+a+i+o+"$",this.negate&&(i="^(?!"+i+").+$");try{this.regexp=new RegExp(i,[...r].join(""))}catch(e){this.regexp=!1}return this.regexp}slashSplit(e){return this.preserveMultipleSlashes?e.split("/"):this.isWindows&&/^\/\/[^\/]+/.test(e)?["",...e.split(/\/+/)]:e.split(/\/+/)}match(e,t=this.partial){if(this.debug("match",e,this.pattern),this.comment)return!1;if(this.empty)return""===e;if("/"===e&&t)return!0;let n=this.options;this.isWindows&&(e=e.split("\\").join("/"));let r=this.slashSplit(e);this.debug(this.pattern,"split",r);let i=this.set;this.debug(this.pattern,"set",i);let a=r[r.length-1];if(!a)for(let e=r.length-2;!a&&e>=0;e--)a=r[e];for(let e=0;e<i.length;e++){let o=i[e],s=r;if(n.matchBase&&1===o.length&&(s=[a]),this.matchOne(s,o,t)){if(n.flipNegate)return!0;return!this.negate}}return!n.flipNegate&&this.negate}static defaults(e){return S3.defaults(e).Minimatch}}S3.AST=S1,S3.Minimatch=xg,S3.escape=S2,S3.unescape=Sz;var xh=s2(Object.freeze({__proto__:null,AST:S1,GLOBSTAR:xl,Minimatch:xg,braceExpand:xd,defaults:x_,escape:S2,filter:xc,makeRe:xp,match:xf,minimatch:S3,sep:xs,unescape:Sz}));let xy=sE.createRequire("undefined"==typeof document?require("url").pathToFileURL(__filename).href:sB&&"SCRIPT"===sB.tagName.toUpperCase()&&sB.src||new URL("index.cjs",document.baseURI).href);function xv(){if(oJ)return bT;oJ=1;var e=bT&&bT.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(bT,"__esModule",{value:!0}),bT.clearProgramCache=function(){f.clear()},bT.clearDefaultProjectMatchedFiles=function(){m.clear()},bT.parse=function(e,t){let{ast:r}=function(e,t,r){let i=(0,u.createParseSettings)(e,t);if(t?.errorOnTypeScriptSyntacticAndSemanticIssues)throw Error('"errorOnTypeScriptSyntacticAndSemanticIssues" is only supported for parseAndGenerateServices()');let a=(0,o.createSourceFile)(i),{astMaps:s,estree:l}=(0,n.astConverter)(a,i,r);return{ast:l,esTreeNodeToTSNodeMap:s.esTreeNodeToTSNodeMap,tsNodeToESTreeNodeMap:s.tsNodeToESTreeNodeMap}}(e,t,!1);return r},bT.clearParseAndGenerateServicesCalls=function(){g={}},bT.parseAndGenerateServices=function(e,t){let h=(0,u.createParseSettings)(e,t);h.singleRun&&!h.programs&&h.projects.size>0&&(h.programs={*[Symbol.iterator](){for(let e of h.projects){let t=f.get(e[0]);if(t)yield t;else{p("Detected single-run/CLI usage, creating Program once ahead of time for project: %s",e);let t=(0,l.createProgramFromConfigFile)(e[1]);f.set(e[0],t),yield t}}}});let y=null!=h.programs||h.projects.size>0||!!h.projectService;if("boolean"==typeof t.errorOnTypeScriptSyntacticAndSemanticIssues&&t.errorOnTypeScriptSyntacticAndSemanticIssues&&(h.errorOnTypeScriptSyntacticAndSemanticIssues=!0),h.errorOnTypeScriptSyntacticAndSemanticIssues&&!y)throw Error("Cannot calculate TypeScript semantic issues without a valid project.");h.singleRun&&t.filePath&&(g[t.filePath]=(g[t.filePath]||0)+1);let{ast:b,program:T}=h.singleRun&&t.filePath&&g[t.filePath]>1?(0,i.createIsolatedProgram)(h):function(e,t){if(e.projectService){let n=(0,d.useProgramFromProjectService)(e.projectService,e,t,m);if(n)return n}return e.programs?(0,l.useProvidedPrograms)(e.programs,e):t?(0,a.createProjectProgram)(e,(0,s.getWatchProgramsForProjects)(e)):(0,o.createNoProgram)(e)}(h,y),S="boolean"!=typeof h.preserveNodeMaps||h.preserveNodeMaps,{astMaps:x,estree:E}=(0,n.astConverter)(b,h,S);if(T&&h.errorOnTypeScriptSyntacticAndSemanticIssues){let e=(0,_.getFirstSemanticOrSyntacticError)(T,b);if(e)throw(0,r.convertError)(e)}return{ast:E,services:(0,c.createParserServices)(x,T)}};let t=e(bo()),n=function(){if(iW)return bS;iW=1,Object.defineProperty(bS,"__esModule",{value:!0}),bS.astConverter=function(i,a,o){let{parseDiagnostics:s}=i;if(s.length)throw(0,e.convertError)(s[0]);let l=new e.Converter(i,{allowInvalidAST:a.allowInvalidAST,errorOnUnknownASTType:a.errorOnUnknownASTType,shouldPreserveNodeMaps:o,suppressDeprecatedPropertyWarnings:a.suppressDeprecatedPropertyWarnings}),c=l.convertProgram();return a.range&&a.loc||(0,r.simpleTraverse)(c,{enter:e=>{a.range||delete e.range,a.loc||delete e.loc}}),a.tokens&&(c.tokens=(0,n.convertTokens)(i)),a.comment&&(c.comments=(0,t.convertComments)(i,a.codeFullText)),{astMaps:l.getASTMaps(),estree:c}};let e=b6(),t=function(){if(iq)return b4;iq=1;var e,t=b4&&b4.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),n=b4&&b4.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),r=b4&&b4.__importStar||(e=function(t){return(e=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t})(t)},function(r){if(r&&r.__esModule)return r;var i={};if(null!=r)for(var a=e(r),o=0;o<a.length;o++)"default"!==a[o]&&t(i,r,a[o]);return n(i,r),i});Object.defineProperty(b4,"__esModule",{value:!0}),b4.convertComments=function(e,t){let n=[];return i.forEachComment(e,(r,i)=>{let l=i.kind===a.SyntaxKind.SingleLineCommentTrivia?s.AST_TOKEN_TYPES.Line:s.AST_TOKEN_TYPES.Block,c=[i.pos,i.end],u=(0,o.getLocFor)(c,e),_=c[0]+2,d=i.kind===a.SyntaxKind.SingleLineCommentTrivia?c[1]:c[1]-2;n.push({type:l,loc:u,range:c,value:t.slice(_,d)})},e),n};let i=r(b8),a=r(yp()),o=b3(),s=b2();return b4}(),n=b3(),r=b7();return bS}(),r=b6(),i=function(){if(iH)return b9;iH=1;var e,t=b9&&b9.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),n=b9&&b9.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),r=b9&&b9.__importStar||(e=function(t){return(e=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t})(t)},function(r){if(r&&r.__esModule)return r;var i={};if(null!=r)for(var a=e(r),o=0;o<a.length;o++)"default"!==a[o]&&t(i,r,a[o]);return n(i,r),i}),i=b9&&b9.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(b9,"__esModule",{value:!0}),b9.createIsolatedProgram=function(e){c("Getting isolated program in %s mode for: %s",e.jsx?"TSX":"TS",e.filePath);let t=o.createProgram([e.filePath],{jsDocParsingMode:e.jsDocParsingMode,jsx:e.jsx?o.JsxEmit.Preserve:void 0,noResolve:!0,target:o.ScriptTarget.Latest,...(0,l.createDefaultCompilerOptionsFromExtra)(e)},{fileExists:()=>!0,getCanonicalFileName:()=>e.filePath,getCurrentDirectory:()=>"",getDefaultLibFileName:()=>"lib.d.ts",getDirectories:()=>[],getNewLine:()=>"\n",getSourceFile:t=>o.createSourceFile(t,e.codeFullText,o.ScriptTarget.Latest,!0,(0,s.getScriptKind)(e.filePath,e.jsx)),readFile(){},useCaseSensitiveFileNames:()=>!0,writeFile:()=>null}),n=t.getSourceFile(e.filePath);if(!n)throw Error("Expected an ast to be returned for the single-file isolated program.");return{ast:n,program:t}};let a=i(bo()),o=r(yp()),s=Tt(),l=bv(),c=(0,a.default)("typescript-eslint:typescript-estree:create-program:createIsolatedProgram");return b9}(),a=Ta(),o=Ts(),s=bb(),l=Tc(),c=(i1||(i1=1,Object.defineProperty(Tu,"__esModule",{value:!0}),Tu.createParserServices=function(e,t){if(!t)return{emitDecoratorMetadata:void 0,experimentalDecorators:void 0,isolatedDeclarations:void 0,program:t,...e};let n=t.getTypeChecker(),r=t.getCompilerOptions();return{program:t,emitDecoratorMetadata:r.emitDecoratorMetadata??!1,experimentalDecorators:r.experimentalDecorators??!1,isolatedDeclarations:r.isolatedDeclarations??!1,...e,getSymbolAtLocation:t=>n.getSymbolAtLocation(e.esTreeNodeToTSNodeMap.get(t)),getTypeAtLocation:t=>n.getTypeAtLocation(e.esTreeNodeToTSNodeMap.get(t))}}),Tu),u=SM(),_=function(){if(oR)return SR;oR=1,Object.defineProperty(SR,"__esModule",{value:!0}),SR.getFirstSemanticOrSyntacticError=function(e,r){try{let i=t(e.getSyntacticDiagnostics(r));if(i.length>0)return n(i[0]);let a=t(e.getSemanticDiagnostics(r));if(a.length>0)return n(a[0]);return}catch(e){console.warn(`Warning From TSC: "${e.message}`);return}};let e=yp();function t(e){return e.filter(e=>{switch(e.code){case 1013:case 1014:case 1044:case 1045:case 1048:case 1049:case 1070:case 1071:case 1085:case 1090:case 1096:case 1097:case 1098:case 1099:case 1117:case 1121:case 1123:case 1141:case 1162:case 1164:case 1172:case 1173:case 1175:case 1176:case 1190:case 1196:case 1200:case 1206:case 1211:case 1242:case 1246:case 1255:case 1308:case 2364:case 2369:case 2452:case 2462:case 8017:case 17012:case 17013:return!0}return!1})}function n(t){return{...t,message:(0,e.flattenDiagnosticMessageText)(t.messageText,e.sys.newLine)}}return SR}(),d=function(){if(oV)return Sj;oV=1;var e,t=Sj&&Sj.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),n=Sj&&Sj.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),r=Sj&&Sj.__importStar||(e=function(t){return(e=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t})(t)},function(r){if(r&&r.__esModule)return r;var i={};if(null!=r)for(var a=e(r),o=0;o<a.length;o++)"default"!==a[o]&&t(i,r,a[o]);return n(i,r),i}),i=Sj&&Sj.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Sj,"__esModule",{value:!0}),Sj.useProgramFromProjectService=function(e,t,n,r){var i,a,m,g,h,y,b;let T,S,x;i=e.service,a=t.extraFileExtensions,T=f.get(i)??[],s.default.isDeepStrictEqual(T,a)||(p("Updating extra file extensions: before=%s: after=%s",T,a),i.setHostConfiguration({extraFileExtensions:a.map(e=>({extension:e,isMixedContent:!1,scriptKind:l.ScriptKind.Deferred}))}),f.set(i,a),p("Extra file extensions updated: %o",a));let E=(g=t.filePath,h=e,o.default.isAbsolute(g)?g:o.default.join(h.service.host.getCurrentDirectory(),g));p("Opening project service file for: %s at absolute path %s",t.filePath,E);let k=(y=o.default.relative(t.tsconfigRootDir,E),b=e.allowDefaultProject,!!b?.some(e=>(0,xh.minimatch)(y,e,{dot:!0})));if(!n&&!k)return m=e.service,p("No project service information available. Creating no program."),m.getScriptInfo(E)&&(p("Script info available. Opening client file in project service."),m.openClientFile(E,t.codeFullText,void 0,t.tsconfigRootDir)),(0,u.createNoProgram)(t);let P=n&&function(e,t,n,r,i){let a,s=(p("Opening project service client file at path: %s",n),!(a=l()).configFileErrors&&!a.configFileName&&!r.singleRun&&!t&&performance.now()-i.lastReloadTimestamp>250&&(p("No config file found; reloading project service and retrying."),i.service.reloadProjects(),a=l(),i.lastReloadTimestamp=performance.now()),a);if(p("Result from attempting to open client file: %o",s),p("Default project allowed path: %s, based on config file: %s",t,s.configFileName),s.configFileName){if(t)throw Error(`${r.filePath} was included by allowDefaultProject but also was found in the project service. Consider removing it from allowDefaultProject.`)}else{let e=`${r.filePath} was not found by the project service`,i=o.default.extname(r.filePath),a=r.extraFileExtensions;if(!_.DEFAULT_EXTRA_FILE_EXTENSIONS.has(i)&&!a.includes(i)){let t=`${e} because the extension for the file (\`${i}\`) is non-standard`;if(a.length>0)throw Error(`${t}. It should be added to your existing \`parserOptions.extraFileExtensions\`.`);throw Error(`${t}. You should add \`parserOptions.extraFileExtensions\` to your config.`)}if(!t){let t=`${e}. Consider either including it in the tsconfig.json or including it in allowDefaultProject.`,i=r.projectService?.allowDefaultProject;if(!i)throw Error(t);let a=o.default.relative(r.tsconfigRootDir,n);throw Error([t,`allowDefaultProject is set to ${JSON.stringify(i)}, which does not match '${a}'.`].join("\n"))}}if(!s.configFileName&&(e.add(n),e.size>i.maximumDefaultProjectFileMatchCount)){let t=[...e].slice(0,20),n=e.size-t.length;throw Error(`Too many files (>${i.maximumDefaultProjectFileMatchCount}) have matched the default project.${d.DEFAULT_PROJECT_FILES_ERROR_EXPLANATION}
|
|
393
393
|
Matching files:
|
|
394
394
|
${t.map(e=>`- ${e}`).join("\n")}
|
|
395
395
|
${n?`...and ${n} more files
|
|
396
396
|
`:""}
|
|
397
397
|
If you absolutely need more files included, set parserOptions.projectService.maximumDefaultProjectFileMatchCount_THIS_WILL_SLOW_DOWN_LINTING to a larger value.
|
|
398
398
|
`)}return s;function l(){return i.service.openClientFile(n,r.codeFullText,void 0,r.tsconfigRootDir)}}(r,k,E,t,e);return p("Opened project service file: %o",P),p("Retrieving script info and then program for: %s",E),S=e.service.getScriptInfo(E),(x=e.service.getDefaultProjectForFile(S.fileName,!0).getLanguageService(!0).getProgram())?(p("Found project service program for: %s",E),(0,c.createProjectProgram)(t,[x])):void p("Could not find project service program for: %s",E)};let a=i(bo()),o=i(bh()),s=i(xy("node:util")),l=r(yp()),c=Ta(),u=Ts(),_=bv(),d=Th(),p=(0,a.default)("typescript-eslint:typescript-estree:useProgramFromProjectService"),f=new WeakMap;return Sj}(),p=(0,t.default)("typescript-eslint:typescript-estree:parser"),f=new Map,m=new Set,g={};return bT}var xb={};function xT(){var e,t,n,r,i,a,o,s,l,c,u;return o$?v5:(o$=1,e=v5&&v5.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),t=v5&&v5.__exportStar||function(t,n){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||e(n,t,r)},Object.defineProperty(v5,"__esModule",{value:!0}),v5.withoutProjectParserOptions=v5.version=v5.typescriptVersionIsAtLeast=v5.simpleTraverse=v5.clearCandidateTSConfigRootDirs=v5.addCandidateTSConfigRootDir=v5.parseAndGenerateServices=v5.parse=v5.TSError=v5.createProgram=v5.getCanonicalFileName=void 0,t(function(){if(oz)return v7;oz=1,Object.defineProperty(v7,"__esModule",{value:!0}),v7.clearProgramCache=void 0,v7.clearCaches=a;let e=bb(),t=xv(),n=Tv(),r=SM(),i=SF();function a(){(0,n.clearCandidateTSConfigRootDirs)(),(0,t.clearDefaultProjectMatchedFiles)(),(0,t.clearProgramCache)(),(0,e.clearWatchCaches)(),(0,r.clearTSConfigMatchCache)(),(0,r.clearTSServerProjectService)(),(0,i.clearGlobCache)()}return v7.clearProgramCache=a,v7}(),v5),t(Tt(),v5),n=bv(),Object.defineProperty(v5,"getCanonicalFileName",{enumerable:!0,get:function(){return n.getCanonicalFileName}}),r=Tc(),Object.defineProperty(v5,"createProgram",{enumerable:!0,get:function(){return r.createProgramFromConfigFile}}),t(bG(),v5),i=b3(),Object.defineProperty(v5,"TSError",{enumerable:!0,get:function(){return i.TSError}}),a=xv(),Object.defineProperty(v5,"parse",{enumerable:!0,get:function(){return a.parse}}),Object.defineProperty(v5,"parseAndGenerateServices",{enumerable:!0,get:function(){return a.parseAndGenerateServices}}),o=Tv(),Object.defineProperty(v5,"addCandidateTSConfigRootDir",{enumerable:!0,get:function(){return o.addCandidateTSConfigRootDir}}),Object.defineProperty(v5,"clearCandidateTSConfigRootDirs",{enumerable:!0,get:function(){return o.clearCandidateTSConfigRootDirs}}),s=b7(),Object.defineProperty(v5,"simpleTraverse",{enumerable:!0,get:function(){return s.simpleTraverse}}),t(b2(),v5),l=bH(),Object.defineProperty(v5,"typescriptVersionIsAtLeast",{enumerable:!0,get:function(){return l.typescriptVersionIsAtLeast}}),c=SL(),Object.defineProperty(v5,"version",{enumerable:!0,get:function(){return c.version}}),oq||(oq=1,Object.defineProperty(xb,"__esModule",{value:!0}),xb.withoutProjectParserOptions=function(e){let{EXPERIMENTAL_useProjectService:t,project:n,projectService:r,...i}=e;return i}),u=xb,Object.defineProperty(v5,"withoutProjectParserOptions",{enumerable:!0,get:function(){return u.withoutProjectParserOptions}}),v5)}var xS=xT();let xx=new Map([["every",1],["filter",1],["find",1],["findIndex",1],["findLast",1],["findLastIndex",1],["flatMap",1],["forEach",1],["map",1],["reduce",2],["reduceRight",2],["some",1]]);function xE(e,t=!0){if(e.type!==_q.AST_NODE_TYPES.CallExpression||e.callee.type!==_q.AST_NODE_TYPES.MemberExpression||e.callee.property.type!==_q.AST_NODE_TYPES.Identifier)return!1;let n=e.callee.property.name;return"from"===n||t&&n.startsWith("from")}function xk(e,t=!0){if(e.type!==_q.AST_NODE_TYPES.CallExpression||e.callee.type!==_q.AST_NODE_TYPES.MemberExpression||e.callee.property.type!==_q.AST_NODE_TYPES.Identifier)return!1;let n=e.callee.property.name;return"map"===n||t&&n.endsWith("Map")}function xP(t){return null!=t.id?t.id:t.parent.type===_q.AST_NODE_TYPES.VariableDeclarator&&t.parent.id.type===_q.AST_NODE_TYPES.Identifier?t.parent.id:e}let xC=le(2,(e,t)=>{switch(!0){case e===t:return!0;case e.type!==t.type:return!1;case e.type===_q.AST_NODE_TYPES.Literal&&t.type===_q.AST_NODE_TYPES.Literal:return e.value===t.value;case e.type===_q.AST_NODE_TYPES.TemplateElement&&t.type===_q.AST_NODE_TYPES.TemplateElement:return e.value.raw===t.value.raw;case e.type===_q.AST_NODE_TYPES.TemplateLiteral&&t.type===_q.AST_NODE_TYPES.TemplateLiteral:{if(e.quasis.length!==t.quasis.length||e.expressions.length!==t.expressions.length)return!1;let n=e.quasis.length;for(;n--;)if(e.quasis[n]?.value.raw!==t.quasis[n]?.value.raw)return!1;for(n=e.expressions.length;n--;)if(!xC(e.expressions[n],t.expressions[n]))return!1;return!0}case e.type===_q.AST_NODE_TYPES.Identifier&&t.type===_q.AST_NODE_TYPES.Identifier:case e.type===_q.AST_NODE_TYPES.PrivateIdentifier&&t.type===_q.AST_NODE_TYPES.PrivateIdentifier:return e.name===t.name;case e.type===_q.AST_NODE_TYPES.MemberExpression&&t.type===_q.AST_NODE_TYPES.MemberExpression:return xC(e.property,t.property)&&xC(e.object,t.object);case e.type===_q.AST_NODE_TYPES.JSXAttribute&&t.type===_q.AST_NODE_TYPES.JSXAttribute:if(e.name.name!==t.name.name)return!1;if(null==e.value||null==t.value)return e.value===t.value;return xC(e.value,t.value);case e.type===_q.AST_NODE_TYPES.ThisExpression&&t.type===_q.AST_NODE_TYPES.ThisExpression:return!0;default:return!1}}),xw=h1.ASTUtils.isNodeOfType,xA=h1.ASTUtils.isNodeOfTypes,xD=xA([_q.AST_NODE_TYPES.ArrowFunctionExpression,_q.AST_NODE_TYPES.FunctionDeclaration,_q.AST_NODE_TYPES.FunctionExpression]);xA([_q.AST_NODE_TYPES.ArrowFunctionExpression,_q.AST_NODE_TYPES.FunctionDeclaration,_q.AST_NODE_TYPES.FunctionExpression,_q.AST_NODE_TYPES.TSCallSignatureDeclaration,_q.AST_NODE_TYPES.TSConstructSignatureDeclaration,_q.AST_NODE_TYPES.TSDeclareFunction,_q.AST_NODE_TYPES.TSEmptyBodyFunctionExpression,_q.AST_NODE_TYPES.TSFunctionType,_q.AST_NODE_TYPES.TSMethodSignature]);let xN=xA([_q.AST_NODE_TYPES.ClassDeclaration,_q.AST_NODE_TYPES.ClassExpression]),xF=xA([_q.AST_NODE_TYPES.PropertyDefinition,_q.AST_NODE_TYPES.MethodDefinition]);xA([_q.AST_NODE_TYPES.PropertyDefinition,_q.AST_NODE_TYPES.TSIndexSignature,_q.AST_NODE_TYPES.TSParameterProperty,_q.AST_NODE_TYPES.TSPropertySignature]);let xO=xw(_q.AST_NODE_TYPES.JSXElement);xw(_q.AST_NODE_TYPES.JSXFragment);let xI=xA([_q.AST_NODE_TYPES.JSXIdentifier,_q.AST_NODE_TYPES.JSXMemberExpression,_q.AST_NODE_TYPES.JSXNamespacedName]),xL=xA([_q.AST_NODE_TYPES.JSXAttribute,_q.AST_NODE_TYPES.JSXClosingElement,_q.AST_NODE_TYPES.JSXClosingFragment,_q.AST_NODE_TYPES.JSXElement,_q.AST_NODE_TYPES.JSXEmptyExpression,_q.AST_NODE_TYPES.JSXExpressionContainer,_q.AST_NODE_TYPES.JSXFragment,_q.AST_NODE_TYPES.JSXIdentifier,_q.AST_NODE_TYPES.JSXMemberExpression,_q.AST_NODE_TYPES.JSXNamespacedName,_q.AST_NODE_TYPES.JSXOpeningElement,_q.AST_NODE_TYPES.JSXOpeningFragment,_q.AST_NODE_TYPES.JSXSpreadAttribute,_q.AST_NODE_TYPES.JSXSpreadChild,_q.AST_NODE_TYPES.JSXText]),xM=s5(xA([_q.AST_NODE_TYPES.DoWhileStatement,_q.AST_NODE_TYPES.ForInStatement,_q.AST_NODE_TYPES.ForOfStatement,_q.AST_NODE_TYPES.ForStatement,_q.AST_NODE_TYPES.WhileStatement]),xA([_q.AST_NODE_TYPES.IfStatement,_q.AST_NODE_TYPES.SwitchStatement])),xR=s5(xM,xA([_q.AST_NODE_TYPES.LogicalExpression,_q.AST_NODE_TYPES.ConditionalExpression])),xj=xA([_q.AST_NODE_TYPES.TSAsExpression,_q.AST_NODE_TYPES.TSTypeAssertion,_q.AST_NODE_TYPES.TSNonNullExpression,_q.AST_NODE_TYPES.TSSatisfiesExpression,_q.AST_NODE_TYPES.TSInstantiationExpression]),xY=xA([_q.AST_NODE_TYPES.TSAsExpression,_q.AST_NODE_TYPES.TSTypeAssertion,_q.AST_NODE_TYPES.TSNonNullExpression,_q.AST_NODE_TYPES.TSSatisfiesExpression]);function xU(e,t=" "){if(e.type===_q.AST_NODE_TYPES.Literal){var n;return"regex"in e?"RegExp literal":`${null===(n=e.value)?"null":typeof n} literal`}return xL(e)?`JSX ${vX(v4(function(e,t,n=""){return e.replace("JSX",n)}(e.type,0,""),t))}`:vX(v4(e.type,t))}function xB(e,t){switch(e.type){case _q.AST_NODE_TYPES.Identifier:case _q.AST_NODE_TYPES.JSXIdentifier:case _q.AST_NODE_TYPES.PrivateIdentifier:return e.name;case _q.AST_NODE_TYPES.MemberExpression:case _q.AST_NODE_TYPES.JSXMemberExpression:return`${xB(e.object,t)}.${xB(e.property,t)}`;case _q.AST_NODE_TYPES.JSXNamespacedName:return`${e.namespace.name}:${e.name.name}`;case _q.AST_NODE_TYPES.JSXText:return e.value;case _q.AST_NODE_TYPES.Literal:return e.raw;default:return t(e)}}function xV(e){return xj(e)?xV(e.expression):e}function xJ(e){return xV(e).type===_q.AST_NODE_TYPES.ThisExpression}function xz(t,n){if(null==t)return e;let r=t.parent;for(;null!=r&&r.type!==_q.AST_NODE_TYPES.Program;){if(n(r))return r;r=r.parent}return e}function xq(e){let t=[],n=xD(e)?e:xz(e,xD);return xS.simpleTraverse(e,{enter(e){e.type!==_q.AST_NODE_TYPES.ReturnStatement||xz(e,xD)===n&&t.push(e)}}),t}function x$(e){let t=xw(e);return function(n){let r=x$(e),i=[];if(t(n)&&i.push(n),"arguments"in n){let t=n.arguments.map(x$(e)).flat(1);i.push(...t)}if("expression"in n&&!0!==n.expression&&!1!==n.expression){let e=r(n.expression);i.push(...e)}if("left"in n){let e=r(n.left);i.push(...e)}if("right"in n){let e=r(n.right);i.push(...e)}if("test"in n&&null!=n.test){let e=r(n.test);i.push(...e)}if("consequent"in n){let e=Array.isArray(n.consequent)?n.consequent.map(r).flat(1):r(n.consequent);i.push(...e)}if("alternate"in n&&null!=n.alternate){let e=Array.isArray(n.alternate)?n.alternate.map(r).flat(1):r(n.alternate);i.push(...e)}if("elements"in n){let t=n.elements.filter(e=>null!=e).map(x$(e)).flat(1);i.push(...t)}if("properties"in n){let e=n.properties.map(r).flat(1);i.push(...e)}if("expressions"in n){let e=n.expressions.map(r).flat(1);i.push(...e)}if(n.type===_q.AST_NODE_TYPES.Property){let e=r(n.value);i.push(...e)}if(n.type===_q.AST_NODE_TYPES.SpreadElement){let e=r(n.argument);i.push(...e)}if(n.type===_q.AST_NODE_TYPES.MemberExpression){let e=r(n.object);i.push(...e)}if(n.type===_q.AST_NODE_TYPES.UnaryExpression){let e=r(n.argument);i.push(...e)}if(n.type===_q.AST_NODE_TYPES.ChainExpression){let e=r(n.expression);i.push(...e)}if(n.type===_q.AST_NODE_TYPES.TSNonNullExpression){let e=r(n.expression);i.push(...e)}if(n.type===_q.AST_NODE_TYPES.TSAsExpression){let e=r(n.expression);i.push(...e)}if(n.type===_q.AST_NODE_TYPES.TSSatisfiesExpression){let e=r(n.expression);i.push(...e)}return i}}let xW=x$(_q.AST_NODE_TYPES.NewExpression),xK=x$(_q.AST_NODE_TYPES.CallExpression);function xH(t){switch(!0){case"id"in t&&null!=t.id:return t.id;case t.parent.type===_q.AST_NODE_TYPES.VariableDeclarator&&t.parent.init===t&&t.parent.id.type===_q.AST_NODE_TYPES.Identifier:return t.parent.id;case t.parent.type===_q.AST_NODE_TYPES.AssignmentExpression&&t.parent.right===t&&"="===t.parent.operator&&t.parent.left.type===_q.AST_NODE_TYPES.Identifier:return t.parent.left;case t.parent.type===_q.AST_NODE_TYPES.Property&&t.parent.value===t&&!t.parent.computed&&t.parent.key.type===_q.AST_NODE_TYPES.Identifier:case xF(t.parent)&&t.parent.value===t&&t.parent.key.type===_q.AST_NODE_TYPES.Identifier:return t.parent.key;case t.parent.type===_q.AST_NODE_TYPES.AssignmentPattern&&t.parent.right===t&&t.parent.left.type===_q.AST_NODE_TYPES.Identifier:return t.parent.left;case xY(t.parent):return xH(t.parent)}return e}function xG(t){if(t.type===_q.AST_NODE_TYPES.FunctionDeclaration)return[t];let{parent:n}=t;switch(!0){case n.type===_q.AST_NODE_TYPES.VariableDeclarator:return[n.parent,n,t];case n.type===_q.AST_NODE_TYPES.CallExpression&&n.parent.type===_q.AST_NODE_TYPES.VariableDeclarator:return[n.parent.parent,n.parent,n,t];case n.type===_q.AST_NODE_TYPES.CallExpression&&n.parent.type===_q.AST_NODE_TYPES.CallExpression&&n.parent.parent.type===_q.AST_NODE_TYPES.VariableDeclarator:case n.type===_q.AST_NODE_TYPES.Property&&n.parent.type===_q.AST_NODE_TYPES.ObjectExpression&&n.parent.parent.type===_q.AST_NODE_TYPES.VariableDeclarator:return[n.parent.parent.parent,n.parent.parent,n.parent,n,t];case n.type===_q.AST_NODE_TYPES.MethodDefinition&&n.parent.parent.type===_q.AST_NODE_TYPES.ClassDeclaration:case n.type===_q.AST_NODE_TYPES.PropertyDefinition&&n.parent.parent.type===_q.AST_NODE_TYPES.ClassDeclaration:return[n.parent.parent,n.parent,n,t]}return e}function xX(e,t){return t.some(t=>{if(t.type!==_q.AST_NODE_TYPES.CallExpression)return!1;let{callee:n}=t;return n.type===_q.AST_NODE_TYPES.Identifier?n.name===e:n.type===_q.AST_NODE_TYPES.MemberExpression&&"name"in n.property&&n.property.name===e})}function xQ(e,t){if(e.type!==_q.AST_NODE_TYPES.Literal)return!1;switch(t){case"boolean":return"boolean"==typeof e.value;case"null":return null===e.value;case"number":return"number"==typeof e.value;case"regexp":return"regex"in e;case"string":return"string"==typeof e.value}}let xZ="AssignmentExpression[operator='='][left.type='MemberExpression'][left.property.name='displayName']";function x0(e){return null!=e&&e.type===_q.AST_NODE_TYPES.MemberExpression&&e.object.type===_q.AST_NODE_TYPES.MemberExpression&&e.object.object.type===_q.AST_NODE_TYPES.Identifier&&"process"===e.object.object.name&&e.object.property.type===_q.AST_NODE_TYPES.Identifier&&"env"===e.object.property.name&&e.property.type===_q.AST_NODE_TYPES.Identifier&&"NODE_ENV"===e.property.name}function x1(e){return e.callee.type===_q.AST_NODE_TYPES.MemberExpression&&e.callee.property.type===_q.AST_NODE_TYPES.Identifier&&"then"===e.callee.property.name}function x2(t){return xj(t)?x2(xV(t)):t.type===_q.AST_NODE_TYPES.Identifier||t.type===_q.AST_NODE_TYPES.PrivateIdentifier?t.name:t.type===_q.AST_NODE_TYPES.Literal?String(t.value):t.type===_q.AST_NODE_TYPES.TemplateLiteral&&0===t.expressions.length?t.quasis[0]?.value.raw:e}function x3(e){var t;return null!=e&&xD(e)&&e.parent.type===_q.AST_NODE_TYPES.CallExpression&&null!=(t=e.parent.callee)&&t.type===_q.AST_NODE_TYPES.MemberExpression&&t.object.type===_q.AST_NODE_TYPES.Identifier&&"vi"===t.object.name&&t.property.type===_q.AST_NODE_TYPES.Identifier&&"mock"===t.property.name&&e.parent.arguments[1]===e}var x6=hH(),x4=d5();function x8(t,n){if(null==t)return e;switch(!0){case t.type===_q.AST_NODE_TYPES.VariableDeclarator&&t.init===n:return t.id;case t.type===_q.AST_NODE_TYPES.AssignmentExpression&&t.right===n:return t.left;case t.type===_q.AST_NODE_TYPES.BlockStatement||t.type===_q.AST_NODE_TYPES.Program||t.parent===t:return e;default:return x8(t.parent,t)}}function x5(t,n){if(null==t)return e;let r=t.defs.at(n);if(null==r)return e;switch(!0){case r.type===x6.DefinitionType.FunctionName&&r.node.type===_q.AST_NODE_TYPES.FunctionDeclaration:case r.type===x6.DefinitionType.ClassName&&r.node.type===_q.AST_NODE_TYPES.ClassDeclaration:return r.node;case"init"in r.node&&null!=r.node.init&&!("declarations"in r.node.init):return r.node.init;default:return e}}function x7(t,n){if(null==t)return e;let r=x5(t,n);if(null!=r)return r;let i=t.defs.at(n);return i?.type===x6.DefinitionType.Parameter&&xD(i.node)?i.node:e}let x9=le(2,(t,n)=>null==t?e:x4.findVariable(n,t)??e);function Ee(e,t,n,r=new Set){return t.findLast(t=>{if(t.type===_q.AST_NODE_TYPES.Property)return"name"in t.key&&t.key.name===e;if(t.type===_q.AST_NODE_TYPES.SpreadElement)switch(t.argument.type){case _q.AST_NODE_TYPES.Identifier:{if(r.has(t.argument.name))return!1;let i=x5(x9(t.argument.name,n),0);if(i?.type===_q.AST_NODE_TYPES.ObjectExpression)return r.add(t.argument.name),null!=Ee(e,i.properties,n,r);break}case _q.AST_NODE_TYPES.ObjectExpression:return null!=Ee(e,t.argument.properties,n,r)}return!1})}function Et(e){let t=[e];for(let n of e.childScopes)t.push(...Et(n));return t}function En(t,n){if(null==t)return e;switch(t.type){case _q.AST_NODE_TYPES.JSXElement:case _q.AST_NODE_TYPES.JSXFragment:return{kind:"jsx",node:t};case _q.AST_NODE_TYPES.ArrayExpression:return{kind:"array",node:t};case _q.AST_NODE_TYPES.ObjectExpression:return{kind:"plain",node:t};case _q.AST_NODE_TYPES.ClassExpression:return{kind:"class",node:t};case _q.AST_NODE_TYPES.NewExpression:case _q.AST_NODE_TYPES.ThisExpression:return{kind:"instance",node:t};case _q.AST_NODE_TYPES.FunctionDeclaration:case _q.AST_NODE_TYPES.FunctionExpression:case _q.AST_NODE_TYPES.ArrowFunctionExpression:return{kind:"function",node:t};case _q.AST_NODE_TYPES.Literal:if("regex"in t)return{kind:"regexp",node:t};return e;case _q.AST_NODE_TYPES.Identifier:if(!("name"in t)||"string"!=typeof t.name)return e;return En(x5(n.set.get(t.name),-1),n);case _q.AST_NODE_TYPES.MemberExpression:if(!("object"in t))return e;return En(t.object,n);case _q.AST_NODE_TYPES.AssignmentExpression:case _q.AST_NODE_TYPES.AssignmentPattern:if(!("right"in t))return e;return En(t.right,n);case _q.AST_NODE_TYPES.LogicalExpression:return En(t.right,n);case _q.AST_NODE_TYPES.ConditionalExpression:return En(t.consequent,n)??En(t.alternate,n);case _q.AST_NODE_TYPES.SequenceExpression:if(0===t.expressions.length)return e;return En(t.expressions[t.expressions.length-1],n);case _q.AST_NODE_TYPES.CallExpression:return{kind:"unknown",node:t,reason:"call-expression"};default:if(!("expression"in t)||"object"!=typeof t.expression)return e;return En(t.expression,n)}}let Er=[_q.AST_NODE_TYPES.FunctionDeclaration,_q.AST_NODE_TYPES.FunctionExpression,_q.AST_NODE_TYPES.ClassBody,_q.AST_NODE_TYPES.Program];function Ei(e,t,n){let[r,i]=n;switch(!0){case e===t:return!0;case e.type===_q.AST_NODE_TYPES.Literal&&t.type===_q.AST_NODE_TYPES.Literal:return e.value===t.value;case e.type===_q.AST_NODE_TYPES.TemplateElement&&t.type===_q.AST_NODE_TYPES.TemplateElement:return e.value.cooked===t.value.cooked;case e.type===_q.AST_NODE_TYPES.Identifier&&t.type===_q.AST_NODE_TYPES.Identifier:{let n=x9(e,r),a=x9(t,i),o=x7(n,0),s=x7(a,0),l=o?.parent,c=s?.parent,u=n?.defs.at(0),_=a?.defs.at(0),d=u?.parent?.parent,p=_?.parent?.parent;switch(!0){case l?.type===_q.AST_NODE_TYPES.CallExpression&&c?.type===_q.AST_NODE_TYPES.CallExpression&&xD(o)&&xD(s):{if(!xC(l.callee,c.callee))return!1;let n=o.params,r=s.params,i=n.findIndex(t=>xC(t,e)),a=r.findIndex(e=>xC(e,t));return -1!==i&&-1!==a&&i===a}case d?.type===_q.AST_NODE_TYPES.ForOfStatement&&p?.type===_q.AST_NODE_TYPES.ForOfStatement:{let e=d.left,t=p.left;if(e.type!==t.type)return!1;return xC(d.right,p.right)}default:return null!=n&&null!=a&&n===a}}case e.type===_q.AST_NODE_TYPES.MemberExpression&&t.type===_q.AST_NODE_TYPES.MemberExpression:return xC(e.property,t.property)&&Ei(e.object,t.object,n);case e.type===_q.AST_NODE_TYPES.ThisExpression&&t.type===_q.AST_NODE_TYPES.ThisExpression:if(r.block===i.block)return!0;return xz(e,xA(Er))===xz(t,xA(Er));default:{let n=x4.getStaticValue(e,r),a=x4.getStaticValue(t,i);return null!=n&&null!=a&&n.value===a.value}}}var Ea=s1(function(){if(oK)return oW;oK=1;var e=Object.defineProperty,t=Object.getOwnPropertyDescriptor,n=Object.getOwnPropertyNames,r=Object.prototype.hasOwnProperty,i={},a={BiRecord:()=>l,default:()=>s,reverse:()=>c};for(var o in a)e(i,o,{get:a[o],enumerable:!0});function s(e){return new l(e)}oW=((i,a,o,s)=>{if(a&&"object"==typeof a||"function"==typeof a)for(let l of n(a))r.call(i,l)||l===o||e(i,l,{get:()=>a[l],enumerable:!(s=t(a,l))||s.enumerable});return i})(e({},"__esModule",{value:!0}),i);var l=class{constructor(e,t=c(e)){this.original=e,this.reversed=t}get(e){return this.original[e]??this.reversed[e]}has(e){return e in this.original||e in this.reversed}};function c(e){return Object.fromEntries(Object.entries(e).map(([e,t])=>[t,e]))}return oW}());function Eo(e){return le(2,(t,n)=>{if(null==n)return!1;let r=xB(n,e=>t.sourceCode.getText(e));return r===e||r.substring(r.indexOf(".")+1)===e})}function Es(e){return le(2,(t,n)=>null!=n&&n.type===_q.AST_NODE_TYPES.CallExpression&&Eo(e)(t,n.callee))}Eo("captureOwnerStack");let El=Eo("Children.count"),Ec=Eo("Children.forEach"),Eu=Eo("Children.map"),E_=Eo("Children.only"),Ed=Eo("Children.toArray");Eo("cloneElement"),Eo("createContext"),Eo("createElement"),Eo("createRef"),Eo("forwardRef"),Eo("memo"),Eo("lazy");let Ep=Es("captureOwnerStack");Es("Children.count"),Es("Children.forEach"),Es("Children.map"),Es("Children.only");let Ef=Es("Children.toArray"),Em=Es("cloneElement"),Eg=Es("createContext"),Eh=Es("createElement"),Ey=Es("createRef"),Ev=Es("forwardRef"),Eb=Es("memo"),ET=Es("lazy");function ES(e){return"use"===e||/^use[A-Z0-9]/.test(e)}function Ex(e){return null!=e&&e.type===_q.AST_NODE_TYPES.CallExpression&&(e.callee.type===_q.AST_NODE_TYPES.Identifier?ES(e.callee.name):e.callee.type===_q.AST_NODE_TYPES.MemberExpression&&e.callee.property.type===_q.AST_NODE_TYPES.Identifier&&ES(e.callee.property.name))}function EE(e){return null==e||e.type!==_q.AST_NODE_TYPES.CallExpression?lr:t=>{switch(e.callee.type){case _q.AST_NODE_TYPES.Identifier:return e.callee.name===t;case _q.AST_NODE_TYPES.MemberExpression:return e.callee.property.type===_q.AST_NODE_TYPES.Identifier&&e.callee.property.name===t;default:return!1}}}function Ek(e){if(null==e||e.type!==_q.AST_NODE_TYPES.CallExpression)return!1;switch(e.callee.type){case _q.AST_NODE_TYPES.Identifier:return/^use\w*Effect$/u.test(e.callee.name);case _q.AST_NODE_TYPES.MemberExpression:return e.callee.property.type===_q.AST_NODE_TYPES.Identifier&&/^use\w*Effect$/u.test(e.callee.property.name);default:return!1}}let EP=li(EE)("use"),EC=li(EE)("useCallback"),Ew=li(EE)("useContext"),EA=li(EE)("useMemo"),ED=li(EE)("useState"),EN=new _m("hook_");function EF(e){return null!=e&&e.parent?.type===_q.AST_NODE_TYPES.CallExpression&&e.parent.arguments.at(0)===e&&Ek(e.parent)}function EO(e){if(null==e)return!1;let t=xz(e,xw(_q.AST_NODE_TYPES.ReturnStatement)),n=xz(e,xD);return n===xz(t,xD)&&EF(n)}function EI(e){switch(e.type){case _q.AST_NODE_TYPES.JSXIdentifier:return e.name;case _q.AST_NODE_TYPES.JSXNamespacedName:return`${e.namespace.name}:${e.name.name}`;case _q.AST_NODE_TYPES.JSXMemberExpression:return`${EI(e.object)}.${EI(e.property)}`;case _q.AST_NODE_TYPES.JSXText:return e.value;case _q.AST_NODE_TYPES.JSXOpeningElement:return`<${EI(e.name)}>`;case _q.AST_NODE_TYPES.JSXClosingElement:return`</${EI(e.name)}>`;case _q.AST_NODE_TYPES.JSXOpeningFragment:return"<>";case _q.AST_NODE_TYPES.JSXClosingFragment:return"</>"}}function EL(e,t,n){let r=n??e.sourceCode.getScope(t),i=t.openingElement.attributes;return e=>i.findLast(t=>{if(t.type===_q.AST_NODE_TYPES.JSXAttribute)return EI(t.name)===e;switch(t.argument.type){case _q.AST_NODE_TYPES.Identifier:{let n=x5(x9(t.argument.name,r),0);if(n?.type===_q.AST_NODE_TYPES.ObjectExpression)return null!=Ee(e,n.properties,r);break}case _q.AST_NODE_TYPES.ObjectExpression:return null!=Ee(e,t.argument.properties,r)}return!1})}function EM(t,n){let r=t.sourceCode.getScope(n);switch(n.type){case _q.AST_NODE_TYPES.JSXAttribute:if(null==n.value)return{kind:"boolean",toStatic:()=>!0};switch(n.value.type){case _q.AST_NODE_TYPES.Literal:{let e=n.value.value;return{kind:"literal",node:n.value,toStatic:()=>e}}case _q.AST_NODE_TYPES.JSXExpressionContainer:{let e=n.value.expression;return{kind:"expression",node:e,toStatic:()=>x4.getStaticValue(e,r)?.value}}case _q.AST_NODE_TYPES.JSXElement:return{kind:"element",node:n.value,toStatic:()=>e};case _q.AST_NODE_TYPES.JSXSpreadChild:return{kind:"spreadChild",node:n.value.expression,toStatic:()=>e}}return;case _q.AST_NODE_TYPES.JSXSpreadAttribute:return{kind:"spreadProps",node:n.argument,toStatic:t=>null==t?e:ls.match(x4.getStaticValue(n.argument,r)?.value).with({[t]:ls.P.select(ls.P.any)},s9).otherwise(()=>e)}}}function ER(e){let t=e.sourceCode.parserServices?.program?.getCompilerOptions()??{};return{jsx:t.jsx??4,jsxFactory:t.jsxFactory??"React.createElement",jsxFragmentFactory:t.jsxFragmentFactory??"React.Fragment",jsxImportSource:t.jsxImportSource??"react"}}let Ej=new WeakMap;function EY(e){return la(Ej,e.sourceCode,()=>{let t,n,r,i,a={};if(!e.sourceCode.text.includes("@jsx"))return a;for(let a of e.sourceCode.getAllComments().reverse()){let e=a.value;t??=e.match(_k)?.[1],n??=e.match(_P)?.[1],r??=e.match(_C)?.[1],i??=e.match(_w)?.[1]}return null!=t&&(a.jsxFactory=t),null!=n&&(a.jsxFragmentFactory=n),null!=r&&(a.jsx="classic"===r?2:4),null!=i&&(a.jsxImportSource=i),a})}let EU={None:0n,SkipUndefined:1n<<0n,SkipNullLiteral:1n<<1n,SkipBooleanLiteral:1n<<2n,SkipStringLiteral:1n<<3n,SkipNumberLiteral:1n<<4n,SkipBigIntLiteral:1n<<5n,SkipEmptyArray:1n<<6n,SkipCreateElement:1n<<7n,StrictArray:1n<<8n,StrictLogical:1n<<9n,StrictConditional:1n<<10n},EB=0n|EU.SkipUndefined|EU.SkipBooleanLiteral;function EV(e){return null!=e&&(e.type===_q.AST_NODE_TYPES.JSXText||e.type===_q.AST_NODE_TYPES.Literal)}function EJ(e,t,n=EB){if(null==t)return!1;if(xL(t))return!0;switch(t.type){case _q.AST_NODE_TYPES.Literal:switch(typeof t.value){case"boolean":return!(n&EU.SkipBooleanLiteral);case"string":return!(n&EU.SkipStringLiteral);case"number":return!(n&EU.SkipNumberLiteral);case"bigint":return!(n&EU.SkipBigIntLiteral)}if(null==t.value)return!(n&EU.SkipNullLiteral);break;case _q.AST_NODE_TYPES.TemplateLiteral:return!(n&EU.SkipStringLiteral);case _q.AST_NODE_TYPES.ArrayExpression:if(0===t.elements.length)return!(n&EU.SkipEmptyArray);if(n&EU.StrictArray)return t.elements.every(t=>EJ(e,t,n));return t.elements.some(t=>EJ(e,t,n));case _q.AST_NODE_TYPES.LogicalExpression:if(n&EU.StrictLogical)return EJ(e,t.left,n)&&EJ(e,t.right,n);return EJ(e,t.left,n)||EJ(e,t.right,n);case _q.AST_NODE_TYPES.ConditionalExpression:function r(t){return Array.isArray(t.consequent)?0===t.consequent.length?!(n&EU.SkipEmptyArray):n&EU.StrictArray?t.consequent.every(t=>EJ(e,t,n)):t.consequent.some(t=>EJ(e,t,n)):EJ(e,t.consequent,n)}function i(t){return EJ(e,t.alternate,n)}if(n&EU.StrictConditional)return r(t)&&i(t);return r(t)||i(t);case _q.AST_NODE_TYPES.SequenceExpression:return EJ(e,t.expressions.at(-1),n);case _q.AST_NODE_TYPES.CallExpression:if(n&EU.SkipCreateElement)break;switch(t.callee.type){case _q.AST_NODE_TYPES.Identifier:return"createElement"===t.callee.name;case _q.AST_NODE_TYPES.MemberExpression:return t.callee.property.type===_q.AST_NODE_TYPES.Identifier&&"createElement"===t.callee.property.name}break;case _q.AST_NODE_TYPES.Identifier:{let{name:r}=t;if("undefined"===r)return!(n&EU.SkipUndefined);if(xI(t))return!0;let i=x9(r,e.getScope(t)),a=i&&x5(i,0);return!!a&&EJ(e,a,n)}}return!1}function Ez(e,t){return t.type===_q.AST_NODE_TYPES.JSXFragment?"":EI(t.openingElement.name)}function Eq(e,t){return t.type===_q.AST_NODE_TYPES.JSXElement&&t.openingElement.name.type===_q.AST_NODE_TYPES.JSXIdentifier&&/^[a-z]/u.test(t.openingElement.name.name)}function E$(e,t){return t.type===_q.AST_NODE_TYPES.JSXElement&&"Fragment"===Ez(e,t).split(".").at(-1)}let EW={...EU,SkipArrayMapArgument:1n<<66n,SkipObjectMethod:1n<<67n,SkipClassMethod:1n<<68n,SkipClassProperty:1n<<69n},EK=0n|EW.SkipBooleanLiteral|EW.SkipEmptyArray|EW.SkipArrayMapArgument|EW.SkipNumberLiteral|EW.SkipStringLiteral|EW.SkipUndefined|EW.StrictArray|EW.StrictConditional|EW.StrictLogical;function EH(e){if("superClass"in e&&null!=e.superClass){let t=/^(?:Pure)?Component$/u;switch(!0){case e.superClass.type===_q.AST_NODE_TYPES.Identifier:return t.test(e.superClass.name);case e.superClass.type===_q.AST_NODE_TYPES.MemberExpression&&e.superClass.property.type===_q.AST_NODE_TYPES.Identifier:return t.test(e.superClass.property.name)}}return!1}function EG(e){return xF(e)&&e.key.type===_q.AST_NODE_TYPES.Identifier&&e.key.name.startsWith("render")&&e.parent.parent.type===_q.AST_NODE_TYPES.ClassDeclaration}let EX={classMethod:{type:ls.P.union(_q.AST_NODE_TYPES.ArrowFunctionExpression,_q.AST_NODE_TYPES.FunctionExpression),parent:_q.AST_NODE_TYPES.MethodDefinition},classProperty:{type:ls.P.union(_q.AST_NODE_TYPES.ArrowFunctionExpression,_q.AST_NODE_TYPES.FunctionExpression),parent:_q.AST_NODE_TYPES.Property},objectMethod:{type:ls.P.union(_q.AST_NODE_TYPES.ArrowFunctionExpression,_q.AST_NODE_TYPES.FunctionExpression),parent:{type:_q.AST_NODE_TYPES.Property,parent:{type:_q.AST_NODE_TYPES.ObjectExpression}}}};function EQ(e,t,n){let r;if(null!=(r=t.parent)&&r.type===_q.AST_NODE_TYPES.CallExpression&&Eh(e,r)&&r.arguments.slice(2).some(e=>e===t)||EG(t.parent)&&EH(t.parent.parent.parent)||n&EW.SkipObjectMethod&&ls.isMatching(EX.objectMethod)(t)||n&EW.SkipClassMethod&&ls.isMatching(EX.classMethod)(t)||n&EW.SkipClassProperty&&ls.isMatching(EX.classProperty)(t)||n&EW.SkipArrayMapArgument&&xk(t.parent))return!1;let i=xz(t,xA([_q.AST_NODE_TYPES.JSXExpressionContainer,_q.AST_NODE_TYPES.ArrowFunctionExpression,_q.AST_NODE_TYPES.FunctionExpression,_q.AST_NODE_TYPES.Property,_q.AST_NODE_TYPES.ClassBody]));return null==i||i.type!==_q.AST_NODE_TYPES.JSXExpressionContainer}function EZ(t,n){switch(!0){case t.type===_q.AST_NODE_TYPES.VariableDeclarator&&t.init===n:return t.id;case t.type===_q.AST_NODE_TYPES.AssignmentExpression&&t.right===n:return t.left;case t.type===_q.AST_NODE_TYPES.PropertyDefinition&&t.value===n:return t.key;case t.type===_q.AST_NODE_TYPES.BlockStatement||t.type===_q.AST_NODE_TYPES.Program||t.parent===t:return e;default:return EZ(t.parent,t)}}function E0(e,t,n){if("react"===e.toLowerCase())return!0;let r=x9(e,n)?.defs.at(-1);if(null==r)return!1;let{node:i,parent:a}=r;if(i.type===_q.AST_NODE_TYPES.VariableDeclarator&&null!=i.init){let{init:e}=i;if(e.type===_q.AST_NODE_TYPES.MemberExpression&&e.object.type===_q.AST_NODE_TYPES.Identifier)return E0(e.object.name,t,n);if(e.type===_q.AST_NODE_TYPES.Identifier)return E0(e.name,t,n);let r=function e(t){return ls.match(t).with({type:_q.AST_NODE_TYPES.CallExpression,arguments:ls.P.select(),callee:{type:_q.AST_NODE_TYPES.Identifier,name:"require"}},s9).with({type:_q.AST_NODE_TYPES.MemberExpression,object:ls.P.select()},e).otherwise(()=>null)}(e)?.[0];return null!=r&&!!xQ(r,"string")&&(r.value===t||r.value.startsWith(`${t}/`))}return a?.type===_q.AST_NODE_TYPES.ImportDeclaration&&a.source.value===t}function E1(e,t,n){return xC(t,n)||Ei(t,n,[e.sourceCode.getScope(t),e.sourceCode.getScope(n)])}function E2(e,t){return t.type===_q.AST_NODE_TYPES.CallExpression&&(t.type===_q.AST_NODE_TYPES.CallExpression&&(Eb(e,t)||Ev(e,t))||EC(t))}function E3(t,n){let r=xH(n);if(null!=r)return r;let{parent:i}=n;return i.type===_q.AST_NODE_TYPES.CallExpression&&E2(t,i)&&i.parent.type===_q.AST_NODE_TYPES.VariableDeclarator&&i.parent.id.type===_q.AST_NODE_TYPES.Identifier?i.parent.id:i.type===_q.AST_NODE_TYPES.CallExpression&&E2(t,i)&&i.parent.type===_q.AST_NODE_TYPES.CallExpression&&E2(t,i.parent)&&i.parent.parent.type===_q.AST_NODE_TYPES.VariableDeclarator&&i.parent.parent.id.type===_q.AST_NODE_TYPES.Identifier?i.parent.parent.id:e}let E6={None:0n,PureComponent:1n<<0n,Memo:1n<<2n,ForwardRef:1n<<3n};function E4(e){let t=E6.None;return null!=e&&xX("memo",e)&&(t|=E6.Memo),null!=e&&xX("forwardRef",e)&&(t|=E6.ForwardRef),t}function E8(e){return _D.test(e)}function E5(t){return null==t?e:Array.isArray(t)?t.map(e=>e.name).join("."):t.name}function E7(e,t){let n=E3(e,t);if(null==n)return!0;let r=Array.isArray(n)?n.at(-1)?.name:n.name;return null!=r&&E8(r)}let E9=new _m("function_component_");function ke(t,n={}){let{collectDisplayName:r=!1,collectHookCalls:i=!1,hint:a=EK}=n,o=new Map,s=[],l=()=>s.at(-1);return{ctx:{getAllComponents:e=>o,getCurrentEntries:()=>[...s],getCurrentEntry:l},listeners:{":function[type]":e=>{let t=E9.next();s.push({key:t,node:e,hookCalls:[],isComponent:!1})},":function[type]:exit":()=>{let e=s.at(-1);if(null==e)return;if(!e.isComponent)return s.pop();let n=xq(e.node.body);for(let r=n.length-1;r>=0;r--){let i=n[r];if(null!=i&&t.sourceCode.getScope(i).block===e.node&&null!=i.argument&&!EJ(t.sourceCode,i.argument,a)){o.delete(e.key);break}}return s.pop()},"ArrowFunctionExpression[body.type!='BlockStatement']"(){let n=l();if(null==n)return;let{body:r}=n.node;if(!(E7(t,n.node)&&EJ(t.sourceCode,r,a)&&EQ(t,n.node,a)))return;let i=xG(n.node),s=E3(t,n.node),c=n.key,u=E5(s);o.set(c,{id:s,key:c,kind:"function",name:u,node:n.node,displayName:e,flag:E4(i),hint:a,hookCalls:n.hookCalls,initPath:i})},...r?{[xZ](t){let{left:n,right:r}=t;if(n.type!==_q.AST_NODE_TYPES.MemberExpression)return;let i=n.object.type===_q.AST_NODE_TYPES.Identifier?n.object.name:e,a=[...o.values()].findLast(({name:e})=>null!=e&&e===i);null!=a&&(a.displayName=r)}}:{},...i?{"CallExpression[type]:exit"(e){if(!Ex(e))return;let t=l();null!=t&&t.hookCalls.push(e)}}:{},"ReturnStatement[type]"(n){let r=l();if(null==r||!(E7(t,r.node)&&EJ(t.sourceCode,n.argument,a)&&EQ(t,r.node,a)))return;r.isComponent=!0;let i=xG(r.node),s=E3(t,r.node),c=E5(s);o.set(r.key,{id:s,key:r.key,kind:"function",name:c,node:r.node,displayName:e,flag:E4(i),hint:a,hookCalls:r.hookCalls,initPath:i})}}}}let kt=new _m("class_component_");function kn(){let t=new Map,n=n=>{if(!EH(n))return;let r=xP(n),i=kt.next(),a=!function(e){if("superClass"in e&&null!=e.superClass){let t=/^PureComponent$/u;switch(!0){case e.superClass.type===_q.AST_NODE_TYPES.Identifier:return t.test(e.superClass.name);case e.superClass.type===_q.AST_NODE_TYPES.MemberExpression&&e.superClass.property.type===_q.AST_NODE_TYPES.Identifier:return t.test(e.superClass.property.name)}}return!1}(n)?E6.None:E6.PureComponent;t.set(i,{id:r,key:i,kind:"class",name:r?.name,node:n,displayName:e,flag:a,hint:0n,methods:[]})};return{ctx:{getAllComponents:e=>t},listeners:{"ClassDeclaration[type]":n,"ClassExpression[type]":n}}}function kr(e,t=!1){return function(n){return xF(n)&&n.static===t&&n.key.type===_q.AST_NODE_TYPES.Identifier&&n.key.name===e}}let ki=kr("componentDidCatch"),ka=kr("componentDidMount"),ko=kr("componentDidUpdate"),ks=kr("componentWillMount"),kl=kr("componentWillReceiveProps"),kc=kr("componentWillUnmount"),ku=kr("componentWillUpdate"),k_=kr("UNSAFE_componentWillMount"),kd=kr("UNSAFE_componentWillReceiveProps"),kp=kr("UNSAFE_componentWillUpdate"),kf=kr("getDerivedStateFromProps",!0),km=kr("getDerivedStateFromError",!0);function kg(e){return xD(e)&&ka(e.parent)&&e.parent.value===e}function kh(e){return xD(e)&&kc(e.parent)&&e.parent.value===e}let ky=Ea({mount:"unmount",setup:"cleanup"}),kv=le(2,(e,t)=>ky.get(e)===t);function kb(e){return ls.match(e).when(EF,()=>"setup").when(EO,()=>"cleanup").when(kg,()=>"mount").when(kh,()=>"unmount").otherwise(()=>null)}function kT(e){let t=e=>e.type===_q.AST_NODE_TYPES.Property&&e.key.type===_q.AST_NODE_TYPES.Identifier&&e.key.name.startsWith("render");return t(e)||null!=e.parent&&t(e.parent)}function kS(e){let{callee:t}=e;return t.type===_q.AST_NODE_TYPES.MemberExpression&&xJ(t.object)&&t.property.type===_q.AST_NODE_TYPES.Identifier&&"setState"===t.property.name}function kx(e){let{left:t}=e;return t.type===_q.AST_NODE_TYPES.MemberExpression&&xJ(t.object)&&"state"===x2(t.property)}let kE=/^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-([\da-z\-]+(?:\.[\da-z\-]+)*))?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i,kk=e=>{if("string"!=typeof e)throw TypeError("Invalid argument expected string");let t=e.match(kE);if(!t)throw Error(`Invalid argument not valid semver ('${e}' received)`);return t.shift(),t},kP=e=>"*"===e||"x"===e||"X"===e,kC=e=>{let t=parseInt(e,10);return isNaN(t)?e:t},kw=(e,t)=>{let n,r;if(kP(e)||kP(t))return 0;let[i,a]=typeof(n=kC(e))!=typeof(r=kC(t))?[String(n),String(r)]:[n,r];return i>a?1:i<a?-1:0},kA=(e,t)=>{for(let n=0;n<Math.max(e.length,t.length);n++){let r=kw(e[n]||"0",t[n]||"0");if(0!==r)return r}return 0},kD=(e,t,n)=>{let r,i,a,o,s;kO(n);let l=(r=kk(e),i=kk(t),a=r.pop(),o=i.pop(),0!==(s=kA(r,i))?s:a&&o?kA(a.split("."),o.split(".")):a||o?a?-1:1:0);return kN[n].includes(l)},kN={">":[1],">=":[0,1],"=":[0],"<=":[-1,0],"<":[-1],"!=":[-1,1]},kF=Object.keys(kN),kO=e=>{if("string"!=typeof e)throw TypeError(`Invalid operator type, expected string but got ${typeof e}`);if(-1===kF.indexOf(e))throw Error(`Invalid operator, expected one of ${kF.join("|")}`)};var kI={},kL={},kM={};function kR(){return oH||(oH=1,Object.defineProperty(kM,"__esModule",{value:!0}),kM.isSymbolFromDefaultLibrary=function(e,t){if(!t)return!1;for(let n of t.getDeclarations()??[]){let t=n.getSourceFile();if(e.isSourceFileDefaultLibrary(t))return!0}return!1}),kM}var kj={},kY={};function kU(){if(oX)return kY;oX=1;var e,t=kY&&kY.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),n=kY&&kY.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),r=kY&&kY.__importStar||(e=function(t){return(e=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t})(t)},function(r){if(r&&r.__esModule)return r;var i={};if(null!=r)for(var a=e(r),o=0;o<a.length;o++)"default"!==a[o]&&t(i,r,a[o]);return n(i,r),i});Object.defineProperty(kY,"__esModule",{value:!0}),kY.getTypeFlags=s,kY.isTypeFlagSet=function(e,t,n){let r=s(e);return!!n&&!!(r&o)||(r&t)!=0};let i=r(b8),a=r(yp()),o=a.TypeFlags.Any|a.TypeFlags.Unknown;function s(e){let t=0;for(let n of i.unionConstituents(e))t|=n.flags;return t}return kY}var kB={},kV={},kJ={},kz={},kq={},k$={},kW={},kK={};function kH(){if(o4)return kK;function e(e,t,n,r){var i;if(!r||!((i=r).startsWith("__@")||i.startsWith("__#")))return e.getTypeOfPropertyOfType(t,n);let a=t.getProperties().find(e=>e.escapedName===r);return a?e.getDeclaredTypeOfSymbol(a):void 0}return o4=1,Object.defineProperty(kK,"__esModule",{value:!0}),kK.getTypeOfPropertyOfName=e,kK.getTypeOfPropertyOfType=function(t,n,r){return e(t,n,r.getName(),r.getEscapedName())},kK}var kG={},kX={},kQ={},kZ={},k0={};function k1(){if(se)return kG;se=1;var e,t=kG&&kG.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),n=kG&&kG.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),r=kG&&kG.__importStar||(e=function(t){return(e=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t})(t)},function(r){if(r&&r.__esModule)return r;var i={};if(null!=r)for(var a=e(r),o=0;o<a.length;o++)"default"!==a[o]&&t(i,r,a[o]);return n(i,r),i});Object.defineProperty(kG,"__esModule",{value:!0}),kG.valueMatchesSomeSpecifier=kG.typeMatchesSomeSpecifier=kG.typeOrValueSpecifiersSchema=void 0,kG.typeMatchesSpecifier=u,kG.valueMatchesSpecifier=_;let i=_z(),a=r(b8),o=(o8||(o8=1,Object.defineProperty(kX,"__esModule",{value:!0}),kX.specifierNameMatches=function(e,t){"string"==typeof t&&(t=[t]);let n=e.aliasSymbol??e.getSymbol(),r=n?[n.escapedName,e.intrinsicName]:[e.intrinsicName];return!!t.some(e=>r.includes(e))}),kX),s=function(){if(o5)return kQ;o5=1;var e=kQ&&kQ.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(kQ,"__esModule",{value:!0}),kQ.typeDeclaredInFile=function(e,r,i){if(null==e){let e=(0,t.getCanonicalFileName)(i.getCurrentDirectory());return r.some(n=>(0,t.getCanonicalFileName)(n.fileName).startsWith(e))}let a=(0,t.getCanonicalFileName)(n.default.join(i.getCurrentDirectory(),e));return r.some(e=>(0,t.getCanonicalFileName)(e.fileName)===a)};let t=xT(),n=e(bh());return kQ}(),l=(o7||(o7=1,Object.defineProperty(kZ,"__esModule",{value:!0}),kZ.typeDeclaredInLib=function(e,t){return 0===e.length||e.some(e=>t.isSourceFileDefaultLibrary(e))}),kZ),c=function(){if(o9)return k0;o9=1;var e,t=k0&&k0.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),n=k0&&k0.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),r=k0&&k0.__importStar||(e=function(t){return(e=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t})(t)},function(r){if(r&&r.__esModule)return r;var i={};if(null!=r)for(var a=e(r),o=0;o<a.length;o++)"default"!==a[o]&&t(i,r,a[o]);return n(i,r),i});Object.defineProperty(k0,"__esModule",{value:!0}),k0.typeDeclaredInPackageDeclarationFile=function(e,t,n,r){let a,o;return t.some(t=>(function e(t){switch(t.kind){case i.SyntaxKind.ModuleDeclaration:if(t.flags&i.NodeFlags.Namespace)break;return i.isStringLiteral(t.name)?t:void 0;case i.SyntaxKind.SourceFile:return}return e(t.parent)})(t)?.name.text===e)||(a=e.replace(/^@([^/]+)\//,"$1__"),o=RegExp(`${e}|${a}`),n.some(e=>{let t=r.sourceFileToPackageName.get(e.path);return null!=t&&o.test(t)&&r.isSourceFileFromExternalLibrary(e)}))};let i=r(yp());return k0}();function u(e,t,n){return a.isUnionType(e)?e.types.every(e=>u(e,t,n)):!!((()=>{if(a.isIntrinsicErrorType(e))return!1;if("string"==typeof t)return(0,o.specifierNameMatches)(e,t);if(!(0,o.specifierNameMatches)(e,t.name))return!1;let r=e.getSymbol()??e.aliasSymbol,i=r?.getDeclarations()??[],u=i.map(e=>e.getSourceFile());switch(t.from){case"file":return(0,s.typeDeclaredInFile)(t.path,u,n);case"lib":return(0,l.typeDeclaredInLib)(u,n);case"package":return(0,c.typeDeclaredInPackageDeclarationFile)(t.package,i,u,n)}})()||a.isIntersectionType(e)&&a.intersectionConstituents(e).some(e=>u(e,t,n)))}function _(e,t,n,r){let a,o=e.type===i.AST_NODE_TYPES.Identifier||e.type===i.AST_NODE_TYPES.JSXIdentifier||e.type===i.AST_NODE_TYPES.PrivateIdentifier?e.name:e.type===i.AST_NODE_TYPES.Literal&&"string"==typeof e.value?e.value:void 0;if(!o)return!1;if("string"==typeof t)return t===o;if(!("string"==typeof(a=t.name)?[a]:a).includes(o))return!1;if("package"===t.from){let e=r.getSymbol()??r.aliasSymbol,i=e?.getDeclarations()??[],a=i.map(e=>e.getSourceFile());return(0,c.typeDeclaredInPackageDeclarationFile)(t.package,i,a,n)}return!0}return kG.typeOrValueSpecifiersSchema={items:{oneOf:[{type:"string"},{additionalProperties:!1,properties:{from:{enum:["file"],type:"string"},name:{oneOf:[{type:"string"},{items:{type:"string"},minItems:1,type:"array",uniqueItems:!0}]},path:{type:"string"}},required:["from","name"],type:"object"},{additionalProperties:!1,properties:{from:{enum:["lib"],type:"string"},name:{oneOf:[{type:"string"},{items:{type:"string"},minItems:1,type:"array",uniqueItems:!0}]}},required:["from","name"],type:"object"},{additionalProperties:!1,properties:{from:{enum:["package"],type:"string"},name:{oneOf:[{type:"string"},{items:{type:"string"},minItems:1,type:"array",uniqueItems:!0}]},package:{type:"string"}},required:["from","name","package"],type:"object"}]},type:"array"},kG.typeMatchesSomeSpecifier=(e,t=[],n)=>t.some(t=>u(e,t,n)),kG.valueMatchesSomeSpecifier=(e,t=[],n,r)=>t.some(t=>_(e,t,n,r)),kG}var k2={},k3={};function k6(){if(sn)return k3;sn=1;var e,t=k3&&k3.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),n=k3&&k3.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),r=k3&&k3.__importStar||(e=function(t){return(e=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t})(t)},function(r){if(r&&r.__esModule)return r;var i={};if(null!=r)for(var a=e(r),o=0;o<a.length;o++)"default"!==a[o]&&t(i,r,a[o]);return n(i,r),i}),i=k3&&k3.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(k3,"__esModule",{value:!0}),k3.isNullableType=function(e){return(0,l.isTypeFlagSet)(e,s.TypeFlags.Any|s.TypeFlags.Unknown|s.TypeFlags.Null|s.TypeFlags.Undefined|s.TypeFlags.Void)},k3.isTypeArrayTypeOrUnionOfArrayTypes=function(e,t){for(let n of o.unionConstituents(e))if(!t.isArrayType(n))return!1;return!0},k3.isTypeNeverType=function(e){return(0,l.isTypeFlagSet)(e,s.TypeFlags.Never)},k3.isTypeUnknownType=u,k3.isTypeReferenceType=function(e){return(e.flags&d)!=0&&(e.objectFlags&s.ObjectFlags.Reference)!=0},k3.isTypeAnyType=p,k3.isTypeAnyArrayType=function(e,t){return t.isArrayType(e)&&p(t.getTypeArguments(e)[0])},k3.isTypeUnknownArrayType=function(e,t){return t.isArrayType(e)&&u(t.getTypeArguments(e)[0])},k3.typeIsOrHasBaseType=function(e,t){let n=t.getSymbol();if(!e.getSymbol()||!n)return!1;let r=[e],i=e.getBaseTypes();for(let e of(i&&r.push(...i),r)){let t=e.getSymbol();if(t&&t.name===n.name)return!0}return!1},k3.isTypeBigIntLiteralType=function(e){return(0,l.isTypeFlagSet)(e,s.TypeFlags.BigIntLiteral)},k3.isTypeTemplateLiteralType=function(e){return(0,l.isTypeFlagSet)(e,s.TypeFlags.TemplateLiteral)};let a=i(bo()),o=r(b8),s=r(yp()),l=kU(),c=(0,a.default)("typescript-eslint:type-utils:predicates");function u(e){return(0,l.isTypeFlagSet)(e,s.TypeFlags.Unknown)}let _=s.TypeFlags.Undefined|s.TypeFlags.Null,d=s.TypeFlags.Any|_|s.TypeFlags.Never|s.TypeFlags.Object|s.TypeFlags.Union|s.TypeFlags.Intersection;function p(e){return!!(0,l.isTypeFlagSet)(e,s.TypeFlags.Any)&&("error"===e.intrinsicName&&c('Found an "error" any type'),!0)}return k3}var k4={},k8={},k5=function(){var e,t,n;return so?kI:(so=1,e=kI&&kI.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),t=kI&&kI.__exportStar||function(t,n){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||e(n,t,r)},Object.defineProperty(kI,"__esModule",{value:!0}),kI.typescriptVersionIsAtLeast=kI.getModifiers=kI.getDecorators=void 0,t(function(){if(oG)return kL;oG=1;var e,t=kL&&kL.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),n=kL&&kL.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),r=kL&&kL.__importStar||(e=function(t){return(e=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t})(t)},function(r){if(r&&r.__esModule)return r;var i={};if(null!=r)for(var a=e(r),o=0;o<a.length;o++)"default"!==a[o]&&t(i,r,a[o]);return n(i,r),i});Object.defineProperty(kL,"__esModule",{value:!0}),kL.isPromiseLike=function(e,t){return u(e,t,"Promise")},kL.isPromiseConstructorLike=function(e,t){return u(e,t,"PromiseConstructor")},kL.isErrorLike=s,kL.isReadonlyErrorLike=function e(t,n){return l(t,n,n=>{let[r]=n.aliasTypeArguments;return s(t,r)||e(t,r)})},kL.isReadonlyTypeLike=l,kL.isBuiltinTypeAliasLike=c,kL.isBuiltinSymbolLike=u,kL.isBuiltinSymbolLikeRecurser=_;let i=r(b8),a=r(yp()),o=kR();function s(e,t){return u(e,t,"Error")}function l(e,t,n){return c(e,t,e=>"Readonly"===e.aliasSymbol.getName()&&!!n?.(e))}function c(e,t,n){return _(e,t,t=>{let{aliasSymbol:r,aliasTypeArguments:i}=t;return!!r&&!!i&&(!!((0,o.isSymbolFromDefaultLibrary)(e,r)&&n(t))||null)})}function u(e,t,n){return _(e,t,t=>{let r=t.getSymbol();if(!r)return!1;let i=r.getName();return!!((Array.isArray(n)?n.some(e=>i===e):i===n)&&(0,o.isSymbolFromDefaultLibrary)(e,r))||null})}function _(e,t,n){if(t.isIntersection())return t.types.some(t=>_(e,t,n));if(t.isUnion())return t.types.every(t=>_(e,t,n));if(i.isTypeParameter(t)){let r=t.getConstraint();return!!r&&_(e,r,n)}let r=n(t);if("boolean"==typeof r)return r;let o=t.getSymbol();if(o&&o.flags&(a.SymbolFlags.Class|a.SymbolFlags.Interface)){for(let r of e.getTypeChecker().getBaseTypes(t))if(_(e,r,n))return!0}return!1}return kL}(),kI),t(function(){if(oQ)return kj;oQ=1;var e,t=kj&&kj.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),n=kj&&kj.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),r=kj&&kj.__importStar||(e=function(t){return(e=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t})(t)},function(r){if(r&&r.__esModule)return r;var i={};if(null!=r)for(var a=e(r),o=0;o<a.length;o++)"default"!==a[o]&&t(i,r,a[o]);return n(i,r),i});Object.defineProperty(kj,"__esModule",{value:!0}),kj.containsAllTypesByName=function e(t,n,r,s=!1){if((0,o.isTypeFlagSet)(t,a.TypeFlags.Any|a.TypeFlags.Unknown))return!n;i.isTypeReference(t)&&(t=t.target);let l=t.getSymbol();if(l&&r.has(l.name))return!0;let c=t=>e(t,n,r,s);if(i.isUnionOrIntersectionType(t))return s?t.types.some(c):t.types.every(c);let u=t.getBaseTypes();return null!=u&&(s?u.some(c):u.length>0&&u.every(c))};let i=r(b8),a=r(yp()),o=kU();return kj}(),kI),t((oZ||(oZ=1,Object.defineProperty(kB,"__esModule",{value:!0}),kB.getConstrainedTypeAtLocation=function(e,t){let n=e.getTypeAtLocation(t);return e.program.getTypeChecker().getBaseConstraintOfType(n)??n}),kB),kI),t(function(){if(o0)return kV;o0=1;var e,t=kV&&kV.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),n=kV&&kV.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),r=kV&&kV.__importStar||(e=function(t){return(e=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t})(t)},function(r){if(r&&r.__esModule)return r;var i={};if(null!=r)for(var a=e(r),o=0;o<a.length;o++)"default"!==a[o]&&t(i,r,a[o]);return n(i,r),i});Object.defineProperty(kV,"__esModule",{value:!0}),kV.getContextualType=function(e,t){let n=t.parent;if(i.isCallExpression(n)||i.isNewExpression(n)){if(t===n.expression)return}else if(i.isVariableDeclaration(n)||i.isPropertyDeclaration(n)||i.isParameter(n))return n.type?e.getTypeFromTypeNode(n.type):void 0;else if(i.isJsxExpression(n))return e.getContextualType(n);else if(i.isIdentifier(t)&&(i.isPropertyAssignment(n)||i.isShorthandPropertyAssignment(n)));else if(i.isBinaryExpression(n)&&n.operatorToken.kind===i.SyntaxKind.EqualsToken&&n.right===t)return e.getTypeAtLocation(n.left);else if(![i.SyntaxKind.JsxExpression,i.SyntaxKind.TemplateSpan].includes(n.kind))return;return e.getContextualType(t)};let i=r(yp());return kV}(),kI),t((o1||(o1=1,Object.defineProperty(kJ,"__esModule",{value:!0}),kJ.getDeclaration=function(e,t){let n=e.getSymbolAtLocation(t);if(!n)return null;let r=n.getDeclarations();return r?.[0]??null}),kJ),kI),t(function(){if(o2)return kz;o2=1;var e,t=kz&&kz.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),n=kz&&kz.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),r=kz&&kz.__importStar||(e=function(t){return(e=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t})(t)},function(r){if(r&&r.__esModule)return r;var i={};if(null!=r)for(var a=e(r),o=0;o<a.length;o++)"default"!==a[o]&&t(i,r,a[o]);return n(i,r),i});Object.defineProperty(kz,"__esModule",{value:!0}),kz.getSourceFileOfNode=function(e){for(;e.kind!==i.SyntaxKind.SourceFile;)e=e.parent;return e};let i=r(yp());return kz}(),kI),t(function(){if(o3)return kq;o3=1;var e,t=kq&&kq.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),n=kq&&kq.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),r=kq&&kq.__importStar||(e=function(t){return(e=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t})(t)},function(r){if(r&&r.__esModule)return r;var i={};if(null!=r)for(var a=e(r),o=0;o<a.length;o++)"default"!==a[o]&&t(i,r,a[o]);return n(i,r),i});Object.defineProperty(kq,"__esModule",{value:!0}),kq.getTypeName=function e(t,n){if((n.flags&i.TypeFlags.StringLike)!=0)return"string";if((n.flags&i.TypeFlags.TypeParameter)!=0){let r=n.getSymbol(),a=r?.getDeclarations(),o=a?.[0];if(null!=o&&i.isTypeParameterDeclaration(o)&&null!=o.constraint)return e(t,t.getTypeFromTypeNode(o.constraint))}return n.isUnion()&&n.types.map(n=>e(t,n)).every(e=>"string"===e)||n.isIntersection()&&n.types.map(n=>e(t,n)).some(e=>"string"===e)?"string":t.typeToString(n)};let i=r(yp());return kq}(),kI),t(kR(),kI),t(function(){if(o6)return k$;o6=1;var e,t=k$&&k$.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),n=k$&&k$.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),r=k$&&k$.__importStar||(e=function(t){return(e=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t})(t)},function(r){if(r&&r.__esModule)return r;var i={};if(null!=r)for(var a=e(r),o=0;o<a.length;o++)"default"!==a[o]&&t(i,r,a[o]);return n(i,r),i});Object.defineProperty(k$,"__esModule",{value:!0}),k$.isTypeBrandedLiteralLike=function(e){return e.isUnion()?e.types.every(o):o(e)};let i=r(b8),a=r(yp());function o(e){if(!e.isIntersection())return!1;let t=!1,n=!1;for(let r of e.types)if(!r.getCallSignatures().length&&!r.getConstructSignatures().length&&i.isObjectType(r))n=!0;else{if(!(r.isLiteral()||i.isTypeFlagSet(r,a.TypeFlags.BigInt|a.TypeFlags.Number|a.TypeFlags.String|a.TypeFlags.TemplateLiteral)))return!1;t=!0}return n&&t}return k$}(),kI),t((st||(st=1,!function(e){var t,n,r,i=kW&&kW.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=kW&&kW.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=kW&&kW.__importStar||(t=function(e){return(t=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t})(e)},function(e){if(e&&e.__esModule)return e;var n={};if(null!=e)for(var r=t(e),o=0;o<r.length;o++)"default"!==r[o]&&i(n,e,r[o]);return a(n,e),n});Object.defineProperty(e,"__esModule",{value:!0}),e.readonlynessOptionsDefaults=e.readonlynessOptionsSchema=void 0,e.isTypeReadonly=function(t,n,i=e.readonlynessOptionsDefaults){return f(t,n,i,new Set)===r.Readonly};let s=h0(),l=o(b8),c=o(yp()),u=kH(),_=k1();function d(e){return Object.hasOwn(e,"symbol")}function p(e,t,n,i){let a=e.getTypeChecker();function o(o){let s=a.getIndexInfoOfType(t,o);return s?s.isReadonly?s.type===t||i.has(s.type)?r.Readonly:f(e,s.type,n,i):r.Mutable:r.UnknownType}let _=t.getProperties();if(_.length){for(let e of _){if(n.treatMethodsAsReadonly){if(null!=e.valueDeclaration&&d(e.valueDeclaration)&&l.isSymbolFlagSet(e.valueDeclaration.symbol,c.SymbolFlags.Method))continue;let t=e.getDeclarations(),n=null!=t&&t.length>0?t[t.length-1]:void 0;if(null!=n&&d(n)&&l.isSymbolFlagSet(n.symbol,c.SymbolFlags.Method))continue}if(l.isPropertyReadonlyInType(t,e.getEscapedName(),a))continue;let i=c.getNameOfDeclaration(e.valueDeclaration);if(!(i&&c.isPrivateIdentifier(i)))return r.Mutable}for(let o of _){let l=s.ESLintUtils.nullThrows((0,u.getTypeOfPropertyOfType)(a,t,o),s.ESLintUtils.NullThrowsReasons.MissingToken(`property "${o.name}"`,"type"));if(!i.has(l)&&f(e,l,n,i)===r.Mutable)return r.Mutable}}let p=o(c.IndexKind.String);if(p===r.Mutable)return p;let m=o(c.IndexKind.Number);return m===r.Mutable?m:r.Readonly}function f(e,t,n,i){let a=e.getTypeChecker();if(i.add(t),(0,_.typeMatchesSomeSpecifier)(t,n.allow,e))return r.Readonly;if(l.isUnionType(t))return l.unionConstituents(t).every(t=>i.has(t)||f(e,t,n,i)===r.Readonly)?r.Readonly:r.Mutable;if(l.isIntersectionType(t)){if(t.types.some(e=>a.isArrayType(e)||a.isTupleType(e)))return t.types.every(t=>i.has(t)||f(e,t,n,i)===r.Readonly)?r.Readonly:r.Mutable;let o=p(e,t,n,i);if(o!==r.UnknownType)return o}if(l.isConditionalType(t))return[t.root.node.trueType,t.root.node.falseType].map(a.getTypeFromTypeNode).every(t=>i.has(t)||f(e,t,n,i)===r.Readonly)?r.Readonly:r.Mutable;if(!l.isObjectType(t)||t.getCallSignatures().length>0&&0===t.getProperties().length)return r.Readonly;let o=function(e,t,n,i){let a=e.getTypeChecker();function o(t){let o=a.getTypeArguments(t);return 0===o.length?r.Readonly:o.some(t=>f(e,t,n,i)===r.Mutable)?r.Mutable:r.Readonly}return a.isArrayType(t)?"Array"===s.ESLintUtils.nullThrows(t.getSymbol(),s.ESLintUtils.NullThrowsReasons.MissingToken("symbol","array type")).getEscapedName()?r.Mutable:o(t):a.isTupleType(t)?t.target.readonly?o(t):r.Mutable:r.UnknownType}(e,t,n,i);if(o!==r.UnknownType)return o;let c=p(e,t,n,i);if(c!==r.UnknownType)return c;throw Error("Unhandled type")}(n=r||(r={}))[n.UnknownType=1]="UnknownType",n[n.Mutable=2]="Mutable",n[n.Readonly=3]="Readonly",e.readonlynessOptionsSchema={additionalProperties:!1,properties:{allow:_.typeOrValueSpecifiersSchema,treatMethodsAsReadonly:{type:"boolean"}},type:"object"},e.readonlynessOptionsDefaults={allow:[],treatMethodsAsReadonly:!1}}(kW)),kW),kI),t(function(){if(sr)return k2;sr=1;var e,t=k2&&k2.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),n=k2&&k2.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),r=k2&&k2.__importStar||(e=function(t){return(e=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t})(t)},function(r){if(r&&r.__esModule)return r;var i={};if(null!=r)for(var a=e(r),o=0;o<a.length;o++)"default"!==a[o]&&t(i,r,a[o]);return n(i,r),i});Object.defineProperty(k2,"__esModule",{value:!0}),k2.isUnsafeAssignment=function(e,t,n,r){return function e(t,n,r,s,l){if((0,o.isTypeAnyType)(t)){if((0,o.isTypeUnknownType)(n))return!1;if(!(0,o.isTypeAnyType)(n))return{receiver:n,sender:t}}let c=l.get(t);if(c){if(c.has(n))return!1;c.add(n)}else l.set(t,new Set([n]));if(a.isTypeReference(t)&&a.isTypeReference(n)){if(t.target!==n.target||s?.type===i.AST_NODE_TYPES.NewExpression&&s.callee.type===i.AST_NODE_TYPES.Identifier&&"Map"===s.callee.name&&0===s.arguments.length&&null==s.typeArguments)return!1;let a=t.typeArguments??[],o=n.typeArguments??[];for(let i=0;i<a.length;i+=1)if(e(a[i],o[i],r,s,l))return{receiver:n,sender:t}}return!1}(e,t,n,r,new Map)};let i=h0(),a=r(b8),o=k6();return k2}(),kI),t(k6(),kI),t(kH(),kI),t(function(){if(si)return k4;si=1;var e,t=k4&&k4.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),n=k4&&k4.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),r=k4&&k4.__importStar||(e=function(t){return(e=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t})(t)},function(r){if(r&&r.__esModule)return r;var i={};if(null!=r)for(var a=e(r),o=0;o<a.length;o++)"default"!==a[o]&&t(i,r,a[o]);return n(i,r),i});Object.defineProperty(k4,"__esModule",{value:!0}),k4.requiresQuoting=function(e,t=i.ScriptTarget.ESNext){if(0===e.length||!i.isIdentifierStart(e.charCodeAt(0),t))return!0;for(let n=1;n<e.length;n+=1)if(!i.isIdentifierPart(e.charCodeAt(n),t))return!0;return!1};let i=r(yp());return k4}(),kI),t(kU(),kI),t(k1(),kI),t(function(){if(sa)return k8;sa=1;var e,t,n,r=k8&&k8.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=k8&&k8.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=k8&&k8.__importStar||(e=function(t){return(e=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t})(t)},function(t){if(t&&t.__esModule)return t;var n={};if(null!=t)for(var a=e(t),o=0;o<a.length;o++)"default"!==a[o]&&r(n,t,a[o]);return i(n,t),n});Object.defineProperty(k8,"__esModule",{value:!0}),k8.AnyType=void 0,k8.discriminateAnyType=function(e,t,r,i){return function e(t,r,i,a,l){if(l.has(t))return n.Safe;if(l.add(t),(0,s.isTypeAnyType)(t))return n.Any;if((0,s.isTypeAnyArrayType)(t,r))return n.AnyArray;for(let s of o.typeConstituents(t))if(o.isThenableType(r,a,s)){let t=r.getAwaitedType(s);if(t&&e(t,r,i,a,l)===n.Any)return n.PromiseAny}return n.Safe}(e,t,r,i,new Set)};let o=a(b8),s=k6();return(t=n||(k8.AnyType=n={}))[t.Any=0]="Any",t[t.PromiseAny=1]="PromiseAny",t[t.AnyArray=2]="AnyArray",t[t.Safe=3]="Safe",k8}(),kI),n=xT(),Object.defineProperty(kI,"getDecorators",{enumerable:!0,get:function(){return n.getDecorators}}),Object.defineProperty(kI,"getModifiers",{enumerable:!0,get:function(){return n.getModifiers}}),Object.defineProperty(kI,"typescriptVersionIsAtLeast",{enumerable:!0,get:function(){return n.typescriptVersionIsAtLeast}}),kI)}(),k7={};function k9(){if(sl)return ss;sl=1;let e="[^\\\\/]",t="[^/]",n="(?:\\/|$)",r="(?:^|\\/)",i=`\\.{1,2}${n}`,a=`(?!${r}${i})`,o=`(?!\\.{0,1}${n})`,s=`(?!${i})`,l=`${t}*?`,c={DOT_LITERAL:"\\.",PLUS_LITERAL:"\\+",QMARK_LITERAL:"\\?",SLASH_LITERAL:"\\/",ONE_CHAR:"(?=.)",QMARK:t,END_ANCHOR:n,DOTS_SLASH:i,NO_DOT:"(?!\\.)",NO_DOTS:a,NO_DOT_SLASH:o,NO_DOTS_SLASH:s,QMARK_NO_DOT:"[^.\\/]",STAR:l,START_ANCHOR:r,SEP:"/"},u={...c,SLASH_LITERAL:"[\\\\/]",QMARK:e,STAR:`${e}*?`,DOTS_SLASH:"\\.{1,2}(?:[\\\\/]|$)",NO_DOT:"(?!\\.)",NO_DOTS:"(?!(?:^|[\\\\/])\\.{1,2}(?:[\\\\/]|$))",NO_DOT_SLASH:"(?!\\.{0,1}(?:[\\\\/]|$))",NO_DOTS_SLASH:"(?!\\.{1,2}(?:[\\\\/]|$))",QMARK_NO_DOT:"[^.\\\\/]",START_ANCHOR:"(?:^|[\\\\/])",END_ANCHOR:"(?:[\\\\/]|$)",SEP:"\\"};return ss={MAX_LENGTH:65536,POSIX_REGEX_SOURCE:{alnum:"a-zA-Z0-9",alpha:"a-zA-Z",ascii:"\\x00-\\x7F",blank:" \\t",cntrl:"\\x00-\\x1F\\x7F",digit:"0-9",graph:"\\x21-\\x7E",lower:"a-z",print:"\\x20-\\x7E ",punct:"\\-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~",space:" \\t\\r\\n\\v\\f",upper:"A-Z",word:"A-Za-z0-9_",xdigit:"A-Fa-f0-9"},REGEX_BACKSLASH:/\\(?![*+?^${}(|)[\]])/g,REGEX_NON_SPECIAL_CHARS:/^[^@![\].,$*+?^{}()|\\/]+/,REGEX_SPECIAL_CHARS:/[-*+?.^${}(|)[\]]/,REGEX_SPECIAL_CHARS_BACKREF:/(\\?)((\W)(\3*))/g,REGEX_SPECIAL_CHARS_GLOBAL:/([-*+?.^${}(|)[\]])/g,REGEX_REMOVE_BACKSLASH:/(?:\[.*?[^\\]\]|\\(?=.))/g,REPLACEMENTS:{__proto__:null,"***":"*","**/**":"**","**/**/**":"**"},CHAR_0:48,CHAR_9:57,CHAR_UPPERCASE_A:65,CHAR_LOWERCASE_A:97,CHAR_UPPERCASE_Z:90,CHAR_LOWERCASE_Z:122,CHAR_LEFT_PARENTHESES:40,CHAR_RIGHT_PARENTHESES:41,CHAR_ASTERISK:42,CHAR_AMPERSAND:38,CHAR_AT:64,CHAR_BACKWARD_SLASH:92,CHAR_CARRIAGE_RETURN:13,CHAR_CIRCUMFLEX_ACCENT:94,CHAR_COLON:58,CHAR_COMMA:44,CHAR_DOT:46,CHAR_DOUBLE_QUOTE:34,CHAR_EQUAL:61,CHAR_EXCLAMATION_MARK:33,CHAR_FORM_FEED:12,CHAR_FORWARD_SLASH:47,CHAR_GRAVE_ACCENT:96,CHAR_HASH:35,CHAR_HYPHEN_MINUS:45,CHAR_LEFT_ANGLE_BRACKET:60,CHAR_LEFT_CURLY_BRACE:123,CHAR_LEFT_SQUARE_BRACKET:91,CHAR_LINE_FEED:10,CHAR_NO_BREAK_SPACE:160,CHAR_PERCENT:37,CHAR_PLUS:43,CHAR_QUESTION_MARK:63,CHAR_RIGHT_ANGLE_BRACKET:62,CHAR_RIGHT_CURLY_BRACE:125,CHAR_RIGHT_SQUARE_BRACKET:93,CHAR_SEMICOLON:59,CHAR_SINGLE_QUOTE:39,CHAR_SPACE:32,CHAR_TAB:9,CHAR_UNDERSCORE:95,CHAR_VERTICAL_LINE:124,CHAR_ZERO_WIDTH_NOBREAK_SPACE:65279,extglobChars:e=>({"!":{type:"negate",open:"(?:(?!(?:",close:`))${e.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}),globChars:e=>!0===e?u:c}}function Pe(){return sc||(sc=1,!function(e){let{REGEX_BACKSLASH:t,REGEX_REMOVE_BACKSLASH:n,REGEX_SPECIAL_CHARS:r,REGEX_SPECIAL_CHARS_GLOBAL:i}=k9();e.isObject=e=>null!==e&&"object"==typeof e&&!Array.isArray(e),e.hasRegexChars=e=>r.test(e),e.isRegexChar=t=>1===t.length&&e.hasRegexChars(t),e.escapeRegex=e=>e.replace(i,"\\$1"),e.toPosixSlashes=e=>e.replace(t,"/"),e.isWindows=()=>{if("undefined"!=typeof navigator&&navigator.platform){let e=navigator.platform.toLowerCase();return"win32"===e||"windows"===e}return"undefined"!=typeof process&&!!process.platform&&"win32"===process.platform},e.removeBackslashes=e=>e.replace(n,e=>"\\"===e?"":e),e.escapeLast=(t,n,r)=>{let i=t.lastIndexOf(n,r);return -1===i?t:"\\"===t[i-1]?e.escapeLast(t,n,i-1):`${t.slice(0,i)}\\${t.slice(i)}`},e.removePrefix=(e,t={})=>{let n=e;return n.startsWith("./")&&(n=n.slice(2),t.prefix="./"),n},e.wrapOutput=(e,t={},n={})=>{let r=n.contains?"":"^",i=n.contains?"":"$",a=`${r}(?:${e})${i}`;return!0===t.negated&&(a=`(?:^(?!${a}).*$)`),a},e.basename=(e,{windows:t}={})=>{let n=e.split(t?/[\\/]/:"/"),r=n[n.length-1];return""===r?n[n.length-2]:r}}(k7)),k7}var Pt=s1(function(){if(sh)return sg;sh=1;let e=function(){if(sm)return sf;sm=1;let e=function(){if(s_)return su;s_=1;let e=Pe(),{CHAR_ASTERISK:t,CHAR_AT:n,CHAR_BACKWARD_SLASH:r,CHAR_COMMA:i,CHAR_DOT:a,CHAR_EXCLAMATION_MARK:o,CHAR_FORWARD_SLASH:s,CHAR_LEFT_CURLY_BRACE:l,CHAR_LEFT_PARENTHESES:c,CHAR_LEFT_SQUARE_BRACKET:u,CHAR_PLUS:_,CHAR_QUESTION_MARK:d,CHAR_RIGHT_CURLY_BRACE:p,CHAR_RIGHT_PARENTHESES:f,CHAR_RIGHT_SQUARE_BRACKET:m}=k9(),g=e=>e===s||e===r,h=e=>{!0!==e.isPrefix&&(e.depth=e.isGlobstar?1/0:1)};return su=(y,b)=>{let T,S,x=b||{},E=y.length-1,k=!0===x.parts||!0===x.scanToEnd,P=[],C=[],w=[],A=y,D=-1,N=0,F=0,O=!1,I=!1,L=!1,M=!1,R=!1,j=!1,Y=!1,U=!1,B=!1,V=!1,J=0,z={value:"",depth:0,isGlob:!1},q=()=>D>=E,$=()=>A.charCodeAt(D+1),W=()=>(T=S,A.charCodeAt(++D));for(;D<E;){let e;if((S=W())===r){Y=z.backslashes=!0,(S=W())===l&&(j=!0);continue}if(!0===j||S===l){for(J++;!0!==q()&&(S=W());){if(S===r){Y=z.backslashes=!0,W();continue}if(S===l){J++;continue}if(!0!==j&&S===a&&(S=W())===a||!0!==j&&S===i){if(O=z.isBrace=!0,L=z.isGlob=!0,V=!0,!0===k)continue;break}if(S===p&&0==--J){j=!1,O=z.isBrace=!0,V=!0;break}}if(!0===k)continue;break}if(S===s){if(P.push(D),C.push(z),z={value:"",depth:0,isGlob:!1},!0===V)continue;if(T===a&&D===N+1){N+=2;continue}F=D+1;continue}if(!0!==x.noext&&!0==(S===_||S===n||S===t||S===d||S===o)&&$()===c){if(L=z.isGlob=!0,M=z.isExtglob=!0,V=!0,S===o&&D===N&&(B=!0),!0===k){for(;!0!==q()&&(S=W());){if(S===r){Y=z.backslashes=!0,S=W();continue}if(S===f){L=z.isGlob=!0,V=!0;break}}continue}break}if(S===t){if(T===t&&(R=z.isGlobstar=!0),L=z.isGlob=!0,V=!0,!0===k)continue;break}if(S===d){if(L=z.isGlob=!0,V=!0,!0===k)continue;break}if(S===u){for(;!0!==q()&&(e=W());){if(e===r){Y=z.backslashes=!0,W();continue}if(e===m){I=z.isBracket=!0,L=z.isGlob=!0,V=!0;break}}if(!0===k)continue;break}if(!0!==x.nonegate&&S===o&&D===N){U=z.negated=!0,N++;continue}if(!0!==x.noparen&&S===c){if(L=z.isGlob=!0,!0===k){for(;!0!==q()&&(S=W());){if(S===c){Y=z.backslashes=!0,S=W();continue}if(S===f){V=!0;break}}continue}break}if(!0===L){if(V=!0,!0===k)continue;break}}!0===x.noext&&(M=!1,L=!1);let K=A,H="",G="";N>0&&(H=A.slice(0,N),A=A.slice(N),F-=N),K&&!0===L&&F>0?(K=A.slice(0,F),G=A.slice(F)):!0===L?(K="",G=A):K=A,K&&""!==K&&"/"!==K&&K!==A&&g(K.charCodeAt(K.length-1))&&(K=K.slice(0,-1)),!0===x.unescape&&(G&&(G=e.removeBackslashes(G)),K&&!0===Y&&(K=e.removeBackslashes(K)));let X={prefix:H,input:y,start:N,base:K,glob:G,isBrace:O,isBracket:I,isGlob:L,isExtglob:M,isGlobstar:R,negated:U,negatedExtglob:B};if(!0===x.tokens&&(X.maxDepth=0,g(S)||C.push(z),X.tokens=C),!0===x.parts||!0===x.tokens){let e;for(let t=0;t<P.length;t++){let n=e?e+1:N,r=P[t],i=y.slice(n,r);x.tokens&&(0===t&&0!==N?(C[t].isPrefix=!0,C[t].value=H):C[t].value=i,h(C[t]),X.maxDepth+=C[t].depth),(0!==t||""!==i)&&w.push(i),e=r}if(e&&e+1<y.length){let t=y.slice(e+1);w.push(t),x.tokens&&(C[C.length-1].value=t,h(C[C.length-1]),X.maxDepth+=C[C.length-1].depth)}X.slashes=P,X.parts=w}return X}}(),t=function(){if(sp)return sd;sp=1;let e=k9(),t=Pe(),{MAX_LENGTH:n,POSIX_REGEX_SOURCE:r,REGEX_NON_SPECIAL_CHARS:i,REGEX_SPECIAL_CHARS_BACKREF:a,REPLACEMENTS:o}=e,s=(e,n)=>{if("function"==typeof n.expandRange)return n.expandRange(...e,n);e.sort();let r=`[${e.join("-")}]`;try{new RegExp(r)}catch(n){return e.map(e=>t.escapeRegex(e)).join("..")}return r},l=(e,t)=>`Missing ${e}: "${t}" - use "\\\\${t}" to match literal characters`,c=(u,_)=>{let d;if("string"!=typeof u)throw TypeError("Expected a string");u=o[u]||u;let p={..._},f="number"==typeof p.maxLength?Math.min(n,p.maxLength):n,m=u.length;if(m>f)throw SyntaxError(`Input length: ${m}, exceeds maximum allowed length: ${f}`);let g={type:"bos",value:"",output:p.prepend||""},h=[g],y=p.capture?"":"?:",b=e.globChars(p.windows),T=e.extglobChars(b),{DOT_LITERAL:S,PLUS_LITERAL:x,SLASH_LITERAL:E,ONE_CHAR:k,DOTS_SLASH:P,NO_DOT:C,NO_DOT_SLASH:w,NO_DOTS_SLASH:A,QMARK:D,QMARK_NO_DOT:N,STAR:F,START_ANCHOR:O}=b,I=e=>`(${y}(?:(?!${O}${e.dot?P:S}).)*?)`,L=p.dot?"":C,M=p.dot?D:N,R=!0===p.bash?I(p):F;p.capture&&(R=`(${R})`),"boolean"==typeof p.noext&&(p.noextglob=p.noext);let j={input:u,index:-1,start:0,dot:!0===p.dot,consumed:"",output:"",prefix:"",backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:h};m=(u=t.removePrefix(u,j)).length;let Y=[],U=[],B=[],V=g,J=()=>j.index===m-1,z=j.peek=(e=1)=>u[j.index+e],q=j.advance=()=>u[++j.index]||"",$=()=>u.slice(j.index+1),W=(e="",t=0)=>{j.consumed+=e,j.index+=t},K=e=>{j.output+=null!=e.output?e.output:e.value,W(e.value)},H=()=>{let e=1;for(;"!"===z()&&("("!==z(2)||"?"===z(3));)q(),j.start++,e++;return e%2!=0&&(j.negated=!0,j.start++,!0)},G=e=>{j[e]++,B.push(e)},X=e=>{j[e]--,B.pop()},Q=e=>{if("globstar"===V.type){let t=j.braces>0&&("comma"===e.type||"brace"===e.type),n=!0===e.extglob||Y.length&&("pipe"===e.type||"paren"===e.type);"slash"===e.type||"paren"===e.type||t||n||(j.output=j.output.slice(0,-V.output.length),V.type="star",V.value="*",V.output=R,j.output+=V.output)}if(Y.length&&"paren"!==e.type&&(Y[Y.length-1].inner+=e.value),(e.value||e.output)&&K(e),V&&"text"===V.type&&"text"===e.type){V.output=(V.output||V.value)+e.value,V.value+=e.value;return}e.prev=V,h.push(e),V=e},Z=(e,t)=>{let n={...T[t],conditions:1,inner:""};n.prev=V,n.parens=j.parens,n.output=j.output;let r=(p.capture?"(":"")+n.open;G("parens"),Q({type:e,value:t,output:j.output?"":k}),Q({type:"paren",extglob:!0,value:q(),output:r}),Y.push(n)},ee=e=>{let t,n=e.close+(p.capture?")":"");if("negate"===e.type){let r=R;if(e.inner&&e.inner.length>1&&e.inner.includes("/")&&(r=I(p)),(r!==R||J()||/^\)+$/.test($()))&&(n=e.close=`)$))${r}`),e.inner.includes("*")&&(t=$())&&/^\.[^\\/.]+$/.test(t)){let i=c(t,{..._,fastpaths:!1}).output;n=e.close=`)${i})${r})`}"bos"===e.prev.type&&(j.negatedExtglob=!0)}Q({type:"paren",extglob:!0,value:d,output:n}),X("parens")};if(!1!==p.fastpaths&&!/(^[*!]|[/()[\]{}"])/.test(u)){let e=!1,n=u.replace(a,(t,n,r,i,a,o)=>"\\"===i?(e=!0,t):"?"===i?n?n+i+(a?D.repeat(a.length):""):0===o?M+(a?D.repeat(a.length):""):D.repeat(r.length):"."===i?S.repeat(r.length):"*"===i?n?n+i+(a?R:""):R:n?t:`\\${t}`);return(!0===e&&(n=!0===p.unescape?n.replace(/\\/g,""):n.replace(/\\+/g,e=>e.length%2==0?"\\\\":e?"\\":"")),n===u&&!0===p.contains)?j.output=u:j.output=t.wrapOutput(n,j,_),j}for(;!J();){if("\0"===(d=q()))continue;if("\\"===d){let e=z();if("/"===e&&!0!==p.bash||"."===e||";"===e)continue;if(!e){Q({type:"text",value:d+="\\"});continue}let t=/^\\+/.exec($()),n=0;if(t&&t[0].length>2&&(n=t[0].length,j.index+=n,n%2!=0&&(d+="\\")),!0===p.unescape?d=q():d+=q(),0===j.brackets){Q({type:"text",value:d});continue}}if(j.brackets>0&&("]"!==d||"["===V.value||"[^"===V.value)){if(!1!==p.posix&&":"===d){let e=V.value.slice(1);if(e.includes("[")&&(V.posix=!0,e.includes(":"))){let e=V.value.lastIndexOf("["),t=V.value.slice(0,e),n=r[V.value.slice(e+2)];if(n){V.value=t+n,j.backtrack=!0,q(),g.output||1!==h.indexOf(V)||(g.output=k);continue}}}("["===d&&":"!==z()||"-"===d&&"]"===z())&&(d=`\\${d}`),"]"===d&&("["===V.value||"[^"===V.value)&&(d=`\\${d}`),!0===p.posix&&"!"===d&&"["===V.value&&(d="^"),V.value+=d,K({value:d});continue}if(1===j.quotes&&'"'!==d){d=t.escapeRegex(d),V.value+=d,K({value:d});continue}if('"'===d){j.quotes=+(1!==j.quotes),!0===p.keepQuotes&&Q({type:"text",value:d});continue}if("("===d){G("parens"),Q({type:"paren",value:d});continue}if(")"===d){if(0===j.parens&&!0===p.strictBrackets)throw SyntaxError(l("opening","("));let e=Y[Y.length-1];if(e&&j.parens===e.parens+1){ee(Y.pop());continue}Q({type:"paren",value:d,output:j.parens?")":"\\)"}),X("parens");continue}if("["===d){if(!0!==p.nobracket&&$().includes("]"))G("brackets");else{if(!0!==p.nobracket&&!0===p.strictBrackets)throw SyntaxError(l("closing","]"));d=`\\${d}`}Q({type:"bracket",value:d});continue}if("]"===d){if(!0===p.nobracket||V&&"bracket"===V.type&&1===V.value.length){Q({type:"text",value:d,output:`\\${d}`});continue}if(0===j.brackets){if(!0===p.strictBrackets)throw SyntaxError(l("opening","["));Q({type:"text",value:d,output:`\\${d}`});continue}X("brackets");let e=V.value.slice(1);if(!0===V.posix||"^"!==e[0]||e.includes("/")||(d=`/${d}`),V.value+=d,K({value:d}),!1===p.literalBrackets||t.hasRegexChars(e))continue;let n=t.escapeRegex(V.value);if(j.output=j.output.slice(0,-V.value.length),!0===p.literalBrackets){j.output+=n,V.value=n;continue}V.value=`(${y}${n}|${V.value})`,j.output+=V.value;continue}if("{"===d&&!0!==p.nobrace){G("braces");let e={type:"brace",value:d,output:"(",outputIndex:j.output.length,tokensIndex:j.tokens.length};U.push(e),Q(e);continue}if("}"===d){let e=U[U.length-1];if(!0===p.nobrace||!e){Q({type:"text",value:d,output:d});continue}let t=")";if(!0===e.dots){let e=h.slice(),n=[];for(let t=e.length-1;t>=0&&(h.pop(),"brace"!==e[t].type);t--)"dots"!==e[t].type&&n.unshift(e[t].value);t=s(n,p),j.backtrack=!0}if(!0!==e.comma&&!0!==e.dots){let n=j.output.slice(0,e.outputIndex),r=j.tokens.slice(e.tokensIndex);for(let i of(e.value=e.output="\\{",d=t="\\}",j.output=n,r))j.output+=i.output||i.value}Q({type:"brace",value:d,output:t}),X("braces"),U.pop();continue}if("|"===d){Y.length>0&&Y[Y.length-1].conditions++,Q({type:"text",value:d});continue}if(","===d){let e=d,t=U[U.length-1];t&&"braces"===B[B.length-1]&&(t.comma=!0,e="|"),Q({type:"comma",value:d,output:e});continue}if("/"===d){if("dot"===V.type&&j.index===j.start+1){j.start=j.index+1,j.consumed="",j.output="",h.pop(),V=g;continue}Q({type:"slash",value:d,output:E});continue}if("."===d){if(j.braces>0&&"dot"===V.type){"."===V.value&&(V.output=S);let e=U[U.length-1];V.type="dots",V.output+=d,V.value+=d,e.dots=!0;continue}if(j.braces+j.parens===0&&"bos"!==V.type&&"slash"!==V.type){Q({type:"text",value:d,output:S});continue}Q({type:"dot",value:d,output:S});continue}if("?"===d){if(!(V&&"("===V.value)&&!0!==p.noextglob&&"("===z()&&"?"!==z(2)){Z("qmark",d);continue}if(V&&"paren"===V.type){let e=z(),t=d;("("!==V.value||/[!=<:]/.test(e))&&("<"!==e||/<([!=]|\w+>)/.test($()))||(t=`\\${d}`),Q({type:"text",value:d,output:t});continue}if(!0!==p.dot&&("slash"===V.type||"bos"===V.type)){Q({type:"qmark",value:d,output:N});continue}Q({type:"qmark",value:d,output:D});continue}if("!"===d){if(!0!==p.noextglob&&"("===z()&&("?"!==z(2)||!/[!=<:]/.test(z(3)))){Z("negate",d);continue}if(!0!==p.nonegate&&0===j.index){H();continue}}if("+"===d){if(!0!==p.noextglob&&"("===z()&&"?"!==z(2)){Z("plus",d);continue}if(V&&"("===V.value||!1===p.regex){Q({type:"plus",value:d,output:x});continue}if(V&&("bracket"===V.type||"paren"===V.type||"brace"===V.type)||j.parens>0){Q({type:"plus",value:d});continue}Q({type:"plus",value:x});continue}if("@"===d){if(!0!==p.noextglob&&"("===z()&&"?"!==z(2)){Q({type:"at",extglob:!0,value:d,output:""});continue}Q({type:"text",value:d});continue}if("*"!==d){("$"===d||"^"===d)&&(d=`\\${d}`);let e=i.exec($());e&&(d+=e[0],j.index+=e[0].length),Q({type:"text",value:d});continue}if(V&&("globstar"===V.type||!0===V.star)){V.type="star",V.star=!0,V.value+=d,V.output=R,j.backtrack=!0,j.globstar=!0,W(d);continue}let e=$();if(!0!==p.noextglob&&/^\([^?]/.test(e)){Z("star",d);continue}if("star"===V.type){if(!0===p.noglobstar){W(d);continue}let t=V.prev,n=t.prev,r="slash"===t.type||"bos"===t.type,i=n&&("star"===n.type||"globstar"===n.type);if(!0===p.bash&&(!r||e[0]&&"/"!==e[0])){Q({type:"star",value:d,output:""});continue}let a=j.braces>0&&("comma"===t.type||"brace"===t.type),o=Y.length&&("pipe"===t.type||"paren"===t.type);if(!r&&"paren"!==t.type&&!a&&!o){Q({type:"star",value:d,output:""});continue}for(;"/**"===e.slice(0,3);){let t=u[j.index+4];if(t&&"/"!==t)break;e=e.slice(3),W("/**",3)}if("bos"===t.type&&J()){V.type="globstar",V.value+=d,V.output=I(p),j.output=V.output,j.globstar=!0,W(d);continue}if("slash"===t.type&&"bos"!==t.prev.type&&!i&&J()){j.output=j.output.slice(0,-(t.output+V.output).length),t.output=`(?:${t.output}`,V.type="globstar",V.output=I(p)+(p.strictSlashes?")":"|$)"),V.value+=d,j.globstar=!0,j.output+=t.output+V.output,W(d);continue}if("slash"===t.type&&"bos"!==t.prev.type&&"/"===e[0]){let n=void 0!==e[1]?"|$":"";j.output=j.output.slice(0,-(t.output+V.output).length),t.output=`(?:${t.output}`,V.type="globstar",V.output=`${I(p)}${E}|${E}${n})`,V.value+=d,j.output+=t.output+V.output,j.globstar=!0,W(d+q()),Q({type:"slash",value:"/",output:""});continue}if("bos"===t.type&&"/"===e[0]){V.type="globstar",V.value+=d,V.output=`(?:^|${E}|${I(p)}${E})`,j.output=V.output,j.globstar=!0,W(d+q()),Q({type:"slash",value:"/",output:""});continue}j.output=j.output.slice(0,-V.output.length),V.type="globstar",V.output=I(p),V.value+=d,j.output+=V.output,j.globstar=!0,W(d);continue}let n={type:"star",value:d,output:R};if(!0===p.bash){n.output=".*?",("bos"===V.type||"slash"===V.type)&&(n.output=L+n.output),Q(n);continue}if(V&&("bracket"===V.type||"paren"===V.type)&&!0===p.regex){n.output=d,Q(n);continue}(j.index===j.start||"slash"===V.type||"dot"===V.type)&&("dot"===V.type?(j.output+=w,V.output+=w):!0===p.dot?(j.output+=A,V.output+=A):(j.output+=L,V.output+=L),"*"!==z()&&(j.output+=k,V.output+=k)),Q(n)}for(;j.brackets>0;){if(!0===p.strictBrackets)throw SyntaxError(l("closing","]"));j.output=t.escapeLast(j.output,"["),X("brackets")}for(;j.parens>0;){if(!0===p.strictBrackets)throw SyntaxError(l("closing",")"));j.output=t.escapeLast(j.output,"("),X("parens")}for(;j.braces>0;){if(!0===p.strictBrackets)throw SyntaxError(l("closing","}"));j.output=t.escapeLast(j.output,"{"),X("braces")}if(!0!==p.strictSlashes&&("star"===V.type||"bracket"===V.type)&&Q({type:"maybe_slash",value:"",output:`${E}?`}),!0===j.backtrack)for(let e of(j.output="",j.tokens))j.output+=null!=e.output?e.output:e.value,e.suffix&&(j.output+=e.suffix);return j};return c.fastpaths=(r,i)=>{let a={...i},s="number"==typeof a.maxLength?Math.min(n,a.maxLength):n,l=r.length;if(l>s)throw SyntaxError(`Input length: ${l}, exceeds maximum allowed length: ${s}`);r=o[r]||r;let{DOT_LITERAL:c,SLASH_LITERAL:u,ONE_CHAR:_,DOTS_SLASH:d,NO_DOT:p,NO_DOTS:f,NO_DOTS_SLASH:m,STAR:g,START_ANCHOR:h}=e.globChars(a.windows),y=a.dot?f:p,b=a.dot?m:p,T=a.capture?"":"?:",S=!0===a.bash?".*?":g;a.capture&&(S=`(${S})`);let x=e=>!0===e.noglobstar?S:`(${T}(?:(?!${h}${e.dot?d:c}).)*?)`,E=e=>{switch(e){case"*":return`${y}${_}${S}`;case".*":return`${c}${_}${S}`;case"*.*":return`${y}${S}${c}${_}${S}`;case"*/*":return`${y}${S}${u}${_}${b}${S}`;case"**":return y+x(a);case"**/*":return`(?:${y}${x(a)}${u})?${b}${_}${S}`;case"**/*.*":return`(?:${y}${x(a)}${u})?${b}${S}${c}${_}${S}`;case"**/.*":return`(?:${y}${x(a)}${u})?${c}${_}${S}`;default:{let t=/^(.*?)\.(\w+)$/.exec(e);if(!t)return;let n=E(t[1]);if(!n)return;return n+c+t[2]}}},k=E(t.removePrefix(r,{negated:!1,prefix:""}));return k&&!0!==a.strictSlashes&&(k+=`${u}?`),k},sd=c}(),n=Pe(),r=k9(),i=(e,t,n=!1)=>{if(Array.isArray(e)){let r=e.map(e=>i(e,t,n));return e=>{for(let t of r){let n=t(e);if(n)return n}return!1}}let r=e&&"object"==typeof e&&!Array.isArray(e)&&e.tokens&&e.input;if(""===e||"string"!=typeof e&&!r)throw TypeError("Expected pattern to be a non-empty string");let a=t||{},o=a.windows,s=r?i.compileRe(e,t):i.makeRe(e,t,!1,!0),l=s.state;delete s.state;let c=()=>!1;if(a.ignore){let e={...t,ignore:null,onMatch:null,onResult:null};c=i(a.ignore,e,n)}let u=(n,r=!1)=>{let{isMatch:u,match:_,output:d}=i.test(n,s,t,{glob:e,posix:o}),p={glob:e,state:l,regex:s,posix:o,input:n,output:d,match:_,isMatch:u};return("function"==typeof a.onResult&&a.onResult(p),!1===u)?(p.isMatch=!1,!!r&&p):c(n)?("function"==typeof a.onIgnore&&a.onIgnore(p),p.isMatch=!1,!!r&&p):("function"==typeof a.onMatch&&a.onMatch(p),!r||p)};return n&&(u.state=l),u};return i.test=(e,t,r,{glob:a,posix:o}={})=>{if("string"!=typeof e)throw TypeError("Expected input to be a string");if(""===e)return{isMatch:!1,output:""};let s=r||{},l=s.format||(o?n.toPosixSlashes:null),c=e===a,u=c&&l?l(e):e;return!1===c&&(c=(u=l?l(e):e)===a),(!1===c||!0===s.capture)&&(c=!0===s.matchBase||!0===s.basename?i.matchBase(e,t,r,o):t.exec(u)),{isMatch:!!c,match:c,output:u}},i.matchBase=(e,t,r)=>(t instanceof RegExp?t:i.makeRe(t,r)).test(n.basename(e)),i.isMatch=(e,t,n)=>i(t,n)(e),i.parse=(e,n)=>Array.isArray(e)?e.map(e=>i.parse(e,n)):t(e,{...n,fastpaths:!1}),i.scan=(t,n)=>e(t,n),i.compileRe=(e,t,n=!1,r=!1)=>{if(!0===n)return e.output;let a=t||{},o=a.contains?"":"^",s=a.contains?"":"$",l=`${o}(?:${e.output})${s}`;e&&!0===e.negated&&(l=`^(?!${l}).*$`);let c=i.toRegex(l,t);return!0===r&&(c.state=e),c},i.makeRe=(e,n={},r=!1,a=!1)=>{if(!e||"string"!=typeof e)throw TypeError("Expected a non-empty string");let o={negated:!1,fastpaths:!0};return!1!==n.fastpaths&&("."===e[0]||"*"===e[0])&&(o.output=t.fastpaths(e,n)),o.output||(o=t(e,n)),i.compileRe(o,n,r,a)},i.toRegex=(e,t)=>{try{let n=t||{};return new RegExp(e,n.flags||(n.nocase?"i":""))}catch(e){if(t&&!0===t.debug)throw e;return/$^/}},i.constants=r,sf=i}(),t=Pe();function n(r,i,a=!1){return i&&(null===i.windows||void 0===i.windows)&&(i={...i,windows:t.isWindows()}),e(r,i,a)}return Object.assign(n,e),sg=n}());function Pn(e,t){return 0===t.length||t.some(t=>e.isSourceFileDefaultLibrary(t))}function Pr(e,t){return e.some(e=>{let n=function e(t){switch(t.kind){case yf.SyntaxKind.ModuleDeclaration:return yf.isStringLiteral(t.name)?t:void 0;case yf.SyntaxKind.SourceFile:return;default:return e(t.parent)}}(e);return void 0!==n&&(void 0===t||n.name.text===t)})}function Pi(e,t,n){let r=n?.replace(/^@([^/]+)\//u,"$1__"),i=void 0===n?void 0:RegExp(`${n}|${r}`,"u");return t.some(t=>{let n=e.sourceFileToPackageName.get(t.path);return void 0!==n&&(void 0===i||i.test(n))&&e.isSourceFileFromExternalLibrary(t)})}function Pa(e,t){return Ps(e)?t:Ps(t)?e:Math.min(e,t)}function Po(e,t){return Ps(e)?t:Ps(t)?e:Math.max(e,t)}function Ps(e){return Number.isNaN(e)}function Pl(e,t){if(vl(e))throw Error("ErrorType encountered.");return{type:e,typeNode:null==t||t.pos<0?null:t}}function Pc(e,t,n,r){let i=e.getTypeChecker().getRecursionIdentity(n.type);null!==n.typeNode&&t.set(n.typeNode,r),t.set(i,r)}function Pu(e,t,n,r){let i="string"==typeof t?[t]:t instanceof RegExp||void 0===t.name?[]:Array.isArray(t.name)?t.name:[t.name],a=t instanceof RegExp?[t]:"string"==typeof t||void 0===t.pattern?[]:Array.isArray(t.pattern)?t.pattern:[t.pattern],o="string"==typeof t||t instanceof RegExp||void 0===t.ignoreName?[]:Array.isArray(t.ignoreName)?t.ignoreName:[t.ignoreName],s="string"==typeof t||t instanceof RegExp||void 0===t.ignorePattern?[]:Array.isArray(t.ignorePattern)?t.ignorePattern:[t.ignorePattern],l=[...i,...a],c=[...o,...s];return r(e,n.type,n.typeNode,l,c)}(i=sy||(sy={}))[i.Unknown=NaN]="Unknown",i[i.Mutable=2]="Mutable",i[i.ReadonlyShallow=3]="ReadonlyShallow",i[i.ReadonlyDeep=4]="ReadonlyDeep",i[i.Immutable=5]="Immutable",i[i.Calculating=1/0]="Calculating";function P_(e){return vy(e)&&void 0!==e.typeArguments&&e.typeArguments.length>0}let Pd=new WeakMap;function Pp(e){return{typeData:e,stage:0,immutability:sy.Calculating}}function Pf(e,t,n){return{typeData:e.typeData,children:t,childrenReducer:n,stage:1,immutability:sy.Calculating}}function Pm(e,t){return{taskState:e,notDoneAction:t,stage:5}}function Pg(e,t,n){t.push(Pm(n,()=>{n.stage=7,n.immutability=Po(n.limits.min,n.limits.max),t.push(n)}),Pm(n,()=>{P_(n.typeData.type)&&Py(t,n)})),Ph(e,t,n)}function Ph(e,t,n){n.stage=2,n.limits={...e.immutabilityLimits},t.push(Pm(n,()=>{if(P_(n.typeData.type)){n.stage=3,t.push(n);return}n.stage=4,t.push(n)}));let r=e.program.getTypeChecker(),i=n.typeData.type.getProperties();if(i.length>0)for(let e of i){if(vk(n.typeData.type,e.getEscapedName(),r)||"length"===e.escapedName&&r.isTupleType(n.typeData.type))continue;let t=yf.getNameOfDeclaration(e.valueDeclaration);if(void 0!==t&&yf.isPrivateIdentifier(t))continue;let i=e.getDeclarations()??[];if(i.length>0&&(i.some(e=>Object.hasOwn(e,"symbol")&&yv(e.symbol,yf.SymbolFlags.Method))||i.every(e=>yf.isPropertySignature(e)&&void 0!==e.type&&yf.isFunctionTypeNode(e.type)))){n.limits.max=Pa(n.limits.max,sy.ReadonlyDeep);continue}n.immutability=sy.Mutable;return}let a=new Map(null!==n.typeData.typeNode&&y$(n.typeData.typeNode)&&void 0!==n.typeData.typeNode.type&&yf.isTypeLiteralNode(n.typeData.typeNode.type)?n.typeData.typeNode.type.members.map(e=>{var t;return void 0!==e.name&&y$(e)&&void 0!==e.type?[(t=e.name,yf.isIdentifier(t)||yf.isPrivateIdentifier(t),t.getText()),e.type]:void 0}).filter(e=>void 0!==e):[]),o=i.map(e=>{let t=k5.getTypeOfPropertyOfType(r,n.typeData.type,e);return void 0===t||vu(t)&&"error"===t.intrinsicName?null:Pp(Pl(t,a.get(e.getEscapedName())))}).filter(e=>null!==e);o.length>0&&(n.limits.min=sy.ReadonlyShallow,t.push(Pf(n,o,Pa),...o))}function Py(e,t){let n=t.typeData.type.typeArguments.map(e=>Pp(Pl(e,void 0)));e.push(Pf(t,n,Pa),...n)}function Pv(e,t,n,r){let i=e.program.getTypeChecker().getIndexInfoOfType(r.type,n);if(void 0===i)return t.immutability=sy.Unknown,[];if(e.immutabilityLimits.max<=sy.ReadonlyShallow)return t.immutability=sy.ReadonlyShallow,[];if(i.isReadonly){if(i.type===r.type)return t.immutability=e.immutabilityLimits.max,[];let n=Pp(Pl(i.type,void 0));return[Pf(t,[{immutability:sy.ReadonlyShallow},n],Po),n]}return t.immutability=sy.Mutable,[]}(a=sv||(sv={}))[a.Triage=0]="Triage",a[a.ReduceChildren=1]="ReduceChildren",a[a.ObjectProperties=2]="ObjectProperties",a[a.ObjectTypeReference=3]="ObjectTypeReference",a[a.ObjectIndexSignature=4]="ObjectIndexSignature",a[a.CheckDone=5]="CheckDone",a[a.ApplyOverride=6]="ApplyOverride",a[a.Done=7]="Done";var Pb=Object.defineProperty,PT=e=>{let t={};for(var n in e)Pb(t,n,{get:e[n],enumerable:!0});return t};let PS=h1.ESLintUtils.RuleCreator(function(e){return`${_h}/docs/rules/${e}`}),Px=e=>yv(e,yf.TypeFlags.TypeParameter|yf.TypeFlags.Any),PE=e=>yv(e,yf.TypeFlags.BigIntLike),Pk=e=>yv(e,yf.TypeFlags.BooleanLike),PP=e=>yv(e,yf.TypeFlags.EnumLike),PC=e=>e.isLiteral()&&ls.isMatching({value:{base10Value:"0"}},e),Pw=e=>e.isNumberLiteral()&&0===e.value,PA=e=>e.isStringLiteral()&&""===e.value,PD=e=>yv(e,yf.TypeFlags.Never),PN=e=>yv(e,yf.TypeFlags.Null|yf.TypeFlags.Undefined|yf.TypeFlags.VoidLike),PF=e=>yv(e,yf.TypeFlags.NumberLike),PO=e=>!yv(e,yf.TypeFlags.Null|yf.TypeFlags.Undefined|yf.TypeFlags.VoidLike|yf.TypeFlags.BooleanLike|yf.TypeFlags.StringLike|yf.TypeFlags.NumberLike|yf.TypeFlags.BigIntLike|yf.TypeFlags.TypeParameter|yf.TypeFlags.Any|yf.TypeFlags.Unknown|yf.TypeFlags.Never),PI=e=>yv(e,yf.TypeFlags.StringLike),PL=e=>e.isLiteral()&&ls.isMatching({value:{base10Value:ls.P.not("0")}},e),PM=e=>e.isNumberLiteral()&&0!==e.value,PR=e=>e.isStringLiteral()&&""!==e.value,Pj=e=>yv(e,yf.TypeFlags.Unknown);var PY=PS({meta:{type:"problem",docs:{description:"Prevents dollar signs from being inserted as text nodes before expressions.",[Symbol.for("rule_features")]:[]},fixable:"code",hasSuggestions:!0,messages:{jsxDollar:"Possible unnecessary '$' character before expression.",removeDollarSign:"Remove the dollar sign '$' before the expression."},schema:[]},name:"jsx-dollar",create:function(e){let t=t=>{for(let[n,r]of t.children.entries()){if(r.type!==_q.AST_NODE_TYPES.JSXText||!r.value.endsWith("$")||t.children[n+1]?.type!==_q.AST_NODE_TYPES.JSXExpressionContainer||"$"===r.value&&2===t.children.length)continue;let i=r.loc.end;e.report({messageId:"jsxDollar",node:r,loc:{end:{column:i.column,line:i.line},start:{column:i.column-1,line:i.line}},suggest:[{messageId:"removeDollarSign",fix:e=>e.removeRange([r.range[1]-1,r.range[1]])}]})}};return{JSXElement:t,JSXFragment:t}},defaultOptions:[]}),PU=PS({meta:{type:"problem",docs:{description:"Enforces that the 'key' prop is placed before the spread prop in JSX elements.",[Symbol.for("rule_features")]:["EXP"]},messages:{jsxKeyBeforeSpread:"The 'key' prop must be placed before any spread props."},schema:[]},name:"jsx-key-before-spread",create:function(e){return{JSXOpeningElement(t){let n=null;for(let[r,i]of t.attributes.entries()){if(i.type===_q.AST_NODE_TYPES.JSXSpreadAttribute){n??=r;continue}null!=n&&"key"===i.name.name&&r>n&&e.report({messageId:"jsxKeyBeforeSpread",node:i})}}}},defaultOptions:[]}),PB=PS({meta:{type:"problem",docs:{description:"Prevents comments from being inserted as text nodes.",[Symbol.for("rule_features")]:[]},messages:{jsxNoCommentTextnodes:"Possible misused comment in text node. Comments inside children section of tag should be placed inside braces."},schema:[]},name:"jsx-no-comment-textnodes",create:function(e){let t=t=>{xA([_q.AST_NODE_TYPES.JSXElement,_q.AST_NODE_TYPES.JSXFragment])(t.parent)&&!xA([_q.AST_NODE_TYPES.JSXAttribute,_q.AST_NODE_TYPES.JSXExpressionContainer])(t.parent)&&/^\s*\/(?:\/|\*)/mu.test(e.sourceCode.getText(t))&&e.report({messageId:"jsxNoCommentTextnodes",node:t})};return{JSXText:t,Literal:t}},defaultOptions:[]}),PV=PS({meta:{type:"problem",docs:{description:"Disallow duplicate props in JSX elements.",[Symbol.for("rule_features")]:[]},messages:{jsxNoDuplicateProps:"This JSX property is assigned multiple times."},schema:[]},name:"jsx-no-duplicate-props",create:function(e){return{JSXOpeningElement(t){let n=[];for(let r of t.attributes){if(r.type===_q.AST_NODE_TYPES.JSXSpreadAttribute)continue;let t=r.name.name;if("string"==typeof t){if(!n.includes(t)){n.push(t);continue}e.report({messageId:"jsxNoDuplicateProps",node:r})}}}}},defaultOptions:[]}),PJ=PS({meta:{type:"problem",docs:{description:"Disallows 'IIFE' in JSX elements.",[Symbol.for("rule_features")]:["EXP"]},messages:{jsxNoIife:"Avoid using IIFE in JSX elements."},schema:[]},name:"jsx-no-iife",create:function(e){return{"JSXElement :function"(t){t.parent.type===_q.AST_NODE_TYPES.CallExpression&&t.parent.callee===t&&e.report({messageId:"jsxNoIife",node:t.parent})},"JSXFragment :function"(t){t.parent.type===_q.AST_NODE_TYPES.CallExpression&&t.parent.callee===t&&e.report({messageId:"jsxNoIife",node:t.parent})}}},defaultOptions:[]}),Pz=PS({meta:{type:"problem",docs:{description:"Disallow undefined variables in JSX.",[Symbol.for("rule_features")]:[]},messages:{jsxNoUndef:"JSX variable '{{name}}' is not defined."},schema:[]},name:"jsx-no-undef",create:function(e){return{JSXOpeningElement(t){let n=ls.match(t.name).with({type:_q.AST_NODE_TYPES.JSXIdentifier},e=>e.name).with({type:_q.AST_NODE_TYPES.JSXMemberExpression,object:{type:_q.AST_NODE_TYPES.JSXIdentifier}},e=>e.object.name).otherwise(()=>null);null==n||"this"===n||/^[a-z]/u.test(n)||null==x9(n,e.sourceCode.getScope(t))&&e.report({messageId:"jsxNoUndef",node:t,data:{name:n}})}}},defaultOptions:[]});let Pq=[1];var P$=PS({meta:{type:"problem",docs:{description:"Enforces shorthand syntax for boolean attributes.",[Symbol.for("rule_features")]:["CFG","FIX"]},fixable:"code",messages:{jsxShorthandBoolean:"{{message}}"},schema:[{type:"integer",enum:[-1,1]}]},name:"jsx-shorthand-boolean",create:function(e){let t=e.options[0]??Pq[0];return{JSXAttribute(n){let{value:r}=n,i=EI(n.name);switch(!0){case 1===t&&r?.type===_q.AST_NODE_TYPES.JSXExpressionContainer&&r.expression.type===_q.AST_NODE_TYPES.Literal&&!0===r.expression.value:e.report({messageId:"jsxShorthandBoolean",node:n,data:{message:`Omit attribute value for '${i}'.`},fix:e=>e.removeRange([n.name.range[1],r.range[1]])});break;case -1===t&&null===r:e.report({messageId:"jsxShorthandBoolean",node:n.value??n,data:{message:`Set attribute value for '${i}'.`},fix:e=>e.insertTextAfter(n.name,"={true}")})}}}},defaultOptions:Pq});let PW=[1];var PK=PS({meta:{type:"problem",docs:{description:"Enforces shorthand syntax for fragments.",[Symbol.for("rule_features")]:["CFG","FIX"]},fixable:"code",messages:{jsxShorthandFragment:"{{message}}"},schema:[{type:"integer",enum:[-1,1]}]},name:"jsx-shorthand-fragment",create:function(e){let t=e.options[0]??PW[0],{jsxFragmentFactory:n}={...ER(e),...EY(e)};return ls.match(t).with(1,()=>({JSXElement(t){!E$(e,t)||t.openingElement.attributes.length>0||e.report({messageId:"jsxShorthandFragment",node:t,data:{message:"Use fragment shorthand syntax instead of 'Fragment' component."},fix:e=>{let{closingElement:n,openingElement:r}=t;return null==n?[]:[e.replaceTextRange([r.range[0],r.range[1]],"<>"),e.replaceTextRange([n.range[0],n.range[1]],"</>")]}})}})).with(-1,()=>({JSXFragment(t){e.report({messageId:"jsxShorthandFragment",node:t,data:{message:"Use 'Fragment' component instead of fragment shorthand syntax."},fix:e=>{let{closingFragment:r,openingFragment:i}=t;return[e.replaceTextRange([i.range[0],i.range[1]],`<${n}>`),e.replaceTextRange([r.range[0],r.range[1]],`</${n}>`)]}})}})).otherwise(()=>({}))},defaultOptions:PW}),PH=PS({meta:{type:"problem",docs:{description:"Marks React variables as used when JSX is used.",[Symbol.for("rule_features")]:[]},messages:{jsxUsesReact:"Marked {{name}} as used."},schema:[]},name:"jsx-uses-react",create:function(e){let{jsx:t,jsxFactory:n,jsxFragmentFactory:r}={...ER(e),...EY(e)};if(4===t||5===t)return{};function i(t){e.sourceCode.markVariableAsUsed(n,t),PG(e,t,n)}return{JSXFragment:function(t){e.sourceCode.markVariableAsUsed(r,t),PG(e,t,r)},JSXOpeningElement:i,JSXOpeningFragment:i}},defaultOptions:[]});function PG(e,t,n){"1"===process.env.ESLINT_REACT_DEBUG&&e.report({messageId:"jsxUsesReact",node:t,data:{name:n}})}var PX=PS({meta:{type:"problem",docs:{description:"Marks variables used in JSX elements as used.",[Symbol.for("rule_features")]:[]},messages:{jsxUsesVars:"An identifier in JSX is marked as used."},schema:[]},name:"jsx-uses-vars",create:function(e){return{JSXOpeningElement(t){switch(t.name.type){case _q.AST_NODE_TYPES.JSXIdentifier:if(/^[a-z]/u.test(t.name.name))return;e.sourceCode.markVariableAsUsed(t.name.name,t);break;case _q.AST_NODE_TYPES.JSXMemberExpression:{let{object:n}=t.name;n.type===_q.AST_NODE_TYPES.JSXIdentifier&&e.sourceCode.markVariableAsUsed(n.name,t)}}}}},defaultOptions:[]}),PQ=PS({meta:{type:"problem",docs:{description:"Disallow accessing `this.state` inside `setState` calls.",[Symbol.for("rule_features")]:[]},messages:{noAccessStateInSetstate:"Do not access 'this.state' within 'setState'. Use the update function instead."},schema:[]},name:"no-access-state-in-setstate",create:function(e){if(!e.sourceCode.text.includes("setState"))return{};let t=[],n=[],r=[];return{CallExpression(e){kS(e)&&r.push([e,!1])},"CallExpression:exit"(e){kS(e)&&r.pop()},ClassDeclaration(e){t.push([e,EH(e)])},"ClassDeclaration:exit"(){t.pop()},ClassExpression(e){t.push([e,EH(e)])},"ClassExpression:exit"(){t.pop()},MemberExpression(i){if(!xJ(i.object))return;let[a,o=!1]=t.at(-1)??[];if(null==a||!o)return;let[s,l=!1]=n.at(-1)??[];if(null==s||l)return;let[c,u=!1]=r.at(-1)??[];null==c||u||"state"===x2(i.property)&&e.report({messageId:"noAccessStateInSetstate",node:i})},MethodDefinition(e){n.push([e,e.static])},"MethodDefinition:exit"(){n.pop()},PropertyDefinition(e){n.push([e,e.static])},"PropertyDefinition:exit"(){n.pop()},VariableDeclarator(i){let[a,o=!1]=t.at(-1)??[];if(null==a||!o)return;let[s,l=!1]=n.at(-1)??[];if(null==s||l)return;let[c,u=!1]=r.at(-1)??[];null==c||u||null==i.init||!xJ(i.init)||i.id.type!==_q.AST_NODE_TYPES.ObjectPattern||i.id.properties.some(e=>{var t;return e.type===_q.AST_NODE_TYPES.Property&&(t=e.key,ls.match(t).with({type:_q.AST_NODE_TYPES.Literal},ln).with({type:_q.AST_NODE_TYPES.TemplateLiteral,expressions:[]},ln).with({type:_q.AST_NODE_TYPES.Identifier},()=>!e.computed).otherwise(lr))&&"state"===x2(e.key)})&&e.report({messageId:"noAccessStateInSetstate",node:i})}}},defaultOptions:[]});let PZ=["forEach","map"];var P0=PS({meta:{type:"problem",docs:{description:"Disallow an item's index in the array as its key.",[Symbol.for("rule_features")]:[]},messages:{noArrayIndexKey:"Do not use item index in the array as its key."},schema:[]},name:"no-array-index-key",create:function(t){let n=[];function r(e){return e.type===_q.AST_NODE_TYPES.Identifier&&n.some(t=>null!=t&&t===e.name)}function i(e){switch(e.type){case _q.AST_NODE_TYPES.Identifier:if(n.some(t=>null!=t&&t===e.name))return[{messageId:"noArrayIndexKey",node:e}];break;case _q.AST_NODE_TYPES.TemplateLiteral:case _q.AST_NODE_TYPES.BinaryExpression:{let t=[];for(let n of e.type===_q.AST_NODE_TYPES.TemplateLiteral?e.expressions:function e(t){return t.type===_q.AST_NODE_TYPES.Identifier?[t]:t.type===_q.AST_NODE_TYPES.BinaryExpression?[...e(t.left),...e(t.right)]:[]}(e))r(n)&&t.push({messageId:"noArrayIndexKey",node:n});return t}case _q.AST_NODE_TYPES.CallExpression:switch(!0){case e.callee.type===_q.AST_NODE_TYPES.MemberExpression&&e.callee.property.type===_q.AST_NODE_TYPES.Identifier&&"toString"===e.callee.property.name&&r(e.callee.object):return[{messageId:"noArrayIndexKey",node:e.callee.object}];case e.callee.type===_q.AST_NODE_TYPES.Identifier&&"String"===e.callee.name&&null!=e.arguments[0]&&r(e.arguments[0]):return[{messageId:"noArrayIndexKey",node:e.arguments[0]}]}}return[]}return{CallExpression(r){if(n.push(function(t,n){let{callee:r}=n;if(r.type!==_q.AST_NODE_TYPES.MemberExpression||r.property.type!==_q.AST_NODE_TYPES.Identifier)return e;let{name:i}=r.property,a=xx.get(i)??-1;if(-1===a)return e;let o=n.arguments[+!!function(e,t){var n;let{importSource:r="react"}=e.settings,{callee:i}=t;if(!("property"in i)||!("object"in i)||!("name"in i.property)||(n=i.property.name,!PZ.includes(n)))return!1;let a=e.sourceCode.getScope(t);return i.object.type===_q.AST_NODE_TYPES.Identifier&&"Children"===i.object.name||i.object.type===_q.AST_NODE_TYPES.MemberExpression&&"name"in i.object.object&&E0(i.object.object.name,r,a)}(t,n)];if(null==o||!xA([_q.AST_NODE_TYPES.ArrowFunctionExpression,_q.AST_NODE_TYPES.FunctionExpression])(o))return e;let{params:s}=o;if(s.length<a+1)return e;let l=s.at(a);return null!=l&&"name"in l?l.name:e}(t,r)),0===r.arguments.length||!(Eh(t,r)||Em(t,r)))return;let[,a]=r.arguments;if(a?.type===_q.AST_NODE_TYPES.ObjectExpression){for(let e of a.properties)if(ls.isMatching({key:{name:"key"}})(e)&&"value"in e)for(let n of i(e.value))_O(t)(n)}},"CallExpression:exit"(){n.pop()},JSXAttribute(e){if("key"===e.name.name&&0!==n.length&&e.value?.type===_q.AST_NODE_TYPES.JSXExpressionContainer)for(let n of i(e.value.expression))_O(t)(n)}}},defaultOptions:[]}),P1=PS({meta:{type:"problem",docs:{description:"Disallow `Children.count`.",[Symbol.for("rule_features")]:[]},messages:{noChildrenCount:"Using 'Children.count' is uncommon and can lead to fragile code. Use alternatives instead."},schema:[]},name:"no-children-count",create:function(e){return{MemberExpression(t){El(e,t)&&e.report({messageId:"noChildrenCount",node:t.property})}}},defaultOptions:[]}),P2=PS({meta:{type:"problem",docs:{description:"Disallow 'Children.forEach'.",[Symbol.for("rule_features")]:[]},messages:{noChildrenForEach:"Using 'Children.forEach' is uncommon and can lead to fragile code. Use alternatives instead."},schema:[]},name:"no-children-for-each",create:function(e){return{MemberExpression(t){Ec(e,t)&&e.report({messageId:"noChildrenForEach",node:t.property})}}},defaultOptions:[]}),P3=PS({meta:{type:"problem",docs:{description:"Disallow `Children.map`.",[Symbol.for("rule_features")]:[]},messages:{noChildrenMap:"Using 'Children.map' is uncommon and can lead to fragile code. Use alternatives instead."},schema:[]},name:"no-children-map",create:function(e){return{MemberExpression(t){Eu(e,t)&&e.report({messageId:"noChildrenMap",node:t.property})}}},defaultOptions:[]}),P6=PS({meta:{type:"problem",docs:{description:"Disallow `Children.only`.",[Symbol.for("rule_features")]:[]},messages:{noChildrenOnly:"Using 'Children.only' is uncommon and can lead to fragile code. Use alternatives instead."},schema:[]},name:"no-children-only",create:function(e){return{MemberExpression(t){E_(e,t)&&e.report({messageId:"noChildrenOnly",node:t.property})}}},defaultOptions:[]}),P4=PS({meta:{type:"problem",docs:{description:"Disallow passing `children` as a prop.",[Symbol.for("rule_features")]:[]},messages:{noChildrenProp:"Do not pass 'children' as props."},schema:[]},name:"no-children-prop",create:function(e){return{JSXElement(t){let n=EL(e,t)("children");null!=n&&e.report({messageId:"noChildrenProp",node:n})}}},defaultOptions:[]}),P8=PS({meta:{type:"problem",docs:{description:"Disallow `Children.toArray`.",[Symbol.for("rule_features")]:[]},messages:{noChildrenToArray:"Using 'Children.toArray' is uncommon and can lead to fragile code. Use alternatives instead."},schema:[]},name:"no-children-to-array",create:function(e){return{MemberExpression(t){Ed(e,t)&&e.report({messageId:"noChildrenToArray",node:t.property})}}},defaultOptions:[]}),P5=PS({meta:{type:"problem",docs:{description:"Disallow class components except for error boundaries.",[Symbol.for("rule_features")]:[]},messages:{noClassComponent:"Avoid using class components. Use function components instead."},schema:[]},name:"no-class-component",create:function(e){if(!e.sourceCode.text.includes("Component"))return{};let{ctx:t,listeners:n}=kn();return{...n,"Program:exit"(n){for(let{name:r="anonymous",node:i}of t.getAllComponents(n).values())i.body.body.some(e=>ki(e)||km(e))||e.report({messageId:"noClassComponent",node:i,data:{name:r}})}}},defaultOptions:[]}),P7=PS({meta:{type:"problem",docs:{description:"Disallow `cloneElement`.",[Symbol.for("rule_features")]:[]},messages:{noCloneElement:"Using 'cloneElement' is uncommon and can lead to fragile code. Use alternatives instead."},schema:[]},name:"no-clone-element",create:function(e){return{CallExpression(t){Em(e,t)&&e.report({messageId:"noCloneElement",node:t})}}},defaultOptions:[]}),P9=PS({meta:{type:"problem",docs:{description:"Replace usages of `componentWillMount` with `UNSAFE_componentWillMount`.",[Symbol.for("rule_features")]:["MOD"]},fixable:"code",messages:{noComponentWillMount:"[Deprecated] Use 'UNSAFE_componentWillMount' instead."},schema:[]},name:"no-component-will-mount",create:function(e){if(!e.sourceCode.text.includes("componentWillMount"))return{};let{ctx:t,listeners:n}=kn();return{...n,"Program:exit"(n){for(let{node:r}of t.getAllComponents(n).values()){let{body:t}=r.body;for(let n of t)ks(n)&&e.report({messageId:"noComponentWillMount",node:n,fix:e=>"key"in n?e.replaceText(n.key,"UNSAFE_componentWillMount"):null})}}}},defaultOptions:[]}),Ce=PS({meta:{type:"problem",docs:{description:"Replace usages of `componentWillReceiveProps` with `UNSAFE_componentWillReceiveProps`.",[Symbol.for("rule_features")]:["MOD"]},fixable:"code",messages:{noComponentWillReceiveProps:"[Deprecated] Use 'UNSAFE_componentWillReceiveProps' instead."},schema:[]},name:"no-component-will-receive-props",create:function(e){if(!e.sourceCode.text.includes("componentWillReceiveProps"))return{};let{ctx:t,listeners:n}=kn();return{...n,"Program:exit"(n){for(let{node:r}of t.getAllComponents(n).values()){let{body:t}=r.body;for(let n of t)kl(n)&&e.report({messageId:"noComponentWillReceiveProps",node:n,fix:e=>"key"in n?e.replaceText(n.key,"UNSAFE_componentWillReceiveProps"):null})}}}},defaultOptions:[]}),Ct=PS({meta:{type:"problem",docs:{description:"Replace usages of `componentWillUpdate` with `UNSAFE_componentWillUpdate`.",[Symbol.for("rule_features")]:["MOD"]},fixable:"code",messages:{noComponentWillUpdate:"[Deprecated] Use 'UNSAFE_componentWillUpdate' instead."},schema:[]},name:"no-component-will-update",create:function(e){if(!e.sourceCode.text.includes("componentWillUpdate"))return{};let{ctx:t,listeners:n}=kn();return{...n,"Program:exit"(n){for(let{node:r}of t.getAllComponents(n).values()){let{body:t}=r.body;for(let n of t)ku(n)&&e.report({messageId:"noComponentWillUpdate",node:n,fix:e=>"key"in n?e.replaceText(n.key,"UNSAFE_componentWillUpdate"):null})}}}},defaultOptions:[]}),Cn=PS({meta:{type:"problem",docs:{description:"Replace usages of `<Context.Provider>` with `<Context>`.",[Symbol.for("rule_features")]:["MOD"]},fixable:"code",messages:{noContextProvider:"In React 19, you can render '<Context>' as a provider instead of '<Context.Provider>'."},schema:[]},name:"no-context-provider",create:function(e){if(!e.sourceCode.text.includes("Provider"))return{};let{version:t}=_R(e);return kD(t,"19.0.0","<")?{}:{JSXElement(t){let n=Ez(e,t).split("."),r=n.pop(),i=n.join("."),a=n.pop();"Provider"!==r||null!=a&&a.endsWith("Context")&&e.report({messageId:"noContextProvider",node:t,fix(e){if(!E8(a))return null;let n=t.openingElement,r=t.closingElement;return null==r?e.replaceText(n.name,i):[e.replaceText(n.name,i),e.replaceText(r.name,i)]}})}}},defaultOptions:[]}),Cr=PS({meta:{type:"problem",docs:{description:"Disallow `createRef` in function components.",[Symbol.for("rule_features")]:[]},messages:{noCreateRef:"[Deprecated] Use 'useRef' instead."},schema:[]},name:"no-create-ref",create:function(e){return{CallExpression(t){Ey(e,t)&&null==xz(t,EH)&&e.report({messageId:"noCreateRef",node:t})}}},defaultOptions:[]}),Ci=PS({meta:{type:"problem",docs:{description:"Disallow `defaultProps` property in favor of ES6 default parameters.",[Symbol.for("rule_features")]:[]},messages:{noDefaultProps:"[Deprecated] Use ES6 default parameters instead."},schema:[]},name:"no-default-props",create:function(e){return e.sourceCode.text.includes("defaultProps")?{AssignmentExpression(t){if("="!==t.operator||t.left.type!==_q.AST_NODE_TYPES.MemberExpression)return;let{object:n,property:r}=t.left;if(n.type!==_q.AST_NODE_TYPES.Identifier||r.type!==_q.AST_NODE_TYPES.Identifier||"defaultProps"!==r.name||!E8(n.name))return;let i=x5(x9(n.name,e.sourceCode.getScope(t)),0);null==i||xD(i)&&e.report({messageId:"noDefaultProps",node:r})}}:{}},defaultOptions:[]});function Ca(e){return xA([_q.AST_NODE_TYPES.FunctionDeclaration,_q.AST_NODE_TYPES.FunctionExpression])(e)&&xF(e.parent)&&e.parent.key.type===_q.AST_NODE_TYPES.Identifier&&"constructor"===e.parent.key.name}var Co=PS({meta:{type:"problem",docs:{description:"Disallow direct mutation of `this.state`.",[Symbol.for("rule_features")]:[]},messages:{noDirectMutationState:"Do not mutate state directly. Use 'setState()' instead."},schema:[]},name:"no-direct-mutation-state",create:function(e){return{AssignmentExpression(t){if(!kx(t))return;let n=xz(t,xA([_q.AST_NODE_TYPES.ClassDeclaration,_q.AST_NODE_TYPES.ClassExpression]));null!=n&&EH(n)&&e.sourceCode.getScope(t).block!==xz(t,Ca)&&e.report({messageId:"noDirectMutationState",node:t})}}},defaultOptions:[]}),Cs=PS({meta:{type:"problem",docs:{description:"Disallow duplicate `key` on elements in the same array or a list of `children`.",[Symbol.for("rule_features")]:[]},messages:{noDuplicateKey:"A key must be unique. '{{value}}' is duplicated."},schema:[]},name:"no-duplicate-key",create:function(e){if(!e.sourceCode.text.includes("key="))return{};let t=new Map;return{"JSXAttribute[name.name='key']"(e){let n=e.parent.parent;switch(n.parent.type){case _q.AST_NODE_TYPES.ArrayExpression:case _q.AST_NODE_TYPES.JSXElement:case _q.AST_NODE_TYPES.JSXFragment:{let r=n.parent,i=t.get(r)?.keys??[];t.set(r,{hasDuplicate:i.some(t=>{let n,r;return n=t.value,r=e.value,null!=n&&null!=r&&xC(n,r)}),keys:[...i,e],root:n.parent});break}default:{let r=xz(n,xk),i=xz(n,e=>e===r||xD(e));if(!xD(i))return;let a=r?.arguments[0];if(null==r||null==a||xV(a)!==i)return;t.set(r,{hasDuplicate:e.value?.type===_q.AST_NODE_TYPES.Literal,keys:[e],root:r})}}},"Program:exit"(){for(let{hasDuplicate:n,keys:r}of t.values())if(n)for(let t of r)e.report({messageId:"noDuplicateKey",node:t,data:{value:e.sourceCode.getText(t)}})}}},defaultOptions:[]}),Cl=PS({meta:{type:"problem",docs:{description:"Replaces usages of `forwardRef` with passing `ref` as a prop.",[Symbol.for("rule_features")]:["MOD"]},fixable:"code",messages:{noForwardRef:"In React 19, 'forwardRef' is no longer necessary. Pass 'ref' as a prop instead."},schema:[]},name:"no-forward-ref",create:function(e){if(!e.sourceCode.text.includes("forwardRef"))return{};let{version:t}=_R(e);return kD(t,"19.0.0","<")?{}:{CallExpression(t){var n,r;if(!Ev(e,t))return;let i=xH(t),a=!function(e,t){let{importSource:n}=_R(e),r=e.sourceCode.getScope(t);switch(t.callee.type){case _q.AST_NODE_TYPES.Identifier:return E0(t.callee.name,n,r);case _q.AST_NODE_TYPES.MemberExpression:return t.callee.object.type===_q.AST_NODE_TYPES.Identifier&&E0(t.callee.object.name,n,r);default:return!1}}(e,t)?null:(n=e,r=t,e=>{let[t]=r.arguments;return null!=t&&xD(t)?[e.removeRange([r.range[0],t.range[0]]),e.removeRange([t.range[1],r.range[1]]),...function(e,t,n,r){let i=t=>e.sourceCode.getText(t),[a,o]=n.params,[s,l]=r;if(null==a)return[];let c=ls.match(a).with({type:_q.AST_NODE_TYPES.Identifier},e=>`...${e.name}`).with({type:_q.AST_NODE_TYPES.ObjectPattern},e=>e.properties.map(i).join(", ")).otherwise(()=>null),u=ls.match(o).with(ls.P.nullish,()=>"ref").with({type:_q.AST_NODE_TYPES.Identifier,name:"ref"},()=>"ref").with({type:_q.AST_NODE_TYPES.Identifier,name:ls.P.string},e=>`ref: ${e.name}`).otherwise(()=>null);if(null==c||null==u)return[];if(null==s||null==l)return[t.replaceText(a,["{",u+",",c,"}"].join(" ")),...null==o?[]:[t.remove(o),t.removeRange([a.range[1],o.range[0]])]];let _=i(s),d=i(l);return[t.replaceText(a,["{",u+",",c,"}:",d,"& { ref?:",`React.RefObject<${_} | null>`,"}"].join(" ")),...null==o?[]:[t.remove(o),t.removeRange([a.range[1],o.range[0]])]]}(n,e,t,r.typeArguments?.params??[])]:[]});e.report({messageId:"noForwardRef",node:i??t,fix:a})}}},defaultOptions:[]}),Cc=PS({meta:{type:"problem",docs:{description:"Prevents `key` from not being explicitly specified (e.g. spreading `key` from objects).",[Symbol.for("rule_features")]:["EXP"]},messages:{noImplicitKey:"Do not use implicit 'key' props."},schema:[]},name:"no-implicit-key",create:function(e){return{JSXOpeningElement(t){let n=EL(e,t.parent)("key"),r=t.attributes.some(e=>e.type===_q.AST_NODE_TYPES.JSXAttribute&&e.name.type===_q.AST_NODE_TYPES.JSXIdentifier&&"key"===e.name.name);null==n||r||e.report({messageId:"noImplicitKey",node:n})}}},defaultOptions:[]}),Cu=PS({meta:{type:"problem",docs:{description:"Prevents problematic leaked values from being rendered.",[Symbol.for("rule_features")]:["TSC"]},messages:{noLeakedConditionalRendering:"Potential leaked value {{value}} that might cause unintentionally rendered values or rendering crashes."},schema:[]},name:"no-leaked-conditional-rendering",create:function(t){if(!t.sourceCode.text.includes("&&"))return{};let{version:n}=_R(t),r=["any","boolean","nullish","object","falsy boolean","truthy bigint","truthy boolean","truthy number","truthy string",...kD(n,"18.0.0","<")?[]:["string","falsy string"]],i=h1.ESLintUtils.getParserServices(t,!1);return{JSXExpressionContainer:function(e,t,n,r,i,a,o,s,l){switch(arguments.length){case 1:return e;case 2:return function(){return t(e.apply(this,arguments))};case 3:return function(){return n(t(e.apply(this,arguments)))};case 4:return function(){return r(n(t(e.apply(this,arguments))))};case 5:return function(){return i(r(n(t(e.apply(this,arguments)))))};case 6:return function(){return a(i(r(n(t(e.apply(this,arguments))))))};case 7:return function(){return o(a(i(r(n(t(e.apply(this,arguments)))))))};case 8:return function(){return s(o(a(i(r(n(t(e.apply(this,arguments))))))))};case 9:return function(){return l(s(o(a(i(r(n(t(e.apply(this,arguments)))))))))}}}(function n(a){return null==a?e:xw(_q.AST_NODE_TYPES.JSXExpressionContainer)(a)?n(a.expression):xL(a)?e:xj(a)?n(a.expression):ls.match(a).with({type:_q.AST_NODE_TYPES.LogicalExpression,operator:"&&"},({left:e,right:a})=>{if(e.type===_q.AST_NODE_TYPES.UnaryExpression&&"!"===e.operator)return n(a);let o=t.sourceCode.getScope(e);return e.type===_q.AST_NODE_TYPES.Identifier&&"NaN"===e.name||x4.getStaticValue(e,o)?.value==="NaN"?{messageId:"noLeakedConditionalRendering",node:e,data:{value:t.sourceCode.getText(e)}}:Array.from((function(e){let t=new Set;if(e.some(Pj))return t.add("unknown"),t;e.some(PN)&&t.add("nullish");let n=e.filter(Pk),r=n[0];1===n.length&&null!=r?vT(r)?t.add("falsy boolean"):vS(r)&&t.add("truthy boolean"):2===n.length&&t.add("boolean");let i=e.filter(PI);if(i.length>0){let e=ls.match(i).when(e=>e.every(PR),()=>"truthy string").when(e=>e.every(PA),()=>"falsy string").otherwise(()=>"string");t.add(e)}let a=e.filter(PE);if(a.length>0){let e=ls.match(a).when(e=>e.every(PL),()=>"truthy bigint").when(e=>e.every(PC),()=>"falsy bigint").otherwise(()=>"bigint");t.add(e)}let o=e.filter(PF);if(o.length>0){let e=ls.match(o).when(e=>e.every(PM),()=>"truthy number").when(e=>e.every(Pw),()=>"falsy number").otherwise(()=>"number");t.add(e)}return e.some(PP)&&t.add("enum"),e.some(PO)&&t.add("object"),e.some(Px)&&t.add("any"),e.some(PD)&&t.add("never"),t})(vA(k5.getConstrainedTypeAtLocation(i,e))).values()).every(e=>r.some(t=>t===e))?n(a):{messageId:"noLeakedConditionalRendering",node:e,data:{value:t.sourceCode.getText(e)}}}).with({type:_q.AST_NODE_TYPES.ConditionalExpression},({alternate:e,consequent:t})=>n(t)??n(e)).with({type:_q.AST_NODE_TYPES.Identifier},r=>{let i=x9(r.name,t.sourceCode.getScope(r))?.defs.at(0)?.node;return ls.match(i).with({init:ls.P.select({type:ls.P.not(_q.AST_NODE_TYPES.VariableDeclaration)})},n).otherwise(()=>e)}).otherwise(()=>e)},_O(t))}},defaultOptions:[]}),C_=PS({meta:{type:"problem",docs:{description:"Enforces that all components have a `displayName` which can be used in devtools.",[Symbol.for("rule_features")]:[]},messages:{noMissingComponentDisplayName:"Add missing 'displayName' for component."},schema:[]},name:"no-missing-component-display-name",create:function(e){if(!e.sourceCode.text.includes("memo")&&!e.sourceCode.text.includes("forwardRef"))return{};let{ctx:t,listeners:n}=ke(e,{collectDisplayName:!0,collectHookCalls:!1,hint:EK});return{...n,"Program:exit"(n){for(let{node:r,displayName:i,flag:a}of t.getAllComponents(n).values()){let t=(a&(E6.ForwardRef|E6.Memo))>0n;if(null==xH(r)&&t&&null==i){let t=xH(r);e.report({messageId:"noMissingComponentDisplayName",node:t??r})}}}}},defaultOptions:[]}),Cd=PS({meta:{type:"problem",docs:{description:"Enforces that all contexts have a `displayName` which can be used in devtools.",[Symbol.for("rule_features")]:["FIX"]},fixable:"code",messages:{noMissingContextDisplayName:"Add missing 'displayName' for context."},schema:[]},name:"no-missing-context-display-name",create:function(e){if(!e.sourceCode.text.includes("createContext"))return{};let t=[],n=[];return{[xZ](e){n.push(e)},CallExpression(n){Eg(e,n)&&t.push(n)},"Program:exit"(){for(let r of t){let t=EZ(r);if(null==t){e.report({messageId:"noMissingContextDisplayName",node:r});continue}n.some(n=>{let r=n.left;return r.type===_q.AST_NODE_TYPES.MemberExpression&&E1(e,t,r.object)})||e.report({messageId:"noMissingContextDisplayName",node:t,fix:n=>t.type!==_q.AST_NODE_TYPES.Identifier||t.parent!==r.parent?[]:n.insertTextAfter(e.sourceCode.getTokenAfter(r)??r,"\n"+t.name+".displayName = "+JSON.stringify(t.name)+";")})}}}},defaultOptions:[]}),Cp=PS({meta:{type:"problem",docs:{description:"Disallow missing `key` on items in list rendering.",[Symbol.for("rule_features")]:[]},messages:{missingKey:"Missing 'key' for element when rendering list.",unexpectedFragmentSyntax:"Use fragment component instead of '<>' because it does not support `key`."},schema:[]},name:"no-missing-key",create:function(e){let t={isWithinChildrenToArray:!1};function n(t){switch(t.type){case _q.AST_NODE_TYPES.JSXElement:if(null==EL(e,t)("key"))return{messageId:"missingKey",node:t};return null;case _q.AST_NODE_TYPES.JSXFragment:return{messageId:"unexpectedFragmentSyntax",node:t};default:return null}}return{ArrayExpression(n){if(t.isWithinChildrenToArray)return;let r=n.elements.filter(xw(_q.AST_NODE_TYPES.JSXElement));if(0===r.length)return;let i=e.sourceCode.getScope(n);for(let t of r)null==EL(e,t,i)("key")&&e.report({messageId:"missingKey",node:t})},CallExpression(r){if(t.isWithinChildrenToArray||=Ef(e,r),t.isWithinChildrenToArray)return;let i=ls.match(r).when(xk,e=>e.arguments[0]).when(xE,e=>e.arguments[1]).otherwise(()=>null);if(!xD(i))return;let a=i.body;a.type===_q.AST_NODE_TYPES.BlockStatement?(function(e){let t=[];for(let r of xq(e)){if(null==r.argument)continue;let e=n(r.argument);null!=e&&t.push(e)}return t})(a).forEach(_O(e)):_O(e)(function(e){switch(e.type){case _q.AST_NODE_TYPES.ConditionalExpression:if("consequent"in e)return n(e.consequent)??n(e.alternate);return null;case _q.AST_NODE_TYPES.JSXElement:case _q.AST_NODE_TYPES.JSXFragment:return n(e);case _q.AST_NODE_TYPES.LogicalExpression:if("left"in e)return n(e.left)??n(e.right);return null;default:return null}}(a))},"CallExpression:exit"(n){Ef(e,n)&&(t.isWithinChildrenToArray=!1)},JSXFragment(n){t.isWithinChildrenToArray||n.parent.type===_q.AST_NODE_TYPES.ArrayExpression&&e.report({messageId:"unexpectedFragmentSyntax",node:n})}}},defaultOptions:[]}),Cf=PS({meta:{type:"problem",docs:{description:"Prevents incorrect usage of `captureOwnerStack`.",[Symbol.for("rule_features")]:["EXP"]},fixable:"code",messages:{missingDevelopmentOnlyCheck:"Don't call 'captureOwnerStack' directly. Use 'if (process.env.NODE_ENV !== \"production\") {...}' to conditionally access it.",useNamespaceImport:"Don't use named imports of 'captureOwnerStack' in files that are bundled for development and production. Use a namespace import instead."},schema:[]},name:"no-misused-capture-owner-stack",create:function(e){if(!e.sourceCode.text.includes("captureOwnerStack"))return{};let{importSource:t}=_R(e);return{CallExpression(t){Ep(e,t)&&null==xz(t,Cm)&&e.report({messageId:"missingDevelopmentOnlyCheck",node:t})},ImportDeclaration(n){if(n.source.value===t)for(let t of n.specifiers)t.type===_q.AST_NODE_TYPES.ImportSpecifier&&t.imported.type===_q.AST_NODE_TYPES.Identifier&&"captureOwnerStack"===t.imported.name&&e.report({messageId:"useNamespaceImport",node:t})}}},defaultOptions:[]});function Cm(e){var t,n;return e.type===_q.AST_NODE_TYPES.IfStatement&&(t=e.test,n="production",null!=t&&t.type===_q.AST_NODE_TYPES.BinaryExpression&&"!=="===t.operator&&(x0(t.left)&&xQ(t.right,"string")?t.right.value===n:!!(xQ(t.left,"string")&&x0(t.right))&&t.left.value===n))}var Cg=PS({meta:{type:"problem",docs:{description:"Disallow nesting component definitions inside other components.",[Symbol.for("rule_features")]:[]},messages:{noNestedComponentDefinitions:"Do not nest component definitions inside other components or props. {{suggestion}}"},schema:[]},name:"no-nested-component-definitions",create:function(e){let t=ke(e,{hint:EW.SkipArrayMapArgument|EW.SkipNullLiteral|EW.SkipUndefined|EW.SkipBooleanLiteral|EW.SkipStringLiteral|EW.SkipNumberLiteral|EW.StrictLogical|EW.StrictConditional}),n=kn();return{...t.listeners,...n.listeners,"Program:exit"(r){let i=[...t.ctx.getAllComponents(r).values()],a=[...n.ctx.getAllComponents(r).values()],o=e=>xD(e)&&i.some(t=>t.node===e),s=e=>xN(e)&&a.some(t=>t.node===e);for(let{name:t,node:n}of i){var l;if(null==t||kT(n))continue;if((l=n).parent.type===_q.AST_NODE_TYPES.JSXAttribute||null!=function(e,t=ln){return xz(e,e=>e.type===_q.AST_NODE_TYPES.JSXAttribute&&t(e))}(l,e=>e.value?.type===_q.AST_NODE_TYPES.JSXExpressionContainer)){!function(e){if(kT(e))return!0;let t=xz(e,xw(_q.AST_NODE_TYPES.JSXExpressionContainer))?.parent;return t?.type===_q.AST_NODE_TYPES.JSXAttribute&&t.name.type===_q.AST_NODE_TYPES.JSXIdentifier&&t.name.name.startsWith("render")}(n)&&e.report({messageId:"noNestedComponentDefinitions",node:n,data:{name:t,suggestion:"Move it to the top level or pass it as a prop."}});continue}if(function(e,t){let n=xz(t,Eh(e));if(null==n)return!1;let r=xz(t,xw(_q.AST_NODE_TYPES.ObjectExpression));return null!=r&&r===n.arguments[1]}(e,n)){e.report({messageId:"noNestedComponentDefinitions",node:n,data:{name:t,suggestion:"Move it to the top level or pass it as a prop."}});continue}let r=xz(n,o);if(null!=r&&!kT(r)){e.report({messageId:"noNestedComponentDefinitions",node:n,data:{name:t,suggestion:n.parent.type===_q.AST_NODE_TYPES.Property?"Move it to the top level or pass it as a prop.":"Move it to the top level."}});continue}null!=xz(n,e=>EG(e)&&EH(e.parent.parent))&&e.report({messageId:"noNestedComponentDefinitions",node:n,data:{name:t,suggestion:"Move it to the top level."}})}for(let{name:t="unknown",node:n}of a)null!=xz(n,e=>s(e)||o(e))&&e.report({messageId:"noNestedComponentDefinitions",node:n,data:{name:t,suggestion:n.parent.type===_q.AST_NODE_TYPES.Property?"Move it to the top level or pass it as a prop.":"Move it to the top level."}})}}},defaultOptions:[]}),Ch=PS({meta:{type:"problem",docs:{description:"Disallow nesting lazy component declarations inside other components.",[Symbol.for("rule_features")]:[]},messages:{noNestedLazyComponentDeclarations:"Do not declare lazy components inside other components. Instead, always declare them at the top level of your module."},schema:[]},name:"no-nested-lazy-component-declarations",create:function(e){let t=ke(e,{hint:EW.None}),n=kn(),r=new Set;return{...t.listeners,...n.listeners,ImportExpression(t){let n=xz(t,t=>ET(e,t));null!=n&&r.add(n)},"Program:exit"(i){let a=[...t.ctx.getAllComponents(i).values()],o=[...n.ctx.getAllComponents(i).values()];for(let t of r)null!=xz(t,t=>!!xL(t)||(t.type===_q.AST_NODE_TYPES.CallExpression?Ex(t)||Eh(e,t)||Eg(e,t):xD(t)?a.some(e=>e.node===t):!!xN(t)&&o.some(e=>e.node===t)))&&e.report({messageId:"noNestedLazyComponentDeclarations",node:t})}}},defaultOptions:[]}),Cy=PS({meta:{type:"problem",docs:{description:"Disallow `propTypes` in favor of TypeScript or another type-checking solution.",[Symbol.for("rule_features")]:[]},messages:{noPropTypes:"[Deprecated] Use TypeScript or another type-checking solution instead."},schema:[]},name:"no-prop-types",create:function(e){return e.sourceCode.text.includes("propTypes")?{AssignmentExpression(t){if("="!==t.operator||t.left.type!==_q.AST_NODE_TYPES.MemberExpression)return;let{object:n,property:r}=t.left;if(n.type!==_q.AST_NODE_TYPES.Identifier||r.type!==_q.AST_NODE_TYPES.Identifier||"propTypes"!==r.name||!E8(n.name))return;let i=x5(x9(n.name,e.sourceCode.getScope(t)),0);null!=i&&(xD(i)||EH(i))&&e.report({messageId:"noPropTypes",node:r})},PropertyDefinition(t){!EH(t.parent.parent)||t.static&&t.key.type===_q.AST_NODE_TYPES.Identifier&&"propTypes"===t.key.name&&e.report({messageId:"noPropTypes",node:t})}}:{}},defaultOptions:[]}),Cv=PS({meta:{type:"problem",docs:{description:"Disallow `shouldComponentUpdate` when extending `React.PureComponent`.",[Symbol.for("rule_features")]:[]},messages:{noRedundantShouldComponentUpdate:"'{{componentName}}' does not need 'shouldComponentUpdate' when extending 'React.PureComponent'."},schema:[]},name:"no-redundant-should-component-update",create:function(e){if(!e.sourceCode.text.includes("shouldComponentUpdate"))return{};let{ctx:t,listeners:n}=kn();return{...n,"Program:exit"(n){for(let{name:r="PureComponent",node:i,flag:a}of t.getAllComponents(n).values()){if((a&E6.PureComponent)===0n)continue;let{body:t}=i.body;for(let n of t)xF(n)&&n.key.type===_q.AST_NODE_TYPES.Identifier&&"shouldComponentUpdate"===n.key.name&&e.report({messageId:"noRedundantShouldComponentUpdate",node:n,data:{componentName:r}})}}}},defaultOptions:[]}),Cb=PS({meta:{type:"problem",docs:{description:"Disallow calling `this.setState` in `componentDidMount` outside of functions, such as callbacks.",[Symbol.for("rule_features")]:[]},messages:{noSetStateInComponentDidMount:"Do not call `this.setState` in `componentDidMount` outside of functions, such as callbacks."},schema:[]},name:"no-set-state-in-component-did-mount",create:function(e){return e.sourceCode.text.includes("componentDidMount")?{CallExpression(t){if(!kS(t))return;let n=xz(t,EH),r=xz(t,e=>e===n||ka(e));if(null==n||null==r||r===n)return;let i=e.sourceCode.getScope(r),a=e.sourceCode.getScope(t).upper;r.parent===n.body&&a===i&&e.report({messageId:"noSetStateInComponentDidMount",node:t})}}:{}},defaultOptions:[]}),CT=PS({meta:{type:"problem",docs:{description:"Disallow calling `this.setState` in `componentDidUpdate` outside of functions, such as callbacks.",[Symbol.for("rule_features")]:[]},messages:{noSetStateInComponentDidUpdate:"Do not call `this.setState` in `componentDidUpdate` outside of functions, such as callbacks."},schema:[]},name:"no-set-state-in-component-did-update",create:function(e){return e.sourceCode.text.includes("componentDidUpdate")?{CallExpression(t){if(!kS(t))return;let n=xz(t,EH),r=xz(t,e=>e===n||ko(e));if(null==n||null==r||r===n)return;let i=e.sourceCode.getScope(r),a=e.sourceCode.getScope(t).upper;r.parent===n.body&&a===i&&e.report({messageId:"noSetStateInComponentDidUpdate",node:t})}}:{}},defaultOptions:[]}),CS=PS({meta:{type:"problem",docs:{description:"Disallow calling `this.setState` in `componentWillUpdate` outside of functions, such as callbacks.",[Symbol.for("rule_features")]:[]},messages:{noSetStateInComponentWillUpdate:"Do not call `this.setState` in `componentWillUpdate` outside of functions, such as callbacks."},schema:[]},name:"no-set-state-in-component-will-update",create:function(e){return e.sourceCode.text.includes("componentWillUpdate")?{CallExpression(t){if(!kS(t))return;let n=xz(t,EH),r=xz(t,e=>e===n||ku(e));if(null==n||null==r||r===n)return;let i=e.sourceCode.getScope(r),a=e.sourceCode.getScope(t).upper;r.parent===n.body&&a===i&&e.report({messageId:"noSetStateInComponentWillUpdate",node:t})}}:{}},defaultOptions:[]}),Cx=PS({meta:{type:"problem",docs:{description:"Replaces string refs with callback refs.",[Symbol.for("rule_features")]:["MOD"]},fixable:"code",messages:{noStringRefs:"[Deprecated] Use callback refs instead."},schema:[]},name:"no-string-refs",create:function(e){let t={isWithinClassComponent:!1};return{ClassBody:function(e){EH(e.parent)&&(t.isWithinClassComponent=!0)},"ClassBody:exit":function(){t.isWithinClassComponent=!1},JSXAttribute(n){if("ref"!==n.name.name)return;let r=function(e,t){if(null==t)return null;switch(!0){case t.type===_q.AST_NODE_TYPES.Literal&&"string"==typeof t.value:return e.sourceCode.getText(t);case t.type===_q.AST_NODE_TYPES.JSXExpressionContainer&&t.expression.type===_q.AST_NODE_TYPES.Literal&&"string"==typeof t.expression.value:case t.type===_q.AST_NODE_TYPES.JSXExpressionContainer&&t.expression.type===_q.AST_NODE_TYPES.TemplateLiteral:return e.sourceCode.getText(t.expression);default:return null}}(e,n.value);null!=r&&e.report({messageId:"noStringRefs",node:n,fix:e=>null!=n.value&&t.isWithinClassComponent?e.replaceText(n.value,`{(ref) => { this.refs[${r}] = ref; }}`):null})}}},defaultOptions:[]}),CE=PS({meta:{type:"problem",docs:{description:"Prevents the use of unnecessary `key` props on JSX elements when rendering lists.",[Symbol.for("rule_features")]:["EXP"]},messages:{noUnnecessaryKey:"Unnecessary `key` prop on this element. The `key` should be on the top-level element returned from the array."},schema:[]},name:"no-unnecessary-key",create:function(e){return e.sourceCode.text.includes("key=")?{JSXAttribute(t){if("key"!==t.name.name)return;let n=t.parent.parent,r=e.sourceCode.getScope(n),i=xz(n,Ck);if(null==i||e.sourceCode.getScope(i)!==r)return;let a=xz(n,e=>e===i||xO(e)&&e.openingElement.attributes.some(e=>e.type===_q.AST_NODE_TYPES.JSXAttribute&&e.name.type===_q.AST_NODE_TYPES.JSXIdentifier&&"key"===e.name.name));null!=a&&a!==i&&e.report({messageId:"noUnnecessaryKey",node:t})}}:{}},defaultOptions:[]});function Ck(e){return null!=e.parent&&!!xk(e.parent)&&xA([_q.AST_NODE_TYPES.ArrowFunctionExpression,_q.AST_NODE_TYPES.FunctionExpression])(xV(e))}var CP=PS({meta:{type:"problem",docs:{description:"Disallow unnecessary usage of `useCallback`.",[Symbol.for("rule_features")]:["EXP"]},messages:{noUnnecessaryUseCallback:"An 'useCallback' with empty deps and no references to the component scope may be unnecessary."},schema:[]},name:"no-unnecessary-use-callback",create:function(e){return e.sourceCode.text.includes("useCallback")?{CallExpression(t){if(!EC(t))return;let n=e.sourceCode.getScope(t),r=e.sourceCode.getScope(t).block;if(!xD(r))return;let[i,a]=t.arguments;if(null==i||null==a||!ls.match(a).with({type:_q.AST_NODE_TYPES.ArrayExpression},e=>0===e.elements.length).with({type:_q.AST_NODE_TYPES.Identifier},e=>{let t=x5(x9(e.name,n),0);return t?.type===_q.AST_NODE_TYPES.ArrayExpression&&0===t.elements.length}).otherwise(()=>!1))return;let o=ls.match(i).with({type:_q.AST_NODE_TYPES.ArrowFunctionExpression},e=>e.body.type===_q.AST_NODE_TYPES.ArrowFunctionExpression?e.body:e).with({type:_q.AST_NODE_TYPES.FunctionExpression},s9).with({type:_q.AST_NODE_TYPES.Identifier},e=>{let t=x5(x9(e.name,n),0);return t?.type!==_q.AST_NODE_TYPES.ArrowFunctionExpression&&t?.type!==_q.AST_NODE_TYPES.FunctionExpression?null:t}).otherwise(()=>null);null!=o&&(Et(e.sourceCode.getScope(o)).flatMap(e=>e.references).some(e=>e.resolved?.scope.block===r)||e.report({messageId:"noUnnecessaryUseCallback",node:t}))}}:{}},defaultOptions:[]}),CC=PS({meta:{type:"problem",docs:{description:"Disallow unnecessary usage of `useMemo`.",[Symbol.for("rule_features")]:["EXP"]},messages:{noUnnecessaryUseMemo:"An 'useMemo' with empty deps and no references to the component scope may be unnecessary."},schema:[]},name:"no-unnecessary-use-memo",create:function(e){return e.sourceCode.text.includes("useMemo")?{CallExpression(t){let n=e.sourceCode.getScope(t);if(!EA(t))return;let r=e.sourceCode.getScope(t).block;if(!xD(r))return;let[i,a]=t.arguments;if(null==i||null==a||xD(i)&&[...xK(i.body),...xW(i.body)].length>0||!ls.match(a).with({type:_q.AST_NODE_TYPES.ArrayExpression},e=>0===e.elements.length).with({type:_q.AST_NODE_TYPES.Identifier},e=>{let t=x5(x9(e.name,n),0);return t?.type===_q.AST_NODE_TYPES.ArrayExpression&&0===t.elements.length}).otherwise(()=>!1))return;let o=ls.match(i).with({type:_q.AST_NODE_TYPES.ArrowFunctionExpression},e=>e.body.type===_q.AST_NODE_TYPES.ArrowFunctionExpression?e.body:e).with({type:_q.AST_NODE_TYPES.FunctionExpression},s9).with({type:_q.AST_NODE_TYPES.Identifier},e=>{let t=x5(x9(e.name,n),0);return t?.type!==_q.AST_NODE_TYPES.ArrowFunctionExpression&&t?.type!==_q.AST_NODE_TYPES.FunctionExpression?null:t}).otherwise(()=>null);null!=o&&(Et(e.sourceCode.getScope(o)).flatMap(e=>e.references).some(e=>e.resolved?.scope.block===r)||e.report({messageId:"noUnnecessaryUseMemo",node:t}))}}:{}},defaultOptions:[]});let Cw=["useMDXComponents"];var CA=PS({meta:{type:"problem",docs:{description:"Enforces that a function with the `use` prefix should use at least one Hook inside of it.",[Symbol.for("rule_features")]:["EXP"]},messages:{noUnnecessaryUsePrefix:"If your function doesn't call any Hooks, avoid the 'use' prefix. Instead, write it as a regular function without the 'use' prefix."},schema:[]},name:"no-unnecessary-use-prefix",create:function(e){let t,n,{ctx:r,listeners:i}=(t=new Map,n=[],{ctx:{getAllHooks:e=>t},listeners:{":function[type]":e=>{let r=xH(e),i=EN.next(),a=r?.name;if(null!=a&&ES(a)){n.push({key:i,node:e,isHook:!0}),t.set(i,{id:r,key:i,kind:"function",name:a,node:e,flag:0n,hint:0n,hookCalls:[]});return}n.push({key:i,node:e,isHook:!1})},":function[type]:exit":()=>{n.pop()},"CallExpression[type]"(e){if(!Ex(e))return;let r=n.at(-1);if(r?.key==null)return;let i=t.get(r.key);null!=i&&i.hookCalls.push(e)}}});return{...i,"Program:exit"(t){for(let{id:n,name:i,node:a,hookCalls:o}of r.getAllHooks(t).values()){if(!(o.length>0||a.body.type===_q.AST_NODE_TYPES.BlockStatement&&0===a.body.body.length||Cw.includes(i)))e.sourceCode.getCommentsInside(a).some(({value:e})=>/use\([\s\S]*?\)/u.test(e)||/use[A-Z0-9]\w*\([\s\S]*?\)/u.test(e))||null==xz(a,x3)&&e.report({messageId:"noUnnecessaryUsePrefix",node:n??a,data:{name:i}})}}}},defaultOptions:[]}),CD=PS({meta:{type:"problem",docs:{description:"Warns the usage of `UNSAFE_componentWillMount` in class components.",[Symbol.for("rule_features")]:[]},messages:{noUnsafeComponentWillMount:"Do not use 'UNSAFE_componentWillMount'."},schema:[]},name:"no-unsafe-component-will-mount",create:function(e){if(!e.sourceCode.text.includes("UNSAFE_componentWillMount"))return{};let{ctx:t,listeners:n}=kn();return{...n,"Program:exit"(n){for(let{node:r}of t.getAllComponents(n).values()){let{body:t}=r.body;for(let n of t)k_(n)&&e.report({messageId:"noUnsafeComponentWillMount",node:n})}}}},defaultOptions:[]}),CN=PS({meta:{type:"problem",docs:{description:"Warns the usage of `UNSAFE_componentWillReceiveProps` in class components.",[Symbol.for("rule_features")]:[]},messages:{noUnsafeComponentWillReceiveProps:"Do not use 'UNSAFE_componentWillReceiveProps'."},schema:[]},name:"no-unsafe-component-will-receive-props",create:function(e){if(!e.sourceCode.text.includes("UNSAFE_componentWillReceiveProps"))return{};let{ctx:t,listeners:n}=kn();return{...n,"Program:exit"(n){for(let{node:r}of t.getAllComponents(n).values()){let{body:t}=r.body;for(let n of t)kd(n)&&e.report({messageId:"noUnsafeComponentWillReceiveProps",node:n})}}}},defaultOptions:[]}),CF=PS({meta:{type:"problem",docs:{description:"Warns the usage of `UNSAFE_componentWillUpdate` in class components.",[Symbol.for("rule_features")]:[]},messages:{noUnsafeComponentWillUpdate:"Do not use 'UNSAFE_componentWillUpdate'."},schema:[]},name:"no-unsafe-component-will-update",create:function(e){if(!e.sourceCode.text.includes("UNSAFE_componentWillUpdate"))return{};let{ctx:t,listeners:n}=kn();return{...n,"Program:exit"(n){for(let{node:r}of t.getAllComponents(n).values()){let{body:t}=r.body;for(let n of t)kp(n)&&e.report({messageId:"noUnsafeComponentWillUpdate",node:n})}}}},defaultOptions:[]}),CO=PS({meta:{type:"problem",docs:{description:"Prevents non-stable values (i.e. object literals) from being used as a value for `Context.Provider`.",[Symbol.for("rule_features")]:[]},messages:{unstableContextValue:"A/an '{{type}}' passed as the value prop to the context provider should not be constructed. It will change on every render. {{suggestion}}"},schema:[]},name:"no-unstable-context-value",create:function(e){let{version:t}=_R(e),n=kD(t,"19.0.0","<"),{ctx:r,listeners:i}=ke(e),a=new WeakMap;return{...i,JSXOpeningElement(t){var i,o;let s=Ez(e,t.parent).split(".").at(-1);if(null==s||(i=s,o=n,!("Provider"===i||!o&&(i.endsWith("Context")||i.endsWith("CONTEXT")))))return;let l=r.getCurrentEntry();if(null==l)return;let c=t.attributes.find(e=>e.type===_q.AST_NODE_TYPES.JSXAttribute&&"value"===e.name.name);if(null==c||!("value"in c))return;let u=c.value;if(u?.type!==_q.AST_NODE_TYPES.JSXExpressionContainer)return;let _=u.expression,d=En(_,e.sourceCode.getScope(_));null==d||Ex(d.node)||la(a,l.node,()=>[]).push(d)},"Program:exit"(t){for(let{node:n}of r.getAllComponents(t).values())for(let t of a.get(n)??[]){let{kind:n,node:r}=t,i="function"===n?"Consider wrapping it in a useCallback hook.":"Consider wrapping it in a useMemo hook.";e.report({messageId:"unstableContextValue",node:r,data:{type:xU(r),suggestion:i}})}}}},defaultOptions:[]}),CI=PS({meta:{type:"problem",docs:{description:"Prevents using referential-type values as default props in object destructuring.",[Symbol.for("rule_features")]:[]},messages:{noUnstableDefaultProps:"A/an '{{forbiddenType}}' as default prop. This could lead to potential infinite render loop in React. Use a variable instead of '{{forbiddenType}}'."},schema:[{type:"object",additionalProperties:!1,properties:{safeDefaultProps:{type:"array",items:{type:"string"}}}}]},name:"no-unstable-default-props",create:function(e,[t]){let{ctx:n,listeners:r}=ke(e),i=new WeakMap,{safeDefaultProps:a=[]}=t,o=a.map(e=>_F(e));return{...r,"VariableDeclarator[id.type='ObjectPattern'][init.type='Identifier']"(e){let t=n.getCurrentEntry();null!=t&&la(i,t.node,()=>[]).push(e)},"Program:exit"(t){for(let{node:r}of n.getAllComponents(t).values()){let{params:t}=r,[n]=t;if(null!=n)for(let t of ls.match(n).with({type:_q.AST_NODE_TYPES.ObjectPattern},({properties:e})=>e).with({type:_q.AST_NODE_TYPES.Identifier},({name:e})=>i.get(r)?.filter(t=>t.init.name===e).flatMap(e=>e.id.properties)??[]).otherwise(()=>[])){if(t.type!==_q.AST_NODE_TYPES.Property||t.value.type!==_q.AST_NODE_TYPES.AssignmentPattern)continue;let{value:n}=t,{right:r}=n,i=En(n,e.sourceCode.getScope(n));if(null==i||Ex(i.node))continue;if(o.length>0){let e=function(e){if(e.type===_q.AST_NODE_TYPES.NewExpression&&e.callee.type===_q.AST_NODE_TYPES.Identifier)return e.callee.name;if(e.type===_q.AST_NODE_TYPES.CallExpression&&e.callee.type===_q.AST_NODE_TYPES.MemberExpression){let{object:t}=e.callee;if(t.type===_q.AST_NODE_TYPES.Identifier)return t.name}return null}(r);if(null!=e&&o.some(t=>t.test(e)))continue}let a=xU(r);e.report({messageId:"noUnstableDefaultProps",node:r,data:{forbiddenType:a}})}}}}},defaultOptions:[{safeDefaultProps:[]}]});let CL=new Set(["componentDidCatch","componentDidMount","componentDidUpdate","componentWillMount","componentWillReceiveProps","componentWillUnmount","componentWillUpdate","constructor","getSnapshotBeforeUpdate","render","shouldComponentUpdate","state","UNSAFE_componentWillMount","UNSAFE_componentWillReceiveProps","UNSAFE_componentWillUpdate"]);function CM(e,t){return ls.match(t).with({type:_q.AST_NODE_TYPES.Literal},ln).with({type:_q.AST_NODE_TYPES.TemplateLiteral,expressions:[]},ln).with({type:_q.AST_NODE_TYPES.Identifier},()=>!e.computed).otherwise(lr)}var CR=PS({meta:{type:"problem",docs:{description:"Warns unused class component methods and properties.",[Symbol.for("rule_features")]:[]},messages:{noUnusedClassComponentMembers:"Unused method or property '{{methodName}}'' of class '{{className}}'."},schema:[]},name:"no-unused-class-component-members",create:function(e){let t=[],n=[],r=new WeakMap,i=new WeakMap;function a(e){t.push(e),EH(e)&&(r.set(e,new Set),i.set(e,new Set))}function o(){let n=t.pop();if(null==n||!EH(n))return;let a=xP(n)?.name,o=r.get(n),s=i.get(n);if(null!=o)for(let t of o){let n=x2(t);null!=n&&(s?.has(n)||CL.has(n)||e.report({messageId:"noUnusedClassComponentMembers",node:t,data:{className:a??"Component",methodName:n}}))}}function s(e){n.push(e);let i=t.at(-1);null!=i&&EH(i)&&!e.static&&CM(e,e.key)&&r.get(i)?.add(e.key)}function l(){n.pop()}return{ClassDeclaration:a,"ClassDeclaration:exit":o,ClassExpression:a,"ClassExpression:exit":o,MemberExpression(e){let a=t.at(-1),o=n.at(-1);if(null==a||null==o||!EH(a)||o.static||!xJ(e.object)||!CM(e,e.property))return;if(e.parent.type===_q.AST_NODE_TYPES.AssignmentExpression&&e.parent.left===e)return void r.get(a)?.add(e.property);let s=x2(e.property);null!=s&&i.get(a)?.add(s)},MethodDefinition:s,"MethodDefinition:exit":l,PropertyDefinition:s,"PropertyDefinition:exit":l,VariableDeclarator(e){let r=t.at(-1),a=n.at(-1);if(null!=r&&null!=a&&EH(r)&&!a.static&&null!=e.init&&xJ(e.init)&&e.id.type===_q.AST_NODE_TYPES.ObjectPattern){for(let t of e.id.properties)if(t.type===_q.AST_NODE_TYPES.Property&&CM(t,t.key)){let e=x2(t.key);null!=e&&i.get(r)?.add(e)}}}}},defaultOptions:[]}),Cj=PS({meta:{type:"problem",docs:{description:"Warns component props that are defined but never used.",[Symbol.for("rule_features")]:["TSC","EXP"]},messages:{noUnusedProps:"Prop `{{name}}` is declared but never used"},schema:[]},name:"no-unused-props",create:function(e){let t=h1.ESLintUtils.getParserServices(e,!1),{ctx:n,listeners:r}=ke(e);return{...r,"Program:exit"(r){let i=t.program.getTypeChecker(),a=n.getAllComponents(r),o=new Set,s=new Set;for(let[,n]of a){let[r]=n.node.params;if(null==r)continue;let a=new Set;if(!function(e,t,n){switch(n.type){case _q.AST_NODE_TYPES.Identifier:return CU(e,t,n);case _q.AST_NODE_TYPES.ObjectPattern:return CY(e,t,n);default:return!1}}(e,a,r))continue;let l=t.esTreeNodeToTSNodeMap.get(r);for(let e of i.getTypeAtLocation(l).getProperties())o.add(e),a.has(e.name)&&s.add(e)}for(let n of[...o].filter(e=>!s.has(e)))!function(e,t,n){let r=n.getDeclarations()?.[0];if(null==r)return;let i=t.tsNodeToESTreeNodeMap.get(r);if(null==i)return;let a=i.type===_q.AST_NODE_TYPES.TSPropertySignature?i.key:i;e.report({messageId:"noUnusedProps",node:a,data:{name:n.name}})}(e,t,n)}}},defaultOptions:[]});function CY(e,t,n){for(let o of n.properties)switch(o.type){case _q.AST_NODE_TYPES.Property:{let e=CB(o.key);if(null==e)return!1;t.add(e);break}case _q.AST_NODE_TYPES.RestElement:var r,i,a;if(r=e,i=t,!((a=o).argument.type===_q.AST_NODE_TYPES.Identifier&&CU(r,i,a.argument)))return!1}return!0}function CU(e,t,n){let r=e.sourceCode.getScope(n).variables.find(e=>e.name===n.name);if(null==r)return!1;for(let i of r.references)if(i.identifier!==n&&!function(e,t,n,r){let{parent:i}=r.identifier;switch(i.type){case _q.AST_NODE_TYPES.MemberExpression:if(i.object.type===_q.AST_NODE_TYPES.Identifier&&i.object.name===n.name){let e=CB(i.property);if(null==e)return!1;return t.add(e),!0}break;case _q.AST_NODE_TYPES.VariableDeclarator:if(i.id.type===_q.AST_NODE_TYPES.ObjectPattern&&i.init===r.identifier)return CY(e,t,i.id)}return!1}(e,t,n,i))return!1;return!0}function CB(e){switch(e.type){case _q.AST_NODE_TYPES.Identifier:return e.name;case _q.AST_NODE_TYPES.Literal:if("string"==typeof e.value)return e.value}return null}var CV=PS({meta:{type:"problem",docs:{description:"Warns unused class component state.",[Symbol.for("rule_features")]:[]},messages:{noUnusedState:"Unused class component state in '{{className}}'"},schema:[]},name:"no-unused-state",create:function(e){let t=[],n=[],r=[],i=new WeakMap;function a(e){t.push(e)}function o(){let n=t.pop();if(null==n||!EH(n))return;let r=xP(n)?.name,{node:a,isUsed:o=!1}=i.get(n)??{};null==a||o||e.report({messageId:"noUnusedState",node:a,data:{className:r??"Component"}})}function s(e){n.push(e);let r=t.at(-1);if(null!=r&&EH(r)){if(e.static){if(kf(e)&&ls.isMatching({params:[ls.P.nonNullable,...ls.P.array()]})(e.value)){let e=i.get(r)?.node;i.set(r,{node:e,isUsed:!0})}return}"state"===x2(e.key)&&i.set(r,{node:e.key,isUsed:!1})}}function l(){n.pop()}return{AssignmentExpression(e){if(!kx(e))return;let n=t.at(-1);if(null==n||!EH(n))return;let a=r.at(-1);if(null==a||!n.body.body.includes(a))return;let o=i.get(n)?.isUsed??!1;i.set(n,{node:e.left,isUsed:o})},ClassDeclaration:a,"ClassDeclaration:exit":o,ClassExpression:a,"ClassExpression:exit":o,MemberExpression(e){if(!xJ(e.object)||"state"!==x2(e.property))return;let a=t.at(-1);if(null==a||!EH(a))return;let o=n.at(-1);if(null==o||o.static||o===r.at(-1)||!a.body.body.includes(o))return;let s=i.get(a)?.node;i.set(a,{node:s,isUsed:!0})},MethodDefinition:s,"MethodDefinition:exit":l,"MethodDefinition[key.name='constructor']":function(e){r.push(e)},"MethodDefinition[key.name='constructor']:exit":function(){r.pop()},PropertyDefinition:s,"PropertyDefinition:exit":l,VariableDeclarator(e){let a=t.at(-1);if(null==a||!EH(a))return;let o=n.at(-1);if(null==o||o.static||o===r.at(-1)||!a.body.body.includes(o)||null==e.init||!xJ(e.init)||e.id.type!==_q.AST_NODE_TYPES.ObjectPattern||!e.id.properties.some(e=>{var t;return!!(e.type===_q.AST_NODE_TYPES.Property&&(t=e.key,ls.match(t).with({type:_q.AST_NODE_TYPES.Literal},ln).with({type:_q.AST_NODE_TYPES.TemplateLiteral,expressions:[]},ln).with({type:_q.AST_NODE_TYPES.Identifier},()=>!e.computed).otherwise(lr)))&&"state"===x2(e.key)}))return;let s=i.get(a)?.node;i.set(a,{node:s,isUsed:!0})}}},defaultOptions:[]}),CJ=PS({meta:{type:"problem",docs:{description:"Replaces usages of `useContext` with `use`.",[Symbol.for("rule_features")]:["MOD"]},fixable:"code",messages:{noUseContext:"In React 19, 'use' is preferred over 'useContext' because it is more flexible."},schema:[]},name:"no-use-context",create:function(e){if(!e.sourceCode.text.includes("useContext"))return{};let t=_R(e);if(kD(t.version,"19.0.0","<"))return{};let n=new Set;return{CallExpression(e){Ex(e)&&n.add(e)},ImportDeclaration(n){if(n.source.value!==t.importSource)return;let r=n.specifiers.some(ls.isMatching({local:{type:_q.AST_NODE_TYPES.Identifier,name:"use"}}));for(let t of n.specifiers)t.type===_q.AST_NODE_TYPES.ImportSpecifier&&t.imported.type===_q.AST_NODE_TYPES.Identifier&&"useContext"===t.imported.name&&e.report({messageId:"noUseContext",node:t,fix(n){if(r){let r=e.sourceCode.getTokenBefore(t);return[n.remove(t),...r?.value===","?[n.replaceTextRange([r.range[1],t.range[0]],"")]:[],...(function(e,t){let n=e.sourceCode.getTokenBefore(t),r=e.sourceCode.getTokenAfter(t),i=[];return r?.value!==","&&n?.value===","&&i.push(n),r?.value===","&&i.push(r),i})(e,t).map(e=>n.remove(e))]}return n.replaceText(t.imported,"use")}})},"Program:exit"(){for(let t of n)Ew(t)&&e.report({messageId:"noUseContext",node:t.callee,fix(e){switch(t.callee.type){case _q.AST_NODE_TYPES.Identifier:return e.replaceText(t.callee,"use");case _q.AST_NODE_TYPES.MemberExpression:return e.replaceText(t.callee.property,"use")}return null}})}}},defaultOptions:[]}),Cz=PS({meta:{type:"problem",docs:{description:"Disallow useless `forwardRef` calls on components that don't use `ref`s.",[Symbol.for("rule_features")]:[]},messages:{noUselessForwardRef:"A 'forwardRef' is used with this component but no 'ref' parameter is set."},schema:[]},name:"no-useless-forward-ref",create:function(e){return{CallExpression(t){if(!Ev(e,t))return;let[n]=t.arguments;null!=n&&xD(n)&&null==n.params[1]&&e.report({messageId:"noUselessForwardRef",node:t.callee})}}},defaultOptions:[]});let Cq=[{allowExpressions:!0}];var C$=PS({meta:{type:"problem",defaultOptions:[...Cq],docs:{description:"Disallow useless fragment elements."},fixable:"code",messages:{uselessFragment:"A fragment {{reason}} is useless."},schema:[{type:"object",additionalProperties:!1,properties:{allowExpressions:{type:"boolean",description:"Allow fragments with a single expression child"}}}]},name:"no-useless-fragment",create:function(e,[t]){let{allowExpressions:n=!0}=t;return{JSXElement(t){E$(e,t)&&CK(e,t,n)},JSXFragment(t){CK(e,t,n)}}},defaultOptions:Cq});function CW(e){return"string"==typeof e.value&&""===e.raw.trim()}function CK(e,t,n){if(t.type===_q.AST_NODE_TYPES.JSXElement&&null!=EL(e,t)("key"))return;if(Eq(e,t.parent)&&e.report({messageId:"uselessFragment",node:t,data:{reason:"placed inside a host component"},fix:CH(e,t)}),0===t.children.length)return void e.report({messageId:"uselessFragment",node:t,data:{reason:"contains less than two children"},fix:CH(e,t)});let r=xA([_q.AST_NODE_TYPES.JSXElement,_q.AST_NODE_TYPES.JSXFragment])(t.parent);switch(!0){case n&&!r&&1===t.children.length&&EV(t.children.at(0)):return;case!n&&r:case!n&&!r&&1===t.children.length:e.report({messageId:"uselessFragment",node:t,data:{reason:"contains less than two children"},fix:CH(e,t)});return}let i=t.children.filter(e=>!(EV(e)&&CW(e)&&e.raw.includes("\n"))),a=i.at(0);(0===i.length||1===i.length&&a?.type!==_q.AST_NODE_TYPES.JSXExpressionContainer)&&e.report({messageId:"uselessFragment",node:t,data:{reason:"contains less than two children"},fix:CH(e,t)})}function CH(e,t){var n,r;return(n=e,(r=t).parent.type===_q.AST_NODE_TYPES.JSXElement||r.parent.type===_q.AST_NODE_TYPES.JSXFragment?Eq(n,r.parent):0!==r.children.length&&!r.children.some(e=>EV(e)&&!CW(e)||xw(_q.AST_NODE_TYPES.JSXExpressionContainer)(e)))?n=>{let r,i,a,o,s=t.type===_q.AST_NODE_TYPES.JSXFragment?t.openingFragment:t.openingElement,l=t.type===_q.AST_NODE_TYPES.JSXFragment?t.closingFragment:t.closingElement,c=s.type===_q.AST_NODE_TYPES.JSXOpeningElement&&s.selfClosing?"":e.sourceCode.getText().slice(s.range[1],l?.range[0]);return n.replaceText(t,(r=/^\s*/.exec(c)?.[0]??"",i=/\s*$/.exec(c)?.[0]??"",a=r.includes("\n")?r.length:0,o=i.includes("\n")?c.length-i.length:c.length,c.slice(a,o)))}:null}var CG=PS({meta:{type:"problem",docs:{description:"Enforces destructuring assignment for component props and context.",[Symbol.for("rule_features")]:[]},messages:{preferDestructuringAssignment:"Use destructuring assignment for {{name}}."},schema:[]},name:"prefer-destructuring-assignment",create:function(e){let{ctx:t,listeners:n}=ke(e),r=[];return{...n,MemberExpression(t){if(t.object.type===_q.AST_NODE_TYPES.Identifier&&"name"in t.object){let n=e.sourceCode.getScope(t);r.push([n,t])}},"Program:exit"(n){let i=[...t.getAllComponents(n).values()];function a(e){if(!xD(e))return!1;let t=xH(e);return null!=t&&E8(t.name)&&i.some(t=>t.node===e)}for(let[t,n]of r){let r=t,i=a(r.block);for(;!i&&null!=r.upper&&r.upper!==r;)i=a((r=r.upper).block);if(!i)continue;let o=r.block;if(!("params"in o))continue;let[s,l]=o.params,c=e=>null!=e&&e.type===_q.AST_NODE_TYPES.Identifier&&e.name===n.object.name;c(s)&&e.report({messageId:"preferDestructuringAssignment",node:n,data:{name:"props"}}),c(l)&&e.report({messageId:"preferDestructuringAssignment",node:n,data:{name:"context"}})}}}},defaultOptions:[]}),CX=PS({meta:{type:"problem",docs:{description:"Enforces React is imported via a namespace import.",[Symbol.for("rule_features")]:["FIX"]},fixable:"code",messages:{preferNamespaceImport:"Prefer importing React as 'import * as React from \"{{importSource}}\"';"},schema:[]},name:"prefer-namespace-import",create:function(e){let{importSource:t}=_R(e);return{[`ImportDeclaration[source.value="${t}"] ImportDefaultSpecifier`](n){let r=n.parent.specifiers.length>1;e.report({messageId:"preferNamespaceImport",node:r?n:n.parent,data:{importSource:t},fix(i){let a=e.sourceCode.getText(n.parent),o=a.endsWith(";")?";":"",s=n.parent.source.raw.at(0)??"'",l=`import${"type"===n.parent.importKind?" type":""}`,c=`${s}${t}${s}`;if(!r)return i.replaceText(n.parent,`${l} * as ${n.local.name} from ${c}${o}`);let u=a.slice(a.indexOf("{"),a.indexOf("}")+1);return i.replaceText(n.parent,`${l} * as ${n.local.name} from ${c}${o}
|
|
399
|
-
${l} ${u} from ${c}${o}`)}})}}},defaultOptions:[]}),CQ=PS({meta:{type:"problem",docs:{description:"Enforces read-only props in components.",[Symbol.for("rule_features")]:["TSC","EXP"]},messages:{preferReadOnlyProps:"A function component's props should be read-only."},schema:[]},name:"prefer-read-only-props",create:function(e){let t=h1.ESLintUtils.getParserServices(e,!1),{ctx:n,listeners:r}=ke(e);return{...r,"Program:exit"(r){for(let[,i]of n.getAllComponents(r)){if(null==i.id||null==i.name)continue;let[n]=i.node.params;null!=n&&!function(e,t){if(k5.isTypeReadonly(e.program,t))return!0;try{let n=function(e,t,n=[{type:{from:"lib",name:"Map"},to:sy.Mutable},{type:{from:"lib",name:"Set"},to:sy.Mutable},{type:{from:"lib",name:"Date"},to:sy.Mutable},{type:{from:"lib",name:"URL"},to:sy.Mutable},{type:{from:"lib",name:"URLSearchParams"},to:sy.Mutable}],r=!0,i=sy.Immutable,a=function(e,t,n,r,i=[]){var a,o,s,l;let c;if(0===r.length)return!1;let u=!1,_=function(e,t){if(null===t){let t="target"in e?e.target:e;return t.aliasSymbol?.getName()??null}return yf.isTypeAliasDeclaration(t.parent)?t.parent.name.getText():null}(t,n);if(null!==_){let e=e=>"string"==typeof e?e===_:e.test(_);if(i.some(e))return!1;u||=r.some(e)}let d=(a=e,o=t,null===(s=n)?a.getTypeChecker().typeToString(o,void 0,yf.TypeFormatFlags.AddUndefined|yf.TypeFormatFlags.NoTruncation|yf.TypeFormatFlags.OmitParameterModifiers|yf.TypeFormatFlags.UseFullyQualifiedType|yf.TypeFormatFlags.WriteArrayAsGenericType|yf.TypeFormatFlags.WriteArrowStyleSignature|yf.TypeFormatFlags.WriteTypeArgumentsOfSignature):s.getText()),p=e=>"string"==typeof e?e===d:e.test(d);if(i.some(p))return!1;u||=r.some(p);let f=(l=d,c=/^([^<]+)<.+>$/u.exec(l),c?.[1]??null);if(null!==f){let e=e=>"string"==typeof e?e===f:e.test(f);if(i.some(e))return!1;u||=r.some(e)}if(e.getTypeChecker().isArrayType(t)&&null!==n)if(yf.isTypeOperatorNode(n)&&n.operator===yf.SyntaxKind.ReadonlyKeyword||yf.isTypeOperatorNode(n.parent)&&n.parent.operator===yf.SyntaxKind.ReadonlyKeyword){let e=e=>"string"==typeof e&&"ReadonlyArray"===e;if(i.some(e))return!1;u||=r.some(e)}else{let e=e=>"string"==typeof e&&"Array"===e;if(i.some(e))return!1;u||=r.some(e)}return u}){let o=Object.hasOwn(t,"kind"),s=o?e.getTypeChecker().getTypeFromTypeNode(t):t;return function(e,t,n,r,i,a){let o,s=!0===r?Pd:!1===r?new WeakMap:r,l={program:e,overrides:n,cache:s,immutabilityLimits:{min:sy.Mutable,max:i},typeMatchesPatternSpecifier:a},c=[Pp(t)],u=sy.Unknown;do{switch((o=c.pop()).stage){case 0:!function(e,t,n){var r,i,a,o,s,l,c,u;let _,d,p=(r=e.program,i=e.cache,a=n.typeData,_=r.getTypeChecker(),d=a.typeNode??_.getRecursionIdentity(a.type),i.get(d));if(void 0!==p){n.immutability=p;return}let f=(o=n.typeData,e.overrides.find(t=>{var n,r,i;return n=e.program,r=t.type,i=e.typeMatchesPatternSpecifier,!vl(o.type)&&("string"==typeof r||r instanceof RegExp?Pu(n,r,o,i):function(e,t,n){var r,i,a,o,s,l,c;let[u,_]=function(e){let t=e.getSymbol()?.getDeclarations()??[],n=t.map(e=>e.getSourceFile());return[t,n]}(n);switch(t.from){case"lib":return Pn(e,_);case"package":return r=e,i=u,a=_,o=t.package,(Pr(i,o)||Pi(r,a,o))&&!Pn(e,_);case"file":return function(e,t,n){let r=e.getCurrentDirectory(),i=yf.getEffectiveTypeRoots(e.getCompilerOptions(),e),a=void 0===i?t:t.filter(e=>!i.some(t=>e.path.startsWith(t)));return void 0===n?a.some(e=>!e.path.includes("/node_modules/")):a.some(e=>{let t=function(e){let t=sJ.normalize(e),n=t.endsWith(sJ.sep)?t.slice(0,-1):t;return void 0===yf.sys||yf.sys.useCaseSensitiveFileNames?n:n.toLowerCase()}(e.path);return t.startsWith(r)&&(Pt.isMatch(t,n)||Pt.isMatch(`./${sJ.relative(r,t)}`,n))})}(e,_,t.path)&&!Pn(e,_)&&(s=e,l=u,c=_,!(Pr(l,void 0)||Pi(s,c,void 0)))}}(n,r,o.type)&&Pu(n,r,o,i))}));if(f?.to!==void 0){if(void 0===f.from){n.immutability=f.to,Pc(e.program,e.cache,n.typeData,n.immutability);return}t.push({taskState:n,override:f,stage:6})}if(Pc(e.program,e.cache,n.typeData,n.immutability),vm(n.typeData.type))return function(e,t){let n=t.typeData.type.types.map((e,n)=>Pp(Pl(e,null!==t.typeData.typeNode&&yf.isUnionTypeNode(t.typeData.typeNode)?t.typeData.typeNode.types[n]:void 0)));e.push(Pf(t,n,Pa),...n)}(t,n);if(vp(n.typeData.type)){return l=e,c=t,u=n,Ph(l,c,u)}if(v_(n.typeData.type))return function(e,t,n){let r=e.program.getTypeChecker(),i=[n.typeData.type.root.node.trueType,n.typeData.type.root.node.falseType].map(e=>Pp(Pl(r.getTypeFromTypeNode(e),e)));t.push(Pf(n,i,Pa),...i)}(e,t,n);if((s=n.typeData.type).getCallSignatures().length>0&&0===s.getProperties().length)return n.immutability=sy.Immutable;let m=e.program.getTypeChecker();m.isTupleType(n.typeData.type)?function(e,t,n){if(!n.typeData.type.target.readonly){n.immutability=sy.Mutable;return}Pg(e,t,n)}(e,t,n):m.isArrayType(n.typeData.type)?Pg(e,t,n):vf(n.typeData.type)?Ph(e,t,n):n.immutability=sy.Immutable}(l,c,o);break;case 1:var _,d=o;d.immutability=d.children[0].immutability;for(let e=1;e<d.children.length;e++)d.immutability=d.childrenReducer(d.immutability,d.children[e].immutability);break;case 3:!function(e,t){e.push(Pm(t,()=>{t.stage=4,e.push(t)})),Py(e,t)}(c,o);break;case 4:!function(e,t,n){let[r,i]=vp(n.typeData.type)?[n.typeData.type.types,n.typeData.typeNode?.types]:[[n.typeData.type],null===n.typeData.typeNode?void 0:[n.typeData.typeNode]];t.push(Pm(n,()=>{n.stage=7,n.immutability=Po(n.limits.min,n.limits.max),t.push(n)}),Pm(n,()=>{let a=r.flatMap((t,r)=>Pv(e,n,yf.IndexKind.Number,Pl(t,i?.[r])));a.length>0&&t.push(Pf(n,a,Po),...a)}));let a=r.flatMap((t,r)=>Pv(e,n,yf.IndexKind.String,Pl(t,i?.[r])));a.length>0&&t.push(Pf(n,a,Po),...a)}(l,c,o);break;case 6:((_=o).override.from<=_.taskState.immutability&&_.taskState.immutability<=_.override.to||_.override.from>=_.taskState.immutability&&_.taskState.immutability>=_.override.to)&&(_.taskState.immutability=_.override.to),o=o.taskState;break;case 5:(function(e,t){if(t!==sy.Calculating&&(e.taskState.limits.max=Pa(e.taskState.limits.max,t),e.taskState.limits.min>=e.taskState.limits.max)){e.taskState.immutability=e.taskState.limits.min;return}e.notDoneAction()})(o,u),o=o.taskState}o.immutability!==sy.Calculating&&(Pc(e,s,o.typeData,o.immutability),u=o.immutability)}while(c.length>0);return o.immutability===sy.Calculating?sy.Unknown:o.immutability}(e,Pl(s,o?t:void 0),n,r,i,a)}(e.program,t);return Ps(n)||n>=sy.Immutable||n>=sy.ReadonlyShallow||n>=sy.ReadonlyDeep}catch{return!0}}(t,k5.getConstrainedTypeAtLocation(t,n))&&e.report({messageId:"preferReadOnlyProps",node:n})}}}},defaultOptions:[]});let CZ=["Boolean","String","Number"];var C0=PS({meta:{type:"problem",docs:{description:"Enforces function calls made inside `useState` to be wrapped in an `initializer function`.",[Symbol.for("rule_features")]:["EXP"]},messages:{preferUseStateLazyInitialization:"To prevent re-computation, consider using lazy initial state for useState calls that involve function calls. Ex: 'useState(() => getValue())'."},schema:[]},name:"prefer-use-state-lazy-initialization",create:function(e){return{CallExpression(t){if(!ED(t))return;let[n]=t.arguments;if(null!=n){for(let t of xW(n))!("name"in t.callee)||CZ.includes(t.callee.name)||null==xz(t,EP)&&e.report({messageId:"preferUseStateLazyInitialization",node:t});for(let t of xK(n))!("name"in t.callee)||ES(t.callee.name)||CZ.includes(t.callee.name)||null==xz(t,EP)&&e.report({messageId:"preferUseStateLazyInitialization",node:t})}}}},defaultOptions:[]});let C1="no-forbidden-props",C2=v6(C1),C3=[{forbid:[{prop:"/_/"}]}],C6={meta:{name:"eslint-plugin-react-x",version:"2.3.4"},rules:{"jsx-dollar":PY,"jsx-key-before-spread":PU,"jsx-no-comment-textnodes":PB,"jsx-no-duplicate-props":PV,"jsx-no-iife":PJ,"jsx-no-undef":Pz,"jsx-shorthand-boolean":P$,"jsx-shorthand-fragment":PK,"jsx-uses-react":PH,"jsx-uses-vars":PX,"no-access-state-in-setstate":PQ,"no-array-index-key":P0,"no-children-count":P1,"no-children-for-each":P2,"no-children-map":P3,"no-children-only":P6,"no-children-prop":P4,"no-children-to-array":P8,"no-class-component":P5,"no-clone-element":P7,"no-component-will-mount":P9,"no-component-will-receive-props":Ce,"no-component-will-update":Ct,"no-context-provider":Cn,"no-create-ref":Cr,"no-default-props":Ci,"no-direct-mutation-state":Co,"no-duplicate-key":Cs,"no-forward-ref":Cl,"no-implicit-key":Cc,"no-leaked-conditional-rendering":Cu,"no-missing-component-display-name":C_,"no-missing-context-display-name":Cd,"no-missing-key":Cp,"no-misused-capture-owner-stack":Cf,"no-nested-component-definitions":Cg,"no-nested-lazy-component-declarations":Ch,"no-prop-types":Cy,"no-redundant-should-component-update":Cv,"no-set-state-in-component-did-mount":Cb,"no-set-state-in-component-did-update":CT,"no-set-state-in-component-will-update":CS,"no-string-refs":Cx,"no-unnecessary-key":CE,"no-unnecessary-use-callback":CP,"no-unnecessary-use-memo":CC,"no-unnecessary-use-prefix":CA,"no-unsafe-component-will-mount":CD,"no-unsafe-component-will-receive-props":CN,"no-unsafe-component-will-update":CF,"no-unstable-context-value":CO,"no-unstable-default-props":CI,"no-unused-class-component-members":CR,"no-unused-props":Cj,"no-unused-state":CV,"no-use-context":CJ,"no-useless-forward-ref":Cz,"no-useless-fragment":C$,"prefer-destructuring-assignment":CG,"prefer-namespace-import":CX,"prefer-read-only-props":CQ,"prefer-use-state-lazy-initialization":C0,"no-forbidden-props":PS({meta:{type:"problem",defaultOptions:[...C3],deprecated:{deprecatedSince:"2.3.2",message:"This rule is deprecated and will be removed in future versions.",replacedBy:[{rule:{name:"no-restricted-syntax",url:"https://eslint.org/docs/latest/rules/no-restricted-syntax"}}]},docs:{description:"Disallow certain props on components."},messages:{[C2]:'Prop "{{name}}" is forbidden.'},schema:[{type:"object",additionalProperties:!1,properties:{forbid:{type:"array",items:{anyOf:[{type:"string"},{type:"object",additionalProperties:!1,properties:{excludedNodes:{type:"array",items:{type:"string"},uniqueItems:!0},prop:{type:"string"}},required:["prop"]},{type:"object",additionalProperties:!1,properties:{includedNodes:{type:"array",items:{type:"string"},uniqueItems:!0},prop:{type:"string"}},required:["prop"]}]}}}}]},name:C1,create:function(e,[t]){let{forbid:n=[{prop:"/_/"}]}=t;return{JSXOpeningElement(t){let r=null;for(let i of(t.name.type===_q.AST_NODE_TYPES.JSXIdentifier?r=t.name.name:t.name.type===_q.AST_NODE_TYPES.JSXNamespacedName&&(r=t.name.name.name),t.attributes)){if(i.type===_q.AST_NODE_TYPES.JSXSpreadAttribute)continue;let t=i.name.name;if("string"==typeof t)for(let a of n)!("string"!=typeof a&&null!=r&&("excludedNodes"in a&&a.excludedNodes.includes(r)||"includedNodes"in a&&!a.includedNodes.includes(r)))&&_F("string"==typeof a?a:a.prop).test(t)&&e.report({messageId:C2,node:i,data:{name:t}})}}}},defaultOptions:C3})}};var C4=PT({name:()=>C8,plugins:()=>C7,rules:()=>C5,settings:()=>C9});let C8="react-x/recommended",C5={"react-x/jsx-key-before-spread":"warn","react-x/jsx-no-comment-textnodes":"warn","react-x/jsx-no-duplicate-props":"warn","react-x/jsx-uses-react":"warn","react-x/jsx-uses-vars":"warn","react-x/no-access-state-in-setstate":"error","react-x/no-array-index-key":"warn","react-x/no-children-count":"warn","react-x/no-children-for-each":"warn","react-x/no-children-map":"warn","react-x/no-children-only":"warn","react-x/no-children-to-array":"warn","react-x/no-clone-element":"warn","react-x/no-component-will-mount":"error","react-x/no-component-will-receive-props":"error","react-x/no-component-will-update":"error","react-x/no-context-provider":"warn","react-x/no-create-ref":"error","react-x/no-default-props":"error","react-x/no-direct-mutation-state":"error","react-x/no-duplicate-key":"error","react-x/no-forward-ref":"warn","react-x/no-implicit-key":"warn","react-x/no-missing-key":"error","react-x/no-nested-component-definitions":"error","react-x/no-nested-lazy-component-declarations":"error","react-x/no-prop-types":"error","react-x/no-redundant-should-component-update":"error","react-x/no-set-state-in-component-did-mount":"warn","react-x/no-set-state-in-component-did-update":"warn","react-x/no-set-state-in-component-will-update":"warn","react-x/no-string-refs":"error","react-x/no-unnecessary-use-prefix":"warn","react-x/no-unsafe-component-will-mount":"warn","react-x/no-unsafe-component-will-receive-props":"warn","react-x/no-unsafe-component-will-update":"warn","react-x/no-use-context":"warn","react-x/no-useless-forward-ref":"warn","react-x/prefer-use-state-lazy-initialization":"warn"},C7={"react-x":C6},C9={"react-x":_L},we={"react-x/jsx-no-duplicate-props":"off","react-x/jsx-no-undef":"off","react-x/jsx-uses-react":"off","react-x/jsx-uses-vars":"off"};var wt=PT({name:()=>wn,plugins:()=>wi,rules:()=>wr,settings:()=>wa});let wn="react-x/recommended-typescript",wr={...C5,...we},wi={...C7},wa={...C9};var wo=PT({name:()=>ws,plugins:()=>wc,rules:()=>wl,settings:()=>wu});let ws="react-x/recommended-type-checked",wl={...wr,"react-x/no-leaked-conditional-rendering":"error"},wc={...wi},wu={...wa};var w_=PT({name:()=>wd,plugins:()=>wf,rules:()=>wp,settings:()=>wm});let wd="react-x/strict",wp={...C5,"react-x/jsx-no-iife":"error","react-x/no-children-prop":"error","react-x/no-class-component":"error","react-x/no-misused-capture-owner-stack":"error","react-x/no-unnecessary-key":"warn","react-x/no-unnecessary-use-callback":"warn","react-x/no-unnecessary-use-memo":"warn","react-x/no-unstable-context-value":"warn","react-x/no-unstable-default-props":"warn","react-x/no-unused-class-component-members":"warn","react-x/no-unused-state":"warn","react-x/no-useless-fragment":"warn","react-x/prefer-destructuring-assignment":"warn"},wf={...C7},wm={...C9};var wg=PT({name:()=>wh,plugins:()=>wv,rules:()=>wy,settings:()=>wb});let wh="react-x/strict-typescript",wy={...wp,...we},wv={...wf},wb={...wm};var wT=PT({name:()=>wS,plugins:()=>wE,rules:()=>wx,settings:()=>wk});let wS="react-x/strict-type-checked",wx={...wy,"react-x/no-leaked-conditional-rendering":"error","react-x/no-unused-props":"warn"},wE={...wv},wk={...wb},{toFlatConfig:wP}=_g("react-x",C6);var wC={...C6,configs:{recommended:wP(C4),"recommended-typescript":wP(wt),"recommended-type-checked":wP(wo),strict:wP(w_),"strict-typescript":wP(wg),"strict-type-checked":wP(wT)}},ww=Object.defineProperty,wA=(e=>{let t={};for(var n in e)ww(t,n,{get:e[n],enumerable:!0});return t})({name:()=>wD,rules:()=>wN});let wD="react-hooks-extra/recommended",wN={"react-hooks-extra/no-direct-set-state-in-use-effect":"warn"};function wF(e){if(e.type!==_q.AST_NODE_TYPES.VariableDeclarator||e.id.type!==_q.AST_NODE_TYPES.Identifier)return!1;var t=e.init;if(t?.type!==_q.AST_NODE_TYPES.CallExpression)return!1;switch(t.callee.type){case _q.AST_NODE_TYPES.Identifier:return ES(t.callee.name);case _q.AST_NODE_TYPES.MemberExpression:return t.callee.property.type===_q.AST_NODE_TYPES.Identifier&&ES(t.callee.property.name);default:return!1}}let wO={meta:{name:"eslint-plugin-react-hooks-extra",version:"2.3.4"},rules:{"no-direct-set-state-in-use-effect":h1.ESLintUtils.RuleCreator(function(e){return`${_h}/docs/rules/hooks-extra-${e}`})({meta:{type:"problem",docs:{description:"Disallow direct calls to the `set` function of `useState` in `useEffect`.",[Symbol.for("rule_features")]:["EXP"]},messages:{noDirectSetStateInUseEffect:"Do not call the 'set' function '{{name}}' of 'useState' directly in 'useEffect'."},schema:[]},name:"no-direct-set-state-in-use-effect",create:function(e){if(!/use\w*Effect/u.test(e.sourceCode.text))return{};let t=[],n={current:null},r=[],i=[],a=new WeakMap,o=new WeakMap,s=new Map,l=new WeakMap,c=t=>e.sourceCode.getText(t);function u(e){return e.type===_q.AST_NODE_TYPES.CallExpression?xB(e.callee,c):xB(e,c)}function _(t,n){let r=x5(x9(t,e.sourceCode.getScope(t)),0);if(null==r||r.type!==_q.AST_NODE_TYPES.CallExpression||!ED(r))return!1;let i=r.parent;return!("id"in i)||i.id?.type!==_q.AST_NODE_TYPES.ArrayPattern||i.id.elements.findIndex(e=>e?.type===_q.AST_NODE_TYPES.Identifier&&e.name===t.name)===n}function d(t){switch(t.callee.type){case _q.AST_NODE_TYPES.CallExpression:{let{callee:n}=t.callee;if(n.type!==_q.AST_NODE_TYPES.MemberExpression||!("name"in n.object))return!1;let r=n.property.type===_q.AST_NODE_TYPES.Identifier&&"at"===n.property.name,[i]=t.callee.arguments;if(!r||null==i)return!1;return x4.getStaticValue(i,e.sourceCode.getScope(t))?.value===1&&_(n.object)}case _q.AST_NODE_TYPES.Identifier:return _(t.callee,1);case _q.AST_NODE_TYPES.MemberExpression:{if(!("name"in t.callee.object))return!1;let n=t.callee.property;return x4.getStaticValue(n,e.sourceCode.getScope(t))?.value===1&&_(t.callee.object,1)}default:return!1}}return{":function"(e){let r=function(e){let t=xz(e,e=>!xj(e))??e.parent;switch(!0){case e.async:case t.type===_q.AST_NODE_TYPES.CallExpression&&x1(t):return"deferred";case e.type!==_q.AST_NODE_TYPES.FunctionDeclaration&&t.type===_q.AST_NODE_TYPES.CallExpression&&t.callee===e:return"immediate";case e.parent?.type===_q.AST_NODE_TYPES.CallExpression&&e.parent.callee!==e&&Ek(e.parent):return"setup";default:return"other"}}(e);t.push({kind:r,node:e}),"setup"===r&&(n.current=e)},":function:exit"(e){let{kind:r}=t.at(-1)??{};"setup"===r&&n.current===e&&(n.current=null),t.pop()},CallExpression(o){let s=n.current,c=t.at(-1);null!=c&&!c.node.async&&ls.match(ls.match(o).when(ED,()=>"useState").when(Ek,()=>"useEffect").when(d,()=>"setState").when(x1,()=>"then").otherwise(()=>"other")).with("setState",()=>{switch(!0){case"deferred"===c.kind:case c.node.async:break;case c.node===s:case"immediate"===c.kind&&xz(c.node,xD)===s:e.report({messageId:"noDirectSetStateInUseEffect",node:o,data:{name:e.sourceCode.getText(o.callee)}});return;default:{let e=xz(o,wF)?.init;null==e?la(a,c.node,()=>[]).push(o):la(l,e,()=>[]).push(o)}}}).with("useEffect",()=>{xD(o.arguments.at(0))||r.push(...function e(t){let n=[];if(t.type===_q.AST_NODE_TYPES.Identifier&&n.push(t),"arguments"in t){let r=t.arguments.map(e).flat(1);n.push(...r)}if("elements"in t){let r=t.elements.filter(e=>null!=e).map(e).flat(1);n.push(...r)}if("properties"in t){let r=t.properties.map(e).flat(1);n.push(...r)}if("expressions"in t){let r=t.expressions.map(e).flat(1);n.push(...r)}if("left"in t){let r=e(t.left);n.push(...r)}if("right"in t){let r=e(t.right);n.push(...r)}if(t.type===_q.AST_NODE_TYPES.Property){let r=e(t.value);n.push(...r)}if(t.type===_q.AST_NODE_TYPES.SpreadElement){let r=e(t.argument);n.push(...r)}if(t.type===_q.AST_NODE_TYPES.MemberExpression){let r=e(t.object);n.push(...r)}if(t.type===_q.AST_NODE_TYPES.UnaryExpression){let r=e(t.argument);n.push(...r)}if(t.type===_q.AST_NODE_TYPES.ChainExpression){let r=e(t.expression);n.push(...r)}if(t.type===_q.AST_NODE_TYPES.TSNonNullExpression){let r=e(t.expression);n.push(...r)}if(t.type===_q.AST_NODE_TYPES.TSAsExpression){let r=e(t.expression);n.push(...r)}if(t.type===_q.AST_NODE_TYPES.TSSatisfiesExpression){let r=e(t.expression);n.push(...r)}return n}(o))}).with("other",()=>{c.node===s&&i.push(o)}).otherwise(lt)},Identifier(e){if((e.parent.type!==_q.AST_NODE_TYPES.CallExpression||e.parent.callee!==e)&&_(e,1))switch(e.parent.type){case _q.AST_NODE_TYPES.ArrowFunctionExpression:{let t=e.parent.parent;if(t.type!==_q.AST_NODE_TYPES.CallExpression||!EA(t))break;let n=xz(t,wF)?.init;null!=n&&la(o,n,()=>[]).push(e);break}case _q.AST_NODE_TYPES.CallExpression:if(e!==e.parent.arguments.at(0))break;if(EC(e.parent)){let t=xz(e.parent,wF)?.init;null!=t&&la(o,t,()=>[]).push(e);break}Ek(e.parent)&&la(s,e.parent,()=>[]).push(e)}},"Program:exit"(){let t=(e,t)=>{let n=x5(x9(e,t),0);switch(n?.type){case _q.AST_NODE_TYPES.ArrowFunctionExpression:case _q.AST_NODE_TYPES.FunctionDeclaration:case _q.AST_NODE_TYPES.FunctionExpression:return a.get(n)??[];case _q.AST_NODE_TYPES.CallExpression:return l.get(n)??o.get(n)??[]}return[]};for(let[,t]of s)for(let n of t)e.report({messageId:"noDirectSetStateInUseEffect",node:n,data:{name:n.name}});for(let{callee:n}of i){if(!("name"in n))continue;let{name:r}=n;for(let i of t(r,e.sourceCode.getScope(n)))e.report({messageId:"noDirectSetStateInUseEffect",node:i,data:{name:u(i)}})}for(let n of r)for(let r of t(n.name,e.sourceCode.getScope(n)))e.report({messageId:"noDirectSetStateInUseEffect",node:r,data:{name:u(r)}})}}},defaultOptions:[]})}},{toFlatConfig:wI}=_g("react-hooks-extra",wO);var wL={...wO,configs:{recommended:wI(wA)}},wM=Object.defineProperty,wR=(e=>{let t={};for(var n in e)wM(t,n,{get:e[n],enumerable:!0});return t})({name:()=>wj,rules:()=>wY});let wj="react-naming-convention/recommended",wY={"react-naming-convention/context-name":"warn","react-naming-convention/use-state":"warn"},wU=h1.ESLintUtils.RuleCreator(function(e){return`${_h}/docs/rules/naming-convention-${e}`}),wB=[{allowAllCaps:!1,excepts:[],rule:"PascalCase"}];var wV=wU({meta:{type:"problem",defaultOptions:[...wB],docs:{description:"Enforces naming conventions for components."},messages:{invalidComponentName:"A component name '{{name}}' does not match {{rule}}."},schema:[{anyOf:[{type:"string",enum:["PascalCase","CONSTANT_CASE"]},{type:"object",additionalProperties:!1,properties:{allowAllCaps:{type:"boolean"},excepts:{type:"array",items:{type:"string",format:"regex"}},rule:{type:"string",enum:["PascalCase","CONSTANT_CASE"]}}}]}]},name:"component-name",create:function(e){let t,n,r=(t=e.options[0],n=wB[0],null==t?n:{...n,..."string"==typeof t?{rule:t}:{...t,excepts:t.excepts?.map(e=>_F(e))??[]}}),{rule:i}=r,a=ke(e),o=kn();return{...a.listeners,...o.listeners,"Program:exit"(t){let n=a.ctx.getAllComponents(t),s=o.ctx.getAllComponents(t);for(let{node:t}of n.values()){let n=xH(t);if(n?.name==null)continue;let a=n.name;wJ(a,r)||e.report({messageId:"invalidComponentName",node:n,data:{name:a,rule:i}})}for(let{node:t}of s.values()){let n=xP(t);if(n?.name==null)continue;let a=n.name;wJ(a,r)||e.report({messageId:"invalidComponentName",node:n,data:{name:a,rule:i}})}}}},defaultOptions:wB});function wJ(e,t){if(null==e||t.excepts.some(t=>t.test(e)))return!0;let n=e.split(".").at(-1)??e;switch(t.rule){case"CONSTANT_CASE":return _S.test(n);case"PascalCase":if(n.length>3&&/^[A-Z]+$/u.test(n))return t.allowAllCaps;return _y.test(n)}}var wz=wU({meta:{type:"problem",docs:{description:"Enforces context name to be a valid component name with the suffix `Context`."},messages:{invalidContextName:"A context name must be a valid component name with the suffix 'Context'."},schema:[]},name:"context-name",create:function(e){return e.sourceCode.text.includes("createContext")?{CallExpression(t){if(!Eg(e,t))return;let n=EZ(t);if(null==n)return;let r=ls.match(n).with({type:_q.AST_NODE_TYPES.Identifier,name:ls.P.select()},s9).with({type:_q.AST_NODE_TYPES.MemberExpression,property:{name:ls.P.select(ls.P.string)}},s9).otherwise(()=>null);null!=r&&_A.test(r)&&r.endsWith("Context")||e.report({messageId:"invalidContextName",node:n})}}:{}},defaultOptions:[]});let wq=[{excepts:["index",String.raw`/^_/`,String.raw`/^\$/`,String.raw`/^[0-9]+$/`,String.raw`/^\[[^\]]+\]$/`],rule:"PascalCase"}];var w$=wU({meta:{type:"problem",defaultOptions:[...wq],docs:{description:"Enforces consistent file naming conventions."},messages:{empty:"A file must have non-empty name.",invalidCase:"A file with name '{{name}}' does not match {{rule}}. Rename it to '{{suggestion}}'."},schema:[{anyOf:[{type:"string",enum:["PascalCase","camelCase","kebab-case","snake_case"]},{type:"object",additionalProperties:!1,properties:{excepts:{type:"array",items:{type:"string",format:"regex"}},extensions:{type:"array",items:{type:"string"},uniqueItems:!0},rule:{type:"string",enum:["PascalCase","camelCase","kebab-case","snake_case"]}}}]}]},name:"filename",create:function(e){let t=e.options[0]??wq[0],n="string"==typeof t?t:t.rule??"PascalCase",r="string"==typeof t?[]:(t.excepts??[]).map(e=>_F(e));return{Program(t){let[i="",...a]=sk.basename(e.filename).split(".");0===i.length?e.report({messageId:"empty",node:t}):!function(e,t=n,i=r){if(i.some(t=>t.test(e)))return!0;let a=e.match(/[\w.-]/gu)?.join("")??"";return 0===a.length||ls.match(t).with("PascalCase",()=>_y.test(a)).with("camelCase",()=>_v.test(a)).with("kebab-case",()=>_b.test(a)).with("snake_case",()=>_T.test(a)).exhaustive()}(i)&&e.report({messageId:"invalidCase",node:t,data:{name:e.filename,rule:n,suggestion:[function(e,t=n){return ls.match(t).with("PascalCase",()=>v3(e)).with("camelCase",()=>v6(e)).with("kebab-case",()=>vX(v4(v2(e),"-"))).with("snake_case",()=>v8(e)).exhaustive()}(i),...a].join(".")}})}}},defaultOptions:wq});let wW=[{allow:"as-needed",extensions:[".jsx",".tsx"],ignoreFilesWithoutCode:!1}],wK={meta:{name:"eslint-plugin-react-naming-convention",version:"2.3.4"},rules:{"component-name":wV,"context-name":wz,filename:w$,"filename-extension":wU({meta:{type:"problem",defaultOptions:[...wW],docs:{description:"Enforces consistent file naming conventions."},messages:{missingJSXExtension:"Use {{extensions}} file extension for JSX files.",unnecessaryJSXExtension:"Do not use {{extensions}} file extension for files without JSX."},schema:[{anyOf:[{type:"string",enum:["always","as-needed"]},{type:"object",additionalProperties:!1,properties:{allow:{type:"string",enum:["always","as-needed"]},extensions:{type:"array",items:{type:"string"},uniqueItems:!0},ignoreFilesWithoutCode:{type:"boolean"}}}]}]},name:"filename-extension",create:function(e){let t=e.options[0]??wW[0],n=s7(t)?t.allow:t,r=s7(t)&&"extensions"in t?t.extensions:wW[0].extensions,i=r.map(e=>`'${e}'`).join(", "),a=e.filename,o=!1;return{JSXElement(){o=!0},JSXFragment(){o=!0},"Program:exit"(s){let l=a.slice(a.lastIndexOf(".")),c=r.includes(l);if(o&&!c)return void e.report({messageId:"missingJSXExtension",node:s,data:{extensions:i}});let u=s.body.length>0,_=s7(t)&&!0===t.ignoreFilesWithoutCode;(u||!_)&&!o&&c&&"as-needed"===n&&e.report({messageId:"unnecessaryJSXExtension",node:s,data:{extensions:i}})}}},defaultOptions:wW}),"use-state":wU({meta:{type:"problem",docs:{description:"Enforces destructuring and symmetric naming of `useState` hook value and setter.",[Symbol.for("rule_features")]:[]},messages:{invalidAssignment:"useState should be destructured into a value and setter pair, e.g., const [state, setState] = useState(...).",invalidSetterName:"The setter should be named 'set' followed by the capitalized state variable name, e.g., 'setState' for 'state'."},schema:[]},name:"use-state",create:function(e){return{CallExpression(t){if(!ED(t))return;if(t.parent.type!==_q.AST_NODE_TYPES.VariableDeclarator)return void e.report({messageId:"invalidAssignment",node:t});let n=EZ(t);if(n?.type!==_q.AST_NODE_TYPES.ArrayPattern)return void e.report({messageId:"invalidAssignment",node:n??t});let[r,i]=n.elements;if(null==r||null==i)return void e.report({messageId:"invalidAssignment",node:n});let a=ls.match(i).with({type:_q.AST_NODE_TYPES.Identifier},e=>e.name).otherwise(()=>null);if(null==a||!a.startsWith("set"))return void e.report({messageId:"invalidSetterName",node:i});let o=ls.match(r).with({type:_q.AST_NODE_TYPES.Identifier},({name:e})=>v8(e)).with({type:_q.AST_NODE_TYPES.ObjectPattern},({properties:e})=>e.reduce((e,t)=>t.type===_q.AST_NODE_TYPES.Property&&t.key.type===_q.AST_NODE_TYPES.Identifier?[...e,t.key.name]:e,[]).join("_")).otherwise(()=>null);null==o?e.report({messageId:"invalidSetterName",node:r}):v8(a)!==`set_${o}`&&e.report({messageId:"invalidSetterName",node:i})}}},defaultOptions:[]})}},{toFlatConfig:wH}=_g("react-naming-convention",wK);var wG={...wK,configs:{recommended:wH(wR)}},wX=Object.defineProperty,wQ=(e=>{let t={};for(var n in e)wX(t,n,{get:e[n],enumerable:!0});return t})({name:()=>wZ,rules:()=>w0,settings:()=>w1});let wZ="react-web-api/recommended",w0={"react-web-api/no-leaked-event-listener":"warn","react-web-api/no-leaked-interval":"warn","react-web-api/no-leaked-resize-observer":"warn","react-web-api/no-leaked-timeout":"warn"},w1={"react-x":_L},w2=h1.ESLintUtils.RuleCreator(function(e){return`${_h}/docs/rules/web-api-${e}`}),w3={capture:!1,signal:e};function w6(t,n){return function t(r){switch(r.type){case h1.AST_NODE_TYPES.Identifier:{let e=x5(x9(r,n),0);if(e?.type===h1.AST_NODE_TYPES.ObjectExpression)return t(e);return w3}case h1.AST_NODE_TYPES.Literal:return{...w3,capture:!!r.value};case h1.AST_NODE_TYPES.ObjectExpression:{let t=!!function(t,r=e=>!0){if(t?.type!==h1.AST_NODE_TYPES.Property)return e;let{value:i}=t,a=i;return r(a=i.type===h1.AST_NODE_TYPES.Literal?i.value:x4.getStaticValue(i,n)?.value)?a:e}(Ee("capture",r.properties,n)),i=Ee("signal",r.properties,n);return{capture:t,signal:i?.type===h1.AST_NODE_TYPES.Property?function t(n,r){if(null==n)return e;switch(n.type){case h1.AST_NODE_TYPES.Identifier:return t(x5(x9(n,r),0),r);case h1.AST_NODE_TYPES.MemberExpression:return n;default:return e}}(i.value,n):e}}default:return w3}}(t)}function w4(e){return e?.type===h1.AST_NODE_TYPES.NewExpression&&e.callee.type===h1.AST_NODE_TYPES.Identifier&&"ResizeObserver"===e.callee.name}function w8(e,t){switch(!0){case t.type===h1.AST_NODE_TYPES.Identifier:return w4(x5(x9(t,e.sourceCode.getScope(t)),0));case t.type===h1.AST_NODE_TYPES.MemberExpression:return w8(e,t.object);default:return!1}}let w5={meta:{name:"eslint-plugin-react-web-api",version:"2.3.4"},rules:{"no-leaked-event-listener":w2({meta:{type:"problem",docs:{description:"Prevents leaked `addEventListener` in a component or custom Hook.",[Symbol.for("rule_features")]:[]},messages:{expectedRemoveEventListenerInCleanup:"An 'addEventListener' in '{{effectMethodKind}}' should have a corresponding 'removeEventListener' in its cleanup function.",expectedRemoveEventListenerInUnmount:"An 'addEventListener' in 'componentDidMount' should have a corresponding 'removeEventListener' in 'componentWillUnmount' method.",unexpectedInlineFunction:"A/an '{{eventMethodKind}}' should not have an inline listener function."},schema:[]},name:"no-leaked-event-listener",create:function(e){if(!e.sourceCode.text.includes("addEventListener")||!/use\w*Effect|componentDidMount|componentWillUnmount/u.test(e.sourceCode.text))return{};let t=[],n=[],r=[],i=[];function a(e,t){return!0==(e.type===h1.AST_NODE_TYPES.MemberExpression&&t.type===h1.AST_NODE_TYPES.MemberExpression)&&xC(e.object,t.object)}function o(t,n,r){let i=t.arguments.at(1);xD(i)&&null==r.signal&&e.report({messageId:"unexpectedInlineFunction",node:i,data:{eventMethodKind:n}})}return{":function"(e){let n=kb(e)??"other";t.push({kind:n,node:e})},":function:exit"(){t.pop()},CallExpression(a){let s=t.findLast(e=>"other"!==e.kind)?.kind;null==s||ky.has(s)&&ls.match(function(e){switch(!0){case e.callee.type===h1.AST_NODE_TYPES.Identifier&&ls.isMatching(ls.P.union("addEventListener","removeEventListener","abort"))(e.callee.name):return e.callee.name;case e.callee.type===h1.AST_NODE_TYPES.MemberExpression&&e.callee.property.type===h1.AST_NODE_TYPES.Identifier&&ls.isMatching(ls.P.union("addEventListener","removeEventListener","abort"))(e.callee.property.name):return e.callee.property.name;default:return"other"}}(a)).with("addEventListener",t=>{let[r,i,l]=a.arguments;if(null==r||null==i)return;let c=null==l?w3:w6(l,e.sourceCode.getScope(l)),{callee:u}=a;o(a,t,c),n.push({...c,type:r,node:a,callee:u,listener:i,method:"addEventListener",phase:s})}).with("removeEventListener",t=>{let[n,i,l]=a.arguments;if(null==n||null==i)return;let c=null==l?w3:w6(l,e.sourceCode.getScope(l)),{callee:u}=a;o(a,t,c),r.push({...c,type:n,node:a,callee:u,listener:i,method:"removeEventListener",phase:s})}).with("abort",()=>{i.push(a.callee)}).otherwise(()=>null)},"Program:exit"(){for(let t of n){let n=t.signal;if(!(null!=n&&i.some(e=>a(e,n)))&&!r.some(n=>(function(t,n){let{type:r,callee:i,capture:o,listener:s,phase:l}=t,{type:c,callee:u,capture:_,listener:d,phase:p}=n;return!!kv(l,p)&&a(i,u)&&xC(s,d)&&Ei(r,c,[e.sourceCode.getScope(r),e.sourceCode.getScope(c)])&&o===_})(t,n)))switch(t.phase){case"setup":case"cleanup":e.report({messageId:"expectedRemoveEventListenerInCleanup",node:t.node,data:{effectMethodKind:"useEffect"}});continue;case"mount":case"unmount":e.report({messageId:"expectedRemoveEventListenerInUnmount",node:t.node});continue}}}}},defaultOptions:[]}),"no-leaked-interval":w2({meta:{type:"problem",docs:{description:"Prevents leaked `setInterval` in a component or custom Hook.",[Symbol.for("rule_features")]:[]},messages:{expectedClearIntervalInCleanup:"A 'setInterval' created in '{{ kind }}' must be cleared with 'clearInterval' in the cleanup function.",expectedClearIntervalInUnmount:"A 'setInterval' created in '{{ kind }}' must be cleared with 'clearInterval' in the 'componentWillUnmount' method.",expectedIntervalId:"A 'setInterval' must be assigned to a variable for proper cleanup."},schema:[]},name:"no-leaked-interval",create:function(e){if(!e.sourceCode.text.includes("setInterval"))return{};let t=[],n=[],r=[];return{":function"(e){let n=kb(e)??"other";t.push({kind:n,node:e})},":function:exit"(){t.pop()},CallExpression(i){switch(function(e){switch(!0){case e.callee.type===h1.AST_NODE_TYPES.Identifier&&ls.isMatching(ls.P.union("setInterval","clearInterval"))(e.callee.name):return e.callee.name;case e.callee.type===h1.AST_NODE_TYPES.MemberExpression&&e.callee.property.type===h1.AST_NODE_TYPES.Identifier&&ls.isMatching(ls.P.union("setInterval","clearInterval"))(e.callee.property.name):return e.callee.property.name;default:return"other"}}(i)){case"setInterval":{let r=t.findLast(e=>"other"!==e.kind);if(null==r||!ky.has(r.kind))break;let a=x8(i);if(null==a){e.report({messageId:"expectedIntervalId",node:i});break}n.push({kind:"interval",node:i,callee:i.callee,phase:r.kind,timerId:a});break}case"clearInterval":{let e=t.findLast(e=>"other"!==e.kind);if(null==e||!ky.has(e.kind))break;let[n]=i.arguments;if(null==n)break;r.push({kind:"interval",node:i,callee:i.callee,phase:e.kind,timerId:n})}}},"Program:exit"(){for(let t of n)if(!r.some(n=>E1(e,t.timerId,n.timerId)))switch(t.phase){case"setup":case"cleanup":e.report({messageId:"expectedClearIntervalInCleanup",node:t.node,data:{kind:"useEffect"}});continue;case"mount":case"unmount":e.report({messageId:"expectedClearIntervalInUnmount",node:t.node,data:{kind:"componentDidMount"}});continue}}}},defaultOptions:[]}),"no-leaked-resize-observer":w2({meta:{type:"problem",docs:{description:"Prevents leaked `ResizeObserver` in a component or custom Hook.",[Symbol.for("rule_features")]:[]},messages:{expectedDisconnectInControlFlow:"Dynamically added 'ResizeObserver.observe' should be cleared all at once using 'ResizeObserver.disconnect' in the cleanup function.",expectedDisconnectOrUnobserveInCleanup:"A 'ResizeObserver' instance created in 'useEffect' must be disconnected in the cleanup function.",unexpectedFloatingInstance:"A 'ResizeObserver' instance created in component or custom Hook must be assigned to a variable for proper cleanup."},schema:[]},name:"no-leaked-resize-observer",create:function(e){if(!e.sourceCode.text.includes("ResizeObserver"))return{};let t=[],n=[],r=[],i=[],a=[];return{":function"(e){let n=kb(e)??"other";t.push({kind:n,node:e})},":function:exit"(){t.pop()},CallExpression(n){if(n.callee.type!==h1.AST_NODE_TYPES.MemberExpression)return;let o=t.findLast(e=>"other"!==e.kind)?.kind;if(null==o||!ky.has(o))return;let{object:s}=n.callee;ls.match(function(e,t){switch(!0){case t.callee.type===h1.AST_NODE_TYPES.Identifier&&ls.isMatching(ls.P.union("observe","unobserve","disconnect"))(t.callee.name)&&w8(e,t.callee):return t.callee.name;case t.callee.type===h1.AST_NODE_TYPES.MemberExpression&&t.callee.property.type===h1.AST_NODE_TYPES.Identifier&&ls.isMatching(ls.P.union("observe","unobserve","disconnect"))(t.callee.property.name)&&w8(e,t.callee):return t.callee.property.name;default:return"other"}}(e,n)).with("disconnect",()=>{a.push({kind:"ResizeObserver",node:n,callee:n.callee,method:"disconnect",observer:s,phase:o})}).with("observe",()=>{let[e]=n.arguments;null!=e&&r.push({kind:"ResizeObserver",node:n,callee:n.callee,element:e,method:"observe",observer:s,phase:o})}).with("unobserve",()=>{let[e]=n.arguments;null!=e&&i.push({kind:"ResizeObserver",node:n,callee:n.callee,element:e,method:"unobserve",observer:s,phase:o})}).otherwise(()=>null)},NewExpression(r){let i=t.findLast(e=>"other"!==e.kind);if(null==i||!ky.has(i.kind)||!w4(r))return;let a=EZ(r);null==a?e.report({messageId:"unexpectedFloatingInstance",node:r}):n.push({id:a,node:r,phase:i.kind,phaseNode:i.node})},"Program:exit"(){for(let{id:t,node:o,phaseNode:s}of n){if(a.some(n=>E1(e,n.observer,t)))continue;let n=r.filter(n=>E1(e,n.observer,t)),l=i.filter(n=>E1(e,n.observer,t)),c=e=>e?.type===h1.AST_NODE_TYPES.CallExpression||xR(e),u=e=>e===s;if(n.some(e=>!u(xz(e.node,s5(c,u))))){e.report({messageId:"expectedDisconnectInControlFlow",node:o});continue}for(let t of n)l.some(n=>E1(e,n.element,t.element))||e.report({messageId:"expectedDisconnectOrUnobserveInCleanup",node:t.node})}}}},defaultOptions:[]}),"no-leaked-timeout":w2({meta:{type:"problem",docs:{description:"Prevents leaked `setTimeout` in a component or custom Hook.",[Symbol.for("rule_features")]:[]},messages:{expectedClearTimeoutInCleanup:"A 'setTimeout' created in '{{ kind }}' must be cleared with 'clearTimeout' in the cleanup function.",expectedClearTimeoutInUnmount:"A 'setTimeout' created in '{{ kind }}' must be cleared with 'clearTimeout' in the 'componentWillUnmount' method.",expectedTimeoutId:"A 'setTimeout' must be assigned to a variable for proper cleanup."},schema:[]},name:"no-leaked-timeout",create:function(e){if(!e.sourceCode.text.includes("setTimeout"))return{};let t=[],n=[],r=[];return{":function"(e){let n=kb(e)??"other";t.push({kind:n,node:e})},":function:exit"(){t.pop()},CallExpression(i){let a=t.findLast(e=>"other"!==e.kind);if(ky.has(a?.kind))switch(function(e){switch(!0){case e.callee.type===h1.AST_NODE_TYPES.Identifier&&ls.isMatching(ls.P.union("setTimeout","clearTimeout"))(e.callee.name):return e.callee.name;case e.callee.type===h1.AST_NODE_TYPES.MemberExpression&&e.callee.property.type===h1.AST_NODE_TYPES.Identifier&&ls.isMatching(ls.P.union("setTimeout","clearTimeout"))(e.callee.property.name):return e.callee.property.name;default:return"other"}}(i)){case"setTimeout":{let t=x8(i);if(null==t){e.report({messageId:"expectedTimeoutId",node:i});break}n.push({kind:"timeout",node:i,callee:i.callee,phase:a.kind,timerId:t});break}case"clearTimeout":{let[e]=i.arguments;if(null==e)break;r.push({kind:"timeout",node:i,callee:i.callee,phase:a.kind,timerId:e})}}},"Program:exit"(){for(let t of n)if(!r.some(n=>E1(e,t.timerId,n.timerId)))switch(t.phase){case"setup":case"cleanup":e.report({messageId:"expectedClearTimeoutInCleanup",node:t.node,data:{kind:"useEffect"}});continue;case"mount":case"unmount":e.report({messageId:"expectedClearTimeoutInUnmount",node:t.node,data:{kind:"componentDidMount"}});continue}}}},defaultOptions:[]})}},{toFlatConfig:w7}=_g("react-web-api",w5);var w9={...w5,configs:{recommended:w7(wQ)}},Ae=Object.defineProperty,At=e=>{let t={};for(var n in e)Ae(t,n,{get:e[n],enumerable:!0});return t};function An(e){let{polymorphicPropName:t}=_R(e);return{resolve(n){let r=Ez(e,n),i={domElementType:r,jsxElementType:r};if(r===r.toLowerCase()||null==t)return i;let a=EL(e,n)(t);if(null!=a){let n=EM(e,a).toStatic(t);if("string"==typeof n)return{...i,domElementType:n}}return i}}}let Ar=h1.ESLintUtils.RuleCreator(function(e){return`${_h}/docs/rules/dom-${e}`}),Ai="dangerouslySetInnerHTML";var Aa=Ar({meta:{type:"problem",docs:{description:"Disallow `dangerouslySetInnerHTML`.",[Symbol.for("rule_features")]:[]},messages:{noDangerouslySetInnerhtml:"Using 'dangerouslySetInnerHTML' may have security implications."},schema:[]},name:"no-dangerously-set-innerhtml",create:function(e){return e.sourceCode.text.includes(Ai)?{JSXElement(t){let n=EL(e,t)(Ai);null!=n&&e.report({messageId:"noDangerouslySetInnerhtml",node:n})}}:{}},defaultOptions:[]}),Ao=Ar({meta:{type:"problem",docs:{description:"Disallow `dangerouslySetInnerHTML` and `children` at the same time.",[Symbol.for("rule_features")]:[]},messages:{noDangerouslySetInnerhtmlWithChildren:"A DOM component cannot use both children and 'dangerouslySetInnerHTML'."},schema:[]},name:"no-dangerously-set-innerhtml-with-children",create:function(e){return e.sourceCode.text.includes(As)?{JSXElement(t){let n=EL(e,t);if(null==n(As))return;let r=n("children")??t.children.find(Al);null!=r&&e.report({messageId:"noDangerouslySetInnerhtmlWithChildren",node:r})}}:{}},defaultOptions:[]});let As="dangerouslySetInnerHTML";function Al(e){return!EV(e)||!(""===e.raw.trim()&&e.raw.includes("\n"))}var Ac=Ar({meta:{type:"problem",docs:{description:"Disallow `findDOMNode`.",[Symbol.for("rule_features")]:[]},messages:{noFindDomNode:"[Deprecated] Use alternatives instead."},schema:[]},name:"no-find-dom-node",create:function(e){return e.sourceCode.text.includes(Au)?{CallExpression(t){let{callee:n}=t;switch(n.type){case _q.AST_NODE_TYPES.Identifier:n.name===Au&&e.report({messageId:"noFindDomNode",node:t});return;case _q.AST_NODE_TYPES.MemberExpression:n.property.type===_q.AST_NODE_TYPES.Identifier&&n.property.name===Au&&e.report({messageId:"noFindDomNode",node:t});return}}}:{}},defaultOptions:[]});let Au="findDOMNode";var A_=Ar({meta:{type:"problem",docs:{description:"Disallow `flushSync`.",[Symbol.for("rule_features")]:[]},messages:{noFlushSync:"Using 'flushSync' is uncommon and can hurt the performance of your app."},schema:[]},name:"no-flush-sync",create:function(e){return e.sourceCode.text.includes(Ad)?{CallExpression(t){let{callee:n}=t;switch(n.type){case _q.AST_NODE_TYPES.Identifier:n.name===Ad&&e.report({messageId:"noFlushSync",node:t});return;case _q.AST_NODE_TYPES.MemberExpression:n.property.type===_q.AST_NODE_TYPES.Identifier&&n.property.name===Ad&&e.report({messageId:"noFlushSync",node:t});return}}}:{}},defaultOptions:[]});let Ad="flushSync";var Ap=Ar({meta:{type:"problem",docs:{description:"Replaces usages of `ReactDom.hydrate()` with `hydrateRoot()`.",[Symbol.for("rule_features")]:["MOD"]},fixable:"code",messages:{noHydrate:"[Deprecated] Use 'hydrateRoot()' instead."},schema:[]},name:"no-hydrate",create:function(e){if(!e.sourceCode.text.includes(Af)||kD(_R(e).version,"18.0.0","<"))return{};let t=new Set,n=new Set;return{CallExpression(r){switch(!0){case r.callee.type===_q.AST_NODE_TYPES.Identifier&&n.has(r.callee.name):case r.callee.type===_q.AST_NODE_TYPES.MemberExpression&&r.callee.object.type===_q.AST_NODE_TYPES.Identifier&&r.callee.property.type===_q.AST_NODE_TYPES.Identifier&&r.callee.property.name===Af&&t.has(r.callee.object.name):var i,a;e.report({messageId:"noHydrate",node:r,fix:(i=e,a=r,e=>{let[t,n]=a.arguments;return null==t||null==n?null:[e.insertTextBefore(i.sourceCode.ast,'import { hydrateRoot } from "react-dom/client";\n'),e.replaceText(a,`hydrateRoot(${i.sourceCode.getText(n)}, ${i.sourceCode.getText(t)})`)]})});return}},ImportDeclaration(e){let[r]=e.source.value.split("/");if("react-dom"===r)for(let r of e.specifiers)switch(r.type){case _q.AST_NODE_TYPES.ImportSpecifier:if(r.imported.type!==_q.AST_NODE_TYPES.Identifier)continue;r.imported.name===Af&&n.add(r.local.name);continue;case _q.AST_NODE_TYPES.ImportDefaultSpecifier:case _q.AST_NODE_TYPES.ImportNamespaceSpecifier:t.add(r.local.name);continue}}}},defaultOptions:[]});let Af="hydrate",Am=["button","submit","reset"];var Ag=Ar({meta:{type:"problem",docs:{description:"Enforces explicit `type` attribute for `button` elements.",[Symbol.for("rule_features")]:["FIX"]},hasSuggestions:!0,messages:{addButtonType:"Add 'type' attribute with value '{{type}}'.",noMissingButtonType:"Add missing 'type' attribute on 'button' component."},schema:[]},name:"no-missing-button-type",create:function(e){let t=An(e);return{JSXElement(n){"button"!==t.resolve(n).domElementType||null==EL(e,n)("type")&&e.report({messageId:"noMissingButtonType",node:n.openingElement,suggest:Am.map(e=>({messageId:"addButtonType",data:{type:e},fix:t=>t.insertTextAfter(n.openingElement.name,` type="${e}"`)}))})}}},defaultOptions:[]}),Ah=Ar({meta:{type:"problem",docs:{description:"Enforces explicit `sandbox` prop for `iframe` elements.",[Symbol.for("rule_features")]:["FIX"]},fixable:"code",hasSuggestions:!0,messages:{addIframeSandbox:"Add 'sandbox' prop with value '{{value}}'.",noMissingIframeSandbox:"Add missing 'sandbox' prop on 'iframe' component."},schema:[]},name:"no-missing-iframe-sandbox",create:function(e){let t=An(e);return{JSXElement(n){let{domElementType:r}=t.resolve(n);if("iframe"!==r)return;let i=EL(e,n)("sandbox");if(null==i)return void e.report({messageId:"noMissingIframeSandbox",node:n.openingElement,suggest:[{messageId:"addIframeSandbox",data:{value:""},fix:e=>e.insertTextAfter(n.openingElement.name,' sandbox=""')}]});let a=EM(e,i);"string"!=typeof a.toStatic("sandbox")&&e.report({messageId:"noMissingIframeSandbox",node:a.node??i,suggest:[{messageId:"addIframeSandbox",data:{value:""},fix:e=>a.kind.startsWith("spread")?null:e.replaceText(i,'sandbox=""')}]})}}},defaultOptions:[]}),Ay=Ar({meta:{type:"problem",docs:{description:"Enforces the absence of a `namespace` in React elements.",[Symbol.for("rule_features")]:[]},messages:{noNamespace:"A React component '{{name}}' must not be in a namespace, as React does not support them."},schema:[]},name:"no-namespace",create:function(e){return{JSXElement(t){let n=Ez(e,t);"string"==typeof n&&n.includes(":")&&e.report({messageId:"noNamespace",node:t.openingElement.name,data:{name:n}})}}},defaultOptions:[]}),Av=Ar({meta:{type:"problem",docs:{description:"Replaces usages of `ReactDom.render()` with `createRoot(node).render()`.",[Symbol.for("rule_features")]:["MOD"]},fixable:"code",messages:{noRender:"[Deprecated] Use 'createRoot(node).render()' instead."},schema:[]},name:"no-render",create:function(e){if(!e.sourceCode.text.includes("render")||kD(_R(e).version,"18.0.0","<"))return{};let t=new Set(["ReactDOM","ReactDom"]),n=new Set;return{CallExpression(r){switch(!0){case r.callee.type===_q.AST_NODE_TYPES.Identifier&&n.has(r.callee.name):case r.callee.type===_q.AST_NODE_TYPES.MemberExpression&&r.callee.object.type===_q.AST_NODE_TYPES.Identifier&&r.callee.property.type===_q.AST_NODE_TYPES.Identifier&&"render"===r.callee.property.name&&t.has(r.callee.object.name):var i,a;e.report({messageId:"noRender",node:r,fix:(i=e,a=r,e=>{let[t,n]=a.arguments;return null==t||null==n?null:[e.insertTextBefore(i.sourceCode.ast,'import { createRoot } from "react-dom/client";\n'),e.replaceText(a,`createRoot(${i.sourceCode.getText(n)}).render(${i.sourceCode.getText(t)})`)]})});return}},ImportDeclaration(e){let[r]=e.source.value.split("/");if("react-dom"===r)for(let r of e.specifiers)switch(r.type){case _q.AST_NODE_TYPES.ImportSpecifier:if(r.imported.type!==_q.AST_NODE_TYPES.Identifier)continue;"render"===r.imported.name&&n.add(r.local.name);continue;case _q.AST_NODE_TYPES.ImportDefaultSpecifier:case _q.AST_NODE_TYPES.ImportNamespaceSpecifier:t.add(r.local.name);continue}}}},defaultOptions:[]});let Ab=[_q.AST_NODE_TYPES.VariableDeclarator,_q.AST_NODE_TYPES.Property,_q.AST_NODE_TYPES.ReturnStatement,_q.AST_NODE_TYPES.ArrowFunctionExpression,_q.AST_NODE_TYPES.AssignmentExpression];var AT=Ar({meta:{type:"problem",docs:{description:"Disallow the return value of `ReactDOM.render`.",[Symbol.for("rule_features")]:[]},messages:{noRenderReturnValue:"Do not depend on the return value from 'ReactDOM.render'."},schema:[]},name:"no-render-return-value",create:function(e){let t=new Set(["ReactDOM","ReactDom"]),n=new Set;return{CallExpression(r){switch(!0){case r.callee.type===_q.AST_NODE_TYPES.Identifier&&n.has(r.callee.name)&&Ab.includes(r.parent.type):case r.callee.type===_q.AST_NODE_TYPES.MemberExpression&&r.callee.object.type===_q.AST_NODE_TYPES.Identifier&&r.callee.property.type===_q.AST_NODE_TYPES.Identifier&&"render"===r.callee.property.name&&t.has(r.callee.object.name)&&Ab.includes(r.parent.type):e.report({messageId:"noRenderReturnValue",node:r});return}},ImportDeclaration(e){let[r]=e.source.value.split("/");if("react-dom"===r)for(let r of e.specifiers)switch(r.type){case _q.AST_NODE_TYPES.ImportSpecifier:if(r.imported.type!==_q.AST_NODE_TYPES.Identifier)continue;"render"===r.imported.name&&n.add(r.local.name);continue;case _q.AST_NODE_TYPES.ImportDefaultSpecifier:case _q.AST_NODE_TYPES.ImportNamespaceSpecifier:t.add(r.local.name);continue}}}},defaultOptions:[]}),AS=Ar({meta:{type:"problem",docs:{description:"Disallow `javascript:` URLs as attribute values.",[Symbol.for("rule_features")]:[]},messages:{noScriptUrl:"Using a `javascript:` URL is a security risk and should be avoided."},schema:[]},name:"no-script-url",create:function(e){return{JSXAttribute(t){if(t.name.type!==_q.AST_NODE_TYPES.JSXIdentifier||null==t.value)return;let n=EM(e,t).toStatic();"string"==typeof n&&_x.test(n)&&e.report({messageId:"noScriptUrl",node:t.value})}}},defaultOptions:[]}),Ax=Ar({meta:{type:"problem",docs:{description:"Disallows the use of string style prop.",[Symbol.for("rule_features")]:[]},messages:{noStringStyleProp:"Do not use string style prop. Use an object instead."},schema:[]},name:"no-string-style-prop",create:function(e){return{JSXElement(t){if(!Eq(e,t))return;let n=EL(e,t)("style");if(null==n)return;let r=EM(e,n);"string"==typeof r.toStatic()&&e.report({messageId:"noStringStyleProp",node:r.node??n})}}},defaultOptions:[]});let AE=[],Ak={"accept-charset":"acceptCharset",class:"className",crossorigin:"crossOrigin",for:"htmlFor","http-equiv":"httpEquiv",nomodule:"noModule"},AP={"accent-height":"accentHeight","alignment-baseline":"alignmentBaseline","arabic-form":"arabicForm","baseline-shift":"baselineShift","cap-height":"capHeight","clip-path":"clipPath","clip-rule":"clipRule","color-interpolation":"colorInterpolation","color-interpolation-filters":"colorInterpolationFilters","color-profile":"colorProfile","color-rendering":"colorRendering","dominant-baseline":"dominantBaseline","enable-background":"enableBackground","fill-opacity":"fillOpacity","fill-rule":"fillRule","flood-color":"floodColor","flood-opacity":"floodOpacity","font-family":"fontFamily","font-size":"fontSize","font-size-adjust":"fontSizeAdjust","font-stretch":"fontStretch","font-style":"fontStyle","font-variant":"fontVariant","font-weight":"fontWeight","glyph-name":"glyphName","glyph-orientation-horizontal":"glyphOrientationHorizontal","glyph-orientation-vertical":"glyphOrientationVertical","horiz-adv-x":"horizAdvX","horiz-origin-x":"horizOriginX","image-rendering":"imageRendering","letter-spacing":"letterSpacing","lighting-color":"lightingColor","marker-end":"markerEnd","marker-mid":"markerMid","marker-start":"markerStart","overline-position":"overlinePosition","overline-thickness":"overlineThickness","paint-order":"paintOrder","panose-1":"panose1","pointer-events":"pointerEvents","rendering-intent":"renderingIntent","shape-rendering":"shapeRendering","stop-color":"stopColor","stop-opacity":"stopOpacity","strikethrough-position":"strikethroughPosition","strikethrough-thickness":"strikethroughThickness","stroke-dasharray":"strokeDasharray","stroke-dashoffset":"strokeDashoffset","stroke-linecap":"strokeLinecap","stroke-linejoin":"strokeLinejoin","stroke-miterlimit":"strokeMiterlimit","stroke-opacity":"strokeOpacity","stroke-width":"strokeWidth","text-anchor":"textAnchor","text-decoration":"textDecoration","text-rendering":"textRendering","underline-position":"underlinePosition","underline-thickness":"underlineThickness","unicode-bidi":"unicodeBidi","unicode-range":"unicodeRange","units-per-em":"unitsPerEm","v-alphabetic":"vAlphabetic","v-hanging":"vHanging","v-ideographic":"vIdeographic","v-mathematical":"vMathematical","vector-effect":"vectorEffect","vert-adv-y":"vertAdvY","vert-origin-x":"vertOriginX","vert-origin-y":"vertOriginY","word-spacing":"wordSpacing","writing-mode":"writingMode","x-height":"xHeight","xlink:actuate":"xlinkActuate","xlink:arcrole":"xlinkArcrole","xlink:href":"xlinkHref","xlink:role":"xlinkRole","xlink:show":"xlinkShow","xlink:title":"xlinkTitle","xlink:type":"xlinkType","xml:base":"xmlBase","xml:lang":"xmlLang","xml:space":"xmlSpace"},AC={as:["link"],abbr:["th","td"],align:["applet","caption","col","colgroup","hr","iframe","img","table","tbody","td","tfoot","th","thead","tr"],allowFullScreen:["iframe","video"],autoPictureInPicture:["video"],charset:["meta"],checked:["input"],controls:["audio","video"],controlsList:["audio","video"],crossOrigin:["script","img","video","audio","link","image"],disablePictureInPicture:["video"],disableRemotePlayback:["audio","video"],displaystyle:["math"],download:["a","area"],fill:["altGlyph","circle","ellipse","g","line","marker","mask","path","polygon","polyline","rect","svg","symbol","text","textPath","tref","tspan","use","animate","animateColor","animateMotion","animateTransform","set"],focusable:["svg"],imageSizes:["link"],imageSrcSet:["link"],loop:["audio","video"],mozAllowFullScreen:["iframe","video"],muted:["audio","video"],noModule:["script"],onAbort:["audio","video"],onCanPlay:["audio","video"],onCanPlayThrough:["audio","video"],onCancel:["dialog"],onClose:["dialog"],onDurationChange:["audio","video"],onEmptied:["audio","video"],onEncrypted:["audio","video"],onEnded:["audio","video"],onError:["audio","video","img","link","source","script","picture","iframe"],onLoad:["script","img","link","picture","iframe","object","source"],onLoadStart:["audio","video"],onLoadedData:["audio","video"],onLoadedMetadata:["audio","video"],onPause:["audio","video"],onPlay:["audio","video"],onPlaying:["audio","video"],onProgress:["audio","video"],onRateChange:["audio","video"],onResize:["audio","video"],onSeeked:["audio","video"],onSeeking:["audio","video"],onStalled:["audio","video"],onSuspend:["audio","video"],onTimeUpdate:["audio","video"],onVolumeChange:["audio","video"],onWaiting:["audio","video"],playsInline:["video"],poster:["video"],preload:["audio","video"],property:["meta"],returnValue:["dialog"],scrolling:["iframe"],valign:["tr","td","th","thead","tbody","tfoot","colgroup","col"],viewBox:["marker","pattern","svg","symbol","view"],webkitAllowFullScreen:["iframe","video"],webkitDirectory:["input"]},Aw=["dir","draggable","hidden","id","lang","nonce","part","slot","style","title","translate","inert","accept","action","allow","alt","as","async","buffered","capture","challenge","cite","code","cols","content","coords","csp","data","decoding","default","defer","disabled","form","headers","height","high","href","icon","importance","integrity","kind","label","language","loading","list","loop","low","manifest","max","media","method","min","multiple","muted","name","open","optimum","pattern","ping","placeholder","poster","preload","profile","rel","required","reversed","role","rows","sandbox","scope","seamless","selected","shape","size","sizes","span","src","start","step","summary","target","type","value","width","wmode","wrap","accumulate","additive","alphabetic","amplitude","ascent","azimuth","bbox","begin","bias","by","clip","color","cursor","cx","cy","d","decelerate","descent","direction","display","divisor","dur","dx","dy","elevation","end","exponent","fill","filter","format","from","fr","fx","fy","g1","g2","hanging","height","hreflang","ideographic","in","in2","intercept","k","k1","k2","k3","k4","kerning","local","mask","mode","offset","opacity","operator","order","orient","orientation","origin","overflow","path","ping","points","r","radius","rel","restart","result","rotate","rx","ry","scale","seed","slope","spacing","speed","stemh","stemv","string","stroke","to","transform","u1","u2","unicode","values","version","visibility","widths","x","x1","x2","xmlns","y","y1","y2","z","property","ref","key","children","results","security","controls"],AA=["accessKey","autoCapitalize","autoFocus","contentEditable","enterKeyHint","exportParts","inputMode","itemID","itemRef","itemProp","itemScope","itemType","spellCheck","tabIndex","acceptCharset","autoComplete","autoPlay","border","cellPadding","cellSpacing","classID","codeBase","colSpan","contextMenu","dateTime","encType","formAction","formEncType","formMethod","formNoValidate","formTarget","frameBorder","hrefLang","httpEquiv","imageSizes","imageSrcSet","isMap","keyParams","keyType","marginHeight","marginWidth","maxLength","mediaGroup","minLength","noValidate","onAnimationEnd","onAnimationIteration","onAnimationStart","onBlur","onChange","onClick","onContextMenu","onCopy","onCompositionEnd","onCompositionStart","onCompositionUpdate","onCut","onDoubleClick","onDrag","onDragEnd","onDragEnter","onDragExit","onDragLeave","onError","onFocus","onInput","onKeyDown","onKeyPress","onKeyUp","onLoad","onWheel","onDragOver","onDragStart","onDrop","onMouseDown","onMouseEnter","onMouseLeave","onMouseMove","onMouseOut","onMouseOver","onMouseUp","onPaste","onScroll","onSelect","onSubmit","onToggle","onTransitionEnd","radioGroup","readOnly","referrerPolicy","rowSpan","srcDoc","srcLang","srcSet","useMap","fetchPriority","crossOrigin","accentHeight","alignmentBaseline","arabicForm","attributeName","attributeType","baseFrequency","baselineShift","baseProfile","calcMode","capHeight","clipPathUnits","clipPath","clipRule","colorInterpolation","colorInterpolationFilters","colorProfile","colorRendering","contentScriptType","contentStyleType","diffuseConstant","dominantBaseline","edgeMode","enableBackground","fillOpacity","fillRule","filterRes","filterUnits","floodColor","floodOpacity","fontFamily","fontSize","fontSizeAdjust","fontStretch","fontStyle","fontVariant","fontWeight","glyphName","glyphOrientationHorizontal","glyphOrientationVertical","glyphRef","gradientTransform","gradientUnits","horizAdvX","horizOriginX","imageRendering","kernelMatrix","kernelUnitLength","keyPoints","keySplines","keyTimes","lengthAdjust","letterSpacing","lightingColor","limitingConeAngle","markerEnd","markerMid","markerStart","markerHeight","markerUnits","markerWidth","maskContentUnits","maskUnits","mathematical","numOctaves","overlinePosition","overlineThickness","panose1","paintOrder","pathLength","patternContentUnits","patternTransform","patternUnits","pointerEvents","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","referrerPolicy","refX","refY","rendering-intent","repeatCount","repeatDur","requiredExtensions","requiredFeatures","shapeRendering","specularConstant","specularExponent","spreadMethod","startOffset","stdDeviation","stitchTiles","stopColor","stopOpacity","strikethroughPosition","strikethroughThickness","strokeDasharray","strokeDashoffset","strokeLinecap","strokeLinejoin","strokeMiterlimit","strokeOpacity","strokeWidth","surfaceScale","systemLanguage","tableValues","targetX","targetY","textAnchor","textDecoration","textRendering","textLength","transformOrigin","underlinePosition","underlineThickness","unicodeBidi","unicodeRange","unitsPerEm","vAlphabetic","vHanging","vIdeographic","vMathematical","vectorEffect","vertAdvY","vertOriginX","vertOriginY","viewBox","viewTarget","wordSpacing","writingMode","xHeight","xChannelSelector","xlinkActuate","xlinkArcrole","xlinkHref","xlinkRole","xlinkShow","xlinkTitle","xlinkType","xmlBase","xmlLang","xmlnsXlink","xmlSpace","yChannelSelector","zoomAndPan","autoCorrect","autoSave","className","dangerouslySetInnerHTML","defaultValue","defaultChecked","htmlFor","onBeforeInput","onChange","onInvalid","onReset","onTouchCancel","onTouchEnd","onTouchMove","onTouchStart","suppressContentEditableWarning","suppressHydrationWarning","onAbort","onCanPlay","onCanPlayThrough","onDurationChange","onEmptied","onEncrypted","onEnded","onLoadedData","onLoadedMetadata","onLoadStart","onPause","onPlay","onPlaying","onProgress","onRateChange","onResize","onSeeked","onSeeking","onStalled","onSuspend","onTimeUpdate","onVolumeChange","onWaiting","onCopyCapture","onCutCapture","onPasteCapture","onCompositionEndCapture","onCompositionStartCapture","onCompositionUpdateCapture","onFocusCapture","onBlurCapture","onChangeCapture","onBeforeInputCapture","onInputCapture","onResetCapture","onSubmitCapture","onInvalidCapture","onLoadCapture","onErrorCapture","onKeyDownCapture","onKeyPressCapture","onKeyUpCapture","onAbortCapture","onCanPlayCapture","onCanPlayThroughCapture","onDurationChangeCapture","onEmptiedCapture","onEncryptedCapture","onEndedCapture","onLoadedDataCapture","onLoadedMetadataCapture","onLoadStartCapture","onPauseCapture","onPlayCapture","onPlayingCapture","onProgressCapture","onRateChangeCapture","onSeekedCapture","onSeekingCapture","onStalledCapture","onSuspendCapture","onTimeUpdateCapture","onVolumeChangeCapture","onWaitingCapture","onSelectCapture","onTouchCancelCapture","onTouchEndCapture","onTouchMoveCapture","onTouchStartCapture","onScrollCapture","onWheelCapture","onAnimationEndCapture","onAnimationIteration","onAnimationStartCapture","onTransitionEndCapture","onAuxClick","onAuxClickCapture","onClickCapture","onContextMenuCapture","onDoubleClickCapture","onDragCapture","onDragEndCapture","onDragEnterCapture","onDragExitCapture","onDragLeaveCapture","onDragOverCapture","onDragStartCapture","onDropCapture","onMouseDown","onMouseDownCapture","onMouseMoveCapture","onMouseOutCapture","onMouseOverCapture","onMouseUpCapture","autoPictureInPicture","controlsList","disablePictureInPicture","disableRemotePlayback"],AD=["charset","allowFullScreen","webkitAllowFullScreen","mozAllowFullScreen","webkitDirectory"],AN=["aria-atomic","aria-braillelabel","aria-brailleroledescription","aria-busy","aria-controls","aria-current","aria-describedby","aria-description","aria-details","aria-disabled","aria-dropeffect","aria-errormessage","aria-flowto","aria-grabbed","aria-haspopup","aria-hidden","aria-invalid","aria-keyshortcuts","aria-label","aria-labelledby","aria-live","aria-owns","aria-relevant","aria-roledescription","aria-autocomplete","aria-checked","aria-expanded","aria-level","aria-modal","aria-multiline","aria-multiselectable","aria-orientation","aria-placeholder","aria-pressed","aria-readonly","aria-required","aria-selected","aria-sort","aria-valuemax","aria-valuemin","aria-valuenow","aria-valuetext","aria-activedescendant","aria-colcount","aria-colindex","aria-colindextext","aria-colspan","aria-posinset","aria-rowcount","aria-rowindex","aria-rowindextext","aria-rowspan","aria-setsize"],AF=["onGotPointerCapture","onGotPointerCaptureCapture","onLostPointerCapture","onLostPointerCapture","onLostPointerCaptureCapture","onPointerCancel","onPointerCancelCapture","onPointerDown","onPointerDownCapture","onPointerEnter","onPointerEnterCapture","onPointerLeave","onPointerLeaveCapture","onPointerMove","onPointerMoveCapture","onPointerOut","onPointerOutCapture","onPointerOver","onPointerOverCapture","onPointerUp","onPointerUpCapture"],AO=["popover","popoverTarget","popoverTargetAction","onToggle","onBeforeToggle"];function AI(e,t){return Object.hasOwn(e,t)}function AL(e,t,n){let{version:r}=_R(e);return kD(r,n,t)}var AM=Ar({meta:{type:"problem",docs:{description:"Disallow unknown `DOM` property."},fixable:"code",messages:{dataLowercaseRequired:"React does not recognize data-* props with uppercase characters on a DOM element. Found '{{name}}', use '{{lowerCaseName}}' instead",invalidPropOnTag:"Invalid property '{{name}}' found on tag '{{tagName}}', but it is only allowed on: {{allowedTags}}",unknownProp:"Unknown property '{{name}}' found",unknownPropWithStandardName:"Unknown property '{{name}}' found, use '{{standardName}}' instead"},schema:[{type:"object",additionalProperties:!1,properties:{ignore:{type:"array",items:{type:"string"}},requireDataLowercase:{type:"boolean",default:!1}}}]},name:"no-unknown-property",create:function(e){return{JSXAttribute(t){var n;let r=e.options[0]?.ignore||AE,i=(n=t.name,e.sourceCode.getText(n));if(r.indexOf(i)>=0)return;let a=AD.find(e=>e.toLowerCase()===i.toLowerCase())||i;if(t.parent?.name&&"JSXMemberExpression"===t.parent.name.type)return;if(!/^data-xml/i.test(a)&&/^data-[^:]*$/.test(a)){e.options[0]&&void 0!==e.options[0].requireDataLowercase&&e.options[0].requireDataLowercase&&a.toLowerCase()!==a&&e.report({node:t,messageId:"dataLowercaseRequired",data:{name:i,lowerCaseName:i.toLowerCase()}});return}if(AN.some(e=>e===a))return;let o=t?.parent?.name?t.parent.name.name:null;if("fbt"===o||"fbs"===o||!/^[a-z][^-]*$/.test(t.parent.name.name)||t.parent.attributes.some(e=>"JSXAttribute"===e.type&&"JSXIdentifier"===e.name.type&&"is"===e.name.name))return;let s=AI(AC,a)?AC[a]:null;if(o&&s){-1===s.indexOf(o)&&e.report({node:t,messageId:"invalidPropOnTag",data:{name:i,allowedTags:s.join(", "),tagName:o}});return}let l=function(e,t){let n;return AI(Ak,e)?Ak[e]:AI(AP,e)?AP[e]:(n=AA.concat(Aw),AL(t,"<=","16.1.0")?n.push("allowTransparency"):(AL(t,">=","16.4.0")&&n.push(...AF),AL(t,">=","19.0.0-rc.0")?n.push(...AO):n.push(...AO.map(e=>e.toLowerCase()))),n).find(t=>t.toLowerCase()===e.toLowerCase())}(a,e),c=!!l&&l!==a;if(!l||l!==a){if(c)return void e.report({node:t,messageId:"unknownPropWithStandardName",data:{name:i,standardName:l},fix:e=>e.replaceText(t.name,l)});e.report({node:t,messageId:"unknownProp",data:{name:i}})}}}},defaultOptions:[]});let AR=["allow-scripts","allow-same-origin"];var Aj=Ar({meta:{type:"problem",docs:{description:"Enforces `sandbox` attribute for `iframe` elements is not set to unsafe combinations.",[Symbol.for("rule_features")]:[]},messages:{noUnsafeIframeSandbox:"Unsafe 'sandbox' attribute value on 'iframe' component."},schema:[]},name:"no-unsafe-iframe-sandbox",create:function(e){let t=An(e);return{JSXElement(n){var r;if("iframe"!==t.resolve(n).domElementType)return;let i=EL(e,n)("sandbox");if(null==i)return;let a=EM(e,i);"string"==typeof(r=a.toStatic("sandbox"))&&AR.every(e=>r.includes(e))&&e.report({messageId:"noUnsafeIframeSandbox",node:a.node??i})}}},defaultOptions:[]}),AY=Ar({meta:{type:"problem",docs:{description:'Disallow `target="_blank"` without `rel="noreferrer noopener"`.',[Symbol.for("rule_features")]:["FIX"]},fixable:"code",hasSuggestions:!0,messages:{addRelNoreferrerNoopener:"Add 'rel=\"noreferrer noopener\"' to the link to prevent security risks.",noUnsafeTargetBlank:"Using 'target=\"_blank\"' on an external link without 'rel=\"noreferrer noopener\"' is a security risk."},schema:[]},name:"no-unsafe-target-blank",create:function(e){let t=An(e);return{JSXElement(n){var r,i;let{domElementType:a}=t.resolve(n);if("a"!==a)return;let o=EL(e,n),s=o("target");if(null==s||"_blank"!==EM(e,s).toStatic("target"))return;let l=o("href");if(null==l||!("string"==typeof(r=EM(e,l).toStatic("href"))&&(r.startsWith("https://")||/^(?:\w+:|\/\/)/u.test(r))))return;let c=o("rel");null==c?e.report({messageId:"noUnsafeTargetBlank",node:n.openingElement,suggest:[{messageId:"addRelNoreferrerNoopener",fix:e=>e.insertTextAfter(n.openingElement.name,' rel="noreferrer noopener"')}]}):"string"==typeof(i=EM(e,c).toStatic("rel"))&&("noreferrer"===i||/\bnoreferrer\b/u.test(i))||e.report({messageId:"noUnsafeTargetBlank",node:c,suggest:[{messageId:"addRelNoreferrerNoopener",fix:e=>e.replaceText(c,'rel="noreferrer noopener"')}]})}}},defaultOptions:[]}),AU=Ar({meta:{type:"problem",docs:{description:"Replaces usages of `useFormState` with `useActionState`.",[Symbol.for("rule_features")]:["MOD"]},fixable:"code",messages:{noUseFormState:"[Deprecated] Use 'useActionState' from 'react' package instead."},schema:[]},name:"no-use-form-state",create:function(e){if(!e.sourceCode.text.includes("useFormState")||kD(_R(e).version,"19.0.0","<"))return{};let t=new Set,n=new Set;return{CallExpression(r){switch(!0){case r.callee.type===_q.AST_NODE_TYPES.Identifier&&n.has(r.callee.name):case r.callee.type===_q.AST_NODE_TYPES.MemberExpression&&r.callee.object.type===_q.AST_NODE_TYPES.Identifier&&r.callee.property.type===_q.AST_NODE_TYPES.Identifier&&"useFormState"===r.callee.property.name&&t.has(r.callee.object.name):e.report({messageId:"noUseFormState",node:r,fix:function(e,t){let{importSource:n}=_R(e);return r=>[r.insertTextBefore(e.sourceCode.ast,`import { useActionState } from "${n}";
|
|
399
|
+
${l} ${u} from ${c}${o}`)}})}}},defaultOptions:[]}),CQ=PS({meta:{type:"problem",docs:{description:"Enforces read-only props in components.",[Symbol.for("rule_features")]:["TSC","EXP"]},messages:{preferReadOnlyProps:"A function component's props should be read-only."},schema:[]},name:"prefer-read-only-props",create:function(e){let t=h1.ESLintUtils.getParserServices(e,!1),{ctx:n,listeners:r}=ke(e);return{...r,"Program:exit"(r){for(let[,i]of n.getAllComponents(r)){if(null==i.id||null==i.name)continue;let[n]=i.node.params;null!=n&&!function(e,t){if(k5.isTypeReadonly(e.program,t))return!0;try{let n=function(e,t,n=[{type:{from:"lib",name:"Map"},to:sy.Mutable},{type:{from:"lib",name:"Set"},to:sy.Mutable},{type:{from:"lib",name:"Date"},to:sy.Mutable},{type:{from:"lib",name:"URL"},to:sy.Mutable},{type:{from:"lib",name:"URLSearchParams"},to:sy.Mutable}],r=!0,i=sy.Immutable,a=function(e,t,n,r,i=[]){var a,o,s,l;let c;if(0===r.length)return!1;let u=!1,_=function(e,t){if(null===t){let t="target"in e?e.target:e;return t.aliasSymbol?.getName()??null}return yf.isTypeAliasDeclaration(t.parent)?t.parent.name.getText():null}(t,n);if(null!==_){let e=e=>"string"==typeof e?e===_:e.test(_);if(i.some(e))return!1;u||=r.some(e)}let d=(a=e,o=t,null===(s=n)?a.getTypeChecker().typeToString(o,void 0,yf.TypeFormatFlags.AddUndefined|yf.TypeFormatFlags.NoTruncation|yf.TypeFormatFlags.OmitParameterModifiers|yf.TypeFormatFlags.UseFullyQualifiedType|yf.TypeFormatFlags.WriteArrayAsGenericType|yf.TypeFormatFlags.WriteArrowStyleSignature|yf.TypeFormatFlags.WriteTypeArgumentsOfSignature):s.getText()),p=e=>"string"==typeof e?e===d:e.test(d);if(i.some(p))return!1;u||=r.some(p);let f=(l=d,c=/^([^<]+)<.+>$/u.exec(l),c?.[1]??null);if(null!==f){let e=e=>"string"==typeof e?e===f:e.test(f);if(i.some(e))return!1;u||=r.some(e)}if(e.getTypeChecker().isArrayType(t)&&null!==n)if(yf.isTypeOperatorNode(n)&&n.operator===yf.SyntaxKind.ReadonlyKeyword||yf.isTypeOperatorNode(n.parent)&&n.parent.operator===yf.SyntaxKind.ReadonlyKeyword){let e=e=>"string"==typeof e&&"ReadonlyArray"===e;if(i.some(e))return!1;u||=r.some(e)}else{let e=e=>"string"==typeof e&&"Array"===e;if(i.some(e))return!1;u||=r.some(e)}return u}){let o=Object.hasOwn(t,"kind"),s=o?e.getTypeChecker().getTypeFromTypeNode(t):t;return function(e,t,n,r,i,a){let o,s=!0===r?Pd:!1===r?new WeakMap:r,l={program:e,overrides:n,cache:s,immutabilityLimits:{min:sy.Mutable,max:i},typeMatchesPatternSpecifier:a},c=[Pp(t)],u=sy.Unknown;do{switch((o=c.pop()).stage){case 0:!function(e,t,n){var r,i,a,o,s,l,c,u;let _,d,p=(r=e.program,i=e.cache,a=n.typeData,_=r.getTypeChecker(),d=a.typeNode??_.getRecursionIdentity(a.type),i.get(d));if(void 0!==p){n.immutability=p;return}let f=(o=n.typeData,e.overrides.find(t=>{var n,r,i;return n=e.program,r=t.type,i=e.typeMatchesPatternSpecifier,!vl(o.type)&&("string"==typeof r||r instanceof RegExp?Pu(n,r,o,i):function(e,t,n){var r,i,a,o,s,l,c;let[u,_]=function(e){let t=e.getSymbol()?.getDeclarations()??[],n=t.map(e=>e.getSourceFile());return[t,n]}(n);switch(t.from){case"lib":return Pn(e,_);case"package":return r=e,i=u,a=_,o=t.package,(Pr(i,o)||Pi(r,a,o))&&!Pn(e,_);case"file":return function(e,t,n){let r=e.getCurrentDirectory(),i=yf.getEffectiveTypeRoots(e.getCompilerOptions(),e),a=void 0===i?t:t.filter(e=>!i.some(t=>e.path.startsWith(t)));return void 0===n?a.some(e=>!e.path.includes("/node_modules/")):a.some(e=>{let t=function(e){let t=sJ.normalize(e),n=t.endsWith(sJ.sep)?t.slice(0,-1):t;return void 0===yf.sys||yf.sys.useCaseSensitiveFileNames?n:n.toLowerCase()}(e.path);return t.startsWith(r)&&(Pt.isMatch(t,n)||Pt.isMatch(`./${sJ.relative(r,t)}`,n))})}(e,_,t.path)&&!Pn(e,_)&&(s=e,l=u,c=_,!(Pr(l,void 0)||Pi(s,c,void 0)))}}(n,r,o.type)&&Pu(n,r,o,i))}));if(f?.to!==void 0){if(void 0===f.from){n.immutability=f.to,Pc(e.program,e.cache,n.typeData,n.immutability);return}t.push({taskState:n,override:f,stage:6})}if(Pc(e.program,e.cache,n.typeData,n.immutability),vm(n.typeData.type))return function(e,t){let n=t.typeData.type.types.map((e,n)=>Pp(Pl(e,null!==t.typeData.typeNode&&yf.isUnionTypeNode(t.typeData.typeNode)?t.typeData.typeNode.types[n]:void 0)));e.push(Pf(t,n,Pa),...n)}(t,n);if(vp(n.typeData.type)){return l=e,c=t,u=n,Ph(l,c,u)}if(v_(n.typeData.type))return function(e,t,n){let r=e.program.getTypeChecker(),i=[n.typeData.type.root.node.trueType,n.typeData.type.root.node.falseType].map(e=>Pp(Pl(r.getTypeFromTypeNode(e),e)));t.push(Pf(n,i,Pa),...i)}(e,t,n);if((s=n.typeData.type).getCallSignatures().length>0&&0===s.getProperties().length)return n.immutability=sy.Immutable;let m=e.program.getTypeChecker();m.isTupleType(n.typeData.type)?function(e,t,n){if(!n.typeData.type.target.readonly){n.immutability=sy.Mutable;return}Pg(e,t,n)}(e,t,n):m.isArrayType(n.typeData.type)?Pg(e,t,n):vf(n.typeData.type)?Ph(e,t,n):n.immutability=sy.Immutable}(l,c,o);break;case 1:var _,d=o;d.immutability=d.children[0].immutability;for(let e=1;e<d.children.length;e++)d.immutability=d.childrenReducer(d.immutability,d.children[e].immutability);break;case 3:!function(e,t){e.push(Pm(t,()=>{t.stage=4,e.push(t)})),Py(e,t)}(c,o);break;case 4:!function(e,t,n){let[r,i]=vp(n.typeData.type)?[n.typeData.type.types,n.typeData.typeNode?.types]:[[n.typeData.type],null===n.typeData.typeNode?void 0:[n.typeData.typeNode]];t.push(Pm(n,()=>{n.stage=7,n.immutability=Po(n.limits.min,n.limits.max),t.push(n)}),Pm(n,()=>{let a=r.flatMap((t,r)=>Pv(e,n,yf.IndexKind.Number,Pl(t,i?.[r])));a.length>0&&t.push(Pf(n,a,Po),...a)}));let a=r.flatMap((t,r)=>Pv(e,n,yf.IndexKind.String,Pl(t,i?.[r])));a.length>0&&t.push(Pf(n,a,Po),...a)}(l,c,o);break;case 6:((_=o).override.from<=_.taskState.immutability&&_.taskState.immutability<=_.override.to||_.override.from>=_.taskState.immutability&&_.taskState.immutability>=_.override.to)&&(_.taskState.immutability=_.override.to),o=o.taskState;break;case 5:(function(e,t){if(t!==sy.Calculating&&(e.taskState.limits.max=Pa(e.taskState.limits.max,t),e.taskState.limits.min>=e.taskState.limits.max)){e.taskState.immutability=e.taskState.limits.min;return}e.notDoneAction()})(o,u),o=o.taskState}o.immutability!==sy.Calculating&&(Pc(e,s,o.typeData,o.immutability),u=o.immutability)}while(c.length>0);return o.immutability===sy.Calculating?sy.Unknown:o.immutability}(e,Pl(s,o?t:void 0),n,r,i,a)}(e.program,t);return Ps(n)||n>=sy.Immutable||n>=sy.ReadonlyShallow||n>=sy.ReadonlyDeep}catch{return!0}}(t,k5.getConstrainedTypeAtLocation(t,n))&&e.report({messageId:"preferReadOnlyProps",node:n})}}}},defaultOptions:[]});let CZ=["Boolean","String","Number"];var C0=PS({meta:{type:"problem",docs:{description:"Enforces function calls made inside `useState` to be wrapped in an `initializer function`.",[Symbol.for("rule_features")]:["EXP"]},messages:{preferUseStateLazyInitialization:"To prevent re-computation, consider using lazy initial state for useState calls that involve function calls. Ex: 'useState(() => getValue())'."},schema:[]},name:"prefer-use-state-lazy-initialization",create:function(e){return{CallExpression(t){if(!ED(t))return;let[n]=t.arguments;if(null!=n){for(let t of xW(n))!("name"in t.callee)||CZ.includes(t.callee.name)||null==xz(t,EP)&&e.report({messageId:"preferUseStateLazyInitialization",node:t});for(let t of xK(n))!("name"in t.callee)||ES(t.callee.name)||CZ.includes(t.callee.name)||null==xz(t,EP)&&e.report({messageId:"preferUseStateLazyInitialization",node:t})}}}},defaultOptions:[]});let C1="no-forbidden-props",C2=v6(C1),C3=[{forbid:[{prop:"/_/"}]}],C6={meta:{name:"eslint-plugin-react-x",version:"2.3.5"},rules:{"jsx-dollar":PY,"jsx-key-before-spread":PU,"jsx-no-comment-textnodes":PB,"jsx-no-duplicate-props":PV,"jsx-no-iife":PJ,"jsx-no-undef":Pz,"jsx-shorthand-boolean":P$,"jsx-shorthand-fragment":PK,"jsx-uses-react":PH,"jsx-uses-vars":PX,"no-access-state-in-setstate":PQ,"no-array-index-key":P0,"no-children-count":P1,"no-children-for-each":P2,"no-children-map":P3,"no-children-only":P6,"no-children-prop":P4,"no-children-to-array":P8,"no-class-component":P5,"no-clone-element":P7,"no-component-will-mount":P9,"no-component-will-receive-props":Ce,"no-component-will-update":Ct,"no-context-provider":Cn,"no-create-ref":Cr,"no-default-props":Ci,"no-direct-mutation-state":Co,"no-duplicate-key":Cs,"no-forward-ref":Cl,"no-implicit-key":Cc,"no-leaked-conditional-rendering":Cu,"no-missing-component-display-name":C_,"no-missing-context-display-name":Cd,"no-missing-key":Cp,"no-misused-capture-owner-stack":Cf,"no-nested-component-definitions":Cg,"no-nested-lazy-component-declarations":Ch,"no-prop-types":Cy,"no-redundant-should-component-update":Cv,"no-set-state-in-component-did-mount":Cb,"no-set-state-in-component-did-update":CT,"no-set-state-in-component-will-update":CS,"no-string-refs":Cx,"no-unnecessary-key":CE,"no-unnecessary-use-callback":CP,"no-unnecessary-use-memo":CC,"no-unnecessary-use-prefix":CA,"no-unsafe-component-will-mount":CD,"no-unsafe-component-will-receive-props":CN,"no-unsafe-component-will-update":CF,"no-unstable-context-value":CO,"no-unstable-default-props":CI,"no-unused-class-component-members":CR,"no-unused-props":Cj,"no-unused-state":CV,"no-use-context":CJ,"no-useless-forward-ref":Cz,"no-useless-fragment":C$,"prefer-destructuring-assignment":CG,"prefer-namespace-import":CX,"prefer-read-only-props":CQ,"prefer-use-state-lazy-initialization":C0,"no-forbidden-props":PS({meta:{type:"problem",defaultOptions:[...C3],deprecated:{deprecatedSince:"2.3.2",message:"This rule is deprecated and will be removed in future versions.",replacedBy:[{rule:{name:"no-restricted-syntax",url:"https://eslint.org/docs/latest/rules/no-restricted-syntax"}}]},docs:{description:"Disallow certain props on components."},messages:{[C2]:'Prop "{{name}}" is forbidden.'},schema:[{type:"object",additionalProperties:!1,properties:{forbid:{type:"array",items:{anyOf:[{type:"string"},{type:"object",additionalProperties:!1,properties:{excludedNodes:{type:"array",items:{type:"string"},uniqueItems:!0},prop:{type:"string"}},required:["prop"]},{type:"object",additionalProperties:!1,properties:{includedNodes:{type:"array",items:{type:"string"},uniqueItems:!0},prop:{type:"string"}},required:["prop"]}]}}}}]},name:C1,create:function(e,[t]){let{forbid:n=[{prop:"/_/"}]}=t;return{JSXOpeningElement(t){let r=null;for(let i of(t.name.type===_q.AST_NODE_TYPES.JSXIdentifier?r=t.name.name:t.name.type===_q.AST_NODE_TYPES.JSXNamespacedName&&(r=t.name.name.name),t.attributes)){if(i.type===_q.AST_NODE_TYPES.JSXSpreadAttribute)continue;let t=i.name.name;if("string"==typeof t)for(let a of n)!("string"!=typeof a&&null!=r&&("excludedNodes"in a&&a.excludedNodes.includes(r)||"includedNodes"in a&&!a.includedNodes.includes(r)))&&_F("string"==typeof a?a:a.prop).test(t)&&e.report({messageId:C2,node:i,data:{name:t}})}}}},defaultOptions:C3})}};var C4=PT({name:()=>C8,plugins:()=>C7,rules:()=>C5,settings:()=>C9});let C8="react-x/recommended",C5={"react-x/jsx-key-before-spread":"warn","react-x/jsx-no-comment-textnodes":"warn","react-x/jsx-no-duplicate-props":"warn","react-x/jsx-uses-react":"warn","react-x/jsx-uses-vars":"warn","react-x/no-access-state-in-setstate":"error","react-x/no-array-index-key":"warn","react-x/no-children-count":"warn","react-x/no-children-for-each":"warn","react-x/no-children-map":"warn","react-x/no-children-only":"warn","react-x/no-children-to-array":"warn","react-x/no-clone-element":"warn","react-x/no-component-will-mount":"error","react-x/no-component-will-receive-props":"error","react-x/no-component-will-update":"error","react-x/no-context-provider":"warn","react-x/no-create-ref":"error","react-x/no-default-props":"error","react-x/no-direct-mutation-state":"error","react-x/no-duplicate-key":"error","react-x/no-forward-ref":"warn","react-x/no-implicit-key":"warn","react-x/no-missing-key":"error","react-x/no-nested-component-definitions":"error","react-x/no-nested-lazy-component-declarations":"error","react-x/no-prop-types":"error","react-x/no-redundant-should-component-update":"error","react-x/no-set-state-in-component-did-mount":"warn","react-x/no-set-state-in-component-did-update":"warn","react-x/no-set-state-in-component-will-update":"warn","react-x/no-string-refs":"error","react-x/no-unnecessary-use-prefix":"warn","react-x/no-unsafe-component-will-mount":"warn","react-x/no-unsafe-component-will-receive-props":"warn","react-x/no-unsafe-component-will-update":"warn","react-x/no-use-context":"warn","react-x/no-useless-forward-ref":"warn","react-x/prefer-use-state-lazy-initialization":"warn"},C7={"react-x":C6},C9={"react-x":_L},we={"react-x/jsx-no-duplicate-props":"off","react-x/jsx-no-undef":"off","react-x/jsx-uses-react":"off","react-x/jsx-uses-vars":"off"};var wt=PT({name:()=>wn,plugins:()=>wi,rules:()=>wr,settings:()=>wa});let wn="react-x/recommended-typescript",wr={...C5,...we},wi={...C7},wa={...C9};var wo=PT({name:()=>ws,plugins:()=>wc,rules:()=>wl,settings:()=>wu});let ws="react-x/recommended-type-checked",wl={...wr,"react-x/no-leaked-conditional-rendering":"error"},wc={...wi},wu={...wa};var w_=PT({name:()=>wd,plugins:()=>wf,rules:()=>wp,settings:()=>wm});let wd="react-x/strict",wp={...C5,"react-x/jsx-no-iife":"error","react-x/no-children-prop":"error","react-x/no-class-component":"error","react-x/no-misused-capture-owner-stack":"error","react-x/no-unnecessary-key":"warn","react-x/no-unnecessary-use-callback":"warn","react-x/no-unnecessary-use-memo":"warn","react-x/no-unstable-context-value":"warn","react-x/no-unstable-default-props":"warn","react-x/no-unused-class-component-members":"warn","react-x/no-unused-state":"warn","react-x/no-useless-fragment":"warn","react-x/prefer-destructuring-assignment":"warn"},wf={...C7},wm={...C9};var wg=PT({name:()=>wh,plugins:()=>wv,rules:()=>wy,settings:()=>wb});let wh="react-x/strict-typescript",wy={...wp,...we},wv={...wf},wb={...wm};var wT=PT({name:()=>wS,plugins:()=>wE,rules:()=>wx,settings:()=>wk});let wS="react-x/strict-type-checked",wx={...wy,"react-x/no-leaked-conditional-rendering":"error","react-x/no-unused-props":"warn"},wE={...wv},wk={...wb},{toFlatConfig:wP}=_g("react-x",C6);var wC={...C6,configs:{recommended:wP(C4),"recommended-typescript":wP(wt),"recommended-type-checked":wP(wo),strict:wP(w_),"strict-typescript":wP(wg),"strict-type-checked":wP(wT)}},ww=Object.defineProperty,wA=(e=>{let t={};for(var n in e)ww(t,n,{get:e[n],enumerable:!0});return t})({name:()=>wD,rules:()=>wN});let wD="react-hooks-extra/recommended",wN={"react-hooks-extra/no-direct-set-state-in-use-effect":"warn"};function wF(e){if(e.type!==_q.AST_NODE_TYPES.VariableDeclarator||e.id.type!==_q.AST_NODE_TYPES.Identifier)return!1;var t=e.init;if(t?.type!==_q.AST_NODE_TYPES.CallExpression)return!1;switch(t.callee.type){case _q.AST_NODE_TYPES.Identifier:return ES(t.callee.name);case _q.AST_NODE_TYPES.MemberExpression:return t.callee.property.type===_q.AST_NODE_TYPES.Identifier&&ES(t.callee.property.name);default:return!1}}let wO={meta:{name:"eslint-plugin-react-hooks-extra",version:"2.3.5"},rules:{"no-direct-set-state-in-use-effect":h1.ESLintUtils.RuleCreator(function(e){return`${_h}/docs/rules/hooks-extra-${e}`})({meta:{type:"problem",docs:{description:"Disallow direct calls to the `set` function of `useState` in `useEffect`.",[Symbol.for("rule_features")]:["EXP"]},messages:{noDirectSetStateInUseEffect:"Do not call the 'set' function '{{name}}' of 'useState' directly in 'useEffect'."},schema:[]},name:"no-direct-set-state-in-use-effect",create:function(e){if(!/use\w*Effect/u.test(e.sourceCode.text))return{};let t=[],n={current:null},r=[],i=[],a=new WeakMap,o=new WeakMap,s=new Map,l=new WeakMap,c=t=>e.sourceCode.getText(t);function u(e){return e.type===_q.AST_NODE_TYPES.CallExpression?xB(e.callee,c):xB(e,c)}function _(t,n){let r=x5(x9(t,e.sourceCode.getScope(t)),0);if(null==r||r.type!==_q.AST_NODE_TYPES.CallExpression||!ED(r))return!1;let i=r.parent;return!("id"in i)||i.id?.type!==_q.AST_NODE_TYPES.ArrayPattern||i.id.elements.findIndex(e=>e?.type===_q.AST_NODE_TYPES.Identifier&&e.name===t.name)===n}function d(t){switch(t.callee.type){case _q.AST_NODE_TYPES.CallExpression:{let{callee:n}=t.callee;if(n.type!==_q.AST_NODE_TYPES.MemberExpression||!("name"in n.object))return!1;let r=n.property.type===_q.AST_NODE_TYPES.Identifier&&"at"===n.property.name,[i]=t.callee.arguments;if(!r||null==i)return!1;return x4.getStaticValue(i,e.sourceCode.getScope(t))?.value===1&&_(n.object)}case _q.AST_NODE_TYPES.Identifier:return _(t.callee,1);case _q.AST_NODE_TYPES.MemberExpression:{if(!("name"in t.callee.object))return!1;let n=t.callee.property;return x4.getStaticValue(n,e.sourceCode.getScope(t))?.value===1&&_(t.callee.object,1)}default:return!1}}return{":function"(e){let r=function(e){let t=xz(e,e=>!xj(e))??e.parent;switch(!0){case e.async:case t.type===_q.AST_NODE_TYPES.CallExpression&&x1(t):return"deferred";case e.type!==_q.AST_NODE_TYPES.FunctionDeclaration&&t.type===_q.AST_NODE_TYPES.CallExpression&&t.callee===e:return"immediate";case e.parent?.type===_q.AST_NODE_TYPES.CallExpression&&e.parent.callee!==e&&Ek(e.parent):return"setup";default:return"other"}}(e);t.push({kind:r,node:e}),"setup"===r&&(n.current=e)},":function:exit"(e){let{kind:r}=t.at(-1)??{};"setup"===r&&n.current===e&&(n.current=null),t.pop()},CallExpression(o){let s=n.current,c=t.at(-1);null!=c&&!c.node.async&&ls.match(ls.match(o).when(ED,()=>"useState").when(Ek,()=>"useEffect").when(d,()=>"setState").when(x1,()=>"then").otherwise(()=>"other")).with("setState",()=>{switch(!0){case"deferred"===c.kind:case c.node.async:break;case c.node===s:case"immediate"===c.kind&&xz(c.node,xD)===s:e.report({messageId:"noDirectSetStateInUseEffect",node:o,data:{name:e.sourceCode.getText(o.callee)}});return;default:{let e=xz(o,wF)?.init;null==e?la(a,c.node,()=>[]).push(o):la(l,e,()=>[]).push(o)}}}).with("useEffect",()=>{xD(o.arguments.at(0))||r.push(...function e(t){let n=[];if(t.type===_q.AST_NODE_TYPES.Identifier&&n.push(t),"arguments"in t){let r=t.arguments.map(e).flat(1);n.push(...r)}if("elements"in t){let r=t.elements.filter(e=>null!=e).map(e).flat(1);n.push(...r)}if("properties"in t){let r=t.properties.map(e).flat(1);n.push(...r)}if("expressions"in t){let r=t.expressions.map(e).flat(1);n.push(...r)}if("left"in t){let r=e(t.left);n.push(...r)}if("right"in t){let r=e(t.right);n.push(...r)}if(t.type===_q.AST_NODE_TYPES.Property){let r=e(t.value);n.push(...r)}if(t.type===_q.AST_NODE_TYPES.SpreadElement){let r=e(t.argument);n.push(...r)}if(t.type===_q.AST_NODE_TYPES.MemberExpression){let r=e(t.object);n.push(...r)}if(t.type===_q.AST_NODE_TYPES.UnaryExpression){let r=e(t.argument);n.push(...r)}if(t.type===_q.AST_NODE_TYPES.ChainExpression){let r=e(t.expression);n.push(...r)}if(t.type===_q.AST_NODE_TYPES.TSNonNullExpression){let r=e(t.expression);n.push(...r)}if(t.type===_q.AST_NODE_TYPES.TSAsExpression){let r=e(t.expression);n.push(...r)}if(t.type===_q.AST_NODE_TYPES.TSSatisfiesExpression){let r=e(t.expression);n.push(...r)}return n}(o))}).with("other",()=>{c.node===s&&i.push(o)}).otherwise(lt)},Identifier(e){if((e.parent.type!==_q.AST_NODE_TYPES.CallExpression||e.parent.callee!==e)&&_(e,1))switch(e.parent.type){case _q.AST_NODE_TYPES.ArrowFunctionExpression:{let t=e.parent.parent;if(t.type!==_q.AST_NODE_TYPES.CallExpression||!EA(t))break;let n=xz(t,wF)?.init;null!=n&&la(o,n,()=>[]).push(e);break}case _q.AST_NODE_TYPES.CallExpression:if(e!==e.parent.arguments.at(0))break;if(EC(e.parent)){let t=xz(e.parent,wF)?.init;null!=t&&la(o,t,()=>[]).push(e);break}Ek(e.parent)&&la(s,e.parent,()=>[]).push(e)}},"Program:exit"(){let t=(e,t)=>{let n=x5(x9(e,t),0);switch(n?.type){case _q.AST_NODE_TYPES.ArrowFunctionExpression:case _q.AST_NODE_TYPES.FunctionDeclaration:case _q.AST_NODE_TYPES.FunctionExpression:return a.get(n)??[];case _q.AST_NODE_TYPES.CallExpression:return l.get(n)??o.get(n)??[]}return[]};for(let[,t]of s)for(let n of t)e.report({messageId:"noDirectSetStateInUseEffect",node:n,data:{name:n.name}});for(let{callee:n}of i){if(!("name"in n))continue;let{name:r}=n;for(let i of t(r,e.sourceCode.getScope(n)))e.report({messageId:"noDirectSetStateInUseEffect",node:i,data:{name:u(i)}})}for(let n of r)for(let r of t(n.name,e.sourceCode.getScope(n)))e.report({messageId:"noDirectSetStateInUseEffect",node:r,data:{name:u(r)}})}}},defaultOptions:[]})}},{toFlatConfig:wI}=_g("react-hooks-extra",wO);var wL={...wO,configs:{recommended:wI(wA)}},wM=Object.defineProperty,wR=(e=>{let t={};for(var n in e)wM(t,n,{get:e[n],enumerable:!0});return t})({name:()=>wj,rules:()=>wY});let wj="react-naming-convention/recommended",wY={"react-naming-convention/context-name":"warn","react-naming-convention/use-state":"warn"},wU=h1.ESLintUtils.RuleCreator(function(e){return`${_h}/docs/rules/naming-convention-${e}`}),wB=[{allowAllCaps:!1,excepts:[],rule:"PascalCase"}];var wV=wU({meta:{type:"problem",defaultOptions:[...wB],docs:{description:"Enforces naming conventions for components."},messages:{invalidComponentName:"A component name '{{name}}' does not match {{rule}}."},schema:[{anyOf:[{type:"string",enum:["PascalCase","CONSTANT_CASE"]},{type:"object",additionalProperties:!1,properties:{allowAllCaps:{type:"boolean"},excepts:{type:"array",items:{type:"string",format:"regex"}},rule:{type:"string",enum:["PascalCase","CONSTANT_CASE"]}}}]}]},name:"component-name",create:function(e){let t,n,r=(t=e.options[0],n=wB[0],null==t?n:{...n,..."string"==typeof t?{rule:t}:{...t,excepts:t.excepts?.map(e=>_F(e))??[]}}),{rule:i}=r,a=ke(e),o=kn();return{...a.listeners,...o.listeners,"Program:exit"(t){let n=a.ctx.getAllComponents(t),s=o.ctx.getAllComponents(t);for(let{node:t}of n.values()){let n=xH(t);if(n?.name==null)continue;let a=n.name;wJ(a,r)||e.report({messageId:"invalidComponentName",node:n,data:{name:a,rule:i}})}for(let{node:t}of s.values()){let n=xP(t);if(n?.name==null)continue;let a=n.name;wJ(a,r)||e.report({messageId:"invalidComponentName",node:n,data:{name:a,rule:i}})}}}},defaultOptions:wB});function wJ(e,t){if(null==e||t.excepts.some(t=>t.test(e)))return!0;let n=e.split(".").at(-1)??e;switch(t.rule){case"CONSTANT_CASE":return _S.test(n);case"PascalCase":if(n.length>3&&/^[A-Z]+$/u.test(n))return t.allowAllCaps;return _y.test(n)}}var wz=wU({meta:{type:"problem",docs:{description:"Enforces context name to be a valid component name with the suffix `Context`."},messages:{invalidContextName:"A context name must be a valid component name with the suffix 'Context'."},schema:[]},name:"context-name",create:function(e){return e.sourceCode.text.includes("createContext")?{CallExpression(t){if(!Eg(e,t))return;let n=EZ(t);if(null==n)return;let r=ls.match(n).with({type:_q.AST_NODE_TYPES.Identifier,name:ls.P.select()},s9).with({type:_q.AST_NODE_TYPES.MemberExpression,property:{name:ls.P.select(ls.P.string)}},s9).otherwise(()=>null);null!=r&&_A.test(r)&&r.endsWith("Context")||e.report({messageId:"invalidContextName",node:n})}}:{}},defaultOptions:[]});let wq=[{excepts:["index",String.raw`/^_/`,String.raw`/^\$/`,String.raw`/^[0-9]+$/`,String.raw`/^\[[^\]]+\]$/`],rule:"PascalCase"}];var w$=wU({meta:{type:"problem",defaultOptions:[...wq],docs:{description:"Enforces consistent file naming conventions."},messages:{empty:"A file must have non-empty name.",invalidCase:"A file with name '{{name}}' does not match {{rule}}. Rename it to '{{suggestion}}'."},schema:[{anyOf:[{type:"string",enum:["PascalCase","camelCase","kebab-case","snake_case"]},{type:"object",additionalProperties:!1,properties:{excepts:{type:"array",items:{type:"string",format:"regex"}},extensions:{type:"array",items:{type:"string"},uniqueItems:!0},rule:{type:"string",enum:["PascalCase","camelCase","kebab-case","snake_case"]}}}]}]},name:"filename",create:function(e){let t=e.options[0]??wq[0],n="string"==typeof t?t:t.rule??"PascalCase",r="string"==typeof t?[]:(t.excepts??[]).map(e=>_F(e));return{Program(t){let[i="",...a]=sk.basename(e.filename).split(".");0===i.length?e.report({messageId:"empty",node:t}):!function(e,t=n,i=r){if(i.some(t=>t.test(e)))return!0;let a=e.match(/[\w.-]/gu)?.join("")??"";return 0===a.length||ls.match(t).with("PascalCase",()=>_y.test(a)).with("camelCase",()=>_v.test(a)).with("kebab-case",()=>_b.test(a)).with("snake_case",()=>_T.test(a)).exhaustive()}(i)&&e.report({messageId:"invalidCase",node:t,data:{name:e.filename,rule:n,suggestion:[function(e,t=n){return ls.match(t).with("PascalCase",()=>v3(e)).with("camelCase",()=>v6(e)).with("kebab-case",()=>vX(v4(v2(e),"-"))).with("snake_case",()=>v8(e)).exhaustive()}(i),...a].join(".")}})}}},defaultOptions:wq});let wW=[{allow:"as-needed",extensions:[".jsx",".tsx"],ignoreFilesWithoutCode:!1}],wK={meta:{name:"eslint-plugin-react-naming-convention",version:"2.3.5"},rules:{"component-name":wV,"context-name":wz,filename:w$,"filename-extension":wU({meta:{type:"problem",defaultOptions:[...wW],docs:{description:"Enforces consistent file naming conventions."},messages:{missingJSXExtension:"Use {{extensions}} file extension for JSX files.",unnecessaryJSXExtension:"Do not use {{extensions}} file extension for files without JSX."},schema:[{anyOf:[{type:"string",enum:["always","as-needed"]},{type:"object",additionalProperties:!1,properties:{allow:{type:"string",enum:["always","as-needed"]},extensions:{type:"array",items:{type:"string"},uniqueItems:!0},ignoreFilesWithoutCode:{type:"boolean"}}}]}]},name:"filename-extension",create:function(e){let t=e.options[0]??wW[0],n=s7(t)?t.allow:t,r=s7(t)&&"extensions"in t?t.extensions:wW[0].extensions,i=r.map(e=>`'${e}'`).join(", "),a=e.filename,o=!1;return{JSXElement(){o=!0},JSXFragment(){o=!0},"Program:exit"(s){let l=a.slice(a.lastIndexOf(".")),c=r.includes(l);if(o&&!c)return void e.report({messageId:"missingJSXExtension",node:s,data:{extensions:i}});let u=s.body.length>0,_=s7(t)&&!0===t.ignoreFilesWithoutCode;(u||!_)&&!o&&c&&"as-needed"===n&&e.report({messageId:"unnecessaryJSXExtension",node:s,data:{extensions:i}})}}},defaultOptions:wW}),"use-state":wU({meta:{type:"problem",docs:{description:"Enforces destructuring and symmetric naming of `useState` hook value and setter.",[Symbol.for("rule_features")]:[]},messages:{invalidAssignment:"useState should be destructured into a value and setter pair, e.g., const [state, setState] = useState(...).",invalidSetterName:"The setter should be named 'set' followed by the capitalized state variable name, e.g., 'setState' for 'state'."},schema:[]},name:"use-state",create:function(e){return{CallExpression(t){if(!ED(t))return;if(t.parent.type!==_q.AST_NODE_TYPES.VariableDeclarator)return void e.report({messageId:"invalidAssignment",node:t});let n=EZ(t);if(n?.type!==_q.AST_NODE_TYPES.ArrayPattern)return void e.report({messageId:"invalidAssignment",node:n??t});let[r,i]=n.elements;if(null==r||null==i)return void e.report({messageId:"invalidAssignment",node:n});let a=ls.match(i).with({type:_q.AST_NODE_TYPES.Identifier},e=>e.name).otherwise(()=>null);if(null==a||!a.startsWith("set"))return void e.report({messageId:"invalidSetterName",node:i});let o=ls.match(r).with({type:_q.AST_NODE_TYPES.Identifier},({name:e})=>v8(e)).with({type:_q.AST_NODE_TYPES.ObjectPattern},({properties:e})=>e.reduce((e,t)=>t.type===_q.AST_NODE_TYPES.Property&&t.key.type===_q.AST_NODE_TYPES.Identifier?[...e,t.key.name]:e,[]).join("_")).otherwise(()=>null);null==o?e.report({messageId:"invalidSetterName",node:r}):v8(a)!==`set_${o}`&&e.report({messageId:"invalidSetterName",node:i})}}},defaultOptions:[]})}},{toFlatConfig:wH}=_g("react-naming-convention",wK);var wG={...wK,configs:{recommended:wH(wR)}},wX=Object.defineProperty,wQ=(e=>{let t={};for(var n in e)wX(t,n,{get:e[n],enumerable:!0});return t})({name:()=>wZ,rules:()=>w0,settings:()=>w1});let wZ="react-web-api/recommended",w0={"react-web-api/no-leaked-event-listener":"warn","react-web-api/no-leaked-interval":"warn","react-web-api/no-leaked-resize-observer":"warn","react-web-api/no-leaked-timeout":"warn"},w1={"react-x":_L},w2=h1.ESLintUtils.RuleCreator(function(e){return`${_h}/docs/rules/web-api-${e}`}),w3={capture:!1,signal:e};function w6(t,n){return function t(r){switch(r.type){case h1.AST_NODE_TYPES.Identifier:{let e=x5(x9(r,n),0);if(e?.type===h1.AST_NODE_TYPES.ObjectExpression)return t(e);return w3}case h1.AST_NODE_TYPES.Literal:return{...w3,capture:!!r.value};case h1.AST_NODE_TYPES.ObjectExpression:{let t=!!function(t,r=e=>!0){if(t?.type!==h1.AST_NODE_TYPES.Property)return e;let{value:i}=t,a=i;return r(a=i.type===h1.AST_NODE_TYPES.Literal?i.value:x4.getStaticValue(i,n)?.value)?a:e}(Ee("capture",r.properties,n)),i=Ee("signal",r.properties,n);return{capture:t,signal:i?.type===h1.AST_NODE_TYPES.Property?function t(n,r){if(null==n)return e;switch(n.type){case h1.AST_NODE_TYPES.Identifier:return t(x5(x9(n,r),0),r);case h1.AST_NODE_TYPES.MemberExpression:return n;default:return e}}(i.value,n):e}}default:return w3}}(t)}function w4(e){return e?.type===h1.AST_NODE_TYPES.NewExpression&&e.callee.type===h1.AST_NODE_TYPES.Identifier&&"ResizeObserver"===e.callee.name}function w8(e,t){switch(!0){case t.type===h1.AST_NODE_TYPES.Identifier:return w4(x5(x9(t,e.sourceCode.getScope(t)),0));case t.type===h1.AST_NODE_TYPES.MemberExpression:return w8(e,t.object);default:return!1}}let w5={meta:{name:"eslint-plugin-react-web-api",version:"2.3.5"},rules:{"no-leaked-event-listener":w2({meta:{type:"problem",docs:{description:"Prevents leaked `addEventListener` in a component or custom Hook.",[Symbol.for("rule_features")]:[]},messages:{expectedRemoveEventListenerInCleanup:"An 'addEventListener' in '{{effectMethodKind}}' should have a corresponding 'removeEventListener' in its cleanup function.",expectedRemoveEventListenerInUnmount:"An 'addEventListener' in 'componentDidMount' should have a corresponding 'removeEventListener' in 'componentWillUnmount' method.",unexpectedInlineFunction:"A/an '{{eventMethodKind}}' should not have an inline listener function."},schema:[]},name:"no-leaked-event-listener",create:function(e){if(!e.sourceCode.text.includes("addEventListener")||!/use\w*Effect|componentDidMount|componentWillUnmount/u.test(e.sourceCode.text))return{};let t=[],n=[],r=[],i=[];function a(e,t){return!0==(e.type===h1.AST_NODE_TYPES.MemberExpression&&t.type===h1.AST_NODE_TYPES.MemberExpression)&&xC(e.object,t.object)}function o(t,n,r){let i=t.arguments.at(1);xD(i)&&null==r.signal&&e.report({messageId:"unexpectedInlineFunction",node:i,data:{eventMethodKind:n}})}return{":function"(e){let n=kb(e)??"other";t.push({kind:n,node:e})},":function:exit"(){t.pop()},CallExpression(a){let s=t.findLast(e=>"other"!==e.kind)?.kind;null==s||ky.has(s)&&ls.match(function(e){switch(!0){case e.callee.type===h1.AST_NODE_TYPES.Identifier&&ls.isMatching(ls.P.union("addEventListener","removeEventListener","abort"))(e.callee.name):return e.callee.name;case e.callee.type===h1.AST_NODE_TYPES.MemberExpression&&e.callee.property.type===h1.AST_NODE_TYPES.Identifier&&ls.isMatching(ls.P.union("addEventListener","removeEventListener","abort"))(e.callee.property.name):return e.callee.property.name;default:return"other"}}(a)).with("addEventListener",t=>{let[r,i,l]=a.arguments;if(null==r||null==i)return;let c=null==l?w3:w6(l,e.sourceCode.getScope(l)),{callee:u}=a;o(a,t,c),n.push({...c,type:r,node:a,callee:u,listener:i,method:"addEventListener",phase:s})}).with("removeEventListener",t=>{let[n,i,l]=a.arguments;if(null==n||null==i)return;let c=null==l?w3:w6(l,e.sourceCode.getScope(l)),{callee:u}=a;o(a,t,c),r.push({...c,type:n,node:a,callee:u,listener:i,method:"removeEventListener",phase:s})}).with("abort",()=>{i.push(a.callee)}).otherwise(()=>null)},"Program:exit"(){for(let t of n){let n=t.signal;if(!(null!=n&&i.some(e=>a(e,n)))&&!r.some(n=>(function(t,n){let{type:r,callee:i,capture:o,listener:s,phase:l}=t,{type:c,callee:u,capture:_,listener:d,phase:p}=n;return!!kv(l,p)&&a(i,u)&&xC(s,d)&&Ei(r,c,[e.sourceCode.getScope(r),e.sourceCode.getScope(c)])&&o===_})(t,n)))switch(t.phase){case"setup":case"cleanup":e.report({messageId:"expectedRemoveEventListenerInCleanup",node:t.node,data:{effectMethodKind:"useEffect"}});continue;case"mount":case"unmount":e.report({messageId:"expectedRemoveEventListenerInUnmount",node:t.node});continue}}}}},defaultOptions:[]}),"no-leaked-interval":w2({meta:{type:"problem",docs:{description:"Prevents leaked `setInterval` in a component or custom Hook.",[Symbol.for("rule_features")]:[]},messages:{expectedClearIntervalInCleanup:"A 'setInterval' created in '{{ kind }}' must be cleared with 'clearInterval' in the cleanup function.",expectedClearIntervalInUnmount:"A 'setInterval' created in '{{ kind }}' must be cleared with 'clearInterval' in the 'componentWillUnmount' method.",expectedIntervalId:"A 'setInterval' must be assigned to a variable for proper cleanup."},schema:[]},name:"no-leaked-interval",create:function(e){if(!e.sourceCode.text.includes("setInterval"))return{};let t=[],n=[],r=[];return{":function"(e){let n=kb(e)??"other";t.push({kind:n,node:e})},":function:exit"(){t.pop()},CallExpression(i){switch(function(e){switch(!0){case e.callee.type===h1.AST_NODE_TYPES.Identifier&&ls.isMatching(ls.P.union("setInterval","clearInterval"))(e.callee.name):return e.callee.name;case e.callee.type===h1.AST_NODE_TYPES.MemberExpression&&e.callee.property.type===h1.AST_NODE_TYPES.Identifier&&ls.isMatching(ls.P.union("setInterval","clearInterval"))(e.callee.property.name):return e.callee.property.name;default:return"other"}}(i)){case"setInterval":{let r=t.findLast(e=>"other"!==e.kind);if(null==r||!ky.has(r.kind))break;let a=x8(i);if(null==a){e.report({messageId:"expectedIntervalId",node:i});break}n.push({kind:"interval",node:i,callee:i.callee,phase:r.kind,timerId:a});break}case"clearInterval":{let e=t.findLast(e=>"other"!==e.kind);if(null==e||!ky.has(e.kind))break;let[n]=i.arguments;if(null==n)break;r.push({kind:"interval",node:i,callee:i.callee,phase:e.kind,timerId:n})}}},"Program:exit"(){for(let t of n)if(!r.some(n=>E1(e,t.timerId,n.timerId)))switch(t.phase){case"setup":case"cleanup":e.report({messageId:"expectedClearIntervalInCleanup",node:t.node,data:{kind:"useEffect"}});continue;case"mount":case"unmount":e.report({messageId:"expectedClearIntervalInUnmount",node:t.node,data:{kind:"componentDidMount"}});continue}}}},defaultOptions:[]}),"no-leaked-resize-observer":w2({meta:{type:"problem",docs:{description:"Prevents leaked `ResizeObserver` in a component or custom Hook.",[Symbol.for("rule_features")]:[]},messages:{expectedDisconnectInControlFlow:"Dynamically added 'ResizeObserver.observe' should be cleared all at once using 'ResizeObserver.disconnect' in the cleanup function.",expectedDisconnectOrUnobserveInCleanup:"A 'ResizeObserver' instance created in 'useEffect' must be disconnected in the cleanup function.",unexpectedFloatingInstance:"A 'ResizeObserver' instance created in component or custom Hook must be assigned to a variable for proper cleanup."},schema:[]},name:"no-leaked-resize-observer",create:function(e){if(!e.sourceCode.text.includes("ResizeObserver"))return{};let t=[],n=[],r=[],i=[],a=[];return{":function"(e){let n=kb(e)??"other";t.push({kind:n,node:e})},":function:exit"(){t.pop()},CallExpression(n){if(n.callee.type!==h1.AST_NODE_TYPES.MemberExpression)return;let o=t.findLast(e=>"other"!==e.kind)?.kind;if(null==o||!ky.has(o))return;let{object:s}=n.callee;ls.match(function(e,t){switch(!0){case t.callee.type===h1.AST_NODE_TYPES.Identifier&&ls.isMatching(ls.P.union("observe","unobserve","disconnect"))(t.callee.name)&&w8(e,t.callee):return t.callee.name;case t.callee.type===h1.AST_NODE_TYPES.MemberExpression&&t.callee.property.type===h1.AST_NODE_TYPES.Identifier&&ls.isMatching(ls.P.union("observe","unobserve","disconnect"))(t.callee.property.name)&&w8(e,t.callee):return t.callee.property.name;default:return"other"}}(e,n)).with("disconnect",()=>{a.push({kind:"ResizeObserver",node:n,callee:n.callee,method:"disconnect",observer:s,phase:o})}).with("observe",()=>{let[e]=n.arguments;null!=e&&r.push({kind:"ResizeObserver",node:n,callee:n.callee,element:e,method:"observe",observer:s,phase:o})}).with("unobserve",()=>{let[e]=n.arguments;null!=e&&i.push({kind:"ResizeObserver",node:n,callee:n.callee,element:e,method:"unobserve",observer:s,phase:o})}).otherwise(()=>null)},NewExpression(r){let i=t.findLast(e=>"other"!==e.kind);if(null==i||!ky.has(i.kind)||!w4(r))return;let a=EZ(r);null==a?e.report({messageId:"unexpectedFloatingInstance",node:r}):n.push({id:a,node:r,phase:i.kind,phaseNode:i.node})},"Program:exit"(){for(let{id:t,node:o,phaseNode:s}of n){if(a.some(n=>E1(e,n.observer,t)))continue;let n=r.filter(n=>E1(e,n.observer,t)),l=i.filter(n=>E1(e,n.observer,t)),c=e=>e?.type===h1.AST_NODE_TYPES.CallExpression||xR(e),u=e=>e===s;if(n.some(e=>!u(xz(e.node,s5(c,u))))){e.report({messageId:"expectedDisconnectInControlFlow",node:o});continue}for(let t of n)l.some(n=>E1(e,n.element,t.element))||e.report({messageId:"expectedDisconnectOrUnobserveInCleanup",node:t.node})}}}},defaultOptions:[]}),"no-leaked-timeout":w2({meta:{type:"problem",docs:{description:"Prevents leaked `setTimeout` in a component or custom Hook.",[Symbol.for("rule_features")]:[]},messages:{expectedClearTimeoutInCleanup:"A 'setTimeout' created in '{{ kind }}' must be cleared with 'clearTimeout' in the cleanup function.",expectedClearTimeoutInUnmount:"A 'setTimeout' created in '{{ kind }}' must be cleared with 'clearTimeout' in the 'componentWillUnmount' method.",expectedTimeoutId:"A 'setTimeout' must be assigned to a variable for proper cleanup."},schema:[]},name:"no-leaked-timeout",create:function(e){if(!e.sourceCode.text.includes("setTimeout"))return{};let t=[],n=[],r=[];return{":function"(e){let n=kb(e)??"other";t.push({kind:n,node:e})},":function:exit"(){t.pop()},CallExpression(i){let a=t.findLast(e=>"other"!==e.kind);if(ky.has(a?.kind))switch(function(e){switch(!0){case e.callee.type===h1.AST_NODE_TYPES.Identifier&&ls.isMatching(ls.P.union("setTimeout","clearTimeout"))(e.callee.name):return e.callee.name;case e.callee.type===h1.AST_NODE_TYPES.MemberExpression&&e.callee.property.type===h1.AST_NODE_TYPES.Identifier&&ls.isMatching(ls.P.union("setTimeout","clearTimeout"))(e.callee.property.name):return e.callee.property.name;default:return"other"}}(i)){case"setTimeout":{let t=x8(i);if(null==t){e.report({messageId:"expectedTimeoutId",node:i});break}n.push({kind:"timeout",node:i,callee:i.callee,phase:a.kind,timerId:t});break}case"clearTimeout":{let[e]=i.arguments;if(null==e)break;r.push({kind:"timeout",node:i,callee:i.callee,phase:a.kind,timerId:e})}}},"Program:exit"(){for(let t of n)if(!r.some(n=>E1(e,t.timerId,n.timerId)))switch(t.phase){case"setup":case"cleanup":e.report({messageId:"expectedClearTimeoutInCleanup",node:t.node,data:{kind:"useEffect"}});continue;case"mount":case"unmount":e.report({messageId:"expectedClearTimeoutInUnmount",node:t.node,data:{kind:"componentDidMount"}});continue}}}},defaultOptions:[]})}},{toFlatConfig:w7}=_g("react-web-api",w5);var w9={...w5,configs:{recommended:w7(wQ)}},Ae=Object.defineProperty,At=e=>{let t={};for(var n in e)Ae(t,n,{get:e[n],enumerable:!0});return t};function An(e){let{polymorphicPropName:t}=_R(e);return{resolve(n){let r=Ez(e,n),i={domElementType:r,jsxElementType:r};if(r===r.toLowerCase()||null==t)return i;let a=EL(e,n)(t);if(null!=a){let n=EM(e,a).toStatic(t);if("string"==typeof n)return{...i,domElementType:n}}return i}}}let Ar=h1.ESLintUtils.RuleCreator(function(e){return`${_h}/docs/rules/dom-${e}`}),Ai="dangerouslySetInnerHTML";var Aa=Ar({meta:{type:"problem",docs:{description:"Disallow `dangerouslySetInnerHTML`.",[Symbol.for("rule_features")]:[]},messages:{noDangerouslySetInnerhtml:"Using 'dangerouslySetInnerHTML' may have security implications."},schema:[]},name:"no-dangerously-set-innerhtml",create:function(e){return e.sourceCode.text.includes(Ai)?{JSXElement(t){let n=EL(e,t)(Ai);null!=n&&e.report({messageId:"noDangerouslySetInnerhtml",node:n})}}:{}},defaultOptions:[]}),Ao=Ar({meta:{type:"problem",docs:{description:"Disallow `dangerouslySetInnerHTML` and `children` at the same time.",[Symbol.for("rule_features")]:[]},messages:{noDangerouslySetInnerhtmlWithChildren:"A DOM component cannot use both children and 'dangerouslySetInnerHTML'."},schema:[]},name:"no-dangerously-set-innerhtml-with-children",create:function(e){return e.sourceCode.text.includes(As)?{JSXElement(t){let n=EL(e,t);if(null==n(As))return;let r=n("children")??t.children.find(Al);null!=r&&e.report({messageId:"noDangerouslySetInnerhtmlWithChildren",node:r})}}:{}},defaultOptions:[]});let As="dangerouslySetInnerHTML";function Al(e){return!EV(e)||!(""===e.raw.trim()&&e.raw.includes("\n"))}var Ac=Ar({meta:{type:"problem",docs:{description:"Disallow `findDOMNode`.",[Symbol.for("rule_features")]:[]},messages:{noFindDomNode:"[Deprecated] Use alternatives instead."},schema:[]},name:"no-find-dom-node",create:function(e){return e.sourceCode.text.includes(Au)?{CallExpression(t){let{callee:n}=t;switch(n.type){case _q.AST_NODE_TYPES.Identifier:n.name===Au&&e.report({messageId:"noFindDomNode",node:t});return;case _q.AST_NODE_TYPES.MemberExpression:n.property.type===_q.AST_NODE_TYPES.Identifier&&n.property.name===Au&&e.report({messageId:"noFindDomNode",node:t});return}}}:{}},defaultOptions:[]});let Au="findDOMNode";var A_=Ar({meta:{type:"problem",docs:{description:"Disallow `flushSync`.",[Symbol.for("rule_features")]:[]},messages:{noFlushSync:"Using 'flushSync' is uncommon and can hurt the performance of your app."},schema:[]},name:"no-flush-sync",create:function(e){return e.sourceCode.text.includes(Ad)?{CallExpression(t){let{callee:n}=t;switch(n.type){case _q.AST_NODE_TYPES.Identifier:n.name===Ad&&e.report({messageId:"noFlushSync",node:t});return;case _q.AST_NODE_TYPES.MemberExpression:n.property.type===_q.AST_NODE_TYPES.Identifier&&n.property.name===Ad&&e.report({messageId:"noFlushSync",node:t});return}}}:{}},defaultOptions:[]});let Ad="flushSync";var Ap=Ar({meta:{type:"problem",docs:{description:"Replaces usages of `ReactDom.hydrate()` with `hydrateRoot()`.",[Symbol.for("rule_features")]:["MOD"]},fixable:"code",messages:{noHydrate:"[Deprecated] Use 'hydrateRoot()' instead."},schema:[]},name:"no-hydrate",create:function(e){if(!e.sourceCode.text.includes(Af)||kD(_R(e).version,"18.0.0","<"))return{};let t=new Set,n=new Set;return{CallExpression(r){switch(!0){case r.callee.type===_q.AST_NODE_TYPES.Identifier&&n.has(r.callee.name):case r.callee.type===_q.AST_NODE_TYPES.MemberExpression&&r.callee.object.type===_q.AST_NODE_TYPES.Identifier&&r.callee.property.type===_q.AST_NODE_TYPES.Identifier&&r.callee.property.name===Af&&t.has(r.callee.object.name):var i,a;e.report({messageId:"noHydrate",node:r,fix:(i=e,a=r,e=>{let[t,n]=a.arguments;return null==t||null==n?null:[e.insertTextBefore(i.sourceCode.ast,'import { hydrateRoot } from "react-dom/client";\n'),e.replaceText(a,`hydrateRoot(${i.sourceCode.getText(n)}, ${i.sourceCode.getText(t)})`)]})});return}},ImportDeclaration(e){let[r]=e.source.value.split("/");if("react-dom"===r)for(let r of e.specifiers)switch(r.type){case _q.AST_NODE_TYPES.ImportSpecifier:if(r.imported.type!==_q.AST_NODE_TYPES.Identifier)continue;r.imported.name===Af&&n.add(r.local.name);continue;case _q.AST_NODE_TYPES.ImportDefaultSpecifier:case _q.AST_NODE_TYPES.ImportNamespaceSpecifier:t.add(r.local.name);continue}}}},defaultOptions:[]});let Af="hydrate",Am=["button","submit","reset"];var Ag=Ar({meta:{type:"problem",docs:{description:"Enforces explicit `type` attribute for `button` elements.",[Symbol.for("rule_features")]:["FIX"]},hasSuggestions:!0,messages:{addButtonType:"Add 'type' attribute with value '{{type}}'.",noMissingButtonType:"Add missing 'type' attribute on 'button' component."},schema:[]},name:"no-missing-button-type",create:function(e){let t=An(e);return{JSXElement(n){"button"!==t.resolve(n).domElementType||null==EL(e,n)("type")&&e.report({messageId:"noMissingButtonType",node:n.openingElement,suggest:Am.map(e=>({messageId:"addButtonType",data:{type:e},fix:t=>t.insertTextAfter(n.openingElement.name,` type="${e}"`)}))})}}},defaultOptions:[]}),Ah=Ar({meta:{type:"problem",docs:{description:"Enforces explicit `sandbox` prop for `iframe` elements.",[Symbol.for("rule_features")]:["FIX"]},fixable:"code",hasSuggestions:!0,messages:{addIframeSandbox:"Add 'sandbox' prop with value '{{value}}'.",noMissingIframeSandbox:"Add missing 'sandbox' prop on 'iframe' component."},schema:[]},name:"no-missing-iframe-sandbox",create:function(e){let t=An(e);return{JSXElement(n){let{domElementType:r}=t.resolve(n);if("iframe"!==r)return;let i=EL(e,n)("sandbox");if(null==i)return void e.report({messageId:"noMissingIframeSandbox",node:n.openingElement,suggest:[{messageId:"addIframeSandbox",data:{value:""},fix:e=>e.insertTextAfter(n.openingElement.name,' sandbox=""')}]});let a=EM(e,i);"string"!=typeof a.toStatic("sandbox")&&e.report({messageId:"noMissingIframeSandbox",node:a.node??i,suggest:[{messageId:"addIframeSandbox",data:{value:""},fix:e=>a.kind.startsWith("spread")?null:e.replaceText(i,'sandbox=""')}]})}}},defaultOptions:[]}),Ay=Ar({meta:{type:"problem",docs:{description:"Enforces the absence of a `namespace` in React elements.",[Symbol.for("rule_features")]:[]},messages:{noNamespace:"A React component '{{name}}' must not be in a namespace, as React does not support them."},schema:[]},name:"no-namespace",create:function(e){return{JSXElement(t){let n=Ez(e,t);"string"==typeof n&&n.includes(":")&&e.report({messageId:"noNamespace",node:t.openingElement.name,data:{name:n}})}}},defaultOptions:[]}),Av=Ar({meta:{type:"problem",docs:{description:"Replaces usages of `ReactDom.render()` with `createRoot(node).render()`.",[Symbol.for("rule_features")]:["MOD"]},fixable:"code",messages:{noRender:"[Deprecated] Use 'createRoot(node).render()' instead."},schema:[]},name:"no-render",create:function(e){if(!e.sourceCode.text.includes("render")||kD(_R(e).version,"18.0.0","<"))return{};let t=new Set(["ReactDOM","ReactDom"]),n=new Set;return{CallExpression(r){switch(!0){case r.callee.type===_q.AST_NODE_TYPES.Identifier&&n.has(r.callee.name):case r.callee.type===_q.AST_NODE_TYPES.MemberExpression&&r.callee.object.type===_q.AST_NODE_TYPES.Identifier&&r.callee.property.type===_q.AST_NODE_TYPES.Identifier&&"render"===r.callee.property.name&&t.has(r.callee.object.name):var i,a;e.report({messageId:"noRender",node:r,fix:(i=e,a=r,e=>{let[t,n]=a.arguments;return null==t||null==n?null:[e.insertTextBefore(i.sourceCode.ast,'import { createRoot } from "react-dom/client";\n'),e.replaceText(a,`createRoot(${i.sourceCode.getText(n)}).render(${i.sourceCode.getText(t)})`)]})});return}},ImportDeclaration(e){let[r]=e.source.value.split("/");if("react-dom"===r)for(let r of e.specifiers)switch(r.type){case _q.AST_NODE_TYPES.ImportSpecifier:if(r.imported.type!==_q.AST_NODE_TYPES.Identifier)continue;"render"===r.imported.name&&n.add(r.local.name);continue;case _q.AST_NODE_TYPES.ImportDefaultSpecifier:case _q.AST_NODE_TYPES.ImportNamespaceSpecifier:t.add(r.local.name);continue}}}},defaultOptions:[]});let Ab=[_q.AST_NODE_TYPES.VariableDeclarator,_q.AST_NODE_TYPES.Property,_q.AST_NODE_TYPES.ReturnStatement,_q.AST_NODE_TYPES.ArrowFunctionExpression,_q.AST_NODE_TYPES.AssignmentExpression];var AT=Ar({meta:{type:"problem",docs:{description:"Disallow the return value of `ReactDOM.render`.",[Symbol.for("rule_features")]:[]},messages:{noRenderReturnValue:"Do not depend on the return value from 'ReactDOM.render'."},schema:[]},name:"no-render-return-value",create:function(e){let t=new Set(["ReactDOM","ReactDom"]),n=new Set;return{CallExpression(r){switch(!0){case r.callee.type===_q.AST_NODE_TYPES.Identifier&&n.has(r.callee.name)&&Ab.includes(r.parent.type):case r.callee.type===_q.AST_NODE_TYPES.MemberExpression&&r.callee.object.type===_q.AST_NODE_TYPES.Identifier&&r.callee.property.type===_q.AST_NODE_TYPES.Identifier&&"render"===r.callee.property.name&&t.has(r.callee.object.name)&&Ab.includes(r.parent.type):e.report({messageId:"noRenderReturnValue",node:r});return}},ImportDeclaration(e){let[r]=e.source.value.split("/");if("react-dom"===r)for(let r of e.specifiers)switch(r.type){case _q.AST_NODE_TYPES.ImportSpecifier:if(r.imported.type!==_q.AST_NODE_TYPES.Identifier)continue;"render"===r.imported.name&&n.add(r.local.name);continue;case _q.AST_NODE_TYPES.ImportDefaultSpecifier:case _q.AST_NODE_TYPES.ImportNamespaceSpecifier:t.add(r.local.name);continue}}}},defaultOptions:[]}),AS=Ar({meta:{type:"problem",docs:{description:"Disallow `javascript:` URLs as attribute values.",[Symbol.for("rule_features")]:[]},messages:{noScriptUrl:"Using a `javascript:` URL is a security risk and should be avoided."},schema:[]},name:"no-script-url",create:function(e){return{JSXAttribute(t){if(t.name.type!==_q.AST_NODE_TYPES.JSXIdentifier||null==t.value)return;let n=EM(e,t).toStatic();"string"==typeof n&&_x.test(n)&&e.report({messageId:"noScriptUrl",node:t.value})}}},defaultOptions:[]}),Ax=Ar({meta:{type:"problem",docs:{description:"Disallows the use of string style prop.",[Symbol.for("rule_features")]:[]},messages:{noStringStyleProp:"Do not use string style prop. Use an object instead."},schema:[]},name:"no-string-style-prop",create:function(e){return{JSXElement(t){if(!Eq(e,t))return;let n=EL(e,t)("style");if(null==n)return;let r=EM(e,n);"string"==typeof r.toStatic()&&e.report({messageId:"noStringStyleProp",node:r.node??n})}}},defaultOptions:[]});let AE=[],Ak={"accept-charset":"acceptCharset",class:"className",crossorigin:"crossOrigin",for:"htmlFor","http-equiv":"httpEquiv",nomodule:"noModule"},AP={"accent-height":"accentHeight","alignment-baseline":"alignmentBaseline","arabic-form":"arabicForm","baseline-shift":"baselineShift","cap-height":"capHeight","clip-path":"clipPath","clip-rule":"clipRule","color-interpolation":"colorInterpolation","color-interpolation-filters":"colorInterpolationFilters","color-profile":"colorProfile","color-rendering":"colorRendering","dominant-baseline":"dominantBaseline","enable-background":"enableBackground","fill-opacity":"fillOpacity","fill-rule":"fillRule","flood-color":"floodColor","flood-opacity":"floodOpacity","font-family":"fontFamily","font-size":"fontSize","font-size-adjust":"fontSizeAdjust","font-stretch":"fontStretch","font-style":"fontStyle","font-variant":"fontVariant","font-weight":"fontWeight","glyph-name":"glyphName","glyph-orientation-horizontal":"glyphOrientationHorizontal","glyph-orientation-vertical":"glyphOrientationVertical","horiz-adv-x":"horizAdvX","horiz-origin-x":"horizOriginX","image-rendering":"imageRendering","letter-spacing":"letterSpacing","lighting-color":"lightingColor","marker-end":"markerEnd","marker-mid":"markerMid","marker-start":"markerStart","overline-position":"overlinePosition","overline-thickness":"overlineThickness","paint-order":"paintOrder","panose-1":"panose1","pointer-events":"pointerEvents","rendering-intent":"renderingIntent","shape-rendering":"shapeRendering","stop-color":"stopColor","stop-opacity":"stopOpacity","strikethrough-position":"strikethroughPosition","strikethrough-thickness":"strikethroughThickness","stroke-dasharray":"strokeDasharray","stroke-dashoffset":"strokeDashoffset","stroke-linecap":"strokeLinecap","stroke-linejoin":"strokeLinejoin","stroke-miterlimit":"strokeMiterlimit","stroke-opacity":"strokeOpacity","stroke-width":"strokeWidth","text-anchor":"textAnchor","text-decoration":"textDecoration","text-rendering":"textRendering","underline-position":"underlinePosition","underline-thickness":"underlineThickness","unicode-bidi":"unicodeBidi","unicode-range":"unicodeRange","units-per-em":"unitsPerEm","v-alphabetic":"vAlphabetic","v-hanging":"vHanging","v-ideographic":"vIdeographic","v-mathematical":"vMathematical","vector-effect":"vectorEffect","vert-adv-y":"vertAdvY","vert-origin-x":"vertOriginX","vert-origin-y":"vertOriginY","word-spacing":"wordSpacing","writing-mode":"writingMode","x-height":"xHeight","xlink:actuate":"xlinkActuate","xlink:arcrole":"xlinkArcrole","xlink:href":"xlinkHref","xlink:role":"xlinkRole","xlink:show":"xlinkShow","xlink:title":"xlinkTitle","xlink:type":"xlinkType","xml:base":"xmlBase","xml:lang":"xmlLang","xml:space":"xmlSpace"},AC={as:["link"],abbr:["th","td"],align:["applet","caption","col","colgroup","hr","iframe","img","table","tbody","td","tfoot","th","thead","tr"],allowFullScreen:["iframe","video"],autoPictureInPicture:["video"],charset:["meta"],checked:["input"],controls:["audio","video"],controlsList:["audio","video"],crossOrigin:["script","img","video","audio","link","image"],disablePictureInPicture:["video"],disableRemotePlayback:["audio","video"],displaystyle:["math"],download:["a","area"],fill:["altGlyph","circle","ellipse","g","line","marker","mask","path","polygon","polyline","rect","svg","symbol","text","textPath","tref","tspan","use","animate","animateColor","animateMotion","animateTransform","set"],focusable:["svg"],imageSizes:["link"],imageSrcSet:["link"],loop:["audio","video"],mozAllowFullScreen:["iframe","video"],muted:["audio","video"],noModule:["script"],onAbort:["audio","video"],onCanPlay:["audio","video"],onCanPlayThrough:["audio","video"],onCancel:["dialog"],onClose:["dialog"],onDurationChange:["audio","video"],onEmptied:["audio","video"],onEncrypted:["audio","video"],onEnded:["audio","video"],onError:["audio","video","img","link","source","script","picture","iframe"],onLoad:["script","img","link","picture","iframe","object","source"],onLoadStart:["audio","video"],onLoadedData:["audio","video"],onLoadedMetadata:["audio","video"],onPause:["audio","video"],onPlay:["audio","video"],onPlaying:["audio","video"],onProgress:["audio","video"],onRateChange:["audio","video"],onResize:["audio","video"],onSeeked:["audio","video"],onSeeking:["audio","video"],onStalled:["audio","video"],onSuspend:["audio","video"],onTimeUpdate:["audio","video"],onVolumeChange:["audio","video"],onWaiting:["audio","video"],playsInline:["video"],poster:["video"],preload:["audio","video"],property:["meta"],returnValue:["dialog"],scrolling:["iframe"],valign:["tr","td","th","thead","tbody","tfoot","colgroup","col"],viewBox:["marker","pattern","svg","symbol","view"],webkitAllowFullScreen:["iframe","video"],webkitDirectory:["input"]},Aw=["dir","draggable","hidden","id","lang","nonce","part","slot","style","title","translate","inert","accept","action","allow","alt","as","async","buffered","capture","challenge","cite","code","cols","content","coords","csp","data","decoding","default","defer","disabled","form","headers","height","high","href","icon","importance","integrity","kind","label","language","loading","list","loop","low","manifest","max","media","method","min","multiple","muted","name","open","optimum","pattern","ping","placeholder","poster","preload","profile","rel","required","reversed","role","rows","sandbox","scope","seamless","selected","shape","size","sizes","span","src","start","step","summary","target","type","value","width","wmode","wrap","accumulate","additive","alphabetic","amplitude","ascent","azimuth","bbox","begin","bias","by","clip","color","cursor","cx","cy","d","decelerate","descent","direction","display","divisor","dur","dx","dy","elevation","end","exponent","fill","filter","format","from","fr","fx","fy","g1","g2","hanging","height","hreflang","ideographic","in","in2","intercept","k","k1","k2","k3","k4","kerning","local","mask","mode","offset","opacity","operator","order","orient","orientation","origin","overflow","path","ping","points","r","radius","rel","restart","result","rotate","rx","ry","scale","seed","slope","spacing","speed","stemh","stemv","string","stroke","to","transform","u1","u2","unicode","values","version","visibility","widths","x","x1","x2","xmlns","y","y1","y2","z","property","ref","key","children","results","security","controls"],AA=["accessKey","autoCapitalize","autoFocus","contentEditable","enterKeyHint","exportParts","inputMode","itemID","itemRef","itemProp","itemScope","itemType","spellCheck","tabIndex","acceptCharset","autoComplete","autoPlay","border","cellPadding","cellSpacing","classID","codeBase","colSpan","contextMenu","dateTime","encType","formAction","formEncType","formMethod","formNoValidate","formTarget","frameBorder","hrefLang","httpEquiv","imageSizes","imageSrcSet","isMap","keyParams","keyType","marginHeight","marginWidth","maxLength","mediaGroup","minLength","noValidate","onAnimationEnd","onAnimationIteration","onAnimationStart","onBlur","onChange","onClick","onContextMenu","onCopy","onCompositionEnd","onCompositionStart","onCompositionUpdate","onCut","onDoubleClick","onDrag","onDragEnd","onDragEnter","onDragExit","onDragLeave","onError","onFocus","onInput","onKeyDown","onKeyPress","onKeyUp","onLoad","onWheel","onDragOver","onDragStart","onDrop","onMouseDown","onMouseEnter","onMouseLeave","onMouseMove","onMouseOut","onMouseOver","onMouseUp","onPaste","onScroll","onSelect","onSubmit","onToggle","onTransitionEnd","radioGroup","readOnly","referrerPolicy","rowSpan","srcDoc","srcLang","srcSet","useMap","fetchPriority","crossOrigin","accentHeight","alignmentBaseline","arabicForm","attributeName","attributeType","baseFrequency","baselineShift","baseProfile","calcMode","capHeight","clipPathUnits","clipPath","clipRule","colorInterpolation","colorInterpolationFilters","colorProfile","colorRendering","contentScriptType","contentStyleType","diffuseConstant","dominantBaseline","edgeMode","enableBackground","fillOpacity","fillRule","filterRes","filterUnits","floodColor","floodOpacity","fontFamily","fontSize","fontSizeAdjust","fontStretch","fontStyle","fontVariant","fontWeight","glyphName","glyphOrientationHorizontal","glyphOrientationVertical","glyphRef","gradientTransform","gradientUnits","horizAdvX","horizOriginX","imageRendering","kernelMatrix","kernelUnitLength","keyPoints","keySplines","keyTimes","lengthAdjust","letterSpacing","lightingColor","limitingConeAngle","markerEnd","markerMid","markerStart","markerHeight","markerUnits","markerWidth","maskContentUnits","maskUnits","mathematical","numOctaves","overlinePosition","overlineThickness","panose1","paintOrder","pathLength","patternContentUnits","patternTransform","patternUnits","pointerEvents","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","referrerPolicy","refX","refY","rendering-intent","repeatCount","repeatDur","requiredExtensions","requiredFeatures","shapeRendering","specularConstant","specularExponent","spreadMethod","startOffset","stdDeviation","stitchTiles","stopColor","stopOpacity","strikethroughPosition","strikethroughThickness","strokeDasharray","strokeDashoffset","strokeLinecap","strokeLinejoin","strokeMiterlimit","strokeOpacity","strokeWidth","surfaceScale","systemLanguage","tableValues","targetX","targetY","textAnchor","textDecoration","textRendering","textLength","transformOrigin","underlinePosition","underlineThickness","unicodeBidi","unicodeRange","unitsPerEm","vAlphabetic","vHanging","vIdeographic","vMathematical","vectorEffect","vertAdvY","vertOriginX","vertOriginY","viewBox","viewTarget","wordSpacing","writingMode","xHeight","xChannelSelector","xlinkActuate","xlinkArcrole","xlinkHref","xlinkRole","xlinkShow","xlinkTitle","xlinkType","xmlBase","xmlLang","xmlnsXlink","xmlSpace","yChannelSelector","zoomAndPan","autoCorrect","autoSave","className","dangerouslySetInnerHTML","defaultValue","defaultChecked","htmlFor","onBeforeInput","onChange","onInvalid","onReset","onTouchCancel","onTouchEnd","onTouchMove","onTouchStart","suppressContentEditableWarning","suppressHydrationWarning","onAbort","onCanPlay","onCanPlayThrough","onDurationChange","onEmptied","onEncrypted","onEnded","onLoadedData","onLoadedMetadata","onLoadStart","onPause","onPlay","onPlaying","onProgress","onRateChange","onResize","onSeeked","onSeeking","onStalled","onSuspend","onTimeUpdate","onVolumeChange","onWaiting","onCopyCapture","onCutCapture","onPasteCapture","onCompositionEndCapture","onCompositionStartCapture","onCompositionUpdateCapture","onFocusCapture","onBlurCapture","onChangeCapture","onBeforeInputCapture","onInputCapture","onResetCapture","onSubmitCapture","onInvalidCapture","onLoadCapture","onErrorCapture","onKeyDownCapture","onKeyPressCapture","onKeyUpCapture","onAbortCapture","onCanPlayCapture","onCanPlayThroughCapture","onDurationChangeCapture","onEmptiedCapture","onEncryptedCapture","onEndedCapture","onLoadedDataCapture","onLoadedMetadataCapture","onLoadStartCapture","onPauseCapture","onPlayCapture","onPlayingCapture","onProgressCapture","onRateChangeCapture","onSeekedCapture","onSeekingCapture","onStalledCapture","onSuspendCapture","onTimeUpdateCapture","onVolumeChangeCapture","onWaitingCapture","onSelectCapture","onTouchCancelCapture","onTouchEndCapture","onTouchMoveCapture","onTouchStartCapture","onScrollCapture","onWheelCapture","onAnimationEndCapture","onAnimationIteration","onAnimationStartCapture","onTransitionEndCapture","onAuxClick","onAuxClickCapture","onClickCapture","onContextMenuCapture","onDoubleClickCapture","onDragCapture","onDragEndCapture","onDragEnterCapture","onDragExitCapture","onDragLeaveCapture","onDragOverCapture","onDragStartCapture","onDropCapture","onMouseDown","onMouseDownCapture","onMouseMoveCapture","onMouseOutCapture","onMouseOverCapture","onMouseUpCapture","autoPictureInPicture","controlsList","disablePictureInPicture","disableRemotePlayback"],AD=["charset","allowFullScreen","webkitAllowFullScreen","mozAllowFullScreen","webkitDirectory"],AN=["aria-atomic","aria-braillelabel","aria-brailleroledescription","aria-busy","aria-controls","aria-current","aria-describedby","aria-description","aria-details","aria-disabled","aria-dropeffect","aria-errormessage","aria-flowto","aria-grabbed","aria-haspopup","aria-hidden","aria-invalid","aria-keyshortcuts","aria-label","aria-labelledby","aria-live","aria-owns","aria-relevant","aria-roledescription","aria-autocomplete","aria-checked","aria-expanded","aria-level","aria-modal","aria-multiline","aria-multiselectable","aria-orientation","aria-placeholder","aria-pressed","aria-readonly","aria-required","aria-selected","aria-sort","aria-valuemax","aria-valuemin","aria-valuenow","aria-valuetext","aria-activedescendant","aria-colcount","aria-colindex","aria-colindextext","aria-colspan","aria-posinset","aria-rowcount","aria-rowindex","aria-rowindextext","aria-rowspan","aria-setsize"],AF=["onGotPointerCapture","onGotPointerCaptureCapture","onLostPointerCapture","onLostPointerCapture","onLostPointerCaptureCapture","onPointerCancel","onPointerCancelCapture","onPointerDown","onPointerDownCapture","onPointerEnter","onPointerEnterCapture","onPointerLeave","onPointerLeaveCapture","onPointerMove","onPointerMoveCapture","onPointerOut","onPointerOutCapture","onPointerOver","onPointerOverCapture","onPointerUp","onPointerUpCapture"],AO=["popover","popoverTarget","popoverTargetAction","onToggle","onBeforeToggle"];function AI(e,t){return Object.hasOwn(e,t)}function AL(e,t,n){let{version:r}=_R(e);return kD(r,n,t)}var AM=Ar({meta:{type:"problem",docs:{description:"Disallow unknown `DOM` property."},fixable:"code",messages:{dataLowercaseRequired:"React does not recognize data-* props with uppercase characters on a DOM element. Found '{{name}}', use '{{lowerCaseName}}' instead",invalidPropOnTag:"Invalid property '{{name}}' found on tag '{{tagName}}', but it is only allowed on: {{allowedTags}}",unknownProp:"Unknown property '{{name}}' found",unknownPropWithStandardName:"Unknown property '{{name}}' found, use '{{standardName}}' instead"},schema:[{type:"object",additionalProperties:!1,properties:{ignore:{type:"array",items:{type:"string"}},requireDataLowercase:{type:"boolean",default:!1}}}]},name:"no-unknown-property",create:function(e){return{JSXAttribute(t){var n;let r=e.options[0]?.ignore||AE,i=(n=t.name,e.sourceCode.getText(n));if(r.indexOf(i)>=0)return;let a=AD.find(e=>e.toLowerCase()===i.toLowerCase())||i;if(t.parent?.name&&"JSXMemberExpression"===t.parent.name.type)return;if(!/^data-xml/i.test(a)&&/^data-[^:]*$/.test(a)){e.options[0]&&void 0!==e.options[0].requireDataLowercase&&e.options[0].requireDataLowercase&&a.toLowerCase()!==a&&e.report({node:t,messageId:"dataLowercaseRequired",data:{name:i,lowerCaseName:i.toLowerCase()}});return}if(AN.some(e=>e===a))return;let o=t?.parent?.name?t.parent.name.name:null;if("fbt"===o||"fbs"===o||!/^[a-z][^-]*$/.test(t.parent.name.name)||t.parent.attributes.some(e=>"JSXAttribute"===e.type&&"JSXIdentifier"===e.name.type&&"is"===e.name.name))return;let s=AI(AC,a)?AC[a]:null;if(o&&s){-1===s.indexOf(o)&&e.report({node:t,messageId:"invalidPropOnTag",data:{name:i,allowedTags:s.join(", "),tagName:o}});return}let l=function(e,t){let n;return AI(Ak,e)?Ak[e]:AI(AP,e)?AP[e]:(n=AA.concat(Aw),AL(t,"<=","16.1.0")?n.push("allowTransparency"):(AL(t,">=","16.4.0")&&n.push(...AF),AL(t,">=","19.0.0-rc.0")?n.push(...AO):n.push(...AO.map(e=>e.toLowerCase()))),n).find(t=>t.toLowerCase()===e.toLowerCase())}(a,e),c=!!l&&l!==a;if(!l||l!==a){if(c)return void e.report({node:t,messageId:"unknownPropWithStandardName",data:{name:i,standardName:l},fix:e=>e.replaceText(t.name,l)});e.report({node:t,messageId:"unknownProp",data:{name:i}})}}}},defaultOptions:[]});let AR=["allow-scripts","allow-same-origin"];var Aj=Ar({meta:{type:"problem",docs:{description:"Enforces `sandbox` attribute for `iframe` elements is not set to unsafe combinations.",[Symbol.for("rule_features")]:[]},messages:{noUnsafeIframeSandbox:"Unsafe 'sandbox' attribute value on 'iframe' component."},schema:[]},name:"no-unsafe-iframe-sandbox",create:function(e){let t=An(e);return{JSXElement(n){var r;if("iframe"!==t.resolve(n).domElementType)return;let i=EL(e,n)("sandbox");if(null==i)return;let a=EM(e,i);"string"==typeof(r=a.toStatic("sandbox"))&&AR.every(e=>r.includes(e))&&e.report({messageId:"noUnsafeIframeSandbox",node:a.node??i})}}},defaultOptions:[]}),AY=Ar({meta:{type:"problem",docs:{description:'Disallow `target="_blank"` without `rel="noreferrer noopener"`.',[Symbol.for("rule_features")]:["FIX"]},fixable:"code",hasSuggestions:!0,messages:{addRelNoreferrerNoopener:"Add 'rel=\"noreferrer noopener\"' to the link to prevent security risks.",noUnsafeTargetBlank:"Using 'target=\"_blank\"' on an external link without 'rel=\"noreferrer noopener\"' is a security risk."},schema:[]},name:"no-unsafe-target-blank",create:function(e){let t=An(e);return{JSXElement(n){var r,i;let{domElementType:a}=t.resolve(n);if("a"!==a)return;let o=EL(e,n),s=o("target");if(null==s||"_blank"!==EM(e,s).toStatic("target"))return;let l=o("href");if(null==l||!("string"==typeof(r=EM(e,l).toStatic("href"))&&(r.startsWith("https://")||/^(?:\w+:|\/\/)/u.test(r))))return;let c=o("rel");null==c?e.report({messageId:"noUnsafeTargetBlank",node:n.openingElement,suggest:[{messageId:"addRelNoreferrerNoopener",fix:e=>e.insertTextAfter(n.openingElement.name,' rel="noreferrer noopener"')}]}):"string"==typeof(i=EM(e,c).toStatic("rel"))&&("noreferrer"===i||/\bnoreferrer\b/u.test(i))||e.report({messageId:"noUnsafeTargetBlank",node:c,suggest:[{messageId:"addRelNoreferrerNoopener",fix:e=>e.replaceText(c,'rel="noreferrer noopener"')}]})}}},defaultOptions:[]}),AU=Ar({meta:{type:"problem",docs:{description:"Replaces usages of `useFormState` with `useActionState`.",[Symbol.for("rule_features")]:["MOD"]},fixable:"code",messages:{noUseFormState:"[Deprecated] Use 'useActionState' from 'react' package instead."},schema:[]},name:"no-use-form-state",create:function(e){if(!e.sourceCode.text.includes("useFormState")||kD(_R(e).version,"19.0.0","<"))return{};let t=new Set,n=new Set;return{CallExpression(r){switch(!0){case r.callee.type===_q.AST_NODE_TYPES.Identifier&&n.has(r.callee.name):case r.callee.type===_q.AST_NODE_TYPES.MemberExpression&&r.callee.object.type===_q.AST_NODE_TYPES.Identifier&&r.callee.property.type===_q.AST_NODE_TYPES.Identifier&&"useFormState"===r.callee.property.name&&t.has(r.callee.object.name):e.report({messageId:"noUseFormState",node:r,fix:function(e,t){let{importSource:n}=_R(e);return r=>[r.insertTextBefore(e.sourceCode.ast,`import { useActionState } from "${n}";
|
|
400
400
|
`),r.replaceText(t.callee,"useActionState")]}(e,r)});return}},ImportDeclaration(e){let[r]=e.source.value.split("/");if("react-dom"===r)for(let r of e.specifiers)switch(r.type){case _q.AST_NODE_TYPES.ImportSpecifier:if(r.imported.type!==_q.AST_NODE_TYPES.Identifier)continue;"useFormState"===r.imported.name&&n.add(r.local.name);continue;case _q.AST_NODE_TYPES.ImportDefaultSpecifier:case _q.AST_NODE_TYPES.ImportNamespaceSpecifier:t.add(r.local.name);continue}}}},defaultOptions:[]});let AB=new Set(["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr"]);var AV=Ar({meta:{type:"problem",docs:{description:"Disallow `children` in void DOM elements.",[Symbol.for("rule_features")]:[]},messages:{noVoidElementsWithChildren:"'{{elementType}}' is a void element tag and must not have children."},schema:[]},name:"no-void-elements-with-children",create:function(e){let t=An(e);return{JSXElement(n){let{domElementType:r}=t.resolve(n);if(!AB.has(r))return;let i=EL(e,n),a=null!=i("children"),o=null!=i("dangerouslySetInnerHTML");(n.children.length>0||a||o)&&e.report({messageId:"noVoidElementsWithChildren",node:n,data:{elementType:r}})}}},defaultOptions:[]}),AJ=Ar({meta:{type:"problem",docs:{description:"Enforces React Dom is imported via a namespace import.",[Symbol.for("rule_features")]:["FIX"]},fixable:"code",messages:{preferNamespaceImport:"Prefer importing React DOM via a namespace import."},schema:[]},name:"prefer-namespace-import",create:function(e){return{"ImportDeclaration ImportDefaultSpecifier"(t){let n=t.parent.source.value;if(!Az.includes(n))return;let r=t.parent.specifiers.length>1;e.report({messageId:"preferNamespaceImport",node:r?t:t.parent,data:{importSource:n},fix(i){let a=e.sourceCode.getText(t.parent),o=a.endsWith(";")?";":"",s=t.parent.source.raw.at(0)??"'",l=`import${"type"===t.parent.importKind?" type":""}`,c=`${s}${n}${s}`;if(!r)return i.replaceText(t.parent,`${l} * as ${t.local.name} from ${c}${o}`);let u=a.slice(a.indexOf("{"),a.indexOf("}")+1);return i.replaceText(t.parent,`${l} * as ${t.local.name} from ${c}${o}
|
|
401
|
-
${l} ${u} from ${c}${o}`)}})}}},defaultOptions:[]});let Az=["react-dom","react-dom/client","react-dom/server"],Aq={meta:{name:"eslint-plugin-react-dom",version:"2.3.4"},rules:{"no-dangerously-set-innerhtml":Aa,"no-dangerously-set-innerhtml-with-children":Ao,"no-find-dom-node":Ac,"no-flush-sync":A_,"no-hydrate":Ap,"no-missing-button-type":Ag,"no-missing-iframe-sandbox":Ah,"no-namespace":Ay,"no-render":Av,"no-render-return-value":AT,"no-script-url":AS,"no-string-style-prop":Ax,"no-unknown-property":AM,"no-unsafe-iframe-sandbox":Aj,"no-unsafe-target-blank":AY,"no-use-form-state":AU,"no-void-elements-with-children":AV,"prefer-namespace-import":AJ}};var A$=At({name:()=>AW,plugins:()=>AH,rules:()=>AK,settings:()=>AG});let AW="react-dom/recommended",AK={"react-dom/no-dangerously-set-innerhtml":"warn","react-dom/no-dangerously-set-innerhtml-with-children":"error","react-dom/no-find-dom-node":"error","react-dom/no-flush-sync":"error","react-dom/no-hydrate":"error","react-dom/no-namespace":"error","react-dom/no-render":"error","react-dom/no-render-return-value":"error","react-dom/no-script-url":"warn","react-dom/no-unsafe-iframe-sandbox":"warn","react-dom/no-use-form-state":"error","react-dom/no-void-elements-with-children":"error"},AH={"react-dom":Aq},AG={"react-x":_L};var AX=At({name:()=>AQ,plugins:()=>A0,rules:()=>AZ,settings:()=>A1});let AQ="react-dom/strict",AZ={...AK,"react-dom/no-missing-button-type":"warn","react-dom/no-missing-iframe-sandbox":"warn","react-dom/no-unsafe-target-blank":"warn"},A0={...AH},A1={...AG},{toFlatConfig:A2}=_g("react-dom",Aq);var A3={...Aq,configs:{recommended:A2(A$),strict:A2(AX)}},A6=Object.defineProperty,A4=e=>{let t={};for(var n in e)A6(t,n,{get:e[n],enumerable:!0});return t},A8=A4({name:()=>A5,plugins:()=>A9,rules:()=>A7});let A5="@eslint-react/dom",A7={"@eslint-react/dom/no-dangerously-set-innerhtml":"warn","@eslint-react/dom/no-dangerously-set-innerhtml-with-children":"error","@eslint-react/dom/no-find-dom-node":"error","@eslint-react/dom/no-flush-sync":"error","@eslint-react/dom/no-hydrate":"error","@eslint-react/dom/no-namespace":"error","@eslint-react/dom/no-render":"error","@eslint-react/dom/no-render-return-value":"error","@eslint-react/dom/no-script-url":"warn","@eslint-react/dom/no-unsafe-iframe-sandbox":"warn","@eslint-react/dom/no-use-form-state":"error","@eslint-react/dom/no-void-elements-with-children":"error"},A9={"@eslint-react/dom":A3};var De=A4({name:()=>Dt,plugins:()=>Dr,rules:()=>Dn,settings:()=>Di});let Dt="@eslint-react/x",Dn={"@eslint-react/jsx-key-before-spread":"warn","@eslint-react/jsx-no-comment-textnodes":"warn","@eslint-react/jsx-no-duplicate-props":"warn","@eslint-react/jsx-uses-react":"warn","@eslint-react/jsx-uses-vars":"warn","@eslint-react/no-access-state-in-setstate":"error","@eslint-react/no-array-index-key":"warn","@eslint-react/no-children-count":"warn","@eslint-react/no-children-for-each":"warn","@eslint-react/no-children-map":"warn","@eslint-react/no-children-only":"warn","@eslint-react/no-children-to-array":"warn","@eslint-react/no-clone-element":"warn","@eslint-react/no-component-will-mount":"error","@eslint-react/no-component-will-receive-props":"error","@eslint-react/no-component-will-update":"error","@eslint-react/no-context-provider":"warn","@eslint-react/no-create-ref":"error","@eslint-react/no-default-props":"error","@eslint-react/no-direct-mutation-state":"error","@eslint-react/no-duplicate-key":"error","@eslint-react/no-forward-ref":"warn","@eslint-react/no-implicit-key":"warn","@eslint-react/no-missing-key":"error","@eslint-react/no-nested-component-definitions":"error","@eslint-react/no-nested-lazy-component-declarations":"error","@eslint-react/no-prop-types":"error","@eslint-react/no-redundant-should-component-update":"error","@eslint-react/no-set-state-in-component-did-mount":"warn","@eslint-react/no-set-state-in-component-did-update":"warn","@eslint-react/no-set-state-in-component-will-update":"warn","@eslint-react/no-string-refs":"error","@eslint-react/no-unnecessary-use-prefix":"warn","@eslint-react/no-unsafe-component-will-mount":"warn","@eslint-react/no-unsafe-component-will-receive-props":"warn","@eslint-react/no-unsafe-component-will-update":"warn","@eslint-react/no-unused-class-component-members":"warn","@eslint-react/no-use-context":"warn","@eslint-react/no-useless-forward-ref":"warn","@eslint-react/prefer-use-state-lazy-initialization":"warn"},Dr={"@eslint-react":wC},Di={"react-x":_L};var Da=A4({name:()=>Do,plugins:()=>Dl,rules:()=>Ds,settings:()=>Dc});let Do="@eslint-react/all",Ds={"@eslint-react/jsx-key-before-spread":"warn","@eslint-react/jsx-no-comment-textnodes":"warn","@eslint-react/jsx-no-duplicate-props":"warn","@eslint-react/jsx-no-iife":"warn","@eslint-react/jsx-no-undef":"error","@eslint-react/jsx-shorthand-boolean":"warn","@eslint-react/jsx-shorthand-fragment":"warn","@eslint-react/jsx-uses-react":"warn","@eslint-react/jsx-uses-vars":"warn","@eslint-react/no-access-state-in-setstate":"error","@eslint-react/no-array-index-key":"warn","@eslint-react/no-children-count":"warn","@eslint-react/no-children-for-each":"warn","@eslint-react/no-children-map":"warn","@eslint-react/no-children-only":"warn","@eslint-react/no-children-prop":"warn","@eslint-react/no-children-to-array":"warn","@eslint-react/no-class-component":"warn","@eslint-react/no-clone-element":"warn","@eslint-react/no-component-will-mount":"error","@eslint-react/no-component-will-receive-props":"error","@eslint-react/no-component-will-update":"error","@eslint-react/no-context-provider":"warn","@eslint-react/no-create-ref":"error","@eslint-react/no-default-props":"error","@eslint-react/no-direct-mutation-state":"error","@eslint-react/no-duplicate-key":"error","@eslint-react/no-forbidden-props":"off","@eslint-react/no-forward-ref":"warn","@eslint-react/no-implicit-key":"warn","@eslint-react/no-leaked-conditional-rendering":"off","@eslint-react/no-missing-component-display-name":"warn","@eslint-react/no-missing-context-display-name":"warn","@eslint-react/no-missing-key":"error","@eslint-react/no-misused-capture-owner-stack":"error","@eslint-react/no-nested-component-definitions":"error","@eslint-react/no-nested-lazy-component-declarations":"error","@eslint-react/no-prop-types":"error","@eslint-react/no-redundant-should-component-update":"error","@eslint-react/no-set-state-in-component-did-mount":"warn","@eslint-react/no-set-state-in-component-did-update":"warn","@eslint-react/no-set-state-in-component-will-update":"warn","@eslint-react/no-string-refs":"error","@eslint-react/no-unnecessary-key":"warn","@eslint-react/no-unnecessary-use-callback":"warn","@eslint-react/no-unnecessary-use-memo":"warn","@eslint-react/no-unnecessary-use-prefix":"warn","@eslint-react/no-unsafe-component-will-mount":"warn","@eslint-react/no-unsafe-component-will-receive-props":"warn","@eslint-react/no-unsafe-component-will-update":"warn","@eslint-react/no-unstable-context-value":"warn","@eslint-react/no-unstable-default-props":"warn","@eslint-react/no-unused-class-component-members":"warn","@eslint-react/no-unused-props":"off","@eslint-react/no-unused-state":"warn","@eslint-react/no-use-context":"warn","@eslint-react/no-useless-forward-ref":"warn","@eslint-react/no-useless-fragment":"warn","@eslint-react/prefer-destructuring-assignment":"warn","@eslint-react/prefer-namespace-import":"warn","@eslint-react/prefer-read-only-props":"off","@eslint-react/prefer-use-state-lazy-initialization":"warn","@eslint-react/dom/no-dangerously-set-innerhtml":"warn","@eslint-react/dom/no-dangerously-set-innerhtml-with-children":"error","@eslint-react/dom/no-find-dom-node":"error","@eslint-react/dom/no-flush-sync":"error","@eslint-react/dom/no-hydrate":"error","@eslint-react/dom/no-missing-button-type":"warn","@eslint-react/dom/no-missing-iframe-sandbox":"warn","@eslint-react/dom/no-namespace":"error","@eslint-react/dom/no-render":"error","@eslint-react/dom/no-render-return-value":"error","@eslint-react/dom/no-script-url":"warn","@eslint-react/dom/no-string-style-prop":"error","@eslint-react/dom/no-unknown-property":"warn","@eslint-react/dom/no-unsafe-iframe-sandbox":"warn","@eslint-react/dom/no-unsafe-target-blank":"warn","@eslint-react/dom/no-use-form-state":"warn","@eslint-react/dom/no-void-elements-with-children":"error","@eslint-react/dom/prefer-namespace-import":"warn","@eslint-react/web-api/no-leaked-event-listener":"warn","@eslint-react/web-api/no-leaked-interval":"warn","@eslint-react/web-api/no-leaked-resize-observer":"warn","@eslint-react/web-api/no-leaked-timeout":"warn","@eslint-react/hooks-extra/no-direct-set-state-in-use-effect":"warn","@eslint-react/naming-convention/component-name":"warn","@eslint-react/naming-convention/context-name":"warn","@eslint-react/naming-convention/filename":"off","@eslint-react/naming-convention/filename-extension":"off","@eslint-react/naming-convention/use-state":"warn"},Dl={...Dr,...A9,"@eslint-react/hooks-extra":wL,"@eslint-react/naming-convention":wG,"@eslint-react/web-api":w9},Dc={...Di};var Du=A4({name:()=>D_,rules:()=>Dd});let D_="@eslint-react/disable-conflict-eslint-plugin-react",Dd=Object.fromEntries(["button-has-type","destructuring-assignment","display-name","forbid-prop-types","forward-ref-uses-ref","hook-use-state","iframe-missing-sandbox","jsx-boolean-value","jsx-filename-extension","jsx-fragments","jsx-key","jsx-no-comment-textnodes","jsx-no-constructed-context-values","jsx-no-duplicate-props","jsx-no-leaked-render","jsx-no-script-url","jsx-no-target-blank","jsx-no-undef","jsx-no-useless-fragment","jsx-pascal-case","jsx-uses-react","jsx-uses-vars","no-access-state-in-setstate","no-array-index-key","no-children-prop","no-danger","no-danger-with-children","no-deprecated","no-did-mount-set-state","no-did-update-set-state","no-direct-mutation-state","no-find-dom-node","no-namespace","no-object-type-as-default-prop","no-redundant-should-component-update","no-render-return-value","no-string-refs","no-unknown-property","no-unsafe","no-unstable-nested-components","no-unused-class-component-members","no-unused-state","no-will-update-set-state","prefer-read-only-props","prop-types","void-dom-elements-no-children"].map(e=>[e,"off"]));var Dp=A4({name:()=>Df,rules:()=>Dm});let Df="@eslint-react/disable-dom",Dm=Object.fromEntries(Object.entries(A7).map(([e])=>[e,"off"]));var Dg=A4({name:()=>Dh,rules:()=>Dy});let Dh="@eslint-react/disable-type-checked",Dy={"@eslint-react/no-leaked-conditional-rendering":"off","@eslint-react/no-unused-props":"off","@eslint-react/prefer-read-only-props":"off"};var Dv=A4({name:()=>Db,plugins:()=>DS,rules:()=>DT,settings:()=>Dx});let Db="@eslint-react/web-api",DT={"@eslint-react/web-api/no-leaked-event-listener":"warn","@eslint-react/web-api/no-leaked-interval":"warn","@eslint-react/web-api/no-leaked-resize-observer":"warn","@eslint-react/web-api/no-leaked-timeout":"warn"},DS={"@eslint-react/web-api":w9},Dx={...Di};var DE=A4({name:()=>Dk,rules:()=>DP});let Dk="@eslint-react/disable-web-api",DP=Object.fromEntries(Object.entries(DT).map(([e])=>[e,"off"]));var DC=A4({name:()=>Dw,plugins:()=>DD,rules:()=>DA});let Dw="@eslint-react/no-deprecated",DA={"@eslint-react/no-component-will-mount":"error","@eslint-react/no-component-will-receive-props":"error","@eslint-react/no-component-will-update":"error","@eslint-react/no-create-ref":"error","@eslint-react/no-forward-ref":"error","@eslint-react/dom/no-find-dom-node":"error","@eslint-react/dom/no-hydrate":"error","@eslint-react/dom/no-render":"error","@eslint-react/dom/no-render-return-value":"error"},DD={...Dr,...A9};var DN=A4({name:()=>DF,rules:()=>DO});let DF="@eslint-react/off",DO={...Object.fromEntries(Object.entries(Ds).map(([e])=>[e,"off"])),...Dy};var DI=A4({name:()=>DL,plugins:()=>DR,rules:()=>DM,settings:()=>Dj});let DL="@eslint-react/recommended",DM={...Dn,...A7,...DT,"@eslint-react/hooks-extra/no-direct-set-state-in-use-effect":"warn","@eslint-react/naming-convention/context-name":"warn","@eslint-react/naming-convention/use-state":"warn"},DR={...Dr,...A9,...DS,"@eslint-react/hooks-extra":wL,"@eslint-react/naming-convention":wG},Dj={...Di};var DY=A4({name:()=>DU,plugins:()=>DV,rules:()=>DB,settings:()=>DJ});let DU="@eslint-react/recommended-typescript",DB={...DM,"@eslint-react/dom/no-string-style-prop":"off","@eslint-react/dom/no-unknown-property":"off","@eslint-react/jsx-no-duplicate-props":"off","@eslint-react/jsx-no-undef":"off","@eslint-react/jsx-uses-react":"off","@eslint-react/jsx-uses-vars":"off"},DV={...DR},DJ={...Dj};var Dz=A4({name:()=>Dq,plugins:()=>DW,rules:()=>D$,settings:()=>DK});let Dq="@eslint-react/recommended-type-checked",D$={...DB,"@eslint-react/no-leaked-conditional-rendering":"error"},DW={...DV},DK={...DJ};var DH=A4({name:()=>DG,plugins:()=>DQ,rules:()=>DX,settings:()=>DZ});let DG="@eslint-react/strict",DX={...DM,"@eslint-react/jsx-no-iife":"error","@eslint-react/no-children-prop":"error","@eslint-react/no-class-component":"error","@eslint-react/no-misused-capture-owner-stack":"error","@eslint-react/no-unnecessary-key":"warn","@eslint-react/no-unnecessary-use-callback":"warn","@eslint-react/no-unnecessary-use-memo":"warn","@eslint-react/no-unstable-context-value":"warn","@eslint-react/no-unstable-default-props":"warn","@eslint-react/no-unused-state":"warn","@eslint-react/no-useless-fragment":"warn","@eslint-react/prefer-destructuring-assignment":"warn","@eslint-react/dom/no-missing-button-type":"warn","@eslint-react/dom/no-missing-iframe-sandbox":"warn","@eslint-react/dom/no-unsafe-target-blank":"warn"},DQ={...DR},DZ={...Dj};var D0=A4({name:()=>D1,plugins:()=>D3,rules:()=>D2,settings:()=>D6});let D1="@eslint-react/strict-typescript",D2={...DX,...DB},D3={...DQ},D6={...DZ};var D4=A4({name:()=>D8,plugins:()=>D7,rules:()=>D5,settings:()=>D9});let D8="@eslint-react/strict-type-checked",D5={...D2,"@eslint-react/no-leaked-conditional-rendering":"error","@eslint-react/no-unused-props":"warn"},D7={...D3},D9={...D6},Ne={meta:{name:"@eslint-react/eslint-plugin",version:"2.3.4"},configs:{all:Da,"disable-conflict-eslint-plugin-react":Du,"disable-dom":Dp,"disable-type-checked":Dg,"disable-web-api":DE,dom:A8,"no-deprecated":DC,off:DN,recommended:DI,"recommended-type-checked":Dz,"recommended-typescript":DY,strict:DH,"strict-type-checked":D4,"strict-typescript":D0,"web-api":Dv,x:De},rules:{...wC.rules}},Nt=sb.memo(Ne,"@eslint-react/eslint-plugin"),Nn=sb.memo(sj.fixupPluginRules(sR),"eslint-plugin-ssr-friendly");async function Nr({files:e=[sb.constants.GLOB_TS,sb.constants.GLOB_TSX,sb.constants.GLOB_JSX],reactCompiler:t,additionalHooks:n="(useIsomorphicLayoutEffect|useSukkaManyOtherCustomEffectHookExample|useAbortableEffect)",nextjs:r=!1,remix:i=!1,reactRefresh:a={},additionalHooksWithType:o={useLayoutEffect:["useIsomorphicLayoutEffect"],useEffect:["useAbortableEffect"]},additionalComponents:s=[{name:"Link",as:"a",attributes:[{name:"to",as:"href"},{name:"rel",as:"rel"}]}]}={}){let{allowConstantExport:l=!1}=a;e="function"==typeof e?e([sb.constants.GLOB_TS,sb.constants.GLOB_TSX,sb.constants.GLOB_JSX]):sU.castArray(e);let c=[sb.UNSAFE_excludeJsonYamlFiles({name:"@eslint-sukka/react base",files:e,plugins:{"@stylistic":sb.memo(sM.stylistic_eslint_plugin,"@stylistic/eslint-plugin"),"react-prefer-function-component":sb.memo(s8,"eslint-plugin-react-prefer-function-component"),...Nt.configs.recommended.plugins,"ssr-friendly":Nn,"react-refresh":sx},settings:{"react-x":{version:"detect",additionalHooks:o,additionalComponents:s}},languageOptions:{globals:sb.globals.browser},rules:{"@stylistic/jsx-pascal-case":["error",{allowAllCaps:!0,ignore:[]}],...Nt.configs.recommended.rules,"@eslint-react/no-string-refs":"error","@eslint-react/jsx-no-comment-textnodes":"error","@eslint-react/dom/no-unsafe-target-blank":"error","@eslint-react/no-children-prop":"error","@eslint-react/dom/no-dangerously-set-innerhtml-with-children":"error","@eslint-react/dom/no-render-return-value":"error","@eslint-react/no-direct-mutation-state":"error","@eslint-react/dom/no-find-dom-node":"error","@eslint-react/no-unsafe-component-will-mount":"warn","@eslint-react/no-unsafe-component-will-receive-props":"warn","@eslint-react/no-unsafe-component-will-update":"warn","@eslint-react/prefer-destructuring-assignment":"warn","@eslint-react/no-unused-state":"error","@eslint-react/no-access-state-in-setstate":"error","@eslint-react/dom/no-script-url":"error","@eslint-react/no-unused-class-component-members":"error","@eslint-react/naming-convention/component-name":["error",{rule:"PascalCase"}],"@eslint-react/naming-convention/filename":["error",{rule:"kebab-case"}],"@eslint-react/naming-convention/filename-extension":["error",{allow:"as-needed"}],"@eslint-react/naming-convention/use-state":"error","react-prefer-function-component/react-prefer-function-component":"error","@stylistic/jsx-self-closing-comp":"error","@eslint-react/jsx-shorthand-boolean":"error","@stylistic/jsx-curly-spacing":["error","never",{allowMultiline:!0}],"@stylistic/jsx-indent-props":["error",2],"@stylistic/jsx-max-props-per-line":["error",{maximum:1,when:"multiline"}],"@stylistic/jsx-wrap-multilines":["error",{declaration:"parens-new-line",assignment:"parens-new-line",return:"parens-new-line",arrow:"parens-new-line",condition:"ignore",logical:"ignore",prop:"ignore"}],"@stylistic/jsx-first-prop-new-line":["error","multiline-multiprop"],"@stylistic/jsx-function-call-newline":["error","multiline"],"@stylistic/jsx-equals-spacing":["error","never"],"@stylistic/jsx-indent":"off","@stylistic/jsx-child-element-spacing":"error","@stylistic/jsx-closing-bracket-location":["error","line-aligned"],"@stylistic/jsx-tag-spacing":["error",{closingSlash:"never",beforeSelfClosing:"always",afterOpening:"never",beforeClosing:"never"}],"@eslint-react/dom/no-void-elements-with-children":"error","@stylistic/jsx-curly-brace-presence":["error",{props:"never",children:"never"}],"@eslint-react/jsx-shorthand-fragment":"error","@stylistic/jsx-curly-newline":["error",{multiline:"consistent",singleline:"consistent"}],"@eslint-react/no-missing-key":"error","@eslint-react/no-array-index-key":"error","@eslint-react/no-duplicate-key":"error","@eslint-react/no-implicit-key":"error","@eslint-react/jsx-uses-react":"off","@eslint-react/no-useless-fragment":"error","@eslint-react/no-unstable-context-value":"error","@eslint-react/no-nested-component-definitions":"error","@eslint-react/dom/no-missing-iframe-sandbox":"warn","@eslint-react/dom/no-unsafe-iframe-sandbox":"warn","@eslint-react/no-leaked-conditional-rendering":"error","@eslint-react/no-unstable-default-props":"error","@eslint-react/dom/no-missing-button-type":"error","@eslint-react/dom/no-namespace":"error","@eslint-react/no-unnecessary-use-callback":"error","@eslint-react/no-unnecessary-use-memo":"error","@eslint-react/no-unnecessary-use-prefix":"error","@eslint-react/prefer-use-state-lazy-initialization":"error","@typescript-eslint/class-methods-use-this":["error",{exceptMethods:["render","getInitialState","getDefaultProps","getChildContext","componentWillMount","UNSAFE_componentWillMount","componentDidMount","componentWillReceiveProps","UNSAFE_componentWillReceiveProps","shouldComponentUpdate","componentWillUpdate","UNSAFE_componentWillUpdate","componentDidUpdate","componentWillUnmount","componentDidCatch","getSnapshotBeforeUpdate"],ignoreClassesThatImplementAnInterface:"public-fields"}],"react-refresh/only-export-components":["warn",{allowConstantExport:l,allowExportNames:[...r?["config","generateStaticParams","metadata","generateMetadata","viewport","generateViewport"]:[],...i?["meta","links","headers","loader","action"]:[]]}]}}),sb.withFiles(sb.UNSAFE_excludeJsonYamlFiles({...sS.configs.flat["recommended-latest"],rules:{...sS.configs.flat["recommended-latest"].rules,"react-hooks/exhaustive-deps":["error",{additionalHooks:n}]}}),e),sb.withFiles(sb.UNSAFE_excludeJsonYamlFiles(sY.eslint_plugin_jsx_a11y_minimal.configs.minimal),e),{name:"@eslint-sukka/react next.js/nextra naming convention",files:["**/app/**/_*.cjs",String.raw`**/app/**/\[*.?([cm])[j]s?(x)`,"**/pages/_(app|document).?([cm])[jt]s?(x)"],rules:{"@eslint-react/naming-convention/filename":"off"}}];if(t){let{default:t}=await import("eslint-plugin-react-compiler");c.push(sb.withFiles(sb.UNSAFE_excludeJsonYamlFiles(t.configs.recommended),e))}return c}async function Ni({opt:e={}}={}){return[{plugins:{"@stylexjs":(await import("@stylexjs/eslint-plugin")).default},files:[sb.constants.GLOB_TS,sb.constants.GLOB_TSX,sb.constants.GLOB_JSX],rules:{"@stylexjs/valid-styles":["error",e],"@stylexjs/valid-shorthands":["error",e],"@stylexjs/sort-keys":"off"}}]}exports.next=function(){return[{...sT.flatConfig.coreWebVitals,files:[sb.constants.GLOB_TS,sb.constants.GLOB_TSX,sb.constants.GLOB_JSX],rules:{...sT.flatConfig.coreWebVitals.rules,"@next/next/no-img-element":"off"}}]},exports.react=Nr,exports.stylex=Ni;
|
|
401
|
+
${l} ${u} from ${c}${o}`)}})}}},defaultOptions:[]});let Az=["react-dom","react-dom/client","react-dom/server"],Aq={meta:{name:"eslint-plugin-react-dom",version:"2.3.5"},rules:{"no-dangerously-set-innerhtml":Aa,"no-dangerously-set-innerhtml-with-children":Ao,"no-find-dom-node":Ac,"no-flush-sync":A_,"no-hydrate":Ap,"no-missing-button-type":Ag,"no-missing-iframe-sandbox":Ah,"no-namespace":Ay,"no-render":Av,"no-render-return-value":AT,"no-script-url":AS,"no-string-style-prop":Ax,"no-unknown-property":AM,"no-unsafe-iframe-sandbox":Aj,"no-unsafe-target-blank":AY,"no-use-form-state":AU,"no-void-elements-with-children":AV,"prefer-namespace-import":AJ}};var A$=At({name:()=>AW,plugins:()=>AH,rules:()=>AK,settings:()=>AG});let AW="react-dom/recommended",AK={"react-dom/no-dangerously-set-innerhtml":"warn","react-dom/no-dangerously-set-innerhtml-with-children":"error","react-dom/no-find-dom-node":"error","react-dom/no-flush-sync":"error","react-dom/no-hydrate":"error","react-dom/no-namespace":"error","react-dom/no-render":"error","react-dom/no-render-return-value":"error","react-dom/no-script-url":"warn","react-dom/no-unsafe-iframe-sandbox":"warn","react-dom/no-use-form-state":"error","react-dom/no-void-elements-with-children":"error"},AH={"react-dom":Aq},AG={"react-x":_L};var AX=At({name:()=>AQ,plugins:()=>A0,rules:()=>AZ,settings:()=>A1});let AQ="react-dom/strict",AZ={...AK,"react-dom/no-missing-button-type":"warn","react-dom/no-missing-iframe-sandbox":"warn","react-dom/no-unsafe-target-blank":"warn"},A0={...AH},A1={...AG},{toFlatConfig:A2}=_g("react-dom",Aq);var A3={...Aq,configs:{recommended:A2(A$),strict:A2(AX)}},A6=Object.defineProperty,A4=e=>{let t={};for(var n in e)A6(t,n,{get:e[n],enumerable:!0});return t},A8=A4({name:()=>A5,plugins:()=>A9,rules:()=>A7});let A5="@eslint-react/dom",A7={"@eslint-react/dom/no-dangerously-set-innerhtml":"warn","@eslint-react/dom/no-dangerously-set-innerhtml-with-children":"error","@eslint-react/dom/no-find-dom-node":"error","@eslint-react/dom/no-flush-sync":"error","@eslint-react/dom/no-hydrate":"error","@eslint-react/dom/no-namespace":"error","@eslint-react/dom/no-render":"error","@eslint-react/dom/no-render-return-value":"error","@eslint-react/dom/no-script-url":"warn","@eslint-react/dom/no-unsafe-iframe-sandbox":"warn","@eslint-react/dom/no-use-form-state":"error","@eslint-react/dom/no-void-elements-with-children":"error"},A9={"@eslint-react/dom":A3};var De=A4({name:()=>Dt,plugins:()=>Dr,rules:()=>Dn,settings:()=>Di});let Dt="@eslint-react/x",Dn={"@eslint-react/jsx-key-before-spread":"warn","@eslint-react/jsx-no-comment-textnodes":"warn","@eslint-react/jsx-no-duplicate-props":"warn","@eslint-react/jsx-uses-react":"warn","@eslint-react/jsx-uses-vars":"warn","@eslint-react/no-access-state-in-setstate":"error","@eslint-react/no-array-index-key":"warn","@eslint-react/no-children-count":"warn","@eslint-react/no-children-for-each":"warn","@eslint-react/no-children-map":"warn","@eslint-react/no-children-only":"warn","@eslint-react/no-children-to-array":"warn","@eslint-react/no-clone-element":"warn","@eslint-react/no-component-will-mount":"error","@eslint-react/no-component-will-receive-props":"error","@eslint-react/no-component-will-update":"error","@eslint-react/no-context-provider":"warn","@eslint-react/no-create-ref":"error","@eslint-react/no-default-props":"error","@eslint-react/no-direct-mutation-state":"error","@eslint-react/no-duplicate-key":"error","@eslint-react/no-forward-ref":"warn","@eslint-react/no-implicit-key":"warn","@eslint-react/no-missing-key":"error","@eslint-react/no-nested-component-definitions":"error","@eslint-react/no-nested-lazy-component-declarations":"error","@eslint-react/no-prop-types":"error","@eslint-react/no-redundant-should-component-update":"error","@eslint-react/no-set-state-in-component-did-mount":"warn","@eslint-react/no-set-state-in-component-did-update":"warn","@eslint-react/no-set-state-in-component-will-update":"warn","@eslint-react/no-string-refs":"error","@eslint-react/no-unnecessary-use-prefix":"warn","@eslint-react/no-unsafe-component-will-mount":"warn","@eslint-react/no-unsafe-component-will-receive-props":"warn","@eslint-react/no-unsafe-component-will-update":"warn","@eslint-react/no-unused-class-component-members":"warn","@eslint-react/no-use-context":"warn","@eslint-react/no-useless-forward-ref":"warn","@eslint-react/prefer-use-state-lazy-initialization":"warn"},Dr={"@eslint-react":wC},Di={"react-x":_L};var Da=A4({name:()=>Do,plugins:()=>Dl,rules:()=>Ds,settings:()=>Dc});let Do="@eslint-react/all",Ds={"@eslint-react/jsx-key-before-spread":"warn","@eslint-react/jsx-no-comment-textnodes":"warn","@eslint-react/jsx-no-duplicate-props":"warn","@eslint-react/jsx-no-iife":"warn","@eslint-react/jsx-no-undef":"error","@eslint-react/jsx-shorthand-boolean":"warn","@eslint-react/jsx-shorthand-fragment":"warn","@eslint-react/jsx-uses-react":"warn","@eslint-react/jsx-uses-vars":"warn","@eslint-react/no-access-state-in-setstate":"error","@eslint-react/no-array-index-key":"warn","@eslint-react/no-children-count":"warn","@eslint-react/no-children-for-each":"warn","@eslint-react/no-children-map":"warn","@eslint-react/no-children-only":"warn","@eslint-react/no-children-prop":"warn","@eslint-react/no-children-to-array":"warn","@eslint-react/no-class-component":"warn","@eslint-react/no-clone-element":"warn","@eslint-react/no-component-will-mount":"error","@eslint-react/no-component-will-receive-props":"error","@eslint-react/no-component-will-update":"error","@eslint-react/no-context-provider":"warn","@eslint-react/no-create-ref":"error","@eslint-react/no-default-props":"error","@eslint-react/no-direct-mutation-state":"error","@eslint-react/no-duplicate-key":"error","@eslint-react/no-forbidden-props":"off","@eslint-react/no-forward-ref":"warn","@eslint-react/no-implicit-key":"warn","@eslint-react/no-leaked-conditional-rendering":"off","@eslint-react/no-missing-component-display-name":"warn","@eslint-react/no-missing-context-display-name":"warn","@eslint-react/no-missing-key":"error","@eslint-react/no-misused-capture-owner-stack":"error","@eslint-react/no-nested-component-definitions":"error","@eslint-react/no-nested-lazy-component-declarations":"error","@eslint-react/no-prop-types":"error","@eslint-react/no-redundant-should-component-update":"error","@eslint-react/no-set-state-in-component-did-mount":"warn","@eslint-react/no-set-state-in-component-did-update":"warn","@eslint-react/no-set-state-in-component-will-update":"warn","@eslint-react/no-string-refs":"error","@eslint-react/no-unnecessary-key":"warn","@eslint-react/no-unnecessary-use-callback":"warn","@eslint-react/no-unnecessary-use-memo":"warn","@eslint-react/no-unnecessary-use-prefix":"warn","@eslint-react/no-unsafe-component-will-mount":"warn","@eslint-react/no-unsafe-component-will-receive-props":"warn","@eslint-react/no-unsafe-component-will-update":"warn","@eslint-react/no-unstable-context-value":"warn","@eslint-react/no-unstable-default-props":"warn","@eslint-react/no-unused-class-component-members":"warn","@eslint-react/no-unused-props":"off","@eslint-react/no-unused-state":"warn","@eslint-react/no-use-context":"warn","@eslint-react/no-useless-forward-ref":"warn","@eslint-react/no-useless-fragment":"warn","@eslint-react/prefer-destructuring-assignment":"warn","@eslint-react/prefer-namespace-import":"warn","@eslint-react/prefer-read-only-props":"off","@eslint-react/prefer-use-state-lazy-initialization":"warn","@eslint-react/dom/no-dangerously-set-innerhtml":"warn","@eslint-react/dom/no-dangerously-set-innerhtml-with-children":"error","@eslint-react/dom/no-find-dom-node":"error","@eslint-react/dom/no-flush-sync":"error","@eslint-react/dom/no-hydrate":"error","@eslint-react/dom/no-missing-button-type":"warn","@eslint-react/dom/no-missing-iframe-sandbox":"warn","@eslint-react/dom/no-namespace":"error","@eslint-react/dom/no-render":"error","@eslint-react/dom/no-render-return-value":"error","@eslint-react/dom/no-script-url":"warn","@eslint-react/dom/no-string-style-prop":"error","@eslint-react/dom/no-unknown-property":"warn","@eslint-react/dom/no-unsafe-iframe-sandbox":"warn","@eslint-react/dom/no-unsafe-target-blank":"warn","@eslint-react/dom/no-use-form-state":"warn","@eslint-react/dom/no-void-elements-with-children":"error","@eslint-react/dom/prefer-namespace-import":"warn","@eslint-react/web-api/no-leaked-event-listener":"warn","@eslint-react/web-api/no-leaked-interval":"warn","@eslint-react/web-api/no-leaked-resize-observer":"warn","@eslint-react/web-api/no-leaked-timeout":"warn","@eslint-react/hooks-extra/no-direct-set-state-in-use-effect":"warn","@eslint-react/naming-convention/component-name":"warn","@eslint-react/naming-convention/context-name":"warn","@eslint-react/naming-convention/filename":"off","@eslint-react/naming-convention/filename-extension":"off","@eslint-react/naming-convention/use-state":"warn"},Dl={...Dr,...A9,"@eslint-react/hooks-extra":wL,"@eslint-react/naming-convention":wG,"@eslint-react/web-api":w9},Dc={...Di};var Du=A4({name:()=>D_,rules:()=>Dd});let D_="@eslint-react/disable-conflict-eslint-plugin-react",Dd=Object.fromEntries(["react/button-has-type","react/destructuring-assignment","react/display-name","react/forbid-prop-types","react/forward-ref-uses-ref","react/hook-use-state","react/iframe-missing-sandbox","react/jsx-boolean-value","react/jsx-filename-extension","react/jsx-fragments","react/jsx-key","react/jsx-no-comment-textnodes","react/jsx-no-constructed-context-values","react/jsx-no-duplicate-props","react/jsx-no-leaked-render","react/jsx-no-script-url","react/jsx-no-target-blank","react/jsx-no-undef","react/jsx-no-useless-fragment","react/jsx-pascal-case","react/jsx-uses-react","react/jsx-uses-vars","react/no-access-state-in-setstate","react/no-array-index-key","react/no-children-prop","react/no-danger","react/no-danger-with-children","react/no-deprecated","react/no-did-mount-set-state","react/no-did-update-set-state","react/no-direct-mutation-state","react/no-find-dom-node","react/no-namespace","react/no-object-type-as-default-prop","react/no-redundant-should-component-update","react/no-render-return-value","react/no-string-refs","react/no-unknown-property","react/no-unsafe","react/no-unstable-nested-components","react/no-unused-class-component-members","react/no-unused-state","react/no-will-update-set-state","react/prefer-read-only-props","react/prop-types","react/void-dom-elements-no-children"].map(e=>[e,"off"]));var Dp=A4({name:()=>Df,rules:()=>Dm});let Df="@eslint-react/disable-dom",Dm=Object.fromEntries(Object.entries(A7).map(([e])=>[e,"off"]));var Dg=A4({name:()=>Dh,rules:()=>Dy});let Dh="@eslint-react/disable-type-checked",Dy={"@eslint-react/no-leaked-conditional-rendering":"off","@eslint-react/no-unused-props":"off","@eslint-react/prefer-read-only-props":"off"};var Dv=A4({name:()=>Db,plugins:()=>DS,rules:()=>DT,settings:()=>Dx});let Db="@eslint-react/web-api",DT={"@eslint-react/web-api/no-leaked-event-listener":"warn","@eslint-react/web-api/no-leaked-interval":"warn","@eslint-react/web-api/no-leaked-resize-observer":"warn","@eslint-react/web-api/no-leaked-timeout":"warn"},DS={"@eslint-react/web-api":w9},Dx={...Di};var DE=A4({name:()=>Dk,rules:()=>DP});let Dk="@eslint-react/disable-web-api",DP=Object.fromEntries(Object.entries(DT).map(([e])=>[e,"off"]));var DC=A4({name:()=>Dw,plugins:()=>DD,rules:()=>DA});let Dw="@eslint-react/no-deprecated",DA={"@eslint-react/no-component-will-mount":"error","@eslint-react/no-component-will-receive-props":"error","@eslint-react/no-component-will-update":"error","@eslint-react/no-create-ref":"error","@eslint-react/no-forward-ref":"error","@eslint-react/dom/no-find-dom-node":"error","@eslint-react/dom/no-hydrate":"error","@eslint-react/dom/no-render":"error","@eslint-react/dom/no-render-return-value":"error"},DD={...Dr,...A9};var DN=A4({name:()=>DF,rules:()=>DO});let DF="@eslint-react/off",DO={...Object.fromEntries(Object.entries(Ds).map(([e])=>[e,"off"])),...Dy};var DI=A4({name:()=>DL,plugins:()=>DR,rules:()=>DM,settings:()=>Dj});let DL="@eslint-react/recommended",DM={...Dn,...A7,...DT,"@eslint-react/hooks-extra/no-direct-set-state-in-use-effect":"warn","@eslint-react/naming-convention/context-name":"warn","@eslint-react/naming-convention/use-state":"warn"},DR={...Dr,...A9,...DS,"@eslint-react/hooks-extra":wL,"@eslint-react/naming-convention":wG},Dj={...Di};var DY=A4({name:()=>DU,plugins:()=>DV,rules:()=>DB,settings:()=>DJ});let DU="@eslint-react/recommended-typescript",DB={...DM,"@eslint-react/dom/no-string-style-prop":"off","@eslint-react/dom/no-unknown-property":"off","@eslint-react/jsx-no-duplicate-props":"off","@eslint-react/jsx-no-undef":"off","@eslint-react/jsx-uses-react":"off","@eslint-react/jsx-uses-vars":"off"},DV={...DR},DJ={...Dj};var Dz=A4({name:()=>Dq,plugins:()=>DW,rules:()=>D$,settings:()=>DK});let Dq="@eslint-react/recommended-type-checked",D$={...DB,"@eslint-react/no-leaked-conditional-rendering":"error"},DW={...DV},DK={...DJ};var DH=A4({name:()=>DG,plugins:()=>DQ,rules:()=>DX,settings:()=>DZ});let DG="@eslint-react/strict",DX={...DM,"@eslint-react/jsx-no-iife":"error","@eslint-react/no-children-prop":"error","@eslint-react/no-class-component":"error","@eslint-react/no-misused-capture-owner-stack":"error","@eslint-react/no-unnecessary-key":"warn","@eslint-react/no-unnecessary-use-callback":"warn","@eslint-react/no-unnecessary-use-memo":"warn","@eslint-react/no-unstable-context-value":"warn","@eslint-react/no-unstable-default-props":"warn","@eslint-react/no-unused-state":"warn","@eslint-react/no-useless-fragment":"warn","@eslint-react/prefer-destructuring-assignment":"warn","@eslint-react/dom/no-missing-button-type":"warn","@eslint-react/dom/no-missing-iframe-sandbox":"warn","@eslint-react/dom/no-unsafe-target-blank":"warn"},DQ={...DR},DZ={...Dj};var D0=A4({name:()=>D1,plugins:()=>D3,rules:()=>D2,settings:()=>D6});let D1="@eslint-react/strict-typescript",D2={...DX,...DB},D3={...DQ},D6={...DZ};var D4=A4({name:()=>D8,plugins:()=>D7,rules:()=>D5,settings:()=>D9});let D8="@eslint-react/strict-type-checked",D5={...D2,"@eslint-react/no-leaked-conditional-rendering":"error","@eslint-react/no-unused-props":"warn"},D7={...D3},D9={...D6},Ne={meta:{name:"@eslint-react/eslint-plugin",version:"2.3.5"},configs:{all:Da,"disable-conflict-eslint-plugin-react":Du,"disable-dom":Dp,"disable-type-checked":Dg,"disable-web-api":DE,dom:A8,"no-deprecated":DC,off:DN,recommended:DI,"recommended-type-checked":Dz,"recommended-typescript":DY,strict:DH,"strict-type-checked":D4,"strict-typescript":D0,"web-api":Dv,x:De},rules:{...wC.rules}},Nt=sb.memo(Ne,"@eslint-react/eslint-plugin"),Nn=sb.memo(sj.fixupPluginRules(sR),"eslint-plugin-ssr-friendly");async function Nr({files:e=[sb.constants.GLOB_TS,sb.constants.GLOB_TSX,sb.constants.GLOB_JSX],reactCompiler:t,additionalHooks:n="(useIsomorphicLayoutEffect|useSukkaManyOtherCustomEffectHookExample|useAbortableEffect)",nextjs:r=!1,remix:i=!1,reactRefresh:a={},additionalHooksWithType:o={useLayoutEffect:["useIsomorphicLayoutEffect"],useEffect:["useAbortableEffect"]},additionalComponents:s=[{name:"Link",as:"a",attributes:[{name:"to",as:"href"},{name:"rel",as:"rel"}]}]}={}){let{allowConstantExport:l=!1}=a;e="function"==typeof e?e([sb.constants.GLOB_TS,sb.constants.GLOB_TSX,sb.constants.GLOB_JSX]):sU.castArray(e);let c=[sb.UNSAFE_excludeJsonYamlFiles({name:"@eslint-sukka/react base",files:e,plugins:{"@stylistic":sb.memo(sM.stylistic_eslint_plugin,"@stylistic/eslint-plugin"),"react-prefer-function-component":sb.memo(s8,"eslint-plugin-react-prefer-function-component"),...Nt.configs.recommended.plugins,"ssr-friendly":Nn,"react-refresh":sx},settings:{"react-x":{version:"detect",additionalHooks:o,additionalComponents:s}},languageOptions:{globals:sb.globals.browser},rules:{"@stylistic/jsx-pascal-case":["error",{allowAllCaps:!0,ignore:[]}],...Nt.configs.recommended.rules,"@eslint-react/no-string-refs":"error","@eslint-react/jsx-no-comment-textnodes":"error","@eslint-react/dom/no-unsafe-target-blank":"error","@eslint-react/no-children-prop":"error","@eslint-react/dom/no-dangerously-set-innerhtml-with-children":"error","@eslint-react/dom/no-render-return-value":"error","@eslint-react/no-direct-mutation-state":"error","@eslint-react/dom/no-find-dom-node":"error","@eslint-react/no-unsafe-component-will-mount":"warn","@eslint-react/no-unsafe-component-will-receive-props":"warn","@eslint-react/no-unsafe-component-will-update":"warn","@eslint-react/prefer-destructuring-assignment":"warn","@eslint-react/no-unused-state":"error","@eslint-react/no-access-state-in-setstate":"error","@eslint-react/dom/no-script-url":"error","@eslint-react/no-unused-class-component-members":"error","@eslint-react/naming-convention/component-name":["error",{rule:"PascalCase"}],"@eslint-react/naming-convention/filename":["error",{rule:"kebab-case"}],"@eslint-react/naming-convention/filename-extension":["error",{allow:"as-needed"}],"@eslint-react/naming-convention/use-state":"error","react-prefer-function-component/react-prefer-function-component":"error","@stylistic/jsx-self-closing-comp":"error","@eslint-react/jsx-shorthand-boolean":"error","@stylistic/jsx-curly-spacing":["error","never",{allowMultiline:!0}],"@stylistic/jsx-indent-props":["error",2],"@stylistic/jsx-max-props-per-line":["error",{maximum:1,when:"multiline"}],"@stylistic/jsx-wrap-multilines":["error",{declaration:"parens-new-line",assignment:"parens-new-line",return:"parens-new-line",arrow:"parens-new-line",condition:"ignore",logical:"ignore",prop:"ignore"}],"@stylistic/jsx-first-prop-new-line":["error","multiline-multiprop"],"@stylistic/jsx-function-call-newline":["error","multiline"],"@stylistic/jsx-equals-spacing":["error","never"],"@stylistic/jsx-indent":"off","@stylistic/jsx-child-element-spacing":"error","@stylistic/jsx-closing-bracket-location":["error","line-aligned"],"@stylistic/jsx-tag-spacing":["error",{closingSlash:"never",beforeSelfClosing:"always",afterOpening:"never",beforeClosing:"never"}],"@eslint-react/dom/no-void-elements-with-children":"error","@stylistic/jsx-curly-brace-presence":["error",{props:"never",children:"never"}],"@eslint-react/jsx-shorthand-fragment":"error","@stylistic/jsx-curly-newline":["error",{multiline:"consistent",singleline:"consistent"}],"@eslint-react/no-missing-key":"error","@eslint-react/no-array-index-key":"error","@eslint-react/no-duplicate-key":"error","@eslint-react/no-implicit-key":"error","@eslint-react/jsx-uses-react":"off","@eslint-react/no-useless-fragment":"error","@eslint-react/no-unstable-context-value":"error","@eslint-react/no-nested-component-definitions":"error","@eslint-react/dom/no-missing-iframe-sandbox":"warn","@eslint-react/dom/no-unsafe-iframe-sandbox":"warn","@eslint-react/no-leaked-conditional-rendering":"error","@eslint-react/no-unstable-default-props":"error","@eslint-react/dom/no-missing-button-type":"error","@eslint-react/dom/no-namespace":"error","@eslint-react/no-unnecessary-use-callback":"error","@eslint-react/no-unnecessary-use-memo":"error","@eslint-react/no-unnecessary-use-prefix":"error","@eslint-react/prefer-use-state-lazy-initialization":"error","@typescript-eslint/class-methods-use-this":["error",{exceptMethods:["render","getInitialState","getDefaultProps","getChildContext","componentWillMount","UNSAFE_componentWillMount","componentDidMount","componentWillReceiveProps","UNSAFE_componentWillReceiveProps","shouldComponentUpdate","componentWillUpdate","UNSAFE_componentWillUpdate","componentDidUpdate","componentWillUnmount","componentDidCatch","getSnapshotBeforeUpdate"],ignoreClassesThatImplementAnInterface:"public-fields"}],"react-refresh/only-export-components":["warn",{allowConstantExport:l,allowExportNames:[...r?["config","generateStaticParams","metadata","generateMetadata","viewport","generateViewport"]:[],...i?["meta","links","headers","loader","action"]:[]]}]}}),sb.withFiles(sb.UNSAFE_excludeJsonYamlFiles({...sS.configs.flat["recommended-latest"],rules:{...sS.configs.flat["recommended-latest"].rules,"react-hooks/exhaustive-deps":["error",{additionalHooks:n}]}}),e),sb.withFiles(sb.UNSAFE_excludeJsonYamlFiles(sY.eslint_plugin_jsx_a11y_minimal.configs.minimal),e),{name:"@eslint-sukka/react next.js/nextra naming convention",files:["**/app/**/_*.cjs",String.raw`**/app/**/\[*.?([cm])[j]s?(x)`,"**/pages/_(app|document).?([cm])[jt]s?(x)"],rules:{"@eslint-react/naming-convention/filename":"off"}}];if(t){let{default:t}=await import("eslint-plugin-react-compiler");c.push(sb.withFiles(sb.UNSAFE_excludeJsonYamlFiles(t.configs.recommended),e))}return c}async function Ni({opt:e={}}={}){return[{plugins:{"@stylexjs":(await import("@stylexjs/eslint-plugin")).default},files:[sb.constants.GLOB_TS,sb.constants.GLOB_TSX,sb.constants.GLOB_JSX],rules:{"@stylexjs/valid-styles":["error",e],"@stylexjs/valid-shorthands":["error",e],"@stylexjs/sort-keys":"off"}}]}exports.next=function(){return[{...sT.configs["core-web-vitals"],files:[sb.constants.GLOB_TS,sb.constants.GLOB_TSX,sb.constants.GLOB_JSX],rules:{...sT.configs["core-web-vitals"].rules,"@next/next/no-img-element":"off"}}]},exports.react=Nr,exports.stylex=Ni;
|