hackmate-cli 1.0.22 → 1.0.24
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/features/profile/components/index.d.ts.map +1 -1
- package/dist/features/profile/components/index.js +19 -9
- package/dist/features/profile/components/index.js.map +1 -1
- package/dist/features/profile/components/profile-view.screen.d.ts +2 -2
- package/dist/features/profile/components/profile-view.screen.d.ts.map +1 -1
- package/dist/features/profile/components/profile-view.screen.js +13 -4
- package/dist/features/profile/components/profile-view.screen.js.map +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/features/profile/components/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAMxC,eAAO,MAAM,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC;IAAE,QAAQ,CAAC,EAAE,MAAM,CAAA;CAAE,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/features/profile/components/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAMxC,eAAO,MAAM,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC;IAAE,QAAQ,CAAC,EAAE,MAAM,CAAA;CAAE,CAsCvD,CAAC;AAEF,eAAO,MAAM,WAAW,+CAEvB,CAAC"}
|
|
@@ -7,25 +7,35 @@ import { ProfileEditV3 } from './profile-edit-v3.screen.js';
|
|
|
7
7
|
export const ProfileView = ({ username }) => {
|
|
8
8
|
const { exit } = useApp();
|
|
9
9
|
const logic = useProfileViewLogic(username);
|
|
10
|
-
const [
|
|
11
|
-
const [
|
|
10
|
+
const [stackPage, setStackPage] = useState(0);
|
|
11
|
+
const [interestsPage, setInterestsPage] = useState(0);
|
|
12
12
|
useInput((input, key) => {
|
|
13
13
|
if (key.escape) {
|
|
14
14
|
exit();
|
|
15
15
|
return;
|
|
16
16
|
}
|
|
17
|
-
//
|
|
18
|
-
if (
|
|
19
|
-
|
|
17
|
+
// Stack pagination: S = previous, M = next
|
|
18
|
+
if ((input === 's' || input === 'S') && logic.profile?.stack?.length > 10) {
|
|
19
|
+
setStackPage(prev => Math.max(0, prev - 1));
|
|
20
20
|
return;
|
|
21
21
|
}
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
22
|
+
if ((input === 'm' || input === 'M') && logic.profile?.stack?.length > 10) {
|
|
23
|
+
const maxPage = Math.ceil(logic.profile.stack.length / 10) - 1;
|
|
24
|
+
setStackPage(prev => Math.min(maxPage, prev + 1));
|
|
25
|
+
return;
|
|
26
|
+
}
|
|
27
|
+
// Interests pagination: I = previous, N = next
|
|
28
|
+
if ((input === 'i' || input === 'I') && logic.profile?.interests?.length > 10) {
|
|
29
|
+
setInterestsPage(prev => Math.max(0, prev - 1));
|
|
30
|
+
return;
|
|
31
|
+
}
|
|
32
|
+
if ((input === 'n' || input === 'N') && logic.profile?.interests?.length > 10) {
|
|
33
|
+
const maxPage = Math.ceil(logic.profile.interests.length / 10) - 1;
|
|
34
|
+
setInterestsPage(prev => Math.min(maxPage, prev + 1));
|
|
25
35
|
return;
|
|
26
36
|
}
|
|
27
37
|
});
|
|
28
|
-
return _jsx(ProfileViewScreen, { ...logic,
|
|
38
|
+
return _jsx(ProfileViewScreen, { ...logic, stackPage: stackPage, interestsPage: interestsPage });
|
|
29
39
|
};
|
|
30
40
|
export const ProfileEdit = () => {
|
|
31
41
|
return _jsx(ProfileEditV3, {});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/features/profile/components/index.tsx"],"names":[],"mappings":";AAAA,OAAc,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,KAAK,CAAC;AACvC,OAAO,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAC7D,OAAO,EAAE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OAAO,EAAE,IAAI,GAAG,CAAC,CAAC,CAAC,CAAC;YACtD,OAAO;QACX,CAAC;IACL,CAAC,CAAC,CAAC;IAEH,OAAO,KAAC,iBAAiB,OAAK,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,aAAa,EAAE,aAAa,GAAI,CAAC;AAChG,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,WAAW,GAAG,GAAG,EAAE;IAC5B,OAAO,KAAC,aAAa,KAAG,CAAC;AAC7B,CAAC,CAAC"}
|
|
@@ -4,8 +4,8 @@ interface ProfileViewScreenProps {
|
|
|
4
4
|
loading: boolean;
|
|
5
5
|
error: string | null;
|
|
6
6
|
user: any;
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
stackPage: number;
|
|
8
|
+
interestsPage: number;
|
|
9
9
|
}
|
|
10
10
|
export declare const ProfileViewScreen: React.FC<ProfileViewScreenProps>;
|
|
11
11
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"profile-view.screen.d.ts","sourceRoot":"","sources":["../../../../src/features/profile/components/profile-view.screen.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,UAAU,sBAAsB;IAC5B,OAAO,EAAE,GAAG,CAAC;IACb,OAAO,EAAE,OAAO,CAAC;IACjB,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,IAAI,EAAE,GAAG,CAAC;IACV,
|
|
1
|
+
{"version":3,"file":"profile-view.screen.d.ts","sourceRoot":"","sources":["../../../../src/features/profile/components/profile-view.screen.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,UAAU,sBAAsB;IAC5B,OAAO,EAAE,GAAG,CAAC;IACb,OAAO,EAAE,OAAO,CAAC;IACjB,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,IAAI,EAAE,GAAG,CAAC;IACV,SAAS,EAAE,MAAM,CAAC;IAClB,aAAa,EAAE,MAAM,CAAC;CACzB;AAED,eAAO,MAAM,iBAAiB,EAAE,KAAK,CAAC,EAAE,CAAC,sBAAsB,CAuK9D,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { Text, Box } from 'ink';
|
|
3
|
-
export const ProfileViewScreen = ({ profile, loading, error, user,
|
|
4
|
-
const
|
|
3
|
+
export const ProfileViewScreen = ({ profile, loading, error, user, stackPage, interestsPage }) => {
|
|
4
|
+
const ITEMS_PER_PAGE = 10;
|
|
5
5
|
if (loading)
|
|
6
6
|
return _jsx(Text, { children: "Loading profile..." });
|
|
7
7
|
if (error)
|
|
@@ -9,7 +9,16 @@ export const ProfileViewScreen = ({ profile, loading, error, user, showFullStack
|
|
|
9
9
|
if (!profile)
|
|
10
10
|
return _jsxs(Text, { children: ["No profile found for @", user?.username, ". Run \"hackmate profile edit\" to create one."] });
|
|
11
11
|
const locationDisplay = [profile.city, profile.country].filter(Boolean).join(', ') || profile.location || 'N/A';
|
|
12
|
-
return (_jsxs(Box, { flexDirection: "column", padding: 1, borderStyle: "round", borderColor: "cyan", children: [_jsx(Text, { color: "gray", children: '{' }), _jsx(Box, { paddingLeft: 2, flexDirection: "column", children: _jsxs(Text, { children: [_jsx(Text, { color: "blue", children: "\"user\"" }), _jsx(Text, { color: "gray", children: ":" }), " ", _jsxs(Text, { color: "green", children: ["\"", profile?.user?.username || user?.username, "\""] }), _jsx(Text, { color: "gray", children: "," })] }) }), _jsxs(Box, { paddingLeft: 2, flexDirection: "column", children: [_jsxs(Text, { children: [_jsx(Text, { color: "blue", children: "\"profile\"" }), _jsxs(Text, { color: "gray", children: [": ", '{'] })] }), _jsxs(Box, { paddingLeft: 4, flexDirection: "column", marginTop: 1, children: [_jsxs(Text, { children: [_jsx(Text, { color: "magenta", children: "\"intent\"" }), _jsx(Text, { color: "gray", children: ":" }), " ", _jsxs(Text, { color: "green", children: ["\"", profile.intent, "\""] }), _jsx(Text, { color: "gray", children: "," })] }), _jsxs(Text, { children: [_jsx(Text, { color: "magenta", children: "\"bio\"" }), _jsx(Text, { color: "gray", children: ":" }), " ", _jsxs(Text, { color: "yellow", children: ["\"", profile.bio || 'N/A', "\""] }), _jsx(Text, { color: "gray", children: "," })] })] }), _jsxs(Box, { paddingLeft: 4, flexDirection: "column", marginTop: 1, children: [_jsxs(Text, { children: [_jsx(Text, { color: "magenta", children: "\"personal\"" }), _jsxs(Text, { color: "gray", children: [": ", '{'] })] }), _jsxs(Box, { paddingLeft: 6, flexDirection: "column", children: [_jsxs(Text, { children: [_jsx(Text, { color: "cyan", children: "\"age\"" }), _jsx(Text, { color: "gray", children: ":" }), " ", _jsx(Text, { color: "yellow", children: profile.age || 'null' }), _jsx(Text, { color: "gray", children: "," })] }), _jsxs(Text, { children: [_jsx(Text, { color: "cyan", children: "\"gender\"" }), _jsx(Text, { color: "gray", children: ":" }), " ", _jsxs(Text, { color: "green", children: ["\"", profile.gender || 'N/A', "\""] }), _jsx(Text, { color: "gray", children: "," })] }), _jsxs(Text, { children: [_jsx(Text, { color: "cyan", children: "\"company\"" }), _jsx(Text, { color: "gray", children: ":" }), " ", _jsxs(Text, { color: "green", children: ["\"", profile.company || 'N/A', "\""] })] })] }), _jsx(Box, { paddingLeft: 4, children: _jsx(Text, { color: "gray", children: '},' }) })] }), _jsxs(Box, { paddingLeft: 4, flexDirection: "column", marginTop: 1, children: [_jsxs(Text, { children: [_jsx(Text, { color: "magenta", children: "\"stack\"" }), _jsx(Text, { color: "gray", children: ": [" })] }), profile.stack && Array.isArray(profile.stack) && profile.stack.length > 0 ? (_jsxs(Box, { paddingLeft: 6, flexDirection: "column", children: [
|
|
13
|
-
|
|
12
|
+
return (_jsxs(Box, { flexDirection: "column", padding: 1, borderStyle: "round", borderColor: "cyan", children: [_jsx(Text, { color: "gray", children: '{' }), _jsx(Box, { paddingLeft: 2, flexDirection: "column", children: _jsxs(Text, { children: [_jsx(Text, { color: "blue", children: "\"user\"" }), _jsx(Text, { color: "gray", children: ":" }), " ", _jsxs(Text, { color: "green", children: ["\"", profile?.user?.username || user?.username, "\""] }), _jsx(Text, { color: "gray", children: "," })] }) }), _jsxs(Box, { paddingLeft: 2, flexDirection: "column", children: [_jsxs(Text, { children: [_jsx(Text, { color: "blue", children: "\"profile\"" }), _jsxs(Text, { color: "gray", children: [": ", '{'] })] }), _jsxs(Box, { paddingLeft: 4, flexDirection: "column", marginTop: 1, children: [_jsxs(Text, { children: [_jsx(Text, { color: "magenta", children: "\"intent\"" }), _jsx(Text, { color: "gray", children: ":" }), " ", _jsxs(Text, { color: "green", children: ["\"", profile.intent, "\""] }), _jsx(Text, { color: "gray", children: "," })] }), _jsxs(Text, { children: [_jsx(Text, { color: "magenta", children: "\"bio\"" }), _jsx(Text, { color: "gray", children: ":" }), " ", _jsxs(Text, { color: "yellow", children: ["\"", profile.bio || 'N/A', "\""] }), _jsx(Text, { color: "gray", children: "," })] })] }), _jsxs(Box, { paddingLeft: 4, flexDirection: "column", marginTop: 1, children: [_jsxs(Text, { children: [_jsx(Text, { color: "magenta", children: "\"personal\"" }), _jsxs(Text, { color: "gray", children: [": ", '{'] })] }), _jsxs(Box, { paddingLeft: 6, flexDirection: "column", children: [_jsxs(Text, { children: [_jsx(Text, { color: "cyan", children: "\"age\"" }), _jsx(Text, { color: "gray", children: ":" }), " ", _jsx(Text, { color: "yellow", children: profile.age || 'null' }), _jsx(Text, { color: "gray", children: "," })] }), _jsxs(Text, { children: [_jsx(Text, { color: "cyan", children: "\"gender\"" }), _jsx(Text, { color: "gray", children: ":" }), " ", _jsxs(Text, { color: "green", children: ["\"", profile.gender || 'N/A', "\""] }), _jsx(Text, { color: "gray", children: "," })] }), _jsxs(Text, { children: [_jsx(Text, { color: "cyan", children: "\"company\"" }), _jsx(Text, { color: "gray", children: ":" }), " ", _jsxs(Text, { color: "green", children: ["\"", profile.company || 'N/A', "\""] })] })] }), _jsx(Box, { paddingLeft: 4, children: _jsx(Text, { color: "gray", children: '},' }) })] }), _jsxs(Box, { paddingLeft: 4, flexDirection: "column", marginTop: 1, children: [_jsxs(Text, { children: [_jsx(Text, { color: "magenta", children: "\"stack\"" }), _jsx(Text, { color: "gray", children: ": [" })] }), profile.stack && Array.isArray(profile.stack) && profile.stack.length > 0 ? (_jsxs(Box, { paddingLeft: 6, flexDirection: "column", children: [(() => {
|
|
13
|
+
const start = stackPage * ITEMS_PER_PAGE;
|
|
14
|
+
const end = start + ITEMS_PER_PAGE;
|
|
15
|
+
const pageItems = profile.stack.slice(start, end);
|
|
16
|
+
return pageItems.map((tech, idx) => (_jsxs(Text, { children: [_jsxs(Text, { color: "green", children: ["\"", tech, "\""] }), _jsx(Text, { color: "gray", children: "," })] }, `${tech}-${idx}`)));
|
|
17
|
+
})(), profile.stack.length > ITEMS_PER_PAGE && (_jsxs(Text, { color: "yellow", italic: true, children: ["// Showing ", stackPage * ITEMS_PER_PAGE + 1, "-", Math.min((stackPage + 1) * ITEMS_PER_PAGE, profile.stack.length), " of ", profile.stack.length] }))] })) : (_jsx(Box, { paddingLeft: 6, children: _jsx(Text, { color: "gray", children: "// empty" }) })), _jsx(Box, { paddingLeft: 4, children: _jsxs(Text, { color: "gray", children: ["]", profile.interests && profile.interests.length > 0 ? ',' : ''] }) })] }), profile.interests && Array.isArray(profile.interests) && profile.interests.length > 0 && (_jsxs(Box, { paddingLeft: 4, flexDirection: "column", marginTop: 1, children: [_jsxs(Text, { children: [_jsx(Text, { color: "magenta", children: "\"interests\"" }), _jsx(Text, { color: "gray", children: ": [" })] }), _jsxs(Box, { paddingLeft: 6, flexDirection: "column", children: [(() => {
|
|
18
|
+
const start = interestsPage * ITEMS_PER_PAGE;
|
|
19
|
+
const end = start + ITEMS_PER_PAGE;
|
|
20
|
+
const pageItems = profile.interests.slice(start, end);
|
|
21
|
+
return pageItems.map((interest, idx) => (_jsxs(Text, { children: [_jsxs(Text, { color: "green", children: ["\"", interest, "\""] }), _jsx(Text, { color: "gray", children: "," })] }, `${interest}-${idx}`)));
|
|
22
|
+
})(), profile.interests.length > ITEMS_PER_PAGE && (_jsxs(Text, { color: "yellow", italic: true, children: ["// Showing ", interestsPage * ITEMS_PER_PAGE + 1, "-", Math.min((interestsPage + 1) * ITEMS_PER_PAGE, profile.interests.length), " of ", profile.interests.length] }))] }), _jsx(Box, { paddingLeft: 4, children: _jsx(Text, { color: "gray", children: "]," }) })] })), _jsx(Box, { paddingLeft: 4, flexDirection: "column", marginTop: 1, children: _jsxs(Text, { children: [_jsx(Text, { color: "magenta", children: "\"location\"" }), _jsx(Text, { color: "gray", children: ":" }), " ", _jsxs(Text, { color: "green", children: ["\"", locationDisplay, "\""] }), _jsx(Text, { color: "gray", children: "," })] }) }), _jsxs(Box, { paddingLeft: 4, flexDirection: "column", marginTop: 1, children: [_jsxs(Text, { children: [_jsx(Text, { color: "magenta", children: "\"socials\"" }), _jsxs(Text, { color: "gray", children: [": ", '{'] })] }), _jsxs(Box, { paddingLeft: 6, flexDirection: "column", children: [profile.github && _jsxs(Text, { children: [_jsx(Text, { color: "cyan", children: "\"github\"" }), _jsx(Text, { color: "gray", children: ":" }), " ", _jsxs(Text, { color: "green", children: ["\"", profile.github, "\""] }), _jsx(Text, { color: "gray", children: "," })] }), profile.linkedin && _jsxs(Text, { children: [_jsx(Text, { color: "cyan", children: "\"linkedin\"" }), _jsx(Text, { color: "gray", children: ":" }), " ", _jsxs(Text, { color: "green", children: ["\"", profile.linkedin, "\""] }), _jsx(Text, { color: "gray", children: "," })] }), profile.twitter && _jsxs(Text, { children: [_jsx(Text, { color: "cyan", children: "\"twitter\"" }), _jsx(Text, { color: "gray", children: ":" }), " ", _jsxs(Text, { color: "green", children: ["\"", profile.twitter, "\""] }), _jsx(Text, { color: "gray", children: "," })] }), profile.website && _jsxs(Text, { children: [_jsx(Text, { color: "cyan", children: "\"website\"" }), _jsx(Text, { color: "gray", children: ":" }), " ", _jsxs(Text, { color: "green", children: ["\"", profile.website, "\""] })] }), !profile.github && !profile.linkedin && !profile.twitter && !profile.website && (_jsx(Text, { color: "gray", children: "// empty" }))] }), _jsx(Box, { paddingLeft: 4, children: _jsx(Text, { color: "gray", children: '}' }) })] })] }), _jsx(Box, { paddingLeft: 2, children: _jsx(Text, { color: "gray", children: '}' }) }), _jsx(Text, { color: "gray", children: '}' }), (profile.stack?.length > ITEMS_PER_PAGE || profile.interests?.length > ITEMS_PER_PAGE) && (_jsxs(Box, { marginTop: 1, flexDirection: "column", borderStyle: "single", borderColor: "yellow", padding: 1, children: [profile.stack?.length > ITEMS_PER_PAGE && (_jsxs(Box, { flexDirection: "column", children: [_jsx(Text, { color: "yellow", bold: true, children: "Tech Stack Pagination:" }), _jsxs(Box, { children: [stackPage > 0 && (_jsx(Text, { color: "cyan", children: " \u2190 [S] Previous 10" })), stackPage < Math.ceil(profile.stack.length / ITEMS_PER_PAGE) - 1 && (_jsx(Text, { color: "cyan", children: " \u2192 [M] Next 10" }))] })] })), profile.interests?.length > ITEMS_PER_PAGE && (_jsxs(Box, { flexDirection: "column", marginTop: profile.stack?.length > ITEMS_PER_PAGE ? 1 : 0, children: [_jsx(Text, { color: "yellow", bold: true, children: "Interests Pagination:" }), _jsxs(Box, { children: [interestsPage > 0 && (_jsx(Text, { color: "cyan", children: " \u2190 [I] Previous 10" })), interestsPage < Math.ceil(profile.interests.length / ITEMS_PER_PAGE) - 1 && (_jsx(Text, { color: "cyan", children: " \u2192 [N] Next 10" }))] })] }))] })), _jsx(Box, { marginTop: 1, children: _jsx(Text, { color: "gray", dimColor: true, children: "// ESC to exit" }) })] }));
|
|
14
23
|
};
|
|
15
24
|
//# sourceMappingURL=profile-view.screen.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"profile-view.screen.js","sourceRoot":"","sources":["../../../../src/features/profile/components/profile-view.screen.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,IAAI,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAWhC,MAAM,CAAC,MAAM,iBAAiB,GAAqC,CAAC,EAChE,OAAO,EACP,OAAO,EACP,KAAK,EACL,IAAI,EACJ,
|
|
1
|
+
{"version":3,"file":"profile-view.screen.js","sourceRoot":"","sources":["../../../../src/features/profile/components/profile-view.screen.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,IAAI,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAWhC,MAAM,CAAC,MAAM,iBAAiB,GAAqC,CAAC,EAChE,OAAO,EACP,OAAO,EACP,KAAK,EACL,IAAI,EACJ,SAAS,EACT,aAAa,EAChB,EAAE,EAAE;IACD,MAAM,cAAc,GAAG,EAAE,CAAC;IAE1B,IAAI,OAAO;QAAE,OAAO,KAAC,IAAI,qCAA0B,CAAC;IACpD,IAAI,KAAK;QAAE,OAAO,MAAC,IAAI,IAAC,KAAK,EAAC,KAAK,wBAAS,KAAK,IAAQ,CAAC;IAC1D,IAAI,CAAC,OAAO;QAAE,OAAO,MAAC,IAAI,yCAAwB,IAAI,EAAE,QAAQ,sDAAoD,CAAC;IAErH,MAAM,eAAe,GAAG,CAAC,OAAO,CAAC,IAAI,EAAE,OAAO,CAAC,OAAO,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,OAAO,CAAC,QAAQ,IAAI,KAAK,CAAC;IAEhH,OAAO,CACH,MAAC,GAAG,IAAC,aAAa,EAAC,QAAQ,EAAC,OAAO,EAAE,CAAC,EAAE,WAAW,EAAC,OAAO,EAAC,WAAW,EAAC,MAAM,aAE1E,KAAC,IAAI,IAAC,KAAK,EAAC,MAAM,YAAE,GAAG,GAAQ,EAG/B,KAAC,GAAG,IAAC,WAAW,EAAE,CAAC,EAAE,aAAa,EAAC,QAAQ,YACvC,MAAC,IAAI,eAAC,KAAC,IAAI,IAAC,KAAK,EAAC,MAAM,yBAAc,EAAA,KAAC,IAAI,IAAC,KAAK,EAAC,MAAM,kBAAS,OAAC,MAAC,IAAI,IAAC,KAAK,E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