@angular/core 15.2.0-rc.0 → 16.0.0-next.0

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 (33) hide show
  1. package/esm2020/src/core.mjs +2 -1
  2. package/esm2020/src/core_reactivity_export.mjs +11 -0
  3. package/esm2020/src/core_reactivity_export_internal.mjs +9 -0
  4. package/esm2020/src/di/interface/defs.mjs +4 -5
  5. package/esm2020/src/di/provider_collection.mjs +2 -2
  6. package/esm2020/src/metadata/directives.mjs +1 -1
  7. package/esm2020/src/render/api_flags.mjs +1 -1
  8. package/esm2020/src/signals/index.mjs +15 -0
  9. package/esm2020/src/signals/src/api.mjs +46 -0
  10. package/esm2020/src/signals/src/computed.mjs +142 -0
  11. package/esm2020/src/signals/src/effect.mjs +69 -0
  12. package/esm2020/src/signals/src/graph.mjs +114 -0
  13. package/esm2020/src/signals/src/signal.mjs +78 -0
  14. package/esm2020/src/signals/src/untracked.mjs +26 -0
  15. package/esm2020/src/signals/src/watch.mjs +54 -0
  16. package/esm2020/src/signals/src/weak_ref.mjs +11 -0
  17. package/esm2020/src/version.mjs +1 -1
  18. package/esm2020/testing/src/logger.mjs +3 -3
  19. package/esm2020/testing/src/ng_zone_mock.mjs +3 -3
  20. package/fesm2015/core.mjs +483 -7
  21. package/fesm2015/core.mjs.map +1 -1
  22. package/fesm2015/testing.mjs +5 -6
  23. package/fesm2015/testing.mjs.map +1 -1
  24. package/fesm2020/core.mjs +481 -7
  25. package/fesm2020/core.mjs.map +1 -1
  26. package/fesm2020/testing.mjs +5 -6
  27. package/fesm2020/testing.mjs.map +1 -1
  28. package/index.d.ts +287 -3
  29. package/package.json +1 -1
  30. package/schematics/ng-generate/standalone-migration/bundle.js +608 -804
  31. package/schematics/ng-generate/standalone-migration/bundle.js.map +4 -4
  32. package/testing/index.d.ts +1 -1
  33. package/esm2020/src/view/index.mjs +0 -9
@@ -208,9 +208,6 @@ function isRooted(path3) {
208
208
  function relative(from, to) {
209
209
  return fs.relative(from, to);
210
210
  }
211
- function basename(filePath, extension) {
212
- return fs.basename(filePath, extension);
213
- }
214
211
  function isLocalRelativePath(relativePath) {
215
212
  return !isRooted(relativePath) && !relativePath.startsWith("..");
216
213
  }
@@ -16114,7 +16111,7 @@ function publishFacade(global2) {
16114
16111
  }
16115
16112
 
16116
16113
  // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/version.mjs
16117
- var VERSION2 = new Version("15.2.0-rc.0");
16114
+ var VERSION2 = new Version("16.0.0-next.0");
16118
16115
 
16119
16116
  // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/i18n/extractor_merger.mjs
16120
16117
  var _I18N_ATTR = "i18n";
@@ -17429,7 +17426,7 @@ var MINIMUM_PARTIAL_LINKER_VERSION = "12.0.0";
17429
17426
  function compileDeclareClassMetadata(metadata) {
17430
17427
  const definitionMap = new DefinitionMap();
17431
17428
  definitionMap.set("minVersion", literal(MINIMUM_PARTIAL_LINKER_VERSION));
17432
- definitionMap.set("version", literal("15.2.0-rc.0"));
17429
+ definitionMap.set("version", literal("16.0.0-next.0"));
17433
17430
  definitionMap.set("ngImport", importExpr(Identifiers.core));
17434
17431
  definitionMap.set("type", metadata.type);
17435
17432
  definitionMap.set("decorators", metadata.decorators);
@@ -17498,7 +17495,7 @@ function createDirectiveDefinitionMap(meta) {
17498
17495
  var _a;
17499
17496
  const definitionMap = new DefinitionMap();
17500
17497
  definitionMap.set("minVersion", literal(MINIMUM_PARTIAL_LINKER_VERSION2));
17501
- definitionMap.set("version", literal("15.2.0-rc.0"));
17498
+ definitionMap.set("version", literal("16.0.0-next.0"));
17502
17499
  definitionMap.set("type", meta.internalType);
17503
17500
  if (meta.isStandalone) {
17504
17501
  definitionMap.set("isStandalone", literal(meta.isStandalone));
@@ -17680,7 +17677,7 @@ var MINIMUM_PARTIAL_LINKER_VERSION3 = "12.0.0";
17680
17677
  function compileDeclareFactoryFunction(meta) {
17681
17678
  const definitionMap = new DefinitionMap();
17682
17679
  definitionMap.set("minVersion", literal(MINIMUM_PARTIAL_LINKER_VERSION3));
17683
- definitionMap.set("version", literal("15.2.0-rc.0"));
17680
+ definitionMap.set("version", literal("16.0.0-next.0"));
17684
17681
  definitionMap.set("ngImport", importExpr(Identifiers.core));
17685
17682
  definitionMap.set("type", meta.internalType);
17686
17683
  definitionMap.set("deps", compileDependencies(meta.deps));
@@ -17703,7 +17700,7 @@ function compileDeclareInjectableFromMetadata(meta) {
17703
17700
  function createInjectableDefinitionMap(meta) {
17704
17701
  const definitionMap = new DefinitionMap();
17705
17702
  definitionMap.set("minVersion", literal(MINIMUM_PARTIAL_LINKER_VERSION4));
17706
- definitionMap.set("version", literal("15.2.0-rc.0"));
17703
+ definitionMap.set("version", literal("16.0.0-next.0"));
17707
17704
  definitionMap.set("ngImport", importExpr(Identifiers.core));
17708
17705
  definitionMap.set("type", meta.internalType);
17709
17706
  if (meta.providedIn !== void 0) {
@@ -17741,7 +17738,7 @@ function compileDeclareInjectorFromMetadata(meta) {
17741
17738
  function createInjectorDefinitionMap(meta) {
17742
17739
  const definitionMap = new DefinitionMap();
17743
17740
  definitionMap.set("minVersion", literal(MINIMUM_PARTIAL_LINKER_VERSION5));
17744
- definitionMap.set("version", literal("15.2.0-rc.0"));
17741
+ definitionMap.set("version", literal("16.0.0-next.0"));
17745
17742
  definitionMap.set("ngImport", importExpr(Identifiers.core));
17746
17743
  definitionMap.set("type", meta.internalType);
17747
17744
  definitionMap.set("providers", meta.providers);
@@ -17762,7 +17759,7 @@ function compileDeclareNgModuleFromMetadata(meta) {
17762
17759
  function createNgModuleDefinitionMap(meta) {
17763
17760
  const definitionMap = new DefinitionMap();
17764
17761
  definitionMap.set("minVersion", literal(MINIMUM_PARTIAL_LINKER_VERSION6));
17765
- definitionMap.set("version", literal("15.2.0-rc.0"));
17762
+ definitionMap.set("version", literal("16.0.0-next.0"));
17766
17763
  definitionMap.set("ngImport", importExpr(Identifiers.core));
17767
17764
  definitionMap.set("type", meta.internalType);
17768
17765
  if (meta.bootstrap.length > 0) {
@@ -17797,7 +17794,7 @@ function compileDeclarePipeFromMetadata(meta) {
17797
17794
  function createPipeDefinitionMap(meta) {
17798
17795
  const definitionMap = new DefinitionMap();
17799
17796
  definitionMap.set("minVersion", literal(MINIMUM_PARTIAL_LINKER_VERSION7));
17800
- definitionMap.set("version", literal("15.2.0-rc.0"));
17797
+ definitionMap.set("version", literal("16.0.0-next.0"));
17801
17798
  definitionMap.set("ngImport", importExpr(Identifiers.core));
17802
17799
  definitionMap.set("type", meta.internalType);
17803
17800
  if (meta.isStandalone) {
@@ -17814,7 +17811,7 @@ function createPipeDefinitionMap(meta) {
17814
17811
  publishFacade(_global);
17815
17812
 
17816
17813
  // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/version.mjs
17817
- var VERSION3 = new Version("15.2.0-rc.0");
17814
+ var VERSION3 = new Version("16.0.0-next.0");
17818
17815
 
17819
17816
  // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/transformers/api.mjs
17820
17817
  var EmitFlags;
@@ -17832,7 +17829,7 @@ var EmitFlags;
17832
17829
  var import_typescript2 = __toESM(require("typescript"), 1);
17833
17830
 
17834
17831
  // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/program.mjs
17835
- var import_typescript97 = __toESM(require("typescript"), 1);
17832
+ var import_typescript95 = __toESM(require("typescript"), 1);
17836
17833
 
17837
17834
  // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/transformers/i18n.mjs
17838
17835
  var path = __toESM(require("path"), 1);
@@ -17936,7 +17933,7 @@ function verifySupportedTypeScriptVersion() {
17936
17933
  }
17937
17934
 
17938
17935
  // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/core/src/compiler.mjs
17939
- var import_typescript93 = __toESM(require("typescript"), 1);
17936
+ var import_typescript91 = __toESM(require("typescript"), 1);
17940
17937
 
17941
17938
  // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/di.mjs
17942
17939
  var import_typescript19 = __toESM(require("typescript"), 1);
@@ -19228,8 +19225,42 @@ function validateAndRewriteCoreSymbol(name) {
19228
19225
  return CORE_SUPPORTED_SYMBOLS.get(name);
19229
19226
  }
19230
19227
 
19231
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/default.mjs
19228
+ // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/patch_alias_reference_resolution.mjs
19232
19229
  var import_typescript14 = __toESM(require("typescript"), 1);
19230
+ var patchedReferencedAliasesSymbol = Symbol("patchedReferencedAliases");
19231
+ function loadIsReferencedAliasDeclarationPatch(context) {
19232
+ if (!isTransformationContextWithEmitResolver(context)) {
19233
+ throwIncompatibleTransformationContextError();
19234
+ }
19235
+ const emitResolver = context.getEmitResolver();
19236
+ const existingReferencedAliases = emitResolver[patchedReferencedAliasesSymbol];
19237
+ if (existingReferencedAliases !== void 0) {
19238
+ return existingReferencedAliases;
19239
+ }
19240
+ const originalIsReferencedAliasDeclaration = emitResolver.isReferencedAliasDeclaration;
19241
+ if (originalIsReferencedAliasDeclaration === void 0) {
19242
+ throwIncompatibleTransformationContextError();
19243
+ }
19244
+ const referencedAliases = /* @__PURE__ */ new Set();
19245
+ emitResolver.isReferencedAliasDeclaration = function(node, ...args) {
19246
+ if (isAliasImportDeclaration(node) && referencedAliases.has(node)) {
19247
+ return true;
19248
+ }
19249
+ return originalIsReferencedAliasDeclaration.call(emitResolver, node, ...args);
19250
+ };
19251
+ return emitResolver[patchedReferencedAliasesSymbol] = referencedAliases;
19252
+ }
19253
+ function isAliasImportDeclaration(node) {
19254
+ return import_typescript14.default.isImportSpecifier(node) || import_typescript14.default.isNamespaceImport(node) || import_typescript14.default.isImportClause(node);
19255
+ }
19256
+ function isTransformationContextWithEmitResolver(context) {
19257
+ return context.getEmitResolver !== void 0;
19258
+ }
19259
+ function throwIncompatibleTransformationContextError() {
19260
+ throw Error("Angular compiler is incompatible with this version of the TypeScript compiler.\n\nIf you recently updated TypeScript and this issue surfaces now, consider downgrading.\n\nPlease report an issue on the Angular repositories when this issue surfaces and you are using a supposedly compatible TypeScript version.");
19261
+ }
19262
+
19263
+ // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/default.mjs
19233
19264
  var DefaultImportDeclaration = Symbol("DefaultImportDeclaration");
19234
19265
  function attachDefaultImportDeclaration(expr, importDecl) {
19235
19266
  expr[DefaultImportDeclaration] = importDecl;
@@ -19243,34 +19274,31 @@ var DefaultImportTracker = class {
19243
19274
  this.sourceFileToUsedImports = /* @__PURE__ */ new Map();
19244
19275
  }
19245
19276
  recordUsedImport(importDecl) {
19246
- const sf = getSourceFile(importDecl);
19247
- if (!this.sourceFileToUsedImports.has(sf)) {
19248
- this.sourceFileToUsedImports.set(sf, /* @__PURE__ */ new Set());
19277
+ if (importDecl.importClause) {
19278
+ const sf = getSourceFile(importDecl);
19279
+ if (!this.sourceFileToUsedImports.has(sf.fileName)) {
19280
+ this.sourceFileToUsedImports.set(sf.fileName, /* @__PURE__ */ new Set());
19281
+ }
19282
+ this.sourceFileToUsedImports.get(sf.fileName).add(importDecl.importClause);
19249
19283
  }
19250
- this.sourceFileToUsedImports.get(sf).add(importDecl);
19251
19284
  }
19252
19285
  importPreservingTransformer() {
19253
19286
  return (context) => {
19254
- return (sf) => {
19255
- return this.transformSourceFile(sf);
19287
+ let clausesToPreserve = null;
19288
+ return (sourceFile) => {
19289
+ const clausesForFile = this.sourceFileToUsedImports.get(sourceFile.fileName);
19290
+ if (clausesForFile !== void 0) {
19291
+ for (const clause of clausesForFile) {
19292
+ if (clausesToPreserve === null) {
19293
+ clausesToPreserve = loadIsReferencedAliasDeclarationPatch(context);
19294
+ }
19295
+ clausesToPreserve.add(clause);
19296
+ }
19297
+ }
19298
+ return sourceFile;
19256
19299
  };
19257
19300
  };
19258
19301
  }
19259
- transformSourceFile(sf) {
19260
- const originalSf = import_typescript14.default.getOriginalNode(sf);
19261
- if (!this.sourceFileToUsedImports.has(originalSf)) {
19262
- return sf;
19263
- }
19264
- const importsToPreserve = this.sourceFileToUsedImports.get(originalSf);
19265
- const statements = sf.statements.map((stmt) => {
19266
- if (import_typescript14.default.isImportDeclaration(stmt) && importsToPreserve.has(stmt)) {
19267
- stmt = import_typescript14.default.getMutableClone(stmt);
19268
- }
19269
- return stmt;
19270
- });
19271
- this.sourceFileToUsedImports.delete(originalSf);
19272
- return import_typescript14.default.factory.updateSourceFile(sf, statements);
19273
- }
19274
19302
  };
19275
19303
 
19276
19304
  // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/references.mjs
@@ -22310,8 +22338,8 @@ function makeNotStandaloneDiagnostic(scopeReader, ref, rawExpr, kind) {
22310
22338
  let message = `The ${kind} '${ref.node.name.text}' appears in 'imports', but is not standalone and cannot be imported directly.`;
22311
22339
  let relatedInformation = void 0;
22312
22340
  if (scope !== null && scope.kind === ComponentScopeKind.NgModule) {
22313
- const isExported4 = scope.exported.dependencies.some((dep) => dep.ref.node === ref.node);
22314
- const relatedInfoMessageText = isExported4 ? `It can be imported using its '${scope.ngModule.name.text}' NgModule instead.` : `It's declared in the '${scope.ngModule.name.text}' NgModule, but is not exported. Consider exporting it and importing the NgModule instead.`;
22341
+ const isExported2 = scope.exported.dependencies.some((dep) => dep.ref.node === ref.node);
22342
+ const relatedInfoMessageText = isExported2 ? `It can be imported using its '${scope.ngModule.name.text}' NgModule instead.` : `It's declared in the '${scope.ngModule.name.text}' NgModule, but is not exported. Consider exporting it and importing the NgModule instead.`;
22315
22343
  relatedInformation = [makeRelatedInformation(scope.ngModule.name, relatedInfoMessageText)];
22316
22344
  } else {
22317
22345
  }
@@ -25176,7 +25204,7 @@ var NgModuleSymbol = class extends SemanticSymbol {
25176
25204
  }
25177
25205
  };
25178
25206
  var NgModuleDecoratorHandler = class {
25179
- constructor(reflector, evaluator, metaReader, metaRegistry, scopeRegistry, referencesRegistry, isCore, refEmitter, factoryTracker, annotateForClosureCompiler, onlyPublishPublicTypings, injectableRegistry, perf) {
25207
+ constructor(reflector, evaluator, metaReader, metaRegistry, scopeRegistry, referencesRegistry, isCore, refEmitter, annotateForClosureCompiler, onlyPublishPublicTypings, injectableRegistry, perf) {
25180
25208
  this.reflector = reflector;
25181
25209
  this.evaluator = evaluator;
25182
25210
  this.metaReader = metaReader;
@@ -25185,7 +25213,6 @@ var NgModuleDecoratorHandler = class {
25185
25213
  this.referencesRegistry = referencesRegistry;
25186
25214
  this.isCore = isCore;
25187
25215
  this.refEmitter = refEmitter;
25188
- this.factoryTracker = factoryTracker;
25189
25216
  this.annotateForClosureCompiler = annotateForClosureCompiler;
25190
25217
  this.onlyPublishPublicTypings = onlyPublishPublicTypings;
25191
25218
  this.injectableRegistry = injectableRegistry;
@@ -25409,11 +25436,6 @@ var NgModuleDecoratorHandler = class {
25409
25436
  rawExports: analysis.rawExports,
25410
25437
  decorator: analysis.decorator
25411
25438
  });
25412
- if (this.factoryTracker !== null) {
25413
- this.factoryTracker.track(node.getSourceFile(), {
25414
- name: analysis.factorySymbolName
25415
- });
25416
- }
25417
25439
  this.injectableRegistry.registerInjectable(node, {
25418
25440
  ctorDeps: analysis.fac.deps
25419
25441
  });
@@ -27426,7 +27448,7 @@ var UpdateMode;
27426
27448
  })(UpdateMode || (UpdateMode = {}));
27427
27449
 
27428
27450
  // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/program_driver/src/ts_create_program_driver.mjs
27429
- var import_typescript65 = __toESM(require("typescript"), 1);
27451
+ var import_typescript63 = __toESM(require("typescript"), 1);
27430
27452
 
27431
27453
  // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/shims/src/adapter.mjs
27432
27454
  var import_typescript60 = __toESM(require("typescript"), 1);
@@ -27496,15 +27518,6 @@ var TS_EXTENSIONS = /\.tsx?$/i;
27496
27518
  function makeShimFileName(fileName, suffix) {
27497
27519
  return absoluteFrom(fileName.replace(TS_EXTENSIONS, suffix));
27498
27520
  }
27499
- function generatedModuleName(originalModuleName, originalFileName, genSuffix) {
27500
- let moduleName;
27501
- if (originalFileName.endsWith("/index.ts")) {
27502
- moduleName = originalModuleName + "/index" + genSuffix;
27503
- } else {
27504
- moduleName = originalModuleName + genSuffix;
27505
- }
27506
- return moduleName;
27507
- }
27508
27521
 
27509
27522
  // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/shims/src/adapter.mjs
27510
27523
  var ShimAdapter = class {
@@ -27601,166 +27614,6 @@ var ShimAdapter = class {
27601
27614
  }
27602
27615
  };
27603
27616
 
27604
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/shims/src/factory_generator.mjs
27605
- var import_typescript62 = __toESM(require("typescript"), 1);
27606
- var TS_DTS_SUFFIX = /(\.d)?\.ts$/;
27607
- var STRIP_NG_FACTORY = /(.*)NgFactory$/;
27608
- var FactoryGenerator = class {
27609
- constructor() {
27610
- this.sourceInfo = /* @__PURE__ */ new Map();
27611
- this.sourceToFactorySymbols = /* @__PURE__ */ new Map();
27612
- this.shouldEmit = true;
27613
- this.extensionPrefix = "ngfactory";
27614
- }
27615
- generateShimForFile(sf, genFilePath) {
27616
- const absoluteSfPath = absoluteFromSourceFile(sf);
27617
- const relativePathToSource = "./" + basename(sf.fileName).replace(TS_DTS_SUFFIX, "");
27618
- const symbolNames = sf.statements.filter(import_typescript62.default.isClassDeclaration).filter((decl) => isExported(decl) && import_typescript62.default.getDecorators(decl) !== void 0 && decl.name !== void 0).map((decl) => decl.name.text);
27619
- let sourceText = "";
27620
- const leadingComment2 = getFileoverviewComment(sf);
27621
- if (leadingComment2 !== null) {
27622
- sourceText = leadingComment2 + "\n\n";
27623
- }
27624
- if (symbolNames.length > 0) {
27625
- const varLines = symbolNames.map((name) => `export const ${name}NgFactory: i0.\u0275NgModuleFactory<any> = new i0.\u0275NgModuleFactory(${name});`);
27626
- sourceText += [
27627
- `import * as i0 from '@angular/core';`,
27628
- `import {${symbolNames.join(", ")}} from '${relativePathToSource}';`,
27629
- ...varLines
27630
- ].join("\n");
27631
- }
27632
- sourceText += "\nexport const \u0275NonEmptyModule = true;";
27633
- const genFile = import_typescript62.default.createSourceFile(genFilePath, sourceText, sf.languageVersion, true, import_typescript62.default.ScriptKind.TS);
27634
- if (sf.moduleName !== void 0) {
27635
- genFile.moduleName = generatedModuleName(sf.moduleName, sf.fileName, ".ngfactory");
27636
- }
27637
- const moduleSymbols = /* @__PURE__ */ new Map();
27638
- this.sourceToFactorySymbols.set(absoluteSfPath, moduleSymbols);
27639
- this.sourceInfo.set(genFilePath, {
27640
- sourceFilePath: absoluteSfPath,
27641
- moduleSymbols
27642
- });
27643
- return genFile;
27644
- }
27645
- track(sf, moduleInfo) {
27646
- if (this.sourceToFactorySymbols.has(sf.fileName)) {
27647
- this.sourceToFactorySymbols.get(sf.fileName).set(moduleInfo.name, moduleInfo);
27648
- }
27649
- }
27650
- };
27651
- function isExported(decl) {
27652
- const modifiers = import_typescript62.default.canHaveModifiers(decl) ? import_typescript62.default.getModifiers(decl) : void 0;
27653
- return modifiers !== void 0 && modifiers.some((mod) => mod.kind == import_typescript62.default.SyntaxKind.ExportKeyword);
27654
- }
27655
- function generatedFactoryTransform(factoryMap, importRewriter) {
27656
- return (context) => {
27657
- return (file) => {
27658
- return transformFactorySourceFile(factoryMap, context, importRewriter, file);
27659
- };
27660
- };
27661
- }
27662
- function transformFactorySourceFile(factoryMap, context, importRewriter, file) {
27663
- if (!factoryMap.has(file.fileName)) {
27664
- return file;
27665
- }
27666
- const { moduleSymbols, sourceFilePath } = factoryMap.get(file.fileName);
27667
- const transformedStatements = [];
27668
- let nonEmptyExport = null;
27669
- const coreImportIdentifiers = /* @__PURE__ */ new Set();
27670
- for (const stmt of file.statements) {
27671
- if (import_typescript62.default.isImportDeclaration(stmt) && import_typescript62.default.isStringLiteral(stmt.moduleSpecifier) && stmt.moduleSpecifier.text === "@angular/core") {
27672
- const rewrittenModuleSpecifier = importRewriter.rewriteSpecifier("@angular/core", sourceFilePath);
27673
- if (rewrittenModuleSpecifier !== stmt.moduleSpecifier.text) {
27674
- transformedStatements.push(import_typescript62.default.factory.updateImportDeclaration(stmt, import_typescript62.default.getModifiers(stmt), stmt.importClause, import_typescript62.default.factory.createStringLiteral(rewrittenModuleSpecifier), void 0));
27675
- if (stmt.importClause !== void 0 && stmt.importClause.namedBindings !== void 0 && import_typescript62.default.isNamespaceImport(stmt.importClause.namedBindings)) {
27676
- coreImportIdentifiers.add(stmt.importClause.namedBindings.name.text);
27677
- }
27678
- } else {
27679
- transformedStatements.push(stmt);
27680
- }
27681
- } else if (import_typescript62.default.isVariableStatement(stmt) && stmt.declarationList.declarations.length === 1) {
27682
- const decl = stmt.declarationList.declarations[0];
27683
- if (import_typescript62.default.isIdentifier(decl.name)) {
27684
- if (decl.name.text === "\u0275NonEmptyModule") {
27685
- nonEmptyExport = stmt;
27686
- continue;
27687
- }
27688
- const match = STRIP_NG_FACTORY.exec(decl.name.text);
27689
- const module3 = match ? moduleSymbols.get(match[1]) : null;
27690
- if (module3) {
27691
- transformedStatements.push(updateInitializers(stmt, (init) => init ? wrapInNoSideEffects(init) : void 0));
27692
- }
27693
- } else {
27694
- transformedStatements.push(stmt);
27695
- }
27696
- } else {
27697
- transformedStatements.push(stmt);
27698
- }
27699
- }
27700
- if (!transformedStatements.some(import_typescript62.default.isVariableStatement) && nonEmptyExport !== null) {
27701
- transformedStatements.push(nonEmptyExport);
27702
- }
27703
- file = import_typescript62.default.factory.updateSourceFile(file, transformedStatements);
27704
- if (coreImportIdentifiers.size > 0) {
27705
- const visit2 = (node) => {
27706
- node = import_typescript62.default.visitEachChild(node, (child) => visit2(child), context);
27707
- if (import_typescript62.default.isPropertyAccessExpression(node) && import_typescript62.default.isIdentifier(node.expression) && coreImportIdentifiers.has(node.expression.text)) {
27708
- const rewrittenSymbol = importRewriter.rewriteSymbol(node.name.text, "@angular/core");
27709
- if (rewrittenSymbol !== node.name.text) {
27710
- const updated = import_typescript62.default.factory.updatePropertyAccessExpression(node, node.expression, import_typescript62.default.factory.createIdentifier(rewrittenSymbol));
27711
- node = updated;
27712
- }
27713
- }
27714
- return node;
27715
- };
27716
- file = visit2(file);
27717
- }
27718
- return file;
27719
- }
27720
- function getFileoverviewComment(sourceFile) {
27721
- const text = sourceFile.getFullText();
27722
- const trivia = text.substring(0, sourceFile.getStart());
27723
- const leadingComments = import_typescript62.default.getLeadingCommentRanges(trivia, 0);
27724
- if (!leadingComments || leadingComments.length === 0) {
27725
- return null;
27726
- }
27727
- const comment = leadingComments[0];
27728
- if (comment.kind !== import_typescript62.default.SyntaxKind.MultiLineCommentTrivia) {
27729
- return null;
27730
- }
27731
- if (text.substring(comment.end, comment.end + 2) !== "\n\n") {
27732
- return null;
27733
- }
27734
- const commentText = text.substring(comment.pos, comment.end);
27735
- if (commentText.indexOf("@license") !== -1) {
27736
- return null;
27737
- }
27738
- return commentText;
27739
- }
27740
- function wrapInNoSideEffects(expr) {
27741
- const noSideEffects = import_typescript62.default.factory.createPropertyAccessExpression(import_typescript62.default.factory.createIdentifier("i0"), "\u0275noSideEffects");
27742
- return import_typescript62.default.factory.createCallExpression(
27743
- noSideEffects,
27744
- [],
27745
- [
27746
- import_typescript62.default.factory.createFunctionExpression(
27747
- [],
27748
- void 0,
27749
- void 0,
27750
- [],
27751
- [],
27752
- void 0,
27753
- import_typescript62.default.factory.createBlock([
27754
- import_typescript62.default.factory.createReturnStatement(expr)
27755
- ])
27756
- )
27757
- ]
27758
- );
27759
- }
27760
- function updateInitializers(stmt, update) {
27761
- return import_typescript62.default.factory.updateVariableStatement(stmt, import_typescript62.default.getModifiers(stmt), import_typescript62.default.factory.updateVariableDeclarationList(stmt.declarationList, stmt.declarationList.declarations.map((decl) => import_typescript62.default.factory.updateVariableDeclaration(decl, decl.name, decl.exclamationToken, decl.type, update(decl.initializer)))));
27762
- }
27763
-
27764
27617
  // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/shims/src/reference_tagger.mjs
27765
27618
  var ShimReferenceTagger = class {
27766
27619
  constructor(shimExtensions) {
@@ -27795,47 +27648,6 @@ var ShimReferenceTagger = class {
27795
27648
  }
27796
27649
  };
27797
27650
 
27798
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/shims/src/summary_generator.mjs
27799
- var import_typescript64 = __toESM(require("typescript"), 1);
27800
- var SummaryGenerator = class {
27801
- constructor() {
27802
- this.shouldEmit = true;
27803
- this.extensionPrefix = "ngsummary";
27804
- }
27805
- generateShimForFile(sf, genFilePath) {
27806
- const symbolNames = [];
27807
- for (const stmt of sf.statements) {
27808
- if (import_typescript64.default.isClassDeclaration(stmt)) {
27809
- if (!isExported2(stmt) || stmt.name === void 0 || import_typescript64.default.getDecorators(stmt) === void 0) {
27810
- continue;
27811
- }
27812
- symbolNames.push(stmt.name.text);
27813
- } else if (import_typescript64.default.isExportDeclaration(stmt)) {
27814
- if (stmt.exportClause === void 0 || stmt.moduleSpecifier !== void 0 || !import_typescript64.default.isNamedExports(stmt.exportClause)) {
27815
- continue;
27816
- }
27817
- for (const specifier of stmt.exportClause.elements) {
27818
- symbolNames.push(specifier.name.text);
27819
- }
27820
- }
27821
- }
27822
- const varLines = symbolNames.map((name) => `export const ${name}NgSummary: any = null;`);
27823
- if (varLines.length === 0) {
27824
- varLines.push(`export const \u0275empty = null;`);
27825
- }
27826
- const sourceText = varLines.join("\n");
27827
- const genFile = import_typescript64.default.createSourceFile(genFilePath, sourceText, sf.languageVersion, true, import_typescript64.default.ScriptKind.TS);
27828
- if (sf.moduleName !== void 0) {
27829
- genFile.moduleName = generatedModuleName(sf.moduleName, sf.fileName, ".ngsummary");
27830
- }
27831
- return genFile;
27832
- }
27833
- };
27834
- function isExported2(decl) {
27835
- const modifiers = import_typescript64.default.canHaveModifiers(decl) ? import_typescript64.default.getModifiers(decl) : void 0;
27836
- return modifiers !== void 0 && modifiers.some((mod) => mod.kind == import_typescript64.default.SyntaxKind.ExportKeyword) || false;
27837
- }
27838
-
27839
27651
  // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/program_driver/src/ts_create_program_driver.mjs
27840
27652
  var DelegatingCompilerHost = class {
27841
27653
  constructor(delegate) {
@@ -27926,7 +27738,7 @@ var TsCreateProgramDriver = class {
27926
27738
  this.sfMap.clear();
27927
27739
  }
27928
27740
  for (const [filePath, { newText, originalFile }] of contents.entries()) {
27929
- const sf = import_typescript65.default.createSourceFile(filePath, newText, import_typescript65.default.ScriptTarget.Latest, true);
27741
+ const sf = import_typescript63.default.createSourceFile(filePath, newText, import_typescript63.default.ScriptTarget.Latest, true);
27930
27742
  if (originalFile !== null) {
27931
27743
  sf[NgOriginalFile] = originalFile;
27932
27744
  }
@@ -27935,7 +27747,7 @@ var TsCreateProgramDriver = class {
27935
27747
  const host = new UpdatedProgramHost(this.sfMap, this.originalProgram, this.originalHost, this.shimExtensionPrefixes);
27936
27748
  const oldProgram = this.program;
27937
27749
  retagAllTsFiles(oldProgram);
27938
- this.program = import_typescript65.default.createProgram({
27750
+ this.program = import_typescript63.default.createProgram({
27939
27751
  host,
27940
27752
  rootNames: this.program.getRootFileNames(),
27941
27753
  options: this.options,
@@ -28634,7 +28446,7 @@ var NgModuleIndexImpl = class {
28634
28446
  };
28635
28447
 
28636
28448
  // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/resource/src/loader.mjs
28637
- var import_typescript68 = __toESM(require("typescript"), 1);
28449
+ var import_typescript66 = __toESM(require("typescript"), 1);
28638
28450
  var CSS_PREPROCESSOR_EXT = /(\.scss|\.sass|\.less|\.styl)$/;
28639
28451
  var RESOURCE_MARKER = ".$ngresource$";
28640
28452
  var RESOURCE_MARKER_TS = RESOURCE_MARKER + ".ts";
@@ -28746,7 +28558,7 @@ var AdapterResourceLoader = class {
28746
28558
  return this.adapter.rootDirs.map((rootDir) => join(rootDir, segment));
28747
28559
  }
28748
28560
  getResolvedCandidateLocations(url, fromFile) {
28749
- const failedLookup = import_typescript68.default.resolveModuleName(url + RESOURCE_MARKER, fromFile, this.options, this.lookupResolutionHost);
28561
+ const failedLookup = import_typescript66.default.resolveModuleName(url + RESOURCE_MARKER, fromFile, this.options, this.lookupResolutionHost);
28750
28562
  if (failedLookup.failedLookupLocations === void 0) {
28751
28563
  throw new Error(`Internal error: expected to find failedLookupLocations during resolution of resource '${url}' in context of ${fromFile}`);
28752
28564
  }
@@ -28902,7 +28714,7 @@ var SymbolKind;
28902
28714
  })(SymbolKind || (SymbolKind = {}));
28903
28715
 
28904
28716
  // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/diagnostics/src/diagnostic.mjs
28905
- var import_typescript69 = __toESM(require("typescript"), 1);
28717
+ var import_typescript67 = __toESM(require("typescript"), 1);
28906
28718
  function makeTemplateDiagnostic(templateId, mapping, span, category, code, messageText, relatedMessages) {
28907
28719
  var _a;
28908
28720
  if (mapping.type === "direct") {
@@ -28911,7 +28723,7 @@ function makeTemplateDiagnostic(templateId, mapping, span, category, code, messa
28911
28723
  relatedInformation = [];
28912
28724
  for (const relatedMessage of relatedMessages) {
28913
28725
  relatedInformation.push({
28914
- category: import_typescript69.default.DiagnosticCategory.Message,
28726
+ category: import_typescript67.default.DiagnosticCategory.Message,
28915
28727
  code: 0,
28916
28728
  file: relatedMessage.sourceFile,
28917
28729
  start: relatedMessage.start,
@@ -28940,7 +28752,7 @@ function makeTemplateDiagnostic(templateId, mapping, span, category, code, messa
28940
28752
  if (relatedMessages !== void 0) {
28941
28753
  for (const relatedMessage of relatedMessages) {
28942
28754
  relatedInformation.push({
28943
- category: import_typescript69.default.DiagnosticCategory.Message,
28755
+ category: import_typescript67.default.DiagnosticCategory.Message,
28944
28756
  code: 0,
28945
28757
  file: relatedMessage.sourceFile,
28946
28758
  start: relatedMessage.start,
@@ -28970,7 +28782,7 @@ function makeTemplateDiagnostic(templateId, mapping, span, category, code, messa
28970
28782
  };
28971
28783
  }
28972
28784
  relatedInformation.push({
28973
- category: import_typescript69.default.DiagnosticCategory.Message,
28785
+ category: import_typescript67.default.DiagnosticCategory.Message,
28974
28786
  code: 0,
28975
28787
  file: componentSf,
28976
28788
  start: mapping.node.getStart(),
@@ -29005,7 +28817,7 @@ function parseTemplateAsSourceFile(fileName, template) {
29005
28817
  if (parseTemplateAsSourceFileForTest !== null) {
29006
28818
  return parseTemplateAsSourceFileForTest(fileName, template);
29007
28819
  }
29008
- return import_typescript69.default.createSourceFile(fileName, template, import_typescript69.default.ScriptTarget.Latest, false, import_typescript69.default.ScriptKind.JSX);
28820
+ return import_typescript67.default.createSourceFile(fileName, template, import_typescript67.default.ScriptTarget.Latest, false, import_typescript67.default.ScriptKind.JSX);
29009
28821
  }
29010
28822
 
29011
28823
  // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/diagnostics/src/id.mjs
@@ -29026,14 +28838,14 @@ function allocateTemplateId(sf) {
29026
28838
  }
29027
28839
 
29028
28840
  // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/completion.mjs
29029
- var import_typescript71 = __toESM(require("typescript"), 1);
28841
+ var import_typescript69 = __toESM(require("typescript"), 1);
29030
28842
 
29031
28843
  // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/comments.mjs
29032
- var import_typescript70 = __toESM(require("typescript"), 1);
28844
+ var import_typescript68 = __toESM(require("typescript"), 1);
29033
28845
  var parseSpanComment = /^(\d+),(\d+)$/;
29034
28846
  function readSpanComment(node, sourceFile = node.getSourceFile()) {
29035
- return import_typescript70.default.forEachTrailingCommentRange(sourceFile.text, node.getEnd(), (pos, end, kind) => {
29036
- if (kind !== import_typescript70.default.SyntaxKind.MultiLineCommentTrivia) {
28847
+ return import_typescript68.default.forEachTrailingCommentRange(sourceFile.text, node.getEnd(), (pos, end, kind) => {
28848
+ if (kind !== import_typescript68.default.SyntaxKind.MultiLineCommentTrivia) {
29037
28849
  return null;
29038
28850
  }
29039
28851
  const commentText = sourceFile.text.substring(pos + 2, end - 2);
@@ -29056,25 +28868,25 @@ var ExpressionIdentifier;
29056
28868
  ExpressionIdentifier2["EVENT_PARAMETER"] = "EP";
29057
28869
  })(ExpressionIdentifier || (ExpressionIdentifier = {}));
29058
28870
  function addExpressionIdentifier(node, identifier) {
29059
- import_typescript70.default.addSyntheticTrailingComment(
28871
+ import_typescript68.default.addSyntheticTrailingComment(
29060
28872
  node,
29061
- import_typescript70.default.SyntaxKind.MultiLineCommentTrivia,
28873
+ import_typescript68.default.SyntaxKind.MultiLineCommentTrivia,
29062
28874
  `${CommentTriviaType.EXPRESSION_TYPE_IDENTIFIER}:${identifier}`,
29063
28875
  false
29064
28876
  );
29065
28877
  }
29066
28878
  var IGNORE_FOR_DIAGNOSTICS_MARKER = `${CommentTriviaType.DIAGNOSTIC}:ignore`;
29067
28879
  function markIgnoreDiagnostics(node) {
29068
- import_typescript70.default.addSyntheticTrailingComment(
28880
+ import_typescript68.default.addSyntheticTrailingComment(
29069
28881
  node,
29070
- import_typescript70.default.SyntaxKind.MultiLineCommentTrivia,
28882
+ import_typescript68.default.SyntaxKind.MultiLineCommentTrivia,
29071
28883
  IGNORE_FOR_DIAGNOSTICS_MARKER,
29072
28884
  false
29073
28885
  );
29074
28886
  }
29075
28887
  function hasIgnoreForDiagnosticsMarker(node, sourceFile) {
29076
- return import_typescript70.default.forEachTrailingCommentRange(sourceFile.text, node.getEnd(), (pos, end, kind) => {
29077
- if (kind !== import_typescript70.default.SyntaxKind.MultiLineCommentTrivia) {
28888
+ return import_typescript68.default.forEachTrailingCommentRange(sourceFile.text, node.getEnd(), (pos, end, kind) => {
28889
+ if (kind !== import_typescript68.default.SyntaxKind.MultiLineCommentTrivia) {
29078
28890
  return null;
29079
28891
  }
29080
28892
  const commentText = sourceFile.text.substring(pos + 2, end - 2);
@@ -29148,8 +28960,8 @@ function findAllMatchingNodes(tcb, opts) {
29148
28960
  return results;
29149
28961
  }
29150
28962
  function hasExpressionIdentifier(sourceFile, node, identifier) {
29151
- return import_typescript70.default.forEachTrailingCommentRange(sourceFile.text, node.getEnd(), (pos, end, kind) => {
29152
- if (kind !== import_typescript70.default.SyntaxKind.MultiLineCommentTrivia) {
28963
+ return import_typescript68.default.forEachTrailingCommentRange(sourceFile.text, node.getEnd(), (pos, end, kind) => {
28964
+ if (kind !== import_typescript68.default.SyntaxKind.MultiLineCommentTrivia) {
29153
28965
  return false;
29154
28966
  }
29155
28967
  const commentText = sourceFile.text.substring(pos + 2, end - 2);
@@ -29167,7 +28979,7 @@ var CompletionEngine = class {
29167
28979
  this.templateContextCache = /* @__PURE__ */ new Map();
29168
28980
  this.expressionCompletionCache = /* @__PURE__ */ new Map();
29169
28981
  const globalRead = findFirstMatchingNode(this.tcb, {
29170
- filter: import_typescript71.default.isPropertyAccessExpression,
28982
+ filter: import_typescript69.default.isPropertyAccessExpression,
29171
28983
  withExpressionIdentifier: ExpressionIdentifier.COMPONENT_COMPLETION
29172
28984
  });
29173
28985
  if (globalRead !== null) {
@@ -29191,7 +29003,7 @@ var CompletionEngine = class {
29191
29003
  let nodeContext = null;
29192
29004
  if (node instanceof EmptyExpr) {
29193
29005
  const nodeLocation = findFirstMatchingNode(this.tcb, {
29194
- filter: import_typescript71.default.isIdentifier,
29006
+ filter: import_typescript69.default.isIdentifier,
29195
29007
  withSpan: node.sourceSpan
29196
29008
  });
29197
29009
  if (nodeLocation !== null) {
@@ -29204,7 +29016,7 @@ var CompletionEngine = class {
29204
29016
  }
29205
29017
  if (node instanceof PropertyRead && node.receiver instanceof ImplicitReceiver) {
29206
29018
  const nodeLocation = findFirstMatchingNode(this.tcb, {
29207
- filter: import_typescript71.default.isPropertyAccessExpression,
29019
+ filter: import_typescript69.default.isPropertyAccessExpression,
29208
29020
  withSpan: node.sourceSpan
29209
29021
  });
29210
29022
  if (nodeLocation) {
@@ -29228,21 +29040,21 @@ var CompletionEngine = class {
29228
29040
  let tsExpr = null;
29229
29041
  if (expr instanceof PropertyRead || expr instanceof PropertyWrite) {
29230
29042
  tsExpr = findFirstMatchingNode(this.tcb, {
29231
- filter: import_typescript71.default.isPropertyAccessExpression,
29043
+ filter: import_typescript69.default.isPropertyAccessExpression,
29232
29044
  withSpan: expr.nameSpan
29233
29045
  });
29234
29046
  } else if (expr instanceof SafePropertyRead) {
29235
29047
  const ternaryExpr = findFirstMatchingNode(this.tcb, {
29236
- filter: import_typescript71.default.isParenthesizedExpression,
29048
+ filter: import_typescript69.default.isParenthesizedExpression,
29237
29049
  withSpan: expr.sourceSpan
29238
29050
  });
29239
- if (ternaryExpr === null || !import_typescript71.default.isConditionalExpression(ternaryExpr.expression)) {
29051
+ if (ternaryExpr === null || !import_typescript69.default.isConditionalExpression(ternaryExpr.expression)) {
29240
29052
  return null;
29241
29053
  }
29242
29054
  const whenTrue = ternaryExpr.expression.whenTrue;
29243
- if (import_typescript71.default.isPropertyAccessExpression(whenTrue)) {
29055
+ if (import_typescript69.default.isPropertyAccessExpression(whenTrue)) {
29244
29056
  tsExpr = whenTrue;
29245
- } else if (import_typescript71.default.isCallExpression(whenTrue) && import_typescript71.default.isPropertyAccessExpression(whenTrue.expression)) {
29057
+ } else if (import_typescript69.default.isCallExpression(whenTrue) && import_typescript69.default.isPropertyAccessExpression(whenTrue.expression)) {
29246
29058
  tsExpr = whenTrue.expression;
29247
29059
  }
29248
29060
  }
@@ -29264,15 +29076,15 @@ var CompletionEngine = class {
29264
29076
  let tsExpr = null;
29265
29077
  if (expr instanceof TextAttribute) {
29266
29078
  const strNode = findFirstMatchingNode(this.tcb, {
29267
- filter: import_typescript71.default.isParenthesizedExpression,
29079
+ filter: import_typescript69.default.isParenthesizedExpression,
29268
29080
  withSpan: expr.sourceSpan
29269
29081
  });
29270
- if (strNode !== null && import_typescript71.default.isStringLiteral(strNode.expression)) {
29082
+ if (strNode !== null && import_typescript69.default.isStringLiteral(strNode.expression)) {
29271
29083
  tsExpr = strNode.expression;
29272
29084
  }
29273
29085
  } else {
29274
29086
  tsExpr = findFirstMatchingNode(this.tcb, {
29275
- filter: (n) => import_typescript71.default.isStringLiteral(n) || import_typescript71.default.isNumericLiteral(n),
29087
+ filter: (n) => import_typescript69.default.isStringLiteral(n) || import_typescript69.default.isNumericLiteral(n),
29276
29088
  withSpan: expr.sourceSpan
29277
29089
  });
29278
29090
  }
@@ -29280,7 +29092,7 @@ var CompletionEngine = class {
29280
29092
  return null;
29281
29093
  }
29282
29094
  let positionInShimFile = tsExpr.getEnd();
29283
- if (import_typescript71.default.isStringLiteral(tsExpr)) {
29095
+ if (import_typescript69.default.isStringLiteral(tsExpr)) {
29284
29096
  positionInShimFile -= 1;
29285
29097
  }
29286
29098
  const res = {
@@ -29315,10 +29127,10 @@ var CompletionEngine = class {
29315
29127
  };
29316
29128
 
29317
29129
  // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/context.mjs
29318
- var import_typescript86 = __toESM(require("typescript"), 1);
29130
+ var import_typescript84 = __toESM(require("typescript"), 1);
29319
29131
 
29320
29132
  // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/dom.mjs
29321
- var import_typescript72 = __toESM(require("typescript"), 1);
29133
+ var import_typescript70 = __toESM(require("typescript"), 1);
29322
29134
  var REGISTRY = new DomElementSchemaRegistry();
29323
29135
  var REMOVE_XHTML_REGEX = /^:xhtml:/;
29324
29136
  var RegistryDomSchemaChecker = class {
@@ -29343,7 +29155,7 @@ var RegistryDomSchemaChecker = class {
29343
29155
  } else {
29344
29156
  errorMsg += `2. To allow any element add 'NO_ERRORS_SCHEMA' to the ${schemas2} of this component.`;
29345
29157
  }
29346
- const diag = makeTemplateDiagnostic(id, mapping, element.startSourceSpan, import_typescript72.default.DiagnosticCategory.Error, ngErrorCode(ErrorCode.SCHEMA_INVALID_ELEMENT), errorMsg);
29158
+ const diag = makeTemplateDiagnostic(id, mapping, element.startSourceSpan, import_typescript70.default.DiagnosticCategory.Error, ngErrorCode(ErrorCode.SCHEMA_INVALID_ELEMENT), errorMsg);
29347
29159
  this._diagnostics.push(diag);
29348
29160
  }
29349
29161
  }
@@ -29363,100 +29175,100 @@ var RegistryDomSchemaChecker = class {
29363
29175
  2. If '${element.name}' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the ${schemas2} of this component to suppress this message.
29364
29176
  3. To allow any property add 'NO_ERRORS_SCHEMA' to the ${schemas2} of this component.`;
29365
29177
  }
29366
- const diag = makeTemplateDiagnostic(id, mapping, span, import_typescript72.default.DiagnosticCategory.Error, ngErrorCode(ErrorCode.SCHEMA_INVALID_ATTRIBUTE), errorMsg);
29178
+ const diag = makeTemplateDiagnostic(id, mapping, span, import_typescript70.default.DiagnosticCategory.Error, ngErrorCode(ErrorCode.SCHEMA_INVALID_ATTRIBUTE), errorMsg);
29367
29179
  this._diagnostics.push(diag);
29368
29180
  }
29369
29181
  }
29370
29182
  };
29371
29183
 
29372
29184
  // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/environment.mjs
29373
- var import_typescript79 = __toESM(require("typescript"), 1);
29185
+ var import_typescript77 = __toESM(require("typescript"), 1);
29374
29186
 
29375
29187
  // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/ts_util.mjs
29376
- var import_typescript73 = __toESM(require("typescript"), 1);
29188
+ var import_typescript71 = __toESM(require("typescript"), 1);
29377
29189
  var SAFE_TO_CAST_WITHOUT_PARENS = /* @__PURE__ */ new Set([
29378
- import_typescript73.default.SyntaxKind.ParenthesizedExpression,
29379
- import_typescript73.default.SyntaxKind.Identifier,
29380
- import_typescript73.default.SyntaxKind.CallExpression,
29381
- import_typescript73.default.SyntaxKind.NonNullExpression,
29382
- import_typescript73.default.SyntaxKind.ElementAccessExpression,
29383
- import_typescript73.default.SyntaxKind.PropertyAccessExpression,
29384
- import_typescript73.default.SyntaxKind.ArrayLiteralExpression,
29385
- import_typescript73.default.SyntaxKind.ObjectLiteralExpression,
29386
- import_typescript73.default.SyntaxKind.StringLiteral,
29387
- import_typescript73.default.SyntaxKind.NumericLiteral,
29388
- import_typescript73.default.SyntaxKind.TrueKeyword,
29389
- import_typescript73.default.SyntaxKind.FalseKeyword,
29390
- import_typescript73.default.SyntaxKind.NullKeyword,
29391
- import_typescript73.default.SyntaxKind.UndefinedKeyword
29190
+ import_typescript71.default.SyntaxKind.ParenthesizedExpression,
29191
+ import_typescript71.default.SyntaxKind.Identifier,
29192
+ import_typescript71.default.SyntaxKind.CallExpression,
29193
+ import_typescript71.default.SyntaxKind.NonNullExpression,
29194
+ import_typescript71.default.SyntaxKind.ElementAccessExpression,
29195
+ import_typescript71.default.SyntaxKind.PropertyAccessExpression,
29196
+ import_typescript71.default.SyntaxKind.ArrayLiteralExpression,
29197
+ import_typescript71.default.SyntaxKind.ObjectLiteralExpression,
29198
+ import_typescript71.default.SyntaxKind.StringLiteral,
29199
+ import_typescript71.default.SyntaxKind.NumericLiteral,
29200
+ import_typescript71.default.SyntaxKind.TrueKeyword,
29201
+ import_typescript71.default.SyntaxKind.FalseKeyword,
29202
+ import_typescript71.default.SyntaxKind.NullKeyword,
29203
+ import_typescript71.default.SyntaxKind.UndefinedKeyword
29392
29204
  ]);
29393
29205
  function tsCastToAny(expr) {
29394
29206
  if (!SAFE_TO_CAST_WITHOUT_PARENS.has(expr.kind)) {
29395
- expr = import_typescript73.default.factory.createParenthesizedExpression(expr);
29207
+ expr = import_typescript71.default.factory.createParenthesizedExpression(expr);
29396
29208
  }
29397
- return import_typescript73.default.factory.createParenthesizedExpression(import_typescript73.default.factory.createAsExpression(expr, import_typescript73.default.factory.createKeywordTypeNode(import_typescript73.default.SyntaxKind.AnyKeyword)));
29209
+ return import_typescript71.default.factory.createParenthesizedExpression(import_typescript71.default.factory.createAsExpression(expr, import_typescript71.default.factory.createKeywordTypeNode(import_typescript71.default.SyntaxKind.AnyKeyword)));
29398
29210
  }
29399
29211
  function tsCreateElement(tagName) {
29400
- const createElement = import_typescript73.default.factory.createPropertyAccessExpression(
29401
- import_typescript73.default.factory.createIdentifier("document"),
29212
+ const createElement = import_typescript71.default.factory.createPropertyAccessExpression(
29213
+ import_typescript71.default.factory.createIdentifier("document"),
29402
29214
  "createElement"
29403
29215
  );
29404
- return import_typescript73.default.factory.createCallExpression(
29216
+ return import_typescript71.default.factory.createCallExpression(
29405
29217
  createElement,
29406
29218
  void 0,
29407
- [import_typescript73.default.factory.createStringLiteral(tagName)]
29219
+ [import_typescript71.default.factory.createStringLiteral(tagName)]
29408
29220
  );
29409
29221
  }
29410
29222
  function tsDeclareVariable(id, type) {
29411
- const decl = import_typescript73.default.factory.createVariableDeclaration(
29223
+ const decl = import_typescript71.default.factory.createVariableDeclaration(
29412
29224
  id,
29413
29225
  void 0,
29414
29226
  type,
29415
- import_typescript73.default.factory.createNonNullExpression(import_typescript73.default.factory.createNull())
29227
+ import_typescript71.default.factory.createNonNullExpression(import_typescript71.default.factory.createNull())
29416
29228
  );
29417
- return import_typescript73.default.factory.createVariableStatement(
29229
+ return import_typescript71.default.factory.createVariableStatement(
29418
29230
  void 0,
29419
29231
  [decl]
29420
29232
  );
29421
29233
  }
29422
29234
  function tsCreateTypeQueryForCoercedInput(typeName, coercedInputName) {
29423
- return import_typescript73.default.factory.createTypeQueryNode(import_typescript73.default.factory.createQualifiedName(typeName, `ngAcceptInputType_${coercedInputName}`));
29235
+ return import_typescript71.default.factory.createTypeQueryNode(import_typescript71.default.factory.createQualifiedName(typeName, `ngAcceptInputType_${coercedInputName}`));
29424
29236
  }
29425
29237
  function tsCreateVariable(id, initializer) {
29426
- const decl = import_typescript73.default.factory.createVariableDeclaration(
29238
+ const decl = import_typescript71.default.factory.createVariableDeclaration(
29427
29239
  id,
29428
29240
  void 0,
29429
29241
  void 0,
29430
29242
  initializer
29431
29243
  );
29432
- return import_typescript73.default.factory.createVariableStatement(
29244
+ return import_typescript71.default.factory.createVariableStatement(
29433
29245
  void 0,
29434
29246
  [decl]
29435
29247
  );
29436
29248
  }
29437
29249
  function tsCallMethod(receiver, methodName, args = []) {
29438
- const methodAccess = import_typescript73.default.factory.createPropertyAccessExpression(receiver, methodName);
29439
- return import_typescript73.default.factory.createCallExpression(
29250
+ const methodAccess = import_typescript71.default.factory.createPropertyAccessExpression(receiver, methodName);
29251
+ return import_typescript71.default.factory.createCallExpression(
29440
29252
  methodAccess,
29441
29253
  void 0,
29442
29254
  args
29443
29255
  );
29444
29256
  }
29445
29257
  function isAccessExpression(node) {
29446
- return import_typescript73.default.isPropertyAccessExpression(node) || import_typescript73.default.isElementAccessExpression(node);
29258
+ return import_typescript71.default.isPropertyAccessExpression(node) || import_typescript71.default.isElementAccessExpression(node);
29447
29259
  }
29448
29260
 
29449
29261
  // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_constructor.mjs
29450
- var import_typescript78 = __toESM(require("typescript"), 1);
29262
+ var import_typescript76 = __toESM(require("typescript"), 1);
29451
29263
 
29452
29264
  // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/tcb_util.mjs
29453
- var import_typescript76 = __toESM(require("typescript"), 1);
29265
+ var import_typescript74 = __toESM(require("typescript"), 1);
29454
29266
 
29455
29267
  // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_parameter_emitter.mjs
29456
- var import_typescript75 = __toESM(require("typescript"), 1);
29268
+ var import_typescript73 = __toESM(require("typescript"), 1);
29457
29269
 
29458
29270
  // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_emitter.mjs
29459
- var import_typescript74 = __toESM(require("typescript"), 1);
29271
+ var import_typescript72 = __toESM(require("typescript"), 1);
29460
29272
  var INELIGIBLE = {};
29461
29273
  function canEmitType(type, canEmit) {
29462
29274
  return canEmitTypeWorker(type);
@@ -29464,13 +29276,13 @@ function canEmitType(type, canEmit) {
29464
29276
  return visitNode(type2) !== INELIGIBLE;
29465
29277
  }
29466
29278
  function visitNode(node) {
29467
- if (import_typescript74.default.isImportTypeNode(node)) {
29279
+ if (import_typescript72.default.isImportTypeNode(node)) {
29468
29280
  return INELIGIBLE;
29469
29281
  }
29470
- if (import_typescript74.default.isTypeReferenceNode(node) && !canEmitTypeReference(node)) {
29282
+ if (import_typescript72.default.isTypeReferenceNode(node) && !canEmitTypeReference(node)) {
29471
29283
  return INELIGIBLE;
29472
29284
  } else {
29473
- return import_typescript74.default.forEachChild(node, visitNode);
29285
+ return import_typescript72.default.forEachChild(node, visitNode);
29474
29286
  }
29475
29287
  }
29476
29288
  function canEmitTypeReference(type2) {
@@ -29487,35 +29299,35 @@ var TypeEmitter = class {
29487
29299
  emitType(type) {
29488
29300
  const typeReferenceTransformer = (context) => {
29489
29301
  const visitNode = (node) => {
29490
- if (import_typescript74.default.isImportTypeNode(node)) {
29302
+ if (import_typescript72.default.isImportTypeNode(node)) {
29491
29303
  throw new Error("Unable to emit import type");
29492
29304
  }
29493
- if (import_typescript74.default.isTypeReferenceNode(node)) {
29305
+ if (import_typescript72.default.isTypeReferenceNode(node)) {
29494
29306
  return this.emitTypeReference(node);
29495
- } else if (import_typescript74.default.isLiteralExpression(node)) {
29307
+ } else if (import_typescript72.default.isLiteralExpression(node)) {
29496
29308
  let clone;
29497
- if (import_typescript74.default.isStringLiteral(node)) {
29498
- clone = import_typescript74.default.factory.createStringLiteral(node.text);
29499
- } else if (import_typescript74.default.isNumericLiteral(node)) {
29500
- clone = import_typescript74.default.factory.createNumericLiteral(node.text);
29501
- } else if (import_typescript74.default.isBigIntLiteral(node)) {
29502
- clone = import_typescript74.default.factory.createBigIntLiteral(node.text);
29503
- } else if (import_typescript74.default.isNoSubstitutionTemplateLiteral(node)) {
29504
- clone = import_typescript74.default.factory.createNoSubstitutionTemplateLiteral(node.text, node.rawText);
29505
- } else if (import_typescript74.default.isRegularExpressionLiteral(node)) {
29506
- clone = import_typescript74.default.factory.createRegularExpressionLiteral(node.text);
29309
+ if (import_typescript72.default.isStringLiteral(node)) {
29310
+ clone = import_typescript72.default.factory.createStringLiteral(node.text);
29311
+ } else if (import_typescript72.default.isNumericLiteral(node)) {
29312
+ clone = import_typescript72.default.factory.createNumericLiteral(node.text);
29313
+ } else if (import_typescript72.default.isBigIntLiteral(node)) {
29314
+ clone = import_typescript72.default.factory.createBigIntLiteral(node.text);
29315
+ } else if (import_typescript72.default.isNoSubstitutionTemplateLiteral(node)) {
29316
+ clone = import_typescript72.default.factory.createNoSubstitutionTemplateLiteral(node.text, node.rawText);
29317
+ } else if (import_typescript72.default.isRegularExpressionLiteral(node)) {
29318
+ clone = import_typescript72.default.factory.createRegularExpressionLiteral(node.text);
29507
29319
  } else {
29508
- throw new Error(`Unsupported literal kind ${import_typescript74.default.SyntaxKind[node.kind]}`);
29320
+ throw new Error(`Unsupported literal kind ${import_typescript72.default.SyntaxKind[node.kind]}`);
29509
29321
  }
29510
- import_typescript74.default.setTextRange(clone, { pos: -1, end: -1 });
29322
+ import_typescript72.default.setTextRange(clone, { pos: -1, end: -1 });
29511
29323
  return clone;
29512
29324
  } else {
29513
- return import_typescript74.default.visitEachChild(node, visitNode, context);
29325
+ return import_typescript72.default.visitEachChild(node, visitNode, context);
29514
29326
  }
29515
29327
  };
29516
- return (node) => import_typescript74.default.visitNode(node, visitNode);
29328
+ return (node) => import_typescript72.default.visitNode(node, visitNode);
29517
29329
  };
29518
- return import_typescript74.default.transform(type, [typeReferenceTransformer]).transformed[0];
29330
+ return import_typescript72.default.transform(type, [typeReferenceTransformer]).transformed[0];
29519
29331
  }
29520
29332
  emitTypeReference(type) {
29521
29333
  const translatedType = this.translator(type);
@@ -29524,9 +29336,9 @@ var TypeEmitter = class {
29524
29336
  }
29525
29337
  let typeArguments = void 0;
29526
29338
  if (type.typeArguments !== void 0) {
29527
- typeArguments = import_typescript74.default.factory.createNodeArray(type.typeArguments.map((typeArg) => this.emitType(typeArg)));
29339
+ typeArguments = import_typescript72.default.factory.createNodeArray(type.typeArguments.map((typeArg) => this.emitType(typeArg)));
29528
29340
  }
29529
- return import_typescript74.default.factory.updateTypeReferenceNode(type, translatedType.typeName, typeArguments);
29341
+ return import_typescript72.default.factory.updateTypeReferenceNode(type, translatedType.typeName, typeArguments);
29530
29342
  }
29531
29343
  };
29532
29344
 
@@ -29567,11 +29379,11 @@ var TypeParameterEmitter = class {
29567
29379
  return this.typeParameters.map((typeParam) => {
29568
29380
  const constraint = typeParam.constraint !== void 0 ? emitter.emitType(typeParam.constraint) : void 0;
29569
29381
  const defaultType = typeParam.default !== void 0 ? emitter.emitType(typeParam.default) : void 0;
29570
- return import_typescript75.default.factory.updateTypeParameterDeclaration(typeParam, typeParam.modifiers, typeParam.name, constraint, defaultType);
29382
+ return import_typescript73.default.factory.updateTypeParameterDeclaration(typeParam, typeParam.modifiers, typeParam.name, constraint, defaultType);
29571
29383
  });
29572
29384
  }
29573
29385
  resolveTypeReference(type) {
29574
- const target = import_typescript75.default.isIdentifier(type.typeName) ? type.typeName : type.typeName.right;
29386
+ const target = import_typescript73.default.isIdentifier(type.typeName) ? type.typeName : type.typeName.right;
29575
29387
  const declaration = this.reflector.getDeclarationOfIdentifier(target);
29576
29388
  if (declaration === null || declaration.node === null) {
29577
29389
  return null;
@@ -29597,8 +29409,8 @@ var TypeParameterEmitter = class {
29597
29409
  if (typeNode === null) {
29598
29410
  return null;
29599
29411
  }
29600
- if (!import_typescript75.default.isTypeReferenceNode(typeNode)) {
29601
- throw new Error(`Expected TypeReferenceNode for emitted reference, got ${import_typescript75.default.SyntaxKind[typeNode.kind]}.`);
29412
+ if (!import_typescript73.default.isTypeReferenceNode(typeNode)) {
29413
+ throw new Error(`Expected TypeReferenceNode for emitted reference, got ${import_typescript73.default.SyntaxKind[typeNode.kind]}.`);
29602
29414
  }
29603
29415
  return typeNode;
29604
29416
  }
@@ -29640,14 +29452,14 @@ function getTemplateMapping(shimSf, position, resolver, isDiagnosticRequest) {
29640
29452
  }
29641
29453
  function findTypeCheckBlock(file, id, isDiagnosticRequest) {
29642
29454
  for (const stmt of file.statements) {
29643
- if (import_typescript76.default.isFunctionDeclaration(stmt) && getTemplateId2(stmt, file, isDiagnosticRequest) === id) {
29455
+ if (import_typescript74.default.isFunctionDeclaration(stmt) && getTemplateId2(stmt, file, isDiagnosticRequest) === id) {
29644
29456
  return stmt;
29645
29457
  }
29646
29458
  }
29647
29459
  return null;
29648
29460
  }
29649
29461
  function findSourceLocation(node, sourceFile, isDiagnosticsRequest) {
29650
- while (node !== void 0 && !import_typescript76.default.isFunctionDeclaration(node)) {
29462
+ while (node !== void 0 && !import_typescript74.default.isFunctionDeclaration(node)) {
29651
29463
  if (hasIgnoreForDiagnosticsMarker(node, sourceFile) && isDiagnosticsRequest) {
29652
29464
  return null;
29653
29465
  }
@@ -29664,7 +29476,7 @@ function findSourceLocation(node, sourceFile, isDiagnosticsRequest) {
29664
29476
  return null;
29665
29477
  }
29666
29478
  function getTemplateId2(node, sourceFile, isDiagnosticRequest) {
29667
- while (!import_typescript76.default.isFunctionDeclaration(node)) {
29479
+ while (!import_typescript74.default.isFunctionDeclaration(node)) {
29668
29480
  if (hasIgnoreForDiagnosticsMarker(node, sourceFile) && isDiagnosticRequest) {
29669
29481
  return null;
29670
29482
  }
@@ -29674,8 +29486,8 @@ function getTemplateId2(node, sourceFile, isDiagnosticRequest) {
29674
29486
  }
29675
29487
  }
29676
29488
  const start = node.getFullStart();
29677
- return import_typescript76.default.forEachLeadingCommentRange(sourceFile.text, start, (pos, end, kind) => {
29678
- if (kind !== import_typescript76.default.SyntaxKind.MultiLineCommentTrivia) {
29489
+ return import_typescript74.default.forEachLeadingCommentRange(sourceFile.text, start, (pos, end, kind) => {
29490
+ if (kind !== import_typescript74.default.SyntaxKind.MultiLineCommentTrivia) {
29679
29491
  return null;
29680
29492
  }
29681
29493
  const commentText = sourceFile.text.substring(pos + 2, end - 2);
@@ -29690,29 +29502,29 @@ function checkIfGenericTypeBoundsCanBeEmitted(node, reflector, env) {
29690
29502
  // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_constructor.mjs
29691
29503
  function generateTypeCtorDeclarationFn(node, meta, nodeTypeRef, typeParams) {
29692
29504
  const rawTypeArgs = typeParams !== void 0 ? generateGenericArgs(typeParams) : void 0;
29693
- const rawType = import_typescript78.default.factory.createTypeReferenceNode(nodeTypeRef, rawTypeArgs);
29505
+ const rawType = import_typescript76.default.factory.createTypeReferenceNode(nodeTypeRef, rawTypeArgs);
29694
29506
  const initParam = constructTypeCtorParameter(node, meta, rawType);
29695
29507
  const typeParameters = typeParametersWithDefaultTypes(typeParams);
29696
29508
  if (meta.body) {
29697
- const fnType = import_typescript78.default.factory.createFunctionTypeNode(
29509
+ const fnType = import_typescript76.default.factory.createFunctionTypeNode(
29698
29510
  typeParameters,
29699
29511
  [initParam],
29700
29512
  rawType
29701
29513
  );
29702
- const decl = import_typescript78.default.factory.createVariableDeclaration(
29514
+ const decl = import_typescript76.default.factory.createVariableDeclaration(
29703
29515
  meta.fnName,
29704
29516
  void 0,
29705
29517
  fnType,
29706
- import_typescript78.default.factory.createNonNullExpression(import_typescript78.default.factory.createNull())
29518
+ import_typescript76.default.factory.createNonNullExpression(import_typescript76.default.factory.createNull())
29707
29519
  );
29708
- const declList = import_typescript78.default.factory.createVariableDeclarationList([decl], import_typescript78.default.NodeFlags.Const);
29709
- return import_typescript78.default.factory.createVariableStatement(
29520
+ const declList = import_typescript76.default.factory.createVariableDeclarationList([decl], import_typescript76.default.NodeFlags.Const);
29521
+ return import_typescript76.default.factory.createVariableStatement(
29710
29522
  void 0,
29711
29523
  declList
29712
29524
  );
29713
29525
  } else {
29714
29526
  return createFunctionDeclaration(
29715
- [import_typescript78.default.factory.createModifier(import_typescript78.default.SyntaxKind.DeclareKeyword)],
29527
+ [import_typescript76.default.factory.createModifier(import_typescript76.default.SyntaxKind.DeclareKeyword)],
29716
29528
  void 0,
29717
29529
  meta.fnName,
29718
29530
  typeParameters,
@@ -29724,16 +29536,16 @@ function generateTypeCtorDeclarationFn(node, meta, nodeTypeRef, typeParams) {
29724
29536
  }
29725
29537
  function generateInlineTypeCtor(node, meta) {
29726
29538
  const rawTypeArgs = node.typeParameters !== void 0 ? generateGenericArgs(node.typeParameters) : void 0;
29727
- const rawType = import_typescript78.default.factory.createTypeReferenceNode(node.name, rawTypeArgs);
29539
+ const rawType = import_typescript76.default.factory.createTypeReferenceNode(node.name, rawTypeArgs);
29728
29540
  const initParam = constructTypeCtorParameter(node, meta, rawType);
29729
29541
  let body = void 0;
29730
29542
  if (meta.body) {
29731
- body = import_typescript78.default.factory.createBlock([
29732
- import_typescript78.default.factory.createReturnStatement(import_typescript78.default.factory.createNonNullExpression(import_typescript78.default.factory.createNull()))
29543
+ body = import_typescript76.default.factory.createBlock([
29544
+ import_typescript76.default.factory.createReturnStatement(import_typescript76.default.factory.createNonNullExpression(import_typescript76.default.factory.createNull()))
29733
29545
  ]);
29734
29546
  }
29735
- return import_typescript78.default.factory.createMethodDeclaration(
29736
- [import_typescript78.default.factory.createModifier(import_typescript78.default.SyntaxKind.StaticKeyword)],
29547
+ return import_typescript76.default.factory.createMethodDeclaration(
29548
+ [import_typescript76.default.factory.createModifier(import_typescript76.default.SyntaxKind.StaticKeyword)],
29737
29549
  void 0,
29738
29550
  meta.fnName,
29739
29551
  void 0,
@@ -29750,9 +29562,9 @@ function constructTypeCtorParameter(node, meta, rawType) {
29750
29562
  const coercedKeys = [];
29751
29563
  for (const key of keys) {
29752
29564
  if (!meta.coercedInputFields.has(key)) {
29753
- plainKeys.push(import_typescript78.default.factory.createLiteralTypeNode(import_typescript78.default.factory.createStringLiteral(key)));
29565
+ plainKeys.push(import_typescript76.default.factory.createLiteralTypeNode(import_typescript76.default.factory.createStringLiteral(key)));
29754
29566
  } else {
29755
- coercedKeys.push(import_typescript78.default.factory.createPropertySignature(
29567
+ coercedKeys.push(import_typescript76.default.factory.createPropertySignature(
29756
29568
  void 0,
29757
29569
  key,
29758
29570
  void 0,
@@ -29761,15 +29573,15 @@ function constructTypeCtorParameter(node, meta, rawType) {
29761
29573
  }
29762
29574
  }
29763
29575
  if (plainKeys.length > 0) {
29764
- const keyTypeUnion = import_typescript78.default.factory.createUnionTypeNode(plainKeys);
29765
- initType = import_typescript78.default.factory.createTypeReferenceNode("Pick", [rawType, keyTypeUnion]);
29576
+ const keyTypeUnion = import_typescript76.default.factory.createUnionTypeNode(plainKeys);
29577
+ initType = import_typescript76.default.factory.createTypeReferenceNode("Pick", [rawType, keyTypeUnion]);
29766
29578
  }
29767
29579
  if (coercedKeys.length > 0) {
29768
- const coercedLiteral = import_typescript78.default.factory.createTypeLiteralNode(coercedKeys);
29769
- initType = initType !== null ? import_typescript78.default.factory.createIntersectionTypeNode([initType, coercedLiteral]) : coercedLiteral;
29580
+ const coercedLiteral = import_typescript76.default.factory.createTypeLiteralNode(coercedKeys);
29581
+ initType = initType !== null ? import_typescript76.default.factory.createIntersectionTypeNode([initType, coercedLiteral]) : coercedLiteral;
29770
29582
  }
29771
29583
  if (initType === null) {
29772
- initType = import_typescript78.default.factory.createTypeLiteralNode([]);
29584
+ initType = import_typescript76.default.factory.createTypeLiteralNode([]);
29773
29585
  }
29774
29586
  return createParameterDeclaration(
29775
29587
  void 0,
@@ -29781,7 +29593,7 @@ function constructTypeCtorParameter(node, meta, rawType) {
29781
29593
  );
29782
29594
  }
29783
29595
  function generateGenericArgs(params) {
29784
- return params.map((param) => import_typescript78.default.factory.createTypeReferenceNode(param.name, void 0));
29596
+ return params.map((param) => import_typescript76.default.factory.createTypeReferenceNode(param.name, void 0));
29785
29597
  }
29786
29598
  function requiresInlineTypeCtor(node, host, env) {
29787
29599
  return !checkIfGenericTypeBoundsCanBeEmitted(node, host, env);
@@ -29792,7 +29604,7 @@ function typeParametersWithDefaultTypes(params) {
29792
29604
  }
29793
29605
  return params.map((param) => {
29794
29606
  if (param.default === void 0) {
29795
- return import_typescript78.default.factory.updateTypeParameterDeclaration(param, param.modifiers, param.name, param.constraint, import_typescript78.default.factory.createKeywordTypeNode(import_typescript78.default.SyntaxKind.AnyKeyword));
29607
+ return import_typescript76.default.factory.updateTypeParameterDeclaration(param, param.modifiers, param.name, param.constraint, import_typescript76.default.factory.createKeywordTypeNode(import_typescript76.default.SyntaxKind.AnyKeyword));
29796
29608
  } else {
29797
29609
  return param;
29798
29610
  }
@@ -29824,13 +29636,13 @@ var Environment = class {
29824
29636
  }
29825
29637
  if (requiresInlineTypeCtor(node, this.reflector, this)) {
29826
29638
  const ref = this.reference(dirRef);
29827
- const typeCtorExpr = import_typescript79.default.factory.createPropertyAccessExpression(ref, "ngTypeCtor");
29639
+ const typeCtorExpr = import_typescript77.default.factory.createPropertyAccessExpression(ref, "ngTypeCtor");
29828
29640
  this.typeCtors.set(node, typeCtorExpr);
29829
29641
  return typeCtorExpr;
29830
29642
  } else {
29831
29643
  const fnName = `_ctor${this.nextIds.typeCtor++}`;
29832
29644
  const nodeTypeRef = this.referenceType(dirRef);
29833
- if (!import_typescript79.default.isTypeReferenceNode(nodeTypeRef)) {
29645
+ if (!import_typescript77.default.isTypeReferenceNode(nodeTypeRef)) {
29834
29646
  throw new Error(`Expected TypeReferenceNode from reference to ${dirRef.debugName}`);
29835
29647
  }
29836
29648
  const meta = {
@@ -29846,7 +29658,7 @@ var Environment = class {
29846
29658
  const typeParams = this.emitTypeParameters(node);
29847
29659
  const typeCtor = generateTypeCtorDeclarationFn(node, meta, nodeTypeRef.typeName, typeParams);
29848
29660
  this.typeCtorStatements.push(typeCtor);
29849
- const fnId = import_typescript79.default.factory.createIdentifier(fnName);
29661
+ const fnId = import_typescript77.default.factory.createIdentifier(fnName);
29850
29662
  this.typeCtors.set(node, fnId);
29851
29663
  return fnId;
29852
29664
  }
@@ -29856,7 +29668,7 @@ var Environment = class {
29856
29668
  return this.pipeInsts.get(ref.node);
29857
29669
  }
29858
29670
  const pipeType = this.referenceType(ref);
29859
- const pipeInstId = import_typescript79.default.factory.createIdentifier(`_pipe${this.nextIds.pipeInst++}`);
29671
+ const pipeInstId = import_typescript77.default.factory.createIdentifier(`_pipe${this.nextIds.pipeInst++}`);
29860
29672
  this.pipeInstStatements.push(tsDeclareVariable(pipeInstId, pipeType));
29861
29673
  this.pipeInsts.set(ref.node, pipeInstId);
29862
29674
  return pipeInstId;
@@ -29892,7 +29704,7 @@ var Environment = class {
29892
29704
  };
29893
29705
 
29894
29706
  // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/oob.mjs
29895
- var import_typescript80 = __toESM(require("typescript"), 1);
29707
+ var import_typescript78 = __toESM(require("typescript"), 1);
29896
29708
  var OutOfBandDiagnosticRecorderImpl = class {
29897
29709
  constructor(resolver) {
29898
29710
  this.resolver = resolver;
@@ -29906,7 +29718,7 @@ var OutOfBandDiagnosticRecorderImpl = class {
29906
29718
  const mapping = this.resolver.getSourceMapping(templateId);
29907
29719
  const value = ref.value.trim();
29908
29720
  const errorMsg = `No directive found with exportAs '${value}'.`;
29909
- this._diagnostics.push(makeTemplateDiagnostic(templateId, mapping, ref.valueSpan || ref.sourceSpan, import_typescript80.default.DiagnosticCategory.Error, ngErrorCode(ErrorCode.MISSING_REFERENCE_TARGET), errorMsg));
29721
+ this._diagnostics.push(makeTemplateDiagnostic(templateId, mapping, ref.valueSpan || ref.sourceSpan, import_typescript78.default.DiagnosticCategory.Error, ngErrorCode(ErrorCode.MISSING_REFERENCE_TARGET), errorMsg));
29910
29722
  }
29911
29723
  missingPipe(templateId, ast) {
29912
29724
  if (this.recordedPipes.has(ast)) {
@@ -29918,7 +29730,7 @@ var OutOfBandDiagnosticRecorderImpl = class {
29918
29730
  if (sourceSpan === null) {
29919
29731
  throw new Error(`Assertion failure: no SourceLocation found for usage of pipe '${ast.name}'.`);
29920
29732
  }
29921
- this._diagnostics.push(makeTemplateDiagnostic(templateId, mapping, sourceSpan, import_typescript80.default.DiagnosticCategory.Error, ngErrorCode(ErrorCode.MISSING_PIPE), errorMsg));
29733
+ this._diagnostics.push(makeTemplateDiagnostic(templateId, mapping, sourceSpan, import_typescript78.default.DiagnosticCategory.Error, ngErrorCode(ErrorCode.MISSING_PIPE), errorMsg));
29922
29734
  this.recordedPipes.add(ast);
29923
29735
  }
29924
29736
  illegalAssignmentToTemplateVar(templateId, assignment, target) {
@@ -29929,7 +29741,7 @@ var OutOfBandDiagnosticRecorderImpl = class {
29929
29741
  if (sourceSpan === null) {
29930
29742
  throw new Error(`Assertion failure: no SourceLocation found for property binding.`);
29931
29743
  }
29932
- this._diagnostics.push(makeTemplateDiagnostic(templateId, mapping, sourceSpan, import_typescript80.default.DiagnosticCategory.Error, ngErrorCode(ErrorCode.WRITE_TO_READ_ONLY_VARIABLE), errorMsg, [{
29744
+ this._diagnostics.push(makeTemplateDiagnostic(templateId, mapping, sourceSpan, import_typescript78.default.DiagnosticCategory.Error, ngErrorCode(ErrorCode.WRITE_TO_READ_ONLY_VARIABLE), errorMsg, [{
29933
29745
  text: `The variable ${assignment.name} is declared here.`,
29934
29746
  start: ((_a = target.valueSpan) == null ? void 0 : _a.start.offset) || target.sourceSpan.start.offset,
29935
29747
  end: ((_b = target.valueSpan) == null ? void 0 : _b.end.offset) || target.sourceSpan.end.offset,
@@ -29939,7 +29751,7 @@ var OutOfBandDiagnosticRecorderImpl = class {
29939
29751
  duplicateTemplateVar(templateId, variable2, firstDecl) {
29940
29752
  const mapping = this.resolver.getSourceMapping(templateId);
29941
29753
  const errorMsg = `Cannot redeclare variable '${variable2.name}' as it was previously declared elsewhere for the same template.`;
29942
- this._diagnostics.push(makeTemplateDiagnostic(templateId, mapping, variable2.sourceSpan, import_typescript80.default.DiagnosticCategory.Error, ngErrorCode(ErrorCode.DUPLICATE_VARIABLE_DECLARATION), errorMsg, [{
29754
+ this._diagnostics.push(makeTemplateDiagnostic(templateId, mapping, variable2.sourceSpan, import_typescript78.default.DiagnosticCategory.Error, ngErrorCode(ErrorCode.DUPLICATE_VARIABLE_DECLARATION), errorMsg, [{
29943
29755
  text: `The variable '${firstDecl.name}' was first declared here.`,
29944
29756
  start: firstDecl.sourceSpan.start.offset,
29945
29757
  end: firstDecl.sourceSpan.end.offset,
@@ -29978,7 +29790,7 @@ var OutOfBandDiagnosticRecorderImpl = class {
29978
29790
  const message = `This structural directive supports advanced type inference, but the current compiler configuration prevents its usage. The variable ${varIdentification} will have type 'any' as a result.
29979
29791
 
29980
29792
  Consider enabling the 'strictTemplates' option in your tsconfig.json for better type inference within this template.`;
29981
- this._diagnostics.push(makeTemplateDiagnostic(templateId, mapping, diagnosticVar.keySpan, import_typescript80.default.DiagnosticCategory.Suggestion, ngErrorCode(ErrorCode.SUGGEST_SUBOPTIMAL_TYPE_INFERENCE), message));
29793
+ this._diagnostics.push(makeTemplateDiagnostic(templateId, mapping, diagnosticVar.keySpan, import_typescript78.default.DiagnosticCategory.Suggestion, ngErrorCode(ErrorCode.SUGGEST_SUBOPTIMAL_TYPE_INFERENCE), message));
29982
29794
  }
29983
29795
  splitTwoWayBinding(templateId, input, output, inputConsumer, outputConsumer) {
29984
29796
  const mapping = this.resolver.getSourceMapping(templateId);
@@ -30012,7 +29824,7 @@ Consider enabling the 'strictTemplates' option in your tsconfig.json for better
30012
29824
  sourceFile: outputConsumer.name.getSourceFile()
30013
29825
  });
30014
29826
  }
30015
- this._diagnostics.push(makeTemplateDiagnostic(templateId, mapping, input.keySpan, import_typescript80.default.DiagnosticCategory.Error, ngErrorCode(ErrorCode.SPLIT_TWO_WAY_BINDING), errorMsg, relatedMessages));
29827
+ this._diagnostics.push(makeTemplateDiagnostic(templateId, mapping, input.keySpan, import_typescript78.default.DiagnosticCategory.Error, ngErrorCode(ErrorCode.SPLIT_TWO_WAY_BINDING), errorMsg, relatedMessages));
30016
29828
  }
30017
29829
  };
30018
29830
  function makeInlineDiagnostic(templateId, code, node, messageText, relatedInformation) {
@@ -30023,7 +29835,7 @@ function makeInlineDiagnostic(templateId, code, node, messageText, relatedInform
30023
29835
  }
30024
29836
 
30025
29837
  // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/shim.mjs
30026
- var import_typescript81 = __toESM(require("typescript"), 1);
29838
+ var import_typescript79 = __toESM(require("typescript"), 1);
30027
29839
  var TypeCheckShimGenerator = class {
30028
29840
  constructor() {
30029
29841
  this.extensionPrefix = "ngtypecheck";
@@ -30033,7 +29845,7 @@ var TypeCheckShimGenerator = class {
30033
29845
  if (priorShimSf !== null) {
30034
29846
  return priorShimSf;
30035
29847
  }
30036
- return import_typescript81.default.createSourceFile(genFilePath, "export const USED_FOR_NG_TYPE_CHECKING = true;", import_typescript81.default.ScriptTarget.Latest, true, import_typescript81.default.ScriptKind.TS);
29848
+ return import_typescript79.default.createSourceFile(genFilePath, "export const USED_FOR_NG_TYPE_CHECKING = true;", import_typescript79.default.ScriptTarget.Latest, true, import_typescript79.default.ScriptKind.TS);
30037
29849
  }
30038
29850
  static shimFor(fileName) {
30039
29851
  return absoluteFrom(fileName.replace(/\.tsx?$/, ".ngtypecheck.ts"));
@@ -30041,15 +29853,15 @@ var TypeCheckShimGenerator = class {
30041
29853
  };
30042
29854
 
30043
29855
  // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_check_block.mjs
30044
- var import_typescript84 = __toESM(require("typescript"), 1);
29856
+ var import_typescript82 = __toESM(require("typescript"), 1);
30045
29857
 
30046
29858
  // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/diagnostics.mjs
30047
- var import_typescript82 = __toESM(require("typescript"), 1);
29859
+ var import_typescript80 = __toESM(require("typescript"), 1);
30048
29860
  function wrapForDiagnostics(expr) {
30049
- return import_typescript82.default.factory.createParenthesizedExpression(expr);
29861
+ return import_typescript80.default.factory.createParenthesizedExpression(expr);
30050
29862
  }
30051
29863
  function wrapForTypeChecker(expr) {
30052
- return import_typescript82.default.factory.createParenthesizedExpression(expr);
29864
+ return import_typescript80.default.factory.createParenthesizedExpression(expr);
30053
29865
  }
30054
29866
  function addParseSpanInfo(node, span) {
30055
29867
  let commentText;
@@ -30058,10 +29870,10 @@ function addParseSpanInfo(node, span) {
30058
29870
  } else {
30059
29871
  commentText = `${span.start.offset},${span.end.offset}`;
30060
29872
  }
30061
- import_typescript82.default.addSyntheticTrailingComment(node, import_typescript82.default.SyntaxKind.MultiLineCommentTrivia, commentText, false);
29873
+ import_typescript80.default.addSyntheticTrailingComment(node, import_typescript80.default.SyntaxKind.MultiLineCommentTrivia, commentText, false);
30062
29874
  }
30063
29875
  function addTemplateId(tcb, id) {
30064
- import_typescript82.default.addSyntheticLeadingComment(tcb, import_typescript82.default.SyntaxKind.MultiLineCommentTrivia, id, true);
29876
+ import_typescript80.default.addSyntheticLeadingComment(tcb, import_typescript80.default.SyntaxKind.MultiLineCommentTrivia, id, true);
30065
29877
  }
30066
29878
  function shouldReportDiagnostic(diagnostic) {
30067
29879
  const { code } = diagnostic;
@@ -30089,32 +29901,32 @@ function translateDiagnostic(diagnostic, resolver) {
30089
29901
  }
30090
29902
 
30091
29903
  // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/expression.mjs
30092
- var import_typescript83 = __toESM(require("typescript"), 1);
30093
- var NULL_AS_ANY = import_typescript83.default.factory.createAsExpression(import_typescript83.default.factory.createNull(), import_typescript83.default.factory.createKeywordTypeNode(import_typescript83.default.SyntaxKind.AnyKeyword));
30094
- var UNDEFINED = import_typescript83.default.factory.createIdentifier("undefined");
29904
+ var import_typescript81 = __toESM(require("typescript"), 1);
29905
+ var NULL_AS_ANY = import_typescript81.default.factory.createAsExpression(import_typescript81.default.factory.createNull(), import_typescript81.default.factory.createKeywordTypeNode(import_typescript81.default.SyntaxKind.AnyKeyword));
29906
+ var UNDEFINED = import_typescript81.default.factory.createIdentifier("undefined");
30095
29907
  var UNARY_OPS = /* @__PURE__ */ new Map([
30096
- ["+", import_typescript83.default.SyntaxKind.PlusToken],
30097
- ["-", import_typescript83.default.SyntaxKind.MinusToken]
29908
+ ["+", import_typescript81.default.SyntaxKind.PlusToken],
29909
+ ["-", import_typescript81.default.SyntaxKind.MinusToken]
30098
29910
  ]);
30099
29911
  var BINARY_OPS = /* @__PURE__ */ new Map([
30100
- ["+", import_typescript83.default.SyntaxKind.PlusToken],
30101
- ["-", import_typescript83.default.SyntaxKind.MinusToken],
30102
- ["<", import_typescript83.default.SyntaxKind.LessThanToken],
30103
- [">", import_typescript83.default.SyntaxKind.GreaterThanToken],
30104
- ["<=", import_typescript83.default.SyntaxKind.LessThanEqualsToken],
30105
- [">=", import_typescript83.default.SyntaxKind.GreaterThanEqualsToken],
30106
- ["==", import_typescript83.default.SyntaxKind.EqualsEqualsToken],
30107
- ["===", import_typescript83.default.SyntaxKind.EqualsEqualsEqualsToken],
30108
- ["*", import_typescript83.default.SyntaxKind.AsteriskToken],
30109
- ["/", import_typescript83.default.SyntaxKind.SlashToken],
30110
- ["%", import_typescript83.default.SyntaxKind.PercentToken],
30111
- ["!=", import_typescript83.default.SyntaxKind.ExclamationEqualsToken],
30112
- ["!==", import_typescript83.default.SyntaxKind.ExclamationEqualsEqualsToken],
30113
- ["||", import_typescript83.default.SyntaxKind.BarBarToken],
30114
- ["&&", import_typescript83.default.SyntaxKind.AmpersandAmpersandToken],
30115
- ["&", import_typescript83.default.SyntaxKind.AmpersandToken],
30116
- ["|", import_typescript83.default.SyntaxKind.BarToken],
30117
- ["??", import_typescript83.default.SyntaxKind.QuestionQuestionToken]
29912
+ ["+", import_typescript81.default.SyntaxKind.PlusToken],
29913
+ ["-", import_typescript81.default.SyntaxKind.MinusToken],
29914
+ ["<", import_typescript81.default.SyntaxKind.LessThanToken],
29915
+ [">", import_typescript81.default.SyntaxKind.GreaterThanToken],
29916
+ ["<=", import_typescript81.default.SyntaxKind.LessThanEqualsToken],
29917
+ [">=", import_typescript81.default.SyntaxKind.GreaterThanEqualsToken],
29918
+ ["==", import_typescript81.default.SyntaxKind.EqualsEqualsToken],
29919
+ ["===", import_typescript81.default.SyntaxKind.EqualsEqualsEqualsToken],
29920
+ ["*", import_typescript81.default.SyntaxKind.AsteriskToken],
29921
+ ["/", import_typescript81.default.SyntaxKind.SlashToken],
29922
+ ["%", import_typescript81.default.SyntaxKind.PercentToken],
29923
+ ["!=", import_typescript81.default.SyntaxKind.ExclamationEqualsToken],
29924
+ ["!==", import_typescript81.default.SyntaxKind.ExclamationEqualsEqualsToken],
29925
+ ["||", import_typescript81.default.SyntaxKind.BarBarToken],
29926
+ ["&&", import_typescript81.default.SyntaxKind.AmpersandAmpersandToken],
29927
+ ["&", import_typescript81.default.SyntaxKind.AmpersandToken],
29928
+ ["|", import_typescript81.default.SyntaxKind.BarToken],
29929
+ ["??", import_typescript81.default.SyntaxKind.QuestionQuestionToken]
30118
29930
  ]);
30119
29931
  function astToTypescript(ast, maybeResolve, config) {
30120
29932
  const translator = new AstTranslator(maybeResolve, config);
@@ -30130,7 +29942,7 @@ var AstTranslator = class {
30130
29942
  ast = ast.ast;
30131
29943
  }
30132
29944
  if (ast instanceof EmptyExpr) {
30133
- const res = import_typescript83.default.factory.createIdentifier("undefined");
29945
+ const res = import_typescript81.default.factory.createIdentifier("undefined");
30134
29946
  addParseSpanInfo(res, ast.sourceSpan);
30135
29947
  return res;
30136
29948
  }
@@ -30146,7 +29958,7 @@ var AstTranslator = class {
30146
29958
  if (op === void 0) {
30147
29959
  throw new Error(`Unsupported Unary.operator: ${ast.operator}`);
30148
29960
  }
30149
- const node = wrapForDiagnostics(import_typescript83.default.factory.createPrefixUnaryExpression(op, expr));
29961
+ const node = wrapForDiagnostics(import_typescript81.default.factory.createPrefixUnaryExpression(op, expr));
30150
29962
  addParseSpanInfo(node, ast.sourceSpan);
30151
29963
  return node;
30152
29964
  }
@@ -30157,13 +29969,13 @@ var AstTranslator = class {
30157
29969
  if (op === void 0) {
30158
29970
  throw new Error(`Unsupported Binary.operation: ${ast.operation}`);
30159
29971
  }
30160
- const node = import_typescript83.default.factory.createBinaryExpression(lhs, op, rhs);
29972
+ const node = import_typescript81.default.factory.createBinaryExpression(lhs, op, rhs);
30161
29973
  addParseSpanInfo(node, ast.sourceSpan);
30162
29974
  return node;
30163
29975
  }
30164
29976
  visitChain(ast) {
30165
29977
  const elements = ast.expressions.map((expr) => this.translate(expr));
30166
- const node = wrapForDiagnostics(import_typescript83.default.factory.createCommaListExpression(elements));
29978
+ const node = wrapForDiagnostics(import_typescript81.default.factory.createCommaListExpression(elements));
30167
29979
  addParseSpanInfo(node, ast.sourceSpan);
30168
29980
  return node;
30169
29981
  }
@@ -30171,7 +29983,7 @@ var AstTranslator = class {
30171
29983
  const condExpr = this.translate(ast.condition);
30172
29984
  const trueExpr = this.translate(ast.trueExp);
30173
29985
  const falseExpr = wrapForTypeChecker(this.translate(ast.falseExp));
30174
- const node = import_typescript83.default.factory.createParenthesizedExpression(import_typescript83.default.factory.createConditionalExpression(condExpr, void 0, trueExpr, void 0, falseExpr));
29986
+ const node = import_typescript81.default.factory.createParenthesizedExpression(import_typescript81.default.factory.createConditionalExpression(condExpr, void 0, trueExpr, void 0, falseExpr));
30175
29987
  addParseSpanInfo(node, ast.sourceSpan);
30176
29988
  return node;
30177
29989
  }
@@ -30182,26 +29994,26 @@ var AstTranslator = class {
30182
29994
  throw new Error("Method not implemented.");
30183
29995
  }
30184
29996
  visitInterpolation(ast) {
30185
- return ast.expressions.reduce((lhs, ast2) => import_typescript83.default.factory.createBinaryExpression(lhs, import_typescript83.default.SyntaxKind.PlusToken, wrapForTypeChecker(this.translate(ast2))), import_typescript83.default.factory.createStringLiteral(""));
29997
+ return ast.expressions.reduce((lhs, ast2) => import_typescript81.default.factory.createBinaryExpression(lhs, import_typescript81.default.SyntaxKind.PlusToken, wrapForTypeChecker(this.translate(ast2))), import_typescript81.default.factory.createStringLiteral(""));
30186
29998
  }
30187
29999
  visitKeyedRead(ast) {
30188
30000
  const receiver = wrapForDiagnostics(this.translate(ast.receiver));
30189
30001
  const key = this.translate(ast.key);
30190
- const node = import_typescript83.default.factory.createElementAccessExpression(receiver, key);
30002
+ const node = import_typescript81.default.factory.createElementAccessExpression(receiver, key);
30191
30003
  addParseSpanInfo(node, ast.sourceSpan);
30192
30004
  return node;
30193
30005
  }
30194
30006
  visitKeyedWrite(ast) {
30195
30007
  const receiver = wrapForDiagnostics(this.translate(ast.receiver));
30196
- const left = import_typescript83.default.factory.createElementAccessExpression(receiver, this.translate(ast.key));
30008
+ const left = import_typescript81.default.factory.createElementAccessExpression(receiver, this.translate(ast.key));
30197
30009
  const right = wrapForTypeChecker(this.translate(ast.value));
30198
- const node = wrapForDiagnostics(import_typescript83.default.factory.createBinaryExpression(left, import_typescript83.default.SyntaxKind.EqualsToken, right));
30010
+ const node = wrapForDiagnostics(import_typescript81.default.factory.createBinaryExpression(left, import_typescript81.default.SyntaxKind.EqualsToken, right));
30199
30011
  addParseSpanInfo(node, ast.sourceSpan);
30200
30012
  return node;
30201
30013
  }
30202
30014
  visitLiteralArray(ast) {
30203
30015
  const elements = ast.expressions.map((expr) => this.translate(expr));
30204
- const literal3 = import_typescript83.default.factory.createArrayLiteralExpression(elements);
30016
+ const literal3 = import_typescript81.default.factory.createArrayLiteralExpression(elements);
30205
30017
  const node = this.config.strictLiteralTypes ? literal3 : tsCastToAny(literal3);
30206
30018
  addParseSpanInfo(node, ast.sourceSpan);
30207
30019
  return node;
@@ -30209,9 +30021,9 @@ var AstTranslator = class {
30209
30021
  visitLiteralMap(ast) {
30210
30022
  const properties = ast.keys.map(({ key }, idx) => {
30211
30023
  const value = this.translate(ast.values[idx]);
30212
- return import_typescript83.default.factory.createPropertyAssignment(import_typescript83.default.factory.createStringLiteral(key), value);
30024
+ return import_typescript81.default.factory.createPropertyAssignment(import_typescript81.default.factory.createStringLiteral(key), value);
30213
30025
  });
30214
- const literal3 = import_typescript83.default.factory.createObjectLiteralExpression(properties, true);
30026
+ const literal3 = import_typescript81.default.factory.createObjectLiteralExpression(properties, true);
30215
30027
  const node = this.config.strictLiteralTypes ? literal3 : tsCastToAny(literal3);
30216
30028
  addParseSpanInfo(node, ast.sourceSpan);
30217
30029
  return node;
@@ -30219,15 +30031,15 @@ var AstTranslator = class {
30219
30031
  visitLiteralPrimitive(ast) {
30220
30032
  let node;
30221
30033
  if (ast.value === void 0) {
30222
- node = import_typescript83.default.factory.createIdentifier("undefined");
30034
+ node = import_typescript81.default.factory.createIdentifier("undefined");
30223
30035
  } else if (ast.value === null) {
30224
- node = import_typescript83.default.factory.createNull();
30036
+ node = import_typescript81.default.factory.createNull();
30225
30037
  } else if (typeof ast.value === "string") {
30226
- node = import_typescript83.default.factory.createStringLiteral(ast.value);
30038
+ node = import_typescript81.default.factory.createStringLiteral(ast.value);
30227
30039
  } else if (typeof ast.value === "number") {
30228
- node = import_typescript83.default.factory.createNumericLiteral(ast.value);
30040
+ node = import_typescript81.default.factory.createNumericLiteral(ast.value);
30229
30041
  } else if (typeof ast.value === "boolean") {
30230
- node = ast.value ? import_typescript83.default.factory.createTrue() : import_typescript83.default.factory.createFalse();
30042
+ node = ast.value ? import_typescript81.default.factory.createTrue() : import_typescript81.default.factory.createFalse();
30231
30043
  } else {
30232
30044
  throw Error(`Unsupported AST value of type ${typeof ast.value}`);
30233
30045
  }
@@ -30236,7 +30048,7 @@ var AstTranslator = class {
30236
30048
  }
30237
30049
  visitNonNullAssert(ast) {
30238
30050
  const expr = wrapForDiagnostics(this.translate(ast.expression));
30239
- const node = import_typescript83.default.factory.createNonNullExpression(expr);
30051
+ const node = import_typescript81.default.factory.createNonNullExpression(expr);
30240
30052
  addParseSpanInfo(node, ast.sourceSpan);
30241
30053
  return node;
30242
30054
  }
@@ -30245,13 +30057,13 @@ var AstTranslator = class {
30245
30057
  }
30246
30058
  visitPrefixNot(ast) {
30247
30059
  const expression = wrapForDiagnostics(this.translate(ast.expression));
30248
- const node = import_typescript83.default.factory.createLogicalNot(expression);
30060
+ const node = import_typescript81.default.factory.createLogicalNot(expression);
30249
30061
  addParseSpanInfo(node, ast.sourceSpan);
30250
30062
  return node;
30251
30063
  }
30252
30064
  visitPropertyRead(ast) {
30253
30065
  const receiver = wrapForDiagnostics(this.translate(ast.receiver));
30254
- const name = import_typescript83.default.factory.createPropertyAccessExpression(receiver, ast.name);
30066
+ const name = import_typescript81.default.factory.createPropertyAccessExpression(receiver, ast.name);
30255
30067
  addParseSpanInfo(name, ast.nameSpan);
30256
30068
  const node = wrapForDiagnostics(name);
30257
30069
  addParseSpanInfo(node, ast.sourceSpan);
@@ -30259,12 +30071,12 @@ var AstTranslator = class {
30259
30071
  }
30260
30072
  visitPropertyWrite(ast) {
30261
30073
  const receiver = wrapForDiagnostics(this.translate(ast.receiver));
30262
- const left = import_typescript83.default.factory.createPropertyAccessExpression(receiver, ast.name);
30074
+ const left = import_typescript81.default.factory.createPropertyAccessExpression(receiver, ast.name);
30263
30075
  addParseSpanInfo(left, ast.nameSpan);
30264
30076
  const leftWithPath = wrapForDiagnostics(left);
30265
30077
  addParseSpanInfo(leftWithPath, ast.sourceSpan);
30266
30078
  const right = wrapForTypeChecker(this.translate(ast.value));
30267
- const node = wrapForDiagnostics(import_typescript83.default.factory.createBinaryExpression(leftWithPath, import_typescript83.default.SyntaxKind.EqualsToken, right));
30079
+ const node = wrapForDiagnostics(import_typescript81.default.factory.createBinaryExpression(leftWithPath, import_typescript81.default.SyntaxKind.EqualsToken, right));
30268
30080
  addParseSpanInfo(node, ast.sourceSpan);
30269
30081
  return node;
30270
30082
  }
@@ -30272,13 +30084,13 @@ var AstTranslator = class {
30272
30084
  let node;
30273
30085
  const receiver = wrapForDiagnostics(this.translate(ast.receiver));
30274
30086
  if (this.config.strictSafeNavigationTypes) {
30275
- const expr = import_typescript83.default.factory.createPropertyAccessExpression(import_typescript83.default.factory.createNonNullExpression(receiver), ast.name);
30087
+ const expr = import_typescript81.default.factory.createPropertyAccessExpression(import_typescript81.default.factory.createNonNullExpression(receiver), ast.name);
30276
30088
  addParseSpanInfo(expr, ast.nameSpan);
30277
- node = import_typescript83.default.factory.createParenthesizedExpression(import_typescript83.default.factory.createConditionalExpression(NULL_AS_ANY, void 0, expr, void 0, UNDEFINED));
30089
+ node = import_typescript81.default.factory.createParenthesizedExpression(import_typescript81.default.factory.createConditionalExpression(NULL_AS_ANY, void 0, expr, void 0, UNDEFINED));
30278
30090
  } else if (VeSafeLhsInferenceBugDetector.veWillInferAnyFor(ast)) {
30279
- node = import_typescript83.default.factory.createPropertyAccessExpression(tsCastToAny(receiver), ast.name);
30091
+ node = import_typescript81.default.factory.createPropertyAccessExpression(tsCastToAny(receiver), ast.name);
30280
30092
  } else {
30281
- const expr = import_typescript83.default.factory.createPropertyAccessExpression(import_typescript83.default.factory.createNonNullExpression(receiver), ast.name);
30093
+ const expr = import_typescript81.default.factory.createPropertyAccessExpression(import_typescript81.default.factory.createNonNullExpression(receiver), ast.name);
30282
30094
  addParseSpanInfo(expr, ast.nameSpan);
30283
30095
  node = tsCastToAny(expr);
30284
30096
  }
@@ -30290,13 +30102,13 @@ var AstTranslator = class {
30290
30102
  const key = this.translate(ast.key);
30291
30103
  let node;
30292
30104
  if (this.config.strictSafeNavigationTypes) {
30293
- const expr = import_typescript83.default.factory.createElementAccessExpression(import_typescript83.default.factory.createNonNullExpression(receiver), key);
30105
+ const expr = import_typescript81.default.factory.createElementAccessExpression(import_typescript81.default.factory.createNonNullExpression(receiver), key);
30294
30106
  addParseSpanInfo(expr, ast.sourceSpan);
30295
- node = import_typescript83.default.factory.createParenthesizedExpression(import_typescript83.default.factory.createConditionalExpression(NULL_AS_ANY, void 0, expr, void 0, UNDEFINED));
30107
+ node = import_typescript81.default.factory.createParenthesizedExpression(import_typescript81.default.factory.createConditionalExpression(NULL_AS_ANY, void 0, expr, void 0, UNDEFINED));
30296
30108
  } else if (VeSafeLhsInferenceBugDetector.veWillInferAnyFor(ast)) {
30297
- node = import_typescript83.default.factory.createElementAccessExpression(tsCastToAny(receiver), key);
30109
+ node = import_typescript81.default.factory.createElementAccessExpression(tsCastToAny(receiver), key);
30298
30110
  } else {
30299
- const expr = import_typescript83.default.factory.createElementAccessExpression(import_typescript83.default.factory.createNonNullExpression(receiver), key);
30111
+ const expr = import_typescript81.default.factory.createElementAccessExpression(import_typescript81.default.factory.createNonNullExpression(receiver), key);
30300
30112
  addParseSpanInfo(expr, ast.sourceSpan);
30301
30113
  node = tsCastToAny(expr);
30302
30114
  }
@@ -30313,7 +30125,7 @@ var AstTranslator = class {
30313
30125
  expr = resolved;
30314
30126
  } else {
30315
30127
  const propertyReceiver = wrapForDiagnostics(this.translate(receiver.receiver));
30316
- expr = import_typescript83.default.factory.createPropertyAccessExpression(propertyReceiver, receiver.name);
30128
+ expr = import_typescript81.default.factory.createPropertyAccessExpression(propertyReceiver, receiver.name);
30317
30129
  addParseSpanInfo(expr, receiver.nameSpan);
30318
30130
  }
30319
30131
  } else {
@@ -30323,7 +30135,7 @@ var AstTranslator = class {
30323
30135
  if (ast.receiver instanceof SafePropertyRead || ast.receiver instanceof SafeKeyedRead) {
30324
30136
  node = this.convertToSafeCall(ast, expr, args);
30325
30137
  } else {
30326
- node = import_typescript83.default.factory.createCallExpression(expr, void 0, args);
30138
+ node = import_typescript81.default.factory.createCallExpression(expr, void 0, args);
30327
30139
  }
30328
30140
  addParseSpanInfo(node, ast.sourceSpan);
30329
30141
  return node;
@@ -30337,13 +30149,13 @@ var AstTranslator = class {
30337
30149
  }
30338
30150
  convertToSafeCall(ast, expr, args) {
30339
30151
  if (this.config.strictSafeNavigationTypes) {
30340
- const call = import_typescript83.default.factory.createCallExpression(import_typescript83.default.factory.createNonNullExpression(expr), void 0, args);
30341
- return import_typescript83.default.factory.createParenthesizedExpression(import_typescript83.default.factory.createConditionalExpression(NULL_AS_ANY, void 0, call, void 0, UNDEFINED));
30152
+ const call = import_typescript81.default.factory.createCallExpression(import_typescript81.default.factory.createNonNullExpression(expr), void 0, args);
30153
+ return import_typescript81.default.factory.createParenthesizedExpression(import_typescript81.default.factory.createConditionalExpression(NULL_AS_ANY, void 0, call, void 0, UNDEFINED));
30342
30154
  }
30343
30155
  if (VeSafeLhsInferenceBugDetector.veWillInferAnyFor(ast)) {
30344
- return import_typescript83.default.factory.createCallExpression(tsCastToAny(expr), void 0, args);
30156
+ return import_typescript81.default.factory.createCallExpression(tsCastToAny(expr), void 0, args);
30345
30157
  }
30346
- return tsCastToAny(import_typescript83.default.factory.createCallExpression(import_typescript83.default.factory.createNonNullExpression(expr), void 0, args));
30158
+ return tsCastToAny(import_typescript81.default.factory.createCallExpression(import_typescript81.default.factory.createNonNullExpression(expr), void 0, args));
30347
30159
  }
30348
30160
  };
30349
30161
  var VeSafeLhsInferenceBugDetector = class {
@@ -30451,7 +30263,7 @@ function generateTypeCheckBlock(env, ref, name, meta, domSchemaChecker, oobRecor
30451
30263
  const tcb = new Context2(env, domSchemaChecker, oobRecorder, meta.id, meta.boundTarget, meta.pipes, meta.schemas, meta.isStandalone);
30452
30264
  const scope = Scope2.forNodes(tcb, null, tcb.boundTarget.target.template, null);
30453
30265
  const ctxRawType = env.referenceType(ref);
30454
- if (!import_typescript84.default.isTypeReferenceNode(ctxRawType)) {
30266
+ if (!import_typescript82.default.isTypeReferenceNode(ctxRawType)) {
30455
30267
  throw new Error(`Expected TypeReferenceNode when referencing the ctx param for ${ref.debugName}`);
30456
30268
  }
30457
30269
  let typeParameters = void 0;
@@ -30463,24 +30275,24 @@ function generateTypeCheckBlock(env, ref, name, meta, domSchemaChecker, oobRecor
30463
30275
  switch (genericContextBehavior) {
30464
30276
  case TcbGenericContextBehavior.UseEmitter:
30465
30277
  typeParameters = new TypeParameterEmitter(ref.node.typeParameters, env.reflector).emit((typeRef) => env.referenceType(typeRef));
30466
- typeArguments = typeParameters.map((param) => import_typescript84.default.factory.createTypeReferenceNode(param.name));
30278
+ typeArguments = typeParameters.map((param) => import_typescript82.default.factory.createTypeReferenceNode(param.name));
30467
30279
  break;
30468
30280
  case TcbGenericContextBehavior.CopyClassNodes:
30469
30281
  typeParameters = [...ref.node.typeParameters];
30470
- typeArguments = typeParameters.map((param) => import_typescript84.default.factory.createTypeReferenceNode(param.name));
30282
+ typeArguments = typeParameters.map((param) => import_typescript82.default.factory.createTypeReferenceNode(param.name));
30471
30283
  break;
30472
30284
  case TcbGenericContextBehavior.FallbackToAny:
30473
- typeArguments = ref.node.typeParameters.map(() => import_typescript84.default.factory.createKeywordTypeNode(import_typescript84.default.SyntaxKind.AnyKeyword));
30285
+ typeArguments = ref.node.typeParameters.map(() => import_typescript82.default.factory.createKeywordTypeNode(import_typescript82.default.SyntaxKind.AnyKeyword));
30474
30286
  break;
30475
30287
  }
30476
30288
  }
30477
30289
  const paramList = [tcbThisParam(ctxRawType.typeName, typeArguments)];
30478
30290
  const scopeStatements = scope.render();
30479
- const innerBody = import_typescript84.default.factory.createBlock([
30291
+ const innerBody = import_typescript82.default.factory.createBlock([
30480
30292
  ...env.getPreludeStatements(),
30481
30293
  ...scopeStatements
30482
30294
  ]);
30483
- const body = import_typescript84.default.factory.createBlock([import_typescript84.default.factory.createIfStatement(import_typescript84.default.factory.createTrue(), innerBody, void 0)]);
30295
+ const body = import_typescript82.default.factory.createBlock([import_typescript82.default.factory.createIfStatement(import_typescript82.default.factory.createTrue(), innerBody, void 0)]);
30484
30296
  const fnDecl = createFunctionDeclaration(
30485
30297
  void 0,
30486
30298
  void 0,
@@ -30530,7 +30342,7 @@ var TcbVariableOp = class extends TcbOp {
30530
30342
  execute() {
30531
30343
  const ctx = this.scope.resolve(this.template);
30532
30344
  const id = this.tcb.allocateId();
30533
- const initializer = import_typescript84.default.factory.createPropertyAccessExpression(
30345
+ const initializer = import_typescript82.default.factory.createPropertyAccessExpression(
30534
30346
  ctx,
30535
30347
  this.variable.value || "$implicit"
30536
30348
  );
@@ -30556,7 +30368,7 @@ var TcbTemplateContextOp = class extends TcbOp {
30556
30368
  }
30557
30369
  execute() {
30558
30370
  const ctx = this.tcb.allocateId();
30559
- const type = import_typescript84.default.factory.createKeywordTypeNode(import_typescript84.default.SyntaxKind.AnyKeyword);
30371
+ const type = import_typescript82.default.factory.createKeywordTypeNode(import_typescript82.default.SyntaxKind.AnyKeyword);
30560
30372
  this.scope.addStatement(tsDeclareVariable(ctx, type));
30561
30373
  return ctx;
30562
30374
  }
@@ -30609,16 +30421,16 @@ var TcbTemplateBodyOp = class extends TcbOp {
30609
30421
  }
30610
30422
  let guard = null;
30611
30423
  if (directiveGuards.length > 0) {
30612
- guard = directiveGuards.reduce((expr, dirGuard) => import_typescript84.default.factory.createBinaryExpression(expr, import_typescript84.default.SyntaxKind.AmpersandAmpersandToken, dirGuard), directiveGuards.pop());
30424
+ guard = directiveGuards.reduce((expr, dirGuard) => import_typescript82.default.factory.createBinaryExpression(expr, import_typescript82.default.SyntaxKind.AmpersandAmpersandToken, dirGuard), directiveGuards.pop());
30613
30425
  }
30614
30426
  const tmplScope = Scope2.forNodes(this.tcb, this.scope, this.template, guard);
30615
30427
  const statements = tmplScope.render();
30616
30428
  if (statements.length === 0) {
30617
30429
  return null;
30618
30430
  }
30619
- let tmplBlock = import_typescript84.default.factory.createBlock(statements);
30431
+ let tmplBlock = import_typescript82.default.factory.createBlock(statements);
30620
30432
  if (guard !== null) {
30621
- tmplBlock = import_typescript84.default.factory.createIfStatement(guard, tmplBlock);
30433
+ tmplBlock = import_typescript82.default.factory.createIfStatement(guard, tmplBlock);
30622
30434
  }
30623
30435
  this.scope.addStatement(tmplBlock);
30624
30436
  return null;
@@ -30636,7 +30448,7 @@ var TcbTextInterpolationOp = class extends TcbOp {
30636
30448
  }
30637
30449
  execute() {
30638
30450
  const expr = tcbExpression(this.binding.value, this.tcb, this.scope);
30639
- this.scope.addStatement(import_typescript84.default.factory.createExpressionStatement(expr));
30451
+ this.scope.addStatement(import_typescript82.default.factory.createExpressionStatement(expr));
30640
30452
  return null;
30641
30453
  }
30642
30454
  };
@@ -30658,11 +30470,11 @@ var TcbDirectiveTypeOpBase = class extends TcbOp {
30658
30470
  if (this.dir.isGeneric === false || dirRef.node.typeParameters === void 0) {
30659
30471
  type = rawType;
30660
30472
  } else {
30661
- if (!import_typescript84.default.isTypeReferenceNode(rawType)) {
30473
+ if (!import_typescript82.default.isTypeReferenceNode(rawType)) {
30662
30474
  throw new Error(`Expected TypeReferenceNode when referencing the type for ${this.dir.ref.debugName}`);
30663
30475
  }
30664
- const typeArguments = dirRef.node.typeParameters.map(() => import_typescript84.default.factory.createKeywordTypeNode(import_typescript84.default.SyntaxKind.AnyKeyword));
30665
- type = import_typescript84.default.factory.createTypeReferenceNode(rawType.typeName, typeArguments);
30476
+ const typeArguments = dirRef.node.typeParameters.map(() => import_typescript82.default.factory.createKeywordTypeNode(import_typescript82.default.SyntaxKind.AnyKeyword));
30477
+ type = import_typescript82.default.factory.createTypeReferenceNode(rawType.typeName, typeArguments);
30666
30478
  }
30667
30479
  const id = this.tcb.allocateId();
30668
30480
  addExpressionIdentifier(type, ExpressionIdentifier.DIRECTIVE);
@@ -30703,11 +30515,11 @@ var TcbReferenceOp = class extends TcbOp {
30703
30515
  const id = this.tcb.allocateId();
30704
30516
  let initializer = this.target instanceof Template || this.target instanceof Element ? this.scope.resolve(this.target) : this.scope.resolve(this.host, this.target);
30705
30517
  if (this.target instanceof Element && !this.tcb.env.config.checkTypeOfDomReferences || !this.tcb.env.config.checkTypeOfNonDomReferences) {
30706
- initializer = import_typescript84.default.factory.createAsExpression(initializer, import_typescript84.default.factory.createKeywordTypeNode(import_typescript84.default.SyntaxKind.AnyKeyword));
30518
+ initializer = import_typescript82.default.factory.createAsExpression(initializer, import_typescript82.default.factory.createKeywordTypeNode(import_typescript82.default.SyntaxKind.AnyKeyword));
30707
30519
  } else if (this.target instanceof Template) {
30708
- initializer = import_typescript84.default.factory.createAsExpression(initializer, import_typescript84.default.factory.createKeywordTypeNode(import_typescript84.default.SyntaxKind.AnyKeyword));
30709
- initializer = import_typescript84.default.factory.createAsExpression(initializer, this.tcb.env.referenceExternalType("@angular/core", "TemplateRef", [DYNAMIC_TYPE]));
30710
- initializer = import_typescript84.default.factory.createParenthesizedExpression(initializer);
30520
+ initializer = import_typescript82.default.factory.createAsExpression(initializer, import_typescript82.default.factory.createKeywordTypeNode(import_typescript82.default.SyntaxKind.AnyKeyword));
30521
+ initializer = import_typescript82.default.factory.createAsExpression(initializer, this.tcb.env.referenceExternalType("@angular/core", "TemplateRef", [DYNAMIC_TYPE]));
30522
+ initializer = import_typescript82.default.factory.createParenthesizedExpression(initializer);
30711
30523
  }
30712
30524
  addParseSpanInfo(initializer, this.node.sourceSpan);
30713
30525
  addParseSpanInfo(id, this.node.keySpan);
@@ -30797,7 +30609,7 @@ var TcbDirectiveInputsOp = class extends TcbOp {
30797
30609
  let target;
30798
30610
  if (this.dir.coercedInputFields.has(fieldName)) {
30799
30611
  const dirTypeRef = this.tcb.env.referenceType(this.dir.ref);
30800
- if (!import_typescript84.default.isTypeReferenceNode(dirTypeRef)) {
30612
+ if (!import_typescript82.default.isTypeReferenceNode(dirTypeRef)) {
30801
30613
  throw new Error(`Expected TypeReferenceNode from reference to ${this.dir.ref.debugName}`);
30802
30614
  }
30803
30615
  const id = this.tcb.allocateId();
@@ -30812,10 +30624,10 @@ var TcbDirectiveInputsOp = class extends TcbOp {
30812
30624
  }
30813
30625
  const id = this.tcb.allocateId();
30814
30626
  const dirTypeRef = this.tcb.env.referenceType(this.dir.ref);
30815
- if (!import_typescript84.default.isTypeReferenceNode(dirTypeRef)) {
30627
+ if (!import_typescript82.default.isTypeReferenceNode(dirTypeRef)) {
30816
30628
  throw new Error(`Expected TypeReferenceNode from reference to ${this.dir.ref.debugName}`);
30817
30629
  }
30818
- const type = import_typescript84.default.factory.createIndexedAccessTypeNode(import_typescript84.default.factory.createTypeQueryNode(dirId), import_typescript84.default.factory.createLiteralTypeNode(import_typescript84.default.factory.createStringLiteral(fieldName)));
30630
+ const type = import_typescript82.default.factory.createIndexedAccessTypeNode(import_typescript82.default.factory.createTypeQueryNode(dirId), import_typescript82.default.factory.createLiteralTypeNode(import_typescript82.default.factory.createStringLiteral(fieldName)));
30819
30631
  const temp = tsDeclareVariable(id, type);
30820
30632
  this.scope.addStatement(temp);
30821
30633
  target = id;
@@ -30823,18 +30635,18 @@ var TcbDirectiveInputsOp = class extends TcbOp {
30823
30635
  if (dirId === null) {
30824
30636
  dirId = this.scope.resolve(this.node, this.dir);
30825
30637
  }
30826
- target = this.dir.stringLiteralInputFields.has(fieldName) ? import_typescript84.default.factory.createElementAccessExpression(dirId, import_typescript84.default.factory.createStringLiteral(fieldName)) : import_typescript84.default.factory.createPropertyAccessExpression(dirId, import_typescript84.default.factory.createIdentifier(fieldName));
30638
+ target = this.dir.stringLiteralInputFields.has(fieldName) ? import_typescript82.default.factory.createElementAccessExpression(dirId, import_typescript82.default.factory.createStringLiteral(fieldName)) : import_typescript82.default.factory.createPropertyAccessExpression(dirId, import_typescript82.default.factory.createIdentifier(fieldName));
30827
30639
  }
30828
30640
  if (input.attribute.keySpan !== void 0) {
30829
30641
  addParseSpanInfo(target, input.attribute.keySpan);
30830
30642
  }
30831
- assignment = import_typescript84.default.factory.createBinaryExpression(target, import_typescript84.default.SyntaxKind.EqualsToken, assignment);
30643
+ assignment = import_typescript82.default.factory.createBinaryExpression(target, import_typescript82.default.SyntaxKind.EqualsToken, assignment);
30832
30644
  }
30833
30645
  addParseSpanInfo(assignment, input.attribute.sourceSpan);
30834
30646
  if (!this.tcb.env.config.checkTypeOfAttributes && input.attribute instanceof TextAttribute) {
30835
30647
  markIgnoreDiagnostics(assignment);
30836
30648
  }
30837
- this.scope.addStatement(import_typescript84.default.factory.createExpressionStatement(assignment));
30649
+ this.scope.addStatement(import_typescript82.default.factory.createExpressionStatement(assignment));
30838
30650
  }
30839
30651
  return null;
30840
30652
  }
@@ -30853,7 +30665,7 @@ var TcbDirectiveCtorCircularFallbackOp = class extends TcbOp {
30853
30665
  execute() {
30854
30666
  const id = this.tcb.allocateId();
30855
30667
  const typeCtor = this.tcb.env.typeCtorFor(this.dir);
30856
- const circularPlaceholder = import_typescript84.default.factory.createCallExpression(typeCtor, void 0, [import_typescript84.default.factory.createNonNullExpression(import_typescript84.default.factory.createNull())]);
30668
+ const circularPlaceholder = import_typescript82.default.factory.createCallExpression(typeCtor, void 0, [import_typescript82.default.factory.createNonNullExpression(import_typescript82.default.factory.createNull())]);
30857
30669
  this.scope.addStatement(tsCreateVariable(id, circularPlaceholder));
30858
30670
  return id;
30859
30671
  }
@@ -30921,15 +30733,15 @@ var TcbUnclaimedInputsOp = class extends TcbOp {
30921
30733
  elId = this.scope.resolve(this.element);
30922
30734
  }
30923
30735
  const propertyName = (_a = ATTR_TO_PROP.get(binding.name)) != null ? _a : binding.name;
30924
- const prop = import_typescript84.default.factory.createElementAccessExpression(elId, import_typescript84.default.factory.createStringLiteral(propertyName));
30925
- const stmt = import_typescript84.default.factory.createBinaryExpression(prop, import_typescript84.default.SyntaxKind.EqualsToken, wrapForDiagnostics(expr));
30736
+ const prop = import_typescript82.default.factory.createElementAccessExpression(elId, import_typescript82.default.factory.createStringLiteral(propertyName));
30737
+ const stmt = import_typescript82.default.factory.createBinaryExpression(prop, import_typescript82.default.SyntaxKind.EqualsToken, wrapForDiagnostics(expr));
30926
30738
  addParseSpanInfo(stmt, binding.sourceSpan);
30927
- this.scope.addStatement(import_typescript84.default.factory.createExpressionStatement(stmt));
30739
+ this.scope.addStatement(import_typescript82.default.factory.createExpressionStatement(stmt));
30928
30740
  } else {
30929
- this.scope.addStatement(import_typescript84.default.factory.createExpressionStatement(expr));
30741
+ this.scope.addStatement(import_typescript82.default.factory.createExpressionStatement(expr));
30930
30742
  }
30931
30743
  } else {
30932
- this.scope.addStatement(import_typescript84.default.factory.createExpressionStatement(expr));
30744
+ this.scope.addStatement(import_typescript82.default.factory.createExpressionStatement(expr));
30933
30745
  }
30934
30746
  }
30935
30747
  return null;
@@ -30961,18 +30773,18 @@ var TcbDirectiveOutputsOp = class extends TcbOp {
30961
30773
  if (dirId === null) {
30962
30774
  dirId = this.scope.resolve(this.node, this.dir);
30963
30775
  }
30964
- const outputField = import_typescript84.default.factory.createElementAccessExpression(dirId, import_typescript84.default.factory.createStringLiteral(field));
30776
+ const outputField = import_typescript82.default.factory.createElementAccessExpression(dirId, import_typescript82.default.factory.createStringLiteral(field));
30965
30777
  addParseSpanInfo(outputField, output.keySpan);
30966
30778
  if (this.tcb.env.config.checkTypeOfOutputEvents) {
30967
30779
  const handler = tcbCreateEventHandler(output, this.tcb, this.scope, 0);
30968
- const subscribeFn = import_typescript84.default.factory.createPropertyAccessExpression(outputField, "subscribe");
30969
- const call = import_typescript84.default.factory.createCallExpression(subscribeFn, void 0, [handler]);
30780
+ const subscribeFn = import_typescript82.default.factory.createPropertyAccessExpression(outputField, "subscribe");
30781
+ const call = import_typescript82.default.factory.createCallExpression(subscribeFn, void 0, [handler]);
30970
30782
  addParseSpanInfo(call, output.sourceSpan);
30971
- this.scope.addStatement(import_typescript84.default.factory.createExpressionStatement(call));
30783
+ this.scope.addStatement(import_typescript82.default.factory.createExpressionStatement(call));
30972
30784
  } else {
30973
- this.scope.addStatement(import_typescript84.default.factory.createExpressionStatement(outputField));
30785
+ this.scope.addStatement(import_typescript82.default.factory.createExpressionStatement(outputField));
30974
30786
  const handler = tcbCreateEventHandler(output, this.tcb, this.scope, 1);
30975
- this.scope.addStatement(import_typescript84.default.factory.createExpressionStatement(handler));
30787
+ this.scope.addStatement(import_typescript82.default.factory.createExpressionStatement(handler));
30976
30788
  }
30977
30789
  ExpressionSemanticVisitor.visit(output.handler, this.tcb.id, this.tcb.boundTarget, this.tcb.oobRecorder);
30978
30790
  }
@@ -31005,24 +30817,24 @@ var TcbUnclaimedOutputsOp = class extends TcbOp {
31005
30817
  if (output.type === 1) {
31006
30818
  const eventType = this.tcb.env.config.checkTypeOfAnimationEvents ? this.tcb.env.referenceExternalType("@angular/animations", "AnimationEvent") : 1;
31007
30819
  const handler = tcbCreateEventHandler(output, this.tcb, this.scope, eventType);
31008
- this.scope.addStatement(import_typescript84.default.factory.createExpressionStatement(handler));
30820
+ this.scope.addStatement(import_typescript82.default.factory.createExpressionStatement(handler));
31009
30821
  } else if (this.tcb.env.config.checkTypeOfDomEvents) {
31010
30822
  const handler = tcbCreateEventHandler(output, this.tcb, this.scope, 0);
31011
30823
  if (elId === null) {
31012
30824
  elId = this.scope.resolve(this.element);
31013
30825
  }
31014
- const propertyAccess = import_typescript84.default.factory.createPropertyAccessExpression(elId, "addEventListener");
30826
+ const propertyAccess = import_typescript82.default.factory.createPropertyAccessExpression(elId, "addEventListener");
31015
30827
  addParseSpanInfo(propertyAccess, output.keySpan);
31016
- const call = import_typescript84.default.factory.createCallExpression(
30828
+ const call = import_typescript82.default.factory.createCallExpression(
31017
30829
  propertyAccess,
31018
30830
  void 0,
31019
- [import_typescript84.default.factory.createStringLiteral(output.name), handler]
30831
+ [import_typescript82.default.factory.createStringLiteral(output.name), handler]
31020
30832
  );
31021
30833
  addParseSpanInfo(call, output.sourceSpan);
31022
- this.scope.addStatement(import_typescript84.default.factory.createExpressionStatement(call));
30834
+ this.scope.addStatement(import_typescript82.default.factory.createExpressionStatement(call));
31023
30835
  } else {
31024
30836
  const handler = tcbCreateEventHandler(output, this.tcb, this.scope, 1);
31025
- this.scope.addStatement(import_typescript84.default.factory.createExpressionStatement(handler));
30837
+ this.scope.addStatement(import_typescript82.default.factory.createExpressionStatement(handler));
31026
30838
  }
31027
30839
  ExpressionSemanticVisitor.visit(output.handler, this.tcb.id, this.tcb.boundTarget, this.tcb.oobRecorder);
31028
30840
  }
@@ -31036,15 +30848,15 @@ var TcbComponentContextCompletionOp = class extends TcbOp {
31036
30848
  this.optional = false;
31037
30849
  }
31038
30850
  execute() {
31039
- const ctx = import_typescript84.default.factory.createThis();
31040
- const ctxDot = import_typescript84.default.factory.createPropertyAccessExpression(ctx, "");
30851
+ const ctx = import_typescript82.default.factory.createThis();
30852
+ const ctxDot = import_typescript82.default.factory.createPropertyAccessExpression(ctx, "");
31041
30853
  markIgnoreDiagnostics(ctxDot);
31042
30854
  addExpressionIdentifier(ctxDot, ExpressionIdentifier.COMPONENT_COMPLETION);
31043
- this.scope.addStatement(import_typescript84.default.factory.createExpressionStatement(ctxDot));
30855
+ this.scope.addStatement(import_typescript82.default.factory.createExpressionStatement(ctxDot));
31044
30856
  return null;
31045
30857
  }
31046
30858
  };
31047
- var INFER_TYPE_FOR_CIRCULAR_OP_EXPR = import_typescript84.default.factory.createNonNullExpression(import_typescript84.default.factory.createNull());
30859
+ var INFER_TYPE_FOR_CIRCULAR_OP_EXPR = import_typescript82.default.factory.createNonNullExpression(import_typescript82.default.factory.createNull());
31048
30860
  var Context2 = class {
31049
30861
  constructor(env, domSchemaChecker, oobRecorder, id, boundTarget, pipes, schemas, hostIsStandalone) {
31050
30862
  this.env = env;
@@ -31058,7 +30870,7 @@ var Context2 = class {
31058
30870
  this.nextId = 1;
31059
30871
  }
31060
30872
  allocateId() {
31061
- return import_typescript84.default.factory.createIdentifier(`_t${this.nextId++}`);
30873
+ return import_typescript82.default.factory.createIdentifier(`_t${this.nextId++}`);
31062
30874
  }
31063
30875
  getPipeByName(name) {
31064
30876
  if (!this.pipes.has(name)) {
@@ -31111,16 +30923,16 @@ var Scope2 = class {
31111
30923
  const res = this.resolveLocal(node, directive);
31112
30924
  if (res !== null) {
31113
30925
  let clone;
31114
- if (import_typescript84.default.isIdentifier(res)) {
31115
- clone = import_typescript84.default.factory.createIdentifier(res.text);
31116
- } else if (import_typescript84.default.isNonNullExpression(res)) {
31117
- clone = import_typescript84.default.factory.createNonNullExpression(res.expression);
30926
+ if (import_typescript82.default.isIdentifier(res)) {
30927
+ clone = import_typescript82.default.factory.createIdentifier(res.text);
30928
+ } else if (import_typescript82.default.isNonNullExpression(res)) {
30929
+ clone = import_typescript82.default.factory.createNonNullExpression(res.expression);
31118
30930
  } else {
31119
30931
  throw new Error(`Could not resolve ${node} to an Identifier or a NonNullExpression`);
31120
30932
  }
31121
- import_typescript84.default.setOriginalNode(clone, res);
30933
+ import_typescript82.default.setOriginalNode(clone, res);
31122
30934
  clone.parent = clone.parent;
31123
- return import_typescript84.default.setSyntheticTrailingComments(clone, []);
30935
+ return import_typescript82.default.setSyntheticTrailingComments(clone, []);
31124
30936
  } else if (this.parent !== null) {
31125
30937
  return this.parent.resolve(node, directive);
31126
30938
  } else {
@@ -31147,7 +30959,7 @@ var Scope2 = class {
31147
30959
  } else if (parentGuards === null) {
31148
30960
  return this.guard;
31149
30961
  } else {
31150
- return import_typescript84.default.factory.createBinaryExpression(parentGuards, import_typescript84.default.SyntaxKind.AmpersandAmpersandToken, this.guard);
30962
+ return import_typescript82.default.factory.createBinaryExpression(parentGuards, import_typescript82.default.SyntaxKind.AmpersandAmpersandToken, this.guard);
31151
30963
  }
31152
30964
  }
31153
30965
  resolveLocal(ref, directive) {
@@ -31332,7 +31144,7 @@ function tcbThisParam(name, typeArguments) {
31332
31144
  void 0,
31333
31145
  "this",
31334
31146
  void 0,
31335
- import_typescript84.default.factory.createTypeReferenceNode(name, typeArguments),
31147
+ import_typescript82.default.factory.createTypeReferenceNode(name, typeArguments),
31336
31148
  void 0
31337
31149
  );
31338
31150
  }
@@ -31357,11 +31169,11 @@ var TcbExpressionTranslator = class {
31357
31169
  return null;
31358
31170
  }
31359
31171
  const expr = this.translate(ast.value);
31360
- const result = import_typescript84.default.factory.createParenthesizedExpression(import_typescript84.default.factory.createBinaryExpression(target, import_typescript84.default.SyntaxKind.EqualsToken, expr));
31172
+ const result = import_typescript82.default.factory.createParenthesizedExpression(import_typescript82.default.factory.createBinaryExpression(target, import_typescript82.default.SyntaxKind.EqualsToken, expr));
31361
31173
  addParseSpanInfo(result, ast.sourceSpan);
31362
31174
  return result;
31363
31175
  } else if (ast instanceof ImplicitReceiver) {
31364
- return import_typescript84.default.factory.createThis();
31176
+ return import_typescript82.default.factory.createThis();
31365
31177
  } else if (ast instanceof BindingPipe) {
31366
31178
  const expr = this.translate(ast.exp);
31367
31179
  const pipeRef = this.tcb.getPipeByName(ast.name);
@@ -31373,12 +31185,12 @@ var TcbExpressionTranslator = class {
31373
31185
  pipe = this.tcb.env.pipeInst(pipeRef);
31374
31186
  }
31375
31187
  const args = ast.args.map((arg) => this.translate(arg));
31376
- let methodAccess = import_typescript84.default.factory.createPropertyAccessExpression(pipe, "transform");
31188
+ let methodAccess = import_typescript82.default.factory.createPropertyAccessExpression(pipe, "transform");
31377
31189
  addParseSpanInfo(methodAccess, ast.nameSpan);
31378
31190
  if (!this.tcb.env.config.checkTypeOfPipes) {
31379
- methodAccess = import_typescript84.default.factory.createAsExpression(methodAccess, import_typescript84.default.factory.createKeywordTypeNode(import_typescript84.default.SyntaxKind.AnyKeyword));
31191
+ methodAccess = import_typescript82.default.factory.createAsExpression(methodAccess, import_typescript82.default.factory.createKeywordTypeNode(import_typescript82.default.SyntaxKind.AnyKeyword));
31380
31192
  }
31381
- const result = import_typescript84.default.factory.createCallExpression(
31193
+ const result = import_typescript82.default.factory.createCallExpression(
31382
31194
  methodAccess,
31383
31195
  void 0,
31384
31196
  [expr, ...args]
@@ -31388,8 +31200,8 @@ var TcbExpressionTranslator = class {
31388
31200
  } else if ((ast instanceof Call || ast instanceof SafeCall) && (ast.receiver instanceof PropertyRead || ast.receiver instanceof SafePropertyRead)) {
31389
31201
  if (ast.receiver.receiver instanceof ImplicitReceiver && !(ast.receiver.receiver instanceof ThisReceiver) && ast.receiver.name === "$any" && ast.args.length === 1) {
31390
31202
  const expr = this.translate(ast.args[0]);
31391
- const exprAsAny = import_typescript84.default.factory.createAsExpression(expr, import_typescript84.default.factory.createKeywordTypeNode(import_typescript84.default.SyntaxKind.AnyKeyword));
31392
- const result = import_typescript84.default.factory.createParenthesizedExpression(exprAsAny);
31203
+ const exprAsAny = import_typescript82.default.factory.createAsExpression(expr, import_typescript82.default.factory.createKeywordTypeNode(import_typescript82.default.SyntaxKind.AnyKeyword));
31204
+ const result = import_typescript82.default.factory.createParenthesizedExpression(exprAsAny);
31393
31205
  addParseSpanInfo(result, ast.sourceSpan);
31394
31206
  return result;
31395
31207
  }
@@ -31400,7 +31212,7 @@ var TcbExpressionTranslator = class {
31400
31212
  const method = wrapForDiagnostics(receiver);
31401
31213
  addParseSpanInfo(method, ast.receiver.nameSpan);
31402
31214
  const args = ast.args.map((arg) => this.translate(arg));
31403
- const node = import_typescript84.default.factory.createCallExpression(method, void 0, args);
31215
+ const node = import_typescript82.default.factory.createCallExpression(method, void 0, args);
31404
31216
  addParseSpanInfo(node, ast.sourceSpan);
31405
31217
  return node;
31406
31218
  } else {
@@ -31420,20 +31232,20 @@ var TcbExpressionTranslator = class {
31420
31232
  function tcbCallTypeCtor(dir, tcb, inputs) {
31421
31233
  const typeCtor = tcb.env.typeCtorFor(dir);
31422
31234
  const members = inputs.map((input) => {
31423
- const propertyName = import_typescript84.default.factory.createStringLiteral(input.field);
31235
+ const propertyName = import_typescript82.default.factory.createStringLiteral(input.field);
31424
31236
  if (input.type === "binding") {
31425
31237
  const expr = widenBinding(input.expression, tcb);
31426
- const assignment = import_typescript84.default.factory.createPropertyAssignment(propertyName, wrapForDiagnostics(expr));
31238
+ const assignment = import_typescript82.default.factory.createPropertyAssignment(propertyName, wrapForDiagnostics(expr));
31427
31239
  addParseSpanInfo(assignment, input.sourceSpan);
31428
31240
  return assignment;
31429
31241
  } else {
31430
- return import_typescript84.default.factory.createPropertyAssignment(propertyName, NULL_AS_ANY);
31242
+ return import_typescript82.default.factory.createPropertyAssignment(propertyName, NULL_AS_ANY);
31431
31243
  }
31432
31244
  });
31433
- return import_typescript84.default.factory.createCallExpression(
31245
+ return import_typescript82.default.factory.createCallExpression(
31434
31246
  typeCtor,
31435
31247
  void 0,
31436
- [import_typescript84.default.factory.createObjectLiteralExpression(members)]
31248
+ [import_typescript82.default.factory.createObjectLiteralExpression(members)]
31437
31249
  );
31438
31250
  }
31439
31251
  function getBoundInputs(directive, node, tcb) {
@@ -31460,17 +31272,17 @@ function translateInput(attr, tcb, scope) {
31460
31272
  if (attr instanceof BoundAttribute) {
31461
31273
  return tcbExpression(attr.value, tcb, scope);
31462
31274
  } else {
31463
- return import_typescript84.default.factory.createStringLiteral(attr.value);
31275
+ return import_typescript82.default.factory.createStringLiteral(attr.value);
31464
31276
  }
31465
31277
  }
31466
31278
  function widenBinding(expr, tcb) {
31467
31279
  if (!tcb.env.config.checkTypeOfInputBindings) {
31468
31280
  return tsCastToAny(expr);
31469
31281
  } else if (!tcb.env.config.strictNullInputBindings) {
31470
- if (import_typescript84.default.isObjectLiteralExpression(expr) || import_typescript84.default.isArrayLiteralExpression(expr)) {
31282
+ if (import_typescript82.default.isObjectLiteralExpression(expr) || import_typescript82.default.isArrayLiteralExpression(expr)) {
31471
31283
  return expr;
31472
31284
  } else {
31473
- return import_typescript84.default.factory.createNonNullExpression(expr);
31285
+ return import_typescript82.default.factory.createNonNullExpression(expr);
31474
31286
  }
31475
31287
  } else {
31476
31288
  return expr;
@@ -31483,14 +31295,14 @@ function tcbCreateEventHandler(event, tcb, scope, eventType) {
31483
31295
  if (eventType === 0) {
31484
31296
  eventParamType = void 0;
31485
31297
  } else if (eventType === 1) {
31486
- eventParamType = import_typescript84.default.factory.createKeywordTypeNode(import_typescript84.default.SyntaxKind.AnyKeyword);
31298
+ eventParamType = import_typescript82.default.factory.createKeywordTypeNode(import_typescript82.default.SyntaxKind.AnyKeyword);
31487
31299
  } else {
31488
31300
  eventParamType = eventType;
31489
31301
  }
31490
31302
  const guards = scope.guards();
31491
- let body = import_typescript84.default.factory.createExpressionStatement(handler);
31303
+ let body = import_typescript82.default.factory.createExpressionStatement(handler);
31492
31304
  if (guards !== null) {
31493
- body = import_typescript84.default.factory.createIfStatement(guards, body);
31305
+ body = import_typescript82.default.factory.createIfStatement(guards, body);
31494
31306
  }
31495
31307
  const eventParam = createParameterDeclaration(
31496
31308
  void 0,
@@ -31500,13 +31312,13 @@ function tcbCreateEventHandler(event, tcb, scope, eventType) {
31500
31312
  eventParamType
31501
31313
  );
31502
31314
  addExpressionIdentifier(eventParam, ExpressionIdentifier.EVENT_PARAMETER);
31503
- return import_typescript84.default.factory.createArrowFunction(
31315
+ return import_typescript82.default.factory.createArrowFunction(
31504
31316
  void 0,
31505
31317
  void 0,
31506
31318
  [eventParam],
31507
- import_typescript84.default.factory.createKeywordTypeNode(import_typescript84.default.SyntaxKind.AnyKeyword),
31319
+ import_typescript82.default.factory.createKeywordTypeNode(import_typescript82.default.SyntaxKind.AnyKeyword),
31508
31320
  void 0,
31509
- import_typescript84.default.factory.createBlock([body])
31321
+ import_typescript82.default.factory.createBlock([body])
31510
31322
  );
31511
31323
  }
31512
31324
  function tcbEventHandlerExpression(ast, tcb, scope) {
@@ -31535,7 +31347,7 @@ function isSplitTwoWayBinding(inputName, output, inputs, tcb) {
31535
31347
  var TcbEventHandlerTranslator = class extends TcbExpressionTranslator {
31536
31348
  resolve(ast) {
31537
31349
  if (ast instanceof PropertyRead && ast.receiver instanceof ImplicitReceiver && !(ast.receiver instanceof ThisReceiver) && ast.name === EVENT_PARAMETER) {
31538
- const event = import_typescript84.default.factory.createIdentifier(EVENT_PARAMETER);
31350
+ const event = import_typescript82.default.factory.createIdentifier(EVENT_PARAMETER);
31539
31351
  addParseSpanInfo(event, ast.nameSpan);
31540
31352
  return event;
31541
31353
  }
@@ -31544,32 +31356,32 @@ var TcbEventHandlerTranslator = class extends TcbExpressionTranslator {
31544
31356
  };
31545
31357
 
31546
31358
  // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_check_file.mjs
31547
- var import_typescript85 = __toESM(require("typescript"), 1);
31359
+ var import_typescript83 = __toESM(require("typescript"), 1);
31548
31360
  var TypeCheckFile = class extends Environment {
31549
31361
  constructor(fileName, config, refEmitter, reflector, compilerHost) {
31550
- super(config, new ImportManager(new NoopImportRewriter(), "i"), refEmitter, reflector, import_typescript85.default.createSourceFile(compilerHost.getCanonicalFileName(fileName), "", import_typescript85.default.ScriptTarget.Latest, true));
31362
+ super(config, new ImportManager(new NoopImportRewriter(), "i"), refEmitter, reflector, import_typescript83.default.createSourceFile(compilerHost.getCanonicalFileName(fileName), "", import_typescript83.default.ScriptTarget.Latest, true));
31551
31363
  this.fileName = fileName;
31552
31364
  this.nextTcbId = 1;
31553
31365
  this.tcbStatements = [];
31554
31366
  }
31555
31367
  addTypeCheckBlock(ref, meta, domSchemaChecker, oobRecorder, genericContextBehavior) {
31556
- const fnId = import_typescript85.default.factory.createIdentifier(`_tcb${this.nextTcbId++}`);
31368
+ const fnId = import_typescript83.default.factory.createIdentifier(`_tcb${this.nextTcbId++}`);
31557
31369
  const fn2 = generateTypeCheckBlock(this, ref, fnId, meta, domSchemaChecker, oobRecorder, genericContextBehavior);
31558
31370
  this.tcbStatements.push(fn2);
31559
31371
  }
31560
31372
  render(removeComments) {
31561
31373
  let source = this.importManager.getAllImports(this.contextFile.fileName).map((i) => `import * as ${i.qualifier.text} from '${i.specifier}';`).join("\n") + "\n\n";
31562
- const printer = import_typescript85.default.createPrinter({ removeComments });
31374
+ const printer = import_typescript83.default.createPrinter({ removeComments });
31563
31375
  source += "\n";
31564
31376
  for (const stmt of this.pipeInstStatements) {
31565
- source += printer.printNode(import_typescript85.default.EmitHint.Unspecified, stmt, this.contextFile) + "\n";
31377
+ source += printer.printNode(import_typescript83.default.EmitHint.Unspecified, stmt, this.contextFile) + "\n";
31566
31378
  }
31567
31379
  for (const stmt of this.typeCtorStatements) {
31568
- source += printer.printNode(import_typescript85.default.EmitHint.Unspecified, stmt, this.contextFile) + "\n";
31380
+ source += printer.printNode(import_typescript83.default.EmitHint.Unspecified, stmt, this.contextFile) + "\n";
31569
31381
  }
31570
31382
  source += "\n";
31571
31383
  for (const stmt of this.tcbStatements) {
31572
- source += printer.printNode(import_typescript85.default.EmitHint.Unspecified, stmt, this.contextFile) + "\n";
31384
+ source += printer.printNode(import_typescript83.default.EmitHint.Unspecified, stmt, this.contextFile) + "\n";
31573
31385
  }
31574
31386
  source += "\nexport const IS_A_MODULE = true;\n";
31575
31387
  return source;
@@ -31685,7 +31497,7 @@ var TypeCheckContextImpl = class {
31685
31497
  const importManager = new ImportManager(new NoopImportRewriter(), "_i");
31686
31498
  const ops = this.opMap.get(sf).sort(orderOps);
31687
31499
  const textParts = splitStringAtPoints(sf.text, ops.map((op) => op.splitPoint));
31688
- const printer = import_typescript86.default.createPrinter({ omitTrailingSemicolon: true });
31500
+ const printer = import_typescript84.default.createPrinter({ omitTrailingSemicolon: true });
31689
31501
  let code = textParts[0];
31690
31502
  ops.forEach((op, idx) => {
31691
31503
  const text = op.execute(importManager, sf, this.refEmitter, printer);
@@ -31766,7 +31578,7 @@ var TypeCheckContextImpl = class {
31766
31578
  if (span.start.offset === span.end.offset) {
31767
31579
  span.end.offset++;
31768
31580
  }
31769
- return makeTemplateDiagnostic(templateId, sourceMapping, span, import_typescript86.default.DiagnosticCategory.Error, ngErrorCode(ErrorCode.TEMPLATE_PARSE_ERROR), error2.msg);
31581
+ return makeTemplateDiagnostic(templateId, sourceMapping, span, import_typescript84.default.DiagnosticCategory.Error, ngErrorCode(ErrorCode.TEMPLATE_PARSE_ERROR), error2.msg);
31770
31582
  });
31771
31583
  }
31772
31584
  };
@@ -31784,9 +31596,9 @@ var InlineTcbOp = class {
31784
31596
  }
31785
31597
  execute(im, sf, refEmitter, printer) {
31786
31598
  const env = new Environment(this.config, im, refEmitter, this.reflector, sf);
31787
- const fnName = import_typescript86.default.factory.createIdentifier(`_tcb_${this.ref.node.pos}`);
31599
+ const fnName = import_typescript84.default.factory.createIdentifier(`_tcb_${this.ref.node.pos}`);
31788
31600
  const fn2 = generateTypeCheckBlock(env, this.ref, fnName, this.meta, this.domSchemaChecker, this.oobRecorder, TcbGenericContextBehavior.CopyClassNodes);
31789
- return printer.printNode(import_typescript86.default.EmitHint.Unspecified, fn2, sf);
31601
+ return printer.printNode(import_typescript84.default.EmitHint.Unspecified, fn2, sf);
31790
31602
  }
31791
31603
  };
31792
31604
  var TypeCtorOp = class {
@@ -31799,7 +31611,7 @@ var TypeCtorOp = class {
31799
31611
  }
31800
31612
  execute(im, sf, refEmitter, printer) {
31801
31613
  const tcb = generateInlineTypeCtor(this.ref.node, this.meta);
31802
- return printer.printNode(import_typescript86.default.EmitHint.Unspecified, tcb, sf);
31614
+ return printer.printNode(import_typescript84.default.EmitHint.Unspecified, tcb, sf);
31803
31615
  }
31804
31616
  };
31805
31617
  function orderOps(op1, op2) {
@@ -31910,7 +31722,7 @@ var TemplateSourceManager = class {
31910
31722
  };
31911
31723
 
31912
31724
  // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/template_symbol_builder.mjs
31913
- var import_typescript87 = __toESM(require("typescript"), 1);
31725
+ var import_typescript85 = __toESM(require("typescript"), 1);
31914
31726
  var SymbolBuilder = class {
31915
31727
  constructor(tcbPath, tcbIsShim, typeCheckBlock, templateData, componentScopeReader, getTypeChecker) {
31916
31728
  this.tcbPath = tcbPath;
@@ -31954,7 +31766,7 @@ var SymbolBuilder = class {
31954
31766
  getSymbolOfElement(element) {
31955
31767
  var _a;
31956
31768
  const elementSourceSpan = (_a = element.startSourceSpan) != null ? _a : element.sourceSpan;
31957
- const node = findFirstMatchingNode(this.typeCheckBlock, { withSpan: elementSourceSpan, filter: import_typescript87.default.isVariableDeclaration });
31769
+ const node = findFirstMatchingNode(this.typeCheckBlock, { withSpan: elementSourceSpan, filter: import_typescript85.default.isVariableDeclaration });
31958
31770
  if (node === null) {
31959
31771
  return null;
31960
31772
  }
@@ -31973,12 +31785,12 @@ var SymbolBuilder = class {
31973
31785
  var _a;
31974
31786
  const elementSourceSpan = (_a = element.startSourceSpan) != null ? _a : element.sourceSpan;
31975
31787
  const tcbSourceFile = this.typeCheckBlock.getSourceFile();
31976
- const isDirectiveDeclaration = (node) => (import_typescript87.default.isTypeNode(node) || import_typescript87.default.isIdentifier(node)) && import_typescript87.default.isVariableDeclaration(node.parent) && hasExpressionIdentifier(tcbSourceFile, node, ExpressionIdentifier.DIRECTIVE);
31788
+ const isDirectiveDeclaration = (node) => (import_typescript85.default.isTypeNode(node) || import_typescript85.default.isIdentifier(node)) && import_typescript85.default.isVariableDeclaration(node.parent) && hasExpressionIdentifier(tcbSourceFile, node, ExpressionIdentifier.DIRECTIVE);
31977
31789
  const nodes = findAllMatchingNodes(this.typeCheckBlock, { withSpan: elementSourceSpan, filter: isDirectiveDeclaration });
31978
31790
  const symbols = [];
31979
31791
  for (const node of nodes) {
31980
31792
  const symbol = this.getSymbolOfTsNode(node.parent);
31981
- if (symbol === null || !isSymbolWithValueDeclaration(symbol.tsSymbol) || !import_typescript87.default.isClassDeclaration(symbol.tsSymbol.valueDeclaration)) {
31793
+ if (symbol === null || !isSymbolWithValueDeclaration(symbol.tsSymbol) || !import_typescript85.default.isClassDeclaration(symbol.tsSymbol.valueDeclaration)) {
31982
31794
  continue;
31983
31795
  }
31984
31796
  const meta = this.getDirectiveMeta(element, symbol.tsSymbol.valueDeclaration);
@@ -32005,7 +31817,7 @@ var SymbolBuilder = class {
32005
31817
  }
32006
31818
  addHostDirectiveSymbols(host, hostDirectives, symbols) {
32007
31819
  for (const current of hostDirectives) {
32008
- if (!import_typescript87.default.isClassDeclaration(current.directive.node)) {
31820
+ if (!import_typescript85.default.isClassDeclaration(current.directive.node)) {
32009
31821
  continue;
32010
31822
  }
32011
31823
  const symbol = this.getSymbolOfTsNode(current.directive.node);
@@ -32077,17 +31889,17 @@ var SymbolBuilder = class {
32077
31889
  if (!isAccessExpression(n)) {
32078
31890
  return false;
32079
31891
  }
32080
- if (import_typescript87.default.isPropertyAccessExpression(n)) {
31892
+ if (import_typescript85.default.isPropertyAccessExpression(n)) {
32081
31893
  return n.name.getText() === expectedAccess;
32082
31894
  } else {
32083
- return import_typescript87.default.isStringLiteral(n.argumentExpression) && n.argumentExpression.text === expectedAccess;
31895
+ return import_typescript85.default.isStringLiteral(n.argumentExpression) && n.argumentExpression.text === expectedAccess;
32084
31896
  }
32085
31897
  }
32086
31898
  const outputFieldAccesses = findAllMatchingNodes(this.typeCheckBlock, { withSpan: eventBinding.keySpan, filter });
32087
31899
  const bindings = [];
32088
31900
  for (const outputFieldAccess of outputFieldAccesses) {
32089
31901
  if (consumer instanceof Template || consumer instanceof Element) {
32090
- if (!import_typescript87.default.isPropertyAccessExpression(outputFieldAccess)) {
31902
+ if (!import_typescript85.default.isPropertyAccessExpression(outputFieldAccess)) {
32091
31903
  continue;
32092
31904
  }
32093
31905
  const addEventListener = outputFieldAccess.name;
@@ -32110,7 +31922,7 @@ var SymbolBuilder = class {
32110
31922
  }
32111
31923
  });
32112
31924
  } else {
32113
- if (!import_typescript87.default.isElementAccessExpression(outputFieldAccess)) {
31925
+ if (!import_typescript85.default.isElementAccessExpression(outputFieldAccess)) {
32114
31926
  continue;
32115
31927
  }
32116
31928
  const tsSymbol = this.getTypeChecker().getSymbolAtLocation(outputFieldAccess.argumentExpression);
@@ -32182,7 +31994,7 @@ var SymbolBuilder = class {
32182
31994
  return null;
32183
31995
  }
32184
31996
  const [declaration] = tsSymbol.declarations;
32185
- if (!import_typescript87.default.isVariableDeclaration(declaration) || !hasExpressionIdentifier(
31997
+ if (!import_typescript85.default.isVariableDeclaration(declaration) || !hasExpressionIdentifier(
32186
31998
  declaration.getSourceFile(),
32187
31999
  (_a = declaration.type) != null ? _a : declaration.name,
32188
32000
  ExpressionIdentifier.DIRECTIVE
@@ -32190,7 +32002,7 @@ var SymbolBuilder = class {
32190
32002
  return null;
32191
32003
  }
32192
32004
  const symbol = this.getSymbolOfTsNode(declaration);
32193
- if (symbol === null || !isSymbolWithValueDeclaration(symbol.tsSymbol) || !import_typescript87.default.isClassDeclaration(symbol.tsSymbol.valueDeclaration)) {
32005
+ if (symbol === null || !isSymbolWithValueDeclaration(symbol.tsSymbol) || !import_typescript85.default.isClassDeclaration(symbol.tsSymbol.valueDeclaration)) {
32194
32006
  return null;
32195
32007
  }
32196
32008
  const ref = new Reference2(symbol.tsSymbol.valueDeclaration);
@@ -32210,7 +32022,7 @@ var SymbolBuilder = class {
32210
32022
  };
32211
32023
  }
32212
32024
  getSymbolOfVariable(variable2) {
32213
- const node = findFirstMatchingNode(this.typeCheckBlock, { withSpan: variable2.sourceSpan, filter: import_typescript87.default.isVariableDeclaration });
32025
+ const node = findFirstMatchingNode(this.typeCheckBlock, { withSpan: variable2.sourceSpan, filter: import_typescript85.default.isVariableDeclaration });
32214
32026
  if (node === null || node.initializer === void 0) {
32215
32027
  return null;
32216
32028
  }
@@ -32233,11 +32045,11 @@ var SymbolBuilder = class {
32233
32045
  }
32234
32046
  getSymbolOfReference(ref) {
32235
32047
  const target = this.templateData.boundTarget.getReferenceTarget(ref);
32236
- let node = findFirstMatchingNode(this.typeCheckBlock, { withSpan: ref.sourceSpan, filter: import_typescript87.default.isVariableDeclaration });
32048
+ let node = findFirstMatchingNode(this.typeCheckBlock, { withSpan: ref.sourceSpan, filter: import_typescript85.default.isVariableDeclaration });
32237
32049
  if (node === null || target === null || node.initializer === void 0) {
32238
32050
  return null;
32239
32051
  }
32240
- const originalDeclaration = import_typescript87.default.isParenthesizedExpression(node.initializer) && import_typescript87.default.isAsExpression(node.initializer.expression) ? this.getTypeChecker().getSymbolAtLocation(node.name) : this.getTypeChecker().getSymbolAtLocation(node.initializer);
32052
+ const originalDeclaration = import_typescript85.default.isParenthesizedExpression(node.initializer) && import_typescript85.default.isAsExpression(node.initializer.expression) ? this.getTypeChecker().getSymbolAtLocation(node.name) : this.getTypeChecker().getSymbolAtLocation(node.initializer);
32241
32053
  if (originalDeclaration === void 0 || originalDeclaration.valueDeclaration === void 0) {
32242
32054
  return null;
32243
32055
  }
@@ -32261,7 +32073,7 @@ var SymbolBuilder = class {
32261
32073
  referenceVarLocation: referenceVarTcbLocation
32262
32074
  };
32263
32075
  } else {
32264
- if (!import_typescript87.default.isClassDeclaration(target.directive.ref.node)) {
32076
+ if (!import_typescript85.default.isClassDeclaration(target.directive.ref.node)) {
32265
32077
  return null;
32266
32078
  }
32267
32079
  return {
@@ -32276,7 +32088,7 @@ var SymbolBuilder = class {
32276
32088
  }
32277
32089
  }
32278
32090
  getSymbolOfPipe(expression) {
32279
- const methodAccess = findFirstMatchingNode(this.typeCheckBlock, { withSpan: expression.nameSpan, filter: import_typescript87.default.isPropertyAccessExpression });
32091
+ const methodAccess = findFirstMatchingNode(this.typeCheckBlock, { withSpan: expression.nameSpan, filter: import_typescript85.default.isPropertyAccessExpression });
32280
32092
  if (methodAccess === null) {
32281
32093
  return null;
32282
32094
  }
@@ -32315,7 +32127,7 @@ var SymbolBuilder = class {
32315
32127
  }
32316
32128
  let node = null;
32317
32129
  if (expression instanceof PropertyRead) {
32318
- node = findFirstMatchingNode(this.typeCheckBlock, { withSpan, filter: import_typescript87.default.isPropertyAccessExpression });
32130
+ node = findFirstMatchingNode(this.typeCheckBlock, { withSpan, filter: import_typescript85.default.isPropertyAccessExpression });
32319
32131
  }
32320
32132
  if (node === null) {
32321
32133
  node = findFirstMatchingNode(this.typeCheckBlock, { withSpan, filter: anyNodeFilter });
@@ -32323,10 +32135,10 @@ var SymbolBuilder = class {
32323
32135
  if (node === null) {
32324
32136
  return null;
32325
32137
  }
32326
- while (import_typescript87.default.isParenthesizedExpression(node)) {
32138
+ while (import_typescript85.default.isParenthesizedExpression(node)) {
32327
32139
  node = node.expression;
32328
32140
  }
32329
- if (expression instanceof SafePropertyRead && import_typescript87.default.isConditionalExpression(node)) {
32141
+ if (expression instanceof SafePropertyRead && import_typescript85.default.isConditionalExpression(node)) {
32330
32142
  const whenTrueSymbol = this.getSymbolOfTsNode(node.whenTrue);
32331
32143
  if (whenTrueSymbol === null) {
32332
32144
  return null;
@@ -32342,13 +32154,13 @@ var SymbolBuilder = class {
32342
32154
  }
32343
32155
  getSymbolOfTsNode(node) {
32344
32156
  var _a;
32345
- while (import_typescript87.default.isParenthesizedExpression(node)) {
32157
+ while (import_typescript85.default.isParenthesizedExpression(node)) {
32346
32158
  node = node.expression;
32347
32159
  }
32348
32160
  let tsSymbol;
32349
- if (import_typescript87.default.isPropertyAccessExpression(node)) {
32161
+ if (import_typescript85.default.isPropertyAccessExpression(node)) {
32350
32162
  tsSymbol = this.getTypeChecker().getSymbolAtLocation(node.name);
32351
- } else if (import_typescript87.default.isElementAccessExpression(node)) {
32163
+ } else if (import_typescript85.default.isElementAccessExpression(node)) {
32352
32164
  tsSymbol = this.getTypeChecker().getSymbolAtLocation(node.argumentExpression);
32353
32165
  } else {
32354
32166
  tsSymbol = this.getTypeChecker().getSymbolAtLocation(node);
@@ -32366,13 +32178,13 @@ var SymbolBuilder = class {
32366
32178
  };
32367
32179
  }
32368
32180
  getTcbPositionForNode(node) {
32369
- if (import_typescript87.default.isTypeReferenceNode(node)) {
32181
+ if (import_typescript85.default.isTypeReferenceNode(node)) {
32370
32182
  return this.getTcbPositionForNode(node.typeName);
32371
- } else if (import_typescript87.default.isQualifiedName(node)) {
32183
+ } else if (import_typescript85.default.isQualifiedName(node)) {
32372
32184
  return node.right.getStart();
32373
- } else if (import_typescript87.default.isPropertyAccessExpression(node)) {
32185
+ } else if (import_typescript85.default.isPropertyAccessExpression(node)) {
32374
32186
  return node.name.getStart();
32375
- } else if (import_typescript87.default.isElementAccessExpression(node)) {
32187
+ } else if (import_typescript85.default.isElementAccessExpression(node)) {
32376
32188
  return node.argumentExpression.getStart();
32377
32189
  } else {
32378
32190
  return node.getStart();
@@ -33257,7 +33069,7 @@ var factory3 = {
33257
33069
  };
33258
33070
 
33259
33071
  // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/nullish_coalescing_not_nullable/index.mjs
33260
- var import_typescript90 = __toESM(require("typescript"), 1);
33072
+ var import_typescript88 = __toESM(require("typescript"), 1);
33261
33073
  var NullishCoalescingNotNullableCheck = class extends TemplateCheckWithVisitor {
33262
33074
  constructor() {
33263
33075
  super(...arguments);
@@ -33271,7 +33083,7 @@ var NullishCoalescingNotNullableCheck = class extends TemplateCheckWithVisitor {
33271
33083
  return [];
33272
33084
  }
33273
33085
  const typeLeft = symbolLeft.tsType;
33274
- if (typeLeft.flags & (import_typescript90.default.TypeFlags.Any | import_typescript90.default.TypeFlags.Unknown)) {
33086
+ if (typeLeft.flags & (import_typescript88.default.TypeFlags.Any | import_typescript88.default.TypeFlags.Unknown)) {
33275
33087
  return [];
33276
33088
  }
33277
33089
  if (typeLeft.getNonNullableType() !== typeLeft)
@@ -33301,7 +33113,7 @@ var factory4 = {
33301
33113
  };
33302
33114
 
33303
33115
  // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/optional_chain_not_nullable/index.mjs
33304
- var import_typescript91 = __toESM(require("typescript"), 1);
33116
+ var import_typescript89 = __toESM(require("typescript"), 1);
33305
33117
  var OptionalChainNotNullableCheck = class extends TemplateCheckWithVisitor {
33306
33118
  constructor() {
33307
33119
  super(...arguments);
@@ -33315,7 +33127,7 @@ var OptionalChainNotNullableCheck = class extends TemplateCheckWithVisitor {
33315
33127
  return [];
33316
33128
  }
33317
33129
  const typeLeft = symbolLeft.tsType;
33318
- if (typeLeft.flags & (import_typescript91.default.TypeFlags.Any | import_typescript91.default.TypeFlags.Unknown)) {
33130
+ if (typeLeft.flags & (import_typescript89.default.TypeFlags.Any | import_typescript89.default.TypeFlags.Unknown)) {
33319
33131
  return [];
33320
33132
  }
33321
33133
  if (typeLeft.getNonNullableType() !== typeLeft)
@@ -33407,7 +33219,7 @@ var factory7 = {
33407
33219
  };
33408
33220
 
33409
33221
  // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/src/extended_template_checker.mjs
33410
- var import_typescript92 = __toESM(require("typescript"), 1);
33222
+ var import_typescript90 = __toESM(require("typescript"), 1);
33411
33223
 
33412
33224
  // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/core/api/src/public_options.mjs
33413
33225
  var DiagnosticCategoryLabel;
@@ -33455,9 +33267,9 @@ var ExtendedTemplateCheckerImpl = class {
33455
33267
  function diagnosticLabelToCategory(label) {
33456
33268
  switch (label) {
33457
33269
  case DiagnosticCategoryLabel.Warning:
33458
- return import_typescript92.default.DiagnosticCategory.Warning;
33270
+ return import_typescript90.default.DiagnosticCategory.Warning;
33459
33271
  case DiagnosticCategoryLabel.Error:
33460
- return import_typescript92.default.DiagnosticCategory.Error;
33272
+ return import_typescript90.default.DiagnosticCategory.Error;
33461
33273
  case DiagnosticCategoryLabel.Suppress:
33462
33274
  return null;
33463
33275
  default:
@@ -33553,7 +33365,7 @@ var NgCompiler = class {
33553
33365
  this.currentProgram = inputProgram;
33554
33366
  this.closureCompilerEnabled = !!this.options.annotateForClosureCompiler;
33555
33367
  this.entryPoint = adapter.entryPoint !== null ? getSourceFileOrNull(inputProgram, adapter.entryPoint) : null;
33556
- const moduleResolutionCache = import_typescript93.default.createModuleResolutionCache(
33368
+ const moduleResolutionCache = import_typescript91.default.createModuleResolutionCache(
33557
33369
  this.adapter.getCurrentDirectory(),
33558
33370
  this.adapter.getCanonicalFileName.bind(this.adapter)
33559
33371
  );
@@ -33600,7 +33412,7 @@ var NgCompiler = class {
33600
33412
  }
33601
33413
  for (const clazz of classesToUpdate) {
33602
33414
  this.compilation.traitCompiler.updateResources(clazz);
33603
- if (!import_typescript93.default.isClassDeclaration(clazz)) {
33415
+ if (!import_typescript91.default.isClassDeclaration(clazz)) {
33604
33416
  continue;
33605
33417
  }
33606
33418
  this.compilation.templateTypeChecker.invalidateClass(clazz);
@@ -33738,9 +33550,6 @@ var NgCompiler = class {
33738
33550
  if (compilation.aliasingHost !== null && compilation.aliasingHost.aliasExportsInDts) {
33739
33551
  afterDeclarations.push(aliasTransformFactory(compilation.traitCompiler.exportStatements));
33740
33552
  }
33741
- if (this.adapter.factoryTracker !== null) {
33742
- before.push(generatedFactoryTransform(this.adapter.factoryTracker.sourceInfo, importRewriter));
33743
- }
33744
33553
  return { transformers: { before, afterDeclarations } };
33745
33554
  }
33746
33555
  getIndexedComponents() {
@@ -33983,7 +33792,7 @@ var NgCompiler = class {
33983
33792
  new DirectiveDecoratorHandler(reflector, evaluator, metaRegistry, ngModuleScopeRegistry, metaReader, injectableRegistry, refEmitter, isCore, strictCtorDeps, semanticDepGraphUpdater, this.closureCompilerEnabled, false, this.delegatingPerfRecorder),
33984
33793
  new PipeDecoratorHandler(reflector, evaluator, metaRegistry, ngModuleScopeRegistry, injectableRegistry, isCore, this.delegatingPerfRecorder),
33985
33794
  new InjectableDecoratorHandler(reflector, evaluator, isCore, strictCtorDeps, injectableRegistry, this.delegatingPerfRecorder),
33986
- new NgModuleDecoratorHandler(reflector, evaluator, metaReader, metaRegistry, ngModuleScopeRegistry, referencesRegistry, isCore, refEmitter, this.adapter.factoryTracker, this.closureCompilerEnabled, (_a = this.options.onlyPublishPublicTypingsForNgModules) != null ? _a : false, injectableRegistry, this.delegatingPerfRecorder)
33795
+ new NgModuleDecoratorHandler(reflector, evaluator, metaReader, metaRegistry, ngModuleScopeRegistry, referencesRegistry, isCore, refEmitter, this.closureCompilerEnabled, (_a = this.options.onlyPublishPublicTypingsForNgModules) != null ? _a : false, injectableRegistry, this.delegatingPerfRecorder)
33987
33796
  ];
33988
33797
  const traitCompiler = new TraitCompiler(handlers, reflector, this.delegatingPerfRecorder, this.incrementalCompilation, this.options.compileNonExportedClasses !== false, compilationMode, dtsTransforms, semanticDepGraphUpdater, this.adapter);
33989
33798
  const notifyingDriver = new NotifyingProgramDriverWrapper(this.programDriver, (program) => {
@@ -34015,18 +33824,18 @@ function isAngularCorePackage(program) {
34015
33824
  return false;
34016
33825
  }
34017
33826
  return r3Symbols.statements.some((stmt) => {
34018
- if (!import_typescript93.default.isVariableStatement(stmt)) {
33827
+ if (!import_typescript91.default.isVariableStatement(stmt)) {
34019
33828
  return false;
34020
33829
  }
34021
- const modifiers = import_typescript93.default.getModifiers(stmt);
34022
- if (modifiers === void 0 || !modifiers.some((mod) => mod.kind === import_typescript93.default.SyntaxKind.ExportKeyword)) {
33830
+ const modifiers = import_typescript91.default.getModifiers(stmt);
33831
+ if (modifiers === void 0 || !modifiers.some((mod) => mod.kind === import_typescript91.default.SyntaxKind.ExportKeyword)) {
34023
33832
  return false;
34024
33833
  }
34025
33834
  return stmt.declarationList.declarations.some((decl) => {
34026
- if (!import_typescript93.default.isIdentifier(decl.name) || decl.name.text !== "ITS_JUST_ANGULAR") {
33835
+ if (!import_typescript91.default.isIdentifier(decl.name) || decl.name.text !== "ITS_JUST_ANGULAR") {
34027
33836
  return false;
34028
33837
  }
34029
- if (decl.initializer === void 0 || decl.initializer.kind !== import_typescript93.default.SyntaxKind.TrueKeyword) {
33838
+ if (decl.initializer === void 0 || decl.initializer.kind !== import_typescript91.default.SyntaxKind.TrueKeyword) {
34030
33839
  return false;
34031
33840
  }
34032
33841
  return true;
@@ -34040,7 +33849,7 @@ function* verifyCompatibleTypeCheckOptions(options) {
34040
33849
  var _a, _b, _c;
34041
33850
  if (options.fullTemplateTypeCheck === false && options.strictTemplates === true) {
34042
33851
  yield makeConfigDiagnostic({
34043
- category: import_typescript93.default.DiagnosticCategory.Error,
33852
+ category: import_typescript91.default.DiagnosticCategory.Error,
34044
33853
  code: ErrorCode.CONFIG_STRICT_TEMPLATES_IMPLIES_FULL_TEMPLATE_TYPECHECK,
34045
33854
  messageText: `
34046
33855
  Angular compiler option "strictTemplates" is enabled, however "fullTemplateTypeCheck" is disabled.
@@ -34059,7 +33868,7 @@ https://angular.io/guide/template-typecheck
34059
33868
  }
34060
33869
  if (options.extendedDiagnostics && options.strictTemplates === false) {
34061
33870
  yield makeConfigDiagnostic({
34062
- category: import_typescript93.default.DiagnosticCategory.Error,
33871
+ category: import_typescript91.default.DiagnosticCategory.Error,
34063
33872
  code: ErrorCode.CONFIG_EXTENDED_DIAGNOSTICS_IMPLIES_STRICT_TEMPLATES,
34064
33873
  messageText: `
34065
33874
  Angular compiler option "extendedDiagnostics" is configured, however "strictTemplates" is disabled.
@@ -34076,7 +33885,7 @@ One of the following actions is required:
34076
33885
  const defaultCategory = (_a = options.extendedDiagnostics) == null ? void 0 : _a.defaultCategory;
34077
33886
  if (defaultCategory && !allowedCategoryLabels.includes(defaultCategory)) {
34078
33887
  yield makeConfigDiagnostic({
34079
- category: import_typescript93.default.DiagnosticCategory.Error,
33888
+ category: import_typescript91.default.DiagnosticCategory.Error,
34080
33889
  code: ErrorCode.CONFIG_EXTENDED_DIAGNOSTICS_UNKNOWN_CATEGORY_LABEL,
34081
33890
  messageText: `
34082
33891
  Angular compiler option "extendedDiagnostics.defaultCategory" has an unknown diagnostic category: "${defaultCategory}".
@@ -34090,7 +33899,7 @@ ${allowedCategoryLabels.join("\n")}
34090
33899
  for (const [checkName, category] of Object.entries((_c = (_b = options.extendedDiagnostics) == null ? void 0 : _b.checks) != null ? _c : {})) {
34091
33900
  if (!allExtendedDiagnosticNames.includes(checkName)) {
34092
33901
  yield makeConfigDiagnostic({
34093
- category: import_typescript93.default.DiagnosticCategory.Error,
33902
+ category: import_typescript91.default.DiagnosticCategory.Error,
34094
33903
  code: ErrorCode.CONFIG_EXTENDED_DIAGNOSTICS_UNKNOWN_CHECK,
34095
33904
  messageText: `
34096
33905
  Angular compiler option "extendedDiagnostics.checks" has an unknown check: "${checkName}".
@@ -34102,7 +33911,7 @@ ${allExtendedDiagnosticNames.join("\n")}
34102
33911
  }
34103
33912
  if (!allowedCategoryLabels.includes(category)) {
34104
33913
  yield makeConfigDiagnostic({
34105
- category: import_typescript93.default.DiagnosticCategory.Error,
33914
+ category: import_typescript91.default.DiagnosticCategory.Error,
34106
33915
  code: ErrorCode.CONFIG_EXTENDED_DIAGNOSTICS_UNKNOWN_CATEGORY_LABEL,
34107
33916
  messageText: `
34108
33917
  Angular compiler option "extendedDiagnostics.checks['${checkName}']" has an unknown diagnostic category: "${category}".
@@ -34132,7 +33941,7 @@ var ReferenceGraphAdapter = class {
34132
33941
  for (const { node } of references) {
34133
33942
  let sourceFile = node.getSourceFile();
34134
33943
  if (sourceFile === void 0) {
34135
- sourceFile = import_typescript93.default.getOriginalNode(node).getSourceFile();
33944
+ sourceFile = import_typescript91.default.getOriginalNode(node).getSourceFile();
34136
33945
  }
34137
33946
  if (sourceFile === void 0 || !isDtsPath(sourceFile.fileName)) {
34138
33947
  this.graph.add(source, node);
@@ -34171,7 +33980,7 @@ function versionMapFromProgram(program, driver) {
34171
33980
  }
34172
33981
 
34173
33982
  // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/core/src/host.mjs
34174
- var import_typescript95 = __toESM(require("typescript"), 1);
33983
+ var import_typescript93 = __toESM(require("typescript"), 1);
34175
33984
  var DelegatingCompilerHost2 = class {
34176
33985
  constructor(delegate) {
34177
33986
  this.delegate = delegate;
@@ -34208,13 +34017,11 @@ var DelegatingCompilerHost2 = class {
34208
34017
  }
34209
34018
  };
34210
34019
  var NgCompilerHost = class extends DelegatingCompilerHost2 {
34211
- constructor(delegate, inputFiles, rootDirs, shimAdapter, shimTagger, entryPoint, factoryTracker, diagnostics) {
34020
+ constructor(delegate, inputFiles, rootDirs, shimAdapter, shimTagger, entryPoint, diagnostics) {
34212
34021
  super(delegate);
34213
34022
  this.shimAdapter = shimAdapter;
34214
34023
  this.shimTagger = shimTagger;
34215
- this.factoryTracker = null;
34216
34024
  this.entryPoint = null;
34217
- this.factoryTracker = factoryTracker;
34218
34025
  this.entryPoint = entryPoint;
34219
34026
  this.constructionDiagnostics = diagnostics;
34220
34027
  this.inputFiles = [...inputFiles, ...shimAdapter.extraInputFiles];
@@ -34233,20 +34040,8 @@ var NgCompilerHost = class extends DelegatingCompilerHost2 {
34233
34040
  this.shimTagger.finalize();
34234
34041
  }
34235
34042
  static wrap(delegate, inputFiles, options, oldProgram) {
34236
- const allowEmptyCodegenFiles = options.allowEmptyCodegenFiles || false;
34237
- const shouldGenerateFactoryShims = options.generateNgFactoryShims !== void 0 ? options.generateNgFactoryShims : allowEmptyCodegenFiles;
34238
- const shouldGenerateSummaryShims = options.generateNgSummaryShims !== void 0 ? options.generateNgSummaryShims : allowEmptyCodegenFiles;
34239
34043
  const topLevelShimGenerators = [];
34240
34044
  const perFileShimGenerators = [];
34241
- if (shouldGenerateSummaryShims) {
34242
- perFileShimGenerators.push(new SummaryGenerator());
34243
- }
34244
- let factoryTracker = null;
34245
- if (shouldGenerateFactoryShims) {
34246
- const factoryGenerator = new FactoryGenerator();
34247
- perFileShimGenerators.push(factoryGenerator);
34248
- factoryTracker = factoryGenerator;
34249
- }
34250
34045
  const rootDirs = getRootDirs(delegate, options);
34251
34046
  perFileShimGenerators.push(new TypeCheckShimGenerator());
34252
34047
  let diagnostics = [];
@@ -34262,7 +34057,7 @@ var NgCompilerHost = class extends DelegatingCompilerHost2 {
34262
34057
  entryPoint = findFlatIndexEntryPoint(normalizedTsInputFiles);
34263
34058
  if (entryPoint === null) {
34264
34059
  diagnostics.push({
34265
- category: import_typescript95.default.DiagnosticCategory.Error,
34060
+ category: import_typescript93.default.DiagnosticCategory.Error,
34266
34061
  code: ngErrorCode(ErrorCode.CONFIG_FLAT_MODULE_NO_INDEX),
34267
34062
  file: void 0,
34268
34063
  start: void 0,
@@ -34278,7 +34073,7 @@ var NgCompilerHost = class extends DelegatingCompilerHost2 {
34278
34073
  }
34279
34074
  const shimAdapter = new ShimAdapter(delegate, normalizedTsInputFiles, topLevelShimGenerators, perFileShimGenerators, oldProgram);
34280
34075
  const shimTagger = new ShimReferenceTagger(perFileShimGenerators.map((gen) => gen.extensionPrefix));
34281
- return new NgCompilerHost(delegate, inputFiles, rootDirs, shimAdapter, shimTagger, entryPoint, factoryTracker, diagnostics);
34076
+ return new NgCompilerHost(delegate, inputFiles, rootDirs, shimAdapter, shimTagger, entryPoint, diagnostics);
34282
34077
  }
34283
34078
  isShim(sf) {
34284
34079
  return isShim(sf);
@@ -34305,10 +34100,10 @@ var NgCompilerHost = class extends DelegatingCompilerHost2 {
34305
34100
  return this.fileNameToModuleName !== void 0 ? this : null;
34306
34101
  }
34307
34102
  createCachedResolveModuleNamesFunction() {
34308
- const moduleResolutionCache = import_typescript95.default.createModuleResolutionCache(this.getCurrentDirectory(), this.getCanonicalFileName.bind(this));
34103
+ const moduleResolutionCache = import_typescript93.default.createModuleResolutionCache(this.getCurrentDirectory(), this.getCanonicalFileName.bind(this));
34309
34104
  return (moduleNames, containingFile, reusedNames, redirectedReference, options) => {
34310
34105
  return moduleNames.map((moduleName) => {
34311
- const module3 = import_typescript95.default.resolveModuleName(moduleName, containingFile, options, this, moduleResolutionCache, redirectedReference);
34106
+ const module3 = import_typescript93.default.resolveModuleName(moduleName, containingFile, options, this, moduleResolutionCache, redirectedReference);
34312
34107
  return module3.resolvedModule;
34313
34108
  });
34314
34109
  };
@@ -34329,7 +34124,7 @@ var NgtscProgram = class {
34329
34124
  if (reuseProgram !== void 0) {
34330
34125
  retagAllTsFiles(reuseProgram);
34331
34126
  }
34332
- this.tsProgram = perfRecorder.inPhase(PerfPhase.TypeScriptProgramCreate, () => import_typescript97.default.createProgram(this.host.inputFiles, options, this.host, reuseProgram));
34127
+ this.tsProgram = perfRecorder.inPhase(PerfPhase.TypeScriptProgramCreate, () => import_typescript95.default.createProgram(this.host.inputFiles, options, this.host, reuseProgram));
34333
34128
  perfRecorder.phase(PerfPhase.Unaccounted);
34334
34129
  perfRecorder.memory(PerfCheckpoint.TypeScriptProgramCreate);
34335
34130
  this.host.postProgramCreationCleanup();
@@ -34539,17 +34334,13 @@ function createProgram({ rootNames, options, host, oldProgram }) {
34539
34334
  }
34540
34335
 
34541
34336
  // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/perform_compile.mjs
34542
- var import_typescript99 = __toESM(require("typescript"), 1);
34337
+ var import_typescript97 = __toESM(require("typescript"), 1);
34543
34338
 
34544
34339
  // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/transformers/util.mjs
34545
- var import_typescript98 = __toESM(require("typescript"), 1);
34340
+ var import_typescript96 = __toESM(require("typescript"), 1);
34546
34341
 
34547
34342
  // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/transformers/downlevel_decorators_transform/downlevel_decorators_transform.mjs
34548
- var import_typescript101 = __toESM(require("typescript"), 1);
34549
-
34550
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/transformers/downlevel_decorators_transform/patch_alias_reference_resolution.mjs
34551
- var import_typescript100 = __toESM(require("typescript"), 1);
34552
- var patchedReferencedAliasesSymbol = Symbol("patchedReferencedAliases");
34343
+ var import_typescript98 = __toESM(require("typescript"), 1);
34553
34344
 
34554
34345
  // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/private/tooling.mjs
34555
34346
  var GLOBAL_DEFS_FOR_TERSER = {
@@ -34584,7 +34375,7 @@ setFileSystem(new NodeJSFileSystem());
34584
34375
  // bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/ng-generate/standalone-migration/index.mjs
34585
34376
  var import_fs2 = require("fs");
34586
34377
  var import_path8 = require("path");
34587
- var import_typescript113 = __toESM(require("typescript"), 1);
34378
+ var import_typescript110 = __toESM(require("typescript"), 1);
34588
34379
 
34589
34380
  // bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/utils/project_tsconfig_paths.mjs
34590
34381
  var import_core13 = require("@angular-devkit/core");
@@ -34668,23 +34459,23 @@ function getWorkspace(tree) {
34668
34459
 
34669
34460
  // bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/utils/typescript/compiler_host.mjs
34670
34461
  var import_path4 = require("path");
34671
- var import_typescript103 = __toESM(require("typescript"), 1);
34462
+ var import_typescript100 = __toESM(require("typescript"), 1);
34672
34463
 
34673
34464
  // bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/utils/typescript/parse_tsconfig.mjs
34674
34465
  var path2 = __toESM(require("path"), 1);
34675
- var import_typescript102 = __toESM(require("typescript"), 1);
34466
+ var import_typescript99 = __toESM(require("typescript"), 1);
34676
34467
  function parseTsconfigFile(tsconfigPath, basePath) {
34677
- const { config } = import_typescript102.default.readConfigFile(tsconfigPath, import_typescript102.default.sys.readFile);
34468
+ const { config } = import_typescript99.default.readConfigFile(tsconfigPath, import_typescript99.default.sys.readFile);
34678
34469
  const parseConfigHost = {
34679
- useCaseSensitiveFileNames: import_typescript102.default.sys.useCaseSensitiveFileNames,
34680
- fileExists: import_typescript102.default.sys.fileExists,
34681
- readDirectory: import_typescript102.default.sys.readDirectory,
34682
- readFile: import_typescript102.default.sys.readFile
34470
+ useCaseSensitiveFileNames: import_typescript99.default.sys.useCaseSensitiveFileNames,
34471
+ fileExists: import_typescript99.default.sys.fileExists,
34472
+ readDirectory: import_typescript99.default.sys.readDirectory,
34473
+ readFile: import_typescript99.default.sys.readFile
34683
34474
  };
34684
34475
  if (!path2.isAbsolute(basePath)) {
34685
34476
  throw Error("Unexpected relative base path has been specified.");
34686
34477
  }
34687
- return import_typescript102.default.parseJsonConfigFileContent(config, parseConfigHost, basePath, {});
34478
+ return import_typescript99.default.parseJsonConfigFileContent(config, parseConfigHost, basePath, {});
34688
34479
  }
34689
34480
 
34690
34481
  // bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/utils/typescript/compiler_host.mjs
@@ -34696,7 +34487,7 @@ function createProgramOptions(tree, tsconfigPath, basePath, fakeFileRead, additi
34696
34487
  return { rootNames: parsed.fileNames.concat(additionalFiles || []), options, host };
34697
34488
  }
34698
34489
  function createMigrationCompilerHost(tree, options, basePath, fakeRead) {
34699
- const host = import_typescript103.default.createCompilerHost(options, true);
34490
+ const host = import_typescript100.default.createCompilerHost(options, true);
34700
34491
  const defaultReadFile = host.readFile;
34701
34492
  host.readFile = (fileName) => {
34702
34493
  var _a;
@@ -34717,24 +34508,24 @@ function canMigrateFile(basePath, sourceFile, program) {
34717
34508
  }
34718
34509
 
34719
34510
  // bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/ng-generate/standalone-migration/prune-modules.mjs
34720
- var import_typescript109 = __toESM(require("typescript"), 1);
34511
+ var import_typescript106 = __toESM(require("typescript"), 1);
34721
34512
 
34722
34513
  // bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/utils/typescript/decorators.mjs
34723
- var import_typescript105 = __toESM(require("typescript"), 1);
34514
+ var import_typescript102 = __toESM(require("typescript"), 1);
34724
34515
 
34725
34516
  // bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/utils/typescript/imports.mjs
34726
- var import_typescript104 = __toESM(require("typescript"), 1);
34517
+ var import_typescript101 = __toESM(require("typescript"), 1);
34727
34518
  function getImportOfIdentifier(typeChecker, node) {
34728
34519
  const symbol = typeChecker.getSymbolAtLocation(node);
34729
34520
  if (!symbol || symbol.declarations === void 0 || !symbol.declarations.length) {
34730
34521
  return null;
34731
34522
  }
34732
34523
  const decl = symbol.declarations[0];
34733
- if (!import_typescript104.default.isImportSpecifier(decl)) {
34524
+ if (!import_typescript101.default.isImportSpecifier(decl)) {
34734
34525
  return null;
34735
34526
  }
34736
34527
  const importDecl = decl.parent.parent.parent;
34737
- if (!import_typescript104.default.isStringLiteral(importDecl.moduleSpecifier)) {
34528
+ if (!import_typescript101.default.isStringLiteral(importDecl.moduleSpecifier)) {
34738
34529
  return null;
34739
34530
  }
34740
34531
  return {
@@ -34746,10 +34537,10 @@ function getImportOfIdentifier(typeChecker, node) {
34746
34537
  function getImportSpecifier(sourceFile, moduleName, specifierName) {
34747
34538
  var _a;
34748
34539
  for (const node of sourceFile.statements) {
34749
- if (import_typescript104.default.isImportDeclaration(node) && import_typescript104.default.isStringLiteral(node.moduleSpecifier)) {
34540
+ if (import_typescript101.default.isImportDeclaration(node) && import_typescript101.default.isStringLiteral(node.moduleSpecifier)) {
34750
34541
  const isMatch = typeof moduleName === "string" ? node.moduleSpecifier.text === moduleName : moduleName.test(node.moduleSpecifier.text);
34751
34542
  const namedBindings = (_a = node.importClause) == null ? void 0 : _a.namedBindings;
34752
- if (isMatch && namedBindings && import_typescript104.default.isNamedImports(namedBindings)) {
34543
+ if (isMatch && namedBindings && import_typescript101.default.isNamedImports(namedBindings)) {
34753
34544
  const match = findImportSpecifier(namedBindings.elements, specifierName);
34754
34545
  if (match) {
34755
34546
  return match;
@@ -34768,7 +34559,7 @@ function findImportSpecifier(nodes, specifierName) {
34768
34559
 
34769
34560
  // bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/utils/typescript/decorators.mjs
34770
34561
  function getCallDecoratorImport(typeChecker, decorator) {
34771
- if (!import_typescript105.default.isCallExpression(decorator.expression) || !import_typescript105.default.isIdentifier(decorator.expression.expression)) {
34562
+ if (!import_typescript102.default.isCallExpression(decorator.expression) || !import_typescript102.default.isIdentifier(decorator.expression.expression)) {
34772
34563
  return null;
34773
34564
  }
34774
34565
  const identifier = decorator.expression.expression;
@@ -34786,10 +34577,10 @@ function getAngularDecorators(typeChecker, decorators) {
34786
34577
  }
34787
34578
 
34788
34579
  // bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/utils/typescript/nodes.mjs
34789
- var import_typescript106 = __toESM(require("typescript"), 1);
34580
+ var import_typescript103 = __toESM(require("typescript"), 1);
34790
34581
  function closestNode(node, predicate) {
34791
34582
  let current = node.parent;
34792
- while (current && !import_typescript106.default.isSourceFile(current)) {
34583
+ while (current && !import_typescript103.default.isSourceFile(current)) {
34793
34584
  if (predicate(current)) {
34794
34585
  return current;
34795
34586
  }
@@ -34800,11 +34591,11 @@ function closestNode(node, predicate) {
34800
34591
 
34801
34592
  // bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/ng-generate/standalone-migration/util.mjs
34802
34593
  var import_path6 = require("path");
34803
- var import_typescript108 = __toESM(require("typescript"), 1);
34594
+ var import_typescript105 = __toESM(require("typescript"), 1);
34804
34595
 
34805
34596
  // bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/utils/import_manager.mjs
34806
34597
  var import_path5 = require("path");
34807
- var import_typescript107 = __toESM(require("typescript"), 1);
34598
+ var import_typescript104 = __toESM(require("typescript"), 1);
34808
34599
  var IS_AFTER_TS_492 = isAfterVersion2(4, 9);
34809
34600
  var ImportManager2 = class {
34810
34601
  constructor(getUpdateRecorder, printer) {
@@ -34826,7 +34617,7 @@ var ImportManager2 = class {
34826
34617
  }
34827
34618
  for (let i = sourceFile.statements.length - 1; i >= 0; i--) {
34828
34619
  const statement = sourceFile.statements[i];
34829
- if (!import_typescript107.default.isImportDeclaration(statement) || !import_typescript107.default.isStringLiteral(statement.moduleSpecifier) || !statement.importClause) {
34620
+ if (!import_typescript104.default.isImportDeclaration(statement) || !import_typescript104.default.isStringLiteral(statement.moduleSpecifier) || !statement.importClause) {
34830
34621
  continue;
34831
34622
  }
34832
34623
  if (importStartIndex === 0) {
@@ -34838,9 +34629,9 @@ var ImportManager2 = class {
34838
34629
  }
34839
34630
  if (statement.importClause.namedBindings) {
34840
34631
  const namedBindings = statement.importClause.namedBindings;
34841
- if (import_typescript107.default.isNamespaceImport(namedBindings) && !typeImport) {
34842
- return import_typescript107.default.factory.createPropertyAccessExpression(import_typescript107.default.factory.createIdentifier(namedBindings.name.text), import_typescript107.default.factory.createIdentifier(alias || symbolName || "default"));
34843
- } else if (import_typescript107.default.isNamedImports(namedBindings) && symbolName) {
34632
+ if (import_typescript104.default.isNamespaceImport(namedBindings) && !typeImport) {
34633
+ return import_typescript104.default.factory.createPropertyAccessExpression(import_typescript104.default.factory.createIdentifier(namedBindings.name.text), import_typescript104.default.factory.createIdentifier(alias || symbolName || "default"));
34634
+ } else if (import_typescript104.default.isNamedImports(namedBindings) && symbolName) {
34844
34635
  const existingElement = namedBindings.elements.find((e) => {
34845
34636
  if (alias) {
34846
34637
  return e.propertyName && e.name.text === alias && e.propertyName.text === symbolName;
@@ -34848,12 +34639,12 @@ var ImportManager2 = class {
34848
34639
  return e.propertyName ? e.propertyName.text === symbolName : e.name.text === symbolName;
34849
34640
  });
34850
34641
  if (existingElement) {
34851
- return import_typescript107.default.factory.createIdentifier(existingElement.name.text);
34642
+ return import_typescript104.default.factory.createIdentifier(existingElement.name.text);
34852
34643
  }
34853
34644
  existingImport = statement;
34854
34645
  }
34855
34646
  } else if (statement.importClause.name && !symbolName) {
34856
- return import_typescript107.default.factory.createIdentifier(statement.importClause.name.text);
34647
+ return import_typescript104.default.factory.createIdentifier(statement.importClause.name.text);
34857
34648
  }
34858
34649
  }
34859
34650
  if (existingImport) {
@@ -34873,11 +34664,11 @@ var ImportManager2 = class {
34873
34664
  if (symbolName) {
34874
34665
  const { propertyName, name } = this._getImportParts(sourceFile, symbolName, alias);
34875
34666
  const importMap = this.newImports.get(sourceFile).namedImports;
34876
- identifier = propertyName || name;
34667
+ identifier = name;
34877
34668
  if (!importMap.has(moduleName)) {
34878
34669
  importMap.set(moduleName, []);
34879
34670
  }
34880
- importMap.get(moduleName).push(import_typescript107.default.factory.createImportSpecifier(false, propertyName, name));
34671
+ importMap.get(moduleName).push(import_typescript104.default.factory.createImportSpecifier(false, propertyName, name));
34881
34672
  } else {
34882
34673
  const importMap = this.newImports.get(sourceFile).defaultImports;
34883
34674
  identifier = this._getUniqueIdentifier(sourceFile, "defaultExport");
@@ -34891,19 +34682,19 @@ var ImportManager2 = class {
34891
34682
  const sourceFile = importDecl.getSourceFile();
34892
34683
  const recorder = this.getUpdateRecorder(sourceFile);
34893
34684
  const namedBindings = importDecl.importClause.namedBindings;
34894
- const newNamedBindings = import_typescript107.default.factory.updateNamedImports(namedBindings, namedBindings.elements.concat(expressions.map(({ propertyName, importName }) => import_typescript107.default.factory.createImportSpecifier(false, propertyName, importName))));
34895
- const newNamedBindingsText = this.printer.printNode(import_typescript107.default.EmitHint.Unspecified, newNamedBindings, sourceFile);
34685
+ const newNamedBindings = import_typescript104.default.factory.updateNamedImports(namedBindings, namedBindings.elements.concat(expressions.map(({ propertyName, importName }) => import_typescript104.default.factory.createImportSpecifier(false, propertyName, importName))));
34686
+ const newNamedBindingsText = this.printer.printNode(import_typescript104.default.EmitHint.Unspecified, newNamedBindings, sourceFile);
34896
34687
  recorder.updateExistingImport(namedBindings, newNamedBindingsText);
34897
34688
  });
34898
34689
  this.newImports.forEach(({ importStartIndex, defaultImports, namedImports }, sourceFile) => {
34899
34690
  const recorder = this.getUpdateRecorder(sourceFile);
34900
34691
  const useSingleQuotes = this._getQuoteStyle(sourceFile) === 0;
34901
34692
  defaultImports.forEach((identifier, moduleName) => {
34902
- const newImport = createImportDeclaration2(void 0, import_typescript107.default.factory.createImportClause(false, identifier, void 0), import_typescript107.default.factory.createStringLiteral(moduleName, useSingleQuotes));
34693
+ const newImport = createImportDeclaration2(void 0, import_typescript104.default.factory.createImportClause(false, identifier, void 0), import_typescript104.default.factory.createStringLiteral(moduleName, useSingleQuotes));
34903
34694
  recorder.addNewImport(importStartIndex, this._getNewImportText(importStartIndex, newImport, sourceFile));
34904
34695
  });
34905
34696
  namedImports.forEach((specifiers, moduleName) => {
34906
- const newImport = createImportDeclaration2(void 0, import_typescript107.default.factory.createImportClause(false, void 0, import_typescript107.default.factory.createNamedImports(specifiers)), import_typescript107.default.factory.createStringLiteral(moduleName, useSingleQuotes));
34697
+ const newImport = createImportDeclaration2(void 0, import_typescript104.default.factory.createImportClause(false, void 0, import_typescript104.default.factory.createNamedImports(specifiers)), import_typescript104.default.factory.createStringLiteral(moduleName, useSingleQuotes));
34907
34698
  recorder.addNewImport(importStartIndex, this._getNewImportText(importStartIndex, newImport, sourceFile));
34908
34699
  });
34909
34700
  });
@@ -34911,7 +34702,7 @@ var ImportManager2 = class {
34911
34702
  _getUniqueIdentifier(sourceFile, baseName) {
34912
34703
  if (this.isUniqueIdentifierName(sourceFile, baseName)) {
34913
34704
  this._recordUsedIdentifier(sourceFile, baseName);
34914
- return import_typescript107.default.factory.createIdentifier(baseName);
34705
+ return import_typescript104.default.factory.createIdentifier(baseName);
34915
34706
  }
34916
34707
  let name = null;
34917
34708
  let counter = 1;
@@ -34919,7 +34710,7 @@ var ImportManager2 = class {
34919
34710
  name = `${baseName}_${counter++}`;
34920
34711
  } while (!this.isUniqueIdentifierName(sourceFile, name));
34921
34712
  this._recordUsedIdentifier(sourceFile, name);
34922
- return import_typescript107.default.factory.createIdentifier(name);
34713
+ return import_typescript104.default.factory.createIdentifier(name);
34923
34714
  }
34924
34715
  isUniqueIdentifierName(sourceFile, name) {
34925
34716
  if (this.usedIdentifierNames.has(sourceFile) && this.usedIdentifierNames.get(sourceFile).indexOf(name) !== -1) {
@@ -34928,7 +34719,7 @@ var ImportManager2 = class {
34928
34719
  const nodeQueue = [sourceFile];
34929
34720
  while (nodeQueue.length) {
34930
34721
  const node = nodeQueue.shift();
34931
- if (import_typescript107.default.isIdentifier(node) && node.text === name && (!import_typescript107.default.isImportSpecifier(node.parent) || node.parent.propertyName !== node)) {
34722
+ if (import_typescript104.default.isIdentifier(node) && node.text === name && (!import_typescript104.default.isImportSpecifier(node.parent) || node.parent.propertyName !== node)) {
34932
34723
  return false;
34933
34724
  }
34934
34725
  nodeQueue.push(...node.getChildren());
@@ -34940,21 +34731,21 @@ var ImportManager2 = class {
34940
34731
  }
34941
34732
  _getEndPositionOfNode(node) {
34942
34733
  const nodeEndPos = node.getEnd();
34943
- const commentRanges = import_typescript107.default.getTrailingCommentRanges(node.getSourceFile().text, nodeEndPos);
34734
+ const commentRanges = import_typescript104.default.getTrailingCommentRanges(node.getSourceFile().text, nodeEndPos);
34944
34735
  if (!commentRanges || !commentRanges.length) {
34945
34736
  return nodeEndPos;
34946
34737
  }
34947
34738
  return commentRanges[commentRanges.length - 1].end;
34948
34739
  }
34949
34740
  _getNewImportText(importStartIndex, newImport, sourceFile) {
34950
- const text = this.printer.printNode(import_typescript107.default.EmitHint.Unspecified, newImport, sourceFile);
34741
+ const text = this.printer.printNode(import_typescript104.default.EmitHint.Unspecified, newImport, sourceFile);
34951
34742
  return importStartIndex === 0 ? `${text}
34952
34743
  ` : `
34953
34744
  ${text}`;
34954
34745
  }
34955
34746
  _getImportParts(sourceFile, symbolName, alias) {
34956
- const symbolIdentifier = import_typescript107.default.factory.createIdentifier(symbolName);
34957
- const aliasIdentifier = alias ? import_typescript107.default.factory.createIdentifier(alias) : null;
34747
+ const symbolIdentifier = import_typescript104.default.factory.createIdentifier(symbolName);
34748
+ const aliasIdentifier = alias ? import_typescript104.default.factory.createIdentifier(alias) : null;
34958
34749
  const generatedUniqueIdentifier = this._getUniqueIdentifier(sourceFile, alias || symbolName);
34959
34750
  const needsGeneratedUniqueName = generatedUniqueIdentifier.text !== (alias || symbolName);
34960
34751
  let propertyName;
@@ -34974,7 +34765,7 @@ ${text}`;
34974
34765
  if (!this.quoteStyles.hasOwnProperty(sourceFile.fileName)) {
34975
34766
  let quoteStyle;
34976
34767
  for (const statement of sourceFile.statements) {
34977
- if (import_typescript107.default.isImportDeclaration(statement) && import_typescript107.default.isStringLiteralLike(statement.moduleSpecifier)) {
34768
+ if (import_typescript104.default.isImportDeclaration(statement) && import_typescript104.default.isStringLiteralLike(statement.moduleSpecifier)) {
34978
34769
  quoteStyle = statement.moduleSpecifier.getText().trim().startsWith('"') ? 1 : 0;
34979
34770
  break;
34980
34771
  }
@@ -34985,10 +34776,10 @@ ${text}`;
34985
34776
  }
34986
34777
  };
34987
34778
  function createImportDeclaration2(modifiers, importClause, moduleSpecifier, assertClause) {
34988
- return IS_AFTER_TS_492 ? import_typescript107.default.factory.createImportDeclaration(modifiers, importClause, moduleSpecifier, assertClause) : import_typescript107.default.factory.createImportDeclaration(void 0, modifiers, importClause, moduleSpecifier, assertClause);
34779
+ return IS_AFTER_TS_492 ? import_typescript104.default.factory.createImportDeclaration(modifiers, importClause, moduleSpecifier, assertClause) : import_typescript104.default.factory.createImportDeclaration(void 0, modifiers, importClause, moduleSpecifier, assertClause);
34989
34780
  }
34990
34781
  function isAfterVersion2(targetMajor, targetMinor) {
34991
- const [major, minor] = import_typescript107.default.versionMajorMinor.split(".").map((part) => parseInt(part));
34782
+ const [major, minor] = import_typescript104.default.versionMajorMinor.split(".").map((part) => parseInt(part));
34992
34783
  if (major < targetMajor) {
34993
34784
  return false;
34994
34785
  }
@@ -35012,7 +34803,7 @@ var ChangeTracker = class {
35012
34803
  replaceText(sourceFile, start, removeLength, text) {
35013
34804
  this._trackChange(sourceFile, { start, removeLength, text });
35014
34805
  }
35015
- replaceNode(oldNode, newNode, emitHint = import_typescript108.default.EmitHint.Unspecified, sourceFileWhenPrinting) {
34806
+ replaceNode(oldNode, newNode, emitHint = import_typescript105.default.EmitHint.Unspecified, sourceFileWhenPrinting) {
35016
34807
  const sourceFile = oldNode.getSourceFile();
35017
34808
  this.replaceText(sourceFile, oldNode.getStart(), oldNode.getWidth(), this._printer.printNode(emitHint, newNode, sourceFileWhenPrinting || sourceFile));
35018
34809
  }
@@ -35083,7 +34874,7 @@ var ReferenceResolver = class {
35083
34874
  const results = /* @__PURE__ */ new Map();
35084
34875
  for (const symbol of referencedSymbols) {
35085
34876
  for (const ref of symbol.references) {
35086
- if (!ref.isDefinition || symbol.definition.kind === import_typescript108.default.ScriptElementKind.alias) {
34877
+ if (!ref.isDefinition || symbol.definition.kind === import_typescript105.default.ScriptElementKind.alias) {
35087
34878
  if (!results.has(ref.fileName)) {
35088
34879
  results.set(ref.fileName, []);
35089
34880
  }
@@ -35107,7 +34898,7 @@ var ReferenceResolver = class {
35107
34898
  for (const file of highlights) {
35108
34899
  if (file.fileName === fileName) {
35109
34900
  for (const { textSpan: { start, length }, kind } of file.highlightSpans) {
35110
- if (kind !== import_typescript108.default.HighlightSpanKind.none) {
34901
+ if (kind !== import_typescript105.default.HighlightSpanKind.none) {
35111
34902
  results.push([start, start + length]);
35112
34903
  }
35113
34904
  }
@@ -35133,19 +34924,19 @@ var ReferenceResolver = class {
35133
34924
  rootFileNames.push(fileName);
35134
34925
  }
35135
34926
  });
35136
- this._languageService = import_typescript108.default.createLanguageService({
34927
+ this._languageService = import_typescript105.default.createLanguageService({
35137
34928
  getCompilationSettings: () => this._program.getTsProgram().getCompilerOptions(),
35138
34929
  getScriptFileNames: () => rootFileNames,
35139
34930
  getScriptVersion: () => "0",
35140
34931
  getScriptSnapshot: (path3) => {
35141
34932
  const content = this._readFile(path3);
35142
- return content ? import_typescript108.default.ScriptSnapshot.fromString(content) : void 0;
34933
+ return content ? import_typescript105.default.ScriptSnapshot.fromString(content) : void 0;
35143
34934
  },
35144
34935
  getCurrentDirectory: () => this._basePath,
35145
- getDefaultLibFileName: (options) => import_typescript108.default.getDefaultLibFilePath(options),
34936
+ getDefaultLibFileName: (options) => import_typescript105.default.getDefaultLibFilePath(options),
35146
34937
  readFile: (path3) => this._readFile(path3),
35147
34938
  fileExists: (path3) => this._host.fileExists(path3)
35148
- }, import_typescript108.default.createDocumentRegistry(), import_typescript108.default.LanguageServiceMode.PartialSemantic);
34939
+ }, import_typescript105.default.createDocumentRegistry(), import_typescript105.default.LanguageServiceMode.PartialSemantic);
35149
34940
  }
35150
34941
  return this._languageService;
35151
34942
  }
@@ -35175,10 +34966,10 @@ function offsetsToNodes(lookup, offsets, results) {
35175
34966
  }
35176
34967
  function findClassDeclaration(reference, typeChecker) {
35177
34968
  var _a, _b;
35178
- return ((_b = (_a = typeChecker.getTypeAtLocation(reference).getSymbol()) == null ? void 0 : _a.declarations) == null ? void 0 : _b.find(import_typescript108.default.isClassDeclaration)) || null;
34969
+ return ((_b = (_a = typeChecker.getTypeAtLocation(reference).getSymbol()) == null ? void 0 : _a.declarations) == null ? void 0 : _b.find(import_typescript105.default.isClassDeclaration)) || null;
35179
34970
  }
35180
34971
  function findLiteralProperty(literal3, name) {
35181
- return literal3.properties.find((prop) => prop.name && import_typescript108.default.isIdentifier(prop.name) && prop.name.text === name);
34972
+ return literal3.properties.find((prop) => prop.name && import_typescript105.default.isIdentifier(prop.name) && prop.name.text === name);
35182
34973
  }
35183
34974
  function getRelativeImportPath(fromFile, toFile) {
35184
34975
  let path3 = (0, import_path6.relative)((0, import_path6.dirname)(fromFile), toFile).replace(/\.ts$/, "");
@@ -35193,6 +34984,23 @@ function normalizePath(path3) {
35193
34984
  function knownInternalAliasRemapper(imports) {
35194
34985
  return imports.map((current) => current.moduleSpecifier === "@angular/common" && current.symbolName === "NgForOf" ? __spreadProps(__spreadValues({}, current), { symbolName: "NgFor" }) : current);
35195
34986
  }
34987
+ function closestOrSelf(node, predicate) {
34988
+ return predicate(node) ? node : closestNode(node, predicate);
34989
+ }
34990
+ function isClassReferenceInAngularModule(node, className, moduleName, typeChecker) {
34991
+ var _a;
34992
+ const symbol = typeChecker.getTypeAtLocation(node).getSymbol();
34993
+ const externalName = `@angular/${moduleName}`;
34994
+ const internalName = `angular2/rc/packages/${moduleName}`;
34995
+ return !!((_a = symbol == null ? void 0 : symbol.declarations) == null ? void 0 : _a.some((decl) => {
34996
+ const closestClass = closestOrSelf(decl, import_typescript105.default.isClassDeclaration);
34997
+ const closestClassFileName = closestClass == null ? void 0 : closestClass.getSourceFile().fileName;
34998
+ if (!closestClass || !closestClassFileName || !closestClass.name || !import_typescript105.default.isIdentifier(closestClass.name) || !closestClassFileName.includes(externalName) && !closestClassFileName.includes(internalName)) {
34999
+ return false;
35000
+ }
35001
+ return typeof className === "string" ? closestClass.name.text === className : className.test(closestClass.name.text);
35002
+ }));
35003
+ }
35196
35004
 
35197
35005
  // bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/ng-generate/standalone-migration/prune-modules.mjs
35198
35006
  function pruneNgModules(program, host, basePath, rootFileNames, sourceFiles, printer, importRemapper, referenceLookupExcludedFiles) {
@@ -35208,7 +35016,7 @@ function pruneNgModules(program, host, basePath, rootFileNames, sourceFiles, pri
35208
35016
  unknown: /* @__PURE__ */ new Set()
35209
35017
  };
35210
35018
  sourceFiles.forEach(function walk(node) {
35211
- if (import_typescript109.default.isClassDeclaration(node) && canRemoveClass(node, typeChecker)) {
35019
+ if (import_typescript106.default.isClassDeclaration(node) && canRemoveClass(node, typeChecker)) {
35212
35020
  collectRemovalLocations(node, removalLocations, referenceResolver, program);
35213
35021
  removalLocations.classes.add(node);
35214
35022
  }
@@ -35239,17 +35047,17 @@ function collectRemovalLocations(ngModule, removalLocations, referenceResolver,
35239
35047
  }
35240
35048
  }
35241
35049
  for (const node of nodes) {
35242
- const closestArray = closestNode(node, import_typescript109.default.isArrayLiteralExpression);
35050
+ const closestArray = closestNode(node, import_typescript106.default.isArrayLiteralExpression);
35243
35051
  if (closestArray) {
35244
35052
  removalLocations.arrays.track(closestArray, node);
35245
35053
  continue;
35246
35054
  }
35247
- const closestImport = closestNode(node, import_typescript109.default.isNamedImports);
35055
+ const closestImport = closestNode(node, import_typescript106.default.isNamedImports);
35248
35056
  if (closestImport) {
35249
35057
  removalLocations.imports.track(closestImport, node);
35250
35058
  continue;
35251
35059
  }
35252
- const closestExport = closestNode(node, import_typescript109.default.isNamedExports);
35060
+ const closestExport = closestNode(node, import_typescript106.default.isNamedExports);
35253
35061
  if (closestExport) {
35254
35062
  removalLocations.exports.track(closestExport, node);
35255
35063
  continue;
@@ -35260,24 +35068,24 @@ function collectRemovalLocations(ngModule, removalLocations, referenceResolver,
35260
35068
  function removeArrayReferences(locations, tracker) {
35261
35069
  for (const [array, toRemove] of locations.getEntries()) {
35262
35070
  const newElements = filterRemovedElements(array.elements, toRemove);
35263
- tracker.replaceNode(array, import_typescript109.default.factory.updateArrayLiteralExpression(array, newElements));
35071
+ tracker.replaceNode(array, import_typescript106.default.factory.updateArrayLiteralExpression(array, newElements));
35264
35072
  }
35265
35073
  }
35266
35074
  function removeImportReferences(locations, tracker) {
35267
35075
  for (const [namedImports, toRemove] of locations.getEntries()) {
35268
35076
  const newElements = filterRemovedElements(namedImports.elements, toRemove);
35269
35077
  if (newElements.length === 0) {
35270
- const importClause = closestNode(namedImports, import_typescript109.default.isImportClause);
35078
+ const importClause = closestNode(namedImports, import_typescript106.default.isImportClause);
35271
35079
  if (importClause && importClause.name) {
35272
- tracker.replaceNode(importClause, import_typescript109.default.factory.updateImportClause(importClause, importClause.isTypeOnly, importClause.name, void 0));
35080
+ tracker.replaceNode(importClause, import_typescript106.default.factory.updateImportClause(importClause, importClause.isTypeOnly, importClause.name, void 0));
35273
35081
  } else {
35274
- const declaration = closestNode(namedImports, import_typescript109.default.isImportDeclaration);
35082
+ const declaration = closestNode(namedImports, import_typescript106.default.isImportDeclaration);
35275
35083
  if (declaration) {
35276
35084
  tracker.removeNode(declaration);
35277
35085
  }
35278
35086
  }
35279
35087
  } else {
35280
- tracker.replaceNode(namedImports, import_typescript109.default.factory.updateNamedImports(namedImports, newElements));
35088
+ tracker.replaceNode(namedImports, import_typescript106.default.factory.updateNamedImports(namedImports, newElements));
35281
35089
  }
35282
35090
  }
35283
35091
  }
@@ -35285,22 +35093,22 @@ function removeExportReferences(locations, tracker) {
35285
35093
  for (const [namedExports, toRemove] of locations.getEntries()) {
35286
35094
  const newElements = filterRemovedElements(namedExports.elements, toRemove);
35287
35095
  if (newElements.length === 0) {
35288
- const declaration = closestNode(namedExports, import_typescript109.default.isExportDeclaration);
35096
+ const declaration = closestNode(namedExports, import_typescript106.default.isExportDeclaration);
35289
35097
  if (declaration) {
35290
35098
  tracker.removeNode(declaration);
35291
35099
  }
35292
35100
  } else {
35293
- tracker.replaceNode(namedExports, import_typescript109.default.factory.updateNamedExports(namedExports, newElements));
35101
+ tracker.replaceNode(namedExports, import_typescript106.default.factory.updateNamedExports(namedExports, newElements));
35294
35102
  }
35295
35103
  }
35296
35104
  }
35297
35105
  function canRemoveClass(node, typeChecker) {
35298
35106
  var _a;
35299
35107
  const decorator = (_a = findNgModuleDecorator(node, typeChecker)) == null ? void 0 : _a.node;
35300
- if (!decorator || !import_typescript109.default.isCallExpression(decorator.expression)) {
35108
+ if (!decorator || !import_typescript106.default.isCallExpression(decorator.expression)) {
35301
35109
  return false;
35302
35110
  }
35303
- if (decorator.expression.arguments.length > 0 && !import_typescript109.default.isObjectLiteralExpression(decorator.expression.arguments[0])) {
35111
+ if (decorator.expression.arguments.length > 0 && !import_typescript106.default.isObjectLiteralExpression(decorator.expression.arguments[0])) {
35304
35112
  return false;
35305
35113
  }
35306
35114
  if (node.members.length > 0 && node.members.some((member) => !isEmptyConstructor(member))) {
@@ -35313,7 +35121,7 @@ function canRemoveClass(node, typeChecker) {
35313
35121
  const imports = findLiteralProperty(literal3, "imports");
35314
35122
  if (imports && isNonEmptyNgModuleProperty(imports)) {
35315
35123
  for (const dep of imports.initializer.elements) {
35316
- if (!import_typescript109.default.isIdentifier(dep)) {
35124
+ if (!import_typescript106.default.isIdentifier(dep)) {
35317
35125
  return false;
35318
35126
  }
35319
35127
  const depDeclaration = findClassDeclaration(dep, typeChecker);
@@ -35331,15 +35139,15 @@ function canRemoveClass(node, typeChecker) {
35331
35139
  return true;
35332
35140
  }
35333
35141
  function isNonEmptyNgModuleProperty(node) {
35334
- return import_typescript109.default.isPropertyAssignment(node) && import_typescript109.default.isIdentifier(node.name) && import_typescript109.default.isArrayLiteralExpression(node.initializer) && node.initializer.elements.length > 0;
35142
+ return import_typescript106.default.isPropertyAssignment(node) && import_typescript106.default.isIdentifier(node.name) && import_typescript106.default.isArrayLiteralExpression(node.initializer) && node.initializer.elements.length > 0;
35335
35143
  }
35336
35144
  function canRemoveFile(sourceFile, classesToBeRemoved) {
35337
35145
  var _a;
35338
35146
  for (const node of sourceFile.statements) {
35339
- if (import_typescript109.default.isImportDeclaration(node) || import_typescript109.default.isClassDeclaration(node) && classesToBeRemoved.has(node)) {
35147
+ if (import_typescript106.default.isImportDeclaration(node) || import_typescript106.default.isClassDeclaration(node) && classesToBeRemoved.has(node)) {
35340
35148
  continue;
35341
35149
  }
35342
- if (import_typescript109.default.canHaveModifiers(node) && ((_a = import_typescript109.default.getModifiers(node)) == null ? void 0 : _a.some((m) => m.kind === import_typescript109.default.SyntaxKind.ExportKeyword))) {
35150
+ if (import_typescript106.default.canHaveModifiers(node) && ((_a = import_typescript106.default.getModifiers(node)) == null ? void 0 : _a.some((m) => m.kind === import_typescript106.default.SyntaxKind.ExportKeyword))) {
35343
35151
  return false;
35344
35152
  }
35345
35153
  }
@@ -35359,7 +35167,7 @@ function filterRemovedElements(elements, toRemove) {
35359
35167
  });
35360
35168
  }
35361
35169
  function isEmptyConstructor(node) {
35362
- return import_typescript109.default.isConstructorDeclaration(node) && node.parameters.length === 0 && (node.body == null || node.body.statements.length === 0);
35170
+ return import_typescript106.default.isConstructorDeclaration(node) && node.parameters.length === 0 && (node.body == null || node.body.statements.length === 0);
35363
35171
  }
35364
35172
  function addRemovalTodos(nodes, tracker) {
35365
35173
  for (const node of nodes) {
@@ -35367,19 +35175,19 @@ function addRemovalTodos(nodes, tracker) {
35367
35175
  }
35368
35176
  }
35369
35177
  function findNgModuleDecorator(node, typeChecker) {
35370
- const decorators = getAngularDecorators(typeChecker, import_typescript109.default.getDecorators(node) || []);
35178
+ const decorators = getAngularDecorators(typeChecker, import_typescript106.default.getDecorators(node) || []);
35371
35179
  return decorators.find((decorator) => decorator.name === "NgModule") || null;
35372
35180
  }
35373
35181
 
35374
35182
  // bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/ng-generate/standalone-migration/standalone-bootstrap.mjs
35375
35183
  var import_path7 = require("path");
35376
- var import_typescript112 = __toESM(require("typescript"), 1);
35184
+ var import_typescript109 = __toESM(require("typescript"), 1);
35377
35185
 
35378
35186
  // bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/ng-generate/standalone-migration/to-standalone.mjs
35379
- var import_typescript111 = __toESM(require("typescript"), 1);
35187
+ var import_typescript108 = __toESM(require("typescript"), 1);
35380
35188
 
35381
35189
  // bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/utils/typescript/symbol.mjs
35382
- var import_typescript110 = __toESM(require("typescript"), 1);
35190
+ var import_typescript107 = __toESM(require("typescript"), 1);
35383
35191
  function isReferenceToImport(typeChecker, node, importSpecifier) {
35384
35192
  var _a, _b;
35385
35193
  const nodeSymbol = typeChecker.getTypeAtLocation(node).getSymbol();
@@ -35424,7 +35232,7 @@ function convertNgModuleDeclarationToStandalone(ref, allDeclarations, tracker, t
35424
35232
  if (directiveMeta.isComponent) {
35425
35233
  const importsToAdd = getComponentImportExpressions(ref, allDeclarations, tracker, typeChecker, importRemapper);
35426
35234
  if (importsToAdd.length > 0) {
35427
- decorator = addPropertyToAngularDecorator(decorator, import_typescript111.default.factory.createPropertyAssignment("imports", import_typescript111.default.factory.createArrayLiteralExpression(importsToAdd)));
35235
+ decorator = addPropertyToAngularDecorator(decorator, import_typescript108.default.factory.createPropertyAssignment("imports", import_typescript108.default.factory.createArrayLiteralExpression(importsToAdd)));
35428
35236
  }
35429
35237
  }
35430
35238
  tracker.replaceNode(directiveMeta.decorator, decorator);
@@ -35454,11 +35262,11 @@ function getComponentImportExpressions(ref, allDeclarations, tracker, typeChecke
35454
35262
  const identifier = tracker.addImport(ref.node.getSourceFile(), importLocation.symbolName, importLocation.moduleSpecifier);
35455
35263
  imports.push(identifier);
35456
35264
  } else {
35457
- const identifier = import_typescript111.default.factory.createIdentifier(importLocation.symbolName);
35265
+ const identifier = import_typescript108.default.factory.createIdentifier(importLocation.symbolName);
35458
35266
  if (importLocation.isForwardReference) {
35459
35267
  const forwardRefExpression = tracker.addImport(ref.node.getSourceFile(), "forwardRef", "@angular/core");
35460
- const arrowFunction = import_typescript111.default.factory.createArrowFunction(void 0, void 0, [], void 0, void 0, identifier);
35461
- imports.push(import_typescript111.default.factory.createCallExpression(forwardRefExpression, void 0, [arrowFunction]));
35268
+ const arrowFunction = import_typescript108.default.factory.createArrowFunction(void 0, void 0, [], void 0, void 0, identifier);
35269
+ imports.push(import_typescript108.default.factory.createCallExpression(forwardRefExpression, void 0, [arrowFunction]));
35462
35270
  } else {
35463
35271
  imports.push(identifier);
35464
35272
  }
@@ -35483,10 +35291,10 @@ function moveDeclarationsToImports(literal3, allDeclarations, typeChecker, templ
35483
35291
  const declarationsToCopy = [];
35484
35292
  const properties = [];
35485
35293
  const importsProp = findLiteralProperty(literal3, "imports");
35486
- if (import_typescript111.default.isPropertyAssignment(declarationsProp)) {
35487
- if (import_typescript111.default.isArrayLiteralExpression(declarationsProp.initializer)) {
35294
+ if (import_typescript108.default.isPropertyAssignment(declarationsProp)) {
35295
+ if (import_typescript108.default.isArrayLiteralExpression(declarationsProp.initializer)) {
35488
35296
  for (const el of declarationsProp.initializer.elements) {
35489
- if (import_typescript111.default.isIdentifier(el)) {
35297
+ if (import_typescript108.default.isIdentifier(el)) {
35490
35298
  const correspondingClass = findClassDeclaration(el, typeChecker);
35491
35299
  if (!correspondingClass || isStandaloneDeclaration(correspondingClass, allDeclarations, templateTypeChecker)) {
35492
35300
  declarationsToCopy.push(el);
@@ -35498,11 +35306,11 @@ function moveDeclarationsToImports(literal3, allDeclarations, typeChecker, templ
35498
35306
  }
35499
35307
  }
35500
35308
  } else {
35501
- declarationsToCopy.push(import_typescript111.default.factory.createSpreadElement(declarationsProp.initializer));
35309
+ declarationsToCopy.push(import_typescript108.default.factory.createSpreadElement(declarationsProp.initializer));
35502
35310
  }
35503
35311
  }
35504
35312
  if (!importsProp && declarationsToCopy.length > 0) {
35505
- properties.push(import_typescript111.default.factory.createPropertyAssignment("imports", import_typescript111.default.factory.createArrayLiteralExpression(declarationsToCopy)));
35313
+ properties.push(import_typescript108.default.factory.createPropertyAssignment("imports", import_typescript108.default.factory.createArrayLiteralExpression(declarationsToCopy)));
35506
35314
  }
35507
35315
  for (const prop of literal3.properties) {
35508
35316
  if (!isNamedPropertyAssignment(prop)) {
@@ -35511,43 +35319,43 @@ function moveDeclarationsToImports(literal3, allDeclarations, typeChecker, templ
35511
35319
  }
35512
35320
  if (prop === declarationsProp) {
35513
35321
  if (declarationsToPreserve.length > 0) {
35514
- properties.push(import_typescript111.default.factory.updatePropertyAssignment(prop, prop.name, import_typescript111.default.factory.createArrayLiteralExpression(declarationsToPreserve)));
35322
+ properties.push(import_typescript108.default.factory.updatePropertyAssignment(prop, prop.name, import_typescript108.default.factory.createArrayLiteralExpression(declarationsToPreserve)));
35515
35323
  }
35516
35324
  continue;
35517
35325
  }
35518
35326
  if (prop === importsProp && declarationsToCopy.length > 0) {
35519
35327
  let initializer;
35520
- if (import_typescript111.default.isArrayLiteralExpression(prop.initializer)) {
35521
- initializer = import_typescript111.default.factory.updateArrayLiteralExpression(prop.initializer, [...prop.initializer.elements, ...declarationsToCopy]);
35328
+ if (import_typescript108.default.isArrayLiteralExpression(prop.initializer)) {
35329
+ initializer = import_typescript108.default.factory.updateArrayLiteralExpression(prop.initializer, [...prop.initializer.elements, ...declarationsToCopy]);
35522
35330
  } else {
35523
- initializer = import_typescript111.default.factory.createArrayLiteralExpression([import_typescript111.default.factory.createSpreadElement(prop.initializer), ...declarationsToCopy]);
35331
+ initializer = import_typescript108.default.factory.createArrayLiteralExpression([import_typescript108.default.factory.createSpreadElement(prop.initializer), ...declarationsToCopy]);
35524
35332
  }
35525
- properties.push(import_typescript111.default.factory.updatePropertyAssignment(prop, prop.name, initializer));
35333
+ properties.push(import_typescript108.default.factory.updatePropertyAssignment(prop, prop.name, initializer));
35526
35334
  continue;
35527
35335
  }
35528
35336
  properties.push(prop);
35529
35337
  }
35530
- tracker.replaceNode(literal3, import_typescript111.default.factory.updateObjectLiteralExpression(literal3, properties), import_typescript111.default.EmitHint.Expression);
35338
+ tracker.replaceNode(literal3, import_typescript108.default.factory.updateObjectLiteralExpression(literal3, properties), import_typescript108.default.EmitHint.Expression);
35531
35339
  }
35532
35340
  function addStandaloneToDecorator(node) {
35533
- return addPropertyToAngularDecorator(node, import_typescript111.default.factory.createPropertyAssignment("standalone", import_typescript111.default.factory.createToken(import_typescript111.default.SyntaxKind.TrueKeyword)));
35341
+ return addPropertyToAngularDecorator(node, import_typescript108.default.factory.createPropertyAssignment("standalone", import_typescript108.default.factory.createToken(import_typescript108.default.SyntaxKind.TrueKeyword)));
35534
35342
  }
35535
35343
  function addPropertyToAngularDecorator(node, property) {
35536
- if (!import_typescript111.default.isCallExpression(node.expression) || node.expression.arguments.length > 1) {
35344
+ if (!import_typescript108.default.isCallExpression(node.expression) || node.expression.arguments.length > 1) {
35537
35345
  return node;
35538
35346
  }
35539
35347
  let literalProperties;
35540
35348
  if (node.expression.arguments.length === 0) {
35541
35349
  literalProperties = [property];
35542
- } else if (import_typescript111.default.isObjectLiteralExpression(node.expression.arguments[0])) {
35350
+ } else if (import_typescript108.default.isObjectLiteralExpression(node.expression.arguments[0])) {
35543
35351
  literalProperties = [...node.expression.arguments[0].properties, property];
35544
35352
  } else {
35545
35353
  return node;
35546
35354
  }
35547
- return import_typescript111.default.factory.createDecorator(import_typescript111.default.factory.createCallExpression(node.expression.expression, node.expression.typeArguments, [import_typescript111.default.factory.createObjectLiteralExpression(literalProperties, literalProperties.length > 1)]));
35355
+ return import_typescript108.default.factory.createDecorator(import_typescript108.default.factory.createCallExpression(node.expression.expression, node.expression.typeArguments, [import_typescript108.default.factory.createObjectLiteralExpression(literalProperties, literalProperties.length > 1)]));
35548
35356
  }
35549
35357
  function isNamedPropertyAssignment(node) {
35550
- return import_typescript111.default.isPropertyAssignment(node) && node.name && import_typescript111.default.isIdentifier(node.name);
35358
+ return import_typescript108.default.isPropertyAssignment(node) && node.name && import_typescript108.default.isIdentifier(node.name);
35551
35359
  }
35552
35360
  function findImportLocation(target, inComponent, importMode, typeChecker) {
35553
35361
  const importLocations = typeChecker.getPotentialImportsFor(target, inComponent.node, importMode);
@@ -35567,14 +35375,14 @@ function findImportLocation(target, inComponent, importMode, typeChecker) {
35567
35375
  return firstSameFileImport || firstModuleImport || importLocations[0] || null;
35568
35376
  }
35569
35377
  function hasNgModuleMetadataElements(node) {
35570
- return import_typescript111.default.isPropertyAssignment(node) && (!import_typescript111.default.isArrayLiteralExpression(node.initializer) || node.initializer.elements.length > 0);
35378
+ return import_typescript108.default.isPropertyAssignment(node) && (!import_typescript108.default.isArrayLiteralExpression(node.initializer) || node.initializer.elements.length > 0);
35571
35379
  }
35572
35380
  function findNgModuleClassesToMigrate(sourceFile, typeChecker) {
35573
35381
  const modules = [];
35574
35382
  if (getImportSpecifier(sourceFile, "@angular/core", "NgModule")) {
35575
35383
  sourceFile.forEachChild(function walk(node) {
35576
- if (import_typescript111.default.isClassDeclaration(node)) {
35577
- const decorator = getAngularDecorators(typeChecker, import_typescript111.default.getDecorators(node) || []).find((current) => current.name === "NgModule");
35384
+ if (import_typescript108.default.isClassDeclaration(node)) {
35385
+ const decorator = getAngularDecorators(typeChecker, import_typescript108.default.getDecorators(node) || []).find((current) => current.name === "NgModule");
35578
35386
  const metadata = decorator ? extractMetadataLiteral(decorator.node) : null;
35579
35387
  if (metadata) {
35580
35388
  const declarations = findLiteralProperty(metadata, "declarations");
@@ -35594,8 +35402,8 @@ function findTestObjectsToMigrate(sourceFile, typeChecker) {
35594
35402
  const catalystImport = getImportSpecifier(sourceFile, /testing\/catalyst$/, "setupModule");
35595
35403
  if (testBedImport || catalystImport) {
35596
35404
  sourceFile.forEachChild(function walk(node) {
35597
- if (import_typescript111.default.isCallExpression(node) && node.arguments.length > 0 && import_typescript111.default.isObjectLiteralExpression(node.arguments[0])) {
35598
- if (testBedImport && import_typescript111.default.isPropertyAccessExpression(node.expression) && node.expression.name.text === "configureTestingModule" && isReferenceToImport(typeChecker, node.expression.expression, testBedImport) || catalystImport && import_typescript111.default.isIdentifier(node.expression) && isReferenceToImport(typeChecker, node.expression, catalystImport)) {
35405
+ if (import_typescript108.default.isCallExpression(node) && node.arguments.length > 0 && import_typescript108.default.isObjectLiteralExpression(node.arguments[0])) {
35406
+ if (testBedImport && import_typescript108.default.isPropertyAccessExpression(node.expression) && node.expression.name.text === "configureTestingModule" && isReferenceToImport(typeChecker, node.expression.expression, testBedImport) || catalystImport && import_typescript108.default.isIdentifier(node.expression) && isReferenceToImport(typeChecker, node.expression, catalystImport)) {
35599
35407
  testObjects.push(node.arguments[0]);
35600
35408
  }
35601
35409
  }
@@ -35610,7 +35418,7 @@ function findTemplateDependencies(ref, typeChecker) {
35610
35418
  const usedPipes = typeChecker.getUsedPipes(ref.node);
35611
35419
  if (usedDirectives !== null) {
35612
35420
  for (const dir of usedDirectives) {
35613
- if (import_typescript111.default.isClassDeclaration(dir.ref.node)) {
35421
+ if (import_typescript108.default.isClassDeclaration(dir.ref.node)) {
35614
35422
  results.push(dir.ref);
35615
35423
  }
35616
35424
  }
@@ -35618,7 +35426,7 @@ function findTemplateDependencies(ref, typeChecker) {
35618
35426
  if (usedPipes !== null) {
35619
35427
  const potentialPipes = typeChecker.getPotentialPipes(ref.node);
35620
35428
  for (const pipe of potentialPipes) {
35621
- if (import_typescript111.default.isClassDeclaration(pipe.ref.node) && usedPipes.some((current) => pipe.name === current)) {
35429
+ if (import_typescript108.default.isClassDeclaration(pipe.ref.node) && usedPipes.some((current) => pipe.name === current)) {
35622
35430
  results.push(pipe.ref);
35623
35431
  }
35624
35432
  }
@@ -35632,12 +35440,12 @@ function filterNonBootstrappedDeclarations(declarations, ngModule, templateTypeC
35632
35440
  if (!bootstrapProp) {
35633
35441
  return declarations;
35634
35442
  }
35635
- if (!import_typescript111.default.isPropertyAssignment(bootstrapProp) || !import_typescript111.default.isArrayLiteralExpression(bootstrapProp.initializer)) {
35443
+ if (!import_typescript108.default.isPropertyAssignment(bootstrapProp) || !import_typescript108.default.isArrayLiteralExpression(bootstrapProp.initializer)) {
35636
35444
  return [];
35637
35445
  }
35638
35446
  const bootstrappedClasses = /* @__PURE__ */ new Set();
35639
35447
  for (const el of bootstrapProp.initializer.elements) {
35640
- const referencedClass = import_typescript111.default.isIdentifier(el) ? findClassDeclaration(el, typeChecker) : null;
35448
+ const referencedClass = import_typescript108.default.isIdentifier(el) ? findClassDeclaration(el, typeChecker) : null;
35641
35449
  if (referencedClass) {
35642
35450
  bootstrappedClasses.add(referencedClass);
35643
35451
  } else {
@@ -35648,13 +35456,13 @@ function filterNonBootstrappedDeclarations(declarations, ngModule, templateTypeC
35648
35456
  }
35649
35457
  function extractDeclarationsFromModule(ngModule, templateTypeChecker) {
35650
35458
  const metadata = templateTypeChecker.getNgModuleMetadata(ngModule);
35651
- return metadata ? metadata.declarations.filter((decl) => import_typescript111.default.isClassDeclaration(decl.node)) : [];
35459
+ return metadata ? metadata.declarations.filter((decl) => import_typescript108.default.isClassDeclaration(decl.node)) : [];
35652
35460
  }
35653
35461
  function migrateTestDeclarations(testObjects, declarationsOutsideOfTestFiles, tracker, templateTypeChecker, typeChecker) {
35654
35462
  const { decorators, componentImports } = analyzeTestingModules(testObjects, typeChecker);
35655
35463
  const allDeclarations = declarationsOutsideOfTestFiles.map((ref) => ref.node);
35656
35464
  for (const decorator of decorators) {
35657
- const closestClass = closestNode(decorator.node, import_typescript111.default.isClassDeclaration);
35465
+ const closestClass = closestNode(decorator.node, import_typescript108.default.isClassDeclaration);
35658
35466
  if (decorator.name === "Pipe" || decorator.name === "Directive") {
35659
35467
  tracker.replaceNode(decorator.node, addStandaloneToDecorator(decorator.node));
35660
35468
  if (closestClass) {
@@ -35667,7 +35475,7 @@ function migrateTestDeclarations(testObjects, declarationsOutsideOfTestFiles, tr
35667
35475
  allDeclarations.push(closestClass);
35668
35476
  }
35669
35477
  if (importsToAdd && importsToAdd.size > 0) {
35670
- tracker.replaceNode(decorator.node, addPropertyToAngularDecorator(newDecorator, import_typescript111.default.factory.createPropertyAssignment("imports", import_typescript111.default.factory.createArrayLiteralExpression(Array.from(importsToAdd)))));
35478
+ tracker.replaceNode(decorator.node, addPropertyToAngularDecorator(newDecorator, import_typescript108.default.factory.createPropertyAssignment("imports", import_typescript108.default.factory.createArrayLiteralExpression(Array.from(importsToAdd)))));
35671
35479
  } else {
35672
35480
  tracker.replaceNode(decorator.node, newDecorator);
35673
35481
  }
@@ -35687,12 +35495,14 @@ function analyzeTestingModules(testObjects, typeChecker) {
35687
35495
  continue;
35688
35496
  }
35689
35497
  const importsProp = findLiteralProperty(obj, "imports");
35690
- const importElements = importsProp && hasNgModuleMetadataElements(importsProp) ? importsProp.initializer.elements.filter((el) => !import_typescript111.default.isCallExpression(el)) : null;
35498
+ const importElements = importsProp && hasNgModuleMetadataElements(importsProp) ? importsProp.initializer.elements.filter((el) => {
35499
+ return !import_typescript108.default.isCallExpression(el) && !isClassReferenceInAngularModule(el, /^BrowserAnimationsModule|NoopAnimationsModule$/, "platform-browser/animations", typeChecker);
35500
+ }) : null;
35691
35501
  for (const decl of declarations) {
35692
35502
  if (seenDeclarations.has(decl)) {
35693
35503
  continue;
35694
35504
  }
35695
- const [decorator] = getAngularDecorators(typeChecker, import_typescript111.default.getDecorators(decl) || []);
35505
+ const [decorator] = getAngularDecorators(typeChecker, import_typescript108.default.getDecorators(decl) || []);
35696
35506
  if (decorator) {
35697
35507
  seenDeclarations.add(decl);
35698
35508
  decorators.push(decorator);
@@ -35723,7 +35533,7 @@ function extractDeclarationsFromTestObject(obj, typeChecker) {
35723
35533
  return results;
35724
35534
  }
35725
35535
  function extractMetadataLiteral(decorator) {
35726
- return import_typescript111.default.isCallExpression(decorator.expression) && decorator.expression.arguments.length === 1 && import_typescript111.default.isObjectLiteralExpression(decorator.expression.arguments[0]) ? decorator.expression.arguments[0] : null;
35536
+ return import_typescript108.default.isCallExpression(decorator.expression) && decorator.expression.arguments.length === 1 && import_typescript108.default.isObjectLiteralExpression(decorator.expression.arguments[0]) ? decorator.expression.arguments[0] : null;
35727
35537
  }
35728
35538
  function isStandaloneDeclaration(node, declarationsInMigration, templateTypeChecker) {
35729
35539
  if (declarationsInMigration.includes(node)) {
@@ -35744,7 +35554,7 @@ function toStandaloneBootstrap(program, host, basePath, rootFileNames, sourceFil
35744
35554
  const allDeclarations = [];
35745
35555
  for (const sourceFile of sourceFiles) {
35746
35556
  sourceFile.forEachChild(function walk(node) {
35747
- if (import_typescript112.default.isCallExpression(node) && import_typescript112.default.isPropertyAccessExpression(node.expression) && node.expression.name.text === "bootstrapModule" && isClassReferenceInAngularModule(node.expression, "PlatformRef", "core", typeChecker)) {
35557
+ if (import_typescript109.default.isCallExpression(node) && import_typescript109.default.isPropertyAccessExpression(node.expression) && node.expression.name.text === "bootstrapModule" && isClassReferenceInAngularModule(node.expression, "PlatformRef", "core", typeChecker)) {
35748
35558
  const call = analyzeBootstrapCall(node, typeChecker, templateTypeChecker);
35749
35559
  if (call) {
35750
35560
  bootstrapCalls.push(call);
@@ -35765,24 +35575,24 @@ function toStandaloneBootstrap(program, host, basePath, rootFileNames, sourceFil
35765
35575
  return tracker.recordChanges();
35766
35576
  }
35767
35577
  function analyzeBootstrapCall(call, typeChecker, templateTypeChecker) {
35768
- if (call.arguments.length === 0 || !import_typescript112.default.isIdentifier(call.arguments[0])) {
35578
+ if (call.arguments.length === 0 || !import_typescript109.default.isIdentifier(call.arguments[0])) {
35769
35579
  return null;
35770
35580
  }
35771
35581
  const declaration = findClassDeclaration(call.arguments[0], typeChecker);
35772
35582
  if (!declaration) {
35773
35583
  return null;
35774
35584
  }
35775
- const decorator = getAngularDecorators(typeChecker, import_typescript112.default.getDecorators(declaration) || []).find((decorator2) => decorator2.name === "NgModule");
35776
- if (!decorator || decorator.node.expression.arguments.length === 0 || !import_typescript112.default.isObjectLiteralExpression(decorator.node.expression.arguments[0])) {
35585
+ const decorator = getAngularDecorators(typeChecker, import_typescript109.default.getDecorators(declaration) || []).find((decorator2) => decorator2.name === "NgModule");
35586
+ if (!decorator || decorator.node.expression.arguments.length === 0 || !import_typescript109.default.isObjectLiteralExpression(decorator.node.expression.arguments[0])) {
35777
35587
  return null;
35778
35588
  }
35779
35589
  const metadata = decorator.node.expression.arguments[0];
35780
35590
  const bootstrapProp = findLiteralProperty(metadata, "bootstrap");
35781
- if (!bootstrapProp || !import_typescript112.default.isPropertyAssignment(bootstrapProp) || !import_typescript112.default.isArrayLiteralExpression(bootstrapProp.initializer) || bootstrapProp.initializer.elements.length === 0 || !import_typescript112.default.isIdentifier(bootstrapProp.initializer.elements[0])) {
35591
+ if (!bootstrapProp || !import_typescript109.default.isPropertyAssignment(bootstrapProp) || !import_typescript109.default.isArrayLiteralExpression(bootstrapProp.initializer) || bootstrapProp.initializer.elements.length === 0 || !import_typescript109.default.isIdentifier(bootstrapProp.initializer.elements[0])) {
35782
35592
  return null;
35783
35593
  }
35784
35594
  const component = findClassDeclaration(bootstrapProp.initializer.elements[0], typeChecker);
35785
- if (component && component.name && import_typescript112.default.isIdentifier(component.name)) {
35595
+ if (component && component.name && import_typescript109.default.isIdentifier(component.name)) {
35786
35596
  return {
35787
35597
  module: declaration,
35788
35598
  metadata,
@@ -35804,16 +35614,16 @@ function migrateBootstrapCall(analysis, tracker, referenceResolver, typeChecker,
35804
35614
  let nodeLookup = null;
35805
35615
  tracker.insertText(moduleSourceFile, analysis.metadata.getStart(), "/* TODO(standalone-migration): clean up removed NgModule class manually. \n");
35806
35616
  tracker.insertText(moduleSourceFile, analysis.metadata.getEnd(), " */");
35807
- if (providers && import_typescript112.default.isPropertyAssignment(providers)) {
35617
+ if (providers && import_typescript109.default.isPropertyAssignment(providers)) {
35808
35618
  nodeLookup = nodeLookup || getNodeLookup(moduleSourceFile);
35809
- if (import_typescript112.default.isArrayLiteralExpression(providers.initializer)) {
35619
+ if (import_typescript109.default.isArrayLiteralExpression(providers.initializer)) {
35810
35620
  providersInNewCall.push(...providers.initializer.elements);
35811
35621
  } else {
35812
- providersInNewCall.push(import_typescript112.default.factory.createSpreadElement(providers.initializer));
35622
+ providersInNewCall.push(import_typescript109.default.factory.createSpreadElement(providers.initializer));
35813
35623
  }
35814
35624
  addNodesToCopy(sourceFile, providers, nodeLookup, tracker, nodesToCopy, referenceResolver);
35815
35625
  }
35816
- if (imports && import_typescript112.default.isPropertyAssignment(imports)) {
35626
+ if (imports && import_typescript109.default.isPropertyAssignment(imports)) {
35817
35627
  nodeLookup = nodeLookup || getNodeLookup(moduleSourceFile);
35818
35628
  migrateImportsForBootstrapCall(sourceFile, imports, nodeLookup, moduleImportsInNewCall, providersInNewCall, tracker, nodesToCopy, referenceResolver, typeChecker);
35819
35629
  }
@@ -35824,7 +35634,7 @@ function migrateBootstrapCall(analysis, tracker, referenceResolver, typeChecker,
35824
35634
  if (transformedNode === node) {
35825
35635
  text += transformedNode.getText() + "\n";
35826
35636
  } else {
35827
- text += printer.printNode(import_typescript112.default.EmitHint.Unspecified, transformedNode, node.getSourceFile());
35637
+ text += printer.printNode(import_typescript109.default.EmitHint.Unspecified, transformedNode, node.getSourceFile());
35828
35638
  }
35829
35639
  });
35830
35640
  text += "\n";
@@ -35841,30 +35651,30 @@ function replaceBootstrapCallExpression(analysis, providers, modules, tracker) {
35841
35651
  const combinedProviders = [];
35842
35652
  if (modules.length > 0) {
35843
35653
  const importProvidersExpression = tracker.addImport(sourceFile, "importProvidersFrom", "@angular/core");
35844
- combinedProviders.push(import_typescript112.default.factory.createCallExpression(importProvidersExpression, [], modules));
35654
+ combinedProviders.push(import_typescript109.default.factory.createCallExpression(importProvidersExpression, [], modules));
35845
35655
  }
35846
35656
  combinedProviders.push(...providers);
35847
- const initializer = remapDynamicImports(sourceFile.fileName, import_typescript112.default.factory.createArrayLiteralExpression(combinedProviders, combinedProviders.length > 1));
35848
- args.push(import_typescript112.default.factory.createObjectLiteralExpression([import_typescript112.default.factory.createPropertyAssignment("providers", initializer)], true));
35657
+ const initializer = remapDynamicImports(sourceFile.fileName, import_typescript109.default.factory.createArrayLiteralExpression(combinedProviders, combinedProviders.length > 1));
35658
+ args.push(import_typescript109.default.factory.createObjectLiteralExpression([import_typescript109.default.factory.createPropertyAssignment("providers", initializer)], true));
35849
35659
  }
35850
35660
  tracker.replaceNode(
35851
35661
  analysis.call,
35852
- import_typescript112.default.factory.createCallExpression(bootstrapExpression, [], args),
35662
+ import_typescript109.default.factory.createCallExpression(bootstrapExpression, [], args),
35853
35663
  void 0,
35854
35664
  analysis.metadata.getSourceFile()
35855
35665
  );
35856
35666
  }
35857
35667
  function migrateImportsForBootstrapCall(sourceFile, imports, nodeLookup, importsForNewCall, providersInNewCall, tracker, nodesToCopy, referenceResolver, typeChecker) {
35858
- if (!import_typescript112.default.isArrayLiteralExpression(imports.initializer)) {
35668
+ if (!import_typescript109.default.isArrayLiteralExpression(imports.initializer)) {
35859
35669
  importsForNewCall.push(imports.initializer);
35860
35670
  return;
35861
35671
  }
35862
35672
  for (const element of imports.initializer.elements) {
35863
- if (import_typescript112.default.isCallExpression(element) && import_typescript112.default.isPropertyAccessExpression(element.expression) && element.arguments.length > 0 && element.expression.name.text === "forRoot" && isClassReferenceInAngularModule(element.expression.expression, "RouterModule", "router", typeChecker)) {
35673
+ if (import_typescript109.default.isCallExpression(element) && import_typescript109.default.isPropertyAccessExpression(element.expression) && element.arguments.length > 0 && element.expression.name.text === "forRoot" && isClassReferenceInAngularModule(element.expression.expression, "RouterModule", "router", typeChecker)) {
35864
35674
  const options = element.arguments[1];
35865
35675
  const features = options ? getRouterModuleForRootFeatures(sourceFile, options, tracker) : [];
35866
35676
  if (features !== null) {
35867
- providersInNewCall.push(import_typescript112.default.factory.createCallExpression(tracker.addImport(sourceFile, "provideRouter", "@angular/router"), [], [element.arguments[0], ...features]));
35677
+ providersInNewCall.push(import_typescript109.default.factory.createCallExpression(tracker.addImport(sourceFile, "provideRouter", "@angular/router"), [], [element.arguments[0], ...features]));
35868
35678
  addNodesToCopy(sourceFile, element.arguments[0], nodeLookup, tracker, nodesToCopy, referenceResolver);
35869
35679
  if (options) {
35870
35680
  addNodesToCopy(sourceFile, options, nodeLookup, tracker, nodesToCopy, referenceResolver);
@@ -35872,21 +35682,30 @@ function migrateImportsForBootstrapCall(sourceFile, imports, nodeLookup, imports
35872
35682
  continue;
35873
35683
  }
35874
35684
  }
35875
- if (import_typescript112.default.isIdentifier(element)) {
35685
+ if (import_typescript109.default.isIdentifier(element)) {
35876
35686
  const animationsModule = "platform-browser/animations";
35877
35687
  const animationsImport = `@angular/${animationsModule}`;
35878
35688
  if (isClassReferenceInAngularModule(element, "BrowserAnimationsModule", animationsModule, typeChecker)) {
35879
- providersInNewCall.push(import_typescript112.default.factory.createCallExpression(tracker.addImport(sourceFile, "provideAnimations", animationsImport), [], []));
35689
+ providersInNewCall.push(import_typescript109.default.factory.createCallExpression(tracker.addImport(sourceFile, "provideAnimations", animationsImport), [], []));
35880
35690
  continue;
35881
35691
  }
35882
35692
  if (isClassReferenceInAngularModule(element, "NoopAnimationsModule", animationsModule, typeChecker)) {
35883
- providersInNewCall.push(import_typescript112.default.factory.createCallExpression(tracker.addImport(sourceFile, "provideNoopAnimations", animationsImport), [], []));
35693
+ providersInNewCall.push(import_typescript109.default.factory.createCallExpression(tracker.addImport(sourceFile, "provideNoopAnimations", animationsImport), [], []));
35694
+ continue;
35695
+ }
35696
+ const httpClientModule = "common/http";
35697
+ const httpClientImport = `@angular/${httpClientModule}`;
35698
+ if (isClassReferenceInAngularModule(element, "HttpClientModule", httpClientModule, typeChecker)) {
35699
+ const callArgs = [
35700
+ import_typescript109.default.factory.createCallExpression(tracker.addImport(sourceFile, "withInterceptorsFromDi", httpClientImport), [], [])
35701
+ ];
35702
+ providersInNewCall.push(import_typescript109.default.factory.createCallExpression(tracker.addImport(sourceFile, "provideHttpClient", httpClientImport), [], callArgs));
35884
35703
  continue;
35885
35704
  }
35886
35705
  }
35887
- const target = import_typescript112.default.isCallExpression(element) && import_typescript112.default.isPropertyAccessExpression(element.expression) ? element.expression.expression : element;
35706
+ const target = import_typescript109.default.isCallExpression(element) && import_typescript109.default.isPropertyAccessExpression(element.expression) ? element.expression.expression : element;
35888
35707
  const classDeclaration = findClassDeclaration(target, typeChecker);
35889
- const decorators = classDeclaration ? getAngularDecorators(typeChecker, import_typescript112.default.getDecorators(classDeclaration) || []) : void 0;
35708
+ const decorators = classDeclaration ? getAngularDecorators(typeChecker, import_typescript109.default.getDecorators(classDeclaration) || []) : void 0;
35890
35709
  if (!decorators || decorators.length === 0 || decorators.every(({ name }) => name !== "Directive" && name !== "Component" && name !== "Pipe")) {
35891
35710
  importsForNewCall.push(element);
35892
35711
  addNodesToCopy(sourceFile, element, nodeLookup, tracker, nodesToCopy, referenceResolver);
@@ -35894,7 +35713,7 @@ function migrateImportsForBootstrapCall(sourceFile, imports, nodeLookup, imports
35894
35713
  }
35895
35714
  }
35896
35715
  function getRouterModuleForRootFeatures(sourceFile, options, tracker) {
35897
- if (!import_typescript112.default.isObjectLiteralExpression(options)) {
35716
+ if (!import_typescript109.default.isObjectLiteralExpression(options)) {
35898
35717
  return null;
35899
35718
  }
35900
35719
  const featureExpressions = [];
@@ -35902,7 +35721,7 @@ function getRouterModuleForRootFeatures(sourceFile, options, tracker) {
35902
35721
  const inMemoryScrollingOptions = [];
35903
35722
  const features = new UniqueItemTracker();
35904
35723
  for (const prop of options.properties) {
35905
- if (!import_typescript112.default.isPropertyAssignment(prop) || !import_typescript112.default.isIdentifier(prop.name) && !import_typescript112.default.isStringLiteralLike(prop.name)) {
35724
+ if (!import_typescript109.default.isPropertyAssignment(prop) || !import_typescript109.default.isIdentifier(prop.name) && !import_typescript109.default.isStringLiteralLike(prop.name)) {
35906
35725
  return null;
35907
35726
  }
35908
35727
  switch (prop.name.text) {
@@ -35910,12 +35729,12 @@ function getRouterModuleForRootFeatures(sourceFile, options, tracker) {
35910
35729
  features.track("withPreloading", prop.initializer);
35911
35730
  break;
35912
35731
  case "enableTracing":
35913
- if (prop.initializer.kind === import_typescript112.default.SyntaxKind.TrueKeyword) {
35732
+ if (prop.initializer.kind === import_typescript109.default.SyntaxKind.TrueKeyword) {
35914
35733
  features.track("withDebugTracing", null);
35915
35734
  }
35916
35735
  break;
35917
35736
  case "initialNavigation":
35918
- if (!import_typescript112.default.isStringLiteralLike(prop.initializer)) {
35737
+ if (!import_typescript109.default.isStringLiteralLike(prop.initializer)) {
35919
35738
  return null;
35920
35739
  }
35921
35740
  if (prop.initializer.text === "enabledBlocking" || prop.initializer.text === "enabled") {
@@ -35925,7 +35744,7 @@ function getRouterModuleForRootFeatures(sourceFile, options, tracker) {
35925
35744
  }
35926
35745
  break;
35927
35746
  case "useHash":
35928
- if (prop.initializer.kind === import_typescript112.default.SyntaxKind.TrueKeyword) {
35747
+ if (prop.initializer.kind === import_typescript109.default.SyntaxKind.TrueKeyword) {
35929
35748
  features.track("withHashLocation", null);
35930
35749
  }
35931
35750
  break;
@@ -35942,10 +35761,10 @@ function getRouterModuleForRootFeatures(sourceFile, options, tracker) {
35942
35761
  }
35943
35762
  }
35944
35763
  if (inMemoryScrollingOptions.length > 0) {
35945
- features.track("withInMemoryScrolling", import_typescript112.default.factory.createObjectLiteralExpression(inMemoryScrollingOptions));
35764
+ features.track("withInMemoryScrolling", import_typescript109.default.factory.createObjectLiteralExpression(inMemoryScrollingOptions));
35946
35765
  }
35947
35766
  if (configOptions.length > 0) {
35948
- features.track("withRouterConfig", import_typescript112.default.factory.createObjectLiteralExpression(configOptions));
35767
+ features.track("withRouterConfig", import_typescript109.default.factory.createObjectLiteralExpression(configOptions));
35949
35768
  }
35950
35769
  for (const [feature, featureArgs] of features.getEntries()) {
35951
35770
  const callArgs = [];
@@ -35954,26 +35773,26 @@ function getRouterModuleForRootFeatures(sourceFile, options, tracker) {
35954
35773
  callArgs.push(arg);
35955
35774
  }
35956
35775
  });
35957
- featureExpressions.push(import_typescript112.default.factory.createCallExpression(tracker.addImport(sourceFile, feature, "@angular/router"), [], callArgs));
35776
+ featureExpressions.push(import_typescript109.default.factory.createCallExpression(tracker.addImport(sourceFile, feature, "@angular/router"), [], callArgs));
35958
35777
  }
35959
35778
  return featureExpressions;
35960
35779
  }
35961
35780
  function addNodesToCopy(targetFile, rootNode, nodeLookup, tracker, nodesToCopy, referenceResolver) {
35962
35781
  const refs = findAllSameFileReferences(rootNode, nodeLookup, referenceResolver);
35963
35782
  for (const ref of refs) {
35964
- const importSpecifier = closestOrSelf(ref, import_typescript112.default.isImportSpecifier);
35965
- const importDeclaration = importSpecifier ? closestNode(importSpecifier, import_typescript112.default.isImportDeclaration) : null;
35966
- if (importDeclaration && importSpecifier && import_typescript112.default.isStringLiteralLike(importDeclaration.moduleSpecifier)) {
35783
+ const importSpecifier = closestOrSelf(ref, import_typescript109.default.isImportSpecifier);
35784
+ const importDeclaration = importSpecifier ? closestNode(importSpecifier, import_typescript109.default.isImportDeclaration) : null;
35785
+ if (importDeclaration && importSpecifier && import_typescript109.default.isStringLiteralLike(importDeclaration.moduleSpecifier)) {
35967
35786
  const moduleName = importDeclaration.moduleSpecifier.text.startsWith(".") ? remapRelativeImport(targetFile.fileName, importDeclaration.moduleSpecifier) : importDeclaration.moduleSpecifier.text;
35968
35787
  const symbolName = importSpecifier.propertyName ? importSpecifier.propertyName.text : importSpecifier.name.text;
35969
35788
  const alias = importSpecifier.propertyName ? importSpecifier.name.text : null;
35970
35789
  tracker.addImport(targetFile, symbolName, moduleName, alias);
35971
35790
  continue;
35972
35791
  }
35973
- const variableDeclaration = closestOrSelf(ref, import_typescript112.default.isVariableDeclaration);
35974
- const variableStatement = variableDeclaration ? closestNode(variableDeclaration, import_typescript112.default.isVariableStatement) : null;
35975
- if (variableDeclaration && variableStatement && import_typescript112.default.isIdentifier(variableDeclaration.name)) {
35976
- if (isExported3(variableStatement)) {
35792
+ const variableDeclaration = closestOrSelf(ref, import_typescript109.default.isVariableDeclaration);
35793
+ const variableStatement = variableDeclaration ? closestNode(variableDeclaration, import_typescript109.default.isVariableStatement) : null;
35794
+ if (variableDeclaration && variableStatement && import_typescript109.default.isIdentifier(variableDeclaration.name)) {
35795
+ if (isExported(variableStatement)) {
35977
35796
  tracker.addImport(targetFile, variableDeclaration.name.text, getRelativeImportPath(targetFile.fileName, ref.getSourceFile().fileName));
35978
35797
  } else {
35979
35798
  nodesToCopy.add(variableStatement);
@@ -35982,7 +35801,7 @@ function addNodesToCopy(targetFile, rootNode, nodeLookup, tracker, nodesToCopy,
35982
35801
  }
35983
35802
  const closestExportable = closestOrSelf(ref, isExportableDeclaration);
35984
35803
  if (closestExportable) {
35985
- if (isExported3(closestExportable) && closestExportable.name) {
35804
+ if (isExported(closestExportable) && closestExportable.name) {
35986
35805
  tracker.addImport(targetFile, closestExportable.name.text, getRelativeImportPath(targetFile.fileName, ref.getSourceFile().fileName));
35987
35806
  } else {
35988
35807
  nodesToCopy.add(closestExportable);
@@ -36013,7 +35832,7 @@ function findAllSameFileReferences(rootNode, nodeLookup, referenceResolver) {
36013
35832
  if (!closestTopLevel || traversedTopLevelNodes.has(closestTopLevel)) {
36014
35833
  continue;
36015
35834
  }
36016
- if (!import_typescript112.default.isImportDeclaration(closestTopLevel) && isOutsideRange(excludeStart, excludeEnd, closestTopLevel.getStart(), closestTopLevel.getEnd())) {
35835
+ if (!import_typescript109.default.isImportDeclaration(closestTopLevel) && isOutsideRange(excludeStart, excludeEnd, closestTopLevel.getStart(), closestTopLevel.getEnd())) {
36017
35836
  traversedTopLevelNodes.add(closestTopLevel);
36018
35837
  walk(closestTopLevel);
36019
35838
  }
@@ -36034,25 +35853,25 @@ function referencesToNodeWithinSameFile(node, nodeLookup, excludeStart, excludeE
36034
35853
  function remapDynamicImports(targetFileName, rootNode) {
36035
35854
  let hasChanged = false;
36036
35855
  const transformer = (context) => {
36037
- return (sourceFile) => import_typescript112.default.visitNode(sourceFile, function walk(node) {
36038
- if (import_typescript112.default.isCallExpression(node) && node.expression.kind === import_typescript112.default.SyntaxKind.ImportKeyword && node.arguments.length > 0 && import_typescript112.default.isStringLiteralLike(node.arguments[0]) && node.arguments[0].text.startsWith(".")) {
35856
+ return (sourceFile) => import_typescript109.default.visitNode(sourceFile, function walk(node) {
35857
+ if (import_typescript109.default.isCallExpression(node) && node.expression.kind === import_typescript109.default.SyntaxKind.ImportKeyword && node.arguments.length > 0 && import_typescript109.default.isStringLiteralLike(node.arguments[0]) && node.arguments[0].text.startsWith(".")) {
36039
35858
  hasChanged = true;
36040
35859
  return context.factory.updateCallExpression(node, node.expression, node.typeArguments, [
36041
35860
  context.factory.createStringLiteral(remapRelativeImport(targetFileName, node.arguments[0])),
36042
35861
  ...node.arguments.slice(1)
36043
35862
  ]);
36044
35863
  }
36045
- return import_typescript112.default.visitEachChild(node, walk, context);
35864
+ return import_typescript109.default.visitEachChild(node, walk, context);
36046
35865
  });
36047
35866
  };
36048
- const result = import_typescript112.default.transform(rootNode, [transformer]).transformed[0];
35867
+ const result = import_typescript109.default.transform(rootNode, [transformer]).transformed[0];
36049
35868
  return hasChanged ? result : rootNode;
36050
35869
  }
36051
35870
  function isTopLevelStatement(node) {
36052
- return node.parent != null && import_typescript112.default.isSourceFile(node.parent);
35871
+ return node.parent != null && import_typescript109.default.isSourceFile(node.parent);
36053
35872
  }
36054
35873
  function isReferenceIdentifier(node) {
36055
- return import_typescript112.default.isIdentifier(node) && (!import_typescript112.default.isPropertyAssignment(node.parent) && !import_typescript112.default.isParameter(node.parent) || node.parent.name !== node);
35874
+ return import_typescript109.default.isIdentifier(node) && (!import_typescript109.default.isPropertyAssignment(node.parent) && !import_typescript109.default.isParameter(node.parent) || node.parent.name !== node);
36056
35875
  }
36057
35876
  function isOutsideRange(excludeStart, excludeEnd, start, end) {
36058
35877
  return start < excludeStart && end < excludeStart || start > excludeEnd;
@@ -36060,30 +35879,16 @@ function isOutsideRange(excludeStart, excludeEnd, start, end) {
36060
35879
  function remapRelativeImport(targetFileName, specifier) {
36061
35880
  return getRelativeImportPath(targetFileName, (0, import_path7.join)((0, import_path7.dirname)(specifier.getSourceFile().fileName), specifier.text));
36062
35881
  }
36063
- function isExported3(node) {
36064
- return import_typescript112.default.canHaveModifiers(node) && node.modifiers ? node.modifiers.some((modifier) => modifier.kind === import_typescript112.default.SyntaxKind.ExportKeyword) : false;
36065
- }
36066
- function closestOrSelf(node, predicate) {
36067
- return predicate(node) ? node : closestNode(node, predicate);
35882
+ function isExported(node) {
35883
+ return import_typescript109.default.canHaveModifiers(node) && node.modifiers ? node.modifiers.some((modifier) => modifier.kind === import_typescript109.default.SyntaxKind.ExportKeyword) : false;
36068
35884
  }
36069
35885
  function isExportableDeclaration(node) {
36070
- return import_typescript112.default.isEnumDeclaration(node) || import_typescript112.default.isClassDeclaration(node) || import_typescript112.default.isFunctionDeclaration(node) || import_typescript112.default.isInterfaceDeclaration(node) || import_typescript112.default.isTypeAliasDeclaration(node);
36071
- }
36072
- function isClassReferenceInAngularModule(node, className, moduleName, typeChecker) {
36073
- var _a;
36074
- const symbol = typeChecker.getTypeAtLocation(node).getSymbol();
36075
- const externalName = `@angular/${moduleName}`;
36076
- const internalName = `angular2/rc/packages/${moduleName}`;
36077
- return !!((_a = symbol == null ? void 0 : symbol.declarations) == null ? void 0 : _a.some((decl) => {
36078
- const closestClass = closestOrSelf(decl, import_typescript112.default.isClassDeclaration);
36079
- const closestClassFileName = closestClass == null ? void 0 : closestClass.getSourceFile().fileName;
36080
- return closestClass && closestClassFileName && closestClass.name && import_typescript112.default.isIdentifier(closestClass.name) && closestClass.name.text === className && (closestClassFileName.includes(externalName) || closestClassFileName.includes(internalName));
36081
- }));
35886
+ return import_typescript109.default.isEnumDeclaration(node) || import_typescript109.default.isClassDeclaration(node) || import_typescript109.default.isFunctionDeclaration(node) || import_typescript109.default.isInterfaceDeclaration(node) || import_typescript109.default.isTypeAliasDeclaration(node);
36082
35887
  }
36083
35888
  function getLastImportEnd(sourceFile) {
36084
35889
  let index = 0;
36085
35890
  for (const statement of sourceFile.statements) {
36086
- if (import_typescript112.default.isImportDeclaration(statement)) {
35891
+ if (import_typescript109.default.isImportDeclaration(statement)) {
36087
35892
  index = Math.max(index, statement.getEnd());
36088
35893
  } else {
36089
35894
  break;
@@ -36131,7 +35936,7 @@ function standaloneMigration(tree, tsconfigPath, basePath, pathToMigrate, schema
36131
35936
  });
36132
35937
  const referenceLookupExcludedFiles = /node_modules|\.ngtypecheck\.ts/;
36133
35938
  const program = createProgram({ rootNames, host, options, oldProgram });
36134
- const printer = import_typescript113.default.createPrinter();
35939
+ const printer = import_typescript110.default.createPrinter();
36135
35940
  if ((0, import_fs2.existsSync)(pathToMigrate) && !(0, import_fs2.statSync)(pathToMigrate).isDirectory()) {
36136
35941
  throw new import_schematics.SchematicsException(`Migration path ${pathToMigrate} has to be a directory. Cannot run the standalone migration.`);
36137
35942
  }
@@ -36189,5 +35994,4 @@ function standaloneMigration(tree, tsconfigPath, basePath, pathToMigrate, schema
36189
35994
  * Use of this source code is governed by an MIT-style license that can be
36190
35995
  * found in the LICENSE file at https://angular.io/license
36191
35996
  */
36192
- // Closure Compiler ignores @suppress and similar if the comment contains @license.
36193
35997
  //# sourceMappingURL=bundle.js.map