allyward 1.2.0 → 1.4.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.
@@ -1,5 +1,5 @@
1
1
  import { createRequire as __createRequire } from 'module'; const require = __createRequire(import.meta.url);
2
- import{a as Io,b as ZE,c as eS}from"./chunk-OLLDCSVO.mjs";import{c as dD,f as No,l as fD,m as tS,n as nS}from"./chunk-RAB5WJOG.mjs";import"./chunk-GMYSZQLH.mjs";import{a as JE}from"./chunk-7T75TQUC.mjs";import{a as sS,b as Hp}from"./chunk-UIPLYHZY.mjs";import{a as rS,c as qp,d as jp}from"./chunk-LRFMPFDN.mjs";import"./chunk-6W3JS6DP.mjs";import{h as Wp}from"./chunk-SNU37HWC.mjs";import{a as hD,c as C,e as uc}from"./chunk-7UDH5BXX.mjs";var uS=C(Ur=>{"use strict";var mD=Ur&&Ur.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Ur,"__esModule",{value:!0});Ur.isFileLikelyToContainComponentDeclarations=oS;Ur.preprocessComponentFile=lS;Ur.postprocessComponentFile=cS;var iS=hD("path"),Me=mD(ZE()),aS=new Map;function oS(e,t){return!!([".component.ts",".page.ts",".dialog.ts",".modal.ts",".popover.ts",".bottomsheet.ts",".snackbar.ts"].some(n=>t.endsWith(n))||e.includes("Component")&&e.includes("@angular/core"))}function lS(e,t){let n=[e];if(!oS(e,t))return n;try{let r=Me.default.createSourceFile(t,e,Me.default.ScriptTarget.Latest,!0),s=gD(r);if(!s||!s.length)return n;let i=[];for(let c of s){let u=Me.default.getDecorators(c);if(u)for(let p of u)Me.default.isCallExpression(p.expression)&&Me.default.isIdentifier(p.expression.expression)&&p.expression.expression.text==="Component"&&i.push(p)}if(!i||!i.length)return n;let a=[e],o=0;for(let c of i){if(!Me.default.isDecorator(c)||!Me.default.isCallExpression(c.expression)||c.expression.arguments.length!==1)continue;let u=c.expression.arguments[0];if(!Me.default.isObjectLiteralExpression(u))continue;let p=u.properties.find(N=>N&&N.name&&N.name.getText()==="template");if(u.properties.find(N=>N&&N.name&&N.name.getText()==="templateUrl")||!p||!Me.default.isPropertyAssignment(p))continue;let h,f=p.initializer;if(Me.default.isNoSubstitutionTemplateLiteral(f)&&(h=f.rawText),Me.default.isTemplateExpression(f)&&(h=f.getText().slice(1,-1)),Me.default.isStringLiteral(f)&&(h=f.text),!h)continue;let E=`inline-template-${(0,iS.basename)(t)}-${++o}.component.html`,T=p.initializer.getStart(),y=p.initializer.getEnd();aS.set(E,{range:[T,y],lineAndCharacter:{start:r.getLineAndCharacterOfPosition(T),end:r.getLineAndCharacterOfPosition(y)}}),a.push({text:h,filename:E})}return a}catch(r){return console.log(r),console.error("preprocess: ERROR could not parse @Component() metadata",t),n}}function gD(e){let t=[];return n(e),t;function n(r){if(Me.default.isClassDeclaration(r)){t.push(r);return}if(!(r.kind<Me.default.SyntaxKind.FirstNode||r.kind>Me.default.SyntaxKind.FirstJSDocNode)&&!(r.kind>=Me.default.SyntaxKind.TypePredicate&&r.kind<=Me.default.SyntaxKind.ImportType)){switch(r.kind){case Me.default.SyntaxKind.InterfaceDeclaration:case Me.default.SyntaxKind.EnumDeclaration:case Me.default.SyntaxKind.ImportEqualsDeclaration:case Me.default.SyntaxKind.ImportDeclaration:case Me.default.SyntaxKind.ImportClause:return}Me.default.forEachChild(r,n)}}}function cS(e,t){let n=e[0];if(e.length===1)return n;let r=e.slice(1);return[...n,...r.flatMap((i,a)=>{let c=`inline-template-${(0,iS.basename)(t)}-${a+1}.component.html`,u=aS.get(c);return u?i.map(p=>{if(p.line===1&&(p.column+=u.lineAndCharacter.start.character+1),p.endLine===1&&(p.endColumn+=u.lineAndCharacter.start.character+1),p.line+=u.lineAndCharacter.start.line,p.endLine+=u.lineAndCharacter.start.line,p.fix){let h=u.range[0]+1;p.fix.range=[h+p.fix.range[0],h+p.fix.range[1]]}return p}):[]})]}Ur.default={"extract-inline-html":{meta:{name:"extract-inline-html"},preprocess:lS,postprocess:cS,supportsAutofix:!0}}});var ko=C(yt=>{"use strict";Object.defineProperty(yt,"__esModule",{value:!0});yt.toPattern=yt.toHumanReadableText=yt.kebabToCamelCase=yt.isNotNullOrUndefined=yt.objectKeys=void 0;yt.getLast=vD;yt.arrayify=ED;yt.capitalize=xD;yt.withoutBracketsAndWhitespaces=bD;function vD(e){return e.slice(-1)[0]}yt.objectKeys=Object.keys;function ED(e){return Array.isArray(e)?e:e?[e]:[]}var SD=e=>e!=null;yt.isNotNullOrUndefined=SD;var yD=e=>e.replace(/-[a-zA-Z]/g,({1:t})=>t.toUpperCase());yt.kebabToCamelCase=yD;var wD=e=>{let t=e.length;return t===1?`"${e[0]}"`:`${e.map(n=>`"${n}"`).slice(0,t-1).join(", ")} or "${[...e].pop()}"`};yt.toHumanReadableText=wD;var TD=e=>RegExp(`^(${e.join("|")})$`);yt.toPattern=TD;function xD(e){return`${e[0].toUpperCase()}${e.slice(1)}`}function bD(e){return e.replace(/[[\]\s]/g,"")}});var hS=C(zp=>{"use strict";Object.defineProperty(zp,"__esModule",{value:!0});zp.getAriaAttributeKeys=AD;var pS=null;function AD(){return pS??(pS=new Set(["aria-activedescendant","aria-atomic","aria-autocomplete","aria-busy","aria-checked","aria-colcount","aria-colindex","aria-colspan","aria-controls","aria-current","aria-describedby","aria-details","aria-disabled","aria-dragged","aria-dropeffect","aria-errormessage","aria-expanded","aria-flowto","aria-haspopup","aria-hidden","aria-invalid","aria-label","aria-labelledby","aria-level","aria-live","aria-modal","aria-multiline","aria-multiselectable","aria-orientation","aria-owns","aria-placeholder","aria-posinset","aria-pressed","aria-readonly","aria-relevant","aria-required","aria-rowcount","aria-rowindex","aria-rowspan","aria-selected","aria-setsize","aria-sort","aria-valuemax","aria-valuemin","aria-valuenow","aria-valuetext"]))}});var fS=C(Gp=>{"use strict";Object.defineProperty(Gp,"__esModule",{value:!0});Gp.getNativeEventNames=CD;var dS=null;function CD(){return dS??(dS=new Set(["abort","afterprint","afterscriptexecute","animationcancel","animationend","animationiteration","animationstart","appinstalled","auxclick","beforeinput","beforeinstallprompt","beforematch","beforeprint","beforescriptexecute","beforetoggle","beforeunload","beforexrselect","beginEvent","blur","cancel","canplay","canplaythrough","change","click","close","command","compositionend","compositionstart","compositionupdate","contentvisibilityautostatechange","contextlost","contextmenu","contextrestored","copy","cuechange","cut","dblclick","devicemotion","deviceorientation","deviceorientationabsolute","DOMActivate","DOMContentLoaded","DOMMouseScroll","drag","dragend","dragenter","dragexit","dragleave","dragover","dragstart","drop","durationchange","emptied","encrypted","ended","endEvent","enterpictureinpicture","error","focus","focusin","focusout","formdata","freeze","fullscreenchange","fullscreenerror","gamepadconnected","gamepaddisconnected","gesturechange","gestureend","gesturestart","gotpointercapture","hashchange","input","installresult","interest","invalid","keydown","keypress","keyup","languagechange","leavepictureinpicture","load","loadeddata","loadedmetadata","loadstart","location","loseinterest","lostpointercapture","message","messageerror","mousedown","mouseenter","mouseleave","mousemove","mouseout","mouseover","mouseup","mousewheel","MozMousePixelScroll","offline","online","orientationchange","pagehide","pagereveal","pageshow","pageswap","paste","pause","play","playing","pointercancel","pointerdown","pointerenter","pointerleave","pointerlockchange","pointerlockerror","pointermove","pointerout","pointerover","pointerrawupdate","pointerup","popstate","prerenderingchange","progress","promptaction","promptdismiss","ratechange","readystatechange","rejectionhandled","repeatEvent","reset","resize","resume","scroll","scrollend","scrollsnapchange","scrollsnapchanging","search","securitypolicyviolation","seeked","seeking","select","selectionchange","selectstart","slotchange","stalled","storage","stream","submit","suspend","timeupdate","toggle","touchcancel","touchend","touchmove","touchstart","track","transitioncancel","transitionend","transitionrun","transitionstart","unhandledrejection","unload","validationstatuschange","visibilitychange","volumechange","vrdisplayactivate","vrdisplayconnect","vrdisplaydeactivate","vrdisplaydisconnect","vrdisplaypresentchange","waiting","waitingforkey","webglcontextcreationerror","webglcontextlost","webglcontextrestored","webkitmouseforcechanged","webkitmouseforcedown","webkitmouseforceup","webkitmouseforcewillbegin","wheel"]))}});var mS=C($e=>{"use strict";var _D=$e&&$e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var s=Object.getOwnPropertyDescriptor(t,n);(!s||("get"in s?!t.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,s)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),ND=$e&&$e.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t}),ID=$e&&$e.__importStar||(function(){var e=function(t){return e=Object.getOwnPropertyNames||function(n){var r=[];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(r[r.length]=s);return r},e(t)};return function(t){if(t&&t.__esModule)return t;var n={};if(t!=null)for(var r=e(t),s=0;s<r.length;s++)r[s]!=="default"&&_D(n,t,r[s]);return ND(n,t),n}})();Object.defineProperty($e,"__esModule",{value:!0});$e.isParenthesized=$e.hasSideEffect=$e.getStringIfConstant=$e.getStaticValue=$e.getPropertyName=$e.getFunctionNameWithKind=$e.getFunctionHeadLocation=void 0;var ti=ID(No());$e.getFunctionHeadLocation=ti.getFunctionHeadLocation;$e.getFunctionNameWithKind=ti.getFunctionNameWithKind;$e.getPropertyName=ti.getPropertyName;$e.getStaticValue=ti.getStaticValue;$e.getStringIfConstant=ti.getStringIfConstant;$e.hasSideEffect=ti.hasSideEffect;$e.isParenthesized=ti.isParenthesized});var gS=C(qn=>{"use strict";var kD=qn&&qn.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var s=Object.getOwnPropertyDescriptor(t,n);(!s||("get"in s?!t.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,s)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),PD=qn&&qn.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t}),LD=qn&&qn.__importStar||(function(){var e=function(t){return e=Object.getOwnPropertyNames||function(n){var r=[];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(r[r.length]=s);return r},e(t)};return function(t){if(t&&t.__esModule)return t;var n={};if(t!=null)for(var r=e(t),s=0;s<r.length;s++)r[s]!=="default"&&kD(n,t,r[s]);return PD(n,t),n}})();Object.defineProperty(qn,"__esModule",{value:!0});qn.PatternMatcher=void 0;var DD=LD(No());qn.PatternMatcher=DD.PatternMatcher});var vS=C(W=>{"use strict";var OD=W&&W.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var s=Object.getOwnPropertyDescriptor(t,n);(!s||("get"in s?!t.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,s)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),RD=W&&W.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t}),BD=W&&W.__importStar||(function(){var e=function(t){return e=Object.getOwnPropertyNames||function(n){var r=[];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(r[r.length]=s);return r},e(t)};return function(t){if(t&&t.__esModule)return t;var n={};if(t!=null)for(var r=e(t),s=0;s<r.length;s++)r[s]!=="default"&&OD(n,t,r[s]);return RD(n,t),n}})();Object.defineProperty(W,"__esModule",{value:!0});W.isNotSemicolonToken=W.isSemicolonToken=W.isNotOpeningParenToken=W.isOpeningParenToken=W.isNotOpeningBracketToken=W.isOpeningBracketToken=W.isNotOpeningBraceToken=W.isOpeningBraceToken=W.isNotCommentToken=W.isCommentToken=W.isNotCommaToken=W.isCommaToken=W.isNotColonToken=W.isColonToken=W.isNotClosingParenToken=W.isClosingParenToken=W.isNotClosingBracketToken=W.isClosingBracketToken=W.isNotClosingBraceToken=W.isClosingBraceToken=W.isNotArrowToken=W.isArrowToken=void 0;var Ue=BD(No());W.isArrowToken=Ue.isArrowToken;W.isNotArrowToken=Ue.isNotArrowToken;W.isClosingBraceToken=Ue.isClosingBraceToken;W.isNotClosingBraceToken=Ue.isNotClosingBraceToken;W.isClosingBracketToken=Ue.isClosingBracketToken;W.isNotClosingBracketToken=Ue.isNotClosingBracketToken;W.isClosingParenToken=Ue.isClosingParenToken;W.isNotClosingParenToken=Ue.isNotClosingParenToken;W.isColonToken=Ue.isColonToken;W.isNotColonToken=Ue.isNotColonToken;W.isCommaToken=Ue.isCommaToken;W.isNotCommaToken=Ue.isNotCommaToken;W.isCommentToken=Ue.isCommentToken;W.isNotCommentToken=Ue.isNotCommentToken;W.isOpeningBraceToken=Ue.isOpeningBraceToken;W.isNotOpeningBraceToken=Ue.isNotOpeningBraceToken;W.isOpeningBracketToken=Ue.isOpeningBracketToken;W.isNotOpeningBracketToken=Ue.isNotOpeningBracketToken;W.isOpeningParenToken=Ue.isOpeningParenToken;W.isNotOpeningParenToken=Ue.isNotOpeningParenToken;W.isSemicolonToken=Ue.isSemicolonToken;W.isNotSemicolonToken=Ue.isNotSemicolonToken});var ES=C(Hn=>{"use strict";var MD=Hn&&Hn.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var s=Object.getOwnPropertyDescriptor(t,n);(!s||("get"in s?!t.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,s)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),FD=Hn&&Hn.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t}),$D=Hn&&Hn.__importStar||(function(){var e=function(t){return e=Object.getOwnPropertyNames||function(n){var r=[];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(r[r.length]=s);return r},e(t)};return function(t){if(t&&t.__esModule)return t;var n={};if(t!=null)for(var r=e(t),s=0;s<r.length;s++)r[s]!=="default"&&MD(n,t,r[s]);return FD(n,t),n}})();Object.defineProperty(Hn,"__esModule",{value:!0});Hn.ReferenceTracker=void 0;var Po=$D(No()),T3=Po.ReferenceTracker.READ,x3=Po.ReferenceTracker.CALL,b3=Po.ReferenceTracker.CONSTRUCT,A3=Po.ReferenceTracker.ESM;Hn.ReferenceTracker=Po.ReferenceTracker});var yS=C(fn=>{"use strict";var UD=fn&&fn.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var s=Object.getOwnPropertyDescriptor(t,n);(!s||("get"in s?!t.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,s)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),VD=fn&&fn.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t}),qD=fn&&fn.__importStar||(function(){var e=function(t){return e=Object.getOwnPropertyNames||function(n){var r=[];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(r[r.length]=s);return r},e(t)};return function(t){if(t&&t.__esModule)return t;var n={};if(t!=null)for(var r=e(t),s=0;s<r.length;s++)r[s]!=="default"&&UD(n,t,r[s]);return VD(n,t),n}})();Object.defineProperty(fn,"__esModule",{value:!0});fn.getInnermostScope=fn.findVariable=void 0;var SS=qD(No());fn.findVariable=SS.findVariable;fn.getInnermostScope=SS.getInnermostScope});var wS=C(Ln=>{"use strict";var HD=Ln&&Ln.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var s=Object.getOwnPropertyDescriptor(t,n);(!s||("get"in s?!t.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,s)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),Lo=Ln&&Ln.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&HD(t,e,n)};Object.defineProperty(Ln,"__esModule",{value:!0});Lo(mS(),Ln);Lo(gS(),Ln);Lo(vS(),Ln);Lo(ES(),Ln);Lo(yS(),Ln)});var Xp=C(Zt=>{"use strict";Object.defineProperty(Zt,"__esModule",{value:!0});Zt.isNotTokenOfTypeWithConditions=Zt.isTokenOfTypeWithConditions=Zt.isNodeOfTypeWithConditions=Zt.isNodeOfTypes=Zt.isNodeOfType=void 0;var jD=e=>t=>t?.type===e;Zt.isNodeOfType=jD;var WD=e=>t=>!!t&&e.includes(t.type);Zt.isNodeOfTypes=WD;var zD=(e,t)=>{let n=Object.entries(t);return r=>r?.type===e&&n.every(([s,i])=>r[s]===i)};Zt.isNodeOfTypeWithConditions=zD;var GD=(e,t)=>{let n=Object.entries(t);return r=>r?.type===e&&n.every(([s,i])=>r[s]===i)};Zt.isTokenOfTypeWithConditions=GD;var XD=(e,t)=>n=>!(0,Zt.isTokenOfTypeWithConditions)(e,t)(n);Zt.isNotTokenOfTypeWithConditions=XD});var TS=C(Do=>{"use strict";Object.defineProperty(Do,"__esModule",{value:!0});Do.LINEBREAK_MATCHER=void 0;Do.isTokenOnSameLine=YD;Do.LINEBREAK_MATCHER=/\r\n|[\r\n\u2028\u2029]/;function YD(e,t){return e.loc.end.line===t.loc.start.line}});var Kp=C(Vr=>{"use strict";Object.defineProperty(Vr,"__esModule",{value:!0});Vr.TSESTree=Vr.AST_TOKEN_TYPES=Vr.AST_NODE_TYPES=void 0;var Yp=eS();Object.defineProperty(Vr,"AST_NODE_TYPES",{enumerable:!0,get:function(){return Yp.AST_NODE_TYPES}});Object.defineProperty(Vr,"AST_TOKEN_TYPES",{enumerable:!0,get:function(){return Yp.AST_TOKEN_TYPES}});Object.defineProperty(Vr,"TSESTree",{enumerable:!0,get:function(){return Yp.TSESTree}})});var AS=C(J=>{"use strict";Object.defineProperty(J,"__esModule",{value:!0});J.isLoop=J.isImportKeyword=J.isTypeKeyword=J.isAwaitKeyword=J.isAwaitExpression=J.isIdentifier=J.isConstructor=J.isClassOrTypeElement=J.isTSConstructorType=J.isTSFunctionType=J.isFunctionOrFunctionType=J.isFunctionType=J.isFunction=J.isVariableDeclarator=J.isTypeAssertion=J.isLogicalOrOperator=J.isOptionalCallExpression=J.isNotNonNullAssertionPunctuator=J.isNonNullAssertionPunctuator=J.isNotOptionalChainPunctuator=J.isOptionalChainPunctuator=void 0;J.isSetter=KD;var Z=Kp(),We=Xp();J.isOptionalChainPunctuator=(0,We.isTokenOfTypeWithConditions)(Z.AST_TOKEN_TYPES.Punctuator,{value:"?."});J.isNotOptionalChainPunctuator=(0,We.isNotTokenOfTypeWithConditions)(Z.AST_TOKEN_TYPES.Punctuator,{value:"?."});J.isNonNullAssertionPunctuator=(0,We.isTokenOfTypeWithConditions)(Z.AST_TOKEN_TYPES.Punctuator,{value:"!"});J.isNotNonNullAssertionPunctuator=(0,We.isNotTokenOfTypeWithConditions)(Z.AST_TOKEN_TYPES.Punctuator,{value:"!"});J.isOptionalCallExpression=(0,We.isNodeOfTypeWithConditions)(Z.AST_NODE_TYPES.CallExpression,{optional:!0});J.isLogicalOrOperator=(0,We.isNodeOfTypeWithConditions)(Z.AST_NODE_TYPES.LogicalExpression,{operator:"||"});J.isTypeAssertion=(0,We.isNodeOfTypes)([Z.AST_NODE_TYPES.TSAsExpression,Z.AST_NODE_TYPES.TSTypeAssertion]);J.isVariableDeclarator=(0,We.isNodeOfType)(Z.AST_NODE_TYPES.VariableDeclarator);var xS=[Z.AST_NODE_TYPES.ArrowFunctionExpression,Z.AST_NODE_TYPES.FunctionDeclaration,Z.AST_NODE_TYPES.FunctionExpression];J.isFunction=(0,We.isNodeOfTypes)(xS);var bS=[Z.AST_NODE_TYPES.TSCallSignatureDeclaration,Z.AST_NODE_TYPES.TSConstructorType,Z.AST_NODE_TYPES.TSConstructSignatureDeclaration,Z.AST_NODE_TYPES.TSDeclareFunction,Z.AST_NODE_TYPES.TSEmptyBodyFunctionExpression,Z.AST_NODE_TYPES.TSFunctionType,Z.AST_NODE_TYPES.TSMethodSignature];J.isFunctionType=(0,We.isNodeOfTypes)(bS);J.isFunctionOrFunctionType=(0,We.isNodeOfTypes)([...xS,...bS]);J.isTSFunctionType=(0,We.isNodeOfType)(Z.AST_NODE_TYPES.TSFunctionType);J.isTSConstructorType=(0,We.isNodeOfType)(Z.AST_NODE_TYPES.TSConstructorType);J.isClassOrTypeElement=(0,We.isNodeOfTypes)([Z.AST_NODE_TYPES.PropertyDefinition,Z.AST_NODE_TYPES.FunctionExpression,Z.AST_NODE_TYPES.MethodDefinition,Z.AST_NODE_TYPES.TSAbstractPropertyDefinition,Z.AST_NODE_TYPES.TSAbstractMethodDefinition,Z.AST_NODE_TYPES.TSEmptyBodyFunctionExpression,Z.AST_NODE_TYPES.TSIndexSignature,Z.AST_NODE_TYPES.TSCallSignatureDeclaration,Z.AST_NODE_TYPES.TSConstructSignatureDeclaration,Z.AST_NODE_TYPES.TSMethodSignature,Z.AST_NODE_TYPES.TSPropertySignature]);J.isConstructor=(0,We.isNodeOfTypeWithConditions)(Z.AST_NODE_TYPES.MethodDefinition,{kind:"constructor"});function KD(e){return!!e&&(e.type===Z.AST_NODE_TYPES.MethodDefinition||e.type===Z.AST_NODE_TYPES.Property)&&e.kind==="set"}J.isIdentifier=(0,We.isNodeOfType)(Z.AST_NODE_TYPES.Identifier);J.isAwaitExpression=(0,We.isNodeOfType)(Z.AST_NODE_TYPES.AwaitExpression);J.isAwaitKeyword=(0,We.isTokenOfTypeWithConditions)(Z.AST_TOKEN_TYPES.Identifier,{value:"await"});J.isTypeKeyword=(0,We.isTokenOfTypeWithConditions)(Z.AST_TOKEN_TYPES.Identifier,{value:"type"});J.isImportKeyword=(0,We.isTokenOfTypeWithConditions)(Z.AST_TOKEN_TYPES.Keyword,{value:"import"});J.isLoop=(0,We.isNodeOfTypes)([Z.AST_NODE_TYPES.DoWhileStatement,Z.AST_NODE_TYPES.ForStatement,Z.AST_NODE_TYPES.ForInStatement,Z.AST_NODE_TYPES.ForOfStatement,Z.AST_NODE_TYPES.WhileStatement])});var CS=C(jn=>{"use strict";var QD=jn&&jn.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var s=Object.getOwnPropertyDescriptor(t,n);(!s||("get"in s?!t.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,s)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),pc=jn&&jn.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&QD(t,e,n)};Object.defineProperty(jn,"__esModule",{value:!0});pc(wS(),jn);pc(Xp(),jn);pc(TS(),jn);pc(AS(),jn)});var Jp=C(hc=>{"use strict";Object.defineProperty(hc,"__esModule",{value:!0});hc.isObjectNotArray=Qp;hc.deepMerge=_S;function Qp(e){return typeof e=="object"&&e!=null&&!Array.isArray(e)}function _S(e={},t={}){let n=new Set([...Object.keys(e),...Object.keys(t)]);return Object.fromEntries([...n].map(r=>{let s=r in e,i=r in t,a=e[r],o=t[r],c;return s&&i?Qp(a)&&Qp(o)?c=_S(a,o):c=o:s?c=a:c=o,[r,c]}))}});var th=C(eh=>{"use strict";Object.defineProperty(eh,"__esModule",{value:!0});eh.applyDefault=JD;var Zp=Jp();function JD(e,t){let n=structuredClone(e);return t==null||n.forEach((r,s)=>{if(t[s]!==void 0){let i=t[s];(0,Zp.isObjectNotArray)(i)&&(0,Zp.isObjectNotArray)(r)?n[s]=(0,Zp.deepMerge)(r,i):n[s]=i}}),n}});var NS=C(nh=>{"use strict";Object.defineProperty(nh,"__esModule",{value:!0});nh.parserSeemsToBeTSESLint=ZD;function ZD(e){return!!e&&/(?:typescript-eslint|\.\.)[\w/\\]*parser/.test(e)}});var kS=C(rh=>{"use strict";Object.defineProperty(rh,"__esModule",{value:!0});rh.getParserServices=r2;var e2=NS(),t2="You have used a rule which requires type information, but don't have parserOptions set to generate type information for this file. See https://tseslint.com/typed-linting for enabling linting with type information.",n2='Note: detected a parser other than @typescript-eslint/parser. Make sure the parser is configured to forward "parserOptions.project" to @typescript-eslint/parser.';function r2(e,t=!1){let n=e.parserPath||e.languageOptions.parser?.meta?.name;return(e.sourceCode.parserServices?.esTreeNodeToTSNodeMap==null||e.sourceCode.parserServices.tsNodeToESTreeNodeMap==null)&&IS(n),e.sourceCode.parserServices.program==null&&!t&&IS(n),e.sourceCode.parserServices}function IS(e){let t=[t2,`Parser: ${e||"(unknown)"}`,!(0,e2.parserSeemsToBeTSESLint)(e)&&n2].filter(Boolean);throw new Error(t.join(`
2
+ import{a as Io,b as ZE,c as eS}from"./chunk-P2I74HDC.mjs";import{c as dD,f as No,l as fD,m as tS,n as nS}from"./chunk-FIPGNZZ6.mjs";import"./chunk-EQOLROGF.mjs";import{a as JE}from"./chunk-GAWNPASE.mjs";import{a as sS,b as Hp}from"./chunk-UIPLYHZY.mjs";import{a as rS,c as qp,f as jp}from"./chunk-TGAVS6EH.mjs";import"./chunk-6W3JS6DP.mjs";import{h as Wp}from"./chunk-SDHUSWGB.mjs";import{a as hD,c as C,e as uc}from"./chunk-LUOGX5HV.mjs";var uS=C(Ur=>{"use strict";var mD=Ur&&Ur.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Ur,"__esModule",{value:!0});Ur.isFileLikelyToContainComponentDeclarations=oS;Ur.preprocessComponentFile=lS;Ur.postprocessComponentFile=cS;var iS=hD("path"),Me=mD(ZE()),aS=new Map;function oS(e,t){return!!([".component.ts",".page.ts",".dialog.ts",".modal.ts",".popover.ts",".bottomsheet.ts",".snackbar.ts"].some(n=>t.endsWith(n))||e.includes("Component")&&e.includes("@angular/core"))}function lS(e,t){let n=[e];if(!oS(e,t))return n;try{let r=Me.default.createSourceFile(t,e,Me.default.ScriptTarget.Latest,!0),s=gD(r);if(!s||!s.length)return n;let i=[];for(let c of s){let u=Me.default.getDecorators(c);if(u)for(let p of u)Me.default.isCallExpression(p.expression)&&Me.default.isIdentifier(p.expression.expression)&&p.expression.expression.text==="Component"&&i.push(p)}if(!i||!i.length)return n;let a=[e],o=0;for(let c of i){if(!Me.default.isDecorator(c)||!Me.default.isCallExpression(c.expression)||c.expression.arguments.length!==1)continue;let u=c.expression.arguments[0];if(!Me.default.isObjectLiteralExpression(u))continue;let p=u.properties.find(N=>N&&N.name&&N.name.getText()==="template");if(u.properties.find(N=>N&&N.name&&N.name.getText()==="templateUrl")||!p||!Me.default.isPropertyAssignment(p))continue;let h,f=p.initializer;if(Me.default.isNoSubstitutionTemplateLiteral(f)&&(h=f.rawText),Me.default.isTemplateExpression(f)&&(h=f.getText().slice(1,-1)),Me.default.isStringLiteral(f)&&(h=f.text),!h)continue;let E=`inline-template-${(0,iS.basename)(t)}-${++o}.component.html`,T=p.initializer.getStart(),y=p.initializer.getEnd();aS.set(E,{range:[T,y],lineAndCharacter:{start:r.getLineAndCharacterOfPosition(T),end:r.getLineAndCharacterOfPosition(y)}}),a.push({text:h,filename:E})}return a}catch(r){return console.log(r),console.error("preprocess: ERROR could not parse @Component() metadata",t),n}}function gD(e){let t=[];return n(e),t;function n(r){if(Me.default.isClassDeclaration(r)){t.push(r);return}if(!(r.kind<Me.default.SyntaxKind.FirstNode||r.kind>Me.default.SyntaxKind.FirstJSDocNode)&&!(r.kind>=Me.default.SyntaxKind.TypePredicate&&r.kind<=Me.default.SyntaxKind.ImportType)){switch(r.kind){case Me.default.SyntaxKind.InterfaceDeclaration:case Me.default.SyntaxKind.EnumDeclaration:case Me.default.SyntaxKind.ImportEqualsDeclaration:case Me.default.SyntaxKind.ImportDeclaration:case Me.default.SyntaxKind.ImportClause:return}Me.default.forEachChild(r,n)}}}function cS(e,t){let n=e[0];if(e.length===1)return n;let r=e.slice(1);return[...n,...r.flatMap((i,a)=>{let c=`inline-template-${(0,iS.basename)(t)}-${a+1}.component.html`,u=aS.get(c);return u?i.map(p=>{if(p.line===1&&(p.column+=u.lineAndCharacter.start.character+1),p.endLine===1&&(p.endColumn+=u.lineAndCharacter.start.character+1),p.line+=u.lineAndCharacter.start.line,p.endLine+=u.lineAndCharacter.start.line,p.fix){let h=u.range[0]+1;p.fix.range=[h+p.fix.range[0],h+p.fix.range[1]]}return p}):[]})]}Ur.default={"extract-inline-html":{meta:{name:"extract-inline-html"},preprocess:lS,postprocess:cS,supportsAutofix:!0}}});var ko=C(yt=>{"use strict";Object.defineProperty(yt,"__esModule",{value:!0});yt.toPattern=yt.toHumanReadableText=yt.kebabToCamelCase=yt.isNotNullOrUndefined=yt.objectKeys=void 0;yt.getLast=vD;yt.arrayify=ED;yt.capitalize=xD;yt.withoutBracketsAndWhitespaces=bD;function vD(e){return e.slice(-1)[0]}yt.objectKeys=Object.keys;function ED(e){return Array.isArray(e)?e:e?[e]:[]}var SD=e=>e!=null;yt.isNotNullOrUndefined=SD;var yD=e=>e.replace(/-[a-zA-Z]/g,({1:t})=>t.toUpperCase());yt.kebabToCamelCase=yD;var wD=e=>{let t=e.length;return t===1?`"${e[0]}"`:`${e.map(n=>`"${n}"`).slice(0,t-1).join(", ")} or "${[...e].pop()}"`};yt.toHumanReadableText=wD;var TD=e=>RegExp(`^(${e.join("|")})$`);yt.toPattern=TD;function xD(e){return`${e[0].toUpperCase()}${e.slice(1)}`}function bD(e){return e.replace(/[[\]\s]/g,"")}});var hS=C(zp=>{"use strict";Object.defineProperty(zp,"__esModule",{value:!0});zp.getAriaAttributeKeys=AD;var pS=null;function AD(){return pS??(pS=new Set(["aria-activedescendant","aria-atomic","aria-autocomplete","aria-busy","aria-checked","aria-colcount","aria-colindex","aria-colspan","aria-controls","aria-current","aria-describedby","aria-details","aria-disabled","aria-dragged","aria-dropeffect","aria-errormessage","aria-expanded","aria-flowto","aria-haspopup","aria-hidden","aria-invalid","aria-label","aria-labelledby","aria-level","aria-live","aria-modal","aria-multiline","aria-multiselectable","aria-orientation","aria-owns","aria-placeholder","aria-posinset","aria-pressed","aria-readonly","aria-relevant","aria-required","aria-rowcount","aria-rowindex","aria-rowspan","aria-selected","aria-setsize","aria-sort","aria-valuemax","aria-valuemin","aria-valuenow","aria-valuetext"]))}});var fS=C(Gp=>{"use strict";Object.defineProperty(Gp,"__esModule",{value:!0});Gp.getNativeEventNames=CD;var dS=null;function CD(){return dS??(dS=new Set(["abort","afterprint","afterscriptexecute","animationcancel","animationend","animationiteration","animationstart","appinstalled","auxclick","beforeinput","beforeinstallprompt","beforematch","beforeprint","beforescriptexecute","beforetoggle","beforeunload","beforexrselect","beginEvent","blur","cancel","canplay","canplaythrough","change","click","close","command","compositionend","compositionstart","compositionupdate","contentvisibilityautostatechange","contextlost","contextmenu","contextrestored","copy","cuechange","cut","dblclick","devicemotion","deviceorientation","deviceorientationabsolute","DOMActivate","DOMContentLoaded","DOMMouseScroll","drag","dragend","dragenter","dragexit","dragleave","dragover","dragstart","drop","durationchange","emptied","encrypted","ended","endEvent","enterpictureinpicture","error","focus","focusin","focusout","formdata","freeze","fullscreenchange","fullscreenerror","gamepadconnected","gamepaddisconnected","gesturechange","gestureend","gesturestart","gotpointercapture","hashchange","input","installresult","interest","invalid","keydown","keypress","keyup","languagechange","leavepictureinpicture","load","loadeddata","loadedmetadata","loadstart","location","loseinterest","lostpointercapture","message","messageerror","mousedown","mouseenter","mouseleave","mousemove","mouseout","mouseover","mouseup","mousewheel","MozMousePixelScroll","offline","online","orientationchange","pagehide","pagereveal","pageshow","pageswap","paste","pause","play","playing","pointercancel","pointerdown","pointerenter","pointerleave","pointerlockchange","pointerlockerror","pointermove","pointerout","pointerover","pointerrawupdate","pointerup","popstate","prerenderingchange","progress","promptaction","promptdismiss","ratechange","readystatechange","rejectionhandled","repeatEvent","reset","resize","resume","scroll","scrollend","scrollsnapchange","scrollsnapchanging","search","securitypolicyviolation","seeked","seeking","select","selectionchange","selectstart","slotchange","stalled","storage","stream","submit","suspend","timeupdate","toggle","touchcancel","touchend","touchmove","touchstart","track","transitioncancel","transitionend","transitionrun","transitionstart","unhandledrejection","unload","validationstatuschange","visibilitychange","volumechange","vrdisplayactivate","vrdisplayconnect","vrdisplaydeactivate","vrdisplaydisconnect","vrdisplaypresentchange","waiting","waitingforkey","webglcontextcreationerror","webglcontextlost","webglcontextrestored","webkitmouseforcechanged","webkitmouseforcedown","webkitmouseforceup","webkitmouseforcewillbegin","wheel"]))}});var mS=C($e=>{"use strict";var _D=$e&&$e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var s=Object.getOwnPropertyDescriptor(t,n);(!s||("get"in s?!t.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,s)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),ND=$e&&$e.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t}),ID=$e&&$e.__importStar||(function(){var e=function(t){return e=Object.getOwnPropertyNames||function(n){var r=[];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(r[r.length]=s);return r},e(t)};return function(t){if(t&&t.__esModule)return t;var n={};if(t!=null)for(var r=e(t),s=0;s<r.length;s++)r[s]!=="default"&&_D(n,t,r[s]);return ND(n,t),n}})();Object.defineProperty($e,"__esModule",{value:!0});$e.isParenthesized=$e.hasSideEffect=$e.getStringIfConstant=$e.getStaticValue=$e.getPropertyName=$e.getFunctionNameWithKind=$e.getFunctionHeadLocation=void 0;var ti=ID(No());$e.getFunctionHeadLocation=ti.getFunctionHeadLocation;$e.getFunctionNameWithKind=ti.getFunctionNameWithKind;$e.getPropertyName=ti.getPropertyName;$e.getStaticValue=ti.getStaticValue;$e.getStringIfConstant=ti.getStringIfConstant;$e.hasSideEffect=ti.hasSideEffect;$e.isParenthesized=ti.isParenthesized});var gS=C(qn=>{"use strict";var kD=qn&&qn.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var s=Object.getOwnPropertyDescriptor(t,n);(!s||("get"in s?!t.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,s)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),PD=qn&&qn.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t}),LD=qn&&qn.__importStar||(function(){var e=function(t){return e=Object.getOwnPropertyNames||function(n){var r=[];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(r[r.length]=s);return r},e(t)};return function(t){if(t&&t.__esModule)return t;var n={};if(t!=null)for(var r=e(t),s=0;s<r.length;s++)r[s]!=="default"&&kD(n,t,r[s]);return PD(n,t),n}})();Object.defineProperty(qn,"__esModule",{value:!0});qn.PatternMatcher=void 0;var DD=LD(No());qn.PatternMatcher=DD.PatternMatcher});var vS=C(W=>{"use strict";var OD=W&&W.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var s=Object.getOwnPropertyDescriptor(t,n);(!s||("get"in s?!t.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,s)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),RD=W&&W.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t}),BD=W&&W.__importStar||(function(){var e=function(t){return e=Object.getOwnPropertyNames||function(n){var r=[];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(r[r.length]=s);return r},e(t)};return function(t){if(t&&t.__esModule)return t;var n={};if(t!=null)for(var r=e(t),s=0;s<r.length;s++)r[s]!=="default"&&OD(n,t,r[s]);return RD(n,t),n}})();Object.defineProperty(W,"__esModule",{value:!0});W.isNotSemicolonToken=W.isSemicolonToken=W.isNotOpeningParenToken=W.isOpeningParenToken=W.isNotOpeningBracketToken=W.isOpeningBracketToken=W.isNotOpeningBraceToken=W.isOpeningBraceToken=W.isNotCommentToken=W.isCommentToken=W.isNotCommaToken=W.isCommaToken=W.isNotColonToken=W.isColonToken=W.isNotClosingParenToken=W.isClosingParenToken=W.isNotClosingBracketToken=W.isClosingBracketToken=W.isNotClosingBraceToken=W.isClosingBraceToken=W.isNotArrowToken=W.isArrowToken=void 0;var Ue=BD(No());W.isArrowToken=Ue.isArrowToken;W.isNotArrowToken=Ue.isNotArrowToken;W.isClosingBraceToken=Ue.isClosingBraceToken;W.isNotClosingBraceToken=Ue.isNotClosingBraceToken;W.isClosingBracketToken=Ue.isClosingBracketToken;W.isNotClosingBracketToken=Ue.isNotClosingBracketToken;W.isClosingParenToken=Ue.isClosingParenToken;W.isNotClosingParenToken=Ue.isNotClosingParenToken;W.isColonToken=Ue.isColonToken;W.isNotColonToken=Ue.isNotColonToken;W.isCommaToken=Ue.isCommaToken;W.isNotCommaToken=Ue.isNotCommaToken;W.isCommentToken=Ue.isCommentToken;W.isNotCommentToken=Ue.isNotCommentToken;W.isOpeningBraceToken=Ue.isOpeningBraceToken;W.isNotOpeningBraceToken=Ue.isNotOpeningBraceToken;W.isOpeningBracketToken=Ue.isOpeningBracketToken;W.isNotOpeningBracketToken=Ue.isNotOpeningBracketToken;W.isOpeningParenToken=Ue.isOpeningParenToken;W.isNotOpeningParenToken=Ue.isNotOpeningParenToken;W.isSemicolonToken=Ue.isSemicolonToken;W.isNotSemicolonToken=Ue.isNotSemicolonToken});var ES=C(Hn=>{"use strict";var MD=Hn&&Hn.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var s=Object.getOwnPropertyDescriptor(t,n);(!s||("get"in s?!t.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,s)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),FD=Hn&&Hn.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t}),$D=Hn&&Hn.__importStar||(function(){var e=function(t){return e=Object.getOwnPropertyNames||function(n){var r=[];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(r[r.length]=s);return r},e(t)};return function(t){if(t&&t.__esModule)return t;var n={};if(t!=null)for(var r=e(t),s=0;s<r.length;s++)r[s]!=="default"&&MD(n,t,r[s]);return FD(n,t),n}})();Object.defineProperty(Hn,"__esModule",{value:!0});Hn.ReferenceTracker=void 0;var Po=$D(No()),T3=Po.ReferenceTracker.READ,x3=Po.ReferenceTracker.CALL,b3=Po.ReferenceTracker.CONSTRUCT,A3=Po.ReferenceTracker.ESM;Hn.ReferenceTracker=Po.ReferenceTracker});var yS=C(fn=>{"use strict";var UD=fn&&fn.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var s=Object.getOwnPropertyDescriptor(t,n);(!s||("get"in s?!t.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,s)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),VD=fn&&fn.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t}),qD=fn&&fn.__importStar||(function(){var e=function(t){return e=Object.getOwnPropertyNames||function(n){var r=[];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(r[r.length]=s);return r},e(t)};return function(t){if(t&&t.__esModule)return t;var n={};if(t!=null)for(var r=e(t),s=0;s<r.length;s++)r[s]!=="default"&&UD(n,t,r[s]);return VD(n,t),n}})();Object.defineProperty(fn,"__esModule",{value:!0});fn.getInnermostScope=fn.findVariable=void 0;var SS=qD(No());fn.findVariable=SS.findVariable;fn.getInnermostScope=SS.getInnermostScope});var wS=C(Ln=>{"use strict";var HD=Ln&&Ln.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var s=Object.getOwnPropertyDescriptor(t,n);(!s||("get"in s?!t.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,s)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),Lo=Ln&&Ln.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&HD(t,e,n)};Object.defineProperty(Ln,"__esModule",{value:!0});Lo(mS(),Ln);Lo(gS(),Ln);Lo(vS(),Ln);Lo(ES(),Ln);Lo(yS(),Ln)});var Xp=C(Zt=>{"use strict";Object.defineProperty(Zt,"__esModule",{value:!0});Zt.isNotTokenOfTypeWithConditions=Zt.isTokenOfTypeWithConditions=Zt.isNodeOfTypeWithConditions=Zt.isNodeOfTypes=Zt.isNodeOfType=void 0;var jD=e=>t=>t?.type===e;Zt.isNodeOfType=jD;var WD=e=>t=>!!t&&e.includes(t.type);Zt.isNodeOfTypes=WD;var zD=(e,t)=>{let n=Object.entries(t);return r=>r?.type===e&&n.every(([s,i])=>r[s]===i)};Zt.isNodeOfTypeWithConditions=zD;var GD=(e,t)=>{let n=Object.entries(t);return r=>r?.type===e&&n.every(([s,i])=>r[s]===i)};Zt.isTokenOfTypeWithConditions=GD;var XD=(e,t)=>n=>!(0,Zt.isTokenOfTypeWithConditions)(e,t)(n);Zt.isNotTokenOfTypeWithConditions=XD});var TS=C(Do=>{"use strict";Object.defineProperty(Do,"__esModule",{value:!0});Do.LINEBREAK_MATCHER=void 0;Do.isTokenOnSameLine=YD;Do.LINEBREAK_MATCHER=/\r\n|[\r\n\u2028\u2029]/;function YD(e,t){return e.loc.end.line===t.loc.start.line}});var Kp=C(Vr=>{"use strict";Object.defineProperty(Vr,"__esModule",{value:!0});Vr.TSESTree=Vr.AST_TOKEN_TYPES=Vr.AST_NODE_TYPES=void 0;var Yp=eS();Object.defineProperty(Vr,"AST_NODE_TYPES",{enumerable:!0,get:function(){return Yp.AST_NODE_TYPES}});Object.defineProperty(Vr,"AST_TOKEN_TYPES",{enumerable:!0,get:function(){return Yp.AST_TOKEN_TYPES}});Object.defineProperty(Vr,"TSESTree",{enumerable:!0,get:function(){return Yp.TSESTree}})});var AS=C(J=>{"use strict";Object.defineProperty(J,"__esModule",{value:!0});J.isLoop=J.isImportKeyword=J.isTypeKeyword=J.isAwaitKeyword=J.isAwaitExpression=J.isIdentifier=J.isConstructor=J.isClassOrTypeElement=J.isTSConstructorType=J.isTSFunctionType=J.isFunctionOrFunctionType=J.isFunctionType=J.isFunction=J.isVariableDeclarator=J.isTypeAssertion=J.isLogicalOrOperator=J.isOptionalCallExpression=J.isNotNonNullAssertionPunctuator=J.isNonNullAssertionPunctuator=J.isNotOptionalChainPunctuator=J.isOptionalChainPunctuator=void 0;J.isSetter=KD;var Z=Kp(),We=Xp();J.isOptionalChainPunctuator=(0,We.isTokenOfTypeWithConditions)(Z.AST_TOKEN_TYPES.Punctuator,{value:"?."});J.isNotOptionalChainPunctuator=(0,We.isNotTokenOfTypeWithConditions)(Z.AST_TOKEN_TYPES.Punctuator,{value:"?."});J.isNonNullAssertionPunctuator=(0,We.isTokenOfTypeWithConditions)(Z.AST_TOKEN_TYPES.Punctuator,{value:"!"});J.isNotNonNullAssertionPunctuator=(0,We.isNotTokenOfTypeWithConditions)(Z.AST_TOKEN_TYPES.Punctuator,{value:"!"});J.isOptionalCallExpression=(0,We.isNodeOfTypeWithConditions)(Z.AST_NODE_TYPES.CallExpression,{optional:!0});J.isLogicalOrOperator=(0,We.isNodeOfTypeWithConditions)(Z.AST_NODE_TYPES.LogicalExpression,{operator:"||"});J.isTypeAssertion=(0,We.isNodeOfTypes)([Z.AST_NODE_TYPES.TSAsExpression,Z.AST_NODE_TYPES.TSTypeAssertion]);J.isVariableDeclarator=(0,We.isNodeOfType)(Z.AST_NODE_TYPES.VariableDeclarator);var xS=[Z.AST_NODE_TYPES.ArrowFunctionExpression,Z.AST_NODE_TYPES.FunctionDeclaration,Z.AST_NODE_TYPES.FunctionExpression];J.isFunction=(0,We.isNodeOfTypes)(xS);var bS=[Z.AST_NODE_TYPES.TSCallSignatureDeclaration,Z.AST_NODE_TYPES.TSConstructorType,Z.AST_NODE_TYPES.TSConstructSignatureDeclaration,Z.AST_NODE_TYPES.TSDeclareFunction,Z.AST_NODE_TYPES.TSEmptyBodyFunctionExpression,Z.AST_NODE_TYPES.TSFunctionType,Z.AST_NODE_TYPES.TSMethodSignature];J.isFunctionType=(0,We.isNodeOfTypes)(bS);J.isFunctionOrFunctionType=(0,We.isNodeOfTypes)([...xS,...bS]);J.isTSFunctionType=(0,We.isNodeOfType)(Z.AST_NODE_TYPES.TSFunctionType);J.isTSConstructorType=(0,We.isNodeOfType)(Z.AST_NODE_TYPES.TSConstructorType);J.isClassOrTypeElement=(0,We.isNodeOfTypes)([Z.AST_NODE_TYPES.PropertyDefinition,Z.AST_NODE_TYPES.FunctionExpression,Z.AST_NODE_TYPES.MethodDefinition,Z.AST_NODE_TYPES.TSAbstractPropertyDefinition,Z.AST_NODE_TYPES.TSAbstractMethodDefinition,Z.AST_NODE_TYPES.TSEmptyBodyFunctionExpression,Z.AST_NODE_TYPES.TSIndexSignature,Z.AST_NODE_TYPES.TSCallSignatureDeclaration,Z.AST_NODE_TYPES.TSConstructSignatureDeclaration,Z.AST_NODE_TYPES.TSMethodSignature,Z.AST_NODE_TYPES.TSPropertySignature]);J.isConstructor=(0,We.isNodeOfTypeWithConditions)(Z.AST_NODE_TYPES.MethodDefinition,{kind:"constructor"});function KD(e){return!!e&&(e.type===Z.AST_NODE_TYPES.MethodDefinition||e.type===Z.AST_NODE_TYPES.Property)&&e.kind==="set"}J.isIdentifier=(0,We.isNodeOfType)(Z.AST_NODE_TYPES.Identifier);J.isAwaitExpression=(0,We.isNodeOfType)(Z.AST_NODE_TYPES.AwaitExpression);J.isAwaitKeyword=(0,We.isTokenOfTypeWithConditions)(Z.AST_TOKEN_TYPES.Identifier,{value:"await"});J.isTypeKeyword=(0,We.isTokenOfTypeWithConditions)(Z.AST_TOKEN_TYPES.Identifier,{value:"type"});J.isImportKeyword=(0,We.isTokenOfTypeWithConditions)(Z.AST_TOKEN_TYPES.Keyword,{value:"import"});J.isLoop=(0,We.isNodeOfTypes)([Z.AST_NODE_TYPES.DoWhileStatement,Z.AST_NODE_TYPES.ForStatement,Z.AST_NODE_TYPES.ForInStatement,Z.AST_NODE_TYPES.ForOfStatement,Z.AST_NODE_TYPES.WhileStatement])});var CS=C(jn=>{"use strict";var QD=jn&&jn.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var s=Object.getOwnPropertyDescriptor(t,n);(!s||("get"in s?!t.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,s)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),pc=jn&&jn.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&QD(t,e,n)};Object.defineProperty(jn,"__esModule",{value:!0});pc(wS(),jn);pc(Xp(),jn);pc(TS(),jn);pc(AS(),jn)});var Jp=C(hc=>{"use strict";Object.defineProperty(hc,"__esModule",{value:!0});hc.isObjectNotArray=Qp;hc.deepMerge=_S;function Qp(e){return typeof e=="object"&&e!=null&&!Array.isArray(e)}function _S(e={},t={}){let n=new Set([...Object.keys(e),...Object.keys(t)]);return Object.fromEntries([...n].map(r=>{let s=r in e,i=r in t,a=e[r],o=t[r],c;return s&&i?Qp(a)&&Qp(o)?c=_S(a,o):c=o:s?c=a:c=o,[r,c]}))}});var th=C(eh=>{"use strict";Object.defineProperty(eh,"__esModule",{value:!0});eh.applyDefault=JD;var Zp=Jp();function JD(e,t){let n=structuredClone(e);return t==null||n.forEach((r,s)=>{if(t[s]!==void 0){let i=t[s];(0,Zp.isObjectNotArray)(i)&&(0,Zp.isObjectNotArray)(r)?n[s]=(0,Zp.deepMerge)(r,i):n[s]=i}}),n}});var NS=C(nh=>{"use strict";Object.defineProperty(nh,"__esModule",{value:!0});nh.parserSeemsToBeTSESLint=ZD;function ZD(e){return!!e&&/(?:typescript-eslint|\.\.)[\w/\\]*parser/.test(e)}});var kS=C(rh=>{"use strict";Object.defineProperty(rh,"__esModule",{value:!0});rh.getParserServices=r2;var e2=NS(),t2="You have used a rule which requires type information, but don't have parserOptions set to generate type information for this file. See https://tseslint.com/typed-linting for enabling linting with type information.",n2='Note: detected a parser other than @typescript-eslint/parser. Make sure the parser is configured to forward "parserOptions.project" to @typescript-eslint/parser.';function r2(e,t=!1){let n=e.parserPath||e.languageOptions.parser?.meta?.name;return(e.sourceCode.parserServices?.esTreeNodeToTSNodeMap==null||e.sourceCode.parserServices.tsNodeToESTreeNodeMap==null)&&IS(n),e.sourceCode.parserServices.program==null&&!t&&IS(n),e.sourceCode.parserServices}function IS(e){let t=[t2,`Parser: ${e||"(unknown)"}`,!(0,e2.parserSeemsToBeTSESLint)(e)&&n2].filter(Boolean);throw new Error(t.join(`
3
3
  `))}});var LS=C(PS=>{"use strict";Object.defineProperty(PS,"__esModule",{value:!0})});var DS=C(Oo=>{"use strict";Object.defineProperty(Oo,"__esModule",{value:!0});Oo.NullThrowsReasons=void 0;Oo.nullThrows=s2;Oo.NullThrowsReasons={MissingParent:"Expected node to have a parent.",MissingToken:(e,t)=>`Expected to find a ${e} for the ${t}.`};function s2(e,t){if(e==null)throw new Error(`Non-null Assertion Failed: ${t}`);return e}});var BS=C(sh=>{"use strict";Object.defineProperty(sh,"__esModule",{value:!0});sh.RuleCreator=OS;var i2=th();function OS(e){return function({meta:n,name:r,...s}){return RS({meta:{...n,docs:{...n.docs,url:e(r)}},name:r,...s})}}function RS({create:e,defaultOptions:t,meta:n,name:r}){let s=n.defaultOptions??t??[];return{create(i){let a=(0,i2.applyDefault)(s,i.options);return e(i,a)},defaultOptions:t,meta:n,name:r}}OS.withoutDocs=function(t){return RS(t)}});var MS=C(mn=>{"use strict";var a2=mn&&mn.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var s=Object.getOwnPropertyDescriptor(t,n);(!s||("get"in s?!t.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,s)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),aa=mn&&mn.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&a2(t,e,n)};Object.defineProperty(mn,"__esModule",{value:!0});aa(th(),mn);aa(Jp(),mn);aa(kS(),mn);aa(LS(),mn);aa(DS(),mn);aa(BS(),mn)});var $S=C(FS=>{"use strict";Object.defineProperty(FS,"__esModule",{value:!0})});var US=C(ih=>{"use strict";Object.defineProperty(ih,"__esModule",{value:!0});ih.isArray=o2;function o2(e){return Array.isArray(e)}});var qS=C(VS=>{"use strict";Object.defineProperty(VS,"__esModule",{value:!0})});var jS=C(qr=>{"use strict";var l2=qr&&qr.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var s=Object.getOwnPropertyDescriptor(t,n);(!s||("get"in s?!t.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,s)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),HS=qr&&qr.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&l2(t,e,n)};Object.defineProperty(qr,"__esModule",{value:!0});HS(US(),qr);HS(qS(),qr)});var fc=C(ze=>{"use strict";var WS=ze&&ze.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var s=Object.getOwnPropertyDescriptor(t,n);(!s||("get"in s?!t.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,s)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),c2=ze&&ze.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t}),dc=ze&&ze.__importStar||(function(){var e=function(t){return e=Object.getOwnPropertyNames||function(n){var r=[];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(r[r.length]=s);return r},e(t)};return function(t){if(t&&t.__esModule)return t;var n={};if(t!=null)for(var r=e(t),s=0;s<r.length;s++)r[s]!=="default"&&WS(n,t,r[s]);return c2(n,t),n}})(),u2=ze&&ze.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&WS(t,e,n)};Object.defineProperty(ze,"__esModule",{value:!0});ze.TSUtils=ze.TSESLint=ze.JSONSchema=ze.ESLintUtils=ze.ASTUtils=void 0;ze.ASTUtils=dc(CS());ze.ESLintUtils=dc(MS());ze.JSONSchema=dc($S());ze.TSESLint={};u2(Kp(),ze);ze.TSUtils=dc(jS())});var vc=C(x=>{"use strict";Object.defineProperty(x,"__esModule",{value:!0});x.getLifecycleInterfaceByMethodName=x.getMethodName=x.getDeclaredMethods=x.getDecoratorPropertyValue=x.getDecoratorProperty=x.getDecoratorProperties=x.isAngularInnerClassDecorator=x.isAngularClassDecorator=x.isAngularLifecycleMethod=x.isAngularLifecycleInterface=x.ANGULAR_LIFECYCLE_METHODS=x.ANGULAR_LIFECYCLE_INTERFACES=x.getDecoratorName=x.getDecoratorArgument=x.getAngularClassDecorator=x.getDecorator=x.getClassName=x.getDeclaredAngularLifecycleMethods=x.getDeclaredAngularLifecycleInterfaces=x.getPipeDecorator=x.ANGULAR_CLASS_DECORATOR_MAPPER=x.ANGULAR_CLASS_DECORATORS=x.ANGULAR_INNER_CLASS_DECORATORS=x.ANGULAR_CLASS_DECORATOR_LIFECYCLE_METHOD_MAPPER=x.angularLifecycleMethodsOrdered=x.angularLifecycleMethodKeys=x.angularLifecycleInterfaceKeys=x.angularInnerClassDecoratorKeys=x.angularClassDecoratorKeys=x.OPTION_STYLE_KEBAB_CASE=x.OPTION_STYLE_CAMEL_CASE=x.AngularLifecycleMethods=x.AngularLifecycleInterfaces=x.AngularInnerClassDecorators=x.AngularClassDecorators=void 0;x.getCorrespondentImportClause=p2;x.getImportDeclarations=zS;x.getImportDeclarationSpecifier=h2;x.getInterface=d2;x.getInterfaceName=uh;x.getInterfaces=ph;x.getDeclaredInterfaceNames=GS;x.getNearestNodeFrom=v2;x.getPropertyDefinitionName=_2;x.isImportedFrom=O2;x.getRawText=XS;x.getReplacementText=R2;x.isCallExpression=hh;x.isMemberExpression=YS;x.isIdentifierOrMemberExpression=KS;x.isClassDeclaration=QS;x.isPropertyDefinition=dh;x.isPropertyOrMethodDefinition=B2;x.isImportDefaultSpecifier=M2;x.isImportNamespaceSpecifier=JS;x.isObjectExpression=ZS;x.isArrayExpression=F2;x.isProperty=fh;x.isLiteral=Ro;x.isTemplateElement=ty;x.isTemplateLiteral=ny;x.isImportDeclaration=ry;x.isImportSpecifier=mh;x.isStringLiteral=mc;x.isMethodDefinition=gc;x.isSuper=$2;x.isImplementsToken=U2;var be=fc(),Hr=ko(),Nt;(function(e){e.Component="Component",e.Directive="Directive",e.Injectable="Injectable",e.NgModule="NgModule",e.Pipe="Pipe",e.Service="Service"})(Nt||(x.AngularClassDecorators=Nt={}));var ah;(function(e){e.Attribute="Attribute",e.Host="Host",e.Inject="Inject",e.Optional="Optional",e.Self="Self",e.SkipSelf="SkipSelf"})(ah||(ah={}));var oh;(function(e){e.HostListener="HostListener"})(oh||(oh={}));var lh;(function(e){e.ContentChild="ContentChild",e.ContentChildren="ContentChildren",e.HostBinding="HostBinding",e.Input="Input",e.Output="Output",e.ViewChild="ViewChild",e.ViewChildren="ViewChildren"})(lh||(lh={}));x.AngularInnerClassDecorators={...ah,...oh,...lh};var ch;(function(e){e.AfterContentChecked="AfterContentChecked",e.AfterContentInit="AfterContentInit",e.AfterViewChecked="AfterViewChecked",e.AfterViewInit="AfterViewInit",e.DoBootstrap="DoBootstrap",e.DoCheck="DoCheck",e.OnChanges="OnChanges",e.OnDestroy="OnDestroy",e.OnInit="OnInit"})(ch||(x.AngularLifecycleInterfaces=ch={}));var ve;(function(e){e.ngAfterContentChecked="ngAfterContentChecked",e.ngAfterContentInit="ngAfterContentInit",e.ngAfterViewChecked="ngAfterViewChecked",e.ngAfterViewInit="ngAfterViewInit",e.ngDoBootstrap="ngDoBootstrap",e.ngDoCheck="ngDoCheck",e.ngOnChanges="ngOnChanges",e.ngOnDestroy="ngOnDestroy",e.ngOnInit="ngOnInit"})(ve||(x.AngularLifecycleMethods=ve={}));x.OPTION_STYLE_CAMEL_CASE="camelCase";x.OPTION_STYLE_KEBAB_CASE="kebab-case";x.angularClassDecoratorKeys=(0,Hr.objectKeys)(Nt);x.angularInnerClassDecoratorKeys=(0,Hr.objectKeys)(x.AngularInnerClassDecorators);x.angularLifecycleInterfaceKeys=(0,Hr.objectKeys)(ch);x.angularLifecycleMethodKeys=(0,Hr.objectKeys)(ve);x.angularLifecycleMethodsOrdered=[ve.ngOnChanges,ve.ngOnInit,ve.ngDoCheck,ve.ngAfterContentInit,ve.ngAfterContentChecked,ve.ngAfterViewInit,ve.ngAfterViewChecked,ve.ngOnDestroy];x.ANGULAR_CLASS_DECORATOR_LIFECYCLE_METHOD_MAPPER=new Map([[Nt.Component,new Set([ve.ngAfterContentChecked,ve.ngAfterContentInit,ve.ngAfterViewChecked,ve.ngAfterViewInit,ve.ngOnChanges,ve.ngOnDestroy,ve.ngOnInit,ve.ngDoCheck])],[Nt.Directive,new Set([ve.ngAfterContentChecked,ve.ngAfterContentInit,ve.ngAfterViewChecked,ve.ngAfterViewInit,ve.ngOnChanges,ve.ngOnDestroy,ve.ngOnInit,ve.ngDoCheck])],[Nt.Injectable,new Set([ve.ngOnDestroy])],[Nt.NgModule,new Set([ve.ngDoBootstrap])],[Nt.Pipe,new Set([ve.ngOnDestroy])],[Nt.Service,new Set([ve.ngOnDestroy])]]);x.ANGULAR_INNER_CLASS_DECORATORS=new Set(x.angularInnerClassDecoratorKeys);x.ANGULAR_CLASS_DECORATORS=new Set(x.angularClassDecoratorKeys);x.ANGULAR_CLASS_DECORATOR_MAPPER=new Map([[Nt.Component,x.ANGULAR_INNER_CLASS_DECORATORS],[Nt.Directive,x.ANGULAR_INNER_CLASS_DECORATORS],[Nt.Injectable,new Set([x.AngularInnerClassDecorators.Host,x.AngularInnerClassDecorators.Inject,x.AngularInnerClassDecorators.Optional,x.AngularInnerClassDecorators.Self,x.AngularInnerClassDecorators.SkipSelf])],[Nt.NgModule,new Set([x.AngularInnerClassDecorators.Host,x.AngularInnerClassDecorators.Inject,x.AngularInnerClassDecorators.Optional,x.AngularInnerClassDecorators.Self,x.AngularInnerClassDecorators.SkipSelf])],[Nt.Pipe,new Set([x.AngularInnerClassDecorators.Host,x.AngularInnerClassDecorators.Inject,x.AngularInnerClassDecorators.Optional,x.AngularInnerClassDecorators.Self,x.AngularInnerClassDecorators.SkipSelf])],[Nt.Service,new Set([x.AngularInnerClassDecorators.Host,x.AngularInnerClassDecorators.Inject,x.AngularInnerClassDecorators.Optional,x.AngularInnerClassDecorators.Self,x.AngularInnerClassDecorators.SkipSelf])]]);function p2(e,t=!1){let n;for(let{importKind:r,specifiers:s}of e){let i=(0,Hr.getLast)(s);!t&&r==="type"||JS(i)||(n=i)}return n}function zS(e,t){let n=e;for(;n=n.parent;)if(ey(n))return n.body.filter(r=>ry(r)&&r.source.value===t);return n}function h2(e,t){for(let n of e){let r=n.specifiers.find(s=>mh(s)&&(be.ASTUtils.isIdentifier(s.imported)&&s.imported.name===t||mc(s.imported)&&s.imported.value===t));if(r)return{importDeclaration:n,importSpecifier:r}}}function d2(e,t){return ph(e).find(n=>uh(n)===t)}function uh(e){return be.ASTUtils.isIdentifier(e)?e.name:be.ASTUtils.isIdentifier(e.property)?e.property.name:void 0}var f2=e=>(0,x.getDecorator)(e,"Pipe");x.getPipeDecorator=f2;function ph(e){return(e.implements??[]).map(({expression:t})=>t).filter(KS)}function GS(e){return ph(e).map(uh).filter(Hr.isNotNullOrUndefined)}var m2=e=>GS(e).filter(x.isAngularLifecycleInterface);x.getDeclaredAngularLifecycleInterfaces=m2;var g2=e=>(0,x.getDeclaredMethods)(e).map(x.getMethodName).filter(Hr.isNotNullOrUndefined).filter(x.isAngularLifecycleMethod);x.getDeclaredAngularLifecycleMethods=g2;function v2({parent:e},t){for(;e&&!ey(e);){if(t(e))return e;e=e.parent}return null}var E2=e=>{if(QS(e))return e.id?.name;if(e.parent)return(0,x.getClassName)(e.parent)};x.getClassName=E2;var S2=(e,t)=>e.decorators?.find(n=>(0,x.getDecoratorName)(n)===t);x.getDecorator=S2;var y2=({decorators:e})=>e?.map(x.getDecoratorName).filter(Hr.isNotNullOrUndefined).find(x.isAngularClassDecorator);x.getAngularClassDecorator=y2;var w2=({expression:e})=>{if(!hh(e)||e.arguments.length===0)return;let[t]=e.arguments;return ZS(t)&&t.properties?t:void 0};x.getDecoratorArgument=w2;var T2=({expression:e})=>be.ASTUtils.isIdentifier(e)?e.name:hh(e)&&be.ASTUtils.isIdentifier(e.callee)?e.callee.name:void 0;x.getDecoratorName=T2;x.ANGULAR_LIFECYCLE_INTERFACES=new Set(x.angularLifecycleInterfaceKeys);x.ANGULAR_LIFECYCLE_METHODS=new Set(x.angularLifecycleMethodKeys);var x2=e=>x.ANGULAR_LIFECYCLE_INTERFACES.has(e);x.isAngularLifecycleInterface=x2;var b2=e=>x.ANGULAR_LIFECYCLE_METHODS.has(e);x.isAngularLifecycleMethod=b2;var A2=e=>x.ANGULAR_CLASS_DECORATORS.has(e);x.isAngularClassDecorator=A2;var C2=e=>x.ANGULAR_INNER_CLASS_DECORATORS.has(e);x.isAngularInnerClassDecorator=C2;function _2({computed:e,key:t}){if(be.ASTUtils.isIdentifier(t)&&!e)return t.name;if(Ro(t))return t.raw;throw new Error(`Unexpected "PropertyDefinition.key.type" provided: ${t.type}`)}var N2=e=>(0,x.getDecoratorArgument)(e)?.properties.filter(fh)??[];x.getDecoratorProperties=N2;var I2=(e,t)=>(0,x.getDecoratorProperties)(e).find(({key:n})=>be.ASTUtils.isIdentifier(n)&&n.name===t);x.getDecoratorProperty=I2;var k2=(e,t)=>(0,x.getDecoratorProperty)(e,t)?.value;x.getDecoratorPropertyValue=k2;var P2=({body:{body:e}})=>e.filter(gc);x.getDeclaredMethods=P2;var L2=({computed:e,key:t})=>mc(t)?t.value:be.ASTUtils.isIdentifier(t)&&!e?t.name:void 0;x.getMethodName=L2;var D2=e=>e.slice(2);x.getLifecycleInterfaceByMethodName=D2;function O2(e,t){return!!zS(e,t)?.some(r=>r.specifiers.some(s=>mh(s)&&(be.ASTUtils.isIdentifier(s.imported)&&s.imported.name===e.name||mc(s.imported)&&s.imported.value===e.name)&&s.local.name===e.name))}function XS(e){if(be.ASTUtils.isIdentifier(e))return e.name;if(dh(e)||gc(e)||fh(e))return XS(e.key);if(Ro(e))return String(e.value);if(ty(e))return e.value.raw;if(ny(e))return e.quasis[0].value.raw;throw Error(`Unexpected \`node.type\` provided: ${e.type}`)}function R2(e,t){return Ro(e)?`'${t}'`:`\`${t}\``}function hh(e){return e.type===be.AST_NODE_TYPES.CallExpression}function YS(e){return e.type===be.AST_NODE_TYPES.MemberExpression}function KS(e){return be.ASTUtils.isIdentifier(e)||YS(e)}function QS(e){return e.type===be.AST_NODE_TYPES.ClassDeclaration}function dh(e){return e.type===be.AST_NODE_TYPES.PropertyDefinition}function B2(e){return dh(e)||gc(e)}function M2(e){return e.type===be.AST_NODE_TYPES.ImportDefaultSpecifier}function JS(e){return e.type===be.AST_NODE_TYPES.ImportNamespaceSpecifier}function ZS(e){return e.type===be.AST_NODE_TYPES.ObjectExpression}function F2(e){return e.type===be.AST_NODE_TYPES.ArrayExpression}function fh(e){return e.type===be.AST_NODE_TYPES.Property}function ey(e){return e.type===be.AST_NODE_TYPES.Program}function Ro(e){return e.type===be.AST_NODE_TYPES.Literal}function ty(e){return e.type===be.AST_NODE_TYPES.TemplateElement}function ny(e){return e.type===be.AST_NODE_TYPES.TemplateLiteral}function ry(e){return e.type===be.AST_NODE_TYPES.ImportDeclaration}function mh(e){return e.type===be.AST_NODE_TYPES.ImportSpecifier}function mc(e){return Ro(e)&&typeof e.value=="string"}function gc(e){return e.type===be.AST_NODE_TYPES.MethodDefinition}function $2(e){return e.type===be.AST_NODE_TYPES.Super}function U2(e){return e.type===be.AST_TOKEN_TYPES.Keyword&&e.value==="implements"}});var sy=C(Bo=>{"use strict";Object.defineProperty(Bo,"__esModule",{value:!0});Bo.extractPropertyComments=V2;Bo.buildSortedPropertiesWithComments=q2;Bo.getObjectIndentation=H2;function V2(e,t,n,r){let s=e.getAllComments(),i=new Set,a=new Map,o=new Map;for(let u of s){let p=e.getLocFromIndex(u.range[0]).line;o.has(p)||o.set(p,[]),o.get(p)?.push(u)}let c=(u,p)=>`${u}-${p}`;for(let u=0;u<t.length;u++){let p=t[u],h=p.key.name,f=p.range,v=[],E=u>0?t[u-1].range[1]:n.range[0]+1;for(let V of s){let q=c(V.range[0],V.range[1]);V.range[0]>E&&V.range[0]<f[0]&&!i.has(q)&&(v.push(r+e.getText(V)),i.add(q))}let T=e.getText(p).replace(/,\s*$/,""),y=[],N=e.getLocFromIndex(f[1]).line;if(o.has(N)){let V=o.get(N)||[];for(let q of V){let le=c(q.range[0],q.range[1]);if(q.range[0]>f[1]&&!i.has(le)){let Ht=e.getText().substring(f[1],q.range[0]).replace(/,/g,"");y.push(Ht+e.getText(q)),i.add(le)}}}a.set(h,{name:h,leadingComments:v,value:T,trailingComments:y})}return a}function q2(e,t,n){let r=[];for(let s=0;s<e.length;s++){let i=e[s],a=t.get(i);if(a){a.leadingComments.length>0&&r.push(...a.leadingComments);let o=s===e.length-1,c=n+a.value;o||(c+=","),a.trailingComments.length>0&&a.trailingComments.forEach(u=>{c+=u}),r.push(c)}}return r.join(`
4
4
  `)}function H2(e,t){let r=e.getText(t).split(`
5
5
  `);return r[1]&&r[1].match(/^\s*/)?.[0]||""}});var oy=C(pr=>{"use strict";Object.defineProperty(pr,"__esModule",{value:!0});pr.getImportAddFix=iy;pr.getImportRemoveFix=ay;pr.getImportReplaceFix=j2;pr.getImplementsSchemaFixer=W2;pr.getDecoratorPropertyAddFix=z2;pr.getImplementsRemoveFix=G2;pr.getNodeToCommaRemoveFix=Y2;var oa=fc(),gn=vc(),la=ko();function iy({compatibleWithTypeOnlyImport:e=!1,fixer:t,importName:n,moduleName:r,node:s}){let i=`import { ${n} } from '${r}';
@@ -89,7 +89,7 @@ ${s}
89
89
  However, there is an important exception: Using autofocus on elements within <dialog> elements (or on the dialog itself) is actually recommended for accessibility. According to MDN, the autofocus attribute should be added to the element the user is expected to interact with immediately upon opening a modal dialog. If no other element involves more immediate interaction, it is recommended to add autofocus to the close button inside the dialog, or the dialog itself. This rule automatically allows autofocus when used within dialog elements.`}});var _E=C(CE=>{"use strict";Object.defineProperty(CE,"__esModule",{value:!0});CE.isBoundEvent=yU;var SU=fe();function yU(e){return e instanceof SU.TmplAstBoundEvent}});var IE=C(NE=>{"use strict";Object.defineProperty(NE,"__esModule",{value:!0});NE.isASTWithName=wU;function wU(e){return!!e.name}});var mP=C(Cs=>{"use strict";Object.defineProperty(Cs,"__esModule",{value:!0});Cs.RULE_DOCS_EXTENSION=Cs.RULE_NAME=void 0;var TU=ie(),xU=ne(),bU=ho(),AU=_E(),kE=IE();Cs.RULE_NAME="no-call-expression";Cs.default=(0,xU.createESLintRule)({name:Cs.RULE_NAME,meta:{type:"suggestion",docs:{description:"Disallows calling expressions in templates, except for output handlers"},schema:[{additionalProperties:!1,properties:{allowList:{items:{type:"string"},type:"array",uniqueItems:!0},allowPrefix:{type:"string"},allowSuffix:{type:"string"}},type:"object"}],messages:{noCallExpression:"Avoid calling expressions in templates"},defaultOptions:[{allowList:[],allowPrefix:void 0,allowSuffix:void 0}]},create(e,[{allowList:t,allowPrefix:n,allowSuffix:r}]){(0,TU.ensureTemplateParser)(e);let s=e.sourceCode;return{'Call[receiver.name!="$any"]'(i){if(!!(0,bU.getNearestNodeFrom)(i,AU.isBoundEvent)||CU(i.receiver,t)||n&&(0,kE.isASTWithName)(i.receiver)&&i.receiver.name.startsWith(n)||r&&(0,kE.isASTWithName)(i.receiver)&&i.receiver.name.endsWith(r))return;let{sourceSpan:{start:o,end:c}}=i;e.report({loc:{start:s.getLocFromIndex(o),end:s.getLocFromIndex(c)},messageId:"noCallExpression"})}}}});function CU(e,t){return t&&t.length>0&&(0,kE.isASTWithName)(e)&&t.indexOf(e.name)>-1}Cs.RULE_DOCS_EXTENSION={rationale:'Calling functions or methods in Angular templates (like {{ formatDate(date) }} or *ngIf="isValid()") causes those functions to execute on every change detection cycle. In a typical application, change detection runs very frequently\u2014on every user interaction, HTTP request, or timer event. If a function is called in a template that renders a list of 100 items, it might execute 100 times per change detection cycle, potentially thousands of times per second. This can cause severe performance problems. Instead, use component properties, pipes (which cache results), or computed signals (in modern Angular). For example, instead of {{ formatDate(date) }}, use {{ date | date }} or create a computed signal or getter that calculates the value once per change detection cycle.'}});var EP=C(_s=>{"use strict";Object.defineProperty(_s,"__esModule",{value:!0});_s.RULE_DOCS_EXTENSION=_s.RULE_NAME=void 0;var _U=fe(),NU=ie(),IU=ne(),kU=ho(),PU=_E(),vP=IE(),gP=["toLowerCase","toUpperCase","toLocaleLowerCase","toLocaleUpperCase"];_s.RULE_NAME="prefer-built-in-pipes";_s.default=(0,IU.createESLintRule)({name:_s.RULE_NAME,meta:{type:"suggestion",docs:{description:"Encourages the use of Angular built-in pipes (e.g. lowercase, uppercase, titlecase) instead of certain JavaScript methods in Angular templates."},schema:[{additionalProperties:!1,properties:{disallowList:{items:{type:"string"},type:"array",uniqueItems:!0,description:"Additional method names to disallow (defaults include common case/title casing helpers)"},allowInOutputHandlers:{type:"boolean",description:"Whether to allow these method calls inside output event handlers"}},type:"object"}],messages:{preferBuiltInPipes:'Avoid using method "{{ methodName }}" in templates. Prefer the Angular built-in pipes instead (e.g. lowercase, uppercase, titlecase).'},defaultOptions:[{disallowList:[...gP],allowInOutputHandlers:!0}]},create(e,[{disallowList:t,allowInOutputHandlers:n}]){(0,NU.ensureTemplateParser)(e);let r=e.sourceCode,s=t||[...gP];return{Call(i){if(!LU(i.receiver,s)||n&&!!(0,kU.getNearestNodeFrom)(i,PU.isBoundEvent))return;let a=DU(i.receiver),{sourceSpan:{start:o,end:c}}=i.receiver;e.report({loc:{start:r.getLocFromIndex(o),end:r.getLocFromIndex(c)},messageId:"preferBuiltInPipes",data:{methodName:a}})}}}});function LU(e,t){return(0,vP.isASTWithName)(e)&&e instanceof _U.PropertyRead&&t.includes(e.name)}function DU(e){return(0,vP.isASTWithName)(e)?e.name:"unknown"}_s.RULE_DOCS_EXTENSION={rationale:"Angular provides built-in pipes for common string transformations (lowercase, uppercase, titlecase) that are more efficient than calling JavaScript methods directly in templates. Pipes are pure by default, meaning Angular only recalculates them when inputs change, whereas method calls in templates run on every change detection cycle. For example, {{ name.toLowerCase() }} runs toLowerCase() repeatedly during change detection, while {{ name | lowercase }} only transforms the string when name changes. Using pipes also makes templates more declarative and idiomatic. The rule can be configured to allow method calls in event handlers like (click) where purity is not a concern. By default, the rule flags toLowerCase, toUpperCase, toLocaleLowerCase, and toLocaleUpperCase, but can be extended to other methods."}});var SP=C(Ns=>{"use strict";Object.defineProperty(Ns,"__esModule",{value:!0});Ns.RULE_DOCS_EXTENSION=Ns.RULE_NAME=void 0;var OU=ie(),RU=ne();Ns.RULE_NAME="no-distracting-elements";Ns.default=(0,RU.createESLintRule)({name:Ns.RULE_NAME,meta:{type:"suggestion",docs:{description:"[Accessibility] Enforces that no distracting elements are used"},fixable:"code",schema:[],messages:{noDistractingElements:"Do not use <{{element}}> elements as they can create visual accessibility issues and are deprecated"},defaultOptions:[]},create(e){let t=(0,OU.getTemplateParserServices)(e);return{"Element[name=/^(blink|marquee)$/i]"({name:n,sourceSpan:r}){let s=t.convertNodeSourceSpanToLoc(r);e.report({loc:s,messageId:"noDistractingElements",data:{element:n},fix:i=>i.removeRange([r.start.offset,r.end.offset])})}}}});Ns.RULE_DOCS_EXTENSION={rationale:"Elements like <marquee> and <blink> create distracting motion that can cause problems for users with attention disorders, vestibular disorders, or seizure disorders. Moving text is harder to read for everyone, including users with dyslexia or cognitive disabilities. These elements are also deprecated in HTML5 and not well-supported across browsers. WCAG guidelines require that moving, blinking, or scrolling content can be paused, stopped, or hidden by users. Instead of these elements, use modern CSS animations with appropriate controls, or simply use static content that doesn't distract from the main page content."}});var yP=C(Is=>{"use strict";Object.defineProperty(Is,"__esModule",{value:!0});Is.RULE_DOCS_EXTENSION=Is.RULE_NAME=void 0;var BU=ie(),MU=ne(),yo=rc();Is.RULE_NAME="no-duplicate-attributes";var Np={allowTwoWayDataBinding:!0,allowStylePrecedenceDuplicates:!1,ignore:[]};Is.default=(0,MU.createESLintRule)({name:Is.RULE_NAME,meta:{type:"problem",docs:{description:"Ensures that there are no duplicate input properties or output event listeners"},hasSuggestions:!0,schema:[{type:"object",properties:{allowTwoWayDataBinding:{type:"boolean",default:Np.allowTwoWayDataBinding,description:"Whether or not two-way data binding is allowed as an exception to the rule."},allowStylePrecedenceDuplicates:{type:"boolean",default:Np.allowStylePrecedenceDuplicates,description:"Whether or not Angular style precedence is allowed as an exception to the rule. See https://angular.dev/guide/templates/class-binding#styling-precedence"},ignore:{type:"array",items:{type:"string"},uniqueItems:!0,default:Np.ignore,description:"Input or output properties for which duplicate presence is allowed as an exception to the rule."}},additionalProperties:!1}],messages:{noDuplicateAttributes:"Duplicate attribute `{{attributeName}}`",suggestRemoveAttribute:"Remove attribute `{{attributeName}}`"},defaultOptions:[Np]},create(e,[{allowTwoWayDataBinding:t,allowStylePrecedenceDuplicates:n,ignore:r}]){let s=(0,BU.getTemplateParserServices)(e);return{Element({inputs:i,outputs:a,attributes:o}){let c=["class","style"],u=So([...i,...o]);if(n){let E=i.filter(T=>c.includes((0,yo.getOriginalAttributeName)(T)));if(E?.length>0){let T=o.filter(le=>c.includes((0,yo.getOriginalAttributeName)(le))),y=i.filter(le=>!E.includes(le)),N=o.filter(le=>!T.includes(le)),V=[...So(E),...So(T)],q=[...So(y),...So(N)];u=[...V,...q]}}let p=t?a.filter(E=>!i.some(T=>T.sourceSpan.start===E.sourceSpan.start&&T.sourceSpan.end===E.sourceSpan.end)):a,h=So(p),f=[...u,...h];(r&&r.length>0?f.filter(E=>!r.includes((0,yo.getOriginalAttributeName)(E))):f).forEach(E=>{let T=s.convertNodeSourceSpanToLoc(E.sourceSpan),y={attributeName:(0,yo.getOriginalAttributeName)(E)};e.report({loc:T,messageId:"noDuplicateAttributes",data:y,suggest:[{messageId:"suggestRemoveAttribute",fix:N=>N.removeRange([T.start.column,T.end.column+1]),data:y}]})})}}}});function So(e){return e.filter(t=>e.some(n=>n!==t&&(0,yo.getOriginalAttributeName)(n)===(0,yo.getOriginalAttributeName)(t)))}Is.RULE_DOCS_EXTENSION={rationale:"Duplicate input properties or output event listeners on the same element create ambiguous behavior and are almost always a mistake. When the same input or output appears multiple times, Angular uses the last occurrence, silently ignoring earlier ones. This can lead to confusing bugs where it appears that a binding is set but it has no effect. Duplicate attributes can occur during refactoring or when combining multiple sources of bindings. The rule can be configured to allow certain patterns like two-way data binding (which creates both an input and output with related names) and Angular style precedence (where multiple style bindings are intentionally combined). Catching duplicates early prevents hard-to-debug issues where bindings mysteriously do not work."}});var wP=C(ks=>{"use strict";Object.defineProperty(ks,"__esModule",{value:!0});ks.RULE_DOCS_EXTENSION=ks.RULE_NAME=void 0;var FU=ie(),$U=ne();ks.RULE_NAME="no-empty-control-flow";ks.default=(0,$U.createESLintRule)({name:ks.RULE_NAME,meta:{type:"suggestion",docs:{description:"Ensures that control flow blocks are not empty. Empty control flow blocks usually occur due to refactoring that wasn't completed. They can cause confusion when reading code."},schema:[],messages:{noEmptyControlFlow:"Unexpected empty control flow block."},defaultOptions:[]},create(e){let t=(0,FU.getTemplateParserServices)(e);return{"ForLoopBlockEmpty,IfBlockBranch"(i){(i.children.length===0||n(i.startSourceSpan.end,i.endSourceSpan?.start))&&r(i)},ForLoopBlock(i){(i.children.length===0||n(i.startSourceSpan.end,i.mainBlockSpan.end.moveBy(-1)))&&r(i)},SwitchBlock(i){if(i.groups.length===0){r(i);return}for(let a of i.groups)(a.children.length===0||n(a.startSourceSpan.end,a.endSourceSpan?.start))&&a.cases.length>0&&s(a.cases[0])}};function n(i,a){return!!a&&e.sourceCode.text.slice(i.offset,a.offset).trim()===""}function r(i){e.report({messageId:"noEmptyControlFlow",loc:t.convertNodeSourceSpanToLoc(i.nameSpan)})}function s(i){e.report({messageId:"noEmptyControlFlow",loc:t.convertNodeSourceSpanToLoc(i.nameSpan)})}}});ks.RULE_DOCS_EXTENSION={rationale:"Empty control flow blocks (@if, @else, @for, @switch, @case, @empty) usually indicate incomplete refactoring or code that was commented out or deleted but left the block structure behind. These empty blocks add no functionality but create visual noise and confusion when reading templates. Developers may wonder whether the empty block is intentional or a bug. Removing empty blocks keeps templates clean and makes it clear that there is no conditional logic or looping in that location. This rule helps maintain template quality and catches likely mistakes during development."}});var TP=C(PE=>{"use strict";Object.defineProperty(PE,"__esModule",{value:!0});PE.isConstantExpression=hn;var qt=fe();function hn(e){return e instanceof qt.ASTWithSource?hn(e.ast):e instanceof qt.LiteralPrimitive||e instanceof qt.EmptyExpr?!0:e instanceof qt.LiteralMap?e.values.every(hn):e instanceof qt.LiteralArray||e instanceof qt.Interpolation||e instanceof qt.TemplateLiteral?e.expressions.every(hn):e instanceof qt.ParenthesizedExpression?hn(e.expression):e instanceof qt.Unary?hn(e.expr):e instanceof qt.Binary?hn(e.left)&&hn(e.right):e instanceof qt.Conditional?hn(e.condition)&&hn(e.trueExp)&&hn(e.falseExp):e instanceof qt.PrefixNot||e instanceof qt.TypeofExpression||e instanceof qt.VoidExpression||e instanceof qt.NonNullAssert?hn(e.expression):!1}});var xP=C(Ps=>{"use strict";Object.defineProperty(Ps,"__esModule",{value:!0});Ps.RULE_DOCS_EXTENSION=Ps.RULE_NAME=void 0;var LE=fe(),UU=ie(),VU=ne(),qU=TP(),DE={allowNgStyle:!1,allowBindToStyle:!1};Ps.RULE_NAME="no-inline-styles";Ps.default=(0,VU.createESLintRule)({name:Ps.RULE_NAME,meta:{type:"suggestion",docs:{description:"Disallows the use of inline styles in HTML templates"},schema:[{type:"object",properties:{allowNgStyle:{oneOf:[{type:"boolean"},{type:"string",enum:["dynamic"]}],description:"Whether `[ngStyle]` bindings are allowed. `true` allows them unconditionally. `\"dynamic\"` allows them only when the bound value is not a constant (e.g. `{ color: textColor }` is allowed, but `{ color: 'red' }` is reported because it could be a class).",default:DE.allowNgStyle},allowBindToStyle:{oneOf:[{type:"boolean"},{type:"string",enum:["dynamic"]}],description:'Whether `[style]`, `[style.property]` and `style="{{ }}"` bindings are allowed. `true` allows them unconditionally. `"dynamic"` allows them only when the bound value is not a constant (e.g. `[style.width.px]="column.width"` is allowed, but `[style.color]="\'red\'"` is reported because it could be a class).',default:DE.allowBindToStyle}},additionalProperties:!1}],messages:{noInlineStyles:"<{{element}}/> element should not have inline styles via style attribute. Please use classes instead."},defaultOptions:[DE]},create(e,[{allowNgStyle:t,allowBindToStyle:n}]){let r=(0,UU.getTemplateParserServices)(e);return{Element(s){let i=s.inputs.some(o=>{let{__originalType:c,type:u}=o;switch(c??u){case LE.BindingType.Attribute:return o.name==="style";case LE.BindingType.Style:return!OE(n,o.value);case LE.BindingType.Property:return o.name==="style"?!OE(n,o.value):o.name==="ngStyle"?!OE(t,o.value):!1;default:return!1}});if(s.attributes.some(({name:o})=>o==="style")||i){let o=r.convertElementSourceSpanToLoc(e,s);e.report({loc:o,messageId:"noInlineStyles",data:{element:s.name}})}}}}});function OE(e,t){return e==="dynamic"?!(0,qU.isConstantExpression)(t):e===!0}Ps.RULE_DOCS_EXTENSION={rationale:'Inline styles in templates (style attribute, ngStyle directive, [style] bindings, or [style.property] bindings) make it difficult to maintain consistent styling across an application and can violate Content Security Policy (CSP) restrictions. Styles should be defined in component stylesheets or CSS classes where they can be managed centrally, reused, cached by browsers, and easily modified. Inline styles also mix presentation concerns with template structure, making templates harder to read. Using CSS classes with [class] or [ngClass] bindings provides the same dynamic styling capabilities while keeping styles organized and maintainable. This rule can be configured to allow ngStyle or style bindings if needed for specific use cases. Setting an option to "dynamic" allows a binding only when its value cannot be known ahead of time (for example `[style.width.px]="column.width"`), while still reporting bindings whose value is a constant (for example `[style.color]="\'red\'"`), since those could be expressed as a class instead.'}});var bP=C(Ls=>{"use strict";Object.defineProperty(Ls,"__esModule",{value:!0});Ls.RULE_DOCS_EXTENSION=Ls.RULE_NAME=void 0;var HU=ne();Ls.RULE_NAME="no-interpolation-in-attributes";var jU='When `true`, only attribute values that are entirely interpolations will fail, whereas values with interpolations that form part of larger strings will be allowed.\n\nFor example, when set to `true` the following code will not fail for the `alt` attribute but will still fail for the `src` attribute:\n\n```html\n<img alt="Poke user {{ username }}" src="{{ pokeSrc }}" />\n```\n';Ls.default=(0,HU.createESLintRule)({name:Ls.RULE_NAME,meta:{type:"suggestion",docs:{description:"Ensures that property-binding is used instead of interpolation in attributes."},schema:[{type:"object",properties:{allowSubstringInterpolation:{type:"boolean",description:jU}},additionalProperties:!1}],messages:{noInterpolationInAttributes:'Use property binding [attribute]="value" instead of interpolation {{ value }} for an attribute.'},fixable:"code",defaultOptions:[{allowSubstringInterpolation:!1}]},create(e,[{allowSubstringInterpolation:t}]){let n=e.sourceCode;return{"BoundAttribute Interpolation"(r){let s=!r.strings.some(c=>c!=="");if(t&&!s)return;let i=r.parent?.parent;if(!i)return;let{sourceSpan:{start:a,end:o}}=r;e.report({loc:{start:n.getLocFromIndex(a),end:n.getLocFromIndex(o)},messageId:"noInterpolationInAttributes",fix:s?c=>{let u=i.keySpan.start.offset,p=i.keySpan.end.offset,h=n.text.slice(u,p).trim(),f=i.valueSpan.start.offset+2,v=i.valueSpan.end.offset-2,E=n.text.slice(f,v).trim(),T=i.sourceSpan.start.offset,y=i.sourceSpan.end.offset,N=`[${h}]="${E}"`;return c.replaceTextRange([T,y],N)}:null})}}}});Ls.RULE_DOCS_EXTENSION={rationale:'Property binding syntax [attribute]="value" is more efficient and clearer than interpolation {{ value }} for setting attribute values in templates. Interpolation converts the expression to a string and then Angular parses it back, whereas property binding directly passes the value without string conversion. This makes property binding faster and avoids potential issues with type coercion. Property binding also makes it immediately obvious that the attribute value is dynamic rather than static. For substring interpolation (like alt="Image of {{ name }}"), the performance difference is minimal and interpolation may be more readable, so the rule can optionally allow these cases while still catching full interpolation patterns that should use property binding.'}});var AP=C(Ds=>{"use strict";Object.defineProperty(Ds,"__esModule",{value:!0});Ds.RULE_DOCS_EXTENSION=Ds.RULE_NAME=void 0;var WU=fe(),zU=ie(),GU=ne();Ds.RULE_NAME="no-negated-async";Ds.default=(0,GU.createESLintRule)({name:Ds.RULE_NAME,meta:{type:"suggestion",docs:{description:"Ensures that async pipe results, as well as values used with the async pipe, are not negated",recommended:"recommended"},hasSuggestions:!0,schema:[],messages:{noNegatedAsync:"Async pipe results should not be negated. Use `(observable | async) === false`, `(observable | async) === null`, or `(observable | async) === undefined` to check its value instead",noNegatedValueForAsync:"Values used with the async pipe should not be negated.",suggestFalseComparison:"Compare with `false`",suggestNullComparison:"Compare with `null`",suggestUndefinedComparison:"Compare with `undefined`",suggestUsingNonNegatedValue:"Use non-negated value"},defaultOptions:[]},create(e){(0,zU.ensureTemplateParser)(e);let t=e.sourceCode;function n(r){let{start:s,end:i}=r.sourceSpan;e.report({messageId:"noNegatedAsync",loc:{start:t.getLocFromIndex(s),end:t.getLocFromIndex(i)},suggest:XU().map(({messageId:a,textToInsert:o})=>({messageId:a,fix:c=>[c.removeRange([s,s+1]),c.insertTextAfterRange([i,i],o)]}))})}return{'BindingPipe[name="async"]'(r){if(r.exp instanceof WU.PrefixNot){let s=r.sourceSpan.start,i=r.sourceSpan.end;e.report({messageId:"noNegatedValueForAsync",loc:{start:t.getLocFromIndex(s),end:t.getLocFromIndex(i)},suggest:[{messageId:"suggestUsingNonNegatedValue",fix:a=>a.removeRange([s,s+1])}]})}},':not(PrefixNot) > PrefixNot > BindingPipe[name="async"]'({parent:r}){n(r)},':not(PrefixNot) > PrefixNot > ParenthesizedExpression > BindingPipe[name="async"]'({parent:{parent:r}}){n(r)}}}});Ds.RULE_DOCS_EXTENSION={rationale:`Angular's async pipes emit null initially, prior to the observable emitting any values, or the promise resolving. This can cause negations, like *ngIf="!(myConditional | async)" to thrash the layout and cause expensive side-effects like firing off XHR requests for a component which should not be shown.`};function XU(){return[{messageId:"suggestFalseComparison",textToInsert:" === false"},{messageId:"suggestNullComparison",textToInsert:" === null"},{messageId:"suggestUndefinedComparison",textToInsert:" === undefined"}]}});var _P=C(Os=>{"use strict";Object.defineProperty(Os,"__esModule",{value:!0});Os.RULE_DOCS_EXTENSION=Os.RULE_NAME=void 0;var CP=fe(),YU=ie(),KU=ne();Os.RULE_NAME="no-nested-tags";Os.default=(0,KU.createESLintRule)({name:Os.RULE_NAME,meta:{type:"problem",docs:{description:"Denies nesting of `<p>` and `<a>` tags."},schema:[],messages:{noNestedTags:'<{{tag}}> elements must not be nested! This breaks angular incremental hydration as all browsers will convert "<{{tag}}>1<{{tag}}>2</{{tag}}>3</{{tag}}>" into "<{{tag}}>1</{{tag}}><{{tag}}>2</{{tag}}>3", creating a DOM mismatch between SSR and Angular'},defaultOptions:[]},create(e){let t=(0,YU.getTemplateParserServices)(e);return{"Element[name=/^(p|a)$/i]"(n){if(QU(n)){let s=t.convertElementSourceSpanToLoc(e,n);e.report({loc:s,messageId:"noNestedTags",data:{tag:n.name}})}}}}});function QU(e){let t=e.parent;for(;t;){if(JU(t))return!1;if(t instanceof CP.TmplAstElement&&t.name.toLowerCase()===e.name.toLowerCase())return!0;t=t.parent}return!1}function JU(e){return e instanceof CP.TmplAstTemplate&&typeof e.tagName=="string"&&/^(:svg:)?ng-template$/i.test(e.tagName)}Os.RULE_DOCS_EXTENSION={rationale:"Nesting `<p>` tags inside other `<p>` tags, or `<a>` tags inside other `<a>` tags, is invalid HTML and causes serious issues with Angular hydration. All browsers automatically close the outer tag when they encounter the inner tag, transforming `<p>1<p>2</p>3</p>` into `<p>1</p><p>2</p>3` in the DOM. This creates a mismatch between the server-rendered HTML and what Angular expects during hydration, breaking incremental hydration and potentially causing runtime errors. The browser's automatic correction of invalid HTML happens before Angular processes the template, so Angular cannot fix or work around it. Always use different elements (like `<p>` and `<span>`, or nested `<div>` tags) or restructure your template to avoid nesting these specific tags. Explicit `<ng-template>` elements are an exception because they are not rendered in-place; tags inside them are not nested in the parent element's DOM."}});var NP=C(Rs=>{"use strict";Object.defineProperty(Rs,"__esModule",{value:!0});Rs.RULE_DOCS_EXTENSION=Rs.RULE_NAME=void 0;var ZU=ie(),eV=ne();Rs.RULE_NAME="no-non-null-assertion";Rs.default=(0,eV.createESLintRule)({name:Rs.RULE_NAME,meta:{type:"suggestion",docs:{description:"Disallows the non-null assertion operator (!) in templates"},schema:[],messages:{noNonNullAssertion:"Avoid using the non-null assertion operator (!) in templates. This bypasses type safety and can lead to runtime errors."},defaultOptions:[]},create(e){(0,ZU.ensureTemplateParser)(e);let{sourceCode:t}=e;return{NonNullAssert(n){let{start:r,end:s}=n.sourceSpan;e.report({messageId:"noNonNullAssertion",loc:{start:t.getLocFromIndex(r),end:t.getLocFromIndex(s)}})}}}});Rs.RULE_DOCS_EXTENSION={rationale:"Equivalent of @typescript-eslint/no-non-null-assertion rule for Angular templates. TypeScript's `!` non-null assertion operator asserts to the type system that an expression is non-nullable, as in not `null` or `undefined`. Using assertions to tell the type system new information is often a sign that code is not fully type-safe. It's generally better to structure program logic so that TypeScript understands when values may be nullable."}});var IP=C(Bs=>{"use strict";Object.defineProperty(Bs,"__esModule",{value:!0});Bs.RULE_DOCS_EXTENSION=Bs.RULE_NAME=void 0;var tV=ie(),nV=ne(),rV=In(),sV=Ts();Bs.RULE_NAME="no-outerhtml";Bs.default=(0,nV.createESLintRule)({name:Bs.RULE_NAME,meta:{type:"problem",docs:{description:"Disallows using `outerHTML` on elements, which breaks change detection and detaches the element from the Angular view"},schema:[],messages:{noOuterHtml:'Do not use `outerHTML`. Binding to `[outerHTML]` throws on update because setting `outerHTML` replaces the host element itself, so Angular loses its reference to the node ("This element has no parent node"); a static `outerHTML` attribute is not a real DOM attribute and has no effect. Use `[innerHTML]` (being mindful of sanitization) or restructure the template instead.'},defaultOptions:[]},create(e){let t=(0,tV.getTemplateParserServices)(e);return{[`Element[name=${(0,sV.toPattern)([...(0,rV.getDomElements)()])}] > :matches(BoundAttribute, TextAttribute)`](r){r.name.toLowerCase()==="outerhtml"&&e.report({loc:t.convertNodeSourceSpanToLoc(r.keySpan??r.sourceSpan),messageId:"noOuterHtml"})}}}});Bs.RULE_DOCS_EXTENSION={rationale:"Setting an element's `outerHTML` replaces the element itself in the DOM, including the very node Angular is bound to. Angular keeps an internal reference to that node in order to apply future updates during change detection. Once the node has been swapped out, it no longer has a parent in the document, so the next attempt to write to `outerHTML` fails with `NoModificationAllowedError: Failed to set the 'outerHTML' property on 'Element': This element has no parent node`. The initial render appears to work, which makes the problem easy to miss until the bound value changes at runtime or in a test that calls `detectChanges()`.\n\nBecause this is inherent to how `outerHTML` works \u2014 not a fixable framework bug (see angular/angular#41131 and angular/angular#41576, both closed) \u2014 there is effectively no correct way to use `outerHTML` in an Angular template. A static `outerHTML=\"...\"` attribute is not a real DOM attribute either and simply has no effect, so this rule disallows every form of `outerHTML` on native elements (`[outerHTML]`, `bind-outerHTML`, `[attr.outerHTML]` and the static attribute). Bindings to `outerHTML` on components are left alone, since there they are ordinary inputs rather than the DOM property.\n\nIn almost all cases the intent is to render dynamic markup inside the element, which is exactly what `[innerHTML]` does safely (it only replaces the element's content and preserves the host node). Note that `[innerHTML]` runs Angular's built-in sanitization; when rendering untrusted content, sanitization concerns still apply. If the goal was actually to replace the element (tag, attributes and all), the component should be restructured \u2014 for example by conditionally rendering different elements with `@if`/`@switch` \u2014 rather than reaching for `outerHTML`."}});var kP=C(Ms=>{"use strict";Object.defineProperty(Ms,"__esModule",{value:!0});Ms.RULE_DOCS_EXTENSION=Ms.RULE_NAME=void 0;var iV=ie(),aV=ne(),oV=In(),lV=Ts();Ms.RULE_NAME="no-positive-tabindex";Ms.default=(0,aV.createESLintRule)({name:Ms.RULE_NAME,meta:{type:"suggestion",docs:{description:"Ensures that the `tabindex` attribute is not positive"},hasSuggestions:!0,schema:[],messages:{noPositiveTabindex:"The `tabindex` attribute should not be positive",suggestNonNegativeTabindex:'Use `tabindex="{{tabindex}}"`'},defaultOptions:[]},create(e){let t=(0,iV.getTemplateParserServices)(e),n=[...(0,oV.getDomElements)()],r=n.map(i=>i.toUpperCase());return{[`Element[name=${(0,lV.toPattern)([...n,...r])}] > BoundAttribute[name="tabindex"][value.ast.value>0], TextAttribute[name="tabindex"][value>0]`]({valueSpan:i}){let a=t.convertNodeSourceSpanToLoc(i);e.report({loc:a,messageId:"noPositiveTabindex",suggest:["-1","0"].map(o=>({messageId:"suggestNonNegativeTabindex",fix:c=>c.replaceTextRange([i.start.offset,i.end.offset],o),data:{tabindex:o}}))})}}}});Ms.RULE_DOCS_EXTENSION={rationale:'Using positive tabindex values (like tabindex="1" or tabindex="5") disrupts the natural tab order and creates a confusing navigation experience. The natural tab order follows the DOM structure, which users expect. Positive tabindex values create a complex focus order where lower numbers are focused first, then tabindex="0" elements, then remaining interactive elements. This makes the tab order unpredictable and hard to maintain. Users with motor disabilities who rely on keyboard navigation will struggle with illogical focus orders. Instead, use tabindex="0" to add elements to the natural tab order, tabindex="-1" to remove them, and structure your DOM in a logical order. This is a WCAG Level A requirement.'}});var LP=C(Fs=>{"use strict";Object.defineProperty(Fs,"__esModule",{value:!0});Fs.RULE_DOCS_EXTENSION=Fs.RULE_NAME=void 0;var lc=fe(),cV=ie(),uV=ne();Fs.RULE_NAME="prefer-ngsrc";Fs.default=(0,uV.createESLintRule)({name:Fs.RULE_NAME,meta:{type:"suggestion",docs:{description:"Ensures ngSrc is used instead of src for img elements"},hasSuggestions:!0,schema:[],messages:{missingAttribute:"The attribute [ngSrc] should be used for img elements instead of [src].",invalidDoubleSource:"Only [ngSrc] should exist on an img element. Delete the [src] attribute.",suggestReplaceWithNgSrc:"Replace [src] with [ngSrc]",suggestRemoveSrc:"Remove the [src] attribute"},defaultOptions:[]},create(e){let t=(0,cV.getTemplateParserServices)(e),n=e.sourceCode;function r(i){let a=t.convertNodeSourceSpanToLoc(i.sourceSpan);e.report({loc:a,messageId:"missingAttribute",suggest:[{messageId:"suggestReplaceWithNgSrc",fix:o=>{let c=n.getText().slice(i.sourceSpan.start.offset,i.sourceSpan.end.offset),u;return c.startsWith("[attr.src]")?u=c.replace(/^\[attr\.src]/,"[ngSrc]"):c.startsWith("[src]")?u=c.replace(/^\[src]/,"[ngSrc]"):u=c.replace(/^src/,"ngSrc"),o.replaceTextRange([i.sourceSpan.start.offset,i.sourceSpan.end.offset],u)}}]})}function s(i){let a=t.convertNodeSourceSpanToLoc(i.sourceSpan);e.report({loc:a,messageId:"invalidDoubleSource",suggest:[{messageId:"suggestRemoveSrc",fix:o=>{let c=n.getText(),u=i.sourceSpan.start.offset;for(;u>0&&/\s/.test(c[u-1]);)u--;return o.removeRange([u,i.sourceSpan.end.offset])}}]})}return{"Element[name=/^img$/i]"(i){let a=pV(i),o=hV(i);!o||!a&&dV(o)||(a?s(o):r(o))}}}});function pV({inputs:e,attributes:t}){return[...e,...t].find(({name:n})=>n==="ngSrc")}function hV({inputs:e,attributes:t}){return[...e,...t].find(({name:n})=>n==="src")}function dV(e){return e instanceof lc.TmplAstTextAttribute&&e.value.trim().startsWith("data:")||e.value instanceof lc.ASTWithSource&&PP(e.value.ast)?!0:e.value instanceof lc.ASTWithSource&&e.value.ast instanceof lc.Binary&&e.value.ast.operation==="+"&&PP(e.value.ast.left)}function PP(e){return e instanceof lc.LiteralPrimitive&&typeof e.value=="string"&&e.value.trim().startsWith("data:")}Fs.RULE_DOCS_EXTENSION={rationale:"The ngSrc directive (part of Angular's Image directive introduced in v15) provides significant performance and user experience benefits over the standard src attribute for images. Using ngSrc enables automatic lazy loading, responsive images with srcset generation, optimized loading priority hints, prevention of layout shift by enforcing width and height attributes, and automatic image optimization when using an image loader. These features dramatically improve Largest Contentful Paint (LCP) and other Core Web Vitals metrics. The directive also provides warnings for common mistakes like missing width/height. The rule allows data: URIs with src since those are inline base64 images that don't benefit from ngSrc optimizations. For best performance and user experience, all external images should use ngSrc."}});var Ip=C(RE=>{"use strict";Object.defineProperty(RE,"__esModule",{value:!0});RE.areEquivalentASTs=et;var ae=fe();function et(e,t){return e instanceof ae.ImplicitReceiver||e instanceof ae.ThisReceiver?t instanceof ae.ImplicitReceiver||t instanceof ae.ThisReceiver:e.constructor!==t.constructor?!1:e instanceof ae.PropertyRead&&t instanceof ae.PropertyRead||e instanceof ae.SafePropertyRead&&t instanceof ae.SafePropertyRead?e.name===t.name&&et(e.receiver,t.receiver):e instanceof ae.Call&&t instanceof ae.Call||e instanceof ae.SafeCall&&t instanceof ae.SafeCall?na(e.args,t.args)&&et(e.receiver,t.receiver):e instanceof ae.KeyedRead&&t instanceof ae.KeyedRead||e instanceof ae.SafeKeyedRead&&t instanceof ae.SafeKeyedRead?et(e.key,t.key)&&et(e.receiver,t.receiver):e instanceof ae.NonNullAssert&&t instanceof ae.NonNullAssert||e instanceof ae.PrefixNot&&t instanceof ae.PrefixNot?et(e.expression,t.expression):e instanceof ae.Unary&&t instanceof ae.Unary?e.operator===t.operator&&et(e.expr,t.expr):e instanceof ae.Binary&&t instanceof ae.Binary?e.operation===t.operation&&et(e.left,t.left)&&et(e.right,t.right):e instanceof ae.Conditional&&t instanceof ae.Conditional?et(e.condition,t.condition)&&et(e.trueExp,t.trueExp)&&et(e.falseExp,t.falseExp):e instanceof ae.LiteralPrimitive&&t instanceof ae.LiteralPrimitive?e.value===t.value:e instanceof ae.LiteralArray&&t instanceof ae.LiteralArray?na(e.expressions,t.expressions):e instanceof ae.LiteralMap&&t instanceof ae.LiteralMap?e.keys.length===t.keys.length&&e.keys.every((n,r)=>{let s=t.keys[r];return n.kind==="spread"&&s.kind==="spread"?!0:n.kind!==s.kind?!1:n.kind==="property"&&s.kind==="property"&&n.key===s.key})&&na(e.values,t.values):e instanceof ae.BindingPipe&&t instanceof ae.BindingPipe?e.name===t.name&&et(e.exp,t.exp)&&na(e.args,t.args):e instanceof ae.Interpolation&&t instanceof ae.Interpolation?e.strings.length===t.strings.length&&e.strings.every((n,r)=>n===t.strings[r])&&na(e.expressions,t.expressions):e instanceof ae.ASTWithSource&&t instanceof ae.ASTWithSource?et(e.ast,t.ast):e instanceof ae.Chain&&t instanceof ae.Chain?na(e.expressions,t.expressions):e instanceof ae.TypeofExpression&&t instanceof ae.TypeofExpression?et(e.expression,t.expression):!1}function na(e,t){return e.length===t.length&&e.every((n,r)=>et(n,t[r]))}});var BE=C(kp=>{"use strict";Object.defineProperty(kp,"__esModule",{value:!0});kp.isLengthRead=fV;kp.isZero=mV;var DP=fe();function fV(e){return e instanceof DP.PropertyRead&&e.name==="length"}function mV(e){return e instanceof DP.LiteralPrimitive&&e.value===0}});var ME=C(Pp=>{"use strict";Object.defineProperty(Pp,"__esModule",{value:!0});Pp.toRange=gV;Pp.toZeroLengthRange=vV;function gV(e){return[e.start.offset,e.end.offset]}function vV(e){return[e,e]}});var MP=C(Us=>{"use strict";Object.defineProperty(Us,"__esModule",{value:!0});Us.RULE_DOCS_EXTENSION=Us.RULE_NAME=void 0;var ra=fe(),EV=ie(),SV=ne(),OP=Ip(),$s=BE(),FE=ME();Us.RULE_NAME="prefer-at-else";var yV=new Map([["","!"],["!",""],["<",">="],[">","<="],["<=",">"],[">=","<"],["==","!="],["!=","=="],["===","!=="],["!==","==="]]);Us.default=(0,SV.createESLintRule)({name:Us.RULE_NAME,meta:{type:"suggestion",fixable:"code",docs:{description:"Prefer using `@else` instead of a second `@if` with the opposite condition to reduce code and make it easier to read."},schema:[],messages:{preferAtElse:"Prefer using `@else` instead of a second `@if` clause."},defaultOptions:[]},create(e){let t=(0,EV.getTemplateParserServices)(e),n=[void 0];function r(i){let a=0,o=!1;for(let c of i)c instanceof ra.TmplAstText&&e.sourceCode.text.slice(c.sourceSpan.start.offset,c.sourceSpan.end.offset).trim()===""||(a++,o||=c instanceof ra.TmplAstElement||c instanceof ra.TmplAstTemplate);return a>1&&o}function s(i,a){let o=i.node.branches[0],c=a.node.branches[0],u=a.node.branches.at(1),p=i.node.branches.at(1);return c.expressionAlias||p&&r([...p.children,...c.children])||u&&r([...o.children,...u.children])?null:function*(f){if(!p)yield f.replaceTextRange([c.sourceSpan.start.offset,c.startSourceSpan.end.offset],"@else {");else{let v=e.sourceCode.text.slice(c.startSourceSpan.end.offset,c.sourceSpan.end.offset-1);yield f.insertTextAfterRange((0,FE.toZeroLengthRange)(p.sourceSpan.end.offset-1),v),yield f.removeRange((0,FE.toRange)(c.sourceSpan))}if(u&&c.endSourceSpan){let v=e.sourceCode.text.slice(u.startSourceSpan.end.offset,u.sourceSpan.end.offset-1);yield f.insertTextAfterRange((0,FE.toZeroLengthRange)(o.sourceSpan.end.offset-1),v),yield f.removeRange([c.endSourceSpan.end.offset,u.sourceSpan.end.offset])}}}return{"*"(i){let a=wV(i);if(a){let o=n.at(-1);o&&TV(o,a)&&e.report({loc:t.convertNodeSourceSpanToLoc(a.node.nameSpan),messageId:"preferAtElse",fix:s(o,a)})}n[n.length-1]=a,n.push(void 0)},"*:exit"(){n.pop()}}}});function wV(e){if(e instanceof ra.TmplAstIfBlock&&e.branches.length>=1&&e.branches[0].expression instanceof ra.ASTWithSource&&e.branches.length<=2&&(e.branches.length==1||!e.branches[1].expression)){let t=e.branches[0].expression.ast;return t instanceof ra.Binary?{node:e,lhs:t.left,rhs:t.right,operator:t.operation}:t instanceof ra.PrefixNot?{node:e,lhs:t.expression,rhs:void 0,operator:"!"}:{node:e,lhs:t,rhs:void 0,operator:""}}}function TV(e,t){return!!(yV.get(e.operator)===t.operator&&(0,OP.areEquivalentASTs)(e.lhs,t.lhs)&&(e.rhs===void 0&&t.rhs===void 0||e.rhs&&t.rhs&&(0,OP.areEquivalentASTs)(e.rhs,t.rhs))||RP(e)&&BP(t)||BP(e)&&RP(t))}function RP(e){return!!(e.rhs!==void 0&&(e.operator==="=="||e.operator==="===")&&((0,$s.isLengthRead)(e.lhs)&&(0,$s.isZero)(e.rhs)||(0,$s.isZero)(e.lhs)&&(0,$s.isLengthRead)(e.rhs)))}function BP(e){return!!(e.rhs!==void 0&&((0,$s.isLengthRead)(e.lhs)&&e.operator===">"&&(0,$s.isZero)(e.rhs)||(0,$s.isZero)(e.lhs)&&e.operator==="<"&&(0,$s.isLengthRead)(e.rhs)))}Us.RULE_DOCS_EXTENSION={rationale:"When two consecutive @if blocks test opposite conditions (like @if (isLoggedIn) and @if (!isLoggedIn)), the second should be replaced with @else for clarity and maintainability. Using @else makes it immediately obvious that exactly one of the two branches will execute, whereas two separate @if statements require readers to mentally verify that the conditions are opposites. The @else pattern is more concise, eliminates duplication, and prevents bugs that could occur if the conditions drift out of sync during maintenance. This rule automatically detects opposite conditions including negation (!), comparison operators (<, >, ==, !=, etc.), and special cases like array.length === 0 versus array.length > 0."}});var FP=C(qs=>{"use strict";Object.defineProperty(qs,"__esModule",{value:!0});qs.RULE_DOCS_EXTENSION=qs.RULE_NAME=void 0;var Fr=fe(),xV=ie(),bV=ne(),Vs=Ip(),lr=BE(),_t=ME();qs.RULE_NAME="prefer-at-empty";qs.default=(0,bV.createESLintRule)({name:qs.RULE_NAME,meta:{type:"suggestion",fixable:"code",docs:{description:"Prefer using `@empty` with `@for` loops instead of a separate `@if` or `@else` block to reduce code and make it easier to read."},schema:[],messages:{preferAtEmpty:"Prefer using `@for (...) {...} @empty {...}`."},defaultOptions:[]},create(e){let t=(0,xV.getTemplateParserServices)(e),n=[void 0];function r(u){let p;for(let h of u.children)if(h instanceof Fr.TmplAstForLoopBlock){if(p)return;p=h}else if(h instanceof Fr.TmplAstText){if(e.sourceCode.text.slice(h.sourceSpan.start.offset,h.sourceSpan.end.offset).trim()!=="")return}else return;return p}function s(u,p){if(p?.kind==="if-empty"&&(0,Vs.areEquivalentASTs)(u.collection,p.collection)){let h=p.node.branches[0],f=h.endSourceSpan;e.report({loc:t.convertNodeSourceSpanToLoc(p.node.nameSpan),messageId:"preferAtEmpty",fix:f?function*(v){yield v.removeRange((0,_t.toRange)(p.node.sourceSpan)),u.node.empty?yield v.insertTextAfterRange([u.node.empty.nameSpan.end.offset,u.node.empty.startSourceSpan.end.offset],e.sourceCode.text.slice(h.startSourceSpan.end.offset,f.end.offset-1)):yield v.insertTextAfterRange((0,_t.toRange)(u.node.sourceSpan),` @empty {${e.sourceCode.text.slice(h.startSourceSpan.end.offset,f.end.offset)}`)}:void 0})}}function i(u,p){if(p)switch(p.kind){case"for":(0,Vs.areEquivalentASTs)(u.collection,p.collection)&&e.report({loc:t.convertNodeSourceSpanToLoc(u.node.nameSpan),messageId:"preferAtEmpty",fix:function*(h){p.node.empty?.endSourceSpan?(yield h.removeRange((0,_t.toRange)(p.node.empty.endSourceSpan)),yield h.removeRange((0,_t.toRange)(u.node.startSourceSpan))):yield h.replaceTextRange((0,_t.toRange)(u.node.startSourceSpan),"@empty {")}});break;case"if-not-empty":if((0,Vs.areEquivalentASTs)(u.collection,p.collection)){let h=r(p.node.branches[0]);if(h&&(0,Vs.areEquivalentASTs)(u.collection,h.expression.ast)){let f=p.node.endSourceSpan;e.report({loc:t.convertNodeSourceSpanToLoc(p.node.nameSpan),messageId:"preferAtEmpty",fix:f?v=>[v.removeRange((0,_t.toRange)(p.node.startSourceSpan)),v.removeRange((0,_t.toRange)(f)),v.insertTextAfterRange((0,_t.toRange)(h.sourceSpan),` @empty {${e.sourceCode.text.slice(u.node.startSourceSpan.end.offset,u.node.sourceSpan.end.offset)}`),v.removeRange((0,_t.toRange)(u.node.sourceSpan))]:void 0})}}}}function a(u){let p=r(u.node.branches[1]);if(p&&(0,Vs.areEquivalentASTs)(u.collection,p.expression.ast)){let h=u.node.branches[0].endSourceSpan;e.report({loc:t.convertNodeSourceSpanToLoc(u.node.nameSpan),messageId:"preferAtEmpty",fix:h?function*(f){yield f.removeRange([u.node.sourceSpan.start.offset,u.node.branches[1].startSourceSpan.end.offset]);let v=e.sourceCode.text.slice(u.node.startSourceSpan.end.offset,h.start.offset);p.empty?.endSourceSpan?(yield f.replaceTextRange([p.empty.startSourceSpan.end.offset,p.empty.endSourceSpan.start.offset],v),u.node.endSourceSpan&&(yield f.removeRange([u.node.endSourceSpan.start.offset,u.node.endSourceSpan.end.offset]))):yield f.insertTextAfterRange((0,_t.toRange)(p.sourceSpan),` @empty {${v}`)}:void 0})}}function o(u,p){if(p?.kind==="if-empty"&&(0,Vs.areEquivalentASTs)(u.collection,p.collection)){let h=r(u.node.branches[0]);h&&(0,Vs.areEquivalentASTs)(u.collection,h.expression.ast)&&e.report({loc:t.convertNodeSourceSpanToLoc(u.node.nameSpan),messageId:"preferAtEmpty",fix:f=>[f.removeRange((0,_t.toRange)(p.node.sourceSpan)),f.removeRange((0,_t.toRange)(u.node.startSourceSpan)),f.insertTextAfterRange((0,_t.toRange)(h.sourceSpan),` @empty {${e.sourceCode.text.slice(p.node.startSourceSpan.end.offset,p.node.sourceSpan.end.offset-1)}`)]})}}function c(u){let p=r(u.node.branches[0]);if(p&&(0,Vs.areEquivalentASTs)(u.collection,p.expression.ast)){let h=u.node.branches[0].endSourceSpan,f=u.node.endSourceSpan;e.report({loc:t.convertNodeSourceSpanToLoc(u.node.nameSpan),messageId:"preferAtEmpty",fix:h&&f?function*(v){p.empty&&(yield v.removeRange((0,_t.toRange)(p.empty.sourceSpan))),yield v.removeRange((0,_t.toRange)(u.node.startSourceSpan));let E=u.node.branches[1];E.expression?(yield v.replaceTextRange([h.end.offset-1,E.nameSpan.end.offset],"@empty { @if "),yield v.insertTextAfterRange((0,_t.toRange)(f),"}")):yield v.replaceTextRange([h.end.offset-1,E.startSourceSpan.end.offset],"@empty {")}:void 0})}}return{"*"(u){let p=AV(u);if(p!==void 0)switch(p.kind){case"for":s(p,n.at(-1));break;case"if-empty":i(p,n.at(-1));break;case"if-empty-else":a(p);break;case"if-not-empty":o(p,n.at(-1));break;case"if-not-empty-else":c(p);break}n[n.length-1]=p,n.push(void 0)},"*:exit"(){n.pop()}}}});function AV(e){if(e instanceof Fr.TmplAstForLoopBlock)return{node:e,kind:"for",collection:e.expression.ast};if(e instanceof Fr.TmplAstIfBlock){if(e.branches.length===0||!e.branches[0].expression)return;let t=CV(e.branches[0].expression);if(t)return{node:e,kind:e.branches.length===1?"if-not-empty":"if-not-empty-else",collection:t};if(t=_V(e.branches[0].expression),t){if(e.branches.length===1)return{node:e,kind:"if-empty",collection:t};if(e.branches.length===2&&!e.branches[1].expression)return{node:e,kind:"if-empty-else",collection:t}}}}function CV(e){if(e instanceof Fr.ASTWithSource&&(e=e.ast),(0,lr.isLengthRead)(e))return e.receiver;if(e instanceof Fr.Binary){if((0,lr.isLengthRead)(e.left)){if((e.operation==="!=="||e.operation===">"||e.operation==="!=")&&(0,lr.isZero)(e.right))return e.left.receiver}else if((0,lr.isZero)(e.left)&&(e.operation==="!=="||e.operation==="<"||e.operation==="!=")&&(0,lr.isLengthRead)(e.right))return e.right.receiver}}function _V(e){if(e instanceof Fr.ASTWithSource&&(e=e.ast),e instanceof Fr.PrefixNot){if((0,lr.isLengthRead)(e.expression))return e.expression.receiver}else if(e instanceof Fr.Binary){if((0,lr.isLengthRead)(e.left)){if((e.operation==="==="||e.operation==="==")&&(0,lr.isZero)(e.right))return e.left.receiver}else if((0,lr.isZero)(e.left)&&(e.operation==="==="||e.operation==="==")&&(0,lr.isLengthRead)(e.right))return e.right.receiver}}qs.RULE_DOCS_EXTENSION={rationale:"The @for loop has a built-in @empty block for displaying content when the collection is empty. Using this feature is clearer and more concise than separate @if blocks that check collection.length === 0 or collection.length > 0. When @if and @for blocks check the same collection, combining them with @empty eliminates duplication, reduces nesting, and makes the template intent immediately obvious. For example, @for (item of items) {...} @empty {No items} is more readable than @if (items.length > 0) { @for (item of items) {...} } @else {No items}. The @empty pattern is the idiomatic Angular way to handle empty collections and should be preferred wherever applicable."}});var UP=C(Hs=>{"use strict";Object.defineProperty(Hs,"__esModule",{value:!0});Hs.RULE_DOCS_EXTENSION=Hs.RULE_NAME=void 0;var $E=fe(),NV=ie(),IV=ne();Hs.RULE_NAME="prefer-class-binding";Hs.default=(0,IV.createESLintRule)({name:Hs.RULE_NAME,meta:{type:"suggestion",docs:{description:"Suggests using [class] bindings over ngClass where applicable"},schema:[],messages:{preferClassBinding:"Consider using [class] bindings instead of [ngClass] where applicable."},defaultOptions:[]},create(e){let t=(0,NV.getTemplateParserServices)(e);return{'BoundAttribute[name="ngClass"]'(n){if(LV(n))return;let r=t.convertNodeSourceSpanToLoc(n.sourceSpan);e.report({messageId:"preferClassBinding",loc:r})}}}});var $P=null;function kV(){return $P||($P=new $E.Parser(new $E.Lexer))}function PV(e){return/\s/.test(e.trim())}function LV(e){if(!e.value?.source||!e.valueSpan)return!1;let t=kV().parseBinding(e.value.source,e.valueSpan,0).ast;if(t instanceof $E.LiteralMap)for(let n of t.keys){if(n.kind==="spread")continue;let r=n.key;if(typeof r=="string"&&PV(r))return!0}return!1}Hs.RULE_DOCS_EXTENSION={rationale:"For simple cases, [class] bindings offer a more straightforward syntax with better performance than ngClass. However, ngClass should still be used when you need: (1) space-separated class names in a single key, or (2) mutations on objects, as class bindings do not support these use cases (the reference must change for class bindings to detect updates). See https://angular.dev/guide/templates/binding#css-class-and-style-property-bindings for more information. This rule helps identify potential simplification opportunities but should be applied judiciously based on your specific needs."}});var jP=C(js=>{"use strict";Object.defineProperty(js,"__esModule",{value:!0});js.RULE_DOCS_EXTENSION=js.RULE_NAME=void 0;var ia=fe(),DV=ie(),OV=Ip(),RV=ne(),qE=bp();js.RULE_NAME="prefer-contextual-for-variables";var BV={allowedAliases:{$count:[],$index:[],$first:[],$last:[],$even:[],$odd:[]}},cr=["===","=="],ur=["!==","!="],VP=["&&","||"];js.default=(0,RV.createESLintRule)({name:js.RULE_NAME,meta:{type:"suggestion",docs:{description:"Ensures that contextual variables are used in @for blocks where possible instead of aliasing them."},fixable:"code",schema:[{type:"object",properties:{allowedAliases:{type:"object",properties:{$count:{type:"array",items:{type:"string"},description:"Aliases for $count that are allowed to be used."},$index:{type:"array",items:{type:"string"},description:"Aliases for $index that are allowed to be used."},$first:{type:"array",items:{type:"string"},description:"Aliases for $first that are allowed to be used."},$last:{type:"array",items:{type:"string"},description:"Aliases for $last that are allowed to be used."},$even:{type:"array",items:{type:"string"},description:"Aliases for $even that are allowed to be used."},$odd:{type:"array",items:{type:"string"},description:"Aliases for $odd that are allowed to be used."}},additionalProperties:!1}},additionalProperties:!1}],messages:{preferContextualVariable:"Use the '{{name}}' contextual variable instead of aliasing it.",preferCount:"Use '$count' instead of '{{ expression }}'.",preferFirst:"Use '$first' instead of '{{ expression }}'.",preferLast:"Use '$last' instead of '{{ expression }}'.",preferEven:"Use '$even' instead of '{{ expression }}'.",preferOdd:"Use '$odd' instead of '{{ expression }}'."},defaultOptions:[BV]},create(e,[{allowedAliases:t}]){let n=(0,DV.getTemplateParserServices)(e),r=[];function s(i,a){let o=a.simplifications?.[i];if(!o)return;let c=e.sourceCode;for(let u of o)e.report({messageId:i,loc:{start:c.getLocFromIndex(u.range[0]),end:c.getLocFromIndex(u.range[1])},data:{expression:e.sourceCode.text.slice(u.range[0],u.range[1])},fix:p=>p.replaceTextRange(u.range,u.replacement)})}return{ForLoopBlock(i){let a=r.length>0;a&&(r[r.length-1].canAlias=!0);let o=i.contextVariables.filter(c=>c.valueSpan);r.push({canAlias:a,source:i.expression.ast,variables:o,references:o.length>0?new Map(o.map(c=>[c.name,[]])):void 0})},"ForLoopBlock:exit"(){let i=r.pop();if(i){if(!i.canAlias){let a=[];for(let[o,c]of i.variables.entries()){let u=MV(t,c.value);(u===void 0||!u.includes(c.name))&&a.push({index:o,variable:c,loc:n.convertNodeSourceSpanToLoc(c.sourceSpan)})}for(let o of a)e.report({messageId:"preferContextualVariable",loc:o.loc,data:{name:o.variable.value},fix:function*(c){yield c.removeRange(FV(o,e.sourceCode,i.variables.length));let u=i.references?.get(o.variable.name);if(u)for(let p of u)yield c.replaceTextRange(p,o.variable.value)}})}i.simplifications&&(s("preferCount",i),s("preferFirst",i),s("preferLast",i),s("preferEven",i),s("preferOdd",i))}},PropertyRead(i){let a=r.at(-1);a&&(a.references?.get(i.name)?.push([i.sourceSpan.start,i.sourceSpan.end]),i.name==="length"&&(0,OV.areEquivalentASTs)(i.receiver,a.source)&&Ie(i,a,"preferCount","$count"))},Binary(i){let a=r.at(-1);a&&(wo(i.left)?VE(i.right)?cr.includes(i.operation)?Ie(i,a,"preferFirst","$first"):(ur.includes(i.operation)||i.operation===">")&&Ie(i,a,"preferFirst","!$first"):HP(i.right)&&(cr.includes(i.operation)?Ie(i,a,"preferLast","$last"):(ur.includes(i.operation)||i.operation==="<")&&Ie(i,a,"preferLast","!$last")):VE(i.left)?wo(i.right)?cr.includes(i.operation)?Ie(i,a,"preferFirst","$first"):(ur.includes(i.operation)||i.operation==="<")&&Ie(i,a,"preferFirst","!$first"):sa(i.right)&&(cr.includes(i.operation)?Ie(i,a,"preferEven","$even"):(ur.includes(i.operation)||i.operation==="<")&&Ie(i,a,"preferOdd","$odd")):To(i.left)?sa(i.right)&&(cr.includes(i.operation)?Ie(i,a,"preferOdd","$odd"):(ur.includes(i.operation)||i.operation===">")&&Ie(i,a,"preferEven","$even")):Lp(i.left)?qP(i.right)&&(cr.includes(i.operation)?Ie(i,a,"preferLast","$last"):(ur.includes(i.operation)||i.operation===">")&&Ie(i,a,"preferLast","!$last")):qP(i.left)?Lp(i.right)&&(cr.includes(i.operation)?Ie(i,a,"preferLast","$last"):(ur.includes(i.operation)||i.operation==="<")&&Ie(i,a,"preferLast","!$last")):HP(i.left)?wo(i.right)&&(cr.includes(i.operation)?Ie(i,a,"preferLast","$last"):(ur.includes(i.operation)||i.operation===">")&&Ie(i,a,"preferLast","!$last")):sa(i.left)&&(VE(i.right)?cr.includes(i.operation)?Ie(i,a,"preferEven","$even"):(ur.includes(i.operation)||i.operation===">")&&Ie(i,a,"preferOdd","$odd"):To(i.right)?cr.includes(i.operation)?Ie(i,a,"preferOdd","$odd"):(ur.includes(i.operation)||i.operation==="<")&&Ie(i,a,"preferEven","$even"):VP.includes(i.operation)&&Ie(i.left,a,"preferOdd","$odd")),sa(i.right)&&VP.includes(i.operation)&&Ie(i.right,a,"preferOdd","$odd"))},PrefixNot(i){let a=r.at(-1);a&&(HV(i.expression)||sa(i.expression)?Ie(i,a,"preferEven","$even"):qV(i.expression)&&Ie(i,a,"preferOdd","$odd"))},Conditional(i){let a=r.at(-1);a&&sa(i.condition)&&Ie(i.condition,a,"preferOdd","$odd")},IfBlockBranch(i){let a=r.at(-1);if(a&&i.expression){let o=i.expression;o instanceof ia.ASTWithSource&&(o=o.ast),sa(o)&&Ie(o,a,"preferOdd","$odd")}}}}});function MV(e,t){if(e&&t in e)return e[t]}function FV(e,t,n){let r=e.variable.sourceSpan.start.offset,s=e.variable.sourceSpan.end.offset,i=UE("let",r,t),a=i!==void 0&&$V(i,r,s,t);if(n===1||a)i!==void 0&&(r=UE(";",i,t)??i);else if(e.index===0){let o=UV(",",s,t);o!==void 0&&(s=VV(o+1,t))}else r=UE(",",r,t)??r;return[r,s]}function $V(e,t,n,r){let s=r.text;if(s.slice(e+3,t).includes(","))return!1;let a=n;for(;a<s.length&&/\s/.test(s[a]);)a++;return s[a]!==","}function UE(e,t,n){let r=n.text;for(let s=t-e.length;s>=0;s--)if(r.slice(s,s+e.length)===e)return s}function UV(e,t,n){let r=n.text;for(let s=t;s<r.length;s++)if(r.slice(s,s+e.length)===e)return s}function VV(e,t){let n=t.text,r=e;for(;r<n.length;){if(!/\s/.test(n.at(r)))return r;r++}return n.length}function Ie(e,t,n,r){t.simplifications||(t.simplifications={});let s=t.simplifications[n];s||(s=[],t.simplifications[n]=s),s.push({range:[e.sourceSpan.start,e.sourceSpan.end],replacement:r})}function wo(e){return Dp(e,"$index")}function qP(e){let t=(0,qE.unwrapParenthesizedExpression)(e);return t instanceof ia.Binary&&t.operation==="+"?wo(t.left)?To(t.right):wo(t.right)&&To(t.left):!1}function sa(e){let t=(0,qE.unwrapParenthesizedExpression)(e);return t instanceof ia.Binary&&t.operation==="%"&&wo(t.left)&&jV(t.right)}function Lp(e){return Dp(e,"$count")}function HP(e){let t=(0,qE.unwrapParenthesizedExpression)(e);return t instanceof ia.Binary&&t.operation==="-"?Lp(t.left)?To(t.right):Lp(t.right)&&To(t.left):!1}function qV(e){return Dp(e,"$even")}function HV(e){return Dp(e,"$odd")}function Dp(e,t){return e instanceof ia.PropertyRead&&e.name===t&&e.receiver.constructor===ia.ImplicitReceiver}function VE(e){return HE(e,0)}function To(e){return HE(e,1)}function jV(e){return HE(e,2)}function HE(e,t){return e instanceof ia.LiteralPrimitive&&e.value===t}js.RULE_DOCS_EXTENSION={rationale:`Angular's @for loop provides built-in contextual variables ($index, $count, $first, $last, $even, $odd) that are more efficient and clearer than manual calculations. Using these variables eliminates redundant logic like @for (item of items; let i = $index) { @if (i === 0) } when $first would suffice. The built-in variables are optimized by Angular and make template intent explicit. For example, $first immediately communicates "first item in the loop" whereas i === 0 requires mental translation. Similarly, using $even/$odd is clearer than i % 2 === 0 for alternating row styling. The rule can be configured to allow specific custom alias names if your team has established naming conventions, but by default encourages using Angular's standard contextual variables for consistency across the ecosystem.`}});var WP=C(Ws=>{"use strict";Object.defineProperty(Ws,"__esModule",{value:!0});Ws.RULE_DOCS_EXTENSION=Ws.RULE_NAME=void 0;var WV=ie(),zV=ne();Ws.RULE_NAME="prefer-control-flow";Ws.default=(0,zV.createESLintRule)({name:Ws.RULE_NAME,meta:{type:"suggestion",docs:{description:"Ensures that the built-in control flow is used.",recommended:"recommended"},schema:[],messages:{preferControlFlow:"Use built-in control flow instead of directive {{name}}."},defaultOptions:[]},create(e){let t=(0,WV.getTemplateParserServices)(e);return{"BoundAttribute[name=/^(ngForOf|ngIf|ngSwitch)$/]"({sourceSpan:n,name:r}){let s=t.convertNodeSourceSpanToLoc(n);e.report({messageId:"preferControlFlow",loc:s,data:{name:r}})}}}});Ws.RULE_DOCS_EXTENSION={rationale:"Angular v17 introduced built-in control flow (@if, @for, @switch) as a replacement for the structural directives (*ngIf, *ngFor, *ngSwitch). The new syntax is more readable, performant, and type-safe. Built-in control flow has better syntax highlighting in editors, clearer nesting behavior, built-in features like @empty for loops and @else for conditionals, and improved tree-shaking. The new syntax also enables better compile-time optimizations and runtime performance. While the old structural directives remain supported for backward compatibility, new code should use the modern built-in control flow. Teams migrating to v17+ are encouraged to adopt this syntax for consistency and to benefit from ongoing performance improvements."}});var GP=C(zs=>{"use strict";Object.defineProperty(zs,"__esModule",{value:!0});zs.RULE_DOCS_EXTENSION=zs.RULE_NAME=void 0;var GV=fe(),XV=ie(),YV=ne(),KV=In();zs.RULE_NAME="prefer-self-closing-tags";zs.default=(0,YV.createESLintRule)({name:zs.RULE_NAME,meta:{type:"layout",docs:{description:"Ensures that self-closing tags are used for elements with a closing tag but no content."},fixable:"code",schema:[],messages:{preferSelfClosingTags:"Use self-closing tags for elements with a closing tag but no content."},defaultOptions:[]},create(e){let t=(0,XV.getTemplateParserServices)(e);if(/(^|[\\/])index\.html$/.test(e.physicalFilename))return{};return{"Element, Template, Content"(s){if(JV(s))r(s);else{if("name"in s&&QV(s.name))return;n(s)}}};function n(s){let{children:i,startSourceSpan:a,endSourceSpan:o}=s;if(!o||a.start.offset===o.start.offset&&a.end.offset===o.end.offset)return;let c=i.some(f=>!(f instanceof GV.TmplAstText)||e.sourceCode.text.slice(f.sourceSpan.start.offset,f.sourceSpan.end.offset).trim()!=="");if(e.sourceCode.text.slice(a.end.offset,o.start.offset).trim()!==""||c)return;let p=a.toString().at(-2),h=zP(p);e.report({loc:t.convertNodeSourceSpanToLoc(o),messageId:"preferSelfClosingTags",fix:f=>f.replaceTextRange([a.end.offset-1,o.end.offset],h+"/>")})}function r(s){let{sourceSpan:i}=s,a="</ng-content>",o=i.toString();if(o.endsWith(a)){let c=ZV(o);if(c<o.length-a.length&&o.slice(c,-a.length).trim().length>0)return;let u=o.at(c-2),p=zP(u);e.report({loc:{start:{line:i.end.line+1,column:i.end.col-a.length},end:{line:i.end.line+1,column:i.end.col}},messageId:"preferSelfClosingTags",fix:h=>h.replaceTextRange([i.start.offset+c-1,i.end.offset],p+"/>")})}}}});function QV(e){let t=e.toLowerCase();return t.startsWith(":svg:")||t.startsWith(":math:")||(0,KV.getDomElements)().has(t)}function JV(e){return"name"in e&&e.name.toLowerCase()==="ng-content"}function ZV(e){let t;for(let n=11;n<e.length;n++){let r=e.at(n);if(t!==void 0)t===r&&(t=void 0);else switch(r){case">":return n+1;case'"':case"'":t=r;break}}return e.length}function zP(e){return e.trim()===""?"":" "}zs.RULE_DOCS_EXTENSION={rationale:"Self-closing tags like <app-component /> are more concise and eliminate visual clutter when elements have no content. This pattern is familiar from HTML void elements (like <img /> and <br />) and from JSX/React. Using self-closing syntax makes it immediately obvious that an element is empty, whereas <app-component></app-component> requires scanning to the closing tag to confirm there is no content. The shorter syntax also reduces the chance of accidentally nesting content where none was intended. Angular v15.1+ supports self-closing tags for components and structural elements. The rule automatically skips native HTML elements (div, span, etc.) and index.html files since browser support varies. For Angular components and directives, self-closing tags improve template readability."}});var YP=C(Gs=>{"use strict";Object.defineProperty(Gs,"__esModule",{value:!0});Gs.RULE_DOCS_EXTENSION=Gs.RULE_NAME=void 0;var XP=fe(),eq=ie(),tq=ne(),nq=["innerHTML","innerText","outerHTML","textContent"];Gs.RULE_NAME="prefer-static-string-properties";Gs.default=(0,tq.createESLintRule)({name:Gs.RULE_NAME,meta:{type:"layout",docs:{description:"Ensures that static string values use property assignment instead of property binding."},fixable:"code",schema:[{type:"object",properties:{ignore:{type:"array",items:{type:"string"},description:"An array of property names that should be ignored by this rule",uniqueItems:!0}},additionalProperties:!1}],messages:{preferStaticStringProperties:"Using a property is more efficient than binding a static string."},defaultOptions:[{}]},create(e,[{ignore:t=[]}]){let n=(0,eq.getTemplateParserServices)(e),r=new Set([...nq,...t]);return{"BoundAttribute.inputs"({name:s,sourceSpan:i,keySpan:a,value:o}){let c=a?.details&&!a.details.includes("@")&&!a.details.includes(".");if(!r.has(s)&&c&&o instanceof XP.ASTWithSource&&o.ast instanceof XP.LiteralPrimitive&&typeof o.ast.value=="string"){let u=o.source?.trimStart().at(0)==='"'?"'":'"',p=o.ast.value.replaceAll("&","&amp;").replaceAll(u,u==='"'?"&quot;":"&#39;");e.report({loc:n.convertNodeSourceSpanToLoc(i),messageId:"preferStaticStringProperties",fix:h=>h.replaceTextRange([i.start.offset,i.end.offset],`${s}=${u}${p}${u}`)})}}}}});Gs.RULE_DOCS_EXTENSION={rationale:`When binding a static string literal to a property, using attribute syntax (property="value") is more efficient and simpler than property binding syntax ([property]="'value'"). Property binding with a static string creates unnecessary overhead because Angular evaluates it as an expression during change detection, even though the value never changes. Attribute syntax makes it immediately clear that the value is static and will never be updated. For example, [alt]="'Profile image'" should be alt="Profile image". This rule helps identify performance opportunities and makes templates more readable by distinguishing truly dynamic bindings from static values. The rule excludes animation bindings (@xxx), style/class sub-properties (style.color), and structural directives (*ngIf) where property binding syntax is required.
90
90
 
91
91
  The rule automatically excludes certain property-only DOM APIs (innerHTML, innerText, outerHTML, textContent) because these properties behave differently than their attribute counterparts. For example, textContent as a property does not HTML-encode its value, while textContent as an attribute does. Converting [textContent]="'<I>'" to textContent="<I>" would change the behavior and potentially break functionality. You can also configure additional properties to ignore using the ignore option.`}});var KP=C(Xs=>{"use strict";Object.defineProperty(Xs,"__esModule",{value:!0});Xs.RULE_DOCS_EXTENSION=Xs.RULE_NAME=void 0;var rq=ie(),sq=ne();Xs.RULE_NAME="prefer-style-binding";Xs.default=(0,sq.createESLintRule)({name:Xs.RULE_NAME,meta:{type:"suggestion",docs:{description:"Suggests using [style] bindings over ngStyle where applicable"},schema:[],messages:{preferStyleBinding:"Consider using [style] or [style.property] bindings instead of [ngStyle] where applicable."},defaultOptions:[]},create(e){let t=(0,rq.getTemplateParserServices)(e);return{'BoundAttribute[name="ngStyle"]'(n){let r=t.convertNodeSourceSpanToLoc(n.sourceSpan);e.report({messageId:"preferStyleBinding",loc:r})}}}});Xs.RULE_DOCS_EXTENSION={rationale:'For simple cases, [style] and [style.property] bindings offer a more straightforward syntax with better performance than ngStyle, and the Angular style guide recommends them over the NgStyle directive. However, ngStyle should still be used when you need mutations on objects, as style bindings compare the bound object by reference and only apply updates when a new object instance is provided. Note that ngStyle also accepts unit suffixes on object keys (for example `{ "max-width.px": width }`), which [style] object bindings do not support; express these as [style.max-width.px] bindings instead. See https://angular.dev/style-guide#prefer-class-and-style-over-ngclass-and-ngstyle and https://angular.dev/guide/templates/binding#css-class-and-style-property-bindings for more information. This rule helps identify potential simplification opportunities but should be applied judiciously based on your specific needs.'}});var ZP=C(Ys=>{"use strict";Object.defineProperty(Ys,"__esModule",{value:!0});Ys.RULE_DOCS_EXTENSION=Ys.RULE_NAME=void 0;var xo=fe(),iq=ie(),aq=ne(),QP=vE(),JP=bp(),oq="preferTemplateLiteral";Ys.RULE_NAME="prefer-template-literal";function lq(e){if(!("parent"in e))return!1;let t=e.parent;return t instanceof xo.Binary&&t.operation==="+"}function Op(e){let t=(0,JP.unwrapParenthesizedExpression)(e);return(0,QP.isStringLiteralPrimitive)(t)||t instanceof xo.TemplateLiteral?!0:t instanceof xo.Binary&&t.operation==="+"?Op(t.left)||Op(t.right):!1}function jE(e){let t=(0,JP.unwrapParenthesizedExpression)(e);if(t instanceof xo.Binary&&t.operation==="+"&&Op(t))return[...jE(t.left),...jE(t.right)];if(t instanceof xo.TemplateLiteral){let n=[];for(let r=0;r<t.elements.length;r++)t.elements[r].text&&n.push({type:"literal",value:t.elements[r].text}),r<t.expressions.length&&n.push({type:"expression",node:t.expressions[r]});return n}return(0,QP.isLiteralPrimitive)(t)?[{type:"literal",value:typeof t.value=="string"?t.value:String(t.value)}]:[{type:"expression",node:t}]}Ys.default=(0,aq.createESLintRule)({name:Ys.RULE_NAME,meta:{type:"suggestion",docs:{description:"Ensure that template literals are used instead of concatenating strings or expressions."},fixable:"code",schema:[],messages:{preferTemplateLiteral:"Prefer using template literal instead of concatenating strings or expressions"},defaultOptions:[]},create(e){if(/inline-template-[^/\\]+-\d+\.component\.html$/.test(e.filename))return{};(0,iq.ensureTemplateParser)(e);let{sourceCode:t}=e;return{'Binary[operation="+"]'(n){if(lq(n)||!Op(n))return;let{sourceSpan:{start:r,end:s}}=n,i="parent"in n&&n.parent instanceof xo.TemplateLiteral,a=jE(n),o=a.every(u=>u.type==="literal");function c(){if(i)return"";if(!o)return"`";let u=t.text.slice(r,s);for(let p of u){if(p==="'"||p==='"')return p;if(p==="`")return"`"}return"'"}e.report({loc:{start:t.getLocFromIndex(r),end:t.getLocFromIndex(s)},messageId:oq,fix:u=>{let p=c(),h=Array();if(i){let E=t.text.lastIndexOf("${",n.sourceSpan.start);h.push(u.removeRange([E,n.sourceSpan.start]))}let f=p===""?"`":p,v="";for(let E of a)if(E.type==="literal")v+=E.value.replaceAll(f,`\\${f}`);else{let T=t.text.slice(E.node.sourceSpan.start,E.node.sourceSpan.end);v+=`\${${T}}`}if(i||(v=`${p}${v}${p}`),h.push(u.replaceTextRange([r,s],v)),i){let E=t.text.indexOf("}",n.sourceSpan.end);h.push(u.removeRange([n.sourceSpan.end,E+1]))}return h}})}}}});Ys.RULE_DOCS_EXTENSION={rationale:'Template literals (backticks with ${} syntax) are more modern, readable, and maintainable than string concatenation with the + operator. String concatenation like "Hello " + name + "!" is harder to read and error-prone (easy to forget spaces or quotes) compared to the template literal `Hello ${name}!`. Template literals make string composition clearer, especially with multiple expressions. This is a widely accepted JavaScript/TypeScript best practice that should be followed in Angular templates for consistency. Angular templates have supported template literal syntax since v19.2. Using template literals throughout your codebase creates a consistent style and makes complex string building much more readable.\n\n\u2139 This rule is not checked in inline templates due to the common use of backticks to define the inline template.'}});var eL=C(Ks=>{"use strict";Object.defineProperty(Ks,"__esModule",{value:!0});Ks.RULE_DOCS_EXTENSION=Ks.RULE_NAME=void 0;var cq=ie(),uq=ne();Ks.RULE_NAME="require-switch-default";Ks.default=(0,uq.createESLintRule)({name:Ks.RULE_NAME,meta:{type:"suggestion",docs:{description:"Requires a `@default` block on every `@switch` to ensure all cases are handled. This is the template equivalent of the `@typescript-eslint/switch-exhaustiveness-check` rule."},schema:[],messages:{requireSwitchDefault:"Switch should have a default block. Add `@default { ... }`, or `@default never` to enforce a compile-time exhaustive switch."},defaultOptions:[]},create(e){let t=(0,cq.getTemplateParserServices)(e);return{SwitchBlock({exhaustiveCheck:n,groups:r,nameSpan:s}){n||r.some(({cases:a})=>a.some(({expression:o})=>o===null))||e.report({loc:t.convertNodeSourceSpanToLoc(s),messageId:"requireSwitchDefault"})}}}});Ks.RULE_DOCS_EXTENSION={rationale:"A `@switch` without a `@default` silently renders nothing when the value matches none of the `@case` branches, which is rarely intended and easy to miss. Because Angular templates are not type-checked the way TypeScript code is, the linter cannot determine whether the listed cases are exhaustive over a union or enum. Requiring an explicit `@default` block ensures unhandled values are always accounted for. For genuine compile-time exhaustiveness over a union or enum, use Angular's `@default never` form, which fails the template type-check if any case is missing."}});var tL=C(zE=>{"use strict";Object.defineProperty(zE,"__esModule",{value:!0});zE.isSemanticRoleElement=pq;var Rp=null,WE=null;function pq(e,t,n){if(Rp===null||WE===null){let{AXObjectRoles:r,elementAXObjects:s}=JE();Rp=s,WE=r}return Array.from(Rp?.keys()??[]).some(r=>r.name===e&&(r.attributes??[]).every(s=>n.find(i=>s.name===i.name&&s.value===i.value))&&Rp?.get(r)?.find(s=>WE?.get(s)?.find(i=>i.name===t)))}});var nL=C(Qs=>{"use strict";Object.defineProperty(Qs,"__esModule",{value:!0});Qs.RULE_DOCS_EXTENSION=Qs.RULE_NAME=void 0;var hq=ie(),dq=Io(),fq=ne(),mq=In(),gq=Ts(),vq=tL();Qs.RULE_NAME="role-has-required-aria";Qs.default=(0,fq.createESLintRule)({name:Qs.RULE_NAME,meta:{type:"suggestion",docs:{description:"[Accessibility] Ensures elements with ARIA roles have all required properties for that role."},hasSuggestions:!0,schema:[],messages:{roleHasRequiredAria:'The {{element}} with role="{{role}}" does not have required ARIA properties: {{missingProps}}',suggestRemoveRole:"Remove role `{{role}}`"},defaultOptions:[]},create(e){let t=(0,hq.getTemplateParserServices)(e),n=[...(0,mq.getDomElements)()],r=n.map(i=>i.toUpperCase());return{[`Element[name=${(0,gq.toPattern)([...n,...r])}] > TextAttribute[name='role']`](i){let{value:a,sourceSpan:o}=i,{attributes:c,inputs:u,name:p}=i.parent,h=[...c,...u],f=dq.roles.get(a),v=Object.keys(f?.requiredProps||{});if(!v.length||(0,vq.isSemanticRoleElement)(p,a,h))return;let E=v.filter(T=>!h.find(y=>y.name===T)).join(", ");if(E){let T=t.convertNodeSourceSpanToLoc(o);e.report({loc:T,messageId:"roleHasRequiredAria",data:{element:p,role:a,missingProps:E},suggest:[{messageId:"suggestRemoveRole",data:{element:p,role:a,missingProps:E},fix:y=>y.removeRange([o?.start.offset-1,o?.end.offset])}]})}}}}});Qs.RULE_DOCS_EXTENSION={rationale:'ARIA roles define what an element is and how it should behave for assistive technologies, but many roles require specific ARIA properties to be meaningful and functional. For example, a role="slider" must have aria-valuemin, aria-valuemax, and aria-valuenow to communicate its state to screen readers. Without these required properties, the role is incomplete and may confuse or mislead users of assistive technologies. The ARIA specification defines which properties are required for each role, and this rule enforces those requirements based on the official aria-query library. Ensuring required ARIA properties are present is critical for making interactive elements accessible. This is a WCAG Level A requirement for proper ARIA implementation.'}});var rL=C(Js=>{"use strict";Object.defineProperty(Js,"__esModule",{value:!0});Js.RULE_DOCS_EXTENSION=Js.RULE_NAME=void 0;var Eq=ie(),Sq=ne(),yq=In(),wq=Ts();Js.RULE_NAME="table-scope";Js.default=(0,Sq.createESLintRule)({name:Js.RULE_NAME,meta:{type:"suggestion",docs:{description:"[Accessibility] Ensures that the `scope` attribute is only used on the `<th>` element"},fixable:"code",schema:[],messages:{tableScope:"The `scope` attribute should only be on the `<th>` element"},defaultOptions:[]},create(e){let t=(0,Eq.getTemplateParserServices)(e),n=[...(0,yq.getDomElements)()].filter(i=>i!=="th"),r=n.map(i=>i.toUpperCase());return{[`Element[name=${(0,wq.toPattern)([...n,...r])}] > :matches(BoundAttribute, TextAttribute)[name='scope']`]({sourceSpan:i}){let a=t.convertNodeSourceSpanToLoc(i);e.report({loc:a,messageId:"tableScope",fix:o=>o.removeRange([i.start.offset-1,i.end.offset])})}}}});Js.RULE_DOCS_EXTENSION={rationale:'The scope attribute on table headers (<th>) tells screen readers whether a header applies to a column or row, enabling more efficient table navigation. When screen reader users navigate table cells, the screen reader announces the associated headers. Without proper scope attributes, users must manually explore the table structure to understand what each cell represents. Use scope="col" for column headers and scope="row" for row headers. For simple tables, screen readers can often infer the scope, but explicit scope attributes ensure reliable accessibility across all screen readers.'}});var sL=C(Zs=>{"use strict";Object.defineProperty(Zs,"__esModule",{value:!0});Zs.RULE_DOCS_EXTENSION=Zs.RULE_NAME=void 0;var Tq=ie(),xq=ne();Zs.RULE_NAME="use-track-by-function";var bq=[];Zs.default=(0,xq.createESLintRule)({name:Zs.RULE_NAME,meta:{type:"suggestion",docs:{description:"Ensures trackBy function is used"},schema:[{type:"object",properties:{alias:{type:"array",items:{type:"string"}}},additionalProperties:!1}],messages:{useTrackByFunction:"Missing trackBy function in ngFor directive"},defaultOptions:[{alias:bq}]},create(e,[{alias:t}]){let n=Cq(t),r=(0,Tq.getTemplateParserServices)(e);return{'BoundAttribute.inputs[name="ngForOf"]'({parent:{inputs:s},sourceSpan:i}){if(s.some(n))return;let a=r.convertNodeSourceSpanToLoc(i);e.report({messageId:"useTrackByFunction",loc:a})},'BoundAttribute.templateAttrs[name="ngForOf"]'({parent:{templateAttrs:s}}){if(s.some(n))return;let{start:i}=r.convertNodeSourceSpanToLoc(s[0].sourceSpan),{end:a}=r.convertNodeSourceSpanToLoc(s[s.length-1].sourceSpan),o={start:{...i,column:i.column-1},end:{...a,column:a.column+1}};e.report({messageId:"useTrackByFunction",loc:o})}}}});var Aq="ngForTrackBy";function Cq(e){let t=[...e,Aq];return n=>t.includes(n.name)}Zs.RULE_DOCS_EXTENSION={rationale:"When using *ngFor to render lists, Angular needs to track which items are added, removed, or moved to efficiently update the DOM. Without a trackBy function, Angular tracks items by object identity, meaning any change to the array (like sorting, filtering, or fetching fresh data from an API) causes Angular to destroy and recreate all DOM elements, even for items that haven't changed. This is inefficient and causes problems like: (1) poor performance with large lists, (2) loss of component state (like form input values), and (3) loss of CSS animations or focus. A trackBy function tells Angular how to identify unique items (usually by an id property), allowing Angular to reuse DOM elements for unchanged items. Use trackBy for all lists, especially those that update frequently or contain components with state."}});var aL=C(ei=>{"use strict";Object.defineProperty(ei,"__esModule",{value:!0});ei.RULE_DOCS_EXTENSION=ei.RULE_NAME=void 0;var bo=fe(),_q=ie(),Nq=Io(),Iq=ne(),kq=In(),Pq=Ts();ei.RULE_NAME="valid-aria";ei.default=(0,Iq.createESLintRule)({name:ei.RULE_NAME,meta:{type:"suggestion",docs:{description:"[Accessibility] Ensures that correct ARIA attributes and respective values are used"},hasSuggestions:!0,schema:[],messages:{validAria:"The `{{attribute}}` is an invalid ARIA attribute",validAriaValue:"The `{{attribute}}` has an invalid value. Check the valid values at https://raw.githack.com/w3c/aria/stable/#roles",suggestRemoveInvalidAria:"Remove attribute `{{attribute}}`"},defaultOptions:[]},create(e){let t=(0,_q.getTemplateParserServices)(e),n=[...(0,kq.getDomElements)()],r=n.map(i=>i.toUpperCase());return{[`Element[name=${(0,Pq.toPattern)([...n,...r])}] > :matches(BoundAttribute, TextAttribute)[name=/^aria-.+/]`](i){let{name:a,sourceSpan:o}=i,c=Nq.aria.get(a),u=t.convertNodeSourceSpanToLoc(o);if(!c){e.report({loc:u,messageId:"validAria",data:{attribute:a},suggest:[{messageId:"suggestRemoveInvalidAria",data:{attribute:a},fix:h=>h.removeRange([o.start.offset-1,o.end.offset])}]});return}let p=Rq(i);Oq(p)||Uq(c,p.value)||e.report({loc:u,messageId:"validAriaValue",data:{attribute:a}})}}}});function Lq(e){return e instanceof bo.LiteralArray||e instanceof bo.LiteralMap}function Dq(e){return e instanceof bo.LiteralPrimitive||e instanceof bo.TmplAstTextAttribute}function Oq(e){return!Lq(e)&&!Dq(e)}function Rq(e){return e instanceof bo.TmplAstBoundAttribute&&e.value instanceof bo.ASTWithSource?e.value.ast:e}function GE(e){return typeof e=="boolean"||e==="false"||e==="true"}function Bq(e){return!Number.isNaN(e)&&parseInt(Number(e))==e&&!Number.isNaN(parseInt(e,10))}function Mq(e){return!Number.isNaN(Number.parseFloat(e))&&Number.isFinite(Number(e))}function iL(e){return e==null}function XE(e){return typeof e=="string"}function Fq(e){return XE(e)&&e==="mixed"}function $q(e){return Fq(e)||GE(e)||iL(e)}function Uq({allowundefined:e,type:t,values:n},r){if(e&&iL(r))return!0;switch(t){case"boolean":return GE(r);case"tristate":return $q(r);case"id":case"idlist":return!0;case"integer":return Bq(r);case"number":return Mq(r);case"string":return XE(r);case"token":{let s=GE(r)?JSON.parse(r):r;return!!n?.includes(s)}case"tokenlist":return XE(r)?r.trim().split(/\s+/).every(i=>!!n?.includes(i)):!1}}ei.RULE_DOCS_EXTENSION={rationale:"ARIA (Accessible Rich Internet Applications) attributes must be valid and used correctly for screen readers to interpret them. Using invalid or misspelled ARIA attributes (like 'aria-labeledby' instead of 'aria-labelledby', or using ARIA attributes that don't exist) causes screen readers to ignore them, breaking accessibility. Each HTML element only supports specific ARIA attributes based on its role. Invalid ARIA is worse than no ARIA because it gives developers false confidence that they've made something accessible when they haven't. Use a reference like the ARIA specification or MDN to verify attribute names and valid usage."}});var KL=C(($r,YL)=>{"use strict";var Vq=$r&&$r.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var s=Object.getOwnPropertyDescriptor(t,n);(!s||("get"in s?!t.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,s)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),qq=$r&&$r.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t}),oe=$r&&$r.__importStar||(function(){var e=function(t){return e=Object.getOwnPropertyNames||function(n){var r=[];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(r[r.length]=s);return r},e(t)};return function(t){if(t&&t.__esModule)return t;var n={};if(t!=null)for(var r=e(t),s=0;s<r.length;s++)r[s]!=="default"&&Vq(n,t,r[s]);return qq(n,t),n}})(),Hq=$r&&$r.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},jq=Hq(uS()),oL=oe(p1()),lL=oe(w1()),cL=oe(T1()),uL=oe(A1()),pL=oe(R1()),hL=oe(M1()),dL=oe(F1()),fL=oe(U1()),mL=oe(X1()),gL=oe(tP()),vL=oe(aP()),EL=oe(uP()),SL=oe(hP()),yL=oe(dP()),wL=oe(fP()),TL=oe(mP()),xL=oe(EP()),bL=oe(SP()),AL=oe(yP()),CL=oe(wP()),_L=oe(xP()),NL=oe(bP()),IL=oe(AP()),kL=oe(_P()),PL=oe(NP()),LL=oe(IP()),DL=oe(kP()),OL=oe(LP()),RL=oe(MP()),BL=oe(FP()),ML=oe(UP()),FL=oe(jP()),$L=oe(WP()),UL=oe(GP()),VL=oe(YP()),qL=oe(KP()),HL=oe(ZP()),jL=oe(eL()),WL=oe(nL()),zL=oe(rL()),GL=oe(sL()),XL=oe(aL());YL.exports={processors:jq.default,rules:{[oL.RULE_NAME]:oL.default,[lL.RULE_NAME]:lL.default,[cL.RULE_NAME]:cL.default,[uL.RULE_NAME]:uL.default,[pL.RULE_NAME]:pL.default,[hL.RULE_NAME]:hL.default,[dL.RULE_NAME]:dL.default,[fL.RULE_NAME]:fL.default,[mL.RULE_NAME]:mL.default,[gL.RULE_NAME]:gL.default,[vL.RULE_NAME]:vL.default,[EL.RULE_NAME]:EL.default,[SL.RULE_NAME]:SL.default,[yL.RULE_NAME]:yL.default,[wL.RULE_NAME]:wL.default,[TL.RULE_NAME]:TL.default,[xL.RULE_NAME]:xL.default,[bL.RULE_NAME]:bL.default,[AL.RULE_NAME]:AL.default,[CL.RULE_NAME]:CL.default,[_L.RULE_NAME]:_L.default,[NL.RULE_NAME]:NL.default,[IL.RULE_NAME]:IL.default,[kL.RULE_NAME]:kL.default,[PL.RULE_NAME]:PL.default,[LL.RULE_NAME]:LL.default,[DL.RULE_NAME]:DL.default,[RL.RULE_NAME]:RL.default,[BL.RULE_NAME]:BL.default,[ML.RULE_NAME]:ML.default,[FL.RULE_NAME]:FL.default,[$L.RULE_NAME]:$L.default,[OL.RULE_NAME]:OL.default,[UL.RULE_NAME]:UL.default,[VL.RULE_NAME]:VL.default,[qL.RULE_NAME]:qL.default,[HL.RULE_NAME]:HL.default,[jL.RULE_NAME]:jL.default,[WL.RULE_NAME]:WL.default,[zL.RULE_NAME]:zL.default,[GL.RULE_NAME]:GL.default,[XL.RULE_NAME]:XL.default}}});var eD=C(Bp=>{"use strict";Object.defineProperty(Bp,"__esModule",{value:!0});Bp.convertNodeSourceSpanToLoc=JL;Bp.convertElementSourceSpanToLoc=Wq;var YE=fe();function JL(e){return{start:{line:e.start.line+1,column:e.start.col},end:{line:e.end.line+1,column:e.end.col}}}function Wq(e,t){if(t.type!=="Element")throw new Error("convertElementSourceSpanToLoc is intended to be used only with elements.");return(0,YE.getHtmlTagDefinition)(t.name).isVoid&&(t=zq(e,t)||t),JL(t.sourceSpan)}function zq(e,t){let{rootNodes:n}=Gq().parse(e.sourceCode.getText(),e.filename);return ZL(n,t.sourceSpan)}function ZL(e,t){for(let n of e){if(n.sourceSpan.start.line===t.start.line&&n.sourceSpan.start.offset===t.start.offset)return n;if(n instanceof YE.Element){let r=ZL(n.children,t);if(r!==null)return r}}return null}var QL=null;function Gq(){return QL||(QL=new YE.HtmlParser)}});var tD=C((d6,Xq)=>{Xq.exports={name:"@angular-eslint/template-parser",version:"22.6.0",description:"Angular Template parser for ESLint",license:"MIT",main:"dist/index.js",types:"dist/index.d.ts",repository:{type:"git",url:"https://github.com/angular-eslint/angular-eslint.git",directory:"packages/template-parser"},bugs:"https://github.com/angular-eslint/angular-eslint/issues",files:["dist","!**/*.tsbuildinfo","package.json","README.md","LICENSE"],dependencies:{"@angular-eslint/bundled-angular-compiler":"22.6.0","eslint-scope":"9.1.2"},peerDependencies:{eslint:"^9.0.0 || ^10.0.0",typescript:"*"},gitHead:"e2006e5e9c99e5a943d1a999e0efa5247d29ec24"}});var aD=C(kn=>{"use strict";Object.defineProperty(kn,"__esModule",{value:!0});kn.meta=kn.version=kn.TemplateParseError=void 0;kn.createTemplateParseError=sD;kn.parseForESLint=iD;kn.parse=s3;var Yq=fe(),Kq=dD(),Ao=eD(),rD={ASTWithSource:["ast"],Binary:["left","right"],BoundAttribute:["value"],BoundEvent:["handler"],BoundText:["value"],Call:["receiver","args"],SafeCall:["receiver","args"],Conditional:["condition","trueExp","falseExp"],Element:["children","inputs","outputs","attributes"],Interpolation:["expressions"],KeyedRead:["receiver","key"],SafeKeyedRead:["receiver","key"],NonNullAssert:["expression"],PrefixNot:["expression"],Program:["templateNodes"],PropertyRead:["receiver"],SafePropertyRead:["receiver"],Template:["templateAttrs","children","inputs"],BindingPipe:["exp","args"],DeferredBlock:["children","placeholder","loading","error","triggers","prefetchTriggers","hydrateTriggers"],DeferredBlockLoading:["children"],DeferredBlockError:["children"],DeferredBlockPlaceholder:["children"],Object:["when"],BoundDeferredTrigger:["value"],IfBlock:["branches"],IfBlockBranch:["children","expression"],SwitchBlock:["groups","expression"],SwitchBlockCaseGroup:["cases","children"],SwitchBlockCase:["expression"],ForLoopBlock:["children","empty","expression","trackBy"],ForLoopBlockEmpty:["children"],Content:["children"],LetDeclaration:["value"],ParenthesizedExpression:["expression"],ArrowFunction:["body"],SpreadElement:["expression"],TaggedTemplateLiteral:["tag","template"]};function Qq(e){let t=null;return e!=="comments"&&e!=="leadingComments"&&e!=="loc"&&e!=="parent"&&e!=="range"&&e!=="tokens"&&e!=="trailingComments"&&(t=this[e])!==null&&typeof t=="object"&&(typeof t.type=="string"||Array.isArray(t))}function Jq(e){return Object.keys(e).filter(Qq,e)}function nD(e){return e!==null&&typeof e=="object"&&typeof e.type=="string"}var Mp=null;function Zq(e){Mp||(Mp=new Map);let t=Mp.get(e);if(!t){t=[0];for(let n=0;n<e.length;n++)e[n]===`
92
- `&&t.push(n+1);Mp.set(e,t)}return t}function e3(e,t){let n=Zq(e),r=0,s=0,i=n.length-1;for(;s<=i;){let u=Math.floor((s+i)/2);n[u]<=t.start?(r=u,s=u+1):i=u-1}let a=t.start-n[r],o=r;for(s=r,i=n.length-1;s<=i;){let u=Math.floor((s+i)/2);n[u]<=t.end?(o=u,s=u+1):i=u-1}let c=t.end-n[o];return{start:{line:r+1,column:a},end:{line:o+1,column:c}}}function KE(e,t){let n=0,r=0,s=rD[e.type]||Jq(e);for(e.loc||(e.sourceSpan&&e.sourceSpan.start&&typeof e.sourceSpan.start.line=="number"?e.loc=(0,Ao.convertNodeSourceSpanToLoc)(e.sourceSpan):e.sourceSpan&&typeof e.sourceSpan.start=="number"&&t&&(e.loc=e3(t,e.sourceSpan))),n=0;n<s.length;++n){let i=e[s[n]];if(i==null)continue;let a=Array.isArray(i);if(i.type!==void 0&&(i.__originalType=i.type),!a&&!i.type&&(i.type=i.constructor.name),a)for(r=0;r<i.length;++r){let o=i[r];o.type!==void 0&&(o.__originalType=o.type),(!o.type||typeof o.type=="number")&&(o.type=o.constructor.name),nD(o)&&KE(o,t)}else nD(i)&&KE(i,t)}}function t3(e){let t=null;return e.templateNodes.forEach(n=>{let r=n.startSourceSpan||n.sourceSpan;if(!t){t=r;return}if(r&&r.start.offset<t.start.offset){t=r;return}}),t}function n3(e){let t=null;return e.templateNodes.forEach(n=>{let r=n.endSourceSpan||n.sourceSpan;if(!t){t=r;return}if(r&&r.end.offset>t.end.offset){t=r;return}}),t}function r3(e,t){return e.map(r=>({type:t.startsWith("//",r.sourceSpan.start.offset)?"Line":"Block",value:r.value,loc:(0,Ao.convertNodeSourceSpanToLoc)(r.sourceSpan),range:[r.sourceSpan.start.offset,r.sourceSpan.end.offset]})).sort((r,s)=>r.range[0]-s.range[0])}var Fp=class extends Error{fileName;index;lineNumber;column;constructor(t,n,r,s,i){super(t),this.fileName=n,this.index=r,this.lineNumber=s,this.column=i,Object.defineProperty(this,"name",{value:new.target.name,enumerable:!1,configurable:!0})}};kn.TemplateParseError=Fp;function sD(e){let t=e.msg,n=e.span.start.file.url,r=e.span.start.offset,s=e.span.start.line+1,i=e.span.start.col+1;return new Fp(t,n,r,s,i)}function iD(e,t){let n=(0,Yq.parseTemplate)(e,t.filePath,{preserveWhitespaces:!0,preserveLineEndings:!0,collectCommentNodes:!0}),r=[];Array.isArray(n.commentNodes)&&(r=n.commentNodes);let s={type:"Program",comments:r3(r,e),tokens:[],range:[0,0],loc:{start:{line:0,column:0},end:{line:0,column:0}},templateNodes:n.nodes,value:e},i=Object.defineProperties(s,{body:{value:[],enumerable:!1},sourceType:{value:"module",enumerable:!1}}),a=(0,Kq.analyze)(i);KE(s,e);let o=t3(s),c=n3(s);if(o&&c&&(s.range=[o.start.offset,c.end.offset],s.loc={start:(0,Ao.convertNodeSourceSpanToLoc)(o).start,end:(0,Ao.convertNodeSourceSpanToLoc)(c).end}),!t.suppressParseErrors&&n.errors?.length)throw sD(n.errors[0]);return{ast:s,scopeManager:a,visitorKeys:rD,services:{convertNodeSourceSpanToLoc:Ao.convertNodeSourceSpanToLoc,convertElementSourceSpanToLoc:Ao.convertElementSourceSpanToLoc}}}function s3(e,t){return iD(e,t).ast}kn.version=tD().version;kn.meta={name:"angular-eslint/template-parser",version:kn.version}});var lD=uc(fD()),QE=uc(KL()),$p=uc(aD()),Pn=uc(ZE());var cD={"alt-text":["1.1.1"],"click-events-have-key-events":["2.1.1"],"elements-content":["4.1.2"],"interactive-supports-focus":["2.1.1"],"label-has-associated-control":["1.3.1","4.1.2"],"mouse-events-have-key-events":["2.1.1"],"no-distracting-elements":["2.2.2"],"no-positive-tabindex":["2.4.3"],"role-has-required-aria":["4.1.2"],"table-scope":["1.3.1"],"valid-aria":["4.1.2"]},i3={a:["2.4.4","4.1.2"],button:["4.1.2"],h1:["2.4.6","1.3.1"],h2:["2.4.6","1.3.1"],h3:["2.4.6","1.3.1"],h4:["2.4.6","1.3.1"],h5:["2.4.6","1.3.1"],h6:["2.4.6","1.3.1"]};function a3(e,t){if(e!=="elements-content")return cD[e];let n=/^<([a-z0-9]+)>/i.exec(t)?.[1].toLowerCase();return n?i3[n]:void 0}var Up="@angular-eslint/template/",o3=QE.default;function l3(e){return e?{...$p,parseForESLint(t,n){let r=$p.parseForESLint(t,n),s=i=>{if(i.type==="Element"){let a=i.name,c=sS(a,u=>i.attributes.find(p=>p.name===u)?.value,e,!0);c&&(Hp.set(i,a),i.name=c)}pD(i,s)};return r.ast.templateNodes.forEach(s),r}}:$p}function c3(e,t){let n=Object.fromEntries(Object.keys(cD).filter(r=>!e.has(Up+r)).map(r=>[Up+r,"warn"]));return[{files:["**/*.html"],plugins:{"@angular-eslint/template":QE.default},languageOptions:{parser:l3(t)},rules:n}]}var oD=new lD.Linter({configType:"flat"});function T6(e,t){let{findings:n,content:r}=uD(e,0,t);return jp(n,r,{inputPurpose:!0})}function x6(e,t){let n=[],{templates:r,stylesheetColors:s}=p3(e),i={text:!1,elements:[],stylesheetColors:s};for(let a of r){let o=uD(a.text,a.start,t);n.push(...o.findings),i.text||=o.content.text,i.elements.push(...o.content.elements)}return jp(n,i,{inputPurpose:!0})}function uD(e,t,n){let r=nS(e),s=(c,u)=>t+r(c,u),i=[],a=tS(oD,e,"template.html",c=>c3(c,n)),o=a.some(c=>c.fatal)?void 0:d3(oD.getSourceCode().ast,t);for(let c of a){if(c.fatal){let E=s(c.line,c.column);throw new Wp(`offset ${E}`,c.message)}let u=c.ruleId?.startsWith(Up)?c.ruleId.slice(Up.length):void 0,p=u&&a3(u,c.message);if(!u||!p)continue;let h=s(c.line,c.column);if(u==="mouse-events-have-key-events"&&!o.boundEvents.get(h-t)?.has(/^`(\w+)`/.exec(c.message)?.[1]??"")||u==="label-has-associated-control"&&u3(e,h-t))continue;let f=c.endLine&&c.endColumn?s(c.endLine,c.endColumn):h,v=o3.rules[u]?.meta?.docs;i.push({range:{start:h,end:f},criteria:p,ruleId:c.ruleId,layer:"check",severity:"warning",message:c.message,explanation:v?.description?.replace(/^\[Accessibility\] /,"")??c.message,helpUrl:v?.url??`https://github.com/angular-eslint/angular-eslint/blob/main/packages/eslint-plugin-template/docs/rules/${u}.md`})}return{findings:i,content:o.content}}function u3(e,t){let n=/^<label\b[^>]*?\sid="([^"]+)"/.exec(e.slice(t))?.[1];return n!==void 0&&[...e.matchAll(/aria-labelledby="([^"]*)"/g)].some(r=>r[1].split(/\s+/).includes(n))}function p3(e){let t=Pn.default.createSourceFile("component.ts",e,Pn.default.ScriptTarget.Latest,!0),[n]=t.parseDiagnostics;if(n)throw new Wp(`offset ${n.start}`,Pn.default.flattenDiagnosticMessageText(n.messageText," "));let r=[],s=!1,i=a=>{if(Pn.default.isDecorator(a)&&Pn.default.isCallExpression(a.expression)&&Pn.default.isIdentifier(a.expression.expression)&&a.expression.expression.text==="Component"){let o=a.expression.arguments[0];if(o&&Pn.default.isObjectLiteralExpression(o)){let c=f=>o.properties.find(v=>Pn.default.isPropertyAssignment(v)&&v.name.getText(t)===f),u=c("styles")?.initializer;u&&rS(u.getText(t))&&(s=!0),(c("styleUrl")||c("styleUrls"))&&(s=!0);let h=c("template")?.initializer;if(h&&(Pn.default.isStringLiteral(h)||Pn.default.isNoSubstitutionTemplateLiteral(h))){let f=h.getStart(t)+1;r.push({text:e.slice(f,h.getEnd()-1),start:f})}}}Pn.default.forEachChild(a,i)};return i(t),{templates:r,stylesheetColors:s}}var h3=[2,3];function d3(e,t){let n={text:!1,elements:[]},r=new Map,s=(i,a)=>{if(i.type==="Text"&&typeof i.value=="string"&&i.value.trim()&&(n.text=!0,qp(a,i.value)),i.type==="BoundText"&&(n.text=!0,qp(a,!0)),i.type==="Element"){let o=i.sourceSpan.start.offset,c=i.startSourceSpan.end.offset,u={tag:i.name,attributes:f3(i),range:{start:t+o,end:t+c},parent:a},p=Hp.get(i);p&&(u.component=p),i.inputs.some(h=>h3.includes(h.__originalType??-1)||["class","style","ngclass","ngstyle"].includes(h.name.toLowerCase()))&&(u.boundStyle=!0),n.elements.push(u),r.set(o,new Set(i.outputs.map(h=>h.name))),a=u}pD(i,o=>s(o,a))};return e.templateNodes.forEach(i=>s(i)),{content:n,boundEvents:r}}function pD(e,t){for(let n of["children","branches","groups","cases","empty","placeholder","loading","error"])for(let r of[e[n]].flat())r&&typeof r=="object"&&t(r)}function f3(e){let t=new Map;for(let n of e.attributes)t.set(n.name.toLowerCase(),n.value);for(let n of e.inputs)t.set(n.name.replace(/^attr\./,"").toLowerCase(),!0);return t}export{i3 as ELEMENTS_CONTENT_CRITERIA,cD as RULE_CRITERIA,x6 as checkAngularComponents,T6 as checkAngularTemplate,a3 as criteriaOf};
92
+ `&&t.push(n+1);Mp.set(e,t)}return t}function e3(e,t){let n=Zq(e),r=0,s=0,i=n.length-1;for(;s<=i;){let u=Math.floor((s+i)/2);n[u]<=t.start?(r=u,s=u+1):i=u-1}let a=t.start-n[r],o=r;for(s=r,i=n.length-1;s<=i;){let u=Math.floor((s+i)/2);n[u]<=t.end?(o=u,s=u+1):i=u-1}let c=t.end-n[o];return{start:{line:r+1,column:a},end:{line:o+1,column:c}}}function KE(e,t){let n=0,r=0,s=rD[e.type]||Jq(e);for(e.loc||(e.sourceSpan&&e.sourceSpan.start&&typeof e.sourceSpan.start.line=="number"?e.loc=(0,Ao.convertNodeSourceSpanToLoc)(e.sourceSpan):e.sourceSpan&&typeof e.sourceSpan.start=="number"&&t&&(e.loc=e3(t,e.sourceSpan))),n=0;n<s.length;++n){let i=e[s[n]];if(i==null)continue;let a=Array.isArray(i);if(i.type!==void 0&&(i.__originalType=i.type),!a&&!i.type&&(i.type=i.constructor.name),a)for(r=0;r<i.length;++r){let o=i[r];o.type!==void 0&&(o.__originalType=o.type),(!o.type||typeof o.type=="number")&&(o.type=o.constructor.name),nD(o)&&KE(o,t)}else nD(i)&&KE(i,t)}}function t3(e){let t=null;return e.templateNodes.forEach(n=>{let r=n.startSourceSpan||n.sourceSpan;if(!t){t=r;return}if(r&&r.start.offset<t.start.offset){t=r;return}}),t}function n3(e){let t=null;return e.templateNodes.forEach(n=>{let r=n.endSourceSpan||n.sourceSpan;if(!t){t=r;return}if(r&&r.end.offset>t.end.offset){t=r;return}}),t}function r3(e,t){return e.map(r=>({type:t.startsWith("//",r.sourceSpan.start.offset)?"Line":"Block",value:r.value,loc:(0,Ao.convertNodeSourceSpanToLoc)(r.sourceSpan),range:[r.sourceSpan.start.offset,r.sourceSpan.end.offset]})).sort((r,s)=>r.range[0]-s.range[0])}var Fp=class extends Error{fileName;index;lineNumber;column;constructor(t,n,r,s,i){super(t),this.fileName=n,this.index=r,this.lineNumber=s,this.column=i,Object.defineProperty(this,"name",{value:new.target.name,enumerable:!1,configurable:!0})}};kn.TemplateParseError=Fp;function sD(e){let t=e.msg,n=e.span.start.file.url,r=e.span.start.offset,s=e.span.start.line+1,i=e.span.start.col+1;return new Fp(t,n,r,s,i)}function iD(e,t){let n=(0,Yq.parseTemplate)(e,t.filePath,{preserveWhitespaces:!0,preserveLineEndings:!0,collectCommentNodes:!0}),r=[];Array.isArray(n.commentNodes)&&(r=n.commentNodes);let s={type:"Program",comments:r3(r,e),tokens:[],range:[0,0],loc:{start:{line:0,column:0},end:{line:0,column:0}},templateNodes:n.nodes,value:e},i=Object.defineProperties(s,{body:{value:[],enumerable:!1},sourceType:{value:"module",enumerable:!1}}),a=(0,Kq.analyze)(i);KE(s,e);let o=t3(s),c=n3(s);if(o&&c&&(s.range=[o.start.offset,c.end.offset],s.loc={start:(0,Ao.convertNodeSourceSpanToLoc)(o).start,end:(0,Ao.convertNodeSourceSpanToLoc)(c).end}),!t.suppressParseErrors&&n.errors?.length)throw sD(n.errors[0]);return{ast:s,scopeManager:a,visitorKeys:rD,services:{convertNodeSourceSpanToLoc:Ao.convertNodeSourceSpanToLoc,convertElementSourceSpanToLoc:Ao.convertElementSourceSpanToLoc}}}function s3(e,t){return iD(e,t).ast}kn.version=tD().version;kn.meta={name:"angular-eslint/template-parser",version:kn.version}});var lD=uc(fD()),QE=uc(KL()),$p=uc(aD()),Pn=uc(ZE());var cD={"alt-text":["1.1.1"],"click-events-have-key-events":["2.1.1"],"elements-content":["4.1.2"],"interactive-supports-focus":["2.1.1"],"label-has-associated-control":["1.3.1","4.1.2"],"mouse-events-have-key-events":["2.1.1"],"no-distracting-elements":["2.2.2"],"no-positive-tabindex":["2.4.3"],"role-has-required-aria":["4.1.2"],"table-scope":["1.3.1"],"valid-aria":["4.1.2"]},i3={a:["2.4.4","4.1.2"],button:["4.1.2"],h1:["2.4.6","1.3.1"],h2:["2.4.6","1.3.1"],h3:["2.4.6","1.3.1"],h4:["2.4.6","1.3.1"],h5:["2.4.6","1.3.1"],h6:["2.4.6","1.3.1"]};function a3(e,t){if(e!=="elements-content")return cD[e];let n=/^<([a-z0-9]+)>/i.exec(t)?.[1].toLowerCase();return n?i3[n]:void 0}var Up="@angular-eslint/template/",o3=QE.default;function l3(e){return e?{...$p,parseForESLint(t,n){let r=$p.parseForESLint(t,n),s=i=>{if(i.type==="Element"){let a=i.name,c=sS(a,u=>i.attributes.find(p=>p.name===u)?.value,e,!0);c&&(Hp.set(i,a),i.name=c)}pD(i,s)};return r.ast.templateNodes.forEach(s),r}}:$p}function c3(e,t){let n=Object.fromEntries(Object.keys(cD).filter(r=>!e.has(Up+r)).map(r=>[Up+r,"warn"]));return[{files:["**/*.html"],plugins:{"@angular-eslint/template":QE.default},languageOptions:{parser:l3(t)},rules:n}]}var oD=new lD.Linter({configType:"flat"});function T6(e,t,n){let{findings:r,content:s}=uD(e,0,t);return jp(r,s,{inputPurpose:!0,theme:n})}function x6(e,t,n){let r=[],{templates:s,stylesheetColors:i}=p3(e),a={text:!1,elements:[],stylesheetColors:i};for(let o of s){let c=uD(o.text,o.start,t);r.push(...c.findings),a.text||=c.content.text,a.elements.push(...c.content.elements)}return jp(r,a,{inputPurpose:!0,theme:n})}function uD(e,t,n){let r=nS(e),s=(c,u)=>t+r(c,u),i=[],a=tS(oD,e,"template.html",c=>c3(c,n)),o=a.some(c=>c.fatal)?void 0:d3(oD.getSourceCode().ast,t);for(let c of a){if(c.fatal){let E=s(c.line,c.column);throw new Wp(`offset ${E}`,c.message)}let u=c.ruleId?.startsWith(Up)?c.ruleId.slice(Up.length):void 0,p=u&&a3(u,c.message);if(!u||!p)continue;let h=s(c.line,c.column);if(u==="mouse-events-have-key-events"&&!o.boundEvents.get(h-t)?.has(/^`(\w+)`/.exec(c.message)?.[1]??"")||u==="label-has-associated-control"&&u3(e,h-t))continue;let f=c.endLine&&c.endColumn?s(c.endLine,c.endColumn):h,v=o3.rules[u]?.meta?.docs;i.push({range:{start:h,end:f},criteria:p,ruleId:c.ruleId,layer:"check",severity:"warning",message:c.message,explanation:v?.description?.replace(/^\[Accessibility\] /,"")??c.message,helpUrl:v?.url??`https://github.com/angular-eslint/angular-eslint/blob/main/packages/eslint-plugin-template/docs/rules/${u}.md`})}return{findings:i,content:o.content}}function u3(e,t){let n=/^<label\b[^>]*?\sid="([^"]+)"/.exec(e.slice(t))?.[1];return n!==void 0&&[...e.matchAll(/aria-labelledby="([^"]*)"/g)].some(r=>r[1].split(/\s+/).includes(n))}function p3(e){let t=Pn.default.createSourceFile("component.ts",e,Pn.default.ScriptTarget.Latest,!0),[n]=t.parseDiagnostics;if(n)throw new Wp(`offset ${n.start}`,Pn.default.flattenDiagnosticMessageText(n.messageText," "));let r=[],s=!1,i=a=>{if(Pn.default.isDecorator(a)&&Pn.default.isCallExpression(a.expression)&&Pn.default.isIdentifier(a.expression.expression)&&a.expression.expression.text==="Component"){let o=a.expression.arguments[0];if(o&&Pn.default.isObjectLiteralExpression(o)){let c=f=>o.properties.find(v=>Pn.default.isPropertyAssignment(v)&&v.name.getText(t)===f),u=c("styles")?.initializer;u&&rS(u.getText(t))&&(s=!0),(c("styleUrl")||c("styleUrls"))&&(s=!0);let h=c("template")?.initializer;if(h&&(Pn.default.isStringLiteral(h)||Pn.default.isNoSubstitutionTemplateLiteral(h))){let f=h.getStart(t)+1;r.push({text:e.slice(f,h.getEnd()-1),start:f})}}}Pn.default.forEachChild(a,i)};return i(t),{templates:r,stylesheetColors:s}}var h3=[2,3];function d3(e,t){let n={text:!1,elements:[]},r=new Map,s=(i,a)=>{if(i.type==="Text"&&typeof i.value=="string"&&i.value.trim()&&(n.text=!0,qp(a,i.value)),i.type==="BoundText"&&(n.text=!0,qp(a,!0)),i.type==="Element"){let o=i.sourceSpan.start.offset,c=i.startSourceSpan.end.offset,u={tag:i.name,attributes:f3(i),range:{start:t+o,end:t+c},parent:a},p=Hp.get(i);p&&(u.component=p),i.inputs.some(h=>h3.includes(h.__originalType??-1)||["class","style","ngclass","ngstyle"].includes(h.name.toLowerCase()))&&(u.boundStyle=!0),n.elements.push(u),r.set(o,new Set(i.outputs.map(h=>h.name))),a=u}a&&!["Element","Text","BoundText","Comment"].includes(i.type)&&(a.uncertainContent=!0),pD(i,o=>s(o,a))};return e.templateNodes.forEach(i=>s(i)),{content:n,boundEvents:r}}function pD(e,t){for(let n of["children","branches","groups","cases","empty","placeholder","loading","error"])for(let r of[e[n]].flat())r&&typeof r=="object"&&t(r)}function f3(e){let t=new Map;for(let n of e.attributes)t.set(n.name.toLowerCase(),n.value);for(let n of e.inputs)t.set(n.name.replace(/^attr\./,"").toLowerCase(),!0);return t}export{i3 as ELEMENTS_CONTENT_CRITERIA,cD as RULE_CRITERIA,x6 as checkAngularComponents,T6 as checkAngularTemplate,a3 as criteriaOf};
93
93
  /*! Bundled license information:
94
94
 
95
95
  @angular-eslint/bundled-angular-compiler/dist/index.js: