@evlop/commons 1.0.124 → 1.0.127
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/src/constants/iconInfo/index.d.ts +1 -0
- package/dist/src/constants/iconInfo/index.d.ts.map +1 -1
- package/dist/src/constants/iconInfo/index.js.map +1 -1
- package/dist/src/constants/iconInfo/reactNativeVectorIcons.d.ts +31 -0
- package/dist/src/constants/iconInfo/reactNativeVectorIcons.d.ts.map +1 -1
- package/dist/src/constants/iconInfo/reactNativeVectorIcons.js.map +1 -1
- package/dist/src/constants/index.d.ts +1 -1
- package/dist/src/constants/index.d.ts.map +1 -1
- package/dist/src/constants/index.js.map +1 -1
- package/dist/src/helpers/themeHelpers.d.ts +20 -4
- package/dist/src/helpers/themeHelpers.d.ts.map +1 -1
- package/dist/src/helpers/themeHelpers.js +15 -4
- package/dist/src/helpers/themeHelpers.js.map +1 -1
- package/package.json +1 -1
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/constants/iconInfo/index.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/constants/iconInfo/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;;AAC1D,wBAAiB"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/constants/iconInfo/index.ts"],"names":[],"mappings":";;
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/constants/iconInfo/index.ts"],"names":[],"mappings":";;AACA,kBAAe,EAAE,CAAA"}
|
@@ -1,3 +1,34 @@
|
|
1
|
+
import Entypo from 'react-native-vector-icons/glyphmaps/Entypo.json';
|
2
|
+
import Evilicon from 'react-native-vector-icons/glyphmaps/EvilIcons.json';
|
3
|
+
import Feather from 'react-native-vector-icons/glyphmaps/Feather.json';
|
4
|
+
import FontAwesome from 'react-native-vector-icons/glyphmaps/FontAwesome.json';
|
5
|
+
import FontAwesome5_meta from 'react-native-vector-icons/glyphmaps/FontAwesome5Free_meta.json';
|
6
|
+
import FontAwesome5 from 'react-native-vector-icons/glyphmaps/FontAwesome5Free.json';
|
7
|
+
import Fontisto from 'react-native-vector-icons/glyphmaps/Fontisto.json';
|
8
|
+
import Foundation from 'react-native-vector-icons/glyphmaps/Foundation.json';
|
9
|
+
import Ionicon from 'react-native-vector-icons/glyphmaps/Ionicons.json';
|
10
|
+
import MaterialCommunity from 'react-native-vector-icons/glyphmaps/MaterialCommunityIcons.json';
|
11
|
+
import Material from 'react-native-vector-icons/glyphmaps/MaterialIcons.json';
|
12
|
+
import Octicon from 'react-native-vector-icons/glyphmaps/Octicons.json';
|
13
|
+
import SimpleLineIcon from 'react-native-vector-icons/glyphmaps/SimpleLineIcons.json';
|
14
|
+
import Zocial from 'react-native-vector-icons/glyphmaps/Zocial.json';
|
15
|
+
declare type FaIcons = typeof FontAwesome5_meta;
|
16
|
+
declare type FA5IconVariant = keyof FaIcons;
|
17
|
+
declare type Fa5IconName = keyof (typeof FontAwesome5);
|
18
|
+
declare type Fa5Icon = `font-awesome-5:${FA5IconVariant}:${Fa5IconName}`;
|
19
|
+
declare type EntypoIcon = `entypo:${keyof (typeof Entypo)}`;
|
20
|
+
declare type EvilIcon = `evilicon:${keyof (typeof Evilicon)}`;
|
21
|
+
declare type FeatherIcon = `fetther:${keyof (typeof Feather)}`;
|
22
|
+
declare type FontAwesomeIcon = `font-awesome:${keyof (typeof FontAwesome)}`;
|
23
|
+
declare type FontistoIcon = `fontisto:${keyof (typeof Fontisto)}`;
|
24
|
+
declare type FoundationIcon = `foundation:${keyof (typeof Foundation)}`;
|
25
|
+
declare type IoniconIcon = `ionicon:${keyof (typeof Ionicon)}`;
|
26
|
+
declare type MaterialCommunityIcon = `material-community:${keyof (typeof MaterialCommunity)}`;
|
27
|
+
declare type MaterialIcon = `material:${keyof (typeof Material)}`;
|
28
|
+
declare type OcticonIcon = `octicon:${keyof (typeof Octicon)}`;
|
29
|
+
declare type SimpleLineIconIcon = `simple-line-icon:${keyof (typeof SimpleLineIcon)}`;
|
30
|
+
declare type ZocialIcon = `zocial:${keyof (typeof Zocial)}`;
|
31
|
+
export declare type IconIdentifier = Fa5Icon | EntypoIcon | EvilIcon | FeatherIcon | FontAwesomeIcon | FontistoIcon | FoundationIcon | IoniconIcon | MaterialCommunityIcon | MaterialIcon | OcticonIcon | SimpleLineIconIcon | ZocialIcon;
|
1
32
|
declare const reactNativeVectorIcons: {
|
2
33
|
[x: string]: {
|
3
34
|
id: string;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"reactNativeVectorIcons.d.ts","sourceRoot":"","sources":["../../../../src/constants/iconInfo/reactNativeVectorIcons.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"reactNativeVectorIcons.d.ts","sourceRoot":"","sources":["../../../../src/constants/iconInfo/reactNativeVectorIcons.ts"],"names":[],"mappings":"AACA,OAAO,MAAM,MAAM,iDAAiD,CAAC;AACrE,OAAO,QAAQ,MAAM,oDAAoD,CAAC;AAC1E,OAAO,OAAO,MAAM,kDAAkD,CAAC;AACvE,OAAO,WAAW,MAAM,sDAAsD,CAAC;AAC/E,OAAO,iBAAiB,MAAM,gEAAgE,CAAC;AAC/F,OAAO,YAAY,MAAM,2DAA2D,CAAC;AACrF,OAAO,QAAQ,MAAM,mDAAmD,CAAC;AACzE,OAAO,UAAU,MAAM,qDAAqD,CAAC;AAC7E,OAAO,OAAO,MAAM,mDAAmD,CAAC;AACxE,OAAO,iBAAiB,MAAM,iEAAiE,CAAC;AAChG,OAAO,QAAQ,MAAM,wDAAwD,CAAC;AAC9E,OAAO,OAAO,MAAM,mDAAmD,CAAC;AACxE,OAAO,cAAc,MAAM,0DAA0D,CAAC;AACtF,OAAO,MAAM,MAAM,iDAAiD,CAAC;AAKrE,aAAK,OAAO,GAAG,OAAO,iBAAiB,CAAC;AACxC,aAAK,cAAc,GAAG,MAAM,OAAO,CAAC;AACp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;;;;;;;;CAAgC,CAAC;AAE9D,eAAe,sBAAsB,CAAA"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"reactNativeVectorIcons.js","sourceRoot":"","sources":["../../../../src/constants/iconInfo/reactNativeVectorIcons.ts"],"names":[],"mappings":";;;;;AAAA,wGAA2E;AAC3E,kGAAqE;AACrE,wGAA0E;AAC1E,oGAAuE;AACvE,4GAA+E;AAC/E,gIAA+F;AAC/F,sHAAqF;AACrF,sGAAyE;AACzE,0GAA6E;AAC7E,sGAAwE;AACxE,kIAAgG;AAChG,gHAA8E;AAC9E,sGAAwE;AACxE,oHAAsF;AACtF,kGAAqE;AACrE,6CAAwC;AACxC,mCAAoC;AAEpC,MAAM,aAAa,GAAG,EAAC,SAAS,EAAT,wBAAS,EAAE,MAAM,EAAN,qBAAM,EAAE,QAAQ,EAAR,wBAAQ,EAAE,OAAO,EAAP,sBAAO,EAAE,WAAW,EAAX,0BAAW,EAAC,QAAQ,EAAR,uBAAQ,EAAE,UAAU,EAAV,yBAAU,EAAE,OAAO,EAAP,uBAAO,EAAE,iBAAiB,EAAjB,qCAAiB,EAAE,QAAQ,EAAR,4BAAQ,EAAE,OAAO,EAAP,uBAAO,EAAE,cAAc,EAAd,8BAAc,EAAE,MAAM,EAAN,qBAAM,EAAC,CAAC;
|
1
|
+
{"version":3,"file":"reactNativeVectorIcons.js","sourceRoot":"","sources":["../../../../src/constants/iconInfo/reactNativeVectorIcons.ts"],"names":[],"mappings":";;;;;AAAA,wGAA2E;AAC3E,kGAAqE;AACrE,wGAA0E;AAC1E,oGAAuE;AACvE,4GAA+E;AAC/E,gIAA+F;AAC/F,sHAAqF;AACrF,sGAAyE;AACzE,0GAA6E;AAC7E,sGAAwE;AACxE,kIAAgG;AAChG,gHAA8E;AAC9E,sGAAwE;AACxE,oHAAsF;AACtF,kGAAqE;AACrE,6CAAwC;AACxC,mCAAoC;AAEpC,MAAM,aAAa,GAAG,EAAC,SAAS,EAAT,wBAAS,EAAE,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W,CAAC;IAC5B,SAAS;CACZ,CAAC,CACL,CACJ;KACA,KAAK,CAAC,IAAI,CAAC;KACX,KAAK,EAAE,CAAC;AAIrB,MAAO,sBAAsB,mCAAO,QAAQ,GAAK,WAAW,CAAC,CAAC;AAE9D,kBAAe,sBAAsB,CAAA"}
|
@@ -10,6 +10,6 @@ export declare const HORIZONTAL_LAYOUT = "layout/horizontal";
|
|
10
10
|
export declare const TYPE_COMPONENT = "type/component";
|
11
11
|
export declare const DATA_SOURCE_KEY_NAMESPACE = "a0aec1c8-4fed-4d5d-b399-504887b3b8e4";
|
12
12
|
export { API_BASE_URL, SOCKET_URL };
|
13
|
-
export { default as iconInfo } from './iconInfo';
|
13
|
+
export { default as iconInfo, IconIdentifier } from './iconInfo';
|
14
14
|
export { default as i18ninstance } from './i18ninstance';
|
15
15
|
//# sourceMappingURL=index.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/constants/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAI9D,eAAO,MAAM,MAAM,SAAiC,CAAC;AAErD,eAAO,MAAM,MAAM,SAA0E,CAAC;AAE9F,eAAO,MAAM,aAAa,kBAAkB,CAAC;AAC7C,eAAO,MAAM,eAAe,oBAAoB,CAAC;AACjD,eAAO,MAAM,gBAAgB,qBAAqB,CAAC;AACnD,eAAO,MAAM,cAAc,mBAAmB,CAAC;AAG/C,eAAO,MAAM,eAAe,oBAAoB,CAAC;AACjD,eAAO,MAAM,iBAAiB,sBAAsB,CAAC;AAErD,eAAO,MAAM,cAAc,mBAAmB,CAAC;AAE/C,eAAO,MAAM,yBAAyB,yCAAyC,CAAC;AAChF,OAAO,EAAC,YAAY,EAAE,UAAU,EAAC,CAAA;AAEjC,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,YAAY,CAAC;
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/constants/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAI9D,eAAO,MAAM,MAAM,SAAiC,CAAC;AAErD,eAAO,MAAM,MAAM,SAA0E,CAAC;AAE9F,eAAO,MAAM,aAAa,kBAAkB,CAAC;AAC7C,eAAO,MAAM,eAAe,oBAAoB,CAAC;AACjD,eAAO,MAAM,gBAAgB,qBAAqB,CAAC;AACnD,eAAO,MAAM,cAAc,mBAAmB,CAAC;AAG/C,eAAO,MAAM,eAAe,oBAAoB,CAAC;AACjD,eAAO,MAAM,iBAAiB,sBAAsB,CAAC;AAErD,eAAO,MAAM,cAAc,mBAAmB,CAAC;AAE/C,eAAO,MAAM,yBAAyB,yCAAyC,CAAC;AAChF,OAAO,EAAC,YAAY,EAAE,UAAU,EAAC,CAAA;AAEjC,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AACjE,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,gBAAgB,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/constants/index.tsx"],"names":[],"mappings":";;;;;;AAAA,yDAA8D;AAoBtD,6FApBC,+BAAY,OAoBD;AAAE,2FApBC,6BAAU,OAoBD;AAhBnB,QAAA,MAAM,GAAG,OAAO,OAAO,KAAK,WAAW,CAAC;AAExC,QAAA,MAAM,GAAG,cAAM,IAAI,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC,QAAQ,CAAC,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,WAAW,EAAE,CAAC,CAAC;AAEjF,QAAA,aAAa,GAAG,eAAe,CAAC;AAChC,QAAA,eAAe,GAAG,iBAAiB,CAAC;AACpC,QAAA,gBAAgB,GAAG,kBAAkB,CAAC;AACtC,QAAA,cAAc,GAAG,gBAAgB,CAAC;AAGlC,QAAA,eAAe,GAAG,iBAAiB,CAAC;AACpC,QAAA,iBAAiB,GAAG,mBAAmB,CAAC;AAExC,QAAA,cAAc,GAAG,gBAAgB,CAAC;AAElC,QAAA,yBAAyB,GAAG,sCAAsC,CAAC;AAGhF,
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/constants/index.tsx"],"names":[],"mappings":";;;;;;AAAA,yDAA8D;AAoBtD,6FApBC,+BAAY,OAoBD;AAAE,2FApBC,6BAAU,OAoBD;AAhBnB,QAAA,MAAM,GAAG,OAAO,OAAO,KAAK,WAAW,CAAC;AAExC,QAAA,MAAM,GAAG,cAAM,IAAI,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC,QAAQ,CAAC,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,WAAW,EAAE,CAAC,CAAC;AAEjF,QAAA,aAAa,GAAG,eAAe,CAAC;AAChC,QAAA,eAAe,GAAG,iBAAiB,CAAC;AACpC,QAAA,gBAAgB,GAAG,kBAAkB,CAAC;AACtC,QAAA,cAAc,GAAG,gBAAgB,CAAC;AAGlC,QAAA,eAAe,GAAG,iBAAiB,CAAC;AACpC,QAAA,iBAAiB,GAAG,mBAAmB,CAAC;AAExC,QAAA,cAAc,GAAG,gBAAgB,CAAC;AAElC,QAAA,yBAAyB,GAAG,sCAAsC,CAAC;AAGhF,uCAAiE;AAAxD,qHAAA,OAAO,OAAY;AAC5B,+CAAyD;AAAhD,6HAAA,OAAO,OAAgB"}
|
@@ -3,7 +3,7 @@ export declare const generateSizeScale: (baseSize: number, variants: {
|
|
3
3
|
}) => {
|
4
4
|
[x: string]: number;
|
5
5
|
};
|
6
|
-
export declare const
|
6
|
+
export declare const fontSizes: {
|
7
7
|
xxxxs: number;
|
8
8
|
xxxs: number;
|
9
9
|
xxs: number;
|
@@ -21,8 +21,21 @@ export declare const fontVariations: {
|
|
21
21
|
xxxxxxxxl: number;
|
22
22
|
xxxxxxxxxl: number;
|
23
23
|
};
|
24
|
-
declare type
|
25
|
-
declare type FontSize = keyof
|
24
|
+
declare type FontSizes = typeof fontSizes;
|
25
|
+
declare type FontSize = keyof FontSizes;
|
26
|
+
declare const fontWeights: {
|
27
|
+
Thin: number;
|
28
|
+
UltraLight: number;
|
29
|
+
Light: number;
|
30
|
+
Regular: number;
|
31
|
+
Medium: number;
|
32
|
+
Semibold: number;
|
33
|
+
Bold: number;
|
34
|
+
Heavy: number;
|
35
|
+
Black: number;
|
36
|
+
};
|
37
|
+
declare type FontWeights = typeof fontWeights;
|
38
|
+
declare type FontWeight = keyof FontWeights;
|
26
39
|
export declare const generateFontSizes: (baseFontSize: number) => {
|
27
40
|
[x: string]: number;
|
28
41
|
};
|
@@ -69,7 +82,7 @@ export declare const spacingVariations: {
|
|
69
82
|
xxxxxxl: number;
|
70
83
|
xxxxxxxl: number;
|
71
84
|
};
|
72
|
-
declare type SpaceVariants = typeof
|
85
|
+
declare type SpaceVariants = typeof fontSizes;
|
73
86
|
declare type Space = keyof SpaceVariants;
|
74
87
|
export declare const generateSpacingSizes: (baseSpacing: number) => {
|
75
88
|
[x: string]: number;
|
@@ -117,6 +130,9 @@ export interface Theme {
|
|
117
130
|
fontSizes: {
|
118
131
|
[key in FontSize]: string;
|
119
132
|
};
|
133
|
+
fontWeights: {
|
134
|
+
[key in FontWeight]: string;
|
135
|
+
};
|
120
136
|
lineHeights: {
|
121
137
|
[key in LineHeight]: string;
|
122
138
|
};
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"themeHelpers.d.ts","sourceRoot":"","sources":["../../../src/helpers/themeHelpers.tsx"],"names":[],"mappings":"AA+BA,eAAO,MAAM,iBAAiB,aAAa,MAAM;;;;CAAqF,CAAC;AAGvI,eAAO,MAAM,
|
1
|
+
{"version":3,"file":"themeHelpers.d.ts","sourceRoot":"","sources":["../../../src/helpers/themeHelpers.tsx"],"names":[],"mappings":"AA+BA,eAAO,MAAM,iBAAiB,aAAa,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B5C,wBAAgB,gBAAgB,CAAC,MAAM,EAAE;IAAC,CAAC,SAAS,EAAE,MAAM,GAAG,MAAM,CAAA;CAAC;;EAuCrE;AACD,MAAM,WAAW,KAAK;IAClB,KAAK,EAAE;SAAE,GAAG,IAAI,KAAK,GAAG,MAAM;KAAC,CAAC;IAChC,SAAS,EAAE;SAAE,GAAG,IAAI,QAAQ,GAAG,MAAM;KAAC,CAAC;IACvC,WAAW,EAAE;SAAE,GAAG,IAAI,UAAU,GAAG,MAAM;KAAC,CAAC;IAC3C,WAAW,EAAE;SAAE,GAAG,IAAI,UAAU,GAAG,MAAM;KAAC,CAAC;IAC3C,MAAM,EAAE;SAAE,GAAG,IAAI,KAAK,GAAG,MAAM;KAAC,CAAC;IACjC,QAAQ,EAAE,MAAM,CAAC;CACpB"}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.getColorVariants = exports.generateSpacingSizes = exports.spacingVariations = exports.generateLineHeights = exports.lineHeightVariants = exports.generateFontSizes = exports.
|
3
|
+
exports.getColorVariants = exports.generateSpacingSizes = exports.spacingVariations = exports.generateLineHeights = exports.lineHeightVariants = exports.generateFontSizes = exports.fontSizes = exports.generateSizeScale = void 0;
|
4
4
|
const lodash_1 = require("lodash");
|
5
5
|
const polished_1 = require("polished");
|
6
6
|
function lightenRgb(hex, intensity) {
|
@@ -26,7 +26,7 @@ function darkenRgb(hex, intensity) {
|
|
26
26
|
const generateSizeScale = (baseSize, variants) => lodash_1.mapValues(variants, scale => scale * baseSize);
|
27
27
|
exports.generateSizeScale = generateSizeScale;
|
28
28
|
// font sizes
|
29
|
-
exports.
|
29
|
+
exports.fontSizes = {
|
30
30
|
'xxxxs': 10 / 15,
|
31
31
|
'xxxs': 11 / 15,
|
32
32
|
'xxs': 12 / 15,
|
@@ -44,10 +44,21 @@ exports.fontVariations = {
|
|
44
44
|
'xxxxxxxxl': 76 / 15,
|
45
45
|
'xxxxxxxxxl': 94 / 15
|
46
46
|
};
|
47
|
-
const
|
47
|
+
const fontWeights = {
|
48
|
+
Thin: 100,
|
49
|
+
UltraLight: 200,
|
50
|
+
Light: 300,
|
51
|
+
Regular: 400,
|
52
|
+
Medium: 500,
|
53
|
+
Semibold: 600,
|
54
|
+
Bold: 700,
|
55
|
+
Heavy: 800,
|
56
|
+
Black: 900,
|
57
|
+
};
|
58
|
+
const generateFontSizes = (baseFontSize) => exports.generateSizeScale(baseFontSize, exports.fontSizes);
|
48
59
|
exports.generateFontSizes = generateFontSizes;
|
49
60
|
// line heights for font
|
50
|
-
exports.lineHeightVariants = lodash_1.mapValues(exports.
|
61
|
+
exports.lineHeightVariants = lodash_1.mapValues(exports.fontSizes, f => f * 1.6);
|
51
62
|
const generateLineHeights = (baseFontSize) => exports.generateSizeScale(baseFontSize, exports.lineHeightVariants);
|
52
63
|
exports.generateLineHeights = generateLineHeights;
|
53
64
|
// spacing
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"themeHelpers.js","sourceRoot":"","sources":["../../../src/helpers/themeHelpers.tsx"],"names":[],"mappings":";;;AAAA,mCAAkE;AAClE,uCAAiH;AAEjH,SAAS,UAAU,CAAC,GAAG,EAAE,SAAS;IAC9B,MAAM,KAAK,GAAG,qBAAU,CAAC,GAAG,CAAC,CAAC;IAE9B,IAAI,CAAC,KAAK,EAAE;QACV,OAAO,EAAE,CAAC;KACX;IAED,MAAM,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,GAAG,GAAG,CAAC,GAAG,GAAG,KAAK,CAAC,GAAG,CAAC,GAAG,SAAS,CAAC,CAAC;IAChE,MAAM,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,KAAK,GAAG,CAAC,GAAG,GAAG,KAAK,CAAC,KAAK,CAAC,GAAG,SAAS,CAAC,CAAC;IACpE,MAAM,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,IAAI,G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