UNPKG

13.6 kBJavaScriptView Raw
1/**
2 * @license Angular v9.0.5
3 * (c) 2010-2020 Google LLC. https://angular.io/
4 * License: MIT
5 */
6!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@angular/compiler"),require("@angular/core"),require("@angular/common"),require("@angular/platform-browser")):"function"==typeof define&&define.amd?define("@angular/platform-browser-dynamic",["exports","@angular/compiler","@angular/core","@angular/common","@angular/platform-browser"],t):t(((e=e||self).ng=e.ng||{},e.ng.platformBrowserDynamic={}),e.ng.compiler,e.ng.core,e.ng.common,e.ng.platformBrowser)}(this,(function(e,t,r,o,n){"use strict";
7/*! *****************************************************************************
8 Copyright (c) Microsoft Corporation. All rights reserved.
9 Licensed under the Apache License, Version 2.0 (the "License"); you may not use
10 this file except in compliance with the License. You may obtain a copy of the
11 License at http://www.apache.org/licenses/LICENSE-2.0
12
13 THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14 KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
15 WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
16 MERCHANTABLITY OR NON-INFRINGEMENT.
17
18 See the Apache Version 2.0 License for specific language governing permissions
19 and limitations under the License.
20 ***************************************************************************** */var i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)};function s(e,t){function r(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}function a(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var o,n,i=r.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(o=i.next()).done;)s.push(o.value)}catch(e){n={error:e}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return s}function l(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(a(arguments[t]));return e}
21/**
22 * @license
23 * Copyright Google Inc. All Rights Reserved.
24 *
25 * Use of this source code is governed by an MIT-style license that can be
26 * found in the LICENSE file at https://angular.io/license
27 */
28var p=function c(){var e=new Map;return e.set(t.Identifiers.ANALYZE_FOR_ENTRY_COMPONENTS,r.ANALYZE_FOR_ENTRY_COMPONENTS),e.set(t.Identifiers.ElementRef,r.ElementRef),e.set(t.Identifiers.NgModuleRef,r.NgModuleRef),e.set(t.Identifiers.ViewContainerRef,r.ViewContainerRef),e.set(t.Identifiers.ChangeDetectorRef,r.ChangeDetectorRef),e.set(t.Identifiers.Renderer2,r.Renderer2),e.set(t.Identifiers.QueryList,r.QueryList),e.set(t.Identifiers.TemplateRef,r.TemplateRef),e.set(t.Identifiers.CodegenComponentFactoryResolver,r.ɵCodegenComponentFactoryResolver),e.set(t.Identifiers.ComponentFactoryResolver,r.ComponentFactoryResolver),e.set(t.Identifiers.ComponentFactory,r.ComponentFactory),e.set(t.Identifiers.ComponentRef,r.ComponentRef),e.set(t.Identifiers.NgModuleFactory,r.NgModuleFactory),e.set(t.Identifiers.createModuleFactory,r.ɵcmf),e.set(t.Identifiers.moduleDef,r.ɵmod),e.set(t.Identifiers.moduleProviderDef,r.ɵmpd),e.set(t.Identifiers.RegisterModuleFactoryFn,r.ɵregisterModuleFactory),e.set(t.Identifiers.Injector,r.Injector),e.set(t.Identifiers.ViewEncapsulation,r.ViewEncapsulation),e.set(t.Identifiers.ChangeDetectionStrategy,r.ChangeDetectionStrategy),e.set(t.Identifiers.SecurityContext,r.SecurityContext),e.set(t.Identifiers.LOCALE_ID,r.LOCALE_ID),e.set(t.Identifiers.TRANSLATIONS_FORMAT,r.TRANSLATIONS_FORMAT),e.set(t.Identifiers.inlineInterpolate,r.ɵinlineInterpolate),e.set(t.Identifiers.interpolate,r.ɵinterpolate),e.set(t.Identifiers.EMPTY_ARRAY,r.ɵEMPTY_ARRAY),e.set(t.Identifiers.EMPTY_MAP,r.ɵEMPTY_MAP),e.set(t.Identifiers.viewDef,r.ɵvid),e.set(t.Identifiers.elementDef,r.ɵeld),e.set(t.Identifiers.anchorDef,r.ɵand),e.set(t.Identifiers.textDef,r.ɵted),e.set(t.Identifiers.directiveDef,r.ɵdid),e.set(t.Identifiers.providerDef,r.ɵprd),e.set(t.Identifiers.queryDef,r.ɵqud),e.set(t.Identifiers.pureArrayDef,r.ɵpad),e.set(t.Identifiers.pureObjectDef,r.ɵpod),e.set(t.Identifiers.purePipeDef,r.ɵppd),e.set(t.Identifiers.pipeDef,r.ɵpid),e.set(t.Identifiers.nodeValue,r.ɵnov),e.set(t.Identifiers.ngContentDef,r.ɵncd),e.set(t.Identifiers.unwrapValue,r.ɵunv),e.set(t.Identifiers.createRendererType2,r.ɵcrt),e.set(t.Identifiers.createComponentFactory,r.ɵccf),e}
29/**
30 * @license
31 * Copyright Google Inc. All Rights Reserved.
32 *
33 * Use of this source code is governed by an MIT-style license that can be
34 * found in the LICENSE file at https://angular.io/license
35 */(),u=function(){function e(){this.reflectionCapabilities=new r.ɵReflectionCapabilities}return e.prototype.componentModuleUrl=function(e,o){var n=o.moduleId;if("string"==typeof n)return t.getUrlScheme(n)?n:"package:"+n;if(null!=n)throw t.syntaxError('moduleId should be a string in "'+r.ɵstringify(e)+"\". See https://goo.gl/wIDDiL for more information.\nIf you're using Webpack you should inline the template and the styles, see https://goo.gl/X2J8zc.");return"./"+r.ɵstringify(e)},e.prototype.parameters=function(e){return this.reflectionCapabilities.parameters(e)},e.prototype.tryAnnotations=function(e){return this.annotations(e)},e.prototype.annotations=function(e){return this.reflectionCapabilities.annotations(e)},e.prototype.shallowAnnotations=function(e){throw new Error("Not supported in JIT mode")},e.prototype.propMetadata=function(e){return this.reflectionCapabilities.propMetadata(e)},e.prototype.hasLifecycleHook=function(e,t){return this.reflectionCapabilities.hasLifecycleHook(e,t)},e.prototype.guards=function(e){return this.reflectionCapabilities.guards(e)},e.prototype.resolveExternalReference=function(e){return p.get(e)||e.runtime},e}(),d=new r.InjectionToken("ErrorCollector"),f={provide:r.PACKAGE_ROOT_URL,useValue:"/"},m={get:function(e){throw new Error("No ResourceLoader implementation has been provided. Can't read the url \""+e+'"')}},y=new r.InjectionToken("HtmlParser"),C=function(){function e(e,r,o,n,i,s,a,l,p,c,u){this._metadataResolver=r,this._delegate=new t.JitCompiler(r,o,n,i,s,a,l,p,c,u,this.getExtraNgModuleProviders.bind(this)),this.injector=e}return e.prototype.getExtraNgModuleProviders=function(){return[this._metadataResolver.getProviderMetadata(new t.ProviderMeta(r.Compiler,{useValue:this}))]},e.prototype.compileModuleSync=function(e){return this._delegate.compileModuleSync(e)},e.prototype.compileModuleAsync=function(e){return this._delegate.compileModuleAsync(e)},e.prototype.compileModuleAndAllComponentsSync=function(e){var t=this._delegate.compileModuleAndAllComponentsSync(e);return{ngModuleFactory:t.ngModuleFactory,componentFactories:t.componentFactories}},e.prototype.compileModuleAndAllComponentsAsync=function(e){return this._delegate.compileModuleAndAllComponentsAsync(e).then((function(e){return{ngModuleFactory:e.ngModuleFactory,componentFactories:e.componentFactories}}))},e.prototype.loadAotSummaries=function(e){this._delegate.loadAotSummaries(e)},e.prototype.hasAotSummary=function(e){return this._delegate.hasAotSummary(e)},e.prototype.getComponentFactory=function(e){return this._delegate.getComponentFactory(e)},e.prototype.clearCache=function(){this._delegate.clearCache()},e.prototype.clearCacheFor=function(e){this._delegate.clearCacheFor(e)},e.prototype.getModuleId=function(e){var t=this._metadataResolver.getNgModuleMetadata(e);return t&&t.id||void 0},e}(),R=new u,g=m,v=new t.CompilerConfig,h=[{provide:t.CompileReflector,useValue:R},{provide:t.ResourceLoader,useValue:g},{provide:t.JitSummaryResolver,deps:[]},{provide:t.SummaryResolver,useExisting:t.JitSummaryResolver},{provide:r.ɵConsole,deps:[]},{provide:t.Lexer,deps:[]},{provide:t.Parser,deps:[t.Lexer]},{provide:y,useClass:t.HtmlParser,deps:[]},{provide:t.I18NHtmlParser,useFactory:function(e,o,n,i,s){return new t.I18NHtmlParser(e,o=o||"",n,o?i.missingTranslation:r.MissingTranslationStrategy.Ignore,s)},deps:[y,[new r.Optional,new r.Inject(r.TRANSLATIONS)],[new r.Optional,new r.Inject(r.TRANSLATIONS_FORMAT)],[t.CompilerConfig],[r.ɵConsole]]},{provide:t.HtmlParser,useExisting:t.I18NHtmlParser},{provide:t.TemplateParser,deps:[t.CompilerConfig,t.CompileReflector,t.Parser,t.ElementSchemaRegistry,t.I18NHtmlParser,r.ɵConsole]},{provide:t.JitEvaluator,useClass:t.JitEvaluator,deps:[]},{provide:t.DirectiveNormalizer,deps:[t.ResourceLoader,t.UrlResolver,t.HtmlParser,t.CompilerConfig]},{provide:t.CompileMetadataResolver,deps:[t.CompilerConfig,t.HtmlParser,t.NgModuleResolver,t.DirectiveResolver,t.PipeResolver,t.SummaryResolver,t.ElementSchemaRegistry,t.DirectiveNormalizer,r.ɵConsole,[r.Optional,t.StaticSymbolCache],t.CompileReflector,[r.Optional,d]]},f,{provide:t.StyleCompiler,deps:[t.UrlResolver]},{provide:t.ViewCompiler,deps:[t.CompileReflector]},{provide:t.NgModuleCompiler,deps:[t.CompileReflector]},{provide:t.CompilerConfig,useValue:v},{provide:r.Compiler,useClass:C,deps:[r.Injector,t.CompileMetadataResolver,t.TemplateParser,t.StyleCompiler,t.ViewCompiler,t.NgModuleCompiler,t.SummaryResolver,t.CompileReflector,t.JitEvaluator,t.CompilerConfig,r.ɵConsole]},{provide:t.DomElementSchemaRegistry,deps:[]},{provide:t.ElementSchemaRegistry,useExisting:t.DomElementSchemaRegistry},{provide:t.UrlResolver,deps:[r.PACKAGE_ROOT_URL]},{provide:t.DirectiveResolver,deps:[t.CompileReflector]},{provide:t.PipeResolver,deps:[t.CompileReflector]},{provide:t.NgModuleResolver,deps:[t.CompileReflector]}],I=[{provide:r.Compiler,useFactory:function(){return new r.Compiler}}],_=h,E=function(){function e(e){this._defaultOptions=l([{useJit:!0,defaultEncapsulation:r.ViewEncapsulation.Emulated,missingTranslation:r.MissingTranslationStrategy.Warning}],e)}return e.prototype.createCompiler=function(e){void 0===e&&(e=[]);var o=function n(e){return{useJit:M(e.map((function(e){return e.useJit}))),defaultEncapsulation:M(e.map((function(e){return e.defaultEncapsulation}))),providers:(t=e.map((function(e){return e.providers})),r=[],t.forEach((function(e){return e&&r.push.apply(r,l(e))})),r),missingTranslation:M(e.map((function(e){return e.missingTranslation}))),preserveWhitespaces:M(e.map((function(e){return e.preserveWhitespaces})))};var t,r;
36/**
37 * @license
38 * Copyright Google Inc. All Rights Reserved.
39 *
40 * Use of this source code is governed by an MIT-style license that can be
41 * found in the LICENSE file at https://angular.io/license
42 */}(this._defaultOptions.concat(e));return r.Injector.create([_,{provide:t.CompilerConfig,useFactory:function(){return new t.CompilerConfig({useJit:o.useJit,jitDevMode:r.isDevMode(),defaultEncapsulation:o.defaultEncapsulation,missingTranslation:o.missingTranslation,preserveWhitespaces:o.preserveWhitespaces})},deps:[]},o.providers]).get(r.Compiler)},e}();function M(e){for(var t=e.length-1;t>=0;t--)if(void 0!==e[t])return e[t]}var O=r.createPlatformFactory(r.platformCore,"coreDynamic",[{provide:r.COMPILER_OPTIONS,useValue:{},multi:!0},{provide:r.CompilerFactory,useClass:E,deps:[r.COMPILER_OPTIONS]}]),P=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return s(t,e),t.prototype.get=function(e){var t,r,o=new Promise((function(e,o){t=e,r=o})),n=new XMLHttpRequest;return n.open("GET",e,!0),n.responseType="text",n.onload=function(){var o=n.response||n.responseText,i=1223===n.status?204:n.status;0===i&&(i=o?200:0),200<=i&&i<=300?t(o):r("Failed to load "+e)},n.onerror=function(){r("Failed to load "+e)},n.send(),o},function o(e,t,r,n){var i,s=arguments.length,a=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(a=(s<3?i(a):s>3?i(t,r,a):i(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a}([r.Injectable()],t)}(t.ResourceLoader),A=[n.ɵINTERNAL_BROWSER_PLATFORM_PROVIDERS,{provide:r.COMPILER_OPTIONS,useValue:{providers:[{provide:t.ResourceLoader,useClass:P,deps:[]}]},multi:!0},{provide:r.PLATFORM_ID,useValue:o.ɵPLATFORM_BROWSER_ID}],S=function(e){function t(){var t=e.call(this)||this;if(t._cache=r.ɵglobal.$templateCache,null==t._cache)throw new Error("CachedResourceLoader: Template cache was not found in $templateCache.");return t}return s(t,e),t.prototype.get=function(e){return this._cache.hasOwnProperty(e)?Promise.resolve(this._cache[e]):Promise.reject("CachedResourceLoader: Did not find cached template for "+e)},t}(t.ResourceLoader),w=new r.Version("9.0.5"),T=[{provide:t.ResourceLoader,useClass:S,deps:[]}],D=r.createPlatformFactory(O,"browserDynamic",A);
43/**
44 * @license
45 * Copyright Google Inc. All Rights Reserved.
46 *
47 * Use of this source code is governed by an MIT-style license that can be
48 * found in the LICENSE file at https://angular.io/license
49 */
50/**
51 * @license
52 * Copyright Google Inc. All Rights Reserved.
53 *
54 * Use of this source code is governed by an MIT-style license that can be
55 * found in the LICENSE file at https://angular.io/license
56 */
57e.JitCompilerFactory=E,e.RESOURCE_CACHE_PROVIDER=T,e.VERSION=w,e.platformBrowserDynamic=D,e.ɵCOMPILER_PROVIDERS__POST_R3__=I,e.ɵCompilerImpl=C,e.ɵINTERNAL_BROWSER_DYNAMIC_PLATFORM_PROVIDERS=A,e.ɵResourceLoaderImpl=P,e.ɵangular_packages_platform_browser_dynamic_platform_browser_dynamic_a=S,e.ɵplatformCoreDynamic=O,Object.defineProperty(e,"__esModule",{value:!0})}));
\No newline at end of file