@rushstack/heft-typescript-plugin 0.1.0-rc.5 → 0.2.0-rc.6
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.
- package/dist/heft-typescript-plugin.d.ts +4 -0
- package/dist/tsdoc-metadata.json +1 -1
- package/lib/Performance.d.ts +2 -2
- package/lib/Performance.d.ts.map +1 -1
- package/lib/TranspilerWorker.d.ts +2 -0
- package/lib/TranspilerWorker.d.ts.map +1 -0
- package/lib/TranspilerWorker.js +80 -0
- package/lib/TranspilerWorker.js.map +1 -0
- package/lib/TypeScriptBuilder.d.ts +16 -7
- package/lib/TypeScriptBuilder.d.ts.map +1 -1
- package/lib/TypeScriptBuilder.js +172 -132
- package/lib/TypeScriptBuilder.js.map +1 -1
- package/lib/TypeScriptPlugin.d.ts +4 -0
- package/lib/TypeScriptPlugin.d.ts.map +1 -1
- package/lib/TypeScriptPlugin.js +1 -0
- package/lib/TypeScriptPlugin.js.map +1 -1
- package/lib/configureProgramForMultiEmit.d.ts +7 -0
- package/lib/configureProgramForMultiEmit.d.ts.map +1 -0
- package/lib/configureProgramForMultiEmit.js +99 -0
- package/lib/configureProgramForMultiEmit.js.map +1 -0
- package/lib/internalTypings/TypeScriptInternals.d.ts +6 -1
- package/lib/internalTypings/TypeScriptInternals.d.ts.map +1 -1
- package/lib/internalTypings/TypeScriptInternals.js.map +1 -1
- package/lib/schemas/typescript.schema.json +5 -0
- package/lib/types.d.ts +54 -0
- package/lib/types.d.ts.map +1 -0
- package/lib/types.js +3 -0
- package/lib/types.js.map +1 -0
- package/package.json +8 -8
|
@@ -71,6 +71,10 @@ export declare interface ITypeScriptConfigurationJson {
|
|
|
71
71
|
* Note that this will effectively enable \"noEmitOnError\".
|
|
72
72
|
*/
|
|
73
73
|
buildProjectReferences?: boolean;
|
|
74
|
+
/**
|
|
75
|
+
* If true, and the tsconfig has \"isolatedModules\": true, then transpilation will happen in parallel in a worker thread.
|
|
76
|
+
*/
|
|
77
|
+
useTranspilerWorker?: boolean;
|
|
74
78
|
project?: string;
|
|
75
79
|
/**
|
|
76
80
|
* Configures additional file types that should be copied into the TypeScript compiler's emit folders, for example
|
package/dist/tsdoc-metadata.json
CHANGED
package/lib/Performance.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export
|
|
1
|
+
export type PerformanceMeasurer = <TResult extends object | void>(measurementName: string, fn: () => TResult) => TResult & {
|
|
2
2
|
duration: number;
|
|
3
3
|
};
|
|
4
|
-
export
|
|
4
|
+
export type PerformanceMeasurerAsync = <TResult extends object | void>(measurementName: string, fn: () => Promise<TResult>) => Promise<TResult & {
|
|
5
5
|
duration: number;
|
|
6
6
|
}>;
|
|
7
7
|
//# sourceMappingURL=Performance.d.ts.map
|
package/lib/Performance.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Performance.d.ts","sourceRoot":"","sources":["../src/Performance.ts"],"names":[],"mappings":"AAGA,
|
|
1
|
+
{"version":3,"file":"Performance.d.ts","sourceRoot":"","sources":["../src/Performance.ts"],"names":[],"mappings":"AAGA,MAAM,MAAM,mBAAmB,GAAG,CAAC,OAAO,SAAS,MAAM,GAAG,IAAI,EAC9D,eAAe,EAAE,MAAM,EACvB,EAAE,EAAE,MAAM,OAAO,KACd,OAAO,GAAG;IAAE,QAAQ,EAAE,MAAM,CAAA;CAAE,CAAC;AAEpC,MAAM,MAAM,wBAAwB,GAAG,CAAC,OAAO,SAAS,MAAM,GAAG,IAAI,EACnE,eAAe,EAAE,MAAM,EACvB,EAAE,EAAE,MAAM,OAAO,CAAC,OAAO,CAAC,KACvB,OAAO,CAAC,OAAO,GAAG;IAAE,QAAQ,EAAE,MAAM,CAAA;CAAE,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TranspilerWorker.d.ts","sourceRoot":"","sources":["../src/TranspilerWorker.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
// Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license.
|
|
4
|
+
// See LICENSE in the project root for license information.
|
|
5
|
+
const node_worker_threads_1 = require("node:worker_threads");
|
|
6
|
+
const configureProgramForMultiEmit_1 = require("./configureProgramForMultiEmit");
|
|
7
|
+
const typedWorkerData = node_worker_threads_1.workerData;
|
|
8
|
+
const ts = require(typedWorkerData.typeScriptToolPath);
|
|
9
|
+
function handleMessage(message) {
|
|
10
|
+
if (!message) {
|
|
11
|
+
process.exit(0);
|
|
12
|
+
}
|
|
13
|
+
try {
|
|
14
|
+
const response = runTranspiler(message);
|
|
15
|
+
node_worker_threads_1.parentPort.postMessage(response);
|
|
16
|
+
}
|
|
17
|
+
catch (err) {
|
|
18
|
+
const errorResponse = {
|
|
19
|
+
requestId: message.requestId,
|
|
20
|
+
type: 'error',
|
|
21
|
+
result: Object.assign({ message: err.message }, Object.fromEntries(Object.entries(err)))
|
|
22
|
+
};
|
|
23
|
+
node_worker_threads_1.parentPort.postMessage(errorResponse);
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
function runTranspiler(message) {
|
|
27
|
+
const { requestId, compilerOptions, moduleKindsToEmit, filesToTranspile } = message;
|
|
28
|
+
const fullySkipTypeCheck =
|
|
29
|
+
/* TypeScript 5+ */ compilerOptions.verbatimModuleSyntax ||
|
|
30
|
+
/* TypeScript 4 */ compilerOptions.importsNotUsedAsValues === ts.ImportsNotUsedAsValues.Error;
|
|
31
|
+
for (const [option, value] of Object.entries(ts.getDefaultCompilerOptions())) {
|
|
32
|
+
if (compilerOptions[option] === undefined) {
|
|
33
|
+
compilerOptions[option] = value;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
const { target: rawTarget } = compilerOptions;
|
|
37
|
+
for (const option of ts.transpileOptionValueCompilerOptions) {
|
|
38
|
+
compilerOptions[option.name] = option.transpileOptionValue;
|
|
39
|
+
}
|
|
40
|
+
compilerOptions.suppressOutputPathCheck = true;
|
|
41
|
+
compilerOptions.skipDefaultLibCheck = true;
|
|
42
|
+
compilerOptions.preserveValueImports = true;
|
|
43
|
+
const sourceFileByPath = new Map();
|
|
44
|
+
const includedFiles = [];
|
|
45
|
+
for (const [fileName, sourceText] of filesToTranspile) {
|
|
46
|
+
if (sourceText) {
|
|
47
|
+
const sourceFile = ts.createSourceFile(fileName, sourceText, rawTarget);
|
|
48
|
+
sourceFile.hasNoDefaultLib = fullySkipTypeCheck;
|
|
49
|
+
sourceFileByPath.set(fileName, sourceFile);
|
|
50
|
+
includedFiles.push(fileName);
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
const newLine = ts.getNewLineCharacter(compilerOptions);
|
|
54
|
+
const compilerHost = {
|
|
55
|
+
getSourceFile: (fileName) => sourceFileByPath.get(fileName),
|
|
56
|
+
writeFile: ts.sys.writeFile,
|
|
57
|
+
getDefaultLibFileName: () => 'lib.d.ts',
|
|
58
|
+
useCaseSensitiveFileNames: () => true,
|
|
59
|
+
getCanonicalFileName: (fileName) => fileName,
|
|
60
|
+
getCurrentDirectory: () => '',
|
|
61
|
+
getNewLine: () => newLine,
|
|
62
|
+
fileExists: (fileName) => sourceFileByPath.has(fileName),
|
|
63
|
+
readFile: () => '',
|
|
64
|
+
directoryExists: () => true,
|
|
65
|
+
getDirectories: () => []
|
|
66
|
+
};
|
|
67
|
+
const program = ts.createProgram(includedFiles, compilerOptions, compilerHost);
|
|
68
|
+
(0, configureProgramForMultiEmit_1.configureProgramForMultiEmit)(program, ts, moduleKindsToEmit, 'transpile');
|
|
69
|
+
const result = program.emit(undefined,
|
|
70
|
+
// The writeFile callback must be provided for the multi-emit redirector
|
|
71
|
+
ts.sys.writeFile, undefined, undefined, undefined);
|
|
72
|
+
const response = {
|
|
73
|
+
requestId,
|
|
74
|
+
type: 'success',
|
|
75
|
+
result
|
|
76
|
+
};
|
|
77
|
+
return response;
|
|
78
|
+
}
|
|
79
|
+
node_worker_threads_1.parentPort.on('message', handleMessage);
|
|
80
|
+
//# sourceMappingURL=TranspilerWorker.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TranspilerWorker.js","sourceRoot":"","sources":["../src/TranspilerWorker.ts"],"names":[],"mappings":";;AAAA,4FAA4F;AAC5F,2DAA2D;AAC3D,6DAA6D;AAU7D,iFAA8E;AAE9E,MAAM,eAAe,GAA0B,gCAAU,CAAC;AAE1D,MAAM,EAAE,GAAuB,OAAO,CAAC,eAAe,CAAC,kBAAkB,CAAC,CAAC;AAE3E,SAAS,aAAa,CAAC,OAA6C;IAClE,IAAI,CAAC,OAAO,EAAE;QACZ,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;KACjB;IAED,IAAI;QACF,MAAM,QAAQ,GAAiC,aAAa,CAAC,OAAO,CAAC,CAAC;QACtE,gCAAW,CAAC,WAAW,CAAC,QAAQ,CAAC,CAAC;KACnC;IAAC,OAAO,GAAG,EAAE;QACZ,MAAM,aAAa,GAA+B;YAChD,SAAS,EAAE,OAAO,CAAC,SAAS;YAC5B,IAAI,EAAE,OAAO;YACb,MAAM,kBACJ,OAAO,EAAE,GAAG,CAAC,OAAO,IACjB,MAAM,CAAC,WAAW,CAAC,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,CAC3C;SACF,CAAC;QACF,gCAAW,CAAC,WAAW,CAAC,aAAa,CAAC,CAAC;KACxC;AACH,CAAC;AAED,SAAS,aAAa,CAAC,OAAqC;IAC1D,MAAM,EAAE,SAAS,EAAE,eAAe,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,GAAG,OAAO,CAAC;IAEpF,MAAM,kBAAkB;IACtB,mBAAmB,CAAC,eAAe,CAAC,oBAAoB;QACxD,kBAAkB,CAAC,eAAe,CAAC,sBAAsB,KAAK,EAAE,CAAC,sBAAsB,CAAC,KAAK,CAAC;IAEhG,KAAK,MAAM,CAAC,MA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B,EAAE,GAAG,EAAE,CAAC,UAAU;QACvC,yBAAyB,EAAE,GAAG,EAAE,CAAC,IAAI;QACrC,oBAAoB,EAAE,CAAC,QAAgB,EAAE,EAAE,CAAC,QAAQ;QACpD,mBAAmB,EAAE,GAAG,EAAE,CAAC,EAAE;QAC7B,UAAU,EAAE,GAAG,EAAE,CAAC,OAAO;QACzB,UAAU,EAAE,CAAC,QAAgB,EAAE,EAAE,CAAC,gBAAgB,CAAC,GAAG,CAAC,QAAQ,CAAC;QAChE,QAAQ,EAAE,GAAG,EAAE,CAAC,EAAE;QAClB,eAAe,EAAE,GAAG,EAAE,CAAC,IAAI;QAC3B,cAAc,EAAE,GAAG,EAAE,CAAC,EAAE;KACzB,CAAC;IAEF,MAAM,OAAO,GAAwB,EAAE,CAAC,aAAa,CAAC,aAAa,EAAE,eAAe,EAAE,YAAY,CAAC,CAAC;IAEpG,IAAA,2DAA4B,EAAC,OAAO,EAAE,EAAE,EAAE,iBAAiB,EAAE,WAAW,CAAC,CAAC;IAE1E,MAAM,MAAM,GAA2B,OAAO,CAAC,IAAI,CACjD,SAAS;IACT,wEAAwE;IACxE,EAAE,CAAC,GAAG,CAAC,SAAS,EAChB,SAAS,EACT,SAAS,EACT,SAAS,CACV,CAAC;IAEF,MAAM,QAAQ,GAAiC;QAC7C,SAAS;QACT,IAAI,EAAE,SAAS;QACf,MAAM;KACP,CAAC;IAEF,OAAO,QAAQ,CAAC;AAClB,CAAC;AAED,gCAAW,CAAC,EAAE,CAAC,SAAS,EAAE,aAAa,CAAC,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license.\n// See LICENSE in the project root for license information.\nimport { parentPort, workerData } from 'node:worker_threads';\n\nimport type * as TTypescript from 'typescript';\nimport type {\n ITranspilationErrorMessage,\n ITranspilationRequestMessage,\n ITranspilationSuccessMessage,\n ITypescriptWorkerData\n} from './types';\nimport type { ExtendedTypeScript } from './internalTypings/TypeScriptInternals';\nimport { configureProgramForMultiEmit } from './configureProgramForMultiEmit';\n\nconst typedWorkerData: ITypescriptWorkerData = workerData;\n\nconst ts: ExtendedTypeScript = require(typedWorkerData.typeScriptToolPath);\n\nfunction handleMessage(message: ITranspilationRequestMessage | false): void {\n if (!message) {\n process.exit(0);\n }\n\n try {\n const response: ITranspilationSuccessMessage = runTranspiler(message);\n parentPort!.postMessage(response);\n } catch (err) {\n const errorResponse: ITranspilationErrorMessage = {\n requestId: message.requestId,\n type: 'error',\n result: {\n message: err.message,\n ...Object.fromEntries(Object.entries(err))\n }\n };\n parentPort!.postMessage(errorResponse);\n }\n}\n\nfunction runTranspiler(message: ITranspilationRequestMessage): ITranspilationSuccessMessage {\n const { requestId, compilerOptions, moduleKindsToEmit, filesToTranspile } = message;\n\n const fullySkipTypeCheck: boolean =\n /* TypeScript 5+ */ compilerOptions.verbatimModuleSyntax ||\n /* TypeScript 4 */ compilerOptions.importsNotUsedAsValues === ts.ImportsNotUsedAsValues.Error;\n\n for (const [option, value] of Object.entries(ts.getDefaultCompilerOptions())) {\n if (compilerOptions[option] === undefined) {\n compilerOptions[option] = value;\n }\n }\n\n const { target: rawTarget } = compilerOptions;\n\n for (const option of ts.transpileOptionValueCompilerOptions) {\n compilerOptions[option.name] = option.transpileOptionValue;\n }\n\n compilerOptions.suppressOutputPathCheck = true;\n compilerOptions.skipDefaultLibCheck = true;\n compilerOptions.preserveValueImports = true;\n\n const sourceFileByPath: Map<string, TTypescript.SourceFile> = new Map();\n\n const includedFiles: string[] = [];\n for (const [fileName, sourceText] of filesToTranspile) {\n if (sourceText) {\n const sourceFile: TTypescript.SourceFile = ts.createSourceFile(fileName, sourceText, rawTarget!);\n sourceFile.hasNoDefaultLib = fullySkipTypeCheck;\n sourceFileByPath.set(fileName, sourceFile);\n includedFiles.push(fileName);\n }\n }\n\n const newLine: string = ts.getNewLineCharacter(compilerOptions);\n\n const compilerHost: TTypescript.CompilerHost = {\n getSourceFile: (fileName: string) => sourceFileByPath.get(fileName),\n writeFile: ts.sys.writeFile,\n getDefaultLibFileName: () => 'lib.d.ts',\n useCaseSensitiveFileNames: () => true,\n getCanonicalFileName: (fileName: string) => fileName,\n getCurrentDirectory: () => '',\n getNewLine: () => newLine,\n fileExists: (fileName: string) => sourceFileByPath.has(fileName),\n readFile: () => '',\n directoryExists: () => true,\n getDirectories: () => []\n };\n\n const program: TTypescript.Program = ts.createProgram(includedFiles, compilerOptions, compilerHost);\n\n configureProgramForMultiEmit(program, ts, moduleKindsToEmit, 'transpile');\n\n const result: TTypescript.EmitResult = program.emit(\n undefined,\n // The writeFile callback must be provided for the multi-emit redirector\n ts.sys.writeFile,\n undefined,\n undefined,\n undefined\n );\n\n const response: ITranspilationSuccessMessage = {\n requestId,\n type: 'success',\n result\n };\n\n return response;\n}\n\nparentPort!.on('message', handleMessage);\n"]}
|
|
@@ -1,8 +1,10 @@
|
|
|
1
|
+
/// <reference types="node" />
|
|
2
|
+
import { Worker } from 'worker_threads';
|
|
1
3
|
import type * as TTypescript from 'typescript';
|
|
2
4
|
import type { IScopedLogger } from '@rushstack/heft';
|
|
3
5
|
import type { ExtendedTypeScript, IExtendedSolutionBuilder } from './internalTypings/TypeScriptInternals';
|
|
4
6
|
import type { ITypeScriptConfigurationJson } from './TypeScriptPlugin';
|
|
5
|
-
import type { PerformanceMeasurer
|
|
7
|
+
import type { PerformanceMeasurer } from './Performance';
|
|
6
8
|
export interface ITypeScriptBuilderConfiguration extends ITypeScriptConfigurationJson {
|
|
7
9
|
/**
|
|
8
10
|
* The root folder of the build.
|
|
@@ -34,20 +36,26 @@ export interface ITypeScriptBuilderConfiguration extends ITypeScriptConfiguratio
|
|
|
34
36
|
*/
|
|
35
37
|
emitChangedFilesCallback: (program: TTypescript.Program, changedFiles?: Set<TTypescript.SourceFile>) => void;
|
|
36
38
|
}
|
|
37
|
-
|
|
39
|
+
type TWatchProgram = TTypescript.WatchOfFilesAndCompilerOptions<TTypescript.EmitAndSemanticDiagnosticsBuilderProgram>;
|
|
38
40
|
interface IPendingWork {
|
|
39
41
|
(): void;
|
|
40
42
|
}
|
|
43
|
+
interface ITranspileSignal {
|
|
44
|
+
resolve: (result: TTypescript.EmitResult) => void;
|
|
45
|
+
reject: (error: Error) => void;
|
|
46
|
+
}
|
|
41
47
|
interface ITypeScriptTool {
|
|
42
48
|
ts: ExtendedTypeScript;
|
|
43
49
|
measureSync: PerformanceMeasurer;
|
|
44
|
-
measureAsync: PerformanceMeasurerAsync;
|
|
45
50
|
sourceFileCache: Map<string, TTypescript.SourceFile>;
|
|
46
51
|
watchProgram: TWatchProgram | undefined;
|
|
47
52
|
solutionBuilder: IExtendedSolutionBuilder | undefined;
|
|
48
53
|
rawDiagnostics: TTypescript.Diagnostic[];
|
|
49
54
|
pendingOperations: Set<IPendingWork>;
|
|
50
55
|
executing: boolean;
|
|
56
|
+
worker: Worker | undefined;
|
|
57
|
+
pendingTranspilePromises: Map<number, Promise<TTypescript.EmitResult>>;
|
|
58
|
+
pendingTranspileSignals: Map<number, ITranspileSignal>;
|
|
51
59
|
reportDiagnostic: TTypescript.DiagnosticReporter;
|
|
52
60
|
clearTimeout: (timeout: IPendingWork) => void;
|
|
53
61
|
setTimeout: <T extends unknown[]>(timeout: (...args: T) => void, ms: number, ...args: T) => IPendingWork;
|
|
@@ -63,15 +71,14 @@ export declare class TypeScriptBuilder {
|
|
|
63
71
|
private _moduleKindsToEmit;
|
|
64
72
|
private readonly _suppressedDiagnosticCodes;
|
|
65
73
|
private __tsCacheFilePath;
|
|
66
|
-
private _cachedFileSystem;
|
|
67
74
|
private _tool;
|
|
75
|
+
private _nextRequestId;
|
|
68
76
|
private get _tsCacheFilePath();
|
|
69
77
|
constructor(configuration: ITypeScriptBuilderConfiguration);
|
|
70
78
|
invokeAsync(onChangeDetected?: () => void): Promise<void>;
|
|
71
|
-
|
|
72
|
-
_runWatch(tool: ITypeScriptTool): void;
|
|
79
|
+
_runWatchAsync(tool: ITypeScriptTool): Promise<void>;
|
|
73
80
|
_runBuildAsync(tool: ITypeScriptTool): Promise<void>;
|
|
74
|
-
|
|
81
|
+
_runSolutionBuildAsync(tool: ITypeScriptTool): Promise<void>;
|
|
75
82
|
private _logDiagnostics;
|
|
76
83
|
private _logEmitPerformance;
|
|
77
84
|
private _logReadPerformance;
|
|
@@ -87,6 +94,8 @@ export declare class TypeScriptBuilder {
|
|
|
87
94
|
private _changeCompilerHostToUseCache;
|
|
88
95
|
private _buildWatchSolutionBuilderHost;
|
|
89
96
|
private _parseModuleKind;
|
|
97
|
+
private _queueTranspileInWorker;
|
|
98
|
+
private _cleanupWorker;
|
|
90
99
|
}
|
|
91
100
|
export {};
|
|
92
101
|
//# sourceMappingURL=TypeScriptBuilder.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TypeScriptBuilder.d.ts","sourceRoot":"","sources":["../src/TypeScriptBuilder.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"TypeScriptBuilder.d.ts","sourceRoot":"","sources":["../src/TypeScriptBuilder.ts"],"names":[],"mappings":";AAKA,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAGxC,OAAO,KAAK,KAAK,WAAW,MAAM,YAAY,CAAC;AAE/C,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAErD,OAAO,KAAK,EAAE,kBAAkB,EAAE,wBAAwB,EAAE,MAAM,uCAAuC,CAAC;AAC1G,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,oBAAoB,CAAC;AACvE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,eAAe,CAAC;AASzD,MAAM,WAAW,+BAAgC,SAAQ,4BAA4B;IACnF;;OAEG;IACH,eAAe,EAAE,MAAM,CAAC;IAExB;;OAEG;IACH,uBAAuB,EAAE,MAAM,CAAC;IAEhC;;OAEG;IACH,kBAAkB,EAAE,MAAM,CAAC;IAI3B;;OAEG;IACH,YAAY,EAAE,MAAM,CAAC;IAErB;;;OAGG;IACH,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