System.register(["@angular/compiler","@angular/core","@angular/common","@angular/platform-browser"],function(e){"use strict";var t,r,o,s,n,a,i,c,u,l,p,d,m,f,h,R,E,v;return{setters:[function(e){t=e.CompilerConfig,r=e.ResourceLoader},function(e){o=e.InjectionToken,s=e.createPlatformFactory,n=e.platformCore,a=e.COMPILER_OPTIONS,i=e.CompilerFactory,c=e,e.Injectable,u=e.Version,l=e.ViewEncapsulation,p=e.MissingTranslationStrategy,d=e.Injector,m=e.isDevMode,f=e.Compiler,h=e.PLATFORM_ID,R=e["\u0275global"]},function(e){E=e["\u0275PLATFORM_BROWSER_ID"]},function(e){v=e["\u0275INTERNAL_BROWSER_PLATFORM_PROVIDERS"]}],execute:function(){new o("ErrorCollector");const C=[{provide:f,useFactory:()=>new f}];class g{constructor(e){const t={useJit:!0,defaultEncapsulation:l.Emulated,missingTranslation:p.Warning};this._defaultOptions=[t,...e]}createCompiler(e=[]){const r={useJit:_((o=this._defaultOptions.concat(e)).map(e=>e.useJit)),defaultEncapsulation:_(o.map(e=>e.defaultEncapsulation)),providers:O(o.map(e=>e.providers)),missingTranslation:_(o.map(e=>e.missingTranslation)),preserveWhitespaces:_(o.map(e=>e.preserveWhitespaces))};var o;return d.create([C,{provide:t,useFactory:()=>new t({useJit:r.useJit,jitDevMode:m(),defaultEncapsulation:r.defaultEncapsulation,missingTranslation:r.missingTranslation,preserveWhitespaces:r.preserveWhitespaces}),deps:[]},r.providers]).get(f)}}function _(e){for(let t=e.length-1;t>=0;t--)if(void 0!==e[t])return e[t]}function O(e){const t=[];return e.forEach(e=>e&&t.push(...e)),t}e("JitCompilerFactory",g);const T=e("\u0275platformCoreDynamic",s(n,"coreDynamic",[{provide:a,useValue:{},multi:!0},{provide:i,useClass:g,deps:[a]}]));class I extends r{get(e){let t,r;const o=new Promise((e,o)=>{t=e,r=o}),s=new XMLHttpRequest;return s.open("GET",e,!0),s.responseType="text",s.onload=function(){const o=s.response||s.responseText;let n=1223===s.status?204:s.status;0===n&&(n=o?200:0),200<=n&&n<=300?t(o):r(`Failed to load ${e}`)},s.onerror=function(){r(`Failed to load ${e}`)},s.send(),o}}I.\u0275fac=function(){let e;return function(t){return(e||(e=c.\u0275\u0275getInheritedFactory(I)))(t||I)}}(),I.\u0275prov=c.\u0275\u0275defineInjectable({token:I,factory:I.\u0275fac});const y=e("\u0275INTERNAL_BROWSER_DYNAMIC_PLATFORM_PROVIDERS",[v,{provide:a,useValue:{providers:[{provide:r,useClass:I,deps:[]}]},multi:!0},{provide:h,useValue:E}]);e("VERSION",new u("14.2.12")),e("RESOURCE_CACHE_PROVIDER",[{provide:r,useClass:class extends r{constructor(){if(super(),this._cache=R.$templateCache,null==this._cache)throw new Error("CachedResourceLoader: Template cache was not found in $templateCache.")}get(e){return this._cache.hasOwnProperty(e)?Promise.resolve(this._cache[e]):Promise.reject("CachedResourceLoader: Did not find cached template for "+e)}},deps:[]}]),e("platformBrowserDynamic",s(T,"browserDynamic",y))}}});
