@mimir-labs/core 0.1.0 → 0.2.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.
- package/README.md +5 -0
- package/dist/implementation/generation/resource-builders/component-builder.js +2 -25
- package/dist/implementation/generation/resource-builders/component-builder.js.map +1 -1
- package/dist/implementation/io/fs.d.ts +1 -0
- package/dist/implementation/io/fs.js +14 -0
- package/dist/implementation/io/fs.js.map +1 -1
- package/dist/implementation/resource-identity.d.ts +1 -0
- package/dist/implementation/resource-identity.js +30 -0
- package/dist/implementation/resource-identity.js.map +1 -0
- package/dist/implementation/services/authoring-service.d.ts +13 -0
- package/dist/implementation/services/authoring-service.js +62 -0
- package/dist/implementation/services/authoring-service.js.map +1 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +3 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -2,4 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
Core business logic and reusable services for the Mimir CLI.
|
|
4
4
|
|
|
5
|
+
Public workflows include discovery, authoring, generation, validation,
|
|
6
|
+
governance, context generation, synchronization, initialization, and doctor
|
|
7
|
+
assessment. Human authoring sources live under `aps/knowledge`; generated APS
|
|
8
|
+
artifacts remain under `dist/aps`.
|
|
9
|
+
|
|
5
10
|
See extension guidance in [EXTENSIONS.md](./EXTENSIONS.md).
|
|
@@ -2,30 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.buildComponentResource = buildComponentResource;
|
|
4
4
|
const provenance_builder_1 = require("../provenance/provenance-builder");
|
|
5
|
-
|
|
6
|
-
return value
|
|
7
|
-
.toLowerCase()
|
|
8
|
-
.replace(/^@/, "")
|
|
9
|
-
.replace(/[^a-z0-9]+/g, "")
|
|
10
|
-
.trim();
|
|
11
|
-
}
|
|
12
|
-
function splitPackageName(packageName) {
|
|
13
|
-
if (packageName.startsWith("@")) {
|
|
14
|
-
const parts = packageName.split("/");
|
|
15
|
-
const org = sanitizeSegment(parts[0] ?? "local");
|
|
16
|
-
const pkg = sanitizeSegment(parts[1] ?? "package");
|
|
17
|
-
return { org: org || "local", pkg: pkg || "package" };
|
|
18
|
-
}
|
|
19
|
-
return {
|
|
20
|
-
org: "local",
|
|
21
|
-
pkg: sanitizeSegment(packageName) || "package"
|
|
22
|
-
};
|
|
23
|
-
}
|
|
24
|
-
function createDeterministicId(packageName, componentName) {
|
|
25
|
-
const { org, pkg } = splitPackageName(packageName);
|
|
26
|
-
const name = sanitizeSegment(componentName) || "component";
|
|
27
|
-
return `${org}.${pkg}.component.${name}`;
|
|
28
|
-
}
|
|
5
|
+
const resource_identity_1 = require("../../resource-identity");
|
|
29
6
|
function buildComponentResource(component, storybook, readme) {
|
|
30
7
|
const description = readme.descriptionsByComponent[component.name] ?? "";
|
|
31
8
|
const variants = storybook.variantsByComponent[component.name] ?? [];
|
|
@@ -51,7 +28,7 @@ function buildComponentResource(component, storybook, readme) {
|
|
|
51
28
|
};
|
|
52
29
|
return {
|
|
53
30
|
type: "component",
|
|
54
|
-
id:
|
|
31
|
+
id: (0, resource_identity_1.createComponentResourceId)(component.packageName, component.name),
|
|
55
32
|
name: component.name,
|
|
56
33
|
package: component.packageName,
|
|
57
34
|
import: component.importName,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"component-builder.js","sourceRoot":"","sources":["../../../../src/implementation/generation/resource-builders/component-builder.ts"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"component-builder.js","sourceRoot":"","sources":["../../../../src/implementation/generation/resource-builders/component-builder.ts"],"names":[],"mappings":";;AAeA,wDA8CC;AA7DD,yEAM0C;AAC1C,+DAAoE;AAQpE,SAAgB,sBAAsB,CACpC,SAAiC,EACjC,SAAyB,EACzB,MAAmB;IAEnB,MAAM,WAAW,GAAG,MAAM,CAAC,uBAAuB,CAAC,SAAS,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC;IACzE,MAA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E,EAAE,QAAQ,EAAE,CAAC,IAAA,uCAAkB,EAAC,cAAc,CAAC,CAAC,EAAE;KACjE,CAAC;IAEF,OAAO;QACL,IAAI,EAAE,WAAW;QACjB,EAAE,EAAE,IAAA,6CAAyB,EAAC,SAAS,CAAC,WAAW,EAAE,SAAS,CAAC,IAAI,CAAC;QACpE,IAAI,EAAE,SAAS,CAAC,IAAI;QACpB,OAAO,EAAE,SAAS,CAAC,WAAW;QAC9B,MAAM,EAAE,SAAS,CAAC,UAAU;QAC5B,WAAW;QACX,KAAK,EAAE,SAAS,CAAC,KAAK;QACtB,QAAQ;QACR,SAAS,EAAE,EAAE;QACb,YAAY,EAAE,EAAE;QAChB,UAAU,EAAE;YACV,MAAM,EAAE,eAAe;SACxB;KACF,CAAC;AACJ,CAAC"}
|
|
@@ -2,5 +2,6 @@ export declare function fileExists(filePath: string): Promise<boolean>;
|
|
|
2
2
|
export declare function ensureDir(dirPath: string): Promise<void>;
|
|
3
3
|
export declare function readText(filePath: string): Promise<string>;
|
|
4
4
|
export declare function writeText(filePath: string, content: string): Promise<void>;
|
|
5
|
+
export declare function writeTextIfMissing(filePath: string, content: string): Promise<boolean>;
|
|
5
6
|
export declare function readJson<T>(filePath: string): Promise<T>;
|
|
6
7
|
export declare function writeJson(filePath: string, data: unknown): Promise<void>;
|
|
@@ -7,6 +7,7 @@ exports.fileExists = fileExists;
|
|
|
7
7
|
exports.ensureDir = ensureDir;
|
|
8
8
|
exports.readText = readText;
|
|
9
9
|
exports.writeText = writeText;
|
|
10
|
+
exports.writeTextIfMissing = writeTextIfMissing;
|
|
10
11
|
exports.readJson = readJson;
|
|
11
12
|
exports.writeJson = writeJson;
|
|
12
13
|
const promises_1 = require("node:fs/promises");
|
|
@@ -30,6 +31,19 @@ async function writeText(filePath, content) {
|
|
|
30
31
|
await ensureDir(node_path_1.default.dirname(filePath));
|
|
31
32
|
await (0, promises_1.writeFile)(filePath, content, "utf8");
|
|
32
33
|
}
|
|
34
|
+
async function writeTextIfMissing(filePath, content) {
|
|
35
|
+
await ensureDir(node_path_1.default.dirname(filePath));
|
|
36
|
+
try {
|
|
37
|
+
await (0, promises_1.writeFile)(filePath, content, { encoding: "utf8", flag: "wx" });
|
|
38
|
+
return true;
|
|
39
|
+
}
|
|
40
|
+
catch (error) {
|
|
41
|
+
if (error.code === "EEXIST") {
|
|
42
|
+
return false;
|
|
43
|
+
}
|
|
44
|
+
throw error;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
33
47
|
async function readJson(filePath) {
|
|
34
48
|
const raw = await readText(filePath);
|
|
35
49
|
try {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fs.js","sourceRoot":"","sources":["../../../src/implementation/io/fs.ts"],"names":[],"mappings":";;;;;AAGA,gCAOC;AAED,8BAEC;AAED,4BAEC;AAED,8BAGC;AAED,4BASC;AAED,8BAGC;
|
|
1
|
+
{"version":3,"file":"fs.js","sourceRoot":"","sources":["../../../src/implementation/io/fs.ts"],"names":[],"mappings":";;;;;AAGA,gCAOC;AAED,8BAEC;AAED,4BAEC;AAED,8BAGC;AAED,gDAYC;AAED,4BASC;AAED,8BAGC;AArDD,+CAAsE;AACtE,0DAA6B;AAEtB,KAAK,UAAU,UAAU,CAAC,QAAgB;IAC/C,IAAI,CAAC;QACH,MAAM,IAAA,iBAAM,EAAC,QAAQ,CAAC,CAAC;QACvB,OAAO,IAAI,CAAC;IACd,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,KAAK,CAAC;IACf,CAAC;AACH,CAAC;AAEM,KAAK,UAAU,SAAS,CAAC,OAAe;IAC7C,MAAM,IAAA,gBAAK,EAAC,OAAO,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,CAAC;AAC5C,CAAC;AAEM,KAAK,UAAU,QAAQ,CAAC,QAAgB;IAC7C,OAAO,IAAA,mBAAQ,EAAC,QAAQ,EAAE,MAAM,CAAC,CAAC;AACpC,CAAC;AAEM,KAAK,UAAU,SAAS,CAAC,QA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I,CAAC;IACxD,MAAM,SAAS,CAAC,QAAQ,EAAE,UAAU,CAAC,CAAC;AACxC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function createComponentResourceId(packageName: string, componentName: string): string;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.createComponentResourceId = createComponentResourceId;
|
|
4
|
+
function sanitizeSegment(value) {
|
|
5
|
+
return value
|
|
6
|
+
.toLowerCase()
|
|
7
|
+
.replace(/^@/, "")
|
|
8
|
+
.replace(/[^a-z0-9]+/g, "")
|
|
9
|
+
.trim();
|
|
10
|
+
}
|
|
11
|
+
function splitPackageName(packageName) {
|
|
12
|
+
if (packageName.startsWith("@")) {
|
|
13
|
+
const parts = packageName.split("/");
|
|
14
|
+
const org = sanitizeSegment(parts[0] ?? "local");
|
|
15
|
+
const pkg = sanitizeSegment(parts[1] ?? "package");
|
|
16
|
+
return { org: org || "local", pkg: pkg || "package" };
|
|
17
|
+
}
|
|
18
|
+
return {
|
|
19
|
+
org: "local",
|
|
20
|
+
pkg: sanitizeSegment(packageName) || "package"
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
function createComponentResourceId(packageName, componentName) {
|
|
24
|
+
// TODO: APS resource IDs currently include the visible component name. Making IDs
|
|
25
|
+
// rename-stable requires a protocol-level identity decision and is outside authoring.
|
|
26
|
+
const { org, pkg } = splitPackageName(packageName);
|
|
27
|
+
const name = sanitizeSegment(componentName) || "component";
|
|
28
|
+
return `${org}.${pkg}.component.${name}`;
|
|
29
|
+
}
|
|
30
|
+
//# sourceMappingURL=resource-identity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resource-identity.js","sourceRoot":"","sources":["../../src/implementation/resource-identity.ts"],"names":[],"mappings":";;AAsBA,8DAMC;AA5BD,SAAS,eAAe,CAAC,KAAa;IACpC,OAAO,KAAK;SACT,WAAW,EAAE;SACb,OAAO,CAAC,IAAI,EAAE,EAAE,CAAC;SACjB,OAAO,CAAC,aAAa,EAAE,EAAE,CAAC;SAC1B,IAAI,EAAE,CAAC;AACZ,CAAC;AAED,SAAS,gBAAgB,CAAC,WAAmB;IAC3C,IAAI,WAAW,CAAC,UAAU,CAAC,GAAG,CAAC,EAAE,CAAC;QAChC,MAAM,KAAK,GAAG,WAAW,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;QACrC,MAAM,GAAG,GAAG,eAAe,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,OAAO,CAAC,CAAC;QACjD,MAAM,GAAG,GAAG,eAAe,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,SAAS,CAAC,CAAC;QACnD,OAAO,EAAE,GAAG,EAAE,GAAG,IAAI,OAAO,EAAE,GAAG,EAAE,GAAG,IAAI,SAAS,EAAE,CAAC;IACxD,CAAC;IAED,OAAO;QACL,GAAG,EAAE,OAAO;QACZ,GAAG,EAAE,eAAe,CAAC,WAAW,CAAC,IAAI,SAAS;KAC/C,CAAC;AACJ,CAAC;AAED,SAAgB,yBAAyB,CAAC,WAAmB,EAAE,aAAqB;IAClF,kFAAkF;IAClF,sFAAsF;IACtF,MAAM,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,gBAAgB,CAAC,WAAW,CAAC,CAAC;IACnD,MAAM,IAAI,GAAG,eAAe,CAAC,aAAa,CAAC,IAAI,WAAW,CAAC;IAC3D,OAAO,GAAG,GAAG,IAAI,GAAG,cAAc,IAAI,EAAE,CAAC;AAC3C,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
type AuthoringOptions = {
|
|
2
|
+
dryRun?: boolean;
|
|
3
|
+
};
|
|
4
|
+
export type AuthoringReport = {
|
|
5
|
+
outputDir: string;
|
|
6
|
+
discoveredResources: number;
|
|
7
|
+
createdFiles: string[];
|
|
8
|
+
existingFiles: string[];
|
|
9
|
+
plannedFiles: string[];
|
|
10
|
+
dryRun: boolean;
|
|
11
|
+
};
|
|
12
|
+
export declare function runAuthoringWorkflow(cwd: string, options?: AuthoringOptions): Promise<AuthoringReport>;
|
|
13
|
+
export {};
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.runAuthoringWorkflow = runAuthoringWorkflow;
|
|
7
|
+
const node_path_1 = __importDefault(require("node:path"));
|
|
8
|
+
const typescript_extractor_1 = require("../generation/extractors/typescript-extractor");
|
|
9
|
+
const fs_1 = require("../io/fs");
|
|
10
|
+
const resource_identity_1 = require("../resource-identity");
|
|
11
|
+
const AUTHORING_TEMPLATE = `description: ""
|
|
12
|
+
# Describe brevemente qué hace este recurso.
|
|
13
|
+
|
|
14
|
+
whenToUse: []
|
|
15
|
+
# ¿Cuándo recomendarías utilizar este recurso?
|
|
16
|
+
|
|
17
|
+
whenNotToUse: []
|
|
18
|
+
# ¿En qué casos elegirías otra alternativa?
|
|
19
|
+
`;
|
|
20
|
+
async function readPackageName(cwd) {
|
|
21
|
+
const packageJson = await (0, fs_1.readJson)(node_path_1.default.join(cwd, "package.json"));
|
|
22
|
+
if (typeof packageJson.name !== "string" || packageJson.name.trim() === "") {
|
|
23
|
+
throw new Error("package.json name is required for authoring");
|
|
24
|
+
}
|
|
25
|
+
return packageJson.name;
|
|
26
|
+
}
|
|
27
|
+
async function runAuthoringWorkflow(cwd, options = {}) {
|
|
28
|
+
const packageName = await readPackageName(cwd);
|
|
29
|
+
const components = await (0, typescript_extractor_1.extractTypeScriptComponents)(cwd, packageName);
|
|
30
|
+
const outputDir = node_path_1.default.join(cwd, "aps", "knowledge", "components");
|
|
31
|
+
const createdFiles = [];
|
|
32
|
+
const existingFiles = [];
|
|
33
|
+
const plannedFiles = [];
|
|
34
|
+
for (const component of components) {
|
|
35
|
+
const resourceId = (0, resource_identity_1.createComponentResourceId)(component.packageName, component.name);
|
|
36
|
+
const filePath = node_path_1.default.join(outputDir, `${resourceId}.yaml`);
|
|
37
|
+
const relativePath = node_path_1.default.relative(cwd, filePath);
|
|
38
|
+
if (await (0, fs_1.fileExists)(filePath)) {
|
|
39
|
+
existingFiles.push(relativePath);
|
|
40
|
+
continue;
|
|
41
|
+
}
|
|
42
|
+
if (options.dryRun) {
|
|
43
|
+
plannedFiles.push(relativePath);
|
|
44
|
+
continue;
|
|
45
|
+
}
|
|
46
|
+
if (await (0, fs_1.writeTextIfMissing)(filePath, AUTHORING_TEMPLATE)) {
|
|
47
|
+
createdFiles.push(relativePath);
|
|
48
|
+
}
|
|
49
|
+
else {
|
|
50
|
+
existingFiles.push(relativePath);
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
outputDir: node_path_1.default.relative(cwd, outputDir),
|
|
55
|
+
discoveredResources: components.length,
|
|
56
|
+
createdFiles,
|
|
57
|
+
existingFiles,
|
|
58
|
+
plannedFiles,
|
|
59
|
+
dryRun: Boolean(options.dryRun)
|
|
60
|
+
};
|
|
61
|
+
}
|
|
62
|
+
//# sourceMappingURL=authoring-service.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"authoring-service.js","sourceRoot":"","sources":["../../../src/implementation/services/authoring-service.ts"],"names":[],"mappings":";;;;;AA0CA,oDAyCC;AAnFD,0DAA6B;AAC7B,wFAA4F;AAC5F,iCAAoE;AACpE,4DAAiE;AAmBjE,MAAM,kBAAkB,GAAG;;;;;;;;CAQ1B,CAAC;AAEF,KAAK,UAAU,eAAe,CAAC,GAAW;IACxC,MAAM,WAAW,GAAG,MAAM,IAAA,aAAQ,EAAc,mBAAI,CAAC,IAAI,CAAC,GAAG,EAAE,cAAc,CAAC,CAAC,CAAC;IAEhF,IAAI,OAAO,WAAW,CAAC,IAAI,KAAK,QAAQ,IAAI,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3D,YAAY,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;QAClC,CAAC;aAAM,CAAC;YACN,aAAa,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;QACnC,CAAC;IACH,CAAC;IAED,OAAO;QACL,SAAS,EAAE,mBAAI,CAAC,QAAQ,CAAC,GAAG,EAAE,SAAS,CAAC;QACxC,mBAAmB,EAAE,UAAU,CAAC,MAAM;QACtC,YAAY;QACZ,aAAa;QACb,YAAY;QACZ,MAAM,EAAE,OAAO,CAAC,OAAO,CAAC,MAAM,CAAC;KAChC,CAAC;AACJ,CAAC"}
|
package/dist/index.d.ts
CHANGED
|
@@ -6,6 +6,8 @@ export { runContextWorkflow } from "./implementation/services/context-service";
|
|
|
6
6
|
export { runSyncWorkflow } from "./implementation/services/sync-service";
|
|
7
7
|
export { prepareApsConfig } from "./implementation/services/init-service";
|
|
8
8
|
export { runGovernanceValidation } from "./implementation/services/governance-service";
|
|
9
|
+
export { runAuthoringWorkflow } from "./implementation/services/authoring-service";
|
|
10
|
+
export type { AuthoringReport } from "./implementation/services/authoring-service";
|
|
9
11
|
export { registerAdapter, getAdapter, getConfiguredAdapters } from "./implementation/adapters";
|
|
10
12
|
export type { AgentAdapter, AgentContext, SyncResult } from "./implementation/adapters";
|
|
11
13
|
export { registerGenerator, resolveGenerator } from "./implementation/generators";
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.validateGovernance = exports.validateApsManifest = exports.resolveGenerator = exports.registerGenerator = exports.getConfiguredAdapters = exports.getAdapter = exports.registerAdapter = exports.runGovernanceValidation = exports.prepareApsConfig = exports.runSyncWorkflow = exports.runContextWorkflow = exports.runDoctorAssessment = exports.runGeneration = exports.runValidation = exports.runDiscovery = void 0;
|
|
3
|
+
exports.validateGovernance = exports.validateApsManifest = exports.resolveGenerator = exports.registerGenerator = exports.getConfiguredAdapters = exports.getAdapter = exports.registerAdapter = exports.runAuthoringWorkflow = exports.runGovernanceValidation = exports.prepareApsConfig = exports.runSyncWorkflow = exports.runContextWorkflow = exports.runDoctorAssessment = exports.runGeneration = exports.runValidation = exports.runDiscovery = void 0;
|
|
4
4
|
var discovery_service_1 = require("./implementation/services/discovery-service");
|
|
5
5
|
Object.defineProperty(exports, "runDiscovery", { enumerable: true, get: function () { return discovery_service_1.runDiscovery; } });
|
|
6
6
|
var validate_service_1 = require("./implementation/services/validate-service");
|
|
@@ -17,6 +17,8 @@ var init_service_1 = require("./implementation/services/init-service");
|
|
|
17
17
|
Object.defineProperty(exports, "prepareApsConfig", { enumerable: true, get: function () { return init_service_1.prepareApsConfig; } });
|
|
18
18
|
var governance_service_1 = require("./implementation/services/governance-service");
|
|
19
19
|
Object.defineProperty(exports, "runGovernanceValidation", { enumerable: true, get: function () { return governance_service_1.runGovernanceValidation; } });
|
|
20
|
+
var authoring_service_1 = require("./implementation/services/authoring-service");
|
|
21
|
+
Object.defineProperty(exports, "runAuthoringWorkflow", { enumerable: true, get: function () { return authoring_service_1.runAuthoringWorkflow; } });
|
|
20
22
|
var adapters_1 = require("./implementation/adapters");
|
|
21
23
|
Object.defineProperty(exports, "registerAdapter", { enumerable: true, get: function () { return adapters_1.registerAdapter; } });
|
|
22
24
|
Object.defineProperty(exports, "getAdapter", { enumerable: true, get: function () { return adapters_1.getAdapter; } });
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;AAAA,iFAA2E;AAAlE,iHAAA,YAAY,OAAA;AACrB,+EAA2E;AAAlE,iHAAA,aAAa,OAAA;AACtB,+EAA2E;AAAlE,iHAAA,aAAa,OAAA;AACtB,2EAA+E;AAAtE,qHAAA,mBAAmB,OAAA;AAC5B,6EAA+E;AAAtE,qHAAA,kBAAkB,OAAA;AAC3B,uEAAyE;AAAhE,+GAAA,eAAe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