@angular/core 10.0.0 → 10.0.4

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 (49) hide show
  1. package/bundles/core-testing.umd.js +321 -272
  2. package/bundles/core-testing.umd.js.map +1 -1
  3. package/bundles/core-testing.umd.min.js +11 -25
  4. package/bundles/core-testing.umd.min.js.map +1 -1
  5. package/bundles/core.umd.js +620 -832
  6. package/bundles/core.umd.js.map +1 -1
  7. package/bundles/core.umd.min.js +128 -282
  8. package/bundles/core.umd.min.js.map +1 -1
  9. package/core.d.ts +69 -65
  10. package/core.metadata.json +1 -1
  11. package/esm2015/src/application_init.js +9 -5
  12. package/esm2015/src/application_tokens.js +16 -12
  13. package/esm2015/src/change_detection/change_detector_ref.js +6 -3
  14. package/esm2015/src/change_detection/constants.js +3 -1
  15. package/esm2015/src/di/injectable.js +1 -1
  16. package/esm2015/src/di/metadata.js +2 -2
  17. package/esm2015/src/interface/type.js +2 -2
  18. package/esm2015/src/linker/ng_module_factory.js +3 -5
  19. package/esm2015/src/linker/view_ref.js +3 -6
  20. package/esm2015/src/metadata/directives.js +1 -1
  21. package/esm2015/src/metadata/ng_module.js +1 -1
  22. package/esm2015/src/render3/component_ref.js +4 -13
  23. package/esm2015/src/render3/di.js +12 -4
  24. package/esm2015/src/render3/i18n.js +3 -3
  25. package/esm2015/src/render3/instructions/di.js +1 -1
  26. package/esm2015/src/render3/instructions/listener.js +2 -2
  27. package/esm2015/src/render3/instructions/shared.js +8 -18
  28. package/esm2015/src/render3/node_assert.js +3 -3
  29. package/esm2015/src/render3/node_manipulation.js +11 -7
  30. package/esm2015/src/render3/query.js +2 -2
  31. package/esm2015/src/render3/view_engine_compatibility.js +2 -2
  32. package/esm2015/src/render3/view_ref.js +7 -5
  33. package/esm2015/src/sanitization/html_sanitizer.js +3 -3
  34. package/esm2015/src/sanitization/inert_body.js +39 -82
  35. package/esm2015/src/util/ng_dev_mode.js +2 -2
  36. package/esm2015/src/version.js +1 -1
  37. package/esm2015/testing/src/fake_async_fallback.js +5 -1
  38. package/esm2015/testing/src/r3_test_bed.js +2 -2
  39. package/fesm2015/core.js +118 -159
  40. package/fesm2015/core.js.map +1 -1
  41. package/fesm2015/testing.js +6 -2
  42. package/fesm2015/testing.js.map +1 -1
  43. package/package.json +1 -1
  44. package/schematics/migrations/undecorated-classes-with-decorated-fields/transform.d.ts +7 -0
  45. package/schematics/migrations/undecorated-classes-with-decorated-fields/transform.js +125 -59
  46. package/src/r3_symbols.d.ts +15 -17
  47. package/testing/testing.d.ts +1 -1
  48. package/testing.d.ts +1 -1
  49. package/esm2015/src/util/WrappedValue.js +0 -48
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v10.0.0
2
+ * @license Angular v10.0.4
3
3
  * (c) 2010-2020 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
@@ -10,232 +10,305 @@
10
10
  (global = global || self, factory((global.ng = global.ng || {}, global.ng.core = {}), global.rxjs, global.rxjs.operators));
11
11
  }(this, (function (exports, rxjs, operators) { 'use strict';
12
12
 
13
- /*! *****************************************************************************
14
- Copyright (c) Microsoft Corporation.
15
-
16
- Permission to use, copy, modify, and/or distribute this software for any
17
- purpose with or without fee is hereby granted.
18
-
19
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
20
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
21
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
22
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
23
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
24
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
25
- PERFORMANCE OF THIS SOFTWARE.
26
- ***************************************************************************** */
27
- /* global Reflect, Promise */
28
-
29
- var extendStatics = function(d, b) {
30
- extendStatics = Object.setPrototypeOf ||
31
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
32
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
33
- return extendStatics(d, b);
34
- };
35
-
36
- function __extends(d, b) {
37
- extendStatics(d, b);
38
- function __() { this.constructor = d; }
39
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
40
- }
41
-
42
- var __assign = function() {
43
- __assign = Object.assign || function __assign(t) {
44
- for (var s, i = 1, n = arguments.length; i < n; i++) {
45
- s = arguments[i];
46
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
47
- }
48
- return t;
49
- };
50
- return __assign.apply(this, arguments);
51
- };
52
-
53
- function __rest(s, e) {
54
- var t = {};
55
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
56
- t[p] = s[p];
57
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
58
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
59
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
60
- t[p[i]] = s[p[i]];
61
- }
62
- return t;
63
- }
64
-
65
- function __decorate(decorators, target, key, desc) {
66
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
67
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
68
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
69
- return c > 3 && r && Object.defineProperty(target, key, r), r;
70
- }
71
-
72
- function __param(paramIndex, decorator) {
73
- return function (target, key) { decorator(target, key, paramIndex); }
74
- }
75
-
76
- function __metadata(metadataKey, metadataValue) {
77
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(metadataKey, metadataValue);
78
- }
79
-
80
- function __awaiter(thisArg, _arguments, P, generator) {
81
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
82
- return new (P || (P = Promise))(function (resolve, reject) {
83
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
84
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
85
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
86
- step((generator = generator.apply(thisArg, _arguments || [])).next());
87
- });
88
- }
89
-
90
- function __generator(thisArg, body) {
91
- var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
92
- return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
93
- function verb(n) { return function (v) { return step([n, v]); }; }
94
- function step(op) {
95
- if (f) throw new TypeError("Generator is already executing.");
96
- while (_) try {
97
- if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
98
- if (y = 0, t) op = [op[0] & 2, t.value];
99
- switch (op[0]) {
100
- case 0: case 1: t = op; break;
101
- case 4: _.label++; return { value: op[1], done: false };
102
- case 5: _.label++; y = op[1]; op = [0]; continue;
103
- case 7: op = _.ops.pop(); _.trys.pop(); continue;
104
- default:
105
- if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
106
- if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
107
- if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
108
- if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
109
- if (t[2]) _.ops.pop();
110
- _.trys.pop(); continue;
111
- }
112
- op = body.call(thisArg, _);
113
- } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
114
- if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
115
- }
116
- }
117
-
118
- var __createBinding = Object.create ? (function(o, m, k, k2) {
119
- if (k2 === undefined) k2 = k;
120
- Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
121
- }) : (function(o, m, k, k2) {
122
- if (k2 === undefined) k2 = k;
123
- o[k2] = m[k];
124
- });
125
-
126
- function __exportStar(m, exports) {
127
- for (var p in m) if (p !== "default" && !exports.hasOwnProperty(p)) __createBinding(exports, m, p);
128
- }
129
-
130
- function __values(o) {
131
- var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
132
- if (m) return m.call(o);
133
- if (o && typeof o.length === "number") return {
134
- next: function () {
135
- if (o && i >= o.length) o = void 0;
136
- return { value: o && o[i++], done: !o };
137
- }
138
- };
139
- throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
140
- }
141
-
142
- function __read(o, n) {
143
- var m = typeof Symbol === "function" && o[Symbol.iterator];
144
- if (!m) return o;
145
- var i = m.call(o), r, ar = [], e;
146
- try {
147
- while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
148
- }
149
- catch (error) { e = { error: error }; }
150
- finally {
151
- try {
152
- if (r && !r.done && (m = i["return"])) m.call(i);
153
- }
154
- finally { if (e) throw e.error; }
155
- }
156
- return ar;
157
- }
158
-
159
- function __spread() {
160
- for (var ar = [], i = 0; i < arguments.length; i++)
161
- ar = ar.concat(__read(arguments[i]));
162
- return ar;
163
- }
164
-
165
- function __spreadArrays() {
166
- for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;
167
- for (var r = Array(s), k = 0, i = 0; i < il; i++)
168
- for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
169
- r[k] = a[j];
170
- return r;
171
- };
172
-
173
- function __await(v) {
174
- return this instanceof __await ? (this.v = v, this) : new __await(v);
175
- }
176
-
177
- function __asyncGenerator(thisArg, _arguments, generator) {
178
- if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
179
- var g = generator.apply(thisArg, _arguments || []), i, q = [];
180
- return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
181
- function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
182
- function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }
183
- function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
184
- function fulfill(value) { resume("next", value); }
185
- function reject(value) { resume("throw", value); }
186
- function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }
187
- }
188
-
189
- function __asyncDelegator(o) {
190
- var i, p;
191
- return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
192
- function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === "return" } : f ? f(v) : v; } : f; }
193
- }
194
-
195
- function __asyncValues(o) {
196
- if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
197
- var m = o[Symbol.asyncIterator], i;
198
- return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);
199
- function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }
200
- function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }
201
- }
202
-
203
- function __makeTemplateObject(cooked, raw) {
204
- if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
205
- return cooked;
206
- };
207
-
208
- var __setModuleDefault = Object.create ? (function(o, v) {
209
- Object.defineProperty(o, "default", { enumerable: true, value: v });
210
- }) : function(o, v) {
211
- o["default"] = v;
212
- };
213
-
214
- function __importStar(mod) {
215
- if (mod && mod.__esModule) return mod;
216
- var result = {};
217
- if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
218
- __setModuleDefault(result, mod);
219
- return result;
220
- }
221
-
222
- function __importDefault(mod) {
223
- return (mod && mod.__esModule) ? mod : { default: mod };
224
- }
225
-
226
- function __classPrivateFieldGet(receiver, privateMap) {
227
- if (!privateMap.has(receiver)) {
228
- throw new TypeError("attempted to get private field on non-instance");
229
- }
230
- return privateMap.get(receiver);
231
- }
232
-
233
- function __classPrivateFieldSet(receiver, privateMap, value) {
234
- if (!privateMap.has(receiver)) {
235
- throw new TypeError("attempted to set private field on non-instance");
236
- }
237
- privateMap.set(receiver, value);
238
- return value;
13
+ /*! *****************************************************************************
14
+ Copyright (c) Microsoft Corporation.
15
+
16
+ Permission to use, copy, modify, and/or distribute this software for any
17
+ purpose with or without fee is hereby granted.
18
+
19
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
20
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
21
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
22
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
23
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
24
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
25
+ PERFORMANCE OF THIS SOFTWARE.
26
+ ***************************************************************************** */
27
+ /* global Reflect, Promise */
28
+ var extendStatics = function (d, b) {
29
+ extendStatics = Object.setPrototypeOf ||
30
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
31
+ function (d, b) { for (var p in b)
32
+ if (b.hasOwnProperty(p))
33
+ d[p] = b[p]; };
34
+ return extendStatics(d, b);
35
+ };
36
+ function __extends(d, b) {
37
+ extendStatics(d, b);
38
+ function __() { this.constructor = d; }
39
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
40
+ }
41
+ var __assign = function () {
42
+ __assign = Object.assign || function __assign(t) {
43
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
44
+ s = arguments[i];
45
+ for (var p in s)
46
+ if (Object.prototype.hasOwnProperty.call(s, p))
47
+ t[p] = s[p];
48
+ }
49
+ return t;
50
+ };
51
+ return __assign.apply(this, arguments);
52
+ };
53
+ function __rest(s, e) {
54
+ var t = {};
55
+ for (var p in s)
56
+ if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
57
+ t[p] = s[p];
58
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
59
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
60
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
61
+ t[p[i]] = s[p[i]];
62
+ }
63
+ return t;
64
+ }
65
+ function __decorate(decorators, target, key, desc) {
66
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
67
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
68
+ r = Reflect.decorate(decorators, target, key, desc);
69
+ else
70
+ for (var i = decorators.length - 1; i >= 0; i--)
71
+ if (d = decorators[i])
72
+ r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
73
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
74
+ }
75
+ function __param(paramIndex, decorator) {
76
+ return function (target, key) { decorator(target, key, paramIndex); };
77
+ }
78
+ function __metadata(metadataKey, metadataValue) {
79
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
80
+ return Reflect.metadata(metadataKey, metadataValue);
81
+ }
82
+ function __awaiter(thisArg, _arguments, P, generator) {
83
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
84
+ return new (P || (P = Promise))(function (resolve, reject) {
85
+ function fulfilled(value) { try {
86
+ step(generator.next(value));
87
+ }
88
+ catch (e) {
89
+ reject(e);
90
+ } }
91
+ function rejected(value) { try {
92
+ step(generator["throw"](value));
93
+ }
94
+ catch (e) {
95
+ reject(e);
96
+ } }
97
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
98
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
99
+ });
100
+ }
101
+ function __generator(thisArg, body) {
102
+ var _ = { label: 0, sent: function () { if (t[0] & 1)
103
+ throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
104
+ return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function () { return this; }), g;
105
+ function verb(n) { return function (v) { return step([n, v]); }; }
106
+ function step(op) {
107
+ if (f)
108
+ throw new TypeError("Generator is already executing.");
109
+ while (_)
110
+ try {
111
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done)
112
+ return t;
113
+ if (y = 0, t)
114
+ op = [op[0] & 2, t.value];
115
+ switch (op[0]) {
116
+ case 0:
117
+ case 1:
118
+ t = op;
119
+ break;
120
+ case 4:
121
+ _.label++;
122
+ return { value: op[1], done: false };
123
+ case 5:
124
+ _.label++;
125
+ y = op[1];
126
+ op = [0];
127
+ continue;
128
+ case 7:
129
+ op = _.ops.pop();
130
+ _.trys.pop();
131
+ continue;
132
+ default:
133
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
134
+ _ = 0;
135
+ continue;
136
+ }
137
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) {
138
+ _.label = op[1];
139
+ break;
140
+ }
141
+ if (op[0] === 6 && _.label < t[1]) {
142
+ _.label = t[1];
143
+ t = op;
144
+ break;
145
+ }
146
+ if (t && _.label < t[2]) {
147
+ _.label = t[2];
148
+ _.ops.push(op);
149
+ break;
150
+ }
151
+ if (t[2])
152
+ _.ops.pop();
153
+ _.trys.pop();
154
+ continue;
155
+ }
156
+ op = body.call(thisArg, _);
157
+ }
158
+ catch (e) {
159
+ op = [6, e];
160
+ y = 0;
161
+ }
162
+ finally {
163
+ f = t = 0;
164
+ }
165
+ if (op[0] & 5)
166
+ throw op[1];
167
+ return { value: op[0] ? op[1] : void 0, done: true };
168
+ }
169
+ }
170
+ var __createBinding = Object.create ? (function (o, m, k, k2) {
171
+ if (k2 === undefined)
172
+ k2 = k;
173
+ Object.defineProperty(o, k2, { enumerable: true, get: function () { return m[k]; } });
174
+ }) : (function (o, m, k, k2) {
175
+ if (k2 === undefined)
176
+ k2 = k;
177
+ o[k2] = m[k];
178
+ });
179
+ function __exportStar(m, exports) {
180
+ for (var p in m)
181
+ if (p !== "default" && !exports.hasOwnProperty(p))
182
+ __createBinding(exports, m, p);
183
+ }
184
+ function __values(o) {
185
+ var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
186
+ if (m)
187
+ return m.call(o);
188
+ if (o && typeof o.length === "number")
189
+ return {
190
+ next: function () {
191
+ if (o && i >= o.length)
192
+ o = void 0;
193
+ return { value: o && o[i++], done: !o };
194
+ }
195
+ };
196
+ throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
197
+ }
198
+ function __read(o, n) {
199
+ var m = typeof Symbol === "function" && o[Symbol.iterator];
200
+ if (!m)
201
+ return o;
202
+ var i = m.call(o), r, ar = [], e;
203
+ try {
204
+ while ((n === void 0 || n-- > 0) && !(r = i.next()).done)
205
+ ar.push(r.value);
206
+ }
207
+ catch (error) {
208
+ e = { error: error };
209
+ }
210
+ finally {
211
+ try {
212
+ if (r && !r.done && (m = i["return"]))
213
+ m.call(i);
214
+ }
215
+ finally {
216
+ if (e)
217
+ throw e.error;
218
+ }
219
+ }
220
+ return ar;
221
+ }
222
+ function __spread() {
223
+ for (var ar = [], i = 0; i < arguments.length; i++)
224
+ ar = ar.concat(__read(arguments[i]));
225
+ return ar;
226
+ }
227
+ function __spreadArrays() {
228
+ for (var s = 0, i = 0, il = arguments.length; i < il; i++)
229
+ s += arguments[i].length;
230
+ for (var r = Array(s), k = 0, i = 0; i < il; i++)
231
+ for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
232
+ r[k] = a[j];
233
+ return r;
234
+ }
235
+ ;
236
+ function __await(v) {
237
+ return this instanceof __await ? (this.v = v, this) : new __await(v);
238
+ }
239
+ function __asyncGenerator(thisArg, _arguments, generator) {
240
+ if (!Symbol.asyncIterator)
241
+ throw new TypeError("Symbol.asyncIterator is not defined.");
242
+ var g = generator.apply(thisArg, _arguments || []), i, q = [];
243
+ return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
244
+ function verb(n) { if (g[n])
245
+ i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
246
+ function resume(n, v) { try {
247
+ step(g[n](v));
248
+ }
249
+ catch (e) {
250
+ settle(q[0][3], e);
251
+ } }
252
+ function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
253
+ function fulfill(value) { resume("next", value); }
254
+ function reject(value) { resume("throw", value); }
255
+ function settle(f, v) { if (f(v), q.shift(), q.length)
256
+ resume(q[0][0], q[0][1]); }
257
+ }
258
+ function __asyncDelegator(o) {
259
+ var i, p;
260
+ return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
261
+ function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === "return" } : f ? f(v) : v; } : f; }
262
+ }
263
+ function __asyncValues(o) {
264
+ if (!Symbol.asyncIterator)
265
+ throw new TypeError("Symbol.asyncIterator is not defined.");
266
+ var m = o[Symbol.asyncIterator], i;
267
+ return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);
268
+ function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }
269
+ function settle(resolve, reject, d, v) { Promise.resolve(v).then(function (v) { resolve({ value: v, done: d }); }, reject); }
270
+ }
271
+ function __makeTemplateObject(cooked, raw) {
272
+ if (Object.defineProperty) {
273
+ Object.defineProperty(cooked, "raw", { value: raw });
274
+ }
275
+ else {
276
+ cooked.raw = raw;
277
+ }
278
+ return cooked;
279
+ }
280
+ ;
281
+ var __setModuleDefault = Object.create ? (function (o, v) {
282
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
283
+ }) : function (o, v) {
284
+ o["default"] = v;
285
+ };
286
+ function __importStar(mod) {
287
+ if (mod && mod.__esModule)
288
+ return mod;
289
+ var result = {};
290
+ if (mod != null)
291
+ for (var k in mod)
292
+ if (Object.hasOwnProperty.call(mod, k))
293
+ __createBinding(result, mod, k);
294
+ __setModuleDefault(result, mod);
295
+ return result;
296
+ }
297
+ function __importDefault(mod) {
298
+ return (mod && mod.__esModule) ? mod : { default: mod };
299
+ }
300
+ function __classPrivateFieldGet(receiver, privateMap) {
301
+ if (!privateMap.has(receiver)) {
302
+ throw new TypeError("attempted to get private field on non-instance");
303
+ }
304
+ return privateMap.get(receiver);
305
+ }
306
+ function __classPrivateFieldSet(receiver, privateMap, value) {
307
+ if (!privateMap.has(receiver)) {
308
+ throw new TypeError("attempted to set private field on non-instance");
309
+ }
310
+ privateMap.set(receiver, value);
311
+ return value;
239
312
  }
240
313
 
241
314
  /**
@@ -258,13 +331,6 @@
258
331
  return { toString: fn }.toString();
259
332
  }
260
333
 
261
- /**
262
- * @license
263
- * Copyright Google LLC All Rights Reserved.
264
- *
265
- * Use of this source code is governed by an MIT-style license that can be
266
- * found in the LICENSE file at https://angular.io/license
267
- */
268
334
  var ANNOTATIONS = '__annotations__';
269
335
  var PARAMETERS = '__parameters__';
270
336
  var PROP_METADATA = '__prop__metadata__';
@@ -275,7 +341,6 @@
275
341
  return noSideEffects(function () {
276
342
  var metaCtor = makeMetadataCtor(props);
277
343
  function DecoratorFactory() {
278
- var _a;
279
344
  var args = [];
280
345
  for (var _i = 0; _i < arguments.length; _i++) {
281
346
  args[_i] = arguments[_i];
@@ -284,7 +349,7 @@
284
349
  metaCtor.call.apply(metaCtor, __spread([this], args));
285
350
  return this;
286
351
  }
287
- var annotationInstance = new ((_a = DecoratorFactory).bind.apply(_a, __spread([void 0], args)))();
352
+ var annotationInstance = new (DecoratorFactory.bind.apply(DecoratorFactory, __spread([void 0], args)))();
288
353
  return function TypeDecorator(cls) {
289
354
  if (typeFn)
290
355
  typeFn.apply(void 0, __spread([cls], args));
@@ -325,7 +390,6 @@
325
390
  return noSideEffects(function () {
326
391
  var metaCtor = makeMetadataCtor(props);
327
392
  function ParamDecoratorFactory() {
328
- var _a;
329
393
  var args = [];
330
394
  for (var _i = 0; _i < arguments.length; _i++) {
331
395
  args[_i] = arguments[_i];
@@ -334,7 +398,7 @@
334
398
  metaCtor.apply(this, args);
335
399
  return this;
336
400
  }
337
- var annotationInstance = new ((_a = ParamDecoratorFactory).bind.apply(_a, __spread([void 0], args)))();
401
+ var annotationInstance = new (ParamDecoratorFactory.bind.apply(ParamDecoratorFactory, __spread([void 0], args)))();
338
402
  ParamDecorator.annotation = annotationInstance;
339
403
  return ParamDecorator;
340
404
  function ParamDecorator(cls, unusedKey, index) {
@@ -364,7 +428,6 @@
364
428
  return noSideEffects(function () {
365
429
  var metaCtor = makeMetadataCtor(props);
366
430
  function PropDecoratorFactory() {
367
- var _a;
368
431
  var args = [];
369
432
  for (var _i = 0; _i < arguments.length; _i++) {
370
433
  args[_i] = arguments[_i];
@@ -373,7 +436,7 @@
373
436
  metaCtor.apply(this, args);
374
437
  return this;
375
438
  }
376
- var decoratorInstance = new ((_a = PropDecoratorFactory).bind.apply(_a, __spread([void 0], args)))();
439
+ var decoratorInstance = new (PropDecoratorFactory.bind.apply(PropDecoratorFactory, __spread([void 0], args)))();
377
440
  function PropDecorator(target, name) {
378
441
  var constructor = target.constructor;
379
442
  // Use of Object.defineProperty is important because it creates a non-enumerable property
@@ -427,7 +490,7 @@
427
490
  */
428
491
  var Self = makeParamDecorator('Self');
429
492
  /**
430
- * SkipSelf decorator and metadata.
493
+ * `SkipSelf` decorator and metadata.
431
494
  *
432
495
  * @Annotation
433
496
  * @publicApi
@@ -882,7 +945,7 @@
882
945
  * (and thus Ivy instructions), so a single initialization there is sufficient to ensure ngDevMode
883
946
  * is defined for the entire instruction set.
884
947
  *
885
- * When using checking `ngDevMode` on toplevel, always init it before referencing it
948
+ * When checking `ngDevMode` on toplevel, always init it before referencing it
886
949
  * (e.g. `((typeof ngDevMode === 'undefined' || ngDevMode) && initNgDevMode())`), otherwise you can
887
950
  * get a `ReferenceError` like in https://github.com/angular/angular/issues/31595.
888
951
  *
@@ -1238,10 +1301,8 @@
1238
1301
  * found in the LICENSE file at https://angular.io/license
1239
1302
  */
1240
1303
  /**
1241
- * Represents an instance of an NgModule created via a {@link NgModuleFactory}.
1242
- *
1243
- * `NgModuleRef` provides access to the NgModule Instance as well other objects related to this
1244
- * NgModule Instance.
1304
+ * Represents an instance of an `NgModule` created by an `NgModuleFactory`.
1305
+ * Provides access to the `NgModule` instance and related objects.
1245
1306
  *
1246
1307
  * @publicApi
1247
1308
  */
@@ -2086,49 +2147,6 @@
2086
2147
  return type[NG_LOC_ID_DEF] || null;
2087
2148
  }
2088
2149
 
2089
- /**
2090
- * @license
2091
- * Copyright Google LLC All Rights Reserved.
2092
- *
2093
- * Use of this source code is governed by an MIT-style license that can be
2094
- * found in the LICENSE file at https://angular.io/license
2095
- */
2096
- // Below are constants for LView indices to help us look up LView members
2097
- // without having to remember the specific indices.
2098
- // Uglify will inline these when minifying so there shouldn't be a cost.
2099
- var HOST = 0;
2100
- var TVIEW = 1;
2101
- var FLAGS = 2;
2102
- var PARENT = 3;
2103
- var NEXT = 4;
2104
- var TRANSPLANTED_VIEWS_TO_REFRESH = 5;
2105
- var T_HOST = 6;
2106
- var CLEANUP = 7;
2107
- var CONTEXT = 8;
2108
- var INJECTOR$1 = 9;
2109
- var RENDERER_FACTORY = 10;
2110
- var RENDERER = 11;
2111
- var SANITIZER = 12;
2112
- var CHILD_HEAD = 13;
2113
- var CHILD_TAIL = 14;
2114
- var DECLARATION_VIEW = 15;
2115
- var DECLARATION_COMPONENT_VIEW = 16;
2116
- var DECLARATION_LCONTAINER = 17;
2117
- var PREORDER_HOOK_FLAGS = 18;
2118
- var QUERIES = 19;
2119
- /** Size of LView's header. Necessary to adjust for it when setting slots. */
2120
- var HEADER_OFFSET = 20;
2121
- // Note: This hack is necessary so we don't erroneously get a circular dependency
2122
- // failure based on types.
2123
- var unusedValueExportToPlacateAjd = 1;
2124
-
2125
- /**
2126
- * @license
2127
- * Copyright Google LLC All Rights Reserved.
2128
- *
2129
- * Use of this source code is governed by an MIT-style license that can be
2130
- * found in the LICENSE file at https://angular.io/license
2131
- */
2132
2150
  /**
2133
2151
  * Special location which allows easy identification of type. If we have an array which was
2134
2152
  * retrieved from the `LView` and that array has `true` at `TYPE` location, we know it is
@@ -2165,6 +2183,42 @@
2165
2183
  var CONTAINER_HEADER_OFFSET = 10;
2166
2184
  // Note: This hack is necessary so we don't erroneously get a circular dependency
2167
2185
  // failure based on types.
2186
+ var unusedValueExportToPlacateAjd = 1;
2187
+
2188
+ /**
2189
+ * @license
2190
+ * Copyright Google LLC All Rights Reserved.
2191
+ *
2192
+ * Use of this source code is governed by an MIT-style license that can be
2193
+ * found in the LICENSE file at https://angular.io/license
2194
+ */
2195
+ // Below are constants for LView indices to help us look up LView members
2196
+ // without having to remember the specific indices.
2197
+ // Uglify will inline these when minifying so there shouldn't be a cost.
2198
+ var HOST = 0;
2199
+ var TVIEW = 1;
2200
+ var FLAGS = 2;
2201
+ var PARENT = 3;
2202
+ var NEXT = 4;
2203
+ var TRANSPLANTED_VIEWS_TO_REFRESH = 5;
2204
+ var T_HOST = 6;
2205
+ var CLEANUP = 7;
2206
+ var CONTEXT = 8;
2207
+ var INJECTOR$1 = 9;
2208
+ var RENDERER_FACTORY = 10;
2209
+ var RENDERER = 11;
2210
+ var SANITIZER = 12;
2211
+ var CHILD_HEAD = 13;
2212
+ var CHILD_TAIL = 14;
2213
+ var DECLARATION_VIEW = 15;
2214
+ var DECLARATION_COMPONENT_VIEW = 16;
2215
+ var DECLARATION_LCONTAINER = 17;
2216
+ var PREORDER_HOOK_FLAGS = 18;
2217
+ var QUERIES = 19;
2218
+ /** Size of LView's header. Necessary to adjust for it when setting slots. */
2219
+ var HEADER_OFFSET = 20;
2220
+ // Note: This hack is necessary so we don't erroneously get a circular dependency
2221
+ // failure based on types.
2168
2222
  var unusedValueExportToPlacateAjd$1 = 1;
2169
2223
 
2170
2224
  /**
@@ -3303,14 +3357,10 @@
3303
3357
  assertDefined(tNode, 'should be called with a TNode');
3304
3358
  assertEqual(tNode.type, type, "should be a " + typeName(type));
3305
3359
  }
3306
- function assertNodeOfPossibleTypes(tNode) {
3307
- var types = [];
3308
- for (var _i = 1; _i < arguments.length; _i++) {
3309
- types[_i - 1] = arguments[_i];
3310
- }
3360
+ function assertNodeOfPossibleTypes(tNode, types, message) {
3311
3361
  assertDefined(tNode, 'should be called with a TNode');
3312
3362
  var found = types.some(function (type) { return tNode.type === type; });
3313
- assertEqual(found, true, "Should be one of " + types.map(typeName).join(', ') + " but got " + typeName(tNode.type));
3363
+ assertEqual(found, true, message !== null && message !== void 0 ? message : "Should be one of " + types.map(typeName).join(', ') + " but got " + typeName(tNode.type));
3314
3364
  }
3315
3365
  function assertNodeNotOfTypes(tNode, types, message) {
3316
3366
  assertDefined(tNode, 'should be called with a TNode');
@@ -3734,7 +3784,13 @@
3734
3784
  */
3735
3785
  function bloomAdd(injectorIndex, tView, type) {
3736
3786
  ngDevMode && assertEqual(tView.firstCreatePass, true, 'expected firstCreatePass to be true');
3737
- var id = typeof type !== 'string' ? type[NG_ELEMENT_ID] : type.charCodeAt(0) || 0;
3787
+ var id;
3788
+ if (typeof type === 'string') {
3789
+ id = type.charCodeAt(0) || 0;
3790
+ }
3791
+ else if (type.hasOwnProperty(NG_ELEMENT_ID)) {
3792
+ id = type[NG_ELEMENT_ID];
3793
+ }
3738
3794
  // Set a unique ID on the directive type, so if something tries to inject the directive,
3739
3795
  // we can easily retrieve the ID and hash it into the bloom bit that should be checked.
3740
3796
  if (id == null) {
@@ -3882,7 +3938,7 @@
3882
3938
  */
3883
3939
  function injectAttributeImpl(tNode, attrNameToInject) {
3884
3940
  ngDevMode &&
3885
- assertNodeOfPossibleTypes(tNode, 0 /* Container */, 3 /* Element */, 4 /* ElementContainer */);
3941
+ assertNodeOfPossibleTypes(tNode, [0 /* Container */, 3 /* Element */, 4 /* ElementContainer */]);
3886
3942
  ngDevMode && assertDefined(tNode, 'expecting tNode');
3887
3943
  if (attrNameToInject === 'class') {
3888
3944
  return tNode.classes;
@@ -4181,7 +4237,9 @@
4181
4237
  if (typeof token === 'string') {
4182
4238
  return token.charCodeAt(0) || 0;
4183
4239
  }
4184
- var tokenId = token[NG_ELEMENT_ID];
4240
+ var tokenId =
4241
+ // First check with `hasOwnProperty` so we don't get an inherited ID.
4242
+ token.hasOwnProperty(NG_ELEMENT_ID) ? token[NG_ELEMENT_ID] : undefined;
4185
4243
  // Negative token IDs are used for special objects such as `Injector`
4186
4244
  return (typeof tokenId === 'number' && tokenId > 0) ? tokenId & BLOOM_MASK : tokenId;
4187
4245
  }
@@ -4289,13 +4347,6 @@
4289
4347
  return error;
4290
4348
  }
4291
4349
 
4292
- /**
4293
- * @license
4294
- * Copyright Google LLC All Rights Reserved.
4295
- *
4296
- * Use of this source code is governed by an MIT-style license that can be
4297
- * found in the LICENSE file at https://angular.io/license
4298
- */
4299
4350
  function getType(error) {
4300
4351
  return error[ERROR_TYPE];
4301
4352
  }
@@ -4612,77 +4663,23 @@
4612
4663
  * found in the LICENSE file at https://angular.io/license
4613
4664
  */
4614
4665
  /**
4615
- * This helper class is used to get hold of an inert tree of DOM elements containing dirty HTML
4666
+ * This helper is used to get hold of an inert tree of DOM elements containing dirty HTML
4616
4667
  * that needs sanitizing.
4617
- * Depending upon browser support we must use one of three strategies for doing this.
4618
- * Support: Safari 10.x -> XHR strategy
4619
- * Support: Firefox -> DomParser strategy
4620
- * Default: InertDocument strategy
4668
+ * Depending upon browser support we use one of two strategies for doing this.
4669
+ * Default: DOMParser strategy
4670
+ * Fallback: InertDocument strategy
4621
4671
  */
4622
- var InertBodyHelper = /** @class */ (function () {
4623
- function InertBodyHelper(defaultDoc) {
4624
- this.defaultDoc = defaultDoc;
4625
- this.inertDocument = this.defaultDoc.implementation.createHTMLDocument('sanitization-inert');
4626
- var inertBodyElement = this.inertDocument.body;
4627
- if (inertBodyElement == null) {
4628
- // usually there should be only one body element in the document, but IE doesn't have any, so
4629
- // we need to create one.
4630
- var inertHtml = this.inertDocument.createElement('html');
4631
- this.inertDocument.appendChild(inertHtml);
4632
- inertBodyElement = this.inertDocument.createElement('body');
4633
- inertHtml.appendChild(inertBodyElement);
4634
- }
4635
- inertBodyElement.innerHTML = '<svg><g onload="this.parentNode.remove()"></g></svg>';
4636
- if (inertBodyElement.querySelector && !inertBodyElement.querySelector('svg')) {
4637
- // We just hit the Safari 10.1 bug - which allows JS to run inside the SVG G element
4638
- // so use the XHR strategy.
4639
- this.getInertBodyElement = this.getInertBodyElement_XHR;
4640
- return;
4641
- }
4642
- inertBodyElement.innerHTML = '<svg><p><style><img src="</style><img src=x onerror=alert(1)//">';
4643
- if (inertBodyElement.querySelector && inertBodyElement.querySelector('svg img')) {
4644
- // We just hit the Firefox bug - which prevents the inner img JS from being sanitized
4645
- // so use the DOMParser strategy, if it is available.
4646
- // If the DOMParser is not available then we are not in Firefox (Server/WebWorker?) so we
4647
- // fall through to the default strategy below.
4648
- if (isDOMParserAvailable()) {
4649
- this.getInertBodyElement = this.getInertBodyElement_DOMParser;
4650
- return;
4651
- }
4652
- }
4653
- // None of the bugs were hit so it is safe for us to use the default InertDocument strategy
4654
- this.getInertBodyElement = this.getInertBodyElement_InertDocument;
4672
+ function getInertBodyHelper(defaultDoc) {
4673
+ return isDOMParserAvailable() ? new DOMParserHelper() : new InertDocumentHelper(defaultDoc);
4674
+ }
4675
+ /**
4676
+ * Uses DOMParser to create and fill an inert body element.
4677
+ * This is the default strategy used in browsers that support it.
4678
+ */
4679
+ var DOMParserHelper = /** @class */ (function () {
4680
+ function DOMParserHelper() {
4655
4681
  }
4656
- /**
4657
- * Use XHR to create and fill an inert body element (on Safari 10.1)
4658
- * See
4659
- * https://github.com/cure53/DOMPurify/blob/a992d3a75031cb8bb032e5ea8399ba972bdf9a65/src/purify.js#L439-L449
4660
- */
4661
- InertBodyHelper.prototype.getInertBodyElement_XHR = function (html) {
4662
- // We add these extra elements to ensure that the rest of the content is parsed as expected
4663
- // e.g. leading whitespace is maintained and tags like `<meta>` do not get hoisted to the
4664
- // `<head>` tag.
4665
- html = '<body><remove></remove>' + html + '</body>';
4666
- try {
4667
- html = encodeURI(html);
4668
- }
4669
- catch (_a) {
4670
- return null;
4671
- }
4672
- var xhr = new XMLHttpRequest();
4673
- xhr.responseType = 'document';
4674
- xhr.open('GET', 'data:text/html;charset=utf-8,' + html, false);
4675
- xhr.send(undefined);
4676
- var body = xhr.response.body;
4677
- body.removeChild(body.firstChild);
4678
- return body;
4679
- };
4680
- /**
4681
- * Use DOMParser to create and fill an inert body element (on Firefox)
4682
- * See https://github.com/cure53/DOMPurify/releases/tag/0.6.7
4683
- *
4684
- */
4685
- InertBodyHelper.prototype.getInertBodyElement_DOMParser = function (html) {
4682
+ DOMParserHelper.prototype.getInertBodyElement = function (html) {
4686
4683
  // We add these extra elements to ensure that the rest of the content is parsed as expected
4687
4684
  // e.g. leading whitespace is maintained and tags like `<meta>` do not get hoisted to the
4688
4685
  // `<head>` tag.
@@ -4696,13 +4693,27 @@
4696
4693
  return null;
4697
4694
  }
4698
4695
  };
4699
- /**
4700
- * Use an HTML5 `template` element, if supported, or an inert body element created via
4701
- * `createHtmlDocument` to create and fill an inert DOM element.
4702
- * This is the default sane strategy to use if the browser does not require one of the specialised
4703
- * strategies above.
4704
- */
4705
- InertBodyHelper.prototype.getInertBodyElement_InertDocument = function (html) {
4696
+ return DOMParserHelper;
4697
+ }());
4698
+ /**
4699
+ * Use an HTML5 `template` element, if supported, or an inert body element created via
4700
+ * `createHtmlDocument` to create and fill an inert DOM element.
4701
+ * This is the fallback strategy if the browser does not support DOMParser.
4702
+ */
4703
+ var InertDocumentHelper = /** @class */ (function () {
4704
+ function InertDocumentHelper(defaultDoc) {
4705
+ this.defaultDoc = defaultDoc;
4706
+ this.inertDocument = this.defaultDoc.implementation.createHTMLDocument('sanitization-inert');
4707
+ if (this.inertDocument.body == null) {
4708
+ // usually there should be only one body element in the document, but IE doesn't have any, so
4709
+ // we need to create one.
4710
+ var inertHtml = this.inertDocument.createElement('html');
4711
+ this.inertDocument.appendChild(inertHtml);
4712
+ var inertBodyElement = this.inertDocument.createElement('body');
4713
+ inertHtml.appendChild(inertBodyElement);
4714
+ }
4715
+ }
4716
+ InertDocumentHelper.prototype.getInertBodyElement = function (html) {
4706
4717
  // Prefer using <template> element if supported.
4707
4718
  var templateEl = this.inertDocument.createElement('template');
4708
4719
  if ('content' in templateEl) {
@@ -4733,7 +4744,7 @@
4733
4744
  * This is undesirable since we don't want to allow any of these custom attributes. This method
4734
4745
  * strips them all.
4735
4746
  */
4736
- InertBodyHelper.prototype.stripCustomNsAttrs = function (el) {
4747
+ InertDocumentHelper.prototype.stripCustomNsAttrs = function (el) {
4737
4748
  var elAttrs = el.attributes;
4738
4749
  // loop backwards so that we can support removals.
4739
4750
  for (var i = elAttrs.length - 1; 0 < i; i--) {
@@ -4750,18 +4761,18 @@
4750
4761
  childNode = childNode.nextSibling;
4751
4762
  }
4752
4763
  };
4753
- return InertBodyHelper;
4764
+ return InertDocumentHelper;
4754
4765
  }());
4755
4766
  /**
4756
- * We need to determine whether the DOMParser exists in the global context.
4757
- * The try-catch is because, on some browsers, trying to access this property
4758
- * on window can actually throw an error.
4767
+ * We need to determine whether the DOMParser exists in the global context and
4768
+ * supports parsing HTML; HTML parsing support is not as wide as other formats, see
4769
+ * https://developer.mozilla.org/en-US/docs/Web/API/DOMParser#Browser_compatibility.
4759
4770
  *
4760
4771
  * @suppress {uselessCode}
4761
4772
  */
4762
4773
  function isDOMParserAvailable() {
4763
4774
  try {
4764
- return !!window.DOMParser;
4775
+ return !!new window.DOMParser().parseFromString('', 'text/html');
4765
4776
  }
4766
4777
  catch (_a) {
4767
4778
  return false;
@@ -4820,13 +4831,6 @@
4820
4831
  return srcset.split(',').map(function (srcset) { return _sanitizeUrl(srcset.trim()); }).join(', ');
4821
4832
  }
4822
4833
 
4823
- /**
4824
- * @license
4825
- * Copyright Google LLC All Rights Reserved.
4826
- *
4827
- * Use of this source code is governed by an MIT-style license that can be
4828
- * found in the LICENSE file at https://angular.io/license
4829
- */
4830
4834
  function tagSet(tags) {
4831
4835
  var e_1, _a;
4832
4836
  var res = {};
@@ -5055,7 +5059,7 @@
5055
5059
  function _sanitizeHtml(defaultDoc, unsafeHtmlInput) {
5056
5060
  var inertBodyElement = null;
5057
5061
  try {
5058
- inertBodyHelper = inertBodyHelper || new InertBodyHelper(defaultDoc);
5062
+ inertBodyHelper = inertBodyHelper || getInertBodyHelper(defaultDoc);
5059
5063
  // Make sure unsafeHtml is actually a string (TypeScript types are not enforced at runtime).
5060
5064
  var unsafeHtml = unsafeHtmlInput ? String(unsafeHtmlInput) : '';
5061
5065
  inertBodyElement = inertBodyHelper.getInertBodyElement(unsafeHtml);
@@ -5082,9 +5086,9 @@
5082
5086
  finally {
5083
5087
  // In case anything goes wrong, clear out inertElement to reset the entire DOM structure.
5084
5088
  if (inertBodyElement) {
5085
- var parent_1 = getTemplateContent(inertBodyElement) || inertBodyElement;
5086
- while (parent_1.firstChild) {
5087
- parent_1.removeChild(parent_1.firstChild);
5089
+ var parent = getTemplateContent(inertBodyElement) || inertBodyElement;
5090
+ while (parent.firstChild) {
5091
+ parent.removeChild(parent.firstChild);
5088
5092
  }
5089
5093
  }
5090
5094
  }
@@ -5447,9 +5451,9 @@
5447
5451
  ngDevMode && assertDomNode(rElement);
5448
5452
  // if the context is not found then we need to traverse upwards up the DOM
5449
5453
  // to find the nearest element that has already been monkey patched with data
5450
- var parent_1 = rElement;
5451
- while (parent_1 = parent_1.parentNode) {
5452
- var parentContext = readPatchedData(parent_1);
5454
+ var parent = rElement;
5455
+ while (parent = parent.parentNode) {
5456
+ var parentContext = readPatchedData(parent);
5453
5457
  if (parentContext) {
5454
5458
  var lView = void 0;
5455
5459
  if (Array.isArray(parentContext)) {
@@ -5820,9 +5824,9 @@
5820
5824
  return foundIndex;
5821
5825
  if (foundIndex === 0 || className.charCodeAt(foundIndex - 1) <= 32 /* SPACE */) {
5822
5826
  // Ensure that it has leading whitespace
5823
- var length_1 = classToSearch.length;
5824
- if (foundIndex + length_1 === end ||
5825
- className.charCodeAt(foundIndex + length_1) <= 32 /* SPACE */) {
5827
+ var length = classToSearch.length;
5828
+ if (foundIndex + length === end ||
5829
+ className.charCodeAt(foundIndex + length) <= 32 /* SPACE */) {
5826
5830
  // Ensure that it has trailing whitespace
5827
5831
  return foundIndex;
5828
5832
  }
@@ -7554,7 +7558,7 @@
7554
7558
  var tNode = tView.node;
7555
7559
  if (tNode == null) {
7556
7560
  ngDevMode && tParentNode &&
7557
- assertNodeOfPossibleTypes(tParentNode, 3 /* Element */, 0 /* Container */);
7561
+ assertNodeOfPossibleTypes(tParentNode, [3 /* Element */, 0 /* Container */]);
7558
7562
  tView.node = tNode = createTNode(tView, tParentNode, //
7559
7563
  2 /* View */, index, null, null);
7560
7564
  }
@@ -8017,20 +8021,6 @@
8017
8021
  getTViewCleanup(tView).push(cleanupFn, lCleanup.length - 1);
8018
8022
  }
8019
8023
  }
8020
- /**
8021
- * Saves the cleanup function itself in LView.cleanupInstances.
8022
- *
8023
- * This is necessary for functions that are wrapped with their contexts, like in renderer2
8024
- * listeners.
8025
- *
8026
- * On the first template pass, the index of the cleanup function is saved in TView.
8027
- */
8028
- function storeCleanupFn(tView, lView, cleanupFn) {
8029
- getLCleanup(lView).push(cleanupFn);
8030
- if (tView.firstCreatePass) {
8031
- getTViewCleanup(tView).push(lView[CLEANUP].length - 1, null);
8032
- }
8033
- }
8034
8024
  /**
8035
8025
  * Constructs a TNode object from the arguments.
8036
8026
  *
@@ -8462,7 +8452,7 @@
8462
8452
  var def = tView.data[i];
8463
8453
  var isComponent = isComponentDef(def);
8464
8454
  if (isComponent) {
8465
- ngDevMode && assertNodeOfPossibleTypes(tNode, 3 /* Element */);
8455
+ ngDevMode && assertNodeOfPossibleTypes(tNode, [3 /* Element */]);
8466
8456
  addComponentLogic(lView, tNode, def);
8467
8457
  }
8468
8458
  var directive = getNodeInjectable(lView, tView, i, tNode);
@@ -8538,7 +8528,7 @@
8538
8528
  function findDirectiveDefMatches(tView, viewData, tNode) {
8539
8529
  ngDevMode && assertFirstCreatePass(tView);
8540
8530
  ngDevMode &&
8541
- assertNodeOfPossibleTypes(tNode, 3 /* Element */, 4 /* ElementContainer */, 0 /* Container */);
8531
+ assertNodeOfPossibleTypes(tNode, [3 /* Element */, 4 /* ElementContainer */, 0 /* Container */]);
8542
8532
  var registry = tView.directiveRegistry;
8543
8533
  var matches = null;
8544
8534
  if (registry) {
@@ -8548,6 +8538,9 @@
8548
8538
  matches || (matches = ngDevMode ? new MatchesArray() : []);
8549
8539
  diPublicInInjector(getOrCreateNodeInjectorForNode(tNode, viewData), tView, def.type);
8550
8540
  if (isComponentDef(def)) {
8541
+ ngDevMode &&
8542
+ assertNodeOfPossibleTypes(tNode, [3 /* Element */], "\"" + tNode.tagName + "\" tags cannot be used as component hosts. " +
8543
+ ("Please use a different tag to activate the " + stringify(def.type) + " component."));
8551
8544
  if (tNode.flags & 2 /* isComponentHost */)
8552
8545
  throwMultipleComponentError(tNode);
8553
8546
  markAsComponentHost(tView, tNode);
@@ -8947,13 +8940,13 @@
8947
8940
  function markViewDirty(lView) {
8948
8941
  while (lView) {
8949
8942
  lView[FLAGS] |= 64 /* Dirty */;
8950
- var parent_1 = getLViewParent(lView);
8943
+ var parent = getLViewParent(lView);
8951
8944
  // Stop traversing up as soon as you find a root view that wasn't attached to any container
8952
- if (isRootView(lView) && !parent_1) {
8945
+ if (isRootView(lView) && !parent) {
8953
8946
  return lView;
8954
8947
  }
8955
8948
  // continue otherwise
8956
- lView = parent_1;
8949
+ lView = parent;
8957
8950
  }
8958
8951
  return null;
8959
8952
  }
@@ -9174,7 +9167,7 @@
9174
9167
  * Use of this source code is governed by an MIT-style license that can be
9175
9168
  * found in the LICENSE file at https://angular.io/license
9176
9169
  */
9177
- var unusedValueToPlacateAjd$1 = unusedValueExportToPlacateAjd$1 + unusedValueExportToPlacateAjd$4 + unusedValueExportToPlacateAjd$5 + unusedValueExportToPlacateAjd$2 + unusedValueExportToPlacateAjd;
9170
+ var unusedValueToPlacateAjd$1 = unusedValueExportToPlacateAjd + unusedValueExportToPlacateAjd$4 + unusedValueExportToPlacateAjd$5 + unusedValueExportToPlacateAjd$2 + unusedValueExportToPlacateAjd$1;
9178
9171
  function getLContainer(tNode, embeddedView) {
9179
9172
  ngDevMode && assertLView(embeddedView);
9180
9173
  var container = embeddedView[PARENT];
@@ -9633,7 +9626,7 @@
9633
9626
  else {
9634
9627
  // We are inserting a root element of the component view into the component host element and
9635
9628
  // it should always be eager.
9636
- ngDevMode && assertNodeOfPossibleTypes(hostTNode, 3 /* Element */);
9629
+ ngDevMode && assertNodeOfPossibleTypes(hostTNode, [3 /* Element */]);
9637
9630
  return currentView[HOST];
9638
9631
  }
9639
9632
  }
@@ -9770,8 +9763,10 @@
9770
9763
  */
9771
9764
  function getFirstNativeNode(lView, tNode) {
9772
9765
  if (tNode !== null) {
9773
- ngDevMode &&
9774
- assertNodeOfPossibleTypes(tNode, 3 /* Element */, 0 /* Container */, 4 /* ElementContainer */, 5 /* IcuContainer */, 1 /* Projection */);
9766
+ ngDevMode && assertNodeOfPossibleTypes(tNode, [
9767
+ 3 /* Element */, 0 /* Container */, 4 /* ElementContainer */, 5 /* IcuContainer */,
9768
+ 1 /* Projection */
9769
+ ]);
9775
9770
  var tNodeType = tNode.type;
9776
9771
  if (tNodeType === 3 /* Element */) {
9777
9772
  return getNativeByTNode(tNode, lView);
@@ -9842,8 +9837,10 @@
9842
9837
  function applyNodes(renderer, action, tNode, lView, renderParent, beforeNode, isProjection) {
9843
9838
  while (tNode != null) {
9844
9839
  ngDevMode && assertTNodeForLView(tNode, lView);
9845
- ngDevMode &&
9846
- assertNodeOfPossibleTypes(tNode, 0 /* Container */, 3 /* Element */, 4 /* ElementContainer */, 1 /* Projection */, 1 /* Projection */, 5 /* IcuContainer */);
9840
+ ngDevMode && assertNodeOfPossibleTypes(tNode, [
9841
+ 0 /* Container */, 3 /* Element */, 4 /* ElementContainer */, 1 /* Projection */,
9842
+ 5 /* IcuContainer */
9843
+ ]);
9847
9844
  var rawSlotValue = lView[tNode.index];
9848
9845
  var tNodeType = tNode.type;
9849
9846
  if (isProjection) {
@@ -9861,7 +9858,7 @@
9861
9858
  applyProjectionRecursive(renderer, action, lView, tNode, renderParent, beforeNode);
9862
9859
  }
9863
9860
  else {
9864
- ngDevMode && assertNodeOfPossibleTypes(tNode, 3 /* Element */, 0 /* Container */);
9861
+ ngDevMode && assertNodeOfPossibleTypes(tNode, [3 /* Element */, 0 /* Container */]);
9865
9862
  applyToElementOrContainer(action, renderer, renderParent, rawSlotValue, beforeNode);
9866
9863
  }
9867
9864
  }
@@ -10135,13 +10132,6 @@
10135
10132
  return parentTNode;
10136
10133
  }
10137
10134
 
10138
- /**
10139
- * @license
10140
- * Copyright Google LLC All Rights Reserved.
10141
- *
10142
- * Use of this source code is governed by an MIT-style license that can be
10143
- * found in the LICENSE file at https://angular.io/license
10144
- */
10145
10135
  var ViewRef = /** @class */ (function () {
10146
10136
  function ViewRef(
10147
10137
  /**
@@ -10208,7 +10198,7 @@
10208
10198
  destroyLView(this._lView[TVIEW], this._lView);
10209
10199
  };
10210
10200
  ViewRef.prototype.onDestroy = function (callback) {
10211
- storeCleanupFn(this._lView[TVIEW], this._lView, callback);
10201
+ storeCleanupWithContext(this._lView[TVIEW], this._lView, null, callback);
10212
10202
  };
10213
10203
  /**
10214
10204
  * Marks a view and all of its ancestors dirty.
@@ -10439,8 +10429,10 @@
10439
10429
  function collectNativeNodes(tView, lView, tNode, result, isProjection) {
10440
10430
  if (isProjection === void 0) { isProjection = false; }
10441
10431
  while (tNode !== null) {
10442
- ngDevMode &&
10443
- assertNodeOfPossibleTypes(tNode, 3 /* Element */, 0 /* Container */, 1 /* Projection */, 4 /* ElementContainer */, 5 /* IcuContainer */);
10432
+ ngDevMode && assertNodeOfPossibleTypes(tNode, [
10433
+ 3 /* Element */, 0 /* Container */, 1 /* Projection */, 4 /* ElementContainer */,
10434
+ 5 /* IcuContainer */
10435
+ ]);
10444
10436
  var lNode = lView[tNode.index];
10445
10437
  if (lNode !== null) {
10446
10438
  result.push(unwrapRNode(lNode));
@@ -10483,13 +10475,6 @@
10483
10475
  return result;
10484
10476
  }
10485
10477
 
10486
- /**
10487
- * @license
10488
- * Copyright Google LLC All Rights Reserved.
10489
- *
10490
- * Use of this source code is governed by an MIT-style license that can be
10491
- * found in the LICENSE file at https://angular.io/license
10492
- */
10493
10478
  /**
10494
10479
  * Creates an ElementRef from the most recent node.
10495
10480
  *
@@ -10744,7 +10729,7 @@
10744
10729
  }(ViewContainerRefToken));
10745
10730
  }
10746
10731
  ngDevMode &&
10747
- assertNodeOfPossibleTypes(hostTNode, 0 /* Container */, 3 /* Element */, 4 /* ElementContainer */);
10732
+ assertNodeOfPossibleTypes(hostTNode, [0 /* Container */, 3 /* Element */, 4 /* ElementContainer */]);
10748
10733
  var lContainer;
10749
10734
  var slotValue = hostView[hostTNode.index];
10750
10735
  if (isLContainer(slotValue)) {
@@ -10844,10 +10829,13 @@
10844
10829
  * found in the LICENSE file at https://angular.io/license
10845
10830
  */
10846
10831
  /**
10847
- * Base class for Angular Views, provides change detection functionality.
10832
+ * Base class that provides change detection functionality.
10848
10833
  * A change-detection tree collects all views that are to be checked for changes.
10849
10834
  * Use the methods to add and remove views from the tree, initiate change-detection,
10850
- * and explicitly mark views as _dirty_, meaning that they have changed and need to be rerendered.
10835
+ * and explicitly mark views as _dirty_, meaning that they have changed and need to be re-rendered.
10836
+ *
10837
+ * @see [Using change detection hooks](guide/lifecycle-hooks#using-change-detection-hooks)
10838
+ * @see [Defining custom change detection](guide/lifecycle-hooks#defining-custom-change-detection)
10851
10839
  *
10852
10840
  * @usageNotes
10853
10841
  *
@@ -10888,13 +10876,13 @@
10888
10876
  var ChangeDetectorRef = /** @class */ (function () {
10889
10877
  function ChangeDetectorRef() {
10890
10878
  }
10891
- /**
10892
- * @internal
10893
- * @nocollapse
10894
- */
10895
- ChangeDetectorRef.__NG_ELEMENT_ID__ = function () { return SWITCH_CHANGE_DETECTOR_REF_FACTORY(); };
10896
10879
  return ChangeDetectorRef;
10897
10880
  }());
10881
+ /**
10882
+ * @internal
10883
+ * @nocollapse
10884
+ */
10885
+ ChangeDetectorRef.__NG_ELEMENT_ID__ = function () { return SWITCH_CHANGE_DETECTOR_REF_FACTORY(); };
10898
10886
  var SWITCH_CHANGE_DETECTOR_REF_FACTORY__POST_R3__ = injectChangeDetectorRef;
10899
10887
  var SWITCH_CHANGE_DETECTOR_REF_FACTORY__PRE_R3__ = function () {
10900
10888
  var args = [];
@@ -10917,7 +10905,7 @@
10917
10905
  *
10918
10906
  * Represents a type that a Component or other object is instances of.
10919
10907
  *
10920
- * An example of a `Type` is `MyCustomComponent` class, which in JavaScript is be represented by
10908
+ * An example of a `Type` is `MyCustomComponent` class, which in JavaScript is represented by
10921
10909
  * the `MyCustomComponent` constructor function.
10922
10910
  *
10923
10911
  * @publicApi
@@ -10927,13 +10915,6 @@
10927
10915
  return typeof v === 'function';
10928
10916
  }
10929
10917
 
10930
- /**
10931
- * @license
10932
- * Copyright Google LLC All Rights Reserved.
10933
- *
10934
- * Use of this source code is governed by an MIT-style license that can be
10935
- * found in the LICENSE file at https://angular.io/license
10936
- */
10937
10918
  /**
10938
10919
  * Attention: These regex has to hold even if the code is minified!
10939
10920
  */
@@ -11020,9 +11001,7 @@
11020
11001
  // Retain the non-function case for compatibility with older tsickle
11021
11002
  var ctorParameters = typeof tsickleCtorParams === 'function' ? tsickleCtorParams() : tsickleCtorParams;
11022
11003
  var paramTypes_1 = ctorParameters.map(function (ctorParam) { return ctorParam && ctorParam.type; });
11023
- var paramAnnotations_1 = ctorParameters.map(function (ctorParam) {
11024
- return ctorParam && convertTsickleDecoratorIntoMetadata(ctorParam.decorators);
11025
- });
11004
+ var paramAnnotations_1 = ctorParameters.map(function (ctorParam) { return ctorParam && convertTsickleDecoratorIntoMetadata(ctorParam.decorators); });
11026
11005
  return this._zipTypesAndAnnotations(paramTypes_1, paramAnnotations_1);
11027
11006
  }
11028
11007
  // API for metadata created by invoking the decorators.
@@ -11374,13 +11353,6 @@
11374
11353
  return compilerMeta;
11375
11354
  }
11376
11355
 
11377
- /**
11378
- * @license
11379
- * Copyright Google LLC All Rights Reserved.
11380
- *
11381
- * Use of this source code is governed by an MIT-style license that can be
11382
- * found in the LICENSE file at https://angular.io/license
11383
- */
11384
11356
  var ɵ0$7 = getClosureSafeProperty;
11385
11357
  var USE_VALUE$2 = getClosureSafeProperty({ provide: String, useValue: ɵ0$7 });
11386
11358
  var EMPTY_ARRAY$1 = [];
@@ -11470,13 +11442,6 @@
11470
11442
  */
11471
11443
  var INJECTOR_SCOPE = new InjectionToken('Set Injector scope.');
11472
11444
 
11473
- /**
11474
- * @license
11475
- * Copyright Google LLC All Rights Reserved.
11476
- *
11477
- * Use of this source code is governed by an MIT-style license that can be
11478
- * found in the LICENSE file at https://angular.io/license
11479
- */
11480
11445
  /**
11481
11446
  * Marker which indicates that a value has not yet been created from the factory function.
11482
11447
  */
@@ -11945,13 +11910,6 @@
11945
11910
  (typeof value === 'object' && value instanceof InjectionToken);
11946
11911
  }
11947
11912
 
11948
- /**
11949
- * @license
11950
- * Copyright Google LLC All Rights Reserved.
11951
- *
11952
- * Use of this source code is governed by an MIT-style license that can be
11953
- * found in the LICENSE file at https://angular.io/license
11954
- */
11955
11913
  function INJECTOR_IMPL__PRE_R3__(providers, parent, name) {
11956
11914
  return new StaticInjector(providers, parent, name);
11957
11915
  }
@@ -11994,21 +11952,21 @@
11994
11952
  return INJECTOR_IMPL(options.providers, options.parent, options.name || '');
11995
11953
  }
11996
11954
  };
11997
- Injector.THROW_IF_NOT_FOUND = THROW_IF_NOT_FOUND;
11998
- Injector.NULL = new NullInjector();
11999
- /** @nocollapse */
12000
- Injector.ɵprov = ɵɵdefineInjectable({
12001
- token: Injector,
12002
- providedIn: 'any',
12003
- factory: function () { return ɵɵinject(INJECTOR); },
12004
- });
12005
- /**
12006
- * @internal
12007
- * @nocollapse
12008
- */
12009
- Injector.__NG_ELEMENT_ID__ = -1;
12010
11955
  return Injector;
12011
11956
  }());
11957
+ Injector.THROW_IF_NOT_FOUND = THROW_IF_NOT_FOUND;
11958
+ Injector.NULL = new NullInjector();
11959
+ /** @nocollapse */
11960
+ Injector.ɵprov = ɵɵdefineInjectable({
11961
+ token: Injector,
11962
+ providedIn: 'any',
11963
+ factory: function () { return ɵɵinject(INJECTOR); },
11964
+ });
11965
+ /**
11966
+ * @internal
11967
+ * @nocollapse
11968
+ */
11969
+ Injector.__NG_ELEMENT_ID__ = -1;
12012
11970
  var IDENT = function (value) {
12013
11971
  return value;
12014
11972
  };
@@ -12174,7 +12132,6 @@
12174
12132
  }
12175
12133
  }
12176
12134
  function resolveToken(token, record, records, parent, notFoundValue, flags) {
12177
- var _a;
12178
12135
  var value;
12179
12136
  if (record && !(flags & exports.InjectFlags.SkipSelf)) {
12180
12137
  // If we don't have a record, this implies that we don't own the provider hence don't know how
@@ -12209,7 +12166,7 @@
12209
12166
  !childRecord && !(options & 4 /* CheckParent */) ? Injector.NULL : parent, options & 1 /* Optional */ ? null : Injector.THROW_IF_NOT_FOUND, exports.InjectFlags.Default));
12210
12167
  }
12211
12168
  }
12212
- record.value = value = useNew ? new ((_a = fn).bind.apply(_a, __spread([void 0], deps)))() : fn.apply(obj, deps);
12169
+ record.value = value = useNew ? new (fn.bind.apply(fn, __spread([void 0], deps)))() : fn.apply(obj, deps);
12213
12170
  }
12214
12171
  }
12215
12172
  else if (!(flags & exports.InjectFlags.Self)) {
@@ -12838,13 +12795,6 @@
12838
12795
  return new ReflectiveDependency(ReflectiveKey.get(token), optional, visibility);
12839
12796
  }
12840
12797
 
12841
- /**
12842
- * @license
12843
- * Copyright Google LLC All Rights Reserved.
12844
- *
12845
- * Use of this source code is governed by an MIT-style license that can be
12846
- * found in the LICENSE file at https://angular.io/license
12847
- */
12848
12798
  // Threshold for the dynamic version
12849
12799
  var UNDEFINED = {};
12850
12800
  /**
@@ -13139,9 +13089,9 @@
13139
13089
  ReflectiveInjector_.prototype.toString = function () {
13140
13090
  return this.displayName;
13141
13091
  };
13142
- ReflectiveInjector_.INJECTOR_KEY = ReflectiveKey.get(Injector);
13143
13092
  return ReflectiveInjector_;
13144
13093
  }());
13094
+ ReflectiveInjector_.INJECTOR_KEY = ReflectiveKey.get(Injector);
13145
13095
  function _mapProviders(injector, fn) {
13146
13096
  var res = [];
13147
13097
  for (var i = 0; i < injector._providers.length; ++i) {
@@ -13228,7 +13178,7 @@
13228
13178
  }());
13229
13179
  var ɵ0$a = function (selector, data) {
13230
13180
  if (data === void 0) { data = {}; }
13231
- return (__assign({ selector: selector, first: false, isViewQuery: false, descendants: false }, data));
13181
+ return (Object.assign({ selector: selector, first: false, isViewQuery: false, descendants: false }, data));
13232
13182
  };
13233
13183
  /**
13234
13184
  * ContentChildren decorator and metadata.
@@ -13240,7 +13190,7 @@
13240
13190
  var ContentChildren = makePropDecorator('ContentChildren', ɵ0$a, Query);
13241
13191
  var ɵ1$2 = function (selector, data) {
13242
13192
  if (data === void 0) { data = {}; }
13243
- return (__assign({ selector: selector, first: true, isViewQuery: false, descendants: true }, data));
13193
+ return (Object.assign({ selector: selector, first: true, isViewQuery: false, descendants: true }, data));
13244
13194
  };
13245
13195
  /**
13246
13196
  * ContentChild decorator and metadata.
@@ -13253,7 +13203,7 @@
13253
13203
  var ContentChild = makePropDecorator('ContentChild', ɵ1$2, Query);
13254
13204
  var ɵ2 = function (selector, data) {
13255
13205
  if (data === void 0) { data = {}; }
13256
- return (__assign({ selector: selector, first: false, isViewQuery: true, descendants: true }, data));
13206
+ return (Object.assign({ selector: selector, first: false, isViewQuery: true, descendants: true }, data));
13257
13207
  };
13258
13208
  /**
13259
13209
  * ViewChildren decorator and metadata.
@@ -13262,9 +13212,7 @@
13262
13212
  * @publicApi
13263
13213
  */
13264
13214
  var ViewChildren = makePropDecorator('ViewChildren', ɵ2, Query);
13265
- var ɵ3 = function (selector, data) {
13266
- return (__assign({ selector: selector, first: true, isViewQuery: true, descendants: true }, data));
13267
- };
13215
+ var ɵ3 = function (selector, data) { return (Object.assign({ selector: selector, first: true, isViewQuery: true, descendants: true }, data)); };
13268
13216
  /**
13269
13217
  * ViewChild decorator and metadata.
13270
13218
  *
@@ -13441,9 +13389,9 @@
13441
13389
  var _symbolIterator = null;
13442
13390
  function getSymbolIterator() {
13443
13391
  if (!_symbolIterator) {
13444
- var Symbol_1 = _global['Symbol'];
13445
- if (Symbol_1 && Symbol_1.iterator) {
13446
- _symbolIterator = Symbol_1.iterator;
13392
+ var Symbol = _global['Symbol'];
13393
+ if (Symbol && Symbol.iterator) {
13394
+ _symbolIterator = Symbol.iterator;
13447
13395
  }
13448
13396
  else {
13449
13397
  // es6-shim specific logic
@@ -14184,8 +14132,7 @@
14184
14132
  for (var i = 2; i < values.length; i += 2) {
14185
14133
  interpolationInBetween.push(values[i]);
14186
14134
  }
14187
- storePropertyBindingMetadata.apply(void 0, __spread([getTView().data, tNode, 'attr.' + attrName,
14188
- getBindingIndex() - interpolationInBetween.length + 1], interpolationInBetween));
14135
+ storePropertyBindingMetadata.apply(void 0, __spread([getTView().data, tNode, 'attr.' + attrName, getBindingIndex() - interpolationInBetween.length + 1], interpolationInBetween));
14189
14136
  }
14190
14137
  }
14191
14138
  return ɵɵattributeInterpolateV;
@@ -14831,7 +14778,7 @@
14831
14778
  // register a listener and store its cleanup function on LView.
14832
14779
  var lCleanup = getLCleanup(lView);
14833
14780
  ngDevMode &&
14834
- assertNodeOfPossibleTypes(tNode, 3 /* Element */, 0 /* Container */, 4 /* ElementContainer */);
14781
+ assertNodeOfPossibleTypes(tNode, [3 /* Element */, 0 /* Container */, 4 /* ElementContainer */]);
14835
14782
  var processOutputs = true;
14836
14783
  // add native event listener - applicable to elements only
14837
14784
  if (tNode.type === 3 /* Element */) {
@@ -18429,13 +18376,6 @@
18429
18376
  * found in the LICENSE file at https://angular.io/license
18430
18377
  */
18431
18378
 
18432
- /**
18433
- * @license
18434
- * Copyright Google LLC All Rights Reserved.
18435
- *
18436
- * Use of this source code is governed by an MIT-style license that can be
18437
- * found in the LICENSE file at https://angular.io/license
18438
- */
18439
18379
  /**
18440
18380
  * Retrieves the component instance associated with a given DOM element.
18441
18381
  *
@@ -18710,7 +18650,7 @@
18710
18650
  var firstParam = tCleanup[i++];
18711
18651
  var secondParam = tCleanup[i++];
18712
18652
  if (typeof firstParam === 'string') {
18713
- var name_1 = firstParam;
18653
+ var name = firstParam;
18714
18654
  var listenerElement = unwrapRNode(lView[secondParam]);
18715
18655
  var callback = lCleanup[tCleanup[i++]];
18716
18656
  var useCaptureOrIndx = tCleanup[i++];
@@ -18720,7 +18660,7 @@
18720
18660
  var type = (typeof useCaptureOrIndx === 'boolean' || useCaptureOrIndx >= 0) ? 'dom' : 'output';
18721
18661
  var useCapture = typeof useCaptureOrIndx === 'boolean' ? useCaptureOrIndx : false;
18722
18662
  if (element == listenerElement) {
18723
- listeners.push({ element: element, name: name_1, callback: callback, useCapture: useCapture, type: type });
18663
+ listeners.push({ element: element, name: name, callback: callback, useCapture: useCapture, type: type });
18724
18664
  }
18725
18665
  }
18726
18666
  }
@@ -19219,13 +19159,6 @@
19219
19159
  }
19220
19160
  }
19221
19161
 
19222
- /**
19223
- * @license
19224
- * Copyright Google LLC All Rights Reserved.
19225
- *
19226
- * Use of this source code is governed by an MIT-style license that can be
19227
- * found in the LICENSE file at https://angular.io/license
19228
- */
19229
19162
  /**
19230
19163
  * Fields which exist on either directive or component definitions, and need to be copied from
19231
19164
  * parent to child classes by the `ɵɵCopyDefinitionFeature`.
@@ -19750,13 +19683,6 @@
19750
19683
  return ComponentFactory;
19751
19684
  }());
19752
19685
 
19753
- /**
19754
- * @license
19755
- * Copyright Google LLC All Rights Reserved.
19756
- *
19757
- * Use of this source code is governed by an MIT-style license that can be
19758
- * found in the LICENSE file at https://angular.io/license
19759
- */
19760
19686
  function noComponentFactoryError(component) {
19761
19687
  var error = Error("No component factory found for " + stringify(component) + ". Did you add it to @NgModule.entryComponents?");
19762
19688
  error[ERROR_COMPONENT] = component;
@@ -19786,9 +19712,9 @@
19786
19712
  var ComponentFactoryResolver = /** @class */ (function () {
19787
19713
  function ComponentFactoryResolver() {
19788
19714
  }
19789
- ComponentFactoryResolver.NULL = new _NullComponentFactoryResolver();
19790
19715
  return ComponentFactoryResolver;
19791
19716
  }());
19717
+ ComponentFactoryResolver.NULL = new _NullComponentFactoryResolver();
19792
19718
  var CodegenComponentFactoryResolver = /** @class */ (function () {
19793
19719
  function CodegenComponentFactoryResolver(factories, _parent, _ngModule) {
19794
19720
  this._parent = _parent;
@@ -19871,13 +19797,13 @@
19871
19797
  function ElementRef(nativeElement) {
19872
19798
  this.nativeElement = nativeElement;
19873
19799
  }
19874
- /**
19875
- * @internal
19876
- * @nocollapse
19877
- */
19878
- ElementRef.__NG_ELEMENT_ID__ = function () { return SWITCH_ELEMENT_REF_FACTORY(ElementRef); };
19879
19800
  return ElementRef;
19880
19801
  }());
19802
+ /**
19803
+ * @internal
19804
+ * @nocollapse
19805
+ */
19806
+ ElementRef.__NG_ELEMENT_ID__ = function () { return SWITCH_ELEMENT_REF_FACTORY(ElementRef); };
19881
19807
  var SWITCH_ELEMENT_REF_FACTORY__POST_R3__ = injectElementRef;
19882
19808
  var SWITCH_ELEMENT_REF_FACTORY__PRE_R3__ = noop;
19883
19809
  var SWITCH_ELEMENT_REF_FACTORY = SWITCH_ELEMENT_REF_FACTORY__PRE_R3__;
@@ -19931,13 +19857,13 @@
19931
19857
  var Renderer2 = /** @class */ (function () {
19932
19858
  function Renderer2() {
19933
19859
  }
19934
- /**
19935
- * @internal
19936
- * @nocollapse
19937
- */
19938
- Renderer2.__NG_ELEMENT_ID__ = function () { return SWITCH_RENDERER2_FACTORY(); };
19939
19860
  return Renderer2;
19940
19861
  }());
19862
+ /**
19863
+ * @internal
19864
+ * @nocollapse
19865
+ */
19866
+ Renderer2.__NG_ELEMENT_ID__ = function () { return SWITCH_RENDERER2_FACTORY(); };
19941
19867
  var SWITCH_RENDERER2_FACTORY__POST_R3__ = injectRenderer2;
19942
19868
  var SWITCH_RENDERER2_FACTORY__PRE_R3__ = noop;
19943
19869
  var SWITCH_RENDERER2_FACTORY = SWITCH_RENDERER2_FACTORY__PRE_R3__;
@@ -19957,14 +19883,14 @@
19957
19883
  var Sanitizer = /** @class */ (function () {
19958
19884
  function Sanitizer() {
19959
19885
  }
19960
- /** @nocollapse */
19961
- Sanitizer.ɵprov = ɵɵdefineInjectable({
19962
- token: Sanitizer,
19963
- providedIn: 'root',
19964
- factory: function () { return null; },
19965
- });
19966
19886
  return Sanitizer;
19967
19887
  }());
19888
+ /** @nocollapse */
19889
+ Sanitizer.ɵprov = ɵɵdefineInjectable({
19890
+ token: Sanitizer,
19891
+ providedIn: 'root',
19892
+ factory: function () { return null; },
19893
+ });
19968
19894
 
19969
19895
  /**
19970
19896
  * @license
@@ -19990,7 +19916,7 @@
19990
19916
  /**
19991
19917
  * @publicApi
19992
19918
  */
19993
- var VERSION = new Version('10.0.0');
19919
+ var VERSION = new Version('10.0.4');
19994
19920
 
19995
19921
  /**
19996
19922
  * @license
@@ -21001,14 +20927,14 @@
21001
20927
  throw new Error("Cannot find a differ supporting object '" + iterable + "' of type '" + getTypeNameForDebugging(iterable) + "'");
21002
20928
  }
21003
20929
  };
21004
- /** @nocollapse */
21005
- IterableDiffers.ɵprov = ɵɵdefineInjectable({
21006
- token: IterableDiffers,
21007
- providedIn: 'root',
21008
- factory: function () { return new IterableDiffers([new DefaultIterableDifferFactory()]); }
21009
- });
21010
20930
  return IterableDiffers;
21011
20931
  }());
20932
+ /** @nocollapse */
20933
+ IterableDiffers.ɵprov = ɵɵdefineInjectable({
20934
+ token: IterableDiffers,
20935
+ providedIn: 'root',
20936
+ factory: function () { return new IterableDiffers([new DefaultIterableDifferFactory()]); }
20937
+ });
21012
20938
  function getTypeNameForDebugging(type) {
21013
20939
  return type['name'] || typeof type;
21014
20940
  }
@@ -21078,14 +21004,14 @@
21078
21004
  }
21079
21005
  throw new Error("Cannot find a differ supporting object '" + kv + "'");
21080
21006
  };
21081
- /** @nocollapse */
21082
- KeyValueDiffers.ɵprov = ɵɵdefineInjectable({
21083
- token: KeyValueDiffers,
21084
- providedIn: 'root',
21085
- factory: function () { return new KeyValueDiffers([new DefaultKeyValueDifferFactory()]); }
21086
- });
21087
21007
  return KeyValueDiffers;
21088
21008
  }());
21009
+ /** @nocollapse */
21010
+ KeyValueDiffers.ɵprov = ɵɵdefineInjectable({
21011
+ token: KeyValueDiffers,
21012
+ providedIn: 'root',
21013
+ factory: function () { return new KeyValueDiffers([new DefaultKeyValueDifferFactory()]); }
21014
+ });
21089
21015
 
21090
21016
  /**
21091
21017
  * @license
@@ -21133,13 +21059,13 @@
21133
21059
  var TemplateRef = /** @class */ (function () {
21134
21060
  function TemplateRef() {
21135
21061
  }
21136
- /**
21137
- * @internal
21138
- * @nocollapse
21139
- */
21140
- TemplateRef.__NG_ELEMENT_ID__ = function () { return SWITCH_TEMPLATE_REF_FACTORY(TemplateRef, ElementRef); };
21141
21062
  return TemplateRef;
21142
21063
  }());
21064
+ /**
21065
+ * @internal
21066
+ * @nocollapse
21067
+ */
21068
+ TemplateRef.__NG_ELEMENT_ID__ = function () { return SWITCH_TEMPLATE_REF_FACTORY(TemplateRef, ElementRef); };
21143
21069
  var SWITCH_TEMPLATE_REF_FACTORY__POST_R3__ = injectTemplateRef;
21144
21070
  var SWITCH_TEMPLATE_REF_FACTORY__PRE_R3__ = noop;
21145
21071
  var SWITCH_TEMPLATE_REF_FACTORY = SWITCH_TEMPLATE_REF_FACTORY__PRE_R3__;
@@ -21169,13 +21095,13 @@
21169
21095
  var ViewContainerRef = /** @class */ (function () {
21170
21096
  function ViewContainerRef() {
21171
21097
  }
21172
- /**
21173
- * @internal
21174
- * @nocollapse
21175
- */
21176
- ViewContainerRef.__NG_ELEMENT_ID__ = function () { return SWITCH_VIEW_CONTAINER_REF_FACTORY(ViewContainerRef, ElementRef); };
21177
21098
  return ViewContainerRef;
21178
21099
  }());
21100
+ /**
21101
+ * @internal
21102
+ * @nocollapse
21103
+ */
21104
+ ViewContainerRef.__NG_ELEMENT_ID__ = function () { return SWITCH_VIEW_CONTAINER_REF_FACTORY(ViewContainerRef, ElementRef); };
21179
21105
  var SWITCH_VIEW_CONTAINER_REF_FACTORY__POST_R3__ = injectViewContainerRef;
21180
21106
  var SWITCH_VIEW_CONTAINER_REF_FACTORY__PRE_R3__ = noop;
21181
21107
  var SWITCH_VIEW_CONTAINER_REF_FACTORY = SWITCH_VIEW_CONTAINER_REF_FACTORY__PRE_R3__;
@@ -21335,13 +21261,6 @@
21335
21261
  dirtyParentQueries: undefined,
21336
21262
  };
21337
21263
 
21338
- /**
21339
- * @license
21340
- * Copyright Google LLC All Rights Reserved.
21341
- *
21342
- * Use of this source code is governed by an MIT-style license that can be
21343
- * found in the LICENSE file at https://angular.io/license
21344
- */
21345
21264
  var NOOP = function () { };
21346
21265
  var _tokenKeyCache = new Map();
21347
21266
  function tokenKey(token) {
@@ -21705,13 +21624,6 @@
21705
21624
  var EMPTY_ARRAY$4 = [];
21706
21625
  var EMPTY_MAP = {};
21707
21626
 
21708
- /**
21709
- * @license
21710
- * Copyright Google LLC All Rights Reserved.
21711
- *
21712
- * Use of this source code is governed by an MIT-style license that can be
21713
- * found in the LICENSE file at https://angular.io/license
21714
- */
21715
21627
  var UNDEFINED_VALUE = {};
21716
21628
  var InjectorRefTokenKey = tokenKey(Injector);
21717
21629
  var INJECTORRefTokenKey = tokenKey(INJECTOR);
@@ -22022,13 +21934,6 @@
22022
21934
  visitRootRenderNodes(view, 3 /* RemoveChild */, null, null, undefined);
22023
21935
  }
22024
21936
 
22025
- /**
22026
- * @license
22027
- * Copyright Google LLC All Rights Reserved.
22028
- *
22029
- * Use of this source code is governed by an MIT-style license that can be
22030
- * found in the LICENSE file at https://angular.io/license
22031
- */
22032
21937
  var EMPTY_CONTEXT = {};
22033
21938
  // Attention: this function is called as top level function.
22034
21939
  // Putting any logic in here will destroy closure tree shaking!
@@ -22445,13 +22350,6 @@
22445
22350
  return NgModuleRef_;
22446
22351
  }());
22447
22352
 
22448
- /**
22449
- * @license
22450
- * Copyright Google LLC All Rights Reserved.
22451
- *
22452
- * Use of this source code is governed by an MIT-style license that can be
22453
- * found in the LICENSE file at https://angular.io/license
22454
- */
22455
22353
  var Renderer2TokenKey = tokenKey(Renderer2);
22456
22354
  var ElementRefTokenKey = tokenKey(ElementRef);
22457
22355
  var ViewContainerRefTokenKey = tokenKey(ViewContainerRef);
@@ -22883,8 +22781,8 @@
22883
22781
  var initIndex = 0;
22884
22782
  for (var i = 0; i < nodes.length; i++) {
22885
22783
  var nodeDef = nodes[i];
22886
- var parent_1 = nodeDef.parent;
22887
- if (!parent_1 && nodeDef.flags & lifecycles) {
22784
+ var parent = nodeDef.parent;
22785
+ if (!parent && nodeDef.flags & lifecycles) {
22888
22786
  // matching root node (e.g. a pipe)
22889
22787
  callProviderLifecycles(view, i, nodeDef.flags & lifecycles, initIndex++);
22890
22788
  }
@@ -22892,13 +22790,13 @@
22892
22790
  // no child matches one of the lifecycles
22893
22791
  i += nodeDef.childCount;
22894
22792
  }
22895
- while (parent_1 && (parent_1.flags & 1 /* TypeElement */) &&
22896
- i === parent_1.nodeIndex + parent_1.childCount) {
22793
+ while (parent && (parent.flags & 1 /* TypeElement */) &&
22794
+ i === parent.nodeIndex + parent.childCount) {
22897
22795
  // last child of an element
22898
- if (parent_1.directChildFlags & lifecycles) {
22899
- initIndex = callElementProvidersLifecycles(view, parent_1, lifecycles, initIndex);
22796
+ if (parent.directChildFlags & lifecycles) {
22797
+ initIndex = callElementProvidersLifecycles(view, parent, lifecycles, initIndex);
22900
22798
  }
22901
- parent_1 = parent_1.parent;
22799
+ parent = parent.parent;
22902
22800
  }
22903
22801
  }
22904
22802
  }
@@ -22942,13 +22840,6 @@
22942
22840
  }
22943
22841
  }
22944
22842
 
22945
- /**
22946
- * @license
22947
- * Copyright Google LLC All Rights Reserved.
22948
- *
22949
- * Use of this source code is governed by an MIT-style license that can be
22950
- * found in the LICENSE file at https://angular.io/license
22951
- */
22952
22843
  var ComponentFactoryResolver$1 = /** @class */ (function (_super) {
22953
22844
  __extends(ComponentFactoryResolver, _super);
22954
22845
  /**
@@ -23053,12 +22944,6 @@
23053
22944
  elementCreate(elementName, rendererFactory.createRenderer(null, this.componentDef), getNamespace$1(elementName));
23054
22945
  var rootFlags = this.componentDef.onPush ? 64 /* Dirty */ | 512 /* IsRoot */ :
23055
22946
  16 /* CheckAlways */ | 512 /* IsRoot */;
23056
- // Check whether this Component needs to be isolated from other components, i.e. whether it
23057
- // should be placed into its own (empty) root context or existing root context should be used.
23058
- // Note: this is internal-only convention and might change in the future, so it should not be
23059
- // relied upon externally.
23060
- var isIsolated = typeof rootSelectorOrNode === 'string' &&
23061
- /^#root-ng-internal-isolated-\d+/.test(rootSelectorOrNode);
23062
22947
  var rootContext = createRootContext();
23063
22948
  // Create the root view. Uses empty TView and ContentTemplate.
23064
22949
  var rootTView = createTView(0 /* Root */, -1, null, 1, 0, null, null, null, null, null);
@@ -23113,12 +22998,9 @@
23113
22998
  leaveView();
23114
22999
  }
23115
23000
  var componentRef = new ComponentRef$1(this.componentType, component, createElementRef(ElementRef, tElementNode, rootLView), rootLView, tElementNode);
23116
- if (!rootSelectorOrNode || isIsolated) {
23117
- // The host element of the internal or isolated root view is attached to the component's host
23118
- // view node.
23119
- ngDevMode && assertNodeOfPossibleTypes(rootTView.node, 2 /* View */);
23120
- rootTView.node.child = tElementNode;
23121
- }
23001
+ // The host element of the internal root view is attached to the component's host view node.
23002
+ ngDevMode && assertNodeOfPossibleTypes(rootTView.node, [2 /* View */]);
23003
+ rootTView.node.child = tElementNode;
23122
23004
  return componentRef;
23123
23005
  };
23124
23006
  return ComponentFactory;
@@ -24447,7 +24329,7 @@
24447
24329
  * @param expandoStartIndex
24448
24330
  */
24449
24331
  function parseIcuCase(unsafeHtml, parentIndex, nestedIcus, tIcus, expandoStartIndex) {
24450
- var inertBodyHelper = new InertBodyHelper(getDocument());
24332
+ var inertBodyHelper = getInertBodyHelper(getDocument());
24451
24333
  var inertBodyElement = inertBodyHelper.getInertBodyElement(unsafeHtml);
24452
24334
  if (!inertBodyElement) {
24453
24335
  throw new Error('Unable to generate inert body element');
@@ -24605,13 +24487,6 @@
24605
24487
  return LOCALE_ID;
24606
24488
  }
24607
24489
 
24608
- /**
24609
- * @license
24610
- * Copyright Google LLC All Rights Reserved.
24611
- *
24612
- * Use of this source code is governed by an MIT-style license that can be
24613
- * found in the LICENSE file at https://angular.io/license
24614
- */
24615
24490
  /**
24616
24491
  * Adds decorator, constructor, and property metadata to a given type via static metadata fields
24617
24492
  * on the type.
@@ -24655,7 +24530,7 @@
24655
24530
  if (clazz.propDecorators !== undefined &&
24656
24531
  (!parentConstructor ||
24657
24532
  parentConstructor.propDecorators !== clazz.propDecorators)) {
24658
- clazz.propDecorators = __assign(__assign({}, clazz.propDecorators), propDecorators);
24533
+ clazz.propDecorators = Object.assign(Object.assign({}, clazz.propDecorators), propDecorators);
24659
24534
  }
24660
24535
  else {
24661
24536
  clazz.propDecorators = propDecorators;
@@ -24713,13 +24588,6 @@
24713
24588
  return modules.get(id) || autoRegisterModuleById[id];
24714
24589
  }
24715
24590
 
24716
- /**
24717
- * @license
24718
- * Copyright Google LLC All Rights Reserved.
24719
- *
24720
- * Use of this source code is governed by an MIT-style license that can be
24721
- * found in the LICENSE file at https://angular.io/license
24722
- */
24723
24591
  var NgModuleRef$1 = /** @class */ (function (_super) {
24724
24592
  __extends(NgModuleRef$1, _super);
24725
24593
  function NgModuleRef$1(ngModuleType, _parent) {
@@ -25344,13 +25212,6 @@
25344
25212
  return newValue;
25345
25213
  }
25346
25214
 
25347
- /**
25348
- * @license
25349
- * Copyright Google LLC All Rights Reserved.
25350
- *
25351
- * Use of this source code is governed by an MIT-style license that can be
25352
- * found in the LICENSE file at https://angular.io/license
25353
- */
25354
25215
  var EventEmitter_ = /** @class */ (function (_super) {
25355
25216
  __extends(EventEmitter_, _super);
25356
25217
  function EventEmitter_(isAsync) {
@@ -25744,7 +25605,7 @@
25744
25605
  TQuery_.prototype.isApplyingToNode = function (tNode) {
25745
25606
  if (this._appliesToNextNode && this.metadata.descendants === false) {
25746
25607
  var declarationNodeIdx = this._declarationNodeIndex;
25747
- var parent_1 = tNode.parent;
25608
+ var parent = tNode.parent;
25748
25609
  // Determine if a given TNode is a "direct" child of a node on which a content query was
25749
25610
  // declared (only direct children of query's host node can match with the descendants: false
25750
25611
  // option). There are 3 main use-case / conditions to consider here:
@@ -25755,11 +25616,11 @@
25755
25616
  // - <needs-target><ng-container><i #target></i></ng-container></needs-target>: here we need
25756
25617
  // to go past `<ng-container>` to determine <i #target> parent node (but we shouldn't traverse
25757
25618
  // up past the query's host node!).
25758
- while (parent_1 !== null && parent_1.type === 4 /* ElementContainer */ &&
25759
- parent_1.index !== declarationNodeIdx) {
25760
- parent_1 = parent_1.parent;
25619
+ while (parent !== null && parent.type === 4 /* ElementContainer */ &&
25620
+ parent.index !== declarationNodeIdx) {
25621
+ parent = parent.parent;
25761
25622
  }
25762
- return declarationNodeIdx === (parent_1 !== null ? parent_1.index : -1);
25623
+ return declarationNodeIdx === (parent !== null ? parent.index : -1);
25763
25624
  }
25764
25625
  return this._appliesToNextNode;
25765
25626
  };
@@ -25863,7 +25724,7 @@
25863
25724
  }
25864
25725
  else if (read === ViewContainerRef) {
25865
25726
  ngDevMode &&
25866
- assertNodeOfPossibleTypes(tNode, 3 /* Element */, 0 /* Container */, 4 /* ElementContainer */);
25727
+ assertNodeOfPossibleTypes(tNode, [3 /* Element */, 0 /* Container */, 4 /* ElementContainer */]);
25867
25728
  return createContainerRef(ViewContainerRef, ElementRef, tNode, lView);
25868
25729
  }
25869
25730
  else {
@@ -26305,13 +26166,6 @@
26305
26166
  jitOptions = null;
26306
26167
  }
26307
26168
 
26308
- /**
26309
- * @license
26310
- * Copyright Google LLC All Rights Reserved.
26311
- *
26312
- * Use of this source code is governed by an MIT-style license that can be
26313
- * found in the LICENSE file at https://angular.io/license
26314
- */
26315
26169
  var EMPTY_ARRAY$5 = [];
26316
26170
  var moduleQueue = [];
26317
26171
  /**
@@ -26648,14 +26502,10 @@
26648
26502
  * a given module.
26649
26503
  */
26650
26504
  function patchComponentDefWithScope(componentDef, transitiveScopes) {
26651
- componentDef.directiveDefs = function () {
26652
- return Array.from(transitiveScopes.compilation.directives)
26653
- .map(function (dir) { return dir.hasOwnProperty(NG_COMP_DEF) ? getComponentDef(dir) : getDirectiveDef(dir); })
26654
- .filter(function (def) { return !!def; });
26655
- };
26656
- componentDef.pipeDefs = function () {
26657
- return Array.from(transitiveScopes.compilation.pipes).map(function (pipe) { return getPipeDef(pipe); });
26658
- };
26505
+ componentDef.directiveDefs = function () { return Array.from(transitiveScopes.compilation.directives)
26506
+ .map(function (dir) { return dir.hasOwnProperty(NG_COMP_DEF) ? getComponentDef(dir) : getDirectiveDef(dir); })
26507
+ .filter(function (def) { return !!def; }); };
26508
+ componentDef.pipeDefs = function () { return Array.from(transitiveScopes.compilation.pipes).map(function (pipe) { return getPipeDef(pipe); }); };
26659
26509
  componentDef.schemas = transitiveScopes.schemas;
26660
26510
  // Since we avoid Components/Directives/Pipes recompiling in case there are no overrides, we
26661
26511
  // may face a problem where previously compiled defs available to a given Component/Directive
@@ -26820,7 +26670,7 @@
26820
26670
  }
26821
26671
  }
26822
26672
  var templateUrl = metadata.templateUrl || "ng:///" + type.name + "/template.html";
26823
- var meta = __assign(__assign({}, directiveMetadata(type, metadata)), { typeSourceSpan: compiler.createParseSourceSpan('Component', type.name, templateUrl), template: metadata.template || '', preserveWhitespaces: preserveWhitespaces, styles: metadata.styles || EMPTY_ARRAY, animations: metadata.animations, directives: [], changeDetection: metadata.changeDetection, pipes: new Map(), encapsulation: encapsulation, interpolation: metadata.interpolation, viewProviders: metadata.viewProviders || null });
26673
+ var meta = Object.assign(Object.assign({}, directiveMetadata(type, metadata)), { typeSourceSpan: compiler.createParseSourceSpan('Component', type.name, templateUrl), template: metadata.template || '', preserveWhitespaces: preserveWhitespaces, styles: metadata.styles || EMPTY_ARRAY, animations: metadata.animations, directives: [], changeDetection: metadata.changeDetection, pipes: new Map(), encapsulation: encapsulation, interpolation: metadata.interpolation, viewProviders: metadata.viewProviders || null });
26824
26674
  if (meta.usesInheritance) {
26825
26675
  addDirectiveDefToUndecoratedParents(type);
26826
26676
  }
@@ -26893,7 +26743,7 @@
26893
26743
  if (ngFactoryDef === null) {
26894
26744
  var meta = getDirectiveMetadata(type, metadata);
26895
26745
  var compiler = getCompilerFacade();
26896
- ngFactoryDef = compiler.compileFactory(angularCoreEnv, "ng:///" + type.name + "/\u0275fac.js", __assign(__assign({}, meta.metadata), { injectFn: 'directiveInject', target: compiler.R3FactoryTarget.Directive }));
26746
+ ngFactoryDef = compiler.compileFactory(angularCoreEnv, "ng:///" + type.name + "/\u0275fac.js", Object.assign(Object.assign({}, meta.metadata), { injectFn: 'directiveInject', target: compiler.R3FactoryTarget.Directive }));
26897
26747
  }
26898
26748
  return ngFactoryDef;
26899
26749
  },
@@ -27042,7 +26892,7 @@
27042
26892
  if (ngFactoryDef === null) {
27043
26893
  var metadata = getPipeMetadata(type, meta);
27044
26894
  var compiler = getCompilerFacade();
27045
- ngFactoryDef = compiler.compileFactory(angularCoreEnv, "ng:///" + metadata.name + "/\u0275fac.js", __assign(__assign({}, metadata), { injectFn: 'directiveInject', target: compiler.R3FactoryTarget.Pipe }));
26895
+ ngFactoryDef = compiler.compileFactory(angularCoreEnv, "ng:///" + metadata.name + "/\u0275fac.js", Object.assign(Object.assign({}, metadata), { injectFn: 'directiveInject', target: compiler.R3FactoryTarget.Pipe }));
27046
26896
  }
27047
26897
  return ngFactoryDef;
27048
26898
  },
@@ -27091,7 +26941,7 @@
27091
26941
  var Directive = makeDecorator('Directive', ɵ0$e, undefined, undefined, ɵ1$3);
27092
26942
  var ɵ2$1 = function (c) {
27093
26943
  if (c === void 0) { c = {}; }
27094
- return (__assign({ changeDetection: exports.ChangeDetectionStrategy.Default }, c));
26944
+ return (Object.assign({ changeDetection: exports.ChangeDetectionStrategy.Default }, c));
27095
26945
  }, ɵ3$1 = function (type, meta) { return SWITCH_COMPILE_COMPONENT(type, meta); };
27096
26946
  /**
27097
26947
  * Component decorator and metadata.
@@ -27100,7 +26950,7 @@
27100
26950
  * @publicApi
27101
26951
  */
27102
26952
  var Component = makeDecorator('Component', ɵ2$1, Directive, undefined, ɵ3$1);
27103
- var ɵ4 = function (p) { return (__assign({ pure: true }, p)); }, ɵ5 = function (type, meta) { return SWITCH_COMPILE_PIPE(type, meta); };
26953
+ var ɵ4 = function (p) { return (Object.assign({ pure: true }, p)); }, ɵ5 = function (type, meta) { return SWITCH_COMPILE_PIPE(type, meta); };
27104
26954
  /**
27105
26955
  * @Annotation
27106
26956
  * @publicApi
@@ -27192,13 +27042,6 @@
27192
27042
  var SWITCH_COMPILE_DIRECTIVE = SWITCH_COMPILE_DIRECTIVE__PRE_R3__;
27193
27043
  var SWITCH_COMPILE_PIPE = SWITCH_COMPILE_PIPE__PRE_R3__;
27194
27044
 
27195
- /**
27196
- * @license
27197
- * Copyright Google LLC All Rights Reserved.
27198
- *
27199
- * Use of this source code is governed by an MIT-style license that can be
27200
- * found in the LICENSE file at https://angular.io/license
27201
- */
27202
27045
  var ɵ0$f = function (ngModule) { return ngModule; }, ɵ1$4 =
27203
27046
  /**
27204
27047
  * Decorator that marks the following class as an NgModule, and supplies
@@ -27256,21 +27099,25 @@
27256
27099
  * found in the LICENSE file at https://angular.io/license
27257
27100
  */
27258
27101
  /**
27259
- * An injection token that allows you to provide one or more initialization functions.
27260
- * These function are injected at application startup and executed during
27102
+ * A [DI token](guide/glossary#di-token "DI token definition") that you can use to provide
27103
+ * one or more initialization functions.
27104
+ *
27105
+ * The provided function are injected at application startup and executed during
27261
27106
  * app initialization. If any of these functions returns a Promise, initialization
27262
27107
  * does not complete until the Promise is resolved.
27263
27108
  *
27264
27109
  * You can, for example, create a factory function that loads language data
27265
27110
  * or an external configuration, and provide that function to the `APP_INITIALIZER` token.
27266
- * That way, the function is executed during the application bootstrap process,
27111
+ * The function is executed during the application bootstrap process,
27267
27112
  * and the needed data is available on startup.
27268
27113
  *
27114
+ * @see `ApplicationInitStatus`
27115
+ *
27269
27116
  * @publicApi
27270
27117
  */
27271
27118
  var APP_INITIALIZER = new InjectionToken('Application Initializer');
27272
27119
  /**
27273
- * A class that reflects the state of running {@link APP_INITIALIZER}s.
27120
+ * A class that reflects the state of running {@link APP_INITIALIZER} functions.
27274
27121
  *
27275
27122
  * @publicApi
27276
27123
  */
@@ -27316,14 +27163,14 @@
27316
27163
  }
27317
27164
  this.initialized = true;
27318
27165
  };
27319
- ApplicationInitStatus.decorators = [
27320
- { type: Injectable }
27321
- ];
27322
- ApplicationInitStatus.ctorParameters = function () { return [
27323
- { type: Array, decorators: [{ type: Inject, args: [APP_INITIALIZER,] }, { type: Optional }] }
27324
- ]; };
27325
27166
  return ApplicationInitStatus;
27326
27167
  }());
27168
+ ApplicationInitStatus.decorators = [
27169
+ { type: Injectable }
27170
+ ];
27171
+ ApplicationInitStatus.ctorParameters = function () { return [
27172
+ { type: Array, decorators: [{ type: Inject, args: [APP_INITIALIZER,] }, { type: Optional }] }
27173
+ ]; };
27327
27174
 
27328
27175
  /**
27329
27176
  * @license
@@ -27333,13 +27180,14 @@
27333
27180
  * found in the LICENSE file at https://angular.io/license
27334
27181
  */
27335
27182
  /**
27336
- * A DI Token representing a unique string id assigned to the application by Angular and used
27183
+ * A [DI token](guide/glossary#di-token "DI token definition") representing a unique string ID, used
27337
27184
  * primarily for prefixing application attributes and CSS styles when
27338
27185
  * {@link ViewEncapsulation#Emulated ViewEncapsulation.Emulated} is being used.
27339
27186
  *
27340
- * If you need to avoid randomly generated value to be used as an application id, you can provide
27341
- * a custom value via a DI provider <!-- TODO: provider --> configuring the root {@link Injector}
27342
- * using this token.
27187
+ * BY default, the value is randomly generated and assigned to the application by Angular.
27188
+ * To provide a custom ID value, use a DI provider <!-- TODO: provider --> to configure
27189
+ * the root {@link Injector} that uses this token.
27190
+ *
27343
27191
  * @publicApi
27344
27192
  */
27345
27193
  var APP_ID = new InjectionToken('AppId');
@@ -27347,7 +27195,7 @@
27347
27195
  return "" + _randomChar() + _randomChar() + _randomChar();
27348
27196
  }
27349
27197
  /**
27350
- * Providers that will generate a random APP_ID_TOKEN.
27198
+ * Providers that generate a random `APP_ID_TOKEN`.
27351
27199
  * @publicApi
27352
27200
  */
27353
27201
  var APP_ID_RANDOM_PROVIDER = {
@@ -27359,26 +27207,29 @@
27359
27207
  return String.fromCharCode(97 + Math.floor(Math.random() * 25));
27360
27208
  }
27361
27209
  /**
27362
- * A function that will be executed when a platform is initialized.
27210
+ * A function that is executed when a platform is initialized.
27363
27211
  * @publicApi
27364
27212
  */
27365
27213
  var PLATFORM_INITIALIZER = new InjectionToken('Platform Initializer');
27366
27214
  /**
27367
- * A token that indicates an opaque platform id.
27215
+ * A token that indicates an opaque platform ID.
27368
27216
  * @publicApi
27369
27217
  */
27370
27218
  var PLATFORM_ID = new InjectionToken('Platform ID');
27371
27219
  /**
27372
- * All callbacks provided via this token will be called for every component that is bootstrapped.
27373
- * Signature of the callback:
27220
+ * A [DI token](guide/glossary#di-token "DI token definition") that provides a set of callbacks to
27221
+ * be called for every component that is bootstrapped.
27374
27222
  *
27375
- * `(componentRef: ComponentRef) => void`.
27223
+ * Each callback must take a `ComponentRef` instance and return nothing.
27224
+ *
27225
+ * `(componentRef: ComponentRef) => void`
27376
27226
  *
27377
27227
  * @publicApi
27378
27228
  */
27379
27229
  var APP_BOOTSTRAP_LISTENER = new InjectionToken('appBootstrapListener');
27380
27230
  /**
27381
- * A token which indicates the root directory of the application
27231
+ * A [DI token](guide/glossary#di-token "DI token definition") that indicates the root directory of
27232
+ * the application
27382
27233
  * @publicApi
27383
27234
  */
27384
27235
  var PACKAGE_ROOT_URL = new InjectionToken('Application Packages Root URL');
@@ -27402,11 +27253,11 @@
27402
27253
  // tslint:disable-next-line:no-console
27403
27254
  console.warn(message);
27404
27255
  };
27405
- Console.decorators = [
27406
- { type: Injectable }
27407
- ];
27408
27256
  return Console;
27409
27257
  }());
27258
+ Console.decorators = [
27259
+ { type: Injectable }
27260
+ ];
27410
27261
 
27411
27262
  /**
27412
27263
  * @license
@@ -27636,11 +27487,11 @@
27636
27487
  Compiler.prototype.getModuleId = function (moduleType) {
27637
27488
  return undefined;
27638
27489
  };
27639
- Compiler.decorators = [
27640
- { type: Injectable }
27641
- ];
27642
27490
  return Compiler;
27643
27491
  }());
27492
+ Compiler.decorators = [
27493
+ { type: Injectable }
27494
+ ];
27644
27495
  /**
27645
27496
  * Token to provide CompilerOptions in the platform injector.
27646
27497
  *
@@ -28227,14 +28078,14 @@
28227
28078
  // TODO(juliemr): implement.
28228
28079
  return [];
28229
28080
  };
28230
- Testability.decorators = [
28231
- { type: Injectable }
28232
- ];
28233
- Testability.ctorParameters = function () { return [
28234
- { type: NgZone }
28235
- ]; };
28236
28081
  return Testability;
28237
28082
  }());
28083
+ Testability.decorators = [
28084
+ { type: Injectable }
28085
+ ];
28086
+ Testability.ctorParameters = function () { return [
28087
+ { type: NgZone }
28088
+ ]; };
28238
28089
  /**
28239
28090
  * A global registry of {@link Testability} instances for specific elements.
28240
28091
  * @publicApi
@@ -28295,12 +28146,12 @@
28295
28146
  if (findInAncestors === void 0) { findInAncestors = true; }
28296
28147
  return _testabilityGetter.findTestabilityInTree(this, elem, findInAncestors);
28297
28148
  };
28298
- TestabilityRegistry.decorators = [
28299
- { type: Injectable }
28300
- ];
28301
- TestabilityRegistry.ctorParameters = function () { return []; };
28302
28149
  return TestabilityRegistry;
28303
28150
  }());
28151
+ TestabilityRegistry.decorators = [
28152
+ { type: Injectable }
28153
+ ];
28154
+ TestabilityRegistry.ctorParameters = function () { return []; };
28304
28155
  var _NoopGetTestability = /** @class */ (function () {
28305
28156
  function _NoopGetTestability() {
28306
28157
  }
@@ -28319,13 +28170,6 @@
28319
28170
  }
28320
28171
  var _testabilityGetter = new _NoopGetTestability();
28321
28172
 
28322
- /**
28323
- * @license
28324
- * Copyright Google LLC All Rights Reserved.
28325
- *
28326
- * Use of this source code is governed by an MIT-style license that can be
28327
- * found in the LICENSE file at https://angular.io/license
28328
- */
28329
28173
  var _platform;
28330
28174
  var compileNgModuleFactory = compileNgModuleFactory__PRE_R3__;
28331
28175
  function compileNgModuleFactory__PRE_R3__(injector, options, moduleType) {
@@ -28633,14 +28477,14 @@
28633
28477
  enumerable: false,
28634
28478
  configurable: true
28635
28479
  });
28636
- PlatformRef.decorators = [
28637
- { type: Injectable }
28638
- ];
28639
- PlatformRef.ctorParameters = function () { return [
28640
- { type: Injector }
28641
- ]; };
28642
28480
  return PlatformRef;
28643
28481
  }());
28482
+ PlatformRef.decorators = [
28483
+ { type: Injectable }
28484
+ ];
28485
+ PlatformRef.ctorParameters = function () { return [
28486
+ { type: Injector }
28487
+ ]; };
28644
28488
  function getNgZone(ngZoneOption, ngZoneEventCoalescing) {
28645
28489
  var ngZone;
28646
28490
  if (ngZoneOption === 'noop') {
@@ -28677,7 +28521,7 @@
28677
28521
  dst = objs.reduce(optionsReducer, dst);
28678
28522
  }
28679
28523
  else {
28680
- dst = __assign(__assign({}, dst), objs);
28524
+ dst = Object.assign(Object.assign({}, dst), objs);
28681
28525
  }
28682
28526
  return dst;
28683
28527
  }
@@ -28998,19 +28842,19 @@
28998
28842
  enumerable: false,
28999
28843
  configurable: true
29000
28844
  });
29001
- ApplicationRef.decorators = [
29002
- { type: Injectable }
29003
- ];
29004
- ApplicationRef.ctorParameters = function () { return [
29005
- { type: NgZone },
29006
- { type: Console },
29007
- { type: Injector },
29008
- { type: ErrorHandler },
29009
- { type: ComponentFactoryResolver },
29010
- { type: ApplicationInitStatus }
29011
- ]; };
29012
28845
  return ApplicationRef;
29013
28846
  }());
28847
+ ApplicationRef.decorators = [
28848
+ { type: Injectable }
28849
+ ];
28850
+ ApplicationRef.ctorParameters = function () { return [
28851
+ { type: NgZone },
28852
+ { type: Console },
28853
+ { type: Injector },
28854
+ { type: ErrorHandler },
28855
+ { type: ComponentFactoryResolver },
28856
+ { type: ApplicationInitStatus }
28857
+ ]; };
29014
28858
  function remove(list, el) {
29015
28859
  var index = list.indexOf(el);
29016
28860
  if (index > -1) {
@@ -29089,13 +28933,6 @@
29089
28933
  return new Error("No module with ID " + id + " loaded");
29090
28934
  }
29091
28935
 
29092
- /**
29093
- * @license
29094
- * Copyright Google LLC All Rights Reserved.
29095
- *
29096
- * Use of this source code is governed by an MIT-style license that can be
29097
- * found in the LICENSE file at https://angular.io/license
29098
- */
29099
28936
  var _SEPARATOR = '#';
29100
28937
  var FACTORY_CLASS_SUFFIX = 'NgFactory';
29101
28938
  /**
@@ -29152,15 +28989,15 @@
29152
28989
  .then(function (module) { return module[exportName + factoryClassSuffix]; })
29153
28990
  .then(function (factory) { return checkNotEmpty(factory, module, exportName); });
29154
28991
  };
29155
- SystemJsNgModuleLoader.decorators = [
29156
- { type: Injectable }
29157
- ];
29158
- SystemJsNgModuleLoader.ctorParameters = function () { return [
29159
- { type: Compiler },
29160
- { type: SystemJsNgModuleLoaderConfig, decorators: [{ type: Optional }] }
29161
- ]; };
29162
28992
  return SystemJsNgModuleLoader;
29163
28993
  }());
28994
+ SystemJsNgModuleLoader.decorators = [
28995
+ { type: Injectable }
28996
+ ];
28997
+ SystemJsNgModuleLoader.ctorParameters = function () { return [
28998
+ { type: Compiler },
28999
+ { type: SystemJsNgModuleLoaderConfig, decorators: [{ type: Optional }] }
29000
+ ]; };
29164
29001
  function checkNotEmpty(value, modulePath, exportName) {
29165
29002
  if (!value) {
29166
29003
  throw new Error("Cannot find '" + exportName + "' in '" + modulePath + "'");
@@ -29169,19 +29006,9 @@
29169
29006
  }
29170
29007
 
29171
29008
  /**
29172
- * @license
29173
- * Copyright Google LLC All Rights Reserved.
29174
- *
29175
- * Use of this source code is governed by an MIT-style license that can be
29176
- * found in the LICENSE file at https://angular.io/license
29177
- */
29178
- /**
29179
- * Represents an Angular [view](guide/glossary#view),
29180
- * specifically the [host view](guide/glossary#view-tree) that is defined by a component.
29181
- * Also serves as the base class
29182
- * that adds destroy methods for [embedded views](guide/glossary#view-tree).
29009
+ * Represents an Angular [view](guide/glossary#view "Definition").
29183
29010
  *
29184
- * @see `EmbeddedViewRef`
29011
+ * @see {@link ChangeDetectorRef#usage-notes Change detection usage}
29185
29012
  *
29186
29013
  * @publicApi
29187
29014
  */
@@ -29261,13 +29088,6 @@
29261
29088
  * found in the LICENSE file at https://angular.io/license
29262
29089
  */
29263
29090
 
29264
- /**
29265
- * @license
29266
- * Copyright Google LLC All Rights Reserved.
29267
- *
29268
- * Use of this source code is governed by an MIT-style license that can be
29269
- * found in the LICENSE file at https://angular.io/license
29270
- */
29271
29091
  /**
29272
29092
  * @publicApi
29273
29093
  */
@@ -30125,22 +29945,15 @@
30125
29945
  // Inject ApplicationRef to make it eager...
30126
29946
  function ApplicationModule(appRef) {
30127
29947
  }
30128
- ApplicationModule.decorators = [
30129
- { type: NgModule, args: [{ providers: APPLICATION_MODULE_PROVIDERS },] }
30130
- ];
30131
- ApplicationModule.ctorParameters = function () { return [
30132
- { type: ApplicationRef }
30133
- ]; };
30134
29948
  return ApplicationModule;
30135
29949
  }());
29950
+ ApplicationModule.decorators = [
29951
+ { type: NgModule, args: [{ providers: APPLICATION_MODULE_PROVIDERS },] }
29952
+ ];
29953
+ ApplicationModule.ctorParameters = function () { return [
29954
+ { type: ApplicationRef }
29955
+ ]; };
30136
29956
 
30137
- /**
30138
- * @license
30139
- * Copyright Google LLC All Rights Reserved.
30140
- *
30141
- * Use of this source code is governed by an MIT-style license that can be
30142
- * found in the LICENSE file at https://angular.io/license
30143
- */
30144
29957
  function anchorDef(flags, matchedQueriesDsl, ngContentIndex, childCount, handleEvent, templateFactory) {
30145
29958
  flags |= 1 /* TypeElement */;
30146
29959
  var _a = splitMatchedQueriesDsl(matchedQueriesDsl), matchedQueries = _a.matchedQueries, references = _a.references, matchedQueryIds = _a.matchedQueryIds;
@@ -30298,8 +30111,8 @@
30298
30111
  }
30299
30112
  if (elDef.attrs) {
30300
30113
  for (var i = 0; i < elDef.attrs.length; i++) {
30301
- var _a = __read(elDef.attrs[i], 3), ns = _a[0], name_2 = _a[1], value = _a[2];
30302
- renderer.setAttribute(el, name_2, value, ns);
30114
+ var _a = __read(elDef.attrs[i], 3), ns = _a[0], name = _a[1], value = _a[2];
30115
+ renderer.setAttribute(el, name, value, ns);
30303
30116
  }
30304
30117
  }
30305
30118
  return el;
@@ -30651,13 +30464,6 @@
30651
30464
  visitProjectedRenderNodes(view, ngContentIndex, 1 /* AppendChild */, parentEl, null, undefined);
30652
30465
  }
30653
30466
 
30654
- /**
30655
- * @license
30656
- * Copyright Google LLC All Rights Reserved.
30657
- *
30658
- * Use of this source code is governed by an MIT-style license that can be
30659
- * found in the LICENSE file at https://angular.io/license
30660
- */
30661
30467
  function purePipeDef(checkIndex, argCount) {
30662
30468
  // argCount + 1 to include the pipe as first arg
30663
30469
  return _pureExpressionDef(128 /* TypePurePipe */, checkIndex, newArray(argCount + 1));
@@ -31114,9 +30920,7 @@
31114
30920
  }
31115
30921
  }
31116
30922
  }
31117
- var handleEvent = function (view, nodeIndex, eventName, event) {
31118
- return nodes[nodeIndex].element.handleEvent(view, eventName, event);
31119
- };
30923
+ var handleEvent = function (view, nodeIndex, eventName, event) { return nodes[nodeIndex].element.handleEvent(view, eventName, event); };
31120
30924
  return {
31121
30925
  // Will be filled later...
31122
30926
  factory: null,
@@ -31621,13 +31425,6 @@
31621
31425
  }
31622
31426
  }
31623
31427
 
31624
- /**
31625
- * @license
31626
- * Copyright Google LLC All Rights Reserved.
31627
- *
31628
- * Use of this source code is governed by an MIT-style license that can be
31629
- * found in the LICENSE file at https://angular.io/license
31630
- */
31631
31428
  var initialized = false;
31632
31429
  function initServicesIfNeeded() {
31633
31430
  if (initialized) {
@@ -31667,9 +31464,7 @@
31667
31464
  checkNoChangesView: checkNoChangesView,
31668
31465
  destroyView: destroyView,
31669
31466
  createDebugContext: function (view, nodeIndex) { return new DebugContext_(view, nodeIndex); },
31670
- handleEvent: function (view, nodeIndex, eventName, event) {
31671
- return view.def.handleEvent(view, nodeIndex, eventName, event);
31672
- },
31467
+ handleEvent: function (view, nodeIndex, eventName, event) { return view.def.handleEvent(view, nodeIndex, eventName, event); },
31673
31468
  updateDirectives: function (view, checkType) { return view.def.updateDirectives(checkType === 0 /* CheckAndUpdate */ ? prodCheckAndUpdateNode : prodCheckNoChangesNode, view); },
31674
31469
  updateRenderer: function (view, checkType) { return view.def.updateRenderer(checkType === 0 /* CheckAndUpdate */ ? prodCheckAndUpdateNode : prodCheckNoChangesNode, view); },
31675
31470
  };
@@ -32404,13 +32199,6 @@
32404
32199
  return DebugRenderer2;
32405
32200
  }());
32406
32201
 
32407
- /**
32408
- * @license
32409
- * Copyright Google LLC All Rights Reserved.
32410
- *
32411
- * Use of this source code is governed by an MIT-style license that can be
32412
- * found in the LICENSE file at https://angular.io/license
32413
- */
32414
32202
  function overrideProvider(override) {
32415
32203
  initServicesIfNeeded();
32416
32204
  return Services.overrideProvider(override);