@tricoteuses/assemblee 3.8.4 → 3.8.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/lib/{amendements-BYKlEcWb.js → amendements-BtCdrXW8.js} +36 -33
- package/lib/{amendements-CvlD2dI4.js → amendements-DfZse75q.js} +924 -672
- package/lib/amendements-xiii.d.ts +56 -0
- package/lib/amendements-xiii.test.d.ts +1 -0
- package/lib/browser-Dl6SgoZX.js +8164 -0
- package/lib/cleaners/amendements-xiv.test.d.ts +1 -0
- package/lib/cleaners/amendements.d.ts +18 -1
- package/lib/cleaners.js +3 -3
- package/lib/index.d.ts +5 -2
- package/lib/index.js +596 -99
- package/lib/inserters.d.ts +2 -2
- package/lib/{loaders-BNXs79lC.js → loaders-Dd8i-E7o.js} +11 -2
- package/lib/loaders.js +1 -1
- package/lib/open_data/artifacts.d.ts +12 -0
- package/lib/parsers.js +359 -8521
- package/lib/schemas/clean/amendements-xiii.d.ts +579 -0
- package/lib/schemas/clean/amendements.d.ts +502 -11
- package/lib/schemas/enriched/amendements.d.ts +6 -6
- package/lib/schemas/raw/amendements-xiii.d.ts +754 -0
- package/lib/schemas/raw/amendements-xiv.test.d.ts +1 -0
- package/lib/schemas/raw/amendements.d.ts +1769 -2
- package/lib/schemas/raw/amendements.test.d.ts +1 -0
- package/lib/scripts/clean_reorganized_data.test.d.ts +1 -0
- package/lib/scripts/data-download.d.ts +132 -0
- package/lib/scripts/retrieve_amendements_xiii.d.ts +51 -0
- package/lib/scripts/retrieve_open_data.d.ts +39 -24
- package/lib/scripts/shared/amendements_xiv_stream.d.ts +29 -0
- package/lib/scripts/shared/amendements_xiv_stream.test.d.ts +1 -0
- package/lib/scripts/shared/cli_helpers.d.ts +20 -0
- package/lib/{scrutins-BUVxV-QV.js → scrutins-CLWnMYLE.js} +266 -266
- package/package.json +7 -7
package/lib/index.js
CHANGED
|
@@ -1,32 +1,35 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { $ as
|
|
1
|
+
import { t as e } from "./browser-Dl6SgoZX.js";
|
|
2
|
+
import { $ as t, A as n, At as r, B as i, C as a, D as o, Dt as s, E as c, Et as l, F as u, Ft as d, G as f, H as p, I as m, It as h, J as g, K as _, L as v, Lt as ee, M as y, Mt as b, N as x, Nt as te, O as S, Ot as C, P as w, Pt as T, Q as E, R as D, S as O, St as k, T as A, Tt as j, U as ne, V as re, W as ie, X as ae, Y as oe, Z as se, _ as ce, _t as le, a as ue, at as de, b as fe, c as pe, ct as me, d as he, dt as ge, et as _e, f as ve, ft as ye, g as be, gt as xe, h as Se, ht as Ce, i as we, it as Te, j as Ee, jt as De, k as Oe, kt as ke, l as Ae, lt as je, m as Me, mt as Ne, n as Pe, nt as Fe, o as Ie, ot as Le, p as Re, pt as ze, q as Be, r as Ve, rt as M, s as He, st as Ue, t as We, tt as N, u as Ge, ut as Ke, v as qe, vt as P, w as Je, x as Ye, xt as Xe, y as Ze, z as Qe } from "./amendements-DfZse75q.js";
|
|
3
|
+
import { $ as $e, $n as et, $r as tt, $t as nt, A as rt, An as it, Ar as at, At as ot, B as st, Bn as ct, Br as lt, Bt as ut, C as dt, Cn as ft, Cr as pt, Ct as mt, D as ht, Dn as gt, Dr as _t, Dt as vt, E as yt, En as bt, Er as xt, Et as St, F as Ct, Fn as wt, Fr as Tt, Ft as Et, G as Dt, Gn as Ot, Gr as kt, Gt as At, H as jt, Hn as Mt, Hr as Nt, Ht as Pt, I as Ft, In as It, Ir as Lt, It as Rt, J as zt, Jn as Bt, Jr as Vt, Jt as Ht, K as Ut, Kn as Wt, Kr as Gt, Kt, L as qt, Ln as Jt, Lr as Yt, Lt as Xt, M as Zt, Mn as Qt, Mr as $t, N as en, Nn as tn, Nr as nn, Nt as rn, On as an, Or as on, Ot as sn, P as cn, Pn as ln, Pr as un, Pt as dn, Qn as fn, Qr as pn, Qt as mn, R as hn, Rn as gn, Rr as _n, Rt as vn, S as yn, Sn as bn, Sr as xn, St as Sn, T as Cn, Tn as wn, Tr as Tn, Tt as En, U as Dn, Un as On, Ur as kn, V as An, Vn as jn, Vr as Mn, Vt as Nn, W as Pn, Wn as Fn, Wr as In, Wt as Ln, X as Rn, Xn as zn, Xr as Bn, Xt as Vn, Y as Hn, Yn as Un, Yr as Wn, Yt as Gn, Z as Kn, Zn as qn, Zr as Jn, Zt as Yn, _ as Xn, _n as Zn, _r as Qn, _t as $n, a as er, an as tr, ar as nr, at as rr, b as ir, bn as ar, br as or, bt as sr, c as cr, cn as lr, ct as ur, d as dr, dn as fr, dr as pr, dt as mr, ei as hr, en as gr, er as _r, et as vr, f as yr, fn as br, fr as xr, ft as Sr, g as Cr, gn as wr, gr as Tr, gt as Er, h as Dr, hn as Or, hr as kr, ht as Ar, i as jr, in as Mr, ir as Nr, it as Pr, j as Fr, jn as Ir, jr as Lr, jt as Rr, k as zr, kn as Br, kr as Vr, kt as Hr, lr as Ur, lt as Wr, m as Gr, mn as Kr, mr as qr, mt as Jr, n as Yr, ni as Xr, nn as Zr, nr as Qr, nt as $r, o as ei, on as ti, or as ni, ot as ri, p as ii, pn as ai, pr as oi, pt as si, q as ci, qn as li, qr as ui, qt as di, r as fi, rn as pi, rr as mi, rt as hi, s as gi, sn as _i, sr as vi, st as yi, t as bi, tn as xi, tt as Si, u as Ci, un as wi, ur as Ti, ut as Ei, v as Di, vn as Oi, vr as ki, vt as Ai, w as ji, wn as Mi, wr as Ni, wt as Pi, x as Fi, xn as Ii, xr as Li, xt as Ri, y as zi, yn as Bi, yr as Vi, yt as Hi, z as Ui, zn as Wi, zr as Gi, zt as Ki } from "./scrutins-CLWnMYLE.js";
|
|
4
|
+
import { t as F } from "./zod_errors-qS8sQ67W.js";
|
|
5
|
+
import { z as I } from "zod";
|
|
3
6
|
//#region src/api.ts
|
|
4
|
-
var
|
|
7
|
+
var qi = /* @__PURE__ */ function(e) {
|
|
5
8
|
return e.Amendements = "amendements", e;
|
|
6
|
-
}({}),
|
|
9
|
+
}({}), Ji = Object.values(qi), Yi = /* @__PURE__ */ function(e) {
|
|
7
10
|
return e.Acte_organe = "acte.organe", e.Acte_provenance = "acte.provenance", e.Acte_rapporteurs_acteur = "acte.rapporteurs.acteur", e.Acte_reunion = "acte.reunion", e.Acte_texteAdopte = "acte.texteAdopte", e.Acte_texteAssocie = "acte.texteAssocie", e.Acte_textesAssocies_texteAssocie = "acte.textesAssocies.texteAssocie", e.Acte_votes = "acte.votes", e.Acteur_mandats_organes = "acteur.mandats.organes", e.Amendement_signataires_auteur_acteur = "amendement.signataires.auteur.acteur", e.Amendement_signataires_auteur_auteurRapporteurOrgane = "amendement.signataires.auteur.auteurRapporteurOrgane", e.Amendement_signataires_auteur_gouvernement = "amendement.signataires.auteur.gouvernement", e.Amendement_signataires_auteur_groupePolitique = "amendement.signataires.auteur.groupePolitique", e.Amendement_signataires_cosignataires = "amendement.signataires.cosignataires", e.Amendement_texteLegislatif = "amendement.texteLegislatif", e.Document_auteurs_acteur_acteur = "document.auteurs.acteur.acteur", e.Document_auteurs_organe = "document.auteurs.organe", e.Document_dossier = "document.dossier", e.Dossier_initiateur_acteurs_acteur = "dossier.initiateur.acteurs.acteur", e.Dossier_initiateur_organe = "dossier.initiateur.organe", e.Organe_organeParent = "organe.organeParent", e.Organe_organePrecedent = "organe.organePrecedent", e.Reunion_demandeurs_acteurs_acteur = "reunion.demandeurs.acteurs.acteur", e.Reunion_demandeurs_organe_organe = "reunion.demandeurs.organe.organe", e.Reunion_organeReuni = "reunion.organeReuni", e.Reunion_participants_participantsInternes_acteur = "reunion.participants.participantsInternes.acteur", e.Scrutin_miseAuPoint = "scrutin.miseAuPoint", e.Scrutin_organe = "scrutin.organe", e.Scrutin_ventilationVotes_groupes_organe = "scrutin.ventilationVotes.groupes.organe", e;
|
|
8
|
-
}({}),
|
|
11
|
+
}({}), Xi = Object.values(Yi);
|
|
9
12
|
//#endregion
|
|
10
13
|
//#region src/strings.ts
|
|
11
|
-
function
|
|
14
|
+
function Zi(e) {
|
|
12
15
|
return e.charAt(0).toUpperCase() + e.slice(1);
|
|
13
16
|
}
|
|
14
|
-
function
|
|
17
|
+
function L(e) {
|
|
15
18
|
return e.charAt(0).toLowerCase() + e.slice(1);
|
|
16
19
|
}
|
|
17
20
|
//#endregion
|
|
18
21
|
//#region src/dossiers_legislatifs.ts
|
|
19
|
-
var
|
|
22
|
+
var Qi = /* @__PURE__ */ function(e) {
|
|
20
23
|
return e.Failure = "FAILURE", e.Success = "SUCCESS", e;
|
|
21
|
-
}({}),
|
|
24
|
+
}({}), $i = /* @__PURE__ */ function(e) {
|
|
22
25
|
return e.Failure = "FAILURE", e.InProgress = "IN_PROGRESS", e.Success = "SUCCESS", e;
|
|
23
26
|
}({});
|
|
24
|
-
function
|
|
27
|
+
function ea(e) {
|
|
25
28
|
if (e.actesLegislatifs !== void 0) {
|
|
26
|
-
for (let t of
|
|
29
|
+
for (let t of B(e.actesLegislatifs)) if (t.codeActe.match(/^AN.*-COM-FOND-SAISIE$/) !== null && t.organeRef !== void 0 && t.organeRef !== "PO211494") return t.organeRef;
|
|
27
30
|
}
|
|
28
31
|
}
|
|
29
|
-
function
|
|
32
|
+
function R(e) {
|
|
30
33
|
switch (e) {
|
|
31
34
|
case "Accord":
|
|
32
35
|
case "adopté":
|
|
@@ -54,27 +57,27 @@ function z(e) {
|
|
|
54
57
|
default: return "IN_PROGRESS";
|
|
55
58
|
}
|
|
56
59
|
}
|
|
57
|
-
function
|
|
60
|
+
function ta(e, t) {
|
|
58
61
|
let n = t[t.length - 1], r;
|
|
59
62
|
switch (n.xsiType) {
|
|
60
63
|
case "Adoption_Europe_Type": {
|
|
61
64
|
let e = n.statutAdoption.libelle;
|
|
62
65
|
return e === void 0 ? null : {
|
|
63
|
-
currentStatus:
|
|
64
|
-
label:
|
|
66
|
+
currentStatus: R(e),
|
|
67
|
+
label: L(e)
|
|
65
68
|
};
|
|
66
69
|
}
|
|
67
70
|
case "ConclusionEtapeCC_Type": {
|
|
68
71
|
let e = n.statutConclusion.libelle;
|
|
69
72
|
return e === void 0 ? null : {
|
|
70
|
-
currentStatus:
|
|
71
|
-
label:
|
|
73
|
+
currentStatus: R(e),
|
|
74
|
+
label: L(e)
|
|
72
75
|
};
|
|
73
76
|
}
|
|
74
77
|
case "Decision_Type": {
|
|
75
78
|
let t = n.statutConclusion.libelle;
|
|
76
79
|
if (t === void 0) return null;
|
|
77
|
-
let r =
|
|
80
|
+
let r = R(t), i;
|
|
78
81
|
switch (e.procedureParlementaire.code) {
|
|
79
82
|
case "PROCEDURE_PARLEMENTAIRE_2":
|
|
80
83
|
["rejeté", "rejetée"].includes(t) && e.actesLegislatifs !== void 0 && e.actesLegislatifs.length === 1 && (i = "FAILURE");
|
|
@@ -85,25 +88,25 @@ function B(e, t) {
|
|
|
85
88
|
return {
|
|
86
89
|
currentStatus: r,
|
|
87
90
|
finalStatus: i,
|
|
88
|
-
label:
|
|
91
|
+
label: L(t)
|
|
89
92
|
};
|
|
90
93
|
}
|
|
91
94
|
case "DecisionMotionCensure_Type": return r = n.decision.libelle, r === void 0 ? null : {
|
|
92
|
-
currentStatus:
|
|
95
|
+
currentStatus: R(r),
|
|
93
96
|
finalStatus: e.procedureParlementaire.code === "PROCEDURE_PARLEMENTAIRE_13" && r === "Motion rejeté(e)" ? "FAILURE" : "SUCCESS",
|
|
94
|
-
label:
|
|
97
|
+
label: L(r)
|
|
95
98
|
};
|
|
96
99
|
case "DecisionRecevabiliteBureau_Type": return r = n.decision.libelle, r === void 0 ? null : {
|
|
97
|
-
currentStatus:
|
|
98
|
-
label:
|
|
100
|
+
currentStatus: R(r),
|
|
101
|
+
label: L(r)
|
|
99
102
|
};
|
|
100
103
|
case "DeclarationGouvernement_Type": return r = n.typeDeclaration.libelle, r === void 0 ? null : {
|
|
101
|
-
currentStatus:
|
|
102
|
-
label:
|
|
104
|
+
currentStatus: R(r),
|
|
105
|
+
label: L(r)
|
|
103
106
|
};
|
|
104
107
|
case "DepotMotionCensure_Type": return r = n.typeMotionCensure.libelle, r === void 0 ? null : {
|
|
105
|
-
currentStatus:
|
|
106
|
-
label:
|
|
108
|
+
currentStatus: R(r),
|
|
109
|
+
label: L(r)
|
|
107
110
|
};
|
|
108
111
|
case "DepotRapport_Type": return [
|
|
109
112
|
"DossierCommissionEnquete_Type",
|
|
@@ -115,8 +118,8 @@ function B(e, t) {
|
|
|
115
118
|
label: "rapport déposé"
|
|
116
119
|
} : null;
|
|
117
120
|
case "MotionProcedure_Type": return r = n.typeMotion.libelle, r === void 0 ? null : {
|
|
118
|
-
currentStatus:
|
|
119
|
-
label:
|
|
121
|
+
currentStatus: R(r),
|
|
122
|
+
label: L(r)
|
|
120
123
|
};
|
|
121
124
|
case "Promulgation_Type": return {
|
|
122
125
|
currentStatus: "SUCCESS",
|
|
@@ -129,56 +132,56 @@ function B(e, t) {
|
|
|
129
132
|
label: "retiré"
|
|
130
133
|
};
|
|
131
134
|
case "SaisineConseilConstit_Type": return r = n.casSaisine.libelle, r === void 0 ? null : {
|
|
132
|
-
currentStatus:
|
|
133
|
-
label:
|
|
135
|
+
currentStatus: R(r),
|
|
136
|
+
label: L(r)
|
|
134
137
|
};
|
|
135
138
|
default: return null;
|
|
136
139
|
}
|
|
137
140
|
}
|
|
138
|
-
function
|
|
141
|
+
function z(e, t, n) {
|
|
139
142
|
if (n !== void 0) for (let r of [...n].reverse()) {
|
|
140
|
-
let n = r.actesLegislatifs ?
|
|
143
|
+
let n = r.actesLegislatifs ? z(e, [...t, r], r.actesLegislatifs) : ta(e, [...t, r]);
|
|
141
144
|
if (n !== null) return n;
|
|
142
145
|
}
|
|
143
146
|
return null;
|
|
144
147
|
}
|
|
145
|
-
function
|
|
146
|
-
let t =
|
|
148
|
+
function na(e) {
|
|
149
|
+
let t = z(e, [], e.actesLegislatifs);
|
|
147
150
|
return t === null ? {
|
|
148
151
|
currentStatus: "IN_PROGRESS",
|
|
149
152
|
label: "en cours"
|
|
150
153
|
} : t;
|
|
151
154
|
}
|
|
152
|
-
function*
|
|
153
|
-
for (let t of e) yield t, t.actesLegislatifs !== void 0 && (yield*
|
|
155
|
+
function* B(e) {
|
|
156
|
+
for (let t of e) yield t, t.actesLegislatifs !== void 0 && (yield* B(t.actesLegislatifs));
|
|
154
157
|
}
|
|
155
|
-
function*
|
|
158
|
+
function* ra(e) {
|
|
156
159
|
yield e;
|
|
157
|
-
for (let t of e.divisions ?? []) yield*
|
|
160
|
+
for (let t of e.divisions ?? []) yield* ra(t);
|
|
158
161
|
}
|
|
159
162
|
//#endregion
|
|
160
163
|
//#region src/inserters.ts
|
|
161
|
-
function
|
|
164
|
+
function ia(e, t, n) {
|
|
162
165
|
if (!n.has(e.uid)) {
|
|
163
166
|
if (n.add(e.uid), t.documentByUid !== void 0 && e.depotInitialLectureDefinitiveRef !== void 0) {
|
|
164
167
|
let r = t.documentByUid[e.depotInitialLectureDefinitiveRef];
|
|
165
|
-
r !== void 0 && (e.depotInitialLectureDefinitive = r,
|
|
168
|
+
r !== void 0 && (e.depotInitialLectureDefinitive = r, H(r, t, n));
|
|
166
169
|
}
|
|
167
170
|
if (t.organeByUid !== void 0 && e.organeRef !== void 0) {
|
|
168
171
|
let r = t.organeByUid[e.organeRef];
|
|
169
|
-
r !== void 0 && (e.organe = r,
|
|
172
|
+
r !== void 0 && (e.organe = r, W(r, t, n));
|
|
170
173
|
}
|
|
171
174
|
if (t.organeByUid !== void 0 && e.provenanceRef !== void 0) {
|
|
172
175
|
let r = t.organeByUid[e.provenanceRef];
|
|
173
|
-
r !== void 0 && (e.provenance = r,
|
|
176
|
+
r !== void 0 && (e.provenance = r, W(r, t, n));
|
|
174
177
|
}
|
|
175
178
|
if (t.acteurByUid !== void 0 && e.rapporteurs !== void 0) for (let r of e.rapporteurs) {
|
|
176
179
|
let e = t.acteurByUid[r.acteurRef];
|
|
177
|
-
e !== void 0 && (r.acteur = e,
|
|
180
|
+
e !== void 0 && (r.acteur = e, V(e, t, n));
|
|
178
181
|
}
|
|
179
182
|
if (t.reunionByUid !== void 0 && e.reunionRef !== void 0) {
|
|
180
183
|
let r = t.reunionByUid[e.reunionRef];
|
|
181
|
-
if (r !== void 0 && (e.reunion = r,
|
|
184
|
+
if (r !== void 0 && (e.reunion = r, sa(r, t, n), e.odjRef !== void 0)) {
|
|
182
185
|
let t = r.odj;
|
|
183
186
|
if (t !== void 0 && t.pointsOdj !== void 0) {
|
|
184
187
|
for (let n of t.pointsOdj) if (n.uid === e.odjRef) {
|
|
@@ -190,120 +193,120 @@ function W(e, t, n) {
|
|
|
190
193
|
}
|
|
191
194
|
if (t.documentByUid !== void 0 && e.texteAdopteRef !== void 0) {
|
|
192
195
|
let r = t.documentByUid[e.texteAdopteRef];
|
|
193
|
-
r !== void 0 && (e.texteAdopte = r,
|
|
196
|
+
r !== void 0 && (e.texteAdopte = r, H(r, t, n));
|
|
194
197
|
}
|
|
195
198
|
if (t.documentByUid !== void 0 && e.texteAssocieRef !== void 0) {
|
|
196
199
|
let r = t.documentByUid[e.texteAssocieRef];
|
|
197
|
-
r !== void 0 && (e.texteAssocie = r,
|
|
200
|
+
r !== void 0 && (e.texteAssocie = r, H(r, t, n));
|
|
198
201
|
}
|
|
199
202
|
if (t.documentByUid !== void 0 && e.textesAssocies !== void 0) for (let r of e.textesAssocies) {
|
|
200
203
|
let e = t.documentByUid[r.texteAssocieRef];
|
|
201
|
-
e !== void 0 && (r.texteAssocie = e,
|
|
204
|
+
e !== void 0 && (r.texteAssocie = e, H(e, t, n));
|
|
202
205
|
}
|
|
203
206
|
if (t.scrutinByUid !== void 0 && e.voteRefs !== void 0) {
|
|
204
207
|
let r = [];
|
|
205
208
|
for (let i of e.voteRefs) {
|
|
206
209
|
let e = t.scrutinByUid[i];
|
|
207
|
-
e !== void 0 && (r.push(e),
|
|
210
|
+
e !== void 0 && (r.push(e), ca(e, t, n));
|
|
208
211
|
}
|
|
209
212
|
e.votes = r;
|
|
210
213
|
}
|
|
211
|
-
for (let r of e.actesLegislatifs || [])
|
|
214
|
+
for (let r of e.actesLegislatifs || []) ia(r, t, n);
|
|
212
215
|
}
|
|
213
216
|
return e;
|
|
214
217
|
}
|
|
215
|
-
function
|
|
218
|
+
function V(e, t, n) {
|
|
216
219
|
if (!n.has(e.uid) && (n.add(e.uid), t.organeByUid !== void 0)) for (let r of e.mandats || []) {
|
|
217
220
|
let e = [];
|
|
218
221
|
for (let i of r.organesRefs) {
|
|
219
222
|
let r = t.organeByUid[i];
|
|
220
|
-
r !== void 0 && (e.push(r),
|
|
223
|
+
r !== void 0 && (e.push(r), W(r, t, n));
|
|
221
224
|
}
|
|
222
225
|
r.organes = e;
|
|
223
226
|
}
|
|
224
227
|
return e;
|
|
225
228
|
}
|
|
226
|
-
function
|
|
229
|
+
function aa(e, t, n) {
|
|
227
230
|
if (!n.has(e.uid)) {
|
|
228
231
|
n.add(e.uid);
|
|
229
232
|
let r = e.signataires, i = r.auteur;
|
|
230
233
|
if (t.acteurByUid !== void 0 && i.acteurRef !== void 0) {
|
|
231
234
|
let e = t.acteurByUid[i.acteurRef];
|
|
232
|
-
e !== void 0 && (i.acteur = e,
|
|
235
|
+
e !== void 0 && (i.acteur = e, V(e, t, n));
|
|
233
236
|
}
|
|
234
237
|
if (t.organeByUid !== void 0 && i.auteurRapporteurOrganeRef !== void 0) {
|
|
235
238
|
let e = t.organeByUid[i.auteurRapporteurOrganeRef];
|
|
236
|
-
e !== void 0 && (i.auteurRapporteurOrgane = e,
|
|
239
|
+
e !== void 0 && (i.auteurRapporteurOrgane = e, W(e, t, n));
|
|
237
240
|
}
|
|
238
241
|
if (t.organeByUid !== void 0 && i.gouvernementRef !== void 0) {
|
|
239
242
|
let e = t.organeByUid[i.gouvernementRef];
|
|
240
|
-
e !== void 0 && (i.gouvernement = e,
|
|
243
|
+
e !== void 0 && (i.gouvernement = e, W(e, t, n));
|
|
241
244
|
}
|
|
242
245
|
if (t.organeByUid !== void 0 && i.groupePolitiqueRef !== void 0) {
|
|
243
246
|
let e = t.organeByUid[i.groupePolitiqueRef];
|
|
244
|
-
e !== void 0 && (i.groupePolitique = e,
|
|
247
|
+
e !== void 0 && (i.groupePolitique = e, W(e, t, n));
|
|
245
248
|
}
|
|
246
249
|
if (t.acteurByUid !== void 0 && r.cosignatairesRefs !== void 0) {
|
|
247
250
|
let e = [];
|
|
248
251
|
for (let i of r.cosignatairesRefs || []) {
|
|
249
252
|
let r = t.acteurByUid[i];
|
|
250
|
-
r !== void 0 && (e.push(r),
|
|
253
|
+
r !== void 0 && (e.push(r), V(r, t, n));
|
|
251
254
|
}
|
|
252
255
|
r.cosignataires = e;
|
|
253
256
|
}
|
|
254
257
|
}
|
|
255
258
|
return e;
|
|
256
259
|
}
|
|
257
|
-
function
|
|
260
|
+
function oa(e, t, n) {
|
|
258
261
|
for (let r of e.auteurs) {
|
|
259
262
|
let e = r.acteur;
|
|
260
263
|
if (t.acteurByUid !== void 0 && e !== void 0) {
|
|
261
264
|
let r = t.acteurByUid[e.acteurRef];
|
|
262
|
-
r !== void 0 && (e.acteur = r,
|
|
265
|
+
r !== void 0 && (e.acteur = r, V(r, t, n));
|
|
263
266
|
}
|
|
264
267
|
if (t.organeByUid !== void 0 && r.organeRef !== void 0) {
|
|
265
268
|
let e = t.organeByUid[r.organeRef];
|
|
266
|
-
e !== void 0 && (r.organe = e,
|
|
269
|
+
e !== void 0 && (r.organe = e, W(e, t, n));
|
|
267
270
|
}
|
|
268
271
|
}
|
|
269
272
|
if (t.dossierByUid !== void 0) {
|
|
270
273
|
let r = t.dossierByUid[e.dossierRef];
|
|
271
|
-
r !== void 0 && (e.dossier = r,
|
|
274
|
+
r !== void 0 && (e.dossier = r, U(r, t, n));
|
|
272
275
|
}
|
|
273
|
-
for (let r of e.divisions || [])
|
|
276
|
+
for (let r of e.divisions || []) oa(r, t, n);
|
|
274
277
|
return e;
|
|
275
278
|
}
|
|
276
|
-
function
|
|
279
|
+
function H(e, t, n) {
|
|
277
280
|
if (!n.has(e.uid)) {
|
|
278
281
|
n.add(e.uid);
|
|
279
282
|
for (let r of e.auteurs) {
|
|
280
283
|
let e = r.acteur;
|
|
281
284
|
if (t.acteurByUid !== void 0 && e !== void 0) {
|
|
282
285
|
let r = t.acteurByUid[e.acteurRef];
|
|
283
|
-
r !== void 0 && (e.acteur = r,
|
|
286
|
+
r !== void 0 && (e.acteur = r, V(r, t, n));
|
|
284
287
|
}
|
|
285
288
|
if (t.organeByUid !== void 0 && r.organeRef !== void 0) {
|
|
286
289
|
let e = t.organeByUid[r.organeRef];
|
|
287
|
-
e !== void 0 && (r.organe = e,
|
|
290
|
+
e !== void 0 && (r.organe = e, W(e, t, n));
|
|
288
291
|
}
|
|
289
292
|
}
|
|
290
293
|
if (t.dossierByUid !== void 0) {
|
|
291
294
|
let r = t.dossierByUid[e.dossierRef];
|
|
292
|
-
r !== void 0 && (e.dossier = r,
|
|
295
|
+
r !== void 0 && (e.dossier = r, U(r, t, n));
|
|
293
296
|
}
|
|
294
|
-
for (let r of e.divisions || [])
|
|
297
|
+
for (let r of e.divisions || []) oa(r, t, n);
|
|
295
298
|
}
|
|
296
299
|
return e;
|
|
297
300
|
}
|
|
298
|
-
function
|
|
301
|
+
function U(e, t, n) {
|
|
299
302
|
if (!n.has(e.uid)) {
|
|
300
303
|
n.add(e.uid);
|
|
301
|
-
for (let r of e.actesLegislatifs ?? [])
|
|
304
|
+
for (let r of e.actesLegislatifs ?? []) ia(r, t, n);
|
|
302
305
|
let r = e.initiateur;
|
|
303
306
|
if (r !== void 0) {
|
|
304
307
|
if (t.acteurByUid !== void 0) for (let e of r.acteurs || []) {
|
|
305
308
|
let r = t.acteurByUid[e.acteurRef];
|
|
306
|
-
if (r !== void 0 && (e.acteur = r,
|
|
309
|
+
if (r !== void 0 && (e.acteur = r, V(r, t, n)), r !== void 0 && e.mandatRef !== void 0) {
|
|
307
310
|
for (let t of r.mandats || []) if (t.uid === e.mandatRef) {
|
|
308
311
|
e.mandat = t;
|
|
309
312
|
break;
|
|
@@ -312,62 +315,62 @@ function J(e, t, n) {
|
|
|
312
315
|
}
|
|
313
316
|
if (t.organeByUid !== void 0 && r.organeRef !== void 0) {
|
|
314
317
|
let e = t.organeByUid[r.organeRef];
|
|
315
|
-
e !== void 0 && (r.organe = e,
|
|
318
|
+
e !== void 0 && (r.organe = e, W(e, t, n));
|
|
316
319
|
}
|
|
317
320
|
}
|
|
318
321
|
}
|
|
319
322
|
return e;
|
|
320
323
|
}
|
|
321
|
-
function
|
|
324
|
+
function W(e, t, n) {
|
|
322
325
|
if (!n.has(e.uid)) {
|
|
323
326
|
if (n.add(e.uid), t.organeByUid !== void 0 && e.organeParentRef !== void 0) {
|
|
324
327
|
let r = t.organeByUid[e.organeParentRef];
|
|
325
|
-
r !== void 0 && (e.organeParent = r,
|
|
328
|
+
r !== void 0 && (e.organeParent = r, W(r, t, n));
|
|
326
329
|
}
|
|
327
330
|
if (t.organeByUid !== void 0 && e.organePrecedentRef !== void 0) {
|
|
328
331
|
let r = t.organeByUid[e.organePrecedentRef];
|
|
329
|
-
r !== void 0 && (e.organePrecedent = r,
|
|
332
|
+
r !== void 0 && (e.organePrecedent = r, W(r, t, n));
|
|
330
333
|
}
|
|
331
334
|
}
|
|
332
335
|
return e;
|
|
333
336
|
}
|
|
334
|
-
function
|
|
337
|
+
function sa(e, t, n) {
|
|
335
338
|
if (!n.has(e.uid)) {
|
|
336
339
|
n.add(e.uid);
|
|
337
340
|
let r = e.demandeurs;
|
|
338
341
|
if (r !== void 0) {
|
|
339
342
|
if (t.acteurByUid !== void 0) for (let e of r.acteurs || []) {
|
|
340
343
|
let r = t.acteurByUid[e.acteurRef];
|
|
341
|
-
r !== void 0 && (e.acteur = r,
|
|
344
|
+
r !== void 0 && (e.acteur = r, V(r, t, n));
|
|
342
345
|
}
|
|
343
346
|
if (t.organeByUid !== void 0) {
|
|
344
347
|
let e = r.organe;
|
|
345
348
|
if (e !== void 0) {
|
|
346
349
|
let r = t.organeByUid[e.organeRef];
|
|
347
|
-
r !== void 0 && (e.organe = r,
|
|
350
|
+
r !== void 0 && (e.organe = r, W(r, t, n));
|
|
348
351
|
}
|
|
349
352
|
}
|
|
350
353
|
}
|
|
351
354
|
if (t.organeByUid !== void 0 && e.organeReuniRef !== void 0) {
|
|
352
355
|
let r = t.organeByUid[e.organeReuniRef];
|
|
353
|
-
r !== void 0 && (e.organeReuni = r,
|
|
356
|
+
r !== void 0 && (e.organeReuni = r, W(r, t, n));
|
|
354
357
|
}
|
|
355
358
|
if (t.acteurByUid !== void 0) {
|
|
356
359
|
let r = e.participants;
|
|
357
360
|
if (r !== void 0) for (let e of r.participantsInternes || []) {
|
|
358
361
|
let r = t.acteurByUid[e.acteurRef];
|
|
359
|
-
r !== void 0 && (e.acteur = r,
|
|
362
|
+
r !== void 0 && (e.acteur = r, V(r, t, n));
|
|
360
363
|
}
|
|
361
364
|
}
|
|
362
365
|
}
|
|
363
366
|
return e;
|
|
364
367
|
}
|
|
365
|
-
function
|
|
368
|
+
function ca(e, t, n) {
|
|
366
369
|
return n.has(e.uid) || n.add(e.uid), e;
|
|
367
370
|
}
|
|
368
371
|
//#endregion
|
|
369
372
|
//#region src/organes.ts
|
|
370
|
-
function
|
|
373
|
+
function la(e) {
|
|
371
374
|
if (e == null) return "Organe inconnu";
|
|
372
375
|
switch (e.codeType) {
|
|
373
376
|
case "CMP": return "Commission mixte paritaire";
|
|
@@ -376,10 +379,396 @@ function Ei(e) {
|
|
|
376
379
|
}
|
|
377
380
|
}
|
|
378
381
|
//#endregion
|
|
382
|
+
//#region src/schemas/raw/amendements-xiii.ts
|
|
383
|
+
var G = me, ua = [
|
|
384
|
+
"",
|
|
385
|
+
"Adopté",
|
|
386
|
+
"Irrecevable 40C",
|
|
387
|
+
"Irrecevable 41C",
|
|
388
|
+
"Irrecevable 44C",
|
|
389
|
+
"Non renseigné",
|
|
390
|
+
"Non soutenu",
|
|
391
|
+
"Re",
|
|
392
|
+
"Rejeté",
|
|
393
|
+
"Retiré",
|
|
394
|
+
"Retiré avant séance",
|
|
395
|
+
"Tombe",
|
|
396
|
+
"Tombé"
|
|
397
|
+
], da = I.string(), fa = I.object({
|
|
398
|
+
mentionSecondeDeliberation: I.string(),
|
|
399
|
+
numeroPartiePLF: I.string(),
|
|
400
|
+
organeExamen: I.string().optional(),
|
|
401
|
+
refTexteLegislatif: I.string()
|
|
402
|
+
}), pa = I.object({
|
|
403
|
+
legislature: I.string(),
|
|
404
|
+
numero: I.string(),
|
|
405
|
+
numRect: I.string(),
|
|
406
|
+
saisine: fa
|
|
407
|
+
}), ma = I.object({
|
|
408
|
+
typeAuteur: G,
|
|
409
|
+
acteurRef: P().optional(),
|
|
410
|
+
groupePolitiqueRef: k().optional(),
|
|
411
|
+
organeRef: k().optional()
|
|
412
|
+
}), ha = I.object({
|
|
413
|
+
auteur: ma,
|
|
414
|
+
auteursNoms: I.array(I.string()),
|
|
415
|
+
cosignataires: I.object({ acteurRef: I.array(P()) }),
|
|
416
|
+
texteAffichable: I.string()
|
|
417
|
+
}), ga = I.object({
|
|
418
|
+
articleAdditionnel: I.string(),
|
|
419
|
+
articleDesignationCourte: I.string(),
|
|
420
|
+
avant_A_Apres: N,
|
|
421
|
+
chapitreAdditionnel: I.string(),
|
|
422
|
+
divisionRattachee: I.string(),
|
|
423
|
+
titre: I.string(),
|
|
424
|
+
type: M,
|
|
425
|
+
urlDivisionTexteVise: I.string().nullable()
|
|
426
|
+
}), _a = I.object({
|
|
427
|
+
alineaDesignation: I.string().nullable(),
|
|
428
|
+
avant_A_Apres: I.string().nullable(),
|
|
429
|
+
numero: I.string().nullable()
|
|
430
|
+
}), va = I.object({
|
|
431
|
+
codeEtat: I.string(),
|
|
432
|
+
libelleMission: I.string()
|
|
433
|
+
}), ya = I.object({
|
|
434
|
+
alinea: _a.nullable(),
|
|
435
|
+
division: ga,
|
|
436
|
+
missionVisee: va.nullable()
|
|
437
|
+
}), K = I.object({
|
|
438
|
+
montantNegatif: I.string(),
|
|
439
|
+
montantPositif: I.string()
|
|
440
|
+
}), ba = I.object({
|
|
441
|
+
libelle: I.string(),
|
|
442
|
+
montantNegatif: I.string(),
|
|
443
|
+
montantPositif: I.string()
|
|
444
|
+
}), xa = I.object({
|
|
445
|
+
libelle: I.string(),
|
|
446
|
+
montants: K,
|
|
447
|
+
lignesCredits: I.array(ba).optional()
|
|
448
|
+
}), Sa = I.object({
|
|
449
|
+
programmes: I.array(xa),
|
|
450
|
+
solde: I.string(),
|
|
451
|
+
totaux: K
|
|
452
|
+
}), Ca = I.union([I.object({
|
|
453
|
+
dispositif: I.string(),
|
|
454
|
+
exposeSommaire: I.string()
|
|
455
|
+
}), I.object({
|
|
456
|
+
dispositifAmdtCredit: Sa,
|
|
457
|
+
exposeSommaire: I.string()
|
|
458
|
+
})]), wa = I.object({
|
|
459
|
+
dateSaisie: I.string().nullable(),
|
|
460
|
+
dateSort: I.string().nullable(),
|
|
461
|
+
sortEnSeance: da
|
|
462
|
+
}), q = I.object({
|
|
463
|
+
uid: j(),
|
|
464
|
+
identifiant: pa,
|
|
465
|
+
serie: I.string(),
|
|
466
|
+
numeroLong: I.string(),
|
|
467
|
+
texteTitre: I.string(),
|
|
468
|
+
etapeTexte: I.string().optional(),
|
|
469
|
+
triAmendement: I.string().nullable(),
|
|
470
|
+
amendementParent: I.string().nullable(),
|
|
471
|
+
signataires: ha,
|
|
472
|
+
pointeurFragmentTexte: ya,
|
|
473
|
+
corps: Ca.optional(),
|
|
474
|
+
notice: I.string().optional(),
|
|
475
|
+
sort: wa,
|
|
476
|
+
dateDepot: I.string().nullable(),
|
|
477
|
+
code: I.object({
|
|
478
|
+
code: I.string(),
|
|
479
|
+
refCode: I.string()
|
|
480
|
+
}).optional(),
|
|
481
|
+
urlAmendement: I.string(),
|
|
482
|
+
urlDossier: I.string().nullable(),
|
|
483
|
+
urlPdf: I.string().nullable()
|
|
484
|
+
}), Ta = I.object({ amendement: Xe(q) }), Ea = I.object({
|
|
485
|
+
refTexteLegislatif: I.string(),
|
|
486
|
+
titre: I.string(),
|
|
487
|
+
amendements: Ta
|
|
488
|
+
}), Da = I.object({ textesEtAmendements: I.object({ texteleg: Xe(Ea) }) });
|
|
489
|
+
function Oa(e) {
|
|
490
|
+
let t = JSON.parse(e), n = q.safeParse(t);
|
|
491
|
+
if (!n.success) throw Error(F("AmendementXiiiRaw", n.error, t));
|
|
492
|
+
return n.data;
|
|
493
|
+
}
|
|
494
|
+
function ka(e) {
|
|
495
|
+
let t = JSON.parse(e), n = Da.safeParse(t);
|
|
496
|
+
if (!n.success) throw Error(F("AmendementsXiiiRaw", n.error, t));
|
|
497
|
+
return n.data;
|
|
498
|
+
}
|
|
499
|
+
var Aa = {
|
|
500
|
+
toAmendement: Oa,
|
|
501
|
+
toAmendements: ka
|
|
502
|
+
}, ja = "https://www.assemblee-nationale.fr";
|
|
503
|
+
function Ma(e) {
|
|
504
|
+
let t = new TextDecoder("iso-8859-1").decode(e.subarray(0, 2048)), n = /charset=["']?([A-Za-z0-9_-]+)/.exec(t)?.[1]?.toLowerCase();
|
|
505
|
+
if (n !== "utf-8" && n !== "utf8") return new TextDecoder("iso-8859-1").decode(e);
|
|
506
|
+
let r = new TextDecoder("utf-8").decode(e);
|
|
507
|
+
return r.includes("�") ? new TextDecoder("iso-8859-1").decode(e) : r;
|
|
508
|
+
}
|
|
509
|
+
function Na(e, t) {
|
|
510
|
+
return `${ja}/13/amendements/${e}/${t}.asp`;
|
|
511
|
+
}
|
|
512
|
+
function Pa(e, t) {
|
|
513
|
+
return `${ja}/13/pdf/amendements/${e}/${t}.pdf`;
|
|
514
|
+
}
|
|
515
|
+
function Fa(e, t = 0, n = 100) {
|
|
516
|
+
return `https://www2.assemblee-nationale.fr/recherche/archives_resultats_amendements?${new URLSearchParams({
|
|
517
|
+
legislature: "13",
|
|
518
|
+
numInit: e,
|
|
519
|
+
nbres: String(n),
|
|
520
|
+
offset: String(t)
|
|
521
|
+
})}`;
|
|
522
|
+
}
|
|
523
|
+
function J({ numero: e, serie: t, texte: n }) {
|
|
524
|
+
return `AMANR5L13B${n}${t}N${e}`;
|
|
525
|
+
}
|
|
526
|
+
function Y(e) {
|
|
527
|
+
return e.replace(/\u00a0/g, " ").replace(/\s+/g, " ").trim();
|
|
528
|
+
}
|
|
529
|
+
function Ia(e) {
|
|
530
|
+
let t = {};
|
|
531
|
+
return e("meta").each((n, r) => {
|
|
532
|
+
let i = e(r).attr("name");
|
|
533
|
+
i !== void 0 && (t[i.toUpperCase()] = Y(e(r).attr("content") ?? ""));
|
|
534
|
+
}), t;
|
|
535
|
+
}
|
|
536
|
+
function La(e) {
|
|
537
|
+
let t = /^(\d{2})\/(\d{2})\/(\d{4})$/.exec(e.trim());
|
|
538
|
+
return t === null ? null : `${t[3]}-${t[2]}-${t[1]}`;
|
|
539
|
+
}
|
|
540
|
+
function Ra(e, t) {
|
|
541
|
+
let n = e.padStart(4, "0"), r = t.startsWith(n) ? t.slice(n.length) : t.startsWith(e) ? t.slice(e.length) : t, i = (/^[A-Za-z]*/.exec(r)?.[0] ?? "").toUpperCase();
|
|
542
|
+
return {
|
|
543
|
+
numero: r.slice(i.length).replace(/^0+(?=\d)/, ""),
|
|
544
|
+
serie: i
|
|
545
|
+
};
|
|
546
|
+
}
|
|
547
|
+
function za(e, t, n) {
|
|
548
|
+
let r = Y(e), i = /^avant\b/i.test(r), a = /^apr[èe]s\b/i.test(r), o = /^annexe/i.test(r) ? "ANNEXE" : /^chapitre/i.test(r) ? "CHAPITRE" : /^titre/i.test(r) ? "TITRE" : "ARTICLE", s = Y(t) || (/\bpremier\b/i.test(r) || /\bunique\b/i.test(r) ? "1" : /(\d+)/.exec(r)?.[1] ?? ""), c = r.replace(/^Après l['’]article\b/i, "APRÈS L'ART.").replace(/^Après l['’]art\./i, "APRÈS L'ART.").replace(/^Avant l['’]article\b/i, "AVANT L'ART.").replace(/^Avant l['’]art\./i, "AVANT L'ART.").replace(/^Après\b/i, "APRÈS").replace(/^Avant\b/i, "AVANT").replace(/\barticle\b/gi, "ART.").replace(/\s+/g, " ").toUpperCase();
|
|
549
|
+
return {
|
|
550
|
+
articleAdditionnel: /ARTICLE ADDITIONNEL/i.test(n) ? "1" : "0",
|
|
551
|
+
articleDesignationCourte: c,
|
|
552
|
+
avantAApres: i ? "Avant" : a ? "Apres" : "A",
|
|
553
|
+
chapitreAdditionnel: /CHAPITRE ADDITIONNEL/i.test(n) ? "1" : "0",
|
|
554
|
+
divisionRattachee: c,
|
|
555
|
+
numero: s,
|
|
556
|
+
titre: r,
|
|
557
|
+
type: o
|
|
558
|
+
};
|
|
559
|
+
}
|
|
560
|
+
function Ba(e, t) {
|
|
561
|
+
let n = e("table").eq(t).find("tr").toArray(), r = [], i = null, a = null;
|
|
562
|
+
for (let t of n) {
|
|
563
|
+
let n = e(t).find("td").toArray();
|
|
564
|
+
if (n.length === 0) continue;
|
|
565
|
+
let o = n.map((t) => Y(e(t).text())), s = o[0] ?? "";
|
|
566
|
+
if (!(s === "" && o.slice(1).every((e) => e === "")) && !/^Programmes$/i.test(s)) {
|
|
567
|
+
if (/^TOTAUX$/i.test(s)) {
|
|
568
|
+
i = {
|
|
569
|
+
montantPositif: o[1] ?? "",
|
|
570
|
+
montantNegatif: o[2] ?? ""
|
|
571
|
+
};
|
|
572
|
+
continue;
|
|
573
|
+
}
|
|
574
|
+
if (/^SOLDE$/i.test(s)) {
|
|
575
|
+
a = o[1] ?? "";
|
|
576
|
+
continue;
|
|
577
|
+
}
|
|
578
|
+
if (n.length >= 3) {
|
|
579
|
+
let t = Y(e(n[0]).find("p").first().text()), i = e(n[0]).find("i").toArray(), a = Y(e(n[1]).find("p").first().text()), o = Y(e(n[2]).find("p").first().text()), s = i.map((t) => Y(e(t).text())).filter((e) => /^Dont titre 2/i.test(e)), c = Y(e(n[1]).find("i").first().text()), l = Y(e(n[2]).find("i").first().text()), u = {
|
|
580
|
+
libelle: t,
|
|
581
|
+
montants: {
|
|
582
|
+
montantNegatif: o,
|
|
583
|
+
montantPositif: a
|
|
584
|
+
}
|
|
585
|
+
};
|
|
586
|
+
s.length > 0 && (u.lignesCredits = [{
|
|
587
|
+
libelle: s.join(" "),
|
|
588
|
+
montantNegatif: l,
|
|
589
|
+
montantPositif: c
|
|
590
|
+
}]), r.push(u);
|
|
591
|
+
}
|
|
592
|
+
}
|
|
593
|
+
}
|
|
594
|
+
return r.length === 0 || i === null || a === null ? null : {
|
|
595
|
+
programmes: r,
|
|
596
|
+
solde: a,
|
|
597
|
+
totaux: i
|
|
598
|
+
};
|
|
599
|
+
}
|
|
600
|
+
function Va(e) {
|
|
601
|
+
let t = e("table").toArray();
|
|
602
|
+
for (let n = 0; n < t.length; n++) {
|
|
603
|
+
let t = e("table").eq(n).text();
|
|
604
|
+
if (/Programmes/.test(t) && /TOTAUX/.test(t) && /SOLDE/.test(t)) return n;
|
|
605
|
+
}
|
|
606
|
+
return null;
|
|
607
|
+
}
|
|
608
|
+
function Ha(t) {
|
|
609
|
+
let n = t.replace(/<br\s*\/?>/gi, "\n"), r = Y(e(`<div>${n}</div>`).root().text());
|
|
610
|
+
if (r === "") return {
|
|
611
|
+
auteursNoms: [],
|
|
612
|
+
groupe: null,
|
|
613
|
+
texteAffichable: ""
|
|
614
|
+
};
|
|
615
|
+
let i = /\bet les membres du groupe\s+(.+)$/i.exec(r), a = i?.[1]?.trim() ?? null;
|
|
616
|
+
return {
|
|
617
|
+
auteursNoms: (i ? r.slice(0, i.index) : r).replace(/\s+et\s+(?=M(?:me|\.)\s)/g, ", ").split(",").map((e) => Y(e.replace(/\bet\s*$/i, ""))).filter((e) => e !== ""),
|
|
618
|
+
groupe: a,
|
|
619
|
+
texteAffichable: r
|
|
620
|
+
};
|
|
621
|
+
}
|
|
622
|
+
function Ua(e) {
|
|
623
|
+
return /^le Gouvernement\b/i.test(e) ? "Gouvernement" : /rapporteur|rapporteure|au nom de la commission/i.test(e) ? "Rapporteur" : "Depute";
|
|
624
|
+
}
|
|
625
|
+
function Wa(t) {
|
|
626
|
+
let n = /<TITRE_INIT[^>]*>([\s\S]*?)<\/TITRE_INIT>/i.exec(t);
|
|
627
|
+
if (n !== null) return Y(e(`<div>${n[1]}</div>`).root().text());
|
|
628
|
+
let r = /<meta\s+name="TITRE_INIT"\s+content="([^"]*)"/i.exec(t);
|
|
629
|
+
return r === null ? "" : Y(e(`<div>${r[1]}</div>`).root().text());
|
|
630
|
+
}
|
|
631
|
+
function Ga(t, n) {
|
|
632
|
+
let r = e(t), i = Ia(r), a = new URL(n).pathname.replace(/^.*\//, "").replace(/\.asp$/, ""), o = Y(r("body").text()), s = Y(i.NUM_INIT || i.NUM_INITG || ""), c = Ra(s, a), l = Y((i.NUM_AMEND || i.NUM_AMENDG || "").replace(/rect\.?/i, "")) || c.numero, u = c.serie, d = /rect/i.test(i.NUM_AMENDG ?? "") || /rect/i.test(i.NUM_AMTXT ?? "") || /rect/i.test(Y(r("num_amend").first().text())), f = Y(i.NUM_PARTIE ?? "") || (/(Première|Seconde) partie/i.test(o) ? /Première partie/i.test(o) ? "I" : "II" : ""), p = r("dispositif").toArray().map((e) => r.html(e)).join("\n"), m = r("expose").toArray().map((e) => r.html(e)).join("\n"), h = Va(r), g = [r("dispositif").text(), r(".amddispotitre").toArray().map((e) => r(e).text()).join(" ")].join(" "), _ = za(i.DESIGNATION_ARTICLE ?? "", r("num_article").first().text(), g), v = Y(i.DESIGNATION_ALINEA ?? ""), ee = v === "" ? null : {
|
|
633
|
+
alineaDesignation: v,
|
|
634
|
+
avant_A_Apres: null,
|
|
635
|
+
numero: /(\d+)/.exec(v)?.[1] ?? null
|
|
636
|
+
}, y = r(".amddispotitre").toArray().map((e) => Y(r(e).text())), b = y.find((e) => /^Mission\b/i.test(e)) ?? null, x = y.find((e) => /^État\s+[A-Z]$/i.test(e)) ?? null, te = b === null ? null : {
|
|
637
|
+
codeEtat: x === null ? "" : x.split(/\s+/).pop() ?? "",
|
|
638
|
+
libelleMission: b.replace(/^Mission\s*/i, "").replace(/^"|"$/g, "")
|
|
639
|
+
}, S, C = h === null ? null : Ba(r, h);
|
|
640
|
+
C === null ? p !== "" && (S = {
|
|
641
|
+
dispositif: p,
|
|
642
|
+
exposeSommaire: m
|
|
643
|
+
}) : S = {
|
|
644
|
+
dispositifAmdtCredit: C,
|
|
645
|
+
exposeSommaire: m
|
|
646
|
+
};
|
|
647
|
+
let w = S === void 0 ? /(Cet amendement[^.]*irrecevable[^.]*\.)/i.exec(o)?.[1] ?? void 0 : void 0, T = Ha(r("auteurs").first().html() ?? i.AUTEURS ?? r(".presente").parent().html() ?? ""), E = Ua(T.texteAffichable || o.slice(0, 2e3)), D = Y(i.AUTEUR_ID ?? ""), O = Y(i.GROUPE_ID ?? ""), k = Y(i.COSIGNATAIRES_ID ?? ""), A = (() => {
|
|
648
|
+
let e = Y(i.AMEND_PARENT ?? "");
|
|
649
|
+
return e === "" ? /à l['’]amendement n°\s*(\d+)/i.exec(o)?.[1] ?? null : e.replace(/^0+(?=\d)/, "");
|
|
650
|
+
})(), j = Y(i.SORT_EN_SEANCE ?? "") || Y(r("#sort").text()) || "";
|
|
651
|
+
return {
|
|
652
|
+
uid: J({
|
|
653
|
+
numero: l,
|
|
654
|
+
serie: u,
|
|
655
|
+
texte: s
|
|
656
|
+
}),
|
|
657
|
+
identifiant: {
|
|
658
|
+
legislature: Y(i.LEGISLATURE ?? "13") || "13",
|
|
659
|
+
numero: l,
|
|
660
|
+
numRect: d ? "1" : "0",
|
|
661
|
+
saisine: {
|
|
662
|
+
mentionSecondeDeliberation: /seconde délibération/i.test(o) ? "1" : "0",
|
|
663
|
+
numeroPartiePLF: f,
|
|
664
|
+
refTexteLegislatif: s
|
|
665
|
+
}
|
|
666
|
+
},
|
|
667
|
+
serie: u,
|
|
668
|
+
numeroLong: `${f === "" ? "" : `${f}-`}${l}${d ? " Rect." : ""}`,
|
|
669
|
+
texteTitre: Wa(t),
|
|
670
|
+
...i.ETAPE === void 0 || i.ETAPE === "" ? {} : { etapeTexte: i.ETAPE },
|
|
671
|
+
triAmendement: Y(i.ORDRE_TEXTE ?? "") || null,
|
|
672
|
+
amendementParent: A === null ? null : J({
|
|
673
|
+
numero: A,
|
|
674
|
+
serie: u,
|
|
675
|
+
texte: s
|
|
676
|
+
}),
|
|
677
|
+
signataires: {
|
|
678
|
+
auteur: {
|
|
679
|
+
typeAuteur: E,
|
|
680
|
+
...E !== "Gouvernement" && /^\d+$/.test(D) ? { acteurRef: `PA${D}` } : {},
|
|
681
|
+
.../^\d+$/.test(O) ? { groupePolitiqueRef: `PO${O}` } : {}
|
|
682
|
+
},
|
|
683
|
+
auteursNoms: T.auteursNoms,
|
|
684
|
+
cosignataires: { acteurRef: k.split(";").map((e) => Y(e)).filter((e) => /^\d+$/.test(e)).map((e) => `PA${e}`) },
|
|
685
|
+
texteAffichable: T.texteAffichable
|
|
686
|
+
},
|
|
687
|
+
pointeurFragmentTexte: {
|
|
688
|
+
alinea: ee,
|
|
689
|
+
division: {
|
|
690
|
+
articleAdditionnel: _.articleAdditionnel,
|
|
691
|
+
articleDesignationCourte: _.articleDesignationCourte,
|
|
692
|
+
avant_A_Apres: _.avantAApres,
|
|
693
|
+
chapitreAdditionnel: _.chapitreAdditionnel,
|
|
694
|
+
divisionRattachee: _.divisionRattachee,
|
|
695
|
+
titre: _.titre,
|
|
696
|
+
type: _.type,
|
|
697
|
+
urlDivisionTexteVise: Y(i.URL_DIVISION ?? "") || null
|
|
698
|
+
},
|
|
699
|
+
missionVisee: te
|
|
700
|
+
},
|
|
701
|
+
...S === void 0 ? {} : { corps: S },
|
|
702
|
+
...w === void 0 ? {} : { notice: w },
|
|
703
|
+
sort: {
|
|
704
|
+
dateSaisie: null,
|
|
705
|
+
dateSort: La(Y(i.DATE_SORT ?? "")),
|
|
706
|
+
sortEnSeance: j
|
|
707
|
+
},
|
|
708
|
+
dateDepot: La(Y(i.DATE_BADAGE ?? "")),
|
|
709
|
+
...i.CODE === void 0 || i.CODE === "" ? {} : { code: {
|
|
710
|
+
code: i.CODE,
|
|
711
|
+
refCode: Y(i.REFCODE ?? "")
|
|
712
|
+
} },
|
|
713
|
+
urlAmendement: n,
|
|
714
|
+
urlDossier: Y(i.URL_DOSSIER ?? "") || null,
|
|
715
|
+
urlPdf: Pa(s, a)
|
|
716
|
+
};
|
|
717
|
+
}
|
|
718
|
+
function Ka(e) {
|
|
719
|
+
let { alinea: t, division: n, missionVisee: r } = e.pointeurFragmentTexte;
|
|
720
|
+
return {
|
|
721
|
+
uid: e.uid,
|
|
722
|
+
identifiant: e.identifiant,
|
|
723
|
+
serie: e.serie,
|
|
724
|
+
numeroLong: e.numeroLong,
|
|
725
|
+
texteTitre: e.texteTitre,
|
|
726
|
+
...e.etapeTexte === void 0 ? {} : { etapeTexte: e.etapeTexte },
|
|
727
|
+
...e.triAmendement === null ? {} : { triAmendement: e.triAmendement },
|
|
728
|
+
...e.amendementParent === null ? {} : { amendementParentRef: e.amendementParent },
|
|
729
|
+
signataires: {
|
|
730
|
+
auteur: e.signataires.auteur,
|
|
731
|
+
auteursNoms: e.signataires.auteursNoms,
|
|
732
|
+
cosignatairesRefs: e.signataires.cosignataires.acteurRef,
|
|
733
|
+
texteAffichable: e.signataires.texteAffichable
|
|
734
|
+
},
|
|
735
|
+
pointeurFragmentTexte: {
|
|
736
|
+
...t === null ? {} : { alinea: {
|
|
737
|
+
alineaDesignation: t.alineaDesignation ?? void 0,
|
|
738
|
+
avantAApres: t.avant_A_Apres ?? void 0,
|
|
739
|
+
numero: t.numero ?? void 0
|
|
740
|
+
} },
|
|
741
|
+
division: {
|
|
742
|
+
articleAdditionnel: n.articleAdditionnel,
|
|
743
|
+
articleDesignationCourte: n.articleDesignationCourte,
|
|
744
|
+
avantAApres: n.avant_A_Apres,
|
|
745
|
+
chapitreAdditionnel: n.chapitreAdditionnel,
|
|
746
|
+
divisionRattachee: n.divisionRattachee,
|
|
747
|
+
titre: n.titre,
|
|
748
|
+
type: n.type,
|
|
749
|
+
urlDivisionTexteVise: n.urlDivisionTexteVise
|
|
750
|
+
},
|
|
751
|
+
...r === null ? {} : { missionVisee: r }
|
|
752
|
+
},
|
|
753
|
+
...e.corps === void 0 ? {} : { corps: e.corps },
|
|
754
|
+
...e.notice === void 0 ? {} : { notice: e.notice },
|
|
755
|
+
sort: {
|
|
756
|
+
...e.sort.dateSaisie === null ? {} : { dateSaisie: e.sort.dateSaisie },
|
|
757
|
+
...e.sort.dateSort === null ? {} : { dateSort: e.sort.dateSort },
|
|
758
|
+
sortEnSeance: e.sort.sortEnSeance
|
|
759
|
+
},
|
|
760
|
+
...e.dateDepot === null ? {} : { dateDepot: e.dateDepot },
|
|
761
|
+
...e.code === void 0 ? {} : { code: e.code },
|
|
762
|
+
urlAmendement: e.urlAmendement,
|
|
763
|
+
...e.urlDossier === null ? {} : { urlDossier: e.urlDossier },
|
|
764
|
+
...e.urlPdf === null ? {} : { urlPdf: e.urlPdf }
|
|
765
|
+
};
|
|
766
|
+
}
|
|
767
|
+
//#endregion
|
|
379
768
|
//#region src/urls.ts
|
|
380
|
-
var
|
|
769
|
+
var qa = /* @__PURE__ */ function(e) {
|
|
381
770
|
return e.Html = "html", e.Pdf = "pdf", e.RawHtml = "raw-html", e;
|
|
382
|
-
}({}),
|
|
771
|
+
}({}), X = /^AMANR\d+L(?<legislature>\d+)PO\d+[A-Z]+(?<texteNumero>\d+)P\d+D\d+N(?<numero>\d+)$/, Ja = {
|
|
383
772
|
ACIN: {
|
|
384
773
|
directory: "projets",
|
|
385
774
|
prefix: "pl",
|
|
@@ -491,14 +880,14 @@ var Di = /* @__PURE__ */ function(e) {
|
|
|
491
880
|
suffix: "-a0"
|
|
492
881
|
}
|
|
493
882
|
};
|
|
494
|
-
function
|
|
883
|
+
function Ya(e) {
|
|
495
884
|
switch (e) {
|
|
496
885
|
case "html": return ".asp";
|
|
497
886
|
case "pdf": return ".pdf";
|
|
498
887
|
case "raw-html": return ".asp";
|
|
499
888
|
}
|
|
500
889
|
}
|
|
501
|
-
function*
|
|
890
|
+
function* Xa(e, t = void 0, n = !1) {
|
|
502
891
|
if (t === void 0 || t === "raw-html") {
|
|
503
892
|
yield {
|
|
504
893
|
format: "raw-html",
|
|
@@ -509,7 +898,7 @@ function* Ai(e, t = void 0, n = !1) {
|
|
|
509
898
|
type: "dyn-docs",
|
|
510
899
|
url: `https://www.assemblee-nationale.fr/dyn/docs/${e.uid}.raw`
|
|
511
900
|
};
|
|
512
|
-
let t =
|
|
901
|
+
let t = Z(e, "raw-html", n);
|
|
513
902
|
t !== null && (yield {
|
|
514
903
|
format: "raw-html",
|
|
515
904
|
type: t.directory.replaceAll("/", "-"),
|
|
@@ -517,7 +906,7 @@ function* Ai(e, t = void 0, n = !1) {
|
|
|
517
906
|
});
|
|
518
907
|
}
|
|
519
908
|
if (t === void 0 || t === "html") {
|
|
520
|
-
let t =
|
|
909
|
+
let t = Z(e, "html", n);
|
|
521
910
|
t !== null && (yield {
|
|
522
911
|
format: "html",
|
|
523
912
|
type: t.directory.replaceAll("/", "-"),
|
|
@@ -534,7 +923,7 @@ function* Ai(e, t = void 0, n = !1) {
|
|
|
534
923
|
type: "dyn-docs",
|
|
535
924
|
url: `https://www.assemblee-nationale.fr/dyn/docs/${e.uid}.pdf`
|
|
536
925
|
};
|
|
537
|
-
let t =
|
|
926
|
+
let t = Z(e, "pdf");
|
|
538
927
|
t !== null && (yield {
|
|
539
928
|
format: "pdf",
|
|
540
929
|
type: t.directory.replaceAll("/", "-"),
|
|
@@ -542,13 +931,13 @@ function* Ai(e, t = void 0, n = !1) {
|
|
|
542
931
|
});
|
|
543
932
|
}
|
|
544
933
|
}
|
|
545
|
-
function
|
|
546
|
-
let n =
|
|
934
|
+
function Za(e, t) {
|
|
935
|
+
let n = Z(e, t);
|
|
547
936
|
return n === null ? null : n.url;
|
|
548
937
|
}
|
|
549
|
-
function
|
|
550
|
-
if (t === "json" || t === "xml") return
|
|
551
|
-
let n = e.match(
|
|
938
|
+
function Qa(e, t) {
|
|
939
|
+
if (t === "json" || t === "xml") return X.test(e) ? `https://www.assemblee-nationale.fr/dyn/opendata/${e}.${t}` : null;
|
|
940
|
+
let n = e.match(X);
|
|
552
941
|
if (n?.groups === void 0) return null;
|
|
553
942
|
let { legislature: r, texteNumero: i, numero: a } = n.groups, o = `https://www.assemblee-nationale.fr/dyn/${Number.parseInt(r, 10)}/amendements/${i}/AN/${Number.parseInt(a, 10)}`;
|
|
554
943
|
switch (t) {
|
|
@@ -557,12 +946,12 @@ function Mi(e, t) {
|
|
|
557
946
|
case "rtf": return `${o}.${t}`;
|
|
558
947
|
}
|
|
559
948
|
}
|
|
560
|
-
function
|
|
949
|
+
function $a(e) {
|
|
561
950
|
let t = /^VTANR([0-9]+)L([0-9]+)V([0-9]+)$/.exec(e.uid);
|
|
562
951
|
return t === null ? (console.log(`Unable to generate URL from scrutin with unexpected UID: "${e.uid}"`), null) : `http://www2.assemblee-nationale.fr/scrutins/detail/(legislature)/${t[2]}/(num)/${t[3]}`;
|
|
563
952
|
}
|
|
564
|
-
function
|
|
565
|
-
let r =
|
|
953
|
+
function Z(e, t, n = !1) {
|
|
954
|
+
let r = Ya(t), i = /^(.{4})([ANS]*)(R[0-9])([LS]*)([0-9]*)([BTACP]*)(.*)$/.exec(e.uid);
|
|
566
955
|
if (i === null) return n && console.log(`Unable to generate URL from document or division with unexpected UID: "${e.uid}"`), null;
|
|
567
956
|
if (i[2] === "SN") return n && console.log(`Unable to generate URL for document or division in Sénat. UID: "${e.uid}"`), null;
|
|
568
957
|
let a = i[5], o = i[7];
|
|
@@ -576,7 +965,7 @@ function $(e, t, n = !1) {
|
|
|
576
965
|
TAP: "TADO"
|
|
577
966
|
}[i[6]] || i[1];
|
|
578
967
|
e.classification !== void 0 && e.classification.sousType !== void 0 && e.classification.sousType.code === "COMPA" && (o = o.replace(/-COMPA/, "-aCOMPA")), s == "AVCE" && (s = `AVCE${e.classification.famille?.classe.code}`);
|
|
579
|
-
let c =
|
|
968
|
+
let c = Ja[s];
|
|
580
969
|
if (c === void 0) return n && console.log(`Unable to generate URL from document or division of UID "${e.uid}" and type "${s}"`), null;
|
|
581
970
|
let l = t === "pdf" ? `pdf/${c.directory}` : c.directory;
|
|
582
971
|
return {
|
|
@@ -585,4 +974,112 @@ function $(e, t, n = !1) {
|
|
|
585
974
|
};
|
|
586
975
|
}
|
|
587
976
|
//#endregion
|
|
588
|
-
|
|
977
|
+
//#region src/schemas/clean/amendements-xiii.ts
|
|
978
|
+
var eo = I.object({
|
|
979
|
+
mentionSecondeDeliberation: I.string(),
|
|
980
|
+
numeroPartiePLF: I.string(),
|
|
981
|
+
organeExamen: I.string().optional(),
|
|
982
|
+
refTexteLegislatif: I.string()
|
|
983
|
+
}), to = I.object({
|
|
984
|
+
legislature: I.string(),
|
|
985
|
+
numero: I.string(),
|
|
986
|
+
numRect: I.string(),
|
|
987
|
+
saisine: eo
|
|
988
|
+
}), no = I.object({
|
|
989
|
+
typeAuteur: G,
|
|
990
|
+
acteurRef: P().optional(),
|
|
991
|
+
groupePolitiqueRef: k().optional(),
|
|
992
|
+
organeRef: k().optional()
|
|
993
|
+
}), ro = I.object({
|
|
994
|
+
auteur: no,
|
|
995
|
+
auteursNoms: I.array(I.string()),
|
|
996
|
+
cosignatairesRefs: I.array(P()),
|
|
997
|
+
texteAffichable: I.string()
|
|
998
|
+
}), io = I.object({
|
|
999
|
+
articleAdditionnel: I.string(),
|
|
1000
|
+
articleDesignationCourte: I.string(),
|
|
1001
|
+
avantAApres: N,
|
|
1002
|
+
chapitreAdditionnel: I.string(),
|
|
1003
|
+
divisionRattachee: I.string(),
|
|
1004
|
+
titre: I.string(),
|
|
1005
|
+
type: M,
|
|
1006
|
+
urlDivisionTexteVise: I.string().nullable()
|
|
1007
|
+
}), ao = I.object({
|
|
1008
|
+
alineaDesignation: I.string().optional(),
|
|
1009
|
+
avantAApres: I.string().optional(),
|
|
1010
|
+
numero: I.string().optional()
|
|
1011
|
+
}), oo = I.object({
|
|
1012
|
+
codeEtat: I.string(),
|
|
1013
|
+
libelleMission: I.string()
|
|
1014
|
+
}), so = I.object({
|
|
1015
|
+
alinea: ao.optional(),
|
|
1016
|
+
division: io,
|
|
1017
|
+
missionVisee: oo.optional()
|
|
1018
|
+
}), Q = I.object({
|
|
1019
|
+
montantNegatif: I.string(),
|
|
1020
|
+
montantPositif: I.string()
|
|
1021
|
+
}), co = I.object({
|
|
1022
|
+
libelle: I.string(),
|
|
1023
|
+
montantNegatif: I.string(),
|
|
1024
|
+
montantPositif: I.string()
|
|
1025
|
+
}), lo = I.object({
|
|
1026
|
+
libelle: I.string(),
|
|
1027
|
+
montants: Q,
|
|
1028
|
+
lignesCredits: I.array(co).optional()
|
|
1029
|
+
}), uo = I.object({
|
|
1030
|
+
programmes: I.array(lo),
|
|
1031
|
+
solde: I.string(),
|
|
1032
|
+
totaux: Q
|
|
1033
|
+
}), fo = I.union([I.object({
|
|
1034
|
+
dispositif: I.string(),
|
|
1035
|
+
exposeSommaire: I.string()
|
|
1036
|
+
}), I.object({
|
|
1037
|
+
dispositifAmdtCredit: uo,
|
|
1038
|
+
exposeSommaire: I.string()
|
|
1039
|
+
})]), po = I.object({
|
|
1040
|
+
dateSaisie: I.string().optional(),
|
|
1041
|
+
dateSort: I.string().optional(),
|
|
1042
|
+
sortEnSeance: I.enum(ua).or(I.string())
|
|
1043
|
+
}), $ = I.object({
|
|
1044
|
+
uid: j(),
|
|
1045
|
+
identifiant: to,
|
|
1046
|
+
serie: I.string(),
|
|
1047
|
+
numeroLong: I.string(),
|
|
1048
|
+
texteTitre: I.string(),
|
|
1049
|
+
etapeTexte: I.string().optional(),
|
|
1050
|
+
triAmendement: I.string().optional(),
|
|
1051
|
+
amendementParentRef: I.string().optional(),
|
|
1052
|
+
signataires: ro,
|
|
1053
|
+
pointeurFragmentTexte: so,
|
|
1054
|
+
corps: fo.optional(),
|
|
1055
|
+
notice: I.string().optional(),
|
|
1056
|
+
sort: po.optional(),
|
|
1057
|
+
dateDepot: I.string().optional(),
|
|
1058
|
+
code: I.object({
|
|
1059
|
+
code: I.string(),
|
|
1060
|
+
refCode: I.string()
|
|
1061
|
+
}).optional(),
|
|
1062
|
+
urlAmendement: I.string(),
|
|
1063
|
+
urlDossier: I.string().optional(),
|
|
1064
|
+
urlPdf: I.string().optional()
|
|
1065
|
+
}), mo = I.object({
|
|
1066
|
+
refTexteLegislatif: I.string(),
|
|
1067
|
+
titre: I.string(),
|
|
1068
|
+
amendements: I.array($)
|
|
1069
|
+
}), ho = I.object({ textesEtAmendements: I.object({ texteleg: I.array(mo) }) });
|
|
1070
|
+
function go(e) {
|
|
1071
|
+
let t = JSON.parse(e), n = $.safeParse(t);
|
|
1072
|
+
if (!n.success) throw Error(F("AmendementXiiiClean", n.error, t));
|
|
1073
|
+
return n.data;
|
|
1074
|
+
}
|
|
1075
|
+
function _o(e) {
|
|
1076
|
+
let t = JSON.parse(e), n = ho.safeParse(t);
|
|
1077
|
+
if (!n.success) throw Error(F("AmendementsXiiiClean", n.error, t));
|
|
1078
|
+
return n.data;
|
|
1079
|
+
}
|
|
1080
|
+
var vo = {
|
|
1081
|
+
toAmendement: go,
|
|
1082
|
+
toAmendements: _o
|
|
1083
|
+
};
|
|
1084
|
+
//#endregion
|
|
1085
|
+
export { ae as AccordGouvernementDepotHorsDelaiSchema, Ft as ActeLegislatifSchema, lr as ActeurSchema, se as ActionSchema, wi as AdresseSchema, We as AlineaSchema, _a as AlineaXiiiRawSchema, ao as AlineaXiiiSchema, Pe as AmendementSchema, q as AmendementXiiiRawSchema, $ as AmendementXiiiSchema, E as AmendementXivRawSchema, Ve as AmendementXivSchema, Ta as AmendementsClassXiiiRawSchema, qt as AmendementsCommissionSchema, we as AmendementsConvert, ue as AmendementsSchema, hn as AmendementsSeanceSchema, vo as AmendementsXiiiCleanConvert, ho as AmendementsXiiiCleanSchema, Aa as AmendementsXiiiRawConvert, Da as AmendementsXiiiRawSchema, Ie as AmendementsXivCleanConvert, t as AmendementsXivRawConvert, _e as AmendementsXivRawSchema, Xn as AnalyseSchema, Ui as AuteurActeurSchema, He as AuteurAmendementSchema, Di as AuteurQuestionSchema, st as AuteurSchema, ma as AuteurXiiiRawSchema, no as AuteurXiiiSchema, pe as AvantAppelSchema, Jt as CausePositionVoteSchema, An as ChronoDocumentSchema, Ln as ChronoSchema, fr as CibleSchema, nn as CivSchema, jt as ClassificationSchema, zi as ClotureSchema, Dn as CoSignataireElementSchema, Pn as CoSignataireOrganeSchema, ni as CodeActeSchema, Fe as CodeEtatSchema, un as CodeNatureDepSchema, gn as CodeSortScrutinSchema, Tt as CodeTypeOrganeSchema, Wi as CodeTypeVoteSchema, br as CollaborateurSchema, ot as CompteRenduSchema, Ae as ContenuAmendementSchema, Ge as ContenuAuteurSchema, Rr as ContenuSchema, Dt as ContributionInternauteSchema, he as CorpsAmendementSchema, Ca as CorpsXiiiRawSchema, fo as CorpsXiiiSchema, ve as CorpsXivSchema, Ut as CorrectionSchema, ci as CycleDeVieDocumentSchema, At as CycleDeVieReunionSchema, Re as CycleDeVieSchema, Ur as DecisionSchema, bi as DecompteNominatifSchema, Yr as DecompteVoixSchema, Kt as DemandeurActeurSchema, di as DemandeurOrganeSchema, fi as DemandeurSchema, Ht as DemandeursSchema, Lt as DepNaisSchema, ai as DepartementSchema, Kr as DeportSchema, zt as DepotAmendementsSchema, Me as DiscussionSchema, be as DispositifAmdtCreditPLFRSchema, Se as DispositifAmdtCreditPLFSchema, Sa as DispositifAmdtCreditXiiiRawSchema, uo as DispositifAmdtCreditXiiiSchema, ce as DispositifAmdtCreditXivSchema, Hn as DivisionSchema, M as DivisionTypeSchema, ga as DivisionXiiiRawSchema, io as DivisionXiiiSchema, Rn as DocumentSchema, qa as DocumentUrlFormat, jr as DossierLegislatifObjetSchema, Kn as DossierParlementaireSchema, er as DysfonctionnementSchema, Or as ElectionSchema, Ze as EtatAmendementSchema, wr as EtatCivilSchema, fe as EtatDesTraitementsSchema, pr as EtatSchema, Te as EtatXivSchema, $e as EtudePlfSchema, qi as Facet, vr as FamCodeEtLibelleSchema, Yt as FamSocProEnumSchema, Si as FamilleSchema, rn as FinSeanceSchema, Qi as FinalStatus, Yi as Follow, xr as FormatReunionSchema, $r as FusionDossierSchema, ir as GroupeSchema, Gn as IdentPersonneAuditionneeSchema, Zn as IdentSchema, Fi as IdentifiantSchema, Vn as IdentifiantsSchema, Ye as IdentificationSchema, pa as IdentificationXiiiRawSchema, to as IdentificationXiiiSchema, O as IdentificationXivSchema, yn as IdentiteAuteurQuestionSchema, hi as ImprimerieSchema, dt as IndexationAnSchema, Pr as IndexationSchema, ji as InfoJoQuestionSchema, rr as InfoJoSchema, ri as InfoJoceSchema, Oi as InfoNaissanceSchema, Bi as InfosQualiteSchema, Yn as InfosReunionsInternationaleSchema, yi as InitiateurActeurSchema, ur as InitiateurSchema, Wr as LibelleActeSchema, _n as LibelleSchema, ct as LibelleSortScrutinSchema, jn as LibelleTypeVoteSchema, mn as LieuReunionSchema, Mt as LieuVoteSchema, Je as LigneCreditPLFRSchema, a as LigneCreditPLFSchema, ba as LigneCreditXiiiRawSchema, co as LigneCreditXiiiSchema, A as LigneCreditXivSchema, c as LoiReferenceSchema, ar as MandatSchema, Gi as MandatXsiTypeSchema, Ii as MandatureSchema, dn as MetadonneesSchema, Cn as MinAttribElementSchema, yt as MinAttribsSchema, ei as MiseAuPointSchema, Ei as MissionMinefiSchema, o as MissionViseeSchema, va as MissionViseeXiiiRawSchema, oo as MissionViseeXiiiSchema, S as MissionViseeXivSchema, On as ModePublicationDesVotesSchema, K as MontantXiiiRawSchema, Q as MontantXiiiSchema, Oe as MontantXivSchema, oi as NatureTravauxOdjSchema, mr as NoticeSchema, gi as ObjetVoteSchema, nt as OdjSchema, Et as OrateurElementSchema, Rt as OrateursSchema, ft as OrganeLieuSchema, bn as OrganeSchema, lt as OrganeXsiTypeSchema, gr as ParticipantInterneSchema, xi as ParticipantsSchema, Zr as PersonneAuditionneeSchema, pi as PersonneAuditionneeXsiTypeSchema, Mi as PhotoSchema, Sr as PlfBudgetTypeSchema, si as PlfCreditsSectionSchema, Jr as PlfLigneSchema, Ar as PlfMissionSchema, Er as PlfProgrammeSchema, Mr as PointOdjSchema, qr as PointOdjXsiTypeSchema, Xt as PointSchema, qe as PointeurFragmentTexteDivisionSchema, n as PointeurFragmentTexteSchema, ya as PointeurFragmentTexteXiiiRawSchema, so as PointeurFragmentTexteXiiiSchema, Ee as PointeurFragmentTexteXivSchema, Fn as PositionMajoritaireSchema, Mn as PositionPolitiqueSchema, kr as PresenceSchema, $n as ProcedureParlementaireSchema, Tr as ProcedureSchema, wn as ProfessionSchema, y as ProgrammePlfSchema, xa as ProgrammeXiiiRawSchema, lo as ProgrammeXiiiSchema, x as ProgrammeXivSchema, Qn as QuantiemeSchema, vn as QuantiemesSchema, ht as QuestionSchema, Qr as QuestionXsiTypeSchema, Ai as RapporteurSchema, Nt as RegimeSchema, bt as RegionSchema, kn as RegionTypeSchema, zr as RenouvellementSchema, rt as RenouvellementsSchema, w as RepresentationSchema, tr as ReunionSchema, ki as ReunionXsiTypeSchema, fa as SaisineXiiiRawSchema, eo as SaisineXiiiSchema, u as SaisineXivSchema, cr as ScrutinSchema, gt as SecretariatSchema, Fr as SignalementSchema, m as SignatairesSchema, ha as SignatairesXiiiRawSchema, ro as SignatairesXiiiSchema, an as SocProcInseeSchema, ut as SommaireElementSchema, Ki as SommaireSchema, da as SortEnSeanceXiiiSchema, de as SortEnSeanceXivSchema, Ci as SortScrutinSchema, wa as SortXiiiRawSchema, po as SortXiiiSchema, v as SortXivSchema, D as SousEtatAmendementSchema, Hi as SousTypeSchema, $i as StatusOnly, Qe as StatutRepresentationSchema, Br as SuppleantSchema, dr as SyntheseVoteSchema, sr as TexteAssocieSchema, Ri as TexteEuropeenSchema, Sn as TexteExterneAssocieSchema, i as TexteLegislatifSchema, mo as TexteLegislatifXiiiCleanSchema, Ea as TexteLegislatifXiiiRawSchema, Le as TexteLegislatifXivRawSchema, Zt as TexteQuestionSchema, Nn as TexteSchema, en as TextesQuestionSchema, cn as TextesReponseSchema, mt as ThemeSchema, Pi as ThemesSchema, En as TitreDossierSchema, Pt as TitreStructSchema, St as TitresSchema, re as TotalSchema, p as TotalXivSchema, Ue as TypeAuteurSchema, G as TypeAuteurXiiiSchema, me as TypeAuteurXivSchema, Ot as TypeMajoriteSchema, ne as TypeMimeSchema, Vi as TypePointOdjSchema, je as TypePositionSchema, mi as TypeQuestionSchema, or as TypeReunionSchema, yr as TypeVoteSchema, Li as UidXsiTypeSchema, Gr as VentilationVotesGroupeSchema, ii as VentilationVotesSchema, it as ViMoDeSchema, Dr as VotantSchema, Cr as VoteSchema, Ke as accordGouvernementDepotHorsDelaiOptions, vt as acteLegislatifXsiTypeOptions, ge as actionOptions, Ji as allFacets, Xi as allFollows, J as amendementXiiiUid, ie as avantAApresOptions, Zi as capitalizeFirstLetter, Wt as causePositionVoteOptions, In as civOptions, Ka as cleanAmendementXiii, vi as codeActeOptions, ye as codeEtatOptions, kt as codeNatureDepOptions, li as codeSortScrutinOptions, Gt as codeTypeOrganeOptions, Bt as codeTypeVoteOptions, ea as commissionFondUidFromDossier, Ir as compteRenduUidRegex, l as dateFromNullableDateOrIsoString, s as dateFromYearMonthDayTimezoneString, Ti as decisionOptions, Ma as decodeXiiiHtml, ui as depNaisOptions, C as displayDateFromLocalIsoString, ze as divisionTypeOptions, Qt as documentUidRegex, sn as documentXsiTypeOptions, Hr as dossierParlementaireXsiTypeOptions, tn as dossierUidRegex, f as etatAmendementCodeOptions, _ as etatAmendementLibelleOptions, ti as etatCycleDeVieOptions, xn as etatOptions, ke as existingDateToJson, Vt as famSocProEnumOptions, r as formatRelativeFrenchTime, pt as formatReunionOptions, De as frenchDateFormat, b as frenchDateSameYearShortFormat, te as frenchDateWithoutDayOfWeekFromDateOrString, T as frenchTimeFormat, d as frenchTimeFromDateOrString, V as insertActeurReferences, aa as insertAmendementReferences, H as insertDocumentReferences, U as insertDossierReferences, W as insertOrganeReferences, sa as insertReunionReferences, ca as insertScrutinReferences, Xa as iterDocumentOrDivisionUrls, Xr as legislatureOptions, Wn as libelleOptions, Un as libelleSortScrutinOptions, zn as libelleTypeVoteOptions, qn as lieuVoteOptions, h as localIso8601StringFromDate, Bn as mandatXsiTypeOptions, fn as modePublicationDesVotesOptions, Ni as natureTravauxOdjOptions, Jn as organeXsiTypeOptions, Ga as parseAmendementXiiiPage, ee as patchedDateToJson, _i as personneAuditionneeXsiTypeOptions, Tn as pointOdjXsiTypeOptions, et as positionMajoritaireOptions, pn as positionPolitiqueOptions, xt as presenceOptions, _t as procedureOptions, on as quantiemeOptions, ln as questionUidRegex, Nr as questionXsiTypeOptions, tt as regimeOptions, hr as regionTypeOptions, wt as reunionUidRegex, Vr as reunionXsiTypeOptions, It as scrutinUidRegex, la as shortNameFromOrgane, Be as sortAmendementOptions, ua as sortEnSeanceXiiiOptions, Ne as sortEnSeanceXivOptions, ta as stateFromActePath, z as stateFromActes, na as stateFromDossier, R as statusFromCodierLibelle, Ce as typeAuteurOptions, xe as typeAuteurXivOptions, Ct as typeJoQuestionOptions, _r as typeMajoriteOptions, g as typeMimeNomOptions, oe as typeMimeTypeOptions, at as typePointOdjOptions, le as typePositionOptions, nr as typeQuestionOptions, Lr as typeReunionOptions, $t as uidXsiTypeOptions, L as uncapitalizeFirstLetter, Qa as urlFromAmendementUid, Za as urlFromDocument, $a as urlFromScrutin, B as walkActes, ra as walkDocumentAndDivisions, Pa as xiiiAmendementPdfUrl, Na as xiiiAmendementUrl, Fa as xiiiListeUrl };
|