codexly-ui 0.1.23 → 0.2.0
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.
|
@@ -0,0 +1,190 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { input, inject, Injector, computed, effect, untracked, ViewChild, ChangeDetectionStrategy, ViewEncapsulation, Component } from '@angular/core';
|
|
3
|
+
import { Chart, LineController, BarController, PieController, DoughnutController, RadarController, PolarAreaController, CategoryScale, LinearScale, RadialLinearScale, BarElement, LineElement, PointElement, ArcElement, Filler, Tooltip, Legend } from 'chart.js';
|
|
4
|
+
import { CLX_COLOR_HEX } from 'codexly-ui';
|
|
5
|
+
|
|
6
|
+
const CLX_CHART_DEFAULTS_NO_SCALES = {
|
|
7
|
+
responsive: true,
|
|
8
|
+
maintainAspectRatio: false,
|
|
9
|
+
font: {
|
|
10
|
+
family: 'Roboto, ui-sans-serif, system-ui, -apple-system, sans-serif',
|
|
11
|
+
size: 12,
|
|
12
|
+
},
|
|
13
|
+
plugins: {
|
|
14
|
+
legend: { display: true, position: 'top', align: 'center' },
|
|
15
|
+
tooltip: { enabled: true },
|
|
16
|
+
},
|
|
17
|
+
};
|
|
18
|
+
const CLX_CHART_DEFAULTS = {
|
|
19
|
+
responsive: true,
|
|
20
|
+
maintainAspectRatio: false,
|
|
21
|
+
font: {
|
|
22
|
+
family: 'Roboto, ui-sans-serif, system-ui, -apple-system, sans-serif',
|
|
23
|
+
size: 12,
|
|
24
|
+
},
|
|
25
|
+
plugins: {
|
|
26
|
+
legend: {
|
|
27
|
+
display: true,
|
|
28
|
+
position: 'top',
|
|
29
|
+
align: 'center'
|
|
30
|
+
},
|
|
31
|
+
tooltip: {
|
|
32
|
+
enabled: true
|
|
33
|
+
},
|
|
34
|
+
},
|
|
35
|
+
scales: {
|
|
36
|
+
x: {
|
|
37
|
+
display: true,
|
|
38
|
+
grid: {
|
|
39
|
+
display: false
|
|
40
|
+
},
|
|
41
|
+
border: {
|
|
42
|
+
color: CLX_COLOR_HEX.slate100
|
|
43
|
+
},
|
|
44
|
+
ticks: {
|
|
45
|
+
color: CLX_COLOR_HEX.slate400
|
|
46
|
+
}
|
|
47
|
+
},
|
|
48
|
+
y: {
|
|
49
|
+
display: true,
|
|
50
|
+
beginAtZero: true,
|
|
51
|
+
grid: {
|
|
52
|
+
display: true,
|
|
53
|
+
color: CLX_COLOR_HEX.slate100
|
|
54
|
+
},
|
|
55
|
+
border: {
|
|
56
|
+
color: CLX_COLOR_HEX.slate100
|
|
57
|
+
},
|
|
58
|
+
ticks: {
|
|
59
|
+
color: CLX_COLOR_HEX.slate400
|
|
60
|
+
}
|
|
61
|
+
},
|
|
62
|
+
},
|
|
63
|
+
};
|
|
64
|
+
const CLX_CHART_PALETTE = Object.values(CLX_COLOR_HEX);
|
|
65
|
+
/** Versiones con opacidad 20% para backgrounds de áreas/barras */
|
|
66
|
+
const CLX_CHART_PALETTE_ALPHA = CLX_CHART_PALETTE.map(hex => `${hex}33`);
|
|
67
|
+
const AREA_TYPES = ['line', 'radar'];
|
|
68
|
+
const MULTI_SLICE_TYPES = ['pie', 'doughnut', 'polarArea'];
|
|
69
|
+
function shuffled(arr) {
|
|
70
|
+
const a = [...arr];
|
|
71
|
+
for (let i = a.length - 1; i > 0; i--) {
|
|
72
|
+
const j = Math.floor(Math.random() * (i + 1));
|
|
73
|
+
[a[i], a[j]] = [a[j], a[i]];
|
|
74
|
+
}
|
|
75
|
+
return a;
|
|
76
|
+
}
|
|
77
|
+
function applyChartDefaults(type, data) {
|
|
78
|
+
const palette = shuffled(CLX_CHART_PALETTE);
|
|
79
|
+
const paletteAlpha = palette.map(hex => `${hex}33`);
|
|
80
|
+
const datasets = data.datasets.map((ds, i) => {
|
|
81
|
+
const color = palette[i % palette.length];
|
|
82
|
+
const alpha = paletteAlpha[i % paletteAlpha.length];
|
|
83
|
+
if (MULTI_SLICE_TYPES.includes(type)) {
|
|
84
|
+
const count = ds.data.length;
|
|
85
|
+
return {
|
|
86
|
+
...ds,
|
|
87
|
+
backgroundColor: ds.backgroundColor ?? Array.from({ length: count }, (_, j) => palette[j % palette.length]),
|
|
88
|
+
borderColor: ds.borderColor ?? '#fff',
|
|
89
|
+
borderWidth: ds.borderWidth ?? 2,
|
|
90
|
+
};
|
|
91
|
+
}
|
|
92
|
+
if (AREA_TYPES.includes(type)) {
|
|
93
|
+
return {
|
|
94
|
+
...ds,
|
|
95
|
+
borderColor: ds.borderColor ?? color,
|
|
96
|
+
backgroundColor: ds.backgroundColor ?? alpha,
|
|
97
|
+
pointBackgroundColor: ds.pointBackgroundColor ?? color,
|
|
98
|
+
fill: ds.fill ?? (type === 'line' ? false : true),
|
|
99
|
+
tension: ds.tension ?? 0.4,
|
|
100
|
+
};
|
|
101
|
+
}
|
|
102
|
+
return {
|
|
103
|
+
...ds,
|
|
104
|
+
backgroundColor: ds.backgroundColor ?? color,
|
|
105
|
+
borderColor: ds.borderColor ?? color,
|
|
106
|
+
borderWidth: ds.borderWidth ?? 0,
|
|
107
|
+
barPercentage: ds.barPercentage ?? 0.5,
|
|
108
|
+
categoryPercentage: ds.categoryPercentage ?? 0.6,
|
|
109
|
+
};
|
|
110
|
+
});
|
|
111
|
+
return { ...data, datasets };
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
Chart.register(LineController, BarController, PieController, DoughnutController, RadarController, PolarAreaController, CategoryScale, LinearScale, RadialLinearScale, BarElement, LineElement, PointElement, ArcElement, Filler, Tooltip, Legend);
|
|
115
|
+
const NO_SCALE_TYPES = ['doughnut', 'pie', 'polarArea'];
|
|
116
|
+
class ClxChartComponent {
|
|
117
|
+
canvasRef;
|
|
118
|
+
type = input.required(...(ngDevMode ? [{ debugName: "type" }] : /* istanbul ignore next */ []));
|
|
119
|
+
data = input.required(...(ngDevMode ? [{ debugName: "data" }] : /* istanbul ignore next */ []));
|
|
120
|
+
options = input({}, ...(ngDevMode ? [{ debugName: "options" }] : /* istanbul ignore next */ []));
|
|
121
|
+
height = input(300, ...(ngDevMode ? [{ debugName: "height" }] : /* istanbul ignore next */ []));
|
|
122
|
+
ariaLabel = input(...(ngDevMode ? [undefined, { debugName: "ariaLabel" }] : /* istanbul ignore next */ []));
|
|
123
|
+
// SOLUCIÓN AL ERROR: Añadimos el input loading
|
|
124
|
+
loading = input(false, ...(ngDevMode ? [{ debugName: "loading" }] : /* istanbul ignore next */ []));
|
|
125
|
+
_chart;
|
|
126
|
+
_injector = inject(Injector);
|
|
127
|
+
_hostHeight = computed(() => typeof this.height() === 'number' ? `${this.height()}px` : this.height(), ...(ngDevMode ? [{ debugName: "_hostHeight" }] : /* istanbul ignore next */ []));
|
|
128
|
+
ngAfterViewInit() {
|
|
129
|
+
this._createChart();
|
|
130
|
+
effect(() => {
|
|
131
|
+
const currentType = this.type();
|
|
132
|
+
const currentData = this.data();
|
|
133
|
+
if (this._chart) {
|
|
134
|
+
this._chart.config.type = currentType;
|
|
135
|
+
this._chart.data = applyChartDefaults(currentType, currentData);
|
|
136
|
+
this._chart.update();
|
|
137
|
+
}
|
|
138
|
+
}, { injector: this._injector });
|
|
139
|
+
}
|
|
140
|
+
_createChart() {
|
|
141
|
+
const ctx = this.canvasRef.nativeElement.getContext('2d');
|
|
142
|
+
if (!ctx)
|
|
143
|
+
return;
|
|
144
|
+
const type = untracked(() => this.type());
|
|
145
|
+
this._chart = new Chart(ctx, {
|
|
146
|
+
type,
|
|
147
|
+
data: applyChartDefaults(type, untracked(() => this.data())),
|
|
148
|
+
options: { ...(NO_SCALE_TYPES.includes(type) ? CLX_CHART_DEFAULTS_NO_SCALES : CLX_CHART_DEFAULTS), ...untracked(() => this.options()) },
|
|
149
|
+
});
|
|
150
|
+
}
|
|
151
|
+
ngOnDestroy() {
|
|
152
|
+
this._chart?.destroy();
|
|
153
|
+
}
|
|
154
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.15", ngImport: i0, type: ClxChartComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
155
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.15", type: ClxChartComponent, isStandalone: true, selector: "clx-chart", inputs: { type: { classPropertyName: "type", publicName: "type", isSignal: true, isRequired: true, transformFunction: null }, data: { classPropertyName: "data", publicName: "data", isSignal: true, isRequired: true, transformFunction: null }, options: { classPropertyName: "options", publicName: "options", isSignal: true, isRequired: false, transformFunction: null }, height: { classPropertyName: "height", publicName: "height", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null }, loading: { classPropertyName: "loading", publicName: "loading", isSignal: true, isRequired: false, transformFunction: null } }, viewQueries: [{ propertyName: "canvasRef", first: true, predicate: ["canvas"], descendants: true }], ngImport: i0, template: `
|
|
156
|
+
<div class="clx-chart-container" [style.height]="_hostHeight()" [class.clx-loading]="loading()">
|
|
157
|
+
<canvas #canvas role="img" [attr.aria-label]="ariaLabel() || 'Chart'"></canvas>
|
|
158
|
+
|
|
159
|
+
@if (loading()) {
|
|
160
|
+
<div class="clx-chart-loader">
|
|
161
|
+
<div class="animate-spin rounded-full h-8 w-8 border-b-2 border-indigo-500"></div>
|
|
162
|
+
</div>
|
|
163
|
+
}
|
|
164
|
+
</div>
|
|
165
|
+
`, isInline: true, styles: [":host{display:block;width:100%}.clx-chart-container{position:relative;width:100%}canvas{display:block;width:100%!important}.clx-chart-loader{position:absolute;inset:0;background:#fff9;display:flex;align-items:center;justify-content:center;z-index:10;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px)}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
166
|
+
}
|
|
167
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.15", ngImport: i0, type: ClxChartComponent, decorators: [{
|
|
168
|
+
type: Component,
|
|
169
|
+
args: [{ selector: 'clx-chart', standalone: true, template: `
|
|
170
|
+
<div class="clx-chart-container" [style.height]="_hostHeight()" [class.clx-loading]="loading()">
|
|
171
|
+
<canvas #canvas role="img" [attr.aria-label]="ariaLabel() || 'Chart'"></canvas>
|
|
172
|
+
|
|
173
|
+
@if (loading()) {
|
|
174
|
+
<div class="clx-chart-loader">
|
|
175
|
+
<div class="animate-spin rounded-full h-8 w-8 border-b-2 border-indigo-500"></div>
|
|
176
|
+
</div>
|
|
177
|
+
}
|
|
178
|
+
</div>
|
|
179
|
+
`, encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, styles: [":host{display:block;width:100%}.clx-chart-container{position:relative;width:100%}canvas{display:block;width:100%!important}.clx-chart-loader{position:absolute;inset:0;background:#fff9;display:flex;align-items:center;justify-content:center;z-index:10;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px)}\n"] }]
|
|
180
|
+
}], propDecorators: { canvasRef: [{
|
|
181
|
+
type: ViewChild,
|
|
182
|
+
args: ['canvas']
|
|
183
|
+
}], type: [{ type: i0.Input, args: [{ isSignal: true, alias: "type", required: true }] }], data: [{ type: i0.Input, args: [{ isSignal: true, alias: "data", required: true }] }], options: [{ type: i0.Input, args: [{ isSignal: true, alias: "options", required: false }] }], height: [{ type: i0.Input, args: [{ isSignal: true, alias: "height", required: false }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }], loading: [{ type: i0.Input, args: [{ isSignal: true, alias: "loading", required: false }] }] } });
|
|
184
|
+
|
|
185
|
+
/**
|
|
186
|
+
* Generated bundle index. Do not edit.
|
|
187
|
+
*/
|
|
188
|
+
|
|
189
|
+
export { ClxChartComponent };
|
|
190
|
+
//# sourceMappingURL=codexly-ui-charts.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"codexly-ui-charts.mjs","sources":["../../../projects/codexly-ui/charts/lib/chart.config.ts","../../../projects/codexly-ui/charts/lib/clx-chart.component.ts","../../../projects/codexly-ui/charts/codexly-ui-charts.ts"],"sourcesContent":["import type { ChartData, ChartOptions, ChartType } from 'chart.js';\nimport { CLX_COLOR_HEX } from 'codexly-ui';\n\nexport const CLX_CHART_DEFAULTS_NO_SCALES: ChartOptions = {\n responsive: true,\n maintainAspectRatio: false,\n font: {\n family: 'Roboto, ui-sans-serif, system-ui, -apple-system, sans-serif',\n size: 12,\n },\n plugins: {\n legend: { display: true, position: 'top', align: 'center' },\n tooltip: { enabled: true },\n },\n} as ChartOptions;\n\nexport const CLX_CHART_DEFAULTS: ChartOptions = {\n responsive: true,\n maintainAspectRatio: false,\n font: {\n family: 'Roboto, ui-sans-serif, system-ui, -apple-system, sans-serif',\n size: 12,\n },\n plugins: {\n legend: {\n display: true,\n position: 'top',\n align: 'center'\n },\n tooltip: {\n enabled: true\n },\n },\n scales: {\n x: { \n display: true,\n grid: {\n display: false\n },\n border: {\n color: CLX_COLOR_HEX.slate100\n },\n ticks: {\n color: CLX_COLOR_HEX.slate400\n }\n },\n y: {\n display: true,\n beginAtZero: true,\n grid: {\n display: true,\n color: CLX_COLOR_HEX.slate100\n },\n border: {\n color: CLX_COLOR_HEX.slate100\n },\n ticks: {\n color: CLX_COLOR_HEX.slate400\n }\n },\n },\n} as ChartOptions;\n\nexport const CLX_CHART_PALETTE: string[] = Object.values(CLX_COLOR_HEX);\n\n/** Versiones con opacidad 20% para backgrounds de áreas/barras */\nexport const CLX_CHART_PALETTE_ALPHA: string[] = CLX_CHART_PALETTE.map(hex => `${hex}33`);\n\nconst AREA_TYPES: ChartType[] = ['line', 'radar'];\nconst MULTI_SLICE_TYPES: ChartType[] = ['pie', 'doughnut', 'polarArea'];\n\nfunction shuffled(arr: string[]): string[] {\n const a = [...arr];\n for (let i = a.length - 1; i > 0; i--) {\n const j = Math.floor(Math.random() * (i + 1));\n [a[i], a[j]] = [a[j], a[i]];\n }\n return a;\n}\n\nexport function applyChartDefaults(type: ChartType, data: ChartData): ChartData {\n const palette = shuffled(CLX_CHART_PALETTE);\n const paletteAlpha = palette.map(hex => `${hex}33`);\n const datasets = data.datasets.map((ds, i) => {\n const color = palette[i % palette.length];\n const alpha = paletteAlpha[i % paletteAlpha.length];\n\n if (MULTI_SLICE_TYPES.includes(type)) {\n const count = (ds.data as number[]).length;\n return {\n ...ds,\n backgroundColor: ds.backgroundColor ?? Array.from({ length: count }, (_, j) =>\n palette[j % palette.length]\n ),\n borderColor: ds.borderColor ?? '#fff',\n borderWidth: (ds as any).borderWidth ?? 2,\n };\n }\n\n if (AREA_TYPES.includes(type)) {\n return {\n ...ds,\n borderColor: ds.borderColor ?? color,\n backgroundColor: ds.backgroundColor ?? alpha,\n pointBackgroundColor: (ds as any).pointBackgroundColor ?? color,\n fill: (ds as any).fill ?? (type === 'line' ? false : true),\n tension: (ds as any).tension ?? 0.4,\n };\n }\n\n return {\n ...ds,\n backgroundColor: ds.backgroundColor ?? color,\n borderColor: ds.borderColor ?? color,\n borderWidth: (ds as any).borderWidth ?? 0,\n barPercentage: (ds as any).barPercentage ?? 0.5,\n categoryPercentage: (ds as any).categoryPercentage ?? 0.6,\n };\n });\n\n return { ...data, datasets } as ChartData;\n}\n","import {\n AfterViewInit,\n ChangeDetectionStrategy,\n Component,\n computed,\n effect,\n ElementRef,\n inject,\n Injector,\n input,\n OnDestroy,\n untracked,\n ViewChild,\n ViewEncapsulation,\n} from '@angular/core';\n\nimport {\n Chart,\n LineController,\n BarController,\n PieController,\n DoughnutController,\n RadarController,\n PolarAreaController,\n CategoryScale,\n LinearScale,\n RadialLinearScale,\n BarElement,\n LineElement,\n PointElement,\n ArcElement,\n Filler,\n Tooltip,\n Legend,\n type ChartData,\n type ChartOptions,\n} from 'chart.js';\n\nimport { applyChartDefaults, CLX_CHART_DEFAULTS, CLX_CHART_DEFAULTS_NO_SCALES } from './chart.config';\nimport type { ClxChartType } from './clx-chart.types';\n\nChart.register(\n LineController, BarController, PieController,\n DoughnutController, RadarController, PolarAreaController,\n CategoryScale, LinearScale, RadialLinearScale,\n BarElement, LineElement, PointElement, ArcElement,\n Filler, Tooltip, Legend,\n);\n\nconst NO_SCALE_TYPES = ['doughnut', 'pie', 'polarArea'];\n\n@Component({\n selector: 'clx-chart',\n standalone: true,\n template: `\n <div class=\"clx-chart-container\" [style.height]=\"_hostHeight()\" [class.clx-loading]=\"loading()\">\n <canvas #canvas role=\"img\" [attr.aria-label]=\"ariaLabel() || 'Chart'\"></canvas>\n \n @if (loading()) {\n <div class=\"clx-chart-loader\">\n <div class=\"animate-spin rounded-full h-8 w-8 border-b-2 border-indigo-500\"></div>\n </div>\n }\n </div>\n `,\n styles: [`\n :host { display: block; width: 100%; }\n .clx-chart-container { position: relative; width: 100%; }\n canvas { display: block; width: 100% !important; }\n \n .clx-chart-loader {\n position: absolute;\n inset: 0;\n background: rgba(255, 255, 255, 0.6);\n display: flex;\n align-items: center;\n justify-content: center;\n z-index: 10;\n backdrop-filter: blur(2px);\n }\n `],\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class ClxChartComponent implements AfterViewInit, OnDestroy {\n @ViewChild('canvas') canvasRef!: ElementRef<HTMLCanvasElement>;\n\n type = input.required<ClxChartType>();\n data = input.required<ChartData>();\n options = input<ChartOptions>({});\n height = input<number | string>(300);\n ariaLabel = input<string>();\n \n // SOLUCIÓN AL ERROR: Añadimos el input loading\n loading = input<boolean>(false);\n\n private _chart?: Chart;\n private _injector = inject(Injector);\n\n _hostHeight = computed(() => \n typeof this.height() === 'number' ? `${this.height()}px` : this.height()\n );\n\n ngAfterViewInit(): void {\n this._createChart();\n\n effect(() => {\n const currentType = this.type();\n const currentData = this.data();\n\n if (this._chart) {\n (this._chart.config as any).type = currentType;\n this._chart.data = applyChartDefaults(currentType, currentData);\n this._chart.update();\n }\n }, { injector: this._injector });\n }\n\n private _createChart(): void {\n const ctx = this.canvasRef.nativeElement.getContext('2d');\n if (!ctx) return;\n\n const type = untracked(() => this.type());\n this._chart = new Chart(ctx, {\n type,\n data: applyChartDefaults(type, untracked(() => this.data())),\n options: { ...(NO_SCALE_TYPES.includes(type) ? CLX_CHART_DEFAULTS_NO_SCALES : CLX_CHART_DEFAULTS), ...untracked(() => this.options()) },\n });\n }\n\n ngOnDestroy(): void {\n this._chart?.destroy();\n }\n}","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;AAGO,MAAM,4BAA4B,GAAiB;AACxD,IAAA,UAAU,EAAE,IAAI;AAChB,IAAA,mBAAmB,EAAE,KAAK;AAC1B,IAAA,IAAI,EAAE;AACJ,QAAA,MAAM,EAAE,6DAA6D;AACrE,QAAA,IAAI,EAAE,EAAE;AACT,KAAA;AACD,IAAA,OAAO,EAAE;AACP,QAAA,MAAM,EAAG,EAAE,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAE,KAAK,EAAE,QAAQ,EAAE;AAC5D,QAAA,OAAO,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE;AAC3B,KAAA;CACc;AAEV,MAAM,kBAAkB,GAAiB;AAC9C,IAAA,UAAU,EAAE,IAAI;AAChB,IAAA,mBAAmB,EAAE,KAAK;AAC1B,IAAA,IAAI,EAAE;AACJ,QAAA,MAAM,EAAE,6DAA6D;AACrE,QAAA,IAAI,EAAE,EAAE;AACT,KAAA;AACD,IAAA,OAAO,EAAE;AACP,QAAA,MAAM,EAAE;AACN,YAAA,OAAO,EAAE,IAAI;AACb,YAAA,QAAQ,EAAE,KAAK;AACf,YAAA,KAAK,EAAE;AACR,SAAA;AACD,QAAA,OAAO,EAAE;AACP,YAAA,OAAO,EAAE;AACV,SAAA;AACF,KAAA;AACD,IAAA,MAAM,EAAE;AACN,QAAA,CAAC,EAAE;AACD,YAAA,OAAO,EAAE,IAAI;AACb,YAAA,IAAI,EAAE;AACJ,gBAAA,OAAO,EAAE;AACV,aAAA;AACD,YAAA,MAAM,EAAE;gBACN,KAAK,EAAE,aAAa,CAAC;AACtB,aAAA;AACD,Y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