deep-chat-dev 9.0.283 → 9.0.285
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/custom-elements.json +15186 -13610
- package/dist/deepChat.bundle.js +1 -1
- package/dist/deepChat.js +309 -16439
- package/dist/services/claude/claudeIO.d.ts +53 -0
- package/dist/services/claude/claudeIO.d.ts.map +1 -0
- package/dist/services/claude/utils/claudeUtils.d.ts +14 -0
- package/dist/services/claude/utils/claudeUtils.d.ts.map +1 -0
- package/dist/services/deepSeek/deepSeekIO.d.ts +47 -0
- package/dist/services/deepSeek/deepSeekIO.d.ts.map +1 -0
- package/dist/services/deepSeek/utils/deepSeekUtils.d.ts +12 -0
- package/dist/services/deepSeek/utils/deepSeekUtils.d.ts.map +1 -0
- package/dist/services/gemini/{gemini.d.ts → geminiIO.d.ts} +1 -1
- package/dist/services/gemini/geminiIO.d.ts.map +1 -0
- package/dist/services/serviceIOFactory.d.ts.map +1 -1
- package/dist/types/claude.d.ts +11 -0
- package/dist/types/claude.d.ts.map +1 -0
- package/dist/types/deepSeek.d.ts +11 -0
- package/dist/types/deepSeek.d.ts.map +1 -0
- package/dist/types/directConnection.d.ts +4 -0
- package/dist/types/directConnection.d.ts.map +1 -1
- package/dist/types/gemini.d.ts +2 -7
- package/dist/types/gemini.d.ts.map +1 -1
- package/dist/views/chat/messages/remarkable/remarkableConfig.d.ts.map +1 -1
- package/package.json +1 -1
- package/dist/services/gemini/gemini.d.ts.map +0 -1
@@ -0,0 +1,53 @@
|
|
1
|
+
import { MessageContentI } from '../../types/messagesInternal';
|
2
|
+
import { Messages } from '../../views/chat/messages/messages';
|
3
|
+
import { Response as ResponseI } from '../../types/response';
|
4
|
+
import { DirectServiceIO } from '../utils/directServiceIO';
|
5
|
+
import { DeepChat } from '../../deepChat';
|
6
|
+
type ClaudeResponse = {
|
7
|
+
id: string;
|
8
|
+
type: 'message';
|
9
|
+
role: 'assistant';
|
10
|
+
content: Array<{
|
11
|
+
type: 'text';
|
12
|
+
text: string;
|
13
|
+
}>;
|
14
|
+
model: string;
|
15
|
+
usage?: {
|
16
|
+
input_tokens: number;
|
17
|
+
output_tokens: number;
|
18
|
+
};
|
19
|
+
error?: {
|
20
|
+
type: string;
|
21
|
+
message: string;
|
22
|
+
};
|
23
|
+
};
|
24
|
+
type ClaudeStreamEvent = {
|
25
|
+
type: 'content_block_delta' | 'message_start' | 'content_block_start' | 'content_block_stop' | 'message_delta' | 'message_stop';
|
26
|
+
delta?: {
|
27
|
+
type: 'text_delta';
|
28
|
+
text?: string;
|
29
|
+
};
|
30
|
+
content?: Array<{
|
31
|
+
type: 'text';
|
32
|
+
text: string;
|
33
|
+
}>;
|
34
|
+
error?: {
|
35
|
+
type: string;
|
36
|
+
message: string;
|
37
|
+
};
|
38
|
+
};
|
39
|
+
type ClaudeAPIResult = ClaudeResponse | ClaudeStreamEvent;
|
40
|
+
export declare class ClaudeIO extends DirectServiceIO {
|
41
|
+
insertKeyPlaceholderText: string;
|
42
|
+
keyHelpUrl: string;
|
43
|
+
url: string;
|
44
|
+
permittedErrorPrefixes: string[];
|
45
|
+
private readonly _systemMessage;
|
46
|
+
constructor(deepChat: DeepChat);
|
47
|
+
private cleanConfig;
|
48
|
+
private preprocessBody;
|
49
|
+
callServiceAPI(messages: Messages, pMessages: MessageContentI[]): Promise<void>;
|
50
|
+
extractResultData(result: ClaudeAPIResult): Promise<ResponseI>;
|
51
|
+
}
|
52
|
+
export {};
|
53
|
+
//# sourceMappingURL=claudeIO.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"claudeIO.d.ts","sourceRoot":"","sources":["../../../src/services/claude/claudeIO.ts"],"names":[],"mappings":"AAGA,OAAO,EAAC,eAAe,EAAC,MAAM,8BAA8B,CAAC;AAC7D,OAAO,EAAC,QAAQ,EAAC,MAAM,oCAAoC,CAAC;AAC5D,OAAO,EAAC,QAAQ,IAAI,SAAS,EAAC,MAAM,sBAAsB,CAAC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,QAAQ;IAe9B,OAAO,CAAC,WAAW;IAKnB,OAAO,CAAC,cAAc;IAmBP,cAAc,CAAC,QAAQ,EAAE,QAAQ,EAAE,SAAS,EAAE,eAAe,EAAE;IAY/D,iBAAiB,CAAC,MAAM,EAAE,eAAe,GAAG,OAAO,CAAC,SAAS,CAAC;CAqB9E"}
|
@@ -0,0 +1,14 @@
|
|
1
|
+
import { KeyVerificationDetails } from '../../../types/keyVerificationDetails';
|
2
|
+
import { ServiceIO } from '../../serviceIO';
|
3
|
+
export declare class ClaudeUtils {
|
4
|
+
static buildHeaders(key: string): {
|
5
|
+
'x-api-key': string;
|
6
|
+
'Content-Type': string;
|
7
|
+
'anthropic-version': string;
|
8
|
+
'anthropic-dangerous-direct-browser-access': string;
|
9
|
+
};
|
10
|
+
static handleVerificationResult(result: object, key: string, onSuccess: (key: string) => void, onFail: (message: string) => void): void;
|
11
|
+
static buildKeyVerificationDetails(): KeyVerificationDetails;
|
12
|
+
static directFetch(serviceIO: ServiceIO, body: any, method: 'POST' | 'GET', stringify?: boolean): Promise<any>;
|
13
|
+
}
|
14
|
+
//# sourceMappingURL=claudeUtils.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"claudeUtils.d.ts","sourceRoot":"","sources":["../../../../src/services/claude/utils/claudeUtils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,sBAAsB,EAAC,MAAM,uCAAuC,CAAC;AAG7E,OAAO,EAAC,SAAS,EAAC,MAAM,iBAAiB,CAAC;AAS1C,qBAAa,WAAW;WACR,YAAY,CAAC,GAAG,EAAE,MAAM;;;;;;WASxB,wBAAwB,CACpC,MAAM,EAAE,MAAM,EACd,GAAG,EAAE,MAAM,EACX,SAAS,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,EAChC,MAAM,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI;WAcrB,2BAA2B,IAAI,sBAAsB;WAS/C,WAAW,CAAC,SAAS,EAAE,SAAS,EAAE,IAAI,EAAE,GAAG,EAAE,MAAM,EAAE,MAAM,GAAG,KAAK,EAAE,SAAS,UAAO;CAQ1G"}
|
@@ -0,0 +1,47 @@
|
|
1
|
+
import { MessageContentI } from '../../types/messagesInternal';
|
2
|
+
import { Messages } from '../../views/chat/messages/messages';
|
3
|
+
import { Response as ResponseI } from '../../types/response';
|
4
|
+
import { DirectServiceIO } from '../utils/directServiceIO';
|
5
|
+
import { DeepChat } from '../../deepChat';
|
6
|
+
type DeepSeekResponse = {
|
7
|
+
id: string;
|
8
|
+
object: 'chat.completion' | 'chat.completion.chunk';
|
9
|
+
created: number;
|
10
|
+
model: string;
|
11
|
+
choices: Array<{
|
12
|
+
index: number;
|
13
|
+
message?: {
|
14
|
+
role: 'assistant';
|
15
|
+
content: string;
|
16
|
+
};
|
17
|
+
delta?: {
|
18
|
+
role?: 'assistant';
|
19
|
+
content?: string;
|
20
|
+
};
|
21
|
+
finish_reason?: string;
|
22
|
+
}>;
|
23
|
+
usage?: {
|
24
|
+
prompt_tokens: number;
|
25
|
+
completion_tokens: number;
|
26
|
+
total_tokens: number;
|
27
|
+
};
|
28
|
+
error?: {
|
29
|
+
message: string;
|
30
|
+
type: string;
|
31
|
+
code?: string;
|
32
|
+
};
|
33
|
+
};
|
34
|
+
export declare class DeepSeekIO extends DirectServiceIO {
|
35
|
+
insertKeyPlaceholderText: string;
|
36
|
+
keyHelpUrl: string;
|
37
|
+
url: string;
|
38
|
+
permittedErrorPrefixes: string[];
|
39
|
+
private readonly _systemMessage;
|
40
|
+
constructor(deepChat: DeepChat);
|
41
|
+
private cleanConfig;
|
42
|
+
private preprocessBody;
|
43
|
+
callServiceAPI(messages: Messages, pMessages: MessageContentI[]): Promise<void>;
|
44
|
+
extractResultData(result: DeepSeekResponse): Promise<ResponseI>;
|
45
|
+
}
|
46
|
+
export {};
|
47
|
+
//# sourceMappingURL=deepSeekIO.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"deepSe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,cAAc,CAA0C;gBAE7D,QAAQ,EAAE,QAAQ;IAgB9B,OAAO,CAAC,WAAW;IAKnB,OAAO,CAAC,cAAc;IAmBP,cAAc,CAAC,QAAQ,EAAE,QAAQ,EAAE,SAAS,EAAE,eAAe,EAAE;IAY/D,iBAAiB,CAAC,MAAM,EAAE,gBAAgB,GAAG,OAAO,CAAC,SAAS,CAAC;CAmB/E"}
|
@@ -0,0 +1,12 @@
|
|
1
|
+
import { KeyVerificationDetails } from '../../../types/keyVerificationDetails';
|
2
|
+
import { ServiceIO } from '../../serviceIO';
|
3
|
+
export declare class DeepSeekUtils {
|
4
|
+
static buildHeaders(key: string): {
|
5
|
+
Authorization: string;
|
6
|
+
'Content-Type': string;
|
7
|
+
};
|
8
|
+
static handleVerificationResult(result: object, key: string, onSuccess: (key: string) => void, onFail: (message: string) => void): void;
|
9
|
+
static buildKeyVerificationDetails(): KeyVerificationDetails;
|
10
|
+
static directFetch(serviceIO: ServiceIO, body: any, method: 'POST' | 'GET', stringify?: boolean): Promise<any>;
|
11
|
+
}
|
12
|
+
//# sourceMappingURL=deepSeekUtils.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"deepSeekUtils.d.ts","sourceRoot":"","sources":["../../../../src/services/deepSeek/utils/deepSeekUtils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,sBAAsB,EAAC,MAAM,uCAAuC,CAAC;AAG7E,OAAO,EAAC,SAAS,EAAC,MAAM,iBAAiB,CAAC;AAU1C,qBAAa,aAAa;WACV,YAAY,CAAC,GAAG,EAAE,MAAM;;;;WAOxB,wBAAwB,CACpC,MAAM,EAAE,MAAM,EACd,GAAG,EAAE,MAAM,EACX,SAAS,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,EAChC,MAAM,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI;WAcrB,2BAA2B,IAAI,sBAAsB;WAS/C,WAAW,CAAC,SAAS,EAAE,SAAS,EAAE,IAAI,EAAE,GAAG,EAAE,MAAM,EAAE,MAAM,GAAG,KAAK,EAAE,SAAS,UAAO;CAQ1G"}
|
@@ -18,4 +18,4 @@ export declare class GeminiIO extends DirectServiceIO {
|
|
18
18
|
callServiceAPI(messages: Messages, pMessages: MessageContentI[]): Promise<void>;
|
19
19
|
extractResultData(result: GeminiGenerateContentResult): Promise<Response>;
|
20
20
|
}
|
21
|
-
//# sourceMappingURL=
|
21
|
+
//# sourceMappingURL=geminiIO.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"geminiIO.d.ts","sourceRoot":"","sources":["../../../src/services/gemini/geminiIO.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,2BAA2B,EAAC,MAAM,0BAA0B,CAAC;AAGrE,OAAO,EAAC,eAAe,EAAC,MAAM,8BAA8B,CAAC;AAC7D,OAAO,EAAC,QAAQ,EAAC,MAAM,oCAAoC,CAAC;AAE5D,OAAO,EAAC,eAAe,EAAC,MAAM,0BAA0B,CAAC;AAGzD,OAAO,EAAC,QAAQ,EAAC,MAAM,sBAAsB,CAAC;AAG9C,OAAO,EAAC,QAAQ,EAAC,MAAM,gBAAgB,CAAC;AA8BxC,qBAAa,QAAS,SAAQ,eAAe;IAClC,wBAAwB,SAAoB;IAC5C,UAAU,SAA4C;IAC/D,SAAS,SAA8F;IACvG,GAAG,SAAM;IACT,sBAAsB,WAAuB;IAC7C,OAAO,CAAC,QAAQ,CAAC,kBAAkB,CAAC,CAAS;gBAEjC,QAAQ,EAAE,QAAQ;IAqB9B,OAAO,CAAC,WAAW;IAMnB,OAAO,CAAC,MAAM,CAAC,UAAU;IA4BzB,OAAO,CAAC,cAAc;IAiBP,cAAc,CAAC,QAAQ,EAAE,QAAQ,EAAE,SAAS,EAAE,eAAe,EAAE;IAgB/D,iBAAiB,CAAC,MAAM,EAAE,2BAA2B,GAAG,OAAO,CAAC,QAAQ,CAAC;CAOzF"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"serviceIOFactory.d.ts","sourceRoot":"","sources":["../../src/services/serviceIOFactory.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"serviceIOFactory.d.ts","sourceRoot":"","sources":["../../src/services/serviceIOFactory.ts"],"names":[],"mappings":"AAmCA,OAAO,EAAC,SAAS,EAAC,MAAM,aAAa,CAAC;AACtC,OAAO,EAAC,QAAQ,EAAC,MAAM,aAAa,CAAC;AAGrC,qBAAa,gBAAgB;WAEb,MAAM,CAAC,QAAQ,EAAE,QAAQ,GAAG,SAAS;CAoHpD"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"claude.d.ts","sourceRoot":"","sources":["../../src/types/claude.ts"],"names":[],"mappings":"AACA,MAAM,WAAW,MAAM;IACrB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,cAAc,CAAC,EAAE,MAAM,EAAE,CAAC;IAC1B,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB"}
|
@@ -0,0 +1,11 @@
|
|
1
|
+
export interface DeepSeek {
|
2
|
+
model?: string;
|
3
|
+
temperature?: number;
|
4
|
+
max_tokens?: number;
|
5
|
+
top_p?: number;
|
6
|
+
frequency_penalty?: number;
|
7
|
+
presence_penalty?: number;
|
8
|
+
stop?: string | string[];
|
9
|
+
system_prompt?: string;
|
10
|
+
}
|
11
|
+
//# sourceMappingURL=deepSeek.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"deepSeek.d.ts","sourceRoot":"","sources":["../../src/types/deepSeek.ts"],"names":[],"mappings":"AACA,MAAM,WAAW,QAAQ;IACvB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;IACzB,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB"}
|
@@ -6,7 +6,9 @@ import { APIKey } from './APIKey';
|
|
6
6
|
import { Cohere } from './cohere';
|
7
7
|
import { Gemini } from './gemini';
|
8
8
|
import { OpenAI } from './openAI';
|
9
|
+
import { Claude } from './claude';
|
9
10
|
import { Azure } from './azure';
|
11
|
+
import { DeepSeek } from './deepSeek';
|
10
12
|
export interface DirectConnection {
|
11
13
|
openAI?: OpenAI & APIKey;
|
12
14
|
huggingFace?: HuggingFace & APIKey;
|
@@ -16,5 +18,7 @@ export interface DirectConnection {
|
|
16
18
|
gemini?: Gemini & APIKey;
|
17
19
|
azure?: Azure & APIKey;
|
18
20
|
assemblyAI?: AssemblyAI & APIKey;
|
21
|
+
claude?: Claude & APIKey;
|
22
|
+
deepSeek?: DeepSeek & APIKey;
|
19
23
|
}
|
20
24
|
//# sourceMappingURL=directConnection.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"directConnection.d.ts","sourceRoot":"","sources":["../../src/types/directConnection.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,WAAW,EAAC,MAAM,eAAe,CAAC;AAC1C,OAAO,EAAC,WAAW,EAAC,MAAM,eAAe,CAAC;AAC1C,OAAO,EAAC,UAAU,EAAC,MAAM,cAAc,CAAC;AACxC,OAAO,EAAC,OAAO,EAAC,MAAM,WAAW,CAAC;AAClC,OAAO,EAAC,MAAM,EAAC,MAAM,UAAU,CAAC;AAChC,OAAO,EAAC,MAAM,EAAC,MAAM,UAAU,CAAC;AAChC,OAAO,EAAC,MAAM,EAAC,MAAM,UAAU,CAAC;AAChC,OAAO,EAAC,MAA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ts
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
import { GenericObject } from './object';
|
2
|
-
export interface
|
2
|
+
export interface GeminiGeneration {
|
3
3
|
maxOutputTokens?: number;
|
4
4
|
temperature?: number;
|
5
5
|
topP?: number;
|
@@ -8,13 +8,8 @@ export interface GeminiGenerationConfig {
|
|
8
8
|
responseMimeType?: string;
|
9
9
|
responseSchema?: GenericObject;
|
10
10
|
}
|
11
|
-
export interface
|
11
|
+
export interface Gemini extends GeminiGeneration {
|
12
12
|
model?: string;
|
13
|
-
stream?: boolean;
|
14
13
|
systemInstruction?: string;
|
15
14
|
}
|
16
|
-
export type GeminiChat = GeminiChatConfig;
|
17
|
-
export interface Gemini {
|
18
|
-
chat?: true | GeminiChatConfig;
|
19
|
-
}
|
20
15
|
//# sourceMappingURL=gemini.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"gemini.d.ts","sourceRoot":"","sources":["../../src/types/gemini.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,aAAa,EAAC,MAAM,UAAU,CAAC;AAEvC,MAAM,WAAW,
|
1
|
+
{"version":3,"file":"gemini.d.ts","sourceRoot":"","sources":["../../src/types/gemini.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,aAAa,EAAC,MAAM,UAAU,CAAC;AAEvC,MAAM,WAAW,gBAAgB;IAC/B,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,aAAa,CAAC,EAAE,MAAM,EAAE,CAAC;IACzB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,cAAc,CAAC,EAAE,aAAa,CAAC;CAChC;AAGD,MAAM,WAAW,MAAO,SAAQ,gBAAgB;IAC9C,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC5B"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"remarkableConfig.d.ts","sourceRoot":"","sources":["../../../../../src/views/chat/messages/remarkable/remarkableConfig.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,iBAAiB,EAAC,MAAM,8BAA8B,CAAC;AAC/D,OAAO,EAAC,UAAU,EAAC,MAAM,YAAY,CAAC;
|
1
|
+
{"version":3,"file":"remarkableConfig.d.ts","sourceRoot":"","sources":["../../../../../src/views/chat/messages/remarkable/remarkableConfig.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,iBAAiB,EAAC,MAAM,8BAA8B,CAAC;AAC/D,OAAO,EAAC,UAAU,EAAC,MAAM,YAAY,CAAC;AAEtC,OAAO,IAAI,MAAM,cAAc,CAAC;AAEhC,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,MAAM;QACd,IAAI,EAAE,OAAO,IAAI,CAAC;KACnB;CACF;AAED,qBAAa,gBAAgB;IAC3B,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,kBAAkB,CAGxC;IAEF,OAAO,CAAC,MAAM,CAAC,WAAW;WAsCZ,SAAS,CAAC,YAAY,CAAC,EAAE,iBAAiB;CAKzD"}
|
package/package.json
CHANGED
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"gemini.d.ts","sourceRoot":"","sources":["../../../src/services/gemini/gemini.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,2BAA2B,EAAC,MAAM,0BAA0B,CAAC;AAIrE,OAAO,EAAC,eAAe,EAAC,MAAM,8BAA8B,CAAC;AAC7D,OAAO,EAAC,QAAQ,EAAC,MAAM,oCAAoC,CAAC;AAE5D,OAAO,EAAC,eAAe,EAAC,MAAM,0BAA0B,CAAC;AAGzD,OAAO,EAAC,QAAQ,EAAC,MAAM,sBAAsB,CAAC;AAE9C,OAAO,EAAC,QAAQ,EAAC,MAAM,gBAAgB,CAAC;AA8BxC,qBAAa,QAAS,SAAQ,eAAe;IAClC,wBAAwB,SAAoB;IAC5C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