!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;