@tricoteuses/assemblee 3.2.15 → 3.3.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.
@@ -1,5 +1,5 @@
1
1
  import { r as e } from "./amendements-DmjkxpwG.js";
2
- import { An as t, Dn as n, Dt as r, En as i, O as a, On as o, Q as s, Rt as c, Xr as l, in as u, jn as d, kn as f, l as p } from "./scrutins-D1qWLlRT.js";
2
+ import { Fn as t, In as n, Mn as r, Mt as i, Nn as a, O as o, Pn as s, Q as c, Ut as l, jn as u, l as d, ln as f, ti as p } from "./scrutins-CcBKz4TE.js";
3
3
  import { getChangedFilesSinceCommit as m } from "./git.js";
4
4
  import h from "node:assert";
5
5
  import g from "fs-extra";
@@ -31,7 +31,7 @@ var x = {
31
31
  filename: "AMO10_deputes_actifs_mandats_actifs_organes_XVII.json",
32
32
  name: "AMO10_deputes_actifs_mandats_actifs_organes_XVII",
33
33
  ignoreForWeb: !0,
34
- legislature: l.DixSept,
34
+ legislature: p.DixSept,
35
35
  repairZip: G,
36
36
  structure: v.SegmentedFiles,
37
37
  title: "Députés actifs et organes de la XVIIème législature",
@@ -41,7 +41,7 @@ var x = {
41
41
  filename: "AMO10_deputes_actifs_mandats_actifs_organes_XVI.json",
42
42
  name: "AMO10_deputes_actifs_mandats_actifs_organes_XVI",
43
43
  ignoreForWeb: !0,
44
- legislature: l.Seize,
44
+ legislature: p.Seize,
45
45
  repairZip: G,
46
46
  structure: v.SegmentedFiles,
47
47
  title: "Députés actifs et organes de la XVIème législature",
@@ -51,7 +51,7 @@ var x = {
51
51
  filename: "AMO10_deputes_actifs_mandats_actifs_organes_XV.json",
52
52
  name: "AMO10_deputes_actifs_mandats_actifs_organes_XV",
53
53
  ignoreForWeb: !0,
54
- legislature: l.Quinze,
54
+ legislature: p.Quinze,
55
55
  repairZip: G,
56
56
  structure: v.SegmentedFiles,
57
57
  title: "Députés actifs et organes de la XVème législature",
@@ -61,7 +61,7 @@ var x = {
61
61
  filename: "AMO20_dep_sen_min_tous_mandats_et_organes_XVII.json",
62
62
  name: "AMO20_dep_sen_min_tous_mandats_et_organes_XVII",
63
63
  ignoreForWeb: !0,
64
- legislature: l.DixSept,
64
+ legislature: p.DixSept,
65
65
  repairZip: G,
66
66
  structure: v.SegmentedFiles,
67
67
  title: "Acteurs et organes de la XVIIème législature",
@@ -71,7 +71,7 @@ var x = {
71
71
  filename: "AMO20_dep_sen_min_tous_mandats_et_organes_XVI.json",
72
72
  name: "AMO20_dep_sen_min_tous_mandats_et_organes_XVI",
73
73
  ignoreForWeb: !0,
74
- legislature: l.Seize,
74
+ legislature: p.Seize,
75
75
  repairZip: G,
76
76
  structure: v.SegmentedFiles,
77
77
  title: "Acteurs et organes de la XVIème législature",
@@ -81,7 +81,7 @@ var x = {
81
81
  filename: "AMO20_dep_sen_min_tous_mandats_et_organes_XV.json",
82
82
  name: "AMO20_dep_sen_min_tous_mandats_et_organes_XV",
83
83
  ignoreForWeb: !0,
84
- legislature: l.Quinze,
84
+ legislature: p.Quinze,
85
85
  repairZip: G,
86
86
  structure: v.SegmentedFiles,
87
87
  title: "Acteurs et organes de la XVème législature",
@@ -91,7 +91,7 @@ var x = {
91
91
  filename: "AMO20_dep_sen_min_tous_mandats_et_organes_XIV.json",
92
92
  name: "AMO20_dep_sen_min_tous_mandats_et_organes_XIV",
93
93
  ignoreForWeb: !0,
94
- legislature: l.Quatorze,
94
+ legislature: p.Quatorze,
95
95
  structure: v.SingleFile,
96
96
  title: "Acteurs et organes de la XIVème législature",
97
97
  url: "https://data.assemblee-nationale.fr/static/openData/repository/14/amo/deputes_senateurs_ministres_legislatures_XIV/AMO20_dep_sen_min_tous_mandats_et_organes_XIV.json.zip"
@@ -99,7 +99,7 @@ var x = {
99
99
  {
100
100
  filename: "AMO30_tous_acteurs_tous_mandats_tous_organes_historique.json",
101
101
  name: "AMO30_tous_acteurs_tous_mandats_tous_organes_historique",
102
- legislature: l.All,
102
+ legislature: p.All,
103
103
  repairZip: G,
104
104
  structure: v.SegmentedFiles,
105
105
  title: "Historique de tous les acteurs et organes depuis la XIème législature",
@@ -109,7 +109,7 @@ var x = {
109
109
  filename: "AMO40_deputes_actifs_mandats_actifs_organes_divises_XVII.json",
110
110
  name: "AMO40_deputes_actifs_mandats_actifs_organes_divises_XVII",
111
111
  ignoreForWeb: !0,
112
- legislature: l.DixSept,
112
+ legislature: p.DixSept,
113
113
  repairZip: async (e, t) => {
114
114
  let n = _.join(t, e.filename);
115
115
  await g.pathExists(n) && await g.remove(n), await g.mkdir(n), await g.pathExists(_.join(t, `${e.filename}.temp`, "acteur")) && await g.move(_.join(t, `${e.filename}.temp`, "acteur"), _.join(n, "acteur")), await g.move(_.join(t, `${e.filename}.temp`, "organe"), _.join(n, "organe"));
@@ -122,7 +122,7 @@ var x = {
122
122
  filename: "AMO40_deputes_actifs_mandats_actifs_organes_divises_XVI.json",
123
123
  name: "AMO40_deputes_actifs_mandats_actifs_organes_divises_XVI",
124
124
  ignoreForWeb: !0,
125
- legislature: l.Seize,
125
+ legislature: p.Seize,
126
126
  repairZip: async (e, t) => {
127
127
  let n = _.join(t, e.filename);
128
128
  await g.pathExists(n) && await g.remove(n), await g.mkdir(n), await g.pathExists(_.join(t, `${e.filename}.temp`, "acteur")) && await g.move(_.join(t, `${e.filename}.temp`, "acteur"), _.join(n, "acteur")), await g.move(_.join(t, `${e.filename}.temp`, "organe"), _.join(n, "organe"));
@@ -135,7 +135,7 @@ var x = {
135
135
  filename: "AMO40_deputes_actifs_mandats_actifs_organes_divises_XV.json",
136
136
  name: "AMO40_deputes_actifs_mandats_actifs_organes_divises_XV",
137
137
  ignoreForWeb: !0,
138
- legislature: l.Quinze,
138
+ legislature: p.Quinze,
139
139
  repairZip: async (e, t) => {
140
140
  let n = _.join(t, e.filename);
141
141
  await g.pathExists(n) && await g.remove(n), await g.mkdir(n), await g.move(_.join(t, `${e.filename}.temp`, "acteur"), _.join(n, "acteur")), await g.move(_.join(t, `${e.filename}.temp`, "organe"), _.join(n, "organe"));
@@ -148,7 +148,7 @@ var x = {
148
148
  filename: "AMO50_acteurs_mandats_organes_divises_XVII.json",
149
149
  name: "AMO50_acteurs_mandats_organes_divises_XVII",
150
150
  ignoreForWeb: !0,
151
- legislature: l.DixSept,
151
+ legislature: p.DixSept,
152
152
  repairZip: async (e, t) => {
153
153
  let n = _.join(t, e.filename);
154
154
  await g.pathExists(n) && await g.remove(n), await g.mkdir(n), await g.move(_.join(t, `${e.filename}.temp`, "mandat"), _.join(n, "mandat")), await g.move(_.join(t, `${e.filename}.temp`, "acteur"), _.join(n, "acteur")), await g.move(_.join(t, `${e.filename}.temp`, "organe"), _.join(n, "organe"));
@@ -161,7 +161,7 @@ var x = {
161
161
  filename: "AMO50_acteurs_mandats_organes_divises_XVI.json",
162
162
  name: "AMO50_acteurs_mandats_organes_divises_XVI",
163
163
  ignoreForWeb: !0,
164
- legislature: l.Seize,
164
+ legislature: p.Seize,
165
165
  repairZip: async (e, t) => {
166
166
  let n = _.join(t, e.filename);
167
167
  await g.pathExists(n) && await g.remove(n), await g.mkdir(n), await g.move(_.join(t, `${e.filename}.temp`, "mandat"), _.join(n, "mandat")), await g.move(_.join(t, `${e.filename}.temp`, "acteur"), _.join(n, "acteur")), await g.move(_.join(t, `${e.filename}.temp`, "organe"), _.join(n, "organe"));
@@ -174,7 +174,7 @@ var x = {
174
174
  filename: "AMO50_acteurs_mandats_organes_divises_XV.json",
175
175
  name: "AMO50_acteurs_mandats_organes_divises_XV",
176
176
  ignoreForWeb: !0,
177
- legislature: l.Quinze,
177
+ legislature: p.Quinze,
178
178
  repairZip: async (e, t) => {
179
179
  let n = _.join(t, e.filename);
180
180
  await g.pathExists(n) && await g.remove(n), await g.mkdir(n), await g.move(_.join(t, `${e.filename}.temp`, "mandat"), _.join(n, "mandat")), await g.move(_.join(t, `${e.filename}.temp`, "acteur"), _.join(n, "acteur")), await g.move(_.join(t, `${e.filename}.temp`, "organe"), _.join(n, "organe"));
@@ -188,7 +188,7 @@ var x = {
188
188
  {
189
189
  filename: "Agenda_XVII.json",
190
190
  name: "Agenda_XVII",
191
- legislature: l.DixSept,
191
+ legislature: p.DixSept,
192
192
  repairZip: G,
193
193
  structure: v.SegmentedFiles,
194
194
  title: "Agenda de la XVIIème législature",
@@ -197,7 +197,7 @@ var x = {
197
197
  {
198
198
  filename: "Agenda_XVI.json",
199
199
  name: "Agenda_XVI",
200
- legislature: l.Seize,
200
+ legislature: p.Seize,
201
201
  repairZip: G,
202
202
  structure: v.SegmentedFiles,
203
203
  title: "Agenda de la XVIème législature",
@@ -206,7 +206,7 @@ var x = {
206
206
  {
207
207
  filename: "Agenda_XV.json",
208
208
  name: "Agenda_XV",
209
- legislature: l.Quinze,
209
+ legislature: p.Quinze,
210
210
  repairZip: G,
211
211
  structure: v.SegmentedFiles,
212
212
  title: "Agenda de la XVème législature",
@@ -215,7 +215,7 @@ var x = {
215
215
  {
216
216
  filename: "Agenda_XIV.json",
217
217
  name: "Agenda_XIV",
218
- legislature: l.Quatorze,
218
+ legislature: p.Quatorze,
219
219
  structure: v.SingleFile,
220
220
  title: "Agenda de la XIVème législature",
221
221
  url: "https://data.assemblee-nationale.fr/static/openData/repository/14/vp/reunions/Agenda_XIV.json.zip"
@@ -225,7 +225,7 @@ var x = {
225
225
  {
226
226
  filename: "Amendements_XVII.json",
227
227
  name: "Amendements_XVII",
228
- legislature: l.DixSept,
228
+ legislature: p.DixSept,
229
229
  repairZip: G,
230
230
  structure: v.SegmentedFiles,
231
231
  title: "Amendements de la XVIIème législature",
@@ -234,7 +234,7 @@ var x = {
234
234
  {
235
235
  filename: "Amendements_XVI.json",
236
236
  name: "Amendements_XVI",
237
- legislature: l.Seize,
237
+ legislature: p.Seize,
238
238
  repairZip: G,
239
239
  structure: v.SegmentedFiles,
240
240
  title: "Amendements de la XVIème législature",
@@ -243,7 +243,7 @@ var x = {
243
243
  {
244
244
  filename: "Amendements_XV.json",
245
245
  name: "Amendements_XV",
246
- legislature: l.Quinze,
246
+ legislature: p.Quinze,
247
247
  repairZip: G,
248
248
  structure: v.SegmentedFiles,
249
249
  title: "Amendements de la XVème législature",
@@ -254,7 +254,7 @@ var x = {
254
254
  {
255
255
  filename: "Dossiers_Legislatifs_XVII.json",
256
256
  name: "Dossiers_Legislatifs_XVII",
257
- legislature: l.DixSept,
257
+ legislature: p.DixSept,
258
258
  repairZip: G,
259
259
  structure: v.SegmentedFiles,
260
260
  title: "Dossiers législatifs de la XVIIème législature",
@@ -263,7 +263,7 @@ var x = {
263
263
  {
264
264
  filename: "Dossiers_Legislatifs_XVI.json",
265
265
  name: "Dossiers_Legislatifs_XVI",
266
- legislature: l.Seize,
266
+ legislature: p.Seize,
267
267
  repairZip: G,
268
268
  structure: v.SegmentedFiles,
269
269
  title: "Dossiers législatifs de la XVIème législature",
@@ -272,7 +272,7 @@ var x = {
272
272
  {
273
273
  filename: "Dossiers_Legislatifs_XV.json",
274
274
  name: "Dossiers_Legislatifs_XV",
275
- legislature: l.Quinze,
275
+ legislature: p.Quinze,
276
276
  repairZip: G,
277
277
  structure: v.SegmentedFiles,
278
278
  title: "Dossiers législatifs de la XVème législature",
@@ -281,7 +281,7 @@ var x = {
281
281
  {
282
282
  filename: "Dossiers_Legislatifs_XIV.json",
283
283
  name: "Dossiers_Legislatifs_XIV",
284
- legislature: l.Quatorze,
284
+ legislature: p.Quatorze,
285
285
  structure: v.SingleFile,
286
286
  title: "Dossiers législatifs de la XIVème législature",
287
287
  url: "https://data.assemblee-nationale.fr/static/openData/repository/14/loi/dossiers_legislatifs/Dossiers_Legislatifs_XIV.json.zip"
@@ -291,7 +291,7 @@ var x = {
291
291
  {
292
292
  filename: "Scrutins_XVII.json",
293
293
  name: "Scrutins_XVII",
294
- legislature: l.DixSept,
294
+ legislature: p.DixSept,
295
295
  repairZip: G,
296
296
  structure: v.SegmentedFiles,
297
297
  title: "Scrutins de la XVIIème législature",
@@ -300,7 +300,7 @@ var x = {
300
300
  {
301
301
  filename: "Scrutins_XVI.json",
302
302
  name: "Scrutins_XVI",
303
- legislature: l.Seize,
303
+ legislature: p.Seize,
304
304
  repairZip: G,
305
305
  structure: v.SegmentedFiles,
306
306
  title: "Scrutins de la XVIème législature",
@@ -309,7 +309,7 @@ var x = {
309
309
  {
310
310
  filename: "Scrutins_XV.json",
311
311
  name: "Scrutins_XV",
312
- legislature: l.Quinze,
312
+ legislature: p.Quinze,
313
313
  repairZip: G,
314
314
  structure: v.SegmentedFiles,
315
315
  title: "Scrutins de la XVème législature",
@@ -318,7 +318,7 @@ var x = {
318
318
  {
319
319
  filename: "Scrutins_XIV.json",
320
320
  name: "Scrutins_XIV",
321
- legislature: l.Quatorze,
321
+ legislature: p.Quatorze,
322
322
  structure: v.SingleFile,
323
323
  title: "Scrutins de la XIVème législature",
324
324
  url: "https://data.assemblee-nationale.fr/static/openData/repository/14/loi/scrutins/Scrutins_XIV.json.zip"
@@ -328,7 +328,7 @@ var x = {
328
328
  {
329
329
  filename: "Questions_ecrites_XVII.json",
330
330
  name: "Questions_ecrites_XVII",
331
- legislature: l.DixSept,
331
+ legislature: p.DixSept,
332
332
  repairZip: G,
333
333
  structure: v.SegmentedFiles,
334
334
  title: "Questions écrites de la XVIIème législature",
@@ -337,7 +337,7 @@ var x = {
337
337
  {
338
338
  filename: "Questions_ecrites_XVI.json",
339
339
  name: "Questions_ecrites_XVI",
340
- legislature: l.Seize,
340
+ legislature: p.Seize,
341
341
  repairZip: G,
342
342
  structure: v.SegmentedFiles,
343
343
  title: "Questions écrites de la XVIème législature",
@@ -346,7 +346,7 @@ var x = {
346
346
  {
347
347
  filename: "Questions_gouvernement_XVII.json",
348
348
  name: "Questions_gouvernement_XVII",
349
- legislature: l.DixSept,
349
+ legislature: p.DixSept,
350
350
  repairZip: G,
351
351
  structure: v.SegmentedFiles,
352
352
  title: "Questions au gouvernement de la XVIIème législature",
@@ -355,7 +355,7 @@ var x = {
355
355
  {
356
356
  filename: "Questions_gouvernement_XVI.json",
357
357
  name: "Questions_gouvernement_XVI",
358
- legislature: l.Seize,
358
+ legislature: p.Seize,
359
359
  repairZip: G,
360
360
  structure: v.SegmentedFiles,
361
361
  title: "Questions au gouvernement de la XVIème législature",
@@ -364,7 +364,7 @@ var x = {
364
364
  {
365
365
  filename: "Questions_orales_XVII.json",
366
366
  name: "Questions_orales_XVII",
367
- legislature: l.DixSept,
367
+ legislature: p.DixSept,
368
368
  repairZip: G,
369
369
  structure: v.SegmentedFiles,
370
370
  title: "Questions orales sans débats de la XVIIème législature",
@@ -373,7 +373,7 @@ var x = {
373
373
  {
374
374
  filename: "Questions_orales_XVI.json",
375
375
  name: "Questions_orales_XVI",
376
- legislature: l.Seize,
376
+ legislature: p.Seize,
377
377
  repairZip: G,
378
378
  structure: v.SegmentedFiles,
379
379
  title: "Questions orales sans débats de la XVIème législature",
@@ -384,7 +384,7 @@ var x = {
384
384
  {
385
385
  filename: "Comptes_Rendus_Seances_XVII.xml",
386
386
  name: "Comptes_Rendus_Seances_XVII",
387
- legislature: l.DixSept,
387
+ legislature: p.DixSept,
388
388
  repairZip: async (e, t) => {
389
389
  let n = _.join(t, e.filename);
390
390
  await g.pathExists(n) && await g.remove(n), await g.move(_.join(t, `${e.filename}.temp`, "xml"), n);
@@ -396,7 +396,7 @@ var x = {
396
396
  {
397
397
  filename: "Comptes_Rendus_Seances_XVI.xml",
398
398
  name: "Comptes_Rendus_Seances_XVI",
399
- legislature: l.Seize,
399
+ legislature: p.Seize,
400
400
  repairZip: async (e, t) => {
401
401
  let n = _.join(t, e.filename);
402
402
  await g.pathExists(n) && await g.remove(n), await g.move(_.join(t, `${e.filename}.temp`, "xml"), n);
@@ -408,7 +408,7 @@ var x = {
408
408
  {
409
409
  filename: "Comptes_Rendus_Commissions_XVII.xml",
410
410
  name: "Comptes_Rendus_Commissions_XVII",
411
- legislature: l.DixSept,
411
+ legislature: p.DixSept,
412
412
  structure: v.SegmentedFiles,
413
413
  title: "Comptes rendus des commissions de la XVIIème législature"
414
414
  }
@@ -452,10 +452,10 @@ function* S(e, t, n, r, i, { log: a = !1, noValidation: o = !1, sinceCommits: s
452
452
  }
453
453
  function C(e, t) {
454
454
  let n = Array.isArray(e) ? e : e === void 0 ? [] : [e];
455
- return e === void 0 || n.includes(0) || t.legislature === l.All ? !0 : n.includes(t.legislature);
455
+ return e === void 0 || n.includes(0) || t.legislature === p.All ? !0 : n.includes(t.legislature);
456
456
  }
457
457
  function* w(e, t, n = {}, r) {
458
- for (let { datasetLegislature: i, item: a, filePath: o, gitStatus: s } of S(e, t, r ?? x.acteursEtOrganes, u.toActeur, ["acteurs"], n)) yield {
458
+ for (let { datasetLegislature: i, item: a, filePath: o, gitStatus: s } of S(e, t, r ?? x.acteursEtOrganes, f.toActeur, ["acteurs"], n)) yield {
459
459
  acteur: a,
460
460
  datasetLegislature: i,
461
461
  filePath: o,
@@ -463,7 +463,7 @@ function* w(e, t, n = {}, r) {
463
463
  };
464
464
  }
465
465
  function* T(e, t, n = {}, r) {
466
- for (let { item: i, datasetLegislature: a, filePath: o, gitStatus: s } of S(e, t, r ?? x.acteursEtOrganes, u.toOrgane, ["organes"], n)) yield {
466
+ for (let { item: i, datasetLegislature: a, filePath: o, gitStatus: s } of S(e, t, r ?? x.acteursEtOrganes, f.toOrgane, ["organes"], n)) yield {
467
467
  organe: i,
468
468
  datasetLegislature: a,
469
469
  filePath: o,
@@ -479,23 +479,23 @@ function* E(t, n, r = {}, i) {
479
479
  };
480
480
  }
481
481
  function* D(e, t, n = {}, r) {
482
- for (let { item: i, datasetLegislature: a, filePath: o, gitStatus: c } of S(e, t, r ?? x.dossiersLegislatifs, s.toDocument, ["documents"], n)) yield {
482
+ for (let { item: i, datasetLegislature: a, filePath: o, gitStatus: s } of S(e, t, r ?? x.dossiersLegislatifs, c.toDocument, ["documents"], n)) yield {
483
483
  document: i,
484
484
  datasetLegislature: a,
485
485
  filePath: o,
486
- ...c && { gitStatus: c }
486
+ ...s && { gitStatus: s }
487
487
  };
488
488
  }
489
489
  function* O(e, t, n = {}, r) {
490
- for (let { item: i, datasetLegislature: a, filePath: o, gitStatus: c } of S(e, t, r ?? x.dossiersLegislatifs, s.toDossierParlementaire, ["dossiers"], n)) yield {
490
+ for (let { item: i, datasetLegislature: a, filePath: o, gitStatus: s } of S(e, t, r ?? x.dossiersLegislatifs, c.toDossierParlementaire, ["dossiers"], n)) yield {
491
491
  dossierParlementaire: i,
492
492
  datasetLegislature: a,
493
493
  filePath: o,
494
- ...c && { gitStatus: c }
494
+ ...s && { gitStatus: s }
495
495
  };
496
496
  }
497
497
  function* k(e, t, n = {}, r) {
498
- for (let { item: i, datasetLegislature: a, filePath: o, gitStatus: s } of S(e, t, r ?? x.agendas, c.toReunion, [], n)) yield {
498
+ for (let { item: i, datasetLegislature: a, filePath: o, gitStatus: s } of S(e, t, r ?? x.agendas, l.toReunion, [], n)) yield {
499
499
  reunion: i,
500
500
  datasetLegislature: a,
501
501
  filePath: o,
@@ -503,7 +503,7 @@ function* k(e, t, n = {}, r) {
503
503
  };
504
504
  }
505
505
  function* A(e, t, n = {}, r) {
506
- for (let { item: i, datasetLegislature: a, filePath: o, gitStatus: s } of S(e, t, r ?? x.scrutins, p.toScrutin, [], n)) yield {
506
+ for (let { item: i, datasetLegislature: a, filePath: o, gitStatus: s } of S(e, t, r ?? x.scrutins, d.toScrutin, [], n)) yield {
507
507
  scrutin: i,
508
508
  datasetLegislature: a,
509
509
  filePath: o,
@@ -511,55 +511,55 @@ function* A(e, t, n = {}, r) {
511
511
  };
512
512
  }
513
513
  function* j(e, t, n = {}, r) {
514
- for (let { item: i, datasetLegislature: o, filePath: s, gitStatus: c } of S(e, t, r ?? x.questions, a.toQuestion, [], n)) yield {
514
+ for (let { item: i, datasetLegislature: a, filePath: s, gitStatus: c } of S(e, t, r ?? x.questions, o.toQuestion, [], n)) yield {
515
515
  question: i,
516
- datasetLegislature: o,
516
+ datasetLegislature: a,
517
517
  filePath: s,
518
518
  ...c && { gitStatus: c }
519
519
  };
520
520
  }
521
- function* M(e, t, n = {}, i) {
522
- for (let { item: a, datasetLegislature: o, filePath: s, gitStatus: c } of S(e, t, i ?? x.comptesRendus, r.toCompteRendu, [], n)) yield {
521
+ function* M(e, t, n = {}, r) {
522
+ for (let { item: a, datasetLegislature: o, filePath: s, gitStatus: c } of S(e, t, r ?? x.comptesRendus, i.toCompteRendu, [], n)) yield {
523
523
  compteRendu: a,
524
524
  datasetLegislature: o,
525
525
  filePath: s,
526
526
  ...c && { gitStatus: c }
527
527
  };
528
528
  }
529
- function N(t, n, i, { log: o = !1 } = {}) {
530
- let d = {}, f = {};
529
+ function N(t, n, r, { log: a = !1 } = {}) {
530
+ let s = {}, u = {};
531
531
  if (n & y.ActeursEtOrganes) for (let e of x.acteursEtOrganes) {
532
- if (e.ignoreForWeb || i !== l.All && e.legislature !== l.All && i !== e.legislature) continue;
532
+ if (e.ignoreForWeb || r !== p.All && e.legislature !== p.All && r !== e.legislature) continue;
533
533
  let n = _.join(t, e.filename.replace(/\.json$/, "_nettoye"));
534
534
  for (let e of b(n, ["acteurs"])) {
535
535
  if (!e[e.length - 1].endsWith(".json")) continue;
536
536
  let t = _.join(n, ...e);
537
- o && console.log(`Loading file: ${t}…`);
538
- let r = g.readFileSync(t, { encoding: "utf8" }), i = u.toActeur(r);
539
- d[i.uid] === void 0 && (d[i.uid] = i);
537
+ a && console.log(`Loading file: ${t}…`);
538
+ let r = g.readFileSync(t, { encoding: "utf8" }), i = f.toActeur(r);
539
+ s[i.uid] === void 0 && (s[i.uid] = i);
540
540
  }
541
541
  for (let e of b(n, ["organes"])) {
542
542
  if (!e[e.length - 1].endsWith(".json")) continue;
543
543
  let t = _.join(n, ...e);
544
- o && console.log(`Loading file: ${t}…`);
545
- let r = g.readFileSync(t, { encoding: "utf8" }), i = u.toOrgane(r);
546
- f[i.uid] === void 0 && (f[i.uid] = i);
544
+ a && console.log(`Loading file: ${t}…`);
545
+ let r = g.readFileSync(t, { encoding: "utf8" }), i = f.toOrgane(r);
546
+ u[i.uid] === void 0 && (u[i.uid] = i);
547
547
  }
548
548
  }
549
549
  let m = {}, h = {}, v = {};
550
550
  if (n & y.Agendas) for (let e of x.agendas) {
551
- if (e.ignoreForWeb || i !== l.All && e.legislature !== l.All && i !== e.legislature) continue;
551
+ if (e.ignoreForWeb || r !== p.All && e.legislature !== p.All && r !== e.legislature) continue;
552
552
  let n = _.join(t, e.filename.replace(/\.json$/, "_nettoye"));
553
553
  for (let e of b(n)) {
554
554
  if (!e[e.length - 1].endsWith(".json")) continue;
555
555
  let t = _.join(n, ...e);
556
- o && console.log(`Loading file: ${t}…`);
557
- let r = g.readFileSync(t, { encoding: "utf8" }), i = c.toReunion(r);
556
+ a && console.log(`Loading file: ${t}…`);
557
+ let r = g.readFileSync(t, { encoding: "utf8" }), i = l.toReunion(r);
558
558
  m[i.uid] === void 0 && (m[i.uid] = i);
559
- let a = i.timestampDebut.toISOString().split("T")[0], s = h[a];
560
- s === void 0 && (s = h[a] = []), s.push(i);
561
- let l = i.odj;
562
- if (l !== void 0) for (let e of l.pointsOdj || []) for (let t of e.dossiersLegislatifsRefs || []) {
559
+ let o = i.timestampDebut.toISOString().split("T")[0], s = h[o];
560
+ s === void 0 && (s = h[o] = []), s.push(i);
561
+ let c = i.odj;
562
+ if (c !== void 0) for (let e of c.pointsOdj || []) for (let t of e.dossiersLegislatifsRefs || []) {
563
563
  let e = v[t];
564
564
  e === void 0 && (e = v[t] = []), e.push(i);
565
565
  }
@@ -567,98 +567,98 @@ function N(t, n, i, { log: o = !1 } = {}) {
567
567
  }
568
568
  let S = {};
569
569
  if (n & y.Amendements) for (let n of x.amendements) {
570
- if (n.ignoreForWeb || i !== l.All && n.legislature !== l.All && i !== n.legislature) continue;
571
- let r = _.join(t, n.filename.replace(/\.json$/, "_nettoye"));
572
- for (let t of b(r)) {
570
+ if (n.ignoreForWeb || r !== p.All && n.legislature !== p.All && r !== n.legislature) continue;
571
+ let i = _.join(t, n.filename.replace(/\.json$/, "_nettoye"));
572
+ for (let t of b(i)) {
573
573
  if (!t[t.length - 1].endsWith(".json")) continue;
574
- let n = _.join(r, ...t);
575
- o && console.log(`Loading file: ${n}…`);
576
- let i = g.readFileSync(n, { encoding: "utf8" }), a = e.toAmendement(i);
577
- S[a.uid] === void 0 && (S[a.uid] = a);
574
+ let n = _.join(i, ...t);
575
+ a && console.log(`Loading file: ${n}…`);
576
+ let r = g.readFileSync(n, { encoding: "utf8" }), o = e.toAmendement(r);
577
+ S[o.uid] === void 0 && (S[o.uid] = o);
578
578
  }
579
579
  }
580
580
  let C = {}, w = {}, T = {}, E = {};
581
581
  if (n & y.DossiersLegislatifs) for (let e of x.dossiersLegislatifs) {
582
- if (e.ignoreForWeb || i !== l.All && e.legislature !== l.All && i !== e.legislature) continue;
582
+ if (e.ignoreForWeb || r !== p.All && e.legislature !== p.All && r !== e.legislature) continue;
583
583
  let n = _.join(t, e.filename.replace(/\.json$/, "_nettoye"));
584
584
  for (let e of b(n, ["documents"])) {
585
585
  if (!e[e.length - 1].endsWith(".json")) continue;
586
586
  let t = _.join(n, ...e);
587
- o && console.log(`Loading file: ${t}…`);
588
- let r = g.readFileSync(t, { encoding: "utf8" }), i = s.toDocument(r);
587
+ a && console.log(`Loading file: ${t}…`);
588
+ let r = g.readFileSync(t, { encoding: "utf8" }), i = c.toDocument(r);
589
589
  C[i.uid] === void 0 && (C[i.uid] = i);
590
590
  }
591
591
  for (let e of b(n, ["dossiers"])) {
592
592
  if (!e[e.length - 1].endsWith(".json")) continue;
593
593
  let t = _.join(n, ...e);
594
- o && console.log(`Loading file: ${t}…`);
595
- let r = g.readFileSync(t, { encoding: "utf8" }), i = s.toDossierParlementaire(r), a = i.titreDossier;
596
- a.senatChemin && w[a.senatChemin] === void 0 && (w[a.senatChemin] = i), a.titreChemin && T[a.titreChemin] === void 0 && (T[a.titreChemin] = i), E[i.uid] === void 0 && (E[i.uid] = i);
594
+ a && console.log(`Loading file: ${t}…`);
595
+ let r = g.readFileSync(t, { encoding: "utf8" }), i = c.toDossierParlementaire(r), o = i.titreDossier;
596
+ o.senatChemin && w[o.senatChemin] === void 0 && (w[o.senatChemin] = i), o.titreChemin && T[o.titreChemin] === void 0 && (T[o.titreChemin] = i), E[i.uid] === void 0 && (E[i.uid] = i);
597
597
  }
598
598
  }
599
599
  let D = {};
600
600
  if (n & y.Photos) {
601
601
  {
602
- let e = _.join(t, `photos_deputes_${i === l.All ? l.DixSept : i}`, "deputes.json");
602
+ let e = _.join(t, `photos_deputes_${r === p.All ? p.DixSept : r}`, "deputes.json");
603
603
  if (g.existsSync(e)) {
604
- o && console.log(`Loading file: ${e}`);
604
+ a && console.log(`Loading file: ${e}`);
605
605
  let t = g.readFileSync(e, { encoding: "utf8" });
606
606
  Object.assign(D, JSON.parse(t));
607
- } else o && console.log(`Ignoring missing file: ${e}`);
607
+ } else a && console.log(`Ignoring missing file: ${e}`);
608
608
  }
609
609
  {
610
610
  let e = _.join(t, "photos_senateurs", "senateurs.json");
611
611
  if (g.existsSync(e)) {
612
- o && console.log(`Loading file: ${e}`);
612
+ a && console.log(`Loading file: ${e}`);
613
613
  let t = g.readFileSync(e, { encoding: "utf8" });
614
614
  Object.assign(D, JSON.parse(t));
615
- } else o && console.log(`Ignoring missing file: ${e}`);
615
+ } else a && console.log(`Ignoring missing file: ${e}`);
616
616
  }
617
617
  }
618
618
  let O = {};
619
619
  if (n & y.Scrutins) for (let e of x.scrutins) {
620
- if (e.ignoreForWeb || i !== l.All && e.legislature !== l.All && i !== e.legislature) continue;
620
+ if (e.ignoreForWeb || r !== p.All && e.legislature !== p.All && r !== e.legislature) continue;
621
621
  let n = _.join(t, e.filename.replace(/\.json$/, "_nettoye"));
622
622
  for (let e of b(n)) {
623
623
  if (!e[e.length - 1].endsWith(".json")) continue;
624
624
  let t = _.join(n, ...e);
625
- o && console.log(`Loading file: ${t}…`);
626
- let r = g.readFileSync(t, { encoding: "utf8" }), i = p.toScrutin(r);
625
+ a && console.log(`Loading file: ${t}…`);
626
+ let r = g.readFileSync(t, { encoding: "utf8" }), i = d.toScrutin(r);
627
627
  O[i.uid] === void 0 && (O[i.uid] = i);
628
628
  }
629
629
  }
630
630
  let k = {};
631
631
  if (n & y.Questions) for (let e of x.questions) {
632
- if (e.ignoreForWeb || i !== l.All && e.legislature !== l.All && i !== e.legislature) continue;
632
+ if (e.ignoreForWeb || r !== p.All && e.legislature !== p.All && r !== e.legislature) continue;
633
633
  let n = _.join(t, e.filename.replace(/\.json$/, "_nettoye"));
634
634
  for (let e of b(n)) {
635
635
  if (!e[e.length - 1].endsWith(".json")) continue;
636
636
  let t = _.join(n, ...e);
637
- o && console.log(`Loading file: ${t}…`);
638
- let r = g.readFileSync(t, { encoding: "utf8" }), i = a.toQuestion(r);
637
+ a && console.log(`Loading file: ${t}…`);
638
+ let r = g.readFileSync(t, { encoding: "utf8" }), i = o.toQuestion(r);
639
639
  k[i.uid] === void 0 && (k[i.uid] = i);
640
640
  }
641
641
  }
642
642
  let A = {};
643
643
  if (n & y.ComptesRendus) for (let e of x.comptesRendus) {
644
- if (e.ignoreForWeb || i !== l.All && e.legislature !== l.All && i !== e.legislature) continue;
644
+ if (e.ignoreForWeb || r !== p.All && e.legislature !== p.All && r !== e.legislature) continue;
645
645
  let n = _.join(t, e.filename.replace(/\.json$/, "_nettoye"));
646
646
  for (let e of b(n)) {
647
647
  if (!e[e.length - 1].endsWith(".json")) continue;
648
648
  let t = _.join(n, ...e);
649
- o && console.log(`Loading file: ${t}…`);
650
- let i = g.readFileSync(t, { encoding: "utf8" }), a = r.toCompteRendu(i);
651
- A[a.uid] === void 0 && (A[a.uid] = a);
649
+ a && console.log(`Loading file: ${t}…`);
650
+ let r = g.readFileSync(t, { encoding: "utf8" }), o = i.toCompteRendu(r);
651
+ A[o.uid] === void 0 && (A[o.uid] = o);
652
652
  }
653
653
  }
654
654
  return {
655
- acteurByUid: d,
655
+ acteurByUid: s,
656
656
  amendementByUid: S,
657
657
  documentByUid: C,
658
658
  dossierParlementaireBySenatChemin: w,
659
659
  dossierParlementaireByTitreChemin: T,
660
660
  dossierParlementaireByUid: E,
661
- organeByUid: f,
661
+ organeByUid: u,
662
662
  photoByUid: D,
663
663
  reunionByUid: m,
664
664
  reunionsByDay: h,
@@ -668,23 +668,23 @@ function N(t, n, i, { log: o = !1 } = {}) {
668
668
  compteRenduByUid: A
669
669
  };
670
670
  }
671
- function P(t, n, i, { log: o = !1 } = {}) {
672
- let d = {}, f = {};
671
+ function P(t, n, r, { log: a = !1 } = {}) {
672
+ let s = {}, u = {};
673
673
  if (n & y.ActeursEtOrganes) for (let e of x.acteursEtOrganes) {
674
- if (e.ignoreForWeb || i !== l.All && e.legislature !== l.All && i !== e.legislature) continue;
674
+ if (e.ignoreForWeb || r !== p.All && e.legislature !== p.All && r !== e.legislature) continue;
675
675
  let n = _.join(t, e.filename.replace(/\.json$/, "_nettoye.json"));
676
- o && console.log(`Loading file: ${n}`);
677
- let r = g.readFileSync(n, { encoding: "utf8" }), a = u.toActeursEtOrganes(r);
678
- for (let e of a.acteurs) d[e.uid] === void 0 && (d[e.uid] = e);
679
- for (let e of a.organes) f[e.uid] === void 0 && (f[e.uid] = e);
676
+ a && console.log(`Loading file: ${n}`);
677
+ let i = g.readFileSync(n, { encoding: "utf8" }), o = f.toActeursEtOrganes(i);
678
+ for (let e of o.acteurs) s[e.uid] === void 0 && (s[e.uid] = e);
679
+ for (let e of o.organes) u[e.uid] === void 0 && (u[e.uid] = e);
680
680
  }
681
681
  let m = {}, h = {}, v = {};
682
682
  if (n & y.Agendas) for (let e of x.agendas) {
683
- if (e.ignoreForWeb || i !== l.All && e.legislature !== l.All && i !== e.legislature) continue;
683
+ if (e.ignoreForWeb || r !== p.All && e.legislature !== p.All && r !== e.legislature) continue;
684
684
  let n = _.join(t, e.filename.replace(/\.json$/, "_nettoye.json"));
685
- o && console.log(`Loading file: ${n}`);
686
- let r = g.readFileSync(n, { encoding: "utf8" }), a = c.toAgendas(r);
687
- for (let e of a.reunions) {
685
+ a && console.log(`Loading file: ${n}`);
686
+ let i = g.readFileSync(n, { encoding: "utf8" }), o = l.toAgendas(i);
687
+ for (let e of o.reunions) {
688
688
  m[e.uid] === void 0 && (m[e.uid] = e);
689
689
  let t = e.timestampDebut.toISOString().split("T")[0], n = h[t];
690
690
  n === void 0 && (n = h[t] = []), n.push(e);
@@ -697,20 +697,20 @@ function P(t, n, i, { log: o = !1 } = {}) {
697
697
  }
698
698
  let b = {};
699
699
  if (n & y.Amendements) for (let n of x.amendements) {
700
- if (n.ignoreForWeb || i !== l.All && n.legislature !== l.All && i !== n.legislature) continue;
701
- let r = _.join(t, n.filename.replace(/\.json$/, "_nettoye.json"));
702
- o && console.log(`Loading file: ${r}`);
703
- let a = g.readFileSync(r, { encoding: "utf8" }), s = e.toAmendements(a);
700
+ if (n.ignoreForWeb || r !== p.All && n.legislature !== p.All && r !== n.legislature) continue;
701
+ let i = _.join(t, n.filename.replace(/\.json$/, "_nettoye.json"));
702
+ a && console.log(`Loading file: ${i}`);
703
+ let o = g.readFileSync(i, { encoding: "utf8" }), s = e.toAmendements(o);
704
704
  for (let e of s.textesLegislatifs) for (let t of e.amendements) b[t.uid] === void 0 && (b[t.uid] = t);
705
705
  }
706
706
  let S = {}, C = {}, w = {}, T = {};
707
707
  if (n & y.DossiersLegislatifs) for (let e of x.dossiersLegislatifs) {
708
- if (e.ignoreForWeb || i !== l.All && e.legislature !== l.All && i !== e.legislature) continue;
708
+ if (e.ignoreForWeb || r !== p.All && e.legislature !== p.All && r !== e.legislature) continue;
709
709
  let n = _.join(t, e.filename.replace(/\.json$/, "_nettoye.json"));
710
- o && console.log(`Loading file: ${n}`);
711
- let r = g.readFileSync(n, { encoding: "utf8" }), a = s.toDossiersLegislatifs(r);
712
- for (let e of a.textesLegislatifs) S[e.uid] === void 0 && (S[e.uid] = e);
713
- for (let e of a.dossiersParlementaires) {
710
+ a && console.log(`Loading file: ${n}`);
711
+ let i = g.readFileSync(n, { encoding: "utf8" }), o = c.toDossiersLegislatifs(i);
712
+ for (let e of o.textesLegislatifs) S[e.uid] === void 0 && (S[e.uid] = e);
713
+ for (let e of o.dossiersParlementaires) {
714
714
  let t = e.titreDossier;
715
715
  t.senatChemin && C[t.senatChemin] === void 0 && (C[t.senatChemin] = e), t.titreChemin && w[t.titreChemin] === void 0 && (w[t.titreChemin] = e), T[e.uid] === void 0 && (T[e.uid] = e);
716
716
  }
@@ -719,54 +719,54 @@ function P(t, n, i, { log: o = !1 } = {}) {
719
719
  if (n & y.Photos) {
720
720
  let e = {};
721
721
  {
722
- let n = _.join(t, `photos_deputes_${i === l.All ? l.DixSept : i}`, "deputes.json");
722
+ let n = _.join(t, `photos_deputes_${r === p.All ? p.DixSept : r}`, "deputes.json");
723
723
  if (g.existsSync(n)) {
724
- o && console.log(`Loading file: ${n}`);
724
+ a && console.log(`Loading file: ${n}`);
725
725
  let t = g.readFileSync(n, { encoding: "utf8" });
726
726
  Object.assign(e, JSON.parse(t));
727
- } else o && console.log(`Ignoring missing file: ${n}`);
727
+ } else a && console.log(`Ignoring missing file: ${n}`);
728
728
  }
729
729
  {
730
730
  let n = _.join(t, "photos_senateurs", "senateurs.json");
731
731
  if (g.existsSync(n)) {
732
- o && console.log(`Loading file: ${n}`);
732
+ a && console.log(`Loading file: ${n}`);
733
733
  let t = g.readFileSync(n, { encoding: "utf8" });
734
734
  Object.assign(e, JSON.parse(t));
735
- } else o && console.log(`Ignoring missing file: ${n}`);
735
+ } else a && console.log(`Ignoring missing file: ${n}`);
736
736
  }
737
737
  }
738
738
  let D = {};
739
739
  if (n & y.Scrutins) for (let e of x.scrutins) {
740
- if (e.ignoreForWeb || i !== l.All && e.legislature !== l.All && i !== e.legislature) continue;
740
+ if (e.ignoreForWeb || r !== p.All && e.legislature !== p.All && r !== e.legislature) continue;
741
741
  let n = _.join(t, e.filename.replace(/\.json$/, "_nettoye.json"));
742
- o && console.log(`Loading file: ${n}`);
743
- let r = g.readFileSync(n, { encoding: "utf8" }), a = p.toScrutins(r);
744
- for (let e of a.scrutins) D[e.uid] === void 0 && (D[e.uid] = e);
742
+ a && console.log(`Loading file: ${n}`);
743
+ let i = g.readFileSync(n, { encoding: "utf8" }), o = d.toScrutins(i);
744
+ for (let e of o.scrutins) D[e.uid] === void 0 && (D[e.uid] = e);
745
745
  }
746
746
  let O = {};
747
747
  if (n & y.Questions) for (let e of x.questions) {
748
- if (e.ignoreForWeb || i !== l.All && e.legislature !== l.All && i !== e.legislature) continue;
748
+ if (e.ignoreForWeb || r !== p.All && e.legislature !== p.All && r !== e.legislature) continue;
749
749
  let n = _.join(t, e.filename.replace(/\.json$/, "_nettoye.json"));
750
- o && console.log(`Loading file: ${n}`);
751
- let r = g.readFileSync(n, { encoding: "utf8" }), s = a.toQuestions(r);
750
+ a && console.log(`Loading file: ${n}`);
751
+ let i = g.readFileSync(n, { encoding: "utf8" }), s = o.toQuestions(i);
752
752
  for (let e of s.questions) O[e.uid] === void 0 && (O[e.uid] = e);
753
753
  }
754
754
  let k = {};
755
755
  if (n & y.ComptesRendus) for (let e of x.comptesRendus) {
756
- if (e.ignoreForWeb || i !== l.All && e.legislature !== l.All && i !== e.legislature) continue;
756
+ if (e.ignoreForWeb || r !== p.All && e.legislature !== p.All && r !== e.legislature) continue;
757
757
  let n = _.join(t, e.filename.replace(/\.json$/, "_nettoye.json"));
758
- o && console.log(`Loading file: ${n}`);
759
- let a = g.readFileSync(n, { encoding: "utf8" }), s = r.toComptesRendus(a);
758
+ a && console.log(`Loading file: ${n}`);
759
+ let o = g.readFileSync(n, { encoding: "utf8" }), s = i.toComptesRendus(o);
760
760
  for (let e of s.comptesRendus) k[e.uid] === void 0 && (k[e.uid] = e);
761
761
  }
762
762
  return {
763
- acteurByUid: d,
763
+ acteurByUid: s,
764
764
  amendementByUid: b,
765
765
  documentByUid: S,
766
766
  dossierParlementaireBySenatChemin: C,
767
767
  dossierParlementaireByTitreChemin: w,
768
768
  dossierParlementaireByUid: T,
769
- organeByUid: f,
769
+ organeByUid: u,
770
770
  photoByUid: E,
771
771
  reunionByUid: m,
772
772
  reunionsByDay: h,
@@ -787,7 +787,7 @@ function F(e, t, n) {
787
787
  };
788
788
  }
789
789
  function I(e, t, { log: n = !1 } = {}) {
790
- let r = _.join(e, `photos_deputes_${t === l.All ? l.DixSept : t}`, "deputes.json");
790
+ let r = _.join(e, `photos_deputes_${t === p.All ? p.DixSept : t}`, "deputes.json");
791
791
  n && console.log(`Loading file: ${r}`);
792
792
  let i = g.readFileSync(r, { encoding: "utf8" });
793
793
  return JSON.parse(i);
@@ -799,9 +799,9 @@ function L(e, { log: t = !1 } = {}) {
799
799
  return JSON.parse(r);
800
800
  }
801
801
  function R(e, t) {
802
- let r = t.match(n);
803
- h.notStrictEqual(r, null, `Unexpected structure for document UID: ${t}`);
804
- let i = r.groups, a = _.join(e, i.documentType ?? i.documentType2), o = _.join(a, i.chambre ?? i.chambre2), s = _.join(o, i.republique ?? i.republique2), c = _.join(s, i.legislature ?? i.legislature2), l = i.etat;
802
+ let n = t.match(r);
803
+ h.notStrictEqual(n, null, `Unexpected structure for document UID: ${t}`);
804
+ let i = n.groups, a = _.join(e, i.documentType ?? i.documentType2), o = _.join(a, i.chambre ?? i.chambre2), s = _.join(o, i.republique ?? i.republique2), c = _.join(s, i.legislature ?? i.legislature2), l = i.etat;
805
805
  if (l === void 0) return g.ensureDirSync(c), _.join(c, t);
806
806
  let u = _.join(c, l), d = "000000" + (i.numero ?? i.numero2);
807
807
  d = d.substring(d.length - 6);
@@ -809,7 +809,7 @@ function R(e, t) {
809
809
  return g.ensureDirSync(f), _.join(f, t);
810
810
  }
811
811
  function z(e, t) {
812
- return W(e, t, o);
812
+ return W(e, t, a);
813
813
  }
814
814
  function B(e, n) {
815
815
  let r = t.exec(n);
@@ -820,23 +820,23 @@ function B(e, n) {
820
820
  return g.ensureDirSync(d), _.join(d, n);
821
821
  }
822
822
  function V(e, t) {
823
- let n = d.exec(t);
824
- h.notStrictEqual(n, null, `Unexpected structure for scrutin UID: ${t}`);
825
- let r = _.join(e, n[1]), i = _.join(r, n[2]), a = _.join(i, n[3]), o = "000000" + n[4];
826
- o = o.substring(o.length - 6);
827
- let s = _.join(a, o.substring(0, 3));
828
- return g.ensureDirSync(s), _.join(s, t);
823
+ let r = n.exec(t);
824
+ h.notStrictEqual(r, null, `Unexpected structure for scrutin UID: ${t}`);
825
+ let i = _.join(e, r[1]), a = _.join(i, r[2]), o = _.join(a, r[3]), s = "000000" + r[4];
826
+ s = s.substring(s.length - 6);
827
+ let c = _.join(o, s.substring(0, 3));
828
+ return g.ensureDirSync(c), _.join(c, t);
829
829
  }
830
830
  function H(e, t) {
831
- return W(e, t, f);
831
+ return W(e, t, s);
832
832
  }
833
833
  function U(e, t) {
834
- let n = i.exec(t);
834
+ let n = u.exec(t);
835
835
  h.notStrictEqual(n, null, `Unexpected structure for object with UID: ${t}`);
836
- let r = _.join(e, n[2]), a = _.join(r, n[3]), o = _.join(a, n[4]), s = _.join(o, n[5]), c = "000000000" + n[7];
837
- c = c.substring(c.length - 9);
838
- let l = _.join(s, c.substring(0, 3)), u = _.join(l, c.substring(3, 3));
839
- return g.ensureDirSync(u), _.join(u, t);
836
+ let r = _.join(e, n[2]), i = _.join(r, n[3]), a = _.join(i, n[4]), o = _.join(a, n[5]), s = "000000000" + n[7];
837
+ s = s.substring(s.length - 9);
838
+ let c = _.join(o, s.substring(0, 3)), l = _.join(c, s.substring(3, 3));
839
+ return g.ensureDirSync(l), _.join(l, t);
840
840
  }
841
841
  function W(e, t, n) {
842
842
  let r = n.exec(t);