@tricoteuses/assemblee 2.3.1 → 2.4.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,4231 +0,0 @@
1
- import Ne from "node:assert";
2
- import p from "fs-extra";
3
- import i from "node:path";
4
- import "node:crypto";
5
- import "glob";
6
- import { C as Pe } from "./amendements-40Z7OJLT.js";
7
- import "node:fs/promises";
8
- var Be = /* @__PURE__ */ ((e) => (e.Api = "API", e.Assemblee = "ASSEMBLEE", e.Bureau = "BUREAU", e.Circonscription = "CIRCONSCRIPTION", e.Cjr = "CJR", e.Cmp = "CMP", e.Cnpe = "CNPE", e.Cnps = "CNPS", e.Comnl = "COMNL", e.Comper = "COMPER", e.Comsenat = "COMSENAT", e.Comspsenat = "COMSPSENAT", e.Confpt = "CONFPT", e.Constitu = "CONSTITU", e.Deleg = "DELEG", e.Delegbureau = "DELEGBUREAU", e.Delegsenat = "DELEGSENAT", e.Ga = "GA", e.Ge = "GE", e.Gevi = "GEVI", e.Gouvernement = "GOUVERNEMENT", e.Gp = "GP", e.Groupesenat = "GROUPESENAT", e.Hcj = "HCJ", e.Ministere = "MINISTERE", e.Miseval = "MISEVAL", e.Misgrtr = "MISGRTR", e.Misinfo = "MISINFO", e.Misinfocom = "MISINFOCOM", e.Misinfopre = "MISINFOPRE", e.Offpar = "OFFPAR", e.Orgaint = "ORGAINT", e.Orgextparl = "ORGEXTPARL", e.Parpol = "PARPOL", e.Presrep = "PRESREP", e.Senat = "SENAT", e))(Be || {}), f = /* @__PURE__ */ ((e) => (e[e.Quatorze = 14] = "Quatorze", e[e.Quinze = 15] = "Quinze", e[e.Seize = 16] = "Seize", e[e.DixSept = 17] = "DixSept", e[e.DixHuit = 18] = "DixHuit", e[e.All = 0] = "All", e))(f || {}), w = /* @__PURE__ */ ((e) => (e[e.None = 0] = "None", e[e.ActeursEtOrganes = 1] = "ActeursEtOrganes", e[e.Agendas = 2] = "Agendas", e[e.Amendements = 4] = "Amendements", e[e.DossiersLegislatifs = 8] = "DossiersLegislatifs", e[e.Photos = 16] = "Photos", e[e.Scrutins = 32] = "Scrutins", e[e.Questions = 64] = "Questions", e[e.ComptesRendusSeances = 128] = "ComptesRendusSeances", e[e.All = 255] = "All", e))(w || {});
9
- function J(e, n) {
10
- const s = i.join(n, e.filename);
11
- p.existsSync(s) && p.removeSync(s), p.existsSync(i.join(n, "json")) ? p.moveSync(i.join(n, "json"), s) : p.mkdirSync(s);
12
- }
13
- const Q = {
14
- acteursEtOrganes: [
15
- {
16
- // AMO10 (XVII)
17
- //
18
- // Contient les députés actifs
19
- // * avec tous les mandats en cours
20
- // * y compris avec leur parti politique (typeOrgane: "PARPOL")
21
- // * mais sans les mandats achevés (y compris dans cette législature)
22
- //
23
- // Organes :
24
- // * Contient seulement les organes correspondants aux mandats en cours
25
- // * avec le xsiType de l'organe
26
- // * avec des commissions sénatoriales (permanentes et spéciales) en cours
27
- // * avec des délégations sénatoriales en cours
28
- // * avec des groupes sénatoriaux en cours
29
- // * avec des ministères en cours
30
- // * avec les Présidences de la République (y compris Sarkozy)
31
- // * avec le Conseil constitutionnel
32
- //
33
- // Ce fichier est un sous-ensemble à tous les niveaux du fichier AMO20
34
- // (qui est lui même un sous-ensemble de l'AMO30).
35
- // Il n'apporte donc absolument rien par rapport à AMO20 ou l'AMO30.
36
- filename: "AMO10_deputes_actifs_mandats_actifs_organes_XVII.json",
37
- ignoreForWeb: !0,
38
- legislature: f.DixSept,
39
- repairZip: J,
40
- structure: 1,
41
- title: "Députés actifs et organes de la XVIIème législature",
42
- url: "https://data.assemblee-nationale.fr/static/openData/repository/17/amo/deputes_actifs_mandats_actifs_organes/AMO10_deputes_actifs_mandats_actifs_organes.json.zip"
43
- },
44
- {
45
- // AMO10 (XVI)
46
- //
47
- // Contient les députés actifs
48
- // * avec tous les mandats en cours
49
- // * y compris avec leur parti politique (typeOrgane: "PARPOL")
50
- // * mais sans les mandats achevés (y compris dans cette législature)
51
- //
52
- // Organes :
53
- // * Contient seulement les organes correspondants aux mandats en cours
54
- // * avec le xsiType de l'organe
55
- // * avec des commissions sénatoriales (permanentes et spéciales) en cours
56
- // * avec des délégations sénatoriales en cours
57
- // * avec des groupes sénatoriaux en cours
58
- // * avec des ministères en cours
59
- // * avec les Présidences de la République (y compris Sarkozy)
60
- // * avec le Conseil constitutionnel
61
- //
62
- // Ce fichier est un sous-ensemble à tous les niveaux du fichier AMO20
63
- // (qui est lui même un sous-ensemble de l'AMO30).
64
- // Il n'apporte donc absolument rien par rapport à AMO20 ou l'AMO30.
65
- filename: "AMO10_deputes_actifs_mandats_actifs_organes_XVI.json",
66
- ignoreForWeb: !0,
67
- legislature: f.Seize,
68
- repairZip: J,
69
- structure: 1,
70
- title: "Députés actifs et organes de la XVIème législature",
71
- url: "https://data.assemblee-nationale.fr/static/openData/repository/16/amo/deputes_actifs_mandats_actifs_organes/AMO10_deputes_actifs_mandats_actifs_organes.json.zip"
72
- },
73
- {
74
- // AMO10 (XV)
75
- //
76
- // Contient les députés actifs
77
- // * avec tous les mandats en cours
78
- // * y compris avec leur parti politique (typeOrgane: "PARPOL")
79
- // * mais sans les mandats achevés (y compris dans cette législature)
80
- //
81
- // Organes :
82
- // * Contient seulement les organes correspondants aux mandats en cours
83
- // * avec le xsiType de l'organe
84
- // * avec des commissions sénatoriales (permanentes et spéciales) en cours
85
- // * avec des délégations sénatoriales en cours
86
- // * avec des groupes sénatoriaux en cours
87
- // * avec des ministères en cours
88
- // * avec les Présidences de la République (y compris Sarkozy)
89
- // * avec le Conseil constitutionnel
90
- //
91
- // Ce fichier est un sous-ensemble à tous les niveaux du fichier AMO20
92
- // (qui est lui même un sous-ensemble de l'AMO30).
93
- // Il n'apporte donc absolument rien par rapport à AMO20 ou l'AMO30.
94
- filename: "AMO10_deputes_actifs_mandats_actifs_organes_XV.json",
95
- ignoreForWeb: !0,
96
- legislature: f.Quinze,
97
- repairZip: J,
98
- structure: 1,
99
- title: "Députés actifs et organes de la XVème législature",
100
- url: "https://data.assemblee-nationale.fr/static/openData/repository/15/amo/deputes_actifs_mandats_actifs_organes/AMO10_deputes_actifs_mandats_actifs_organes_XV.json.zip"
101
- },
102
- {
103
- // AMO20 (XVII)
104
- //
105
- // Contient les députés de la législature, actifs ou non (invalidés, etc), les sénateurs actuels
106
- // Pour les députés :
107
- // * avec tous leurs mandats de la législature
108
- // * y compris les mandats achevés
109
- // * y compris leurs partis politiques (typeOrgane: "PARPOL")
110
- // * mais sans les mandats des législatures précédentes (qui sont dans AMO40)
111
- //
112
- // Contient tous les organes référencés par les mandats
113
- // * avec le xsiType de l'organe
114
- // * avec des commissions sénatoriales (permanentes et spéciales) en cours
115
- // * avec des délégations sénatoriales en cours
116
- // * avec des groupes sénatoriaux en cours
117
- // * avec des ministères en cours
118
- // * avec les Présidences de la République (y compris Sarkozy)
119
- // * avec le Conseil constitutionnel
120
- //
121
- // Ce fichier est un sous-ensemble à tous les niveaux du fichier AMO30.
122
- // Il n'apporte donc absolument rien par rapport à l'AMO30.
123
- filename: "AMO20_dep_sen_min_tous_mandats_et_organes_XVII.json",
124
- ignoreForWeb: !0,
125
- legislature: f.DixSept,
126
- repairZip: J,
127
- structure: 1,
128
- title: "Acteurs et organes de la XVIIème législature",
129
- url: "https://data.assemblee-nationale.fr/static/openData/repository/17/amo/deputes_senateurs_ministres_legislature/AMO20_dep_sen_min_tous_mandats_et_organes.json.zip"
130
- },
131
- {
132
- // AMO20 (XVI)
133
- //
134
- // Contient les députés de la législature, actifs ou non (invalidés, etc), les sénateurs actuels
135
- // Pour les députés :
136
- // * avec tous leurs mandats de la législature
137
- // * y compris les mandats achevés
138
- // * y compris leurs partis politiques (typeOrgane: "PARPOL")
139
- // * mais sans les mandats des législatures précédentes (qui sont dans AMO40)
140
- //
141
- // Contient tous les organes référencés par les mandats
142
- // * avec le xsiType de l'organe
143
- // * avec des commissions sénatoriales (permanentes et spéciales) en cours
144
- // * avec des délégations sénatoriales en cours
145
- // * avec des groupes sénatoriaux en cours
146
- // * avec des ministères en cours
147
- // * avec les Présidences de la République (y compris Sarkozy)
148
- // * avec le Conseil constitutionnel
149
- //
150
- // Ce fichier est un sous-ensemble à tous les niveaux du fichier AMO30.
151
- // Il n'apporte donc absolument rien par rapport à l'AMO30.
152
- filename: "AMO20_dep_sen_min_tous_mandats_et_organes_XVI.json",
153
- ignoreForWeb: !0,
154
- legislature: f.Seize,
155
- repairZip: J,
156
- structure: 1,
157
- title: "Acteurs et organes de la XVIème législature",
158
- url: "https://data.assemblee-nationale.fr/static/openData/repository/16/amo/deputes_senateurs_ministres_legislature/AMO20_dep_sen_min_tous_mandats_et_organes.json.zip"
159
- },
160
- {
161
- // AMO20 (XV)
162
- //
163
- // Contient les députés de la législature, actifs ou non (invalidés, etc), les sénateurs actuels
164
- // Pour les députés :
165
- // * avec tous leurs mandats de la législature
166
- // * y compris les mandats achevés
167
- // * y compris leurs partis politiques (typeOrgane: "PARPOL")
168
- // * mais sans les mandats des législatures précédentes (qui sont dans AMO40)
169
- //
170
- // Contient tous les organes référencés par les mandats
171
- // * avec le xsiType de l'organe
172
- // * avec des commissions sénatoriales (permanentes et spéciales) en cours
173
- // * avec des délégations sénatoriales en cours
174
- // * avec des groupes sénatoriaux en cours
175
- // * avec des ministères en cours
176
- // * avec les Présidences de la République (y compris Sarkozy)
177
- // * avec le Conseil constitutionnel
178
- //
179
- // Ce fichier est un sous-ensemble à tous les niveaux du fichier AMO30.
180
- // Il n'apporte donc absolument rien par rapport à l'AMO30.
181
- filename: "AMO20_dep_sen_min_tous_mandats_et_organes_XV.json",
182
- ignoreForWeb: !0,
183
- legislature: f.Quinze,
184
- repairZip: J,
185
- structure: 1,
186
- title: "Acteurs et organes de la XVème législature",
187
- url: "https://data.assemblee-nationale.fr/static/openData/repository/15/amo/deputes_senateurs_ministres_legislature/AMO20_dep_sen_min_tous_mandats_et_organes_XV.json.zip"
188
- },
189
- {
190
- // AMO20 (XIV)
191
- //
192
- // Comme AMO20 (XV) mais pour la XIVème législature
193
- // Tous les acteurs sauf un (PA429892) sont présents en plus à jour dans AMO30.
194
- // Cet acteur PA429892 (ancienne Sénatrice) n'est présent dans aucun des autres
195
- // fichiers AMO.
196
- // Tous les organes sont présents en plus complets dans AMO30.
197
- //
198
- // Ce fichier est donc à un détail prêt (PA429892) un sous-ensemble d'AMO30.
199
- // Il n'apporte donc quasiment rien par rapport à l'AMO30.
200
- filename: "AMO20_dep_sen_min_tous_mandats_et_organes_XIV.json",
201
- ignoreForWeb: !0,
202
- legislature: f.Quatorze,
203
- structure: 0,
204
- title: "Acteurs et organes de la XIVème législature",
205
- 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"
206
- },
207
- {
208
- // AMO30 (XVII)
209
- //
210
- // Ce fichier contient tous les acteurs et organes.
211
- // C'est un sur-ensemble des fichiers AMO20.
212
- filename: "AMO30_tous_acteurs_tous_mandats_tous_organes_historique.json",
213
- legislature: f.All,
214
- repairZip: J,
215
- structure: 1,
216
- title: "Historique de tous les acteurs et organes depuis la XIème législature",
217
- url: "https://data.assemblee-nationale.fr/static/openData/repository/17/amo/tous_acteurs_mandats_organes_xi_legislature/AMO30_tous_acteurs_tous_mandats_tous_organes_historique.json.zip"
218
- },
219
- // {
220
- // // AMO30 (XVI)
221
- // //
222
- // // Ce fichier contient tous les acteurs et organes.
223
- // // C'est un sur-ensemble des fichiers AMO20.
224
- // filename: "AMO30_tous_acteurs_tous_mandats_tous_organes_historique.json",
225
- // legislature: Legislature.All,
226
- // repairZip: repairForJsonSubdirectory,
227
- // structure: DatasetStructure.SegmentedFiles,
228
- // title:
229
- // "Historique de tous les acteurs et organes depuis la XIème législature",
230
- // url: "https://data.assemblee-nationale.fr/static/openData/repository/16/amo/tous_acteurs_mandats_organes_xi_legislature/AMO30_tous_acteurs_tous_mandats_tous_organes_historique.json.zip",
231
- // },
232
- // {
233
- // // AMO30 (XV)
234
- // //
235
- // // Ce fichier contient tous les acteurs et organes.
236
- // // C'est un sur-ensemble des fichiers AMO20.
237
- // filename: "AMO30_tous_acteurs_tous_mandats_tous_organes_historique.json",
238
- // legislature: Legislature.All,
239
- // repairZip: (dataset: Dataset, dataDir: string) => {
240
- // const targetDir = path.join(dataDir, dataset.filename)
241
- // if (fs.existsSync(targetDir)) {
242
- // fs.removeSync(targetDir)
243
- // }
244
- // fs.moveSync(path.join(dataDir, "json"), targetDir)
245
- // },
246
- // structure: DatasetStructure.SegmentedFiles,
247
- // title:
248
- // "Historique de tous les acteurs et organes depuis la XIème législature",
249
- // url: "https://data.assemblee-nationale.fr/static/openData/repository/15/amo/tous_acteurs_mandats_organes_xi_legislature/AMO30_tous_acteurs_tous_mandats_tous_organes_historique.json.zip",
250
- // },
251
- {
252
- // AMO40 (XVII)
253
- //
254
- // Contient les députés actifs (les mêmes qu'AMO20)
255
- // * avec presque tous leurs mandats
256
- // * y compris les mandats achevés et ceux des législatures précédentes
257
- // * y compris leurs partis politiques précédents
258
- // * mais sans leur parti politique actuel (typeOrgane: "PARPOL")
259
- //
260
- // Contient beaucoup d'organes référencés, y compris ceux des législatures
261
- // précédentes
262
- // * mais il manque le xsiType des organes
263
- // * ne contient pas les organes sénatoriaux
264
- // * ne contient pas les ministères
265
- // * ne contient pas la Présidence de la République
266
- // * ne contient pas le Conseil constitutionnel
267
- //
268
- // Pour les acteurs, ce dépôt est un sous-ensemble strict de AMO30 :
269
- // Il a moins d'acteurs et il sont moins complets.
270
- //
271
- // Pour les organes :
272
- // Quand l'organe est aussi présent dans AMO30, il vaut mieux prendre celui
273
- // d'AMO30, car il contient le xsiType (c'est la seule différence semble-t-i).
274
- // Sinon, il faut le prendre seulement si on est intéressé par les législatures
275
- // précédentes.
276
- filename: "AMO40_deputes_actifs_mandats_actifs_organes_divises_XVII.json",
277
- ignoreForWeb: !0,
278
- legislature: f.DixSept,
279
- repairZip: (e, n) => {
280
- const s = i.join(n, e.filename);
281
- p.existsSync(s) && p.removeSync(s), p.mkdirSync(s), p.pathExistsSync(i.join(n, "acteur")) && p.moveSync(
282
- i.join(n, "acteur"),
283
- i.join(s, "acteur")
284
- ), p.moveSync(
285
- i.join(n, "organe"),
286
- i.join(s, "organe")
287
- );
288
- },
289
- structure: 1,
290
- title: "Députés actifs et organes de la XVIIème législature",
291
- url: "https://data.assemblee-nationale.fr/static/openData/repository/17/amo/deputes_actifs_mandats_actifs_organes_divises/AMO40_deputes_actifs_mandats_actifs_organes_divises.json.zip"
292
- },
293
- {
294
- // AMO40 (XVI)
295
- //
296
- // Contient les députés actifs (les mêmes qu'AMO20)
297
- // * avec presque tous leurs mandats
298
- // * y compris les mandats achevés et ceux des législatures précédentes
299
- // * y compris leurs partis politiques précédents
300
- // * mais sans leur parti politique actuel (typeOrgane: "PARPOL")
301
- //
302
- // Contient beaucoup d'organes référencés, y compris ceux des législatures
303
- // précédentes
304
- // * mais il manque le xsiType des organes
305
- // * ne contient pas les organes sénatoriaux
306
- // * ne contient pas les ministères
307
- // * ne contient pas la Présidence de la République
308
- // * ne contient pas le Conseil constitutionnel
309
- //
310
- // Pour les acteurs, ce dépôt est un sous-ensemble strict de AMO30 :
311
- // Il a moins d'acteurs et il sont moins complets.
312
- //
313
- // Pour les organes :
314
- // Quand l'organe est aussi présent dans AMO30, il vaut mieux prendre celui
315
- // d'AMO30, car il contient le xsiType (c'est la seule différence semble-t-i).
316
- // Sinon, il faut le prendre seulement si on est intéressé par les législatures
317
- // précédentes.
318
- filename: "AMO40_deputes_actifs_mandats_actifs_organes_divises_XVI.json",
319
- ignoreForWeb: !0,
320
- legislature: f.Seize,
321
- repairZip: (e, n) => {
322
- const s = i.join(n, e.filename);
323
- p.existsSync(s) && p.removeSync(s), p.mkdirSync(s), p.pathExistsSync(i.join(n, "acteur")) && p.moveSync(
324
- i.join(n, "acteur"),
325
- i.join(s, "acteur")
326
- ), p.moveSync(
327
- i.join(n, "organe"),
328
- i.join(s, "organe")
329
- );
330
- },
331
- structure: 1,
332
- title: "Députés actifs et organes de la XVIème législature",
333
- url: "https://data.assemblee-nationale.fr/static/openData/repository/16/amo/deputes_actifs_mandats_actifs_organes_divises/AMO40_deputes_actifs_mandats_actifs_organes_divises.json.zip"
334
- },
335
- {
336
- // AMO40 (XV)
337
- //
338
- // Contient les députés actifs (les mêmes qu'AMO20)
339
- // * avec presque tous leurs mandats
340
- // * y compris les mandats achevés et ceux des législatures précédentes
341
- // * y compris leurs partis politiques précédents
342
- // * mais sans leur parti politique actuel (typeOrgane: "PARPOL")
343
- //
344
- // Contient beaucoup d'organes référencés, y compris ceux des législatures
345
- // précédentes
346
- // * mais il manque le xsiType des organes
347
- // * ne contient pas les organes sénatoriaux
348
- // * ne contient pas les ministères
349
- // * ne contient pas la Présidence de la République
350
- // * ne contient pas le Conseil constitutionnel
351
- //
352
- // Pour les acteurs, ce dépôt est un sous-ensemble strict de AMO30 :
353
- // Il a moins d'acteurs et il sont moins complets.
354
- //
355
- // Pour les organes :
356
- // Quand l'organe est aussi présent dans AMO30, il vaut mieux prendre celui
357
- // d'AMO30, car il contient le xsiType (c'est la seule différence semble-t-i).
358
- // Sinon, il faut le prendre seulement si on est intéressé par les législatures
359
- // précédentes.
360
- filename: "AMO40_deputes_actifs_mandats_actifs_organes_divises_XV.json",
361
- ignoreForWeb: !0,
362
- legislature: f.Quinze,
363
- repairZip: (e, n) => {
364
- const s = i.join(n, e.filename);
365
- p.existsSync(s) && p.removeSync(s), p.mkdirSync(s), p.moveSync(
366
- i.join(n, "acteur"),
367
- i.join(s, "acteur")
368
- ), p.moveSync(
369
- i.join(n, "organe"),
370
- i.join(s, "organe")
371
- );
372
- },
373
- structure: 1,
374
- title: "Députés actifs et organes de la XVème législature",
375
- url: "https://data.assemblee-nationale.fr/static/openData/repository/15/amo/deputes_actifs_mandats_actifs_organes_divises/AMO40_deputes_actifs_mandats_actifs_organes_divises_XV.json.zip"
376
- },
377
- {
378
- // AMO50 (XVII)
379
- //
380
- // Attention, ce fichier n'est pas mis à jour régulièrement !
381
- //
382
- // Pour les acteurs :
383
- // * c'est un sous ensemble obsolète d'AMO30
384
- // * il manque les xsiType aux mandats
385
- //
386
- // Pour les organes :
387
- // * c'est un sous ensemble obsolète d'AMO30
388
- // * il manque les xsiType
389
- //
390
- // Ce fichier n'apporte donc absolument rien par rapport à l'AMO30,
391
- // dont il est un sous ensemble obsolète.
392
- filename: "AMO50_acteurs_mandats_organes_divises_XVII.json",
393
- ignoreForWeb: !0,
394
- legislature: f.DixSept,
395
- repairZip: (e, n) => {
396
- const s = i.join(n, e.filename);
397
- p.existsSync(s) && p.removeSync(s), p.mkdirSync(s), p.moveSync(
398
- i.join(n, "mandat"),
399
- i.join(s, "mandat")
400
- ), p.moveSync(
401
- i.join(n, "acteur"),
402
- i.join(s, "acteur")
403
- ), p.moveSync(
404
- i.join(n, "organe"),
405
- i.join(s, "organe")
406
- );
407
- },
408
- structure: 1,
409
- title: "Acteurs, mandats et organes de la XVIIème législature (fichiers séparés, y compris mandats)",
410
- url: "https://data.assemblee-nationale.fr/static/openData/repository/17/amo/acteurs_mandats_organes_divises/AMO50_acteurs_mandats_organes_divises.json.zip"
411
- },
412
- {
413
- // AMO50 (XVI)
414
- //
415
- // Attention, ce fichier n'est pas mis à jour régulièrement !
416
- //
417
- // Pour les acteurs :
418
- // * c'est un sous ensemble obsolète d'AMO30
419
- // * il manque les xsiType aux mandats
420
- //
421
- // Pour les organes :
422
- // * c'est un sous ensemble obsolète d'AMO30
423
- // * il manque les xsiType
424
- //
425
- // Ce fichier n'apporte donc absolument rien par rapport à l'AMO30,
426
- // dont il est un sous ensemble obsolète.
427
- filename: "AMO50_acteurs_mandats_organes_divises_XVI.json",
428
- ignoreForWeb: !0,
429
- legislature: f.Seize,
430
- repairZip: (e, n) => {
431
- const s = i.join(n, e.filename);
432
- p.existsSync(s) && p.removeSync(s), p.mkdirSync(s), p.moveSync(
433
- i.join(n, "mandat"),
434
- i.join(s, "mandat")
435
- ), p.moveSync(
436
- i.join(n, "acteur"),
437
- i.join(s, "acteur")
438
- ), p.moveSync(
439
- i.join(n, "organe"),
440
- i.join(s, "organe")
441
- );
442
- },
443
- structure: 1,
444
- title: "Acteurs, mandats et organes de la XVIème législature (fichiers séparés, y compris mandats)",
445
- url: "https://data.assemblee-nationale.fr/static/openData/repository/16/amo/acteurs_mandats_organes_divises/AMO50_acteurs_mandats_organes_divises.json.zip"
446
- },
447
- {
448
- // AMO50 (XV)
449
- //
450
- // Attention, ce fichier n'est pas mis à jour régulièrement !
451
- //
452
- // Pour les acteurs :
453
- // * c'est un sous ensemble obsolète d'AMO30
454
- // * il manque les xsiType aux mandats
455
- //
456
- // Pour les organes :
457
- // * c'est un sous ensemble obsolète d'AMO30
458
- // * il manque les xsiType
459
- //
460
- // Ce fichier n'apporte donc absolument rien par rapport à l'AMO30,
461
- // dont il est un sous ensemble obsolète.
462
- filename: "AMO50_acteurs_mandats_organes_divises_XV.json",
463
- ignoreForWeb: !0,
464
- legislature: f.Quinze,
465
- repairZip: (e, n) => {
466
- const s = i.join(n, e.filename);
467
- p.existsSync(s) && p.removeSync(s), p.mkdirSync(s), p.moveSync(
468
- i.join(n, "mandat"),
469
- i.join(s, "mandat")
470
- ), p.moveSync(
471
- i.join(n, "acteur"),
472
- i.join(s, "acteur")
473
- ), p.moveSync(
474
- i.join(n, "organe"),
475
- i.join(s, "organe")
476
- );
477
- },
478
- structure: 1,
479
- title: "Acteurs, mandats et organes de la XVème législature (fichiers séparés, y compris mandats)",
480
- url: "https://data.assemblee-nationale.fr/static/openData/repository/15/amo/acteurs_mandats_organes_divises/AMO50_acteurs_mandats_organes_divises_XV.json.zip"
481
- }
482
- ],
483
- agendas: [
484
- {
485
- filename: "Agenda_XVII.json",
486
- legislature: f.DixSept,
487
- repairZip: J,
488
- structure: 1,
489
- title: "Agenda de la XVIIème législature",
490
- url: "https://data.assemblee-nationale.fr/static/openData/repository/17/vp/reunions/Agenda.json.zip"
491
- },
492
- {
493
- filename: "Agenda_XVI.json",
494
- legislature: f.Seize,
495
- repairZip: J,
496
- structure: 1,
497
- title: "Agenda de la XVIème législature",
498
- url: "https://data.assemblee-nationale.fr/static/openData/repository/16/vp/reunions/Agenda.json.zip"
499
- },
500
- {
501
- filename: "Agenda_XV.json",
502
- legislature: f.Quinze,
503
- repairZip: J,
504
- structure: 1,
505
- title: "Agenda de la XVème législature",
506
- url: "https://data.assemblee-nationale.fr/static/openData/repository/15/vp/reunions/Agenda_XV.json.zip"
507
- },
508
- {
509
- filename: "Agenda_XIV.json",
510
- legislature: f.Quatorze,
511
- structure: 0,
512
- title: "Agenda de la XIVème législature",
513
- url: "https://data.assemblee-nationale.fr/static/openData/repository/14/vp/reunions/Agenda_XIV.json.zip"
514
- }
515
- ],
516
- amendements: [
517
- {
518
- filename: "Amendements_XVII.json",
519
- legislature: f.DixSept,
520
- repairZip: J,
521
- structure: 1,
522
- title: "Amendements de la XVIIème législature",
523
- url: "https://data.assemblee-nationale.fr/static/openData/repository/17/loi/amendements_div_legis/Amendements.json.zip"
524
- },
525
- {
526
- filename: "Amendements_XVI.json",
527
- legislature: f.Seize,
528
- repairZip: J,
529
- structure: 1,
530
- title: "Amendements de la XVIème législature",
531
- url: "https://data.assemblee-nationale.fr/static/openData/repository/16/loi/amendements_div_legis/Amendements.json.zip"
532
- },
533
- {
534
- filename: "Amendements_XV.json",
535
- legislature: f.Quinze,
536
- repairZip: J,
537
- structure: 1,
538
- title: "Amendements de la XVème législature",
539
- url: "https://data.assemblee-nationale.fr/static/openData/repository/15/loi/amendements_legis/Amendements_XV.json.zip"
540
- }
541
- // {
542
- // filename: "Amendements_XIV.json",
543
- // ignoreForWeb: true,
544
- // legislature: Legislature.Quatorze,
545
- // structure: DatasetStructure.SingleFile,
546
- // title: "Amendements de la XIVème législature",
547
- // url:
548
- // "https://data.assemblee-nationale.fr/static/openData/repository/14/loi/amendements_legis_XIV/Amendements_XIV.json.zip",
549
- // },
550
- ],
551
- dossiersLegislatifs: [
552
- {
553
- filename: "Dossiers_Legislatifs_XVII.json",
554
- legislature: f.DixSept,
555
- repairZip: J,
556
- structure: 1,
557
- title: "Dossiers législatifs de la XVIIème législature",
558
- url: "https://data.assemblee-nationale.fr/static/openData/repository/17/loi/dossiers_legislatifs/Dossiers_Legislatifs.json.zip"
559
- },
560
- {
561
- filename: "Dossiers_Legislatifs_XVI.json",
562
- legislature: f.Seize,
563
- repairZip: J,
564
- structure: 1,
565
- title: "Dossiers législatifs de la XVIème législature",
566
- url: "https://data.assemblee-nationale.fr/static/openData/repository/16/loi/dossiers_legislatifs/Dossiers_Legislatifs.json.zip"
567
- },
568
- {
569
- filename: "Dossiers_Legislatifs_XV.json",
570
- legislature: f.Quinze,
571
- repairZip: J,
572
- structure: 1,
573
- title: "Dossiers législatifs de la XVème législature",
574
- url: "https://data.assemblee-nationale.fr/static/openData/repository/15/loi/dossiers_legislatifs/Dossiers_Legislatifs_XV.json.zip"
575
- },
576
- {
577
- filename: "Dossiers_Legislatifs_XIV.json",
578
- legislature: f.Quatorze,
579
- structure: 0,
580
- title: "Dossiers législatifs de la XIVème législature",
581
- url: "https://data.assemblee-nationale.fr/static/openData/repository/14/loi/dossiers_legislatifs/Dossiers_Legislatifs_XIV.json.zip"
582
- }
583
- ],
584
- scrutins: [
585
- {
586
- filename: "Scrutins_XVII.json",
587
- legislature: f.DixSept,
588
- repairZip: J,
589
- structure: 1,
590
- title: "Scrutins de la XVIIème législature",
591
- url: "https://data.assemblee-nationale.fr/static/openData/repository/17/loi/scrutins/Scrutins.json.zip"
592
- },
593
- {
594
- filename: "Scrutins_XVI.json",
595
- legislature: f.Seize,
596
- repairZip: J,
597
- structure: 1,
598
- title: "Scrutins de la XVIème législature",
599
- url: "https://data.assemblee-nationale.fr/static/openData/repository/16/loi/scrutins/Scrutins.json.zip"
600
- },
601
- {
602
- filename: "Scrutins_XV.json",
603
- legislature: f.Quinze,
604
- repairZip: J,
605
- structure: 1,
606
- title: "Scrutins de la XVème législature",
607
- url: "https://data.assemblee-nationale.fr/static/openData/repository/15/loi/scrutins/Scrutins_XV.json.zip"
608
- },
609
- {
610
- filename: "Scrutins_XIV.json",
611
- legislature: f.Quatorze,
612
- structure: 0,
613
- title: "Scrutins de la XIVème législature",
614
- url: "https://data.assemblee-nationale.fr/static/openData/repository/14/loi/scrutins/Scrutins_XIV.json.zip"
615
- }
616
- ],
617
- questions: [
618
- {
619
- filename: "Questions_ecrites_XVII.json",
620
- legislature: f.DixSept,
621
- repairZip: J,
622
- structure: 1,
623
- title: "Questions écrites de la XVIIème législature",
624
- url: "https://data.assemblee-nationale.fr/static/openData/repository/17/questions/questions_ecrites/Questions_ecrites.json.zip"
625
- },
626
- {
627
- filename: "Questions_ecrites_XVI.json",
628
- legislature: f.Seize,
629
- repairZip: J,
630
- structure: 1,
631
- title: "Questions écrites de la XVIème législature",
632
- url: "https://data.assemblee-nationale.fr/static/openData/repository/16/questions/questions_ecrites/Questions_ecrites.json.zip"
633
- },
634
- {
635
- filename: "Questions_gouvernement_XVII.json",
636
- legislature: f.DixSept,
637
- repairZip: J,
638
- structure: 1,
639
- title: "Questions au gouvernement de la XVIIème législature",
640
- url: "https://data.assemblee-nationale.fr/static/openData/repository/17/questions/questions_gouvernement/Questions_gouvernement.json.zip"
641
- },
642
- {
643
- filename: "Questions_gouvernement_XVI.json",
644
- legislature: f.Seize,
645
- repairZip: J,
646
- structure: 1,
647
- title: "Questions au gouvernement de la XVIème législature",
648
- url: "https://data.assemblee-nationale.fr/static/openData/repository/16/questions/questions_gouvernement/Questions_gouvernement.json.zip"
649
- },
650
- {
651
- filename: "Questions_orales_XVII.json",
652
- legislature: f.DixSept,
653
- repairZip: J,
654
- structure: 1,
655
- title: "Questions orales sans débats de la XVIIème législature",
656
- url: "https://data.assemblee-nationale.fr/static/openData/repository/17/questions/questions_orales_sans_debat/Questions_orales_sans_debat.json.zip"
657
- },
658
- {
659
- filename: "Questions_orales_XVI.json",
660
- legislature: f.Seize,
661
- repairZip: J,
662
- structure: 1,
663
- title: "Questions orales sans débats de la XVIème législature",
664
- url: "https://data.assemblee-nationale.fr/static/openData/repository/16/questions/questions_orales_sans_debat/Questions_orales_sans_debat.json.zip"
665
- }
666
- ],
667
- comptesRendusSeances: [
668
- {
669
- filename: "Comptes_Rendus_Seances_XVII.xml",
670
- legislature: f.DixSept,
671
- repairZip: (e, n) => {
672
- const s = i.join(n, e.filename);
673
- p.existsSync(s) && p.removeSync(s), p.moveSync(i.join(n, "xml"), s);
674
- },
675
- structure: 1,
676
- title: "Comptes rendus des séances publiques de la XVIIème législature",
677
- url: "https://data.assemblee-nationale.fr/static/openData/repository/17/vp/syceronbrut/syseron.xml.zip"
678
- },
679
- {
680
- filename: "Comptes_Rendus_Seances_XVI.xml",
681
- legislature: f.Seize,
682
- repairZip: (e, n) => {
683
- const s = i.join(n, e.filename);
684
- p.existsSync(s) && p.removeSync(s), p.moveSync(i.join(n, "xml"), s);
685
- },
686
- structure: 1,
687
- title: "Comptes rendus des séances publiques de la XVIème législature",
688
- url: "https://data.assemblee-nationale.fr/static/openData/repository/16/vp/syceronbrut/syseron.xml.zip"
689
- }
690
- ]
691
- };
692
- function* k(e, n = []) {
693
- const s = i.join(e, ...n);
694
- if (p.existsSync(s))
695
- for (const a of p.readdirSync(s)) {
696
- if (a[0] === ".")
697
- continue;
698
- const y = i.join(s, a), _ = [...n, a];
699
- p.statSync(y).isDirectory() ? yield* k(e, _) : yield _;
700
- }
701
- }
702
- var ze = /* @__PURE__ */ ((e) => (e.M = "M.", e.Mme = "Mme", e))(ze || {}), We = /* @__PURE__ */ ((e) => (e.MandatAvecSuppleantType = "MandatAvecSuppleant_Type", e.MandatMissionType = "MandatMission_Type", e.MandatParlementaireType = "MandatParlementaire_type", e.MandatSimpleType = "MandatSimple_Type", e))(We || {}), Ze = /* @__PURE__ */ ((e) => (e.CollectivitésDOutreMerEtNouvelleCalédonie = "Collectivités d'outre-mer et Nouvelle-Calédonie", e.Dom = "Dom", e.FrançaisÉtablisHorsDeFrance = "Français établis hors de France", e.Métropolitain = "Métropolitain", e))(Ze || {}), He = /* @__PURE__ */ ((e) => (e.AgriculteursExploitants = "Agriculteurs exploitants", e.ArtisansCommerçantsChefsDEntreprises = "Artisans, commerçants, chefs d'entreprises", e.ArtisansCommerçantsEtChefsDEntrepriseAncien = "Artisans, commerçants et chefs d'entreprise", e.AutresPersonnesSansActivitéProfessionnelle = "Autres personnes sans activité professionnelle", e.CadresEtProfessionsIntellectuellesSupérieures = "Cadres et professions intellectuelles supérieures", e.Employés = "Employés", e.Ouvriers = "Ouvriers", e.ProfessionsIntermédiaires = "Professions intermédiaires", e.ProfessionsIntermédiairesAncien = "Professions Intermédiaires", e.Retraités = "Retraités", e.SansProfessionDéclarée = "Sans profession déclarée", e))(He || {}), Ke = /* @__PURE__ */ ((e) => (e.GroupePolitiqueType = "GroupePolitique_type", e.OrganeCirconscriptionType = "OrganeCirconscription_type", e.OrganeExterneType = "OrganeExterne_Type", e.OrganeExtraParlementaireType = "OrganeExtraParlementaire_type", e.OrganeParlementaireInternational = "OrganeParlementaireInternational", e.OrganeParlementaireType = "OrganeParlementaire_Type", e))(Ke || {}), Ye = /* @__PURE__ */ ((e) => (e.H = "H", e.M = "M", e.O = "O", e.T = "T", e))(Ye || {}), ke = /* @__PURE__ */ ((e) => (e.Majoritaire = "Majoritaire", e.Minoritaire = "Minoritaire", e.Opposition = "Opposition", e))(ke || {}), en = /* @__PURE__ */ ((e) => (e.AssembléeConsultativeProvisoire = "Assemblée consultative provisoire", e.AssembléesNationalesConstituantes = "Assemblées nationales constituantes", e.The3ÈmeRépublique = "3ème République", e.The4ÈmeRépublique = "4ème République", e.The5ÈmeRépublique = "5ème République", e))(en || {});
703
- let ve = class {
704
- static toActeursEtOrganes(n) {
705
- return be(JSON.parse(n), O("ActeursEtOrganes"));
706
- }
707
- static acteursEtOrganesToJson(n) {
708
- return JSON.stringify(Ee(n, O("ActeursEtOrganes")), null, 2);
709
- }
710
- static toActeur(n) {
711
- return be(JSON.parse(n), O("Acteur"));
712
- }
713
- static acteurToJson(n) {
714
- return JSON.stringify(Ee(n, O("Acteur")), null, 2);
715
- }
716
- static toOrgane(n) {
717
- return be(JSON.parse(n), O("Organe"));
718
- }
719
- static organeToJson(n) {
720
- return JSON.stringify(Ee(n, O("Organe")), null, 2);
721
- }
722
- };
723
- function oe(e, n, s = "") {
724
- throw Error(
725
- s ? `Invalid value for key "${s}". Expected type ${JSON.stringify(
726
- e
727
- )} but got ${JSON.stringify(n)}` : `Invalid value ${JSON.stringify(n)} for type ${JSON.stringify(e)}`
728
- );
729
- }
730
- function nn(e) {
731
- if (e.jsonToJS === void 0) {
732
- const n = {};
733
- e.props.forEach((s) => n[s.json] = { key: s.js, typ: s.typ }), e.jsonToJS = n;
734
- }
735
- return e.jsonToJS;
736
- }
737
- function sn(e) {
738
- if (e.jsToJSON === void 0) {
739
- const n = {};
740
- e.props.forEach((s) => n[s.js] = { key: s.json, typ: s.typ }), e.jsToJSON = n;
741
- }
742
- return e.jsToJSON;
743
- }
744
- function le(e, n, s, a = "") {
745
- function y(t, o) {
746
- return typeof t == typeof o ? o : oe(t, o, a);
747
- }
748
- function _(t, o) {
749
- const u = t.length;
750
- for (let S = 0; S < u; S++) {
751
- const m = t[S];
752
- try {
753
- return le(o, m, s);
754
- } catch {
755
- }
756
- }
757
- return oe(t, o);
758
- }
759
- function R(t, o) {
760
- return t.indexOf(o) !== -1 ? o : oe(t, o);
761
- }
762
- function I(t, o) {
763
- return Array.isArray(o) ? o.map((u) => le(u, t, s)) : oe("array", o);
764
- }
765
- function T(t) {
766
- if (t === null)
767
- return null;
768
- const o = new Date(t);
769
- return isNaN(o.valueOf()) ? oe("Date", t) : o;
770
- }
771
- function h(t, o, u) {
772
- if (u === null || typeof u != "object" || Array.isArray(u))
773
- return oe("object", u);
774
- const S = {};
775
- return Object.getOwnPropertyNames(t).forEach((m) => {
776
- const b = t[m], x = Object.prototype.hasOwnProperty.call(u, m) ? u[m] : void 0;
777
- S[b.key] = le(x, b.typ, s, b.key);
778
- }), Object.getOwnPropertyNames(u).forEach((m) => {
779
- Object.prototype.hasOwnProperty.call(t, m) || (S[m] = le(u[m], o, s, m));
780
- }), S;
781
- }
782
- if (n === "any") return e;
783
- if (n === null)
784
- return e === null ? e : oe(n, e);
785
- for (; typeof n == "object" && n.ref !== void 0; )
786
- n = tn[n.ref];
787
- return Array.isArray(n) ? R(n, e) : typeof n == "object" ? n.hasOwnProperty("unionMembers") ? _(n.unionMembers, e) : n.hasOwnProperty("arrayItems") ? I(n.arrayItems, e) : n.hasOwnProperty("props") ? h(s(n), n.additional, e) : oe(n, e) : n === Date && typeof e != "number" ? T(e) : y(n, e);
788
- }
789
- function be(e, n) {
790
- return le(e, n, nn);
791
- }
792
- function Ee(e, n) {
793
- return le(e, n, sn);
794
- }
795
- function ie(e) {
796
- return { arrayItems: e };
797
- }
798
- function j(...e) {
799
- return { unionMembers: e };
800
- }
801
- function L(e, n) {
802
- return { props: e, additional: n };
803
- }
804
- function O(e) {
805
- return { ref: e };
806
- }
807
- const tn = {
808
- ActeursEtOrganes: L(
809
- [
810
- { json: "organes", js: "organes", typ: ie(O("Organe")) },
811
- { json: "acteurs", js: "acteurs", typ: ie(O("Acteur")) }
812
- ],
813
- !1
814
- ),
815
- Acteur: L(
816
- [
817
- { json: "schemaVersion", js: "schemaVersion", typ: j(void 0, "") },
818
- { json: "uid", js: "uid", typ: "" },
819
- { json: "etatCivil", js: "etatCivil", typ: O("EtatCivil") },
820
- {
821
- json: "profession",
822
- js: "profession",
823
- typ: j(void 0, O("Profession"))
824
- },
825
- { json: "uriHatvp", js: "uriHatvp", typ: j(void 0, "") },
826
- {
827
- json: "adresses",
828
- js: "adresses",
829
- typ: j(void 0, ie(j(O("AdresseElectronique"), O("AdressePostale"))))
830
- },
831
- { json: "mandats", js: "mandats", typ: j(void 0, ie(O("Mandat"))) },
832
- { json: "photo", js: "photo", typ: j(void 0, O("Photo")) },
833
- { json: "deports", js: "deports", typ: j(void 0, ie(O("Deport"))) }
834
- ],
835
- !1
836
- ),
837
- AdresseElectronique: L(
838
- [
839
- { json: "xsiType", js: "xsiType", typ: "" },
840
- { json: "uid", js: "uid", typ: "" },
841
- { json: "type", js: "type", typ: "" },
842
- { json: "typeLibelle", js: "typeLibelle", typ: "" },
843
- { json: "poids", js: "poids", typ: j(void 0, "") },
844
- {
845
- json: "adresseDeRattachement",
846
- js: "adresseDeRattachement",
847
- typ: j(void 0, "")
848
- },
849
- { json: "valElec", js: "valElec", typ: j(void 0, "") }
850
- ],
851
- !1
852
- ),
853
- AdressePostale: L(
854
- [
855
- { json: "xsiType", js: "xsiType", typ: "" },
856
- { json: "uid", js: "uid", typ: "" },
857
- { json: "type", js: "type", typ: "" },
858
- { json: "typeLibelle", js: "typeLibelle", typ: "" },
859
- { json: "poids", js: "poids", typ: j(void 0, "") },
860
- { json: "intitule", js: "intitule", typ: j(void 0, "") },
861
- { json: "numeroRue", js: "numeroRue", typ: j(void 0, "") },
862
- { json: "nomRue", js: "nomRue", typ: j(void 0, "") },
863
- {
864
- json: "complementAdresse",
865
- js: "complementAdresse",
866
- typ: j(void 0, "")
867
- },
868
- { json: "codePostal", js: "codePostal", typ: j(void 0, "") },
869
- { json: "ville", js: "ville", typ: j(void 0, "") }
870
- ],
871
- !1
872
- ),
873
- EtatCivil: L(
874
- [
875
- { json: "ident", js: "ident", typ: O("Ident") },
876
- { json: "infoNaissance", js: "infoNaissance", typ: O("InfoNaissance") },
877
- { json: "dateDeces", js: "dateDeces", typ: j(void 0, Date) }
878
- ],
879
- !1
880
- ),
881
- Ident: L(
882
- [
883
- { json: "civ", js: "civ", typ: O("Civ") },
884
- { json: "prenom", js: "prenom", typ: "" },
885
- { json: "nom", js: "nom", typ: "" },
886
- { json: "alpha", js: "alpha", typ: "" },
887
- { json: "trigramme", js: "trigramme", typ: j(void 0, "") }
888
- ],
889
- !1
890
- ),
891
- InfoNaissance: L(
892
- [
893
- { json: "dateNais", js: "dateNais", typ: j(void 0, Date) },
894
- { json: "villeNais", js: "villeNais", typ: j(void 0, "") },
895
- { json: "depNais", js: "depNais", typ: j(void 0, "") },
896
- { json: "paysNais", js: "paysNais", typ: j(void 0, "") }
897
- ],
898
- !1
899
- ),
900
- Mandat: L(
901
- [
902
- { json: "xsiType", js: "xsiType", typ: j(void 0, O("TypeMandat")) },
903
- { json: "uid", js: "uid", typ: "" },
904
- { json: "acteurRef", js: "acteurRef", typ: "" },
905
- { json: "legislature", js: "legislature", typ: j(void 0, "") },
906
- { json: "typeOrgane", js: "typeOrgane", typ: O("CodeTypeOrgane") },
907
- { json: "dateDebut", js: "dateDebut", typ: Date },
908
- {
909
- json: "datePublication",
910
- js: "datePublication",
911
- typ: j(void 0, Date)
912
- },
913
- { json: "dateFin", js: "dateFin", typ: j(void 0, Date) },
914
- { json: "preseance", js: "preseance", typ: j(void 0, "") },
915
- { json: "nominPrincipale", js: "nominPrincipale", typ: "" },
916
- { json: "infosQualite", js: "infosQualite", typ: O("InfosQualite") },
917
- { json: "organesRefs", js: "organesRefs", typ: ie("") },
918
- { json: "suppleant", js: "suppleant", typ: j(void 0, O("Suppleant")) },
919
- { json: "election", js: "election", typ: j(void 0, O("Election")) },
920
- { json: "mandature", js: "mandature", typ: j(void 0, O("Mandature")) },
921
- {
922
- json: "collaborateurs",
923
- js: "collaborateurs",
924
- typ: j(void 0, ie(O("Collaborateur")))
925
- },
926
- { json: "libelle", js: "libelle", typ: j(void 0, "") },
927
- {
928
- json: "missionSuivanteRef",
929
- js: "missionSuivanteRef",
930
- typ: j(void 0, "")
931
- },
932
- {
933
- json: "missionPrecedenteRef",
934
- js: "missionPrecedenteRef",
935
- typ: j(void 0, "")
936
- }
937
- ],
938
- !1
939
- ),
940
- Collaborateur: L(
941
- [
942
- { json: "qualite", js: "qualite", typ: j(void 0, O("Civ")) },
943
- { json: "prenom", js: "prenom", typ: "" },
944
- { json: "nom", js: "nom", typ: "" }
945
- ],
946
- !1
947
- ),
948
- Election: L(
949
- [
950
- { json: "lieu", js: "lieu", typ: O("Lieu") },
951
- { json: "causeMandat", js: "causeMandat", typ: j(void 0, "") },
952
- {
953
- json: "refCirconscription",
954
- js: "refCirconscription",
955
- typ: j(void 0, "")
956
- }
957
- ],
958
- !1
959
- ),
960
- Lieu: L(
961
- [
962
- { json: "region", js: "region", typ: j(void 0, "") },
963
- {
964
- json: "regionType",
965
- js: "regionType",
966
- typ: j(void 0, O("RegionType"))
967
- },
968
- { json: "departement", js: "departement", typ: j(void 0, "") },
969
- { json: "numDepartement", js: "numDepartement", typ: j(void 0, "") },
970
- { json: "numCirco", js: "numCirco", typ: j(void 0, "") }
971
- ],
972
- !1
973
- ),
974
- InfosQualite: L(
975
- [
976
- { json: "codeQualite", js: "codeQualite", typ: j(void 0, "") },
977
- { json: "libQualite", js: "libQualite", typ: "" },
978
- { json: "libQualiteSex", js: "libQualiteSex", typ: j(void 0, "") }
979
- ],
980
- !1
981
- ),
982
- Mandature: L(
983
- [
984
- {
985
- json: "datePriseFonction",
986
- js: "datePriseFonction",
987
- typ: j(void 0, Date)
988
- },
989
- { json: "causeFin", js: "causeFin", typ: j(void 0, "") },
990
- {
991
- json: "premiereElection",
992
- js: "premiereElection",
993
- typ: j(void 0, "")
994
- },
995
- { json: "placeHemicycle", js: "placeHemicycle", typ: j(void 0, "") },
996
- {
997
- json: "mandatRemplaceRef",
998
- js: "mandatRemplaceRef",
999
- typ: j(void 0, "")
1000
- },
1001
- { json: "matriculeVote", js: "matriculeVote", typ: j(void 0, "") }
1002
- ],
1003
- !1
1004
- ),
1005
- Suppleant: L(
1006
- [
1007
- { json: "dateDebut", js: "dateDebut", typ: Date },
1008
- { json: "dateFin", js: "dateFin", typ: j(void 0, Date) },
1009
- { json: "suppleantRef", js: "suppleantRef", typ: "" }
1010
- ],
1011
- !1
1012
- ),
1013
- Profession: L(
1014
- [
1015
- { json: "libelleCourant", js: "libelleCourant", typ: j(void 0, "") },
1016
- { json: "socProcInsee", js: "socProcInsee", typ: O("SocProcInsee") }
1017
- ],
1018
- !1
1019
- ),
1020
- SocProcInsee: L(
1021
- [
1022
- { json: "catSocPro", js: "catSocPro", typ: j(void 0, "") },
1023
- { json: "famSocPro", js: "famSocPro", typ: j(void 0, O("FamSocPro")) }
1024
- ],
1025
- !1
1026
- ),
1027
- Deport: L(
1028
- [
1029
- { json: "uid", js: "uid", typ: "" },
1030
- { json: "chronotag", js: "chronotag", typ: "" },
1031
- { json: "legislature", js: "legislature", typ: "" },
1032
- { json: "refActeur", js: "refActeur", typ: "" },
1033
- { json: "dateCreation", js: "dateCreation", typ: Date },
1034
- { json: "datePublication", js: "datePublication", typ: Date },
1035
- { json: "portee", js: "portee", typ: O("CodeEtLibelle") },
1036
- { json: "lecture", js: "lecture", typ: O("CodeEtLibelle") },
1037
- { json: "instance", js: "instance", typ: O("CodeEtLibelle") },
1038
- { json: "cible", js: "cible", typ: O("Cible") },
1039
- { json: "explication", js: "explication", typ: j(void 0, "") }
1040
- ],
1041
- !1
1042
- ),
1043
- Cible: L(
1044
- [
1045
- { json: "type", js: "type", typ: O("CodeEtLibelle") },
1046
- { json: "referenceTextuelle", js: "referenceTextuelle", typ: "" }
1047
- ],
1048
- !1
1049
- ),
1050
- CodeEtLibelle: L(
1051
- [
1052
- { json: "code", js: "code", typ: "" },
1053
- { json: "libelle", js: "libelle", typ: "" }
1054
- ],
1055
- !1
1056
- ),
1057
- Organe: L(
1058
- [
1059
- { json: "schemaVersion", js: "schemaVersion", typ: j(void 0, "") },
1060
- { json: "xsiType", js: "xsiType", typ: j(void 0, O("TypeOrgane")) },
1061
- { json: "uid", js: "uid", typ: "" },
1062
- { json: "codeType", js: "codeType", typ: O("CodeTypeOrgane") },
1063
- { json: "libelle", js: "libelle", typ: "" },
1064
- { json: "libelleEdition", js: "libelleEdition", typ: j(void 0, "") },
1065
- { json: "libelleAbrege", js: "libelleAbrege", typ: "" },
1066
- { json: "libelleAbrev", js: "libelleAbrev", typ: "" },
1067
- { json: "viMoDe", js: "viMoDe", typ: O("ViMoDe") },
1068
- {
1069
- json: "organeParentRef",
1070
- js: "organeParentRef",
1071
- typ: j(void 0, "")
1072
- },
1073
- {
1074
- json: "organePrecedentRef",
1075
- js: "organePrecedentRef",
1076
- typ: j(void 0, "")
1077
- },
1078
- { json: "regime", js: "regime", typ: j(void 0, O("Regime")) },
1079
- {
1080
- json: "legislature",
1081
- js: "legislature",
1082
- typ: j(void 0, "")
1083
- },
1084
- {
1085
- json: "secretariat",
1086
- js: "secretariat",
1087
- typ: j(void 0, O("Secretariat"))
1088
- },
1089
- { json: "numero", js: "numero", typ: j(void 0, "") },
1090
- { json: "lieu", js: "lieu", typ: j(void 0, O("OrganeLieu")) },
1091
- {
1092
- json: "regimeJuridique",
1093
- js: "regimeJuridique",
1094
- typ: j(void 0, "")
1095
- },
1096
- {
1097
- json: "siteInternet",
1098
- js: "siteInternet",
1099
- typ: j(void 0, "")
1100
- },
1101
- {
1102
- json: "nombreReunionsAnnuelles",
1103
- js: "nombreReunionsAnnuelles",
1104
- typ: j(void 0, "")
1105
- },
1106
- {
1107
- json: "positionPolitique",
1108
- js: "positionPolitique",
1109
- typ: j(void 0, O("PositionPolitique"))
1110
- },
1111
- { json: "preseance", js: "preseance", typ: j(void 0, "") },
1112
- { json: "couleurAssociee", js: "couleurAssociee", typ: j(void 0, "") },
1113
- {
1114
- json: "listePays",
1115
- js: "listePays",
1116
- typ: j(void 0, ie(""))
1117
- }
1118
- ],
1119
- !1
1120
- ),
1121
- OrganeLieu: L(
1122
- [
1123
- { json: "region", js: "region", typ: O("Region") },
1124
- { json: "departement", js: "departement", typ: O("Departement") }
1125
- ],
1126
- !1
1127
- ),
1128
- Departement: L(
1129
- [
1130
- {
1131
- json: "codeNatureDep",
1132
- js: "codeNatureDep",
1133
- typ: j(void 0, O("CodeNatureDep"))
1134
- },
1135
- { json: "code", js: "code", typ: j(void 0, "") },
1136
- { json: "libelle", js: "libelle", typ: j(void 0, "") }
1137
- ],
1138
- !1
1139
- ),
1140
- Region: L(
1141
- [
1142
- { json: "type", js: "type", typ: j(void 0, O("RegionType")) },
1143
- { json: "libelle", js: "libelle", typ: j(void 0, "") }
1144
- ],
1145
- !1
1146
- ),
1147
- Secretariat: L(
1148
- [
1149
- { json: "secretaire01", js: "secretaire01", typ: j(void 0, "") },
1150
- { json: "secretaire02", js: "secretaire02", typ: j(void 0, "") }
1151
- ],
1152
- !1
1153
- ),
1154
- ViMoDe: L(
1155
- [
1156
- { json: "dateDebut", js: "dateDebut", typ: j(void 0, Date) },
1157
- { json: "dateAgrement", js: "dateAgrement", typ: j(void 0, Date) },
1158
- { json: "dateFin", js: "dateFin", typ: j(void 0, Date) }
1159
- ],
1160
- !1
1161
- ),
1162
- Photo: L(
1163
- [
1164
- { json: "chemin", js: "chemin", typ: "" },
1165
- { json: "cheminMosaique", js: "cheminMosaique", typ: "" },
1166
- { json: "hauteur", js: "hauteur", typ: 0 },
1167
- { json: "largeur", js: "largeur", typ: 0 },
1168
- { json: "xMosaique", js: "xMosaique", typ: 0 },
1169
- { json: "yMosaique", js: "yMosaique", typ: 0 }
1170
- ],
1171
- !1
1172
- ),
1173
- Civ: ["M.", "Mme"],
1174
- TypeMandat: [
1175
- "MandatAvecSuppleant_Type",
1176
- "MandatMission_Type",
1177
- "MandatParlementaire_type",
1178
- "MandatSimple_Type"
1179
- ],
1180
- RegionType: [
1181
- "Collectivités d'outre-mer et Nouvelle-Calédonie",
1182
- "Dom",
1183
- "Français établis hors de France",
1184
- "Métropolitain"
1185
- ],
1186
- CodeTypeOrgane: Object.values(Be),
1187
- FamSocPro: [
1188
- "Agriculteurs exploitants",
1189
- "Artisans, commerçants et chefs d'entreprise",
1190
- "Artisans, commerçants, chefs d'entreprises",
1191
- "Autres personnes sans activité professionnelle",
1192
- "Cadres et professions intellectuelles supérieures",
1193
- "Employés",
1194
- "Ouvriers",
1195
- "Professions Intermédiaires",
1196
- "Professions intermédiaires",
1197
- "Retraités",
1198
- "Sans profession déclarée"
1199
- ],
1200
- TypeOrgane: [
1201
- "GroupePolitique_type",
1202
- "OrganeCirconscription_type",
1203
- "OrganeExterne_Type",
1204
- "OrganeExtraParlementaire_type",
1205
- "OrganeParlementaireInternational",
1206
- "OrganeParlementaire_Type"
1207
- ],
1208
- CodeNatureDep: ["H", "M", "O", "T"],
1209
- PositionPolitique: ["Majoritaire", "Minoritaire", "Opposition"],
1210
- Regime: [
1211
- "Assemblée consultative provisoire",
1212
- "Assemblées nationales constituantes",
1213
- "3ème République",
1214
- "4ème République",
1215
- "5ème République"
1216
- ]
1217
- };
1218
- var on = /* @__PURE__ */ ((e) => (e.ReunionCommissionType = "reunionCommission_type", e.ReunionInitParlementaireType = "reunionInitParlementaire_type", e.SeanceType = "seance_type", e))(on || {}), rn = /* @__PURE__ */ ((e) => (e.PodjReunionType = "podjReunion_type", e.PodjSeanceConfPresType = "podjSeanceConfPres_type", e))(rn || {}), an = /* @__PURE__ */ ((e) => (e.Annulé = "Annulé", e.Confirmé = "Confirmé", e.Eventuel = "Eventuel", e.Supprimé = "Supprimé", e))(an || {}), un = /* @__PURE__ */ ((e) => (e.Odjpr = "ODJPR", e.Odjsn = "ODJSN", e))(un || {}), ln = /* @__PURE__ */ ((e) => (e.DiscussionGénéraleCommune = "discussion générale commune", e.ProcédureDExamenSimplifiéeArticle103 = "procédure d'examen simplifiée-Article 103", e.ProcédureDExamenSimplifiéeArticle106 = "procédure d'examen simplifiée-Article 106", e.ProcédureDExamenSimplifiéeArticle107 = "procédure d'examen simplifiée-Article 107", e.ProcédureDeLégislationEnCommissionArticle1071 = "procédure de législation en commission-Article 107-1", e))(ln || {}), pn = /* @__PURE__ */ ((e) => (e.AmendementsArt88 = "Amendements (Art. 88)", e.AmendementsArt91 = "Amendements (Art. 91)", e.Audition = "Audition", e.AuditionMinistre = "Audition ministre", e.AuditionMinistreOuverteÀLaPresse = "Audition ministre ouverte à la presse", e.AuditionOuverteÀLaPresse = "Audition ouverte à la presse", e.Communication = "Communication", e.ConstitutionDeMissionDInformation = "Constitution de mission d'information", e.Discussion = "Discussion", e.DébatDInitiativeParlementaire = "Débat d'initiative parlementaire", e.DéclarationDuGouvernementSuivieDUnDébat = "Déclaration du Gouvernement suivie d'un débat", e.EchangesDeVues = "Echanges de vues", e.Examen = "Examen", e.ExplicationsDeVoteDesGroupesEtVoteParScrutinPublic = "Explications de vote des groupes et vote par scrutin public", e.ExplicationsDeVoteEtVoteParScrutinPublic = "Explications de vote et vote par scrutin public", e.FixationDeLOrdreDuJour = "Fixation de l'ordre du jour", e.NominationBureau = "Nomination bureau", e.NominationCandidatsOrganismeExtraparlementaire = "Nomination candidats organisme extraparlementaire", e.NominationDUnMembreDUneMissionDInformation = "Nomination d'un membre d'une mission d'information", e.NominationRapporteur = "Nomination rapporteur", e.NominationRapporteurDApplication = "Nomination rapporteur d'application", e.NominationRapporteurDInformation = "Nomination rapporteur d'information", e.NominationRapporteurPourAvis = "Nomination rapporteur pour avis", e.OuvertureEtClôtureDeSession = "Ouverture et clôture de session", e.QuestionsAuGouvernement = "Questions au Gouvernement", e.QuestionsOralesSansDébat = "Questions orales sans débat", e.Rapport = "Rapport", e.RapportDInformation = "Rapport d'information", e.RapportPourAvis = "Rapport pour avis", e.SeancesReserveesGroupeOppositionOuMinoritaire = "Séances réservées à un groupe de l'opposition ou minoritaire", e.SuiteDeLaDiscussion = "Suite de la discussion", e.TableRonde = "Table ronde", e.VoteParScrutinPublic = "Vote par scrutin public", e.VoteSolennel = "Vote solennel", e))(pn || {}), cn = /* @__PURE__ */ ((e) => (e.AuditionExterne = "AuditionExterne", e.AuditionParPresidentCommission = "AuditionParPresidentCommission", e.AuditionParRapporteur = "AuditionParRapporteur", e.Ordinaire = "Ordinaire", e))(cn || {}), jn = /* @__PURE__ */ ((e) => (e.Deuxième = "Deuxième", e.Première = "Première", e.Troisième = "Troisième", e.Unique = "Unique", e))(jn || {}), mn = /* @__PURE__ */ ((e) => (e.Absent = "absent", e.Excusé = "excusé", e.Présent = "présent", e))(mn || {}), dn = /* @__PURE__ */ ((e) => (e.IdActeurType = "IdActeur_type", e.IdPersonneExterneType = "IdPersonneExterne_type", e))(dn || {}), fn = /* @__PURE__ */ ((e) => (e.Dep = "DEP", e.Ga = "GA", e.Ge = "GE", e.Gevi = "GEVI", e.Gp = "GP", e.HéAurélien = "HÉ Aurélien", e))(fn || {});
1219
- let Ce = class {
1220
- static toAgendas(n) {
1221
- return Ve(JSON.parse(n), V("Agendas"));
1222
- }
1223
- static agendasToJson(n) {
1224
- return JSON.stringify(Fe(n, V("Agendas")), null, 2);
1225
- }
1226
- static toReunion(n) {
1227
- return Ve(JSON.parse(n), V("Reunion"));
1228
- }
1229
- static reunionToJson(n) {
1230
- return JSON.stringify(Fe(n, V("Reunion")), null, 2);
1231
- }
1232
- };
1233
- function re(e, n, s = "") {
1234
- throw Error(
1235
- s ? `Invalid value for key "${s}". Expected type ${JSON.stringify(
1236
- e
1237
- )} but got ${JSON.stringify(n)}` : `Invalid value ${JSON.stringify(n)} for type ${JSON.stringify(e)}`
1238
- );
1239
- }
1240
- function yn(e) {
1241
- if (e.jsonToJS === void 0) {
1242
- var n = {};
1243
- e.props.forEach((s) => n[s.json] = { key: s.js, typ: s.typ }), e.jsonToJS = n;
1244
- }
1245
- return e.jsonToJS;
1246
- }
1247
- function Sn(e) {
1248
- if (e.jsToJSON === void 0) {
1249
- var n = {};
1250
- e.props.forEach((s) => n[s.js] = { key: s.json, typ: s.typ }), e.jsToJSON = n;
1251
- }
1252
- return e.jsToJSON;
1253
- }
1254
- function pe(e, n, s, a = "") {
1255
- function y(t, o) {
1256
- return typeof t == typeof o ? o : re(t, o, a);
1257
- }
1258
- function _(t, o) {
1259
- const u = t.length;
1260
- for (let S = 0; S < u; S++) {
1261
- const m = t[S];
1262
- try {
1263
- return pe(o, m, s);
1264
- } catch {
1265
- }
1266
- }
1267
- return re(t, o);
1268
- }
1269
- function R(t, o) {
1270
- return t.indexOf(o) !== -1 ? o : re(t, o);
1271
- }
1272
- function I(t, o) {
1273
- return Array.isArray(o) ? o.map((u) => pe(u, t, s)) : re("array", o);
1274
- }
1275
- function T(t) {
1276
- if (t === null)
1277
- return null;
1278
- const o = new Date(t);
1279
- return isNaN(o.valueOf()) ? re("Date", t) : o;
1280
- }
1281
- function h(t, o, u) {
1282
- if (u === null || typeof u != "object" || Array.isArray(u))
1283
- return re("object", u);
1284
- const S = {};
1285
- return Object.getOwnPropertyNames(t).forEach((m) => {
1286
- const b = t[m], x = Object.prototype.hasOwnProperty.call(u, m) ? u[m] : void 0;
1287
- S[b.key] = pe(x, b.typ, s, b.key);
1288
- }), Object.getOwnPropertyNames(u).forEach((m) => {
1289
- Object.prototype.hasOwnProperty.call(t, m) || (S[m] = pe(u[m], o, s, m));
1290
- }), S;
1291
- }
1292
- if (n === "any") return e;
1293
- if (n === null)
1294
- return e === null ? e : re(n, e);
1295
- for (; typeof n == "object" && n.ref !== void 0; )
1296
- n = An[n.ref];
1297
- return Array.isArray(n) ? R(n, e) : typeof n == "object" ? n.hasOwnProperty("unionMembers") ? _(n.unionMembers, e) : n.hasOwnProperty("arrayItems") ? I(n.arrayItems, e) : n.hasOwnProperty("props") ? h(s(n), n.additional, e) : re(n, e) : n === Date && typeof e != "number" ? T(e) : y(n, e);
1298
- }
1299
- function Ve(e, n) {
1300
- return pe(e, n, yn);
1301
- }
1302
- function Fe(e, n) {
1303
- return pe(e, n, Sn);
1304
- }
1305
- function ee(e) {
1306
- return { arrayItems: e };
1307
- }
1308
- function E(...e) {
1309
- return { unionMembers: e };
1310
- }
1311
- function z(e, n) {
1312
- return { props: e, additional: n };
1313
- }
1314
- function V(e) {
1315
- return { ref: e };
1316
- }
1317
- const An = {
1318
- Agendas: z(
1319
- [{ json: "reunions", js: "reunions", typ: ee(V("Reunion")) }],
1320
- !1
1321
- ),
1322
- Reunion: z(
1323
- [
1324
- { json: "schemaVersion", js: "schemaVersion", typ: E(void 0, "") },
1325
- {
1326
- json: "xsiType",
1327
- js: "xsiType",
1328
- typ: E(void 0, V("ReunionXsiType"))
1329
- },
1330
- { json: "uid", js: "uid", typ: "" },
1331
- { json: "timestampDebut", js: "timestampDebut", typ: Date },
1332
- { json: "timestampFin", js: "timestampFin", typ: E(void 0, Date) },
1333
- { json: "lieu", js: "lieu", typ: E(void 0, V("LieuReunion")) },
1334
- { json: "cycleDeVie", js: "cycleDeVie", typ: V("CycleDeVieReunion") },
1335
- {
1336
- json: "demandeurs",
1337
- js: "demandeurs",
1338
- typ: E(void 0, V("Demandeurs"))
1339
- },
1340
- { json: "organeReuniRef", js: "organeReuniRef", typ: E(void 0, "") },
1341
- {
1342
- json: "typeReunion",
1343
- js: "typeReunion",
1344
- typ: E(void 0, V("TypeReunion"))
1345
- },
1346
- {
1347
- json: "participants",
1348
- js: "participants",
1349
- typ: E(void 0, V("Participants"))
1350
- },
1351
- { json: "sessionRef", js: "sessionRef", typ: E(void 0, "") },
1352
- {
1353
- json: "ouverturePresse",
1354
- js: "ouverturePresse",
1355
- typ: E(void 0, !1)
1356
- },
1357
- { json: "odj", js: "odj", typ: E(void 0, V("Odj")) },
1358
- { json: "compteRenduRef", js: "compteRenduRef", typ: E(void 0, "") },
1359
- {
1360
- json: "identifiants",
1361
- js: "identifiants",
1362
- typ: E(void 0, V("Identifiants"))
1363
- },
1364
- {
1365
- json: "formatReunion",
1366
- js: "formatReunion",
1367
- typ: E(void 0, V("FormatReunion"))
1368
- },
1369
- {
1370
- json: "infosReunionsInternationale",
1371
- js: "infosReunionsInternationale",
1372
- typ: E(void 0, V("InfosReunionsInternationale"))
1373
- },
1374
- {
1375
- json: "captationVideo",
1376
- js: "captationVideo",
1377
- typ: E(void 0, !1)
1378
- },
1379
- { json: "visioConference", js: "visioConference", typ: E(void 0, "") },
1380
- { json: "urlVideo", js: "urlVideo", typ: E(void 0, "") },
1381
- {
1382
- json: "timecodeDebutVideo",
1383
- js: "timecodeDebutVideo",
1384
- typ: E(void 0, 0)
1385
- }
1386
- ],
1387
- !1
1388
- ),
1389
- Odj: z(
1390
- [
1391
- {
1392
- json: "convocationOdj",
1393
- js: "convocationOdj",
1394
- typ: E(void 0, ee(""))
1395
- },
1396
- { json: "resumeOdj", js: "resumeOdj", typ: E(void 0, ee("")) },
1397
- {
1398
- json: "pointsOdj",
1399
- js: "pointsOdj",
1400
- typ: E(void 0, ee(V("PointOdj")))
1401
- }
1402
- ],
1403
- !1
1404
- ),
1405
- PointOdj: z(
1406
- [
1407
- { json: "xsiType", js: "xsiType", typ: V("PointOdjXsiType") },
1408
- { json: "uid", js: "uid", typ: "" },
1409
- { json: "cycleDeVie", js: "cycleDeVie", typ: V("CycleDeVieReunion") },
1410
- { json: "objet", js: "objet", typ: "" },
1411
- { json: "procedure", js: "procedure", typ: E(void 0, V("Procedure")) },
1412
- {
1413
- json: "dossiersLegislatifsRefs",
1414
- js: "dossiersLegislatifsRefs",
1415
- typ: E(void 0, ee(""))
1416
- },
1417
- { json: "typePointOdj", js: "typePointOdj", typ: V("TypePointOdj") },
1418
- { json: "comiteSecret", js: "comiteSecret", typ: !1 },
1419
- {
1420
- json: "natureTravauxOdj",
1421
- js: "natureTravauxOdj",
1422
- typ: E(void 0, V("NatureTravauxOdj"))
1423
- },
1424
- { json: "dateConfPres", js: "dateConfPres", typ: E(void 0, Date) },
1425
- {
1426
- json: "dateLettreMinistre",
1427
- js: "dateLettreMinistre",
1428
- typ: E(void 0, Date)
1429
- }
1430
- ],
1431
- !1
1432
- ),
1433
- CycleDeVieReunion: z(
1434
- [
1435
- { json: "etat", js: "etat", typ: V("EtatCycleDeVie") },
1436
- { json: "chrono", js: "chrono", typ: V("Chrono") }
1437
- ],
1438
- !1
1439
- ),
1440
- Chrono: z(
1441
- [
1442
- { json: "creation", js: "creation", typ: Date },
1443
- { json: "cloture", js: "cloture", typ: E(void 0, Date) }
1444
- ],
1445
- !1
1446
- ),
1447
- Demandeurs: z(
1448
- [
1449
- {
1450
- json: "acteurs",
1451
- js: "acteurs",
1452
- typ: E(void 0, ee(V("DemandeurActeur")))
1453
- },
1454
- { json: "organe", js: "organe", typ: E(void 0, V("DemandeurOrgane")) }
1455
- ],
1456
- !1
1457
- ),
1458
- DemandeurActeur: z(
1459
- [
1460
- { json: "nom", js: "nom", typ: E(void 0, "") },
1461
- { json: "acteurRef", js: "acteurRef", typ: "" }
1462
- ],
1463
- !1
1464
- ),
1465
- DemandeurOrgane: z(
1466
- [
1467
- { json: "nom", js: "nom", typ: "" },
1468
- { json: "organeRef", js: "organeRef", typ: "" }
1469
- ],
1470
- !1
1471
- ),
1472
- Identifiants: z(
1473
- [
1474
- { json: "numSeanceJo", js: "numSeanceJo", typ: E(void 0, "") },
1475
- { json: "idJo", js: "idJo", typ: E(void 0, "") },
1476
- { json: "quantieme", js: "quantieme", typ: V("Quantieme") },
1477
- { json: "dateSeance", js: "dateSeance", typ: Date }
1478
- ],
1479
- !1
1480
- ),
1481
- InfosReunionsInternationale: z(
1482
- [
1483
- {
1484
- json: "estReunionInternationale",
1485
- js: "estReunionInternationale",
1486
- typ: !1
1487
- },
1488
- { json: "listePays", js: "listePays", typ: E(void 0, ee("")) },
1489
- {
1490
- json: "informationsComplementaires",
1491
- js: "informationsComplementaires",
1492
- typ: E(void 0, "")
1493
- }
1494
- ],
1495
- !1
1496
- ),
1497
- LieuReunion: z(
1498
- [
1499
- { json: "code", js: "code", typ: E(void 0, "") },
1500
- { json: "libelleCourt", js: "libelleCourt", typ: E(void 0, "") },
1501
- { json: "libelleLong", js: "libelleLong", typ: E(void 0, "") },
1502
- { json: "lieuRef", js: "lieuRef", typ: E(void 0, "") }
1503
- ],
1504
- !1
1505
- ),
1506
- Participants: z(
1507
- [
1508
- {
1509
- json: "participantsInternes",
1510
- js: "participantsInternes",
1511
- typ: E(void 0, ee(V("ParticipantInterne")))
1512
- },
1513
- {
1514
- json: "personnesAuditionnees",
1515
- js: "personnesAuditionnees",
1516
- typ: E(void 0, ee(V("PersonneAuditionnee")))
1517
- }
1518
- ],
1519
- !1
1520
- ),
1521
- ParticipantInterne: z(
1522
- [
1523
- { json: "acteurRef", js: "acteurRef", typ: "" },
1524
- { json: "presence", js: "presence", typ: V("Presence") }
1525
- ],
1526
- !1
1527
- ),
1528
- PersonneAuditionnee: z(
1529
- [
1530
- { json: "xsiType", js: "xsiType", typ: V("PersonneAuditionneeXsiType") },
1531
- { json: "uid", js: "uid", typ: "" },
1532
- { json: "ident", js: "ident", typ: V("IdentPersonneAuditionnee") },
1533
- { json: "dateNais", js: "dateNais", typ: E(void 0, Date) }
1534
- ],
1535
- !1
1536
- ),
1537
- IdentPersonneAuditionnee: z(
1538
- [
1539
- { json: "civ", js: "civ", typ: V("Civ") },
1540
- { json: "prenom", js: "prenom", typ: "" },
1541
- { json: "nom", js: "nom", typ: "" },
1542
- { json: "alpha", js: "alpha", typ: E(void 0, "") },
1543
- { json: "trigramme", js: "trigramme", typ: E(void 0, "") }
1544
- ],
1545
- !1
1546
- ),
1547
- ReunionXsiType: [
1548
- "reunionCommission_type",
1549
- "reunionInitParlementaire_type",
1550
- "seance_type"
1551
- ],
1552
- PointOdjXsiType: ["podjReunion_type", "podjSeanceConfPres_type"],
1553
- EtatCycleDeVie: ["Annulé", "Confirmé", "Eventuel", "Supprimé"],
1554
- NatureTravauxOdj: ["ODJPR", "ODJSN"],
1555
- Procedure: [
1556
- "discussion générale commune",
1557
- "procédure d'examen simplifiée-Article 103",
1558
- "procédure d'examen simplifiée-Article 106",
1559
- "procédure d'examen simplifiée-Article 107",
1560
- "procédure de législation en commission-Article 107-1"
1561
- ],
1562
- TypePointOdj: [
1563
- "Amendements (Art. 88)",
1564
- "Amendements (Art. 91)",
1565
- "Audition",
1566
- "Audition ministre",
1567
- "Audition ministre ouverte à la presse",
1568
- "Audition ouverte à la presse",
1569
- "Communication",
1570
- "Constitution de mission d'information",
1571
- "Discussion",
1572
- "Débat d'initiative parlementaire",
1573
- "Déclaration du Gouvernement suivie d'un débat",
1574
- "Echanges de vues",
1575
- "Examen",
1576
- "Explications de vote des groupes et vote par scrutin public",
1577
- "Explications de vote et vote par scrutin public",
1578
- "Fixation de l'ordre du jour",
1579
- "Nomination bureau",
1580
- "Nomination candidats organisme extraparlementaire",
1581
- "Nomination d'un membre d'une mission d'information",
1582
- "Nomination rapporteur",
1583
- "Nomination rapporteur d'application",
1584
- "Nomination rapporteur d'information",
1585
- "Nomination rapporteur pour avis",
1586
- "Ouverture et clôture de session",
1587
- "Questions au Gouvernement",
1588
- "Questions orales sans débat",
1589
- "Rapport",
1590
- "Rapport d'information",
1591
- "Rapport pour avis",
1592
- "Séances réservées à un groupe de l'opposition ou minoritaire",
1593
- "Suite de la discussion",
1594
- "Table ronde",
1595
- "Vote par scrutin public",
1596
- "Vote solennel"
1597
- ],
1598
- FormatReunion: [
1599
- "AuditionExterne",
1600
- "AuditionParPresidentCommission",
1601
- "AuditionParRapporteur",
1602
- "Ordinaire"
1603
- ],
1604
- Quantieme: ["Deuxième", "Première", "Troisième", "Unique"],
1605
- Presence: ["absent", "excusé", "présent"],
1606
- Civ: ["M.", "Mme"],
1607
- PersonneAuditionneeXsiType: ["IdActeur_type", "IdPersonneExterne_type"],
1608
- TypeReunion: ["DEP", "GA", "GE", "GEVI", "GP", "HÉ Aurélien"]
1609
- };
1610
- var Xe = /* @__PURE__ */ ((e) => (e.An1 = "AN1", e.An1Acin = "AN1-ACIN", e.An1Avce = "AN1-AVCE", e.An1Com = "AN1-COM", e.An1ComAvis = "AN1-COM-AVIS", e.An1ComAvisNomin = "AN1-COM-AVIS-NOMIN", e.An1ComAvisRapport = "AN1-COM-AVIS-RAPPORT", e.An1ComAvisReunion = "AN1-COM-AVIS-REUNION", e.An1ComAvisSaisie = "AN1-COM-AVIS-SAISIE", e.An1ComFond = "AN1-COM-FOND", e.An1ComFondNomin = "AN1-COM-FOND-NOMIN", e.An1ComFondRapport = "AN1-COM-FOND-RAPPORT", e.An1ComFondReunion = "AN1-COM-FOND-REUNION", e.An1ComFondSaisie = "AN1-COM-FOND-SAISIE", e.An1Debats = "AN1-DEBATS", e.An1DebatsDec = "AN1-DEBATS-DEC", e.An1DebatsMotion = "AN1-DEBATS-MOTION", e.An1DebatsMotionVote = "AN1-DEBATS-MOTION-VOTE", e.An1DebatsSeance = "AN1-DEBATS-SEANCE", e.An1Depot = "AN1-DEPOT", e.An1Dgvt = "AN1-DGVT", e.An1Dptlettrect = "AN1-DPTLETTRECT", e.An1Eti = "AN1-ETI", e.An1Motion = "AN1-MOTION", e.An1MotionVote = "AN1-MOTION-VOTE", e.An1Procacc = "AN1-PROCACC", e.An1Recbureau = "AN1-RECBUREAU", e.An1Rtrini = "AN1-RTRINI", e.An2 = "AN2", e.An20 = "AN20", e.An20Comenq = "AN20-COMENQ", e.An20ComenqCrea = "AN20-COMENQ-CREA", e.An20ComenqNomin = "AN20-COMENQ-NOMIN", e.An20ComenqRapport = "AN20-COMENQ-RAPPORT", e.An20Misinf = "AN20-MISINF", e.An20MisinfCrea = "AN20-MISINF-CREA", e.An20MisinfNomin = "AN20-MISINF-NOMIN", e.An20MisinfRapport = "AN20-MISINF-RAPPORT", e.An20Rapport = "AN20-RAPPORT", e.An21 = "AN21", e.An21Apan = "AN21-APAN", e.An21Debats = "AN21-DEBATS", e.An21DebatsMotionVote = "AN21-DEBATS-MOTION-VOTE", e.An21DebatsSeance = "AN21-DEBATS-SEANCE", e.An21Dgvt = "AN21-DGVT", e.An21Motion = "AN21-MOTION", e.An21MotionVote = "AN21-MOTION-VOTE", e.An21Mpr = "AN21-MPR", e.An2Com = "AN2-COM", e.An2ComAvis = "AN2-COM-AVIS", e.An2ComAvisRapport = "AN2-COM-AVIS-RAPPORT", e.An2ComAvisReunion = "AN2-COM-AVIS-REUNION", e.An2ComAvisSaisie = "AN2-COM-AVIS-SAISIE", e.An2ComFond = "AN2-COM-FOND", e.An2ComFondNomin = "AN2-COM-FOND-NOMIN", e.An2ComFondRapport = "AN2-COM-FOND-RAPPORT", e.An2ComFondReunion = "AN2-COM-FOND-REUNION", e.An2ComFondSaisie = "AN2-COM-FOND-SAISIE", e.An2Debats = "AN2-DEBATS", e.An2DebatsDec = "AN2-DEBATS-DEC", e.An2DebatsSeance = "AN2-DEBATS-SEANCE", e.An2Depot = "AN2-DEPOT", e.An3 = "AN3", e.An3Com = "AN3-COM", e.An3ComFond = "AN3-COM-FOND", e.An3ComFondNomin = "AN3-COM-FOND-NOMIN", e.An3ComFondRapport = "AN3-COM-FOND-RAPPORT", e.An3ComFondReunion = "AN3-COM-FOND-REUNION", e.An3ComFondSaisie = "AN3-COM-FOND-SAISIE", e.An3Debats = "AN3-DEBATS", e.An3DebatsDec = "AN3-DEBATS-DEC", e.An3DebatsSeance = "AN3-DEBATS-SEANCE", e.An3Depot = "AN3-DEPOT", e.AnAppli = "AN-APPLI", e.AnAppliRapport = "AN-APPLI-RAPPORT", e.Anldef = "ANLDEF", e.AnldefCom = "ANLDEF-COM", e.AnldefComFond = "ANLDEF-COM-FOND", e.AnldefComFondRapport = "ANLDEF-COM-FOND-RAPPORT", e.AnldefComFondReunion = "ANLDEF-COM-FOND-REUNION", e.AnldefComFondSaisie = "ANLDEF-COM-FOND-SAISIE", e.AnldefDebats = "ANLDEF-DEBATS", e.AnldefDebatsDec = "ANLDEF-DEBATS-DEC", e.AnldefDebatsMotionVote = "ANLDEF-DEBATS-MOTION-VOTE", e.AnldefDebatsSeance = "ANLDEF-DEBATS-SEANCE", e.AnldefDepot = "ANLDEF-DEPOT", e.AnldefDgvt = "ANLDEF-DGVT", e.AnldefMotion = "ANLDEF-MOTION", e.AnldefMotionVote = "ANLDEF-MOTION-VOTE", e.Anluni = "ANLUNI", e.AnluniCom = "ANLUNI-COM", e.AnluniComCae = "ANLUNI-COM-CAE", e.AnluniComCaeDec = "ANLUNI-COM-CAE-DEC", e.AnluniComCaeNomin = "ANLUNI-COM-CAE-NOMIN", e.AnluniComCaeRapport = "ANLUNI-COM-CAE-RAPPORT", e.AnluniComCaeReunion = "ANLUNI-COM-CAE-REUNION", e.AnluniComCaeSaisie = "ANLUNI-COM-CAE-SAISIE", e.AnluniComFond = "ANLUNI-COM-FOND", e.AnluniComFondNomin = "ANLUNI-COM-FOND-NOMIN", e.AnluniComFondRapport = "ANLUNI-COM-FOND-RAPPORT", e.AnluniComFondReunion = "ANLUNI-COM-FOND-REUNION", e.AnluniComFondSaisie = "ANLUNI-COM-FOND-SAISIE", e.AnluniDebats = "ANLUNI-DEBATS", e.AnluniDebatsDec = "ANLUNI-DEBATS-DEC", e.AnluniDebatsSeance = "ANLUNI-DEBATS-SEANCE", e.AnluniDepot = "ANLUNI-DEPOT", e.AnluniRtrini = "ANLUNI-RTRINI", e.Annlec = "ANNLEC", e.AnnlecCom = "ANNLEC-COM", e.AnnlecComAvis = "ANNLEC-COM-AVIS", e.AnnlecComAvisNomin = "ANNLEC-COM-AVIS-NOMIN", e.AnnlecComAvisRapport = "ANNLEC-COM-AVIS-RAPPORT", e.AnnlecComAvisReunion = "ANNLEC-COM-AVIS-REUNION", e.AnnlecComAvisSaisie = "ANNLEC-COM-AVIS-SAISIE", e.AnnlecComFond = "ANNLEC-COM-FOND", e.AnnlecComFondNomin = "ANNLEC-COM-FOND-NOMIN", e.AnnlecComFondRapport = "ANNLEC-COM-FOND-RAPPORT", e.AnnlecComFondReunion = "ANNLEC-COM-FOND-REUNION", e.AnnlecComFondSaisie = "ANNLEC-COM-FOND-SAISIE", e.AnnlecDebats = "ANNLEC-DEBATS", e.AnnlecDebatsDec = "ANNLEC-DEBATS-DEC", e.AnnlecDebatsMotionVote = "ANNLEC-DEBATS-MOTION-VOTE", e.AnnlecDebatsSeance = "ANNLEC-DEBATS-SEANCE", e.AnnlecDepot = "ANNLEC-DEPOT", e.AnnlecDgvt = "ANNLEC-DGVT", e.AnnlecMotion = "ANNLEC-MOTION", e.AnnlecMotionVote = "ANNLEC-MOTION-VOTE", e.Cc = "CC", e.CcConclusion = "CC-CONCLUSION", e.CcSaisieAn = "CC-SAISIE-AN", e.CcSaisieDroit = "CC-SAISIE-DROIT", e.CcSaisiePan = "CC-SAISIE-PAN", e.CcSaisiePm = "CC-SAISIE-PM", e.CcSaisiePr = "CC-SAISIE-PR", e.CcSaisiePsn = "CC-SAISIE-PSN", e.CcSaisieSn = "CC-SAISIE-SN", e.Cg22 = "CG22", e.Cg22Conv = "CG22-CONV", e.Cg22Debats = "CG22-DEBATS", e.Cg22DebatsDec = "CG22-DEBATS-DEC", e.Cg22DebatsSeance = "CG22-DEBATS-SEANCE", e.Cmp = "CMP", e.CmpCom = "CMP-COM", e.CmpComNomin = "CMP-COM-NOMIN", e.CmpComRapportAn = "CMP-COM-RAPPORT-AN", e.CmpComRapportSn = "CMP-COM-RAPPORT-SN", e.CmpDebats = "CMP-DEBATS", e.CmpDebatsAn = "CMP-DEBATS-AN", e.CmpDebatsAnDec = "CMP-DEBATS-AN-DEC", e.CmpDebatsAnSeance = "CMP-DEBATS-AN-SEANCE", e.CmpDebatsDec = "CMP-DEBATS-DEC", e.CmpDebatsSn = "CMP-DEBATS-SN", e.CmpDebatsSnDec = "CMP-DEBATS-SN-DEC", e.CmpDebatsSnSeance = "CMP-DEBATS-SN-SEANCE", e.CmpDec = "CMP-DEC", e.CmpDepot = "CMP-DEPOT", e.CmpDgvt = "CMP-DGVT", e.CmpMotion = "CMP-MOTION", e.CmpMotionVote = "CMP-MOTION-VOTE", e.CmpSaisie = "CMP-SAISIE", e.Eu = "EU", e.EuDec = "EU-DEC", e.Motion = "MOTION", e.MotionVote = "MOTION-VOTE", e.Prom = "PROM", e.PromPub = "PROM-PUB", e.Sn1 = "SN1", e.Sn1Avce = "SN1-AVCE", e.Sn1Com = "SN1-COM", e.Sn1ComAvis = "SN1-COM-AVIS", e.Sn1ComAvisNomin = "SN1-COM-AVIS-NOMIN", e.Sn1ComAvisRapport = "SN1-COM-AVIS-RAPPORT", e.Sn1ComAvisSaisie = "SN1-COM-AVIS-SAISIE", e.Sn1ComFond = "SN1-COM-FOND", e.Sn1ComFondNomin = "SN1-COM-FOND-NOMIN", e.Sn1ComFondRapport = "SN1-COM-FOND-RAPPORT", e.Sn1ComFondSaisie = "SN1-COM-FOND-SAISIE", e.Sn1Debats = "SN1-DEBATS", e.Sn1DebatsDec = "SN1-DEBATS-DEC", e.Sn1DebatsMotion = "SN1-DEBATS-MOTION", e.Sn1DebatsMotionVote = "SN1-DEBATS-MOTION-VOTE", e.Sn1DebatsSeance = "SN1-DEBATS-SEANCE", e.Sn1Depot = "SN1-DEPOT", e.Sn1Dptlettrect = "SN1-DPTLETTRECT", e.Sn1Eti = "SN1-ETI", e.Sn1Procacc = "SN1-PROCACC", e.Sn1Rtrini = "SN1-RTRINI", e.Sn2 = "SN2", e.Sn2Com = "SN2-COM", e.Sn2ComAvis = "SN2-COM-AVIS", e.Sn2ComAvisNomin = "SN2-COM-AVIS-NOMIN", e.Sn2ComAvisRapport = "SN2-COM-AVIS-RAPPORT", e.Sn2ComAvisSaisie = "SN2-COM-AVIS-SAISIE", e.Sn2ComFond = "SN2-COM-FOND", e.Sn2ComFondNomin = "SN2-COM-FOND-NOMIN", e.Sn2ComFondRapport = "SN2-COM-FOND-RAPPORT", e.Sn2ComFondSaisie = "SN2-COM-FOND-SAISIE", e.Sn2Debats = "SN2-DEBATS", e.Sn2DebatsDec = "SN2-DEBATS-DEC", e.Sn2DebatsSeance = "SN2-DEBATS-SEANCE", e.Sn2Depot = "SN2-DEPOT", e.Sn3 = "SN3", e.Sn3Com = "SN3-COM", e.Sn3ComFond = "SN3-COM-FOND", e.Sn3ComFondRapport = "SN3-COM-FOND-RAPPORT", e.Sn3ComFondSaisie = "SN3-COM-FOND-SAISIE", e.Sn3Debats = "SN3-DEBATS", e.Sn3DebatsDec = "SN3-DEBATS-DEC", e.Sn3DebatsSeance = "SN3-DEBATS-SEANCE", e.Sn3Depot = "SN3-DEPOT", e.Snnlec = "SNNLEC", e.SnnlecCom = "SNNLEC-COM", e.SnnlecComFond = "SNNLEC-COM-FOND", e.SnnlecComFondNomin = "SNNLEC-COM-FOND-NOMIN", e.SnnlecComFondRapport = "SNNLEC-COM-FOND-RAPPORT", e.SnnlecComFondSaisie = "SNNLEC-COM-FOND-SAISIE", e.SnnlecDebats = "SNNLEC-DEBATS", e.SnnlecDebatsDec = "SNNLEC-DEBATS-DEC", e.SnnlecDebatsSeance = "SNNLEC-DEBATS-SEANCE", e.SnnlecDepot = "SNNLEC-DEPOT", e))(Xe || {}), vn = /* @__PURE__ */ ((e) => (e.DossierCommissionEnqueteType = "DossierCommissionEnquete_Type", e.DossierIniativeExecutifType = "DossierIniativeExecutif_Type", e.DossierLegislatifType = "DossierLegislatif_Type", e.DossierMissionControleType = "DossierMissionControle_Type", e.DossierMissionInformationType = "DossierMissionInformation_Type", e.DossierResolutionAn = "DossierResolutionAN", e))(vn || {}), Dn = /* @__PURE__ */ ((e) => (e.BudgetAnnexe = "Budget annexe", e.BudgetGénéral = "Budget général", e.CompteDeConcoursFinancier = "Compte de concours financier", e.CompteSpécial = "Compte spécial", e.PremièrePartie = "Première partie", e))(Dn || {}), Nn = /* @__PURE__ */ ((e) => (e.MissionPrincipale = "mission principale", e.MissionSecondaire = "mission secondaire", e.PartieDeMission = "partie de mission", e))(Nn || {}), gn = /* @__PURE__ */ ((e) => (e.Auteur = "auteur", e.Cosignataire = "cosignataire", e.Rapporteur = "rapporteur", e.RapporteurGénéral = "rapporteur général", e.RapporteurPourAvis = "rapporteur pour avis", e.RapporteurSpécial = "rapporteur spécial", e))(gn || {}), On = /* @__PURE__ */ ((e) => (e.AdoptionEuropeType = "Adoption_Europe_Type", e.ConclusionEtapeCcType = "ConclusionEtapeCC_Type", e.ConvocationCongresType = "ConvocationCongres_Type", e.CreationOrganeTemporaireType = "CreationOrganeTemporaire_Type", e.DecisionMotionCensureType = "DecisionMotionCensure_Type", e.DecisionRecevabiliteBureauType = "DecisionRecevabiliteBureau_Type", e.DecisionType = "Decision_Type", e.DeclarationGouvernementType = "DeclarationGouvernement_Type", e.DepotAccordInternationalType = "DepotAccordInternational_Type", e.DepotAvisConseilEtatType = "DepotAvisConseilEtat_Type", e.DepotInitiativeNavetteType = "DepotInitiativeNavette_Type", e.DepotInitiativeType = "DepotInitiative_Type", e.DepotLettreRectificativeType = "DepotLettreRectificative_Type", e.DepotMotionCensureType = "DepotMotionCensure_Type", e.DepotMotionReferendaireType = "DepotMotionReferendaire_Type", e.DepotRapportType = "DepotRapport_Type", e.DiscussionCommissionType = "DiscussionCommission_Type", e.DiscussionSeancePubliqueType = "DiscussionSeancePublique_Type", e.EtapeType = "Etape_Type", e.EtudeImpactType = "EtudeImpact_Type", e.MotionProcedureType = "MotionProcedure_Type", e.NominRapporteursType = "NominRapporteurs_Type", e.ProcedureAccelereType = "ProcedureAccelere_Type", e.PromulgationType = "Promulgation_Type", e.RenvoiCmpType = "RenvoiCMP_Type", e.RenvoiPrealableType = "RenvoiPrealable_Type", e.RetraitInitiativeType = "RetraitInitiative_Type", e.SaisieComAvisType = "SaisieComAvis_Type", e.SaisieComFondType = "SaisieComFond_Type", e.SaisineConseilConstitType = "SaisineConseilConstit_Type", e))(On || {}), bn = /* @__PURE__ */ ((e) => (e.Bta = "BTA", e.Tap = "TAP", e))(bn || {}), En = /* @__PURE__ */ ((e) => (e.EnApplicationDeLArticle612DeLaConstitution = "En application de l'article 61§2 de la Constitution", e))(En || {}), _n = /* @__PURE__ */ ((e) => (e.JoLoiDecret = "JO_LOI_DECRET", e))(_n || {}), Rn = /* @__PURE__ */ ((e) => (e.DossierAbsorbé = "Dossier absorbé", e.ExamenCommun = "Examen commun", e))(Rn || {}), In = /* @__PURE__ */ ((e) => (e.Decret = "Décret", e))(In || {}), Pn = /* @__PURE__ */ ((e) => (e.AccordInternationalType = "accordInternational_Type", e.AvisConseilEtatType = "avisConseilEtat_Type", e.DocumentEtudeImpactType = "documentEtudeImpact_Type", e.RapportParlementaireType = "rapportParlementaire_Type", e.TexteLoiType = "texteLoi_Type", e))(Pn || {}), Cn = /* @__PURE__ */ ((e) => (e.Adoptcom = "ADOPTCOM", e.Adoptseance = "ADOPTSEANCE", e.Rejetseance = "REJETSEANCE", e))(Cn || {}), Tn = /* @__PURE__ */ ((e) => (e.Rectifié = "Rectifié", e))(Tn || {}), Mn = /* @__PURE__ */ ((e) => (e.Allocution = "Allocution", e.Avis = "Avis", e.Déclaration = "Déclaration", e.Lettre = "Lettre", e.Message = "Message", e.Motion = "Motion", e.ProjetDeLoi = "Projet de loi", e.PropositionDeLoi = "Proposition de loi", e.PropositionDeRésolution = "Proposition de résolution", e.Rapport = "Rapport", e.RapportDInformation = "Rapport d'information", e.Résolution = "Résolution", e))(Mn || {}), hn = /* @__PURE__ */ ((e) => (e.Commission = "Commission", e.Séance = "Séance", e.TexteDéposé = "Texte Déposé", e))(hn || {});
1611
- let De = class {
1612
- static toDossiersLegislatifs(n) {
1613
- return _e(JSON.parse(n), l("DossiersLegislatifs"));
1614
- }
1615
- static dossiersLegislatifsToJson(n) {
1616
- return JSON.stringify(Re(n, l("DossiersLegislatifs")), null, 2);
1617
- }
1618
- static toDocument(n) {
1619
- return _e(JSON.parse(n), l("Document"));
1620
- }
1621
- static documentToJson(n) {
1622
- return JSON.stringify(Re(n, l("Document")), null, 2);
1623
- }
1624
- static toDossierParlementaire(n) {
1625
- return _e(JSON.parse(n), l("DossierParlementaire"));
1626
- }
1627
- static dossierParlementaireToJson(n) {
1628
- return JSON.stringify(Re(n, l("DossierParlementaire")), null, 2);
1629
- }
1630
- };
1631
- function ae(e, n, s = "") {
1632
- throw Error(
1633
- s ? `Invalid value for key "${s}". Expected type ${JSON.stringify(
1634
- e
1635
- )} but got ${JSON.stringify(n)}` : `Invalid value ${JSON.stringify(n)} for type ${JSON.stringify(e)}`
1636
- );
1637
- }
1638
- function xn(e) {
1639
- if (e.jsonToJS === void 0) {
1640
- const n = {};
1641
- e.props.forEach((s) => n[s.json] = { key: s.js, typ: s.typ }), e.jsonToJS = n;
1642
- }
1643
- return e.jsonToJS;
1644
- }
1645
- function Vn(e) {
1646
- if (e.jsToJSON === void 0) {
1647
- const n = {};
1648
- e.props.forEach((s) => n[s.js] = { key: s.json, typ: s.typ }), e.jsToJSON = n;
1649
- }
1650
- return e.jsToJSON;
1651
- }
1652
- function ce(e, n, s, a = "") {
1653
- function y(t, o) {
1654
- return typeof t == typeof o ? o : ae(t, o, a);
1655
- }
1656
- function _(t, o) {
1657
- const u = t.length;
1658
- for (let S = 0; S < u; S++) {
1659
- const m = t[S];
1660
- try {
1661
- return ce(o, m, s);
1662
- } catch {
1663
- }
1664
- }
1665
- return ae(t, o);
1666
- }
1667
- function R(t, o) {
1668
- return t.indexOf(o) !== -1 ? o : ae(t, o);
1669
- }
1670
- function I(t, o) {
1671
- return Array.isArray(o) ? o.map((u) => ce(u, t, s)) : ae("array", o);
1672
- }
1673
- function T(t) {
1674
- if (t === null)
1675
- return null;
1676
- const o = new Date(t);
1677
- return isNaN(o.valueOf()) ? ae("Date", t) : o;
1678
- }
1679
- function h(t, o, u) {
1680
- if (u === null || typeof u != "object" || Array.isArray(u))
1681
- return ae("object", u);
1682
- const S = {};
1683
- return Object.getOwnPropertyNames(t).forEach((m) => {
1684
- const b = t[m], x = Object.prototype.hasOwnProperty.call(u, m) ? u[m] : void 0;
1685
- S[b.key] = ce(x, b.typ, s, b.key);
1686
- }), Object.getOwnPropertyNames(u).forEach((m) => {
1687
- Object.prototype.hasOwnProperty.call(t, m) || (S[m] = ce(u[m], o, s, m));
1688
- }), S;
1689
- }
1690
- if (n === "any") return e;
1691
- if (n === null)
1692
- return e === null ? e : ae(n, e);
1693
- for (; typeof n == "object" && n.ref !== void 0; )
1694
- n = Fn[n.ref];
1695
- return Array.isArray(n) ? R(n, e) : typeof n == "object" ? n.hasOwnProperty("unionMembers") ? _(n.unionMembers, e) : n.hasOwnProperty("arrayItems") ? I(n.arrayItems, e) : n.hasOwnProperty("props") ? h(s(n), n.additional, e) : ae(n, e) : n === Date && typeof e != "number" ? T(e) : y(n, e);
1696
- }
1697
- function _e(e, n) {
1698
- return ce(e, n, xn);
1699
- }
1700
- function Re(e, n) {
1701
- return ce(e, n, Vn);
1702
- }
1703
- function U(e) {
1704
- return { arrayItems: e };
1705
- }
1706
- function r(...e) {
1707
- return { unionMembers: e };
1708
- }
1709
- function P(e, n) {
1710
- return { props: e, additional: n };
1711
- }
1712
- function l(e) {
1713
- return { ref: e };
1714
- }
1715
- const Fn = {
1716
- DossiersLegislatifs: P(
1717
- [
1718
- {
1719
- json: "textesLegislatifs",
1720
- js: "textesLegislatifs",
1721
- typ: U(l("Document"))
1722
- },
1723
- {
1724
- json: "dossiersParlementaires",
1725
- js: "dossiersParlementaires",
1726
- typ: U(l("DossierParlementaire"))
1727
- }
1728
- ],
1729
- !1
1730
- ),
1731
- DossierParlementaire: P(
1732
- [
1733
- { json: "schemaVersion", js: "schemaVersion", typ: r(void 0, "") },
1734
- {
1735
- json: "xsiType",
1736
- js: "xsiType",
1737
- typ: r(void 0, l("DossierParlementaireXsiType"))
1738
- },
1739
- { json: "uid", js: "uid", typ: "" },
1740
- { json: "legislature", js: "legislature", typ: "" },
1741
- { json: "titreDossier", js: "titreDossier", typ: l("TitreDossier") },
1742
- {
1743
- json: "procedureParlementaire",
1744
- js: "procedureParlementaire",
1745
- typ: l("ProcedureParlementaire")
1746
- },
1747
- {
1748
- json: "initiateur",
1749
- js: "initiateur",
1750
- typ: r(void 0, l("Initiateur"))
1751
- },
1752
- {
1753
- json: "actesLegislatifs",
1754
- js: "actesLegislatifs",
1755
- typ: r(void 0, U(l("ActeLegislatif")))
1756
- },
1757
- {
1758
- json: "fusionDossier",
1759
- js: "fusionDossier",
1760
- typ: r(void 0, l("FusionDossier"))
1761
- },
1762
- {
1763
- json: "indexation",
1764
- js: "indexation",
1765
- typ: r(void 0, l("Indexation"))
1766
- },
1767
- { json: "plf", js: "plf", typ: r(void 0, U(l("EtudePlf"))) }
1768
- ],
1769
- !1
1770
- ),
1771
- EtudePlf: P(
1772
- [
1773
- { json: "uid", js: "uid", typ: "" },
1774
- { json: "organeRef", js: "organeRef", typ: "" },
1775
- { json: "texteAssocie", js: "texteAssocie", typ: r(void 0, "") },
1776
- {
1777
- json: "rapporteurs",
1778
- js: "rapporteurs",
1779
- typ: r(void 0, U(l("Rapporteur")))
1780
- },
1781
- {
1782
- json: "missionMinefi",
1783
- js: "missionMinefi",
1784
- typ: r(void 0, l("MissionMinefi"))
1785
- },
1786
- { json: "ordreDiqs", js: "ordreDiqs", typ: "" },
1787
- { json: "ordreCommission", js: "ordreCommission", typ: "" }
1788
- ],
1789
- !1
1790
- ),
1791
- MissionMinefi: P(
1792
- [
1793
- { json: "typeMission", js: "typeMission", typ: l("TypeMission") },
1794
- { json: "codeMission", js: "codeMission", typ: r(void 0, "") },
1795
- { json: "libelleLong", js: "libelleLong", typ: "" },
1796
- { json: "libelleCourt", js: "libelleCourt", typ: "" },
1797
- { json: "typeBudget", js: "typeBudget", typ: l("TypeBudget") },
1798
- {
1799
- json: "missions",
1800
- js: "missions",
1801
- typ: r(void 0, U(l("MissionMinefi")))
1802
- }
1803
- ],
1804
- !1
1805
- ),
1806
- ActeLegislatif: P(
1807
- [
1808
- { json: "xsiType", js: "xsiType", typ: l("TypeActeLegislatif") },
1809
- { json: "uid", js: "uid", typ: "" },
1810
- {
1811
- json: "codeActe",
1812
- js: "codeActe",
1813
- typ: l("CodeActe")
1814
- },
1815
- { json: "libelleActe", js: "libelleActe", typ: l("LibelleActe") },
1816
- { json: "organeRef", js: "organeRef", typ: r(void 0, "") },
1817
- { json: "dateActe", js: "dateActe", typ: r(void 0, Date) },
1818
- {
1819
- json: "actesLegislatifs",
1820
- js: "actesLegislatifs",
1821
- typ: r(void 0, U(l("ActeLegislatif")))
1822
- },
1823
- { json: "anneeDecision", js: "anneeDecision", typ: r(void 0, "") },
1824
- {
1825
- json: "auteurMotion",
1826
- js: "auteurMotion",
1827
- typ: r(void 0, "")
1828
- },
1829
- {
1830
- json: "auteursRefs",
1831
- js: "auteursRefs",
1832
- typ: r(void 0, U(""))
1833
- },
1834
- {
1835
- json: "casSaisine",
1836
- js: "casSaisine",
1837
- typ: r(void 0, l("FamCodeEtLibelle"))
1838
- },
1839
- { json: "codeLoi", js: "codeLoi", typ: r(void 0, "") },
1840
- {
1841
- json: "contributionInternaute",
1842
- js: "contributionInternaute",
1843
- typ: r(void 0, l("ContributionInternaute"))
1844
- },
1845
- {
1846
- json: "decision",
1847
- js: "decision",
1848
- typ: r(void 0, l("FamCodeEtLibelle"))
1849
- },
1850
- {
1851
- json: "depotInitialLectureDefinitiveRef",
1852
- js: "depotInitialLectureDefinitiveRef",
1853
- typ: r(void 0, "")
1854
- },
1855
- { json: "formuleDecision", js: "formuleDecision", typ: r(void 0, "") },
1856
- { json: "infoJo", js: "infoJo", typ: r(void 0, l("InfoJo")) },
1857
- { json: "infoJoce", js: "infoJoce", typ: r(void 0, l("InfoJoce")) },
1858
- {
1859
- json: "infoJoRect",
1860
- js: "infoJoRect",
1861
- typ: r(void 0, U(l("InfoJo")))
1862
- },
1863
- {
1864
- json: "initiateur",
1865
- js: "initiateur",
1866
- typ: r(void 0, l("Initiateur"))
1867
- },
1868
- { json: "motif", js: "motif", typ: r(void 0, l("Motif")) },
1869
- { json: "numDecision", js: "numDecision", typ: r(void 0, "") },
1870
- { json: "odjRef", js: "odjRef", typ: r(void 0, "") },
1871
- { json: "provenanceRef", js: "provenanceRef", typ: r(void 0, "") },
1872
- {
1873
- json: "rapporteurs",
1874
- js: "rapporteurs",
1875
- typ: r(void 0, U(l("Rapporteur")))
1876
- },
1877
- { json: "referenceNor", js: "referenceNor", typ: r(void 0, "") },
1878
- { json: "reunionRef", js: "reunionRef", typ: r(void 0, "") },
1879
- {
1880
- json: "statutAdoption",
1881
- js: "statutAdoption",
1882
- typ: r(void 0, l("FamCodeEtLibelle"))
1883
- },
1884
- {
1885
- json: "statutConclusion",
1886
- js: "statutConclusion",
1887
- typ: r(void 0, l("FamCodeEtLibelle"))
1888
- },
1889
- {
1890
- json: "texteAdopteRef",
1891
- js: "texteAdopteRef",
1892
- typ: r(void 0, "")
1893
- },
1894
- { json: "texteAssocieRef", js: "texteAssocieRef", typ: r(void 0, "") },
1895
- {
1896
- json: "texteEuropeen",
1897
- js: "texteEuropeen",
1898
- typ: r(void 0, l("TexteEuropeen"))
1899
- },
1900
- {
1901
- json: "texteExterneAssocie",
1902
- js: "texteExterneAssocie",
1903
- typ: r(void 0, l("TexteExterneAssocie"))
1904
- },
1905
- { json: "texteLoiRef", js: "texteLoiRef", typ: r(void 0, "") },
1906
- {
1907
- json: "textesAssocies",
1908
- js: "textesAssocies",
1909
- typ: r(void 0, U(l("TexteAssocie")))
1910
- },
1911
- { json: "titreLoi", js: "titreLoi", typ: r(void 0, "") },
1912
- {
1913
- json: "typeDeclaration",
1914
- js: "typeDeclaration",
1915
- typ: r(void 0, l("FamCodeEtLibelle"))
1916
- },
1917
- {
1918
- json: "typeMotion",
1919
- js: "typeMotion",
1920
- typ: r(void 0, l("FamCodeEtLibelle"))
1921
- },
1922
- {
1923
- json: "typeMotionCensure",
1924
- js: "typeMotionCensure",
1925
- typ: r(void 0, l("FamCodeEtLibelle"))
1926
- },
1927
- { json: "urlConclusion", js: "urlConclusion", typ: r(void 0, "") },
1928
- {
1929
- json: "urlEcheancierLoi",
1930
- js: "urlEcheancierLoi",
1931
- typ: r(void 0, "")
1932
- },
1933
- {
1934
- json: "urlLegifrance",
1935
- js: "urlLegifrance",
1936
- typ: r(void 0, "")
1937
- },
1938
- {
1939
- json: "voteRefs",
1940
- js: "voteRefs",
1941
- typ: r(void 0, U(""))
1942
- }
1943
- ],
1944
- !1
1945
- ),
1946
- LibelleActe: P(
1947
- [
1948
- { json: "nomCanonique", js: "nomCanonique", typ: "" },
1949
- { json: "libelleCourt", js: "libelleCourt", typ: r(void 0, "") }
1950
- ],
1951
- !1
1952
- ),
1953
- Rapporteur: P(
1954
- [
1955
- { json: "acteurRef", js: "acteurRef", typ: "" },
1956
- { json: "typeRapporteur", js: "typeRapporteur", typ: l("Qualite") },
1957
- { json: "etudePlfRef", js: "etudePlfRef", typ: r(void 0, "") }
1958
- ],
1959
- !1
1960
- ),
1961
- FamCodeEtLibelle: P(
1962
- [
1963
- { json: "famCode", js: "famCode", typ: "" },
1964
- { json: "libelle", js: "libelle", typ: "" }
1965
- ],
1966
- !1
1967
- ),
1968
- TexteAssocie: P(
1969
- [
1970
- { json: "typeTexte", js: "typeTexte", typ: l("TypeTexte") },
1971
- { json: "texteAssocieRef", js: "texteAssocieRef", typ: "" }
1972
- ],
1973
- !1
1974
- ),
1975
- ContributionInternaute: P(
1976
- [
1977
- { json: "dateOuverture", js: "dateOuverture", typ: r(void 0, "") },
1978
- { json: "dateFermeture", js: "dateFermeture", typ: r(void 0, "") }
1979
- ],
1980
- !1
1981
- ),
1982
- InfoJoce: P(
1983
- [
1984
- { json: "refJoce", js: "refJoce", typ: "" },
1985
- { json: "dateJoce", js: "dateJoce", typ: "" }
1986
- ],
1987
- !1
1988
- ),
1989
- InitiateurActeur: P(
1990
- [
1991
- { json: "acteurRef", js: "acteurRef", typ: "" },
1992
- { json: "mandatRef", js: "mandatRef", typ: r(void 0, "") }
1993
- ],
1994
- !1
1995
- ),
1996
- TexteEuropeen: P(
1997
- [
1998
- { json: "typeTexteEuropeen", js: "typeTexteEuropeen", typ: "" },
1999
- { json: "titreTexteEuropeen", js: "titreTexteEuropeen", typ: "" }
2000
- ],
2001
- !1
2002
- ),
2003
- InfoJo: P(
2004
- [
2005
- { json: "typeJo", js: "typeJo", typ: l("TypeJo") },
2006
- { json: "dateJo", js: "dateJo", typ: "" },
2007
- { json: "numJo", js: "numJo", typ: "" },
2008
- { json: "urlLegifrance", js: "urlLegifrance", typ: r(void 0, "") },
2009
- { json: "referenceNor", js: "referenceNor", typ: r(void 0, "") }
2010
- ],
2011
- !1
2012
- ),
2013
- FusionDossier: P(
2014
- [
2015
- { json: "cause", js: "cause", typ: l("Cause") },
2016
- { json: "dossierAbsorbantRef", js: "dossierAbsorbantRef", typ: "" }
2017
- ],
2018
- !1
2019
- ),
2020
- Indexation: P([{ json: "themes", js: "themes", typ: l("Themes") }], !1),
2021
- Themes: P(
2022
- [
2023
- { json: "@niveau", js: "@niveau", typ: "" },
2024
- { json: "theme", js: "theme", typ: l("Theme") }
2025
- ],
2026
- !1
2027
- ),
2028
- Theme: P([{ json: "libelleTheme", js: "libelleTheme", typ: "" }], !1),
2029
- Initiateur: P(
2030
- [
2031
- {
2032
- json: "acteurs",
2033
- js: "acteurs",
2034
- typ: r(void 0, U(l("InitiateurActeur")))
2035
- },
2036
- { json: "organeRef", js: "organeRef", typ: r(void 0, "") }
2037
- ],
2038
- !1
2039
- ),
2040
- ProcedureParlementaire: P(
2041
- [
2042
- { json: "code", js: "code", typ: "" },
2043
- { json: "libelle", js: "libelle", typ: "" }
2044
- ],
2045
- !1
2046
- ),
2047
- TitreDossier: P(
2048
- [
2049
- { json: "titre", js: "titre", typ: "" },
2050
- { json: "titreChemin", js: "titreChemin", typ: r(void 0, "") },
2051
- { json: "senatChemin", js: "senatChemin", typ: r(void 0, "") }
2052
- ],
2053
- !1
2054
- ),
2055
- TexteExterneAssocie: P(
2056
- [
2057
- { json: "typeDoc", js: "typeDoc", typ: l("TexteExterneAssocieTypeDoc") },
2058
- { json: "texteRef", js: "texteRef", typ: "" },
2059
- { json: "titreDoc", js: "titreDoc", typ: "" },
2060
- { json: "urlDoc", js: "urlDoc", typ: "" }
2061
- ],
2062
- !1
2063
- ),
2064
- Document: P(
2065
- [
2066
- { json: "schemaVersion", js: "schemaVersion", typ: r(void 0, "") },
2067
- { json: "xsiType", js: "xsiType", typ: l("TypeDocument") },
2068
- { json: "uid", js: "uid", typ: "" },
2069
- { json: "legislature", js: "legislature", typ: r(void 0, "") },
2070
- { json: "cycleDeVie", js: "cycleDeVie", typ: l("CycleDeVieDocument") },
2071
- {
2072
- json: "denominationStructurelle",
2073
- js: "denominationStructurelle",
2074
- typ: l("DocumentDenominationStructurelle")
2075
- },
2076
- {
2077
- json: "provenance",
2078
- js: "provenance",
2079
- typ: r(void 0, l("Provenance"))
2080
- },
2081
- { json: "titres", js: "titres", typ: l("Titres") },
2082
- {
2083
- json: "divisions",
2084
- js: "divisions",
2085
- typ: r(void 0, U(l("Division")))
2086
- },
2087
- { json: "dossierRef", js: "dossierRef", typ: "" },
2088
- {
2089
- json: "classification",
2090
- js: "classification",
2091
- typ: l("Classification")
2092
- },
2093
- { json: "auteurs", js: "auteurs", typ: U(l("Auteur")) },
2094
- {
2095
- json: "correction",
2096
- js: "correction",
2097
- typ: r(void 0, l("Correction"))
2098
- },
2099
- { json: "notice", js: "notice", typ: l("Notice") },
2100
- {
2101
- json: "indexation",
2102
- js: "indexation",
2103
- typ: r(void 0, l("Indexation"))
2104
- },
2105
- {
2106
- json: "imprimerie",
2107
- js: "imprimerie",
2108
- typ: r(void 0, l("Imprimerie"))
2109
- },
2110
- {
2111
- json: "coSignataires",
2112
- js: "coSignataires",
2113
- typ: r(void 0, U(l("CoSignataireElement")))
2114
- },
2115
- {
2116
- json: "depotAmendements",
2117
- js: "depotAmendements",
2118
- typ: r(void 0, l("DepotAmendements"))
2119
- },
2120
- {
2121
- json: "organesReferents",
2122
- js: "organesReferents",
2123
- typ: r(void 0, U(""))
2124
- },
2125
- { json: "rapportPublie", js: "rapportPublie", typ: r(void 0, !1) },
2126
- {
2127
- json: "subdivisions",
2128
- js: "subdivisions",
2129
- typ: r(null, r(void 0, U(l("Subdivision"))))
2130
- }
2131
- ],
2132
- !1
2133
- ),
2134
- Subdivision: P(
2135
- [
2136
- { json: "id", js: "id", typ: "" },
2137
- { json: "type", js: "type", typ: r(void 0, "") },
2138
- { json: "niveau", js: "niveau", typ: 0 },
2139
- { json: "niveauRelatif", js: "niveauRelatif", typ: 0 },
2140
- {
2141
- json: "titres",
2142
- js: "titres",
2143
- typ: r(null, U(l("ContenuSubdivision")))
2144
- },
2145
- {
2146
- json: "alineas",
2147
- js: "alineas",
2148
- typ: r(null, U(l("ContenuSubdivision")))
2149
- }
2150
- ],
2151
- !1
2152
- ),
2153
- ContenuSubdivision: P(
2154
- [
2155
- { json: "texte", js: "texte", typ: r(void 0, "") },
2156
- { json: "html", js: "html", typ: r(void 0, "") }
2157
- ],
2158
- !1
2159
- ),
2160
- Auteur: P(
2161
- [
2162
- { json: "acteur", js: "acteur", typ: r(void 0, l("AuteurActeur")) },
2163
- {
2164
- json: "organeRef",
2165
- js: "organeRef",
2166
- typ: r(void 0, "")
2167
- }
2168
- ],
2169
- !1
2170
- ),
2171
- AuteurActeur: P(
2172
- [
2173
- { json: "acteurRef", js: "acteurRef", typ: "" },
2174
- { json: "qualite", js: "qualite", typ: l("Qualite") }
2175
- ],
2176
- !1
2177
- ),
2178
- Classification: P(
2179
- [
2180
- { json: "famille", js: "famille", typ: r(void 0, l("Famille")) },
2181
- { json: "type", js: "type", typ: l("ProcedureParlementaire") },
2182
- { json: "sousType", js: "sousType", typ: r(void 0, l("SousType")) },
2183
- {
2184
- json: "statutAdoption",
2185
- js: "statutAdoption",
2186
- typ: r(void 0, l("StatutAdoption"))
2187
- }
2188
- ],
2189
- !1
2190
- ),
2191
- Famille: P(
2192
- [
2193
- { json: "depot", js: "depot", typ: l("ProcedureParlementaire") },
2194
- { json: "classe", js: "classe", typ: l("ProcedureParlementaire") },
2195
- {
2196
- json: "espece",
2197
- js: "espece",
2198
- typ: r(void 0, l("ProcedureParlementaire"))
2199
- }
2200
- ],
2201
- !1
2202
- ),
2203
- SousType: P(
2204
- [
2205
- { json: "code", js: "code", typ: "" },
2206
- { json: "libelle", js: "libelle", typ: r(void 0, "") },
2207
- { json: "libelleEdition", js: "libelleEdition", typ: r(void 0, "") }
2208
- ],
2209
- !1
2210
- ),
2211
- CoSignataireElement: P(
2212
- [
2213
- {
2214
- json: "acteurRef",
2215
- js: "acteurRef",
2216
- typ: r(void 0, "")
2217
- },
2218
- { json: "dateCosignature", js: "dateCosignature", typ: "" },
2219
- {
2220
- json: "dateRetraitCosignature",
2221
- js: "dateRetraitCosignature",
2222
- typ: r(void 0, "")
2223
- },
2224
- { json: "edite", js: "edite", typ: !1 },
2225
- {
2226
- json: "organe",
2227
- js: "organe",
2228
- typ: r(void 0, l("CoSignataireOrgane"))
2229
- }
2230
- ],
2231
- !1
2232
- ),
2233
- CoSignataireOrgane: P(
2234
- [
2235
- { json: "organeRef", js: "organeRef", typ: "" },
2236
- { json: "etApparentes", js: "etApparentes", typ: !1 }
2237
- ],
2238
- !1
2239
- ),
2240
- Correction: P(
2241
- [
2242
- {
2243
- json: "typeCorrection",
2244
- js: "typeCorrection",
2245
- typ: l("TypeCorrection")
2246
- },
2247
- {
2248
- json: "niveauCorrection",
2249
- js: "niveauCorrection",
2250
- typ: r(void 0, "")
2251
- }
2252
- ],
2253
- !1
2254
- ),
2255
- CycleDeVieDocument: P(
2256
- [{ json: "chrono", js: "chrono", typ: l("ChronoDocument") }],
2257
- !1
2258
- ),
2259
- ChronoDocument: P(
2260
- [
2261
- { json: "dateCreation", js: "dateCreation", typ: r(void 0, Date) },
2262
- { json: "dateDepot", js: "dateDepot", typ: r(void 0, Date) },
2263
- {
2264
- json: "datePublication",
2265
- js: "datePublication",
2266
- typ: r(void 0, Date)
2267
- },
2268
- {
2269
- json: "datePublicationWeb",
2270
- js: "datePublicationWeb",
2271
- typ: r(void 0, Date)
2272
- }
2273
- ],
2274
- !1
2275
- ),
2276
- DepotAmendements: P(
2277
- [
2278
- {
2279
- json: "amendementsSeance",
2280
- js: "amendementsSeance",
2281
- typ: l("AmendementsSeance")
2282
- },
2283
- {
2284
- json: "amendementsCommission",
2285
- js: "amendementsCommission",
2286
- typ: r(void 0, U(l("AmendementsCommission")))
2287
- }
2288
- ],
2289
- !1
2290
- ),
2291
- AmendementsCommission: P(
2292
- [
2293
- { json: "organeRef", js: "organeRef", typ: "" },
2294
- { json: "amendable", js: "amendable", typ: !1 }
2295
- ],
2296
- !1
2297
- ),
2298
- AmendementsSeance: P(
2299
- [{ json: "amendable", js: "amendable", typ: !1 }],
2300
- !1
2301
- ),
2302
- Division: P(
2303
- [
2304
- { json: "xsiType", js: "xsiType", typ: l("TypeDocument") },
2305
- { json: "uid", js: "uid", typ: "" },
2306
- { json: "legislature", js: "legislature", typ: r(void 0, "") },
2307
- { json: "cycleDeVie", js: "cycleDeVie", typ: l("CycleDeVieDocument") },
2308
- {
2309
- json: "denominationStructurelle",
2310
- js: "denominationStructurelle",
2311
- typ: ""
2312
- },
2313
- { json: "titres", js: "titres", typ: l("Titres") },
2314
- {
2315
- json: "divisions",
2316
- js: "divisions",
2317
- typ: r(void 0, U(l("Division")))
2318
- },
2319
- { json: "dossierRef", js: "dossierRef", typ: "" },
2320
- {
2321
- json: "classification",
2322
- js: "classification",
2323
- typ: l("Classification")
2324
- },
2325
- { json: "auteurs", js: "auteurs", typ: U(l("Auteur")) },
2326
- {
2327
- json: "organesReferents",
2328
- js: "organesReferents",
2329
- typ: r(void 0, U(""))
2330
- },
2331
- {
2332
- json: "correction",
2333
- js: "correction",
2334
- typ: r(void 0, l("Correction"))
2335
- },
2336
- { json: "notice", js: "notice", typ: l("Notice") },
2337
- {
2338
- json: "indexation",
2339
- js: "indexation",
2340
- typ: r(void 0, l("Indexation"))
2341
- },
2342
- {
2343
- json: "imprimerie",
2344
- js: "imprimerie",
2345
- typ: r(void 0, l("Imprimerie"))
2346
- },
2347
- { json: "rapportPublie", js: "rapportPublie", typ: r(void 0, !1) }
2348
- ],
2349
- !1
2350
- ),
2351
- Imprimerie: P(
2352
- [
2353
- { json: "dian", js: "dian", typ: r(void 0, "") },
2354
- { json: "isbn", js: "isbn", typ: r(void 0, "") },
2355
- { json: "issn", js: "issn", typ: r(void 0, "") },
2356
- { json: "nbPage", js: "nbPage", typ: r(void 0, "") },
2357
- { json: "prix", js: "prix", typ: r(void 0, "") }
2358
- ],
2359
- !1
2360
- ),
2361
- Notice: P(
2362
- [
2363
- { json: "numNotice", js: "numNotice", typ: r(void 0, "") },
2364
- { json: "formule", js: "formule", typ: r(void 0, "") },
2365
- { json: "adoptionConforme", js: "adoptionConforme", typ: !1 }
2366
- ],
2367
- !1
2368
- ),
2369
- Titres: P(
2370
- [
2371
- { json: "titrePrincipal", js: "titrePrincipal", typ: "" },
2372
- { json: "titrePrincipalCourt", js: "titrePrincipalCourt", typ: "" }
2373
- ],
2374
- !1
2375
- ),
2376
- DossierParlementaireXsiType: [
2377
- "DossierCommissionEnquete_Type",
2378
- "DossierIniativeExecutif_Type",
2379
- "DossierLegislatif_Type",
2380
- "DossierMissionControle_Type",
2381
- "DossierMissionInformation_Type",
2382
- "DossierResolutionAN"
2383
- ],
2384
- TypeBudget: [
2385
- "Budget annexe",
2386
- "Budget général",
2387
- "Compte de concours financier",
2388
- "Compte spécial",
2389
- "Première partie"
2390
- ],
2391
- TypeMission: [
2392
- "mission principale",
2393
- "mission secondaire",
2394
- "partie de mission"
2395
- ],
2396
- Qualite: [
2397
- "auteur",
2398
- "cosignataire",
2399
- "rapporteur",
2400
- "rapporteur général",
2401
- "rapporteur pour avis",
2402
- "rapporteur spécial"
2403
- ],
2404
- TypeActeLegislatif: [
2405
- "Adoption_Europe_Type",
2406
- "ConclusionEtapeCC_Type",
2407
- "ConvocationCongres_Type",
2408
- "CreationOrganeTemporaire_Type",
2409
- "DecisionMotionCensure_Type",
2410
- "DecisionRecevabiliteBureau_Type",
2411
- "Decision_Type",
2412
- "DeclarationGouvernement_Type",
2413
- "DepotAccordInternational_Type",
2414
- "DepotAvisConseilEtat_Type",
2415
- "DepotInitiativeNavette_Type",
2416
- "DepotInitiative_Type",
2417
- "DepotLettreRectificative_Type",
2418
- "DepotMotionCensure_Type",
2419
- "DepotMotionReferendaire_Type",
2420
- "DepotRapport_Type",
2421
- "DiscussionCommission_Type",
2422
- "DiscussionSeancePublique_Type",
2423
- "Etape_Type",
2424
- "EtudeImpact_Type",
2425
- "MotionProcedure_Type",
2426
- "NominRapporteurs_Type",
2427
- "ProcedureAccelere_Type",
2428
- "Promulgation_Type",
2429
- "RenvoiCMP_Type",
2430
- "RenvoiPrealable_Type",
2431
- "RetraitInitiative_Type",
2432
- "SaisieComAvis_Type",
2433
- "SaisieComFond_Type",
2434
- "SaisineConseilConstit_Type"
2435
- ],
2436
- CodeActe: Object.values(Xe),
2437
- TypeTexte: ["BTA", "TAP"],
2438
- Motif: ["En application de l'article 61§2 de la Constitution"],
2439
- TypeJo: ["JO_LOI_DECRET"],
2440
- Cause: ["Dossier absorbé", "Examen commun"],
2441
- TexteExterneAssocieTypeDoc: ["Décret"],
2442
- TypeDocument: [
2443
- "accordInternational_Type",
2444
- "avisConseilEtat_Type",
2445
- "documentEtudeImpact_Type",
2446
- "rapportParlementaire_Type",
2447
- "texteLoi_Type"
2448
- ],
2449
- StatutAdoption: ["ADOPTCOM", "ADOPTSEANCE", "REJETSEANCE"],
2450
- TypeCorrection: ["Rectifié"],
2451
- DocumentDenominationStructurelle: [
2452
- "Allocution",
2453
- "Avis",
2454
- "Déclaration",
2455
- "Lettre",
2456
- "Message",
2457
- "Motion",
2458
- "Projet de loi",
2459
- "Proposition de loi",
2460
- "Proposition de résolution",
2461
- "Rapport",
2462
- "Rapport d'information",
2463
- "Résolution"
2464
- ],
2465
- Provenance: ["Commission", "Séance", "Texte Déposé"]
2466
- };
2467
- var Ln = /* @__PURE__ */ ((e) => (e.DecompteDissidentsPositionGroupe = "DecompteDissidentsPositionGroupe", e.DecompteNominatif = "DecompteNominatif", e))(Ln || {}), Jn = /* @__PURE__ */ ((e) => (e.Adopté = "adopté", e.Rejeté = "rejeté", e))(Jn || {}), $n = /* @__PURE__ */ ((e) => (e.LAssembléeNationaleAAdopté = "l'Assemblée nationale a adopté", e.LAssembléeNationaleNAPasAdopté = "L'Assemblée nationale n'a pas adopté", e.LeCongrèsDuParlementAAdopté = "Le Congrès du Parlement a adopté", e.LeCongrèsDuParlementNAPasAdopté = "Le Congrès du Parlement n'a pas adopté", e))($n || {}), qn = /* @__PURE__ */ ((e) => (e.Moc = "MOC", e.Sat = "SAT", e.Spo = "SPO", e.Sps = "SPS", e.Ssg = "SSG", e))(qn || {}), Un = /* @__PURE__ */ ((e) => (e.MotionDeCensure = "motion de censure", e.ScrutinPublicOrdinaire = "scrutin public ordinaire", e.ScrutinPublicSolennel = "scrutin public solennel", e.ScrutinÀLaTribune = "scrutin à la tribune", e.ScrutinSolennelCongrès = "Scrutin solennel congrès", e))(Un || {}), Qn = /* @__PURE__ */ ((e) => (e.MajoritéAbsolueDesSuffragesExprimés = "Majorité absolue des suffrages exprimés", e.majoritéAbsolueDesSuffragesExprimés = "majorité absolue des suffrages exprimés", e.majoritéDesMembresComposantLAssembléeNationale = "majorité des membres composant l'Assemblée nationale", e.majoritéDesMembresComposantsComposantLAssemblée = "majorité des membres composants composant l'Assemblée", e.majoritéDesMembresComposantsComposantLAssembléeNationale = "majorité des membres composants composant l'Assemblée nationale", e.MajoritéRequisePourUnCongrès = "Majorité requise pour un Congrès", e.MajoritéRequisePourUneMotionDeCensure = "Majorité requise pour une motion de censure", e))(Qn || {}), Bn = /* @__PURE__ */ ((e) => (e.Mg = "MG", e.Pan = "PAN", e.Pse = "PSE", e))(Bn || {}), Xn = /* @__PURE__ */ ((e) => (e.Abstention = "abstention", e.Contre = "contre", e.Pour = "pour", e))(Xn || {}), Gn = /* @__PURE__ */ ((e) => (e.Congrès = "Congrès", e.Hémicycle = "Hémicycle", e.Salons = "Salons", e))(Gn || {});
2468
- let Te = class {
2469
- static toScrutins(n) {
2470
- return Le(JSON.parse(n), C("Scrutins"));
2471
- }
2472
- static scrutinsToJson(n) {
2473
- return JSON.stringify(Je(n, C("Scrutins")), null, 2);
2474
- }
2475
- static toScrutin(n) {
2476
- return Le(JSON.parse(n), C("Scrutin"));
2477
- }
2478
- static scrutinToJson(n) {
2479
- return JSON.stringify(Je(n, C("Scrutin")), null, 2);
2480
- }
2481
- };
2482
- function ue(e, n, s = "") {
2483
- throw Error(
2484
- s ? `Invalid value for key "${s}". Expected type ${JSON.stringify(
2485
- e
2486
- )} but got ${JSON.stringify(n)}` : `Invalid value ${JSON.stringify(n)} for type ${JSON.stringify(e)}`
2487
- );
2488
- }
2489
- function wn(e) {
2490
- if (e.jsonToJS === void 0) {
2491
- const n = {};
2492
- e.props.forEach((s) => n[s.json] = { key: s.js, typ: s.typ }), e.jsonToJS = n;
2493
- }
2494
- return e.jsonToJS;
2495
- }
2496
- function zn(e) {
2497
- if (e.jsToJSON === void 0) {
2498
- const n = {};
2499
- e.props.forEach((s) => n[s.js] = { key: s.json, typ: s.typ }), e.jsToJSON = n;
2500
- }
2501
- return e.jsToJSON;
2502
- }
2503
- function je(e, n, s, a = "") {
2504
- function y(t, o) {
2505
- return typeof t == typeof o ? o : ue(t, o, a);
2506
- }
2507
- function _(t, o) {
2508
- const u = t.length;
2509
- for (let S = 0; S < u; S++) {
2510
- const m = t[S];
2511
- try {
2512
- return je(o, m, s);
2513
- } catch {
2514
- }
2515
- }
2516
- return ue(t, o);
2517
- }
2518
- function R(t, o) {
2519
- return t.indexOf(o) !== -1 ? o : ue(t, o);
2520
- }
2521
- function I(t, o) {
2522
- return Array.isArray(o) ? o.map((u) => je(u, t, s)) : ue("array", o);
2523
- }
2524
- function T(t) {
2525
- if (t === null)
2526
- return null;
2527
- const o = new Date(t);
2528
- return isNaN(o.valueOf()) ? ue("Date", t) : o;
2529
- }
2530
- function h(t, o, u) {
2531
- if (u === null || typeof u != "object" || Array.isArray(u))
2532
- return ue("object", u);
2533
- const S = {};
2534
- return Object.getOwnPropertyNames(t).forEach((m) => {
2535
- const b = t[m], x = Object.prototype.hasOwnProperty.call(u, m) ? u[m] : void 0;
2536
- S[b.key] = je(x, b.typ, s, b.key);
2537
- }), Object.getOwnPropertyNames(u).forEach((m) => {
2538
- Object.prototype.hasOwnProperty.call(t, m) || (S[m] = je(u[m], o, s, m));
2539
- }), S;
2540
- }
2541
- if (n === "any") return e;
2542
- if (n === null)
2543
- return e === null ? e : ue(n, e);
2544
- for (; typeof n == "object" && n.ref !== void 0; )
2545
- n = Wn[n.ref];
2546
- return Array.isArray(n) ? R(n, e) : typeof n == "object" ? n.hasOwnProperty("unionMembers") ? _(n.unionMembers, e) : n.hasOwnProperty("arrayItems") ? I(n.arrayItems, e) : n.hasOwnProperty("props") ? h(s(n), n.additional, e) : ue(n, e) : n === Date && typeof e != "number" ? T(e) : y(n, e);
2547
- }
2548
- function Le(e, n) {
2549
- return je(e, n, wn);
2550
- }
2551
- function Je(e, n) {
2552
- return je(e, n, zn);
2553
- }
2554
- function W(e) {
2555
- return { arrayItems: e };
2556
- }
2557
- function $(...e) {
2558
- return { unionMembers: e };
2559
- }
2560
- function Z(e, n) {
2561
- return { props: e, additional: n };
2562
- }
2563
- function C(e) {
2564
- return { ref: e };
2565
- }
2566
- const Wn = {
2567
- Scrutins: Z(
2568
- [{ json: "scrutins", js: "scrutins", typ: W(C("Scrutin")) }],
2569
- !1
2570
- ),
2571
- Scrutin: Z(
2572
- [
2573
- { json: "schemaVersion", js: "schemaVersion", typ: $(void 0, "") },
2574
- { json: "uid", js: "uid", typ: "" },
2575
- { json: "numero", js: "numero", typ: "" },
2576
- { json: "organeRef", js: "organeRef", typ: "" },
2577
- { json: "legislature", js: "legislature", typ: "" },
2578
- { json: "sessionRef", js: "sessionRef", typ: "" },
2579
- { json: "seanceRef", js: "seanceRef", typ: "" },
2580
- { json: "dateScrutin", js: "dateScrutin", typ: Date },
2581
- { json: "quantiemeJourSeance", js: "quantiemeJourSeance", typ: "" },
2582
- { json: "typeVote", js: "typeVote", typ: C("TypeVote") },
2583
- { json: "sort", js: "sort", typ: C("SortScrutin") },
2584
- { json: "titre", js: "titre", typ: "" },
2585
- { json: "demandeur", js: "demandeur", typ: C("Demandeur") },
2586
- { json: "objet", js: "objet", typ: C("ObjetVote") },
2587
- {
2588
- json: "modePublicationDesVotes",
2589
- js: "modePublicationDesVotes",
2590
- typ: C("ModePublicationDesVotes")
2591
- },
2592
- { json: "syntheseVote", js: "syntheseVote", typ: C("SyntheseVote") },
2593
- {
2594
- json: "ventilationVotes",
2595
- js: "ventilationVotes",
2596
- typ: C("VentilationVotes")
2597
- },
2598
- {
2599
- json: "miseAuPoint",
2600
- js: "miseAuPoint",
2601
- typ: $(void 0, C("MiseAuPoint"))
2602
- },
2603
- { json: "lieuVote", js: "lieuVote", typ: $(void 0, C("LieuVote")) }
2604
- ],
2605
- !1
2606
- ),
2607
- Demandeur: Z([{ json: "texte", js: "texte", typ: $(void 0, "") }], !1),
2608
- MiseAuPoint: Z(
2609
- [
2610
- {
2611
- json: "nonVotants",
2612
- js: "nonVotants",
2613
- typ: $(void 0, W(C("Votant")))
2614
- },
2615
- {
2616
- json: "pour",
2617
- js: "pour",
2618
- typ: $(void 0, W(C("Votant")))
2619
- },
2620
- {
2621
- json: "contre",
2622
- js: "contre",
2623
- typ: $(void 0, W(C("Votant")))
2624
- },
2625
- {
2626
- json: "abstentions",
2627
- js: "abstentions",
2628
- typ: $(void 0, W(C("Votant")))
2629
- },
2630
- {
2631
- json: "nonVotantsVolontaires",
2632
- js: "nonVotantsVolontaires",
2633
- typ: $(void 0, W(C("Votant")))
2634
- },
2635
- {
2636
- json: "dysfonctionnement",
2637
- js: "dysfonctionnement",
2638
- typ: $(void 0, C("Dysfonctionnement"))
2639
- }
2640
- ],
2641
- !1
2642
- ),
2643
- Dysfonctionnement: Z(
2644
- [
2645
- {
2646
- json: "nonVotants",
2647
- js: "nonVotants",
2648
- typ: $(void 0, W(C("Votant")))
2649
- },
2650
- {
2651
- json: "pour",
2652
- js: "pour",
2653
- typ: $(void 0, W(C("Votant")))
2654
- },
2655
- {
2656
- json: "contre",
2657
- js: "contre",
2658
- typ: $(void 0, W(C("Votant")))
2659
- },
2660
- {
2661
- json: "abstentions",
2662
- js: "abstentions",
2663
- typ: $(void 0, W(C("Votant")))
2664
- },
2665
- {
2666
- json: "nonVotantsVolontaires",
2667
- js: "nonVotantsVolontaires",
2668
- typ: $(void 0, W(C("Votant")))
2669
- }
2670
- ],
2671
- !1
2672
- ),
2673
- ObjetVote: Z([{ json: "libelle", js: "libelle", typ: "" }], !1),
2674
- SortScrutin: Z(
2675
- [
2676
- { json: "code", js: "code", typ: C("CodeSortScrutin") },
2677
- { json: "libelle", js: "libelle", typ: C("LibelleSortScrutin") }
2678
- ],
2679
- !1
2680
- ),
2681
- SyntheseVote: Z(
2682
- [
2683
- { json: "nombreVotants", js: "nombreVotants", typ: "" },
2684
- { json: "suffragesExprimes", js: "suffragesExprimes", typ: "" },
2685
- { json: "nbrSuffragesRequis", js: "nbrSuffragesRequis", typ: "" },
2686
- { json: "annonce", js: "annonce", typ: C("LibelleSortScrutin") },
2687
- { json: "decompte", js: "decompte", typ: C("DecompteVoix") }
2688
- ],
2689
- !1
2690
- ),
2691
- TypeVote: Z(
2692
- [
2693
- { json: "codeTypeVote", js: "codeTypeVote", typ: C("CodeTypeVote") },
2694
- {
2695
- json: "libelleTypeVote",
2696
- js: "libelleTypeVote",
2697
- typ: C("LibelleTypeVote")
2698
- },
2699
- { json: "typeMajorite", js: "typeMajorite", typ: C("TypeMajorite") }
2700
- ],
2701
- !1
2702
- ),
2703
- VentilationVotes: Z(
2704
- [
2705
- { json: "organeRef", js: "organeRef", typ: "" },
2706
- { json: "groupes", js: "groupes", typ: W(C("VentilationVotesGroupe")) }
2707
- ],
2708
- !1
2709
- ),
2710
- VentilationVotesGroupe: Z(
2711
- [
2712
- { json: "organeRef", js: "organeRef", typ: "" },
2713
- { json: "nombreMembresGroupe", js: "nombreMembresGroupe", typ: "" },
2714
- { json: "vote", js: "vote", typ: C("Vote") }
2715
- ],
2716
- !1
2717
- ),
2718
- Vote: Z(
2719
- [
2720
- {
2721
- json: "positionMajoritaire",
2722
- js: "positionMajoritaire",
2723
- typ: C("PositionMajoritaire")
2724
- },
2725
- { json: "decompteVoix", js: "decompteVoix", typ: C("DecompteVoix") },
2726
- {
2727
- json: "decompteNominatif",
2728
- js: "decompteNominatif",
2729
- typ: C("DecompteNominatif")
2730
- }
2731
- ],
2732
- !1
2733
- ),
2734
- DecompteNominatif: Z(
2735
- [
2736
- {
2737
- json: "nonVotants",
2738
- js: "nonVotants",
2739
- typ: $(void 0, W(C("Votant")))
2740
- },
2741
- {
2742
- json: "pour",
2743
- js: "pour",
2744
- typ: $(void 0, W(C("Votant")))
2745
- },
2746
- {
2747
- json: "contre",
2748
- js: "contre",
2749
- typ: $(void 0, W(C("Votant")))
2750
- },
2751
- {
2752
- json: "abstentions",
2753
- js: "abstentions",
2754
- typ: $(void 0, W(C("Votant")))
2755
- }
2756
- ],
2757
- !1
2758
- ),
2759
- Votant: Z(
2760
- [
2761
- { json: "acteurRef", js: "acteurRef", typ: "" },
2762
- { json: "mandatRef", js: "mandatRef", typ: "" },
2763
- { json: "parDelegation", js: "parDelegation", typ: $(void 0, !1) },
2764
- { json: "numPlace", js: "numPlace", typ: $(void 0, 0) },
2765
- {
2766
- json: "causePositionVote",
2767
- js: "causePositionVote",
2768
- typ: $(void 0, C("CausePositionVote"))
2769
- }
2770
- ],
2771
- !1
2772
- ),
2773
- DecompteVoix: Z(
2774
- [
2775
- { json: "pour", js: "pour", typ: "" },
2776
- { json: "contre", js: "contre", typ: "" },
2777
- { json: "nonVotants", js: "nonVotants", typ: $(void 0, "") },
2778
- { json: "abstentions", js: "abstentions", typ: $(void 0, "") },
2779
- {
2780
- json: "nonVotantsVolontaires",
2781
- js: "nonVotantsVolontaires",
2782
- typ: $(void 0, "")
2783
- }
2784
- ],
2785
- !1
2786
- ),
2787
- ModePublicationDesVotes: [
2788
- "DecompteDissidentsPositionGroupe",
2789
- "DecompteNominatif"
2790
- ],
2791
- CodeSortScrutin: ["adopté", "rejeté"],
2792
- LibelleSortScrutin: [
2793
- "l'Assemblée nationale a adopté",
2794
- "L'Assemblée nationale n'a pas adopté",
2795
- "Le Congrès du Parlement a adopté",
2796
- "Le Congrès du Parlement n'a pas adopté"
2797
- ],
2798
- CodeTypeVote: ["MOC", "SAT", "SPO", "SPS", "SSG"],
2799
- LibelleTypeVote: [
2800
- "motion de censure",
2801
- "scrutin public ordinaire",
2802
- "scrutin public solennel",
2803
- "scrutin à la tribune",
2804
- "Scrutin solennel congrès"
2805
- ],
2806
- TypeMajorite: [
2807
- "Majorité absolue des suffrages exprimés",
2808
- "majorité absolue des suffrages exprimés",
2809
- "majorité des membres composant l'Assemblée nationale",
2810
- "majorité des membres composants composant l'Assemblée",
2811
- "majorité des membres composants composant l'Assemblée nationale",
2812
- "Majorité requise pour un Congrès",
2813
- "Majorité requise pour une motion de censure"
2814
- ],
2815
- CausePositionVote: ["MG", "PAN", "PSE"],
2816
- PositionMajoritaire: ["abstention", "contre", "pour"],
2817
- LieuVote: ["Congrès", "Hémicycle", "Salons"]
2818
- };
2819
- var Zn = /* @__PURE__ */ ((e) => (e.JoQuestion = "JO_QUESTION", e.JoLoiDecret = "JO_LOI_DECRET", e.JoDebate = "JO_DEBAT", e))(Zn || {}), Hn = /* @__PURE__ */ ((e) => (e.Qe = "QE", e.Qg = "QG", e.Qosd = "QOSD", e))(Hn || {});
2820
- let Me = class {
2821
- static toQuestions(n) {
2822
- return $e(JSON.parse(n), M("Questions"));
2823
- }
2824
- static questionsToJson(n) {
2825
- return JSON.stringify(qe(n, M("Questions")), null, 2);
2826
- }
2827
- static toQuestion(n) {
2828
- return $e(JSON.parse(n), M("Question"));
2829
- }
2830
- static questionToJson(n) {
2831
- return JSON.stringify(qe(n, M("Question")), null, 2);
2832
- }
2833
- };
2834
- function ne(e, n, s = "") {
2835
- throw Error(
2836
- s ? `Invalid value for key "${s}". Expected type ${JSON.stringify(
2837
- e
2838
- )} but got ${JSON.stringify(n)}` : `Invalid value ${JSON.stringify(n)} for type ${JSON.stringify(e)}`
2839
- );
2840
- }
2841
- function Kn(e) {
2842
- if (e.jsonToJS === void 0) {
2843
- const n = {};
2844
- e.props.forEach((s) => n[s.json] = { key: s.js, typ: s.typ }), e.jsonToJS = n;
2845
- }
2846
- return e.jsonToJS;
2847
- }
2848
- function Yn(e) {
2849
- if (e.jsToJSON === void 0) {
2850
- const n = {};
2851
- e.props.forEach((s) => n[s.js] = { key: s.json, typ: s.typ }), e.jsToJSON = n;
2852
- }
2853
- return e.jsToJSON;
2854
- }
2855
- function me(e, n, s, a = "") {
2856
- function y(t, o) {
2857
- return typeof t == typeof o ? o : ne(t, o, a);
2858
- }
2859
- function _(t, o) {
2860
- const u = t.length;
2861
- for (let S = 0; S < u; S++) {
2862
- const m = t[S];
2863
- try {
2864
- return me(o, m, s);
2865
- } catch {
2866
- }
2867
- }
2868
- return ne(t, o);
2869
- }
2870
- function R(t, o) {
2871
- return t.indexOf(o) !== -1 ? o : ne(t, o);
2872
- }
2873
- function I(t, o) {
2874
- return Array.isArray(o) ? o.map((u) => me(u, t, s)) : ne("array", o);
2875
- }
2876
- function T(t) {
2877
- if (t === null)
2878
- return null;
2879
- const o = new Date(t);
2880
- return isNaN(o.valueOf()) ? ne("Date", t) : o;
2881
- }
2882
- function h(t, o, u) {
2883
- if (u === null || typeof u != "object" || Array.isArray(u))
2884
- return ne("object", u);
2885
- const S = {};
2886
- return Object.getOwnPropertyNames(t).forEach((m) => {
2887
- const b = t[m], x = Object.prototype.hasOwnProperty.call(u, m) ? u[m] : void 0;
2888
- S[b.key] = me(x, b.typ, s, b.key);
2889
- }), Object.getOwnPropertyNames(u).forEach((m) => {
2890
- Object.prototype.hasOwnProperty.call(t, m) || (S[m] = me(u[m], o, s, m));
2891
- }), S;
2892
- }
2893
- if (n === "any") return e;
2894
- if (n === null)
2895
- return e === null ? e : ne(n, e);
2896
- if (n === !1) return ne(n, e);
2897
- for (; typeof n == "object" && n.ref !== void 0; )
2898
- n = kn[n.ref];
2899
- return Array.isArray(n) ? R(n, e) : typeof n == "object" ? n.hasOwnProperty("unionMembers") ? _(n.unionMembers, e) : n.hasOwnProperty("arrayItems") ? I(n.arrayItems, e) : n.hasOwnProperty("props") ? h(s(n), n.additional, e) : ne(n, e) : n === Date && typeof e != "number" ? T(e) : y(n, e);
2900
- }
2901
- function $e(e, n) {
2902
- return me(e, n, Kn);
2903
- }
2904
- function qe(e, n) {
2905
- return me(e, n, Yn);
2906
- }
2907
- function Ae(e) {
2908
- return { arrayItems: e };
2909
- }
2910
- function B(...e) {
2911
- return { unionMembers: e };
2912
- }
2913
- function X(e, n) {
2914
- return { props: e, additional: n };
2915
- }
2916
- function M(e) {
2917
- return { ref: e };
2918
- }
2919
- const kn = {
2920
- Questions: X(
2921
- [{ json: "questions", js: "questions", typ: Ae(M("Question")) }],
2922
- !1
2923
- ),
2924
- Question: X(
2925
- [
2926
- { json: "schemaVersion", js: "schemaVersion", typ: B(void 0, "") },
2927
- { json: "@xsi:type", js: "@xsi:type", typ: M("QuestionXsiType") },
2928
- { json: "uid", js: "uid", typ: "" },
2929
- { json: "identifiant", js: "identifiant", typ: M("Identifiant") },
2930
- { json: "type", js: "type", typ: M("TypeQuestion") },
2931
- { json: "indexationAN", js: "indexationAN", typ: M("IndexationAn") },
2932
- { json: "auteur", js: "auteur", typ: M("AuteurQuestion") },
2933
- { json: "minInt", js: "minInt", typ: M("Groupe") },
2934
- { json: "minAttribs", js: "minAttribs", typ: M("MinAttribs") },
2935
- {
2936
- json: "textesQuestion",
2937
- js: "textesQuestion",
2938
- typ: B(M("TextesQuestion"), null, void 0)
2939
- },
2940
- {
2941
- json: "textesReponse",
2942
- js: "textesReponse",
2943
- typ: B(M("TextesReponse"), null, void 0)
2944
- },
2945
- { json: "cloture", js: "cloture", typ: B(M("Cloture"), null, void 0) },
2946
- {
2947
- json: "signalement",
2948
- js: "signalement",
2949
- typ: B(M("Signalement"), null, void 0)
2950
- },
2951
- {
2952
- json: "renouvellements",
2953
- js: "renouvellements",
2954
- typ: B(M("Renouvellements"), null, void 0)
2955
- }
2956
- ],
2957
- !1
2958
- ),
2959
- AuteurQuestion: X(
2960
- [
2961
- { json: "identite", js: "identite", typ: M("IdentiteAuteurQuestion") },
2962
- { json: "groupe", js: "groupe", typ: M("Groupe") }
2963
- ],
2964
- !1
2965
- ),
2966
- Groupe: X(
2967
- [
2968
- { json: "organeRef", js: "organeRef", typ: "" },
2969
- { json: "abrege", js: "abrege", typ: "" },
2970
- { json: "developpe", js: "developpe", typ: "" }
2971
- ],
2972
- !1
2973
- ),
2974
- IdentiteAuteurQuestion: X(
2975
- [
2976
- { json: "acteurRef", js: "acteurRef", typ: "" },
2977
- { json: "mandatRef", js: "mandatRef", typ: "" }
2978
- ],
2979
- !1
2980
- ),
2981
- Cloture: X(
2982
- [
2983
- { json: "codeCloture", js: "codeCloture", typ: "" },
2984
- {
2985
- json: "libelleCloture",
2986
- js: "libelleCloture",
2987
- typ: ""
2988
- },
2989
- { json: "dateCloture", js: "dateCloture", typ: B(Date, null) },
2990
- { json: "infoJO", js: "infoJO", typ: B(M("InfoJoQuestion"), null) }
2991
- ],
2992
- !1
2993
- ),
2994
- Identifiant: X(
2995
- [
2996
- { json: "numero", js: "numero", typ: "" },
2997
- { json: "regime", js: "regime", typ: "" },
2998
- { json: "legislature", js: "legislature", typ: "" }
2999
- ],
3000
- !1
3001
- ),
3002
- IndexationAn: X(
3003
- [
3004
- { json: "rubrique", js: "rubrique", typ: B("", null) },
3005
- { json: "teteAnalyse", js: "teteAnalyse", typ: null },
3006
- { json: "analyses", js: "analyses", typ: M("Analyse") }
3007
- ],
3008
- !1
3009
- ),
3010
- Analyse: X([{ json: "analyse", js: "analyse", typ: B("", null) }], !1),
3011
- MinAttribs: X(
3012
- [
3013
- {
3014
- json: "minAttrib",
3015
- js: "minAttrib",
3016
- typ: B(Ae(M("MinAttribElement")), M("MinAttribElement"))
3017
- }
3018
- ],
3019
- !1
3020
- ),
3021
- MinAttribElement: X(
3022
- [
3023
- { json: "infoJO", js: "infoJO", typ: M("InfoJoQuestion") },
3024
- { json: "denomination", js: "denomination", typ: M("Groupe") }
3025
- ],
3026
- !1
3027
- ),
3028
- InfoJoQuestion: X(
3029
- [
3030
- { json: "typeJO", js: "typeJO", typ: B(M("TypeJoQuestion"), null) },
3031
- { json: "dateJO", js: "dateJO", typ: "" },
3032
- { json: "pageJO", js: "pageJO", typ: B("", null) },
3033
- { json: "numJO", js: "numJO", typ: B("", null) },
3034
- { json: "urlLegifrance", js: "urlLegifrance", typ: B("", null) },
3035
- { json: "referenceNOR", js: "referenceNOR", typ: B("", null) }
3036
- ],
3037
- !1
3038
- ),
3039
- TextesQuestion: X(
3040
- [
3041
- {
3042
- json: "texteQuestion",
3043
- js: "texteQuestion",
3044
- typ: B(Ae(M("TexteQuestion")), M("TexteQuestion"))
3045
- }
3046
- ],
3047
- !1
3048
- ),
3049
- TexteQuestion: X(
3050
- [
3051
- { json: "infoJO", js: "infoJO", typ: M("InfoJoQuestion") },
3052
- { json: "texte", js: "texte", typ: B("", null) },
3053
- { json: "erratum", js: "erratum", typ: B(void 0, "") }
3054
- ],
3055
- !1
3056
- ),
3057
- TextesReponse: X(
3058
- [
3059
- {
3060
- json: "texteReponse",
3061
- js: "texteReponse",
3062
- typ: B(Ae(M("TexteQuestion")), M("TexteQuestion"))
3063
- }
3064
- ],
3065
- !1
3066
- ),
3067
- Signalement: X(
3068
- [
3069
- { json: "infoJO", js: "infoJO", typ: M("InfoJoQuestion") },
3070
- { json: "dateDepotSignal", js: "dateDepotSignal", typ: "" }
3071
- ],
3072
- !1
3073
- ),
3074
- Renouvellements: X(
3075
- [
3076
- {
3077
- json: "renouvellement",
3078
- js: "renouvellement",
3079
- typ: B(Ae(M("Renouvellement")), M("Renouvellement"))
3080
- }
3081
- ],
3082
- !1
3083
- ),
3084
- Renouvellement: X(
3085
- [{ json: "infoJO", js: "infoJO", typ: M("InfoJoQuestion") }],
3086
- !1
3087
- ),
3088
- QuestionXsiType: [
3089
- "QuestionEcrite_Type",
3090
- "QuestionGouvernement_Type",
3091
- "QuestionOrale_Type"
3092
- ],
3093
- TypeJoQuestion: ["JO_QUESTION", "JO_LOI_DECRET", "JO_DEBAT"],
3094
- TypeQuestion: ["QE", "QG", "QOSD"]
3095
- };
3096
- var es = /* @__PURE__ */ ((e) => (e.AdoptionAmendementMainLevéeAdt = "ADOPTION amendement (main levée) adt", e.AdoptionDUnArticleVoteÀMainLevée = "ADOPTION d’un article (vote à main levée)", e.AdoptionDUnSousAmendementMainLevéeSsAdt = "ADOPTION d’un sous-amendement (main levée) ss-adt", e.AdoptionDePlusieursAmendementsMainLevéeAdts = "ADOPTION de plusieurs amendements (main levée) adts", e.AdoptionDePlusieursSousAmendementsMainLevéeSsAdts = "ADOPTION de plusieurs sous-amendements (main levée) ss-adts", e.Empty = "", e.RejetDUnAmendementMainLevéeAdt = "REJET d’un amendement (main levée) adt", e.RejetDUnArticleVoteÀMainLevée = "REJET d’un article (vote à main levée)", e.RejetDUnSousAmendementMainLevéeSsAdt = "REJET d’un sous-amendement (main levée) ss-adt", e.RejetDePlusieursAmendementsMainLevéeAdts = "REJET de plusieurs amendements (main levée) adts", e.RejetDePlusieursSousAmendementsMainLevéeSsAdts = "REJET de plusieurs sous-amendements (main levée) ss-adts", e.RejetMotionDeRejetPréalableMainLevée = "REJET motion de rejet préalable (main levée)", e))(es || {});
3097
- class he {
3098
- static toComptesRendus(n) {
3099
- return Ue(JSON.parse(n), N("ComptesRendus"));
3100
- }
3101
- static comptesRendusToJson(n) {
3102
- return JSON.stringify(Qe(n, N("ComptesRendus")), null, 2);
3103
- }
3104
- static toCompteRendu(n) {
3105
- return Ue(JSON.parse(n), N("CompteRendu"));
3106
- }
3107
- static compteRenduToJson(n) {
3108
- return JSON.stringify(Qe(n, N("CompteRendu")), null, 2);
3109
- }
3110
- }
3111
- function se(e, n, s, a = "") {
3112
- const y = Ie(e), _ = a ? ` on ${a}` : "", R = s ? ` for key "${s}"` : "";
3113
- throw Error(
3114
- `Invalid value${R}${_}. Expected ${y} but got ${JSON.stringify(
3115
- n
3116
- )}`
3117
- );
3118
- }
3119
- function Ie(e) {
3120
- return Array.isArray(e) ? e.length === 2 && e[0] === void 0 ? `an optional ${Ie(e[1])}` : `one of [${e.map((n) => Ie(n)).join(", ")}]` : typeof e == "object" && e.literal !== void 0 ? e.literal : typeof e;
3121
- }
3122
- function ns(e) {
3123
- if (e.jsonToJS === void 0) {
3124
- const n = {};
3125
- e.props.forEach((s) => n[s.json] = { key: s.js, typ: s.typ }), e.jsonToJS = n;
3126
- }
3127
- return e.jsonToJS;
3128
- }
3129
- function ss(e) {
3130
- if (e.jsToJSON === void 0) {
3131
- const n = {};
3132
- e.props.forEach((s) => n[s.js] = { key: s.json, typ: s.typ }), e.jsToJSON = n;
3133
- }
3134
- return e.jsToJSON;
3135
- }
3136
- function de(e, n, s, a = "", y = "") {
3137
- function _(u, S) {
3138
- return typeof u == typeof S ? S : se(u, S, a, y);
3139
- }
3140
- function R(u, S) {
3141
- const m = u.length;
3142
- for (let b = 0; b < m; b++) {
3143
- const x = u[b];
3144
- try {
3145
- return de(S, x, s);
3146
- } catch {
3147
- }
3148
- }
3149
- return se(u, S, a, y);
3150
- }
3151
- function I(u, S) {
3152
- return u.indexOf(S) !== -1 ? S : se(
3153
- u.map((m) => ge(m)),
3154
- S,
3155
- a,
3156
- y
3157
- );
3158
- }
3159
- function T(u, S) {
3160
- return Array.isArray(S) ? S.map((m) => de(m, u, s)) : se(ge("array"), S, a, y);
3161
- }
3162
- function h(u) {
3163
- if (u === null)
3164
- return null;
3165
- const S = new Date(u);
3166
- return isNaN(S.valueOf()) ? se(ge("Date"), u, a, y) : S;
3167
- }
3168
- function t(u, S, m) {
3169
- if (m === null || typeof m != "object" || Array.isArray(m))
3170
- return se(ge(o || "object"), m, a, y);
3171
- const b = {};
3172
- return Object.getOwnPropertyNames(u).forEach((x) => {
3173
- const Y = u[x], c = Object.prototype.hasOwnProperty.call(m, x) ? m[x] : void 0;
3174
- b[Y.key] = de(c, Y.typ, s, x, o);
3175
- }), Object.getOwnPropertyNames(m).forEach((x) => {
3176
- Object.prototype.hasOwnProperty.call(u, x) || (b[x] = de(m[x], S, s, x, o));
3177
- }), b;
3178
- }
3179
- if (n === "any") return e;
3180
- if (n === null)
3181
- return e === null ? e : se(n, e, a, y);
3182
- if (n === !1) return se(n, e, a, y);
3183
- let o;
3184
- for (; typeof n == "object" && n.ref !== void 0; )
3185
- o = n.ref, n = ts[n.ref];
3186
- return Array.isArray(n) ? I(n, e) : typeof n == "object" ? n.hasOwnProperty("unionMembers") ? R(n.unionMembers, e) : n.hasOwnProperty("arrayItems") ? T(n.arrayItems, e) : n.hasOwnProperty("props") ? t(s(n), n.additional, e) : se(n, e, a, y) : n === Date && typeof e != "number" ? h(e) : _(n, e);
3187
- }
3188
- function Ue(e, n) {
3189
- return de(e, n, ns);
3190
- }
3191
- function Qe(e, n) {
3192
- return de(e, n, ss);
3193
- }
3194
- function ge(e) {
3195
- return { literal: e };
3196
- }
3197
- function G(e) {
3198
- return { arrayItems: e };
3199
- }
3200
- function d(...e) {
3201
- return { unionMembers: e };
3202
- }
3203
- function H(e, n) {
3204
- return { props: e, additional: n };
3205
- }
3206
- function N(e) {
3207
- return { ref: e };
3208
- }
3209
- const ts = {
3210
- ComptesRendus: H(
3211
- [{ json: "comptesRendus", js: "comptesRendus", typ: G(N("CompteRendu")) }],
3212
- !1
3213
- ),
3214
- CompteRendu: H(
3215
- [
3216
- { json: "schemaVersion", js: "schemaVersion", typ: d(void 0, "") },
3217
- { json: "uid", js: "uid", typ: d(void 0, "") },
3218
- { json: "seanceRef", js: "seanceRef", typ: "" },
3219
- { json: "sessionRef", js: "sessionRef", typ: "" },
3220
- { json: "metadonnees", js: "metadonnees", typ: N("Metadonnees") },
3221
- { json: "contenu", js: "contenu", typ: N("Contenu") }
3222
- ],
3223
- !1
3224
- ),
3225
- Contenu: H(
3226
- [
3227
- { json: "quantiemes", js: "quantiemes", typ: N("Quantiemes") },
3228
- {
3229
- json: "ouvertureSeance",
3230
- js: "ouvertureSeance",
3231
- typ: d(void 0, d(G(N("Point")), N("Point")))
3232
- },
3233
- { json: "point", js: "point", typ: d(G(N("Point")), N("Point")) },
3234
- { json: "finSeance", js: "finSeance", typ: d(void 0, N("FinSeance")) },
3235
- {
3236
- json: "paragraphe",
3237
- js: "paragraphe",
3238
- typ: d(void 0, G(N("Point")))
3239
- }
3240
- ],
3241
- !1
3242
- ),
3243
- FinSeance: H([{ json: "point", js: "point", typ: N("Point") }], !1),
3244
- Orateurs: H(
3245
- [
3246
- {
3247
- json: "orateur",
3248
- js: "orateur",
3249
- typ: d(G(N("OrateurElement")), N("OrateurElement"))
3250
- }
3251
- ],
3252
- !1
3253
- ),
3254
- OrateurElement: H(
3255
- [
3256
- { json: "nom", js: "nom", typ: d(void 0, "") },
3257
- { json: "id", js: "id", typ: d(void 0, "") },
3258
- { json: "qualite", js: "qualite", typ: d(void 0, "") }
3259
- ],
3260
- !1
3261
- ),
3262
- Texte: H(
3263
- [
3264
- { json: "_", js: "_", typ: d(void 0, "") },
3265
- { json: "id_syceron", js: "id_syceron", typ: d(void 0, "") },
3266
- { json: "stime", js: "stime", typ: d(void 0, "") },
3267
- { json: "sup", js: "sup", typ: d(void 0, "") },
3268
- {
3269
- json: "lienAdt",
3270
- js: "lienAdt",
3271
- typ: d(void 0, d(G(N("Texte")), N("Texte")))
3272
- }
3273
- ],
3274
- !1
3275
- ),
3276
- Point: H(
3277
- [
3278
- { json: "nivpoint", js: "nivpoint", typ: d(void 0, "") },
3279
- { json: "valeur_ptsodj", js: "valeur_ptsodj", typ: d(void 0, "") },
3280
- { json: "ordinal_prise", js: "ordinal_prise", typ: d(void 0, "") },
3281
- { json: "id_preparation", js: "id_preparation", typ: d(void 0, "") },
3282
- {
3283
- json: "ordre_absolu_seance",
3284
- js: "ordre_absolu_seance",
3285
- typ: d(void 0, "")
3286
- },
3287
- { json: "code_grammaire", js: "code_grammaire", typ: d(void 0, "") },
3288
- { json: "code_style", js: "code_style", typ: d(void 0, "") },
3289
- { json: "code_parole", js: "code_parole", typ: d(void 0, "") },
3290
- { json: "sommaire", js: "sommaire", typ: d(void 0, "") },
3291
- { json: "id_syceron", js: "id_syceron", typ: d(void 0, "") },
3292
- { json: "valeur", js: "valeur", typ: d(void 0, "") },
3293
- {
3294
- json: "orateurs",
3295
- js: "orateurs",
3296
- typ: d(N("Orateurs"), d("", void 0))
3297
- },
3298
- { json: "texte", js: "texte", typ: d(N("Texte"), d("", void 0)) },
3299
- {
3300
- json: "paragraphe",
3301
- js: "paragraphe",
3302
- typ: d(void 0, d(G(N("Point")), N("Point")))
3303
- },
3304
- {
3305
- json: "interExtraction",
3306
- js: "interExtraction",
3307
- typ: d(void 0, d(G(N("Point")), N("Point")))
3308
- },
3309
- {
3310
- json: "point",
3311
- js: "point",
3312
- typ: d(void 0, d(G(N("Point")), N("Point")))
3313
- },
3314
- { json: "structure", js: "structure", typ: d(void 0, "") },
3315
- { json: "id_acteur", js: "id_acteur", typ: d(void 0, "") },
3316
- { json: "id_mandat", js: "id_mandat", typ: d(void 0, "") },
3317
- {
3318
- json: "id_nomination_oe",
3319
- js: "id_nomination_oe",
3320
- typ: d(void 0, "")
3321
- },
3322
- {
3323
- json: "id_nomination_op",
3324
- js: "id_nomination_op",
3325
- typ: d(void 0, "")
3326
- },
3327
- { json: "orateur", js: "orateur", typ: d(void 0, "") },
3328
- { json: "bibard", js: "bibard", typ: d(void 0, "") },
3329
- { json: "art", js: "art", typ: d(void 0, "") },
3330
- { json: "adt", js: "adt", typ: d(void 0, "") },
3331
- { json: "ssadt", js: "ssadt", typ: d(void 0, "") },
3332
- { json: "roledebat", js: "roledebat", typ: d(void 0, "") },
3333
- { json: "type_debat", js: "type_debat", typ: d(void 0, "") },
3334
- {
3335
- json: "changementPresidence",
3336
- js: "changementPresidence",
3337
- typ: d(void 0, d(G(N("Point")), N("Point")))
3338
- },
3339
- { json: "decision", js: "decision", typ: d(void 0, N("Decision")) },
3340
- {
3341
- json: "ouvertureSeance",
3342
- js: "ouvertureSeance",
3343
- typ: d(void 0, N("Point"))
3344
- },
3345
- { json: "nom_orateur", js: "nom_orateur", typ: d(void 0, "") },
3346
- { json: "qualite", js: "qualite", typ: d(void 0, "") }
3347
- ],
3348
- !1
3349
- ),
3350
- Quantiemes: H(
3351
- [
3352
- { json: "journee", js: "journee", typ: "" },
3353
- { json: "session", js: "session", typ: "" }
3354
- ],
3355
- !1
3356
- ),
3357
- Metadonnees: H(
3358
- [
3359
- { json: "dateSeance", js: "dateSeance", typ: "" },
3360
- { json: "dateSeanceJour", js: "dateSeanceJour", typ: "" },
3361
- { json: "numSeanceJour", js: "numSeanceJour", typ: "" },
3362
- { json: "numSeance", js: "numSeance", typ: "" },
3363
- { json: "typeAssemblee", js: "typeAssemblee", typ: "" },
3364
- { json: "legislature", js: "legislature", typ: "" },
3365
- { json: "session", js: "session", typ: "" },
3366
- { json: "nomFichierJo", js: "nomFichierJo", typ: "" },
3367
- { json: "validite", js: "validite", typ: "" },
3368
- { json: "etat", js: "etat", typ: "" },
3369
- { json: "diffusion", js: "diffusion", typ: "" },
3370
- { json: "version", js: "version", typ: "" },
3371
- { json: "environnement", js: "environnement", typ: "" },
3372
- { json: "heureGeneration", js: "heureGeneration", typ: Date },
3373
- { json: "sommaire", js: "sommaire", typ: N("Sommaire") }
3374
- ],
3375
- !1
3376
- ),
3377
- Sommaire: H(
3378
- [
3379
- { json: "presidentSeance", js: "presidentSeance", typ: N("Texte") },
3380
- {
3381
- json: "sommaire1",
3382
- js: "sommaire1",
3383
- typ: d(G(N("SommaireElement")), N("SommaireElement"))
3384
- },
3385
- {
3386
- json: "sommaire3",
3387
- js: "sommaire3",
3388
- typ: d(void 0, d(G(N("SommaireElement")), N("SommaireElement")))
3389
- },
3390
- {
3391
- json: "sommaire2",
3392
- js: "sommaire2",
3393
- typ: d(void 0, d(G(N("SommaireElement")), N("SommaireElement")))
3394
- },
3395
- {
3396
- json: "para",
3397
- js: "para",
3398
- typ: d(void 0, d(G(N("Texte")), N("Texte")))
3399
- }
3400
- ],
3401
- !1
3402
- ),
3403
- SommaireElement: H(
3404
- [
3405
- { json: "valeur_pts_odj", js: "valeur_pts_odj", typ: d(void 0, "") },
3406
- {
3407
- json: "titreStruct",
3408
- js: "titreStruct",
3409
- typ: d(void 0, N("TitreStruct"))
3410
- },
3411
- {
3412
- json: "para",
3413
- js: "para",
3414
- typ: d(void 0, d(G(d(N("Texte"), "")), N("Texte")))
3415
- },
3416
- {
3417
- json: "sommaire2",
3418
- js: "sommaire2",
3419
- typ: d(void 0, d(G(N("SommaireElement")), N("SommaireElement")))
3420
- },
3421
- {
3422
- json: "sommaire3",
3423
- js: "sommaire3",
3424
- typ: d(void 0, d(G(N("SommaireElement")), N("SommaireElement")))
3425
- },
3426
- {
3427
- json: "presidentSeance",
3428
- js: "presidentSeance",
3429
- typ: d(void 0, d(G(N("Texte")), N("Texte")))
3430
- },
3431
- { json: "type_debat", js: "type_debat", typ: d(void 0, "") }
3432
- ],
3433
- !1
3434
- ),
3435
- TitreStruct: H(
3436
- [
3437
- { json: "id_syceron", js: "id_syceron", typ: "" },
3438
- { json: "intitule", js: "intitule", typ: d(void 0, "") },
3439
- { json: "sousIntitule", js: "sousIntitule", typ: d(void 0, "") },
3440
- { json: "type_debat", js: "type_debat", typ: d(void 0, "") }
3441
- ],
3442
- !1
3443
- ),
3444
- Decision: [
3445
- "ADOPTION amendement (main levée) adt",
3446
- "ADOPTION d’un article (vote à main levée)",
3447
- "ADOPTION d’un sous-amendement (main levée) ss-adt",
3448
- "ADOPTION de plusieurs amendements (main levée) adts",
3449
- "ADOPTION de plusieurs sous-amendements (main levée) ss-adts",
3450
- "",
3451
- "REJET d’un amendement (main levée) adt",
3452
- "REJET d’un article (vote à main levée)",
3453
- "REJET d’un sous-amendement (main levée) ss-adt",
3454
- "REJET de plusieurs amendements (main levée) adts",
3455
- "REJET de plusieurs sous-amendements (main levée) ss-adts",
3456
- "REJET motion de rejet préalable (main levée)"
3457
- ]
3458
- };
3459
- function os(e) {
3460
- const n = [
3461
- "",
3462
- "I",
3463
- "II",
3464
- "III",
3465
- "IV",
3466
- "V",
3467
- "VI",
3468
- "VII",
3469
- "VIII",
3470
- "IX",
3471
- "X",
3472
- "XI",
3473
- "XII",
3474
- "XIII",
3475
- "XIV",
3476
- "XV",
3477
- "XVI",
3478
- "XVII"
3479
- ];
3480
- if (e < 1 || e >= n.length) throw new Error("Invalid legislature");
3481
- return n[e];
3482
- }
3483
- const is = /^((?<documentType>ACIN|ALCN|AVCE|AVIS|DECL|ETDI|LETT|MESS|MION|PION|PNRE|PRJL|RAPP|RINF|RION)(?<chambre>AN|CG|SN)(?<republique>R\d+)[LS](?<legislature>\d+)(?<etat>B|BTA|BTC|TAP)(?<numero>\d+)(-.*)?)|((?<documentType2>MION)(?<chambre2>AN|SN)(?<republique2>R\d+)[LS](?<legislature2>\d+)-N(?<numero2>\d+))$/, rs = /^DL(R\d+)(L\d+)N(\d+)$/, as = /^RU(AN|CG|SN)(R\d+)(L\d+)([AS]\d{4})(IDC|IDFL?|IDS)(\d+)$/, us = /^VT(AN|CG)(R\d+)(L\d+)V(\d+)$/, ls = /^CR(S|C)(AN|CG)(R\d+)(L\d+)(S\d+)((?:O|E|D|PO)\d+)(N\d+)$/, ps = /^QAN(R\d+)(L\d+)Q(E|G|OSD)(\d+)$/;
3484
- function* te(e, n, s, a, y, _ = "json", { noValidation: R = !1, log: I = !1 } = {}) {
3485
- const T = /* @__PURE__ */ new Set();
3486
- for (const h of s) {
3487
- if (h.ignoreForWeb || !cs(n, h))
3488
- continue;
3489
- const t = new RegExp(`\\.${_}$`), o = i.join(
3490
- e,
3491
- h.filename.replace(t, "_nettoye")
3492
- );
3493
- for (const u of k(o, y)) {
3494
- if (!u[u.length - 1].endsWith(".json"))
3495
- continue;
3496
- const m = i.join(o, ...u);
3497
- I && console.log(`Loading file: ${m}…`);
3498
- let b = p.readFileSync(m, { encoding: "utf8" });
3499
- const x = R ? JSON.parse(b) : a(b);
3500
- T.has(x.uid) || (T.add(x.uid), yield { item: x, datasetLegislature: h.legislature }, b = null);
3501
- }
3502
- }
3503
- T.clear();
3504
- }
3505
- function cs(e, n) {
3506
- const s = Array.isArray(e) ? e : e !== void 0 ? [e] : [];
3507
- return e === void 0 || s.includes(0) || n.legislature === f.All ? !0 : s.includes(n.legislature);
3508
- }
3509
- function* Es(e, n, s = {}) {
3510
- for (const {
3511
- item: a,
3512
- datasetLegislature: y
3513
- } of te(
3514
- e,
3515
- n,
3516
- Q.acteursEtOrganes,
3517
- ve.toActeur,
3518
- ["acteurs"],
3519
- "json",
3520
- s
3521
- ))
3522
- yield { acteur: a, datasetLegislature: y };
3523
- }
3524
- function* _s(e, n, s = {}) {
3525
- for (const {
3526
- item: a,
3527
- datasetLegislature: y
3528
- } of te(
3529
- e,
3530
- n,
3531
- Q.acteursEtOrganes,
3532
- ve.toOrgane,
3533
- ["organes"],
3534
- "json",
3535
- s
3536
- ))
3537
- yield { organe: a, datasetLegislature: y };
3538
- }
3539
- function* Rs(e, n, s = {}) {
3540
- for (const {
3541
- item: a,
3542
- datasetLegislature: y
3543
- } of te(
3544
- e,
3545
- n,
3546
- Q.amendements,
3547
- Pe.toAmendement,
3548
- [],
3549
- "json",
3550
- s
3551
- ))
3552
- yield { amendement: a, datasetLegislature: y };
3553
- }
3554
- function* Is(e, n, s = {}) {
3555
- for (const {
3556
- item: a,
3557
- datasetLegislature: y
3558
- } of te(
3559
- e,
3560
- n,
3561
- Q.dossiersLegislatifs,
3562
- De.toDocument,
3563
- ["documents"],
3564
- "json",
3565
- s
3566
- ))
3567
- yield { document: a, datasetLegislature: y };
3568
- }
3569
- function* Ps(e, n, s = {}) {
3570
- for (const {
3571
- item: a,
3572
- datasetLegislature: y
3573
- } of te(
3574
- e,
3575
- n,
3576
- Q.dossiersLegislatifs,
3577
- De.toDossierParlementaire,
3578
- ["dossiers"],
3579
- "json",
3580
- s
3581
- ))
3582
- yield { dossierParlementaire: a, datasetLegislature: y };
3583
- }
3584
- function* Cs(e, n, s = {}) {
3585
- for (const {
3586
- item: a,
3587
- datasetLegislature: y
3588
- } of te(
3589
- e,
3590
- n,
3591
- Q.agendas,
3592
- Ce.toReunion,
3593
- [],
3594
- "json",
3595
- s
3596
- ))
3597
- yield { reunion: a, datasetLegislature: y };
3598
- }
3599
- function* Ts(e, n, s = {}) {
3600
- for (const {
3601
- item: a,
3602
- datasetLegislature: y
3603
- } of te(
3604
- e,
3605
- n,
3606
- Q.scrutins,
3607
- Te.toScrutin,
3608
- [],
3609
- "json",
3610
- s
3611
- ))
3612
- yield { scrutin: a, datasetLegislature: y };
3613
- }
3614
- function* Ms(e, n, s = {}) {
3615
- for (const {
3616
- item: a,
3617
- datasetLegislature: y
3618
- } of te(
3619
- e,
3620
- n,
3621
- Q.questions,
3622
- Me.toQuestion,
3623
- [],
3624
- "json",
3625
- s
3626
- ))
3627
- yield { question: a, datasetLegislature: y };
3628
- }
3629
- function* hs(e, n, s = {}) {
3630
- for (const {
3631
- item: a,
3632
- datasetLegislature: y
3633
- } of te(
3634
- e,
3635
- n,
3636
- Q.comptesRendusSeances,
3637
- he.toCompteRendu,
3638
- [],
3639
- "xml",
3640
- s
3641
- ))
3642
- yield { compteRendu: a, datasetLegislature: y };
3643
- }
3644
- function* xs(e, n) {
3645
- const s = `Comptes_Rendus_Commissions_${os(n)}_nettoye`, a = i.join(e, s);
3646
- if (p.existsSync(a))
3647
- for (const y of Ge(a))
3648
- try {
3649
- const _ = p.readFileSync(y, "utf-8");
3650
- yield {
3651
- compteRendu: JSON.parse(_),
3652
- datasetLegislature: n
3653
- };
3654
- } catch (_) {
3655
- console.warn(`Erreur lors de la lecture du fichier ${y} :`, _);
3656
- }
3657
- }
3658
- function* Ge(e) {
3659
- if (p.existsSync(e))
3660
- for (const n of p.readdirSync(e, { withFileTypes: !0 })) {
3661
- const s = i.join(e, n.name);
3662
- n.isDirectory() ? yield* Ge(s) : n.isFile() && s.endsWith(".json") && (yield s);
3663
- }
3664
- }
3665
- function Vs(e, n, s, { log: a = !1 } = {}) {
3666
- const y = {}, _ = {};
3667
- if (n & w.ActeursEtOrganes)
3668
- for (const c of Q.acteursEtOrganes) {
3669
- if (c.ignoreForWeb || s !== f.All && c.legislature !== f.All && s !== c.legislature)
3670
- continue;
3671
- const v = i.join(
3672
- e,
3673
- c.filename.replace(/\.json$/, "_nettoye")
3674
- );
3675
- for (const D of k(v, ["acteurs"])) {
3676
- if (!D[D.length - 1].endsWith(".json"))
3677
- continue;
3678
- const A = i.join(v, ...D);
3679
- a && console.log(`Loading file: ${A}…`);
3680
- const F = p.readFileSync(A, {
3681
- encoding: "utf8"
3682
- }), g = ve.toActeur(F);
3683
- y[g.uid] === void 0 && (y[g.uid] = g);
3684
- }
3685
- for (const D of k(v, ["organes"])) {
3686
- if (!D[D.length - 1].endsWith(".json"))
3687
- continue;
3688
- const A = i.join(v, ...D);
3689
- a && console.log(`Loading file: ${A}…`);
3690
- const F = p.readFileSync(A, {
3691
- encoding: "utf8"
3692
- }), g = ve.toOrgane(F);
3693
- _[g.uid] === void 0 && (_[g.uid] = g);
3694
- }
3695
- }
3696
- const R = {}, I = {}, T = {};
3697
- if (n & w.Agendas)
3698
- for (const c of Q.agendas) {
3699
- if (c.ignoreForWeb || s !== f.All && c.legislature !== f.All && s !== c.legislature)
3700
- continue;
3701
- const v = i.join(
3702
- e,
3703
- c.filename.replace(/\.json$/, "_nettoye")
3704
- );
3705
- for (const D of k(v)) {
3706
- if (!D[D.length - 1].endsWith(".json"))
3707
- continue;
3708
- const A = i.join(v, ...D);
3709
- a && console.log(`Loading file: ${A}…`);
3710
- const F = p.readFileSync(A, {
3711
- encoding: "utf8"
3712
- }), g = Ce.toReunion(F);
3713
- R[g.uid] === void 0 && (R[g.uid] = g);
3714
- const K = g.timestampDebut.toISOString().split("T")[0];
3715
- let fe = I[K];
3716
- fe === void 0 && (fe = I[K] = []), fe.push(g);
3717
- const ye = g.odj;
3718
- if (ye !== void 0)
3719
- for (const Se of ye.pointsOdj || [])
3720
- for (const xe of Se.dossiersLegislatifsRefs || []) {
3721
- let Oe = T[xe];
3722
- Oe === void 0 && (Oe = T[xe] = []), Oe.push(g);
3723
- }
3724
- }
3725
- }
3726
- const h = {};
3727
- if (n & w.Amendements)
3728
- for (const c of Q.amendements) {
3729
- if (c.ignoreForWeb || s !== f.All && c.legislature !== f.All && s !== c.legislature)
3730
- continue;
3731
- const v = i.join(
3732
- e,
3733
- c.filename.replace(/\.json$/, "_nettoye")
3734
- );
3735
- for (const D of k(v)) {
3736
- if (!D[D.length - 1].endsWith(".json"))
3737
- continue;
3738
- const A = i.join(v, ...D);
3739
- a && console.log(`Loading file: ${A}…`);
3740
- const F = p.readFileSync(A, {
3741
- encoding: "utf8"
3742
- }), g = Pe.toAmendement(F);
3743
- h[g.uid] === void 0 && (h[g.uid] = g);
3744
- }
3745
- }
3746
- const t = {}, o = {}, u = {}, S = {};
3747
- if (n & w.DossiersLegislatifs)
3748
- for (const c of Q.dossiersLegislatifs) {
3749
- if (c.ignoreForWeb || s !== f.All && c.legislature !== f.All && s !== c.legislature)
3750
- continue;
3751
- const v = i.join(
3752
- e,
3753
- c.filename.replace(/\.json$/, "_nettoye")
3754
- );
3755
- for (const D of k(v, ["documents"])) {
3756
- if (!D[D.length - 1].endsWith(".json"))
3757
- continue;
3758
- const A = i.join(v, ...D);
3759
- a && console.log(`Loading file: ${A}…`);
3760
- const F = p.readFileSync(A, {
3761
- encoding: "utf8"
3762
- }), g = De.toDocument(F);
3763
- t[g.uid] === void 0 && (t[g.uid] = g);
3764
- }
3765
- for (const D of k(v, ["dossiers"])) {
3766
- if (!D[D.length - 1].endsWith(".json"))
3767
- continue;
3768
- const A = i.join(v, ...D);
3769
- a && console.log(`Loading file: ${A}…`);
3770
- const F = p.readFileSync(A, {
3771
- encoding: "utf8"
3772
- }), g = De.toDossierParlementaire(F), K = g.titreDossier;
3773
- K.senatChemin && o[K.senatChemin] === void 0 && (o[K.senatChemin] = g), K.titreChemin && u[K.titreChemin] === void 0 && (u[K.titreChemin] = g), S[g.uid] === void 0 && (S[g.uid] = g);
3774
- }
3775
- }
3776
- let m = {};
3777
- if (n & w.Photos) {
3778
- {
3779
- const c = i.join(
3780
- e,
3781
- `photos_deputes_${// TODO: Handle Legislature.All.
3782
- s === f.All ? f.DixSept : s}`,
3783
- "deputes.json"
3784
- );
3785
- if (p.existsSync(c)) {
3786
- a && console.log(`Loading file: ${c}`);
3787
- const v = p.readFileSync(c, { encoding: "utf8" });
3788
- Object.assign(m, JSON.parse(v));
3789
- } else a && console.log(`Ignoring missing file: ${c}`);
3790
- }
3791
- {
3792
- const c = i.join(
3793
- e,
3794
- "photos_senateurs",
3795
- "senateurs.json"
3796
- );
3797
- if (p.existsSync(c)) {
3798
- a && console.log(`Loading file: ${c}`);
3799
- const v = p.readFileSync(c, { encoding: "utf8" });
3800
- Object.assign(m, JSON.parse(v));
3801
- } else a && console.log(`Ignoring missing file: ${c}`);
3802
- }
3803
- }
3804
- const b = {};
3805
- if (n & w.Scrutins)
3806
- for (const c of Q.scrutins) {
3807
- if (c.ignoreForWeb || s !== f.All && c.legislature !== f.All && s !== c.legislature)
3808
- continue;
3809
- const v = i.join(
3810
- e,
3811
- c.filename.replace(/\.json$/, "_nettoye")
3812
- );
3813
- for (const D of k(v)) {
3814
- if (!D[D.length - 1].endsWith(".json"))
3815
- continue;
3816
- const A = i.join(v, ...D);
3817
- a && console.log(`Loading file: ${A}…`);
3818
- const F = p.readFileSync(A, {
3819
- encoding: "utf8"
3820
- }), g = Te.toScrutin(F);
3821
- b[g.uid] === void 0 && (b[g.uid] = g);
3822
- }
3823
- }
3824
- const x = {};
3825
- if (n & w.Questions)
3826
- for (const c of Q.questions) {
3827
- if (c.ignoreForWeb || s !== f.All && c.legislature !== f.All && s !== c.legislature)
3828
- continue;
3829
- const v = i.join(
3830
- e,
3831
- c.filename.replace(/\.json$/, "_nettoye")
3832
- );
3833
- for (const D of k(v)) {
3834
- if (!D[D.length - 1].endsWith(".json"))
3835
- continue;
3836
- const A = i.join(v, ...D);
3837
- a && console.log(`Loading file: ${A}…`);
3838
- const F = p.readFileSync(A, {
3839
- encoding: "utf8"
3840
- }), g = Me.toQuestion(F);
3841
- x[g.uid] === void 0 && (x[g.uid] = g);
3842
- }
3843
- }
3844
- const Y = {};
3845
- if (n & w.ComptesRendusSeances)
3846
- for (const c of Q.comptesRendusSeances) {
3847
- if (c.ignoreForWeb || s !== f.All && c.legislature !== f.All && s !== c.legislature)
3848
- continue;
3849
- const v = i.join(
3850
- e,
3851
- c.filename.replace(/\.json$/, "_nettoye")
3852
- );
3853
- for (const D of k(v)) {
3854
- if (!D[D.length - 1].endsWith(".json"))
3855
- continue;
3856
- const A = i.join(v, ...D);
3857
- a && console.log(`Loading file: ${A}…`);
3858
- const F = p.readFileSync(A, {
3859
- encoding: "utf8"
3860
- }), g = he.toCompteRendu(F);
3861
- Y[g.uid] === void 0 && (Y[g.uid] = g);
3862
- }
3863
- }
3864
- return {
3865
- acteurByUid: y,
3866
- amendementByUid: h,
3867
- documentByUid: t,
3868
- dossierParlementaireBySenatChemin: o,
3869
- dossierParlementaireByTitreChemin: u,
3870
- dossierParlementaireByUid: S,
3871
- organeByUid: _,
3872
- photoByUid: m,
3873
- reunionByUid: R,
3874
- reunionsByDay: I,
3875
- reunionsByDossierUid: T,
3876
- scrutinByUid: b,
3877
- questionByUid: x,
3878
- compteRenduByUid: Y
3879
- };
3880
- }
3881
- function Fs(e, n, s, { log: a = !1 } = {}) {
3882
- const y = {}, _ = {};
3883
- if (n & w.ActeursEtOrganes)
3884
- for (const c of Q.acteursEtOrganes) {
3885
- if (c.ignoreForWeb || s !== f.All && c.legislature !== f.All && s !== c.legislature)
3886
- continue;
3887
- const v = i.join(
3888
- e,
3889
- c.filename.replace(/\.json$/, "_nettoye.json")
3890
- );
3891
- a && console.log(`Loading file: ${v}`);
3892
- const D = p.readFileSync(v, { encoding: "utf8" }), q = ve.toActeursEtOrganes(D);
3893
- for (const A of q.acteurs)
3894
- y[A.uid] === void 0 && (y[A.uid] = A);
3895
- for (const A of q.organes)
3896
- _[A.uid] === void 0 && (_[A.uid] = A);
3897
- }
3898
- const R = {}, I = {}, T = {};
3899
- if (n & w.Agendas)
3900
- for (const c of Q.agendas) {
3901
- if (c.ignoreForWeb || s !== f.All && c.legislature !== f.All && s !== c.legislature)
3902
- continue;
3903
- const v = i.join(
3904
- e,
3905
- c.filename.replace(/\.json$/, "_nettoye.json")
3906
- );
3907
- a && console.log(`Loading file: ${v}`);
3908
- const D = p.readFileSync(v, { encoding: "utf8" }), q = Ce.toAgendas(D);
3909
- for (const A of q.reunions) {
3910
- R[A.uid] === void 0 && (R[A.uid] = A);
3911
- const F = A.timestampDebut.toISOString().split("T")[0];
3912
- let g = I[F];
3913
- g === void 0 && (g = I[F] = []), g.push(A);
3914
- const K = A.odj;
3915
- if (K !== void 0)
3916
- for (const fe of K.pointsOdj || [])
3917
- for (const ye of fe.dossiersLegislatifsRefs || []) {
3918
- let Se = T[ye];
3919
- Se === void 0 && (Se = T[ye] = []), Se.push(A);
3920
- }
3921
- }
3922
- }
3923
- const h = {};
3924
- if (n & w.Amendements)
3925
- for (const c of Q.amendements) {
3926
- if (c.ignoreForWeb || s !== f.All && c.legislature !== f.All && s !== c.legislature)
3927
- continue;
3928
- const v = i.join(
3929
- e,
3930
- c.filename.replace(/\.json$/, "_nettoye.json")
3931
- );
3932
- a && console.log(`Loading file: ${v}`);
3933
- const D = p.readFileSync(v, { encoding: "utf8" }), q = Pe.toAmendements(D);
3934
- for (const A of q.textesLegislatifs)
3935
- for (const F of A.amendements)
3936
- h[F.uid] === void 0 && (h[F.uid] = F);
3937
- }
3938
- const t = {}, o = {}, u = {}, S = {};
3939
- if (n & w.DossiersLegislatifs)
3940
- for (const c of Q.dossiersLegislatifs) {
3941
- if (c.ignoreForWeb || s !== f.All && c.legislature !== f.All && s !== c.legislature)
3942
- continue;
3943
- const v = i.join(
3944
- e,
3945
- c.filename.replace(/\.json$/, "_nettoye.json")
3946
- );
3947
- a && console.log(`Loading file: ${v}`);
3948
- const D = p.readFileSync(v, { encoding: "utf8" }), q = De.toDossiersLegislatifs(D);
3949
- for (const A of q.textesLegislatifs)
3950
- t[A.uid] === void 0 && (t[A.uid] = A);
3951
- for (const A of q.dossiersParlementaires) {
3952
- const F = A.titreDossier;
3953
- F.senatChemin && o[F.senatChemin] === void 0 && (o[F.senatChemin] = A), F.titreChemin && u[F.titreChemin] === void 0 && (u[F.titreChemin] = A), S[A.uid] === void 0 && (S[A.uid] = A);
3954
- }
3955
- }
3956
- const m = {};
3957
- if (n & w.Photos) {
3958
- const c = {};
3959
- {
3960
- const v = i.join(
3961
- e,
3962
- `photos_deputes_${// TODO: Handle Legislature.All.
3963
- s === f.All ? f.DixSept : s}`,
3964
- "deputes.json"
3965
- );
3966
- if (p.existsSync(v)) {
3967
- a && console.log(`Loading file: ${v}`);
3968
- const D = p.readFileSync(v, { encoding: "utf8" });
3969
- Object.assign(c, JSON.parse(D));
3970
- } else a && console.log(`Ignoring missing file: ${v}`);
3971
- }
3972
- {
3973
- const v = i.join(
3974
- e,
3975
- "photos_senateurs",
3976
- "senateurs.json"
3977
- );
3978
- if (p.existsSync(v)) {
3979
- a && console.log(`Loading file: ${v}`);
3980
- const D = p.readFileSync(v, { encoding: "utf8" });
3981
- Object.assign(c, JSON.parse(D));
3982
- } else a && console.log(`Ignoring missing file: ${v}`);
3983
- }
3984
- }
3985
- const b = {};
3986
- if (n & w.Scrutins)
3987
- for (const c of Q.scrutins) {
3988
- if (c.ignoreForWeb || s !== f.All && c.legislature !== f.All && s !== c.legislature)
3989
- continue;
3990
- const v = i.join(
3991
- e,
3992
- c.filename.replace(/\.json$/, "_nettoye.json")
3993
- );
3994
- a && console.log(`Loading file: ${v}`);
3995
- const D = p.readFileSync(v, { encoding: "utf8" }), q = Te.toScrutins(D);
3996
- for (const A of q.scrutins)
3997
- b[A.uid] === void 0 && (b[A.uid] = A);
3998
- }
3999
- const x = {};
4000
- if (n & w.Questions)
4001
- for (const c of Q.questions) {
4002
- if (c.ignoreForWeb || s !== f.All && c.legislature !== f.All && s !== c.legislature)
4003
- continue;
4004
- const v = i.join(
4005
- e,
4006
- c.filename.replace(/\.json$/, "_nettoye.json")
4007
- );
4008
- a && console.log(`Loading file: ${v}`);
4009
- const D = p.readFileSync(v, { encoding: "utf8" }), q = Me.toQuestions(D);
4010
- for (const A of q.questions)
4011
- x[A.uid] === void 0 && (x[A.uid] = A);
4012
- }
4013
- const Y = {};
4014
- if (n & w.ComptesRendusSeances)
4015
- for (const c of Q.comptesRendusSeances) {
4016
- if (c.ignoreForWeb || s !== f.All && c.legislature !== f.All && s !== c.legislature)
4017
- continue;
4018
- const v = i.join(
4019
- e,
4020
- c.filename.replace(/\.json$/, "_nettoye.json")
4021
- );
4022
- a && console.log(`Loading file: ${v}`);
4023
- const D = p.readFileSync(v, { encoding: "utf8" }), q = he.toComptesRendus(D);
4024
- for (const A of q.comptesRendus)
4025
- Y[A.uid] === void 0 && (Y[A.uid] = A);
4026
- }
4027
- return {
4028
- acteurByUid: y,
4029
- amendementByUid: h,
4030
- documentByUid: t,
4031
- dossierParlementaireBySenatChemin: o,
4032
- dossierParlementaireByTitreChemin: u,
4033
- dossierParlementaireByUid: S,
4034
- organeByUid: _,
4035
- photoByUid: m,
4036
- reunionByUid: R,
4037
- reunionsByDay: I,
4038
- reunionsByDossierUid: T,
4039
- scrutinByUid: b,
4040
- questionByUid: x,
4041
- compteRenduByUid: Y
4042
- };
4043
- }
4044
- function Ls(e, n, s) {
4045
- const a = i.join(e, "Documents"), y = js(a, n), _ = i.join(y, "index.json");
4046
- if (!p.pathExistsSync(_))
4047
- return;
4048
- const R = p.readJsonSync(_);
4049
- for (const I of s)
4050
- for (const { filename: T, url: h } of R[I] ?? [])
4051
- if (T !== void 0)
4052
- return { format: I, path: i.join(y, T), url: h };
4053
- }
4054
- function Js(e, n, { log: s = !1 } = {}) {
4055
- const a = i.join(
4056
- e,
4057
- `photos_deputes_${// TODO: Handle Legislature.All.
4058
- n === f.All ? f.DixSept : n}`,
4059
- "deputes.json"
4060
- );
4061
- s && console.log(`Loading file: ${a}`);
4062
- const y = p.readFileSync(a, { encoding: "utf8" });
4063
- return JSON.parse(y);
4064
- }
4065
- function $s(e, { log: n = !1 } = {}) {
4066
- const s = i.join(
4067
- e,
4068
- "photos_senateurs",
4069
- "senateurs.json"
4070
- );
4071
- n && console.log(`Loading file: ${s}`);
4072
- const a = p.readFileSync(s, { encoding: "utf8" });
4073
- return JSON.parse(a);
4074
- }
4075
- function js(e, n) {
4076
- const s = n.match(is);
4077
- Ne.notStrictEqual(
4078
- s,
4079
- null,
4080
- `Unexpected structure for document UID: ${n}`
4081
- );
4082
- const a = s.groups, y = i.join(
4083
- e,
4084
- a.documentType ?? a.documentType2
4085
- ), _ = i.join(y, a.chambre ?? a.chambre2), R = i.join(
4086
- _,
4087
- a.republique ?? a.republique2
4088
- ), I = i.join(
4089
- R,
4090
- a.legislature ?? a.legislature2
4091
- ), T = a.etat;
4092
- if (T === void 0)
4093
- return p.ensureDirSync(I), i.join(I, n);
4094
- const h = i.join(I, T);
4095
- let t = "000000" + (a.numero ?? a.numero2);
4096
- t = t.substring(t.length - 6);
4097
- const o = i.join(h, t.substring(0, 3));
4098
- return p.ensureDirSync(o), i.join(o, n);
4099
- }
4100
- function qs(e, n) {
4101
- return we(e, n, rs);
4102
- }
4103
- function Us(e, n) {
4104
- const s = as.exec(n);
4105
- Ne.notStrictEqual(
4106
- s,
4107
- null,
4108
- `Unexpected structure for reunion UID: ${n}`
4109
- );
4110
- const a = i.join(e, s[1]), y = i.join(a, s[2]), _ = i.join(y, s[3]), R = i.join(_, s[4]), I = i.join(R, s[5]);
4111
- let T = "000000000" + s[6];
4112
- T = T.substring(T.length - 9);
4113
- const h = i.join(I, T.substring(0, 3)), t = i.join(h, T.substring(3, 3));
4114
- return p.ensureDirSync(t), i.join(t, n);
4115
- }
4116
- function Qs(e, n) {
4117
- const s = us.exec(n);
4118
- Ne.notStrictEqual(
4119
- s,
4120
- null,
4121
- `Unexpected structure for scrutin UID: ${n}`
4122
- );
4123
- const a = i.join(e, s[1]), y = i.join(a, s[2]), _ = i.join(y, s[3]);
4124
- let R = "000000" + s[4];
4125
- R = R.substring(R.length - 6);
4126
- const I = i.join(_, R.substring(0, 3));
4127
- return p.ensureDirSync(I), i.join(I, n);
4128
- }
4129
- function Bs(e, n) {
4130
- return we(e, n, ps);
4131
- }
4132
- function Xs(e, n) {
4133
- const s = ls.exec(n);
4134
- Ne.notStrictEqual(
4135
- s,
4136
- null,
4137
- `Unexpected structure for object with UID: ${n}`
4138
- );
4139
- const a = i.join(e, s[2]), y = i.join(a, s[3]), _ = i.join(y, s[4]), R = i.join(_, s[5]);
4140
- let I = "000000000" + s[7];
4141
- I = I.substring(I.length - 9);
4142
- const T = i.join(R, I.substring(0, 3)), h = i.join(T, I.substring(3, 3));
4143
- return p.ensureDirSync(h), i.join(h, n);
4144
- }
4145
- function we(e, n, s) {
4146
- const a = s.exec(n);
4147
- Ne.notStrictEqual(
4148
- a,
4149
- null,
4150
- `Unexpected structure for object with UID: ${n}`
4151
- );
4152
- const y = i.join(e, a[1]), _ = i.join(y, a[2]);
4153
- let R = "000000" + a[3];
4154
- R = R.substring(R.length - 6);
4155
- const I = i.join(_, R.substring(0, 3));
4156
- return p.ensureDirSync(I), i.join(I, n);
4157
- }
4158
- export {
4159
- Is as $,
4160
- bn as A,
4161
- Hn as B,
4162
- Be as C,
4163
- es as D,
4164
- an as E,
4165
- He as F,
4166
- Zn as G,
4167
- Bn as H,
4168
- Jn as I,
4169
- qn as J,
4170
- $n as K,
4171
- f as L,
4172
- En as M,
4173
- un as N,
4174
- Un as O,
4175
- ke as P,
4176
- jn as Q,
4177
- en as R,
4178
- Cn as S,
4179
- We as T,
4180
- Gn as U,
4181
- Ln as V,
4182
- Xn as W,
4183
- Qn as X,
4184
- Es as Y,
4185
- _s as Z,
4186
- Rs as _,
4187
- Xe as a,
4188
- Ps as a0,
4189
- Cs as a1,
4190
- Ts as a2,
4191
- Ms as a3,
4192
- hs as a4,
4193
- xs as a5,
4194
- Vs as a6,
4195
- Fs as a7,
4196
- Ls as a8,
4197
- Js as a9,
4198
- $s as aa,
4199
- qs as ab,
4200
- Us as ac,
4201
- Qs as ad,
4202
- Bs as ae,
4203
- Xs as af,
4204
- w as ag,
4205
- k as ah,
4206
- ze as b,
4207
- Ye as c,
4208
- Ze as d,
4209
- Ke as e,
4210
- cn as f,
4211
- dn as g,
4212
- rn as h,
4213
- mn as i,
4214
- ln as j,
4215
- on as k,
4216
- pn as l,
4217
- fn as m,
4218
- Rn as n,
4219
- Mn as o,
4220
- js as p,
4221
- vn as q,
4222
- hn as r,
4223
- gn as s,
4224
- In as t,
4225
- On as u,
4226
- Dn as v,
4227
- Tn as w,
4228
- Pn as x,
4229
- _n as y,
4230
- Nn as z
4231
- };