!function(e,t){"object"==typeofexports&&"undefined"!=typeofmodule?t(exports):"function"==typeofdefine&&define.amd?define(["exports"],t):t(((e=e||self).prettierPlugins=e.prettierPlugins||{},e.prettierPlugins.angular={}))}(this,(function(e){"use strict";vart=function(e){returne.length>0?e[e.length-1]:null};varn={locStart:functione(t,n){return!(n=n||{}).ignoreDecorators&&t.declaration&&t.declaration.decorators&&t.declaration.decorators.length>0?e(t.declaration.decorators[0]):!n.ignoreDecorators&&t.decorators&&t.decorators.length>0?e(t.decorators[0]):t.__location?t.__location.startOffset:t.range?t.range[0]:"number"==typeoft.start?t.start:t.loc?t.loc.start:null},locEnd:functione(n){vari=n.nodes&&t(n.nodes);if(i&&n.source&&!n.source.end&&(n=i),n.__location)returnn.__location.endOffset;varr=n.range?n.range[1]:"number"==typeofn.end?n.end:null;returnn.typeAnnotation?Math.max(r,e(n.typeAnnotation)):n.loc&&!r?n.loc.end:r}};functioni(e){returne&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}functionr(e,t){returne(t={exports:{}},t.exports),t.exports}functions(e){return(s="function"==typeofSymbol&&"symbol"==typeofSymbol.iterator?function(e){returntypeofe}:function(e){returne&&"function"==typeofSymbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeofe})(e)}functiona(e,t){if(!(einstanceoft))thrownewTypeError("Cannot call a class as a function")}functiono(e,t){for(varn=0;n<t.length;n++){vari=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"ini&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}functionu(e,t,n){returnt&&o(e.prototype,t),n&&o(e,n),e}functionl(e,t){if("function"!=typeoft&&null!==t)thrownewTypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&h(e,t)}functionc(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){returne.__proto__||Object.getPrototypeOf(e)})(e)}functionh(e,t){return(h=Object.setPrototypeOf||function(e,t){returne.__proto__=t,e})(e,t)}functionp(e,t){return!t||"object"!=typeoft&&"function"!=typeoft?function(e){if(void0===e)thrownewReferenceError("this hasn't been initialised - super() hasn't been called");returne}(e):t}functionv(e,t){returnfunction(e){if(Array.isArray(e))returne}(e)||function(e,t){if(!(Symbol.iteratorinObject(e)||"[object Arguments]"===Object.prototype.toString.call(e)))return;varn=[],i=!0,r=!1,s=void0;try{for(vara,o=e[Symbol.iterator]();!(i=(a=o.next()).done)&&(n.push(a.value),!t||n.length!==t);i=!0);}catch(e){r=!0,s=e}finally{try{i||null==o.return||o.return()}finally{if(r)throws}}returnn}(e,t)||function(){thrownewTypeError("Invalid attempt to destructure non-iterable instance")}()}varf=r((function(e,t){varn="\n",i="\r",r=function(){functione(e){this.string=e;for(vart=[0],r=0;r<e.length;)switch(e[r]){casen:r+=n.length,t.push(r);break;casei:e[r+=i.length]===n&&(r+=n.length),t.push(r);break;default:r++}this.offsets=t}returne.prototype.locationForIndex=function(e){if(e<0||e>this.string.length)returnnull;for(vart=0,n=this.offsets;n[t+1]<=e;)t++;return{line:t,column:e-n[t]}},e.prototype.indexForLocation=function(e){vart=e.line,n=e.column;returnt<0||t>=this.offsets.length?null:n<0||n>this.lengthOfLine(t)?null:this.offsets[t]+n},e.prototype.lengthOfLine=function(e){vart=this.offsets[e];return(e===this.offsets.length-1?this.string.length:this.offsets[e+1])-t},e}();t.__esModule=!0,t.default=r}));i(f);vard=r((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});t.Context=functione(t){a(this,e),this.text=t,this.locator=newn(this.text)};varn=function(){functione(t){a(this,e),this._lineAndColumn=newf.default(t)}returnu(e,[{key:"locationForIndex",value:function(e){vart=this._lineAndColumn.locationForIndex(e);return{line:t.line+1,column:t.column}}}]),e}()}));i(d);d.Context;
/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/vary=functione(t,n,i,r){a(this,e),this.input=n,this.errLocation=i,this.ctxLocation=r,this.message="Parser Error: ".concat(t," ").concat(i," [").concat(n,"] in ").concat(r)},x=functione(t,n){a(this,e),this.start=t,this.end=n},g=function(){functione(t){a(this,e),this.span=t}returnu(e,[{key:"visit",value:function(e){returnnull}},{key:"toString",value:function(){return"AST"}}]),e}(),k=function(e){functiont(e,n,i,r){vars;returna(this,t),(s=p(this,c(t).call(this,e))).prefix=n,s.uninterpretedExpression=i,s.location=r,s}returnl(t,e),u(t,[{key:"visit",value:function(e){vart=arguments.length>1&&void0!==arguments[1]?arguments[1]:null;returne.visitQuote(this,t)}},{key:"toString",value:function(){return"Quote"}}]),t}(g),m=function(e){functiont(){returna(this,t),p(this,c(t).apply(this,arguments))}returnl(t,e),u(t,[{key:"visit",value:function(e){}}]),t}(g),w=function(e){functiont(){returna(this,t),p(this,c(t).apply(this,arguments))}returnl(t,e),u(t,[{key:"visit",value:function(e){vart=arguments.length>1&&void0!==arguments[1]?arguments[1]:null;returne.visitImplicitReceiver(this,t)}}]),t}(g),C=function(e){functiont(e,n){vari;returna(this,t),(i=p(this,c(t).call(this,e))).expressions=n,i}returnl(t,e),u(t,[{key:"visit",value:function(e){vart=arguments.length>1&&void0!==arguments[1]?arguments[1]:null;returne.visitChain(this,t)}}]),t}(g),P=function(e){functiont(e,n,i,r){vars;returna(this,t),(s=p(this,c(t).call(this,e))).condition=n,s.trueExp=i,s.falseExp=r,s}returnl(t,e),u(t,[{key:"visit",value:function(e){vart=arguments.length>1&&void0!==arguments[1]?arguments[1]:null;returne.visitConditional(this,t)}}]),t}(g),b=function(e){functiont(e,n,i){varr;returna(this,t),(r=p(this,c(t).call(this,e))).receiver=n,r.name=i,r}returnl(t,e),u(t,[{key:"visit",value:function(e){vart=arguments.length>1&&void0!==arguments[1]?arguments[1]:null;returne.visitPropertyRead(this,t)}}]),t}(g),A=function(e){functiont(e,n,i,r){vars;returna(this,t),(s=p(this,c(t).call(this,e))).receiver=n,s.name=i,s.value=r,s}returnl(t,e),u(t,[{key:"visit",value:function(e){vart=arguments.length>1&&void0!==arguments[1]?arguments[1]:null;returne.visitPropertyWrite(this,t)}}]),t}(g),E=function(e){functiont(e,n,i){varr;returna(this,t),(r=p(this,c(t).call(this,e))).receiver=n,r.name=i,r}returnl(t,e),u(t,[{key:"visit",value:function(e){vart=arguments.length>1&&void0!==arguments[1]?arguments[1]:null;returne.visitSafePropertyRead(this,t)}}]),t}(g),S=function(e){functiont(e,n,i){varr;returna(this,t),(r=p(this,c(t).call(this,e))).obj=n,r.key=i,r}returnl(t,e),u(t,[{key:"visit",value:function(e){vart=arguments.length>1&&void0!==arguments[1]?arguments[1]:null;returne.visitKeyedRead(this,t)}}]),t}(g),N=function(e){functiont(e,n,i,r){vars;returna(this,t),(s=p(this,c(t).call(this,e))).obj=n,s.key=i,s.value=r,s}returnl(t,e),u(t,[{key:"visit",value:function(e){vart=arguments.length>1&&void0!==arguments[1]?arguments[1]:null;returne.visitKeyedWrite(this,t)}}]),t}(g),O=function(e){functiont(e,n,i,r){vars;returna(this,t),(s=p(this,c(t).call(this,e))).exp=n,s.name=i,s.args=r,s}returnl(t,e),u(t,[{key:"visit",value:function(e){vart=arguments.length>1&&void0!==arguments[1]?arguments[1]:null;returne.visitPipe(this,t)}}]),t}(g),I=function(e){functiont(e,n){vari;returna(this,t),(i=p(this,c(t).call(this,e))).value=n,i}returnl(t,e),u(t,[{key:"visit",value:function(e){vart=arguments.length>1&&void0!==arguments[1]?arguments[1]:null;returne.visitLiteralPrimitive(this,t)}}]),t}(g),_=function(e){functiont(e,n){vari;returna(this,t),(i=p(this,c(t).call(this,e))).expressions=n,i}returnl(t,e),u(t,[{key:"visit",value:function(e){vart=arguments.length>1&&void0!==arguments[1]?arguments[1]:null;returne.visitLiteralArray(this,t)}}]),t}(g),L=function(e){functiont(e,n,i){varr;returna(this,t),(r=p(this,c(t).call(this,e))).keys=n,r.values=i,r}returnl(t,e),u(t,[{key:"visit",value:function(e){vart=arguments.length>1&&void0!==arguments[1]?arguments[1]:null;returne.visitLiteralMap(this,t)}}]),t}(g),M=function(e){functiont(e,n,i){varr
/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/varVe=new(function(){functione(t,n){a(this,e),this.start=t,this.end=n}returnu(e,null,[{key:"fromArray",value:function(t){returnt?(function(e,t){if(!(null==t||Array.isArray(t)&&2==t.length))thrownewError("Expected '".concat(e,"' to be an array, [start, end]."));if(null!=t){varn=t[0],i=t[1];Fe.forEach((function(e){if(e.test(n)||e.test(i))thrownewError("['".concat(n,"', '").concat(i,"'] contains unusable interpolation symbol."))}))}}("interpolation",t),newe(t[0],t[1])):Ve}}]),e}())("{{","}}");functionWe(e){returne.replace(/([.*+?^=!:${}()|[\]\/\\])/g,"\\$1")}"undefined"!=typeofself&&"undefined"!=typeofWorkerGlobalScope&&selfinstanceofWorkerGlobalScope&&self;varGe=functione(t,n,i){a(this,e),this.strings=t,this.expressions=n,this.offsets=i},Ue=functione(t,n,i){a(this,e),this.templateBindings=t,this.warnings=n,this.errors=i};functionQe(e){vart=We(e.start)+"([\\s\\S]*?)"+We(e.end);returnnewRegExp(t,"g")}varze=function(){functione(t){a(this,e),this._lexer=t,this.errors=[]}returnu(e,[{key:"parseAction",value:function(e,t,n){vari=arguments.length>3&&void0!==arguments[3]?arguments[3]:Ve;this._checkNoInterpolation(e,t,i);varr=this._stripComments(e),s=this._lexer.tokenize(this._stripComments(e)),a=new$e(e,t,n,s,r.length,!0,this.errors,e.length-r.length).parseChain();returnnewW(a,e,t,n,this.errors)}},{key:"parseBinding",value:function(e,t,n){vari=arguments.length>3&&void0!==arguments[3]?arguments[3]:Ve,r=this._parseBindingAst(e,t,n,i);returnnewW(r,e,t,n,this.errors)}},{key:"parseSimpleBinding",value:function(e,t,n){vari=arguments.length>3&&void0!==arguments[3]?arguments[3]:Ve,r=this._parseBindingAst(e,t,n,i),s=qe.check(r);returns.length>0&&this._reportError("Host binding expression cannot contain ".concat(s.join(" ")),e,t),newW(r,e,t,n,this.errors)}},{key:"_reportError",value:function(e,t,n,i){this.errors.push(newy(e,t,n,i))}},{key:"_parseBindingAst",value:function(e,t,n,i){varr=this._parseQuote(e,t);if(null!=r)returnr;this._checkNoInterpolation(e,t,i);vars=this._stripComments(e),a=this._lexer.tokenize(s);returnnew$e(e,t,n,a,s.length,!1,this.errors,e.length-s.length).parseChain()}},{key:"_parseQuote",value:function(e,t){if(null==e)returnnull;varn=e.indexOf(":");if(-1==n)returnnull;vari=e.substring(0,n).trim();if(!Me(i))returnnull;varr=e.substring(n+1);returnnewk(newx(0,e.length),i,r,t)}},{key:"parseTemplateBindings",value:function(e,t,n,i){varr=this._lexer.tokenize(t);returnnew$e(t,n,i,r,t.length,!1,this.errors,0).parseTemplateBindings(e)}},{key:"parseInterpolation",value:function(e,t,n){vari=arguments.length>3&&void0!==arguments[3]?arguments[3]:Ve,r=this.splitInterpolation(e,t,i);if(null==r)returnnull;for(vars=[],a=0;a<r.expressions.length;++a){varo=r.expressions[a],u=this._stripComments(o),l=this._lexer.tokenize(u),c=new$e(e,t,n,l,u.length,!1,this.errors,r.offsets[a]+(o.length-u.length)).parseChain();s.push(c)}returnnewW(newM(newx(0,null==e?0:e.length),r.strings,s),e,t,n,this.errors)}},{key:"splitInterpolation",value:function(e,t){varn=arguments.length>2&&void0!==arguments[2]?arguments[2]:Ve,i=Qe(n),r=e.split(i);if(r.length<=1)returnnull;for(vars=[],a=[],o=[],u=0,l=0;l<r.length;l++){varc=r[l];l%2==0?(s.push(c),u+=c.length):c.trim().length>0?(u+=n.start.length,a.push(c),o.push(u),u+=c.length+n.end.length):(this._reportError("Blank expressions are not allowed in interpolated strings",e,"at column ".concat(this._findInterpolationErrorColumn(r,l,n)," in"),t),a.push("$implict"),o.push(u))}returnnewGe(s,a,o)}},{key:"wrapLiteralPrimitive",value:function(e,t,n){returnnewW(newI(newx(0,null==e?0:e.length),e),e,t,n,this.errors)}},{key:"_stripComments",value:function(e){vart=this._commentStart(e);returnnull!=t?e.substring(0,t).trim():e}},{key:"_commentStart",value:function(e){for(vart=null,n=0;n<e.length-1;n++){vari=e.charCodeAt(n),r=e.charCodeAt(n+1);if(47===i&&47==r&&null==t)returnn;t===i?t=null:null==t&&Te(i)&&(t=i)}returnnull}},{key:"_checkNoInterpolation",value:function(e,t,n){vari=Qe(n),r=e.split(i);r.length>1&&this._reportError("Gotinterpolation