prettier 3.2.2 → 4.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +15 -2
- data/README.md +23 -59
- data/lib/prettier.rb +7 -5
- data/node_modules/prettier/LICENSE +5205 -0
- data/node_modules/prettier/README.md +109 -0
- data/node_modules/prettier/{bin-prettier.js → bin/prettier.cjs} +10 -5
- data/node_modules/prettier/doc.d.ts +240 -0
- data/node_modules/prettier/doc.js +1257 -1309
- data/node_modules/prettier/doc.mjs +1312 -0
- data/node_modules/prettier/index.cjs +655 -0
- data/node_modules/prettier/index.d.ts +915 -0
- data/node_modules/prettier/index.mjs +21845 -0
- data/node_modules/prettier/internal/cli.mjs +6978 -0
- data/node_modules/prettier/internal/internal.mjs +6531 -0
- data/node_modules/prettier/package.json +179 -6
- data/node_modules/prettier/plugins/acorn.d.ts +6 -0
- data/node_modules/prettier/plugins/acorn.js +13 -0
- data/node_modules/prettier/plugins/acorn.mjs +13 -0
- data/node_modules/prettier/plugins/angular.d.ts +8 -0
- data/node_modules/prettier/plugins/angular.js +2 -0
- data/node_modules/prettier/plugins/angular.mjs +2 -0
- data/node_modules/prettier/plugins/babel.d.ts +17 -0
- data/node_modules/prettier/plugins/babel.js +16 -0
- data/node_modules/prettier/plugins/babel.mjs +16 -0
- data/node_modules/prettier/plugins/estree.d.ts +0 -0
- data/node_modules/prettier/plugins/estree.js +35 -0
- data/node_modules/prettier/plugins/estree.mjs +35 -0
- data/node_modules/prettier/plugins/flow.d.ts +5 -0
- data/node_modules/prettier/plugins/flow.js +21 -0
- data/node_modules/prettier/plugins/flow.mjs +21 -0
- data/node_modules/prettier/plugins/glimmer.d.ts +5 -0
- data/node_modules/prettier/plugins/glimmer.js +30 -0
- data/node_modules/prettier/plugins/glimmer.mjs +30 -0
- data/node_modules/prettier/plugins/graphql.d.ts +5 -0
- data/node_modules/prettier/plugins/graphql.js +29 -0
- data/node_modules/prettier/plugins/graphql.mjs +29 -0
- data/node_modules/prettier/plugins/html.d.ts +8 -0
- data/node_modules/prettier/plugins/html.js +19 -0
- data/node_modules/prettier/plugins/html.mjs +19 -0
- data/node_modules/prettier/plugins/markdown.d.ts +7 -0
- data/node_modules/prettier/plugins/markdown.js +59 -0
- data/node_modules/prettier/plugins/markdown.mjs +59 -0
- data/node_modules/prettier/plugins/meriyah.d.ts +5 -0
- data/node_modules/prettier/plugins/meriyah.js +5 -0
- data/node_modules/prettier/plugins/meriyah.mjs +5 -0
- data/node_modules/prettier/plugins/postcss.d.ts +7 -0
- data/node_modules/prettier/plugins/postcss.js +52 -0
- data/node_modules/prettier/plugins/postcss.mjs +52 -0
- data/node_modules/prettier/plugins/typescript.d.ts +5 -0
- data/node_modules/prettier/plugins/typescript.js +27 -0
- data/node_modules/prettier/plugins/typescript.mjs +27 -0
- data/node_modules/prettier/plugins/yaml.d.ts +5 -0
- data/node_modules/prettier/plugins/yaml.js +161 -0
- data/node_modules/prettier/plugins/yaml.mjs +161 -0
- data/node_modules/prettier/standalone.d.ts +33 -0
- data/node_modules/prettier/standalone.js +34 -0
- data/node_modules/prettier/standalone.mjs +34 -0
- data/package.json +15 -10
- data/src/plugin.js +210 -14
- data/src/server.rb +50 -87
- metadata +60 -28
- data/CONTRIBUTING.md +0 -185
- data/node_modules/prettier/cli.js +0 -15085
- data/node_modules/prettier/index.js +0 -37282
- data/node_modules/prettier/parser-angular.js +0 -2
- data/node_modules/prettier/parser-babel.js +0 -27
- data/node_modules/prettier/parser-espree.js +0 -26
- data/node_modules/prettier/parser-flow.js +0 -35
- data/node_modules/prettier/parser-glimmer.js +0 -27
- data/node_modules/prettier/parser-graphql.js +0 -15
- data/node_modules/prettier/parser-html.js +0 -36
- data/node_modules/prettier/parser-markdown.js +0 -76
- data/node_modules/prettier/parser-meriyah.js +0 -19
- data/node_modules/prettier/parser-postcss.js +0 -76
- data/node_modules/prettier/parser-typescript.js +0 -280
- data/node_modules/prettier/parser-yaml.js +0 -150
- data/node_modules/prettier/third-party.js +0 -8978
- data/src/getInfo.js +0 -23
- data/src/netcat.js +0 -13
- data/src/parseSync.js +0 -236
@@ -1,2 +0,0 @@
|
|
1
|
-
(function(e){if(typeof exports=="object"&&typeof module=="object")module.exports=e();else if(typeof define=="function"&&define.amd)define(e);else{var i=typeof globalThis<"u"?globalThis:typeof global<"u"?global:typeof self<"u"?self:this||{};i.prettierPlugins=i.prettierPlugins||{},i.prettierPlugins.angular=e()}})(function(){"use strict";var un=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var Mn=un((jn,on)=>{var ze=Object.defineProperty,hn=Object.getOwnPropertyDescriptor,He=Object.getOwnPropertyNames,ln=Object.prototype.hasOwnProperty,Y=(e,t)=>function(){return e&&(t=(0,e[He(e)[0]])(e=0)),t},q=(e,t)=>function(){return t||(0,e[He(e)[0]])((t={exports:{}}).exports,t),t.exports},Xe=(e,t)=>{for(var n in t)ze(e,n,{get:t[n],enumerable:!0})},pn=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let s of He(t))!ln.call(e,s)&&s!==n&&ze(e,s,{get:()=>t[s],enumerable:!(r=hn(t,s))||r.enumerable});return e},be=e=>pn(ze({},"__esModule",{value:!0}),e),L=Y({"<define:process>"(){}}),dn=q({"src/utils/is-non-empty-array.js"(e,t){"use strict";L();function n(r){return Array.isArray(r)&&r.length>0}t.exports=n}}),fn=q({"src/language-js/loc.js"(e,t){"use strict";L();var n=dn();function r(h,P){let{ignoreDecorators:p}=P||{};if(!p){let x=h.declaration&&h.declaration.decorators||h.decorators;if(n(x))return r(x[0])}return h.range?h.range[0]:h.start}function s(h){return h.range?h.range[1]:h.end}function a(h,P){let p=r(h);return Number.isInteger(p)&&p===r(P)}function i(h,P){let p=s(h);return Number.isInteger(p)&&p===s(P)}function l(h,P){return a(h,P)&&i(h,P)}t.exports={locStart:r,locEnd:s,hasSameLocStart:a,hasSameLoc:l}}}),gn=q({"node_modules/angular-estree-parser/node_modules/lines-and-columns/build/index.js"(e){"use strict";L(),e.__esModule=!0,e.LinesAndColumns=void 0;var t=`
|
2
|
-
`,n="\r",r=function(){function s(a){this.string=a;for(var i=[0],l=0;l<a.length;)switch(a[l]){case t:l+=t.length,i.push(l);break;case n:l+=n.length,a[l]===t&&(l+=t.length),i.push(l);break;default:l++;break}this.offsets=i}return s.prototype.locationForIndex=function(a){if(a<0||a>this.string.length)return null;for(var i=0,l=this.offsets;l[i+1]<=a;)i++;var h=a-l[i];return{line:i,column:h}},s.prototype.indexForLocation=function(a){var i=a.line,l=a.column;return i<0||i>=this.offsets.length||l<0||l>this.lengthOfLine(i)?null:this.offsets[i]+l},s.prototype.lengthOfLine=function(a){var i=this.offsets[a],l=a===this.offsets.length-1?this.string.length:this.offsets[a+1];return l-i},s}();e.LinesAndColumns=r,e.default=r}}),vn=q({"node_modules/angular-estree-parser/lib/context.js"(e){"use strict";L(),Object.defineProperty(e,"__esModule",{value:!0}),e.Context=void 0;var t=gn(),n=class{constructor(s){this.text=s,this.locator=new r(this.text)}};e.Context=n;var r=class{constructor(s){this._lineAndColumn=new t.default(s)}locationForIndex(s){let{line:a,column:i}=this._lineAndColumn.locationForIndex(s);return{line:a+1,column:i}}}}}),Je={};Xe(Je,{AST:()=>k,ASTWithName:()=>W,ASTWithSource:()=>G,AbsoluteSourceSpan:()=>U,AstMemoryEfficientTransformer:()=>Ct,AstTransformer:()=>Pt,Binary:()=>K,BindingPipe:()=>fe,BoundElementProperty:()=>It,Chain:()=>oe,Conditional:()=>ce,EmptyExpr:()=>M,ExpressionBinding:()=>Ze,FunctionCall:()=>Pe,ImplicitReceiver:()=>Oe,Interpolation:()=>me,KeyedRead:()=>le,KeyedWrite:()=>de,LiteralArray:()=>ge,LiteralMap:()=>ve,LiteralPrimitive:()=>B,MethodCall:()=>ye,NonNullAssert:()=>Se,ParseSpan:()=>V,ParsedEvent:()=>At,ParsedProperty:()=>Et,ParsedPropertyType:()=>se,ParsedVariable:()=>_t,ParserError:()=>ae,PrefixNot:()=>xe,PropertyRead:()=>re,PropertyWrite:()=>ue,Quote:()=>Le,RecursiveAstVisitor:()=>et,SafeKeyedRead:()=>pe,SafeMethodCall:()=>we,SafePropertyRead:()=>he,ThisReceiver:()=>Ye,Unary:()=>F,VariableBinding:()=>Re});var ae,V,k,W,Le,M,Oe,Ye,oe,ce,re,ue,he,le,pe,de,fe,B,ge,ve,me,K,F,xe,Se,ye,we,Pe,U,G,Re,Ze,et,Pt,Ct,Et,se,At,_t,It,tt=Y({"node_modules/@angular/compiler/esm2015/src/expression_parser/ast.js"(){L(),ae=class{constructor(e,t,n,r){this.input=t,this.errLocation=n,this.ctxLocation=r,this.message="Parser Error: ".concat(e," ").concat(n," [").concat(t,"] in ").concat(r)}},V=class{constructor(e,t){this.start=e,this.end=t}toAbsolute(e){return new U(e+this.start,e+this.end)}},k=class{constructor(e,t){this.span=e,this.sourceSpan=t}toString(){return"AST"}},W=class extends k{constructor(e,t,n){super(e,t),this.nameSpan=n}},Le=class extends k{constructor(e,t,n,r,s){super(e,t),this.prefix=n,this.uninterpretedExpression=r,this.location=s}visit(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return e.visitQuote(this,t)}toString(){return"Quote"}},M=class extends k{visit(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null}},Oe=class extends k{visit(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return e.visitImplicitReceiver(this,t)}},Ye=class extends Oe{visit(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;var n;return(n=e.visitThisReceiver)===null||n===void 0?void 0:n.call(e,this,t)}},oe=class extends k{constructor(e,t,n){super(e,t),this.expressions=n}visit(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return e.visitChain(this,t)}},ce=class extends k{constructor(e,t,n,r,s){super(e,t),this.condition=n,this.trueExp=r,this.falseExp=s}visit(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return e.visitConditional(this,t)}},re=class extends W{constructor(e,t,n,r,s){super(e,t,n),this.receiver=r,this.name=s}visit(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return e.visitPropertyRead(this,t)}},ue=class extends W{constructor(e,t,n,r,s,a){super(e,t,n),this.receiver=r,this.name=s,this.value=a}visit(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return e.visitPropertyWrite(this,t)}},he=class extends W{constructor(e,t,n,r,s){super(e,t,n),this.receiver=r,this.name=s}visit(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return e.visitSafePropertyRead(this,t)}},le=class extends k{constructor(e,t,n,r){super(e,t),this.receiver=n,this.key=r}visit(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return e.visitKeyedRead(this,t)}},pe=class extends k{constructor(e,t,n,r){super(e,t),this.receiver=n,this.key=r}visit(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return e.visitSafeKeyedRead(this,t)}},de=class extends k{constructor(e,t,n,r,s){super(e,t),this.receiver=n,this.key=r,this.value=s}visit(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return e.visitKeyedWrite(this,t)}},fe=class extends W{constructor(e,t,n,r,s,a){super(e,t,a),this.exp=n,this.name=r,this.args=s}visit(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return e.visitPipe(this,t)}},B=class extends k{constructor(e,t,n){super(e,t),this.value=n}visit(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return e.visitLiteralPrimitive(this,t)}},ge=class extends k{constructor(e,t,n){super(e,t),this.expressions=n}visit(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return e.visitLiteralArray(this,t)}},ve=class extends k{constructor(e,t,n,r){super(e,t),this.keys=n,this.values=r}visit(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return e.visitLiteralMap(this,t)}},me=class extends k{constructor(e,t,n,r){super(e,t),this.strings=n,this.expressions=r}visit(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return e.visitInterpolation(this,t)}},K=class extends k{constructor(e,t,n,r,s){super(e,t),this.operation=n,this.left=r,this.right=s}visit(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return e.visitBinary(this,t)}},F=class extends K{constructor(e,t,n,r,s,a,i){super(e,t,s,a,i),this.operator=n,this.expr=r}static createMinus(e,t,n){return new F(e,t,"-",n,"-",new B(e,t,0),n)}static createPlus(e,t,n){return new F(e,t,"+",n,"-",n,new B(e,t,0))}visit(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return e.visitUnary!==void 0?e.visitUnary(this,t):e.visitBinary(this,t)}},xe=class extends k{constructor(e,t,n){super(e,t),this.expression=n}visit(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return e.visitPrefixNot(this,t)}},Se=class extends k{constructor(e,t,n){super(e,t),this.expression=n}visit(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return e.visitNonNullAssert(this,t)}},ye=class extends W{constructor(e,t,n,r,s,a,i){super(e,t,n),this.receiver=r,this.name=s,this.args=a,this.argumentSpan=i}visit(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return e.visitMethodCall(this,t)}},we=class extends W{constructor(e,t,n,r,s,a,i){super(e,t,n),this.receiver=r,this.name=s,this.args=a,this.argumentSpan=i}visit(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return e.visitSafeMethodCall(this,t)}},Pe=class extends k{constructor(e,t,n,r){super(e,t),this.target=n,this.args=r}visit(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return e.visitFunctionCall(this,t)}},U=class{constructor(e,t){this.start=e,this.end=t}},G=class extends k{constructor(e,t,n,r,s){super(new V(0,t===null?0:t.length),new U(r,t===null?r:r+t.length)),this.ast=e,this.source=t,this.location=n,this.errors=s}visit(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return e.visitASTWithSource?e.visitASTWithSource(this,t):this.ast.visit(e,t)}toString(){return"".concat(this.source," in ").concat(this.location)}},Re=class{constructor(e,t,n){this.sourceSpan=e,this.key=t,this.value=n}},Ze=class{constructor(e,t,n){this.sourceSpan=e,this.key=t,this.value=n}},et=class{visit(e,t){e.visit(this,t)}visitUnary(e,t){this.visit(e.expr,t)}visitBinary(e,t){this.visit(e.left,t),this.visit(e.right,t)}visitChain(e,t){this.visitAll(e.expressions,t)}visitConditional(e,t){this.visit(e.condition,t),this.visit(e.trueExp,t),this.visit(e.falseExp,t)}visitPipe(e,t){this.visit(e.exp,t),this.visitAll(e.args,t)}visitFunctionCall(e,t){e.target&&this.visit(e.target,t),this.visitAll(e.args,t)}visitImplicitReceiver(e,t){}visitThisReceiver(e,t){}visitInterpolation(e,t){this.visitAll(e.expressions,t)}visitKeyedRead(e,t){this.visit(e.receiver,t),this.visit(e.key,t)}visitKeyedWrite(e,t){this.visit(e.receiver,t),this.visit(e.key,t),this.visit(e.value,t)}visitLiteralArray(e,t){this.visitAll(e.expressions,t)}visitLiteralMap(e,t){this.visitAll(e.values,t)}visitLiteralPrimitive(e,t){}visitMethodCall(e,t){this.visit(e.receiver,t),this.visitAll(e.args,t)}visitPrefixNot(e,t){this.visit(e.expression,t)}visitNonNullAssert(e,t){this.visit(e.expression,t)}visitPropertyRead(e,t){this.visit(e.receiver,t)}visitPropertyWrite(e,t){this.visit(e.receiver,t),this.visit(e.value,t)}visitSafePropertyRead(e,t){this.visit(e.receiver,t)}visitSafeMethodCall(e,t){this.visit(e.receiver,t),this.visitAll(e.args,t)}visitSafeKeyedRead(e,t){this.visit(e.receiver,t),this.visit(e.key,t)}visitQuote(e,t){}visitAll(e,t){for(let n of e)this.visit(n,t)}},Pt=class{visitImplicitReceiver(e,t){return e}visitThisReceiver(e,t){return e}visitInterpolation(e,t){return new me(e.span,e.sourceSpan,e.strings,this.visitAll(e.expressions))}visitLiteralPrimitive(e,t){return new B(e.span,e.sourceSpan,e.value)}visitPropertyRead(e,t){return new re(e.span,e.sourceSpan,e.nameSpan,e.receiver.visit(this),e.name)}visitPropertyWrite(e,t){return new ue(e.span,e.sourceSpan,e.nameSpan,e.receiver.visit(this),e.name,e.value.visit(this))}visitSafePropertyRead(e,t){return new he(e.span,e.sourceSpan,e.nameSpan,e.receiver.visit(this),e.name)}visitMethodCall(e,t){return new ye(e.span,e.sourceSpan,e.nameSpan,e.receiver.visit(this),e.name,this.visitAll(e.args),e.argumentSpan)}visitSafeMethodCall(e,t){return new we(e.span,e.sourceSpan,e.nameSpan,e.receiver.visit(this),e.name,this.visitAll(e.args),e.argumentSpan)}visitFunctionCall(e,t){return new Pe(e.span,e.sourceSpan,e.target.visit(this),this.visitAll(e.args))}visitLiteralArray(e,t){return new ge(e.span,e.sourceSpan,this.visitAll(e.expressions))}visitLiteralMap(e,t){return new ve(e.span,e.sourceSpan,e.keys,this.visitAll(e.values))}visitUnary(e,t){switch(e.operator){case"+":return F.createPlus(e.span,e.sourceSpan,e.expr.visit(this));case"-":return F.createMinus(e.span,e.sourceSpan,e.expr.visit(this));default:throw new Error("Unknown unary operator ".concat(e.operator))}}visitBinary(e,t){return new K(e.span,e.sourceSpan,e.operation,e.left.visit(this),e.right.visit(this))}visitPrefixNot(e,t){return new xe(e.span,e.sourceSpan,e.expression.visit(this))}visitNonNullAssert(e,t){return new Se(e.span,e.sourceSpan,e.expression.visit(this))}visitConditional(e,t){return new ce(e.span,e.sourceSpan,e.condition.visit(this),e.trueExp.visit(this),e.falseExp.visit(this))}visitPipe(e,t){return new fe(e.span,e.sourceSpan,e.exp.visit(this),e.name,this.visitAll(e.args),e.nameSpan)}visitKeyedRead(e,t){return new le(e.span,e.sourceSpan,e.receiver.visit(this),e.key.visit(this))}visitKeyedWrite(e,t){return new de(e.span,e.sourceSpan,e.receiver.visit(this),e.key.visit(this),e.value.visit(this))}visitAll(e){let t=[];for(let n=0;n<e.length;++n)t[n]=e[n].visit(this);return t}visitChain(e,t){return new oe(e.span,e.sourceSpan,this.visitAll(e.expressions))}visitQuote(e,t){return new Le(e.span,e.sourceSpan,e.prefix,e.uninterpretedExpression,e.location)}visitSafeKeyedRead(e,t){return new pe(e.span,e.sourceSpan,e.receiver.visit(this),e.key.visit(this))}},Ct=class{visitImplicitReceiver(e,t){return e}visitThisReceiver(e,t){return e}visitInterpolation(e,t){let n=this.visitAll(e.expressions);return n!==e.expressions?new me(e.span,e.sourceSpan,e.strings,n):e}visitLiteralPrimitive(e,t){return e}visitPropertyRead(e,t){let n=e.receiver.visit(this);return n!==e.receiver?new re(e.span,e.sourceSpan,e.nameSpan,n,e.name):e}visitPropertyWrite(e,t){let n=e.receiver.visit(this),r=e.value.visit(this);return n!==e.receiver||r!==e.value?new ue(e.span,e.sourceSpan,e.nameSpan,n,e.name,r):e}visitSafePropertyRead(e,t){let n=e.receiver.visit(this);return n!==e.receiver?new he(e.span,e.sourceSpan,e.nameSpan,n,e.name):e}visitMethodCall(e,t){let n=e.receiver.visit(this),r=this.visitAll(e.args);return n!==e.receiver||r!==e.args?new ye(e.span,e.sourceSpan,e.nameSpan,n,e.name,r,e.argumentSpan):e}visitSafeMethodCall(e,t){let n=e.receiver.visit(this),r=this.visitAll(e.args);return n!==e.receiver||r!==e.args?new we(e.span,e.sourceSpan,e.nameSpan,n,e.name,r,e.argumentSpan):e}visitFunctionCall(e,t){let n=e.target&&e.target.visit(this),r=this.visitAll(e.args);return n!==e.target||r!==e.args?new Pe(e.span,e.sourceSpan,n,r):e}visitLiteralArray(e,t){let n=this.visitAll(e.expressions);return n!==e.expressions?new ge(e.span,e.sourceSpan,n):e}visitLiteralMap(e,t){let n=this.visitAll(e.values);return n!==e.values?new ve(e.span,e.sourceSpan,e.keys,n):e}visitUnary(e,t){let n=e.expr.visit(this);if(n!==e.expr)switch(e.operator){case"+":return F.createPlus(e.span,e.sourceSpan,n);case"-":return F.createMinus(e.span,e.sourceSpan,n);default:throw new Error("Unknown unary operator ".concat(e.operator))}return e}visitBinary(e,t){let n=e.left.visit(this),r=e.right.visit(this);return n!==e.left||r!==e.right?new K(e.span,e.sourceSpan,e.operation,n,r):e}visitPrefixNot(e,t){let n=e.expression.visit(this);return n!==e.expression?new xe(e.span,e.sourceSpan,n):e}visitNonNullAssert(e,t){let n=e.expression.visit(this);return n!==e.expression?new Se(e.span,e.sourceSpan,n):e}visitConditional(e,t){let n=e.condition.visit(this),r=e.trueExp.visit(this),s=e.falseExp.visit(this);return n!==e.condition||r!==e.trueExp||s!==e.falseExp?new ce(e.span,e.sourceSpan,n,r,s):e}visitPipe(e,t){let n=e.exp.visit(this),r=this.visitAll(e.args);return n!==e.exp||r!==e.args?new fe(e.span,e.sourceSpan,n,e.name,r,e.nameSpan):e}visitKeyedRead(e,t){let n=e.receiver.visit(this),r=e.key.visit(this);return n!==e.receiver||r!==e.key?new le(e.span,e.sourceSpan,n,r):e}visitKeyedWrite(e,t){let n=e.receiver.visit(this),r=e.key.visit(this),s=e.value.visit(this);return n!==e.receiver||r!==e.key||s!==e.value?new de(e.span,e.sourceSpan,n,r,s):e}visitAll(e){let t=[],n=!1;for(let r=0;r<e.length;++r){let s=e[r],a=s.visit(this);t[r]=a,n=n||a!==s}return n?t:e}visitChain(e,t){let n=this.visitAll(e.expressions);return n!==e.expressions?new oe(e.span,e.sourceSpan,n):e}visitQuote(e,t){return e}visitSafeKeyedRead(e,t){let n=e.receiver.visit(this),r=e.key.visit(this);return n!==e.receiver||r!==e.key?new pe(e.span,e.sourceSpan,n,r):e}},Et=class{constructor(e,t,n,r,s,a){this.name=e,this.expression=t,this.type=n,this.sourceSpan=r,this.keySpan=s,this.valueSpan=a,this.isLiteral=this.type===se.LITERAL_ATTR,this.isAnimation=this.type===se.ANIMATION}},function(e){e[e.DEFAULT=0]="DEFAULT",e[e.LITERAL_ATTR=1]="LITERAL_ATTR",e[e.ANIMATION=2]="ANIMATION"}(se||(se={})),At=class{constructor(e,t,n,r,s,a,i){this.name=e,this.targetOrPhase=t,this.type=n,this.handler=r,this.sourceSpan=s,this.handlerSpan=a,this.keySpan=i}},_t=class{constructor(e,t,n,r,s){this.name=e,this.value=t,this.sourceSpan=n,this.keySpan=r,this.valueSpan=s}},It=class{constructor(e,t,n,r,s,a,i,l){this.name=e,this.type=t,this.securityContext=n,this.value=r,this.unit=s,this.sourceSpan=a,this.keySpan=i,this.valueSpan=l}}}});function mn(e){return e>=nt&&e<=rt||e==dt}function Q(e){return $t<=e&&e<=jt}function xn(e){return e>=lt&&e<=pt||e>=ut&&e<=ht}function mt(e){return e===at||e===st||e===Xt}var Ce,nt,Ot,kt,Nt,bt,rt,Lt,st,Rt,it,Tt,je,at,Ee,z,Bt,ot,ee,ct,H,Te,X,te,Kt,ie,Mt,Fe,$t,jt,ut,Ft,ht,Ae,Ut,ne,Wt,Ke,lt,Gt,Vt,qt,Qt,Dt,zt,Ht,pt,Be,Ue,_e,dt,Xt,Jt=Y({"node_modules/@angular/compiler/esm2015/src/chars.js"(){L(),Ce=0,nt=9,Ot=10,kt=11,Nt=12,bt=13,rt=32,Lt=33,st=34,Rt=35,it=36,Tt=37,je=38,at=39,Ee=40,z=41,Bt=42,ot=43,ee=44,ct=45,H=46,Te=47,X=58,te=59,Kt=60,ie=61,Mt=62,Fe=63,$t=48,jt=57,ut=65,Ft=69,ht=90,Ae=91,Ut=92,ne=93,Wt=94,Ke=95,lt=97,Gt=101,Vt=102,qt=110,Qt=114,Dt=116,zt=117,Ht=118,pt=122,Be=123,Ue=124,_e=125,dt=160,Xt=96}}),Yt={};Xe(Yt,{EOF:()=>Ie,Lexer:()=>en,Token:()=>$,TokenType:()=>S,isIdentifier:()=>Zt});function xt(e,t,n){return new $(e,t,S.Character,n,String.fromCharCode(n))}function Sn(e,t,n){return new $(e,t,S.Identifier,0,n)}function yn(e,t,n){return new $(e,t,S.PrivateIdentifier,0,n)}function wn(e,t,n){return new $(e,t,S.Keyword,0,n)}function Me(e,t,n){return new $(e,t,S.Operator,0,n)}function Pn(e,t,n){return new $(e,t,S.String,0,n)}function Cn(e,t,n){return new $(e,t,S.Number,n,"")}function En(e,t,n){return new $(e,t,S.Error,0,n)}function We(e){return lt<=e&&e<=pt||ut<=e&&e<=ht||e==Ke||e==it}function Zt(e){if(e.length==0)return!1;let t=new Ve(e);if(!We(t.peek))return!1;for(t.advance();t.peek!==Ce;){if(!Ge(t.peek))return!1;t.advance()}return!0}function Ge(e){return xn(e)||Q(e)||e==Ke||e==it}function An(e){return e==Gt||e==Ft}function _n(e){return e==ct||e==ot}function In(e){switch(e){case qt:return Ot;case Vt:return Nt;case Qt:return bt;case Dt:return nt;case Ht:return kt;default:return e}}function On(e){let t=parseInt(e);if(isNaN(t))throw new Error("Invalid integer literal when parsing "+e);return t}var S,St,en,$,Ie,Ve,tn=Y({"node_modules/@angular/compiler/esm2015/src/expression_parser/lexer.js"(){L(),Jt(),function(e){e[e.Character=0]="Character",e[e.Identifier=1]="Identifier",e[e.PrivateIdentifier=2]="PrivateIdentifier",e[e.Keyword=3]="Keyword",e[e.String=4]="String",e[e.Operator=5]="Operator",e[e.Number=6]="Number",e[e.Error=7]="Error"}(S||(S={})),St=["var","let","as","null","undefined","true","false","if","else","this"],en=class{tokenize(e){let t=new Ve(e),n=[],r=t.scanToken();for(;r!=null;)n.push(r),r=t.scanToken();return n}},$=class{constructor(e,t,n,r,s){this.index=e,this.end=t,this.type=n,this.numValue=r,this.strValue=s}isCharacter(e){return this.type==S.Character&&this.numValue==e}isNumber(){return this.type==S.Number}isString(){return this.type==S.String}isOperator(e){return this.type==S.Operator&&this.strValue==e}isIdentifier(){return this.type==S.Identifier}isPrivateIdentifier(){return this.type==S.PrivateIdentifier}isKeyword(){return this.type==S.Keyword}isKeywordLet(){return this.type==S.Keyword&&this.strValue=="let"}isKeywordAs(){return this.type==S.Keyword&&this.strValue=="as"}isKeywordNull(){return this.type==S.Keyword&&this.strValue=="null"}isKeywordUndefined(){return this.type==S.Keyword&&this.strValue=="undefined"}isKeywordTrue(){return this.type==S.Keyword&&this.strValue=="true"}isKeywordFalse(){return this.type==S.Keyword&&this.strValue=="false"}isKeywordThis(){return this.type==S.Keyword&&this.strValue=="this"}isError(){return this.type==S.Error}toNumber(){return this.type==S.Number?this.numValue:-1}toString(){switch(this.type){case S.Character:case S.Identifier:case S.Keyword:case S.Operator:case S.PrivateIdentifier:case S.String:case S.Error:return this.strValue;case S.Number:return this.numValue.toString();default:return null}}},Ie=new $(-1,-1,S.Character,0,""),Ve=class{constructor(e){this.input=e,this.peek=0,this.index=-1,this.length=e.length,this.advance()}advance(){this.peek=++this.index>=this.length?Ce:this.input.charCodeAt(this.index)}scanToken(){let e=this.input,t=this.length,n=this.peek,r=this.index;for(;n<=rt;)if(++r>=t){n=Ce;break}else n=e.charCodeAt(r);if(this.peek=n,this.index=r,r>=t)return null;if(We(n))return this.scanIdentifier();if(Q(n))return this.scanNumber(r);let s=r;switch(n){case H:return this.advance(),Q(this.peek)?this.scanNumber(s):xt(s,this.index,H);case Ee:case z:case Be:case _e:case Ae:case ne:case ee:case X:case te:return this.scanCharacter(s,n);case at:case st:return this.scanString();case Rt:return this.scanPrivateIdentifier();case ot:case ct:case Bt:case Te:case Tt:case Wt:return this.scanOperator(s,String.fromCharCode(n));case Fe:return this.scanQuestion(s);case Kt:case Mt:return this.scanComplexOperator(s,String.fromCharCode(n),ie,"=");case Lt:case ie:return this.scanComplexOperator(s,String.fromCharCode(n),ie,"=",ie,"=");case je:return this.scanComplexOperator(s,"&",je,"&");case Ue:return this.scanComplexOperator(s,"|",Ue,"|");case dt:for(;mn(this.peek);)this.advance();return this.scanToken()}return this.advance(),this.error("Unexpected character [".concat(String.fromCharCode(n),"]"),0)}scanCharacter(e,t){return this.advance(),xt(e,this.index,t)}scanOperator(e,t){return this.advance(),Me(e,this.index,t)}scanComplexOperator(e,t,n,r,s,a){this.advance();let i=t;return this.peek==n&&(this.advance(),i+=r),s!=null&&this.peek==s&&(this.advance(),i+=a),Me(e,this.index,i)}scanIdentifier(){let e=this.index;for(this.advance();Ge(this.peek);)this.advance();let t=this.input.substring(e,this.index);return St.indexOf(t)>-1?wn(e,this.index,t):Sn(e,this.index,t)}scanPrivateIdentifier(){let e=this.index;if(this.advance(),!We(this.peek))return this.error("Invalid character [#]",-1);for(;Ge(this.peek);)this.advance();let t=this.input.substring(e,this.index);return yn(e,this.index,t)}scanNumber(e){let t=this.index===e,n=!1;for(this.advance();;){if(!Q(this.peek))if(this.peek===Ke){if(!Q(this.input.charCodeAt(this.index-1))||!Q(this.input.charCodeAt(this.index+1)))return this.error("Invalid numeric separator",0);n=!0}else if(this.peek===H)t=!1;else if(An(this.peek)){if(this.advance(),_n(this.peek)&&this.advance(),!Q(this.peek))return this.error("Invalid exponent",-1);t=!1}else break;this.advance()}let r=this.input.substring(e,this.index);n&&(r=r.replace(/_/g,""));let s=t?On(r):parseFloat(r);return Cn(e,this.index,s)}scanString(){let e=this.index,t=this.peek;this.advance();let n="",r=this.index,s=this.input;for(;this.peek!=t;)if(this.peek==Ut){n+=s.substring(r,this.index),this.advance();let i;if(this.peek=this.peek,this.peek==zt){let l=s.substring(this.index+1,this.index+5);if(/^[0-9a-f]+$/i.test(l))i=parseInt(l,16);else return this.error("Invalid unicode escape [\\u".concat(l,"]"),0);for(let h=0;h<5;h++)this.advance()}else i=In(this.peek),this.advance();n+=String.fromCharCode(i),r=this.index}else{if(this.peek==Ce)return this.error("Unterminated quote",0);this.advance()}let a=s.substring(r,this.index);return this.advance(),Pn(e,this.index,n+a)}scanQuestion(e){this.advance();let t="?";return(this.peek===Fe||this.peek===H)&&(t+=this.peek===H?".":"?",this.advance()),Me(e,this.index,t)}error(e,t){let n=this.index+t;return En(n,this.index,"Lexer Error: ".concat(e," at column ").concat(n," in expression [").concat(this.input,"]"))}}}});function kn(e,t){if(t!=null&&!(Array.isArray(t)&&t.length==2))throw new Error("Expected '".concat(e,"' to be an array, [start, end]."));if(t!=null){let n=t[0],r=t[1];nn.forEach(s=>{if(s.test(n)||s.test(r))throw new Error("['".concat(n,"', '").concat(r,"'] contains unusable interpolation symbol."))})}}var nn,Nn=Y({"node_modules/@angular/compiler/esm2015/src/assertions.js"(){L(),nn=[/^\s*$/,/[<>]/,/^[{}]$/,/&(#|[a-z])/i,/^\/\//]}}),$e,J,bn=Y({"node_modules/@angular/compiler/esm2015/src/ml_parser/interpolation_config.js"(){L(),Nn(),$e=class{constructor(e,t){this.start=e,this.end=t}static fromArray(e){return e?(kn("interpolation",e),new $e(e[0],e[1])):J}},J=new $e("{{","}}")}}),rn={};Xe(rn,{IvyParser:()=>sn,Parser:()=>De,SplitInterpolation:()=>qe,TemplateBindingParseResult:()=>Qe,_ParseAST:()=>D});var qe,Qe,De,sn,Z,D,yt,wt,Ln=Y({"node_modules/@angular/compiler/esm2015/src/expression_parser/parser.js"(){L(),Jt(),bn(),tt(),tn(),qe=class{constructor(e,t,n){this.strings=e,this.expressions=t,this.offsets=n}},Qe=class{constructor(e,t,n){this.templateBindings=e,this.warnings=t,this.errors=n}},De=class{constructor(e){this._lexer=e,this.errors=[],this.simpleExpressionChecker=yt}parseAction(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:J;this._checkNoInterpolation(e,t,r);let s=this._stripComments(e),a=this._lexer.tokenize(this._stripComments(e)),i=new D(e,t,n,a,s.length,!0,this.errors,e.length-s.length).parseChain();return new G(i,e,t,n,this.errors)}parseBinding(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:J,s=this._parseBindingAst(e,t,n,r);return new G(s,e,t,n,this.errors)}checkSimpleExpression(e){let t=new this.simpleExpressionChecker;return e.visit(t),t.errors}parseSimpleBinding(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:J,s=this._parseBindingAst(e,t,n,r),a=this.checkSimpleExpression(s);return a.length>0&&this._reportError("Host binding expression cannot contain ".concat(a.join(" ")),e,t),new G(s,e,t,n,this.errors)}_reportError(e,t,n,r){this.errors.push(new ae(e,t,n,r))}_parseBindingAst(e,t,n,r){let s=this._parseQuote(e,t,n);if(s!=null)return s;this._checkNoInterpolation(e,t,r);let a=this._stripComments(e),i=this._lexer.tokenize(a);return new D(e,t,n,i,a.length,!1,this.errors,e.length-a.length).parseChain()}_parseQuote(e,t,n){if(e==null)return null;let r=e.indexOf(":");if(r==-1)return null;let s=e.substring(0,r).trim();if(!Zt(s))return null;let a=e.substring(r+1),i=new V(0,e.length);return new Le(i,i.toAbsolute(n),s,a,t)}parseTemplateBindings(e,t,n,r,s){let a=this._lexer.tokenize(t);return new D(t,n,s,a,t.length,!1,this.errors,0).parseTemplateBindings({source:e,span:new U(r,r+e.length)})}parseInterpolation(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:J,{strings:s,expressions:a,offsets:i}=this.splitInterpolation(e,t,r);if(a.length===0)return null;let l=[];for(let h=0;h<a.length;++h){let P=a[h].text,p=this._stripComments(P),x=this._lexer.tokenize(p),A=new D(e,t,n,x,p.length,!1,this.errors,i[h]+(P.length-p.length)).parseChain();l.push(A)}return this.createInterpolationAst(s.map(h=>h.text),l,e,t,n)}parseInterpolationExpression(e,t,n){let r=this._stripComments(e),s=this._lexer.tokenize(r),a=new D(e,t,n,s,r.length,!1,this.errors,0).parseChain(),i=["",""];return this.createInterpolationAst(i,[a],e,t,n)}createInterpolationAst(e,t,n,r,s){let a=new V(0,n.length),i=new me(a,a.toAbsolute(s),e,t);return new G(i,n,r,s,this.errors)}splitInterpolation(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:J,r=[],s=[],a=[],i=0,l=!1,h=!1,{start:P,end:p}=n;for(;i<e.length;)if(l){let x=i,A=x+P.length,b=this._getInterpolationEndIndex(e,p,A);if(b===-1){l=!1,h=!0;break}let _=b+p.length,R=e.substring(A,b);R.trim().length===0&&this._reportError("Blank expressions are not allowed in interpolated strings",e,"at column ".concat(i," in"),t),s.push({text:R,start:x,end:_}),a.push(A),i=_,l=!1}else{let x=i;i=e.indexOf(P,i),i===-1&&(i=e.length);let A=e.substring(x,i);r.push({text:A,start:x,end:i}),l=!0}if(!l)if(h){let x=r[r.length-1];x.text+=e.substring(i),x.end=e.length}else r.push({text:e.substring(i),start:i,end:e.length});return new qe(r,s,a)}wrapLiteralPrimitive(e,t,n){let r=new V(0,e==null?0:e.length);return new G(new B(r,r.toAbsolute(n),e),e,t,n,this.errors)}_stripComments(e){let t=this._commentStart(e);return t!=null?e.substring(0,t).trim():e}_commentStart(e){let t=null;for(let n=0;n<e.length-1;n++){let r=e.charCodeAt(n),s=e.charCodeAt(n+1);if(r===Te&&s==Te&&t==null)return n;t===r?t=null:t==null&&mt(r)&&(t=r)}return null}_checkNoInterpolation(e,t,n){let{start:r,end:s}=n,a=-1,i=-1;for(let l of this._forEachUnquotedChar(e,0))if(a===-1)e.startsWith(r)&&(a=l);else if(i=this._getInterpolationEndIndex(e,s,l),i>-1)break;a>-1&&i>-1&&this._reportError("Got interpolation (".concat(r).concat(s,") where expression was expected"),e,"at column ".concat(a," in"),t)}_getInterpolationEndIndex(e,t,n){for(let r of this._forEachUnquotedChar(e,n)){if(e.startsWith(t,r))return r;if(e.startsWith("//",r))return e.indexOf(t,r)}return-1}*_forEachUnquotedChar(e,t){let n=null,r=0;for(let s=t;s<e.length;s++){let a=e[s];mt(e.charCodeAt(s))&&(n===null||n===a)&&r%2===0?n=n===null?a:null:n===null&&(yield s),r=a==="\\"?r+1:0}}},sn=class extends De{constructor(){super(...arguments),this.simpleExpressionChecker=wt}},function(e){e[e.None=0]="None",e[e.Writable=1]="Writable"}(Z||(Z={})),D=class{constructor(e,t,n,r,s,a,i,l){this.input=e,this.location=t,this.absoluteOffset=n,this.tokens=r,this.inputLength=s,this.parseAction=a,this.errors=i,this.offset=l,this.rparensExpected=0,this.rbracketsExpected=0,this.rbracesExpected=0,this.context=Z.None,this.sourceSpanCache=new Map,this.index=0}peek(e){let t=this.index+e;return t<this.tokens.length?this.tokens[t]:Ie}get next(){return this.peek(0)}get atEOF(){return this.index>=this.tokens.length}get inputIndex(){return this.atEOF?this.currentEndIndex:this.next.index+this.offset}get currentEndIndex(){return this.index>0?this.peek(-1).end+this.offset:this.tokens.length===0?this.inputLength+this.offset:this.next.index+this.offset}get currentAbsoluteOffset(){return this.absoluteOffset+this.inputIndex}span(e,t){let n=this.currentEndIndex;if(t!==void 0&&t>this.currentEndIndex&&(n=t),e>n){let r=n;n=e,e=r}return new V(e,n)}sourceSpan(e,t){let n="".concat(e,"@").concat(this.inputIndex,":").concat(t);return this.sourceSpanCache.has(n)||this.sourceSpanCache.set(n,this.span(e,t).toAbsolute(this.absoluteOffset)),this.sourceSpanCache.get(n)}advance(){this.index++}withContext(e,t){this.context|=e;let n=t();return this.context^=e,n}consumeOptionalCharacter(e){return this.next.isCharacter(e)?(this.advance(),!0):!1}peekKeywordLet(){return this.next.isKeywordLet()}peekKeywordAs(){return this.next.isKeywordAs()}expectCharacter(e){this.consumeOptionalCharacter(e)||this.error("Missing expected ".concat(String.fromCharCode(e)))}consumeOptionalOperator(e){return this.next.isOperator(e)?(this.advance(),!0):!1}expectOperator(e){this.consumeOptionalOperator(e)||this.error("Missing expected operator ".concat(e))}prettyPrintToken(e){return e===Ie?"end of input":"token ".concat(e)}expectIdentifierOrKeyword(){let e=this.next;return!e.isIdentifier()&&!e.isKeyword()?(e.isPrivateIdentifier()?this._reportErrorForPrivateIdentifier(e,"expected identifier or keyword"):this.error("Unexpected ".concat(this.prettyPrintToken(e),", expected identifier or keyword")),null):(this.advance(),e.toString())}expectIdentifierOrKeywordOrString(){let e=this.next;return!e.isIdentifier()&&!e.isKeyword()&&!e.isString()?(e.isPrivateIdentifier()?this._reportErrorForPrivateIdentifier(e,"expected identifier, keyword or string"):this.error("Unexpected ".concat(this.prettyPrintToken(e),", expected identifier, keyword, or string")),""):(this.advance(),e.toString())}parseChain(){let e=[],t=this.inputIndex;for(;this.index<this.tokens.length;){let n=this.parsePipe();if(e.push(n),this.consumeOptionalCharacter(te))for(this.parseAction||this.error("Binding expression cannot contain chained expression");this.consumeOptionalCharacter(te););else this.index<this.tokens.length&&this.error("Unexpected token '".concat(this.next,"'"))}if(e.length==0){let n=this.offset,r=this.offset+this.inputLength;return new M(this.span(n,r),this.sourceSpan(n,r))}return e.length==1?e[0]:new oe(this.span(t),this.sourceSpan(t),e)}parsePipe(){let e=this.inputIndex,t=this.parseExpression();if(this.consumeOptionalOperator("|")){this.parseAction&&this.error("Cannot have a pipe in an action expression");do{let n=this.inputIndex,r=this.expectIdentifierOrKeyword(),s,a;r!==null?s=this.sourceSpan(n):(r="",a=this.next.index!==-1?this.next.index:this.inputLength+this.offset,s=new V(a,a).toAbsolute(this.absoluteOffset));let i=[];for(;this.consumeOptionalCharacter(X);)i.push(this.parseExpression());t=new fe(this.span(e),this.sourceSpan(e,a),t,r,i,s)}while(this.consumeOptionalOperator("|"))}return t}parseExpression(){return this.parseConditional()}parseConditional(){let e=this.inputIndex,t=this.parseLogicalOr();if(this.consumeOptionalOperator("?")){let n=this.parsePipe(),r;if(this.consumeOptionalCharacter(X))r=this.parsePipe();else{let s=this.inputIndex,a=this.input.substring(e,s);this.error("Conditional expression ".concat(a," requires all 3 expressions")),r=new M(this.span(e),this.sourceSpan(e))}return new ce(this.span(e),this.sourceSpan(e),t,n,r)}else return t}parseLogicalOr(){let e=this.inputIndex,t=this.parseLogicalAnd();for(;this.consumeOptionalOperator("||");){let n=this.parseLogicalAnd();t=new K(this.span(e),this.sourceSpan(e),"||",t,n)}return t}parseLogicalAnd(){let e=this.inputIndex,t=this.parseNullishCoalescing();for(;this.consumeOptionalOperator("&&");){let n=this.parseNullishCoalescing();t=new K(this.span(e),this.sourceSpan(e),"&&",t,n)}return t}parseNullishCoalescing(){let e=this.inputIndex,t=this.parseEquality();for(;this.consumeOptionalOperator("??");){let n=this.parseEquality();t=new K(this.span(e),this.sourceSpan(e),"??",t,n)}return t}parseEquality(){let e=this.inputIndex,t=this.parseRelational();for(;this.next.type==S.Operator;){let n=this.next.strValue;switch(n){case"==":case"===":case"!=":case"!==":this.advance();let r=this.parseRelational();t=new K(this.span(e),this.sourceSpan(e),n,t,r);continue}break}return t}parseRelational(){let e=this.inputIndex,t=this.parseAdditive();for(;this.next.type==S.Operator;){let n=this.next.strValue;switch(n){case"<":case">":case"<=":case">=":this.advance();let r=this.parseAdditive();t=new K(this.span(e),this.sourceSpan(e),n,t,r);continue}break}return t}parseAdditive(){let e=this.inputIndex,t=this.parseMultiplicative();for(;this.next.type==S.Operator;){let n=this.next.strValue;switch(n){case"+":case"-":this.advance();let r=this.parseMultiplicative();t=new K(this.span(e),this.sourceSpan(e),n,t,r);continue}break}return t}parseMultiplicative(){let e=this.inputIndex,t=this.parsePrefix();for(;this.next.type==S.Operator;){let n=this.next.strValue;switch(n){case"*":case"%":case"/":this.advance();let r=this.parsePrefix();t=new K(this.span(e),this.sourceSpan(e),n,t,r);continue}break}return t}parsePrefix(){if(this.next.type==S.Operator){let e=this.inputIndex,t=this.next.strValue,n;switch(t){case"+":return this.advance(),n=this.parsePrefix(),F.createPlus(this.span(e),this.sourceSpan(e),n);case"-":return this.advance(),n=this.parsePrefix(),F.createMinus(this.span(e),this.sourceSpan(e),n);case"!":return this.advance(),n=this.parsePrefix(),new xe(this.span(e),this.sourceSpan(e),n)}}return this.parseCallChain()}parseCallChain(){let e=this.inputIndex,t=this.parsePrimary();for(;;)if(this.consumeOptionalCharacter(H))t=this.parseAccessMemberOrMethodCall(t,e,!1);else if(this.consumeOptionalOperator("?."))t=this.consumeOptionalCharacter(Ae)?this.parseKeyedReadOrWrite(t,e,!0):this.parseAccessMemberOrMethodCall(t,e,!0);else if(this.consumeOptionalCharacter(Ae))t=this.parseKeyedReadOrWrite(t,e,!1);else if(this.consumeOptionalCharacter(Ee)){this.rparensExpected++;let n=this.parseCallArguments();this.rparensExpected--,this.expectCharacter(z),t=new Pe(this.span(e),this.sourceSpan(e),t,n)}else if(this.consumeOptionalOperator("!"))t=new Se(this.span(e),this.sourceSpan(e),t);else return t}parsePrimary(){let e=this.inputIndex;if(this.consumeOptionalCharacter(Ee)){this.rparensExpected++;let t=this.parsePipe();return this.rparensExpected--,this.expectCharacter(z),t}else{if(this.next.isKeywordNull())return this.advance(),new B(this.span(e),this.sourceSpan(e),null);if(this.next.isKeywordUndefined())return this.advance(),new B(this.span(e),this.sourceSpan(e),void 0);if(this.next.isKeywordTrue())return this.advance(),new B(this.span(e),this.sourceSpan(e),!0);if(this.next.isKeywordFalse())return this.advance(),new B(this.span(e),this.sourceSpan(e),!1);if(this.next.isKeywordThis())return this.advance(),new Ye(this.span(e),this.sourceSpan(e));if(this.consumeOptionalCharacter(Ae)){this.rbracketsExpected++;let t=this.parseExpressionList(ne);return this.rbracketsExpected--,this.expectCharacter(ne),new ge(this.span(e),this.sourceSpan(e),t)}else{if(this.next.isCharacter(Be))return this.parseLiteralMap();if(this.next.isIdentifier())return this.parseAccessMemberOrMethodCall(new Oe(this.span(e),this.sourceSpan(e)),e,!1);if(this.next.isNumber()){let t=this.next.toNumber();return this.advance(),new B(this.span(e),this.sourceSpan(e),t)}else if(this.next.isString()){let t=this.next.toString();return this.advance(),new B(this.span(e),this.sourceSpan(e),t)}else return this.next.isPrivateIdentifier()?(this._reportErrorForPrivateIdentifier(this.next,null),new M(this.span(e),this.sourceSpan(e))):this.index>=this.tokens.length?(this.error("Unexpected end of expression: ".concat(this.input)),new M(this.span(e),this.sourceSpan(e))):(this.error("Unexpected token ".concat(this.next)),new M(this.span(e),this.sourceSpan(e)))}}}parseExpressionList(e){let t=[];do if(!this.next.isCharacter(e))t.push(this.parsePipe());else break;while(this.consumeOptionalCharacter(ee));return t}parseLiteralMap(){let e=[],t=[],n=this.inputIndex;if(this.expectCharacter(Be),!this.consumeOptionalCharacter(_e)){this.rbracesExpected++;do{let r=this.inputIndex,s=this.next.isString(),a=this.expectIdentifierOrKeywordOrString();if(e.push({key:a,quoted:s}),s)this.expectCharacter(X),t.push(this.parsePipe());else if(this.consumeOptionalCharacter(X))t.push(this.parsePipe());else{let i=this.span(r),l=this.sourceSpan(r);t.push(new re(i,l,l,new Oe(i,l),a))}}while(this.consumeOptionalCharacter(ee));this.rbracesExpected--,this.expectCharacter(_e)}return new ve(this.span(n),this.sourceSpan(n),e,t)}parseAccessMemberOrMethodCall(e,t,n){let r=this.inputIndex,s=this.withContext(Z.Writable,()=>{var i;let l=(i=this.expectIdentifierOrKeyword())!==null&&i!==void 0?i:"";return l.length===0&&this.error("Expected identifier for property access",e.span.end),l}),a=this.sourceSpan(r);if(this.consumeOptionalCharacter(Ee)){let i=this.inputIndex;this.rparensExpected++;let l=this.parseCallArguments(),h=this.span(i,this.inputIndex).toAbsolute(this.absoluteOffset);this.expectCharacter(z),this.rparensExpected--;let P=this.span(t),p=this.sourceSpan(t);return n?new we(P,p,a,e,s,l,h):new ye(P,p,a,e,s,l,h)}else{if(n)return this.consumeOptionalOperator("=")?(this.error("The '?.' operator cannot be used in the assignment"),new M(this.span(t),this.sourceSpan(t))):new he(this.span(t),this.sourceSpan(t),a,e,s);if(this.consumeOptionalOperator("=")){if(!this.parseAction)return this.error("Bindings cannot contain assignments"),new M(this.span(t),this.sourceSpan(t));let i=this.parseConditional();return new ue(this.span(t),this.sourceSpan(t),a,e,s,i)}else return new re(this.span(t),this.sourceSpan(t),a,e,s)}}parseCallArguments(){if(this.next.isCharacter(z))return[];let e=[];do e.push(this.parsePipe());while(this.consumeOptionalCharacter(ee));return e}expectTemplateBindingKey(){let e="",t=!1,n=this.currentAbsoluteOffset;do e+=this.expectIdentifierOrKeywordOrString(),t=this.consumeOptionalOperator("-"),t&&(e+="-");while(t);return{source:e,span:new U(n,n+e.length)}}parseTemplateBindings(e){let t=[];for(t.push(...this.parseDirectiveKeywordBindings(e));this.index<this.tokens.length;){let n=this.parseLetBinding();if(n)t.push(n);else{let r=this.expectTemplateBindingKey(),s=this.parseAsBinding(r);s?t.push(s):(r.source=e.source+r.source.charAt(0).toUpperCase()+r.source.substring(1),t.push(...this.parseDirectiveKeywordBindings(r)))}this.consumeStatementTerminator()}return new Qe(t,[],this.errors)}parseKeyedReadOrWrite(e,t,n){return this.withContext(Z.Writable,()=>{this.rbracketsExpected++;let r=this.parsePipe();if(r instanceof M&&this.error("Key access cannot be empty"),this.rbracketsExpected--,this.expectCharacter(ne),this.consumeOptionalOperator("="))if(n)this.error("The '?.' operator cannot be used in the assignment");else{let s=this.parseConditional();return new de(this.span(t),this.sourceSpan(t),e,r,s)}else return n?new pe(this.span(t),this.sourceSpan(t),e,r):new le(this.span(t),this.sourceSpan(t),e,r);return new M(this.span(t),this.sourceSpan(t))})}parseDirectiveKeywordBindings(e){let t=[];this.consumeOptionalCharacter(X);let n=this.getDirectiveBoundTarget(),r=this.currentAbsoluteOffset,s=this.parseAsBinding(e);s||(this.consumeStatementTerminator(),r=this.currentAbsoluteOffset);let a=new U(e.span.start,r);return t.push(new Ze(a,e,n)),s&&t.push(s),t}getDirectiveBoundTarget(){if(this.next===Ie||this.peekKeywordAs()||this.peekKeywordLet())return null;let e=this.parsePipe(),{start:t,end:n}=e.span,r=this.input.substring(t,n);return new G(e,r,this.location,this.absoluteOffset+t,this.errors)}parseAsBinding(e){if(!this.peekKeywordAs())return null;this.advance();let t=this.expectTemplateBindingKey();this.consumeStatementTerminator();let n=new U(e.span.start,this.currentAbsoluteOffset);return new Re(n,t,e)}parseLetBinding(){if(!this.peekKeywordLet())return null;let e=this.currentAbsoluteOffset;this.advance();let t=this.expectTemplateBindingKey(),n=null;this.consumeOptionalOperator("=")&&(n=this.expectTemplateBindingKey()),this.consumeStatementTerminator();let r=new U(e,this.currentAbsoluteOffset);return new Re(r,t,n)}consumeStatementTerminator(){this.consumeOptionalCharacter(te)||this.consumeOptionalCharacter(ee)}error(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;this.errors.push(new ae(e,this.input,this.locationText(t),this.location)),this.skip()}locationText(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null;return e==null&&(e=this.index),e<this.tokens.length?"at column ".concat(this.tokens[e].index+1," in"):"at the end of the expression"}_reportErrorForPrivateIdentifier(e,t){let n="Private identifiers are not supported. Unexpected private identifier: ".concat(e);t!==null&&(n+=", ".concat(t)),this.error(n)}skip(){let e=this.next;for(;this.index<this.tokens.length&&!e.isCharacter(te)&&!e.isOperator("|")&&(this.rparensExpected<=0||!e.isCharacter(z))&&(this.rbracesExpected<=0||!e.isCharacter(_e))&&(this.rbracketsExpected<=0||!e.isCharacter(ne))&&(!(this.context&Z.Writable)||!e.isOperator("="));)this.next.isError()&&this.errors.push(new ae(this.next.toString(),this.input,this.locationText(),this.location)),this.advance(),e=this.next}},yt=class{constructor(){this.errors=[]}visitImplicitReceiver(e,t){}visitThisReceiver(e,t){}visitInterpolation(e,t){}visitLiteralPrimitive(e,t){}visitPropertyRead(e,t){}visitPropertyWrite(e,t){}visitSafePropertyRead(e,t){}visitMethodCall(e,t){}visitSafeMethodCall(e,t){}visitFunctionCall(e,t){}visitLiteralArray(e,t){this.visitAll(e.expressions,t)}visitLiteralMap(e,t){this.visitAll(e.values,t)}visitUnary(e,t){}visitBinary(e,t){}visitPrefixNot(e,t){}visitNonNullAssert(e,t){}visitConditional(e,t){}visitPipe(e,t){this.errors.push("pipes")}visitKeyedRead(e,t){}visitKeyedWrite(e,t){}visitAll(e,t){return e.map(n=>n.visit(this,t))}visitChain(e,t){}visitQuote(e,t){}visitSafeKeyedRead(e,t){}},wt=class extends et{constructor(){super(...arguments),this.errors=[]}visitPipe(){this.errors.push("pipes")}}}}),ft=q({"node_modules/angular-estree-parser/lib/utils.js"(e){"use strict";L(),Object.defineProperty(e,"__esModule",{value:!0}),e.getLast=e.toLowerCamelCase=e.findBackChar=e.findFrontChar=e.fitSpans=e.getNgType=e.parseNgInterpolation=e.parseNgTemplateBindings=e.parseNgAction=e.parseNgSimpleBinding=e.parseNgBinding=e.NG_PARSE_TEMPLATE_BINDINGS_FAKE_PREFIX=void 0;var t=(tt(),be(Je)),n=(tn(),be(Yt)),r=(Ln(),be(rn)),s="angular-estree-parser";e.NG_PARSE_TEMPLATE_BINDINGS_FAKE_PREFIX="NgEstreeParser";var a=0,i=[s,a];function l(){return new r.Parser(new n.Lexer)}function h(o,d){let y=l(),{astInput:C,comments:E}=T(o,y),{ast:I,errors:j}=d(C,y);return R(j),{ast:I,comments:E}}function P(o){return h(o,(d,y)=>y.parseBinding(d,...i))}e.parseNgBinding=P;function p(o){return h(o,(d,y)=>y.parseSimpleBinding(d,...i))}e.parseNgSimpleBinding=p;function x(o){return h(o,(d,y)=>y.parseAction(d,...i))}e.parseNgAction=x;function A(o){let d=l(),{templateBindings:y,errors:C}=d.parseTemplateBindings(e.NG_PARSE_TEMPLATE_BINDINGS_FAKE_PREFIX,o,s,a,a);return R(C),y}e.parseNgTemplateBindings=A;function b(o){let d=l(),{astInput:y,comments:C}=T(o,d),E="{{",I="}}",{ast:j,errors:cn}=d.parseInterpolation(E+y+I,...i);R(cn);let gt=j.expressions[0],vt=new Set;return _(gt,ke=>{vt.has(ke)||(ke.start-=E.length,ke.end-=E.length,vt.add(ke))}),{ast:gt,comments:C}}e.parseNgInterpolation=b;function _(o,d){if(!(!o||typeof o!="object")){if(Array.isArray(o))return o.forEach(y=>_(y,d));for(let y of Object.keys(o)){let C=o[y];y==="span"?d(C):_(C,d)}}}function R(o){if(o.length!==0){let[{message:d}]=o;throw new SyntaxError(d.replace(/^Parser Error: | at column \d+ in [^]*$/g,""))}}function T(o,d){let y=d._commentStart(o);return y===null?{astInput:o,comments:[]}:{astInput:o.slice(0,y),comments:[{type:"Comment",value:o.slice(y+2),span:{start:y,end:o.length}}]}}function O(o){return t.Unary&&o instanceof t.Unary?"Unary":o instanceof t.Binary?"Binary":o instanceof t.BindingPipe?"BindingPipe":o instanceof t.Chain?"Chain":o instanceof t.Conditional?"Conditional":o instanceof t.EmptyExpr?"EmptyExpr":o instanceof t.FunctionCall?"FunctionCall":o instanceof t.ImplicitReceiver?"ImplicitReceiver":o instanceof t.KeyedRead?"KeyedRead":o instanceof t.KeyedWrite?"KeyedWrite":o instanceof t.LiteralArray?"LiteralArray":o instanceof t.LiteralMap?"LiteralMap":o instanceof t.LiteralPrimitive?"LiteralPrimitive":o instanceof t.MethodCall?"MethodCall":o instanceof t.NonNullAssert?"NonNullAssert":o instanceof t.PrefixNot?"PrefixNot":o instanceof t.PropertyRead?"PropertyRead":o instanceof t.PropertyWrite?"PropertyWrite":o instanceof t.Quote?"Quote":o instanceof t.SafeMethodCall?"SafeMethodCall":o instanceof t.SafePropertyRead?"SafePropertyRead":o.type}e.getNgType=O;function N(o,d){let{start:y,end:C}=o,E=y,I=C;for(;I!==E&&/\s/.test(d[I-1]);)I--;for(;E!==I&&/\s/.test(d[E]);)E++;return{start:E,end:I}}function c(o,d){let{start:y,end:C}=o,E=y,I=C;for(;I!==d.length&&/\s/.test(d[I]);)I++;for(;E!==0&&/\s/.test(d[E-1]);)E--;return{start:E,end:I}}function g(o,d){return d[o.start-1]==="("&&d[o.end]===")"?{start:o.start-1,end:o.end+1}:o}function u(o,d,y){let C=0,E={start:o.start,end:o.end};for(;;){let I=c(E,d),j=g(I,d);if(I.start===j.start&&I.end===j.end)break;E.start=j.start,E.end=j.end,C++}return{hasParens:(y?C-1:C)!==0,outerSpan:N(y?{start:E.start+1,end:E.end-1}:E,d),innerSpan:N(o,d)}}e.fitSpans=u;function v(o,d,y){let C=d;for(;!o.test(y[C]);)if(--C<0)throw new Error("Cannot find front char ".concat(o," from index ").concat(d," in ").concat(JSON.stringify(y)));return C}e.findFrontChar=v;function m(o,d,y){let C=d;for(;!o.test(y[C]);)if(++C>=y.length)throw new Error("Cannot find back char ".concat(o," from index ").concat(d," in ").concat(JSON.stringify(y)));return C}e.findBackChar=m;function f(o){return o.slice(0,1).toLowerCase()+o.slice(1)}e.toLowerCamelCase=f;function w(o){return o.length===0?void 0:o[o.length-1]}e.getLast=w}}),an=q({"node_modules/angular-estree-parser/lib/transform.js"(e){"use strict";L(),Object.defineProperty(e,"__esModule",{value:!0}),e.transformSpan=e.transform=void 0;var t=ft(),n=function(s,a){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,l=t.getNgType(s);switch(l){case"Unary":{let{operator:c,expr:g}=s,u=h(g);return p("UnaryExpression",{prefix:!0,argument:u,operator:c},s.span,{hasParentParens:i})}case"Binary":{let{left:c,operation:g,right:u}=s,v=u.span.start===u.span.end,m=c.span.start===c.span.end;if(v||m){let o=c.span.start===c.span.end?h(u):h(c);return p("UnaryExpression",{prefix:!0,argument:o,operator:v?"+":"-"},{start:s.span.start,end:N(o)},{hasParentParens:i})}let f=h(c),w=h(u);return p(g==="&&"||g==="||"?"LogicalExpression":"BinaryExpression",{left:f,right:w,operator:g},{start:O(f),end:N(w)},{hasParentParens:i})}case"BindingPipe":{let{exp:c,name:g,args:u}=s,v=h(c),m=b(/\S/,b(/\|/,N(v))+1),f=p("Identifier",{name:g},{start:m,end:m+g.length}),w=u.map(h);return p("NGPipeExpression",{left:v,right:f,arguments:w},{start:O(v),end:N(w.length===0?f:t.getLast(w))},{hasParentParens:i})}case"Chain":{let{expressions:c}=s;return p("NGChainedExpression",{expressions:c.map(h)},s.span,{hasParentParens:i})}case"Comment":{let{value:c}=s;return p("CommentLine",{value:c},s.span,{processSpan:!1})}case"Conditional":{let{condition:c,trueExp:g,falseExp:u}=s,v=h(c),m=h(g),f=h(u);return p("ConditionalExpression",{test:v,consequent:m,alternate:f},{start:O(v),end:N(f)},{hasParentParens:i})}case"EmptyExpr":return p("NGEmptyExpression",{},s.span,{hasParentParens:i});case"FunctionCall":{let{target:c,args:g}=s,u=g.length===1?[P(g[0])]:g.map(h),v=h(c);return p("CallExpression",{callee:v,arguments:u},{start:O(v),end:s.span.end},{hasParentParens:i})}case"ImplicitReceiver":return p("ThisExpression",{},s.span,{hasParentParens:i});case"KeyedRead":{let{key:c}=s,g=Object.prototype.hasOwnProperty.call(s,"receiver")?s.receiver:s.obj,u=h(c);return x(g,u,{computed:!0,optional:!1},{end:s.span.end,hasParentParens:i})}case"LiteralArray":{let{expressions:c}=s;return p("ArrayExpression",{elements:c.map(h)},s.span,{hasParentParens:i})}case"LiteralMap":{let{keys:c,values:g}=s,u=g.map(m=>h(m)),v=c.map((m,f)=>{let{key:w,quoted:o}=m,d=u[f],y=b(/\S/,f===0?s.span.start+1:b(/,/,N(u[f-1]))+1),C=A(/\S/,A(/:/,O(d)-1)-1)+1,E={start:y,end:C},I=o?p("StringLiteral",{value:w},E):p("Identifier",{name:w},E),j=I.end<I.start;return p("ObjectProperty",{key:I,value:d,method:!1,shorthand:j,computed:!1},{start:O(I),end:N(d)})});return p("ObjectExpression",{properties:v},s.span,{hasParentParens:i})}case"LiteralPrimitive":{let{value:c}=s;switch(typeof c){case"boolean":return p("BooleanLiteral",{value:c},s.span,{hasParentParens:i});case"number":return p("NumericLiteral",{value:c},s.span,{hasParentParens:i});case"object":return p("NullLiteral",{},s.span,{hasParentParens:i});case"string":return p("StringLiteral",{value:c},s.span,{hasParentParens:i});case"undefined":return p("Identifier",{name:"undefined"},s.span,{hasParentParens:i});default:throw new Error("Unexpected LiteralPrimitive value type ".concat(typeof c))}}case"MethodCall":case"SafeMethodCall":{let c=l==="SafeMethodCall",{receiver:g,name:u,args:v}=s,m=v.length===1?[P(v[0])]:v.map(h),f=A(/\S/,A(/\(/,(m.length===0?A(/\)/,s.span.end-1):O(m[0]))-1)-1)+1,w=p("Identifier",{name:u},{start:f-u.length,end:f}),o=x(g,w,{computed:!1,optional:c}),d=R(o);return p(c||d?"OptionalCallExpression":"CallExpression",{callee:o,arguments:m},{start:O(o),end:s.span.end},{hasParentParens:i})}case"NonNullAssert":{let{expression:c}=s,g=h(c);return p("TSNonNullExpression",{expression:g},{start:O(g),end:s.span.end},{hasParentParens:i})}case"PrefixNot":{let{expression:c}=s,g=h(c);return p("UnaryExpression",{prefix:!0,operator:"!",argument:g},{start:s.span.start,end:N(g)},{hasParentParens:i})}case"PropertyRead":case"SafePropertyRead":{let c=l==="SafePropertyRead",{receiver:g,name:u}=s,v=A(/\S/,s.span.end-1)+1,m=p("Identifier",{name:u},{start:v-u.length,end:v},_(g)?{hasParentParens:i}:{});return x(g,m,{computed:!1,optional:c},{hasParentParens:i})}case"KeyedWrite":{let{key:c,value:g}=s,u=Object.prototype.hasOwnProperty.call(s,"receiver")?s.receiver:s.obj,v=h(c),m=h(g),f=x(u,v,{computed:!0,optional:!1},{end:b(/\]/,N(v))+1});return p("AssignmentExpression",{left:f,operator:"=",right:m},{start:O(f),end:N(m)},{hasParentParens:i})}case"PropertyWrite":{let{receiver:c,name:g,value:u}=s,v=h(u),m=A(/\S/,A(/=/,O(v)-1)-1)+1,f=p("Identifier",{name:g},{start:m-g.length,end:m}),w=x(c,f,{computed:!1,optional:!1});return p("AssignmentExpression",{left:w,operator:"=",right:v},{start:O(w),end:N(v)},{hasParentParens:i})}case"Quote":{let{prefix:c,uninterpretedExpression:g}=s;return p("NGQuotedExpression",{prefix:c,value:g},s.span,{hasParentParens:i})}default:throw new Error("Unexpected node ".concat(l))}function h(c){return e.transform(c,a)}function P(c){return e.transform(c,a,!0)}function p(c,g,u){let{processSpan:v=!0,hasParentParens:m=!1}=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},f=Object.assign(Object.assign({type:c},r(u,a,v,m)),g);switch(c){case"Identifier":{let w=f;w.loc.identifierName=w.name;break}case"NumericLiteral":{let w=f;w.extra=Object.assign(Object.assign({},w.extra),{raw:a.text.slice(w.start,w.end),rawValue:w.value});break}case"StringLiteral":{let w=f;w.extra=Object.assign(Object.assign({},w.extra),{raw:a.text.slice(w.start,w.end),rawValue:w.value});break}}return f}function x(c,g,u){let{end:v=N(g),hasParentParens:m=!1}=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};if(_(c)||c.span.start===g.start)return g;let f=h(c),w=R(f);return p(u.optional||w?"OptionalMemberExpression":"MemberExpression",Object.assign({object:f,property:g,computed:u.computed},u.optional?{optional:!0}:w?{optional:!1}:null),{start:O(f),end:v},{hasParentParens:m})}function A(c,g){return t.findFrontChar(c,g,a.text)}function b(c,g){return t.findBackChar(c,g,a.text)}function _(c){return c.span.start>=c.span.end||/^\s+$/.test(a.text.slice(c.span.start,c.span.end))}function R(c){return(c.type==="OptionalCallExpression"||c.type==="OptionalMemberExpression")&&!T(c)}function T(c){return c.extra&&c.extra.parenthesized}function O(c){return T(c)?c.extra.parenStart:c.start}function N(c){return T(c)?c.extra.parenEnd:c.end}};e.transform=n;function r(s,a){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,l=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(!i){let{start:x,end:A}=s;return{start:x,end:A,loc:{start:a.locator.locationForIndex(x),end:a.locator.locationForIndex(A)}}}let{outerSpan:h,innerSpan:P,hasParens:p}=t.fitSpans(s,a.text,l);return Object.assign({start:P.start,end:P.end,loc:{start:a.locator.locationForIndex(P.start),end:a.locator.locationForIndex(P.end)}},p&&{extra:{parenthesized:!0,parenStart:h.start,parenEnd:h.end}})}e.transformSpan=r}}),Rn=q({"node_modules/angular-estree-parser/lib/transform-microsyntax.js"(e){"use strict";L(),Object.defineProperty(e,"__esModule",{value:!0}),e.transformTemplateBindings=void 0;var t=(tt(),be(Je)),n=an(),r=ft();function s(a,i){a.forEach(N);let[l]=a,{key:h}=l,P=i.text.slice(l.sourceSpan.start,l.sourceSpan.end).trim().length===0?a.slice(1):a,p=[],x=null;for(let u=0;u<P.length;u++){let v=P[u];if(x&&T(x)&&O(v)&&v.value&&v.value.source===x.key.source){let m=_("NGMicrosyntaxKey",{name:v.key.source},v.key.span),f=(d,y)=>Object.assign(Object.assign({},d),n.transformSpan({start:d.start,end:y},i)),w=d=>Object.assign(Object.assign({},f(d,m.end)),{alias:m}),o=p.pop();if(o.type==="NGMicrosyntaxExpression")p.push(w(o));else if(o.type==="NGMicrosyntaxKeyedExpression"){let d=w(o.expression);p.push(f(Object.assign(Object.assign({},o),{expression:d}),d.end))}else throw new Error("Unexpected type ".concat(o.type))}else p.push(A(v,u));x=v}return _("NGMicrosyntax",{body:p},p.length===0?a[0].sourceSpan:{start:p[0].start,end:p[p.length-1].end});function A(u,v){if(T(u)){let{key:m,value:f}=u;return f?v===0?_("NGMicrosyntaxExpression",{expression:b(f.ast),alias:null},f.sourceSpan):_("NGMicrosyntaxKeyedExpression",{key:_("NGMicrosyntaxKey",{name:R(m.source)},m.span),expression:_("NGMicrosyntaxExpression",{expression:b(f.ast),alias:null},f.sourceSpan)},{start:m.span.start,end:f.sourceSpan.end}):_("NGMicrosyntaxKey",{name:R(m.source)},m.span)}else{let{key:m,sourceSpan:f}=u;if(/^let\s$/.test(i.text.slice(f.start,f.start+4))){let{value:o}=u;return _("NGMicrosyntaxLet",{key:_("NGMicrosyntaxKey",{name:m.source},m.span),value:o?_("NGMicrosyntaxKey",{name:o.source},o.span):null},{start:f.start,end:o?o.span.end:m.span.end})}else{let o=g(u);return _("NGMicrosyntaxAs",{key:_("NGMicrosyntaxKey",{name:o.source},o.span),alias:_("NGMicrosyntaxKey",{name:m.source},m.span)},{start:o.span.start,end:m.span.end})}}}function b(u){return n.transform(u,i)}function _(u,v,m){let f=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0;return Object.assign(Object.assign({type:u},n.transformSpan(m,i,f)),v)}function R(u){return r.toLowerCamelCase(u.slice(h.source.length))}function T(u){return u instanceof t.ExpressionBinding}function O(u){return u instanceof t.VariableBinding}function N(u){c(u.key.span),O(u)&&u.value&&c(u.value.span)}function c(u){if(i.text[u.start]!=='"'&&i.text[u.start]!=="'")return;let v=i.text[u.start],m=!1;for(let f=u.start+1;f<i.text.length;f++)switch(i.text[f]){case v:if(!m){u.end=f+1;return}default:m=!1;break;case"\\":m=!m;break}}function g(u){if(!u.value||u.value.source!==r.NG_PARSE_TEMPLATE_BINDINGS_FAKE_PREFIX)return u.value;let v=r.findBackChar(/\S/,u.sourceSpan.start,i.text);return{source:"$implicit",span:{start:v,end:v}}}}e.transformTemplateBindings=s}}),Tn=q({"node_modules/angular-estree-parser/lib/index.js"(e){"use strict";L(),Object.defineProperty(e,"__esModule",{value:!0}),e.parseTemplateBindings=e.parseAction=e.parseInterpolation=e.parseSimpleBinding=e.parseBinding=void 0;var t=vn(),n=an(),r=Rn(),s=ft();function a(x,A){let{ast:b,comments:_}=A(x),R=new t.Context(x),T=N=>n.transform(N,R),O=T(b);return O.comments=_.map(T),O}function i(x){return a(x,s.parseNgBinding)}e.parseBinding=i;function l(x){return a(x,s.parseNgSimpleBinding)}e.parseSimpleBinding=l;function h(x){return a(x,s.parseNgInterpolation)}e.parseInterpolation=h;function P(x){return a(x,s.parseNgAction)}e.parseAction=P;function p(x){return r.transformTemplateBindings(s.parseNgTemplateBindings(x),new t.Context(x))}e.parseTemplateBindings=p}});L();var{locStart:Bn,locEnd:Kn}=fn();function Ne(e){return{astFormat:"estree",parse:(n,r,s)=>{let a=Tn(),i=e(n,a);return{type:"NGRoot",node:s.parser==="__ng_action"&&i.type!=="NGChainedExpression"?Object.assign(Object.assign({},i),{},{type:"NGChainedExpression",expressions:[i]}):i}},locStart:Bn,locEnd:Kn}}on.exports={parsers:{__ng_action:Ne((e,t)=>t.parseAction(e)),__ng_binding:Ne((e,t)=>t.parseBinding(e)),__ng_interpolation:Ne((e,t)=>t.parseInterpolation(e)),__ng_directive:Ne((e,t)=>t.parseTemplateBindings(e))}}});return Mn();});
|