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