@open3cl/engine 1.8.3 → 1.8.5
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/6.2_surface_sud_equivalente.js +13 -7
- package/6.2_surface_sud_equivalente.spec.js +77 -2
- package/9_emetteur_ch.js +12 -4
- package/9_emetteur_ch.spec.js +336 -249
- package/engine.js +1 -1
- package/package.json +1 -1
|
@@ -5,12 +5,13 @@ import { mois_liste } from './utils.js';
|
|
|
5
5
|
export function calc_sse_j(bv_list, ets, ca, zc, mois) {
|
|
6
6
|
const baiesAdjVeranda = bv_list.filter((bv) => bv.donnee_entree.enum_type_adjacence_id === '10');
|
|
7
7
|
const baiesAdjExt = bv_list.filter((bv) => bv.donnee_entree.enum_type_adjacence_id === '1');
|
|
8
|
+
const sseBaiesExt = baiesAdjExt.reduce((acc, bv) => {
|
|
9
|
+
return acc + getSsd(bv, zc, mois, bv.donnee_intermediaire.sw);
|
|
10
|
+
}, 0);
|
|
8
11
|
|
|
9
12
|
//ets peut etre un tableau vide ou undefined selon les DPE, d'où la vérification ajoutée sur le tableau et sa longueur
|
|
10
13
|
if (!ets || (Array.isArray(ets) && ets.length === 0)) {
|
|
11
|
-
return
|
|
12
|
-
return acc + getSsd(bv, zc, mois, bv.donnee_intermediaire.sw);
|
|
13
|
-
}, 0);
|
|
14
|
+
return sseBaiesExt;
|
|
14
15
|
}
|
|
15
16
|
|
|
16
17
|
// Certaines vérandas sont dupliqués dans les DPE.
|
|
@@ -18,6 +19,15 @@ export function calc_sse_j(bv_list, ets, ca, zc, mois) {
|
|
|
18
19
|
ets = ets[0];
|
|
19
20
|
}
|
|
20
21
|
|
|
22
|
+
/**
|
|
23
|
+
* 6.3 Traitement des espaces tampons solarisés
|
|
24
|
+
* Sse_ver n'est calculée que pour les baies vitrées qui séparent le logement de l'espace tampon
|
|
25
|
+
* (adjacence 10). Sans aucune de ces baies, les apports de l'espace tampon n'entrent pas dans le logement.
|
|
26
|
+
*/
|
|
27
|
+
if (baiesAdjVeranda.length === 0) {
|
|
28
|
+
return sseBaiesExt;
|
|
29
|
+
}
|
|
30
|
+
|
|
21
31
|
const bver = ets.donnee_intermediaire.bver;
|
|
22
32
|
const T = ets.donnee_intermediaire.coef_transparence_ets;
|
|
23
33
|
|
|
@@ -70,10 +80,6 @@ export function calc_sse_j(bv_list, ets, ca, zc, mois) {
|
|
|
70
80
|
*/
|
|
71
81
|
const SseVerandaj = Ssdj + ssIndj * bver;
|
|
72
82
|
|
|
73
|
-
const sseBaiesExt = baiesAdjExt.reduce((acc, bv) => {
|
|
74
|
-
return acc + getSsd(bv, zc, mois, bv.donnee_intermediaire.sw);
|
|
75
|
-
}, 0);
|
|
76
|
-
|
|
77
83
|
return sseBaiesExt + SseVerandaj;
|
|
78
84
|
}
|
|
79
85
|
|
|
@@ -115,10 +115,13 @@ describe('calc_sse_j - surface sud équivalente journalière', () => {
|
|
|
115
115
|
}
|
|
116
116
|
};
|
|
117
117
|
|
|
118
|
+
// Une baie logement / véranda (adjacence 10) est nécessaire pour que Sse_ver soit calculée (issue #140).
|
|
119
|
+
const bvList = [baie({ adjacence: '10', surface: 3, sw: 0.5 })];
|
|
120
|
+
|
|
118
121
|
// orientation 'sud' + inclinaison par défaut 'verticale' => clé 'sud verticale' (c1j = 0.5)
|
|
119
122
|
// coeff = 0.8 * T + 0.024 = 0.664 ; Sstj = 4 * 0.5 * 0.664 = 1.328
|
|
120
|
-
//
|
|
121
|
-
expect(calc_sse_j(
|
|
123
|
+
// Ssdj = 0.8 * (3*0.5*0.5) = 0.6 ; ssInd = 0.728 ; SseVeranda = 0.6 + 0.728 * bver = 0.964
|
|
124
|
+
expect(calc_sse_j(bvList, ets, 'ca1', 'h1a', 'Janvier')).toBeCloseTo(0.964, 10);
|
|
122
125
|
});
|
|
123
126
|
|
|
124
127
|
test('les facteurs fe1/fe2 de la baie extérieure sont appliqués au calcul', () => {
|
|
@@ -130,6 +133,78 @@ describe('calc_sse_j - surface sud équivalente journalière', () => {
|
|
|
130
133
|
});
|
|
131
134
|
});
|
|
132
135
|
|
|
136
|
+
/**
|
|
137
|
+
* Issue #140 : la surface sud équivalente véranda (Sse_ver = Ssd + Ssind * bver) n'est calculée que
|
|
138
|
+
* pour les baies vitrées séparant le logement de l'espace tampon solarisé (adjacence 10).
|
|
139
|
+
* Sans aucune de ces baies, les apports de l'ETS n'entrent pas dans le logement => Sse_ver = 0.
|
|
140
|
+
* @see : Methode_de_calcul_3CL_DPE_2021-338.pdf - §6.3
|
|
141
|
+
*/
|
|
142
|
+
describe('calc_sse_j - espace tampon solarisé sans baie séparant le logement de l’ETS', () => {
|
|
143
|
+
/** Fabrique un espace tampon solarisé avec une baie donnant sur l'extérieur. */
|
|
144
|
+
function espaceTampon({ bver = 0.5, T = 0.8 } = {}) {
|
|
145
|
+
return {
|
|
146
|
+
donnee_intermediaire: { bver, coef_transparence_ets: T },
|
|
147
|
+
baie_ets_collection: { baie_ets: baie({ adjacence: '1', surface: 4, sw: 1 }) }
|
|
148
|
+
};
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
test('ETS avec seulement des baies extérieures : seule la somme des baies adjacence 1 est retenue', () => {
|
|
152
|
+
const bvList = [
|
|
153
|
+
baie({ adjacence: '1', surface: 2, sw: 0.4 }),
|
|
154
|
+
baie({ adjacence: '3', surface: 5, sw: 0.9 }) // adjacence autre => ignorée
|
|
155
|
+
];
|
|
156
|
+
// sseBaiesExt = 2 * 0.5 * 0.4 = 0.4 ; Sse_ver non ajoutée (avant correctif : 0.4 + 0.664)
|
|
157
|
+
expect(calc_sse_j(bvList, espaceTampon(), 'ca1', 'h1a', 'Janvier')).toBeCloseTo(0.4, 10);
|
|
158
|
+
});
|
|
159
|
+
|
|
160
|
+
test('ETS sans baie adjacence 10 : bver et coefficient de transparence sont sans effet', () => {
|
|
161
|
+
const bvList = [baie({ adjacence: '1', surface: 2, sw: 0.4 })];
|
|
162
|
+
const ref = calc_sse_j(bvList, null, 'ca1', 'h1a', 'Janvier');
|
|
163
|
+
|
|
164
|
+
expect(calc_sse_j(bvList, espaceTampon({ bver: 0.9, T: 0.2 }), 'ca1', 'h1a', 'Janvier')).toBe(
|
|
165
|
+
ref
|
|
166
|
+
);
|
|
167
|
+
expect(calc_sse_j(bvList, espaceTampon({ bver: 0.1, T: 0.9 }), 'ca1', 'h1a', 'Janvier')).toBe(
|
|
168
|
+
ref
|
|
169
|
+
);
|
|
170
|
+
});
|
|
171
|
+
|
|
172
|
+
test('ETS sans aucune baie vitrée du logement : surface sud équivalente nulle', () => {
|
|
173
|
+
expect(calc_sse_j([], espaceTampon(), 'ca1', 'h1a', 'Janvier')).toBe(0);
|
|
174
|
+
});
|
|
175
|
+
|
|
176
|
+
test('ETS dupliqué (tableau) sans baie adjacence 10 : même règle, Sse_ver non ajoutée', () => {
|
|
177
|
+
const bvList = [baie({ adjacence: '1', surface: 2, sw: 0.4 })];
|
|
178
|
+
const ets = [espaceTampon(), espaceTampon()];
|
|
179
|
+
expect(calc_sse_j(bvList, ets, 'ca1', 'h1a', 'Janvier')).toBeCloseTo(0.4, 10);
|
|
180
|
+
});
|
|
181
|
+
|
|
182
|
+
test('ETS avec une baie adjacence 10 : Sse_ver toujours calculée (non-régression)', () => {
|
|
183
|
+
const bvList = [
|
|
184
|
+
baie({ adjacence: '10', surface: 3, sw: 0.5 }),
|
|
185
|
+
baie({ adjacence: '1', surface: 2, sw: 0.4 })
|
|
186
|
+
];
|
|
187
|
+
// Ssdj = 0.8 * (3*0.5*0.5) = 0.6 ; Sstj = 4 * 0.5 * 0.664 = 1.328 ; ssInd = 0.728
|
|
188
|
+
// SseVeranda = 0.6 + 0.728 * 0.5 = 0.964 ; sseBaiesExt = 0.4
|
|
189
|
+
// Valeur de référence de régression (calculée avec le vrai module, tables mockées) : 1.364
|
|
190
|
+
expect(calc_sse_j(bvList, espaceTampon(), 'ca1', 'h1a', 'Janvier')).toBeCloseTo(1.364, 9);
|
|
191
|
+
});
|
|
192
|
+
|
|
193
|
+
test('sans ETS : seules les baies extérieures comptent, les baies adjacence 10 sont ignorées', () => {
|
|
194
|
+
const bvList = [
|
|
195
|
+
baie({ adjacence: '10', surface: 3, sw: 0.5 }),
|
|
196
|
+
baie({ adjacence: '1', surface: 2, sw: 0.4 })
|
|
197
|
+
];
|
|
198
|
+
expect(calc_sse_j(bvList, undefined, 'ca1', 'h1a', 'Janvier')).toBeCloseTo(0.4, 10);
|
|
199
|
+
expect(calc_sse_j(bvList, [], 'ca1', 'h1a', 'Janvier')).toBeCloseTo(0.4, 10);
|
|
200
|
+
});
|
|
201
|
+
|
|
202
|
+
test('calc_sse annuel : ETS sans baie adjacence 10 => pas de Sse_ver', () => {
|
|
203
|
+
const bvList = [baie({ adjacence: '1', surface: 2, sw: 0.4 })];
|
|
204
|
+
expect(calc_sse('ca1', 'h1a', bvList, espaceTampon())).toBeCloseTo(0.4, 10);
|
|
205
|
+
});
|
|
206
|
+
});
|
|
207
|
+
|
|
133
208
|
describe('calc_sse - surface sud équivalente annuelle', () => {
|
|
134
209
|
test('agrège la surface sud équivalente sur tous les mois', () => {
|
|
135
210
|
const bvList = [baie({ adjacence: '1', surface: 2, sw: 0.4 })];
|
package/9_emetteur_ch.js
CHANGED
|
@@ -13,10 +13,18 @@ export function rendement_emission(em, rg = 1) {
|
|
|
13
13
|
function tv_rendement_distribution_ch(di, de) {
|
|
14
14
|
let row;
|
|
15
15
|
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
16
|
+
// Pour les 'Autres équipements' (id=41), si le DPE original a déjà un tv_rendement_distribution_ch_id,
|
|
17
|
+
// on conserve cette valeur plutôt que de prendre la première ligne de la table (bug).
|
|
18
|
+
if (de.enum_type_emission_distribution_id === '41' && de.tv_rendement_distribution_ch_id) {
|
|
19
|
+
row = tvsStore.getRendementDistributionChById(de.tv_rendement_distribution_ch_id);
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
if (!row) {
|
|
23
|
+
row = tvsStore.getRendementDistributionCh(
|
|
24
|
+
de.enum_type_emission_distribution_id,
|
|
25
|
+
de.reseau_distribution_isole
|
|
26
|
+
);
|
|
27
|
+
}
|
|
20
28
|
|
|
21
29
|
if (!row && de.tv_rendement_distribution_ch_id) {
|
|
22
30
|
// Find rendement distribution by id if it exists
|
package/9_emetteur_ch.spec.js
CHANGED
|
@@ -1,340 +1,427 @@
|
|
|
1
1
|
import { beforeEach, describe, expect, test, vi } from 'vitest';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
|
-
* Dépendances mockées
|
|
5
|
-
* - `
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
* factice dont on contrôle les méthodes via `vi.hoisted`.
|
|
4
|
+
* Dépendances mockées :
|
|
5
|
+
* - `utils` : utilitaires (tv, bug_for_bug_compat)
|
|
6
|
+
* - `TvsStore` : service d'accès aux tables de valeurs forfaitaires pour les émetteurs de chaleur.
|
|
7
|
+
*
|
|
8
|
+
* `bug_for_bug_compat` est exposé via un getter afin de pouvoir basculer sa valeur par test.
|
|
10
9
|
*/
|
|
11
|
-
const
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
);
|
|
10
|
+
const utilsState = vi.hoisted(() => ({ bugForBugCompat: false }));
|
|
11
|
+
|
|
12
|
+
const mockTvsStore = vi.hoisted(() => ({
|
|
13
|
+
getRendementDistributionCh: vi.fn(),
|
|
14
|
+
getRendementDistributionChById: vi.fn()
|
|
15
|
+
}));
|
|
18
16
|
|
|
19
17
|
vi.mock('./utils.js', () => ({
|
|
20
18
|
set_bug_for_bug_compat: vi.fn(),
|
|
21
19
|
tv: vi.fn(),
|
|
22
20
|
get bug_for_bug_compat() {
|
|
23
|
-
return
|
|
21
|
+
return utilsState.bugForBugCompat;
|
|
24
22
|
}
|
|
25
23
|
}));
|
|
26
24
|
|
|
27
25
|
vi.mock('./core/tv/infrastructure/tvs.store.js', () => ({
|
|
28
|
-
TvsStore: vi.fn(() =>
|
|
29
|
-
getRendementDistributionCh,
|
|
30
|
-
getRendementDistributionChById
|
|
31
|
-
}))
|
|
26
|
+
TvsStore: vi.fn(() => mockTvsStore)
|
|
32
27
|
}));
|
|
33
28
|
|
|
34
29
|
const { rendement_emission, calc_emetteur_ch } = await import('./9_emetteur_ch.js');
|
|
35
30
|
const { tv } = await import('./utils.js');
|
|
36
31
|
|
|
37
32
|
beforeEach(() => {
|
|
33
|
+
mockTvsStore.getRendementDistributionCh.mockReset();
|
|
34
|
+
mockTvsStore.getRendementDistributionChById.mockReset();
|
|
38
35
|
vi.mocked(tv).mockReset();
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
utilState.bug = false;
|
|
36
|
+
utilsState.bugForBugCompat = false;
|
|
37
|
+
vi.spyOn(console, 'error').mockImplementation(() => {});
|
|
42
38
|
});
|
|
43
39
|
|
|
44
40
|
/**
|
|
45
|
-
*
|
|
46
|
-
*
|
|
41
|
+
* Configure le mock `tv` pour renvoyer une ligne par nom de table.
|
|
42
|
+
* Pour `intermittence`, `rows.intermittence` peut être une fonction (matcher) => row.
|
|
47
43
|
*/
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
44
|
+
function mockTv(rows = {}) {
|
|
45
|
+
vi.mocked(tv).mockImplementation((table, matcher) => {
|
|
46
|
+
const row = rows[table];
|
|
47
|
+
return typeof row === 'function' ? row(matcher) : row;
|
|
48
|
+
});
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
/** Retourne les matchers passés à `tv` pour une table donnée. */
|
|
52
|
+
function tvMatchers(table) {
|
|
53
|
+
return vi
|
|
54
|
+
.mocked(tv)
|
|
55
|
+
.mock.calls.filter(([name]) => name === table)
|
|
56
|
+
.map(([, matcher]) => matcher);
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
/**
|
|
60
|
+
* Fabrique un émetteur de chaleur avec les données d'entrée utiles au calcul.
|
|
61
|
+
*/
|
|
62
|
+
function emetteur({
|
|
63
|
+
typeEmissionDistributionId = '1',
|
|
64
|
+
networkIsolated = false,
|
|
65
|
+
tvRendementDistributionChId = null
|
|
66
|
+
}) {
|
|
67
|
+
return {
|
|
68
|
+
donnee_entree: {
|
|
69
|
+
enum_type_emission_distribution_id: typeEmissionDistributionId,
|
|
70
|
+
reseau_distribution_isole: networkIsolated,
|
|
71
|
+
tv_rendement_distribution_ch_id: tvRendementDistributionChId
|
|
72
|
+
},
|
|
73
|
+
donnee_intermediaire: {}
|
|
55
74
|
};
|
|
75
|
+
}
|
|
56
76
|
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
77
|
+
/**
|
|
78
|
+
* Tests pour le calcul du rendement de distribution pour chauffage (9_emetteur_ch.js)
|
|
79
|
+
* Focus sur la correction du bug #170 : conservation du tv_rendement_distribution_ch_id
|
|
80
|
+
* pour type_emission_distribution=41 ('Autres équipements').
|
|
81
|
+
* @see : https://github.com/Open3CL/engine/issues/170
|
|
82
|
+
*/
|
|
83
|
+
describe('tv_rendement_distribution_ch - rendement de distribution CH', () => {
|
|
84
|
+
test("type_emission=41 AVEC tv_rendement_distribution_ch_id=6 : conserve l'ID original", () => {
|
|
85
|
+
// Arrange
|
|
86
|
+
const em = emetteur({
|
|
87
|
+
typeEmissionDistributionId: '41',
|
|
88
|
+
tvRendementDistributionChId: 6
|
|
89
|
+
});
|
|
60
90
|
|
|
61
|
-
|
|
62
|
-
|
|
91
|
+
// Mock : getRendementDistributionChById(6) retourne rd=0.91
|
|
92
|
+
mockTvsStore.getRendementDistributionChById.mockReturnValue({
|
|
93
|
+
rd: '0.91',
|
|
94
|
+
tv_rendement_distribution_ch_id: '6'
|
|
95
|
+
});
|
|
96
|
+
|
|
97
|
+
// Act
|
|
98
|
+
calc_emetteur_ch(em, {}, '1', '1');
|
|
99
|
+
|
|
100
|
+
// Assert
|
|
101
|
+
// Vérification que getRendementDistributionChById a été appelé en premier (court-circuit du bug)
|
|
102
|
+
expect(mockTvsStore.getRendementDistributionChById).toHaveBeenCalledWith(6);
|
|
103
|
+
expect(em.donnee_intermediaire.rendement_distribution).toBeCloseTo(0.91, 10);
|
|
104
|
+
expect(em.donnee_entree.tv_rendement_distribution_ch_id).toBe(6);
|
|
63
105
|
});
|
|
64
|
-
});
|
|
65
106
|
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
return { re: '0.95', tv_rendement_emission_id: '11' };
|
|
72
|
-
}
|
|
73
|
-
if (table === 'rendement_regulation') {
|
|
74
|
-
return { rr: '0.99', tv_rendement_regulation_id: '22' };
|
|
75
|
-
}
|
|
76
|
-
if (table === 'intermittence') {
|
|
77
|
-
return { i0: '0.85', tv_intermittence_id: '33' };
|
|
78
|
-
}
|
|
79
|
-
return null;
|
|
107
|
+
test('type_emission=41 SANS tv_rendement_distribution_ch_id : utilise getRendementDistributionCh', () => {
|
|
108
|
+
// Arrange
|
|
109
|
+
const em = emetteur({
|
|
110
|
+
typeEmissionDistributionId: '41',
|
|
111
|
+
tvRendementDistributionChId: null
|
|
80
112
|
});
|
|
81
|
-
}
|
|
82
113
|
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
tv_rendement_distribution_ch_id: '44'
|
|
114
|
+
// Mock : getRendementDistributionCh retourne rd=0.85
|
|
115
|
+
mockTvsStore.getRendementDistributionCh.mockReturnValue({
|
|
116
|
+
rd: '0.85',
|
|
117
|
+
tv_rendement_distribution_ch_id: '3'
|
|
88
118
|
});
|
|
89
119
|
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
enum_type_emission_distribution_id: '10',
|
|
93
|
-
reseau_distribution_isole: 1
|
|
94
|
-
}
|
|
95
|
-
};
|
|
96
|
-
calc_emetteur_ch(em_ch, { enum_type_installation_id: '1' }, '2', '3');
|
|
120
|
+
// Act
|
|
121
|
+
calc_emetteur_ch(em, {}, '1', '1');
|
|
97
122
|
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
});
|
|
104
|
-
// les identifiants de table sont réécrits en nombres sur la donnée d'entrée
|
|
105
|
-
expect(em_ch.donnee_entree.tv_rendement_distribution_ch_id).toBe(44);
|
|
106
|
-
expect(em_ch.donnee_entree.tv_rendement_emission_id).toBe(11);
|
|
107
|
-
expect(em_ch.donnee_entree.tv_rendement_regulation_id).toBe(22);
|
|
108
|
-
expect(em_ch.donnee_entree.tv_intermittence_id).toBe(33);
|
|
109
|
-
expect(em_ch.donnee_utilisateur).toEqual({});
|
|
123
|
+
// Assert
|
|
124
|
+
// Vérification que getRendementDistributionCh est appelé (fallthrough)
|
|
125
|
+
expect(mockTvsStore.getRendementDistributionCh).toHaveBeenCalledWith('41', false);
|
|
126
|
+
expect(em.donnee_intermediaire.rendement_distribution).toBeCloseTo(0.85, 10);
|
|
127
|
+
expect(em.donnee_entree.tv_rendement_distribution_ch_id).toBe(3);
|
|
110
128
|
});
|
|
111
129
|
|
|
112
|
-
test('
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
130
|
+
test('type_emission=12 (pas 41) : utilise getRendementDistributionCh normalement', () => {
|
|
131
|
+
// Arrange
|
|
132
|
+
const em = emetteur({
|
|
133
|
+
typeEmissionDistributionId: '12',
|
|
134
|
+
tvRendementDistributionChId: 5
|
|
135
|
+
});
|
|
136
|
+
|
|
137
|
+
// Mock : getRendementDistributionCh retourne rd=0.90
|
|
138
|
+
mockTvsStore.getRendementDistributionCh.mockReturnValue({
|
|
139
|
+
rd: '0.90',
|
|
140
|
+
tv_rendement_distribution_ch_id: '5'
|
|
118
141
|
});
|
|
119
142
|
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
143
|
+
// Act
|
|
144
|
+
calc_emetteur_ch(em, {}, '1', '1');
|
|
145
|
+
|
|
146
|
+
// Assert
|
|
147
|
+
// Vérification que getRendementDistributionCh est appelé directement (pas de court-circuit)
|
|
148
|
+
expect(mockTvsStore.getRendementDistributionCh).toHaveBeenCalledWith('12', false);
|
|
149
|
+
expect(em.donnee_intermediaire.rendement_distribution).toBeCloseTo(0.9, 10);
|
|
150
|
+
expect(em.donnee_entree.tv_rendement_distribution_ch_id).toBe(5);
|
|
151
|
+
});
|
|
152
|
+
|
|
153
|
+
test('rendement_emission - calcul du rendement total', () => {
|
|
154
|
+
// Arrange
|
|
155
|
+
const em = {
|
|
156
|
+
donnee_intermediaire: {
|
|
157
|
+
rendement_emission: 0.85,
|
|
158
|
+
rendement_distribution: 0.9,
|
|
159
|
+
rendement_regulation: 0.95
|
|
124
160
|
}
|
|
125
161
|
};
|
|
126
|
-
calc_emetteur_ch(em_ch, { enum_type_installation_id: '1' }, '2', '3');
|
|
127
162
|
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
});
|
|
163
|
+
// Act
|
|
164
|
+
const result = rendement_emission(em);
|
|
131
165
|
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
tv_rendement_distribution_ch_id: '44'
|
|
137
|
-
});
|
|
166
|
+
// Assert
|
|
167
|
+
// rg * re * rd * rr = 1 * 0.85 * 0.9 * 0.95
|
|
168
|
+
expect(result).toBeCloseTo(0.72675, 10);
|
|
169
|
+
});
|
|
138
170
|
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
171
|
+
test('rendement_emission - avec coefficient de régulation différent de 1', () => {
|
|
172
|
+
// Arrange
|
|
173
|
+
const em = {
|
|
174
|
+
donnee_intermediaire: {
|
|
175
|
+
rendement_emission: 0.8,
|
|
176
|
+
rendement_distribution: 0.85,
|
|
177
|
+
rendement_regulation: 0.9
|
|
145
178
|
}
|
|
146
179
|
};
|
|
147
|
-
// map_id === '1' => la classe d'inertie entre dans le matcher
|
|
148
|
-
calc_emetteur_ch(
|
|
149
|
-
em_ch,
|
|
150
|
-
{
|
|
151
|
-
enum_type_installation_id: '1',
|
|
152
|
-
ficheTechniqueComptage: { valeur: '1' }
|
|
153
|
-
},
|
|
154
|
-
'1',
|
|
155
|
-
'7'
|
|
156
|
-
);
|
|
157
180
|
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
181
|
+
// Act
|
|
182
|
+
const result = rendement_emission(em, 0.95);
|
|
183
|
+
|
|
184
|
+
// Assert
|
|
185
|
+
// rg * re * rd * rr = 0.95 * 0.8 * 0.85 * 0.9
|
|
186
|
+
expect(result).toBeCloseTo(0.5814, 10);
|
|
162
187
|
});
|
|
188
|
+
});
|
|
163
189
|
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
190
|
+
describe('tv_rendement_distribution_ch - cas de repli', () => {
|
|
191
|
+
test('type_emission=41 AVEC id inconnu par id : repli sur getRendementDistributionCh', () => {
|
|
192
|
+
const em = emetteur({ typeEmissionDistributionId: '41', tvRendementDistributionChId: 99 });
|
|
193
|
+
mockTvsStore.getRendementDistributionChById.mockReturnValue(undefined);
|
|
194
|
+
mockTvsStore.getRendementDistributionCh.mockReturnValue({
|
|
195
|
+
rd: '0.87',
|
|
196
|
+
tv_rendement_distribution_ch_id: '4'
|
|
169
197
|
});
|
|
170
198
|
|
|
171
|
-
|
|
172
|
-
donnee_entree: { enum_type_emission_distribution_id: '10' }
|
|
173
|
-
};
|
|
174
|
-
// map_id !== '1' => pas de classe d'inertie dans le matcher
|
|
175
|
-
calc_emetteur_ch(em_ch, { enum_type_installation_id: '1' }, '2', '3');
|
|
199
|
+
calc_emetteur_ch(em, {}, '1', '1');
|
|
176
200
|
|
|
177
|
-
|
|
178
|
-
expect(
|
|
179
|
-
expect(
|
|
201
|
+
expect(mockTvsStore.getRendementDistributionChById).toHaveBeenCalledWith(99);
|
|
202
|
+
expect(mockTvsStore.getRendementDistributionCh).toHaveBeenCalledWith('41', false);
|
|
203
|
+
expect(em.donnee_intermediaire.rendement_distribution).toBeCloseTo(0.87, 10);
|
|
204
|
+
expect(em.donnee_entree.tv_rendement_distribution_ch_id).toBe(4);
|
|
180
205
|
});
|
|
181
206
|
|
|
182
|
-
test('aucune ligne
|
|
183
|
-
const
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
207
|
+
test('aucune ligne par critères mais id présent : recherche par id', () => {
|
|
208
|
+
const em = emetteur({
|
|
209
|
+
typeEmissionDistributionId: '12',
|
|
210
|
+
networkIsolated: true,
|
|
211
|
+
tvRendementDistributionChId: 7
|
|
212
|
+
});
|
|
213
|
+
mockTvsStore.getRendementDistributionCh.mockReturnValue(undefined);
|
|
214
|
+
mockTvsStore.getRendementDistributionChById.mockReturnValue({
|
|
215
|
+
rd: '0.93',
|
|
216
|
+
tv_rendement_distribution_ch_id: '7'
|
|
217
|
+
});
|
|
188
218
|
|
|
189
|
-
|
|
190
|
-
donnee_entree: { enum_type_emission_distribution_id: '10' }
|
|
191
|
-
};
|
|
192
|
-
calc_emetteur_ch(em_ch, { enum_type_installation_id: '1' }, '2', '3');
|
|
219
|
+
calc_emetteur_ch(em, {}, '1', '1');
|
|
193
220
|
|
|
194
|
-
|
|
195
|
-
expect(
|
|
196
|
-
expect(
|
|
197
|
-
|
|
221
|
+
expect(mockTvsStore.getRendementDistributionCh).toHaveBeenCalledWith('12', true);
|
|
222
|
+
expect(mockTvsStore.getRendementDistributionChById).toHaveBeenCalledWith(7);
|
|
223
|
+
expect(em.donnee_intermediaire.rendement_distribution).toBeCloseTo(0.93, 10);
|
|
224
|
+
expect(em.donnee_entree.tv_rendement_distribution_ch_id).toBe(7);
|
|
198
225
|
});
|
|
199
226
|
|
|
200
|
-
test(
|
|
201
|
-
|
|
202
|
-
getRendementDistributionCh.mockReturnValue(
|
|
203
|
-
rd: '0.92',
|
|
204
|
-
tv_rendement_distribution_ch_id: '44'
|
|
205
|
-
});
|
|
227
|
+
test('aucune ligne trouvée et pas d’id : erreur et rendement non renseigné', () => {
|
|
228
|
+
const em = emetteur({ typeEmissionDistributionId: '12' });
|
|
229
|
+
mockTvsStore.getRendementDistributionCh.mockReturnValue(undefined);
|
|
206
230
|
|
|
207
|
-
|
|
208
|
-
calc_emetteur_ch(
|
|
209
|
-
em_ch,
|
|
210
|
-
{ enum_type_installation_id: '1', ficheTechniqueComptage: { valeur: 'oui' } },
|
|
211
|
-
'2',
|
|
212
|
-
'3'
|
|
213
|
-
);
|
|
231
|
+
calc_emetteur_ch(em, {}, '1', '1');
|
|
214
232
|
|
|
215
|
-
|
|
216
|
-
expect(
|
|
233
|
+
expect(mockTvsStore.getRendementDistributionChById).not.toHaveBeenCalled();
|
|
234
|
+
expect(em.donnee_intermediaire.rendement_distribution).toBeUndefined();
|
|
235
|
+
expect(em.donnee_entree.tv_rendement_distribution_ch_id).toBeNull();
|
|
236
|
+
expect(console.error).toHaveBeenCalledWith(
|
|
237
|
+
'!! pas de valeur forfaitaire trouvée pour rendement_distribution_ch !!'
|
|
238
|
+
);
|
|
217
239
|
});
|
|
240
|
+
});
|
|
218
241
|
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
242
|
+
describe('tv_rendement_emission / tv_rendement_regulation', () => {
|
|
243
|
+
test('lignes trouvées : renseigne les rendements et les ids de table', () => {
|
|
244
|
+
const em = emetteur({ typeEmissionDistributionId: '12' });
|
|
245
|
+
mockTv({
|
|
246
|
+
rendement_emission: { re: '0.95', tv_rendement_emission_id: '2' },
|
|
247
|
+
rendement_regulation: { rr: '0.9', tv_rendement_regulation_id: '3' }
|
|
224
248
|
});
|
|
225
249
|
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
{
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
expect(
|
|
250
|
+
calc_emetteur_ch(em, {}, '1', '1');
|
|
251
|
+
|
|
252
|
+
expect(tvMatchers('rendement_emission')).toEqual([
|
|
253
|
+
{ enum_type_emission_distribution_id: '12' }
|
|
254
|
+
]);
|
|
255
|
+
expect(tvMatchers('rendement_regulation')).toEqual([
|
|
256
|
+
{ enum_type_emission_distribution_id: '12' }
|
|
257
|
+
]);
|
|
258
|
+
expect(em.donnee_intermediaire.rendement_emission).toBeCloseTo(0.95, 10);
|
|
259
|
+
expect(em.donnee_intermediaire.rendement_regulation).toBeCloseTo(0.9, 10);
|
|
260
|
+
expect(em.donnee_entree.tv_rendement_emission_id).toBe(2);
|
|
261
|
+
expect(em.donnee_entree.tv_rendement_regulation_id).toBe(3);
|
|
236
262
|
});
|
|
237
263
|
|
|
238
|
-
test('
|
|
239
|
-
const
|
|
240
|
-
|
|
241
|
-
if (table === 'rendement_emission') return { re: '0.95', tv_rendement_emission_id: '11' };
|
|
242
|
-
if (table === 'rendement_regulation') return { rr: '0.99', tv_rendement_regulation_id: '22' };
|
|
243
|
-
// intermittence => null
|
|
244
|
-
return null;
|
|
245
|
-
});
|
|
246
|
-
getRendementDistributionCh.mockReturnValue({
|
|
247
|
-
rd: '0.92',
|
|
248
|
-
tv_rendement_distribution_ch_id: '44'
|
|
249
|
-
});
|
|
264
|
+
test('aucune ligne trouvée : erreurs et rendements non renseignés', () => {
|
|
265
|
+
const em = emetteur({ typeEmissionDistributionId: '12' });
|
|
266
|
+
mockTv({});
|
|
250
267
|
|
|
251
|
-
|
|
252
|
-
calc_emetteur_ch(em_ch, { enum_type_installation_id: '1' }, '2', '3');
|
|
268
|
+
calc_emetteur_ch(em, {}, '1', '1');
|
|
253
269
|
|
|
254
|
-
expect(
|
|
255
|
-
expect(
|
|
256
|
-
|
|
270
|
+
expect(em.donnee_intermediaire.rendement_emission).toBeUndefined();
|
|
271
|
+
expect(em.donnee_intermediaire.rendement_regulation).toBeUndefined();
|
|
272
|
+
expect(console.error).toHaveBeenCalledWith(
|
|
273
|
+
'!! pas de valeur forfaitaire trouvée pour rendement_emission !!'
|
|
274
|
+
);
|
|
275
|
+
expect(console.error).toHaveBeenCalledWith(
|
|
276
|
+
'!! pas de valeur forfaitaire trouvée pour rendement_regulation !!'
|
|
277
|
+
);
|
|
257
278
|
});
|
|
258
279
|
});
|
|
259
280
|
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
// 1er appel : matcher basé sur tv_intermittence_id (déduction du comptage)
|
|
272
|
-
if (matcher.tv_intermittence_id !== undefined && !matcher.enum_type_installation_id) {
|
|
273
|
-
return comptageRow;
|
|
274
|
-
}
|
|
275
|
-
return { i0: '0.85', tv_intermittence_id: '33' };
|
|
276
|
-
}
|
|
277
|
-
return null;
|
|
278
|
-
});
|
|
279
|
-
getRendementDistributionCh.mockReturnValue({
|
|
280
|
-
rd: '0.92',
|
|
281
|
-
tv_rendement_distribution_ch_id: '44'
|
|
281
|
+
describe('tv_intermittence - intermittence', () => {
|
|
282
|
+
/**
|
|
283
|
+
* Fabrique un émetteur avec les données d'entrée nécessaires au matcher d'intermittence.
|
|
284
|
+
*/
|
|
285
|
+
function emetteurIntermittence(tvIntermittenceId = 10) {
|
|
286
|
+
const em = emetteur({ typeEmissionDistributionId: '12' });
|
|
287
|
+
Object.assign(em.donnee_entree, {
|
|
288
|
+
enum_type_chauffage_id: '1',
|
|
289
|
+
enum_equipement_intermittence_id: '2',
|
|
290
|
+
enum_type_regulation_id: '3',
|
|
291
|
+
tv_intermittence_id: tvIntermittenceId
|
|
282
292
|
});
|
|
293
|
+
return em;
|
|
283
294
|
}
|
|
284
295
|
|
|
285
|
-
|
|
286
|
-
|
|
296
|
+
/** Ligne de résultat d'intermittence renvoyée par le matcher final (sans tv_intermittence_id). */
|
|
297
|
+
const intermittenceRow = (row) => (matcher) =>
|
|
298
|
+
'tv_intermittence_id' in matcher ? row.lookup : row.result;
|
|
299
|
+
|
|
300
|
+
test('maison individuelle (map_id=1) : matcher complet avec classe d’inertie', () => {
|
|
301
|
+
const em = emetteurIntermittence();
|
|
302
|
+
mockTv({ intermittence: { i0: '0.86', tv_intermittence_id: '42' } });
|
|
303
|
+
|
|
304
|
+
calc_emetteur_ch(em, { enum_type_installation_id: '1' }, '1', '3');
|
|
305
|
+
|
|
306
|
+
expect(tvMatchers('intermittence')).toEqual([
|
|
307
|
+
{
|
|
308
|
+
enum_methode_application_dpe_log_id: '1',
|
|
309
|
+
enum_type_installation_id: '1',
|
|
310
|
+
enum_type_chauffage_id: '1',
|
|
311
|
+
enum_equipement_intermittence_id: '2',
|
|
312
|
+
enum_type_regulation_id: '3',
|
|
313
|
+
enum_type_emission_distribution_id: '12',
|
|
314
|
+
comptage_individuel: 'Absence',
|
|
315
|
+
enum_classe_inertie_id: '3'
|
|
316
|
+
}
|
|
317
|
+
]);
|
|
318
|
+
expect(em.donnee_intermediaire.i0).toBeCloseTo(0.86, 10);
|
|
319
|
+
expect(em.donnee_entree.tv_intermittence_id).toBe(42);
|
|
320
|
+
});
|
|
321
|
+
|
|
322
|
+
test('autre méthode (map_id≠1) : pas de classe d’inertie dans le matcher', () => {
|
|
323
|
+
const em = emetteurIntermittence();
|
|
324
|
+
mockTv({ intermittence: { i0: '0.9', tv_intermittence_id: '43' } });
|
|
325
|
+
|
|
326
|
+
calc_emetteur_ch(em, { enum_type_installation_id: '2' }, '5', '3');
|
|
327
|
+
|
|
328
|
+
const [matcher] = tvMatchers('intermittence');
|
|
329
|
+
expect(matcher).not.toHaveProperty('enum_classe_inertie_id');
|
|
330
|
+
expect(matcher.enum_methode_application_dpe_log_id).toBe('5');
|
|
331
|
+
expect(em.donnee_entree.tv_intermittence_id).toBe(43);
|
|
332
|
+
});
|
|
333
|
+
|
|
334
|
+
test.each([
|
|
335
|
+
['1', 'Présence'],
|
|
336
|
+
['oui', 'Présence'],
|
|
337
|
+
['OUI', 'Présence'],
|
|
338
|
+
['non', 'Absence'],
|
|
339
|
+
['0', 'Absence'],
|
|
340
|
+
[null, 'Absence']
|
|
341
|
+
])('fiche technique comptage valeur=%s → comptage %s', (valeur, attendu) => {
|
|
342
|
+
utilsState.bugForBugCompat = true;
|
|
343
|
+
const em = emetteurIntermittence();
|
|
344
|
+
mockTv({ intermittence: { i0: '0.9', tv_intermittence_id: '1' } });
|
|
345
|
+
|
|
346
|
+
calc_emetteur_ch(
|
|
347
|
+
em,
|
|
348
|
+
{ enum_type_installation_id: '1', ficheTechniqueComptage: { valeur } },
|
|
349
|
+
'1',
|
|
350
|
+
'1'
|
|
351
|
+
);
|
|
352
|
+
|
|
353
|
+
// La fiche technique prime : pas de recherche par tv_intermittence_id même en bug_for_bug_compat
|
|
354
|
+
const matchers = tvMatchers('intermittence');
|
|
355
|
+
expect(matchers).toHaveLength(1);
|
|
356
|
+
expect(matchers[0].comptage_individuel).toBe(attendu);
|
|
287
357
|
});
|
|
288
358
|
|
|
289
|
-
test('
|
|
290
|
-
|
|
291
|
-
|
|
359
|
+
test('bug_for_bug_compat sans fiche : comptage déduit de tv_intermittence_id (Présence)', () => {
|
|
360
|
+
utilsState.bugForBugCompat = true;
|
|
361
|
+
const em = emetteurIntermittence(10);
|
|
362
|
+
mockTv({
|
|
363
|
+
intermittence: intermittenceRow({
|
|
364
|
+
lookup: { comptage_individuel: 'Présence de comptage' },
|
|
365
|
+
result: { i0: '0.95', tv_intermittence_id: '11' }
|
|
366
|
+
})
|
|
367
|
+
});
|
|
292
368
|
|
|
293
|
-
|
|
294
|
-
calc_emetteur_ch(em_ch, { enum_type_installation_id: '1' }, '2', '3');
|
|
369
|
+
calc_emetteur_ch(em, { enum_type_installation_id: '2' }, '1', '1');
|
|
295
370
|
|
|
296
|
-
const
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
expect(
|
|
371
|
+
const matchers = tvMatchers('intermittence');
|
|
372
|
+
expect(matchers[0]).toEqual({ tv_intermittence_id: 10 });
|
|
373
|
+
expect(matchers[1].comptage_individuel).toBe('Présence');
|
|
374
|
+
expect(em.donnee_intermediaire.i0).toBeCloseTo(0.95, 10);
|
|
375
|
+
expect(em.donnee_entree.tv_intermittence_id).toBe(11);
|
|
300
376
|
});
|
|
301
377
|
|
|
302
|
-
test(
|
|
303
|
-
|
|
304
|
-
|
|
378
|
+
test.each([
|
|
379
|
+
['ligne sans comptage_individuel', {}],
|
|
380
|
+
['aucune ligne', undefined]
|
|
381
|
+
])('bug_for_bug_compat sans fiche, %s : comptage Absence', (_, lookup) => {
|
|
382
|
+
utilsState.bugForBugCompat = true;
|
|
383
|
+
const em = emetteurIntermittence(10);
|
|
384
|
+
mockTv({
|
|
385
|
+
intermittence: intermittenceRow({
|
|
386
|
+
lookup,
|
|
387
|
+
result: { i0: '0.9', tv_intermittence_id: '12' }
|
|
388
|
+
})
|
|
389
|
+
});
|
|
305
390
|
|
|
306
|
-
|
|
307
|
-
calc_emetteur_ch(em_ch, { enum_type_installation_id: '1' }, '2', '3');
|
|
391
|
+
calc_emetteur_ch(em, { enum_type_installation_id: '2' }, '1', '1');
|
|
308
392
|
|
|
309
|
-
const
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
expect(matcher.comptage_individuel).toBe('Absence');
|
|
393
|
+
const matchers = tvMatchers('intermittence');
|
|
394
|
+
expect(matchers).toHaveLength(2);
|
|
395
|
+
expect(matchers[1].comptage_individuel).toBe('Absence');
|
|
313
396
|
});
|
|
314
397
|
|
|
315
|
-
test('ligne
|
|
316
|
-
|
|
317
|
-
|
|
398
|
+
test('aucune ligne trouvée : erreur et i0 non renseigné', () => {
|
|
399
|
+
const em = emetteurIntermittence(10);
|
|
400
|
+
mockTv({});
|
|
318
401
|
|
|
319
|
-
|
|
320
|
-
calc_emetteur_ch(em_ch, { enum_type_installation_id: '1' }, '2', '3');
|
|
402
|
+
calc_emetteur_ch(em, { enum_type_installation_id: '1' }, '1', '1');
|
|
321
403
|
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
404
|
+
expect(em.donnee_intermediaire.i0).toBeUndefined();
|
|
405
|
+
expect(em.donnee_entree.tv_intermittence_id).toBe(10);
|
|
406
|
+
expect(console.error).toHaveBeenCalledWith(
|
|
407
|
+
'!! pas de valeur forfaitaire trouvée pour intermittence !!'
|
|
408
|
+
);
|
|
326
409
|
});
|
|
410
|
+
});
|
|
327
411
|
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
412
|
+
describe('calc_emetteur_ch - résultat', () => {
|
|
413
|
+
test('initialise donnee_utilisateur et remplace donnee_intermediaire', () => {
|
|
414
|
+
const em = emetteur({ typeEmissionDistributionId: '12' });
|
|
415
|
+
em.donnee_intermediaire = { ancien: true };
|
|
416
|
+
mockTvsStore.getRendementDistributionCh.mockReturnValue({
|
|
417
|
+
rd: '0.9',
|
|
418
|
+
tv_rendement_distribution_ch_id: '1'
|
|
419
|
+
});
|
|
420
|
+
mockTv({});
|
|
331
421
|
|
|
332
|
-
|
|
333
|
-
calc_emetteur_ch(em_ch, { enum_type_installation_id: '1' }, '2', '3');
|
|
422
|
+
calc_emetteur_ch(em, {}, '1', '1');
|
|
334
423
|
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
.mock.calls.find((c) => c[0] === 'intermittence' && c[1].enum_type_installation_id)[1];
|
|
338
|
-
expect(matcher.comptage_individuel).toBe('Absence');
|
|
424
|
+
expect(em.donnee_intermediaire).not.toHaveProperty('ancien');
|
|
425
|
+
expect(em.donnee_utilisateur).toEqual({});
|
|
339
426
|
});
|
|
340
427
|
});
|
package/engine.js
CHANGED
|
@@ -33,7 +33,7 @@ import getFicheTechnique from './ficheTechnique.js';
|
|
|
33
33
|
import { ProductionENR } from './16.2_production_enr.js';
|
|
34
34
|
import DpeSanitizerService from './dpe-sanitizer.service.js';
|
|
35
35
|
|
|
36
|
-
const LIB_VERSION = '1.8.
|
|
36
|
+
const LIB_VERSION = '1.8.5';
|
|
37
37
|
|
|
38
38
|
const dpeSanitizerService = new DpeSanitizerService();
|
|
39
39
|
|