@better-t-stack/types 3.27.2 → 3.27.3
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/index.d.mts +1 -1
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +2 -3
- package/dist/index.mjs.map +1 -1
- package/dist/json-schema.d.mts.map +1 -1
- package/dist/json-schema.mjs +2 -3
- package/dist/json-schema.mjs.map +1 -1
- package/dist/schemas.d.mts +2660 -2
- package/dist/schemas.d.mts.map +1 -0
- package/dist/schemas.mjs +449 -2
- package/dist/schemas.mjs.map +1 -0
- package/package.json +4 -4
- package/dist/schemas-BnNUXuvy.d.mts +0 -2660
- package/dist/schemas-BnNUXuvy.d.mts.map +0 -1
- package/dist/schemas-_QCSumP7.mjs +0 -451
- package/dist/schemas-_QCSumP7.mjs.map +0 -1
package/dist/index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ADDONS_VALUES, APISchema, API_VALUES, AUTH_VALUES, AddInputSchema, AddonOptionsSchema, AddonsSchema, AuthSchema, BACKEND_VALUES, BackendSchema, BetterTStackConfigFileSchema, BetterTStackConfigSchema, CLIInputSchema, CreateInputSchema, DATABASE_SETUP_VALUES, DATABASE_VALUES, DIRECTORY_CONFLICT_VALUES, DatabaseSchema, DatabaseSetupSchema, DbSetupModeSchema, DbSetupOptionsSchema, DirectoryConflictSchema, EXAMPLES_VALUES, ExamplesSchema, FRONTEND_VALUES, FrontendSchema, FumadocsTemplateSchema, InitResultSchema, InstallScopeSchema, McpAgentSchema, McpServerSchema, NeonSetupMethodSchema, ORMSchema, ORM_VALUES, PACKAGE_MANAGER_VALUES, PAYMENTS_VALUES, PackageManagerSchema, PaymentsSchema, ProjectConfigSchema, ProjectNameSchema, RUNTIME_VALUES, RuntimeSchema, SERVER_DEPLOY_VALUES, ServerDeploySchema, SkillSelectionSchema, SkillsAgentSchema, SkillsSourceSchema, TEMPLATE_VALUES, TemplateSchema, TuiTemplateSchema, UltraciteAgentSchema, UltraciteEditorSchema, UltraciteHookSchema, UltraciteLinterSchema, WEB_DEPLOY_VALUES, WebDeploySchema, WxtTemplateSchema } from "./schemas.mjs";
|
|
2
2
|
import { z } from "zod";
|
|
3
3
|
|
|
4
4
|
//#region src/constants.d.ts
|
package/dist/index.d.mts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","names":[],"sources":["../src/constants.ts","../src/types.ts"],"
|
|
1
|
+
{"version":3,"file":"index.d.mts","names":[],"sources":["../src/constants.ts","../src/types.ts"],"mappings":";;;;cAEa,mBAAA;;;KC6BD,QAAA,GAAW,CAAA,CAAE,KAAA,QAAa,cAAA;AAAA,KAC1B,GAAA,GAAM,CAAA,CAAE,KAAA,QAAa,SAAA;AAAA,KACrB,OAAA,GAAU,CAAA,CAAE,KAAA,QAAa,aAAA;AAAA,KACzB,OAAA,GAAU,CAAA,CAAE,KAAA,QAAa,aAAA;AAAA,KACzB,QAAA,GAAW,CAAA,CAAE,KAAA,QAAa,cAAA;AAAA,KAC1B,MAAA,GAAS,CAAA,CAAE,KAAA,QAAa,YAAA;AAAA,KACxB,QAAA,GAAW,CAAA,CAAE,KAAA,QAAa,cAAA;AAAA,KAC1B,cAAA,GAAiB,CAAA,CAAE,KAAA,QAAa,oBAAA;AAAA,KAChC,aAAA,GAAgB,CAAA,CAAE,KAAA,QAAa,mBAAA;AAAA,KAC/B,GAAA,GAAM,CAAA,CAAE,KAAA,QAAa,SAAA;AAAA,KACrB,IAAA,GAAO,CAAA,CAAE,KAAA,QAAa,UAAA;AAAA,KACtB,QAAA,GAAW,CAAA,CAAE,KAAA,QAAa,cAAA;AAAA,KAC1B,SAAA,GAAY,CAAA,CAAE,KAAA,QAAa,eAAA;AAAA,KAC3B,YAAA,GAAe,CAAA,CAAE,KAAA,QAAa,kBAAA;AAAA,KAC9B,iBAAA,GAAoB,CAAA,CAAE,KAAA,QAAa,uBAAA;AAAA,KACnC,QAAA,GAAW,CAAA,CAAE,KAAA,QAAa,cAAA;AAAA,KAC1B,YAAA,GAAe,CAAA,CAAE,KAAA,QAAa,kBAAA;AAAA,KAC9B,cAAA,GAAiB,CAAA,CAAE,KAAA,QAAa,oBAAA;AAAA,KAChC,WAAA,GAAc,CAAA,CAAE,KAAA,QAAa,iBAAA;AAAA,KAE7B,WAAA,GAAc,CAAA,CAAE,KAAA,QAAa,iBAAA;AAAA,KAC7B,QAAA,GAAW,CAAA,CAAE,KAAA,QAAa,cAAA;AAAA,KAC1B,QAAA,GAAW,CAAA,CAAE,KAAA,QAAa,cAAA;AAAA,KAC1B,aAAA,GAAgB,CAAA,CAAE,KAAA,QAAa,mBAAA;AAAA,KAC/B,kBAAA,GAAqB,CAAA,CAAE,KAAA,QAAa,wBAAA;AAAA,KACpC,UAAA,GAAa,CAAA,CAAE,KAAA,QAAa,gBAAA;AAAA,KAE5B,WAAA,GAAc,OAAA,CACxB,QAAA;AAAA,KAYU,kBAAA,GAAqB,OAAA,CAAQ,WAAA;AAAA,KAE7B,cAAA,GAAiB,OAAA,CAC3B,QAAA"}
|
package/dist/index.mjs
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { ADDONS_VALUES, APISchema, API_VALUES, AUTH_VALUES, AddInputSchema, AddonOptionsSchema, AddonsSchema, AuthSchema, BACKEND_VALUES, BackendSchema, BetterTStackConfigFileSchema, BetterTStackConfigSchema, CLIInputSchema, CreateInputSchema, DATABASE_SETUP_VALUES, DATABASE_VALUES, DIRECTORY_CONFLICT_VALUES, DatabaseSchema, DatabaseSetupSchema, DbSetupModeSchema, DbSetupOptionsSchema, DirectoryConflictSchema, EXAMPLES_VALUES, ExamplesSchema, FRONTEND_VALUES, FrontendSchema, FumadocsTemplateSchema, InitResultSchema, InstallScopeSchema, McpAgentSchema, McpServerSchema, NeonSetupMethodSchema, ORMSchema, ORM_VALUES, PACKAGE_MANAGER_VALUES, PAYMENTS_VALUES, PackageManagerSchema, PaymentsSchema, ProjectConfigSchema, ProjectNameSchema, RUNTIME_VALUES, RuntimeSchema, SERVER_DEPLOY_VALUES, ServerDeploySchema, SkillSelectionSchema, SkillsAgentSchema, SkillsSourceSchema, TEMPLATE_VALUES, TemplateSchema, TuiTemplateSchema, UltraciteAgentSchema, UltraciteEditorSchema, UltraciteHookSchema, UltraciteLinterSchema, WEB_DEPLOY_VALUES, WebDeploySchema, WxtTemplateSchema } from "./schemas.mjs";
|
|
3
2
|
//#region src/constants.ts
|
|
4
3
|
const desktopWebFrontends = [
|
|
5
4
|
"tanstack-router",
|
|
@@ -11,7 +10,7 @@ const desktopWebFrontends = [
|
|
|
11
10
|
"solid",
|
|
12
11
|
"astro"
|
|
13
12
|
];
|
|
14
|
-
|
|
15
13
|
//#endregion
|
|
16
14
|
export { ADDONS_VALUES, APISchema, API_VALUES, AUTH_VALUES, AddInputSchema, AddonOptionsSchema, AddonsSchema, AuthSchema, BACKEND_VALUES, BackendSchema, BetterTStackConfigFileSchema, BetterTStackConfigSchema, CLIInputSchema, CreateInputSchema, DATABASE_SETUP_VALUES, DATABASE_VALUES, DIRECTORY_CONFLICT_VALUES, DatabaseSchema, DatabaseSetupSchema, DbSetupModeSchema, DbSetupOptionsSchema, DirectoryConflictSchema, EXAMPLES_VALUES, ExamplesSchema, FRONTEND_VALUES, FrontendSchema, FumadocsTemplateSchema, InitResultSchema, InstallScopeSchema, McpAgentSchema, McpServerSchema, NeonSetupMethodSchema, ORMSchema, ORM_VALUES, PACKAGE_MANAGER_VALUES, PAYMENTS_VALUES, PackageManagerSchema, PaymentsSchema, ProjectConfigSchema, ProjectNameSchema, RUNTIME_VALUES, RuntimeSchema, SERVER_DEPLOY_VALUES, ServerDeploySchema, SkillSelectionSchema, SkillsAgentSchema, SkillsSourceSchema, TEMPLATE_VALUES, TemplateSchema, TuiTemplateSchema, UltraciteAgentSchema, UltraciteEditorSchema, UltraciteHookSchema, UltraciteLinterSchema, WEB_DEPLOY_VALUES, WebDeploySchema, WxtTemplateSchema, desktopWebFrontends };
|
|
15
|
+
|
|
17
16
|
//# sourceMappingURL=index.mjs.map
|
package/dist/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","names":[],"sources":["../src/constants.ts"],"sourcesContent":["import type { DesktopWebFrontend } from \"./types\";\n\nexport const desktopWebFrontends = [\n \"tanstack-router\",\n \"react-router\",\n \"tanstack-start\",\n \"next\",\n \"nuxt\",\n \"svelte\",\n \"solid\",\n \"astro\",\n] as const satisfies readonly DesktopWebFrontend[];\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.mjs","names":[],"sources":["../src/constants.ts"],"sourcesContent":["import type { DesktopWebFrontend } from \"./types\";\n\nexport const desktopWebFrontends = [\n \"tanstack-router\",\n \"react-router\",\n \"tanstack-start\",\n \"next\",\n \"nuxt\",\n \"svelte\",\n \"solid\",\n \"astro\",\n] as const satisfies readonly DesktopWebFrontend[];\n"],"mappings":";;AAEA,MAAa,sBAAsB;CACjC;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"json-schema.d.mts","names":[],"sources":["../src/json-schema.ts"],"
|
|
1
|
+
{"version":3,"file":"json-schema.d.mts","names":[],"sources":["../src/json-schema.ts"],"mappings":";;;iBA6BgB,qBAAA,CAAA,GAAqB,CAAA,CAAA,IAAA,CAAA,4BAAA,CAAA,CAAA,CAAA,OAAA;;;;;;;iBAIrB,gBAAA,CAAA,GAAgB,CAAA,CAAA,IAAA,CAAA,4BAAA,CAAA,CAAA,CAAA,OAAA;;;;;;iBAIhB,oBAAA,CAAA,GAAoB,CAAA,CAAA,IAAA,CAAA,4BAAA,CAAA,CAAA,CAAA,OAAA;;;;;;;;;iBAIpB,oBAAA,CAAA,GAAoB,CAAA,CAAA,IAAA,CAAA,4BAAA,CAAA,CAAA,CAAA,OAAA;;;;;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;;;;;;;;;;;;;;;;;iBAKvB,iBAAA,CAAA"}
|
package/dist/json-schema.mjs
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { APISchema, AddInputSchema, AddonOptionsSchema, AddonsSchema, AuthSchema, BackendSchema, BetterTStackConfigSchema, CreateInputSchema, DatabaseSchema, DatabaseSetupSchema, DbSetupOptionsSchema, DirectoryConflictSchema, ExamplesSchema, FrontendSchema, InitResultSchema, ORMSchema, PackageManagerSchema, PaymentsSchema, ProjectConfigSchema, RuntimeSchema, ServerDeploySchema, TemplateSchema, WebDeploySchema } from "./schemas.mjs";
|
|
2
2
|
import { z } from "zod";
|
|
3
|
-
|
|
4
3
|
//#region src/json-schema.ts
|
|
5
4
|
function getDatabaseJsonSchema() {
|
|
6
5
|
return z.toJSONSchema(DatabaseSchema);
|
|
@@ -98,7 +97,7 @@ function getAllJsonSchemas() {
|
|
|
98
97
|
initResult: getInitResultJsonSchema()
|
|
99
98
|
};
|
|
100
99
|
}
|
|
101
|
-
|
|
102
100
|
//#endregion
|
|
103
101
|
export { getAPIJsonSchema, getAddInputJsonSchema, getAddonOptionsJsonSchema, getAddonsJsonSchema, getAllJsonSchemas, getAuthJsonSchema, getBackendJsonSchema, getBetterTStackConfigJsonSchema, getCreateInputJsonSchema, getDatabaseJsonSchema, getDatabaseSetupJsonSchema, getDbSetupOptionsJsonSchema, getDirectoryConflictJsonSchema, getExamplesJsonSchema, getFrontendJsonSchema, getInitResultJsonSchema, getORMJsonSchema, getPackageManagerJsonSchema, getPaymentsJsonSchema, getProjectConfigJsonSchema, getRuntimeJsonSchema, getServerDeployJsonSchema, getTemplateJsonSchema, getWebDeployJsonSchema };
|
|
102
|
+
|
|
104
103
|
//# sourceMappingURL=json-schema.mjs.map
|
package/dist/json-schema.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"json-schema.mjs","names":[],"sources":["../src/json-schema.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport {\n DatabaseSchema,\n ORMSchema,\n BackendSchema,\n RuntimeSchema,\n FrontendSchema,\n AddonsSchema,\n ExamplesSchema,\n PackageManagerSchema,\n DatabaseSetupSchema,\n APISchema,\n AuthSchema,\n PaymentsSchema,\n WebDeploySchema,\n ServerDeploySchema,\n DirectoryConflictSchema,\n TemplateSchema,\n AddonOptionsSchema,\n DbSetupOptionsSchema,\n CreateInputSchema,\n AddInputSchema,\n ProjectConfigSchema,\n BetterTStackConfigSchema,\n InitResultSchema,\n} from \"./schemas\";\n\n// Generate JSON schemas for each type\nexport function getDatabaseJsonSchema() {\n return z.toJSONSchema(DatabaseSchema);\n}\n\nexport function getORMJsonSchema() {\n return z.toJSONSchema(ORMSchema);\n}\n\nexport function getBackendJsonSchema() {\n return z.toJSONSchema(BackendSchema);\n}\n\nexport function getRuntimeJsonSchema() {\n return z.toJSONSchema(RuntimeSchema);\n}\n\nexport function getFrontendJsonSchema() {\n return z.toJSONSchema(FrontendSchema);\n}\n\nexport function getAddonsJsonSchema() {\n return z.toJSONSchema(AddonsSchema);\n}\n\nexport function getExamplesJsonSchema() {\n return z.toJSONSchema(ExamplesSchema);\n}\n\nexport function getPackageManagerJsonSchema() {\n return z.toJSONSchema(PackageManagerSchema);\n}\n\nexport function getDatabaseSetupJsonSchema() {\n return z.toJSONSchema(DatabaseSetupSchema);\n}\n\nexport function getAPIJsonSchema() {\n return z.toJSONSchema(APISchema);\n}\n\nexport function getAuthJsonSchema() {\n return z.toJSONSchema(AuthSchema);\n}\n\nexport function getPaymentsJsonSchema() {\n return z.toJSONSchema(PaymentsSchema);\n}\n\nexport function getWebDeployJsonSchema() {\n return z.toJSONSchema(WebDeploySchema);\n}\n\nexport function getServerDeployJsonSchema() {\n return z.toJSONSchema(ServerDeploySchema);\n}\n\nexport function getDirectoryConflictJsonSchema() {\n return z.toJSONSchema(DirectoryConflictSchema);\n}\n\nexport function getTemplateJsonSchema() {\n return z.toJSONSchema(TemplateSchema);\n}\n\nexport function getAddonOptionsJsonSchema() {\n return z.toJSONSchema(AddonOptionsSchema);\n}\n\nexport function getDbSetupOptionsJsonSchema() {\n return z.toJSONSchema(DbSetupOptionsSchema);\n}\n\nexport function getCreateInputJsonSchema() {\n return z.toJSONSchema(CreateInputSchema);\n}\n\nexport function getAddInputJsonSchema() {\n return z.toJSONSchema(AddInputSchema);\n}\n\nexport function getProjectConfigJsonSchema() {\n return z.toJSONSchema(ProjectConfigSchema);\n}\n\nexport function getBetterTStackConfigJsonSchema() {\n return z.toJSONSchema(BetterTStackConfigSchema);\n}\n\nexport function getInitResultJsonSchema() {\n return z.toJSONSchema(InitResultSchema);\n}\n\n// Get all JSON schemas as a single object\nexport function getAllJsonSchemas() {\n return {\n database: getDatabaseJsonSchema(),\n orm: getORMJsonSchema(),\n backend: getBackendJsonSchema(),\n runtime: getRuntimeJsonSchema(),\n frontend: getFrontendJsonSchema(),\n addons: getAddonsJsonSchema(),\n examples: getExamplesJsonSchema(),\n packageManager: getPackageManagerJsonSchema(),\n databaseSetup: getDatabaseSetupJsonSchema(),\n api: getAPIJsonSchema(),\n auth: getAuthJsonSchema(),\n payments: getPaymentsJsonSchema(),\n webDeploy: getWebDeployJsonSchema(),\n serverDeploy: getServerDeployJsonSchema(),\n directoryConflict: getDirectoryConflictJsonSchema(),\n template: getTemplateJsonSchema(),\n addonOptions: getAddonOptionsJsonSchema(),\n dbSetupOptions: getDbSetupOptionsJsonSchema(),\n createInput: getCreateInputJsonSchema(),\n addInput: getAddInputJsonSchema(),\n projectConfig: getProjectConfigJsonSchema(),\n betterTStackConfig: getBetterTStackConfigJsonSchema(),\n initResult: getInitResultJsonSchema(),\n };\n}\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"json-schema.mjs","names":[],"sources":["../src/json-schema.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport {\n DatabaseSchema,\n ORMSchema,\n BackendSchema,\n RuntimeSchema,\n FrontendSchema,\n AddonsSchema,\n ExamplesSchema,\n PackageManagerSchema,\n DatabaseSetupSchema,\n APISchema,\n AuthSchema,\n PaymentsSchema,\n WebDeploySchema,\n ServerDeploySchema,\n DirectoryConflictSchema,\n TemplateSchema,\n AddonOptionsSchema,\n DbSetupOptionsSchema,\n CreateInputSchema,\n AddInputSchema,\n ProjectConfigSchema,\n BetterTStackConfigSchema,\n InitResultSchema,\n} from \"./schemas\";\n\n// Generate JSON schemas for each type\nexport function getDatabaseJsonSchema() {\n return z.toJSONSchema(DatabaseSchema);\n}\n\nexport function getORMJsonSchema() {\n return z.toJSONSchema(ORMSchema);\n}\n\nexport function getBackendJsonSchema() {\n return z.toJSONSchema(BackendSchema);\n}\n\nexport function getRuntimeJsonSchema() {\n return z.toJSONSchema(RuntimeSchema);\n}\n\nexport function getFrontendJsonSchema() {\n return z.toJSONSchema(FrontendSchema);\n}\n\nexport function getAddonsJsonSchema() {\n return z.toJSONSchema(AddonsSchema);\n}\n\nexport function getExamplesJsonSchema() {\n return z.toJSONSchema(ExamplesSchema);\n}\n\nexport function getPackageManagerJsonSchema() {\n return z.toJSONSchema(PackageManagerSchema);\n}\n\nexport function getDatabaseSetupJsonSchema() {\n return z.toJSONSchema(DatabaseSetupSchema);\n}\n\nexport function getAPIJsonSchema() {\n return z.toJSONSchema(APISchema);\n}\n\nexport function getAuthJsonSchema() {\n return z.toJSONSchema(AuthSchema);\n}\n\nexport function getPaymentsJsonSchema() {\n return z.toJSONSchema(PaymentsSchema);\n}\n\nexport function getWebDeployJsonSchema() {\n return z.toJSONSchema(WebDeploySchema);\n}\n\nexport function getServerDeployJsonSchema() {\n return z.toJSONSchema(ServerDeploySchema);\n}\n\nexport function getDirectoryConflictJsonSchema() {\n return z.toJSONSchema(DirectoryConflictSchema);\n}\n\nexport function getTemplateJsonSchema() {\n return z.toJSONSchema(TemplateSchema);\n}\n\nexport function getAddonOptionsJsonSchema() {\n return z.toJSONSchema(AddonOptionsSchema);\n}\n\nexport function getDbSetupOptionsJsonSchema() {\n return z.toJSONSchema(DbSetupOptionsSchema);\n}\n\nexport function getCreateInputJsonSchema() {\n return z.toJSONSchema(CreateInputSchema);\n}\n\nexport function getAddInputJsonSchema() {\n return z.toJSONSchema(AddInputSchema);\n}\n\nexport function getProjectConfigJsonSchema() {\n return z.toJSONSchema(ProjectConfigSchema);\n}\n\nexport function getBetterTStackConfigJsonSchema() {\n return z.toJSONSchema(BetterTStackConfigSchema);\n}\n\nexport function getInitResultJsonSchema() {\n return z.toJSONSchema(InitResultSchema);\n}\n\n// Get all JSON schemas as a single object\nexport function getAllJsonSchemas() {\n return {\n database: getDatabaseJsonSchema(),\n orm: getORMJsonSchema(),\n backend: getBackendJsonSchema(),\n runtime: getRuntimeJsonSchema(),\n frontend: getFrontendJsonSchema(),\n addons: getAddonsJsonSchema(),\n examples: getExamplesJsonSchema(),\n packageManager: getPackageManagerJsonSchema(),\n databaseSetup: getDatabaseSetupJsonSchema(),\n api: getAPIJsonSchema(),\n auth: getAuthJsonSchema(),\n payments: getPaymentsJsonSchema(),\n webDeploy: getWebDeployJsonSchema(),\n serverDeploy: getServerDeployJsonSchema(),\n directoryConflict: getDirectoryConflictJsonSchema(),\n template: getTemplateJsonSchema(),\n addonOptions: getAddonOptionsJsonSchema(),\n dbSetupOptions: getDbSetupOptionsJsonSchema(),\n createInput: getCreateInputJsonSchema(),\n addInput: getAddInputJsonSchema(),\n projectConfig: getProjectConfigJsonSchema(),\n betterTStackConfig: getBetterTStackConfigJsonSchema(),\n initResult: getInitResultJsonSchema(),\n };\n}\n"],"mappings":";;;AA6BA,SAAgB,wBAAwB;AACtC,QAAO,EAAE,aAAa,eAAe;;AAGvC,SAAgB,mBAAmB;AACjC,QAAO,EAAE,aAAa,UAAU;;AAGlC,SAAgB,uBAAuB;AACrC,QAAO,EAAE,aAAa,cAAc;;AAGtC,SAAgB,uBAAuB;AACrC,QAAO,EAAE,aAAa,cAAc;;AAGtC,SAAgB,wBAAwB;AACtC,QAAO,EAAE,aAAa,eAAe;;AAGvC,SAAgB,s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