ydb-embedded-ui 6.37.1 → 6.37.2
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/components/MemoryViewer/MemoryViewer.js +8 -7
- package/dist/components/MemoryViewer/MemoryViewer.js.map +1 -1
- package/dist/components/MemoryViewer/utils.d.ts +3 -1
- package/dist/components/MemoryViewer/utils.js +15 -13
- package/dist/components/MemoryViewer/utils.js.map +1 -1
- package/dist/components/nodesColumns/i18n/index.d.ts +1 -1
- package/dist/containers/AsideNavigation/AsideNavigation.js +11 -2
- package/dist/containers/AsideNavigation/AsideNavigation.js.map +1 -1
- package/dist/containers/Clusters/constants.d.ts +1 -1
- package/dist/containers/Nodes/columns/columns.js +4 -4
- package/dist/containers/Nodes/columns/columns.js.map +1 -1
- package/dist/containers/Nodes/columns/constants.js +3 -6
- package/dist/containers/Nodes/columns/constants.js.map +1 -1
- package/dist/containers/Storage/StorageGroups/columns/constants.js +0 -5
- package/dist/containers/Storage/StorageGroups/columns/constants.js.map +1 -1
- package/dist/containers/Storage/StorageNodes/columns/columns.js +6 -6
- package/dist/containers/Storage/StorageNodes/columns/columns.js.map +1 -1
- package/dist/containers/Storage/StorageNodes/columns/constants.js +2 -3
- package/dist/containers/Storage/StorageNodes/columns/constants.js.map +1 -1
- package/dist/containers/Tenant/Diagnostics/TenantOverview/i18n/index.d.ts +1 -1
- package/dist/types/api/nodes.d.ts +2 -1
- package/dist/types/api/nodes.js.map +1 -1
- package/dist/utils/hooks/useLastQueryExecutionSettings.d.ts +2 -2
- package/dist/utils/hooks/useQueryExecutionSettings.d.ts +1 -1
- package/dist/utils/query.d.ts +3 -3
- package/dist/utils/query.js +2 -2
- package/dist/utils/query.js.map +1 -1
- package/package.json +1 -1
@@ -7,7 +7,7 @@ import { calculateProgressStatus } from '../../utils/progress';
|
|
7
7
|
import { isNumeric } from '../../utils/utils';
|
8
8
|
import { HoverPopup } from '../HoverPopup/HoverPopup';
|
9
9
|
import { ProgressViewer } from '../ProgressViewer/ProgressViewer';
|
10
|
-
import { getMemorySegments } from './utils';
|
10
|
+
import { calculateAllocatedMemory, getMemorySegments } from './utils';
|
11
11
|
import './MemoryViewer.scss';
|
12
12
|
const MIN_VISIBLE_MEMORY_SHARE = 1;
|
13
13
|
const MIN_VISIBLE_MEMORY_VALUE = 0.01 * GIGABYTE;
|
@@ -29,19 +29,20 @@ const formatDetailedValues = (value, total) => {
|
|
29
29
|
];
|
30
30
|
};
|
31
31
|
export function MemoryViewer({ stats, percents, formatValues, className, warningThreshold = 60, dangerThreshold = 80, }) {
|
32
|
-
|
32
|
+
var _a;
|
33
|
+
const memoryUsage = (_a = stats.AnonRss) !== null && _a !== void 0 ? _a : calculateAllocatedMemory(stats);
|
33
34
|
const capacity = stats.HardLimit;
|
34
35
|
const theme = useTheme();
|
35
|
-
let fillWidth = Math.round((parseFloat(String(
|
36
|
+
let fillWidth = Math.round((parseFloat(String(memoryUsage)) / parseFloat(String(capacity))) * 100) || 0;
|
36
37
|
fillWidth = fillWidth > 100 ? 100 : fillWidth;
|
37
|
-
let valueText =
|
38
|
+
let valueText = memoryUsage, capacityText = capacity, divider = '/';
|
38
39
|
if (percents) {
|
39
40
|
valueText = fillWidth + '%';
|
40
41
|
capacityText = '';
|
41
42
|
divider = '';
|
42
43
|
}
|
43
44
|
else if (formatValues) {
|
44
|
-
[valueText, capacityText] = formatValues(Number(
|
45
|
+
[valueText, capacityText] = formatValues(Number(memoryUsage), Number(capacity));
|
45
46
|
}
|
46
47
|
const renderContent = () => {
|
47
48
|
if (isNumeric(capacity)) {
|
@@ -50,12 +51,12 @@ export function MemoryViewer({ stats, percents, formatValues, className, warning
|
|
50
51
|
return valueText;
|
51
52
|
};
|
52
53
|
const calculateMemoryShare = (segmentSize) => {
|
53
|
-
if (!
|
54
|
+
if (!memoryUsage) {
|
54
55
|
return 0;
|
55
56
|
}
|
56
57
|
return (segmentSize / parseFloat(String(capacity))) * 100;
|
57
58
|
};
|
58
|
-
const memorySegments = getMemorySegments(stats);
|
59
|
+
const memorySegments = getMemorySegments(stats, Number(memoryUsage));
|
59
60
|
const status = calculateProgressStatus({
|
60
61
|
fillWidth,
|
61
62
|
warningThreshold,
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"MemoryViewer.js","sourceRoot":"","sources":["../../../src/components/MemoryViewer/MemoryViewer.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAC,cAAc,EAAE,QAAQ,EAAC,MAAM,mBAAmB,CAAC;AAG3D,OAAO,EAAC,WAAW,EAAC,MAAM,0BAA0B,CAAC;AACrD,OAAO,EAAC,EAAE,EAAC,MAAM,gBAAgB,CAAC;AAClC,OAAO,EAAC,QAAQ,EAAC,MAAM,uBAAuB,CAAC;AAC/C,OAAO,EAAC,uBAAuB,EAAC,MAAM,sBAAsB,CAAC;AAC7D,OAAO,EAAC,SAAS,EAAC,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAC,UAAU,EAAC,MAAM,0BAA0B,CAAC;AAEpD,OAAO,EAAC,cAAc,EAAC,MAAM,kCAAkC,CAAC;AAEhE,OAAO,EAAC,iBAAiB,EAAC,MAAM,SAAS,CAAC;
|
1
|
+
{"version":3,"file":"MemoryViewer.js","sourceRoot":"","sources":["../../../src/components/MemoryViewer/MemoryViewer.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAC,cAAc,EAAE,QAAQ,EAAC,MAAM,mBAAmB,CAAC;AAG3D,OAAO,EAAC,WAAW,EAAC,MAAM,0BAA0B,CAAC;AACrD,OAAO,EAAC,EAAE,EAAC,MAAM,gBAAgB,CAAC;AAClC,OAAO,EAAC,QAAQ,EAAC,MAAM,uBAAuB,CAAC;AAC/C,OAAO,EAAC,uBAAuB,EAAC,MAAM,sBAAsB,CAAC;AAC7D,OAAO,EAAC,SAAS,EAAC,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAC,UAAU,EAAC,MAAM,0BAA0B,CAAC;AAEpD,OAAO,EAAC,cAAc,EAAC,MAAM,kCAAkC,CAAC;AAEhE,OAAO,EAAC,wBAAwB,E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H,KAAK,EAAE,GAAG,kBAAkB,GAAG;gCAC/B,IAAI,EAAE,GAAG,QAAQ,GAAG;6BACvB,IALI,OAAO,CAAC,GAAG,CAMlB,CACL,CAAC;oBACN,CAAC,CAAC,EACN,cAAK,SAAS,EAAE,CAAC,CAAC,MAAM,CAAC,YAAG,aAAa,EAAE,GAAO,IAChD,GACJ,GACG,CAChB,CAAC;AACN,CAAC"}
|
@@ -1,4 +1,6 @@
|
|
1
1
|
import type { TMemoryStats } from '../../types/api/nodes';
|
2
|
+
export declare function calculateAllocatedMemory(stats: TMemoryStats): string;
|
3
|
+
export declare function getMaybeNumber(value: string | number | undefined): number | undefined;
|
2
4
|
interface MemorySegment {
|
3
5
|
label: string;
|
4
6
|
key: string;
|
@@ -6,5 +8,5 @@ interface MemorySegment {
|
|
6
8
|
capacity?: number;
|
7
9
|
isInfo?: boolean;
|
8
10
|
}
|
9
|
-
export declare function getMemorySegments(stats: TMemoryStats): MemorySegment[];
|
11
|
+
export declare function getMemorySegments(stats: TMemoryStats, memoryUsage: number): MemorySegment[];
|
10
12
|
export {};
|
@@ -1,9 +1,14 @@
|
|
1
1
|
import { isNumeric } from '../../utils/utils';
|
2
2
|
import i18n from './i18n';
|
3
|
-
function
|
3
|
+
export function calculateAllocatedMemory(stats) {
|
4
|
+
const allocatedMemory = getMaybeNumber(stats.AllocatedMemory) || 0;
|
5
|
+
const allocatorCaches = getMaybeNumber(stats.AllocatorCachesMemory) || 0;
|
6
|
+
return String(allocatedMemory + allocatorCaches);
|
7
|
+
}
|
8
|
+
export function getMaybeNumber(value) {
|
4
9
|
return isNumeric(value) ? parseFloat(String(value)) : undefined;
|
5
10
|
}
|
6
|
-
export function getMemorySegments(stats) {
|
11
|
+
export function getMemorySegments(stats, memoryUsage) {
|
7
12
|
const segments = [
|
8
13
|
{
|
9
14
|
label: i18n('text_shared-cache'),
|
@@ -35,16 +40,13 @@ export function getMemorySegments(stats) {
|
|
35
40
|
];
|
36
41
|
const nonInfoSegments = segments.filter((segment) => segment.value !== undefined);
|
37
42
|
const sumNonInfoSegments = nonInfoSegments.reduce((acc, segment) => acc + segment.value, 0);
|
38
|
-
const
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
isInfo: false,
|
46
|
-
});
|
47
|
-
}
|
43
|
+
const otherMemory = Math.max(0, memoryUsage - sumNonInfoSegments);
|
44
|
+
segments.push({
|
45
|
+
label: i18n('text_other'),
|
46
|
+
key: 'Other',
|
47
|
+
value: otherMemory,
|
48
|
+
isInfo: false,
|
49
|
+
});
|
48
50
|
segments.push({
|
49
51
|
label: i18n('text_external-consumption'),
|
50
52
|
key: 'ExternalConsumption',
|
@@ -53,7 +55,7 @@ export function getMemorySegments(stats) {
|
|
53
55
|
}, {
|
54
56
|
label: i18n('text_usage'),
|
55
57
|
key: 'Usage',
|
56
|
-
value:
|
58
|
+
value: memoryUsage,
|
57
59
|
isInfo: true,
|
58
60
|
}, {
|
59
61
|
label: i18n('text_soft-limit'),
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../src/components/MemoryViewer/utils.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,SAAS,EAAC,MAAM,mBAAmB,CAAC;AAE5C,OAAO,IAAI,MAAM,QAAQ,CAAC;AAE1B,
|
1
|
+
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../src/components/MemoryViewer/utils.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,SAAS,EAAC,MAAM,mBAAmB,CAAC;AAE5C,OAAO,IAAI,MAAM,QAAQ,CAAC;AAE1B,MAAM,UAAU,wBAAwB,CAAC,KAAmB;IACxD,MAAM,eAAe,GAAG,cAAc,CAAC,KAAK,CAAC,eAAe,CAAC,IAAI,CAAC,CAAC;IACnE,MAAM,eAAe,GAAG,cAAc,CAAC,KAAK,CAAC,qBAAqB,CAAC,IAAI,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,eAAe,G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_default: (key: "tablets" | "cpu" | "memory" | "database" | "missing" | "version" | "host" | "uptime" | "load" | "min" | "ping" | "max" | "node-id" | "node-name" | "dc" | "rack" | "ram" | "pools" | "disk-usage" | "load-average" | "sessions" | "pdisks" | "field_memory-used" | "field_memory-limit" | "system-state" | "connect-status" | "utilization" | "network-utilization" | "connections" | "clock-skew" | "skew" | "ping-time" | "send" | "receive" | "avg" | "sum", params?: import("@gravity-ui/i18n").Params) => string;
|
2
2
|
export default _default;
|
@@ -3,8 +3,9 @@ import React from 'react';
|
|
3
3
|
import { CircleQuestion, Gear, Person } from '@gravity-ui/icons';
|
4
4
|
import { AsideHeader, FooterItem } from '@gravity-ui/navigation';
|
5
5
|
import { useHistory } from 'react-router-dom';
|
6
|
+
import { settingsManager } from '../../services/settings';
|
6
7
|
import { cn } from '../../utils/cn';
|
7
|
-
import { ASIDE_HEADER_COMPACT_KEY } from '../../utils/constants';
|
8
|
+
import { ASIDE_HEADER_COMPACT_KEY, LANGUAGE_KEY } from '../../utils/constants';
|
8
9
|
import { useSetting } from '../../utils/hooks';
|
9
10
|
import i18n from './i18n';
|
10
11
|
import userSecret from '../../assets/icons/user-secret.svg';
|
@@ -27,6 +28,14 @@ var Panel;
|
|
27
28
|
(function (Panel) {
|
28
29
|
Panel["UserSettings"] = "UserSettings";
|
29
30
|
})(Panel || (Panel = {}));
|
31
|
+
function getDocumentationLink() {
|
32
|
+
// Use saved language from settings if it's present, otherwise use browser language
|
33
|
+
const lang = settingsManager.readUserSettingsValue(LANGUAGE_KEY, navigator.language);
|
34
|
+
if (lang === 'ru') {
|
35
|
+
return 'https://ydb.tech/docs/ru/';
|
36
|
+
}
|
37
|
+
return 'https://ydb.tech/docs/en/';
|
38
|
+
}
|
30
39
|
export function AsideNavigation(props) {
|
31
40
|
const history = useHistory();
|
32
41
|
const [visiblePanel, setVisiblePanel] = React.useState();
|
@@ -40,7 +49,7 @@ export function AsideNavigation(props) {
|
|
40
49
|
title: i18n('navigation-item.documentation'),
|
41
50
|
icon: CircleQuestion,
|
42
51
|
onItemClick: () => {
|
43
|
-
window.open(
|
52
|
+
window.open(getDocumentationLink(), '_blank', 'noreferrer');
|
44
53
|
},
|
45
54
|
} }), _jsx(FooterItem, { item: {
|
46
55
|
id: 'user-settings',
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"AsideNavigation.js","sourceRoot":"","sources":["../../../src/containers/AsideNavigation/AsideNavigation.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAC,cAAc,EAAE,IAAI,EAAE,MAAM,EAAC,MAAM,mBAAmB,CAAC;AAE/D,OAAO,EAAC,WAAW,EAAE,UAAU,EAAC,MAAM,wBAAwB,CAAC;AAE/D,OAAO,EAAC,UAAU,EAAC,MAAM,kBAAkB,CAAC;AAE5C,OAAO,EAAC,EAAE,EAAC,MAAM,gBAAgB,CAAC;AAClC,OAAO,EAAC,wBAAwB,EAAC,MAAM,uBAAuB,CAAC;
|
1
|
+
{"version":3,"file":"AsideNavigation.js","sourceRoot":"","sources":["../../../src/containers/AsideNavigation/AsideNavigation.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAC,cAAc,EAAE,IAAI,EAAE,MAAM,EAAC,MAAM,mBAAmB,CAAC;AAE/D,OAAO,EAAC,WAAW,EAAE,UAAU,EAAC,MAAM,wBAAwB,CAAC;AAE/D,OAAO,EAAC,UAAU,EAAC,MAAM,kBAAkB,CAAC;AAE5C,OAAO,EAAC,eAAe,EAAC,MAAM,yBAAyB,CAAC;AACxD,OAAO,EAAC,EAAE,EAAC,MAAM,gBAAgB,CAAC;AAClC,OAAO,EAAC,wBAAwB,EAAE,YAAY,EAAC,MAAM,uBAAuB,CAAC;AAC7E,OAAO,EAAC,UAAU,EAAC,MAAM,mBAAmB,CAAC;AAE7C,OAAO,IAAI,MAAM,QAAQ,CAAC;AAE1B,OAAO,UAAU,MAAM,oCAA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C,UAAU,IACP,IAAI,EAAE;4BACF,EAAE,EAAE,eAAe;4BACnB,KAAK,EAAE,IAAI,CAAC,0BAA0B,CAAC;4BACvC,IAAI,EAAE,IAAI;4BACV,OAAO,EAAE,YAAY,KAAK,KAAK,CAAC,YAAY;4BAC5C,WAAW,EAAE,GAAG,EAAE;gCACd,eAAe,CACX,YAAY,KAAK,KAAK,CAAC,YAAY;oCAC/B,CAAC,CAAC,SAAS;oCACX,CAAC,CAAC,KAAK,CAAC,YAAY,CAC3B,CAAC;4BACN,CAAC;yBACJ,EACD,OAAO,EAAE,OAAO,GAClB,EAEF,KAAC,YAAY,IAAC,SAAS,EAAE,OAAO,EAAE,WAAW,EAAE,QAAQ,EAAE,IAAI,EAAE,KAAK,CAAC,IAAI,YACpE,KAAK,CAAC,eAAe,GACX,IACF,CACpB,EACD,UAAU,EAAE;gBACR;oBACI,EAAE,EAAE,eAAe;oBACnB,OAAO,EAAE,YAAY,KAAK,KAAK,CAAC,YAAY;oBAC5C,OAAO,EAAE,KAAK,CAAC,QAAQ;iBAC1B;aACJ,EACD,YAAY,EAAE,GAAG,EAAE;gBACf,eAAe,CAAC,SAAS,CAAC,CAAC;YAC/B,CAAC,GACH,GACW,CACpB,CAAC;AACN,CAAC"}
|
@@ -14,7 +14,7 @@ export declare const COLUMNS_NAMES: {
|
|
14
14
|
readonly DESCRIPTION: "description";
|
15
15
|
readonly BALANCER: "balancer";
|
16
16
|
};
|
17
|
-
export declare const DEFAULT_COLUMNS: ("
|
17
|
+
export declare const DEFAULT_COLUMNS: ("nodes" | "storage" | "status" | "hosts" | "versions" | "balancer" | "tenants" | "service" | "load" | "owner" | "title")[];
|
18
18
|
export declare const COLUMNS_TITLES: {
|
19
19
|
readonly title: "Cluster";
|
20
20
|
readonly versions: "Versions";
|
@@ -7,13 +7,13 @@ export function getNodesColumns(params) {
|
|
7
7
|
getNodeNameColumn(),
|
8
8
|
getDataCenterColumn(),
|
9
9
|
getRackColumn(),
|
10
|
-
getVersionColumn(),
|
11
10
|
getUptimeColumn(),
|
12
|
-
getMemoryColumn(),
|
13
|
-
getRAMColumn(),
|
14
|
-
getPoolsColumn(),
|
15
11
|
getCpuColumn(),
|
12
|
+
getPoolsColumn(),
|
13
|
+
getRAMColumn(),
|
14
|
+
getMemoryColumn(),
|
16
15
|
getLoadAverageColumn(),
|
16
|
+
getVersionColumn(),
|
17
17
|
getTabletsColumn(params),
|
18
18
|
];
|
19
19
|
return columns.map((column) => {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"columns.js","sourceRoot":"","sources":["../../../../src/containers/Nodes/columns/columns.tsx"],"names":[],"mappings":"AAAA,OAAO,EACH,YAAY,EACZ,mBAAmB,EACnB,aAAa,EACb,oBAAoB,EACpB,eAAe,EACf,eAAe,EACf,iBAAiB,EACjB,cAAc,EACd,YAAY,EACZ,aAAa,EACb,gBAAgB,EAChB,eAAe,EACf,gBAAgB,GACnB,MAAM,0CAA0C,CAAC;AAClD,OAAO,EAAC,qBAAqB,EAAC,MAAM,4CAA4C,CAAC;AAKjF,MAAM,UAAU,eAAe,CAAC,MAA6B;IACzD,MAAM,OAAO,GAAG;QACZ,eAAe,EAAuB;QACtC,aAAa,CAAsB,MAAM,CAAC;QAC1C,iBAAiB,EAAuB;QACxC,mBAAmB,EAAuB;QAC1C,aAAa,EAAuB;QACpC,
|
1
|
+
{"version":3,"file":"columns.js","sourceRoot":"","sources":["../../../../src/containers/Nodes/columns/columns.tsx"],"names":[],"mappings":"AAAA,OAAO,EACH,YAAY,EACZ,mBAAmB,EACnB,aAAa,EACb,oBAAoB,EACpB,eAAe,EACf,eAAe,EACf,iBAAiB,EACjB,cAAc,EACd,YAAY,EACZ,aAAa,EACb,gBAAgB,EAChB,eAAe,EACf,gBAAgB,GACnB,MAAM,0CAA0C,CAAC;AAClD,OAAO,EAAC,qBAAqB,EAAC,MAAM,4CAA4C,CAAC;AAKjF,MAAM,UAAU,eAAe,CAAC,MAA6B;IACzD,MAAM,OAAO,GAAG;QACZ,eAAe,EAAuB;QACtC,aAAa,CAAsB,MAAM,CAAC;QAC1C,iBAAiB,EAAuB;QACxC,mBAAmB,EAAuB;QAC1C,aAAa,EAAuB;QACpC,eAAe,EAAuB;QACtC,YAAY,EAAuB;QACnC,cAAc,EAAuB;QACrC,YAAY,EAAuB;QACnC,eAAe,EAAuB;QACtC,oBAAoB,EAAuB;QAC3C,gBAAgB,EAAuB;QACvC,gBAAgB,CAAsB,MAAM,CAAC;KAChD,CAAC;IAEF,OAAO,OAAO,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,EAAE;QAC1B,OAAO,EAAC,GAAG,MAAM,EAAE,QAAQ,EAAE,qBAAqB,CAAC,MAAM,CAAC,IAAI,CAAC,EAAC,CAAC;IACrE,CAAC,CAAC,CAAC;AACP,CAAC"}
|
@@ -3,13 +3,10 @@ export const NODES_TABLE_SELECTED_COLUMNS_LS_KEY = 'nodesTableSelectedColumns';
|
|
3
3
|
export const DEFAULT_NODES_COLUMNS = [
|
4
4
|
'NodeId',
|
5
5
|
'Host',
|
6
|
-
'DC',
|
7
|
-
'Rack',
|
8
|
-
'Version',
|
9
6
|
'Uptime',
|
10
|
-
'
|
11
|
-
'
|
12
|
-
'
|
7
|
+
'CPU',
|
8
|
+
'RAM',
|
9
|
+
'Version',
|
13
10
|
'Tablets',
|
14
11
|
];
|
15
12
|
export const REQUIRED_NODES_COLUMNS = ['NodeId'];
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../src/containers/Nodes/columns/constants.ts"],"names":[],"mappings":"AAEA,OAAO,EAAC,yBAAyB,EAAC,MAAM,4CAA4C,CAAC;AAIrF,MAAM,CAAC,MAAM,mCAAmC,GAAG,2BAA2B,CAAC;AAE/E,MAAM,CAAC,MAAM,qBAAqB,GAAoB;IAClD,QAAQ;IACR,MAAM;IACN,
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../src/containers/Nodes/columns/constants.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@ export const STORAGE_GROUPS_COLUMNS_IDS = {
|
|
23
23
|
export const DEFAULT_STORAGE_GROUPS_COLUMNS = [
|
24
24
|
'GroupId',
|
25
25
|
'PoolName',
|
26
|
-
'MediaType',
|
27
26
|
'Erasure',
|
28
27
|
'Used',
|
29
|
-
'Limit',
|
30
|
-
'Usage',
|
31
|
-
'Read',
|
32
|
-
'Write',
|
33
28
|
'VDisks',
|
34
29
|
];
|
35
30
|
export const REQUIRED_STORAGE_GROUPS_COLUMNS = ['GroupId'];
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../src/containers/Storage/StorageGroups/columns/constants.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAC;AAStB,OAAO,IAAI,MAAM,QAAQ,CAAC;AAE1B,MAAM,CAAC,MAAM,mCAAmC,GAAG,2BAA2B,CAAC;AAC/E,MAAM,CAAC,MAAM,sCAAsC,GAAG,8BAA8B,CAAC;AAErF,MAAM,CAAC,MAAM,0BAA0B,GAAG;IACtC,OAAO,EAAE,SAAS;IAClB,QAAQ,EAAE,UAAU;IACpB,SAAS,EAAE,WAAW;IACtB,OAAO,EAAE,SAAS;IAClB,IAAI,EAAE,MAAM;IACZ,KAAK,EAAE,OAAO;IACd,KAAK,EAAE,OAAO;IACd,cAAc,EAAE,gBAAgB;IAChC,SAAS,EAAE,WAAW;IACtB,IAAI,EAAE,MAAM;IACZ,KAAK,EAAE,OAAO;IACd,OAAO,EAAE,SAAS;IAClB,eAAe,EAAE,iBAAiB;IAClC,MAAM,EAAE,QAAQ;IAChB,YAAY,EAAE,cAAc;IAC5B,QAAQ,EAAE,UAAU;CACd,CAAC;AAIX,MAAM,CAAC,MAAM,8BAA8B,GAA4B;IACnE,SAAS;IACT,UAAU;IACV,
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../src/containers/Storage/StorageGroups/columns/constants.ts"],"names":[],"mappings":"AACA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AAC,OAAO,CAAC;IAChB,cAAc,EAAE,CAAC,gBAAgB,CAAC;IAClC,SAAS,EAAE,CAAC,OAAO,CAAC;IACpB,IAAI,EAAE,CAAC,MAAM,CAAC;IACd,KAAK,EAAE,CAAC,OAAO,CAAC;IAChB,OAAO,EAAE,CAAC,SAAS,CAAC;IACpB,eAAe,EAAE,CAAC,iBAAiB,CAAC;IACpC,+DAA+D;IAC/D,MAAM,EAAE,CAAC,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC;IAC3C,YAAY,EAAE,CAAC,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC;IACjD,QAAQ,EAAE,CAAC,cAAc,CAAC;CAC7B,CAAC;AAEF,MAAM,qCAAqC,GAGvC;IACA,OAAO,EAAE,SAAS;IAClB,QAAQ,EAAE,UAAU;IACpB,SAAS,EAAE,WAAW;IACtB,OAAO,EAAE,SAAS;IAClB,IAAI,EAAE,MAAM;IACZ,KAAK,EAAE,OAAO;IACd,KAAK,EAAE,OAAO;IACd,cAAc,EAAE,gBAAgB;IAChC,SAAS,EAAE,SAAS;IACpB,IAAI,EAAE,MAAM;IACZ,KAAK,EAAE,OAAO;IACd,OAAO,EAAE,SAAS;IAClB,eAAe,EAAE,iBAAiB;IAClC,MAAM,EAAE,SAAS;IACjB,YAAY,EAAE,SAAS;IACvB,QAAQ,EAAE,UAAU;CACvB,CAAC;AAEF,MAAM,UAAU,+BAA+B,CAAC,QAAiB;IAC7D,OAAO,qCAAqC,CAAC,QAAiC,CAAC,CAAC;AACpF,CAAC;AAED,MAAM,UAAU,6BAA6B,CAAC,QAAgB;IAC1D,OAAO,OAAO,CAAC,+BAA+B,CAAC,QAAQ,CAAC,CAAC,CAAC;AAC9D,CAAC"}
|
@@ -29,17 +29,17 @@ export const getStorageNodesColumns = ({ database, additionalNodesProps, viewCon
|
|
29
29
|
const getNodeRef = additionalNodesProps === null || additionalNodesProps === void 0 ? void 0 : additionalNodesProps.getNodeRef;
|
30
30
|
const columns = [
|
31
31
|
getNodeIdColumn(),
|
32
|
-
getNodeNameColumn(),
|
33
32
|
getHostColumn({ getNodeRef, database }),
|
33
|
+
getNodeNameColumn(),
|
34
34
|
getDataCenterColumn(),
|
35
35
|
getRackColumn(),
|
36
|
-
|
37
|
-
getMemoryColumn(),
|
38
|
-
getRAMColumn(),
|
39
|
-
getPoolsColumn(),
|
36
|
+
getUptimeColumn(),
|
40
37
|
getCpuColumn(),
|
38
|
+
getPoolsColumn(),
|
39
|
+
getRAMColumn(),
|
40
|
+
getMemoryColumn(),
|
41
41
|
getDiskSpaceUsageColumn(),
|
42
|
-
|
42
|
+
getVersionColumn(),
|
43
43
|
getMissingDisksColumn(),
|
44
44
|
getPDisksColumn({ viewContext }),
|
45
45
|
];
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"columns.js","sourceRoot":"","sources":["../../../../../src/containers/Storage/StorageNodes/columns/columns.tsx"],"names":[],"mappings":";AAAA,OAAO,SAAS,MAAM,8BAA8B,CAAC;AAErD,OAAO,EACH,YAAY,EACZ,mBAAmB,EACnB,uBAAuB,EACvB,aAAa,EACb,eAAe,EACf,qBAAqB,EACrB,eAAe,EACf,iBAAiB,EACjB,cAAc,EACd,YAAY,EACZ,aAAa,EACb,eAAe,EACf,gBAAgB,GACnB,MAAM,6CAA6C,CAAC;AACrD,OAAO,EACH,iBAAiB,EACjB,oBAAoB,EACpB,qBAAqB,GACxB,MAAM,+CAA+C,CAAC;AAEvD,OAAO,EAAC,EAAE,EAAC,MAAM,sBAAsB,CAAC;AACxC,OAAO,EAAC,KAAK,EAAC,MAAM,mBAAmB,CAAC;AAIxC,OAAO,4BAA4B,CAAC;AAEpC,MAAM,CAAC,GAAG,EAAE,CAAC,2BAA2B,CAAC,CAAC;AAE1C,MAAM,eAAe,GAAG,CAAC,EAAC,WAAW,EAA+B,EAAsB,EAAE;IACxF,OAAO;QACH,IAAI,EAAE,iBAAiB,CAAC,MAAM;QAC9B,MAAM,EAAE,oBAAoB,CAAC,MAAM;QACnC,SAAS,EAAE,CAAC,CAAC,eAAe,CAAC;QAC7B,MAAM,EAAE,CAAC,EAAC,GAAG,EAAC,EAAE,EAAE;;YACd,OAAO,CACH,cAAK,SAAS,EAAE,CAAC,CAAC,gBAAgB,CAAC,YAC9B,MAAA,GAAG,CAAC,MAAM,0CAAE,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE;;oBACvB,MAAM,MAAM,GAAG,MAAA,GAAG,CAAC,MAAM,0CAAE,MAAM,CAC7B,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,OAAO,KAAK,KAAK,CAAC,OAAO,CAC7C,CAAC;oBAEF,OAAO,CACH,cAAK,SAAS,EAAE,CAAC,CAAC,aAAa,CAAC,YAC5B,KAAC,KAAK,IAAC,IAAI,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,WAAW,EAAE,WAAW,GAAI,IAD7B,KAAK,CAAC,OAAO,CAE9C,CACT,CAAC;gBACN,CAAC,CAAC,GACA,CACT,CAAC;QACN,CAAC;QACD,KAAK,EAAE,SAAS,CAAC,MAAM;QACvB,QAAQ,EAAE,KAAK;QACf,KAAK,EAAE,GAAG;QACV,UAAU,EAAE,KAAK;KACpB,CAAC;AACN,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,sBAAsB,GAAG,CAAC,EACnC,QAAQ,EACR,oBAAoB,EACpB,WAAW,GACgB,EAAwB,EAAE;IACrD,MAAM,UAAU,GAAG,oBAAoB,aAApB,oBAAoB,uBAApB,oBAAoB,CAAE,UAAU,CAAC;IAEpD,MAAM,OAAO,GAAG;QACZ,eAAe,EAAuB;QACtC,
|
1
|
+
{"version":3,"file":"columns.js","sourceRoot":"","sources":["../../../../../src/containers/Storage/StorageNodes/columns/columns.tsx"],"names":[],"mappings":";AAAA,OAAO,SAAS,MAAM,8BAA8B,CAAC;AAErD,OAAO,EACH,YAAY,EACZ,mBAAmB,EACnB,uBAAuB,EACvB,aAAa,EACb,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,EAAE,KAAK;QACf,KAAK,EAAE,GAAG;QACV,UAAU,EAAE,KAAK;KACpB,CAAC;AACN,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,sBAAsB,GAAG,CAAC,EACnC,QAAQ,EACR,oBAAoB,EACpB,WAAW,GACgB,EAAwB,EAAE;IACrD,MAAM,UAAU,GAAG,oBAAoB,aAApB,oBAAoB,uBAApB,oBAAoB,CAAE,UAAU,CAAC;IAEpD,MAAM,OAAO,GAAG;QACZ,eAAe,EAAuB;QACtC,aAAa,CAAsB,EAAC,UAAU,EAAE,QAAQ,EAAC,CAAC;QAC1D,iBAAiB,EAAuB;QACxC,mBAAmB,EAAuB;QAC1C,aAAa,EAAuB;QACpC,eAAe,EAAuB;QACtC,YAAY,EAAuB;QACnC,cAAc,EAAuB;QACrC,YAAY,EAAuB;QACnC,eAAe,EAAuB;QACtC,uBAAuB,EAAuB;QAC9C,gBAAgB,EAAuB;QACvC,qBAAqB,EAAuB;QAC5C,eAAe,CAAC,EAAC,WAAW,EAAC,CAAC;KACjC,CAAC;IAEF,MAAM,eAAe,GAAG,OAAO,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC;QAC7C,GAAG,MAAM;QACT,QAAQ,EAAE,qBAAqB,CAAC,MAAM,CAAC,IAAI,CAAC;KAC/C,CAAC,CAAC,CAAC;IAEJ,OAAO,eAAe,CAAC;AAC3B,CAAC,CAAC"}
|
@@ -5,10 +5,9 @@ export const STORAGE_NODES_SELECTED_COLUMNS_LS_KEY = 'storageNodesSelectedColumn
|
|
5
5
|
export const DEFAULT_STORAGE_NODES_COLUMNS = [
|
6
6
|
'NodeId',
|
7
7
|
'Host',
|
8
|
-
'DC',
|
9
|
-
'Rack',
|
10
|
-
'Pools',
|
11
8
|
'Uptime',
|
9
|
+
'CPU',
|
10
|
+
'RAM',
|
12
11
|
'PDisks',
|
13
12
|
];
|
14
13
|
export const REQUIRED_STORAGE_NODES_COLUMNS = ['NodeId'];
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../src/containers/Storage/StorageNodes/columns/constants.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAC;AAGtB,OAAO,EAAC,yBAAyB,EAAC,MAAM,+CAA+C,CAAC;AAGxF,MAAM,CAAC,MAAM,kCAAkC,GAAG,0BAA0B,CAAC;AAC7E,MAAM,CAAC,MAAM,qCAAqC,GAAG,6BAA6B,CAAC;AAEnF,MAAM,CAAC,MAAM,6BAA6B,GAAoB;IAC1D,QAAQ;IACR,MAAM;IACN,
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../src/containers/Storage/StorageNodes/columns/constants.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAC;AAGtB,OAAO,EAAC,yBAAyB,EAAC,MAAM,+CAA+C,CAAC;AAGxF,MAAM,CAAC,MAAM,kCAAkC,GAAG,0BAA0B,CAAC;AAC7E,MAAM,CAAC,MAAM,qCAAqC,GAAG,6BAA6B,CAAC;AAEnF,MAAM,CAAC,MAAM,6BAA6B,GAAoB;IAC1D,QAAQ;IACR,MAAM;IACN,QAAQ;IACR,KAAK;IACL,KAAK;IACL,QAAQ;CACX,CAAC;AACF,MAAM,CAAC,MAAM,8BAA8B,GAAoB,CAAC,QAAQ,CAAC,CAAC;AAE1E,MAAM,6BAA6B,GAAG;IAClC,MAAM;IACN,IAAI;IACJ,MAAM;IACN,SAAS;IACT,QAAQ;IACR,SAAS;IACT,gBAAgB;CACoB,CAAC;AAEzC,MAAM,CAAC,MAAM,8BAA8B,GAAmB,6BAA6B,CAAC,GAAG,CAC3F,CAAC,KAAK,EAAE,EAAE;IACN,OAAO;QACH,KAAK,EAAE,KAAK;QACZ,OAAO,EAAE,yBAAyB,CAAC,KAAK,CAAC;KAC5C,CAAC;AACN,CAAC,CACJ,CAAC;AAEF,MAAM,CAAC,MAAM,8BAA8B,GAAG,CAAC;KAC1C,MAAM,CAAgC,CAAC,KAAK,EAAE,EAAE,CAAC,6BAA6B,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;KAC/F,KAAK,CAAC,SAAS,CAAC,CAAC"}
|
@@ -1,2 +1,2 @@
|
|
1
|
-
declare const _default: (key: "
|
1
|
+
declare const _default: (key: "nodes" | "queries" | "tables" | "no-data" | "top" | "groups" | "shards" | "no-pools-data" | "top-nodes.empty-data" | "top-groups.empty-data" | "by-pools-usage" | "by-cpu-time" | "by-cpu-usage" | "by-load" | "by-memory" | "by-usage" | "by-size" | "cards.cpu-label" | "cards.storage-label" | "cards.memory-label" | "charts.queries-per-second" | "charts.transaction-latency" | "charts.cpu-usage" | "charts.storage-usage" | "charts.memory-usage" | "storage.tablet-storage-title" | "storage.tablet-storage-description" | "storage.db-storage-title" | "storage.db-storage-description" | "executed-last-hour" | "column-header.process", params?: import("@gravity-ui/i18n").Params) => string;
|
2
2
|
export default _default;
|
@@ -61,9 +61,10 @@ export interface TNodesGroup {
|
|
61
61
|
NodeCount: number;
|
62
62
|
}
|
63
63
|
export interface TMemoryStats {
|
64
|
-
AnonRss
|
64
|
+
AnonRss?: string;
|
65
65
|
ExternalConsumption?: string;
|
66
66
|
AllocatorCachesMemory?: string;
|
67
|
+
AllocatedMemory?: string;
|
67
68
|
SharedCacheConsumption?: string;
|
68
69
|
SharedCacheLimit?: string;
|
69
70
|
MemTableConsumption?: string;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"nodes.js","sourceRoot":"","sources":["../../../src/types/api/nodes.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"nodes.js","sourceRoot":"","sources":["../../../src/types/api/nodes.ts"],"names":[],"mappings":"AA8NA,IAAK,YAGJ;AAHD,WAAK,YAAY;IACb,yCAA2B,CAAA;IAC3B,qCAAuB,CAAA;AAC3B,CAAC,EAHI,YAAY,KAAZ,YAAY,QAGhB"}
|
@@ -1,12 +1,12 @@
|
|
1
1
|
export declare const useLastQueryExecutionSettings: () => readonly [{
|
2
|
-
queryMode: "
|
2
|
+
queryMode: "query" | "scan" | "script" | "data" | "pg";
|
3
3
|
transactionMode: "serializable-read-write" | "stale-read-only" | "online-read-only" | "snapshot-read-only" | "implicit";
|
4
4
|
statisticsMode: "none" | "basic" | "full" | "profile";
|
5
5
|
tracingLevel: "basic" | "off" | "toplevel" | "detailed" | "diagnostic" | "trace";
|
6
6
|
timeout?: number | undefined;
|
7
7
|
limitRows?: number | undefined;
|
8
8
|
} | undefined, (value: {
|
9
|
-
queryMode: "
|
9
|
+
queryMode: "query" | "scan" | "script" | "data" | "pg";
|
10
10
|
transactionMode: "serializable-read-write" | "stale-read-only" | "online-read-only" | "snapshot-read-only" | "implicit";
|
11
11
|
statisticsMode: "none" | "basic" | "full" | "profile";
|
12
12
|
tracingLevel: "basic" | "off" | "toplevel" | "detailed" | "diagnostic" | "trace";
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import type { QuerySettings } from '../../types/store/query';
|
2
2
|
export declare const useQueryExecutionSettings: () => readonly [{
|
3
|
-
queryMode: "
|
3
|
+
queryMode: "query" | "scan" | "script" | "data" | "pg";
|
4
4
|
transactionMode: "serializable-read-write" | "stale-read-only" | "online-read-only" | "snapshot-read-only" | "implicit";
|
5
5
|
statisticsMode: "none" | "basic" | "full" | "profile";
|
6
6
|
tracingLevel: "basic" | "off" | "toplevel" | "detailed" | "diagnostic" | "trace";
|
package/dist/utils/query.d.ts
CHANGED
@@ -119,14 +119,14 @@ export declare const querySettingsValidationSchema: z.ZodObject<{
|
|
119
119
|
readonly trace: "trace";
|
120
120
|
}>;
|
121
121
|
}, "strip", z.ZodTypeAny, {
|
122
|
-
queryMode: "
|
122
|
+
queryMode: "query" | "scan" | "script" | "data" | "pg";
|
123
123
|
transactionMode: "serializable-read-write" | "stale-read-only" | "online-read-only" | "snapshot-read-only" | "implicit";
|
124
124
|
statisticsMode: "none" | "basic" | "full" | "profile";
|
125
125
|
tracingLevel: "basic" | "off" | "toplevel" | "detailed" | "diagnostic" | "trace";
|
126
126
|
timeout?: number | undefined;
|
127
127
|
limitRows?: number | undefined;
|
128
128
|
}, {
|
129
|
-
queryMode: "
|
129
|
+
queryMode: "query" | "scan" | "script" | "data" | "pg";
|
130
130
|
transactionMode: "serializable-read-write" | "stale-read-only" | "online-read-only" | "snapshot-read-only" | "implicit";
|
131
131
|
statisticsMode: "none" | "basic" | "full" | "profile";
|
132
132
|
tracingLevel: "basic" | "off" | "toplevel" | "detailed" | "diagnostic" | "trace";
|
@@ -165,7 +165,7 @@ export declare const querySettingsRestoreSchema: z.ZodCatch<z.ZodObject<{
|
|
165
165
|
readonly trace: "trace";
|
166
166
|
}>>;
|
167
167
|
}, "strip", z.ZodTypeAny, {
|
168
|
-
queryMode: "
|
168
|
+
queryMode: "query" | "scan" | "script" | "data" | "pg";
|
169
169
|
transactionMode: "serializable-read-write" | "stale-read-only" | "online-read-only" | "snapshot-read-only" | "implicit";
|
170
170
|
statisticsMode: "none" | "basic" | "full" | "profile";
|
171
171
|
tracingLevel: "basic" | "off" | "toplevel" | "detailed" | "diagnostic" | "trace";
|
package/dist/utils/query.js
CHANGED
@@ -237,7 +237,7 @@ export const statisticsModeSchema = z.nativeEnum(STATISTICS_MODES);
|
|
237
237
|
export const tracingLevelSchema = z.nativeEnum(TRACING_LEVELS);
|
238
238
|
export const querySettingsValidationSchema = z.object({
|
239
239
|
timeout: z.preprocess((val) => (val === '' ? undefined : val), z.coerce.number().positive().or(z.undefined())),
|
240
|
-
limitRows: z.preprocess((val) => (val === '' ? undefined : val), z.coerce.number().gt(0).lte(
|
240
|
+
limitRows: z.preprocess((val) => (val === '' ? undefined : val), z.coerce.number().gt(0).lte(100000).or(z.undefined())),
|
241
241
|
queryMode: queryModeSchema,
|
242
242
|
transactionMode: transactionModeSchema,
|
243
243
|
statisticsMode: statisticsModeSchema,
|
@@ -246,7 +246,7 @@ export const querySettingsValidationSchema = z.object({
|
|
246
246
|
export const querySettingsRestoreSchema = z
|
247
247
|
.object({
|
248
248
|
timeout: z.preprocess((val) => (val === '' ? undefined : val), z.coerce.number().positive().optional().catch(DEFAULT_QUERY_SETTINGS.timeout)),
|
249
|
-
limitRows: z.preprocess((val) => (val === '' ? undefined : val), z.coerce.number().gt(0).lte(
|
249
|
+
limitRows: z.preprocess((val) => (val === '' ? undefined : val), z.coerce.number().gt(0).lte(100000).optional().catch(DEFAULT_QUERY_SETTINGS.limitRows)),
|
250
250
|
queryMode: queryModeSchema.catch(DEFAULT_QUERY_SETTINGS.queryMode),
|
251
251
|
transactionMode: transactionModeSchema.catch(DEFAULT_QUERY_SETTINGS.transactionMode),
|
252
252
|
statisticsMode: statisticsModeSchema.catch(DEFAULT_QUERY_SETTINGS.statisticsMode),
|
package/dist/utils/query.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"query.js","sourceRoot":"","sources":["../../src/utils/query.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAC;AAEtB,OAAO,EAAC,OAAO,EAAC,MAAM,UAAU,CAAC;AAmBjC,OAAO,EAAC,eAAe,EAAE,cAAc,EAAC,MAAM,YAAY,CAAC;AAE3D,MAAM,CAAC,MAAM,iBAAiB,GAAG;IAC7B,YAAY,EAAE,yBAAyB;IACvC,OAAO,EAAE,iBAAiB;IAC1B,QAAQ,EAAE,kBAAkB;IAC5B,QAAQ,EAAE,oBAAoB;IAC9B,QAAQ,EAAE,UAAU;CACd,CAAC;AAEX,MAAM,CAAC,MAAM,wBAAwB,GAAoC;IACrE,CAAC,iBAAiB,CAAC,YAAY,CAAC,EAAE,cAAc;IAChD,CAAC,iBAAiB,CAAC,OAAO,CAAC,EAAE,iBAAiB;IAC9C,CAAC,iBAAiB,CAAC,QAAQ,CAAC,EAAE,kBAAkB;IAChD,CAAC,iBAAiB,CAAC,QAAQ,CAAC,EAAE,oBAAoB;IAClD,CAAC,iBAAiB,CAAC,QAAQ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