@cuadra-ai/uikit 0.1.21 → 0.1.22
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/adapters/chatModelAdapter.d.ts +16 -0
- package/dist/adapters/chatModelAdapter.d.ts.map +1 -1
- package/dist/components/CuadraChat.d.ts +59 -2
- package/dist/components/CuadraChat.d.ts.map +1 -1
- package/dist/components/SimpleThread.d.ts +29 -5
- package/dist/components/SimpleThread.d.ts.map +1 -1
- package/dist/components/SimpleThreadList.d.ts.map +1 -1
- package/dist/components/WidgetContent.d.ts +32 -3
- package/dist/components/WidgetContent.d.ts.map +1 -1
- package/dist/index.cjs +13 -13
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.mjs +1917 -1790
- package/dist/index.mjs.map +1 -1
- package/dist/uikit.css +1 -1
- package/dist/widget/cuadra-uikit.css +1 -1
- package/dist/widget/cuadra-uikit.umd.js +22 -22
- package/dist/widget/cuadra-uikit.umd.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
import type { ChatModelAdapter } from '@assistant-ui/react';
|
|
2
2
|
import { CuadraChatClient } from '../lib/cuadraChatClient';
|
|
3
|
+
/**
|
|
4
|
+
* Queue a pre-made response to be returned instead of calling the API
|
|
5
|
+
* Call this before triggering the normal send flow
|
|
6
|
+
* @param response - The text to return as the assistant's response
|
|
7
|
+
* @param streamingSpeed - Speed in ms between words (default: 50)
|
|
8
|
+
* @param initialDelay - Delay in ms before streaming starts (default: 800)
|
|
9
|
+
*/
|
|
10
|
+
export declare function queuePreMadeResponse(response: string, streamingSpeed?: number, initialDelay?: number): void;
|
|
11
|
+
/**
|
|
12
|
+
* Check if there's a pending pre-made response
|
|
13
|
+
*/
|
|
14
|
+
export declare function hasPendingPreMadeResponse(): boolean;
|
|
15
|
+
/**
|
|
16
|
+
* Clear all pending pre-made responses
|
|
17
|
+
*/
|
|
18
|
+
export declare function clearPreMadeResponses(): void;
|
|
3
19
|
export interface ChatModelAdapterOptions {
|
|
4
20
|
modelId?: string | null;
|
|
5
21
|
systemPrompt?: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chatModelAdapter.d.ts","sourceRoot":"","sources":["../../src/adapters/chatModelAdapter.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAuB,MAAM,qBAAqB,CAAC;AACjF,OAAO,EAAE,gBAAgB,EAAiC,MAAM,yBAAyB,CAAC;
|
|
1
|
+
{"version":3,"file":"chatModelAdapter.d.ts","sourceRoot":"","sources":["../../src/adapters/chatModelAdapter.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAuB,MAAM,qBAAqB,CAAC;AACjF,OAAO,EAAE,gBAAgB,EAAiC,MAAM,yBAAyB,CAAC;AAuB1F;;;;;;GAMG;AACH,wBAAgB,oBAAoB,CAAC,QAAQ,EAAE,MAAM,EAAE,cAAc,GAAE,MAAW,EAAE,YAAY,GAAE,MAAY,GAAG,IAAI,CAEpH;AAED;;GAEG;AACH,wBAAgB,yBAAyB,IAAI,OAAO,CAEnD;AAED;;GAEG;AACH,wBAAgB,qBAAqB,IAAI,IAAI,CAE5C;AAED,MAAM,WAAW,uBAAuB;IACtC,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,aAAa,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;IACzC,aAAa,CAAC,EAAE,MAAM,IAAI,CAAC;IAC3B,gBAAgB,CAAC,EAAE,CAAC,aAAa,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,KAAK,IAAI,CAAC;CAC1E;AAED;;;GAGG;AACH,wBAAgB,sBAAsB,CACpC,MAAM,EAAE,gBAAgB,EACxB,OAAO,EAAE,uBAAuB,GAC/B,gBAAgB,CA+OlB"}
|
|
@@ -1,5 +1,22 @@
|
|
|
1
1
|
import type { CuadraRuntimeProviderProps } from './CuadraRuntimeProvider';
|
|
2
2
|
import type { CuadraTheme } from '../types/theme';
|
|
3
|
+
/**
|
|
4
|
+
* Handle for controlling CuadraChat externally
|
|
5
|
+
*/
|
|
6
|
+
export interface CuadraChatHandle {
|
|
7
|
+
/** Send a user message programmatically (triggers normal API call) */
|
|
8
|
+
sendMessage: (message: string) => void;
|
|
9
|
+
/**
|
|
10
|
+
* Send a pre-made Q&A pair (instant, simulated streaming, no API call)
|
|
11
|
+
* User can continue chatting normally after.
|
|
12
|
+
*/
|
|
13
|
+
sendPreMadeQA: (question: string, answer: string, options?: {
|
|
14
|
+
delay?: number;
|
|
15
|
+
streamingSpeed?: number;
|
|
16
|
+
}) => void;
|
|
17
|
+
/** Clear the current chat and start fresh */
|
|
18
|
+
clearChat: () => void;
|
|
19
|
+
}
|
|
3
20
|
export interface CuadraChatProps extends Omit<CuadraRuntimeProviderProps, 'children' | 'isProxyMode'> {
|
|
4
21
|
/** Proxy URL for backend-handled authentication (e.g., '/api/chat' or 'http://localhost:3000') */
|
|
5
22
|
proxyUrl?: string;
|
|
@@ -19,19 +36,40 @@ export interface CuadraChatProps extends Omit<CuadraRuntimeProviderProps, 'child
|
|
|
19
36
|
welcomeSubtitle?: string;
|
|
20
37
|
/** Extra top padding for thread viewport (e.g., '1rem', '2rem') */
|
|
21
38
|
extraTopPadding?: string;
|
|
22
|
-
/** Suggestions to show in welcome screen */
|
|
39
|
+
/** Suggestions to show in welcome screen (with optional pre-made responses) */
|
|
23
40
|
suggestions?: Array<{
|
|
24
41
|
/** Suggestion prompt text */
|
|
25
42
|
prompt: string;
|
|
43
|
+
/** Pre-made response (optional) - if provided, response appears instantly with simulated streaming */
|
|
44
|
+
response?: string;
|
|
45
|
+
/** Delay before showing response in ms (overrides preMadeResponseDelay) */
|
|
46
|
+
responseDelay?: number;
|
|
26
47
|
}>;
|
|
27
48
|
/** Placeholder text for the input field */
|
|
28
49
|
inputPlaceholder?: string;
|
|
50
|
+
/** Default delay before pre-made responses in ms (default: 1000) */
|
|
51
|
+
preMadeResponseDelay?: number;
|
|
52
|
+
/** Speed of simulated streaming in ms per word (default: 50) */
|
|
53
|
+
streamingSpeed?: number;
|
|
29
54
|
/** Called when a user message is sent */
|
|
30
55
|
onUserMessage?: () => void;
|
|
31
56
|
/** Called when logout button is clicked */
|
|
32
57
|
onLogout?: () => void;
|
|
33
58
|
/** Enable file attachments in the chat input */
|
|
34
59
|
enableAttachments?: boolean;
|
|
60
|
+
/**
|
|
61
|
+
* Initial message to send automatically when chat loads
|
|
62
|
+
* (triggers normal API call after a short delay)
|
|
63
|
+
*/
|
|
64
|
+
initialMessage?: string;
|
|
65
|
+
/**
|
|
66
|
+
* Initial pre-made Q&A to display when chat loads
|
|
67
|
+
* (instant display with simulated streaming, no API call)
|
|
68
|
+
*/
|
|
69
|
+
initialPreMadeQA?: {
|
|
70
|
+
question: string;
|
|
71
|
+
answer: string;
|
|
72
|
+
};
|
|
35
73
|
}
|
|
36
74
|
/**
|
|
37
75
|
* All-in-one Cuadra Chat component
|
|
@@ -41,6 +79,25 @@ export interface CuadraChatProps extends Omit<CuadraRuntimeProviderProps, 'child
|
|
|
41
79
|
*
|
|
42
80
|
* Styles are automatically bundled and injected. Users can optionally
|
|
43
81
|
* import '@cuadra-ai/uikit/styles' if they need explicit control.
|
|
82
|
+
*
|
|
83
|
+
* @example
|
|
84
|
+
* // Basic usage
|
|
85
|
+
* <CuadraChat baseUrl="https://api.cuadra.ai" modelId="model-123" />
|
|
86
|
+
*
|
|
87
|
+
* @example
|
|
88
|
+
* // With ref for external control
|
|
89
|
+
* const chatRef = useRef<CuadraChatHandle>(null);
|
|
90
|
+
* <CuadraChat ref={chatRef} ... />
|
|
91
|
+
* chatRef.current?.sendMessage("Hello!");
|
|
92
|
+
*
|
|
93
|
+
* @example
|
|
94
|
+
* // With pre-made suggestions
|
|
95
|
+
* <CuadraChat
|
|
96
|
+
* suggestions={[
|
|
97
|
+
* { prompt: "What is Cuadra?", response: "Cuadra AI is..." },
|
|
98
|
+
* { prompt: "How do I start?" } // No response = normal API call
|
|
99
|
+
* ]}
|
|
100
|
+
* />
|
|
44
101
|
*/
|
|
45
|
-
export declare
|
|
102
|
+
export declare const CuadraChat: import("react").ForwardRefExoticComponent<CuadraChatProps & import("react").RefAttributes<CuadraChatHandle>>;
|
|
46
103
|
//# sourceMappingURL=CuadraChat.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CuadraChat.d.ts","sourceRoot":"","sources":["../../src/components/CuadraChat.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,yBAAyB,CAAC;AAC1E,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"CuadraChat.d.ts","sourceRoot":"","sources":["../../src/components/CuadraChat.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,yBAAyB,CAAC;AAC1E,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAGlD;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAC/B,sEAAsE;IACtE,WAAW,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;IACvC;;;OAGG;IACH,aAAa,EAAE,CAAC,QAAQ,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE;QAAE,KAAK,CAAC,EAAE,MAAM,CAAC;QAAC,cAAc,CAAC,EAAE,MAAM,CAAA;KAAE,KAAK,IAAI,CAAC;IACjH,6CAA6C;IAC7C,SAAS,EAAE,MAAM,IAAI,CAAC;CACvB;AAGD,MAAM,WAAW,eAAgB,SAAQ,IAAI,CAAC,0BAA0B,EAAE,UAAU,GAAG,aAAa,CAAC;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;;;;;;;GA2BG;AACH,eAAO,MAAM,UAAU,8GA2EtB,CAAC"}
|
|
@@ -1,4 +1,27 @@
|
|
|
1
1
|
import '@assistant-ui/react-markdown/styles/dot.css';
|
|
2
|
+
/**
|
|
3
|
+
* Handle for controlling SimpleThread externally
|
|
4
|
+
*/
|
|
5
|
+
export interface SimpleThreadHandle {
|
|
6
|
+
/** Send a user message programmatically (triggers normal API call) */
|
|
7
|
+
sendMessage: (message: string) => void;
|
|
8
|
+
/** Send a pre-made Q&A pair (instant, simulated streaming, no API call) */
|
|
9
|
+
sendPreMadeQA: (question: string, answer: string, options?: {
|
|
10
|
+
delay?: number;
|
|
11
|
+
streamingSpeed?: number;
|
|
12
|
+
}) => void;
|
|
13
|
+
/** Clear the current chat and start fresh */
|
|
14
|
+
clearChat: () => void;
|
|
15
|
+
}
|
|
16
|
+
/** Suggestion with optional pre-made response */
|
|
17
|
+
export interface Suggestion {
|
|
18
|
+
/** Suggestion prompt text */
|
|
19
|
+
prompt: string;
|
|
20
|
+
/** Pre-made response (optional) - if provided, response appears instantly with simulated streaming */
|
|
21
|
+
response?: string;
|
|
22
|
+
/** Delay before showing response in ms (overrides global preMadeResponseDelay) */
|
|
23
|
+
responseDelay?: number;
|
|
24
|
+
}
|
|
2
25
|
export interface SimpleThreadProps {
|
|
3
26
|
/** Welcome screen title */
|
|
4
27
|
welcomeTitle?: string;
|
|
@@ -7,18 +30,19 @@ export interface SimpleThreadProps {
|
|
|
7
30
|
/** Extra top padding for thread viewport (e.g., '1rem', '2rem') */
|
|
8
31
|
extraTopPadding?: string;
|
|
9
32
|
/** Suggestions to show in welcome screen */
|
|
10
|
-
suggestions?:
|
|
11
|
-
/** Suggestion prompt text */
|
|
12
|
-
prompt: string;
|
|
13
|
-
}>;
|
|
33
|
+
suggestions?: Suggestion[];
|
|
14
34
|
/** Placeholder text for the input field */
|
|
15
35
|
inputPlaceholder?: string;
|
|
16
36
|
/** Enable file attachments in the chat input */
|
|
17
37
|
enableAttachments?: boolean;
|
|
38
|
+
/** Default delay before pre-made responses in ms (default: 1000) */
|
|
39
|
+
preMadeResponseDelay?: number;
|
|
40
|
+
/** Speed of simulated streaming in ms per word (default: 50) */
|
|
41
|
+
streamingSpeed?: number;
|
|
18
42
|
}
|
|
19
43
|
/**
|
|
20
44
|
* Simple Thread component wrapper
|
|
21
45
|
* Provides a basic chat interface using assistant-ui primitives
|
|
22
46
|
*/
|
|
23
|
-
export declare
|
|
47
|
+
export declare const SimpleThread: import("react").ForwardRefExoticComponent<SimpleThreadProps & import("react").RefAttributes<SimpleThreadHandle>>;
|
|
24
48
|
//# sourceMappingURL=SimpleThread.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SimpleThread.d.ts","sourceRoot":"","sources":["../../src/components/SimpleThread.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"SimpleThread.d.ts","sourceRoot":"","sources":["../../src/components/SimpleThread.tsx"],"names":[],"mappings":"AAMA,OAAO,6CAA6C,CAAC;AAErD;;GAEG;AACH,MAAM,WAAW,kBAAkB;IACjC,sEAAsE;IACtE,WAAW,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;IACvC,2EAA2E;IAC3E,aAAa,EAAE,CAAC,QAAQ,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE;QAAE,KAAK,CAAC,EAAE,MAAM,CAAC;QAAC,cAAc,CAAC,EAAE,MAAM,CAAA;KAAE,KAAK,IAAI,CAAC;IACjH,6CAA6C;IAC7C,SAAS,EAAE,MAAM,IAAI,CAAC;CACvB;AAED,iDAAiD;AACjD,MAAM,WAAW,UAAU;IACzB,6BAA6B;IAC7B,MAAM,EAAE,MAAM,CAAC;IACf,sGAAsG;IACtG,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,kFAAkF;IAClF,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAED,MAAM,WAAW,iBAAiB;IAChC,2BAA2B;IAC3B,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,8BAA8B;IAC9B,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,mEAAmE;IACnE,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,4CAA4C;IAC5C,WAAW,CAAC,EAAE,UAAU,EAAE,CAAC;IAC3B,2CAA2C;IAC3C,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,gDAAgD;IAChD,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,oEAAoE;IACpE,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,gEAAgE;IAChE,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AAED;;;GAGG;AACH,eAAO,MAAM,YAAY,kHA2UvB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SimpleThreadList.d.ts","sourceRoot":"","sources":["../../src/components/SimpleThreadList.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"SimpleThreadList.d.ts","sourceRoot":"","sources":["../../src/components/SimpleThreadList.tsx"],"names":[],"mappings":"AAkLA;;;GAGG;AACH,wBAAgB,gBAAgB,CAAC,EAC/B,cAAc,EACd,eAAe,EACf,KAAK,EACL,QAAQ,GACT,EAAE;IACD,cAAc,CAAC,EAAE,MAAM,IAAI,CAAC;IAC5B,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,KAAK,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,QAAQ,CAAC;IACpC,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;CACvB,2CAwDA"}
|
|
@@ -1,4 +1,18 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* Handle for controlling WidgetContent externally
|
|
4
|
+
*/
|
|
5
|
+
export interface WidgetContentHandle {
|
|
6
|
+
/** Send a user message programmatically (triggers normal API call) */
|
|
7
|
+
sendMessage: (message: string) => void;
|
|
8
|
+
/** Send a pre-made Q&A pair (instant, simulated streaming, no API call) */
|
|
9
|
+
sendPreMadeQA: (question: string, answer: string, options?: {
|
|
10
|
+
delay?: number;
|
|
11
|
+
streamingSpeed?: number;
|
|
12
|
+
}) => void;
|
|
13
|
+
/** Clear the current chat and start fresh */
|
|
14
|
+
clearChat: () => void;
|
|
15
|
+
}
|
|
2
16
|
export interface CuadraUIKitConfig {
|
|
3
17
|
/** Cuadra API base URL (e.g., 'https://api.cuadra.ai') */
|
|
4
18
|
baseUrl?: string;
|
|
@@ -28,13 +42,21 @@ export interface CuadraUIKitConfig {
|
|
|
28
42
|
welcomeSubtitle?: string;
|
|
29
43
|
/** Extra top padding for thread viewport (e.g., '1rem', '2rem') */
|
|
30
44
|
extraTopPadding?: string;
|
|
31
|
-
/** Suggestions to show in welcome screen */
|
|
45
|
+
/** Suggestions to show in welcome screen (with optional pre-made responses) */
|
|
32
46
|
suggestions?: Array<{
|
|
33
47
|
/** Suggestion prompt text */
|
|
34
48
|
prompt: string;
|
|
49
|
+
/** Pre-made response (optional) - if provided, response appears instantly with simulated streaming */
|
|
50
|
+
response?: string;
|
|
51
|
+
/** Delay before showing response in ms (overrides preMadeResponseDelay) */
|
|
52
|
+
responseDelay?: number;
|
|
35
53
|
}>;
|
|
36
54
|
/** Placeholder text for the input field */
|
|
37
55
|
inputPlaceholder?: string;
|
|
56
|
+
/** Default delay before pre-made responses in ms (default: 1000) */
|
|
57
|
+
preMadeResponseDelay?: number;
|
|
58
|
+
/** Speed of simulated streaming in ms per word (default: 50) */
|
|
59
|
+
streamingSpeed?: number;
|
|
38
60
|
/** Show theme toggle button */
|
|
39
61
|
showThemeToggle?: boolean;
|
|
40
62
|
/** Initial theme ('light' | 'dark' | 'system') */
|
|
@@ -55,12 +77,19 @@ export interface CuadraUIKitConfig {
|
|
|
55
77
|
onLogout?: () => void;
|
|
56
78
|
/** Enable file attachments in the chat input */
|
|
57
79
|
enableAttachments?: boolean;
|
|
80
|
+
/** Initial message to send automatically when chat loads */
|
|
81
|
+
initialMessage?: string;
|
|
82
|
+
/** Initial pre-made Q&A to display when chat loads */
|
|
83
|
+
initialPreMadeQA?: {
|
|
84
|
+
question: string;
|
|
85
|
+
answer: string;
|
|
86
|
+
};
|
|
58
87
|
}
|
|
59
88
|
/**
|
|
60
89
|
* Main widget content component - shared between library and widget builds
|
|
61
90
|
* This component does NOT use createRoot - it's a regular React component
|
|
62
91
|
*/
|
|
63
|
-
export declare const WidgetContent: React.
|
|
92
|
+
export declare const WidgetContent: React.ForwardRefExoticComponent<{
|
|
64
93
|
config: CuadraUIKitConfig;
|
|
65
|
-
}
|
|
94
|
+
} & React.RefAttributes<WidgetContentHandle>>;
|
|
66
95
|
//# sourceMappingURL=WidgetContent.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WidgetContent.d.ts","sourceRoot":"","sources":["../../src/components/WidgetContent.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"WidgetContent.d.ts","sourceRoot":"","sources":["../../src/components/WidgetContent.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA6F,MAAM,OAAO,CAAC;AAalH;;GAEG;AACH,MAAM,WAAW,mBAAmB;IAClC,sEAAsE;IACtE,WAAW,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;IACvC,2EAA2E;IAC3E,aAAa,EAAE,CAAC,QAAQ,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE;QAAE,KAAK,CAAC,EAAE,MAAM,CAAC;QAAC,cAAc,CAAC,EAAE,MAAM,CAAA;KAAE,KAAK,IAAI,CAAC;IACjH,6CAA6C;IAC7C,SAAS,EAAE,MAAM,IAAI,CAAC;CACvB;AAGD,MAAM,WAAW,iBAAiB;IAEhC,0DAA0D;IAC1D,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,uEAAuE;IACvE,QAAQ,CAAC,EAAE,MAAM,CAAC;IAGlB,yEAAyE;IACzE,YAAY,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