@angular/compiler-cli 20.1.0-next.2 → 20.1.0-rc.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 (45) hide show
  1. package/bundles/{chunk-OVACIG5Q.js → chunk-2KXD3GSC.js} +3 -3
  2. package/bundles/{chunk-U5SKOFKE.js → chunk-3NKMA2JO.js} +2 -2
  3. package/bundles/{chunk-OOYRM3V7.js → chunk-45WGF6MF.js} +85 -85
  4. package/bundles/{chunk-OOYRM3V7.js.map → chunk-45WGF6MF.js.map} +2 -2
  5. package/bundles/{chunk-CZ5FD3CS.js → chunk-6ECVYRSU.js} +19 -8
  6. package/bundles/chunk-6ECVYRSU.js.map +6 -0
  7. package/bundles/{chunk-N3B6BMGR.js → chunk-FPHHL4UV.js} +45 -34
  8. package/bundles/{chunk-N3B6BMGR.js.map → chunk-FPHHL4UV.js.map} +1 -1
  9. package/bundles/{chunk-UMD7AW7S.js → chunk-IRC3OLFO.js} +335 -242
  10. package/bundles/chunk-IRC3OLFO.js.map +6 -0
  11. package/bundles/{chunk-NVYT6OPE.js → chunk-PML5JK7B.js} +7 -7
  12. package/bundles/{chunk-CY4WXRF2.js → chunk-QEIHQPSG.js} +5 -5
  13. package/bundles/{chunk-FPJJEIPU.js → chunk-SC5ESQGY.js} +11 -11
  14. package/bundles/{chunk-H5Y7P5GQ.js → chunk-SEKYV57I.js} +3 -3
  15. package/bundles/{chunk-3AHGFMNS.js → chunk-TPEB2IXF.js} +7 -7
  16. package/bundles/index.js +12 -12
  17. package/bundles/linker/babel/index.js +25 -14
  18. package/bundles/linker/babel/index.js.map +1 -1
  19. package/bundles/linker/index.js +3 -3
  20. package/bundles/private/localize.js +4 -4
  21. package/bundles/private/migrations.js +4 -4
  22. package/bundles/private/tooling.js +6 -6
  23. package/bundles/src/bin/ng_xi18n.js +10 -10
  24. package/bundles/src/bin/ngc.js +8 -8
  25. package/linker/babel/src/ast/babel_ast_factory.d.ts +1 -1
  26. package/linker/src/file_linker/partial_linkers/util.d.ts +1 -1
  27. package/package.json +3 -3
  28. package/src/ngtsc/annotations/component/src/metadata.d.ts +5 -3
  29. package/src/ngtsc/annotations/component/src/util.d.ts +5 -5
  30. package/src/ngtsc/perf/src/api.d.ts +12 -8
  31. package/src/ngtsc/translator/src/api/ast_factory.d.ts +3 -2
  32. package/src/ngtsc/translator/src/typescript_ast_factory.d.ts +1 -1
  33. package/src/ngtsc/typecheck/api/checker.d.ts +3 -2
  34. package/src/ngtsc/typecheck/api/scope.d.ts +24 -2
  35. package/src/ngtsc/typecheck/src/checker.d.ts +6 -2
  36. package/src/ngtsc/typecheck/src/oob.d.ts +7 -4
  37. package/bundles/chunk-CZ5FD3CS.js.map +0 -6
  38. package/bundles/chunk-UMD7AW7S.js.map +0 -6
  39. /package/bundles/{chunk-OVACIG5Q.js.map → chunk-2KXD3GSC.js.map} +0 -0
  40. /package/bundles/{chunk-U5SKOFKE.js.map → chunk-3NKMA2JO.js.map} +0 -0
  41. /package/bundles/{chunk-NVYT6OPE.js.map → chunk-PML5JK7B.js.map} +0 -0
  42. /package/bundles/{chunk-CY4WXRF2.js.map → chunk-QEIHQPSG.js.map} +0 -0
  43. /package/bundles/{chunk-FPJJEIPU.js.map → chunk-SC5ESQGY.js.map} +0 -0
  44. /package/bundles/{chunk-H5Y7P5GQ.js.map → chunk-SEKYV57I.js.map} +0 -0
  45. /package/bundles/{chunk-3AHGFMNS.js.map → chunk-TPEB2IXF.js.map} +0 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@angular/compiler-cli",
3
- "version": "20.1.0-next.2",
3
+ "version": "20.1.0-rc.0",
4
4
  "description": "Angular - the compiler CLI for Node.js",
5
5
  "typings": "index.d.ts",
6
6
  "bin": {
@@ -38,7 +38,7 @@
38
38
  }
39
39
  },
40
40
  "dependencies": {
41
- "@babel/core": "7.27.4",
41
+ "@babel/core": "7.27.7",
42
42
  "@jridgewell/sourcemap-codec": "^1.4.14",
43
43
  "reflect-metadata": "^0.2.0",
44
44
  "chokidar": "^4.0.0",
@@ -48,7 +48,7 @@
48
48
  "yargs": "^18.0.0"
49
49
  },
50
50
  "peerDependencies": {
51
- "@angular/compiler": "20.1.0-next.2",
51
+ "@angular/compiler": "20.1.0-rc.0",
52
52
  "typescript": ">=5.8 <5.9"
53
53
  },
54
54
  "peerDependenciesMeta": {
@@ -5,7 +5,7 @@
5
5
  * Use of this source code is governed by an MIT-style license that can be
6
6
  * found in the LICENSE file at https://angular.dev/license
7
7
  */
8
- import { AnimationTriggerNames, DeclarationListEmitMode, DeferBlockDepsEmitMode, R3ClassDebugInfo, R3ClassMetadata, R3ComponentMetadata, R3DeferPerBlockDependency, R3DeferPerComponentDependency, R3TemplateDependencyMetadata, SchemaMetadata, TmplAstDeferredBlock } from '@angular/compiler';
8
+ import { LegacyAnimationTriggerNames, DeclarationListEmitMode, DeferBlockDepsEmitMode, R3ClassDebugInfo, R3ClassMetadata, R3ComponentMetadata, R3DeferPerBlockDependency, R3DeferPerComponentDependency, R3TemplateDependencyMetadata, SchemaMetadata, TmplAstDeferredBlock } from '@angular/compiler';
9
9
  import ts from 'typescript';
10
10
  import { Reference } from '../../../imports';
11
11
  import { ClassPropertyMapping, DirectiveResources, DirectiveTypeCheckMeta, HostDirectiveMeta, InputMapping } from '../../../metadata';
@@ -19,7 +19,7 @@ import { HostBindingNodes } from '../../directive';
19
19
  * The `keyof R3ComponentMetadata &` condition ensures that only fields of `R3ComponentMetadata` can
20
20
  * be included here.
21
21
  */
22
- export type ComponentMetadataResolvedFields = SubsetOfKeys<R3ComponentMetadata<R3TemplateDependencyMetadata>, 'declarations' | 'declarationListEmitMode' | 'defer'>;
22
+ export type ComponentMetadataResolvedFields = SubsetOfKeys<R3ComponentMetadata<R3TemplateDependencyMetadata>, 'declarations' | 'declarationListEmitMode' | 'defer' | 'hasDirectiveDependencies'>;
23
23
  export interface ComponentAnalysisData {
24
24
  /**
25
25
  * `meta` includes those fields of `R3ComponentMetadata` which are calculated at `analyze` time
@@ -54,7 +54,7 @@ export interface ComponentAnalysisData {
54
54
  */
55
55
  inlineStyles: string[] | null;
56
56
  isPoisoned: boolean;
57
- animationTriggerNames: AnimationTriggerNames | null;
57
+ legacyAnimationTriggerNames: LegacyAnimationTriggerNames | null;
58
58
  rawImports: ts.Expression | null;
59
59
  resolvedImports: Reference<ClassDeclaration>[] | null;
60
60
  rawDeferredImports: ts.Expression | null;
@@ -104,6 +104,8 @@ export interface ComponentResolutionData {
104
104
  * defer resolver function in `PerComponent` mode.
105
105
  */
106
106
  deferPerComponentDependencies: R3DeferPerComponentDependency[];
107
+ /** Whether the component is standalone and has any directly-imported directive dependencies. */
108
+ hasDirectiveDependencies: boolean;
107
109
  }
108
110
  /**
109
111
  * Describes a dependency used within a `@defer` block.
@@ -5,7 +5,7 @@
5
5
  * Use of this source code is governed by an MIT-style license that can be
6
6
  * found in the LICENSE file at https://angular.dev/license
7
7
  */
8
- import { AnimationTriggerNames } from '@angular/compiler';
8
+ import { LegacyAnimationTriggerNames } from '@angular/compiler';
9
9
  import ts from 'typescript';
10
10
  import { Reference } from '../../../imports';
11
11
  import { ForeignFunctionResolver, ResolvedValue } from '../../../partial_evaluator';
@@ -13,12 +13,12 @@ import { ClassDeclaration } from '../../../reflection';
13
13
  /**
14
14
  * Collect the animation names from the static evaluation result.
15
15
  * @param value the static evaluation result of the animations
16
- * @param animationTriggerNames the animation names collected and whether some names could not be
16
+ * @param legacyAnimationTriggerNames the animation names collected and whether some names could not be
17
17
  * statically evaluated.
18
18
  */
19
- export declare function collectAnimationNames(value: ResolvedValue, animationTriggerNames: AnimationTriggerNames): void;
20
- export declare function isAngularAnimationsReference(reference: Reference, symbolName: string): boolean;
21
- export declare const animationTriggerResolver: ForeignFunctionResolver;
19
+ export declare function collectLegacyAnimationNames(value: ResolvedValue, legacyAnimationTriggerNames: LegacyAnimationTriggerNames): void;
20
+ export declare function isLegacyAngularAnimationsReference(reference: Reference, symbolName: string): boolean;
21
+ export declare const legacyAnimationTriggerResolver: ForeignFunctionResolver;
22
22
  export declare function validateAndFlattenComponentImports(imports: ResolvedValue, expr: ts.Expression, isDeferred: boolean): {
23
23
  imports: Reference<ClassDeclaration>[];
24
24
  diagnostics: ts.Diagnostic[];
@@ -128,26 +128,30 @@ export declare enum PerfPhase {
128
128
  * Time spent by the Angular Language Service calculating outlining spans.
129
129
  */
130
130
  OutliningSpans = 24,
131
- /**
132
- * Tracks the number of `PerfPhase`s, and must appear at the end of the list.
133
- */
134
- LAST = 25,
135
131
  /**
136
132
  * Time spent by the Angular Language Service calculating code fixes.
137
133
  */
138
- LsCodeFixes = 26,
134
+ LsCodeFixes = 25,
139
135
  /**
140
136
  * Time spent by the Angular Language Service to fix all detected same type errors.
141
137
  */
142
- LsCodeFixesAll = 27,
138
+ LsCodeFixesAll = 26,
143
139
  /**
144
140
  * Time spent computing possible Angular refactorings.
145
141
  */
146
- LSComputeApplicableRefactorings = 28,
142
+ LSComputeApplicableRefactorings = 27,
147
143
  /**
148
144
  * Time spent computing changes for applying a given refactoring.
149
145
  */
150
- LSApplyRefactoring = 29
146
+ LSApplyRefactoring = 28,
147
+ /**
148
+ * Time spent by the Angular Language Service calculating semantic classifications.
149
+ */
150
+ LSSemanticClassification = 29,
151
+ /**
152
+ * Tracks the number of `PerfPhase`s, and must appear at the end of the list.
153
+ */
154
+ LAST = 30
151
155
  }
152
156
  /**
153
157
  * Represents some occurrence during compilation, and is tracked with a counter.
@@ -30,9 +30,10 @@ export interface AstFactory<TStatement, TExpression> {
30
30
  * Create an assignment expression (e.g. `lhsExpr = rhsExpr`).
31
31
  *
32
32
  * @param target an expression that evaluates to the left side of the assignment.
33
+ * @param operator binary assignment operator that will be applied.
33
34
  * @param value an expression that evaluates to the right side of the assignment.
34
35
  */
35
- createAssignment(target: TExpression, value: TExpression): TExpression;
36
+ createAssignment(target: TExpression, operator: BinaryOperator, value: TExpression): TExpression;
36
37
  /**
37
38
  * Create a binary expression (e.g. `lhs && rhs`).
38
39
  *
@@ -238,7 +239,7 @@ export type UnaryOperator = '+' | '-' | '!';
238
239
  /**
239
240
  * The binary operators supported by the `AstFactory`.
240
241
  */
241
- export type BinaryOperator = '&&' | '>' | '>=' | '&' | '|' | '/' | '==' | '===' | '<' | '<=' | '-' | '%' | '*' | '**' | '!=' | '!==' | '||' | '+' | '??' | 'in';
242
+ export type BinaryOperator = '&&' | '>' | '>=' | '&' | '|' | '/' | '==' | '===' | '<' | '<=' | '-' | '%' | '*' | '**' | '!=' | '!==' | '||' | '+' | '??' | 'in' | '=' | '+=' | '-=' | '*=' | '/=' | '%=' | '**=' | '&&=' | '||=' | '??=';
242
243
  /**
243
244
  * The original location of the start or end of a node created by the `AstFactory`.
244
245
  */
@@ -16,7 +16,7 @@ export declare class TypeScriptAstFactory implements AstFactory<ts.Statement, ts
16
16
  constructor(annotateForClosureCompiler: boolean);
17
17
  attachComments: typeof attachComments;
18
18
  createArrayLiteral: (elements?: readonly ts.Expression[], multiLine?: boolean) => ts.ArrayLiteralExpression;
19
- createAssignment(target: ts.Expression, value: ts.Expression): ts.Expression;
19
+ createAssignment(target: ts.Expression, operator: BinaryOperator, value: ts.Expression): ts.Expression;
20
20
  createBinaryExpression(leftOperand: ts.Expression, operator: BinaryOperator, rightOperand: ts.Expression): ts.Expression;
21
21
  createBlock(body: ts.Statement[]): ts.Statement;
22
22
  createCallExpression(callee: ts.Expression, args: ts.Expression[], pure: boolean): ts.Expression;
@@ -14,7 +14,7 @@ import { NgModuleMeta, PipeMeta } from '../../metadata';
14
14
  import { ClassDeclaration } from '../../reflection';
15
15
  import { FullSourceMapping, GetPotentialAngularMetaOptions, NgTemplateDiagnostic, TypeCheckableDirectiveMeta } from './api';
16
16
  import { GlobalCompletion } from './completion';
17
- import { PotentialDirective, PotentialImport, PotentialImportMode, PotentialPipe, TsCompletionEntryInfo } from './scope';
17
+ import { PotentialDirective, PotentialDirectiveModuleSpecifierResolver, PotentialImport, PotentialImportMode, PotentialPipe, TsCompletionEntryInfo } from './scope';
18
18
  import { ElementSymbol, SelectorlessComponentSymbol, SelectorlessDirectiveSymbol, Symbol, TcbLocation, TemplateSymbol } from './symbols';
19
19
  /**
20
20
  * Interface to the Angular Template Type Checker to extract diagnostics and intelligence from the
@@ -92,6 +92,7 @@ export interface TemplateTypeChecker {
92
92
  */
93
93
  getSymbolOfNode(node: TmplAstElement, component: ts.ClassDeclaration): ElementSymbol | null;
94
94
  getSymbolOfNode(node: TmplAstTemplate, component: ts.ClassDeclaration): TemplateSymbol | null;
95
+ getSymbolOfNode(node: TmplAstTemplate | TmplAstElement, component: ts.ClassDeclaration): TemplateSymbol | ElementSymbol | null;
95
96
  getSymbolOfNode(node: TmplAstComponent, component: ts.ClassDeclaration): SelectorlessComponentSymbol | null;
96
97
  getSymbolOfNode(node: TmplAstDirective, component: ts.ClassDeclaration): SelectorlessDirectiveSymbol | null;
97
98
  getSymbolOfNode(node: AST | TmplAstNode, component: ts.ClassDeclaration): Symbol | null;
@@ -150,7 +151,7 @@ export interface TemplateTypeChecker {
150
151
  /**
151
152
  * In the context of an Angular trait, generate potential imports for a directive.
152
153
  */
153
- getPotentialImportsFor(toImport: Reference<ClassDeclaration>, inContext: ts.Node, importMode: PotentialImportMode): ReadonlyArray<PotentialImport>;
154
+ getPotentialImportsFor(toImport: Reference<ClassDeclaration>, inContext: ts.Node, importMode: PotentialImportMode, potentialDirectiveModuleSpecifierResolver?: PotentialDirectiveModuleSpecifierResolver): ReadonlyArray<PotentialImport>;
154
155
  /**
155
156
  * Get the primary decorator for an Angular class (such as @Component). This does not work for
156
157
  * `@Injectable`.
@@ -34,6 +34,13 @@ export interface TsCompletionEntryInfo {
34
34
  * reexports the BarComponent from `bar.ts`, so the `tsCompletionEntrySymbolFileName` will be `public_api.ts`.
35
35
  */
36
36
  tsCompletionEntrySymbolFileName: string;
37
+ /**
38
+ * Sometime the component can be exported with a different name than the class name.
39
+ * For example, `export {BarComponent as NewBarComponent} from './bar.component';`
40
+ *
41
+ * Sometimes, the component is exported by the `NgModule`.
42
+ */
43
+ tsCompletionEntrySymbolName: string;
37
44
  /**
38
45
  * This data is from the tsLs completion entry, and
39
46
  * will be used in the `ls.getCompletionEntryDetails`.
@@ -69,7 +76,13 @@ export interface PotentialDirective {
69
76
  * Whether or not this directive is in scope.
70
77
  */
71
78
  isInScope: boolean;
72
- tsCompletionEntryInfo: TsCompletionEntryInfo | null;
79
+ /**
80
+ * The directive can be exported by multiple modules,
81
+ * collecting all the entry information here.
82
+ *
83
+ * Filter the appropriate entry information when using it to compute the module specifier.
84
+ */
85
+ tsCompletionEntryInfos: TsCompletionEntryInfo[] | null;
73
86
  }
74
87
  /**
75
88
  * Metadata for a pipe which is available in a template.
@@ -88,7 +101,13 @@ export interface PotentialPipe {
88
101
  * Whether or not this pipe is in scope.
89
102
  */
90
103
  isInScope: boolean;
91
- tsCompletionEntryInfo: TsCompletionEntryInfo | null;
104
+ /**
105
+ * The pipe can be exported by multiple modules,
106
+ * collecting all the entry information here.
107
+ *
108
+ * Filter the appropriate entry information when using it to compute the module specifier.
109
+ */
110
+ tsCompletionEntryInfos: TsCompletionEntryInfo[] | null;
92
111
  }
93
112
  /**
94
113
  * Possible modes in which to look up a potential import.
@@ -103,3 +122,6 @@ export declare enum PotentialImportMode {
103
122
  */
104
123
  ForceDirect = 1
105
124
  }
125
+ export interface PotentialDirectiveModuleSpecifierResolver {
126
+ resolve(toImport: Reference<ClassDeclaration>, importOn: ts.Node | null): string | undefined;
127
+ }
@@ -16,7 +16,7 @@ import { PerfRecorder } from '../../perf';
16
16
  import { ProgramDriver } from '../../program_driver';
17
17
  import { ClassDeclaration, ReflectionHost } from '../../reflection';
18
18
  import { ComponentScopeReader, TypeCheckScopeRegistry } from '../../scope';
19
- import { ElementSymbol, FullSourceMapping, GetPotentialAngularMetaOptions, GlobalCompletion, NgTemplateDiagnostic, OptimizeFor, PotentialDirective, PotentialImport, PotentialImportMode, PotentialPipe, ProgramTypeCheckAdapter, SelectorlessComponentSymbol, SelectorlessDirectiveSymbol, TcbLocation, TemplateSymbol, TemplateTypeChecker, TsCompletionEntryInfo, TypeCheckableDirectiveMeta, TypeCheckingConfig } from '../api';
19
+ import { ElementSymbol, FullSourceMapping, GetPotentialAngularMetaOptions, GlobalCompletion, NgTemplateDiagnostic, OptimizeFor, PotentialDirective, PotentialDirectiveModuleSpecifierResolver, PotentialImport, PotentialImportMode, PotentialPipe, ProgramTypeCheckAdapter, SelectorlessComponentSymbol, SelectorlessDirectiveSymbol, TcbLocation, TemplateSymbol, TemplateTypeChecker, TsCompletionEntryInfo, TypeCheckableDirectiveMeta, TypeCheckingConfig } from '../api';
20
20
  import { ShimTypeCheckingData } from './context';
21
21
  import { DirectiveSourceManager } from './source';
22
22
  /**
@@ -134,6 +134,10 @@ export declare class TemplateTypeCheckerImpl implements TemplateTypeChecker {
134
134
  getDirectiveScopeData(component: ts.ClassDeclaration, isInScope: boolean, tsCompletionEntryInfo: TsCompletionEntryInfo | null): PotentialDirective | null;
135
135
  getElementsInFileScope(component: ts.ClassDeclaration): Map<string, PotentialDirective | null>;
136
136
  getElementsInGlobal(component: ts.ClassDeclaration, tsLs: ts.LanguageService, options: GetPotentialAngularMetaOptions): PotentialDirective[];
137
+ /**
138
+ * If the NgModule exports a new module, we need to recursively get its directives.
139
+ */
140
+ private getDirectiveDeclsForNgModule;
137
141
  getPotentialElementTags(component: ts.ClassDeclaration, tsLs: ts.LanguageService, options: GetPotentialAngularMetaOptions): Map<string, PotentialDirective | null>;
138
142
  getPotentialDomBindings(tagName: string): {
139
143
  attribute: string;
@@ -143,7 +147,7 @@ export declare class TemplateTypeCheckerImpl implements TemplateTypeChecker {
143
147
  getPrimaryAngularDecorator(target: ts.ClassDeclaration): ts.Decorator | null;
144
148
  getOwningNgModule(component: ts.ClassDeclaration): ts.ClassDeclaration | null;
145
149
  private emit;
146
- getPotentialImportsFor(toImport: Reference<ClassDeclaration>, inContext: ts.Node, importMode: PotentialImportMode): ReadonlyArray<PotentialImport>;
150
+ getPotentialImportsFor(toImport: Reference<ClassDeclaration>, inContext: ts.Node, importMode: PotentialImportMode, potentialDirectiveModuleSpecifierResolver?: PotentialDirectiveModuleSpecifierResolver): ReadonlyArray<PotentialImport>;
147
151
  private getComponentScope;
148
152
  private getScopeData;
149
153
  private scopeDataOfDirectiveMeta;
@@ -35,8 +35,9 @@ export interface OutOfBandDiagnosticRecorder {
35
35
  *
36
36
  * @param id the type-checking ID of the template which contains the unknown pipe.
37
37
  * @param ast the `BindingPipe` invocation of the pipe which could not be found.
38
+ * @param isStandalone whether the host component is standalone.
38
39
  */
39
- missingPipe(id: TypeCheckId, ast: BindingPipe): void;
40
+ missingPipe(id: TypeCheckId, ast: BindingPipe, isStandalone: boolean): void;
40
41
  /**
41
42
  * Reports usage of a pipe imported via `@Component.deferredImports` outside
42
43
  * of a `@defer` block in a template.
@@ -131,16 +132,18 @@ export interface OutOfBandDiagnosticRecorder {
131
132
  }
132
133
  export declare class OutOfBandDiagnosticRecorderImpl implements OutOfBandDiagnosticRecorder {
133
134
  private resolver;
134
- private _diagnostics;
135
+ private readonly _diagnostics;
135
136
  /**
136
137
  * Tracks which `BindingPipe` nodes have already been recorded as invalid, so only one diagnostic
137
138
  * is ever produced per node.
138
139
  */
139
- private recordedPipes;
140
+ private readonly recordedPipes;
141
+ /** Common pipes that can be suggested to users. */
142
+ private readonly pipeSuggestions;
140
143
  constructor(resolver: TypeCheckSourceResolver);
141
144
  get diagnostics(): ReadonlyArray<TemplateDiagnostic>;
142
145
  missingReferenceTarget(id: TypeCheckId, ref: TmplAstReference): void;
143
- missingPipe(id: TypeCheckId, ast: BindingPipe): void;
146
+ missingPipe(id: TypeCheckId, ast: BindingPipe, isStandalone: boolean): void;
144
147
  deferredPipeUsedEagerly(id: TypeCheckId, ast: BindingPipe): void;
145
148
  deferredComponentUsedEagerly(id: TypeCheckId, element: TmplAstElement): void;
146
149
  duplicateTemplateVar(id: TypeCheckId, variable: TmplAstVariable,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