@eslint-sukka/react 8.6.5 → 8.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +2 -2
- package/package.json +5 -5
package/dist/index.cjs
CHANGED
|
@@ -417,4 +417,4 @@ If you absolutely need more files included, set parserOptions.projectService.max
|
|
|
417
417
|
`)}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),x=e.service.getScriptInfo(E),(S=e.service.getDefaultProjectForFile(x.fileName,!0).getLanguageService(!0).getProgram())?(p("Found project service program for: %s",E),(0,c.createProjectProgram)(t,[S])):void p("Could not find project service program for: %s",E)};let a=i(hg()),o=i(hk),s=i(T4),l=r(he()),c=vK(),u=vH(),_=hC(),d=v8(),p=(0,a.default)("typescript-eslint:typescript-estree:useProgramFromProjectService"),f=new WeakMap;return Tm}(),p=(0,t.default)("typescript-eslint:typescript-estree:parser"),f=new Map,m=new Set,g={};return hA}var T5={};function T7(){var e,t,n,r,i,a,o,s,l,c,u;return aE?hn:(aE=1,e=hn&&hn.__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=hn&&hn.__exportStar||function(t,n){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||e(n,t,r)},Object.defineProperty(hn,"__esModule",{value:!0}),hn.withoutProjectParserOptions=hn.version=hn.typescriptVersionIsAtLeast=hn.simpleTraverse=hn.clearCandidateTSConfigRootDirs=hn.addCandidateTSConfigRootDir=hn.parseAndGenerateServices=hn.parse=hn.TSError=hn.createProgram=hn.getCanonicalFileName=void 0,t(function(){if(ax)return hr;ax=1,Object.defineProperty(hr,"__esModule",{value:!0}),hr.clearProgramCache=void 0,hr.clearCaches=a;let e=hw(),t=T8(),n=v7(),r=Tp(),i=Tc();function a(){(0,n.clearCandidateTSConfigRootDirs)(),(0,t.clearDefaultProjectMatchedFiles)(),(0,t.clearProgramCache)(),(0,e.clearWatchCaches)(),(0,r.clearTSConfigMatchCache)(),(0,r.clearTSServerProjectService)(),(0,i.clearGlobCache)()}return hr.clearProgramCache=a,hr}(),hn),t(vz(),hn),n=hC(),Object.defineProperty(hn,"getCanonicalFileName",{enumerable:!0,get:function(){return n.getCanonicalFileName}}),r=vQ(),Object.defineProperty(hn,"createProgram",{enumerable:!0,get:function(){return r.createProgramFromConfigFile}}),t(h4(),hn),i=yn(),Object.defineProperty(hn,"TSError",{enumerable:!0,get:function(){return i.TSError}}),a=T8(),Object.defineProperty(hn,"parse",{enumerable:!0,get:function(){return a.parse}}),Object.defineProperty(hn,"parseAndGenerateServices",{enumerable:!0,get:function(){return a.parseAndGenerateServices}}),o=v7(),Object.defineProperty(hn,"addCandidateTSConfigRootDir",{enumerable:!0,get:function(){return o.addCandidateTSConfigRootDir}}),Object.defineProperty(hn,"clearCandidateTSConfigRootDirs",{enumerable:!0,get:function(){return o.clearCandidateTSConfigRootDirs}}),s=vU(),Object.defineProperty(hn,"simpleTraverse",{enumerable:!0,get:function(){return s.simpleTraverse}}),t(yt(),hn),l=h6(),Object.defineProperty(hn,"typescriptVersionIsAtLeast",{enumerable:!0,get:function(){return l.typescriptVersionIsAtLeast}}),c=Td(),Object.defineProperty(hn,"version",{enumerable:!0,get:function(){return c.version}}),aS||(aS=1,Object.defineProperty(T5,"__esModule",{value:!0}),T5.withoutProjectParserOptions=function(e){let{EXPERIMENTAL_useProjectService:t,project:n,projectService:r,...i}=e;return i}),u=T5,Object.defineProperty(hn,"withoutProjectParserOptions",{enumerable:!0,get:function(){return u.withoutProjectParserOptions}}),hn)}var T9=T7();function xe(e,t=""){return e.join(t)}function xt(e,t=0,n){return e.slice(t,n)}function xn(e){return e.toLowerCase()}function xr(e){return function(e,t=""){if("function"==typeof e.replaceAll)return e.replaceAll("'",t);let n=RegExp("'","g");return e.replace(n,t)}(e,"")}var xi=["[","]","{","}","(",")","|","/","-","\\"],xa=[...xi," ","_","."],xo=RegExp(`[${xa.map(function(e){return xi.includes(e)?`\\${e}`:e}).join("")}]`,"g");function xs(e){return e.replace(xo," ").replace(/([a-zA-Z])([0-9])/g,"$1 $2").replace(/([0-9])([a-zA-Z])/g,"$1 $2").replace(/([a-zA-Z0-9_\-./])([^a-zA-Z0-9_\-./'])/g,"$1 $2").replace(/([^a-zA-Z0-9_\-./'])([a-zA-Z0-9_\-./])/g,"$1 $2").replace(/([a-z])([A-Z])/g,"$1 $2").replace(/([A-Z])([A-Z][a-z])/g,"$1 $2").trim().split(/\s+/g)}function xl(e){return xe(xs(xr(e)).map(e=>{var t;return xe([((t=xn(e)).charAt(0)??"").toUpperCase(),xt(t,1)])}))}function xc(e,t){return xe(xs(xr(e)),t)}function xu(e){return xn(xc(xr(e),"_"))}function x_(e){return null!=e.id?e.id:e.parent.type===uF.AST_NODE_TYPES.VariableDeclarator?e.parent.id:t}function xd(e,t){if(e.type!==uF.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}}function xp(e){return e.type===uF.AST_NODE_TYPES.ExpressionStatement&&null!=e.directive}let xf=gV.ASTUtils.isNodeOfType,xm=gV.ASTUtils.isNodeOfTypes,xg=xm([uF.AST_NODE_TYPES.ArrowFunctionExpression,uF.AST_NODE_TYPES.FunctionDeclaration,uF.AST_NODE_TYPES.FunctionExpression]);xm([uF.AST_NODE_TYPES.ArrowFunctionExpression,uF.AST_NODE_TYPES.FunctionDeclaration,uF.AST_NODE_TYPES.FunctionExpression,uF.AST_NODE_TYPES.TSCallSignatureDeclaration,uF.AST_NODE_TYPES.TSConstructSignatureDeclaration,uF.AST_NODE_TYPES.TSDeclareFunction,uF.AST_NODE_TYPES.TSEmptyBodyFunctionExpression,uF.AST_NODE_TYPES.TSFunctionType,uF.AST_NODE_TYPES.TSMethodSignature]);let xh=xm([uF.AST_NODE_TYPES.ClassDeclaration,uF.AST_NODE_TYPES.ClassExpression]),xy=xm([uF.AST_NODE_TYPES.PropertyDefinition,uF.AST_NODE_TYPES.MethodDefinition]);xm([uF.AST_NODE_TYPES.PropertyDefinition,uF.AST_NODE_TYPES.TSIndexSignature,uF.AST_NODE_TYPES.TSParameterProperty,uF.AST_NODE_TYPES.TSPropertySignature]);let xv=xf(uF.AST_NODE_TYPES.JSXElement);xf(uF.AST_NODE_TYPES.JSXFragment);let xb=xm([uF.AST_NODE_TYPES.JSXIdentifier,uF.AST_NODE_TYPES.JSXMemberExpression,uF.AST_NODE_TYPES.JSXNamespacedName]),xT=xm([uF.AST_NODE_TYPES.JSXAttribute,uF.AST_NODE_TYPES.JSXClosingElement,uF.AST_NODE_TYPES.JSXClosingFragment,uF.AST_NODE_TYPES.JSXElement,uF.AST_NODE_TYPES.JSXEmptyExpression,uF.AST_NODE_TYPES.JSXExpressionContainer,uF.AST_NODE_TYPES.JSXFragment,uF.AST_NODE_TYPES.JSXIdentifier,uF.AST_NODE_TYPES.JSXMemberExpression,uF.AST_NODE_TYPES.JSXNamespacedName,uF.AST_NODE_TYPES.JSXOpeningElement,uF.AST_NODE_TYPES.JSXOpeningFragment,uF.AST_NODE_TYPES.JSXSpreadAttribute,uF.AST_NODE_TYPES.JSXSpreadChild,uF.AST_NODE_TYPES.JSXText]),xx=oj(xm([uF.AST_NODE_TYPES.DoWhileStatement,uF.AST_NODE_TYPES.ForInStatement,uF.AST_NODE_TYPES.ForOfStatement,uF.AST_NODE_TYPES.ForStatement,uF.AST_NODE_TYPES.WhileStatement]),xm([uF.AST_NODE_TYPES.IfStatement,uF.AST_NODE_TYPES.SwitchStatement])),xS=oj(xx,xm([uF.AST_NODE_TYPES.LogicalExpression,uF.AST_NODE_TYPES.ConditionalExpression])),xE=xm([uF.AST_NODE_TYPES.TSAsExpression,uF.AST_NODE_TYPES.TSTypeAssertion,uF.AST_NODE_TYPES.TSNonNullExpression,uF.AST_NODE_TYPES.TSSatisfiesExpression,uF.AST_NODE_TYPES.TSInstantiationExpression]),xk=xm([uF.AST_NODE_TYPES.TSAsExpression,uF.AST_NODE_TYPES.TSTypeAssertion,uF.AST_NODE_TYPES.TSNonNullExpression,uF.AST_NODE_TYPES.TSSatisfiesExpression]);function xP(e){return xE(e)?xP(e.expression):e}let xC=oU(2,(e,t)=>{switch(e=xE(e)?xP(e):e,t=xE(t)?xP(t):t,!0){case e===t:return!0;case e.type!==t.type:return!1;case e.type===uF.AST_NODE_TYPES.Literal&&t.type===uF.AST_NODE_TYPES.Literal:return e.value===t.value;case e.type===uF.AST_NODE_TYPES.TemplateElement&&t.type===uF.AST_NODE_TYPES.TemplateElement:return e.value.raw===t.value.raw;case e.type===uF.AST_NODE_TYPES.TemplateLiteral&&t.type===uF.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===uF.AST_NODE_TYPES.Identifier&&t.type===uF.AST_NODE_TYPES.Identifier:case e.type===uF.AST_NODE_TYPES.PrivateIdentifier&&t.type===uF.AST_NODE_TYPES.PrivateIdentifier:return e.name===t.name;case e.type===uF.AST_NODE_TYPES.MemberExpression&&t.type===uF.AST_NODE_TYPES.MemberExpression:return xC(e.property,t.property)&&xC(e.object,t.object);case e.type===uF.AST_NODE_TYPES.JSXAttribute&&t.type===uF.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===uF.AST_NODE_TYPES.ThisExpression&&t.type===uF.AST_NODE_TYPES.ThisExpression:return!0;default:return!1}});function xw(e){return xP(e).type===uF.AST_NODE_TYPES.ThisExpression}function xA(e,n){if(null==e)return t;let r=e.parent;for(;null!=r&&r.type!==uF.AST_NODE_TYPES.Program;){if(n(r))return r;r=r.parent}return t}function xD(e){let t=xf(e);return n=>{let r=xD(e),i=[];if(t(n)&&i.push(n),"arguments"in n){let t=n.arguments.flatMap(xD(e));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.flatMap(r):r(n.consequent);i.push(...e)}if("alternate"in n&&null!=n.alternate){let e=Array.isArray(n.alternate)?n.alternate.flatMap(r):r(n.alternate);i.push(...e)}if("elements"in n){let t=n.elements.filter(e=>null!=e).flatMap(xD(e));i.push(...t)}if("properties"in n){let e=n.properties.flatMap(r);i.push(...e)}if("expressions"in n){let e=n.expressions.flatMap(r);i.push(...e)}if(n.type===uF.AST_NODE_TYPES.Property){let e=r(n.value);i.push(...e)}if(n.type===uF.AST_NODE_TYPES.SpreadElement){let e=r(n.argument);i.push(...e)}if(n.type===uF.AST_NODE_TYPES.MemberExpression){let e=r(n.object);i.push(...e)}if(n.type===uF.AST_NODE_TYPES.UnaryExpression){let e=r(n.argument);i.push(...e)}if(n.type===uF.AST_NODE_TYPES.ChainExpression){let e=r(n.expression);i.push(...e)}if(n.type===uF.AST_NODE_TYPES.TSNonNullExpression){let e=r(n.expression);i.push(...e)}if(n.type===uF.AST_NODE_TYPES.TSAsExpression){let e=r(n.expression);i.push(...e)}if(n.type===uF.AST_NODE_TYPES.TSSatisfiesExpression){let e=r(n.expression);i.push(...e)}return i}}let xN=xD(uF.AST_NODE_TYPES.NewExpression),xF=xD(uF.AST_NODE_TYPES.CallExpression);function xO(e){let t=[];for(let n of e.body)xp(n)&&t.push(n);return t}function xI(e){let t=[];if(e.body.type!==uF.AST_NODE_TYPES.BlockStatement)return t;for(let n of e.body.body)xp(n)&&t.push(n);return t}function xL(e){switch(!0){case"id"in e&&null!=e.id:return e.id;case e.parent.type===uF.AST_NODE_TYPES.VariableDeclarator&&e.parent.init===e:return e.parent.id;case e.parent.type===uF.AST_NODE_TYPES.AssignmentExpression&&e.parent.right===e&&"="===e.parent.operator:return e.parent.left;case e.parent.type===uF.AST_NODE_TYPES.Property&&e.parent.value===e&&!e.parent.computed:case xy(e.parent)&&e.parent.value===e:return e.parent.key;case e.parent.type===uF.AST_NODE_TYPES.AssignmentPattern&&e.parent.right===e:return e.parent.left;case xk(e.parent):return xL(e.parent)}return t}function xM(e,t){return t.some(t=>{if(t.type!==uF.AST_NODE_TYPES.CallExpression)return!1;let{callee:n}=t;return n.type===uF.AST_NODE_TYPES.Identifier?n.name===e:n.type===uF.AST_NODE_TYPES.MemberExpression&&"name"in n.property&&n.property.name===e})}function xR(e,t){return null!=e&&e.type===uF.AST_NODE_TYPES.Identifier&&(null==t||e.name===t)}function xj(e,t=" "){return e.type===uF.AST_NODE_TYPES.Literal?"regex"in e?"RegExp literal":null===e.value?"null literal":`${typeof e.value} literal`:xT(e)?`JSX ${xn(xc(function(e,t=""){return e.replace("JSX",t)}(e.type,""),t))}`:xn(xc(e.type,t))}function xY(e,t){switch(e.type){case uF.AST_NODE_TYPES.Identifier:case uF.AST_NODE_TYPES.JSXIdentifier:case uF.AST_NODE_TYPES.PrivateIdentifier:return e.name;case uF.AST_NODE_TYPES.MemberExpression:case uF.AST_NODE_TYPES.JSXMemberExpression:return`${xY(e.object,t)}.${xY(e.property,t)}`;case uF.AST_NODE_TYPES.JSXNamespacedName:return`${e.namespace.name}:${e.name.name}`;case uF.AST_NODE_TYPES.JSXText:return e.value;case uF.AST_NODE_TYPES.Literal:return e.raw;default:return t(e)}}function xB(e){return null!=e&&e.type===uF.AST_NODE_TYPES.MemberExpression&&e.object.type===uF.AST_NODE_TYPES.MemberExpression&&e.object.object.type===uF.AST_NODE_TYPES.Identifier&&"process"===e.object.object.name&&e.object.property.type===uF.AST_NODE_TYPES.Identifier&&"env"===e.object.property.name&&e.property.type===uF.AST_NODE_TYPES.Identifier&&"NODE_ENV"===e.property.name}function xU(e){return xE(e)?xU(xP(e)):e.type===uF.AST_NODE_TYPES.Identifier||e.type===uF.AST_NODE_TYPES.PrivateIdentifier?e.name:e.type===uF.AST_NODE_TYPES.Literal?String(e.value):e.type===uF.AST_NODE_TYPES.TemplateLiteral&&0===e.expressions.length?e.quasis[0]?.value.raw:t}let xV="AssignmentExpression[operator='='][left.type='MemberExpression'][left.property.name='displayName']";function xJ(e){var t;return null!=e&&xg(e)&&e.parent.type===uF.AST_NODE_TYPES.CallExpression&&null!=(t=e.parent.callee)&&t.type===uF.AST_NODE_TYPES.MemberExpression&&t.object.type===uF.AST_NODE_TYPES.Identifier&&"vi"===t.object.name&&t.property.type===uF.AST_NODE_TYPES.Identifier&&"mock"===t.property.name&&e.parent.arguments[1]===e}var xz=gM(),xq=_W();function x$(e){switch(!0){case e.type===uF.AST_NODE_TYPES.VariableDeclarator:return e.id;case e.type===uF.AST_NODE_TYPES.AssignmentExpression:return e.left;case e.type===uF.AST_NODE_TYPES.PropertyDefinition:return e.key;case e.type===uF.AST_NODE_TYPES.BlockStatement||e.type===uF.AST_NODE_TYPES.Program||e.parent===e:return t;default:return x$(e.parent)}}let xW=oU(2,(e,n)=>null==e?t:xq.findVariable(n,e)??t);function xK(e,n){let r=xW(e,n)?.defs.at(-1);if(null==r)return t;let{node:i,parent:a}=r;if(i.type===uF.AST_NODE_TYPES.VariableDeclarator&&null!=i.init){let{init:e}=i;if(e.type===uF.AST_NODE_TYPES.MemberExpression&&e.object.type===uF.AST_NODE_TYPES.Identifier)return xK(e.object.name,n);if(e.type===uF.AST_NODE_TYPES.Identifier)return xK(e.name,n);let r=function e(t){return oK.match(t).with({type:uF.AST_NODE_TYPES.CallExpression,arguments:oK.P.select(),callee:{type:uF.AST_NODE_TYPES.Identifier,name:"require"}},oB).with({type:uF.AST_NODE_TYPES.MemberExpression,object:oK.P.select()},e).otherwise(()=>null)}(e)?.[0];return null!=r&&xd(r,"string")?r.value:t}return a?.type===uF.AST_NODE_TYPES.ImportDeclaration?a.source.value:t}function xG(e,n){if(null==e)return t;let r=e.defs.at(n);if(null==r)return t;switch(!0){case r.type===xz.DefinitionType.FunctionName&&r.node.type===uF.AST_NODE_TYPES.FunctionDeclaration:case r.type===xz.DefinitionType.ClassName&&r.node.type===uF.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 t}}function xH(e,n){if(null==e)return t;let r=xG(e,n);if(null!=r)return r;let i=e.defs.at(n);return i?.type===xz.DefinitionType.Parameter&&xg(i.node)?i.node:t}function xX(e,t,n,r=new Set){return t.findLast(t=>{if(t.type===uF.AST_NODE_TYPES.Property)return"name"in t.key&&t.key.name===e;if(t.type===uF.AST_NODE_TYPES.SpreadElement)switch(t.argument.type){case uF.AST_NODE_TYPES.Identifier:{if(r.has(t.argument.name))return!1;let i=xG(xW(t.argument.name,n),0);if(i?.type===uF.AST_NODE_TYPES.ObjectExpression)return r.add(t.argument.name),null!=xX(e,i.properties,n,r);break}case uF.AST_NODE_TYPES.ObjectExpression:return null!=xX(e,t.argument.properties,n,r)}return!1})}function xQ(e){let t=[e];for(let n of e.childScopes)t.push(...xQ(n));return t}function xZ(e,n){if(null==e)return t;switch(e.type){case uF.AST_NODE_TYPES.JSXElement:case uF.AST_NODE_TYPES.JSXFragment:return{kind:"jsx",node:e};case uF.AST_NODE_TYPES.ArrayExpression:return{kind:"array",node:e};case uF.AST_NODE_TYPES.ObjectExpression:return{kind:"plain",node:e};case uF.AST_NODE_TYPES.ClassExpression:return{kind:"class",node:e};case uF.AST_NODE_TYPES.NewExpression:case uF.AST_NODE_TYPES.ThisExpression:return{kind:"instance",node:e};case uF.AST_NODE_TYPES.FunctionDeclaration:case uF.AST_NODE_TYPES.FunctionExpression:case uF.AST_NODE_TYPES.ArrowFunctionExpression:return{kind:"function",node:e};case uF.AST_NODE_TYPES.Literal:if("regex"in e)return{kind:"regexp",node:e};return t;case uF.AST_NODE_TYPES.Identifier:if(!("name"in e)||"string"!=typeof e.name)return t;return xZ(xG(n.set.get(e.name),-1),n);case uF.AST_NODE_TYPES.MemberExpression:if(!("object"in e))return t;return xZ(e.object,n);case uF.AST_NODE_TYPES.AssignmentExpression:case uF.AST_NODE_TYPES.AssignmentPattern:if(!("right"in e))return t;return xZ(e.right,n);case uF.AST_NODE_TYPES.LogicalExpression:return xZ(e.right,n);case uF.AST_NODE_TYPES.ConditionalExpression:return xZ(e.consequent,n)??xZ(e.alternate,n);case uF.AST_NODE_TYPES.SequenceExpression:if(0===e.expressions.length)return t;return xZ(e.expressions[e.expressions.length-1],n);case uF.AST_NODE_TYPES.CallExpression:return{kind:"unknown",node:e,reason:"call-expression"};default:if(!("expression"in e)||"object"!=typeof e.expression)return t;return xZ(e.expression,n)}}let x0=[uF.AST_NODE_TYPES.FunctionDeclaration,uF.AST_NODE_TYPES.FunctionExpression,uF.AST_NODE_TYPES.ClassBody,uF.AST_NODE_TYPES.Program];function x1(e,t,n){e=xE(e)?xP(e):e,t=xE(t)?xP(t):t;let[r,i]=n;switch(!0){case e===t:return!0;case e.type===uF.AST_NODE_TYPES.Literal&&t.type===uF.AST_NODE_TYPES.Literal:return e.value===t.value;case e.type===uF.AST_NODE_TYPES.TemplateElement&&t.type===uF.AST_NODE_TYPES.TemplateElement:return e.value.cooked===t.value.cooked;case e.type===uF.AST_NODE_TYPES.Identifier&&t.type===uF.AST_NODE_TYPES.Identifier:{let n=xW(e,r),a=xW(t,i),o=xH(n,0),s=xH(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===uF.AST_NODE_TYPES.CallExpression&&c?.type===uF.AST_NODE_TYPES.CallExpression&&xg(o)&&xg(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===uF.AST_NODE_TYPES.ForOfStatement&&p?.type===uF.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===uF.AST_NODE_TYPES.MemberExpression&&t.type===uF.AST_NODE_TYPES.MemberExpression:return xC(e.property,t.property)&&x1(e.object,t.object,n);case e.type===uF.AST_NODE_TYPES.ThisExpression&&t.type===uF.AST_NODE_TYPES.ThisExpression:if(r.block===i.block)return!0;return xA(e,xm(x0))===xA(t,xm(x0));default:{let n=xq.getStaticValue(e,r),a=xq.getStaticValue(t,i);return null!=n&&null!=a&&n.value===a.value}}}function x2(e,t,n){return xC(t,n)||x1(t,n,[e.sourceCode.getScope(t),e.sourceCode.getScope(n)])}function x3(e,t,n="react"){return"react"===e.toLowerCase()||!!xK(e,t)?.startsWith(n)}function x6(e){return oU(2,(t,n)=>{if(null==n)return!1;let r=xY(n,e=>t.sourceCode.getText(e));return r===e||r.substring(r.indexOf(".")+1)===e})}function x4(e){return oU(2,(t,n)=>null!=n&&n.type===uF.AST_NODE_TYPES.CallExpression&&x6(e)(t,n.callee))}x6("captureOwnerStack");let x8=x6("Children.count"),x5=x6("Children.forEach"),x7=x6("Children.map"),x9=x6("Children.only"),Se=x6("Children.toArray");x6("cloneElement"),x6("createContext"),x6("createElement"),x6("createRef"),x6("forwardRef"),x6("memo"),x6("lazy");let St=x4("captureOwnerStack");x4("Children.count"),x4("Children.forEach"),x4("Children.map"),x4("Children.only");let Sn=x4("Children.toArray"),Sr=x4("cloneElement"),Si=x4("createContext"),Sa=x4("createElement"),So=x4("createRef"),Ss=x4("forwardRef"),Sl=x4("memo"),Sc=x4("lazy");function Su(e){return"use"===e||/^use[A-Z0-9]/.test(e)}function S_(e){return null!=e&&e.type===uF.AST_NODE_TYPES.CallExpression&&(e.callee.type===uF.AST_NODE_TYPES.Identifier?Su(e.callee.name):e.callee.type===uF.AST_NODE_TYPES.MemberExpression&&e.callee.property.type===uF.AST_NODE_TYPES.Identifier&&Su(e.callee.property.name))}function Sd(e){return null==e||e.type!==uF.AST_NODE_TYPES.CallExpression?oz:t=>{switch(e.callee.type){case uF.AST_NODE_TYPES.Identifier:return e.callee.name===t;case uF.AST_NODE_TYPES.MemberExpression:return e.callee.property.type===uF.AST_NODE_TYPES.Identifier&&e.callee.property.name===t;default:return!1}}}function Sp(e,t={test:oz}){return null!=e&&e.type===uF.AST_NODE_TYPES.CallExpression&&[/^use\w*Effect$/u,t].some(t=>e.callee.type===uF.AST_NODE_TYPES.Identifier?t.test(e.callee.name):e.callee.type===uF.AST_NODE_TYPES.MemberExpression&&e.callee.property.type===uF.AST_NODE_TYPES.Identifier&&t.test(e.callee.property.name))}let Sf=oq(Sd)("use"),Sm=oq(Sd)("useCallback"),Sg=oq(Sd)("useContext"),Sh=oq(Sd)("useId"),Sy=oq(Sd)("useMemo"),Sv=oq(Sd)("useRef"),Sb=oq(Sd)("useState");function ST(e){return null!=e&&e.parent?.type===uF.AST_NODE_TYPES.CallExpression&&e.parent.arguments.at(0)===e&&Sp(e.parent)}function Sx(e){if(null==e)return!1;let t=xA(e,xf(uF.AST_NODE_TYPES.ReturnStatement)),n=xA(e,xg);return n===xA(t,xg)&&ST(n)}let SS=new ut("hook_");function SE(e){switch(e.type){case uF.AST_NODE_TYPES.JSXIdentifier:return e.name;case uF.AST_NODE_TYPES.JSXNamespacedName:return`${e.namespace.name}:${e.name.name}`;case uF.AST_NODE_TYPES.JSXMemberExpression:return`${SE(e.object)}.${SE(e.property)}`;case uF.AST_NODE_TYPES.JSXText:return e.value;case uF.AST_NODE_TYPES.JSXOpeningElement:return`<${SE(e.name)}>`;case uF.AST_NODE_TYPES.JSXClosingElement:return`</${SE(e.name)}>`;case uF.AST_NODE_TYPES.JSXOpeningFragment:return"<>";case uF.AST_NODE_TYPES.JSXClosingFragment:return"</>"}}function Sk(e,t,n){let r=n??e.sourceCode.getScope(t),i=t.openingElement.attributes;return e=>i.findLast(t=>{if(t.type===uF.AST_NODE_TYPES.JSXAttribute)return SE(t.name)===e;switch(t.argument.type){case uF.AST_NODE_TYPES.Identifier:{let n=xG(xW(t.argument.name,r),0);if(n?.type===uF.AST_NODE_TYPES.ObjectExpression)return null!=xX(e,n.properties,r);break}case uF.AST_NODE_TYPES.ObjectExpression:return null!=xX(e,t.argument.properties,r)}return!1})}function SP(e,n){let r=e.sourceCode.getScope(n);switch(n.type){case uF.AST_NODE_TYPES.JSXAttribute:if(null==n.value)return{kind:"boolean",toStatic:()=>!0};switch(n.value.type){case uF.AST_NODE_TYPES.Literal:{let e=n.value.value;return{kind:"literal",node:n.value,toStatic:()=>e}}case uF.AST_NODE_TYPES.JSXExpressionContainer:{let e=n.value.expression;return{kind:"expression",node:e,toStatic:()=>xq.getStaticValue(e,r)?.value}}case uF.AST_NODE_TYPES.JSXElement:return{kind:"element",node:n.value,toStatic:()=>t};case uF.AST_NODE_TYPES.JSXSpreadChild:return{kind:"spreadChild",node:n.value.expression,toStatic:()=>t}}return;case uF.AST_NODE_TYPES.JSXSpreadAttribute:return{kind:"spreadProps",node:n.argument,toStatic:e=>null==e?t:oK.match(xq.getStaticValue(n.argument,r)?.value).with({[e]:oK.P.select(oK.P.any)},oB).otherwise(()=>t)}}}function SC(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 Sw=new WeakMap;function SA(e){return o$(Sw,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(u_)?.[1],n??=e.match(ud)?.[1],r??=e.match(up)?.[1],i??=e.match(uf)?.[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 SD={None:0n,DoNotIncludeJsxWithNullValue:1n<<0n,DoNotIncludeJsxWithNumberValue:1n<<1n,DoNotIncludeJsxWithBigIntValue:1n<<2n,DoNotIncludeJsxWithStringValue:1n<<3n,DoNotIncludeJsxWithBooleanValue:1n<<4n,DoNotIncludeJsxWithUndefinedValue:1n<<5n,DoNotIncludeJsxWithEmptyArrayValue:1n<<6n,DoNotIncludeJsxWithCreateElementValue:1n<<7n,RequireAllArrayElementsToBeJsx:1n<<8n,RequireBothSidesOfLogicalExpressionToBeJsx:1n<<9n,RequireBothBranchesOfConditionalExpressionToBeJsx:1n<<10n},SN=0n|SD.DoNotIncludeJsxWithNumberValue|SD.DoNotIncludeJsxWithBigIntValue|SD.DoNotIncludeJsxWithBooleanValue|SD.DoNotIncludeJsxWithStringValue|SD.DoNotIncludeJsxWithUndefinedValue;function SF(e){return null!=e&&(e.type===uF.AST_NODE_TYPES.JSXText||e.type===uF.AST_NODE_TYPES.Literal)}function SO(e,t,n=SN){if(null==t)return!1;if(xT(t))return!0;switch(t.type){case uF.AST_NODE_TYPES.Literal:switch(typeof t.value){case"boolean":return!(n&SD.DoNotIncludeJsxWithBooleanValue);case"string":return!(n&SD.DoNotIncludeJsxWithStringValue);case"number":return!(n&SD.DoNotIncludeJsxWithNumberValue);case"bigint":return!(n&SD.DoNotIncludeJsxWithBigIntValue)}if(null==t.value)return!(n&SD.DoNotIncludeJsxWithNullValue);break;case uF.AST_NODE_TYPES.TemplateLiteral:return!(n&SD.DoNotIncludeJsxWithStringValue);case uF.AST_NODE_TYPES.ArrayExpression:if(0===t.elements.length)return!(n&SD.DoNotIncludeJsxWithEmptyArrayValue);if(n&SD.RequireAllArrayElementsToBeJsx)return t.elements.every(t=>SO(e,t,n));return t.elements.some(t=>SO(e,t,n));case uF.AST_NODE_TYPES.LogicalExpression:if(n&SD.RequireBothSidesOfLogicalExpressionToBeJsx)return SO(e,t.left,n)&&SO(e,t.right,n);return SO(e,t.left,n)||SO(e,t.right,n);case uF.AST_NODE_TYPES.ConditionalExpression:function r(t){return Array.isArray(t.consequent)?0===t.consequent.length?!(n&SD.DoNotIncludeJsxWithEmptyArrayValue):n&SD.RequireAllArrayElementsToBeJsx?t.consequent.every(t=>SO(e,t,n)):t.consequent.some(t=>SO(e,t,n)):SO(e,t.consequent,n)}function i(t){return SO(e,t.alternate,n)}if(n&SD.RequireBothBranchesOfConditionalExpressionToBeJsx)return r(t)&&i(t);return r(t)||i(t);case uF.AST_NODE_TYPES.SequenceExpression:return SO(e,t.expressions.at(-1),n);case uF.AST_NODE_TYPES.CallExpression:if(n&SD.DoNotIncludeJsxWithCreateElementValue)break;switch(t.callee.type){case uF.AST_NODE_TYPES.Identifier:return"createElement"===t.callee.name;case uF.AST_NODE_TYPES.MemberExpression:return t.callee.property.type===uF.AST_NODE_TYPES.Identifier&&"createElement"===t.callee.property.name}break;case uF.AST_NODE_TYPES.Identifier:{let{name:r}=t;if("undefined"===r)return!(n&SD.DoNotIncludeJsxWithUndefinedValue);if(xb(t))return!0;return SO(e,xG(xW(r,e.getScope(t)),0),n)}}return!1}function SI(e,t){return t.type===uF.AST_NODE_TYPES.JSXFragment?"":SE(t.openingElement.name)}function SL(e,t){return t.type===uF.AST_NODE_TYPES.JSXElement&&t.openingElement.name.type===uF.AST_NODE_TYPES.JSXIdentifier&&/^[a-z]/u.test(t.openingElement.name.name)}function SM(e,t,n){if(t.type!==uF.AST_NODE_TYPES.JSXElement)return!1;let r=n?.jsxFragmentFactory?.split(".").at(-1)??"Fragment";return SI(e,t).split(".").at(-1)===r}let SR={...SD,DoNotIncludeFunctionDefinedOnObjectMethod:1n<<64n,DoNotIncludeFunctionDefinedOnClassMethod:1n<<65n,DoNotIncludeFunctionDefinedOnClassProperty:1n<<66n,DoNotIncludeFunctionDefinedInArrayPattern:1n<<67n,DoNotIncludeFunctionDefinedInArrayExpression:1n<<68n,DoNotIncludeFunctionDefinedAsArrayMapCallback:1n<<69n,DoNotIncludeFunctionDefinedAsArrayFlatMapCallback:1n<<70n},Sj=0n|SR.DoNotIncludeJsxWithBigIntValue|SR.DoNotIncludeJsxWithBooleanValue|SR.DoNotIncludeJsxWithNumberValue|SR.DoNotIncludeJsxWithStringValue|SR.DoNotIncludeJsxWithUndefinedValue|SR.DoNotIncludeFunctionDefinedAsArrayFlatMapCallback|SR.DoNotIncludeFunctionDefinedAsArrayMapCallback|SR.DoNotIncludeFunctionDefinedInArrayExpression|SR.DoNotIncludeFunctionDefinedInArrayPattern|SR.RequireAllArrayElementsToBeJsx|SR.RequireBothBranchesOfConditionalExpressionToBeJsx|SR.RequireBothSidesOfLogicalExpressionToBeJsx;function SY(e){if("superClass"in e&&null!=e.superClass){let t=/^(?:Pure)?Component$/u;switch(!0){case e.superClass.type===uF.AST_NODE_TYPES.Identifier:return t.test(e.superClass.name);case e.superClass.type===uF.AST_NODE_TYPES.MemberExpression&&e.superClass.property.type===uF.AST_NODE_TYPES.Identifier:return t.test(e.superClass.property.name)}}return!1}function SB(e,t){return t.type===uF.AST_NODE_TYPES.CallExpression&&(t.type===uF.AST_NODE_TYPES.CallExpression&&(Sl(e,t)||Ss(e,t))||Sm(t))}function SU(e,n){let r=xL(n);if(null!=r)return r;let{parent:i}=n;return i.type===uF.AST_NODE_TYPES.CallExpression&&SB(e,i)&&i.parent.type===uF.AST_NODE_TYPES.VariableDeclarator?i.parent.id:i.type===uF.AST_NODE_TYPES.CallExpression&&SB(e,i)&&i.parent.type===uF.AST_NODE_TYPES.CallExpression&&SB(e,i.parent)&&i.parent.parent.type===uF.AST_NODE_TYPES.VariableDeclarator?i.parent.parent.id:t}function SV(e){return ug.test(e)}function SJ(e,t,n=!1){let r=SU(e,t);return null==r?n:r.type===uF.AST_NODE_TYPES.Identifier?SV(r.name):r.type===uF.AST_NODE_TYPES.MemberExpression&&r.property.type===uF.AST_NODE_TYPES.Identifier&&SV(r.property.name)}function Sz(e){return xy(e)&&e.key.type===uF.AST_NODE_TYPES.Identifier&&e.key.name.startsWith("render")&&e.parent.parent.type===uF.AST_NODE_TYPES.ClassDeclaration}let Sq={None:0n,PureComponent:1n<<0n,Memo:1n<<2n,ForwardRef:1n<<3n},S$=new ut("function_component_");function SW(e,n={}){let{collectDisplayName:r=!1,hint:i=Sj}=n,a=[],o=new Map,s=t=>e.sourceCode.getText(t),l=()=>a.at(-1);return{ctx:{getAllComponents:e=>[...o.values()],getCurrentEntries:()=>[...a],getCurrentEntry:l},visitor:{":function":n=>{let r,l=S$.next(),c=xA(n,e=>e.type===uF.AST_NODE_TYPES.ExportDefaultDeclaration),u=null!=c,_=null!=c&&xP(c.declaration)===n,d=SU(e,n),p=null==d?t:xY(d,s),f=function(e){if(e.type===uF.AST_NODE_TYPES.FunctionDeclaration)return[e];let{parent:n}=e;switch(!0){case n.type===uF.AST_NODE_TYPES.VariableDeclarator:return[n.parent,n,e];case n.type===uF.AST_NODE_TYPES.CallExpression&&n.parent.type===uF.AST_NODE_TYPES.VariableDeclarator:return[n.parent.parent,n.parent,n,e];case n.type===uF.AST_NODE_TYPES.CallExpression&&n.parent.type===uF.AST_NODE_TYPES.CallExpression&&n.parent.parent.type===uF.AST_NODE_TYPES.VariableDeclarator:case n.type===uF.AST_NODE_TYPES.Property&&n.parent.type===uF.AST_NODE_TYPES.ObjectExpression&&n.parent.parent.type===uF.AST_NODE_TYPES.VariableDeclarator:return[n.parent.parent.parent,n.parent.parent,n.parent,n,e];case n.type===uF.AST_NODE_TYPES.MethodDefinition&&n.parent.parent.type===uF.AST_NODE_TYPES.ClassDeclaration:case n.type===uF.AST_NODE_TYPES.PropertyDefinition&&n.parent.parent.type===uF.AST_NODE_TYPES.ClassDeclaration:return[n.parent.parent,n.parent,n,e]}return t}(n),m=xI(n),g={id:SU(e,n),key:l,kind:"function-component",name:p,node:n,directives:m,displayName:t,flag:(r=Sq.None,null!=f&&xM("memo",f)&&(r|=Sq.Memo),null!=f&&xM("forwardRef",f)&&(r|=Sq.ForwardRef),r),hint:i,hookCalls:[],initPath:f,isComponentDefinition:function(e,t,n){let r,i,a;if(!SJ(e,t,!0)||(r=t.parent,r?.type===uF.AST_NODE_TYPES.CallExpression&&Sa(e,r)&&r.arguments.slice(2).some(e=>e===t)||(i=t.parent,null!=(a=i.parent?.parent)&&Sz(i)&&SY(a))||function(e,t){switch(!0){case t&SR.DoNotIncludeFunctionDefinedOnObjectMethod&&xm([uF.AST_NODE_TYPES.ArrowFunctionExpression,uF.AST_NODE_TYPES.FunctionExpression])(e)&&e.parent.type===uF.AST_NODE_TYPES.Property&&e.parent.parent.type===uF.AST_NODE_TYPES.ObjectExpression:case t&SR.DoNotIncludeFunctionDefinedOnClassMethod&&xm([uF.AST_NODE_TYPES.ArrowFunctionExpression,uF.AST_NODE_TYPES.FunctionExpression])(e)&&e.parent.type===uF.AST_NODE_TYPES.MethodDefinition:case t&SR.DoNotIncludeFunctionDefinedOnClassProperty&&xm([uF.AST_NODE_TYPES.ArrowFunctionExpression,uF.AST_NODE_TYPES.FunctionExpression])(e)&&e.parent.type===uF.AST_NODE_TYPES.Property:case t&SR.DoNotIncludeFunctionDefinedInArrayPattern&&e.parent.type===uF.AST_NODE_TYPES.ArrayPattern:case t&SR.DoNotIncludeFunctionDefinedInArrayExpression&&e.parent.type===uF.AST_NODE_TYPES.ArrayExpression:case t&SR.DoNotIncludeFunctionDefinedAsArrayMapCallback&&e.parent.type===uF.AST_NODE_TYPES.CallExpression&&e.parent.callee.type===uF.AST_NODE_TYPES.MemberExpression&&e.parent.callee.property.type===uF.AST_NODE_TYPES.Identifier&&"map"===e.parent.callee.property.name:case t&SR.DoNotIncludeFunctionDefinedAsArrayFlatMapCallback&&e.parent.type===uF.AST_NODE_TYPES.CallExpression&&e.parent.callee.type===uF.AST_NODE_TYPES.MemberExpression&&e.parent.callee.property.type===uF.AST_NODE_TYPES.Identifier&&"flatMap"===e.parent.callee.property.name:return!0}return!1}(t,n)))return!1;let o=xA(t,xm([uF.AST_NODE_TYPES.JSXExpressionContainer,uF.AST_NODE_TYPES.ArrowFunctionExpression,uF.AST_NODE_TYPES.FunctionExpression,uF.AST_NODE_TYPES.Property,uF.AST_NODE_TYPES.ClassBody]));return null==o||o.type!==uF.AST_NODE_TYPES.JSXExpressionContainer}(e,n,i),isExportDefault:u,isExportDefaultDeclaration:_,rets:[]};a.push(g),g.isComponentDefinition&&SJ(e,n,!1)&&m.some(e=>"use memo"===e.directive||"use no memo"===e.directive)&&o.set(g.key,g)},":function:exit":()=>a.pop(),"ArrowFunctionExpression[body.type!='BlockStatement']"(){let t=l();if(null==t)return;let{body:n}=t.node;n.type===uF.AST_NODE_TYPES.BlockStatement||(t.rets.push(n),!t.isComponentDefinition||(o.has(t.key)||SO(e.sourceCode,n,i))&&o.set(t.key,t))},...r?{[xV](e){let{left:n,right:r}=e;if(n.type!==uF.AST_NODE_TYPES.MemberExpression)return;let i=n.object.type===uF.AST_NODE_TYPES.Identifier?n.object.name:t,a=[...o.values()].findLast(({name:e})=>null!=e&&e===i);null!=a&&(a.displayName=r)}}:{},CallExpression(e){if(!S_(e))return;let t=l();null==t||(t.hookCalls.push(e),t.isComponentDefinition&&o.set(t.key,t))},ReturnStatement(t){let n=l();if(null==n||(n.rets.push(t.argument),!n.isComponentDefinition))return;let{argument:r}=t;(o.has(n.key)||SO(e.sourceCode,r,i))&&o.set(n.key,n)}}}}let SK=new ut("class_component_");function SG(e){let n=new Map,r=t=>e.sourceCode.getText(t),i=e=>{if(!SY(e))return;let i=x_(e),a=SK.next(),o=null==i?t:xY(i,r),s=!function(e){if("superClass"in e&&null!=e.superClass){let t=/^PureComponent$/u;switch(!0){case e.superClass.type===uF.AST_NODE_TYPES.Identifier:return t.test(e.superClass.name);case e.superClass.type===uF.AST_NODE_TYPES.MemberExpression&&e.superClass.property.type===uF.AST_NODE_TYPES.Identifier:return t.test(e.superClass.property.name)}}return!1}(e)?Sq.None:Sq.PureComponent;n.set(a,{id:i,key:a,kind:"class-component",name:o,node:e,displayName:t,flag:s,hint:0n,methods:[]})};return{ctx:{getAllComponents:e=>[...n.values()]},visitor:{ClassDeclaration:i,ClassExpression:i}}}function SH(e){let{callee:t}=e;return t.type===gV.AST_NODE_TYPES.MemberExpression&&xw(t.object)&&t.property.type===gV.AST_NODE_TYPES.Identifier&&"setState"===t.property.name}function SX(e){let{left:t}=e;return t.type===gV.AST_NODE_TYPES.MemberExpression&&xw(t.object)&&"state"===xU(t.property)}function SQ(e,t=!1){return n=>xy(n)&&n.static===t&&n.key.type===uF.AST_NODE_TYPES.Identifier&&n.key.name===e}let SZ=SQ("componentDidCatch"),S0=SQ("componentDidMount"),S1=SQ("componentDidUpdate"),S2=SQ("componentWillMount"),S3=SQ("componentWillReceiveProps"),S6=SQ("componentWillUnmount"),S4=SQ("componentWillUpdate"),S8=SQ("UNSAFE_componentWillMount"),S5=SQ("UNSAFE_componentWillReceiveProps"),S7=SQ("UNSAFE_componentWillUpdate"),S9=SQ("getDerivedStateFromProps",!0),Ee=SQ("getDerivedStateFromError",!0);function Et(e){return xg(e)&&S0(e.parent)&&e.parent.value===e}function En(e){return xg(e)&&S6(e.parent)&&e.parent.value===e}function Er(e){let t=e=>e.type===uF.AST_NODE_TYPES.Property&&e.key.type===uF.AST_NODE_TYPES.Identifier&&e.key.name.startsWith("render");return t(e)||null!=e.parent&&t(e.parent)}let Ei=/^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-([\da-z\-]+(?:\.[\da-z\-]+)*))?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i,Ea=e=>{if("string"!=typeof e)throw TypeError("Invalid argument expected string");let t=e.match(Ei);if(!t)throw Error(`Invalid argument not valid semver ('${e}' received)`);return t.shift(),t},Eo=e=>"*"===e||"x"===e||"X"===e,Es=e=>{let t=parseInt(e,10);return isNaN(t)?e:t},El=(e,t)=>{let n,r;if(Eo(e)||Eo(t))return 0;let[i,a]=typeof(n=Es(e))!=typeof(r=Es(t))?[String(n),String(r)]:[n,r];return i>a?1:i<a?-1:0},Ec=(e,t)=>{for(let n=0;n<Math.max(e.length,t.length);n++){let r=El(e[n]||"0",t[n]||"0");if(0!==r)return r}return 0},Eu=(e,t,n)=>{let r,i,a,o,s;Ep(n);let l=(r=Ea(e),i=Ea(t),a=r.pop(),o=i.pop(),0!==(s=Ec(r,i))?s:a&&o?Ec(a.split("."),o.split(".")):a||o?a?-1:1:0);return E_[n].includes(l)},E_={">":[1],">=":[0,1],"=":[0],"<=":[-1,0],"<":[-1],"!=":[-1,1]},Ed=Object.keys(E_),Ep=e=>{if("string"!=typeof e)throw TypeError(`Invalid operator type, expected string but got ${typeof e}`);if(-1===Ed.indexOf(e))throw Error(`Invalid operator, expected one of ${Ed.join("|")}`)};var Ef={},Em={},Eg={};function Eh(){return ak||(ak=1,Object.defineProperty(Eg,"__esModule",{value:!0}),Eg.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}),Eg}var Ey={},Ev={};function Eb(){if(aC)return Ev;aC=1;var e,t=Ev&&Ev.__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=Ev&&Ev.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),r=Ev&&Ev.__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(Ev,"__esModule",{value:!0}),Ev.getTypeFlags=s,Ev.isTypeFlagSet=function(e,t,n){let r=s(e);return!!n&&!!(r&o)||(r&t)!=0};let i=r(vY),a=r(he()),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 Ev}var ET={},Ex={},ES={},EE={},Ek={},EP={},EC={},Ew={};function EA(){if(aL)return Ew;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 aL=1,Object.defineProperty(Ew,"__esModule",{value:!0}),Ew.getTypeOfPropertyOfName=e,Ew.getTypeOfPropertyOfType=function(t,n,r){return e(t,n,r.getName(),r.getEscapedName())},Ew}var ED={},EN={},EF={},EO={},EI={};function EL(){if(aB)return ED;aB=1;var e,t=ED&&ED.__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=ED&&ED.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),r=ED&&ED.__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(ED,"__esModule",{value:!0}),ED.valueMatchesSomeSpecifier=ED.typeMatchesSomeSpecifier=ED.typeOrValueSpecifiersSchema=void 0,ED.typeMatchesSpecifier=u,ED.valueMatchesSpecifier=_;let i=uN(),a=r(vY),o=(aM||(aM=1,Object.defineProperty(EN,"__esModule",{value:!0}),EN.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))}),EN),s=function(){if(aR)return EF;aR=1;var e=EF&&EF.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(EF,"__esModule",{value:!0}),EF.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=T7(),n=e(hk);return EF}(),l=(aj||(aj=1,Object.defineProperty(EO,"__esModule",{value:!0}),EO.typeDeclaredInLib=function(e,t){return 0===e.length||e.some(e=>t.isSourceFileDefaultLibrary(e))}),EO),c=function(){if(aY)return EI;aY=1;var e,t=EI&&EI.__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=EI&&EI.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),r=EI&&EI.__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(EI,"__esModule",{value:!0}),EI.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(he());return EI}();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 ED.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"},ED.typeMatchesSomeSpecifier=(e,t=[],n)=>t.some(t=>u(e,t,n)),ED.valueMatchesSomeSpecifier=(e,t=[],n,r)=>t.some(t=>_(e,t,n,r)),ED}var EM={},ER={};function Ej(){if(aV)return ER;aV=1;var e,t=ER&&ER.__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=ER&&ER.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),r=ER&&ER.__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=ER&&ER.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(ER,"__esModule",{value:!0}),ER.isNullableType=function(e){return(0,l.isTypeFlagSet)(e,s.TypeFlags.Any|s.TypeFlags.Unknown|s.TypeFlags.Null|s.TypeFlags.Undefined|s.TypeFlags.Void)},ER.isTypeArrayTypeOrUnionOfArrayTypes=function(e,t){for(let n of o.unionConstituents(e))if(!t.isArrayType(n))return!1;return!0},ER.isTypeNeverType=function(e){return(0,l.isTypeFlagSet)(e,s.TypeFlags.Never)},ER.isTypeUnknownType=u,ER.isTypeReferenceType=function(e){return(e.flags&d)!=0&&(e.objectFlags&s.ObjectFlags.Reference)!=0},ER.isTypeAnyType=p,ER.isTypeAnyArrayType=function(e,t){return t.isArrayType(e)&&p(t.getTypeArguments(e)[0])},ER.isTypeUnknownArrayType=function(e,t){return t.isArrayType(e)&&u(t.getTypeArguments(e)[0])},ER.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?.name===n.name)return!0}return!1},ER.isTypeBigIntLiteralType=function(e){return(0,l.isTypeFlagSet)(e,s.TypeFlags.BigIntLiteral)},ER.isTypeTemplateLiteralType=function(e){return(0,l.isTypeFlagSet)(e,s.TypeFlags.TemplateLiteral)};let a=i(hg()),o=r(vY),s=r(he()),l=Eb(),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 ER}var EY={},EB={},EU=function(){var e,t,n;return a$?Ef:(a$=1,e=Ef&&Ef.__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=Ef&&Ef.__exportStar||function(t,n){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||e(n,t,r)},Object.defineProperty(Ef,"__esModule",{value:!0}),Ef.typescriptVersionIsAtLeast=Ef.getModifiers=Ef.getDecorators=void 0,t(function(){if(aP)return Em;aP=1;var e,t=Em&&Em.__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=Em&&Em.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),r=Em&&Em.__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(Em,"__esModule",{value:!0}),Em.isPromiseLike=function(e,t){return u(e,t,"Promise")},Em.isPromiseConstructorLike=function(e,t){return u(e,t,"PromiseConstructor")},Em.isErrorLike=s,Em.isReadonlyErrorLike=function e(t,n){return l(t,n,n=>{let[r]=n.aliasTypeArguments;return s(t,r)||e(t,r)})},Em.isReadonlyTypeLike=l,Em.isBuiltinTypeAliasLike=c,Em.isBuiltinSymbolLike=u,Em.isBuiltinSymbolLikeRecurser=_;let i=r(vY),a=r(he()),o=Eh();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&&i.isSymbolFlagSet(o,a.SymbolFlags.Class|a.SymbolFlags.Interface)){for(let r of e.getTypeChecker().getBaseTypes(t))if(_(e,r,n))return!0}return!1}return Em}(),Ef),t(function(){if(aw)return Ey;aw=1;var e,t=Ey&&Ey.__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=Ey&&Ey.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),r=Ey&&Ey.__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(Ey,"__esModule",{value:!0}),Ey.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(vY),a=r(he()),o=Eb();return Ey}(),Ef),t((aA||(aA=1,Object.defineProperty(ET,"__esModule",{value:!0}),ET.getConstrainedTypeAtLocation=function(e,t){let n=e.getTypeAtLocation(t);return e.program.getTypeChecker().getBaseConstraintOfType(n)??n}),ET),Ef),t(function(){if(aD)return Ex;aD=1;var e,t=Ex&&Ex.__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=Ex&&Ex.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),r=Ex&&Ex.__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(Ex,"__esModule",{value:!0}),Ex.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(he());return Ex}(),Ef),t((aN||(aN=1,Object.defineProperty(ES,"__esModule",{value:!0}),ES.getDeclaration=function(e,t){let n=e.getSymbolAtLocation(t);if(!n)return null;let r=n.getDeclarations();return r?.[0]??null}),ES),Ef),t(function(){if(aF)return EE;aF=1;var e,t=EE&&EE.__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=EE&&EE.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),r=EE&&EE.__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(EE,"__esModule",{value:!0}),EE.getSourceFileOfNode=function(e){for(;e.kind!==i.SyntaxKind.SourceFile;)e=e.parent;return e};let i=r(he());return EE}(),Ef),t(function(){if(aO)return Ek;aO=1;var e,t=Ek&&Ek.__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=Ek&&Ek.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),r=Ek&&Ek.__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(Ek,"__esModule",{value:!0}),Ek.getTypeName=function e(t,n){if(i.isTypeFlagSet(n,a.TypeFlags.StringLike))return"string";if(i.isTypeFlagSet(n,a.TypeFlags.TypeParameter)){let r=n.getSymbol(),i=r?.getDeclarations(),o=i?.[0];if(null!=o&&a.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(vY),a=r(he());return Ek}(),Ef),t(Eh(),Ef),t(function(){if(aI)return EP;aI=1;var e,t=EP&&EP.__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=EP&&EP.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),r=EP&&EP.__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(EP,"__esModule",{value:!0}),EP.isTypeBrandedLiteralLike=function(e){return e.isUnion()?e.types.every(o):o(e)};let i=r(vY),a=r(he());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 EP}(),Ef),t((aU||(aU=1,!function(e){var t,n,r,i=EC&&EC.__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=EC&&EC.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=EC&&EC.__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=gU(),l=o(vY),c=o(he()),u=EA(),_=EL();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}}(EC)),EC),Ef),t(function(){if(aJ)return EM;aJ=1;var e,t=EM&&EM.__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=EM&&EM.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),r=EM&&EM.__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(EM,"__esModule",{value:!0}),EM.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=gU(),a=r(vY),o=Ej();return EM}(),Ef),t(Ej(),Ef),t(EA(),Ef),t(function(){if(az)return EY;az=1;var e,t=EY&&EY.__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=EY&&EY.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),r=EY&&EY.__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(EY,"__esModule",{value:!0}),EY.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(he());return EY}(),Ef),t(Eb(),Ef),t(EL(),Ef),t(function(){if(aq)return EB;aq=1;var e,t,n,r=EB&&EB.__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=EB&&EB.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=EB&&EB.__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(EB,"__esModule",{value:!0}),EB.AnyType=void 0,EB.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(vY),s=Ej();return(t=n||(EB.AnyType=n={}))[t.Any=0]="Any",t[t.PromiseAny=1]="PromiseAny",t[t.AnyArray=2]="AnyArray",t[t.Safe=3]="Safe",EB}(),Ef),n=T7(),Object.defineProperty(Ef,"getDecorators",{enumerable:!0,get:function(){return n.getDecorators}}),Object.defineProperty(Ef,"getModifiers",{enumerable:!0,get:function(){return n.getModifiers}}),Object.defineProperty(Ef,"typescriptVersionIsAtLeast",{enumerable:!0,get:function(){return n.typescriptVersionIsAtLeast}}),Ef)}();function EV(e,t){return 0===t.length||t.some(t=>e.isSourceFileDefaultLibrary(t))}function EJ(e,t){return e.some(e=>{let n=function e(t){switch(t.kind){case ht.SyntaxKind.ModuleDeclaration:return ht.isStringLiteral(t.name)?t:void 0;case ht.SyntaxKind.SourceFile:return;default:return e(t.parent)}}(e);return void 0!==n&&(void 0===t||n.name.text===t)})}function Ez(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 Eq(e,t){return EW(e)?t:EW(t)?e:Math.min(e,t)}function E$(e,t){return EW(e)?t:EW(t)?e:Math.max(e,t)}function EW(e){return Number.isNaN(e)}function EK(e,t){if(ve(e))throw Error("ErrorType encountered.");return{type:e,typeNode:null==t||t.pos<0?null:t}}function EG(e,t,n,r){let i=e.getTypeChecker().getRecursionIdentity(n.type);null!==n.typeNode&&t.set(n.typeNode,r),t.set(i,r)}function EH(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)}(a=aW||(aW={}))[a.Unknown=NaN]="Unknown",a[a.Mutable=2]="Mutable",a[a.ReadonlyShallow=3]="ReadonlyShallow",a[a.ReadonlyDeep=4]="ReadonlyDeep",a[a.Immutable=5]="Immutable",a[a.Calculating=1/0]="Calculating";function EX(e){return vu(e)&&void 0!==e.typeArguments&&e.typeArguments.length>0}let EQ=new WeakMap;function EZ(e){return{typeData:e,stage:0,immutability:aW.Calculating}}function E0(e,t,n){return{typeData:e.typeData,children:t,childrenReducer:n,stage:1,immutability:aW.Calculating}}function E1(e,t){return{taskState:e,notDoneAction:t,stage:5}}function E2(e,t,n){t.push(E1(n,()=>{n.stage=7,n.immutability=E$(n.limits.min,n.limits.max),t.push(n)}),E1(n,()=>{EX(n.typeData.type)&&E6(t,n)})),E3(e,t,n)}function E3(e,t,n){n.stage=2,n.limits={...e.immutabilityLimits},t.push(E1(n,()=>{if(EX(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(vg(n.typeData.type,e.getEscapedName(),r)||"length"===e.escapedName&&r.isTupleType(n.typeData.type))continue;let t=ht.getNameOfDeclaration(e.valueDeclaration);if(void 0!==t&&ht.isPrivateIdentifier(t))continue;let i=e.getDeclarations()??[];if(i.length>0&&(i.some(e=>Object.hasOwn(e,"symbol")&&y_(e.symbol,ht.SymbolFlags.Method))||i.every(e=>ht.isPropertySignature(e)&&void 0!==e.type&&ht.isFunctionTypeNode(e.type)))){n.limits.max=Eq(n.limits.max,aW.ReadonlyDeep);continue}n.immutability=aW.Mutable;return}let a=new Map(null!==n.typeData.typeNode&&yj(n.typeData.typeNode)&&void 0!==n.typeData.typeNode.type&&ht.isTypeLiteralNode(n.typeData.typeNode.type)?n.typeData.typeNode.type.members.map(e=>{var t;return void 0!==e.name&&yj(e)&&void 0!==e.type?[(t=e.name,ht.isIdentifier(t)||ht.isPrivateIdentifier(t),t.getText()),e.type]:void 0}).filter(e=>void 0!==e):[]),o=i.map(e=>{let t=EU.getTypeOfPropertyOfType(r,n.typeData.type,e);return void 0===t||vn(t)&&"error"===t.intrinsicName?null:EZ(EK(t,a.get(e.getEscapedName())))}).filter(e=>null!==e);o.length>0&&(n.limits.min=aW.ReadonlyShallow,t.push(E0(n,o,Eq),...o))}function E6(e,t){let n=t.typeData.type.typeArguments.map(e=>EZ(EK(e,void 0)));e.push(E0(t,n,Eq),...n)}function E4(e,t,n,r){let i=e.program.getTypeChecker().getIndexInfoOfType(r.type,n);if(void 0===i)return t.immutability=aW.Unknown,[];if(e.immutabilityLimits.max<=aW.ReadonlyShallow)return t.immutability=aW.ReadonlyShallow,[];if(i.isReadonly){if(i.type===r.type)return t.immutability=e.immutabilityLimits.max,[];let n=EZ(EK(i.type,void 0));return[E0(t,[{immutability:aW.ReadonlyShallow},n],E$),n]}return t.immutability=aW.Mutable,[]}(o=aK||(aK={}))[o.Triage=0]="Triage",o[o.ReduceChildren=1]="ReduceChildren",o[o.ObjectProperties=2]="ObjectProperties",o[o.ObjectTypeReference=3]="ObjectTypeReference",o[o.ObjectIndexSignature=4]="ObjectIndexSignature",o[o.CheckDone=5]="CheckDone",o[o.ApplyOverride=6]="ApplyOverride",o[o.Done=7]="Done";var E8=Object.defineProperty,E5=(e,t)=>{let n={};for(var r in e)E8(n,r,{get:e[r],enumerable:!0});return E8(n,Symbol.toStringTag,{value:"Module"}),n},E7=E5({name:()=>E9,rules:()=>ke});let E9="react-x/disable-experimental",ke={"react-x/jsx-key-before-spread":"off","react-x/jsx-no-iife":"off","react-x/no-duplicate-key":"off","react-x/no-implicit-key":"off","react-x/no-misused-capture-owner-stack":"off","react-x/no-unnecessary-key":"off","react-x/no-unnecessary-use-callback":"off","react-x/no-unnecessary-use-memo":"off","react-x/no-unnecessary-use-ref":"off","react-x/no-unused-props":"off","react-x/prefer-read-only-props":"off"};var kt=E5({name:()=>kn,rules:()=>kr});let kn="react-x/disable-type-checked",kr={"react-x/no-implicit-key":"off","react-x/no-leaked-conditional-rendering":"off","react-x/no-unused-props":"off","react-x/prefer-read-only-props":"off"},ki=gV.ESLintUtils.RuleCreator(function(e){return`${ur}/docs/rules/${e}`}),ka=function(e,t){return(e.flags&t)!=0};function ko(e){return ka(e,ht.TypeFlags.BooleanLiteral)}let ks=e=>ka(e,ht.TypeFlags.TypeParameter|ht.TypeFlags.Any),kl=e=>ka(e,ht.TypeFlags.BigIntLike),kc=e=>ka(e,ht.TypeFlags.BooleanLike),ku=e=>ka(e,ht.TypeFlags.EnumLike),k_=e=>e.isLiteral()&&oK.isMatching({value:{base10Value:"0"}},e),kd=e=>e.isNumberLiteral()&&0===e.value,kp=e=>e.isStringLiteral()&&""===e.value,kf=e=>ka(e,ht.TypeFlags.Never),km=e=>ka(e,ht.TypeFlags.Null|ht.TypeFlags.Undefined|ht.TypeFlags.VoidLike),kg=e=>ka(e,ht.TypeFlags.NumberLike),kh=e=>!ka(e,ht.TypeFlags.Null|ht.TypeFlags.Undefined|ht.TypeFlags.VoidLike|ht.TypeFlags.BooleanLike|ht.TypeFlags.StringLike|ht.TypeFlags.NumberLike|ht.TypeFlags.BigIntLike|ht.TypeFlags.TypeParameter|ht.TypeFlags.Any|ht.TypeFlags.Unknown|ht.TypeFlags.Never),ky=e=>ka(e,ht.TypeFlags.StringLike),kv=e=>e.isLiteral()&&oK.isMatching({value:{base10Value:oK.P.not("0")}},e),kb=e=>e.isNumberLiteral()&&0!==e.value,kT=e=>e.isStringLiteral()&&""!==e.value,kx=e=>ka(e,ht.TypeFlags.Unknown);var kS=ki({meta:{type:"problem",docs:{description:"Prevents unintentional '$' sign before expression."},fixable:"code",hasSuggestions:!0,messages:{default:"Prevents unintentional '$' sign 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!==uF.AST_NODE_TYPES.JSXText||!r.value.endsWith("$")||t.children[n+1]?.type!==uF.AST_NODE_TYPES.JSXExpressionContainer||"$"===r.value&&2===t.children.length)continue;let i=r.loc.end;e.report({messageId:"default",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:[]}),kE=ki({meta:{type:"problem",docs:{description:"Enforces 'key' prop placement before spread props."},messages:{default:"The 'key' prop must be placed before any spread props when using the new JSX transform."},schema:[]},name:"jsx-key-before-spread",create:function(e){let{jsx:t}={...SC(e),...SA(e)};return 4!==t&&5!==t?{}:{JSXOpeningElement(t){let n=null;for(let[r,i]of t.attributes.entries()){if(i.type===uF.AST_NODE_TYPES.JSXSpreadAttribute){n??=r;continue}null!=n&&"key"===i.name.name&&r>n&&e.report({messageId:"default",node:i})}}}},defaultOptions:[]}),kk=ki({meta:{type:"problem",docs:{description:"Prevents comment strings (e.g., beginning with '//' or '/*') from being accidentally inserted into a JSX element's text nodes."},messages:{default:"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=>{xm([uF.AST_NODE_TYPES.JSXElement,uF.AST_NODE_TYPES.JSXFragment])(t.parent)&&!xm([uF.AST_NODE_TYPES.JSXAttribute,uF.AST_NODE_TYPES.JSXExpressionContainer])(t.parent)&&/^\s*\/(?:\/|\*)/mu.test(e.sourceCode.getText(t))&&e.report({messageId:"default",node:t})};return{JSXText:t,Literal:t}},defaultOptions:[]}),kP=ki({meta:{type:"problem",docs:{description:"Disallows duplicate props in JSX elements."},messages:{default:"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===uF.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:"default",node:r})}}}}},defaultOptions:[]}),kC=ki({meta:{type:"problem",docs:{description:"Disallows immediately-invoked function expressions in JSX."},messages:{default:"Avoid using immediately-invoked function expressions in JSX."},schema:[]},name:"jsx-no-iife",create:function(e){return{"JSXElement :function"(t){t.parent.type===uF.AST_NODE_TYPES.CallExpression&&t.parent.callee===t&&e.report({messageId:"default",node:t.parent})},"JSXFragment :function"(t){t.parent.type===uF.AST_NODE_TYPES.CallExpression&&t.parent.callee===t&&e.report({messageId:"default",node:t.parent})}}},defaultOptions:[]}),kw=ki({meta:{type:"problem",docs:{description:"Prevents using variables in JSX that are not defined in the scope."},messages:{default:"JSX variable '{{name}}' is not defined."},schema:[]},name:"jsx-no-undef",create:function(e){return{JSXOpeningElement(t){let n=oK.match(t.name).with({type:uF.AST_NODE_TYPES.JSXIdentifier},e=>e.name).with({type:uF.AST_NODE_TYPES.JSXMemberExpression,object:{type:uF.AST_NODE_TYPES.JSXIdentifier}},e=>e.object.name).otherwise(()=>null);null==n||"this"===n||/^[a-z]/u.test(n)||null==xW(n,e.sourceCode.getScope(t))&&e.report({messageId:"default",node:t,data:{name:n}})}}},defaultOptions:[]});let kA=[1];var kD=ki({meta:{type:"problem",docs:{description:"Enforces shorthand syntax for boolean props."},fixable:"code",messages:{default:"{{message}}"},schema:[{type:"integer",enum:[-1,1]}]},name:"jsx-shorthand-boolean",create:function(e){let t=e.options[0]??kA[0];return{JSXAttribute(n){let{value:r}=n,i=SE(n.name);switch(!0){case 1===t&&r?.type===uF.AST_NODE_TYPES.JSXExpressionContainer&&r.expression.type===uF.AST_NODE_TYPES.Literal&&!0===r.expression.value:e.report({messageId:"default",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:"default",node:n.value??n,data:{message:`Set attribute value for '${i}'.`},fix:e=>e.insertTextAfter(n.name,"={true}")})}}}},defaultOptions:kA});let kN=[1];var kF=ki({meta:{type:"problem",docs:{description:"Enforces shorthand syntax for fragment elements."},fixable:"code",messages:{default:"{{message}}"},schema:[{type:"integer",enum:[-1,1]}]},name:"jsx-shorthand-fragment",create:function(e){let t=e.options[0]??kN[0],n={...SC(e),...SA(e)},{jsxFragmentFactory:r}=n;return oK.match(t).with(1,()=>({JSXElement(t){!SM(e,t,n)||t.openingElement.attributes.length>0||e.report({messageId:"default",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:"default",node:t,data:{message:"Use 'Fragment' component instead of fragment shorthand syntax."},fix:e=>{let{closingFragment:n,openingFragment:i}=t;return[e.replaceTextRange([i.range[0],i.range[1]],`<${r}>`),e.replaceTextRange([n.range[0],n.range[1]],`</${r}>`)]}})}})).otherwise(()=>({}))},defaultOptions:kN}),kO=ki({meta:{type:"problem",docs:{description:"Marks React variables as used when JSX is present."},messages:{default:"Marked {{name}} as used."},schema:[]},name:"jsx-uses-react",create:function(e){let{jsx:t,jsxFactory:n,jsxFragmentFactory:r}={...SC(e),...SA(e)};if(4===t||5===t)return{};function i(t){e.sourceCode.markVariableAsUsed(n,t),kI(e,t,n)}return{JSXFragment:function(t){e.sourceCode.markVariableAsUsed(r,t),kI(e,t,r)},JSXOpeningElement:i,JSXOpeningFragment:i}},defaultOptions:[]});function kI(e,t,n){"1"===process.env.ESLINT_REACT_DEBUG&&e.report({messageId:"default",node:t,data:{name:n}})}var kL=ki({meta:{type:"problem",docs:{description:"Marks JSX element variables as used."},messages:{default:"An identifier in JSX is marked as used."},schema:[]},name:"jsx-uses-vars",create:function(e){return{JSXOpeningElement(t){switch(t.name.type){case uF.AST_NODE_TYPES.JSXIdentifier:if(/^[a-z]/u.test(t.name.name))return;e.sourceCode.markVariableAsUsed(t.name.name,t);break;case uF.AST_NODE_TYPES.JSXMemberExpression:{let{object:n}=t.name;n.type===uF.AST_NODE_TYPES.JSXIdentifier&&e.sourceCode.markVariableAsUsed(n.name,t)}}}}},defaultOptions:[]}),kM=ki({meta:{type:"problem",docs:{description:"Disallows accessing 'this.state' inside 'setState' calls."},messages:{default:"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){SH(e)&&r.push([e,!1])},"CallExpression:exit"(e){SH(e)&&r.pop()},ClassDeclaration(e){t.push([e,SY(e)])},"ClassDeclaration:exit"(){t.pop()},ClassExpression(e){t.push([e,SY(e)])},"ClassExpression:exit"(){t.pop()},MemberExpression(i){if(!xw(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"===xU(i.property)&&e.report({messageId:"default",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||!xw(i.init)||i.id.type!==uF.AST_NODE_TYPES.ObjectPattern||i.id.properties.some(e=>{var t;return e.type===uF.AST_NODE_TYPES.Property&&(t=e.key,oK.match(t).with({type:uF.AST_NODE_TYPES.Literal},oJ).with({type:uF.AST_NODE_TYPES.TemplateLiteral,expressions:[]},oJ).with({type:uF.AST_NODE_TYPES.Identifier},()=>!e.computed).otherwise(oz))&&"state"===xU(e.key)})&&e.report({messageId:"default",node:i})}}},defaultOptions:[]});let kR=["forEach","map"];var kj=ki({meta:{type:"problem",docs:{description:"Disallows using an item's index in the array as its key."},messages:{default:"Do not use item index in the array as its key."},schema:[]},name:"no-array-index-key",create:function(e){let n=[];function r(e){return e.type===uF.AST_NODE_TYPES.Identifier&&n.some(t=>null!=t&&t===e.name)}function i(e){switch(e.type){case uF.AST_NODE_TYPES.Identifier:if(n.some(t=>null!=t&&t===e.name))return[{messageId:"default",node:e}];break;case uF.AST_NODE_TYPES.TemplateLiteral:case uF.AST_NODE_TYPES.BinaryExpression:{let t=[];for(let n of e.type===uF.AST_NODE_TYPES.TemplateLiteral?e.expressions:function e(t){return t.type===uF.AST_NODE_TYPES.Identifier?[t]:t.type===uF.AST_NODE_TYPES.BinaryExpression?[...e(t.left),...e(t.right)]:[]}(e))r(n)&&t.push({messageId:"default",node:n});return t}case uF.AST_NODE_TYPES.CallExpression:switch(!0){case e.callee.type===uF.AST_NODE_TYPES.MemberExpression&&e.callee.property.type===uF.AST_NODE_TYPES.Identifier&&"toString"===e.callee.property.name&&r(e.callee.object):return[{messageId:"default",node:e.callee.object}];case e.callee.type===uF.AST_NODE_TYPES.Identifier&&"String"===e.callee.name&&null!=e.arguments[0]&&r(e.arguments[0]):return[{messageId:"default",node:e.arguments[0]}]}}return[]}return{CallExpression(r){if(n.push(function(e,n){let{callee:r}=n;if(r.type!==uF.AST_NODE_TYPES.MemberExpression||r.property.type!==uF.AST_NODE_TYPES.Identifier)return t;let{name:i}=r.property,a=function(e){switch(e){case"every":case"filter":case"find":case"findIndex":case"findLast":case"findLastIndex":case"flatMap":case"forEach":case"map":case"some":return 1;case"reduce":case"reduceRight":return 2;default:return -1}}(i);if(-1===a)return t;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,!kR.includes(n)))return!1;let a=e.sourceCode.getScope(t);return i.object.type===uF.AST_NODE_TYPES.Identifier&&"Children"===i.object.name||i.object.type===uF.AST_NODE_TYPES.MemberExpression&&"name"in i.object.object&&x3(i.object.object.name,a,r)}(e,n)];if(null==o||!xm([uF.AST_NODE_TYPES.ArrowFunctionExpression,uF.AST_NODE_TYPES.FunctionExpression])(o))return t;let{params:s}=o;if(s.length<a+1)return t;let l=s.at(a);return null!=l&&"name"in l?l.name:t}(e,r)),0===r.arguments.length||!(Sa(e,r)||Sr(e,r)))return;let[,a]=r.arguments;if(a?.type===uF.AST_NODE_TYPES.ObjectExpression){for(let t of a.properties)if(oK.isMatching({key:{name:"key"}})(t)&&"value"in t)for(let n of i(t.value))ub(e)(n)}},"CallExpression:exit"(){n.pop()},JSXAttribute(t){if("key"===t.name.name&&0!==n.length&&t.value?.type===uF.AST_NODE_TYPES.JSXExpressionContainer)for(let n of i(t.value.expression))ub(e)(n)}}},defaultOptions:[]}),kY=ki({meta:{type:"problem",docs:{description:"Disallows the use of 'Children.count' from the 'react' package."},messages:{default:"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){x8(e,t)&&e.report({messageId:"default",node:t.property})}}},defaultOptions:[]}),kB=ki({meta:{type:"problem",docs:{description:"Disallows the use of 'Children.forEach' from the 'react' package."},messages:{default:"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){x5(e,t)&&e.report({messageId:"default",node:t.property})}}},defaultOptions:[]}),kU=ki({meta:{type:"problem",docs:{description:"Disallows the use of 'Children.map' from the 'react' package."},messages:{default:"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){x7(e,t)&&e.report({messageId:"default",node:t.property})}}},defaultOptions:[]}),kV=ki({meta:{type:"problem",docs:{description:"Disallows the use of 'Children.only' from the 'react' package."},messages:{default:"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){x9(e,t)&&e.report({messageId:"default",node:t.property})}}},defaultOptions:[]}),kJ=ki({meta:{type:"problem",docs:{description:"Disallows passing 'children' as a prop."},messages:{default:"Do not pass 'children' as props."},schema:[]},name:"no-children-prop",create:function(e){return{JSXElement(t){let n=Sk(e,t)("children");null!=n&&e.report({messageId:"default",node:n})}}},defaultOptions:[]}),kz=ki({meta:{type:"problem",docs:{description:"Disallows the use of 'Children.toArray' from the 'react' package."},messages:{default:"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){Se(e,t)&&e.report({messageId:"default",node:t.property})}}},defaultOptions:[]}),kq=ki({meta:{type:"problem",docs:{description:"Disallows class components except for error boundaries."},messages:{default:"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,visitor:n}=SG(e);return uh(n,{"Program:exit"(n){for(let{name:r="anonymous",node:i}of t.getAllComponents(n))i.body.body.some(e=>SZ(e)||Ee(e))||e.report({messageId:"default",node:i,data:{name:r}})}})},defaultOptions:[]}),k$=ki({meta:{type:"problem",docs:{description:"Disallows 'cloneElement'."},messages:{default:"Using 'cloneElement' is uncommon and can lead to fragile code. Use alternatives instead."},schema:[]},name:"no-clone-element",create:function(e){return{CallExpression(t){Sr(e,t)&&e.report({messageId:"default",node:t})}}},defaultOptions:[]}),kW=ki({meta:{type:"problem",docs:{description:"Replaces usage of 'componentWillMount' with 'UNSAFE_componentWillMount'."},fixable:"code",messages:{default:"[Deprecated] Use 'UNSAFE_componentWillMount' instead."},schema:[]},name:"no-component-will-mount",create:function(e){if(!e.sourceCode.text.includes("componentWillMount"))return{};let{ctx:t,visitor:n}=SG(e);return uh(n,{"Program:exit"(n){for(let{node:r}of t.getAllComponents(n)){let{body:t}=r.body;for(let n of t)S2(n)&&e.report({messageId:"default",node:n,fix:e=>"key"in n?e.replaceText(n.key,"UNSAFE_componentWillMount"):null})}}})},defaultOptions:[]}),kK=ki({meta:{type:"problem",docs:{description:"Replaces usage of 'componentWillReceiveProps' with 'UNSAFE_componentWillReceiveProps'."},fixable:"code",messages:{default:"[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,visitor:n}=SG(e);return uh(n,{"Program:exit"(n){for(let{node:r}of t.getAllComponents(n)){let{body:t}=r.body;for(let n of t)S3(n)&&e.report({messageId:"default",node:n,fix:e=>"key"in n?e.replaceText(n.key,"UNSAFE_componentWillReceiveProps"):null})}}})},defaultOptions:[]}),kG=ki({meta:{type:"problem",docs:{description:"Replaces usage of 'componentWillUpdate' with 'UNSAFE_componentWillUpdate'."},fixable:"code",messages:{default:"[Deprecated] Use 'UNSAFE_componentWillUpdate' instead."},schema:[]},name:"no-component-will-update",create:function(e){if(!e.sourceCode.text.includes("componentWillUpdate"))return{};let{ctx:t,visitor:n}=SG(e);return uh(n,{"Program:exit"(n){for(let{node:r}of t.getAllComponents(n)){let{body:t}=r.body;for(let n of t)S4(n)&&e.report({messageId:"default",node:n,fix:e=>"key"in n?e.replaceText(n.key,"UNSAFE_componentWillUpdate"):null})}}})},defaultOptions:[]}),kH=ki({meta:{type:"problem",docs:{description:"Replaces usage of '<Context.Provider>' with '<Context>'."},fixable:"code",messages:{default:"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}=uE(e);return Eu(t,"19.0.0","<")?{}:{JSXElement(t){let n=SI(e,t).split("."),r=n.pop(),i=n.join("."),a=n.pop();"Provider"!==r||null!=a&&a.endsWith("Context")&&e.report({messageId:"default",node:t,fix(e){if(!SV(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:[]}),kX=ki({meta:{type:"problem",docs:{description:"Disallows 'createRef' in function components."},messages:{default:"[Deprecated] Use 'useRef' instead."},schema:[]},name:"no-create-ref",create:function(e){return{CallExpression(t){So(e,t)&&null==xA(t,SY)&&e.report({messageId:"default",node:t})}}},defaultOptions:[]});function kQ(e){return xm([uF.AST_NODE_TYPES.FunctionDeclaration,uF.AST_NODE_TYPES.FunctionExpression])(e)&&xy(e.parent)&&e.parent.key.type===uF.AST_NODE_TYPES.Identifier&&"constructor"===e.parent.key.name}var kZ=ki({meta:{type:"problem",docs:{description:"Disallows direct mutation of 'this.state'."},messages:{default:"Do not mutate state directly. Use 'setState()' instead."},schema:[]},name:"no-direct-mutation-state",create:function(e){return{AssignmentExpression(t){if(!SX(t))return;let n=xA(t,xm([uF.AST_NODE_TYPES.ClassDeclaration,uF.AST_NODE_TYPES.ClassExpression]));null!=n&&SY(n)&&e.sourceCode.getScope(t).block!==xA(t,kQ)&&e.report({messageId:"default",node:t})}}},defaultOptions:[]}),k0=ki({meta:{type:"problem",docs:{description:"Prevents duplicate 'key' props on sibling elements when rendering lists."},messages:{default:"The 'key' prop must be unique to its sibling elements."},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 uF.AST_NODE_TYPES.ArrayExpression:case uF.AST_NODE_TYPES.JSXElement:case uF.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=xA(n,e=>e.type===uF.AST_NODE_TYPES.CallExpression&&e.callee.type===uF.AST_NODE_TYPES.MemberExpression&&e.callee.property.type===uF.AST_NODE_TYPES.Identifier&&"map"===e.callee.property.name),i=xA(n,e=>e===r||xg(e));if(!xg(i))return;let a=r?.arguments[0];if(null==r||null==a||xP(a)!==i)return;t.set(r,{hasDuplicate:e.value?.type===uF.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:"default",node:t,data:{value:e.sourceCode.getText(t)}})}}},defaultOptions:[]}),k1=ki({meta:{type:"problem",docs:{description:"Replaces usage of 'forwardRef' with passing 'ref' as a prop."},fixable:"code",messages:{default:"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}=uE(e);return Eu(t,"19.0.0","<")?{}:{CallExpression(t){var n,r;if(!Ss(e,t))return;let i=xL(t),a=!function(e,t){let{importSource:n}=uE(e),r=e.sourceCode.getScope(t);switch(t.callee.type){case uF.AST_NODE_TYPES.Identifier:return x3(t.callee.name,r,n);case uF.AST_NODE_TYPES.MemberExpression:return t.callee.object.type===uF.AST_NODE_TYPES.Identifier&&x3(t.callee.object.name,r,n);default:return!1}}(e,t)?null:(n=e,r=t,e=>{let[t]=r.arguments;return null!=t&&xg(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=oK.match(a).with({type:uF.AST_NODE_TYPES.Identifier},e=>`...${e.name}`).with({type:uF.AST_NODE_TYPES.ObjectPattern},e=>e.properties.map(i).join(", ")).otherwise(()=>null),u=oK.match(o).with(oK.P.nullish,()=>"ref").with({type:uF.AST_NODE_TYPES.Identifier,name:"ref"},()=>"ref").with({type:uF.AST_NODE_TYPES.Identifier,name:oK.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:"default",node:i??t,fix:a})}}},defaultOptions:[]}),k2=ki({meta:{type:"problem",docs:{description:"Prevents implicitly passing the 'key' prop to components."},messages:{default:"This spread attribute implicitly passes the 'key' prop to a component, this could lead to unexpected behavior. If you intend to pass the 'key' prop, use 'key={value}'."},schema:[]},name:"no-implicit-key",create:function(e){let t=gV.ESLintUtils.getParserServices(e,!1),n=t.program.getTypeChecker();return{JSXSpreadAttribute(r){for(let i of vb(EU.getConstrainedTypeAtLocation(t,r.argument))){let t=i.getProperty("key");null!=t&&((function(e,t){let n=t.name,r=t.declarations?.at(0)?.parent;if(null==r)return e.getFullyQualifiedName(t);let i=r.getSourceFile().statements.find(e=>ht.isNamespaceExportDeclaration(e));for(;r.kind!==ht.SyntaxKind.SourceFile;){switch(!0){case ht.isInterfaceDeclaration(r):case ht.isTypeAliasDeclaration(r):case ht.isEnumDeclaration(r):case ht.isModuleDeclaration(r):case ht.isNamespaceImport(r):case ht.isNamespaceExport(r):case ht.isNamespaceExportDeclaration(r):case ht.isPropertySignature(r)&&ht.isIdentifier(r.name):case ht.isPropertyDeclaration(r)&&ht.isIdentifier(r.name):case ht.isMethodDeclaration(r)&&ht.isIdentifier(r.name):case ht.isMethodSignature(r)&&ht.isIdentifier(r.name):case ht.isPropertyAssignment(r)&&ht.isIdentifier(r.name):case ht.isFunctionDeclaration(r)&&null!=r.name:case ht.isClassExpression(r)&&null!=r.name:case ht.isClassDeclaration(r)&&null!=r.name:n=`${r.name.text}.${n}`;break;case ht.isEnumMember(r):n=`${r.name.getText()}.${n}`;case ht.isTypeLiteralNode(r):case ht.isMappedTypeNode(r):case ht.isObjectLiteralExpression(r):case ht.isIntersectionTypeNode(r):case ht.isUnionTypeNode(r):}r=r.parent}return null!=i?`${i.name.text}.${n}`:n})(n,t).toLowerCase().endsWith("react.attributes.key")||e.report({messageId:"default",node:r}))}}}},defaultOptions:[]}),k3=ki({meta:{type:"problem",docs:{description:"Prevents problematic leaked values from being rendered."},messages:{default:"Potential leaked value {{value}} that might cause unintentionally rendered values or rendering crashes."},schema:[]},name:"no-leaked-conditional-rendering",create:function(e){if(!e.sourceCode.text.includes("&&"))return{};let{version:n}=uE(e),r=["any","boolean","nullish","object","enum","falsy boolean","truthy bigint","truthy boolean","truthy number","truthy string",...Eu(n,"18.0.0","<")?[]:["string","falsy string"]],i=gV.ESLintUtils.getParserServices(e,!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?t:xf(uF.AST_NODE_TYPES.JSXExpressionContainer)(a)?n(a.expression):xT(a)?t:xE(a)?n(a.expression):oK.match(a).with({type:uF.AST_NODE_TYPES.LogicalExpression,operator:"&&"},({left:t,right:a})=>{if(t.type===uF.AST_NODE_TYPES.UnaryExpression&&"!"===t.operator)return n(a);let o=e.sourceCode.getScope(t);return xR(t,"NaN")||xq.getStaticValue(t,o)?.value==="NaN"?{messageId:"default",node:t,data:{value:e.sourceCode.getText(t)}}:Array.from((function(e){let t=new Set;if(e.some(kx))return t.add("unknown"),t;e.some(km)&&t.add("nullish");let n=e.filter(kc),r=n[0];if(1===n.length&&null!=r)if(ko(r)&&"false"===r.intrinsicName)t.add("falsy boolean");else ko(r)&&"true"===r.intrinsicName&&t.add("truthy boolean");else 2===n.length&&t.add("boolean");let i=e.filter(ky);if(i.length>0){let e=oK.match(i).when(e=>e.every(kT),()=>"truthy string").when(e=>e.every(kp),()=>"falsy string").otherwise(()=>"string");t.add(e)}let a=e.filter(kl);if(a.length>0){let e=oK.match(a).when(e=>e.every(kv),()=>"truthy bigint").when(e=>e.every(k_),()=>"falsy bigint").otherwise(()=>"bigint");t.add(e)}let o=e.filter(kg);if(o.length>0){let e=oK.match(o).when(e=>e.every(kb),()=>"truthy number").when(e=>e.every(kd),()=>"falsy number").otherwise(()=>"number");t.add(e)}return e.some(ku)&&t.add("enum"),e.some(kh)&&t.add("object"),e.some(ks)&&t.add("any"),e.some(kf)&&t.add("never"),t})(vb(EU.getConstrainedTypeAtLocation(i,t))).values()).every(e=>r.some(t=>t===e))?n(a):{messageId:"default",node:t,data:{value:e.sourceCode.getText(t)}}}).with({type:uF.AST_NODE_TYPES.ConditionalExpression},({alternate:e,consequent:t})=>n(t)??n(e)).with({type:uF.AST_NODE_TYPES.Identifier},r=>{let i=xW(r.name,e.sourceCode.getScope(r))?.defs.at(0)?.node;return oK.match(i).with({init:oK.P.select({type:oK.P.not(uF.AST_NODE_TYPES.VariableDeclaration)})},n).otherwise(()=>t)}).otherwise(()=>t)},ub(e))}},defaultOptions:[]}),k6=ki({meta:{type:"problem",docs:{description:"Enforces that all components have a 'displayName' that can be used in DevTools."},messages:{default:"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,visitor:n}=SW(e,{collectDisplayName:!0,hint:Sj});return uh(n,{"Program:exit"(n){for(let{node:r,displayName:i,flag:a}of t.getAllComponents(n)){let t=xL(r),n=(a&(Sq.ForwardRef|Sq.Memo))>0n;null==t&&n&&null==i&&e.report({messageId:"default",node:r})}}})},defaultOptions:[]}),k4=ki({meta:{type:"problem",docs:{description:"Enforces that all contexts have a 'displayName' that can be used in DevTools."},fixable:"code",messages:{default:"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{[xV](e){n.push(e)},CallExpression(n){Si(e,n)&&t.push(n)},"Program:exit"(){for(let r of t){let t=x$(r);if(null==t){e.report({messageId:"default",node:r});continue}n.some(n=>{let r=n.left;return r.type===uF.AST_NODE_TYPES.MemberExpression&&x2(e,t,r.object)})||e.report({messageId:"default",node:t,fix:n=>t.type!==uF.AST_NODE_TYPES.Identifier||t.parent!==r.parent?[]:n.insertTextAfter(e.sourceCode.getTokenAfter(r)??r,"\n"+t.name+".displayName = "+JSON.stringify(t.name)+";")})}}}},defaultOptions:[]}),k8=ki({meta:{type:"problem",docs:{description:"Disallows missing 'key' on items in list rendering."},messages:{default:"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=!1;function n(t){return t.type===uF.AST_NODE_TYPES.JSXElement?null==Sk(e,t)("key")?{messageId:"default",node:t}:null:t.type===uF.AST_NODE_TYPES.JSXFragment?{messageId:"unexpectedFragmentSyntax",node:t}:null}return{ArrayExpression(n){if(t)return;let r=n.elements.filter(xf(uF.AST_NODE_TYPES.JSXElement));if(0===r.length)return;let i=e.sourceCode.getScope(n);for(let t of r)null==Sk(e,t,i)("key")&&e.report({messageId:"default",node:t})},CallExpression(r){if((t||=Sn(e,r))||r.callee.type!==uF.AST_NODE_TYPES.MemberExpression||r.callee.property.type!==uF.AST_NODE_TYPES.Identifier)return;let i=r.callee.property.name,a="from"===i?1:"map"===i?0:-1;if(a<0)return;let o=r.arguments[a];if(xg(o))if(o.body.type===uF.AST_NODE_TYPES.BlockStatement){var s;let t,r;(t=[],r=xg(s=o.body)?s:xA(s,xg),T9.simpleTraverse(s,{enter(e){e.type!==uF.AST_NODE_TYPES.ReturnStatement||xA(e,xg)===r&&t.push(e)}}),t).filter(e=>null!=e.argument).map(e=>n(e.argument)).filter(e=>null!=e).forEach(ub(e))}else ub(e)(function(e){switch(e.type){case uF.AST_NODE_TYPES.ConditionalExpression:return n(e.consequent)??n(e.alternate);case uF.AST_NODE_TYPES.LogicalExpression:return n(e.left)??n(e.right);case uF.AST_NODE_TYPES.JSXElement:case uF.AST_NODE_TYPES.JSXFragment:return n(e);default:return null}}(o.body))},"CallExpression:exit"(n){Sn(e,n)&&(t=!1)},JSXFragment(n){t||n.parent.type===uF.AST_NODE_TYPES.ArrayExpression&&e.report({messageId:"unexpectedFragmentSyntax",node:n})}}},defaultOptions:[]}),k5=ki({meta:{type:"problem",docs:{description:"Prevents incorrect usage of 'captureOwnerStack'."},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}=uE(e);return{CallExpression(t){St(e,t)&&null==xA(t,k7)&&e.report({messageId:"missingDevelopmentOnlyCheck",node:t})},ImportDeclaration(n){if(n.source.value===t)for(let t of n.specifiers)t.type===uF.AST_NODE_TYPES.ImportSpecifier&&t.imported.type===uF.AST_NODE_TYPES.Identifier&&"captureOwnerStack"===t.imported.name&&e.report({messageId:"useNamespaceImport",node:t})}}},defaultOptions:[]});function k7(e){var t,n;return e.type===uF.AST_NODE_TYPES.IfStatement&&(t=e.test,n="production",null!=t&&t.type===uF.AST_NODE_TYPES.BinaryExpression&&"!=="===t.operator&&(xB(t.left)&&xd(t.right,"string")?t.right.value===n:!!(xd(t.left,"string")&&xB(t.right))&&t.left.value===n))}var k9=ki({meta:{type:"problem",docs:{description:"Disallows nesting component definitions inside other components."},messages:{default:"Do not nest component definitions inside other components or props. {{suggestion}}"},schema:[]},name:"no-nested-component-definitions",create:function(e){let t=SW(e,{hint:SR.DoNotIncludeJsxWithNumberValue|SR.DoNotIncludeJsxWithBooleanValue|SR.DoNotIncludeJsxWithNullValue|SR.DoNotIncludeJsxWithStringValue|SR.DoNotIncludeJsxWithUndefinedValue|SR.RequireBothSidesOfLogicalExpressionToBeJsx|SR.RequireBothBranchesOfConditionalExpressionToBeJsx|SR.DoNotIncludeFunctionDefinedInArrayPattern|SR.DoNotIncludeFunctionDefinedInArrayExpression|SR.DoNotIncludeFunctionDefinedAsArrayMapCallback}),n=SG(e);return uh(t.visitor,n.visitor,{"Program:exit"(r){let i=[...t.ctx.getAllComponents(r)],a=[...n.ctx.getAllComponents(r)],o=e=>xg(e)&&i.some(t=>t.node===e),s=e=>xh(e)&&a.some(t=>t.node===e);for(let{name:t,node:n}of i){var l;if(null==t||Er(n))continue;if((l=n).parent.type===uF.AST_NODE_TYPES.JSXAttribute||null!=function(e,t=oJ){return xA(e,e=>e.type===uF.AST_NODE_TYPES.JSXAttribute&&t(e))}(l,e=>e.value?.type===uF.AST_NODE_TYPES.JSXExpressionContainer)){!function(e){if(Er(e))return!0;let t=xA(e,xf(uF.AST_NODE_TYPES.JSXExpressionContainer))?.parent;return t?.type===uF.AST_NODE_TYPES.JSXAttribute&&t.name.type===uF.AST_NODE_TYPES.JSXIdentifier&&t.name.name.startsWith("render")}(n)&&e.report({messageId:"default",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=xA(t,Sa(e));if(null==n)return!1;let r=xA(t,xf(uF.AST_NODE_TYPES.ObjectExpression));return null!=r&&r===n.arguments[1]}(e,n)){e.report({messageId:"default",node:n,data:{name:t,suggestion:"Move it to the top level or pass it as a prop."}});continue}let r=xA(n,o);if(null!=r&&!Er(r)){e.report({messageId:"default",node:n,data:{name:t,suggestion:n.parent.type===uF.AST_NODE_TYPES.Property?"Move it to the top level or pass it as a prop.":"Move it to the top level."}});continue}null!=xA(n,e=>Sz(e)&&SY(e.parent.parent))&&e.report({messageId:"default",node:n,data:{name:t,suggestion:"Move it to the top level."}})}for(let{name:t="unknown",node:n}of a)null!=xA(n,e=>s(e)||o(e))&&e.report({messageId:"default",node:n,data:{name:t,suggestion:n.parent.type===uF.AST_NODE_TYPES.Property?"Move it to the top level or pass it as a prop.":"Move it to the top level."}})}})},defaultOptions:[]}),Pe=ki({meta:{type:"problem",docs:{description:"Disallows nesting lazy component declarations inside other components."},messages:{default:"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=SW(e,{hint:SR.None}),n=SG(e),r=new Set;return uh(t.visitor,n.visitor,{ImportExpression(t){let n=xA(t,t=>Sc(e,t));null!=n&&r.add(n)},"Program:exit"(i){let a=t.ctx.getAllComponents(i),o=n.ctx.getAllComponents(i);for(let t of r)null!=xA(t,t=>!!xT(t)||(t.type===uF.AST_NODE_TYPES.CallExpression?S_(t)||Sa(e,t)||Si(e,t):xg(t)?a.some(e=>e.node===t):!!xh(t)&&o.some(e=>e.node===t)))&&e.report({messageId:"default",node:t})}})},defaultOptions:[]}),Pt=ki({meta:{type:"problem",docs:{description:"Disallows 'shouldComponentUpdate' when extending 'React.PureComponent'."},messages:{default:"'{{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,visitor:n}=SG(e);return uh(n,{"Program:exit"(n){for(let{name:r="PureComponent",node:i,flag:a}of t.getAllComponents(n)){if((a&Sq.PureComponent)===0n)continue;let{body:t}=i.body;for(let n of t)xy(n)&&n.key.type===uF.AST_NODE_TYPES.Identifier&&"shouldComponentUpdate"===n.key.name&&e.report({messageId:"default",node:n,data:{componentName:r}})}}})},defaultOptions:[]}),Pn=ki({meta:{type:"problem",docs:{description:"Disallows calling 'this.setState' in 'componentDidMount' outside functions such as callbacks."},messages:{default:"Do not call `this.setState` in `componentDidMount` outside 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(!SH(t))return;let n=xA(t,SY),r=xA(t,e=>e===n||S0(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:"default",node:t})}}:{}},defaultOptions:[]}),Pr=ki({meta:{type:"problem",docs:{description:"Disallows calling 'this.setState' in 'componentDidUpdate' outside functions such as callbacks."},messages:{default:"Do not call `this.setState` in `componentDidUpdate` outside 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(!SH(t))return;let n=xA(t,SY),r=xA(t,e=>e===n||S1(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:"default",node:t})}}:{}},defaultOptions:[]}),Pi=ki({meta:{type:"problem",docs:{description:"Disallows calling 'this.setState' in 'componentWillUpdate' outside functions such as callbacks."},messages:{default:"Do not call `this.setState` in `componentWillUpdate` outside 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(!SH(t))return;let n=xA(t,SY),r=xA(t,e=>e===n||S4(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:"default",node:t})}}:{}},defaultOptions:[]}),Pa=ki({meta:{type:"problem",docs:{description:"Disallows unnecessary 'key' props on nested child elements when rendering lists."},messages:{default:"Unnecessary `key` prop on this element. {{reason}}"},schema:[]},name:"no-unnecessary-key",create:function(e){if(!e.sourceCode.text.includes("key="))return{};let t={...SC(e),...SA(e)};return{JSXAttribute(n){if("key"!==n.name.name)return;let r=n.parent.parent;if(SM(e,r,t)||r.openingElement.attributes.some(e=>e.type===uF.AST_NODE_TYPES.JSXSpreadAttribute)||null!=xA(r,e=>(function(e){if(!xg(e))return!1;let t=xL(e);switch(!0){case t?.type===uF.AST_NODE_TYPES.Identifier:return t.name.startsWith("render");case t?.type===uF.AST_NODE_TYPES.MemberExpression&&t.property.type===uF.AST_NODE_TYPES.Identifier:return t.property.name.startsWith("render");case e.parent.type===uF.AST_NODE_TYPES.JSXExpressionContainer&&e.parent.parent.type===uF.AST_NODE_TYPES.JSXAttribute&&e.parent.parent.name.type===uF.AST_NODE_TYPES.JSXIdentifier:return e.parent.parent.name.name.startsWith("render")}return!1})(e)))return;let i=xA(r,Po);if(null==i||xA(r,xg)!==i||e.sourceCode.getScope(i)!==e.sourceCode.getScope(r))return;let a=xA(r,t=>t===i||xv(t)&&null!=Sk(e,t)("key"));null!=a&&a!==i&&e.report({messageId:"default",node:n,data:{reason:"A parent element already has a `key` prop in the same list rendering context."}})}}},defaultOptions:[]});function Po(e){let t=e.parent;return t?.type===uF.AST_NODE_TYPES.CallExpression&&t.callee.type===uF.AST_NODE_TYPES.MemberExpression&&t.callee.property.type===uF.AST_NODE_TYPES.Identifier&&t.arguments[function(e){switch(e){case"filter":case"flatMap":case"forEach":case"map":case"reduce":case"reduceRight":return 0;case"from":case"fromAsync":return 1;default:return -1}}(t.callee.property.name)]===e}var Ps=ki({meta:{type:"problem",docs:{description:"Disallows unnecessary usage of 'useCallback'."},messages:{default:"An 'useCallback' with empty deps and no references to the component scope may be unnecessary.",noUnnecessaryUseCallbackInsideUseEffect:"{{name}} is only used inside 1 useEffect, which may be unnecessary. You can move the computation into useEffect directly and merge the dependency arrays."},schema:[]},name:"no-unnecessary-use-callback",create:function(e){return e.sourceCode.text.includes("useCallback")?{VariableDeclarator(t){let{id:n,init:r}=t;if(n.type!==uF.AST_NODE_TYPES.Identifier||r?.type!==uF.AST_NODE_TYPES.CallExpression||!Sm(r))return;let[i,...a]=e.sourceCode.getDeclaredVariables(t);if(null==i||a.length>0)return;let o=function(e,t){if(!/use\w*Effect/u.test(e.text)||!xq.isVariableDeclarator(t.parent)||!xq.isIdentifier(t.parent.id))return;let n=(e.getDeclaredVariables(t.parent)[0]?.references??[]).filter(e=>!0!==e.init);if(0===n.length)return;let r=new Set;for(let e of n){let t=xA(e.identifier,Sp);if(null==t||(r.add(t),r.size>1))return}return{messageId:"noUnnecessaryUseCallbackInsideUseEffect",node:t,data:{name:t.parent.id.name}}}(e.sourceCode,r),s=e.sourceCode.getScope(r),l=e.sourceCode.getScope(r).block;if(!xg(l))return;let[c,u]=r.arguments;if(null==c||null==u)return;if(!oK.match(u).with({type:uF.AST_NODE_TYPES.ArrayExpression},e=>0===e.elements.length).with({type:uF.AST_NODE_TYPES.Identifier},e=>{let t=xG(xW(e.name,s),0);return t?.type===uF.AST_NODE_TYPES.ArrayExpression&&0===t.elements.length}).otherwise(()=>!1))return void ub(e)(o);let _=oK.match(c).with({type:uF.AST_NODE_TYPES.ArrowFunctionExpression},e=>e.body.type===uF.AST_NODE_TYPES.ArrowFunctionExpression?e.body:e).with({type:uF.AST_NODE_TYPES.FunctionExpression},oB).with({type:uF.AST_NODE_TYPES.Identifier},e=>{let t=xG(xW(e.name,s),0);return t?.type!==uF.AST_NODE_TYPES.ArrowFunctionExpression&&t?.type!==uF.AST_NODE_TYPES.FunctionExpression?null:t}).otherwise(()=>null);if(null!=_){if(!xQ(e.sourceCode.getScope(_)).flatMap(e=>e.references).some(e=>e.resolved?.scope.block===l))return void e.report({messageId:"default",node:t});ub(e)(o)}}}:{}},defaultOptions:[]}),Pl=ki({meta:{type:"problem",docs:{description:"Disallows unnecessary usage of 'useMemo'."},messages:{default:"An 'useMemo' with empty deps and no references to the component scope may be unnecessary.",noUnnecessaryUseMemoInsideUseEffect:"{{name}} is only used inside 1 useEffect, which may be unnecessary. You can move the computation into useEffect directly and merge the dependency arrays."},schema:[]},name:"no-unnecessary-use-memo",create:function(e){return e.sourceCode.text.includes("useMemo")?{VariableDeclarator(t){let{id:n,init:r}=t;if(n.type!==uF.AST_NODE_TYPES.Identifier||r?.type!==uF.AST_NODE_TYPES.CallExpression||!Sy(r))return;let[i,...a]=e.sourceCode.getDeclaredVariables(t);if(null==i||a.length>0)return;let o=function(e,t){if(!/use\w*Effect/u.test(e.text)||!xq.isVariableDeclarator(t.parent)||!xq.isIdentifier(t.parent.id))return;let n=(e.getDeclaredVariables(t.parent)[0]?.references??[]).filter(e=>!0!==e.init);if(0===n.length)return;let r=new Set;for(let e of n){let t=xA(e.identifier,Sp);if(null==t||(r.add(t),r.size>1))return}return{messageId:"noUnnecessaryUseMemoInsideUseEffect",node:t,data:{name:t.parent.id.name}}}(e.sourceCode,r),s=e.sourceCode.getScope(r),l=s.block;if(!xg(l))return;let[c,u]=r.arguments;if(null==c||null==u)return;if(xg(c)&&[...xF(c.body),...xN(c.body)].length>0||!oK.match(u).with({type:uF.AST_NODE_TYPES.ArrayExpression},e=>0===e.elements.length).with({type:uF.AST_NODE_TYPES.Identifier},e=>{let t=xG(xW(e.name,s),0);return t?.type===uF.AST_NODE_TYPES.ArrayExpression&&0===t.elements.length}).otherwise(()=>!1))return void ub(e)(o);let _=oK.match(c).with({type:uF.AST_NODE_TYPES.ArrowFunctionExpression},e=>e.body.type===uF.AST_NODE_TYPES.ArrowFunctionExpression?e.body:e).with({type:uF.AST_NODE_TYPES.FunctionExpression},oB).with({type:uF.AST_NODE_TYPES.Identifier},e=>{let t=xG(xW(e.name,s),0);return t?.type!==uF.AST_NODE_TYPES.ArrowFunctionExpression&&t?.type!==uF.AST_NODE_TYPES.FunctionExpression?null:t}).otherwise(()=>null);if(null!=_){if(!xQ(e.sourceCode.getScope(_)).flatMap(e=>e.references).some(e=>e.resolved?.scope.block===l))return void e.report({messageId:"default",node:t});ub(e)(o)}}}:{}},defaultOptions:[]});let Pc=["useMDXComponents"];var Pu=ki({meta:{type:"problem",docs:{description:"Enforces that a function with the 'use' prefix uses at least one Hook inside it."},messages:{default:"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,r,i,{ctx:a,visitor:o}=(t=new Map,n=[],r=t=>e.sourceCode.getText(t),{ctx:{getAllHooks:e=>[...t.values()],getCurrentEntries:()=>n,getCurrentEntry:i=()=>n.at(-1)},visitor:{":function":e=>{let i=xL(e),a=SS.next();n.push({key:a,node:e}),null!=i&&function(e){switch(e.type){case uF.AST_NODE_TYPES.Identifier:return Su(e.name);case uF.AST_NODE_TYPES.MemberExpression:return"name"in e.property&&Su(e.property.name);default:return!1}}(i)&&t.set(a,{id:i,key:a,kind:"function",name:xY(i,r),node:e,directives:[],flag:0n,hint:0n,hookCalls:[]})},":function:exit":()=>{n.pop()},CallExpression(e){if(!S_(e))return;let n=i();null!=n&&t.get(n.key)?.hookCalls.push(e)}}});return uh(o,{"Program:exit"(t){for(let{id:n,name:r,node:i,hookCalls:o}of a.getAllHooks(t)){if(!(o.length>0||i.body.type===uF.AST_NODE_TYPES.BlockStatement&&0===i.body.body.length||Pc.includes(r)))e.sourceCode.getCommentsInside(i).some(({value:e})=>/use\([\s\S]*?\)/u.test(e)||/use[A-Z0-9]\w*\([\s\S]*?\)/u.test(e))||null==xA(i,xJ)&&e.report({messageId:"default",node:n??i,data:{name:r}})}}})},defaultOptions:[]}),P_=ki({meta:{type:"problem",docs:{description:"Warns about the use of 'UNSAFE_componentWillMount' in class components."},messages:{default:"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,visitor:n}=SG(e);return uh(n,{"Program:exit"(n){for(let{node:r}of t.getAllComponents(n)){let{body:t}=r.body;for(let n of t)S8(n)&&e.report({messageId:"default",node:n})}}})},defaultOptions:[]}),Pd=ki({meta:{type:"problem",docs:{description:"Warns about the use of 'UNSAFE_componentWillReceiveProps' in class components."},messages:{default:"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,visitor:n}=SG(e);return uh(n,{"Program:exit"(n){for(let{node:r}of t.getAllComponents(n)){let{body:t}=r.body;for(let n of t)S5(n)&&e.report({messageId:"default",node:n})}}})},defaultOptions:[]}),Pp=ki({meta:{type:"problem",docs:{description:"Warns about the use of 'UNSAFE_componentWillUpdate' in class components."},messages:{default:"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,visitor:n}=SG(e);return uh(n,{"Program:exit"(n){for(let{node:r}of t.getAllComponents(n)){let{body:t}=r.body;for(let n of t)S7(n)&&e.report({messageId:"default",node:n})}}})},defaultOptions:[]}),Pf=ki({meta:{type:"problem",docs:{description:"Prevents non-stable values (i.e., object literals) from being used as a value for 'Context.Provider'."},messages:{unstableContextValue:"A/an '{{kind}}' 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){if(xO(e.sourceCode.ast).some(e=>"use memo"===e.directive))return{};let{version:t}=uE(e),n=Eu(t,"19.0.0","<"),{ctx:r,visitor:i}=SW(e),a=new WeakMap;return uh(i,{JSXOpeningElement(t){var i,o;let s=SI(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===uF.AST_NODE_TYPES.JSXAttribute&&"value"===e.name.name);if(null==c||!("value"in c))return;let u=c.value;if(u?.type!==uF.AST_NODE_TYPES.JSXExpressionContainer)return;let _=u.expression,d=xZ(_,e.sourceCode.getScope(_));null==d||S_(d.node)||o$(a,l.node,()=>[]).push(d)},"Program:exit"(t){for(let{node:n,directives:i}of r.getAllComponents(t))for(let t of a.get(n)??[]){if(i.some(e=>"use memo"===e.directive))return;let{kind:n,node:r}=t,a="function"===n?"Consider wrapping it in a useCallback hook.":"Consider wrapping it in a useMemo hook.";e.report({messageId:"unstableContextValue",node:r,data:{kind:xj(r),suggestion:a}})}}})},defaultOptions:[]}),Pm=ki({meta:{type:"problem",docs:{description:"Prevents using referential-type values as default props in object destructuring."},messages:{default:"A/an '{{kind}}' as default prop. This could lead to potential infinite render loop in React. Use a variable instead of '{{kind}}'."},schema:[{type:"object",additionalProperties:!1,properties:{safeDefaultProps:{type:"array",items:{type:"string"}}}}]},name:"no-unstable-default-props",create:function(e,[t]){if(xO(e.sourceCode.ast).some(e=>"use memo"===e.directive))return{};let{ctx:n,visitor:r}=SW(e),i=new WeakMap,{safeDefaultProps:a=[]}=t,o=a.map(e=>uv(e));return uh(r,{"VariableDeclarator[id.type='ObjectPattern'][init.type='Identifier']"(e){let t=n.getCurrentEntry();null!=t&&o$(i,t.node,()=>[]).push(e)},"Program:exit"(t){for(let{node:r}of n.getAllComponents(t)){let{params:t}=r,[n]=t;if(null!=n)for(let t of oK.match(n).with({type:uF.AST_NODE_TYPES.ObjectPattern},({properties:e})=>e).with({type:uF.AST_NODE_TYPES.Identifier},({name:e})=>i.get(r)?.filter(t=>t.init.name===e).flatMap(e=>e.id.properties)??[]).otherwise(()=>[])){if(t.type!==uF.AST_NODE_TYPES.Property||t.value.type!==uF.AST_NODE_TYPES.AssignmentPattern)continue;let{value:n}=t,{right:r}=n,i=xZ(n,e.sourceCode.getScope(n));if(null!=i&&!S_(i.node)){if(o.length>0){let e=function(e){if(e.type===uF.AST_NODE_TYPES.NewExpression&&e.callee.type===uF.AST_NODE_TYPES.Identifier)return e.callee.name;if(e.type===uF.AST_NODE_TYPES.CallExpression&&e.callee.type===uF.AST_NODE_TYPES.MemberExpression){let{object:t}=e.callee;if(t.type===uF.AST_NODE_TYPES.Identifier)return t.name}return null}(r);if(null!=e&&o.some(t=>t.test(e)))continue}e.report({messageId:"default",node:r,data:{kind:xj(r)}})}}}}})},defaultOptions:[{safeDefaultProps:[]}]});let Pg=new Set(["componentDidCatch","componentDidMount","componentDidUpdate","componentWillMount","componentWillReceiveProps","componentWillUnmount","componentWillUpdate","constructor","getSnapshotBeforeUpdate","render","shouldComponentUpdate","state","UNSAFE_componentWillMount","UNSAFE_componentWillReceiveProps","UNSAFE_componentWillUpdate"]);function Ph(e,t){return oK.match(t).with({type:uF.AST_NODE_TYPES.Literal},oJ).with({type:uF.AST_NODE_TYPES.TemplateLiteral,expressions:[]},oJ).with({type:uF.AST_NODE_TYPES.Identifier},()=>!e.computed).otherwise(oz)}var Py=ki({meta:{type:"problem",docs:{description:"Warns about unused class component methods and properties."},messages:{default:"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),SY(e)&&(r.set(e,new Set),i.set(e,new Set))}function o(){let n=t.pop();if(null==n||!SY(n))return;let a=x_(n),o=r.get(n),s=i.get(n);if(null!=o)for(let t of o){let n=xU(t);null!=n&&(s?.has(n)||Pg.has(n)||e.report({messageId:"default",node:t,data:{className:null!=a?e.sourceCode.getText(a):"Component",methodName:n}}))}}function s(e){n.push(e);let i=t.at(-1);null!=i&&SY(i)&&!e.static&&Ph(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||!SY(a)||o.static||!xw(e.object)||!Ph(e,e.property))return;if(e.parent.type===uF.AST_NODE_TYPES.AssignmentExpression&&e.parent.left===e)return void r.get(a)?.add(e.property);let s=xU(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&&SY(r)&&!a.static&&null!=e.init&&xw(e.init)&&e.id.type===uF.AST_NODE_TYPES.ObjectPattern){for(let t of e.id.properties)if(t.type===uF.AST_NODE_TYPES.Property&&Ph(t,t.key)){let e=xU(t.key);null!=e&&i.get(r)?.add(e)}}}}},defaultOptions:[]}),Pv=ki({meta:{type:"problem",docs:{description:"Warns about component props that are defined but never used."},messages:{default:"Prop `{{name}}` is declared but never used"},schema:[]},name:"no-unused-props",create:function(e){let t=gV.ESLintUtils.getParserServices(e,!1),{ctx:n,visitor:r}=SW(e);return uh(r,{"Program:exit"(r){let i=t.program.getTypeChecker(),a=new Set,o=new Set;for(let s of n.getAllComponents(r)){let[n]=s.node.params;if(null==n)continue;let r=new Set;if(!function(e,t,n){switch(n.type){case uF.AST_NODE_TYPES.Identifier:return PT(e,t,n);case uF.AST_NODE_TYPES.ObjectPattern:return Pb(e,t,n);default:return!1}}(e,r,n))continue;let l=t.esTreeNodeToTSNodeMap.get(n);for(let e of i.getTypeAtLocation(l).getProperties())a.add(e),r.has(e.name)&&o.add(e)}for(let n of[...a].filter(e=>!o.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===uF.AST_NODE_TYPES.TSPropertySignature?i.key:i;e.report({messageId:"default",node:a,data:{name:n.name}})}(e,t,n)}})},defaultOptions:[]});function Pb(e,t,n){for(let o of n.properties)switch(o.type){case uF.AST_NODE_TYPES.Property:{let e=Px(o.key);if(null==e)return!1;t.add(e);break}case uF.AST_NODE_TYPES.RestElement:var r,i,a;if(r=e,i=t,!((a=o).argument.type===uF.AST_NODE_TYPES.Identifier&&PT(r,i,a.argument)))return!1}return!0}function PT(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 uF.AST_NODE_TYPES.MemberExpression:if(i.object.type===uF.AST_NODE_TYPES.Identifier&&i.object.name===n.name){let e=Px(i.property);if(null==e)return!1;return t.add(e),!0}break;case uF.AST_NODE_TYPES.VariableDeclarator:if(i.id.type===uF.AST_NODE_TYPES.ObjectPattern&&i.init===r.identifier)return Pb(e,t,i.id)}return!1}(e,t,n,i))return!1;return!0}function Px(e){switch(e.type){case uF.AST_NODE_TYPES.Identifier:return e.name;case uF.AST_NODE_TYPES.Literal:if("string"==typeof e.value)return e.value}return null}var PS=ki({meta:{type:"problem",docs:{description:"Warns about unused class component state."},messages:{default:"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||!SY(n))return;let r=x_(n),{node:a,isUsed:o=!1}=i.get(n)??{};null==a||o||e.report({messageId:"default",node:a,data:{className:null!=r?e.sourceCode.getText(r):"Component"}})}function s(e){n.push(e);let r=t.at(-1);if(null!=r&&SY(r)){if(e.static){if(S9(e)&&oK.isMatching({params:[oK.P.nonNullable,...oK.P.array()]})(e.value)){let e=i.get(r)?.node;i.set(r,{node:e,isUsed:!0})}return}"state"===xU(e.key)&&i.set(r,{node:e.key,isUsed:!1})}}function l(){n.pop()}return{AssignmentExpression(e){if(!SX(e))return;let n=t.at(-1);if(null==n||!SY(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(!xw(e.object)||"state"!==xU(e.property))return;let a=t.at(-1);if(null==a||!SY(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||!SY(a))return;let o=n.at(-1);if(null==o||o.static||o===r.at(-1)||!a.body.body.includes(o)||null==e.init||!xw(e.init)||e.id.type!==uF.AST_NODE_TYPES.ObjectPattern||!e.id.properties.some(e=>{var t;return!!(e.type===uF.AST_NODE_TYPES.Property&&(t=e.key,oK.match(t).with({type:uF.AST_NODE_TYPES.Literal},oJ).with({type:uF.AST_NODE_TYPES.TemplateLiteral,expressions:[]},oJ).with({type:uF.AST_NODE_TYPES.Identifier},()=>!e.computed).otherwise(oz)))&&"state"===xU(e.key)}))return;let s=i.get(a)?.node;i.set(a,{node:s,isUsed:!0})}}},defaultOptions:[]}),PE=ki({meta:{type:"problem",docs:{description:"Replaces usage of 'useContext' with 'use'."},fixable:"code",messages:{default:"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=uE(e);if(Eu(t.version,"19.0.0","<"))return{};let n=new Set;return{CallExpression(e){S_(e)&&n.add(e)},ImportDeclaration(n){if(n.source.value!==t.importSource)return;let r=n.specifiers.some(oK.isMatching({local:{type:uF.AST_NODE_TYPES.Identifier,name:"use"}}));for(let t of n.specifiers)t.type===uF.AST_NODE_TYPES.ImportSpecifier&&t.imported.type===uF.AST_NODE_TYPES.Identifier&&"useContext"===t.imported.name&&e.report({messageId:"default",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)Sg(t)&&e.report({messageId:"default",node:t.callee,fix(e){switch(t.callee.type){case uF.AST_NODE_TYPES.Identifier:return e.replaceText(t.callee,"use");case uF.AST_NODE_TYPES.MemberExpression:return e.replaceText(t.callee.property,"use")}return null}})}}},defaultOptions:[]}),Pk=ki({meta:{type:"problem",docs:{description:"Disallows useless 'forwardRef' calls on components that don't use 'ref's."},messages:{default:"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(!Ss(e,t))return;let[n]=t.arguments;null!=n&&xg(n)&&null==n.params[1]&&e.report({messageId:"default",node:t.callee})}}},defaultOptions:[]});let PP=[{allowEmptyFragment:!1,allowExpressions:!0}];var PC=ki({meta:{type:"problem",defaultOptions:[...PP],docs:{description:"Disallows useless fragment elements."},fixable:"code",messages:{default:"A fragment {{reason}} is useless."},schema:[{type:"object",additionalProperties:!1,properties:{allowEmptyFragment:{type:"boolean",description:"Allow empty fragments"},allowExpressions:{type:"boolean",description:"Allow fragments with a single expression child"}}}]},name:"no-useless-fragment",create:function(e,[t]){let{allowEmptyFragment:n=!1,allowExpressions:r=!0}=t,i={...SC(e),...SA(e)};function a(e,t){if(t.type===uF.AST_NODE_TYPES.JSXElement&&null!=Sk(e,t)("key"))return;if(SL(e,t.parent)&&e.report({messageId:"default",node:t,data:{reason:"placed inside a host component"},fix:o(e,t)}),0===t.children.length){if(n)return;e.report({messageId:"default",node:t,data:{reason:"contains less than two children"},fix:o(e,t)});return}let i=xm([uF.AST_NODE_TYPES.JSXElement,uF.AST_NODE_TYPES.JSXFragment])(t.parent);switch(!0){case r&&!i&&1===t.children.length&&SF(t.children.at(0)):return;case!r&&i:case!r&&!i&&1===t.children.length:e.report({messageId:"default",node:t,data:{reason:"contains less than two children"},fix:o(e,t)});return}let a=t.children.filter(e=>{var t;return!(SF(t=e)&&Pw(t)&&t.raw.includes("\n"))}),s=a.at(0);(0===a.length||1===a.length&&s?.type!==uF.AST_NODE_TYPES.JSXExpressionContainer)&&e.report({messageId:"default",node:t,data:{reason:"contains less than two children"},fix:o(e,t)})}function o(e,t){var n,r;return(n=e,(r=t).parent.type===uF.AST_NODE_TYPES.JSXElement||r.parent.type===uF.AST_NODE_TYPES.JSXFragment?SL(n,r.parent):0!==r.children.length&&!r.children.some(e=>SF(e)&&!Pw(e)||xf(uF.AST_NODE_TYPES.JSXExpressionContainer)(e)))?n=>{var r;let i,a,o,s,l=t.type===uF.AST_NODE_TYPES.JSXFragment?t.openingFragment:t.openingElement,c=t.type===uF.AST_NODE_TYPES.JSXFragment?t.closingFragment:t.closingElement,u=l.type===uF.AST_NODE_TYPES.JSXOpeningElement&&l.selfClosing?"":e.sourceCode.getText().slice(l.range[1],c?.range[0]);return n.replaceText(t,(r=u,i=/^\s*/.exec(r)?.[0]??"",a=/\s*$/.exec(r)?.[0]??"",o=i.includes("\n")?i.length:0,s=a.includes("\n")?r.length-a.length:r.length,r.slice(o,s)))}:null}return{JSXElement(t){SM(e,t,i)&&a(e,t)},JSXFragment(t){a(e,t)}}},defaultOptions:PP});function Pw(e){return"string"==typeof e.value&&""===e.raw.trim()}var PA=ki({meta:{type:"problem",docs:{description:"Enforces destructuring assignment for component props and context."},messages:{default:"Use destructuring assignment for component props."},schema:[]},name:"prefer-destructuring-assignment",create:function(e){let{ctx:t,visitor:n}=SW(e);return uh(n,{"Program:exit"(n){for(let r of t.getAllComponents(n)){if(null==r.name||r.isExportDefaultDeclaration)continue;let[t]=r.node.params;if(null==t||t.type!==uF.AST_NODE_TYPES.Identifier)continue;let n=t.name;for(let t of e.sourceCode.getScope(r.node).variables.find(e=>e.name===n)?.references??[]){let{parent:n}=t.identifier;n.type===uF.AST_NODE_TYPES.MemberExpression&&e.report({messageId:"default",node:n})}}}})},defaultOptions:[]}),PD=ki({meta:{type:"problem",docs:{description:"Enforces importing React via a namespace import."},fixable:"code",messages:{default:"Prefer importing React as 'import * as React from \"{{importSource}}\"';"},schema:[]},name:"prefer-namespace-import",create:function(e){let{importSource:t}=uE(e);return{[`ImportDeclaration[source.value="${t}"] ImportDefaultSpecifier`](n){let r=n.parent.specifiers.length>1;e.report({messageId:"default",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}
|
|
418
418
|
${l} ${u} from ${c}${o}`)}})}}},defaultOptions:[]}),PN=ki({meta:{type:"problem",docs:{description:"Enforces read-only props in components."},messages:{default:"A function component's props should be read-only."},schema:[]},name:"prefer-read-only-props",create:function(e){let t=gV.ESLintUtils.getParserServices(e,!1),n=t.program.getTypeChecker(),{ctx:r,visitor:i}=SW(e);return uh(i,{"Program:exit"(i){for(let a of r.getAllComponents(i)){let[r]=a.node.params;if(null==a.id||null==a.name||null==r)continue;let i=EU.getConstrainedTypeAtLocation(t,r);!(EU.isTypeReadonly(t.program,i)||function(e,t){try{let n=function(e,t,n=[{type:{from:"lib",name:"Map"},to:aW.Mutable},{type:{from:"lib",name:"Set"},to:aW.Mutable},{type:{from:"lib",name:"Date"},to:aW.Mutable},{type:{from:"lib",name:"URL"},to:aW.Mutable},{type:{from:"lib",name:"URLSearchParams"},to:aW.Mutable}],r=!0,i=aW.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 ht.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,ht.TypeFormatFlags.AddUndefined|ht.TypeFormatFlags.NoTruncation|ht.TypeFormatFlags.OmitParameterModifiers|ht.TypeFormatFlags.UseFullyQualifiedType|ht.TypeFormatFlags.WriteArrayAsGenericType|ht.TypeFormatFlags.WriteArrowStyleSignature|ht.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(ht.isTypeOperatorNode(n)&&n.operator===ht.SyntaxKind.ReadonlyKeyword||ht.isTypeOperatorNode(n.parent)&&n.parent.operator===ht.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?EQ:!1===r?new WeakMap:r,l={program:e,overrides:n,cache:s,immutabilityLimits:{min:aW.Mutable,max:i},typeMatchesPatternSpecifier:a},c=[EZ(t)],u=aW.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,!ve(o.type)&&("string"==typeof r||r instanceof RegExp?EH(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 EV(e,_);case"package":return r=e,i=u,a=_,o=t.package,(EJ(i,o)||Ez(r,a,o))&&!EV(e,_);case"file":return function(e,t,n){let r=e.getCurrentDirectory(),i=ht.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=op.normalize(e),n=t.endsWith(op.sep)?t.slice(0,-1):t;return void 0===ht.sys||ht.sys.useCaseSensitiveFileNames?n:n.toLowerCase()}(e.path);return t.startsWith(r)&&(bG.isMatch(t,n)||bG.isMatch(`./${op.relative(r,t)}`,n))})}(e,_,t.path)&&!EV(e,_)&&(s=e,l=u,c=_,!(EJ(l,void 0)||Ez(s,c,void 0)))}}(n,r,o.type)&&EH(n,r,o,i))}));if(f?.to!==void 0){if(void 0===f.from){n.immutability=f.to,EG(e.program,e.cache,n.typeData,n.immutability);return}t.push({taskState:n,override:f,stage:6})}if(EG(e.program,e.cache,n.typeData,n.immutability),vs(n.typeData.type))return function(e,t){let n=t.typeData.type.types.map((e,n)=>EZ(EK(e,null!==t.typeData.typeNode&&ht.isUnionTypeNode(t.typeData.typeNode)?t.typeData.typeNode.types[n]:void 0)));e.push(E0(t,n,Eq),...n)}(t,n);if(va(n.typeData.type)){return l=e,c=t,u=n,E3(l,c,u)}if(vr(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=>EZ(EK(r.getTypeFromTypeNode(e),e)));t.push(E0(n,i,Eq),...i)}(e,t,n);if((s=n.typeData.type).getCallSignatures().length>0&&0===s.getProperties().length)return n.immutability=aW.Immutable;let m=e.program.getTypeChecker();m.isTupleType(n.typeData.type)?function(e,t,n){if(!n.typeData.type.target.readonly){n.immutability=aW.Mutable;return}E2(e,t,n)}(e,t,n):m.isArrayType(n.typeData.type)?E2(e,t,n):vo(n.typeData.type)?E3(e,t,n):n.immutability=aW.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(E1(t,()=>{t.stage=4,e.push(t)})),E6(e,t)}(c,o);break;case 4:!function(e,t,n){let[r,i]=va(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(E1(n,()=>{n.stage=7,n.immutability=E$(n.limits.min,n.limits.max),t.push(n)}),E1(n,()=>{let a=r.flatMap((t,r)=>E4(e,n,ht.IndexKind.Number,EK(t,i?.[r])));a.length>0&&t.push(E0(n,a,E$),...a)}));let a=r.flatMap((t,r)=>E4(e,n,ht.IndexKind.String,EK(t,i?.[r])));a.length>0&&t.push(E0(n,a,E$),...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!==aW.Calculating&&(e.taskState.limits.max=Eq(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!==aW.Calculating&&(EG(e,s,o.typeData,o.immutability),u=o.immutability)}while(c.length>0);return o.immutability===aW.Calculating?aW.Unknown:o.immutability}(e,EK(s,o?t:void 0),n,r,i,a)}(e.program,t);return EW(n)||n>=aW.Immutable||n>=aW.ReadonlyShallow||n>=aW.ReadonlyDeep}catch{return!0}}(t,i))&&(i.isClassOrInterface()&&function(e,t){let n=t.getProperties(),r=t.getBaseTypes()??[];return 0===n.length||(0===r.length?n.every(n=>vg(t,n.getEscapedName(),e)):n.every(n=>!!vg(t,n.getEscapedName(),e)||r.every(t=>vg(t,n.getEscapedName(),e))))}(n,i)||e.report({messageId:"default",node:r}))}}})},defaultOptions:[]});let PF=["Boolean","String","Number"];var PO=ki({meta:{type:"problem",docs:{description:"Enforces wrapping function calls made inside 'useState' in an 'initializer function'."},messages:{default:"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(!Sb(t))return;let[n]=t.arguments;if(null!=n){for(let t of xN(n))!("name"in t.callee)||PF.includes(t.callee.name)||null==xA(t,Sf)&&e.report({messageId:"default",node:t});for(let t of xF(n))!("name"in t.callee)||Su(t.callee.name)||PF.includes(t.callee.name)||null==xA(t,Sf)&&e.report({messageId:"default",node:t})}}}},defaultOptions:[]}),PI=ki({meta:{type:"problem",docs:{description:"Disallows the 'defaultProps' property in favor of ES6 default parameters."},messages:{default:"[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!==uF.AST_NODE_TYPES.MemberExpression)return;let{object:n,property:r}=t.left;if(n.type!==uF.AST_NODE_TYPES.Identifier||r.type!==uF.AST_NODE_TYPES.Identifier||"defaultProps"!==r.name||!SV(n.name))return;let i=xG(xW(n.name,e.sourceCode.getScope(t)),0);null==i||xg(i)&&e.report({messageId:"default",node:r})}}:{}},defaultOptions:[]});let PL=[{forbid:[{prop:"/_/"}]}],PM={meta:{name:"eslint-plugin-react-x",version:"2.13.0"},rules:{"jsx-dollar":kS,"jsx-key-before-spread":kE,"jsx-no-comment-textnodes":kk,"jsx-no-duplicate-props":kP,"jsx-no-iife":kC,"jsx-no-undef":kw,"jsx-shorthand-boolean":kD,"jsx-shorthand-fragment":kF,"jsx-uses-react":kO,"jsx-uses-vars":kL,"no-access-state-in-setstate":kM,"no-array-index-key":kj,"no-children-count":kY,"no-children-for-each":kB,"no-children-map":kU,"no-children-only":kV,"no-children-prop":kJ,"no-children-to-array":kz,"no-class-component":kq,"no-clone-element":k$,"no-component-will-mount":kW,"no-component-will-receive-props":kK,"no-component-will-update":kG,"no-context-provider":kH,"no-create-ref":kX,"no-direct-mutation-state":kZ,"no-duplicate-key":k0,"no-forward-ref":k1,"no-implicit-key":k2,"no-leaked-conditional-rendering":k3,"no-missing-component-display-name":k6,"no-missing-context-display-name":k4,"no-missing-key":k8,"no-misused-capture-owner-stack":k5,"no-nested-component-definitions":k9,"no-nested-lazy-component-declarations":Pe,"no-redundant-should-component-update":Pt,"no-set-state-in-component-did-mount":Pn,"no-set-state-in-component-did-update":Pr,"no-set-state-in-component-will-update":Pi,"no-unnecessary-key":Pa,"no-unnecessary-use-callback":Ps,"no-unnecessary-use-memo":Pl,"no-unnecessary-use-prefix":Pu,"no-unsafe-component-will-mount":P_,"no-unsafe-component-will-receive-props":Pd,"no-unsafe-component-will-update":Pp,"no-unstable-context-value":Pf,"no-unstable-default-props":Pm,"no-unused-class-component-members":Py,"no-unused-props":Pv,"no-unused-state":PS,"no-use-context":PE,"no-useless-forward-ref":Pk,"no-useless-fragment":PC,"prefer-destructuring-assignment":PA,"prefer-namespace-import":PD,"prefer-read-only-props":PN,"prefer-use-state-lazy-initialization":PO,"no-default-props":PI,"no-forbidden-props":ki({meta:{type:"problem",defaultOptions:[...PL],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:"Disallows certain props on components."},messages:{default:'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:"no-forbidden-props",create:function(e,[t]){let{forbid:n}=t;return{JSXOpeningElement(t){let r=null;for(let i of(t.name.type===uF.AST_NODE_TYPES.JSXIdentifier?r=t.name.name:t.name.type===uF.AST_NODE_TYPES.JSXNamespacedName&&(r=t.name.name.name),t.attributes)){if(i.type===uF.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)))&&uv("string"==typeof a?a:a.prop).test(t)&&e.report({messageId:"default",node:i,data:{name:t}})}}}},defaultOptions:PL}),"no-prop-types":ki({meta:{type:"problem",docs:{description:"Disallows 'propTypes' in favor of TypeScript or another type-checking solution."},messages:{default:"[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!==uF.AST_NODE_TYPES.MemberExpression)return;let{object:n,property:r}=t.left;if(n.type!==uF.AST_NODE_TYPES.Identifier||r.type!==uF.AST_NODE_TYPES.Identifier||"propTypes"!==r.name||!SV(n.name))return;let i=xG(xW(n.name,e.sourceCode.getScope(t)),0);null!=i&&(xg(i)||SY(i))&&e.report({messageId:"default",node:r})},PropertyDefinition(t){!SY(t.parent.parent)||t.static&&t.key.type===uF.AST_NODE_TYPES.Identifier&&"propTypes"===t.key.name&&e.report({messageId:"default",node:t})}}:{}},defaultOptions:[]}),"no-string-refs":ki({meta:{type:"problem",docs:{description:"Replaces string refs with callback refs."},fixable:"code",messages:{default:"[Deprecated] Use callback refs instead."},schema:[]},name:"no-string-refs",create:function(e){let t={isWithinClassComponent:!1};return{ClassBody:function(e){SY(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===uF.AST_NODE_TYPES.Literal&&"string"==typeof t.value:return e.sourceCode.getText(t);case t.type===uF.AST_NODE_TYPES.JSXExpressionContainer&&t.expression.type===uF.AST_NODE_TYPES.Literal&&"string"==typeof t.expression.value:case t.type===uF.AST_NODE_TYPES.JSXExpressionContainer&&t.expression.type===uF.AST_NODE_TYPES.TemplateLiteral:return e.sourceCode.getText(t.expression);default:return null}}(e,n.value);null!=r&&e.report({messageId:"default",node:n,fix:e=>null!=n.value&&t.isWithinClassComponent?e.replaceText(n.value,`{(ref) => { this.refs[${r}] = ref; }}`):null})}}},defaultOptions:[]}),"no-unnecessary-use-ref":ki({meta:{type:"problem",docs:{description:"Disallows unnecessary usage of 'useRef'."},messages:{default:"Unnecessary use of 'useRef'. Instead, co-locate the value inside the effect that uses it."},schema:[]},name:"no-unnecessary-use-ref",create:function(e){return e.sourceCode.text.includes("useRef")?{VariableDeclarator(t){let{id:n,init:r}=t;if(n.type!==uF.AST_NODE_TYPES.Identifier||null==r||!Sv(r))return;let[i,...a]=e.sourceCode.getDeclaredVariables(t);if(null==i||a.length>0||i.name.toLowerCase().startsWith("prev"))return;let o=new Set,s=0;for(let{identifier:e,init:t}of i.references){if(null!=t)continue;let n=xA(e,Sp);null==n?s++:o.add(n)}s>0||1!==o.size||e.report({messageId:"default",node:t.parent})}}:{}},defaultOptions:[]})}};var PR=E5({name:()=>Pj,plugins:()=>PB,rules:()=>PY,settings:()=>PU});let Pj="react-x/recommended",PY={"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-forward-ref":"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"},PB={"react-x":PM},PU={"react-x":ux},PV={"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 PJ=E5({name:()=>Pz,plugins:()=>P$,rules:()=>Pq,settings:()=>PW});let Pz="react-x/recommended-typescript",Pq={...PY,...PV},P$={...PB},PW={...PU};var PK=E5({name:()=>PG,plugins:()=>PX,rules:()=>PH,settings:()=>PQ});let PG="react-x/recommended-type-checked",PH={...Pq,"react-x/no-implicit-key":"error","react-x/no-leaked-conditional-rendering":"error"},PX={...P$},PQ={...PW};var PZ=E5({name:()=>P0,plugins:()=>P2,rules:()=>P1,settings:()=>P3});let P0="react-x/strict",P1={...PY,"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-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"},P2={...PB},P3={...PU};var P6=E5({name:()=>P4,plugins:()=>P5,rules:()=>P8,settings:()=>P7});let P4="react-x/strict-typescript",P8={...P1,...PV},P5={...P2},P7={...P3};var P9=E5({name:()=>Ce,plugins:()=>Cn,rules:()=>Ct,settings:()=>Cr});let Ce="react-x/strict-type-checked",Ct={...P8,"react-x/no-implicit-key":"error","react-x/no-leaked-conditional-rendering":"error","react-x/no-unused-props":"warn"},Cn={...P5},Cr={...P7},{toFlatConfig:Ci}=un("react-x",PM);var Ca={...PM,configs:{"disable-experimental":Ci(E7),"disable-type-checked":Ci(kt),recommended:Ci(PR),"recommended-type-checked":Ci(PK),"recommended-typescript":Ci(PJ),strict:Ci(PZ),"strict-type-checked":Ci(P9),"strict-typescript":Ci(P6)}},Co=Object.defineProperty,Cs=((e,t)=>{let n={};for(var r in e)Co(n,r,{get:e[r],enumerable:!0});return Co(n,Symbol.toStringTag,{value:"Module"}),n})({name:()=>Cl,rules:()=>Cc});let Cl="react-hooks-extra/recommended",Cc={"react-hooks-extra/no-direct-set-state-in-use-effect":"warn"};function Cu(e){if(e.type!==uF.AST_NODE_TYPES.VariableDeclarator||e.id.type!==uF.AST_NODE_TYPES.Identifier)return!1;var t=e.init;if(t?.type!==uF.AST_NODE_TYPES.CallExpression)return!1;switch(t.callee.type){case uF.AST_NODE_TYPES.Identifier:return Su(t.callee.name);case uF.AST_NODE_TYPES.MemberExpression:return t.callee.property.type===uF.AST_NODE_TYPES.Identifier&&Su(t.callee.property.name);default:return!1}}let C_={meta:{name:"eslint-plugin-react-hooks-extra",version:"2.13.0"},rules:{"no-direct-set-state-in-use-effect":gV.ESLintUtils.RuleCreator(function(e){return`${ur}/docs/rules/hooks-extra-${e}`})({meta:{type:"problem",docs:{description:"Disallows direct calls to the ['set' function](https://react.dev/reference/react/useState#setstate) of 'useState' in 'useEffect'."},messages:{default:"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{additionalStateHooks:t}=uE(e),n=[],r={current:null},i=[],a=[],o=new WeakMap,s=new WeakMap,l=new Map,c=new WeakMap,u=t=>e.sourceCode.getText(t);function _(e){return e.callee.type===uF.AST_NODE_TYPES.MemberExpression&&e.callee.property.type===uF.AST_NODE_TYPES.Identifier&&"then"===e.callee.property.name}function d(e){return function(e,t={test:oz}){return null!=e&&e.type===uF.AST_NODE_TYPES.CallExpression&&[/^use\w*State$/u,t].some(t=>e.callee.type===uF.AST_NODE_TYPES.Identifier?t.test(e.callee.name):e.callee.type===uF.AST_NODE_TYPES.MemberExpression&&e.callee.property.type===uF.AST_NODE_TYPES.Identifier&&t.test(e.callee.property.name))}(e,t)}function p(e){return e.type===uF.AST_NODE_TYPES.CallExpression?xY(e.callee,u):xY(e,u)}function f(t,n){let r=xG(xW(t,e.sourceCode.getScope(t)),0);if(null==r||r.type!==uF.AST_NODE_TYPES.CallExpression||!d(r))return!1;let i=r.parent;return!("id"in i)||i.id?.type!==uF.AST_NODE_TYPES.ArrayPattern||i.id.elements.findIndex(e=>e?.type===uF.AST_NODE_TYPES.Identifier&&e.name===t.name)===n}function m(t){switch(t.callee.type){case uF.AST_NODE_TYPES.CallExpression:{let{callee:n}=t.callee;if(n.type!==uF.AST_NODE_TYPES.MemberExpression||!("name"in n.object))return!1;let r=n.property.type===uF.AST_NODE_TYPES.Identifier&&"at"===n.property.name,[i]=t.callee.arguments;if(!r||null==i)return!1;return xq.getStaticValue(i,e.sourceCode.getScope(t))?.value===1&&f(n.object)}case uF.AST_NODE_TYPES.Identifier:return f(t.callee,1);case uF.AST_NODE_TYPES.MemberExpression:{if(!("name"in t.callee.object))return!1;let n=t.callee.property;return xq.getStaticValue(n,e.sourceCode.getScope(t))?.value===1&&f(t.callee.object,1)}default:return!1}}return{":function"(e){let t=function(e){let t=xA(e,e=>!xE(e))??e.parent;switch(!0){case e.async:case t.type===uF.AST_NODE_TYPES.CallExpression&&_(t):return"deferred";case e.type!==uF.AST_NODE_TYPES.FunctionDeclaration&&t.type===uF.AST_NODE_TYPES.CallExpression&&t.callee===e:return"immediate";case e.parent?.type===uF.AST_NODE_TYPES.CallExpression&&e.parent.callee!==e&&Sp(e.parent):return"setup";default:return"other"}}(e);n.push({kind:t,node:e}),"setup"===t&&(r.current=e)},":function:exit"(e){let{kind:t}=n.at(-1)??{};"setup"===t&&r.current===e&&(r.current=null),n.pop()},CallExpression(t){let s=r.current,l=n.at(-1);null!=l&&!l.node.async&&oK.match(oK.match(t).when(d,()=>"useState").when(Sp,()=>"useEffect").when(m,()=>"setState").when(_,()=>"then").otherwise(()=>"other")).with("setState",()=>{switch(!0){case"deferred"===l.kind:case l.node.async:break;case l.node===s:case"immediate"===l.kind&&xA(l.node,xg)===s:e.report({messageId:"default",node:t,data:{name:e.sourceCode.getText(t.callee)}});return;default:{let e=xA(t,Cu)?.init;null==e?o$(o,l.node,()=>[]).push(t):o$(c,e,()=>[]).push(t)}}}).with("useEffect",()=>{xg(t.arguments.at(0))||i.push(...function e(t){let n=[];if(t.type===uF.AST_NODE_TYPES.Identifier&&n.push(t),"arguments"in t){let r=t.arguments.flatMap(e);n.push(...r)}if("elements"in t){let r=t.elements.filter(e=>null!=e).flatMap(e);n.push(...r)}if("properties"in t){let r=t.properties.flatMap(e);n.push(...r)}if("expressions"in t){let r=t.expressions.flatMap(e);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===uF.AST_NODE_TYPES.Property){let r=e(t.value);n.push(...r)}if(t.type===uF.AST_NODE_TYPES.SpreadElement){let r=e(t.argument);n.push(...r)}if(t.type===uF.AST_NODE_TYPES.MemberExpression){let r=e(t.object);n.push(...r)}if(t.type===uF.AST_NODE_TYPES.UnaryExpression){let r=e(t.argument);n.push(...r)}if(t.type===uF.AST_NODE_TYPES.ChainExpression){let r=e(t.expression);n.push(...r)}if(t.type===uF.AST_NODE_TYPES.TSNonNullExpression){let r=e(t.expression);n.push(...r)}if(t.type===uF.AST_NODE_TYPES.TSAsExpression){let r=e(t.expression);n.push(...r)}if(t.type===uF.AST_NODE_TYPES.TSSatisfiesExpression){let r=e(t.expression);n.push(...r)}return n}(t))}).with("other",()=>{l.node===s&&a.push(t)}).otherwise(oV)},Identifier(e){if((e.parent.type!==uF.AST_NODE_TYPES.CallExpression||e.parent.callee!==e)&&f(e,1))switch(e.parent.type){case uF.AST_NODE_TYPES.ArrowFunctionExpression:{let t=e.parent.parent;if(t.type!==uF.AST_NODE_TYPES.CallExpression||!Sy(t))break;let n=xA(t,Cu)?.init;null!=n&&o$(s,n,()=>[]).push(e);break}case uF.AST_NODE_TYPES.CallExpression:if(e!==e.parent.arguments.at(0))break;if(Sm(e.parent)){let t=xA(e.parent,Cu)?.init;null!=t&&o$(s,t,()=>[]).push(e);break}Sp(e.parent)&&o$(l,e.parent,()=>[]).push(e)}},"Program:exit"(){let t=(e,t)=>{let n=xG(xW(e,t),0);switch(n?.type){case uF.AST_NODE_TYPES.ArrowFunctionExpression:case uF.AST_NODE_TYPES.FunctionDeclaration:case uF.AST_NODE_TYPES.FunctionExpression:return o.get(n)??[];case uF.AST_NODE_TYPES.CallExpression:return c.get(n)??s.get(n)??[]}return[]};for(let[,t]of l)for(let n of t)e.report({messageId:"default",node:n,data:{name:n.name}});for(let{callee:n}of a){if(!("name"in n))continue;let{name:r}=n;for(let i of t(r,e.sourceCode.getScope(n)))e.report({messageId:"default",node:i,data:{name:p(i)}})}for(let n of i)for(let r of t(n.name,e.sourceCode.getScope(n)))e.report({messageId:"default",node:r,data:{name:p(r)}})}}},defaultOptions:[]})}},{toFlatConfig:Cd}=un("react-hooks-extra",C_);var Cp={...C_,configs:{recommended:Cd(Cs)}},Cf=Object.defineProperty,Cm=((e,t)=>{let n={};for(var r in e)Cf(n,r,{get:e[r],enumerable:!0});return Cf(n,Symbol.toStringTag,{value:"Module"}),n})({name:()=>Cg,rules:()=>Ch});let Cg="react-naming-convention/recommended",Ch={"react-naming-convention/context-name":"warn","react-naming-convention/id-name":"warn","react-naming-convention/ref-name":"warn","react-naming-convention/use-state":"warn"},Cy=gV.ESLintUtils.RuleCreator(function(e){return`${ur}/docs/rules/naming-convention-${e}`}),Cv=[{allowAllCaps:!1,excepts:[],rule:"PascalCase"}];var Cb=Cy({meta:{type:"problem",defaultOptions:[...Cv],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=Cv[0],null==t?n:{...n,..."string"==typeof t?{rule:t}:{...t,excepts:t.excepts?.map(e=>uv(e))??[]}}),{rule:i}=r,a=SW(e),o=SG(e);return uh(a.visitor,o.visitor,{"Program:exit"(t){for(let{id:n,name:o,node:s}of a.ctx.getAllComponents(t))CT(o,r)||e.report({messageId:"invalidComponentName",node:n??s,data:{name:o,rule:i}});for(let{id:n,name:a,node:s}of o.ctx.getAllComponents(t))CT(a,r)||e.report({messageId:"invalidComponentName",node:n??s,data:{name:a,rule:i}})}})},defaultOptions:Cv});function CT(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 ul.test(n);case"PascalCase":if(n.length>3&&/^[A-Z]+$/u.test(n))return t.allowAllCaps;return ui.test(n)}}var Cx=Cy({meta:{type:"suggestion",docs:{description:"Enforces the 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){if(!e.sourceCode.text.includes("createContext"))return{};let{version:t}=uE(e);return Eu(t,"19.0.0","<")?{}:{CallExpression(t){if(!Si(e,t))return;let[n,r]=oK.match(x$(t)).with({type:uF.AST_NODE_TYPES.Identifier,name:oK.P.string},e=>[e,e.name]).with({type:uF.AST_NODE_TYPES.MemberExpression,property:{name:oK.P.string}},e=>[e,e.property.name]).otherwise(()=>[null,null]);null!=n&&(um.test(r)&&r.endsWith("Context")||e.report({messageId:"invalidContextName",node:n}))}}},defaultOptions:[]}),CS=Cy({meta:{type:"suggestion",docs:{description:"Enforces identifier names assigned from 'useId' calls to be either 'id' or end with 'Id'."},messages:{invalidIdName:"An identifier assigned from 'useId' must be named 'id' or end with 'Id'."},schema:[]},name:"id-name",create:function(e){return e.sourceCode.text.includes("useId")?{CallExpression(t){if(!Sh(t))return;let[n,r]=oK.match(x$(t)).with({type:uF.AST_NODE_TYPES.Identifier,name:oK.P.string},e=>[e,e.name]).with({type:uF.AST_NODE_TYPES.MemberExpression,property:{name:oK.P.string}},e=>[e,e.property.name]).otherwise(()=>[null,null]);null==n||r.endsWith("Id")||"id"===r||e.report({messageId:"invalidIdName",node:n})}}:{}},defaultOptions:[]}),CE=Cy({meta:{type:"suggestion",docs:{description:"Enforces identifier names assigned from 'useRef' calls to be either 'ref' or end with 'Ref'."},messages:{invalidRefName:"A ref identifier must be named 'ref' or ending in 'Ref'."},schema:[]},name:"ref-name",create:function(e){return e.sourceCode.text.includes("useRef")?{CallExpression(t){if(!Sv(t)||xP(t.parent).type===uF.AST_NODE_TYPES.MemberExpression)return;let[n,r]=oK.match(x$(t)).with({type:uF.AST_NODE_TYPES.Identifier,name:oK.P.string},e=>[e,e.name]).with({type:uF.AST_NODE_TYPES.MemberExpression,property:{name:oK.P.string}},e=>[e,e.property.name]).otherwise(()=>[null,null]);null==n||r.endsWith("Ref")||"ref"===r||e.report({messageId:"invalidRefName",node:n})}}:{}},defaultOptions:[]});let Ck=[{enforceAssignment:!1,enforceSetterName:!0}];var CP=Cy({meta:{type:"suggestion",docs:{description:"Enforces destructuring and symmetric naming of the 'useState' hook value and setter."},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:[{type:"object",additionalProperties:!1,properties:{enforceAssignment:{type:"boolean",default:!1},enforceSetterName:{type:"boolean",default:!0}}}]},name:"use-state",create:function(e){let{enforceAssignment:t=!1,enforceSetterName:n=!0}=e.options[0]??Ck[0];return{CallExpression(r){if(!Sb(r))return;if(r.parent.type!==uF.AST_NODE_TYPES.VariableDeclarator){if(!t)return;e.report({messageId:"invalidAssignment",node:r});return}let i=x$(r);if(i?.type!==uF.AST_NODE_TYPES.ArrayPattern){if(!t)return;e.report({messageId:"invalidAssignment",node:i??r});return}let[a,o]=i.elements;if(null==a){if(!t)return;e.report({messageId:"invalidAssignment",node:i});return}if(null==o||!n)return;let s=oK.match(o).with({type:uF.AST_NODE_TYPES.Identifier},e=>e.name).otherwise(()=>null);if(null==s||!s.startsWith("set"))return void e.report({messageId:"invalidSetterName",node:o});let l=oK.match(a).with({type:uF.AST_NODE_TYPES.Identifier},({name:e})=>xu(e)).with({type:uF.AST_NODE_TYPES.ObjectPattern},({properties:e})=>e.reduce((e,t)=>t.type===uF.AST_NODE_TYPES.Property&&t.key.type===uF.AST_NODE_TYPES.Identifier?[...e,t.key.name]:e,[]).join("_")).otherwise(()=>null);null==l?e.report({messageId:"invalidSetterName",node:a}):xu(s)!==`set_${l}`&&e.report({messageId:"invalidSetterName",node:o})}}},defaultOptions:Ck});let CC=[{excepts:["index",String.raw`/^_/`,String.raw`/^\$/`,String.raw`/^[0-9]+$/`,String.raw`/^\[[^\]]+\]$/`],rule:"PascalCase"}];var Cw=Cy({meta:{type:"suggestion",defaultOptions:[...CC],docs:{description:"Enforces consistent file-naming conventions."},messages:{fileNameEmpty:"A source file must have non-empty name.",fileNameInvalidCase:"A source 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]??CC[0],n="string"==typeof t?t:t.rule??"PascalCase",r="string"==typeof t?[]:(t.excepts??[]).map(e=>uv(e));return{Program(t){let[i="",...a]=a1.basename(e.filename).split(".");0===i.length?e.report({messageId:"fileNameEmpty",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||oK.match(t).with("PascalCase",()=>ui.test(a)).with("camelCase",()=>ua.test(a)).with("kebab-case",()=>uo.test(a)).with("snake_case",()=>us.test(a)).exhaustive()}(i)&&e.report({messageId:"fileNameInvalidCase",node:t,data:{name:e.filename,rule:n,suggestion:[function(e,t=n){return oK.match(t).with("PascalCase",()=>xl(e)).with("camelCase",()=>{var t;return xe([xn((t=xl(xr(e))).charAt(0)??""),xt(t,1)])}).with("kebab-case",()=>xn(xc(xr(e),"-"))).with("snake_case",()=>xu(e)).exhaustive()}(i),...a].join(".")}})}}},defaultOptions:CC});let CA=[{allow:"as-needed",extensions:[".jsx",".tsx"],ignoreFilesWithoutCode:!1}],CD={meta:{name:"eslint-plugin-react-naming-convention",version:"2.13.0"},rules:{"component-name":Cb,"context-name":Cx,"id-name":CS,"ref-name":CE,"use-state":CP,filename:Cw,"filename-extension":Cy({meta:{type:"suggestion",defaultOptions:[...CA],docs:{description:"Enforces consistent use of the JSX file extension."},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]??CA[0],n=oY(t)?t.allow:t,r=oY(t)&&"extensions"in t?t.extensions:CA[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,_=oY(t)&&!0===t.ignoreFilesWithoutCode;(u||!_)&&!o&&c&&"as-needed"===n&&e.report({messageId:"unnecessaryJsxExtension",node:s,data:{extensions:i}})}}},defaultOptions:CA})}},{toFlatConfig:CN}=un("react-naming-convention",CD);var CF={...CD,configs:{recommended:CN(Cm)}},CO=oF(function(){if(aH)return aG;aH=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)}aG=((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 aG}()),CI=Object.defineProperty,CL=((e,t)=>{let n={};for(var r in e)CI(n,r,{get:e[r],enumerable:!0});return CI(n,Symbol.toStringTag,{value:"Module"}),n})({name:()=>CM,rules:()=>CR,settings:()=>Cj});let CM="react-web-api/recommended",CR={"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"},Cj={"react-x":ux},CY=CO({mount:"unmount",setup:"cleanup"}),CB=oU(2,(e,t)=>CY.get(e)===t);function CU(e){return oK.match(e).when(ST,()=>"setup").when(Sx,()=>"cleanup").when(Et,()=>"mount").when(En,()=>"unmount").otherwise(()=>null)}let CV=gV.ESLintUtils.RuleCreator(function(e){return`${ur}/docs/rules/web-api-${e}`}),CJ={capture:!1,signal:t};function Cz(e,n){return function e(r){switch(r.type){case gV.AST_NODE_TYPES.Identifier:{let t=xG(xW(r,n),0);if(t?.type===gV.AST_NODE_TYPES.ObjectExpression)return e(t);return CJ}case gV.AST_NODE_TYPES.Literal:return{...CJ,capture:!!r.value};case gV.AST_NODE_TYPES.ObjectExpression:{let e=!!function(e,r=e=>!0){if(e?.type!==gV.AST_NODE_TYPES.Property)return t;let{value:i}=e,a=i;return r(a=i.type===gV.AST_NODE_TYPES.Literal?i.value:xq.getStaticValue(i,n)?.value)?a:t}(xX("capture",r.properties,n)),i=xX("signal",r.properties,n);return{capture:e,signal:i?.type===gV.AST_NODE_TYPES.Property?function e(n,r){if(null==n)return t;switch(n.type){case gV.AST_NODE_TYPES.Identifier:return e(xG(xW(n,r),0),r);case gV.AST_NODE_TYPES.MemberExpression:return n;default:return t}}(i.value,n):t}}default:return CJ}}(e)}function Cq(e){return e?.type===gV.AST_NODE_TYPES.NewExpression&&e.callee.type===gV.AST_NODE_TYPES.Identifier&&"ResizeObserver"===e.callee.name}function C$(e,t){switch(!0){case t.type===gV.AST_NODE_TYPES.Identifier:return Cq(xG(xW(t,e.sourceCode.getScope(t)),0));case t.type===gV.AST_NODE_TYPES.MemberExpression:return C$(e,t.object);default:return!1}}let CW={meta:{name:"eslint-plugin-react-web-api",version:"2.13.0"},rules:{"no-leaked-event-listener":CV({meta:{type:"problem",docs:{description:"Enforces that every 'addEventListener' in a component or custom hook has a corresponding 'removeEventListener'."},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(t,n,r){let i=t.arguments.at(1);xg(i)&&null==r.signal&&e.report({messageId:"unexpectedInlineFunction",node:i,data:{eventMethodKind:n}})}return{":function"(e){let n=CU(e)??"other";t.push({kind:n,node:e})},":function:exit"(){t.pop()},CallExpression(o){let s=t.findLast(e=>"other"!==e.kind)?.kind;null==s||CY.has(s)&&oK.match(function(e){switch(!0){case e.callee.type===gV.AST_NODE_TYPES.Identifier&&oK.isMatching(oK.P.union("addEventListener","removeEventListener","abort"))(e.callee.name):return e.callee.name;case e.callee.type===gV.AST_NODE_TYPES.MemberExpression&&e.callee.property.type===gV.AST_NODE_TYPES.Identifier&&oK.isMatching(oK.P.union("addEventListener","removeEventListener","abort"))(e.callee.property.name):return e.callee.property.name;default:return"other"}}(o)).with("addEventListener",t=>{if(o.callee.type===gV.AST_NODE_TYPES.MemberExpression&&o.callee.object.type===gV.AST_NODE_TYPES.Identifier&&function(e,t,n="react-native"){return["react_native","reactnative","rn"].includes(e.toLowerCase())||!!xK(e,t)?.startsWith(n)}(o.callee.object.name,e.sourceCode.getScope(o)))return;let[r,i,l]=o.arguments;if(null==r||null==i)return;let c=null==l?CJ:Cz(l,e.sourceCode.getScope(l)),{callee:u}=o;a(o,t,c),n.push({...c,type:r,node:o,callee:u,listener:i,method:"addEventListener",phase:s})}).with("removeEventListener",t=>{let[n,i,l]=o.arguments;if(null==n||null==i)return;let c=null==l?CJ:Cz(l,e.sourceCode.getScope(l)),{callee:u}=o;a(o,t,c),r.push({...c,type:n,node:o,callee:u,listener:i,method:"removeEventListener",phase:s})}).with("abort",()=>{i.push(o.callee)}).otherwise(()=>null)},"Program:exit"(){for(let t of n)if(null==t.signal&&!r.some(n=>(function(t,n){let{type:r,callee:i,capture:a,listener:o,phase:s}=t,{type:l,callee:c,capture:u,listener:_,phase:d}=n;return!!CB(s,d)&&!0==(i.type===gV.AST_NODE_TYPES.MemberExpression&&c.type===gV.AST_NODE_TYPES.MemberExpression)&&xC(i.object,c.object)&&xC(o,_)&&x1(r,l,[e.sourceCode.getScope(r),e.sourceCode.getScope(l)])&&a===u})(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":CV({meta:{type:"problem",docs:{description:"Enforces that every 'setInterval' in a component or custom hook has a corresponding 'clearInterval'."},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=CU(e)??"other";t.push({kind:n,node:e})},":function:exit"(){t.pop()},CallExpression(i){switch(function(e){switch(!0){case e.callee.type===gV.AST_NODE_TYPES.Identifier&&oK.isMatching(oK.P.union("setInterval","clearInterval"))(e.callee.name):return e.callee.name;case e.callee.type===gV.AST_NODE_TYPES.MemberExpression&&e.callee.property.type===gV.AST_NODE_TYPES.Identifier&&oK.isMatching(oK.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||!CY.has(r.kind))break;let a=x$(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||!CY.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=>x2(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":CV({meta:{type:"problem",docs:{description:"Enforces that every 'ResizeObserver' created in a component or custom hook has a corresponding 'ResizeObserver.disconnect()'."},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=CU(e)??"other";t.push({kind:n,node:e})},":function:exit"(){t.pop()},CallExpression(n){if(n.callee.type!==gV.AST_NODE_TYPES.MemberExpression)return;let o=t.findLast(e=>"other"!==e.kind)?.kind;if(null==o||!CY.has(o))return;let{object:s}=n.callee;oK.match(function(e,t){switch(!0){case t.callee.type===gV.AST_NODE_TYPES.Identifier&&oK.isMatching(oK.P.union("observe","unobserve","disconnect"))(t.callee.name)&&C$(e,t.callee):return t.callee.name;case t.callee.type===gV.AST_NODE_TYPES.MemberExpression&&t.callee.property.type===gV.AST_NODE_TYPES.Identifier&&oK.isMatching(oK.P.union("observe","unobserve","disconnect"))(t.callee.property.name)&&C$(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||!CY.has(i.kind)||!Cq(r))return;let a=x$(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=>x2(e,n.observer,t)))continue;let n=r.filter(n=>x2(e,n.observer,t)),l=i.filter(n=>x2(e,n.observer,t)),c=e=>e?.type===gV.AST_NODE_TYPES.CallExpression||xS(e),u=e=>e===s;if(n.some(e=>!u(xA(e.node,oj(c,u))))){e.report({messageId:"expectedDisconnectInControlFlow",node:o});continue}for(let t of n)l.some(n=>x2(e,n.element,t.element))||e.report({messageId:"expectedDisconnectOrUnobserveInCleanup",node:t.node})}}}},defaultOptions:[]}),"no-leaked-timeout":CV({meta:{type:"problem",docs:{description:"Enforces that every 'setTimeout' in a component or custom hook has a corresponding 'clearTimeout'."},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=CU(e)??"other";t.push({kind:n,node:e})},":function:exit"(){t.pop()},CallExpression(i){let a=t.findLast(e=>"other"!==e.kind);if(CY.has(a?.kind))switch(function(e){switch(!0){case e.callee.type===gV.AST_NODE_TYPES.Identifier&&oK.isMatching(oK.P.union("setTimeout","clearTimeout"))(e.callee.name):return e.callee.name;case e.callee.type===gV.AST_NODE_TYPES.MemberExpression&&e.callee.property.type===gV.AST_NODE_TYPES.Identifier&&oK.isMatching(oK.P.union("setTimeout","clearTimeout"))(e.callee.property.name):return e.callee.property.name;default:return"other"}}(i)){case"setTimeout":{let t=x$(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=>x2(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:CK}=un("react-web-api",CW);var CG={...CW,configs:{recommended:CK(CL)}},CH=Object.defineProperty,CX=(e,t)=>{let n={};for(var r in e)CH(n,r,{get:e[r],enumerable:!0});return CH(n,Symbol.toStringTag,{value:"Module"}),n};function CQ(e){let{polymorphicPropName:t}=uE(e);return{resolve(n){let r=SI(e,n),i={domElementType:r,jsxElementType:r};if(r===r.toLowerCase()||null==t)return i;let a=Sk(e,n)(t);if(null!=a){let n=SP(e,a).toStatic(t);if("string"==typeof n)return{...i,domElementType:n}}return i}}}let CZ=gV.ESLintUtils.RuleCreator(function(e){return`${ur}/docs/rules/dom-${e}`}),C0="dangerouslySetInnerHTML";var C1=CZ({meta:{type:"problem",docs:{description:"Disallows DOM elements from using 'dangerouslySetInnerHTML'."},messages:{default:"Using 'dangerouslySetInnerHTML' may have security implications."},schema:[]},name:"no-dangerously-set-innerhtml",create:function(e){return e.sourceCode.text.includes(C0)?{JSXElement(t){let n=Sk(e,t)(C0);null!=n&&e.report({messageId:"default",node:n})}}:{}},defaultOptions:[]}),C2=CZ({meta:{type:"problem",docs:{description:"Disallows DOM elements from using 'dangerouslySetInnerHTML' and 'children' at the same time."},messages:{default:"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(C3)?{JSXElement(t){let n=Sk(e,t);if(null==n(C3))return;let r=n("children")??t.children.find(C6);null!=r&&e.report({messageId:"default",node:r})}}:{}},defaultOptions:[]});let C3="dangerouslySetInnerHTML";function C6(e){return!SF(e)||!(""===e.raw.trim()&&e.raw.includes("\n"))}var C4=CZ({meta:{type:"problem",docs:{description:"Disallows 'findDOMNode'."},messages:{default:"[Deprecated] Use alternatives instead."},schema:[]},name:"no-find-dom-node",create:function(e){return e.sourceCode.text.includes(C8)?{CallExpression(t){let{callee:n}=t;switch(n.type){case uF.AST_NODE_TYPES.Identifier:n.name===C8&&e.report({messageId:"default",node:t});return;case uF.AST_NODE_TYPES.MemberExpression:n.property.type===uF.AST_NODE_TYPES.Identifier&&n.property.name===C8&&e.report({messageId:"default",node:t});return}}}:{}},defaultOptions:[]});let C8="findDOMNode";var C5=CZ({meta:{type:"problem",docs:{description:"Disallows 'flushSync'."},messages:{default:"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(C7)?{CallExpression(t){let{callee:n}=t;switch(n.type){case uF.AST_NODE_TYPES.Identifier:n.name===C7&&e.report({messageId:"default",node:t});return;case uF.AST_NODE_TYPES.MemberExpression:n.property.type===uF.AST_NODE_TYPES.Identifier&&n.property.name===C7&&e.report({messageId:"default",node:t});return}}}:{}},defaultOptions:[]});let C7="flushSync";var C9=CZ({meta:{type:"problem",docs:{description:"Replaces usage of 'ReactDOM.hydrate()' with 'hydrateRoot()'."},fixable:"code",messages:{default:"[Deprecated] Use 'hydrateRoot()' instead."},schema:[]},name:"no-hydrate",create:function(e){if(!e.sourceCode.text.includes(we)||Eu(uE(e).version,"18.0.0","<"))return{};let t=new Set,n=new Set;return{CallExpression(r){switch(!0){case r.callee.type===uF.AST_NODE_TYPES.Identifier&&n.has(r.callee.name):case r.callee.type===uF.AST_NODE_TYPES.MemberExpression&&r.callee.object.type===uF.AST_NODE_TYPES.Identifier&&r.callee.property.type===uF.AST_NODE_TYPES.Identifier&&r.callee.property.name===we&&t.has(r.callee.object.name):var i,a;e.report({messageId:"default",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 uF.AST_NODE_TYPES.ImportSpecifier:if(r.imported.type!==uF.AST_NODE_TYPES.Identifier)continue;r.imported.name===we&&n.add(r.local.name);continue;case uF.AST_NODE_TYPES.ImportDefaultSpecifier:case uF.AST_NODE_TYPES.ImportNamespaceSpecifier:t.add(r.local.name);continue}}}},defaultOptions:[]});let we="hydrate",wt=["button","submit","reset"];var wn=CZ({meta:{type:"problem",docs:{description:"Enforces an explicit 'type' attribute for 'button' elements."},hasSuggestions:!0,messages:{addTypeAttribute:"Add type attribute with value '{{ type }}'.",missingTypeAttribute:"Missing an explicit type attribute for button."},schema:[]},name:"no-missing-button-type",create:function(e){let t=CQ(e);return{JSXElement(n){"button"!==t.resolve(n).domElementType||null==Sk(e,n)("type")&&e.report({messageId:"missingTypeAttribute",node:n.openingElement,suggest:wt.map(e=>({messageId:"addTypeAttribute",data:{type:e},fix:t=>t.insertTextAfter(n.openingElement.name,` type="${e}"`)}))})}}},defaultOptions:[]}),wr=CZ({meta:{type:"problem",docs:{description:"Enforces an explicit 'sandbox' attribute for 'iframe' elements."},fixable:"code",hasSuggestions:!0,messages:{addSandboxAttribute:"Add sandbox attribute with value '{{ value }}'.",missingSandboxAttribute:"Missing an explicit sandbox attribute for iframe."},schema:[]},name:"no-missing-iframe-sandbox",create:function(e){let t=CQ(e);return{JSXElement(n){let{domElementType:r}=t.resolve(n);if("iframe"!==r)return;let i=Sk(e,n)("sandbox");if(null==i)return void e.report({messageId:"missingSandboxAttribute",node:n.openingElement,suggest:[{messageId:"addSandboxAttribute",data:{value:""},fix:e=>e.insertTextAfter(n.openingElement.name,' sandbox=""')}]});let a=SP(e,i);"string"!=typeof a.toStatic("sandbox")&&e.report({messageId:"missingSandboxAttribute",node:a.node??i,suggest:[{messageId:"addSandboxAttribute",data:{value:""},fix:e=>a.kind.startsWith("spread")?null:e.replaceText(i,'sandbox=""')}]})}}},defaultOptions:[]}),wi=CZ({meta:{type:"problem",docs:{description:"Enforces the absence of a 'namespace' in React elements."},messages:{default:"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=SI(e,t);"string"==typeof n&&n.includes(":")&&e.report({messageId:"default",node:t.openingElement.name,data:{name:n}})}}},defaultOptions:[]}),wa=CZ({meta:{type:"problem",docs:{description:"Replaces usage of 'ReactDOM.render()' with 'createRoot(node).render()'."},fixable:"code",messages:{default:"[Deprecated] Use 'createRoot(node).render()' instead."},schema:[]},name:"no-render",create:function(e){if(!e.sourceCode.text.includes("render")||Eu(uE(e).version,"18.0.0","<"))return{};let t=new Set(["ReactDOM","ReactDOM"]),n=new Set;return{CallExpression(r){switch(!0){case r.callee.type===uF.AST_NODE_TYPES.Identifier&&n.has(r.callee.name):case r.callee.type===uF.AST_NODE_TYPES.MemberExpression&&r.callee.object.type===uF.AST_NODE_TYPES.Identifier&&r.callee.property.type===uF.AST_NODE_TYPES.Identifier&&"render"===r.callee.property.name&&t.has(r.callee.object.name):var i,a;e.report({messageId:"default",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 uF.AST_NODE_TYPES.ImportSpecifier:if(r.imported.type!==uF.AST_NODE_TYPES.Identifier)continue;"render"===r.imported.name&&n.add(r.local.name);continue;case uF.AST_NODE_TYPES.ImportDefaultSpecifier:case uF.AST_NODE_TYPES.ImportNamespaceSpecifier:t.add(r.local.name);continue}}}},defaultOptions:[]});let wo=[uF.AST_NODE_TYPES.VariableDeclarator,uF.AST_NODE_TYPES.Property,uF.AST_NODE_TYPES.ReturnStatement,uF.AST_NODE_TYPES.ArrowFunctionExpression,uF.AST_NODE_TYPES.AssignmentExpression];var ws=CZ({meta:{type:"problem",docs:{description:"Disallows the return value of 'ReactDOM.render'."},messages:{default:"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===uF.AST_NODE_TYPES.Identifier&&n.has(r.callee.name)&&wo.includes(r.parent.type):case r.callee.type===uF.AST_NODE_TYPES.MemberExpression&&r.callee.object.type===uF.AST_NODE_TYPES.Identifier&&r.callee.property.type===uF.AST_NODE_TYPES.Identifier&&"render"===r.callee.property.name&&t.has(r.callee.object.name)&&wo.includes(r.parent.type):e.report({messageId:"default",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 uF.AST_NODE_TYPES.ImportSpecifier:if(r.imported.type!==uF.AST_NODE_TYPES.Identifier)continue;"render"===r.imported.name&&n.add(r.local.name);continue;case uF.AST_NODE_TYPES.ImportDefaultSpecifier:case uF.AST_NODE_TYPES.ImportNamespaceSpecifier:t.add(r.local.name);continue}}}},defaultOptions:[]}),wl=CZ({meta:{type:"problem",docs:{description:"Disallows 'javascript:' URLs as attribute values."},messages:{default:"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!==uF.AST_NODE_TYPES.JSXIdentifier||null==t.value)return;let n=SP(e,t).toStatic();"string"==typeof n&&uc.test(n)&&e.report({messageId:"default",node:t.value})}}},defaultOptions:[]}),wc=CZ({meta:{type:"problem",docs:{description:"Disallows the use of string style prop in JSX. Use an object instead."},messages:{default:"Do not use string style prop. Use an object instead."},schema:[]},name:"no-string-style-prop",create:function(e){return{JSXElement(t){if(!SL(e,t))return;let n=Sk(e,t)("style");if(null==n)return;let r=SP(e,n);"string"==typeof r.toStatic()&&e.report({messageId:"default",node:r.node??n})}}},defaultOptions:[]});let wu=[],w_={"accept-charset":"acceptCharset",class:"className",crossorigin:"crossOrigin",for:"htmlFor","http-equiv":"httpEquiv",nomodule:"noModule"},wd={"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"},wp={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"],onCancel:["dialog"],onCanPlay:["audio","video"],onCanPlayThrough:["audio","video"],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"],onLoadedData:["audio","video"],onLoadedMetadata:["audio","video"],onLoadStart:["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"]},wf=["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"],wm=["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"],wg=["charset","allowFullScreen","webkitAllowFullScreen","mozAllowFullScreen","webkitDirectory"],wh=["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"],wy=["onGotPointerCapture","onGotPointerCaptureCapture","onLostPointerCapture","onLostPointerCapture","onLostPointerCaptureCapture","onPointerCancel","onPointerCancelCapture","onPointerDown","onPointerDownCapture","onPointerEnter","onPointerEnterCapture","onPointerLeave","onPointerLeaveCapture","onPointerMove","onPointerMoveCapture","onPointerOut","onPointerOutCapture","onPointerOver","onPointerOverCapture","onPointerUp","onPointerUpCapture"],wv=["popover","popoverTarget","popoverTargetAction","onToggle","onBeforeToggle"];function wb(e,t){return Object.hasOwn(e,t)}function wT(e,t,n){let{version:r}=uE(e);return Eu(r,n,t)}var wx=CZ({meta:{type:"problem",docs:{description:"Disallows unknown 'DOM' properties."},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??wu,i=(n=t.name,e.sourceCode.getText(n));if(r.indexOf(i)>=0)return;let a=wg.find(e=>e.toLowerCase()===i.toLowerCase())??i;if(t.parent.name.type===uF.AST_NODE_TYPES.JSXMemberExpression)return;if(!/^data-xml/i.test(a)&&/^data-[^:]*$/.test(a)){e.options[0]?.requireDataLowercase&&a.toLowerCase()!==a&&e.report({messageId:"dataLowercaseRequired",node:t,data:{name:i,lowerCaseName:i.toLowerCase()}});return}if(wh.some(e=>e===a))return;let o=t.parent.name.type===uF.AST_NODE_TYPES.JSXIdentifier?t.parent.name.name:null;if("fbt"===o||"fbs"===o||!(t.parent.name.type===uF.AST_NODE_TYPES.JSXIdentifier&&/^[a-z][^-]*$/.test(t.parent.name.name)&&!t.parent.attributes.some(e=>e.type===uF.AST_NODE_TYPES.JSXAttribute&&e.name.type===uF.AST_NODE_TYPES.JSXIdentifier&&"is"===e.name.name)))return;let s=wb(wp,a)?wp[a]:null;if(null!=o&&null!=s){-1===s.indexOf(o)&&e.report({messageId:"invalidPropOnTag",node:t,data:{name:i,allowedTags:s.join(", "),tagName:o}});return}let l=function(e,t){let n;return wb(w_,e)?w_[e]:wb(wd,e)?wd[e]:(n=wm.concat(wf),wT(t,"<=","16.1.0")?n.push("allowTransparency"):(wT(t,">=","16.4.0")&&n.push(...wy),wT(t,">=","19.0.0-rc.0")?n.push(...wv):n.push(...wv.map(e=>e.toLowerCase()))),n).find(t=>t.toLowerCase()===e.toLowerCase())}(a,e),c=null!=l&&l!==a;if(null==l||l!==a){if(c)return void e.report({messageId:"unknownPropWithStandardName",node:t,data:{name:i,standardName:l},fix:e=>e.replaceText(t.name,l)});e.report({messageId:"unknownProp",node:t,data:{name:i}})}}}},defaultOptions:[]});let wS=["allow-scripts","allow-same-origin"];var wE=CZ({meta:{type:"problem",docs:{description:"Enforces that the 'sandbox' attribute for 'iframe' elements is not set to unsafe combinations."},messages:{default:"Unsafe 'sandbox' attribute value on 'iframe' component."},schema:[]},name:"no-unsafe-iframe-sandbox",create:function(e){let t=CQ(e);return{JSXElement(n){var r;if("iframe"!==t.resolve(n).domElementType)return;let i=Sk(e,n)("sandbox");if(null==i)return;let a=SP(e,i);"string"==typeof(r=a.toStatic("sandbox"))&&wS.every(e=>r.includes(e))&&e.report({messageId:"default",node:a.node??i})}}},defaultOptions:[]}),wk=CZ({meta:{type:"problem",docs:{description:"Disallows 'target=\"_blank\"' without 'rel=\"noreferrer noopener\"'."},fixable:"code",hasSuggestions:!0,messages:{addRelNoreferrerNoopener:"Add 'rel=\"noreferrer noopener\"' to the link to prevent security risks.",default:"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=CQ(e);return{JSXElement(n){var r,i;let{domElementType:a}=t.resolve(n);if("a"!==a)return;let o=Sk(e,n),s=o("target");if(null==s||"_blank"!==SP(e,s).toStatic("target"))return;let l=o("href");if(null==l||!("string"==typeof(r=SP(e,l).toStatic("href"))&&(r.startsWith("https://")||/^(?:\w+:|\/\/)/u.test(r))))return;let c=o("rel");null==c?e.report({messageId:"default",node:n.openingElement,suggest:[{messageId:"addRelNoreferrerNoopener",fix:e=>e.insertTextAfter(n.openingElement.name,' rel="noreferrer noopener"')}]}):"string"==typeof(i=SP(e,c).toStatic("rel"))&&("noreferrer"===i||/\bnoreferrer\b/u.test(i))||e.report({messageId:"default",node:c,suggest:[{messageId:"addRelNoreferrerNoopener",fix:e=>e.replaceText(c,'rel="noreferrer noopener"')}]})}}},defaultOptions:[]}),wP=CZ({meta:{type:"problem",docs:{description:"Replaces usage of 'useFormState' with 'useActionState'."},fixable:"code",messages:{default:"[Deprecated] Use 'useActionState' from 'react' package instead."},schema:[]},name:"no-use-form-state",create:function(e){if(!e.sourceCode.text.includes("useFormState")||Eu(uE(e).version,"19.0.0","<"))return{};let t=new Set,n=new Set;return{CallExpression(r){switch(!0){case r.callee.type===uF.AST_NODE_TYPES.Identifier&&n.has(r.callee.name):case r.callee.type===uF.AST_NODE_TYPES.MemberExpression&&r.callee.object.type===uF.AST_NODE_TYPES.Identifier&&r.callee.property.type===uF.AST_NODE_TYPES.Identifier&&"useFormState"===r.callee.property.name&&t.has(r.callee.object.name):e.report({messageId:"default",node:r,fix:function(e,t){let{importSource:n}=uE(e);return r=>[r.insertTextBefore(e.sourceCode.ast,`import { useActionState } from "${n}";
|
|
419
419
|
`),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 uF.AST_NODE_TYPES.ImportSpecifier:if(r.imported.type!==uF.AST_NODE_TYPES.Identifier)continue;"useFormState"===r.imported.name&&n.add(r.local.name);continue;case uF.AST_NODE_TYPES.ImportDefaultSpecifier:case uF.AST_NODE_TYPES.ImportNamespaceSpecifier:t.add(r.local.name);continue}}}},defaultOptions:[]});let wC=new Set(["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr"]);var ww=CZ({meta:{type:"problem",docs:{description:"Disallows 'children' in void DOM elements."},messages:{default:"'{{elementType}}' is a void element tag and must not have children."},schema:[]},name:"no-void-elements-with-children",create:function(e){let t=CQ(e);return{JSXElement(n){let{domElementType:r}=t.resolve(n);if(!wC.has(r))return;let i=Sk(e,n),a=null!=i("children"),o=null!=i("dangerouslySetInnerHTML");(n.children.length>0||a||o)&&e.report({messageId:"default",node:n,data:{elementType:r}})}}},defaultOptions:[]}),wA=CZ({meta:{type:"problem",docs:{description:"Enforces importing React DOM via a namespace import."},fixable:"code",messages:{default:"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(!wD.includes(n))return;let r=t.parent.specifiers.length>1;e.report({messageId:"default",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}
|
|
420
|
-
${l} ${u} from ${c}${o}`)}})}}},defaultOptions:[]});let wD=["react-dom","react-dom/client","react-dom/server"],wN={meta:{name:"eslint-plugin-react-dom",version:"2.13.0"},rules:{"no-dangerously-set-innerhtml":C1,"no-dangerously-set-innerhtml-with-children":C2,"no-find-dom-node":C4,"no-flush-sync":C5,"no-hydrate":C9,"no-missing-button-type":wn,"no-missing-iframe-sandbox":wr,"no-namespace":wi,"no-render":wa,"no-render-return-value":ws,"no-script-url":wl,"no-string-style-prop":wc,"no-unknown-property":wx,"no-unsafe-iframe-sandbox":wE,"no-unsafe-target-blank":wk,"no-use-form-state":wP,"no-void-elements-with-children":ww,"prefer-namespace-import":wA}};var wF=CX({name:()=>wO,plugins:()=>wL,rules:()=>wI,settings:()=>wM});let wO="react-dom/recommended",wI={"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"},wL={"react-dom":wN},wM={"react-x":ux};var wR=CX({name:()=>wj,plugins:()=>wB,rules:()=>wY,settings:()=>wU});let wj="react-dom/strict",wY={...wI,"react-dom/no-missing-button-type":"warn","react-dom/no-missing-iframe-sandbox":"warn","react-dom/no-unsafe-target-blank":"warn"},wB={...wL},wU={...wM},{toFlatConfig:wV}=un("react-dom",wN);var wJ={...wN,configs:{recommended:wV(wF),strict:wV(wR)}},wz=Object.defineProperty,wq=(e,t)=>{let n={};for(var r in e)wz(n,r,{get:e[r],enumerable:!0});return wz(n,Symbol.toStringTag,{value:"Module"}),n},w$=wq({name:()=>wW,rules:()=>wK});let wW="react-rsc/disable-experimental",wK={"react-rsc/function-definition":"off"},wG={meta:{name:"eslint-plugin-react-rsc",version:"2.13.0"},rules:{"function-definition":gV.ESLintUtils.RuleCreator(function(e){return`${ur}/docs/rules/${e}`})({meta:{type:"problem",docs:{description:"Validate and transform React Client/Server Function definitions."},fixable:"code",messages:{file:"Functions exported from files with `use server` directive are React Server Functions and therefore must be async.",local:"Functions with `use server` directive are React Server Functions and therefore must be async."},schema:[]},name:"function-definition",create:function(e){if(!e.sourceCode.text.includes("use server"))return{};let t=xO(e.sourceCode.ast).some(e=>"use server"===e.directive);function n(t,n){return!!xg(t)&&!t.async&&(e.report({messageId:n,node:t,fix:function(t){if(t.type===uF.AST_NODE_TYPES.FunctionDeclaration||t.type===uF.AST_NODE_TYPES.FunctionExpression){let n=e.sourceCode.getFirstToken(t);return null!=n?e=>e.insertTextBefore(n,"async "):null}return t.type===uF.AST_NODE_TYPES.ArrowFunctionExpression?e=>e.insertTextBefore(t,"async "):null}(t)}),!0)}function r(e){xI(e).some(e=>"use server"===e.directive)&&n(e,"local")}function i(t,r){let i=xG(xW(t.name,e.sourceCode.getScope(r)),0);null!=i&&n(i,"file")}return{ArrowFunctionExpression(e){r(e)},ExportDefaultDeclaration(e){if(!t)return;let r=e.declaration;!n(r,"file")&&xR(r)&&i(r,e)},ExportNamedDeclaration(e){if(t){if(null!=e.declaration){let t=e.declaration;if(n(t,"file"))return;if(t.type===uF.AST_NODE_TYPES.VariableDeclaration)for(let e of t.declarations)n(e.init,"file");return}if(null==e.source&&e.specifiers.length>0)for(let t of e.specifiers)i(t.local,e)}},FunctionDeclaration(e){r(e)},FunctionExpression(e){r(e)}}},defaultOptions:[]})}};var wH=wq({name:()=>wX,plugins:()=>wZ,rules:()=>wQ,settings:()=>w0});let wX="react-rsc/recommended",wQ={"react-rsc/function-definition":"error"},wZ={"react-rsc":wG},w0={"react-rsc":ux};var w1=wq({name:()=>w2,plugins:()=>w6,rules:()=>w3,settings:()=>w4});let w2="react-rsc/recommended-typescript",w3={...wQ},w6={...wZ},w4={...w0};var w8=wq({name:()=>w5,plugins:()=>w9,rules:()=>w7,settings:()=>Ae});let w5="react-rsc/strict",w7={...wQ},w9={...wZ},Ae={...w0};var At=wq({name:()=>An,plugins:()=>Ai,rules:()=>Ar,settings:()=>Aa});let An="react-rsc/strict-typescript",Ar={...w7},Ai={...w9},Aa={...Ae},{toFlatConfig:Ao}=un("react-rsc",wG);var As={...wG,configs:{"disable-experimental":Ao(w$),recommended:Ao(wH),"recommended-typescript":Ao(w1),strict:Ao(w8),"strict-typescript":Ao(At)}},Al=Object.defineProperty,Ac=(e,t)=>{let n={};for(var r in e)Al(n,r,{get:e[r],enumerable:!0});return Al(n,Symbol.toStringTag,{value:"Module"}),n},Au=Ac({name:()=>A_,plugins:()=>Ap,rules:()=>Ad});let A_="@eslint-react/dom",Ad={"@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"},Ap={"@eslint-react/dom":wJ};var Af=Ac({name:()=>Am,plugins:()=>Ah,rules:()=>Ag});let Am="@eslint-react/rsc",Ag={"@eslint-react/rsc/function-definition":"error"},Ah={"@eslint-react/rsc":As};var Ay=Ac({name:()=>Av,plugins:()=>AT,rules:()=>Ab,settings:()=>Ax});let Av="@eslint-react/x",Ab={"@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-forward-ref":"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"},AT={"@eslint-react":Ca},Ax={"react-x":ux};var AS=Ac({name:()=>AE,plugins:()=>AP,rules:()=>Ak,settings:()=>AC});let AE="@eslint-react/all",Ak={"@eslint-react/jsx-dollar":"warn","@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-direct-mutation-state":"error","@eslint-react/no-duplicate-key":"error","@eslint-react/no-forward-ref":"warn","@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-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-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-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-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/rsc/function-definition":"error","@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/id-name":"warn","@eslint-react/naming-convention/ref-name":"warn","@eslint-react/naming-convention/use-state":"warn"},AP={...AT,...Ah,...Ap,"@eslint-react/hooks-extra":Cp,"@eslint-react/naming-convention":CF,"@eslint-react/web-api":CG},AC={...Ax};var Aw=Ac({name:()=>AA,rules:()=>AD});let AA="@eslint-react/disable-conflict-eslint-plugin-react",AD=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 AN=Ac({name:()=>AF,rules:()=>AO});let AF="@eslint-react/disable-dom",AO=Object.fromEntries(Object.entries(Ad).map(([e])=>[e,"off"]));var AI=Ac({name:()=>AL,rules:()=>AM});let AL="@eslint-react/disable-experimental",AM={"@eslint-react/jsx-key-before-spread":"off","@eslint-react/jsx-no-iife":"off","@eslint-react/no-duplicate-key":"off","@eslint-react/no-implicit-key":"off","@eslint-react/no-misused-capture-owner-stack":"off","@eslint-react/no-unnecessary-key":"off","@eslint-react/no-unnecessary-use-callback":"off","@eslint-react/no-unnecessary-use-memo":"off","@eslint-react/no-unnecessary-use-ref":"off","@eslint-react/no-unused-props":"off","@eslint-react/prefer-read-only-props":"off","@eslint-react/rsc/function-definition":"off"};var AR=Ac({name:()=>Aj,rules:()=>AY});let Aj="@eslint-react/disable-rsc",AY=Object.fromEntries(Object.entries(Ag).map(([e])=>[e,"off"]));var AB=Ac({name:()=>AU,rules:()=>AV});let AU="@eslint-react/disable-type-checked",AV={"@eslint-react/no-implicit-key":"off","@eslint-react/no-leaked-conditional-rendering":"off","@eslint-react/no-unused-props":"off","@eslint-react/prefer-read-only-props":"off"};var AJ=Ac({name:()=>Az,plugins:()=>A$,rules:()=>Aq,settings:()=>AW});let Az="@eslint-react/web-api",Aq={"@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"},A$={"@eslint-react/web-api":CG},AW={...Ax};var AK=Ac({name:()=>AG,rules:()=>AH});let AG="@eslint-react/disable-web-api",AH=Object.fromEntries(Object.entries(Aq).map(([e])=>[e,"off"]));var AX=Ac({name:()=>AQ,plugins:()=>A0,rules:()=>AZ});let AQ="@eslint-react/no-deprecated",AZ={"@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"},A0={...AT,...Ap};var A1=Ac({name:()=>A2,rules:()=>A3});let A2="@eslint-react/off",A3={...Object.fromEntries(Object.entries(Ak).map(([e])=>[e,"off"])),...AV};var A6=Ac({name:()=>A4,plugins:()=>A5,rules:()=>A8,settings:()=>A7});let A4="@eslint-react/recommended",A8={...Ab,...Ag,...Ad,...Aq,"@eslint-react/hooks-extra/no-direct-set-state-in-use-effect":"warn","@eslint-react/naming-convention/context-name":"warn","@eslint-react/naming-convention/id-name":"warn","@eslint-react/naming-convention/ref-name":"warn","@eslint-react/naming-convention/use-state":"warn"},A5={...AT,...Ah,...Ap,...A$,"@eslint-react/hooks-extra":Cp,"@eslint-react/naming-convention":CF},A7={...Ax};var A9=Ac({name:()=>De,plugins:()=>Dn,rules:()=>Dt,settings:()=>Dr});let De="@eslint-react/recommended-typescript",Dt={...A8,"@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"},Dn={...A5},Dr={...A7};var Di=Ac({name:()=>Da,plugins:()=>Ds,rules:()=>Do,settings:()=>Dl});let Da="@eslint-react/recommended-type-checked",Do={...Dt,"@eslint-react/no-implicit-key":"error","@eslint-react/no-leaked-conditional-rendering":"error"},Ds={...Dn},Dl={...Dr};var Dc=Ac({name:()=>Du,plugins:()=>Dd,rules:()=>D_,settings:()=>Dp});let Du="@eslint-react/strict",D_={...A8,"@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-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"},Dd={...A5},Dp={...A7};var Df=Ac({name:()=>Dm,plugins:()=>Dh,rules:()=>Dg,settings:()=>Dy});let Dm="@eslint-react/strict-typescript",Dg={...D_,...Dt},Dh={...Dd},Dy={...Dp};var Dv=Ac({name:()=>Db,plugins:()=>Dx,rules:()=>DT,settings:()=>DS});let Db="@eslint-react/strict-type-checked",DT={...Dg,"@eslint-react/no-implicit-key":"error","@eslint-react/no-leaked-conditional-rendering":"error","@eslint-react/no-unused-props":"warn"},Dx={...Dh},DS={...Dy},DE={meta:{name:"@eslint-react/eslint-plugin",version:"2.13.0"},configs:{all:AS,"disable-conflict-eslint-plugin-react":Aw,"disable-dom":AN,"disable-experimental":AI,"disable-rsc":AR,"disable-type-checked":AB,"disable-web-api":AK,dom:Au,"no-deprecated":AX,off:A1,recommended:A6,"recommended-type-checked":Di,"recommended-typescript":A9,rsc:Af,strict:Dc,"strict-type-checked":Dv,"strict-typescript":Df,"web-api":AJ,x:Ay},rules:{...Ca.rules}},Dk=aX.memo(DE,"@eslint-react/eslint-plugin"),DP=aX.memo(ol.fixupPluginRules(os),"eslint-plugin-ssr-friendly");async function DC({opt:e={}}={}){return[{plugins:{"@stylexjs":(await import("@stylexjs/eslint-plugin")).default},files:[aX.constants.GLOB_TS,aX.constants.GLOB_TSX,aX.constants.GLOB_JSX],rules:{"@stylexjs/valid-styles":["error",e],"@stylexjs/valid-shorthands":["error",e],"@stylexjs/sort-keys":"off"}}]}exports.next=function(){return[{...aQ.configs["core-web-vitals"],files:[aX.constants.GLOB_TS,aX.constants.GLOB_TSX,aX.constants.GLOB_JSX],rules:{...aQ.configs["core-web-vitals"].rules,"@next/next/no-img-element":"off","@next/next/no-html-link-for-pages":"off"}}]},exports.react=function({files:e=[aX.constants.GLOB_TS,aX.constants.GLOB_TSX,aX.constants.GLOB_JSX],additionalHooks:t="(useIsomorphicLayoutEffect|useSukkaManyOtherCustomEffectHookExample|useAbortableEffect)",nextjs:n=!1,remix:r=!1,reactRefresh:i={},additionalHooksWithType:a={useLayoutEffect:["useIsomorphicLayoutEffect"],useEffect:["useAbortableEffect"]},additionalComponents:o=[{name:"Link",as:"a",attributes:[{name:"to",as:"href"},{name:"rel",as:"rel"}]}]}={}){let{allowConstantExport:s=!1}=i;e="function"==typeof e?e([aX.constants.GLOB_TS,aX.constants.GLOB_TSX,aX.constants.GLOB_JSX]):ou.castArray(e);let l=[aX.UNSAFE_excludeJsonYamlFiles({name:"@eslint-sukka/react base",files:e,plugins:{"react-prefer-function-component":aX.memo(oR,"eslint-plugin-react-prefer-function-component"),...aX.collectPlugins([Dk.configs["strict-type-checked"],Dk.configs.rsc]),"ssr-friendly":DP},settings:{"react-x":{version:"detect",additionalHooks:a,additionalComponents:o}},languageOptions:{globals:aX.globals.browser},rules:{...Dk.configs["strict-type-checked"].rules,...Dk.configs.rsc.rules,"@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","@eslint-react/jsx-shorthand-boolean":"error","@eslint-react/dom/no-void-elements-with-children":"error","@eslint-react/jsx-shorthand-fragment":"error","@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/no-unnecessary-use-ref":"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"}]}}),aX.withFiles(aX.UNSAFE_excludeJsonYamlFiles({...aZ.configs.flat["recommended-latest"],rules:{...aZ.configs.flat["recommended-latest"].rules,"react-hooks/exhaustive-deps":["error",{additionalHooks:t}]}}),e),aX.withFiles(aX.UNSAFE_excludeJsonYamlFiles(oc.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"}}];return n?l.push(oD.next({allowConstantExport:s})):r?l.push(oD.vite({allowExportNames:["meta","links","headers","loader","action"]})):l.push(oD.recommended({allowConstantExport:s})),l},exports.stylex=DC;
|
|
420
|
+
${l} ${u} from ${c}${o}`)}})}}},defaultOptions:[]});let wD=["react-dom","react-dom/client","react-dom/server"],wN={meta:{name:"eslint-plugin-react-dom",version:"2.13.0"},rules:{"no-dangerously-set-innerhtml":C1,"no-dangerously-set-innerhtml-with-children":C2,"no-find-dom-node":C4,"no-flush-sync":C5,"no-hydrate":C9,"no-missing-button-type":wn,"no-missing-iframe-sandbox":wr,"no-namespace":wi,"no-render":wa,"no-render-return-value":ws,"no-script-url":wl,"no-string-style-prop":wc,"no-unknown-property":wx,"no-unsafe-iframe-sandbox":wE,"no-unsafe-target-blank":wk,"no-use-form-state":wP,"no-void-elements-with-children":ww,"prefer-namespace-import":wA}};var wF=CX({name:()=>wO,plugins:()=>wL,rules:()=>wI,settings:()=>wM});let wO="react-dom/recommended",wI={"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"},wL={"react-dom":wN},wM={"react-x":ux};var wR=CX({name:()=>wj,plugins:()=>wB,rules:()=>wY,settings:()=>wU});let wj="react-dom/strict",wY={...wI,"react-dom/no-missing-button-type":"warn","react-dom/no-missing-iframe-sandbox":"warn","react-dom/no-unsafe-target-blank":"warn"},wB={...wL},wU={...wM},{toFlatConfig:wV}=un("react-dom",wN);var wJ={...wN,configs:{recommended:wV(wF),strict:wV(wR)}},wz=Object.defineProperty,wq=(e,t)=>{let n={};for(var r in e)wz(n,r,{get:e[r],enumerable:!0});return wz(n,Symbol.toStringTag,{value:"Module"}),n},w$=wq({name:()=>wW,rules:()=>wK});let wW="react-rsc/disable-experimental",wK={"react-rsc/function-definition":"off"},wG={meta:{name:"eslint-plugin-react-rsc",version:"2.13.0"},rules:{"function-definition":gV.ESLintUtils.RuleCreator(function(e){return`${ur}/docs/rules/${e}`})({meta:{type:"problem",docs:{description:"Validate and transform React Client/Server Function definitions."},fixable:"code",messages:{file:"Functions exported from files with `use server` directive are React Server Functions and therefore must be async.",local:"Functions with `use server` directive are React Server Functions and therefore must be async."},schema:[]},name:"function-definition",create:function(e){if(!e.sourceCode.text.includes("use server"))return{};let t=xO(e.sourceCode.ast).some(e=>"use server"===e.directive);function n(t,n){return!!xg(t)&&!t.async&&(e.report({messageId:n,node:t,fix:function(t){if(t.type===uF.AST_NODE_TYPES.FunctionDeclaration||t.type===uF.AST_NODE_TYPES.FunctionExpression){let n=e.sourceCode.getFirstToken(t);return null!=n?e=>e.insertTextBefore(n,"async "):null}return t.type===uF.AST_NODE_TYPES.ArrowFunctionExpression?e=>e.insertTextBefore(t,"async "):null}(t)}),!0)}function r(e){xI(e).some(e=>"use server"===e.directive)&&n(e,"local")}function i(t,r){let i=xG(xW(t.name,e.sourceCode.getScope(r)),0);null!=i&&n(i,"file")}return{ArrowFunctionExpression(e){r(e)},ExportDefaultDeclaration(e){if(!t)return;let r=e.declaration;!n(r,"file")&&xR(r)&&i(r,e)},ExportNamedDeclaration(e){if(t){if(null!=e.declaration){let t=e.declaration;if(n(t,"file"))return;if(t.type===uF.AST_NODE_TYPES.VariableDeclaration)for(let e of t.declarations)n(e.init,"file");return}if(null==e.source&&e.specifiers.length>0)for(let t of e.specifiers)i(t.local,e)}},FunctionDeclaration(e){r(e)},FunctionExpression(e){r(e)}}},defaultOptions:[]})}};var wH=wq({name:()=>wX,plugins:()=>wZ,rules:()=>wQ,settings:()=>w0});let wX="react-rsc/recommended",wQ={"react-rsc/function-definition":"error"},wZ={"react-rsc":wG},w0={"react-rsc":ux};var w1=wq({name:()=>w2,plugins:()=>w6,rules:()=>w3,settings:()=>w4});let w2="react-rsc/recommended-typescript",w3={...wQ},w6={...wZ},w4={...w0};var w8=wq({name:()=>w5,plugins:()=>w9,rules:()=>w7,settings:()=>Ae});let w5="react-rsc/strict",w7={...wQ},w9={...wZ},Ae={...w0};var At=wq({name:()=>An,plugins:()=>Ai,rules:()=>Ar,settings:()=>Aa});let An="react-rsc/strict-typescript",Ar={...w7},Ai={...w9},Aa={...Ae},{toFlatConfig:Ao}=un("react-rsc",wG);var As={...wG,configs:{"disable-experimental":Ao(w$),recommended:Ao(wH),"recommended-typescript":Ao(w1),strict:Ao(w8),"strict-typescript":Ao(At)}},Al=Object.defineProperty,Ac=(e,t)=>{let n={};for(var r in e)Al(n,r,{get:e[r],enumerable:!0});return Al(n,Symbol.toStringTag,{value:"Module"}),n},Au=Ac({name:()=>A_,plugins:()=>Ap,rules:()=>Ad});let A_="@eslint-react/dom",Ad={"@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"},Ap={"@eslint-react/dom":wJ};var Af=Ac({name:()=>Am,plugins:()=>Ah,rules:()=>Ag});let Am="@eslint-react/rsc",Ag={"@eslint-react/rsc/function-definition":"error"},Ah={"@eslint-react/rsc":As};var Ay=Ac({name:()=>Av,plugins:()=>AT,rules:()=>Ab,settings:()=>Ax});let Av="@eslint-react/x",Ab={"@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-forward-ref":"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"},AT={"@eslint-react":Ca},Ax={"react-x":ux};var AS=Ac({name:()=>AE,plugins:()=>AP,rules:()=>Ak,settings:()=>AC});let AE="@eslint-react/all",Ak={"@eslint-react/jsx-dollar":"warn","@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-direct-mutation-state":"error","@eslint-react/no-duplicate-key":"error","@eslint-react/no-forward-ref":"warn","@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-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-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-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-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/rsc/function-definition":"error","@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/id-name":"warn","@eslint-react/naming-convention/ref-name":"warn","@eslint-react/naming-convention/use-state":"warn"},AP={...AT,...Ah,...Ap,"@eslint-react/hooks-extra":Cp,"@eslint-react/naming-convention":CF,"@eslint-react/web-api":CG},AC={...Ax};var Aw=Ac({name:()=>AA,rules:()=>AD});let AA="@eslint-react/disable-conflict-eslint-plugin-react",AD=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 AN=Ac({name:()=>AF,rules:()=>AO});let AF="@eslint-react/disable-dom",AO=Object.fromEntries(Object.entries(Ad).map(([e])=>[e,"off"]));var AI=Ac({name:()=>AL,rules:()=>AM});let AL="@eslint-react/disable-experimental",AM={"@eslint-react/jsx-key-before-spread":"off","@eslint-react/jsx-no-iife":"off","@eslint-react/no-duplicate-key":"off","@eslint-react/no-implicit-key":"off","@eslint-react/no-misused-capture-owner-stack":"off","@eslint-react/no-unnecessary-key":"off","@eslint-react/no-unnecessary-use-callback":"off","@eslint-react/no-unnecessary-use-memo":"off","@eslint-react/no-unnecessary-use-ref":"off","@eslint-react/no-unused-props":"off","@eslint-react/prefer-read-only-props":"off","@eslint-react/rsc/function-definition":"off"};var AR=Ac({name:()=>Aj,rules:()=>AY});let Aj="@eslint-react/disable-rsc",AY=Object.fromEntries(Object.entries(Ag).map(([e])=>[e,"off"]));var AB=Ac({name:()=>AU,rules:()=>AV});let AU="@eslint-react/disable-type-checked",AV={"@eslint-react/no-implicit-key":"off","@eslint-react/no-leaked-conditional-rendering":"off","@eslint-react/no-unused-props":"off","@eslint-react/prefer-read-only-props":"off"};var AJ=Ac({name:()=>Az,plugins:()=>A$,rules:()=>Aq,settings:()=>AW});let Az="@eslint-react/web-api",Aq={"@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"},A$={"@eslint-react/web-api":CG},AW={...Ax};var AK=Ac({name:()=>AG,rules:()=>AH});let AG="@eslint-react/disable-web-api",AH=Object.fromEntries(Object.entries(Aq).map(([e])=>[e,"off"]));var AX=Ac({name:()=>AQ,plugins:()=>A0,rules:()=>AZ});let AQ="@eslint-react/no-deprecated",AZ={"@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"},A0={...AT,...Ap};var A1=Ac({name:()=>A2,rules:()=>A3});let A2="@eslint-react/off",A3={...Object.fromEntries(Object.entries(Ak).map(([e])=>[e,"off"])),...AV};var A6=Ac({name:()=>A4,plugins:()=>A5,rules:()=>A8,settings:()=>A7});let A4="@eslint-react/recommended",A8={...Ab,...Ag,...Ad,...Aq,"@eslint-react/hooks-extra/no-direct-set-state-in-use-effect":"warn","@eslint-react/naming-convention/context-name":"warn","@eslint-react/naming-convention/id-name":"warn","@eslint-react/naming-convention/ref-name":"warn","@eslint-react/naming-convention/use-state":"warn"},A5={...AT,...Ah,...Ap,...A$,"@eslint-react/hooks-extra":Cp,"@eslint-react/naming-convention":CF},A7={...Ax};var A9=Ac({name:()=>De,plugins:()=>Dn,rules:()=>Dt,settings:()=>Dr});let De="@eslint-react/recommended-typescript",Dt={...A8,"@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"},Dn={...A5},Dr={...A7};var Di=Ac({name:()=>Da,plugins:()=>Ds,rules:()=>Do,settings:()=>Dl});let Da="@eslint-react/recommended-type-checked",Do={...Dt,"@eslint-react/no-implicit-key":"error","@eslint-react/no-leaked-conditional-rendering":"error"},Ds={...Dn},Dl={...Dr};var Dc=Ac({name:()=>Du,plugins:()=>Dd,rules:()=>D_,settings:()=>Dp});let Du="@eslint-react/strict",D_={...A8,"@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-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"},Dd={...A5},Dp={...A7};var Df=Ac({name:()=>Dm,plugins:()=>Dh,rules:()=>Dg,settings:()=>Dy});let Dm="@eslint-react/strict-typescript",Dg={...D_,...Dt},Dh={...Dd},Dy={...Dp};var Dv=Ac({name:()=>Db,plugins:()=>Dx,rules:()=>DT,settings:()=>DS});let Db="@eslint-react/strict-type-checked",DT={...Dg,"@eslint-react/no-implicit-key":"error","@eslint-react/no-leaked-conditional-rendering":"error","@eslint-react/no-unused-props":"warn"},Dx={...Dh},DS={...Dy},DE={meta:{name:"@eslint-react/eslint-plugin",version:"2.13.0"},configs:{all:AS,"disable-conflict-eslint-plugin-react":Aw,"disable-dom":AN,"disable-experimental":AI,"disable-rsc":AR,"disable-type-checked":AB,"disable-web-api":AK,dom:Au,"no-deprecated":AX,off:A1,recommended:A6,"recommended-type-checked":Di,"recommended-typescript":A9,rsc:Af,strict:Dc,"strict-type-checked":Dv,"strict-typescript":Df,"web-api":AJ,x:Ay},rules:{...Ca.rules}},Dk=aX.memo(DE,"@eslint-react/eslint-plugin"),DP=aX.memo(ol.fixupPluginRules(os),"eslint-plugin-ssr-friendly");async function DC({opt:e={}}={}){return[{plugins:{"@stylexjs":(await import("@stylexjs/eslint-plugin")).default},files:[aX.constants.GLOB_TS,aX.constants.GLOB_TSX,aX.constants.GLOB_JSX],rules:{"@stylexjs/valid-styles":["error",e],"@stylexjs/valid-shorthands":["error",e],"@stylexjs/sort-keys":"off"}}]}exports.next=function(){return[{...aQ.configs["core-web-vitals"],files:[aX.constants.GLOB_TS,aX.constants.GLOB_TSX,aX.constants.GLOB_JSX],rules:{...aQ.configs["core-web-vitals"].rules,"@next/next/no-img-element":"off","@next/next/no-html-link-for-pages":"off"}}]},exports.react=function({files:e=[aX.constants.GLOB_TS,aX.constants.GLOB_TSX,aX.constants.GLOB_JSX],additionalHooks:t="(useIsomorphicLayoutEffect|useSukkaManyOtherCustomEffectHookExample|useAbortableEffect)",nextjs:n=!1,remix:r=!1,reactRefresh:i={},additionalHooksWithType:a={useLayoutEffect:["useIsomorphicLayoutEffect"],useEffect:["useAbortableEffect"]},additionalComponents:o=[{name:"Link",as:"a",attributes:[{name:"to",as:"href"},{name:"rel",as:"rel"}]}]}={}){let{allowConstantExport:s}=i;e="function"==typeof e?e([aX.constants.GLOB_TS,aX.constants.GLOB_TSX,aX.constants.GLOB_JSX]):ou.castArray(e);let l=[aX.UNSAFE_excludeJsonYamlFiles({name:"@eslint-sukka/react base",files:e,plugins:{"react-prefer-function-component":aX.memo(oR,"eslint-plugin-react-prefer-function-component"),...aX.collectPlugins([Dk.configs["strict-type-checked"],Dk.configs.rsc]),"ssr-friendly":DP},settings:{"react-x":{version:"detect",additionalHooks:a,additionalComponents:o}},languageOptions:{globals:aX.globals.browser},rules:{...Dk.configs["strict-type-checked"].rules,...Dk.configs.rsc.rules,"@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","@eslint-react/jsx-shorthand-boolean":"error","@eslint-react/dom/no-void-elements-with-children":"error","@eslint-react/jsx-shorthand-fragment":"error","@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/no-unnecessary-use-ref":"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"}]}}),aX.withFiles(aX.UNSAFE_excludeJsonYamlFiles({...aZ.configs.flat["recommended-latest"],rules:{...aZ.configs.flat["recommended-latest"].rules,"react-hooks/exhaustive-deps":["error",{additionalHooks:t}]}}),e),aX.withFiles(aX.UNSAFE_excludeJsonYamlFiles(oc.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"}}];return n?l.push(aX.withFiles(oD.next({allowConstantExport:s}),n)):r?l.push(aX.withFiles(oD.vite({allowExportNames:["meta","links","headers","loader","action"],allowConstantExport:s}),r)):l.push(oD.recommended({allowConstantExport:s})),l},exports.stylex=DC;
|
package/dist/index.d.ts
CHANGED
|
@@ -23,8 +23,8 @@ interface OptionsReact {
|
|
|
23
23
|
* @default 'error'
|
|
24
24
|
*/
|
|
25
25
|
reactCompiler?: boolean;
|
|
26
|
-
nextjs?: boolean;
|
|
27
|
-
remix?: boolean;
|
|
26
|
+
nextjs?: boolean | string | string[];
|
|
27
|
+
remix?: boolean | string | string[];
|
|
28
28
|
reactRefresh?: {
|
|
29
29
|
allowConstantExport?: boolean;
|
|
30
30
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eslint-sukka/react",
|
|
3
|
-
"version": "8.
|
|
3
|
+
"version": "8.7.0",
|
|
4
4
|
"description": "Sukka's ESLint config",
|
|
5
5
|
"homepage": "https://github.com/SukkaW/eslint-config-sukka",
|
|
6
6
|
"repository": {
|
|
@@ -32,15 +32,15 @@
|
|
|
32
32
|
"eslint-plugin-react-hooks": "^7.0.1",
|
|
33
33
|
"eslint-plugin-ssr-friendly": "^1.3.0",
|
|
34
34
|
"foxts": "^5.2.1",
|
|
35
|
-
"@eslint-sukka/eslint-plugin-react-jsx-a11y": "8.
|
|
36
|
-
"@eslint-sukka/eslint-plugin-stylistic": "8.
|
|
37
|
-
"@eslint-sukka/shared": "8.
|
|
35
|
+
"@eslint-sukka/eslint-plugin-react-jsx-a11y": "8.7.0",
|
|
36
|
+
"@eslint-sukka/eslint-plugin-stylistic": "8.7.0",
|
|
37
|
+
"@eslint-sukka/shared": "8.7.0"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
40
|
"@eslint-react/eslint-plugin": "^2.13.0",
|
|
41
41
|
"eslint-plugin-react-prefer-function-component": "^5.0.0",
|
|
42
42
|
"eslint-plugin-react-refresh": "^0.5.0",
|
|
43
|
-
"@eslint-sukka/rollup-config": "8.
|
|
43
|
+
"@eslint-sukka/rollup-config": "8.7.0"
|
|
44
44
|
},
|
|
45
45
|
"scripts": {
|
|
46
46
|
"build": "rollup -c rollup.config.ts --configPlugin swc3"
|