@intelligentgraphics/ig.gfx.packager 2.3.4 → 3.0.0-alpha.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.
@@ -0,0 +1,77 @@
1
+ 'use strict';
2
+
3
+ var path = require('path');
4
+ var fs = require('fs');
5
+ var cli = require('../cli.js');
6
+ var dependencies = require('../dependencies.js');
7
+ require('update-notifier');
8
+ require('yargs');
9
+ require('tslib');
10
+ require('os');
11
+ require('child_process');
12
+ require('assert');
13
+ require('events');
14
+ require('buffer');
15
+ require('stream');
16
+ require('util');
17
+ require('constants');
18
+ require('write-pkg');
19
+ require('inquirer');
20
+ require('resolve');
21
+
22
+ function _interopNamespaceDefault(e) {
23
+ var n = Object.create(null);
24
+ if (e) {
25
+ Object.keys(e).forEach(function (k) {
26
+ if (k !== 'default') {
27
+ var d = Object.getOwnPropertyDescriptor(e, k);
28
+ Object.defineProperty(n, k, d.get ? d : {
29
+ enumerable: true,
30
+ get: function () { return e[k]; }
31
+ });
32
+ }
33
+ });
34
+ }
35
+ n.default = e;
36
+ return Object.freeze(n);
37
+ }
38
+
39
+ var path__namespace = /*#__PURE__*/_interopNamespaceDefault(path);
40
+ var fs__namespace = /*#__PURE__*/_interopNamespaceDefault(fs);
41
+
42
+ const DEFINITION_FILE_HINT = "// This file is automatically managed by the ig.gfx.packager.";
43
+ const executePostInstall = workspace => {
44
+ const manifest = cli.readWorkspaceNpmManifest(workspace);
45
+ if (manifest === undefined) {
46
+ throw new Error(`Expected an npm manifest to exist.`);
47
+ }
48
+ const libPath = cli.getWorkspaceLibPath(workspace);
49
+ const existingDefinitions = fs__namespace.readdirSync(libPath);
50
+
51
+ // delete all existing definition files that are managed by the packager.
52
+ // we'll recreate all needed definitions in the next step.
53
+ for (const existingDefinitionName of existingDefinitions) {
54
+ const content = fs__namespace.readFileSync(path__namespace.join(libPath, existingDefinitionName), {
55
+ encoding: "utf-8"
56
+ });
57
+ if (content.startsWith(DEFINITION_FILE_HINT)) {
58
+ fs__namespace.rmSync(path__namespace.join(libPath, existingDefinitionName));
59
+ }
60
+ }
61
+ fs__namespace.mkdirSync(libPath, {
62
+ recursive: true
63
+ });
64
+ const libraryLocations = dependencies.determineWorkspaceIGLibraries(workspace);
65
+ for (const location of libraryLocations) {
66
+ const manifest = dependencies.readPublishedPackageNpmManifest(location);
67
+
68
+ // add a hint to the top of the file so we know it's managed by the packager.
69
+ const content = DEFINITION_FILE_HINT + " \n" + `// This is a reference to version ${manifest.version}\n` + `/// <reference types="${manifest.name}" />`;
70
+ fs__namespace.writeFileSync(path__namespace.join(cli.getWorkspaceLibPath(workspace), manifest.types), content, {
71
+ encoding: "utf8"
72
+ });
73
+ }
74
+ };
75
+
76
+ exports.executePostInstall = executePostInstall;
77
+ //# sourceMappingURL=postinstall.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"postinstall.js","sources":["../../src/commands/postinstall.ts"],"sourcesContent":["import * as path from \"path\";\nimport * as fs from \"fs\";\n\nimport {\n\tgetWorkspaceLibPath,\n\treadWorkspaceNpmManifest,\n\tWorkspaceLocation,\n} from \"../lib/workspace\";\nimport {\n\treadPublishedPackageCreatorManifest,\n\treadPublishedPackageNpmManifest,\n} from \"../lib/publishedPackage\";\nimport { determineWorkspaceIGLibraries } from \"../lib/dependencies\";\n\nconst DEFINITION_FILE_HINT =\n\t\"// This file is automatically managed by the ig.gfx.packager.\";\n\nexport const executePostInstall = (workspace: WorkspaceLocation) => {\n\tconst manifest = readWorkspaceNpmManifest(workspace);\n\n\tif (manifest === undefined) {\n\t\tthrow new Error(`Expected an npm manifest to exist.`);\n\t}\n\n\tconst libPath = getWorkspaceLibPath(workspace);\n\tconst existingDefinitions = fs.readdirSync(libPath);\n\n\t// delete all existing definition files that are managed by the packager.\n\t// we'll recreate all needed definitions in the next step.\n\tfor (const existingDefinitionName of existingDefinitions) {\n\t\tconst content = fs.readFileSync(\n\t\t\tpath.join(libPath, existingDefinitionName),\n\t\t\t{ encoding: \"utf-8\" },\n\t\t);\n\n\t\tif (content.startsWith(DEFINITION_FILE_HINT)) {\n\t\t\tfs.rmSync(path.join(libPath, existingDefinitionName));\n\t\t}\n\t}\n\n\tfs.mkdirSync(libPath, { recursive: true });\n\n\tconst libraryLocations = determineWorkspaceIGLibraries(workspace);\n\n\tfor (const location of libraryLocations) {\n\t\tconst manifest = readPublishedPackageNpmManifest(location);\n\n\t\t// add a hint to the top of the file so we know it's managed by the packager.\n\t\tconst content =\n\t\t\tDEFINITION_FILE_HINT +\n\t\t\t\" \\n\" +\n\t\t\t`// This is a reference to version ${manifest.version}\\n` +\n\t\t\t`/// <reference types=\"${manifest.name}\" />`;\n\n\t\tfs.writeFileSync(\n\t\t\tpath.join(getWorkspaceLibPath(workspace), manifest.types),\n\t\t\tcontent,\n\t\t\t{\n\t\t\t\tencoding: \"utf8\",\n\t\t\t},\n\t\t);\n\t}\n};\n"],"names":["DEFINITION_FILE_HINT","executePostInstall","workspace","manifest","readWorkspaceNpmManifest","undefined","Error","libPath","getWorkspaceLibPath","existingDefinitions","fs","readdirSync","existingDefinitionName","content","readFileSync","path","join","encoding","startsWith","rmSync","mkdirSync","recursive","libraryLocations","determineWorkspaceIGLibraries","location","readPublishedPackageNpmManifest","version","name","writeFileSync","types"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAcA,MAAMA,oBAAoB,GACzB,+DAA+D,CAAA;AAEnDC,MAAAA,kBAAkB,GAAIC,SAA4B,IAAK;AACnE,EAAA,MAAMC,QAAQ,GAAGC,4BAAwB,CAACF,SAAS,CAAC,CAAA;EAEpD,IAAIC,QAAQ,KAAKE,SAAS,EAAE;AAC3B,IAAA,MAAM,IAAIC,KAAK,CAAE,CAAA,kCAAA,CAAmC,CAAC,CAAA;AACtD,GAAA;AAEA,EAAA,MAAMC,OAAO,GAAGC,uBAAmB,CAACN,SAAS,CAAC,CAAA;AAC9C,EAAA,MAAMO,mBAAmB,GAAGC,aAAE,C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');
4
+ var fs = require('fs');
5
+ var require$$1 = require('child_process');
6
+ var cli = require('../cli.js');
7
+ var versionFile = require('../versionFile.js');
8
+ var index = require('./build.js');
9
+ require('update-notifier');
10
+ require('yargs');
11
+ require('tslib');
12
+ require('os');
13
+ require('assert');
14
+ require('events');
15
+ require('buffer');
16
+ require('stream');
17
+ require('util');
18
+ require('constants');
19
+ require('write-pkg');
20
+ require('inquirer');
21
+ require('simple-git');
22
+ require('glob');
23
+ require('terser');
24
+ require('typescript');
25
+ require('../scripts.js');
26
+ require('typedoc');
27
+
28
+ function _interopNamespaceDefault(e) {
29
+ var n = Object.create(null);
30
+ if (e) {
31
+ Object.keys(e).forEach(function (k) {
32
+ if (k !== 'default') {
33
+ var d = Object.getOwnPropertyDescriptor(e, k);
34
+ Object.defineProperty(n, k, d.get ? d : {
35
+ enumerable: true,
36
+ get: function () { return e[k]; }
37
+ });
38
+ }
39
+ });
40
+ }
41
+ n.default = e;
42
+ return Object.freeze(n);
43
+ }
44
+
45
+ var path__namespace = /*#__PURE__*/_interopNamespaceDefault(path);
46
+ var fs__namespace = /*#__PURE__*/_interopNamespaceDefault(fs);
47
+
48
+ const publishToNpm = async ({
49
+ workspace,
50
+ location,
51
+ version: providedVersion,
52
+ dryRun
53
+ }) => {
54
+ let newVersion;
55
+ try {
56
+ newVersion = versionFile.parseVersionFromString(providedVersion);
57
+ } catch (err) {
58
+ throw new Error(`Please enter a version in this format 1.0.0.100`);
59
+ }
60
+ if (newVersion.buildNumber < 100) {
61
+ newVersion.preRelease = {
62
+ type: "beta",
63
+ version: newVersion.buildNumber
64
+ };
65
+ } else if (newVersion.buildNumber === 100) {
66
+ newVersion.preRelease = undefined;
67
+ } else {
68
+ throw new Error(`Refusing to publish a package with a build version larger than 100.`);
69
+ }
70
+ const workspaceManifest = cli.readWorkspaceNpmManifest(workspace);
71
+ const workspaceOutputPath = cli.getWorkspaceOutputPath(workspace);
72
+ const creatorPackage = cli.readPackageCreatorManifest(location);
73
+ let packageJson = cli.readPackageNpmManifest(location);
74
+ if (packageJson === undefined) {
75
+ packageJson = {
76
+ name: "@intelligentgraphics/3d" + creatorPackage.Package.toLowerCase(),
77
+ version: "1.0.0",
78
+ description: creatorPackage.Package
79
+ };
80
+ }
81
+ packageJson.version = newVersion.toVersionString({
82
+ buildNumber: false
83
+ });
84
+ packageJson.description = newVersion.toDescriptionString(creatorPackage.Package);
85
+ packageJson.main = `${creatorPackage.Package}.js`;
86
+ packageJson.types = `${creatorPackage.Package}.d.ts`;
87
+ packageJson.publishConfig ??= {};
88
+ packageJson.publishConfig.acccess = "public";
89
+ packageJson.ig = {
90
+ scriptingLibrary: true
91
+ };
92
+ packageJson.files = undefined;
93
+ const publishDir = path__namespace.join(workspaceOutputPath, "publish", creatorPackage.Package);
94
+ fs__namespace.rmSync(publishDir, {
95
+ recursive: true,
96
+ force: true
97
+ });
98
+ fs__namespace.mkdirSync(publishDir, {
99
+ recursive: true
100
+ });
101
+ cli.writePackageNpmManifest(location, packageJson);
102
+ versionFile.getVersionFileHandler(location).write(creatorPackage.Package, newVersion);
103
+ const gitVersionInformation = await versionFile.getVersionInformationFromGit(workspace, location);
104
+ const bannerText = workspaceManifest !== undefined ? versionFile.getWorkspaceBannerText(workspaceManifest) : undefined;
105
+ await index.buildFolders({
106
+ cwd: workspace.path,
107
+ directories: [location.path],
108
+ minimize: true,
109
+ outDir: cli.getWorkspaceOutputPath(workspace),
110
+ banner: {
111
+ text: bannerText,
112
+ commit: gitVersionInformation.commit,
113
+ commitDirty: gitVersionInformation.dirty,
114
+ version: newVersion.toVersionString({
115
+ buildNumber: true
116
+ }),
117
+ date: new Date(Date.now())
118
+ }
119
+ });
120
+ fs__namespace.copyFileSync(path__namespace.join(cli.getWorkspaceOutputPath(workspace), `${creatorPackage.Package}.d.ts`), path__namespace.join(publishDir, `${creatorPackage.Package}.d.ts`));
121
+ fs__namespace.copyFileSync(path__namespace.join(cli.getWorkspaceOutputPath(workspace), `${creatorPackage.Package}.min.js`), path__namespace.join(publishDir, `${creatorPackage.Package}.js`));
122
+ fs__namespace.copyFileSync(path__namespace.join(location.manifestDir, "package.json"), path__namespace.join(publishDir, "package.json"));
123
+ fs__namespace.writeFileSync(path__namespace.join(publishDir, "_Package.json"), JSON.stringify(creatorPackage, null, 2));
124
+ const index$1 = cli.readPackageCreatorIndex(location);
125
+ if (index$1 !== undefined) {
126
+ fs__namespace.writeFileSync(path__namespace.join(publishDir, "_Index.json"), JSON.stringify(index$1));
127
+ }
128
+ const readmeName = fs__namespace.readdirSync(location.path).find(name => name.toLowerCase() === "readme.md");
129
+ if (readmeName !== undefined) {
130
+ fs__namespace.copyFileSync(path__namespace.join(location.path, readmeName), path__namespace.join(publishDir, readmeName));
131
+ }
132
+ const npmPublishArgs = [];
133
+ if (dryRun) {
134
+ npmPublishArgs.push("--dry-run");
135
+ }
136
+ if (newVersion.preRelease) {
137
+ npmPublishArgs.push("--tag", "next");
138
+ }
139
+ index.logPackageMessage(creatorPackage.Package, `Publishing to npm with version ${packageJson.version} using tag ${newVersion.preRelease ? "next" : "latest"}`);
140
+ require$$1.spawnSync("npm", ["publish", ...npmPublishArgs], {
141
+ stdio: "inherit",
142
+ encoding: "utf8",
143
+ cwd: publishDir
144
+ });
145
+ for (const packageLocation of cli.iterateWorkspacePackages(workspace)) {
146
+ var _manifest$dependencie;
147
+ const manifest = cli.readPackageNpmManifest(packageLocation);
148
+ if ((manifest === null || manifest === void 0 ? void 0 : (_manifest$dependencie = manifest.dependencies) === null || _manifest$dependencie === void 0 ? void 0 : _manifest$dependencie[packageJson.name]) !== undefined) {
149
+ manifest.dependencies[packageJson.name] = "^" + packageJson.version;
150
+ cli.writePackageNpmManifest(packageLocation, manifest);
151
+ }
152
+ }
153
+ };
154
+
155
+ exports.publishToNpm = publishToNpm;
156
+ //# sourceMappingURL=publishNpm.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"publishNpm.js","sources":["../../src/commands/publishNpm.ts"],"sourcesContent":["import * as path from \"path\";\nimport * as fs from \"fs\";\nimport { spawnSync } from \"child_process\";\n\nimport { PackageVersion } from \"@intelligentgraphics/ig.tools.core\";\n\nimport {\n\tPackageLocation,\n\treadPackageCreatorIndex,\n\treadPackageCreatorManifest,\n\treadPackageNpmManifest,\n\twritePackageNpmManifest,\n} from \"../lib/package\";\nimport {\n\tgetWorkspaceOutputPath,\n\titerateWorkspacePackages,\n\treadWorkspaceNpmManifest,\n\tWorkspaceLocation,\n} from \"../lib/workspace\";\nimport { getVersionInformationFromGit } from \"../lib/git\";\nimport { getWorkspaceBannerText } from \"../lib/banner\";\nimport { parseVersionFromString } from \"../lib/parseVersion\";\nimport { getVersionFileHandler } from \"../lib/versionFile\";\nimport { logPackageMessage } from \"../lib/log\";\n\nimport { buildFolders } from \"./build\";\n\nexport interface PublishToNpmSettings {\n\tworkspace: WorkspaceLocation;\n\tlocation: PackageLocation;\n\tversion: string;\n\tdryRun?: boolean;\n}\n\nexport const publishToNpm = async ({\n\tworkspace,\n\tlocation,\n\tversion: providedVersion,\n\tdryRun,\n}: PublishToNpmSettings) => {\n\tlet newVersion: PackageVersion;\n\ttry {\n\t\tnewVersion = parseVersionFromString(providedVersion);\n\t} catch (err) {\n\t\tthrow new Error(`Please enter a version in this format 1.0.0.100`);\n\t}\n\n\tif (newVersion.buildNumber < 100) {\n\t\tnewVersion.preRelease = {\n\t\t\ttype: \"beta\",\n\t\t\tversion: newVersion.buildNumber,\n\t\t};\n\t} else if (newVersion.buildNumber === 100) {\n\t\tnewVersion.preRelease = undefined;\n\t} else {\n\t\tthrow new Error(\n\t\t\t`Refusing to publish a package with a build version larger than 100.`,\n\t\t);\n\t}\n\n\tconst workspaceManifest = readWorkspaceNpmManifest(workspace);\n\tconst workspaceOutputPath = getWorkspaceOutputPath(workspace);\n\tconst creatorPackage = readPackageCreatorManifest(location);\n\tlet packageJson = readPackageNpmManifest(location);\n\n\tif (packageJson === undefined) {\n\t\tpackageJson = {\n\t\t\tname:\n\t\t\t\t\"@intelligentgraphics/3d\" +\n\t\t\t\tcreatorPackage.Package.toLowerCase(),\n\t\t\tversion: \"1.0.0\",\n\t\t\tdescription: creatorPackage.Package,\n\t\t};\n\t}\n\n\tpackageJson.version = newVersion.toVersionString({\n\t\tbuildNumber: false,\n\t});\n\tpackageJson.description = newVersion.toDescriptionString(\n\t\tcreatorPackage.Package,\n\t);\n\tpackageJson.main = `${creatorPackage.Package}.js`;\n\tpackageJson.types = `${creatorPackage.Package}.d.ts`;\n\tpackageJson.publishConfig ??= {};\n\tpackageJson.publishConfig.acccess = \"public\";\n\tpackageJson.ig = {\n\t\tscriptingLibrary: true,\n\t};\n\tpackageJson.files = undefined;\n\n\tconst publishDir = path.join(\n\t\tworkspaceOutputPath,\n\t\t\"publish\",\n\t\tcreatorPackage.Package,\n\t);\n\tfs.rmSync(publishDir, { recursive: true, force: true });\n\tfs.mkdirSync(publishDir, { recursive: true });\n\n\twritePackageNpmManifest(location, packageJson);\n\n\tgetVersionFileHandler(location).write(creatorPackage.Package, newVersion);\n\n\tconst gitVersionInformation = await getVersionInformationFromGit(\n\t\tworkspace,\n\t\tlocation,\n\t);\n\n\tconst bannerText =\n\t\tworkspaceManifest !== undefined\n\t\t\t? getWorkspaceBannerText(workspaceManifest)\n\t\t\t: undefined;\n\n\tawait buildFolders({\n\t\tcwd: workspace.path,\n\t\tdirectories: [location.path],\n\t\tminimize: true,\n\t\toutDir: getWorkspaceOutputPath(workspace),\n\t\tbanner: {\n\t\t\ttext: bannerText,\n\t\t\tcommit: gitVersionInformation.commit,\n\t\t\tcommitDirty: gitVersionInformation.dirty,\n\t\t\tversion: newVersion.toVersionString({\n\t\t\t\tbuildNumber: true,\n\t\t\t}),\n\t\t\tdate: new Date(Date.now()),\n\t\t},\n\t});\n\n\tfs.copyFileSync(\n\t\tpath.join(\n\t\t\tgetWorkspaceOutputPath(workspace),\n\t\t\t`${creatorPackage.Package}.d.ts`,\n\t\t),\n\t\tpath.join(publishDir, `${creatorPackage.Package}.d.ts`),\n\t);\n\tfs.copyFileSync(\n\t\tpath.join(\n\t\t\tgetWorkspaceOutputPath(workspace),\n\t\t\t`${creatorPackage.Package}.min.js`,\n\t\t),\n\t\tpath.join(publishDir, `${creatorPackage.Package}.js`),\n\t);\n\n\tfs.copyFileSync(\n\t\tpath.join(location.manifestDir, \"package.json\"),\n\t\tpath.join(publishDir, \"package.json\"),\n\t);\n\n\tfs.writeFileSync(\n\t\tpath.join(publishDir, \"_Package.json\"),\n\t\tJSON.stringify(creatorPackage, null, 2),\n\t);\n\n\tconst index = readPackageCreatorIndex(location);\n\n\tif (index !== undefined) {\n\t\tfs.writeFileSync(\n\t\t\tpath.join(publishDir, \"_Index.json\"),\n\t\t\tJSON.stringify(index),\n\t\t);\n\t}\n\n\tconst readmeName = fs\n\t\t.readdirSync(location.path)\n\t\t.find((name) => name.toLowerCase() === \"readme.md\");\n\n\tif (readmeName !== undefined) {\n\t\tfs.copyFileSync(\n\t\t\tpath.join(location.path, readmeName),\n\t\t\tpath.join(publishDir, readmeName),\n\t\t);\n\t}\n\n\tconst npmPublishArgs: string[] = [];\n\n\tif (dryRun) {\n\t\tnpmPublishArgs.push(\"--dry-run\");\n\t}\n\n\tif (newVersion.preRelease) {\n\t\tnpmPublishArgs.push(\"--tag\", \"next\");\n\t}\n\n\tlogPackageMessage(\n\t\tcreatorPackage.Package,\n\t\t`Publishing to npm with version ${packageJson.version} using tag ${\n\t\t\tnewVersion.preRelease ? \"next\" : \"latest\"\n\t\t}`,\n\t);\n\n\tspawnSync(\"npm\", [\"publish\", ...npmPublishArgs], {\n\t\tstdio: \"inherit\",\n\t\tencoding: \"utf8\",\n\t\tcwd: publishDir,\n\t});\n\n\tfor (const packageLocation of iterateWorkspacePackages(workspace)) {\n\t\tconst manifest = readPackageNpmManifest(packageLocation);\n\n\t\tif (manifest?.dependencies?.[packageJson.name] !== undefined) {\n\t\t\tmanifest.dependencies[packageJson.name] = \"^\" + packageJson.version;\n\t\t\twritePackageNpmManifest(packageLocation, manifest);\n\t\t}\n\t}\n};\n"],"names":["publishToNpm","workspace","location","version","providedVersion","dryRun","newVersion","parseVersionFromString","err","Error","buildNumber","preRelease","type","undefined","workspaceManifest","readWorkspaceNpmManifest","workspaceOutputPath","getWorkspaceOutputPath","creatorPackage","readPackageCreatorManifest","packageJson","readPackageNpmManifest","name","Package","toLowerCase","description","toVersionString","toDescriptionString","main","types","publishConfig","acccess","ig","scriptingLibrary","files","publishDir","path","join","fs","rmSync","recursive","force","mkdirSync","writePackageNpmManifest","getVersionFileHandler","write","gitVersionInformation","getVersionInformationFromGit","bannerText","getWorkspaceBannerText","buildFolders","cwd","directories","minimize","outDir","banner","text","commit","commitDirty","dirty","date","Date","now","copyFileSync","manifestDir","writeFileSync","JSON","stringify","index","readPackageCreatorIndex","readmeName","readdirSync","find","npmPublishArgs","push","logPackageMessage","spawnSync","stdio","encoding","packageLocation","iterateWorkspacePackages","manifest","dependencies"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAkCO,MAAMA,YAAY,GAAG,OAAO;EAClCC,SAAS;EACTC,QAAQ;AACRC,EAAAA,OAAO,EAAEC,eAAe;AACxBC,EAAAA,MAAAA;AACqB,CAAC,KAAK;AAC3B,EAAA,IAAIC,UAA0B,CAAA;EAC9B,IAAI;AACHA,IAAAA,UAAU,GAAGC,kCAAsB,CAACH,eAAe,CAAC,CAAA;GACpD,CAAC,OAAOI,GAAG,EAAE;AACb,IAAA,MAAM,IAAIC,KAAK,CAAE,CAAA,+CAAA,CAAgD,CAAC,CAAA;AACnE,GAAA;AAEA,EAAA,IAAIH,UAAU,CAACI,WAAW,GAAG,GAAG,EAAE;IACjCJ,UAAU,CAACK,UAAU,GAAG;AACvBC,MAAAA,IAAI,EAAE,MAAM;MACZT,OAAO,EAAEG,UAAU,CAACI,WAAAA;KACpB,CAAA;AACF,GAAC,MAAM,IAAIJ,UAAU,CAACI,WAAW,KAAK,GAAG,EAAE;IAC1CJ,UAAU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