pupt-lib 1.2.4 → 1.2.5
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.ts +2 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +34 -1
- package/dist/types/context.d.ts +46 -11
- package/dist/types/context.d.ts.map +1 -1
- package/dist/types/index.d.ts +2 -2
- package/dist/types/index.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
export declare const VERSION = "0.0.0-development";
|
|
2
2
|
export { TYPE, PROPS, CHILDREN, DEFERRED_REF } from './types/symbols';
|
|
3
3
|
export { isPuptElement, isDeferredRef } from './types/element';
|
|
4
|
-
export type { PuptNode, PuptElement, ComponentType, DeferredRef, LlmConfig, OutputConfig, CodeConfig, UserConfig, RuntimeConfig, EnvironmentContext, RenderContext, RenderOptions, RenderResult, RenderSuccess, RenderFailure, RenderError, RenderMetadata, PostExecutionAction, InputRequirement, ValidationResult, ValidationError, ValidationWarning, CollectedInputs, ComponentProps, PromptProps, StructuralProps, CommonProps, SearchablePrompt, SearchOptions, SearchResult, SearchResultMatch, SearchEngineConfig, PuptConfig, PuptLibrary, DiscoveredPrompt, LibraryLoadResult, PuptInitConfig, } from './types';
|
|
5
|
-
export { DEFAULT_ENVIRONMENT, createEnvironment, createRuntimeConfig, ensureRuntimeCacheReady, } from './types';
|
|
4
|
+
export type { PuptNode, PuptElement, ComponentType, DeferredRef, LlmConfig, LlmProvider, OutputConfig, CodeConfig, UserConfig, RuntimeConfig, EnvironmentContext, RenderContext, RenderOptions, RenderResult, RenderSuccess, RenderFailure, RenderError, RenderMetadata, PostExecutionAction, InputRequirement, ValidationResult, ValidationError, ValidationWarning, CollectedInputs, ComponentProps, PromptProps, StructuralProps, CommonProps, SearchablePrompt, SearchOptions, SearchResult, SearchResultMatch, SearchEngineConfig, PuptConfig, PuptLibrary, DiscoveredPrompt, LibraryLoadResult, PuptInitConfig, } from './types';
|
|
5
|
+
export { LLM_PROVIDERS, inferProviderFromModel, DEFAULT_ENVIRONMENT, createEnvironment, createRuntimeConfig, ensureRuntimeCacheReady, } from './types';
|
|
6
6
|
export { Component, isComponentClass, COMPONENT_MARKER } from './component';
|
|
7
7
|
export { render } from './render';
|
|
8
8
|
export { createInputIterator } from './services/input-iterator';
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,OAAO,sBAAsB,CAAC;AAG3C,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,QAAQ,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAGtE,OAAO,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAG/D,YAAY,EACV,QAAQ,EACR,WAAW,EACX,aAAa,EACb,WAAW,EACX,SAAS,EACT,YAAY,EACZ,UAAU,EACV,UAAU,EACV,aAAa,EACb,kBAAkB,EAClB,aAAa,EACb,aAAa,EACb,YAAY,EACZ,aAAa,EACb,aAAa,EACb,WAAW,EACX,cAAc,EACd,mBAAmB,EACnB,gBAAgB,EAChB,gBAAgB,EAChB,eAAe,EACf,iBAAiB,EACjB,eAAe,EACf,cAAc,EACd,WAAW,EACX,eAAe,EACf,WAAW,EACX,gBAAgB,EAChB,aAAa,EACb,YAAY,EACZ,iBAAiB,EACjB,kBAAkB,EAClB,UAAU,EACV,WAAW,EACX,gBAAgB,EAChB,iBAAiB,EACjB,cAAc,GACf,MAAM,SAAS,CAAC;AAGjB,OAAO,EACL,mBAAmB,EACnB,iBAAiB,EACjB,mBAAmB,EACnB,uBAAuB,GACxB,MAAM,SAAS,CAAC;AAGjB,OAAO,EAAE,SAAS,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAG5E,OAAO,EAAE,MAAM,EAAE,MA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ANGED
|
@@ -3684,11 +3684,42 @@ async function ensureRuntimeCacheReady() {
|
|
|
3684
3684
|
if (!isBrowser$2) {
|
|
3685
3685
|
nodeRuntimeCachePromise = initNodeRuntimeCache();
|
|
3686
3686
|
}
|
|
3687
|
+
const LLM_PROVIDERS = [
|
|
3688
|
+
"anthropic",
|
|
3689
|
+
"openai",
|
|
3690
|
+
"google",
|
|
3691
|
+
"meta",
|
|
3692
|
+
"mistral",
|
|
3693
|
+
"deepseek",
|
|
3694
|
+
"xai",
|
|
3695
|
+
"cohere",
|
|
3696
|
+
"unspecified"
|
|
3697
|
+
];
|
|
3698
|
+
function inferProviderFromModel(model) {
|
|
3699
|
+
const m = model.toLowerCase();
|
|
3700
|
+
if (m.startsWith("claude") || m === "opus" || m === "sonnet" || m === "haiku") return "anthropic";
|
|
3701
|
+
if (m.startsWith("gpt-") || m.startsWith("chatgpt-") || /^o[134]([-_]|$)/.test(m)) return "openai";
|
|
3702
|
+
if (m.startsWith("gemini")) return "google";
|
|
3703
|
+
if (m.startsWith("llama")) return "meta";
|
|
3704
|
+
if (m.startsWith("mistral") || m.startsWith("mixtral") || m.startsWith("codestral") || m.startsWith("pixtral")) return "mistral";
|
|
3705
|
+
if (m.startsWith("deepseek")) return "deepseek";
|
|
3706
|
+
if (m.startsWith("grok")) return "xai";
|
|
3707
|
+
if (m.startsWith("command")) return "cohere";
|
|
3708
|
+
return null;
|
|
3709
|
+
}
|
|
3687
3710
|
const llmConfigSchema = objectType({
|
|
3688
3711
|
model: stringType().default("unspecified"),
|
|
3689
|
-
provider:
|
|
3712
|
+
provider: enumType(LLM_PROVIDERS).default("unspecified"),
|
|
3690
3713
|
maxTokens: numberType().positive().optional(),
|
|
3691
3714
|
temperature: numberType().min(0).max(2).optional()
|
|
3715
|
+
}).transform((data) => {
|
|
3716
|
+
if (data.provider === "unspecified" && data.model !== "unspecified") {
|
|
3717
|
+
const inferred = inferProviderFromModel(data.model);
|
|
3718
|
+
if (inferred) {
|
|
3719
|
+
return { ...data, provider: inferred };
|
|
3720
|
+
}
|
|
3721
|
+
}
|
|
3722
|
+
return data;
|
|
3692
3723
|
});
|
|
3693
3724
|
const outputConfigSchema = objectType({
|
|
3694
3725
|
format: enumType(["xml", "markdown", "json", "text", "unspecified"]).default("unspecified"),
|
|
@@ -46571,6 +46602,7 @@ export {
|
|
|
46571
46602
|
Hostname,
|
|
46572
46603
|
If,
|
|
46573
46604
|
Json,
|
|
46605
|
+
LLM_PROVIDERS,
|
|
46574
46606
|
ModuleLoader,
|
|
46575
46607
|
OpenUrl,
|
|
46576
46608
|
PROPS,
|
|
@@ -46608,6 +46640,7 @@ export {
|
|
|
46608
46640
|
generateImportMapScript,
|
|
46609
46641
|
generatePuptLibImportMap,
|
|
46610
46642
|
generatePuptLibImportMapScript,
|
|
46643
|
+
inferProviderFromModel,
|
|
46611
46644
|
isComponentClass,
|
|
46612
46645
|
isDeferredRef,
|
|
46613
46646
|
isPromptFile,
|
package/dist/types/context.d.ts
CHANGED
|
@@ -9,21 +9,46 @@ import { PostExecutionAction, RenderError } from './render';
|
|
|
9
9
|
*/
|
|
10
10
|
export declare function ensureRuntimeCacheReady(): Promise<void>;
|
|
11
11
|
/**
|
|
12
|
-
*
|
|
12
|
+
* Known LLM providers (model creators, not hosting platforms).
|
|
13
|
+
* Hosting platforms like AWS Bedrock and Azure are not included here
|
|
14
|
+
* because the provider represents who created the model, which determines
|
|
15
|
+
* the prompt optimization strategy.
|
|
13
16
|
*/
|
|
14
|
-
export declare const
|
|
17
|
+
export declare const LLM_PROVIDERS: readonly ["anthropic", "openai", "google", "meta", "mistral", "deepseek", "xai", "cohere", "unspecified"];
|
|
18
|
+
export type LlmProvider = typeof LLM_PROVIDERS[number];
|
|
19
|
+
/**
|
|
20
|
+
* Infer the LLM provider from a model name/ID.
|
|
21
|
+
* Returns the provider if the model matches a known pattern, or null if unknown.
|
|
22
|
+
*/
|
|
23
|
+
export declare function inferProviderFromModel(model: string): LlmProvider | null;
|
|
24
|
+
/**
|
|
25
|
+
* Schema for LLM configuration.
|
|
26
|
+
* When a model is specified but provider is not, the provider is automatically
|
|
27
|
+
* inferred from the model name.
|
|
28
|
+
*/
|
|
29
|
+
export declare const llmConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
15
30
|
model: z.ZodDefault<z.ZodString>;
|
|
16
|
-
provider: z.ZodDefault<z.
|
|
31
|
+
provider: z.ZodDefault<z.ZodEnum<["anthropic", "openai", "google", "meta", "mistral", "deepseek", "xai", "cohere", "unspecified"]>>;
|
|
17
32
|
maxTokens: z.ZodOptional<z.ZodNumber>;
|
|
18
33
|
temperature: z.ZodOptional<z.ZodNumber>;
|
|
19
34
|
}, "strip", z.ZodTypeAny, {
|
|
20
35
|
model: string;
|
|
21
|
-
provider:
|
|
36
|
+
provider: "unspecified" | "anthropic" | "openai" | "google" | "meta" | "mistral" | "deepseek" | "xai" | "cohere";
|
|
37
|
+
maxTokens?: number | undefined;
|
|
38
|
+
temperature?: number | undefined;
|
|
39
|
+
}, {
|
|
40
|
+
model?: string | undefined;
|
|
41
|
+
provider?: "unspecified" | "anthropic" | "openai" | "google" | "meta" | "mistral" | "deepseek" | "xai" | "cohere" | undefined;
|
|
42
|
+
maxTokens?: number | undefined;
|
|
43
|
+
temperature?: number | undefined;
|
|
44
|
+
}>, {
|
|
45
|
+
model: string;
|
|
46
|
+
provider: "unspecified" | "anthropic" | "openai" | "google" | "meta" | "mistral" | "deepseek" | "xai" | "cohere";
|
|
22
47
|
maxTokens?: number | undefined;
|
|
23
48
|
temperature?: number | undefined;
|
|
24
49
|
}, {
|
|
25
50
|
model?: string | undefined;
|
|
26
|
-
provider?:
|
|
51
|
+
provider?: "unspecified" | "anthropic" | "openai" | "google" | "meta" | "mistral" | "deepseek" | "xai" | "cohere" | undefined;
|
|
27
52
|
maxTokens?: number | undefined;
|
|
28
53
|
temperature?: number | undefined;
|
|
29
54
|
}>;
|
|
@@ -107,19 +132,29 @@ export declare const runtimeConfigSchema: z.ZodObject<{
|
|
|
107
132
|
* Schema for the full environment context
|
|
108
133
|
*/
|
|
109
134
|
export declare const environmentContextSchema: z.ZodObject<{
|
|
110
|
-
llm: z.ZodDefault<z.ZodObject<{
|
|
135
|
+
llm: z.ZodDefault<z.ZodEffects<z.ZodObject<{
|
|
111
136
|
model: z.ZodDefault<z.ZodString>;
|
|
112
|
-
provider: z.ZodDefault<z.
|
|
137
|
+
provider: z.ZodDefault<z.ZodEnum<["anthropic", "openai", "google", "meta", "mistral", "deepseek", "xai", "cohere", "unspecified"]>>;
|
|
113
138
|
maxTokens: z.ZodOptional<z.ZodNumber>;
|
|
114
139
|
temperature: z.ZodOptional<z.ZodNumber>;
|
|
115
140
|
}, "strip", z.ZodTypeAny, {
|
|
116
141
|
model: string;
|
|
117
|
-
provider:
|
|
142
|
+
provider: "unspecified" | "anthropic" | "openai" | "google" | "meta" | "mistral" | "deepseek" | "xai" | "cohere";
|
|
143
|
+
maxTokens?: number | undefined;
|
|
144
|
+
temperature?: number | undefined;
|
|
145
|
+
}, {
|
|
146
|
+
model?: string | undefined;
|
|
147
|
+
provider?: "unspecified" | "anthropic" | "openai" | "google" | "meta" | "mistral" | "deepseek" | "xai" | "cohere" | undefined;
|
|
148
|
+
maxTokens?: number | undefined;
|
|
149
|
+
temperature?: number | undefined;
|
|
150
|
+
}>, {
|
|
151
|
+
model: string;
|
|
152
|
+
provider: "unspecified" | "anthropic" | "openai" | "google" | "meta" | "mistral" | "deepseek" | "xai" | "cohere";
|
|
118
153
|
maxTokens?: number | undefined;
|
|
119
154
|
temperature?: number | undefined;
|
|
120
155
|
}, {
|
|
121
156
|
model?: string | undefined;
|
|
122
|
-
provider?:
|
|
157
|
+
provider?: "unspecified" | "anthropic" | "openai" | "google" | "meta" | "mistral" | "deepseek" | "xai" | "cohere" | undefined;
|
|
123
158
|
maxTokens?: number | undefined;
|
|
124
159
|
temperature?: number | undefined;
|
|
125
160
|
}>>;
|
|
@@ -194,7 +229,7 @@ export declare const environmentContextSchema: z.ZodObject<{
|
|
|
194
229
|
};
|
|
195
230
|
llm: {
|
|
196
231
|
model: string;
|
|
197
|
-
provider:
|
|
232
|
+
provider: "unspecified" | "anthropic" | "openai" | "google" | "meta" | "mistral" | "deepseek" | "xai" | "cohere";
|
|
198
233
|
maxTokens?: number | undefined;
|
|
199
234
|
temperature?: number | undefined;
|
|
200
235
|
};
|
|
@@ -227,7 +262,7 @@ export declare const environmentContextSchema: z.ZodObject<{
|
|
|
227
262
|
} | undefined;
|
|
228
263
|
llm?: {
|
|
229
264
|
model?: string | undefined;
|
|
230
|
-
provider?:
|
|
265
|
+
provider?: "unspecified" | "anthropic" | "openai" | "google" | "meta" | "mistral" | "deepseek" | "xai" | "cohere" | undefined;
|
|
231
266
|
maxTokens?: number | undefined;
|
|
232
267
|
temperature?: number | undefined;
|
|
233
268
|
} | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../../src/types/context.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,KAAK,EAAE,mBAAmB,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAkEjE;;;;;;GAMG;AACH,wBAAsB,uBAAuB,IAAI,OAAO,CAAC,IAAI,CAAC,CAQ7D;AAYD
|
|
1
|
+
{"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../../src/types/context.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,KAAK,EAAE,mBAAmB,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAkEjE;;;;;;GAMG;AACH,wBAAsB,uBAAuB,IAAI,OAAO,CAAC,IAAI,CAAC,CAQ7D;AAYD;;;;;GAKG;AACH,eAAO,MAAM,aAAa,2GAUhB,CAAC;AAEX,MAAM,MAAM,WAAW,GAAG,OAAO,aAAa,CAAC,MAAM,CAAC,CAAC;AAEvD;;;GAGG;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;AAE1E;;GAEG;AACH,MAAM,WAAW,aAAa;IAC5B,MAAM,EAAE,GAAG,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAC7B,GAAG,EAAE,kBAAkB,CAAC;IACxB,aAAa,EAAE,mBAAmB,EAAE,CAAC;IACrC,MAAM,EAAE,WAAW,EAAE,CAAC;CACvB;AAED;;GAEG;AACH,eAAO,MAAM,mBAAmB,EAAE,kBAMjC,CAAC;AAEF;;;GAGG;AACH,wBAAgB,iBAAiB,CAC/B,SAAS,CAAC,EAAE,OAAO,CAAC,kBAAkB,CAAC,GACtC,kBAAkB,CASpB;AAgDD;;;;;;;GAOG;AACH,wBAAgB,mBAAmB,IAAI,aAAa,CAqCnD"}
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
export { TYPE, PROPS, CHILDREN, DEFERRED_REF } from './symbols';
|
|
2
2
|
export type { PuptNode, PuptElement, ComponentType, DeferredRef, } from './element';
|
|
3
3
|
export { isPuptElement, isDeferredRef } from './element';
|
|
4
|
-
export type { LlmConfig, OutputConfig, CodeConfig, UserConfig, RuntimeConfig, EnvironmentContext, RenderContext, } from './context';
|
|
5
|
-
export { DEFAULT_ENVIRONMENT, createEnvironment, createRuntimeConfig, ensureRuntimeCacheReady, llmConfigSchema, outputConfigSchema, codeConfigSchema, userConfigSchema, runtimeConfigSchema, environmentContextSchema, } from './context';
|
|
4
|
+
export type { LlmConfig, LlmProvider, OutputConfig, CodeConfig, UserConfig, RuntimeConfig, EnvironmentContext, RenderContext, } from './context';
|
|
5
|
+
export { LLM_PROVIDERS, inferProviderFromModel, DEFAULT_ENVIRONMENT, createEnvironment, createRuntimeConfig, ensureRuntimeCacheReady, llmConfigSchema, outputConfigSchema, codeConfigSchema, userConfigSchema, runtimeConfigSchema, environmentContextSchema, } from './context';
|
|
6
6
|
export type { RenderOptions, RenderResult, RenderSuccess, RenderFailure, RenderError, RenderMetadata, PostExecutionAction, ReviewFileAction, OpenUrlAction, RunCommandAction, } from './render';
|
|
7
7
|
export type { InputRequirement, ValidationResult, ValidationError, ValidationWarning, CollectedInputs, } from './input';
|
|
8
8
|
export type { ComponentProps, PromptProps, StructuralProps, CommonProps, } from './component';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,QAAQ,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AAGhE,YAAY,EACV,QAAQ,EACR,WAAW,EACX,aAAa,EACb,WAAW,GACZ,MAAM,WAAW,CAAC;AAEnB,OAAO,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAGzD,YAAY,EACV,SAAS,EACT,YAAY,EACZ,UAAU,EACV,UAAU,EACV,aAAa,EACb,kBAAkB,EAClB,aAAa,GACd,MAAM,WAAW,CAAC;AAEnB,OAAO,EACL,mBAAmB,EACnB,iBAAiB,EACjB,mBAAmB,EACnB,uBAAuB,EAEvB,eAAe,EACf,kBAAkB,EAClB,gBAAgB,EAChB,gBAAgB,EAChB,mBAAmB,EACnB,wBAAwB,GACzB,MAAM,WAAW,CAAC;AAGnB,YAAY,EACV,aAAa,EACb,YAAY,EACZ,aAAa,EACb,aAAa,EACb,WAAW,EACX,cAAc,EACd,mBAAmB,EACnB,gBAAgB,EAChB,aAAa,EACb,gBAAgB,GACjB,MAAM,UAAU,CAAC;AAGlB,YAAY,EACV,gBAAgB,EAChB,gBAAgB,EAChB,eAAe,EACf,iBAAiB,EACjB,eAAe,GAChB,MAAM,SAAS,CAAC;AAGjB,YAAY,EACV,cAAc,EACd,WAAW,EACX,eAAe,EACf,WAAW,GACZ,MAAM,aAAa,CAAC;AAGrB,YAAY,EACV,gBAAgB,EAChB,aAAa,EACb,YAAY,EACZ,iBAAiB,EACjB,kBAAkB,GACnB,MAAM,UAAU,CAAC;AAGlB,YAAY,EACV,UAAU,EACV,WAAW,EACX,gBAAgB,EAChB,iBAAiB,EACjB,cAAc,GACf,MAAM,UAAU,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,QAAQ,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AAGhE,YAAY,EACV,QAAQ,EACR,WAAW,EACX,aAAa,EACb,WAAW,GACZ,MAAM,WAAW,CAAC;AAEnB,OAAO,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAGzD,YAAY,EACV,SAAS,EACT,WAAW,EACX,YAAY,EACZ,UAAU,EACV,UAAU,EACV,aAAa,EACb,kBAAkB,EAClB,aAAa,GACd,MAAM,WAAW,CAAC;AAEnB,OAAO,EACL,aAAa,EACb,sBAAsB,EACtB,mBAAmB,EACnB,iBAAiB,EACjB,mBAAmB,EACnB,uBAAuB,EAEvB,eAAe,EACf,kBAAkB,EAClB,gBAAgB,EAChB,gBAAgB,EAChB,mBAAmB,EACnB,wBAAwB,GACzB,MAAM,WAAW,CAAC;AAGnB,YAAY,EACV,aAAa,EACb,YAAY,EACZ,aAAa,EACb,aAAa,EACb,WAAW,EACX,cAAc,EACd,mBAAmB,EACnB,gBAAgB,EAChB,aAAa,EACb,gBAAgB,GACjB,MAAM,UAAU,CAAC;AAGlB,YAAY,EACV,gBAAgB,EAChB,gBAAgB,EAChB,eAAe,EACf,iBAAiB,EACjB,eAAe,GAChB,MAAM,SAAS,CAAC;AAGjB,YAAY,EACV,cAAc,EACd,WAAW,EACX,eAAe,EACf,WAAW,GACZ,MAAM,aAAa,CAAC;AAGrB,YAAY,EACV,gBAAgB,EAChB,aAAa,EACb,YAAY,EACZ,iBAAiB,EACjB,kBAAkB,GACnB,MAAM,UAAU,CAAC;AAGlB,YAAY,EACV,UAAU,EACV,WAAW,EACX,gBAAgB,EAChB,iBAAiB,EACjB,cAAc,GACf,MAAM,UAAU,CAAC"}
|