@angular/platform-browser-dynamic 12.2.7 → 13.0.0-next.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (55) hide show
  1. package/{esm2015/index.js → esm2020/index.mjs} +0 -0
  2. package/esm2020/platform-browser-dynamic.mjs +5 -0
  3. package/{esm2015/public_api.js → esm2020/public_api.mjs} +0 -0
  4. package/esm2020/src/compiler_factory.mjs +206 -0
  5. package/esm2020/src/compiler_reflector.mjs +99 -0
  6. package/{esm2015/src/platform-browser-dynamic.js → esm2020/src/platform-browser-dynamic.mjs} +0 -0
  7. package/esm2020/src/platform_core_dynamic.mjs +19 -0
  8. package/esm2020/src/platform_providers.mjs +25 -0
  9. package/{esm2015/src/private_export.js → esm2020/src/private_export.mjs} +0 -0
  10. package/{esm2015/src/resource_loader/resource_loader_cache.js → esm2020/src/resource_loader/resource_loader_cache.mjs} +0 -0
  11. package/esm2020/src/resource_loader/resource_loader_impl.mjs +54 -0
  12. package/{esm2015/src/version.js → esm2020/src/version.mjs} +1 -1
  13. package/{esm2015/testing/index.js → esm2020/testing/index.mjs} +0 -0
  14. package/{esm2015/testing/public_api.js → esm2020/testing/public_api.mjs} +0 -0
  15. package/{esm2015/testing/src/compiler_factory.js → esm2020/testing/src/compiler_factory.mjs} +0 -0
  16. package/esm2020/testing/src/dom_test_component_renderer.mjs +42 -0
  17. package/{esm2015/testing/src/metadata_overrider.js → esm2020/testing/src/metadata_overrider.mjs} +0 -0
  18. package/esm2020/testing/src/platform_core_dynamic_testing.mjs +24 -0
  19. package/{esm2015/testing/src/private_export_testing.js → esm2020/testing/src/private_export_testing.mjs} +0 -0
  20. package/esm2020/testing/src/testing.mjs +41 -0
  21. package/esm2020/testing/testing.mjs +5 -0
  22. package/fesm2015/{platform-browser-dynamic.js → platform-browser-dynamic.mjs} +24 -25
  23. package/fesm2015/platform-browser-dynamic.mjs.map +1 -0
  24. package/fesm2015/testing.mjs +243 -0
  25. package/fesm2015/testing.mjs.map +1 -0
  26. package/fesm2020/platform-browser-dynamic.mjs +493 -0
  27. package/fesm2020/platform-browser-dynamic.mjs.map +1 -0
  28. package/{fesm2015/testing.js → fesm2020/testing.mjs} +27 -19
  29. package/fesm2020/testing.mjs.map +1 -0
  30. package/package.json +29 -11
  31. package/platform-browser-dynamic.d.ts +4 -16
  32. package/testing/package.json +5 -5
  33. package/testing/testing.d.ts +8 -15
  34. package/bundles/platform-browser-dynamic-testing.umd.js +0 -563
  35. package/bundles/platform-browser-dynamic-testing.umd.js.map +0 -1
  36. package/bundles/platform-browser-dynamic.umd.js +0 -817
  37. package/bundles/platform-browser-dynamic.umd.js.map +0 -1
  38. package/esm2015/platform-browser-dynamic.externs.js +0 -6
  39. package/esm2015/platform-browser-dynamic.js +0 -6
  40. package/esm2015/src/compiler_factory.js +0 -208
  41. package/esm2015/src/compiler_reflector.js +0 -100
  42. package/esm2015/src/platform_core_dynamic.js +0 -21
  43. package/esm2015/src/platform_providers.js +0 -27
  44. package/esm2015/src/resource_loader/resource_loader_impl.js +0 -51
  45. package/esm2015/testing/src/dom_test_component_renderer.js +0 -39
  46. package/esm2015/testing/src/platform_core_dynamic_testing.js +0 -26
  47. package/esm2015/testing/src/testing.js +0 -34
  48. package/esm2015/testing/testing.externs.js +0 -6
  49. package/esm2015/testing/testing.js +0 -6
  50. package/fesm2015/platform-browser-dynamic.js.map +0 -1
  51. package/fesm2015/testing.js.map +0 -1
  52. package/platform-browser-dynamic.metadata.json +0 -1
  53. package/testing/testing.metadata.json +0 -1
  54. package/testing.d.ts +0 -7
  55. package/testing.metadata.json +0 -1
@@ -0,0 +1,493 @@
1
+ /**
2
+ * @license Angular v13.0.0-next.10
3
+ * (c) 2010-2021 Google LLC. https://angular.io/
4
+ * License: MIT
5
+ */
6
+
7
+ import { getUrlScheme, syntaxError, Identifiers, JitCompiler, ProviderMeta, CompileReflector, ResourceLoader, JitSummaryResolver, SummaryResolver, Lexer, Parser, HtmlParser, I18NHtmlParser, CompilerConfig, TemplateParser, ElementSchemaRegistry, JitEvaluator, DirectiveNormalizer, UrlResolver, CompileMetadataResolver, NgModuleResolver, DirectiveResolver, PipeResolver, StaticSymbolCache, StyleCompiler, ViewCompiler, NgModuleCompiler, DomElementSchemaRegistry } from '@angular/compiler';
8
+ import * as i0 from '@angular/core';
9
+ import { ɵReflectionCapabilities, ɵstringify, ANALYZE_FOR_ENTRY_COMPONENTS, ElementRef, NgModuleRef, ViewContainerRef, ChangeDetectorRef, Renderer2, QueryList, TemplateRef, ɵCodegenComponentFactoryResolver, ComponentFactoryResolver, ComponentFactory, ComponentRef, NgModuleFactory, ɵcmf, ɵmod, ɵmpd, ɵregisterModuleFactory, Injector, ViewEncapsulation, ChangeDetectionStrategy, SecurityContext, LOCALE_ID, TRANSLATIONS_FORMAT, ɵinlineInterpolate, ɵinterpolate, ɵEMPTY_ARRAY, ɵEMPTY_MAP, ɵvid, ɵeld, ɵand, ɵted, ɵdid, ɵprd, ɵqud, ɵpad, ɵpod, ɵppd, ɵpid, ɵnov, ɵncd, ɵcrt, ɵccf, InjectionToken, PACKAGE_ROOT_URL, Compiler, ɵConsole, MissingTranslationStrategy, Optional, Inject, TRANSLATIONS, isDevMode, createPlatformFactory, platformCore, COMPILER_OPTIONS, CompilerFactory, Injectable, PLATFORM_ID, ɵglobal, Version } from '@angular/core';
10
+ import { ɵPLATFORM_BROWSER_ID } from '@angular/common';
11
+ import { ɵINTERNAL_BROWSER_PLATFORM_PROVIDERS } from '@angular/platform-browser';
12
+
13
+ /**
14
+ * @license
15
+ * Copyright Google LLC All Rights Reserved.
16
+ *
17
+ * Use of this source code is governed by an MIT-style license that can be
18
+ * found in the LICENSE file at https://angular.io/license
19
+ */
20
+ const MODULE_SUFFIX = '';
21
+ const builtinExternalReferences = createBuiltinExternalReferencesMap();
22
+ class JitReflector {
23
+ constructor() {
24
+ this.reflectionCapabilities = new ɵReflectionCapabilities();
25
+ }
26
+ componentModuleUrl(type, cmpMetadata) {
27
+ const moduleId = cmpMetadata.moduleId;
28
+ if (typeof moduleId === 'string') {
29
+ const scheme = getUrlScheme(moduleId);
30
+ return scheme ? moduleId : `package:${moduleId}${MODULE_SUFFIX}`;
31
+ }
32
+ else if (moduleId !== null && moduleId !== void 0) {
33
+ throw syntaxError(`moduleId should be a string in "${ɵstringify(type)}". See https://goo.gl/wIDDiL for more information.\n` +
34
+ `If you're using Webpack you should inline the template and the styles, see https://goo.gl/X2J8zc.`);
35
+ }
36
+ return `./${ɵstringify(type)}`;
37
+ }
38
+ parameters(typeOrFunc) {
39
+ return this.reflectionCapabilities.parameters(typeOrFunc);
40
+ }
41
+ tryAnnotations(typeOrFunc) {
42
+ return this.annotations(typeOrFunc);
43
+ }
44
+ annotations(typeOrFunc) {
45
+ return this.reflectionCapabilities.annotations(typeOrFunc);
46
+ }
47
+ shallowAnnotations(typeOrFunc) {
48
+ throw new Error('Not supported in JIT mode');
49
+ }
50
+ propMetadata(typeOrFunc) {
51
+ return this.reflectionCapabilities.propMetadata(typeOrFunc);
52
+ }
53
+ hasLifecycleHook(type, lcProperty) {
54
+ return this.reflectionCapabilities.hasLifecycleHook(type, lcProperty);
55
+ }
56
+ guards(type) {
57
+ return this.reflectionCapabilities.guards(type);
58
+ }
59
+ resolveExternalReference(ref) {
60
+ return builtinExternalReferences.get(ref) || ref.runtime;
61
+ }
62
+ }
63
+ function createBuiltinExternalReferencesMap() {
64
+ const map = new Map();
65
+ map.set(Identifiers.ANALYZE_FOR_ENTRY_COMPONENTS, ANALYZE_FOR_ENTRY_COMPONENTS);
66
+ map.set(Identifiers.ElementRef, ElementRef);
67
+ map.set(Identifiers.NgModuleRef, NgModuleRef);
68
+ map.set(Identifiers.ViewContainerRef, ViewContainerRef);
69
+ map.set(Identifiers.ChangeDetectorRef, ChangeDetectorRef);
70
+ map.set(Identifiers.Renderer2, Renderer2);
71
+ map.set(Identifiers.QueryList, QueryList);
72
+ map.set(Identifiers.TemplateRef, TemplateRef);
73
+ map.set(Identifiers.CodegenComponentFactoryResolver, ɵCodegenComponentFactoryResolver);
74
+ map.set(Identifiers.ComponentFactoryResolver, ComponentFactoryResolver);
75
+ map.set(Identifiers.ComponentFactory, ComponentFactory);
76
+ map.set(Identifiers.ComponentRef, ComponentRef);
77
+ map.set(Identifiers.NgModuleFactory, NgModuleFactory);
78
+ map.set(Identifiers.createModuleFactory, ɵcmf);
79
+ map.set(Identifiers.moduleDef, ɵmod);
80
+ map.set(Identifiers.moduleProviderDef, ɵmpd);
81
+ map.set(Identifiers.RegisterModuleFactoryFn, ɵregisterModuleFactory);
82
+ map.set(Identifiers.Injector, Injector);
83
+ map.set(Identifiers.ViewEncapsulation, ViewEncapsulation);
84
+ map.set(Identifiers.ChangeDetectionStrategy, ChangeDetectionStrategy);
85
+ map.set(Identifiers.SecurityContext, SecurityContext);
86
+ map.set(Identifiers.LOCALE_ID, LOCALE_ID);
87
+ map.set(Identifiers.TRANSLATIONS_FORMAT, TRANSLATIONS_FORMAT);
88
+ map.set(Identifiers.inlineInterpolate, ɵinlineInterpolate);
89
+ map.set(Identifiers.interpolate, ɵinterpolate);
90
+ map.set(Identifiers.EMPTY_ARRAY, ɵEMPTY_ARRAY);
91
+ map.set(Identifiers.EMPTY_MAP, ɵEMPTY_MAP);
92
+ map.set(Identifiers.viewDef, ɵvid);
93
+ map.set(Identifiers.elementDef, ɵeld);
94
+ map.set(Identifiers.anchorDef, ɵand);
95
+ map.set(Identifiers.textDef, ɵted);
96
+ map.set(Identifiers.directiveDef, ɵdid);
97
+ map.set(Identifiers.providerDef, ɵprd);
98
+ map.set(Identifiers.queryDef, ɵqud);
99
+ map.set(Identifiers.pureArrayDef, ɵpad);
100
+ map.set(Identifiers.pureObjectDef, ɵpod);
101
+ map.set(Identifiers.purePipeDef, ɵppd);
102
+ map.set(Identifiers.pipeDef, ɵpid);
103
+ map.set(Identifiers.nodeValue, ɵnov);
104
+ map.set(Identifiers.ngContentDef, ɵncd);
105
+ map.set(Identifiers.createRendererType2, ɵcrt);
106
+ map.set(Identifiers.createComponentFactory, ɵccf);
107
+ return map;
108
+ }
109
+
110
+ /**
111
+ * @license
112
+ * Copyright Google LLC All Rights Reserved.
113
+ *
114
+ * Use of this source code is governed by an MIT-style license that can be
115
+ * found in the LICENSE file at https://angular.io/license
116
+ */
117
+ const ERROR_COLLECTOR_TOKEN = new InjectionToken('ErrorCollector');
118
+ /**
119
+ * A default provider for {@link PACKAGE_ROOT_URL} that maps to '/'.
120
+ */
121
+ const DEFAULT_PACKAGE_URL_PROVIDER = {
122
+ provide: PACKAGE_ROOT_URL,
123
+ useValue: '/'
124
+ };
125
+ const _NO_RESOURCE_LOADER = {
126
+ get(url) {
127
+ throw new Error(`No ResourceLoader implementation has been provided. Can't read the url "${url}"`);
128
+ }
129
+ };
130
+ const baseHtmlParser = new InjectionToken('HtmlParser');
131
+ class CompilerImpl {
132
+ constructor(injector, _metadataResolver, templateParser, styleCompiler, viewCompiler, ngModuleCompiler, summaryResolver, compileReflector, jitEvaluator, compilerConfig, console) {
133
+ this._metadataResolver = _metadataResolver;
134
+ this._delegate = new JitCompiler(_metadataResolver, templateParser, styleCompiler, viewCompiler, ngModuleCompiler, summaryResolver, compileReflector, jitEvaluator, compilerConfig, console, this.getExtraNgModuleProviders.bind(this));
135
+ this.injector = injector;
136
+ }
137
+ getExtraNgModuleProviders() {
138
+ return [this._metadataResolver.getProviderMetadata(new ProviderMeta(Compiler, { useValue: this }))];
139
+ }
140
+ compileModuleSync(moduleType) {
141
+ return this._delegate.compileModuleSync(moduleType);
142
+ }
143
+ compileModuleAsync(moduleType) {
144
+ return this._delegate.compileModuleAsync(moduleType);
145
+ }
146
+ compileModuleAndAllComponentsSync(moduleType) {
147
+ const result = this._delegate.compileModuleAndAllComponentsSync(moduleType);
148
+ return {
149
+ ngModuleFactory: result.ngModuleFactory,
150
+ componentFactories: result.componentFactories,
151
+ };
152
+ }
153
+ compileModuleAndAllComponentsAsync(moduleType) {
154
+ return this._delegate.compileModuleAndAllComponentsAsync(moduleType)
155
+ .then((result) => ({
156
+ ngModuleFactory: result.ngModuleFactory,
157
+ componentFactories: result.componentFactories,
158
+ }));
159
+ }
160
+ loadAotSummaries(summaries) {
161
+ this._delegate.loadAotSummaries(summaries);
162
+ }
163
+ hasAotSummary(ref) {
164
+ return this._delegate.hasAotSummary(ref);
165
+ }
166
+ getComponentFactory(component) {
167
+ return this._delegate.getComponentFactory(component);
168
+ }
169
+ clearCache() {
170
+ this._delegate.clearCache();
171
+ }
172
+ clearCacheFor(type) {
173
+ this._delegate.clearCacheFor(type);
174
+ }
175
+ getModuleId(moduleType) {
176
+ const meta = this._metadataResolver.getNgModuleMetadata(moduleType);
177
+ return meta && meta.id || undefined;
178
+ }
179
+ }
180
+ /**
181
+ * A set of providers that provide `JitCompiler` and its dependencies to use for
182
+ * template compilation.
183
+ */
184
+ const COMPILER_PROVIDERS__PRE_R3__ = [
185
+ { provide: CompileReflector, useValue: new JitReflector() },
186
+ { provide: ResourceLoader, useValue: _NO_RESOURCE_LOADER },
187
+ { provide: JitSummaryResolver, deps: [] },
188
+ { provide: SummaryResolver, useExisting: JitSummaryResolver },
189
+ { provide: ɵConsole, deps: [] },
190
+ { provide: Lexer, deps: [] },
191
+ { provide: Parser, deps: [Lexer] },
192
+ {
193
+ provide: baseHtmlParser,
194
+ useClass: HtmlParser,
195
+ deps: [],
196
+ },
197
+ {
198
+ provide: I18NHtmlParser,
199
+ useFactory: (parser, translations, format, config, console) => {
200
+ translations = translations || '';
201
+ const missingTranslation = translations ? config.missingTranslation : MissingTranslationStrategy.Ignore;
202
+ return new I18NHtmlParser(parser, translations, format, missingTranslation, console);
203
+ },
204
+ deps: [
205
+ baseHtmlParser,
206
+ [new Optional(), new Inject(TRANSLATIONS)],
207
+ [new Optional(), new Inject(TRANSLATIONS_FORMAT)],
208
+ [CompilerConfig],
209
+ [ɵConsole],
210
+ ]
211
+ },
212
+ {
213
+ provide: HtmlParser,
214
+ useExisting: I18NHtmlParser,
215
+ },
216
+ {
217
+ provide: TemplateParser,
218
+ deps: [CompilerConfig, CompileReflector, Parser, ElementSchemaRegistry, I18NHtmlParser, ɵConsole]
219
+ },
220
+ { provide: JitEvaluator, useClass: JitEvaluator, deps: [] },
221
+ { provide: DirectiveNormalizer, deps: [ResourceLoader, UrlResolver, HtmlParser, CompilerConfig] },
222
+ {
223
+ provide: CompileMetadataResolver,
224
+ deps: [
225
+ CompilerConfig, HtmlParser, NgModuleResolver, DirectiveResolver, PipeResolver,
226
+ SummaryResolver, ElementSchemaRegistry, DirectiveNormalizer, ɵConsole,
227
+ [Optional, StaticSymbolCache], CompileReflector, [Optional, ERROR_COLLECTOR_TOKEN]
228
+ ]
229
+ },
230
+ DEFAULT_PACKAGE_URL_PROVIDER,
231
+ { provide: StyleCompiler, deps: [UrlResolver] },
232
+ { provide: ViewCompiler, deps: [CompileReflector] },
233
+ { provide: NgModuleCompiler, deps: [CompileReflector] },
234
+ { provide: CompilerConfig, useValue: new CompilerConfig() },
235
+ {
236
+ provide: Compiler,
237
+ useClass: CompilerImpl,
238
+ deps: [
239
+ Injector, CompileMetadataResolver, TemplateParser, StyleCompiler, ViewCompiler,
240
+ NgModuleCompiler, SummaryResolver, CompileReflector, JitEvaluator, CompilerConfig, ɵConsole
241
+ ]
242
+ },
243
+ { provide: DomElementSchemaRegistry, deps: [] },
244
+ { provide: ElementSchemaRegistry, useExisting: DomElementSchemaRegistry },
245
+ { provide: UrlResolver, deps: [PACKAGE_ROOT_URL] },
246
+ { provide: DirectiveResolver, deps: [CompileReflector] },
247
+ { provide: PipeResolver, deps: [CompileReflector] },
248
+ { provide: NgModuleResolver, deps: [CompileReflector] },
249
+ ];
250
+ const COMPILER_PROVIDERS__POST_R3__ = [{ provide: Compiler, useFactory: () => new Compiler() }];
251
+ const COMPILER_PROVIDERS = COMPILER_PROVIDERS__POST_R3__;
252
+ /**
253
+ * @publicApi
254
+ */
255
+ class JitCompilerFactory {
256
+ /* @internal */
257
+ constructor(defaultOptions) {
258
+ const compilerOptions = {
259
+ useJit: true,
260
+ defaultEncapsulation: ViewEncapsulation.Emulated,
261
+ missingTranslation: MissingTranslationStrategy.Warning,
262
+ };
263
+ this._defaultOptions = [compilerOptions, ...defaultOptions];
264
+ }
265
+ createCompiler(options = []) {
266
+ const opts = _mergeOptions(this._defaultOptions.concat(options));
267
+ const injector = Injector.create([
268
+ COMPILER_PROVIDERS, {
269
+ provide: CompilerConfig,
270
+ useFactory: () => {
271
+ return new CompilerConfig({
272
+ // let explicit values from the compiler options overwrite options
273
+ // from the app providers
274
+ useJit: opts.useJit,
275
+ jitDevMode: isDevMode(),
276
+ // let explicit values from the compiler options overwrite options
277
+ // from the app providers
278
+ defaultEncapsulation: opts.defaultEncapsulation,
279
+ missingTranslation: opts.missingTranslation,
280
+ preserveWhitespaces: opts.preserveWhitespaces,
281
+ });
282
+ },
283
+ deps: []
284
+ },
285
+ opts.providers
286
+ ]);
287
+ return injector.get(Compiler);
288
+ }
289
+ }
290
+ function _mergeOptions(optionsArr) {
291
+ return {
292
+ useJit: _lastDefined(optionsArr.map(options => options.useJit)),
293
+ defaultEncapsulation: _lastDefined(optionsArr.map(options => options.defaultEncapsulation)),
294
+ providers: _mergeArrays(optionsArr.map(options => options.providers)),
295
+ missingTranslation: _lastDefined(optionsArr.map(options => options.missingTranslation)),
296
+ preserveWhitespaces: _lastDefined(optionsArr.map(options => options.preserveWhitespaces)),
297
+ };
298
+ }
299
+ function _lastDefined(args) {
300
+ for (let i = args.length - 1; i >= 0; i--) {
301
+ if (args[i] !== undefined) {
302
+ return args[i];
303
+ }
304
+ }
305
+ return undefined;
306
+ }
307
+ function _mergeArrays(parts) {
308
+ const result = [];
309
+ parts.forEach((part) => part && result.push(...part));
310
+ return result;
311
+ }
312
+
313
+ /**
314
+ * @license
315
+ * Copyright Google LLC All Rights Reserved.
316
+ *
317
+ * Use of this source code is governed by an MIT-style license that can be
318
+ * found in the LICENSE file at https://angular.io/license
319
+ */
320
+ /**
321
+ * A platform that included corePlatform and the compiler.
322
+ *
323
+ * @publicApi
324
+ */
325
+ const platformCoreDynamic = createPlatformFactory(platformCore, 'coreDynamic', [
326
+ { provide: COMPILER_OPTIONS, useValue: {}, multi: true },
327
+ { provide: CompilerFactory, useClass: JitCompilerFactory, deps: [COMPILER_OPTIONS] },
328
+ ]);
329
+
330
+ /**
331
+ * @license
332
+ * Copyright Google LLC All Rights Reserved.
333
+ *
334
+ * Use of this source code is governed by an MIT-style license that can be
335
+ * found in the LICENSE file at https://angular.io/license
336
+ */
337
+ class ResourceLoaderImpl extends ResourceLoader {
338
+ get(url) {
339
+ let resolve;
340
+ let reject;
341
+ const promise = new Promise((res, rej) => {
342
+ resolve = res;
343
+ reject = rej;
344
+ });
345
+ const xhr = new XMLHttpRequest();
346
+ xhr.open('GET', url, true);
347
+ xhr.responseType = 'text';
348
+ xhr.onload = function () {
349
+ // responseText is the old-school way of retrieving response (supported by IE8 & 9)
350
+ // response/responseType properties were introduced in ResourceLoader Level2 spec (supported
351
+ // by IE10)
352
+ const response = xhr.response || xhr.responseText;
353
+ // normalize IE9 bug (https://bugs.jquery.com/ticket/1450)
354
+ let status = xhr.status === 1223 ? 204 : xhr.status;
355
+ // fix status code when it is 0 (0 status is undocumented).
356
+ // Occurs when accessing file resources or on Android 4.1 stock browser
357
+ // while retrieving files from application cache.
358
+ if (status === 0) {
359
+ status = response ? 200 : 0;
360
+ }
361
+ if (200 <= status && status <= 300) {
362
+ resolve(response);
363
+ }
364
+ else {
365
+ reject(`Failed to load ${url}`);
366
+ }
367
+ };
368
+ xhr.onerror = function () {
369
+ reject(`Failed to load ${url}`);
370
+ };
371
+ xhr.send();
372
+ return promise;
373
+ }
374
+ }
375
+ ResourceLoaderImpl.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-next.10", ngImport: i0, type: ResourceLoaderImpl, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
376
+ ResourceLoaderImpl.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.0-next.10", ngImport: i0, type: ResourceLoaderImpl });
377
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-next.10", ngImport: i0, type: ResourceLoaderImpl, decorators: [{
378
+ type: Injectable
379
+ }] });
380
+
381
+ /**
382
+ * @license
383
+ * Copyright Google LLC All Rights Reserved.
384
+ *
385
+ * Use of this source code is governed by an MIT-style license that can be
386
+ * found in the LICENSE file at https://angular.io/license
387
+ */
388
+ /**
389
+ * @publicApi
390
+ */
391
+ const INTERNAL_BROWSER_DYNAMIC_PLATFORM_PROVIDERS = [
392
+ ɵINTERNAL_BROWSER_PLATFORM_PROVIDERS,
393
+ {
394
+ provide: COMPILER_OPTIONS,
395
+ useValue: { providers: [{ provide: ResourceLoader, useClass: ResourceLoaderImpl, deps: [] }] },
396
+ multi: true
397
+ },
398
+ { provide: PLATFORM_ID, useValue: ɵPLATFORM_BROWSER_ID },
399
+ ];
400
+
401
+ /**
402
+ * @license
403
+ * Copyright Google LLC All Rights Reserved.
404
+ *
405
+ * Use of this source code is governed by an MIT-style license that can be
406
+ * found in the LICENSE file at https://angular.io/license
407
+ */
408
+ /**
409
+ * An implementation of ResourceLoader that uses a template cache to avoid doing an actual
410
+ * ResourceLoader.
411
+ *
412
+ * The template cache needs to be built and loaded into window.$templateCache
413
+ * via a separate mechanism.
414
+ *
415
+ * @publicApi
416
+ */
417
+ class CachedResourceLoader extends ResourceLoader {
418
+ constructor() {
419
+ super();
420
+ this._cache = ɵglobal.$templateCache;
421
+ if (this._cache == null) {
422
+ throw new Error('CachedResourceLoader: Template cache was not found in $templateCache.');
423
+ }
424
+ }
425
+ get(url) {
426
+ if (this._cache.hasOwnProperty(url)) {
427
+ return Promise.resolve(this._cache[url]);
428
+ }
429
+ else {
430
+ return Promise.reject('CachedResourceLoader: Did not find cached template for ' + url);
431
+ }
432
+ }
433
+ }
434
+
435
+ /**
436
+ * @license
437
+ * Copyright Google LLC All Rights Reserved.
438
+ *
439
+ * Use of this source code is governed by an MIT-style license that can be
440
+ * found in the LICENSE file at https://angular.io/license
441
+ */
442
+
443
+ /**
444
+ * @license
445
+ * Copyright Google LLC All Rights Reserved.
446
+ *
447
+ * Use of this source code is governed by an MIT-style license that can be
448
+ * found in the LICENSE file at https://angular.io/license
449
+ */
450
+ /**
451
+ * @publicApi
452
+ */
453
+ const VERSION = new Version('13.0.0-next.10');
454
+
455
+ /**
456
+ * @license
457
+ * Copyright Google LLC All Rights Reserved.
458
+ *
459
+ * Use of this source code is governed by an MIT-style license that can be
460
+ * found in the LICENSE file at https://angular.io/license
461
+ */
462
+ /**
463
+ * @publicApi
464
+ */
465
+ const RESOURCE_CACHE_PROVIDER = [{ provide: ResourceLoader, useClass: CachedResourceLoader, deps: [] }];
466
+ /**
467
+ * @publicApi
468
+ */
469
+ const platformBrowserDynamic = createPlatformFactory(platformCoreDynamic, 'browserDynamic', INTERNAL_BROWSER_DYNAMIC_PLATFORM_PROVIDERS);
470
+
471
+ /**
472
+ * @license
473
+ * Copyright Google LLC All Rights Reserved.
474
+ *
475
+ * Use of this source code is governed by an MIT-style license that can be
476
+ * found in the LICENSE file at https://angular.io/license
477
+ */
478
+ // This file only reexports content of the `src` folder. Keep it that way.
479
+
480
+ /**
481
+ * @license
482
+ * Copyright Google LLC All Rights Reserved.
483
+ *
484
+ * Use of this source code is governed by an MIT-style license that can be
485
+ * found in the LICENSE file at https://angular.io/license
486
+ */
487
+
488
+ /**
489
+ * Generated bundle index. Do not edit.
490
+ */
491
+
492
+ export { JitCompilerFactory, RESOURCE_CACHE_PROVIDER, VERSION, platformBrowserDynamic, COMPILER_PROVIDERS__POST_R3__ as ɵCOMPILER_PROVIDERS__POST_R3__, CompilerImpl as ɵCompilerImpl, INTERNAL_BROWSER_DYNAMIC_PLATFORM_PROVIDERS as ɵINTERNAL_BROWSER_DYNAMIC_PLATFORM_PROVIDERS, ResourceLoaderImpl as ɵResourceLoaderImpl, platformCoreDynamic as ɵplatformCoreDynamic };
493
+ //# sourceMappingURL=platform-browser-dynamic.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"platform-browser-dynamic.mjs","sources":["../../../../../../packages/platform-browser-dynamic/src/compiler_reflector.ts","../../../../../../packages/platform-browser-dynamic/src/compiler_factory.ts","../../../../../../packages/platform-browser-dynamic/src/platform_core_dynamic.ts","../../../../../../packages/platform-browser-dynamic/src/resource_loader/resource_loader_impl.ts","../../../../../../packages/platform-browser-dynamic/src/platform_providers.ts","../../../../../../packages/platform-browser-dynamic/src/resource_loader/resource_loader_cache.ts","../../../../../../packages/platform-browser-dynamic/src/private_export.ts","../../../../../../packages/platform-browser-dynamic/src/version.ts","../../../../../../packages/platform-browser-dynamic/src/platform-browser-dynamic.ts","../../../../../../packages/platform-browser-dynamic/public_api.ts","../../../../../../packages/platform-browser-dynamic/index.ts","../../../../../../packages/platform-browser-dynamic/platform-browser-dynamic.ts"],"sourcesContent":["/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\nimport {CompileReflector, ExternalReference, getUrlScheme, Identifiers, syntaxError} from '@angular/compiler';\nimport {ANALYZE_FOR_ENTRY_COMPONENTS, ChangeDetectionStrategy, ChangeDetectorRef, Component, ComponentFactory, ComponentFactoryResolver, ComponentRef, ElementRef, Injector, LOCALE_ID, NgModuleFactory, NgModuleRef, QueryList, Renderer2, SecurityContext, TemplateRef, TRANSLATIONS_FORMAT, ViewContainerRef, ViewEncapsulation, ɵand, ɵccf, ɵcmf, ɵCodegenComponentFactoryResolver, ɵcrt, ɵdid, ɵeld, ɵEMPTY_ARRAY, ɵEMPTY_MAP, ɵinlineInterpolate, ɵinterpolate, ɵmod, ɵmpd, ɵncd, ɵnov, ɵpad, ɵpid, ɵpod, ɵppd, ɵprd, ɵqud, ɵReflectionCapabilities as ReflectionCapabilities, ɵregisterModuleFactory, ɵstringify as stringify, ɵted, ɵvid} from '@angular/core';\n\nexport const MODULE_SUFFIX = '';\nconst builtinExternalReferences = createBuiltinExternalReferencesMap();\n\nexport class JitReflector implements CompileReflector {\n private reflectionCapabilities = new ReflectionCapabilities();\n\n componentModuleUrl(type: any, cmpMetadata: Component): string {\n const moduleId = cmpMetadata.moduleId;\n\n if (typeof moduleId === 'string') {\n const scheme = getUrlScheme(moduleId);\n return scheme ? moduleId : `package:${moduleId}${MODULE_SUFFIX}`;\n } else if (moduleId !== null && moduleId !== void 0) {\n throw syntaxError(\n `moduleId should be a string in \"${\n stringify(type)}\". See https://goo.gl/wIDDiL for more information.\\n` +\n `If you're using Webpack you should inline the template and the styles, see https://goo.gl/X2J8zc.`);\n }\n\n return `./${stringify(type)}`;\n }\n parameters(typeOrFunc: /*Type*/ any): any[][] {\n return this.reflectionCapabilities.parameters(typeOrFunc);\n }\n tryAnnotations(typeOrFunc: /*Type*/ any): any[] {\n return this.annotations(typeOrFunc);\n }\n annotations(typeOrFunc: /*Type*/ any): any[] {\n return this.reflectionCapabilities.annotations(typeOrFunc);\n }\n shallowAnnotations(typeOrFunc: /*Type*/ any): any[] {\n throw new Error('Not supported in JIT mode');\n }\n propMetadata(typeOrFunc: /*Type*/ any): {[key: string]: any[]} {\n return this.reflectionCapabilities.propMetadata(typeOrFunc);\n }\n hasLifecycleHook(type: any, lcProperty: string): boolean {\n return this.reflectionCapabilities.hasLifecycleHook(type, lcProperty);\n }\n guards(type: any): {[key: string]: any} {\n return this.reflectionCapabilities.guards(type);\n }\n resolveExternalReference(ref: ExternalReference): any {\n return builtinExternalReferences.get(ref) || ref.runtime;\n }\n}\n\n\nfunction createBuiltinExternalReferencesMap() {\n const map = new Map<ExternalReference, any>();\n map.set(Identifiers.ANALYZE_FOR_ENTRY_COMPONENTS, ANALYZE_FOR_ENTRY_COMPONENTS);\n map.set(Identifiers.ElementRef, ElementRef);\n map.set(Identifiers.NgModuleRef, NgModuleRef);\n map.set(Identifiers.ViewContainerRef, ViewContainerRef);\n map.set(Identifiers.ChangeDetectorRef, ChangeDetectorRef);\n map.set(Identifiers.Renderer2, Renderer2);\n map.set(Identifiers.QueryList, QueryList);\n map.set(Identifiers.TemplateRef, TemplateRef);\n map.set(Identifiers.CodegenComponentFactoryResolver, ɵCodegenComponentFactoryResolver);\n map.set(Identifiers.ComponentFactoryResolver, ComponentFactoryResolver);\n map.set(Identifiers.ComponentFactory, ComponentFactory);\n map.set(Identifiers.ComponentRef, ComponentRef);\n map.set(Identifiers.NgModuleFactory, NgModuleFactory);\n map.set(Identifiers.createModuleFactory, ɵcmf);\n map.set(Identifiers.moduleDef, ɵmod);\n map.set(Identifiers.moduleProviderDef, ɵmpd);\n map.set(Identifiers.RegisterModuleFactoryFn, ɵregisterModuleFactory);\n map.set(Identifiers.Injector, Injector);\n map.set(Identifiers.ViewEncapsulation, ViewEncapsulation);\n map.set(Identifiers.ChangeDetectionStrategy, ChangeDetectionStrategy);\n map.set(Identifiers.SecurityContext, SecurityContext);\n map.set(Identifiers.LOCALE_ID, LOCALE_ID);\n map.set(Identifiers.TRANSLATIONS_FORMAT, TRANSLATIONS_FORMAT);\n map.set(Identifiers.inlineInterpolate, ɵinlineInterpolate);\n map.set(Identifiers.interpolate, ɵinterpolate);\n map.set(Identifiers.EMPTY_ARRAY, ɵEMPTY_ARRAY);\n map.set(Identifiers.EMPTY_MAP, ɵEMPTY_MAP);\n map.set(Identifiers.viewDef, ɵvid);\n map.set(Identifiers.elementDef, ɵeld);\n map.set(Identifiers.anchorDef, ɵand);\n map.set(Identifiers.textDef, ɵted);\n map.set(Identifiers.directiveDef, ɵdid);\n map.set(Identifiers.providerDef, ɵprd);\n map.set(Identifiers.queryDef, ɵqud);\n map.set(Identifiers.pureArrayDef, ɵpad);\n map.set(Identifiers.pureObjectDef, ɵpod);\n map.set(Identifiers.purePipeDef, ɵppd);\n map.set(Identifiers.pipeDef, ɵpid);\n map.set(Identifiers.nodeValue, ɵnov);\n map.set(Identifiers.ngContentDef, ɵncd);\n map.set(Identifiers.createRendererType2, ɵcrt);\n map.set(Identifiers.createComponentFactory, ɵccf);\n return map;\n}\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\nimport {CompileMetadataResolver, CompilerConfig, CompileReflector, DirectiveNormalizer, DirectiveResolver, DomElementSchemaRegistry, ElementSchemaRegistry, HtmlParser, I18NHtmlParser, JitCompiler, JitEvaluator, JitSummaryResolver, Lexer, NgModuleCompiler, NgModuleResolver, Parser, PipeResolver, ProviderMeta, ResourceLoader, StaticSymbolCache, StyleCompiler, SummaryResolver, TemplateParser, UrlResolver, ViewCompiler} from '@angular/compiler';\nimport {Compiler, CompilerFactory, CompilerOptions, ComponentFactory, Inject, InjectionToken, Injector, isDevMode, MissingTranslationStrategy, ModuleWithComponentFactories, NgModuleFactory, Optional, PACKAGE_ROOT_URL, StaticProvider, TRANSLATIONS, TRANSLATIONS_FORMAT, Type, ViewEncapsulation, ɵConsole as Console} from '@angular/core';\n\nimport {JitReflector} from './compiler_reflector';\n\nexport const ERROR_COLLECTOR_TOKEN = new InjectionToken('ErrorCollector');\n\n/**\n * A default provider for {@link PACKAGE_ROOT_URL} that maps to '/'.\n */\nexport const DEFAULT_PACKAGE_URL_PROVIDER = {\n provide: PACKAGE_ROOT_URL,\n useValue: '/'\n};\n\nconst _NO_RESOURCE_LOADER: ResourceLoader = {\n get(url: string): Promise<string> {\n throw new Error(\n `No ResourceLoader implementation has been provided. Can't read the url \"${url}\"`);\n }\n};\n\nconst baseHtmlParser = new InjectionToken('HtmlParser');\n\nexport class CompilerImpl implements Compiler {\n private _delegate: JitCompiler;\n public readonly injector: Injector;\n constructor(\n injector: Injector, private _metadataResolver: CompileMetadataResolver,\n templateParser: TemplateParser, styleCompiler: StyleCompiler, viewCompiler: ViewCompiler,\n ngModuleCompiler: NgModuleCompiler, summaryResolver: SummaryResolver<Type<any>>,\n compileReflector: CompileReflector, jitEvaluator: JitEvaluator,\n compilerConfig: CompilerConfig, console: Console) {\n this._delegate = new JitCompiler(\n _metadataResolver, templateParser, styleCompiler, viewCompiler, ngModuleCompiler,\n summaryResolver, compileReflector, jitEvaluator, compilerConfig, console,\n this.getExtraNgModuleProviders.bind(this));\n this.injector = injector;\n }\n\n private getExtraNgModuleProviders() {\n return [this._metadataResolver.getProviderMetadata(\n new ProviderMeta(Compiler, {useValue: this}))];\n }\n\n compileModuleSync<T>(moduleType: Type<T>): NgModuleFactory<T> {\n return this._delegate.compileModuleSync(moduleType) as NgModuleFactory<T>;\n }\n compileModuleAsync<T>(moduleType: Type<T>): Promise<NgModuleFactory<T>> {\n return this._delegate.compileModuleAsync(moduleType) as Promise<NgModuleFactory<T>>;\n }\n compileModuleAndAllComponentsSync<T>(moduleType: Type<T>): ModuleWithComponentFactories<T> {\n const result = this._delegate.compileModuleAndAllComponentsSync(moduleType);\n return {\n ngModuleFactory: result.ngModuleFactory as NgModuleFactory<T>,\n componentFactories: result.componentFactories as ComponentFactory<any>[],\n };\n }\n compileModuleAndAllComponentsAsync<T>(moduleType: Type<T>):\n Promise<ModuleWithComponentFactories<T>> {\n return this._delegate.compileModuleAndAllComponentsAsync(moduleType)\n .then((result) => ({\n ngModuleFactory: result.ngModuleFactory as NgModuleFactory<T>,\n componentFactories: result.componentFactories as ComponentFactory<any>[],\n }));\n }\n loadAotSummaries(summaries: () => any[]) {\n this._delegate.loadAotSummaries(summaries);\n }\n hasAotSummary(ref: Type<any>): boolean {\n return this._delegate.hasAotSummary(ref);\n }\n getComponentFactory<T>(component: Type<T>): ComponentFactory<T> {\n return this._delegate.getComponentFactory(component) as ComponentFactory<T>;\n }\n clearCache(): void {\n this._delegate.clearCache();\n }\n clearCacheFor(type: Type<any>) {\n this._delegate.clearCacheFor(type);\n }\n getModuleId(moduleType: Type<any>): string|undefined {\n const meta = this._metadataResolver.getNgModuleMetadata(moduleType);\n return meta && meta.id || undefined;\n }\n}\n/**\n * A set of providers that provide `JitCompiler` and its dependencies to use for\n * template compilation.\n */\nconst COMPILER_PROVIDERS__PRE_R3__ = <StaticProvider[]>[\n {provide: CompileReflector, useValue: new JitReflector()},\n {provide: ResourceLoader, useValue: _NO_RESOURCE_LOADER},\n {provide: JitSummaryResolver, deps: []},\n {provide: SummaryResolver, useExisting: JitSummaryResolver},\n {provide: Console, deps: []},\n {provide: Lexer, deps: []},\n {provide: Parser, deps: [Lexer]},\n {\n provide: baseHtmlParser,\n useClass: HtmlParser,\n deps: [],\n },\n {\n provide: I18NHtmlParser,\n useFactory:\n (parser: HtmlParser, translations: string|null, format: string, config: CompilerConfig,\n console: Console) => {\n translations = translations || '';\n const missingTranslation =\n translations ? config.missingTranslation! : MissingTranslationStrategy.Ignore;\n return new I18NHtmlParser(parser, translations, format, missingTranslation, console);\n },\n deps: [\n baseHtmlParser,\n [new Optional(), new Inject(TRANSLATIONS)],\n [new Optional(), new Inject(TRANSLATIONS_FORMAT)],\n [CompilerConfig],\n [Console],\n ]\n },\n {\n provide: HtmlParser,\n useExisting: I18NHtmlParser,\n },\n {\n provide: TemplateParser,\n deps: [CompilerConfig, CompileReflector, Parser, ElementSchemaRegistry, I18NHtmlParser, Console]\n },\n {provide: JitEvaluator, useClass: JitEvaluator, deps: []},\n {provide: DirectiveNormalizer, deps: [ResourceLoader, UrlResolver, HtmlParser, CompilerConfig]},\n {\n provide: CompileMetadataResolver,\n deps: [\n CompilerConfig, HtmlParser, NgModuleResolver, DirectiveResolver, PipeResolver,\n SummaryResolver, ElementSchemaRegistry, DirectiveNormalizer, Console,\n [Optional, StaticSymbolCache], CompileReflector, [Optional, ERROR_COLLECTOR_TOKEN]\n ]\n },\n DEFAULT_PACKAGE_URL_PROVIDER,\n {provide: StyleCompiler, deps: [UrlResolver]},\n {provide: ViewCompiler, deps: [CompileReflector]},\n {provide: NgModuleCompiler, deps: [CompileReflector]},\n {provide: CompilerConfig, useValue: new CompilerConfig()},\n {\n provide: Compiler,\n useClass: CompilerImpl,\n deps: [\n Injector, CompileMetadataResolver, TemplateParser, StyleCompiler, ViewCompiler,\n NgModuleCompiler, SummaryResolver, CompileReflector, JitEvaluator, CompilerConfig, Console\n ]\n },\n {provide: DomElementSchemaRegistry, deps: []},\n {provide: ElementSchemaRegistry, useExisting: DomElementSchemaRegistry},\n {provide: UrlResolver, deps: [PACKAGE_ROOT_URL]},\n {provide: DirectiveResolver, deps: [CompileReflector]},\n {provide: PipeResolver, deps: [CompileReflector]},\n {provide: NgModuleResolver, deps: [CompileReflector]},\n];\n\nexport const COMPILER_PROVIDERS__POST_R3__ =\n <StaticProvider[]>[{provide: Compiler, useFactory: () => new Compiler()}];\nexport const COMPILER_PROVIDERS = COMPILER_PROVIDERS__PRE_R3__;\n/**\n * @publicApi\n */\nexport class JitCompilerFactory implements CompilerFactory {\n private _defaultOptions: CompilerOptions[];\n\n /* @internal */\n constructor(defaultOptions: CompilerOptions[]) {\n const compilerOptions: CompilerOptions = {\n useJit: true,\n defaultEncapsulation: ViewEncapsulation.Emulated,\n missingTranslation: MissingTranslationStrategy.Warning,\n };\n\n this._defaultOptions = [compilerOptions, ...defaultOptions];\n }\n createCompiler(options: CompilerOptions[] = []): Compiler {\n const opts = _mergeOptions(this._defaultOptions.concat(options));\n const injector = Injector.create([\n COMPILER_PROVIDERS, {\n provide: CompilerConfig,\n useFactory: () => {\n return new CompilerConfig({\n // let explicit values from the compiler options overwrite options\n // from the app providers\n useJit: opts.useJit,\n jitDevMode: isDevMode(),\n // let explicit values from the compiler options overwrite options\n // from the app providers\n defaultEncapsulation: opts.defaultEncapsulation,\n missingTranslation: opts.missingTranslation,\n preserveWhitespaces: opts.preserveWhitespaces,\n });\n },\n deps: []\n },\n opts.providers!\n ]);\n return injector.get(Compiler);\n }\n}\n\nfunction _mergeOptions(optionsArr: CompilerOptions[]): CompilerOptions {\n return {\n useJit: _lastDefined(optionsArr.map(options => options.useJit)),\n defaultEncapsulation: _lastDefined(optionsArr.map(options => options.defaultEncapsulation)),\n providers: _mergeArrays(optionsArr.map(options => options.providers!)),\n missingTranslation: _lastDefined(optionsArr.map(options => options.missingTranslation)),\n preserveWhitespaces: _lastDefined(optionsArr.map(options => options.preserveWhitespaces)),\n };\n}\n\nfunction _lastDefined<T>(args: T[]): T|undefined {\n for (let i = args.length - 1; i >= 0; i--) {\n if (args[i] !== undefined) {\n return args[i];\n }\n }\n return undefined;\n}\n\nfunction _mergeArrays(parts: any[][]): any[] {\n const result: any[] = [];\n parts.forEach((part) => part && result.push(...part));\n return result;\n}\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\nimport {COMPILER_OPTIONS, CompilerFactory, createPlatformFactory, platformCore, PlatformRef, StaticProvider} from '@angular/core';\n\nimport {JitCompilerFactory} from './compiler_factory';\n\n/**\n * A platform that included corePlatform and the compiler.\n *\n * @publicApi\n */\nexport const platformCoreDynamic = createPlatformFactory(platformCore, 'coreDynamic', [\n {provide: COMPILER_OPTIONS, useValue: {}, multi: true},\n {provide: CompilerFactory, useClass: JitCompilerFactory, deps: [COMPILER_OPTIONS]},\n]);\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\nimport {ResourceLoader} from '@angular/compiler';\nimport {Injectable} from '@angular/core';\n\n\n@Injectable()\nexport class ResourceLoaderImpl extends ResourceLoader {\n override get(url: string): Promise<string> {\n let resolve: (result: any) => void;\n let reject: (error: any) => void;\n const promise = new Promise<string>((res, rej) => {\n resolve = res;\n reject = rej;\n });\n const xhr = new XMLHttpRequest();\n xhr.open('GET', url, true);\n xhr.responseType = 'text';\n\n xhr.onload = function() {\n // responseText is the old-school way of retrieving response (supported by IE8 & 9)\n // response/responseType properties were introduced in ResourceLoader Level2 spec (supported\n // by IE10)\n const response = xhr.response || xhr.responseText;\n\n // normalize IE9 bug (https://bugs.jquery.com/ticket/1450)\n let status = xhr.status === 1223 ? 204 : xhr.status;\n\n // fix status code when it is 0 (0 status is undocumented).\n // Occurs when accessing file resources or on Android 4.1 stock browser\n // while retrieving files from application cache.\n if (status === 0) {\n status = response ? 200 : 0;\n }\n\n if (200 <= status && status <= 300) {\n resolve(response);\n } else {\n reject(`Failed to load ${url}`);\n }\n };\n\n xhr.onerror = function() {\n reject(`Failed to load ${url}`);\n };\n\n xhr.send();\n return promise;\n }\n}\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\nimport {ɵPLATFORM_BROWSER_ID as PLATFORM_BROWSER_ID} from '@angular/common';\nimport {ResourceLoader} from '@angular/compiler';\nimport {COMPILER_OPTIONS, PLATFORM_ID, StaticProvider} from '@angular/core';\n\nimport {ɵINTERNAL_BROWSER_PLATFORM_PROVIDERS as INTERNAL_BROWSER_PLATFORM_PROVIDERS} from '@angular/platform-browser';\n\nimport {ResourceLoaderImpl} from './resource_loader/resource_loader_impl';\n\n/**\n * @publicApi\n */\nexport const INTERNAL_BROWSER_DYNAMIC_PLATFORM_PROVIDERS: StaticProvider[] = [\n INTERNAL_BROWSER_PLATFORM_PROVIDERS,\n {\n provide: COMPILER_OPTIONS,\n useValue: {providers: [{provide: ResourceLoader, useClass: ResourceLoaderImpl, deps: []}]},\n multi: true\n },\n {provide: PLATFORM_ID, useValue: PLATFORM_BROWSER_ID},\n];\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\nimport {ResourceLoader} from '@angular/compiler';\nimport {ɵglobal as global} from '@angular/core';\n\n/**\n * An implementation of ResourceLoader that uses a template cache to avoid doing an actual\n * ResourceLoader.\n *\n * The template cache needs to be built and loaded into window.$templateCache\n * via a separate mechanism.\n *\n * @publicApi\n */\nexport class CachedResourceLoader extends ResourceLoader {\n private _cache: {[url: string]: string};\n\n constructor() {\n super();\n this._cache = (<any>global).$templateCache;\n if (this._cache == null) {\n throw new Error('CachedResourceLoader: Template cache was not found in $templateCache.');\n }\n }\n\n override get(url: string): Promise<string> {\n if (this._cache.hasOwnProperty(url)) {\n return Promise.resolve(this._cache[url]);\n } else {\n return <Promise<any>>Promise.reject(\n 'CachedResourceLoader: Did not find cached template for ' + url);\n }\n }\n}\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\nexport {COMPILER_PROVIDERS__POST_R3__ as ɵCOMPILER_PROVIDERS__POST_R3__, CompilerImpl as ɵCompilerImpl} from './compiler_factory';\nexport {platformCoreDynamic as ɵplatformCoreDynamic} from './platform_core_dynamic';\nexport {INTERNAL_BROWSER_DYNAMIC_PLATFORM_PROVIDERS as ɵINTERNAL_BROWSER_DYNAMIC_PLATFORM_PROVIDERS} from './platform_providers';\nexport {ResourceLoaderImpl as ɵResourceLoaderImpl} from './resource_loader/resource_loader_impl';\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\n/**\n * @module\n * @description\n * Entry point for all public APIs of the platform-browser-dynamic package.\n */\n\nimport {Version} from '@angular/core';\n\n/**\n * @publicApi\n */\nexport const VERSION = new Version('13.0.0-next.10');\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\nimport {ResourceLoader} from '@angular/compiler';\nimport {CompilerFactory, createPlatformFactory, platformCore, PlatformRef, Provider, StaticProvider} from '@angular/core';\n\nimport {platformCoreDynamic} from './platform_core_dynamic';\nimport {INTERNAL_BROWSER_DYNAMIC_PLATFORM_PROVIDERS} from './platform_providers';\nimport {CachedResourceLoader} from './resource_loader/resource_loader_cache';\n\nexport * from './private_export';\nexport {VERSION} from './version';\nexport {JitCompilerFactory} from './compiler_factory';\n\n/**\n * @publicApi\n */\nexport const RESOURCE_CACHE_PROVIDER: Provider[] =\n [{provide: ResourceLoader, useClass: CachedResourceLoader, deps: []}];\n\n/**\n * @publicApi\n */\nexport const platformBrowserDynamic = createPlatformFactory(\n platformCoreDynamic, 'browserDynamic', INTERNAL_BROWSER_DYNAMIC_PLATFORM_PROVIDERS);\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\n/**\n * @module\n * @description\n * Entry point for all public APIs of this package.\n */\nexport * from './src/platform-browser-dynamic';\n\n// This file only reexports content of the `src` folder. Keep it that way.\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\n// This file is not used to build this module. It is only used during editing\n// by the TypeScript language service and during build for verification. `ngc`\n// replaces this file with production index.ts when it rewrites private symbol\n// names.\n\nexport * from './public_api';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["ReflectionCapabilities","stringify","Console","INTERNAL_BROWSER_PLATFORM_PROVIDERS","PLATFORM_BROWSER_ID","global"],"mappings":";;;;;;;;;;;;AAAA;;;;;;;AAWO,MAAM,aAAa,GAAG,EAAE,CAAC;AAChC,MAAM,yBAAyB,GAAG,kCAAkC,EAAE,CAAC;MAE1D,YAAY;IAAzB;QACU,2BAAsB,GAAG,IAAIA,uBAAsB,EAAE,CAAC;KAyC/D;IAvCC,kBAAkB,CAAC,IAAS,EAAE,WAAsB;QAClD,MAAM,QAAQ,GAAG,WAAW,CAAC,QAAQ,CAAC;QAEtC,IAAI,OAAO,QAAQ,KAAK,QAAQ,EAAE;YAChC,MAAM,MAAM,GAAG,YAAY,CAAC,QAAQ,CAAC,CAAC;YACtC,OAAO,MAAM,GAAG,QAAQ,GAAG,WAAW,QAAQ,GAAG,aAAa,EAAE,CAAC;SAClE;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AAI,IAAI,CAAC,MAAM,CAAC,cAAc,CAAC,GAAG,CAAC,EAAE;YACnC,OAAO,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC;SAC1C;aAAM;YACL,OAAqB,OAAO,CAAC,MAAM,CAC/B,yDAAyD,GAAG,GAAG,CAAC,CAAC;SACtE;KACF;;;ACtCH;;;;;;;;ACAA;;;;;;;AAgBA;;;MAGa,OAAO,GAAG,IAAI,OAAO,CAAC,mBAAmB;;ACnBtD;;;;;;;AAmBA;;;MAGa,uBAAuB,GAChC,CAAC,EAAC,OAAO,EAAE,cAAc,EAAE,QAAQ,EAAE,oBAAoB,EAAE,IAAI,EAAE,EAAE,EAAC,EAAE;AAE1E;;;MAGa,sBAAsB,GAAG,qBAAqB,CACvD,mBAAmB,EAAE,gBAAgB,EAAE,2CAA2C;;AC7BtF;;;;;;;AAeA;;ACfA;;;;;;;;ACAA;;;;;;"}
@@ -1,9 +1,10 @@
1
1
  /**
2
- * @license Angular v12.2.7
2
+ * @license Angular v13.0.0-next.10
3
3
  * (c) 2010-2021 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
6
6
 
7
+ import * as i0 from '@angular/core';
7
8
  import { Injectable, Inject, ɵstringify, NgModule, Directive, Component, Pipe, createPlatformFactory, COMPILER_OPTIONS, Injector, CompilerFactory } from '@angular/core';
8
9
  import { TestComponentRenderer, ɵMetadataOverrider, ɵTestingCompilerFactory } from '@angular/core/testing';
9
10
  import { ɵplatformCoreDynamic, ɵINTERNAL_BROWSER_DYNAMIC_PLATFORM_PROVIDERS } from '@angular/platform-browser-dynamic';
@@ -41,12 +42,14 @@ class DOMTestComponentRenderer extends TestComponentRenderer {
41
42
  }
42
43
  }
43
44
  }
44
- DOMTestComponentRenderer.decorators = [
45
- { type: Injectable }
46
- ];
47
- DOMTestComponentRenderer.ctorParameters = () => [
48
- { type: undefined, decorators: [{ type: Inject, args: [DOCUMENT,] }] }
49
- ];
45
+ DOMTestComponentRenderer.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-next.10", ngImport: i0, type: DOMTestComponentRenderer, deps: [{ token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable });
46
+ DOMTestComponentRenderer.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.0-next.10", ngImport: i0, type: DOMTestComponentRenderer });
47
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-next.10", ngImport: i0, type: DOMTestComponentRenderer, decorators: [{
48
+ type: Injectable
49
+ }], ctorParameters: function () { return [{ type: undefined, decorators: [{
50
+ type: Inject,
51
+ args: [DOCUMENT]
52
+ }] }]; } });
50
53
 
51
54
  /**
52
55
  * @license
@@ -160,14 +163,13 @@ class TestingCompilerImpl {
160
163
  * Use of this source code is governed by an MIT-style license that can be
161
164
  * found in the LICENSE file at https://angular.io/license
162
165
  */
163
- const ɵ0 = { providers: COMPILER_PROVIDERS };
164
166
  /**
165
167
  * Platform for dynamic tests
166
168
  *
167
169
  * @publicApi
168
170
  */
169
171
  const platformCoreDynamicTesting = createPlatformFactory(ɵplatformCoreDynamic, 'coreDynamicTesting', [
170
- { provide: COMPILER_OPTIONS, useValue: ɵ0, multi: true }, {
172
+ { provide: COMPILER_OPTIONS, useValue: { providers: COMPILER_PROVIDERS }, multi: true }, {
171
173
  provide: ɵTestingCompilerFactory,
172
174
  useClass: TestingCompilerFactoryImpl,
173
175
  deps: [Injector, CompilerFactory]
@@ -200,14 +202,20 @@ const platformBrowserDynamicTesting = createPlatformFactory(platformCoreDynamicT
200
202
  */
201
203
  class BrowserDynamicTestingModule {
202
204
  }
203
- BrowserDynamicTestingModule.decorators = [
204
- { type: NgModule, args: [{
205
- exports: [BrowserTestingModule],
206
- providers: [
207
- { provide: TestComponentRenderer, useClass: DOMTestComponentRenderer },
208
- ]
209
- },] }
210
- ];
205
+ BrowserDynamicTestingModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-next.10", ngImport: i0, type: BrowserDynamicTestingModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
206
+ BrowserDynamicTestingModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.0.0-next.10", ngImport: i0, type: BrowserDynamicTestingModule, exports: [BrowserTestingModule] });
207
+ BrowserDynamicTestingModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.0.0-next.10", ngImport: i0, type: BrowserDynamicTestingModule, providers: [
208
+ { provide: TestComponentRenderer, useClass: DOMTestComponentRenderer },
209
+ ], imports: [BrowserTestingModule] });
210
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-next.10", ngImport: i0, type: BrowserDynamicTestingModule, decorators: [{
211
+ type: NgModule,
212
+ args: [{
213
+ exports: [BrowserTestingModule],
214
+ providers: [
215
+ { provide: TestComponentRenderer, useClass: DOMTestComponentRenderer },
216
+ ]
217
+ }]
218
+ }] });
211
219
 
212
220
  /**
213
221
  * @license
@@ -229,5 +237,5 @@ BrowserDynamicTestingModule.decorators = [
229
237
  * Generated bundle index. Do not edit.
230
238
  */
231
239
 
232
- export { BrowserDynamicTestingModule, platformBrowserDynamicTesting, DOMTestComponentRenderer as ɵDOMTestComponentRenderer, COMPILER_PROVIDERS as ɵangular_packages_platform_browser_dynamic_testing_testing_a, TestingCompilerFactoryImpl as ɵangular_packages_platform_browser_dynamic_testing_testing_b, platformCoreDynamicTesting as ɵplatformCoreDynamicTesting };
233
- //# sourceMappingURL=testing.js.map
240
+ export { BrowserDynamicTestingModule, platformBrowserDynamicTesting, DOMTestComponentRenderer as ɵDOMTestComponentRenderer, platformCoreDynamicTesting as ɵplatformCoreDynamicTesting };
241
+ //# sourceMappingURL=testing.mjs.map