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