@tricoteuses/assemblee 2.4.0 → 2.4.2
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/lib/file_systems-CzTtoLWb.js +33 -0
- package/lib/git.js +121 -0
- package/lib/index.d.ts +1 -0
- package/lib/index.js +229 -223
- package/lib/loaders.d.ts +10 -0
- package/lib/loaders.js +441 -425
- package/lib/numbers.d.ts +4 -0
- package/lib/scripts/retrieve_documents.d.ts +2 -1
- package/lib/scripts/shared/utils.d.ts +0 -1
- package/lib/{scrutins-DhX6h3KY.js → uids-DaRrTkI-.js} +100 -94
- package/lib/uids.d.ts +6 -0
- package/package.json +6 -1
package/lib/index.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { c as B, t as x, g as _, m as Q, a as s, b as X, d as V, e as z, f as J, h as Z, i as K, l as ee, j as te, k as ne, w as re, n as U, o as k, p as
|
|
2
|
-
import { C as O } from "./
|
|
3
|
-
import { n as mt, G as gt, b as pt, a as yt, c as ht, H as Rt, I as xt, D as Tt, o as Dt, p as wt, E as vt, F as bt, f as St, L as At, J as Et, K as Ot, O as Ct, U as Mt, M as _t, N as Pt, g as Lt, h as Nt, V as It, P as Bt, i as Ut, j as kt, q as Yt, r as
|
|
4
|
-
import { A as
|
|
1
|
+
import { c as B, t as x, g as _, m as Q, a as s, b as X, d as V, e as z, f as J, h as Z, i as K, l as ee, j as te, k as ne, w as re, n as U, o as k, p as ie, q as C } from "./parse-Ccs6wcUg.js";
|
|
2
|
+
import { C as O } from "./uids-DaRrTkI-.js";
|
|
3
|
+
import { n as mt, G as gt, b as pt, a as yt, c as ht, H as Rt, I as xt, D as Tt, o as Dt, p as wt, E as vt, F as bt, f as St, L as At, J as Et, K as Ot, O as Ct, U as Mt, M as _t, N as Pt, g as Lt, h as Nt, V as It, P as Bt, i as Ut, j as kt, q as Yt, r as qt, Q as Ft, R as jt, d as $t, k as Wt, S as Ht, s as Gt, t as Qt, u as Xt, v as Vt, w as zt, x as Jt, B as Zt, W as Kt, T as en, y as tn, e as nn, l as rn, A as on, m as an, z as sn, X as un, Y as cn, Z as fn, _ as dn, $ as ln, a0 as mn } from "./uids-DaRrTkI-.js";
|
|
4
|
+
import { A as pn, a as yn, C as hn, b as Rn, c as xn, D as Tn, E as Dn, d as wn, S as vn, T as bn, e as Sn, f as An, g as En } from "./amendements-40Z7OJLT.js";
|
|
5
5
|
var Y = /* @__PURE__ */ ((e) => (e.Amendements = "amendements", e))(Y || {});
|
|
6
6
|
const Qe = Object.values(Y);
|
|
7
|
-
var
|
|
8
|
-
const Xe = Object.values(
|
|
9
|
-
function
|
|
7
|
+
var q = /* @__PURE__ */ ((e) => (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))(q || {});
|
|
8
|
+
const Xe = Object.values(q);
|
|
9
|
+
function oe(e, ...t) {
|
|
10
10
|
const r = B.bind(
|
|
11
11
|
null,
|
|
12
12
|
t.find((n) => typeof n == "object")
|
|
@@ -18,18 +18,18 @@ function P(e, t) {
|
|
|
18
18
|
return r.setHours(0, 0, 0, 0), r;
|
|
19
19
|
}
|
|
20
20
|
function ae(e, t, r) {
|
|
21
|
-
const [n,
|
|
21
|
+
const [n, i] = oe(
|
|
22
22
|
r?.in,
|
|
23
23
|
e,
|
|
24
24
|
t
|
|
25
|
-
),
|
|
26
|
-
return Math.round((
|
|
25
|
+
), o = P(n), a = P(i), c = +o - _(o), u = +a - _(a);
|
|
26
|
+
return Math.round((c - u) / Q);
|
|
27
27
|
}
|
|
28
28
|
function se(e, t) {
|
|
29
29
|
const r = x(e, t?.in);
|
|
30
30
|
return r.setFullYear(r.getFullYear(), 0, 1), r.setHours(0, 0, 0, 0), r;
|
|
31
31
|
}
|
|
32
|
-
function
|
|
32
|
+
function ue(e, t) {
|
|
33
33
|
const r = x(e, t?.in);
|
|
34
34
|
return ae(r, se(r)) + 1;
|
|
35
35
|
}
|
|
@@ -82,10 +82,10 @@ const y = {
|
|
|
82
82
|
},
|
|
83
83
|
// Fraction of second
|
|
84
84
|
S(e, t) {
|
|
85
|
-
const r = t.length, n = e.getMilliseconds(),
|
|
85
|
+
const r = t.length, n = e.getMilliseconds(), i = Math.trunc(
|
|
86
86
|
n * Math.pow(10, r - 3)
|
|
87
87
|
);
|
|
88
|
-
return s(
|
|
88
|
+
return s(i, t.length);
|
|
89
89
|
}
|
|
90
90
|
}, T = {
|
|
91
91
|
midnight: "midnight",
|
|
@@ -116,19 +116,19 @@ const y = {
|
|
|
116
116
|
// Year
|
|
117
117
|
y: function(e, t, r) {
|
|
118
118
|
if (t === "yo") {
|
|
119
|
-
const n = e.getFullYear(),
|
|
120
|
-
return r.ordinalNumber(
|
|
119
|
+
const n = e.getFullYear(), i = n > 0 ? n : 1 - n;
|
|
120
|
+
return r.ordinalNumber(i, { unit: "year" });
|
|
121
121
|
}
|
|
122
122
|
return y.y(e, t);
|
|
123
123
|
},
|
|
124
124
|
// Local week-numbering year
|
|
125
125
|
Y: function(e, t, r, n) {
|
|
126
|
-
const
|
|
126
|
+
const i = J(e, n), o = i > 0 ? i : 1 - i;
|
|
127
127
|
if (t === "YY") {
|
|
128
|
-
const a =
|
|
128
|
+
const a = o % 100;
|
|
129
129
|
return s(a, 2);
|
|
130
130
|
}
|
|
131
|
-
return t === "Yo" ? r.ordinalNumber(
|
|
131
|
+
return t === "Yo" ? r.ordinalNumber(o, { unit: "year" }) : s(o, t.length);
|
|
132
132
|
},
|
|
133
133
|
// ISO week-numbering year
|
|
134
134
|
R: function(e, t) {
|
|
@@ -277,8 +277,8 @@ const y = {
|
|
|
277
277
|
},
|
|
278
278
|
// Local week of year
|
|
279
279
|
w: function(e, t, r, n) {
|
|
280
|
-
const
|
|
281
|
-
return t === "wo" ? r.ordinalNumber(
|
|
280
|
+
const i = V(e, n);
|
|
281
|
+
return t === "wo" ? r.ordinalNumber(i, { unit: "week" }) : s(i, t.length);
|
|
282
282
|
},
|
|
283
283
|
// ISO week of year
|
|
284
284
|
I: function(e, t, r) {
|
|
@@ -291,7 +291,7 @@ const y = {
|
|
|
291
291
|
},
|
|
292
292
|
// Day of year
|
|
293
293
|
D: function(e, t, r) {
|
|
294
|
-
const n =
|
|
294
|
+
const n = ue(e);
|
|
295
295
|
return t === "Do" ? r.ordinalNumber(n, { unit: "dayOfYear" }) : s(n, t.length);
|
|
296
296
|
},
|
|
297
297
|
// Day of week
|
|
@@ -329,38 +329,38 @@ const y = {
|
|
|
329
329
|
},
|
|
330
330
|
// Local day of week
|
|
331
331
|
e: function(e, t, r, n) {
|
|
332
|
-
const
|
|
332
|
+
const i = e.getDay(), o = (i - n.weekStartsOn + 8) % 7 || 7;
|
|
333
333
|
switch (t) {
|
|
334
334
|
// Numerical value (Nth day of week with current locale or weekStartsOn)
|
|
335
335
|
case "e":
|
|
336
|
-
return String(
|
|
336
|
+
return String(o);
|
|
337
337
|
// Padded numerical value
|
|
338
338
|
case "ee":
|
|
339
|
-
return s(
|
|
339
|
+
return s(o, 2);
|
|
340
340
|
// 1st, 2nd, ..., 7th
|
|
341
341
|
case "eo":
|
|
342
|
-
return r.ordinalNumber(
|
|
342
|
+
return r.ordinalNumber(o, { unit: "day" });
|
|
343
343
|
case "eee":
|
|
344
|
-
return r.day(
|
|
344
|
+
return r.day(i, {
|
|
345
345
|
width: "abbreviated",
|
|
346
346
|
context: "formatting"
|
|
347
347
|
});
|
|
348
348
|
// T
|
|
349
349
|
case "eeeee":
|
|
350
|
-
return r.day(
|
|
350
|
+
return r.day(i, {
|
|
351
351
|
width: "narrow",
|
|
352
352
|
context: "formatting"
|
|
353
353
|
});
|
|
354
354
|
// Tu
|
|
355
355
|
case "eeeeee":
|
|
356
|
-
return r.day(
|
|
356
|
+
return r.day(i, {
|
|
357
357
|
width: "short",
|
|
358
358
|
context: "formatting"
|
|
359
359
|
});
|
|
360
360
|
// Tuesday
|
|
361
361
|
case "eeee":
|
|
362
362
|
default:
|
|
363
|
-
return r.day(
|
|
363
|
+
return r.day(i, {
|
|
364
364
|
width: "wide",
|
|
365
365
|
context: "formatting"
|
|
366
366
|
});
|
|
@@ -368,38 +368,38 @@ const y = {
|
|
|
368
368
|
},
|
|
369
369
|
// Stand-alone local day of week
|
|
370
370
|
c: function(e, t, r, n) {
|
|
371
|
-
const
|
|
371
|
+
const i = e.getDay(), o = (i - n.weekStartsOn + 8) % 7 || 7;
|
|
372
372
|
switch (t) {
|
|
373
373
|
// Numerical value (same as in `e`)
|
|
374
374
|
case "c":
|
|
375
|
-
return String(
|
|
375
|
+
return String(o);
|
|
376
376
|
// Padded numerical value
|
|
377
377
|
case "cc":
|
|
378
|
-
return s(
|
|
378
|
+
return s(o, t.length);
|
|
379
379
|
// 1st, 2nd, ..., 7th
|
|
380
380
|
case "co":
|
|
381
|
-
return r.ordinalNumber(
|
|
381
|
+
return r.ordinalNumber(o, { unit: "day" });
|
|
382
382
|
case "ccc":
|
|
383
|
-
return r.day(
|
|
383
|
+
return r.day(i, {
|
|
384
384
|
width: "abbreviated",
|
|
385
385
|
context: "standalone"
|
|
386
386
|
});
|
|
387
387
|
// T
|
|
388
388
|
case "ccccc":
|
|
389
|
-
return r.day(
|
|
389
|
+
return r.day(i, {
|
|
390
390
|
width: "narrow",
|
|
391
391
|
context: "standalone"
|
|
392
392
|
});
|
|
393
393
|
// Tu
|
|
394
394
|
case "cccccc":
|
|
395
|
-
return r.day(
|
|
395
|
+
return r.day(i, {
|
|
396
396
|
width: "short",
|
|
397
397
|
context: "standalone"
|
|
398
398
|
});
|
|
399
399
|
// Tuesday
|
|
400
400
|
case "cccc":
|
|
401
401
|
default:
|
|
402
|
-
return r.day(
|
|
402
|
+
return r.day(i, {
|
|
403
403
|
width: "wide",
|
|
404
404
|
context: "standalone"
|
|
405
405
|
});
|
|
@@ -407,17 +407,17 @@ const y = {
|
|
|
407
407
|
},
|
|
408
408
|
// ISO day of week
|
|
409
409
|
i: function(e, t, r) {
|
|
410
|
-
const n = e.getDay(),
|
|
410
|
+
const n = e.getDay(), i = n === 0 ? 7 : n;
|
|
411
411
|
switch (t) {
|
|
412
412
|
// 2
|
|
413
413
|
case "i":
|
|
414
|
-
return String(
|
|
414
|
+
return String(i);
|
|
415
415
|
// 02
|
|
416
416
|
case "ii":
|
|
417
|
-
return s(
|
|
417
|
+
return s(i, t.length);
|
|
418
418
|
// 2nd
|
|
419
419
|
case "io":
|
|
420
|
-
return r.ordinalNumber(
|
|
420
|
+
return r.ordinalNumber(i, { unit: "day" });
|
|
421
421
|
// Tue
|
|
422
422
|
case "iii":
|
|
423
423
|
return r.day(n, {
|
|
@@ -447,27 +447,27 @@ const y = {
|
|
|
447
447
|
},
|
|
448
448
|
// AM or PM
|
|
449
449
|
a: function(e, t, r) {
|
|
450
|
-
const
|
|
450
|
+
const i = e.getHours() / 12 >= 1 ? "pm" : "am";
|
|
451
451
|
switch (t) {
|
|
452
452
|
case "a":
|
|
453
453
|
case "aa":
|
|
454
|
-
return r.dayPeriod(
|
|
454
|
+
return r.dayPeriod(i, {
|
|
455
455
|
width: "abbreviated",
|
|
456
456
|
context: "formatting"
|
|
457
457
|
});
|
|
458
458
|
case "aaa":
|
|
459
|
-
return r.dayPeriod(
|
|
459
|
+
return r.dayPeriod(i, {
|
|
460
460
|
width: "abbreviated",
|
|
461
461
|
context: "formatting"
|
|
462
462
|
}).toLowerCase();
|
|
463
463
|
case "aaaaa":
|
|
464
|
-
return r.dayPeriod(
|
|
464
|
+
return r.dayPeriod(i, {
|
|
465
465
|
width: "narrow",
|
|
466
466
|
context: "formatting"
|
|
467
467
|
});
|
|
468
468
|
case "aaaa":
|
|
469
469
|
default:
|
|
470
|
-
return r.dayPeriod(
|
|
470
|
+
return r.dayPeriod(i, {
|
|
471
471
|
width: "wide",
|
|
472
472
|
context: "formatting"
|
|
473
473
|
});
|
|
@@ -476,27 +476,27 @@ const y = {
|
|
|
476
476
|
// AM, PM, midnight, noon
|
|
477
477
|
b: function(e, t, r) {
|
|
478
478
|
const n = e.getHours();
|
|
479
|
-
let
|
|
480
|
-
switch (n === 12 ?
|
|
479
|
+
let i;
|
|
480
|
+
switch (n === 12 ? i = T.noon : n === 0 ? i = T.midnight : i = n / 12 >= 1 ? "pm" : "am", t) {
|
|
481
481
|
case "b":
|
|
482
482
|
case "bb":
|
|
483
|
-
return r.dayPeriod(
|
|
483
|
+
return r.dayPeriod(i, {
|
|
484
484
|
width: "abbreviated",
|
|
485
485
|
context: "formatting"
|
|
486
486
|
});
|
|
487
487
|
case "bbb":
|
|
488
|
-
return r.dayPeriod(
|
|
488
|
+
return r.dayPeriod(i, {
|
|
489
489
|
width: "abbreviated",
|
|
490
490
|
context: "formatting"
|
|
491
491
|
}).toLowerCase();
|
|
492
492
|
case "bbbbb":
|
|
493
|
-
return r.dayPeriod(
|
|
493
|
+
return r.dayPeriod(i, {
|
|
494
494
|
width: "narrow",
|
|
495
495
|
context: "formatting"
|
|
496
496
|
});
|
|
497
497
|
case "bbbb":
|
|
498
498
|
default:
|
|
499
|
-
return r.dayPeriod(
|
|
499
|
+
return r.dayPeriod(i, {
|
|
500
500
|
width: "wide",
|
|
501
501
|
context: "formatting"
|
|
502
502
|
});
|
|
@@ -505,23 +505,23 @@ const y = {
|
|
|
505
505
|
// in the morning, in the afternoon, in the evening, at night
|
|
506
506
|
B: function(e, t, r) {
|
|
507
507
|
const n = e.getHours();
|
|
508
|
-
let
|
|
509
|
-
switch (n >= 17 ?
|
|
508
|
+
let i;
|
|
509
|
+
switch (n >= 17 ? i = T.evening : n >= 12 ? i = T.afternoon : n >= 4 ? i = T.morning : i = T.night, t) {
|
|
510
510
|
case "B":
|
|
511
511
|
case "BB":
|
|
512
512
|
case "BBB":
|
|
513
|
-
return r.dayPeriod(
|
|
513
|
+
return r.dayPeriod(i, {
|
|
514
514
|
width: "abbreviated",
|
|
515
515
|
context: "formatting"
|
|
516
516
|
});
|
|
517
517
|
case "BBBBB":
|
|
518
|
-
return r.dayPeriod(
|
|
518
|
+
return r.dayPeriod(i, {
|
|
519
519
|
width: "narrow",
|
|
520
520
|
context: "formatting"
|
|
521
521
|
});
|
|
522
522
|
case "BBBB":
|
|
523
523
|
default:
|
|
524
|
-
return r.dayPeriod(
|
|
524
|
+
return r.dayPeriod(i, {
|
|
525
525
|
width: "wide",
|
|
526
526
|
context: "formatting"
|
|
527
527
|
});
|
|
@@ -650,32 +650,32 @@ const y = {
|
|
|
650
650
|
}
|
|
651
651
|
};
|
|
652
652
|
function N(e, t = "") {
|
|
653
|
-
const r = e > 0 ? "-" : "+", n = Math.abs(e),
|
|
654
|
-
return
|
|
653
|
+
const r = e > 0 ? "-" : "+", n = Math.abs(e), i = Math.trunc(n / 60), o = n % 60;
|
|
654
|
+
return o === 0 ? r + String(i) : r + String(i) + t + s(o, 2);
|
|
655
655
|
}
|
|
656
656
|
function I(e, t) {
|
|
657
657
|
return e % 60 === 0 ? (e > 0 ? "-" : "+") + s(Math.abs(e) / 60, 2) : R(e, t);
|
|
658
658
|
}
|
|
659
659
|
function R(e, t = "") {
|
|
660
|
-
const r = e > 0 ? "-" : "+", n = Math.abs(e),
|
|
661
|
-
return r +
|
|
660
|
+
const r = e > 0 ? "-" : "+", n = Math.abs(e), i = s(Math.trunc(n / 60), 2), o = s(n % 60, 2);
|
|
661
|
+
return r + i + t + o;
|
|
662
662
|
}
|
|
663
|
-
function
|
|
663
|
+
function ce(e) {
|
|
664
664
|
return e instanceof Date || typeof e == "object" && Object.prototype.toString.call(e) === "[object Date]";
|
|
665
665
|
}
|
|
666
666
|
function fe(e) {
|
|
667
|
-
return !(!
|
|
667
|
+
return !(!ce(e) && typeof e != "number" || isNaN(+x(e)));
|
|
668
668
|
}
|
|
669
669
|
const de = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, le = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, me = /^'([^]*?)'?$/, ge = /''/g, pe = /[a-zA-Z]/;
|
|
670
670
|
function M(e, t, r) {
|
|
671
|
-
const n = Z(),
|
|
672
|
-
if (!fe(
|
|
671
|
+
const n = Z(), i = r?.locale ?? n.locale ?? K, o = r?.firstWeekContainsDate ?? r?.locale?.options?.firstWeekContainsDate ?? n.firstWeekContainsDate ?? n.locale?.options?.firstWeekContainsDate ?? 1, a = r?.weekStartsOn ?? r?.locale?.options?.weekStartsOn ?? n.weekStartsOn ?? n.locale?.options?.weekStartsOn ?? 0, c = x(e, r?.in);
|
|
672
|
+
if (!fe(c))
|
|
673
673
|
throw new RangeError("Invalid time value");
|
|
674
|
-
let
|
|
674
|
+
let u = t.match(le).map((d) => {
|
|
675
675
|
const l = d[0];
|
|
676
676
|
if (l === "p" || l === "P") {
|
|
677
677
|
const A = ee[l];
|
|
678
|
-
return A(d,
|
|
678
|
+
return A(d, i.formatLong);
|
|
679
679
|
}
|
|
680
680
|
return d;
|
|
681
681
|
}).join("").match(de).map((d) => {
|
|
@@ -692,18 +692,18 @@ function M(e, t, r) {
|
|
|
692
692
|
);
|
|
693
693
|
return { isToken: !1, value: d };
|
|
694
694
|
});
|
|
695
|
-
|
|
695
|
+
i.localize.preprocessor && (u = i.localize.preprocessor(c, u));
|
|
696
696
|
const f = {
|
|
697
|
-
firstWeekContainsDate:
|
|
697
|
+
firstWeekContainsDate: o,
|
|
698
698
|
weekStartsOn: a,
|
|
699
|
-
locale:
|
|
699
|
+
locale: i
|
|
700
700
|
};
|
|
701
|
-
return
|
|
701
|
+
return u.map((d) => {
|
|
702
702
|
if (!d.isToken) return d.value;
|
|
703
703
|
const l = d.value;
|
|
704
704
|
(!r?.useAdditionalWeekYearTokens && te(l) || !r?.useAdditionalDayOfYearTokens && ne(l)) && re(l, t, String(e));
|
|
705
705
|
const A = L[l[0]];
|
|
706
|
-
return A(
|
|
706
|
+
return A(c, l, i.localize, f);
|
|
707
707
|
}).join("");
|
|
708
708
|
}
|
|
709
709
|
function ye(e) {
|
|
@@ -711,21 +711,21 @@ function ye(e) {
|
|
|
711
711
|
return t ? t[1].replace(ge, "'") : e;
|
|
712
712
|
}
|
|
713
713
|
function S(e, t) {
|
|
714
|
-
const r = () => B(t?.in, NaN),
|
|
715
|
-
let
|
|
716
|
-
if (
|
|
717
|
-
const f = De(
|
|
718
|
-
|
|
714
|
+
const r = () => B(t?.in, NaN), i = Te(e);
|
|
715
|
+
let o;
|
|
716
|
+
if (i.date) {
|
|
717
|
+
const f = De(i.date, 2);
|
|
718
|
+
o = we(f.restDateString, f.year);
|
|
719
719
|
}
|
|
720
|
-
if (!
|
|
721
|
-
const a = +
|
|
722
|
-
let
|
|
723
|
-
if (
|
|
720
|
+
if (!o || isNaN(+o)) return r();
|
|
721
|
+
const a = +o;
|
|
722
|
+
let c = 0, u;
|
|
723
|
+
if (i.time && (c = ve(i.time), isNaN(c)))
|
|
724
724
|
return r();
|
|
725
|
-
if (
|
|
726
|
-
if (
|
|
725
|
+
if (i.timezone) {
|
|
726
|
+
if (u = be(i.timezone), isNaN(u)) return r();
|
|
727
727
|
} else {
|
|
728
|
-
const f = new Date(a +
|
|
728
|
+
const f = new Date(a + c), d = x(0, t?.in);
|
|
729
729
|
return d.setFullYear(
|
|
730
730
|
f.getUTCFullYear(),
|
|
731
731
|
f.getUTCMonth(),
|
|
@@ -737,7 +737,7 @@ function S(e, t) {
|
|
|
737
737
|
f.getUTCMilliseconds()
|
|
738
738
|
), d;
|
|
739
739
|
}
|
|
740
|
-
return x(a +
|
|
740
|
+
return x(a + c + u, t?.in);
|
|
741
741
|
}
|
|
742
742
|
const w = {
|
|
743
743
|
dateTimeDelimiter: /[T ]/,
|
|
@@ -753,8 +753,8 @@ function Te(e) {
|
|
|
753
753
|
t.date.length,
|
|
754
754
|
e.length
|
|
755
755
|
))), n) {
|
|
756
|
-
const
|
|
757
|
-
|
|
756
|
+
const i = w.timezone.exec(n);
|
|
757
|
+
i ? (t.time = n.replace(i[1], ""), t.timezone = i[1]) : t.time = n;
|
|
758
758
|
}
|
|
759
759
|
return t;
|
|
760
760
|
}
|
|
@@ -763,9 +763,9 @@ function De(e, t) {
|
|
|
763
763
|
"^(?:(\\d{4}|[+-]\\d{" + (4 + t) + "})|(\\d{2}|[+-]\\d{" + (2 + t) + "})$)"
|
|
764
764
|
), n = e.match(r);
|
|
765
765
|
if (!n) return { year: NaN, restDateString: "" };
|
|
766
|
-
const
|
|
766
|
+
const i = n[1] ? parseInt(n[1]) : null, o = n[2] ? parseInt(n[2]) : null;
|
|
767
767
|
return {
|
|
768
|
-
year:
|
|
768
|
+
year: o === null ? i : o * 100,
|
|
769
769
|
restDateString: e.slice((n[1] || n[2]).length)
|
|
770
770
|
};
|
|
771
771
|
}
|
|
@@ -773,12 +773,12 @@ function we(e, t) {
|
|
|
773
773
|
if (t === null) return /* @__PURE__ */ new Date(NaN);
|
|
774
774
|
const r = e.match(he);
|
|
775
775
|
if (!r) return /* @__PURE__ */ new Date(NaN);
|
|
776
|
-
const n = !!r[4],
|
|
776
|
+
const n = !!r[4], i = D(r[1]), o = D(r[2]) - 1, a = D(r[3]), c = D(r[4]), u = D(r[5]) - 1;
|
|
777
777
|
if (n)
|
|
778
|
-
return Ce(t,
|
|
778
|
+
return Ce(t, c, u) ? Se(t, c, u) : /* @__PURE__ */ new Date(NaN);
|
|
779
779
|
{
|
|
780
780
|
const f = /* @__PURE__ */ new Date(0);
|
|
781
|
-
return !Ee(t,
|
|
781
|
+
return !Ee(t, o, a) || !Oe(t, i) ? /* @__PURE__ */ new Date(NaN) : (f.setUTCFullYear(t, o, Math.max(i, a)), f);
|
|
782
782
|
}
|
|
783
783
|
}
|
|
784
784
|
function D(e) {
|
|
@@ -787,8 +787,8 @@ function D(e) {
|
|
|
787
787
|
function ve(e) {
|
|
788
788
|
const t = e.match(Re);
|
|
789
789
|
if (!t) return NaN;
|
|
790
|
-
const r = E(t[1]), n = E(t[2]),
|
|
791
|
-
return Me(r, n,
|
|
790
|
+
const r = E(t[1]), n = E(t[2]), i = E(t[3]);
|
|
791
|
+
return Me(r, n, i) ? r * U + n * k + i * 1e3 : NaN;
|
|
792
792
|
}
|
|
793
793
|
function E(e) {
|
|
794
794
|
return e && parseFloat(e.replace(",", ".")) || 0;
|
|
@@ -797,24 +797,24 @@ function be(e) {
|
|
|
797
797
|
if (e === "Z") return 0;
|
|
798
798
|
const t = e.match(xe);
|
|
799
799
|
if (!t) return 0;
|
|
800
|
-
const r = t[1] === "+" ? -1 : 1, n = parseInt(t[2]),
|
|
801
|
-
return _e(n,
|
|
800
|
+
const r = t[1] === "+" ? -1 : 1, n = parseInt(t[2]), i = t[3] && parseInt(t[3]) || 0;
|
|
801
|
+
return _e(n, i) ? r * (n * U + i * k) : NaN;
|
|
802
802
|
}
|
|
803
803
|
function Se(e, t, r) {
|
|
804
804
|
const n = /* @__PURE__ */ new Date(0);
|
|
805
805
|
n.setUTCFullYear(e, 0, 4);
|
|
806
|
-
const
|
|
807
|
-
return n.setUTCDate(n.getUTCDate() +
|
|
806
|
+
const i = n.getUTCDay() || 7, o = (t - 1) * 7 + r + 1 - i;
|
|
807
|
+
return n.setUTCDate(n.getUTCDate() + o), n;
|
|
808
808
|
}
|
|
809
809
|
const Ae = [31, null, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];
|
|
810
|
-
function
|
|
810
|
+
function F(e) {
|
|
811
811
|
return e % 400 === 0 || e % 4 === 0 && e % 100 !== 0;
|
|
812
812
|
}
|
|
813
813
|
function Ee(e, t, r) {
|
|
814
|
-
return t >= 0 && t <= 11 && r >= 1 && r <= (Ae[t] || (
|
|
814
|
+
return t >= 0 && t <= 11 && r >= 1 && r <= (Ae[t] || (F(e) ? 29 : 28));
|
|
815
815
|
}
|
|
816
816
|
function Oe(e, t) {
|
|
817
|
-
return t >= 1 && t <= (
|
|
817
|
+
return t >= 1 && t <= (F(e) ? 366 : 365);
|
|
818
818
|
}
|
|
819
819
|
function Ce(e, t, r) {
|
|
820
820
|
return t >= 1 && t <= 53 && r >= 0 && r <= 6;
|
|
@@ -827,10 +827,10 @@ function _e(e, t) {
|
|
|
827
827
|
}
|
|
828
828
|
const Pe = Date.prototype.toJSON, Le = function() {
|
|
829
829
|
try {
|
|
830
|
-
const e = this.getHours(), t = this.getMinutes(), r = this.getSeconds(), n = this.getMilliseconds(),
|
|
831
|
-
if (
|
|
830
|
+
const e = this.getHours(), t = this.getMinutes(), r = this.getSeconds(), n = this.getMilliseconds(), i = -(this.getTimezoneOffset() / 60);
|
|
831
|
+
if (i === 0.15 && e === 0 && t === 9 && r === 21 || e - i === 0 && t === 0 && r === 0 && n === 0)
|
|
832
832
|
return this.toISOString().split("T")[0];
|
|
833
|
-
const
|
|
833
|
+
const o = new Date(
|
|
834
834
|
this.getFullYear(),
|
|
835
835
|
this.getMonth(),
|
|
836
836
|
this.getDate(),
|
|
@@ -839,9 +839,9 @@ const Pe = Date.prototype.toJSON, Le = function() {
|
|
|
839
839
|
r,
|
|
840
840
|
n
|
|
841
841
|
);
|
|
842
|
-
|
|
843
|
-
const a =
|
|
844
|
-
return a +
|
|
842
|
+
o.setHours(this.getHours() + i);
|
|
843
|
+
const a = o.toISOString().replace(/(\.0+)?Z$/, ""), c = i >= 0 ? "+" : "-", u = Math.abs(i) < 10 ? "0" : "";
|
|
844
|
+
return a + c + u + Math.abs(i).toString().split(".")[0] + ":00";
|
|
845
845
|
} catch {
|
|
846
846
|
Date.prototype.toJSON = Pe;
|
|
847
847
|
const t = this.toJSON();
|
|
@@ -863,7 +863,7 @@ function ze(e, t) {
|
|
|
863
863
|
return e instanceof Date ? e : typeof e == "string" ? S(e) : t;
|
|
864
864
|
}
|
|
865
865
|
function Je(e) {
|
|
866
|
-
return
|
|
866
|
+
return ie(e, "yyyy-MM-ddXXX", /* @__PURE__ */ new Date());
|
|
867
867
|
}
|
|
868
868
|
function Ze(e) {
|
|
869
869
|
const t = S(e);
|
|
@@ -891,7 +891,7 @@ function g(e) {
|
|
|
891
891
|
return e.charAt(0).toLowerCase() + e.slice(1);
|
|
892
892
|
}
|
|
893
893
|
var Be = /* @__PURE__ */ ((e) => (e.Failure = "FAILURE", e.Success = "SUCCESS", e))(Be || {}), Ue = /* @__PURE__ */ ((e) => (e.Failure = "FAILURE", e.InProgress = "IN_PROGRESS", e.Success = "SUCCESS", e))(Ue || {});
|
|
894
|
-
function
|
|
894
|
+
function it(e) {
|
|
895
895
|
if (e.actesLegislatifs !== void 0) {
|
|
896
896
|
for (const t of $(e.actesLegislatifs))
|
|
897
897
|
if (t.codeActe.match(/^AN.*-COM-FOND-SAISIE$/) !== null && t.organeRef !== void 0 && t.organeRef !== "PO211494")
|
|
@@ -947,20 +947,20 @@ function ke(e, t) {
|
|
|
947
947
|
};
|
|
948
948
|
case "Decision_Type": {
|
|
949
949
|
n = r.statutConclusion.libelle;
|
|
950
|
-
let
|
|
950
|
+
let i = p(n), o;
|
|
951
951
|
switch (e.procedureParlementaire.code) {
|
|
952
952
|
case "PROCEDURE_PARLEMENTAIRE_2":
|
|
953
|
-
["rejeté", "rejetée"].includes(n) && e.actesLegislatifs !== void 0 && e.actesLegislatifs.length === 1 && (
|
|
953
|
+
["rejeté", "rejetée"].includes(n) && e.actesLegislatifs !== void 0 && e.actesLegislatifs.length === 1 && (o = "FAILURE");
|
|
954
954
|
break;
|
|
955
955
|
case "PROCEDURE_PARLEMENTAIRE_8":
|
|
956
956
|
// Résolution
|
|
957
957
|
case "PROCEDURE_PARLEMENTAIRE_22":
|
|
958
|
-
|
|
958
|
+
i === "SUCCESS" ? o = "SUCCESS" : i === "FAILURE" && (o = "FAILURE");
|
|
959
959
|
break;
|
|
960
960
|
}
|
|
961
961
|
return {
|
|
962
|
-
currentStatus:
|
|
963
|
-
finalStatus:
|
|
962
|
+
currentStatus: i,
|
|
963
|
+
finalStatus: o,
|
|
964
964
|
label: g(n)
|
|
965
965
|
};
|
|
966
966
|
}
|
|
@@ -1029,13 +1029,13 @@ function ke(e, t) {
|
|
|
1029
1029
|
function j(e, t, r) {
|
|
1030
1030
|
if (r !== void 0)
|
|
1031
1031
|
for (const n of [...r].reverse()) {
|
|
1032
|
-
const
|
|
1033
|
-
if (
|
|
1034
|
-
return
|
|
1032
|
+
const i = n.actesLegislatifs ? j(e, [...t, n], n.actesLegislatifs) : ke(e, [...t, n]);
|
|
1033
|
+
if (i !== null)
|
|
1034
|
+
return i;
|
|
1035
1035
|
}
|
|
1036
1036
|
return null;
|
|
1037
1037
|
}
|
|
1038
|
-
function
|
|
1038
|
+
function ot(e) {
|
|
1039
1039
|
const t = j(e, [], e.actesLegislatifs);
|
|
1040
1040
|
return t !== null ? t : {
|
|
1041
1041
|
currentStatus: "IN_PROGRESS",
|
|
@@ -1067,17 +1067,17 @@ function W(e, t, r) {
|
|
|
1067
1067
|
}
|
|
1068
1068
|
if (t.acteurByUid !== void 0 && e.rapporteurs !== void 0)
|
|
1069
1069
|
for (const n of e.rapporteurs) {
|
|
1070
|
-
const
|
|
1071
|
-
|
|
1070
|
+
const i = t.acteurByUid[n.acteurRef];
|
|
1071
|
+
i !== void 0 && (n.acteur = i, h(i, t, r));
|
|
1072
1072
|
}
|
|
1073
1073
|
if (t.reunionByUid !== void 0 && e.reunionRef !== void 0) {
|
|
1074
1074
|
const n = t.reunionByUid[e.reunionRef];
|
|
1075
|
-
if (n !== void 0 && (e.reunion = n,
|
|
1076
|
-
const
|
|
1077
|
-
if (
|
|
1078
|
-
for (const
|
|
1079
|
-
if (
|
|
1080
|
-
e.odj =
|
|
1075
|
+
if (n !== void 0 && (e.reunion = n, qe(n, t, r), e.odjRef !== void 0)) {
|
|
1076
|
+
const i = n.odj;
|
|
1077
|
+
if (i !== void 0 && i.pointsOdj !== void 0) {
|
|
1078
|
+
for (const o of i.pointsOdj)
|
|
1079
|
+
if (o.uid === e.odjRef) {
|
|
1080
|
+
e.odj = o;
|
|
1081
1081
|
break;
|
|
1082
1082
|
}
|
|
1083
1083
|
}
|
|
@@ -1093,14 +1093,14 @@ function W(e, t, r) {
|
|
|
1093
1093
|
}
|
|
1094
1094
|
if (t.documentByUid !== void 0 && e.textesAssocies !== void 0)
|
|
1095
1095
|
for (const n of e.textesAssocies) {
|
|
1096
|
-
const
|
|
1097
|
-
|
|
1096
|
+
const i = t.documentByUid[n.texteAssocieRef];
|
|
1097
|
+
i !== void 0 && (n.texteAssocie = i, v(i, t, r));
|
|
1098
1098
|
}
|
|
1099
1099
|
if (t.scrutinByUid !== void 0 && e.voteRefs !== void 0) {
|
|
1100
1100
|
const n = [];
|
|
1101
|
-
for (const
|
|
1102
|
-
const
|
|
1103
|
-
|
|
1101
|
+
for (const i of e.voteRefs) {
|
|
1102
|
+
const o = t.scrutinByUid[i];
|
|
1103
|
+
o !== void 0 && (n.push(o), Fe(o, t, r));
|
|
1104
1104
|
}
|
|
1105
1105
|
e.votes = n;
|
|
1106
1106
|
}
|
|
@@ -1112,40 +1112,40 @@ function W(e, t, r) {
|
|
|
1112
1112
|
function h(e, t, r) {
|
|
1113
1113
|
if (!r.has(e.uid) && (r.add(e.uid), t.organeByUid !== void 0))
|
|
1114
1114
|
for (const n of e.mandats || []) {
|
|
1115
|
-
const
|
|
1116
|
-
for (const
|
|
1117
|
-
const a = t.organeByUid[
|
|
1118
|
-
a !== void 0 && (
|
|
1115
|
+
const i = [];
|
|
1116
|
+
for (const o of n.organesRefs) {
|
|
1117
|
+
const a = t.organeByUid[o];
|
|
1118
|
+
a !== void 0 && (i.push(a), m(a, t, r));
|
|
1119
1119
|
}
|
|
1120
|
-
n.organes =
|
|
1120
|
+
n.organes = i;
|
|
1121
1121
|
}
|
|
1122
1122
|
return e;
|
|
1123
1123
|
}
|
|
1124
1124
|
function at(e, t, r) {
|
|
1125
1125
|
if (!r.has(e.uid)) {
|
|
1126
1126
|
r.add(e.uid);
|
|
1127
|
-
const n = e.signataires,
|
|
1128
|
-
if (t.acteurByUid !== void 0 &&
|
|
1129
|
-
const
|
|
1130
|
-
|
|
1127
|
+
const n = e.signataires, i = n.auteur;
|
|
1128
|
+
if (t.acteurByUid !== void 0 && i.acteurRef !== void 0) {
|
|
1129
|
+
const o = t.acteurByUid[i.acteurRef];
|
|
1130
|
+
o !== void 0 && (i.acteur = o, h(o, t, r));
|
|
1131
1131
|
}
|
|
1132
|
-
if (t.organeByUid !== void 0 &&
|
|
1133
|
-
const
|
|
1134
|
-
|
|
1132
|
+
if (t.organeByUid !== void 0 && i.auteurRapporteurOrganeRef !== void 0) {
|
|
1133
|
+
const o = t.organeByUid[i.auteurRapporteurOrganeRef];
|
|
1134
|
+
o !== void 0 && (i.auteurRapporteurOrgane = o, m(o, t, r));
|
|
1135
1135
|
}
|
|
1136
|
-
if (t.organeByUid !== void 0 &&
|
|
1137
|
-
const
|
|
1138
|
-
|
|
1136
|
+
if (t.organeByUid !== void 0 && i.gouvernementRef !== void 0) {
|
|
1137
|
+
const o = t.organeByUid[i.gouvernementRef];
|
|
1138
|
+
o !== void 0 && (i.gouvernement = o, m(o, t, r));
|
|
1139
1139
|
}
|
|
1140
|
-
if (t.organeByUid !== void 0 &&
|
|
1141
|
-
const
|
|
1142
|
-
|
|
1140
|
+
if (t.organeByUid !== void 0 && i.groupePolitiqueRef !== void 0) {
|
|
1141
|
+
const o = t.organeByUid[i.groupePolitiqueRef];
|
|
1142
|
+
o !== void 0 && (i.groupePolitique = o, m(o, t, r));
|
|
1143
1143
|
}
|
|
1144
1144
|
if (t.acteurByUid !== void 0 && n.cosignatairesRefs !== void 0) {
|
|
1145
1145
|
const a = [];
|
|
1146
|
-
for (const
|
|
1147
|
-
const
|
|
1148
|
-
|
|
1146
|
+
for (const c of n.cosignatairesRefs || []) {
|
|
1147
|
+
const u = t.acteurByUid[c];
|
|
1148
|
+
u !== void 0 && (a.push(u), h(u, t, r));
|
|
1149
1149
|
}
|
|
1150
1150
|
n.cosignataires = a;
|
|
1151
1151
|
}
|
|
@@ -1154,14 +1154,14 @@ function at(e, t, r) {
|
|
|
1154
1154
|
}
|
|
1155
1155
|
function H(e, t, r) {
|
|
1156
1156
|
for (const n of e.auteurs) {
|
|
1157
|
-
const
|
|
1158
|
-
if (t.acteurByUid !== void 0 &&
|
|
1159
|
-
const
|
|
1160
|
-
|
|
1157
|
+
const i = n.acteur;
|
|
1158
|
+
if (t.acteurByUid !== void 0 && i !== void 0) {
|
|
1159
|
+
const o = t.acteurByUid[i.acteurRef];
|
|
1160
|
+
o !== void 0 && (i.acteur = o, h(o, t, r));
|
|
1161
1161
|
}
|
|
1162
1162
|
if (t.organeByUid !== void 0 && n.organeRef !== void 0) {
|
|
1163
|
-
const
|
|
1164
|
-
|
|
1163
|
+
const o = t.organeByUid[n.organeRef];
|
|
1164
|
+
o !== void 0 && (n.organe = o, m(o, t, r));
|
|
1165
1165
|
}
|
|
1166
1166
|
}
|
|
1167
1167
|
if (t.dossierByUid !== void 0) {
|
|
@@ -1176,14 +1176,14 @@ function v(e, t, r) {
|
|
|
1176
1176
|
if (!r.has(e.uid)) {
|
|
1177
1177
|
r.add(e.uid);
|
|
1178
1178
|
for (const n of e.auteurs) {
|
|
1179
|
-
const
|
|
1180
|
-
if (t.acteurByUid !== void 0 &&
|
|
1181
|
-
const
|
|
1182
|
-
|
|
1179
|
+
const i = n.acteur;
|
|
1180
|
+
if (t.acteurByUid !== void 0 && i !== void 0) {
|
|
1181
|
+
const o = t.acteurByUid[i.acteurRef];
|
|
1182
|
+
o !== void 0 && (i.acteur = o, h(o, t, r));
|
|
1183
1183
|
}
|
|
1184
1184
|
if (t.organeByUid !== void 0 && n.organeRef !== void 0) {
|
|
1185
|
-
const
|
|
1186
|
-
|
|
1185
|
+
const o = t.organeByUid[n.organeRef];
|
|
1186
|
+
o !== void 0 && (n.organe = o, m(o, t, r));
|
|
1187
1187
|
}
|
|
1188
1188
|
}
|
|
1189
1189
|
if (t.dossierByUid !== void 0) {
|
|
@@ -1198,24 +1198,24 @@ function v(e, t, r) {
|
|
|
1198
1198
|
function G(e, t, r) {
|
|
1199
1199
|
if (!r.has(e.uid)) {
|
|
1200
1200
|
r.add(e.uid);
|
|
1201
|
-
for (const
|
|
1202
|
-
W(
|
|
1201
|
+
for (const i of e.actesLegislatifs ?? [])
|
|
1202
|
+
W(i, t, r);
|
|
1203
1203
|
const n = e.initiateur;
|
|
1204
1204
|
if (n !== void 0) {
|
|
1205
1205
|
if (t.acteurByUid !== void 0)
|
|
1206
|
-
for (const
|
|
1207
|
-
const
|
|
1208
|
-
if (
|
|
1209
|
-
for (const a of
|
|
1210
|
-
if (a.uid ===
|
|
1211
|
-
|
|
1206
|
+
for (const i of n.acteurs || []) {
|
|
1207
|
+
const o = t.acteurByUid[i.acteurRef];
|
|
1208
|
+
if (o !== void 0 && (i.acteur = o, h(o, t, r)), o !== void 0 && i.mandatRef !== void 0) {
|
|
1209
|
+
for (const a of o.mandats || [])
|
|
1210
|
+
if (a.uid === i.mandatRef) {
|
|
1211
|
+
i.mandat = a;
|
|
1212
1212
|
break;
|
|
1213
1213
|
}
|
|
1214
1214
|
}
|
|
1215
1215
|
}
|
|
1216
1216
|
if (t.organeByUid !== void 0 && n.organeRef !== void 0) {
|
|
1217
|
-
const
|
|
1218
|
-
|
|
1217
|
+
const i = t.organeByUid[n.organeRef];
|
|
1218
|
+
i !== void 0 && (n.organe = i, m(i, t, r));
|
|
1219
1219
|
}
|
|
1220
1220
|
}
|
|
1221
1221
|
}
|
|
@@ -1234,40 +1234,40 @@ function m(e, t, r) {
|
|
|
1234
1234
|
}
|
|
1235
1235
|
return e;
|
|
1236
1236
|
}
|
|
1237
|
-
function
|
|
1237
|
+
function qe(e, t, r) {
|
|
1238
1238
|
if (!r.has(e.uid)) {
|
|
1239
1239
|
r.add(e.uid);
|
|
1240
1240
|
const n = e.demandeurs;
|
|
1241
1241
|
if (n !== void 0) {
|
|
1242
1242
|
if (t.acteurByUid !== void 0)
|
|
1243
|
-
for (const
|
|
1244
|
-
const
|
|
1245
|
-
|
|
1243
|
+
for (const i of n.acteurs || []) {
|
|
1244
|
+
const o = t.acteurByUid[i.acteurRef];
|
|
1245
|
+
o !== void 0 && (i.acteur = o, h(o, t, r));
|
|
1246
1246
|
}
|
|
1247
1247
|
if (t.organeByUid !== void 0) {
|
|
1248
|
-
const
|
|
1249
|
-
if (
|
|
1250
|
-
const
|
|
1251
|
-
|
|
1248
|
+
const i = n.organe;
|
|
1249
|
+
if (i !== void 0) {
|
|
1250
|
+
const o = t.organeByUid[i.organeRef];
|
|
1251
|
+
o !== void 0 && (i.organe = o, m(o, t, r));
|
|
1252
1252
|
}
|
|
1253
1253
|
}
|
|
1254
1254
|
}
|
|
1255
1255
|
if (t.organeByUid !== void 0 && e.organeReuniRef !== void 0) {
|
|
1256
|
-
const
|
|
1257
|
-
|
|
1256
|
+
const i = t.organeByUid[e.organeReuniRef];
|
|
1257
|
+
i !== void 0 && (e.organeReuni = i, m(i, t, r));
|
|
1258
1258
|
}
|
|
1259
1259
|
if (t.acteurByUid !== void 0) {
|
|
1260
|
-
const
|
|
1261
|
-
if (
|
|
1262
|
-
for (const
|
|
1263
|
-
const a = t.acteurByUid[
|
|
1264
|
-
a !== void 0 && (
|
|
1260
|
+
const i = e.participants;
|
|
1261
|
+
if (i !== void 0)
|
|
1262
|
+
for (const o of i.participantsInternes || []) {
|
|
1263
|
+
const a = t.acteurByUid[o.acteurRef];
|
|
1264
|
+
a !== void 0 && (o.acteur = a, h(a, t, r));
|
|
1265
1265
|
}
|
|
1266
1266
|
}
|
|
1267
1267
|
}
|
|
1268
1268
|
return e;
|
|
1269
1269
|
}
|
|
1270
|
-
function
|
|
1270
|
+
function Fe(e, t, r) {
|
|
1271
1271
|
return r.has(e.uid) || r.add(e.uid), e;
|
|
1272
1272
|
}
|
|
1273
1273
|
function st(e) {
|
|
@@ -1405,7 +1405,7 @@ function We(e) {
|
|
|
1405
1405
|
return ".asp";
|
|
1406
1406
|
}
|
|
1407
1407
|
}
|
|
1408
|
-
function*
|
|
1408
|
+
function* ut(e, t = void 0) {
|
|
1409
1409
|
if (t === void 0 || t === "raw-html") {
|
|
1410
1410
|
yield {
|
|
1411
1411
|
format: "raw-html",
|
|
@@ -1461,7 +1461,7 @@ function* ct(e, t = void 0) {
|
|
|
1461
1461
|
});
|
|
1462
1462
|
}
|
|
1463
1463
|
}
|
|
1464
|
-
function
|
|
1464
|
+
function ct(e, t) {
|
|
1465
1465
|
const r = b(e, t);
|
|
1466
1466
|
return r === null ? null : r.url;
|
|
1467
1467
|
}
|
|
@@ -1486,56 +1486,56 @@ function b(e, t) {
|
|
|
1486
1486
|
return console.log(
|
|
1487
1487
|
`Unable to generate URL for document or division in Sénat. UID: "${e.uid}"`
|
|
1488
1488
|
), null;
|
|
1489
|
-
const
|
|
1489
|
+
const o = n[5];
|
|
1490
1490
|
let a = n[7];
|
|
1491
1491
|
if (t === "raw-html")
|
|
1492
1492
|
return {
|
|
1493
1493
|
directory: "textes",
|
|
1494
|
-
url: `https://www.assemblee-nationale.fr/${
|
|
1494
|
+
url: `https://www.assemblee-nationale.fr/${o}/textes/${a}${r}`
|
|
1495
1495
|
};
|
|
1496
|
-
let
|
|
1496
|
+
let c = {
|
|
1497
1497
|
BTC: "TCOM",
|
|
1498
1498
|
BTA: "TADO",
|
|
1499
1499
|
TAP: "TADO"
|
|
1500
1500
|
}[n[6]] || n[1];
|
|
1501
|
-
e.classification !== void 0 && e.classification.sousType !== void 0 && e.classification.sousType.code === "COMPA" && (a = a.replace(/-COMPA/, "-aCOMPA")),
|
|
1502
|
-
const
|
|
1503
|
-
if (
|
|
1501
|
+
e.classification !== void 0 && e.classification.sousType !== void 0 && e.classification.sousType.code === "COMPA" && (a = a.replace(/-COMPA/, "-aCOMPA")), c == "AVCE" && (c = `AVCE${e.classification.famille?.classe.code}`);
|
|
1502
|
+
const u = $e[c];
|
|
1503
|
+
if (u === void 0)
|
|
1504
1504
|
return console.log(
|
|
1505
|
-
`Unable to generate URL from document or division of UID "${e.uid}" and type "${
|
|
1505
|
+
`Unable to generate URL from document or division of UID "${e.uid}" and type "${c}"`
|
|
1506
1506
|
), null;
|
|
1507
|
-
const f = t === "pdf" ? `pdf/${
|
|
1507
|
+
const f = t === "pdf" ? `pdf/${u.directory}` : u.directory;
|
|
1508
1508
|
return {
|
|
1509
1509
|
directory: f,
|
|
1510
|
-
url: `https://www.assemblee-nationale.fr/${
|
|
1510
|
+
url: `https://www.assemblee-nationale.fr/${o}/${f}/${u.prefix}${a}${u.suffix}${r}`
|
|
1511
1511
|
};
|
|
1512
1512
|
}
|
|
1513
1513
|
export {
|
|
1514
|
-
|
|
1515
|
-
|
|
1516
|
-
|
|
1517
|
-
|
|
1514
|
+
pn as AccordGouvernementDepotHorsDelai,
|
|
1515
|
+
yn as Action,
|
|
1516
|
+
hn as AmendementsConvert,
|
|
1517
|
+
Rn as AvantAApres,
|
|
1518
1518
|
mt as Cause,
|
|
1519
1519
|
gt as CausePositionVote,
|
|
1520
1520
|
pt as Civ,
|
|
1521
1521
|
yt as CodeActe,
|
|
1522
|
-
|
|
1522
|
+
xn as CodeEtat,
|
|
1523
1523
|
ht as CodeNatureDep,
|
|
1524
1524
|
Rt as CodeSortScrutin,
|
|
1525
1525
|
O as CodeTypeOrgane,
|
|
1526
1526
|
xt as CodeTypeVote,
|
|
1527
1527
|
Tt as Decision,
|
|
1528
|
-
|
|
1528
|
+
Tn as DivisionType,
|
|
1529
1529
|
Dt as DocumentDenominationStructurelle,
|
|
1530
1530
|
je as DocumentUrlFormat,
|
|
1531
1531
|
wt as DossierParlementaireXsiType,
|
|
1532
|
-
|
|
1533
|
-
|
|
1532
|
+
Dn as EtatAmendementCode,
|
|
1533
|
+
wn as EtatAmendementLibelle,
|
|
1534
1534
|
vt as EtatCycleDeVie,
|
|
1535
1535
|
Y as Facet,
|
|
1536
1536
|
bt as FamSocPro,
|
|
1537
1537
|
Be as FinalStatus,
|
|
1538
|
-
|
|
1538
|
+
q as Follow,
|
|
1539
1539
|
St as FormatReunion,
|
|
1540
1540
|
At as Legislature,
|
|
1541
1541
|
Et as LibelleSortScrutin,
|
|
@@ -1551,17 +1551,17 @@ export {
|
|
|
1551
1551
|
Ut as Presence,
|
|
1552
1552
|
kt as Procedure,
|
|
1553
1553
|
Yt as Provenance,
|
|
1554
|
-
|
|
1555
|
-
|
|
1554
|
+
qt as Qualite,
|
|
1555
|
+
Ft as Quantieme,
|
|
1556
1556
|
jt as Regime,
|
|
1557
1557
|
$t as RegionType,
|
|
1558
1558
|
Wt as ReunionXsiType,
|
|
1559
|
-
|
|
1559
|
+
vn as SortAmendement,
|
|
1560
1560
|
Ue as StatusOnly,
|
|
1561
1561
|
Ht as StatutAdoption,
|
|
1562
1562
|
Gt as TexteExterneAssocieTypeDoc,
|
|
1563
1563
|
Qt as TypeActeLegislatif,
|
|
1564
|
-
|
|
1564
|
+
bn as TypeAuteur,
|
|
1565
1565
|
Xt as TypeBudget,
|
|
1566
1566
|
Vt as TypeCorrection,
|
|
1567
1567
|
zt as TypeDocument,
|
|
@@ -1569,22 +1569,25 @@ export {
|
|
|
1569
1569
|
Zt as TypeJoQuestion,
|
|
1570
1570
|
Kt as TypeMajorite,
|
|
1571
1571
|
en as TypeMandat,
|
|
1572
|
-
|
|
1573
|
-
|
|
1572
|
+
Sn as TypeMimeNom,
|
|
1573
|
+
An as TypeMimeType,
|
|
1574
1574
|
tn as TypeMission,
|
|
1575
1575
|
nn as TypeOrgane,
|
|
1576
1576
|
rn as TypePointOdj,
|
|
1577
|
-
|
|
1577
|
+
En as TypePosition,
|
|
1578
1578
|
on as TypeQuestion,
|
|
1579
1579
|
an as TypeReunion,
|
|
1580
1580
|
sn as TypeTexte,
|
|
1581
1581
|
Qe as allFacets,
|
|
1582
1582
|
Xe as allFollows,
|
|
1583
1583
|
rt as capitalizeFirstLetter,
|
|
1584
|
-
|
|
1584
|
+
it as commissionFondUidFromDossier,
|
|
1585
|
+
un as compteRenduUidRegex,
|
|
1585
1586
|
ze as dateFromNullableDateOrIsoString,
|
|
1586
1587
|
Je as dateFromYearMonthDayTimezoneString,
|
|
1587
1588
|
Ze as displayDateFromLocalIsoString,
|
|
1589
|
+
cn as documentUidRegex,
|
|
1590
|
+
fn as dossierUidRegex,
|
|
1588
1591
|
Pe as existingDateToJson,
|
|
1589
1592
|
Ke as formatRelativeFrenchTime,
|
|
1590
1593
|
Ve as frenchDateFormat,
|
|
@@ -1597,18 +1600,21 @@ export {
|
|
|
1597
1600
|
v as insertDocumentReferences,
|
|
1598
1601
|
G as insertDossierReferences,
|
|
1599
1602
|
m as insertOrganeReferences,
|
|
1600
|
-
|
|
1601
|
-
|
|
1602
|
-
|
|
1603
|
+
qe as insertReunionReferences,
|
|
1604
|
+
Fe as insertScrutinReferences,
|
|
1605
|
+
ut as iterDocumentOrDivisionUrls,
|
|
1603
1606
|
nt as localIso8601StringFromDate,
|
|
1604
1607
|
Le as patchedDateToJson,
|
|
1608
|
+
dn as questionUidRegex,
|
|
1609
|
+
ln as reunionUidRegex,
|
|
1610
|
+
mn as scrutinUidRegex,
|
|
1605
1611
|
st as shortNameFromOrgane,
|
|
1606
1612
|
ke as stateFromActePath,
|
|
1607
1613
|
j as stateFromActes,
|
|
1608
|
-
|
|
1614
|
+
ot as stateFromDossier,
|
|
1609
1615
|
p as statusFromCodierLibelle,
|
|
1610
1616
|
g as uncapitalizeFirstLetter,
|
|
1611
|
-
|
|
1617
|
+
ct as urlFromDocument,
|
|
1612
1618
|
ft as urlFromScrutin,
|
|
1613
1619
|
$ as walkActes,
|
|
1614
1620
|
Ye as walkDocumentAndDivisions
|