@tricoteuses/tisseuse 0.17.3 → 0.18.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{html-DMnYXx0o.js → html-B0V8X0v6.js} +3667 -3606
- package/dist/index.js +135 -135
- package/dist/{resolver-CuP8arVX.js → resolver-cn-qJE70.js} +66 -66
- package/dist/server-f-legi.js +1 -1
- package/dist/server.js +530 -530
- package/dist/src/lib/extractors/article_portions.d.ts +11 -0
- package/dist/src/lib/index.d.ts +1 -1
- package/dist/src/lib/text_parsers/portions.d.ts +1 -0
- package/dist/src/lib/text_parsers/prepositions.d.ts +1 -0
- package/package.json +1 -1
|
@@ -811,13 +811,13 @@ var k = [
|
|
|
811
811
|
], { value: (e) => e[1] }), { default: null })], { value: (e) => {
|
|
812
812
|
let t = { dateCalendrierRepublicain: e[0] }, n = e[1];
|
|
813
813
|
return n !== null && (t.date = n), t;
|
|
814
|
-
} }), v(j, { value: (e) => ({ date: e }) }))], { value: (e) => e[1] }), Pe = _([C, M], { value: (e) => e[1] }), Fe = b(String.raw`(?<=^|\P{Alphabetic})(aux|des|les)( |(?=dite?s ))`, { flags: "iv" }), Ie = g(b(String.raw`(?<=^|\P{Alphabetic})(au|du|le)( |(?=dit ))`, { flags: "iv" }), b(String.raw`(?<=^|\P{Alphabetic})([àa] )?la( |(?=dite ))`, { flags: "iv" }), b(String.raw`(?<=^|\P{Alphabetic})([àa] )?l'`, { flags: "iv" })), Le = _([g(b(String.raw`[ \n]de (?=ce(tte)?s )`, { flags: "i" }), b(String.raw`[ \n]des( |(?=dite?s ))`, { flags: "i" }))], { value: "des" }), Re = v(g(b(String.raw`
|
|
814
|
+
} }), v(j, { value: (e) => ({ date: e }) }))], { value: (e) => e[1] }), Pe = _([C, M], { value: (e) => e[1] }), Fe = b(String.raw`(?<=^|\P{Alphabetic})(aux|des|les)( |(?=dite?s ))`, { flags: "iv" }), Ie = g(b(String.raw`(?<=^|\P{Alphabetic})(au|du|le)( |(?=dit ))`, { flags: "iv" }), b(String.raw`(?<=^|\P{Alphabetic})([àa] )?la( |(?=dite ))`, { flags: "iv" }), b(String.raw`(?<=^|\P{Alphabetic})([àa] )?l'`, { flags: "iv" })), Le = _([g(b(String.raw`[ \n]de (?=ce(tte)?s )`, { flags: "i" }), b(String.raw`[ \n]des( |(?=dite?s ))`, { flags: "i" }))], { value: "des" }), Re = v(g(b(String.raw`de (?=ce(tte|t)? )`, { flags: "i" }), b(String.raw`de l'`, { flags: "i" }), b(String.raw`de la( |(?=dite ))`, { flags: "i" }), b(String.raw`du( |(?=dit ))`, { flags: "i" })), { value: "de" }), ze = _([b(String.raw`[ \n]`), Re], { value: "de" }), Be = b("dite?s ", {
|
|
815
815
|
flags: "i",
|
|
816
816
|
value: !0
|
|
817
|
-
}),
|
|
817
|
+
}), Ve = b("dite? ", {
|
|
818
818
|
flags: "i",
|
|
819
819
|
value: !0
|
|
820
|
-
}),
|
|
820
|
+
}), He = g(b("(nouvel|nouveau|nouvelle) ", {
|
|
821
821
|
flags: "i",
|
|
822
822
|
value: "new"
|
|
823
823
|
}), b("(ancien|ancienne) ", {
|
|
@@ -889,8 +889,8 @@ var k = [
|
|
|
889
889
|
})), F = b("ci ?- ?(après|avant|dessous|dessus)", {
|
|
890
890
|
flags: "i",
|
|
891
891
|
value: (e) => `ci-${e[1]}`
|
|
892
|
-
}),
|
|
893
|
-
function
|
|
892
|
+
}), Ue = _([C, F], { value: (e) => e[1] }), I = b(" précitée?", { flags: "i" }), We = g(F, N), Ge = _([y(b("ces ", { flags: "i" }), { default: "" }), N], { value: (e) => e[1] }), Ke = g(F, P), qe = _([y(b("ce(tte|t)? ", { flags: "i" }), { default: "" }), P], { value: (e) => e[1] }), L = /^<\/?(!DOCTYPE|\?XML|[A-Z][A-Z0-9]*)/i;
|
|
893
|
+
function R(e, t) {
|
|
894
894
|
return (n) => {
|
|
895
895
|
let r = [], i = n;
|
|
896
896
|
for (let e of t) {
|
|
@@ -905,12 +905,12 @@ function L(e, t) {
|
|
|
905
905
|
};
|
|
906
906
|
};
|
|
907
907
|
}
|
|
908
|
-
function*
|
|
908
|
+
function* z(e) {
|
|
909
909
|
if (e.transformations === void 0) yield e;
|
|
910
|
-
else for (let t of e.transformations) yield*
|
|
910
|
+
else for (let t of e.transformations) yield* z(t);
|
|
911
911
|
}
|
|
912
912
|
function* Je(e) {
|
|
913
|
-
let t = [...
|
|
913
|
+
let t = [...z(e)].reverse(), n = { position: {
|
|
914
914
|
start: 0,
|
|
915
915
|
stop: 0
|
|
916
916
|
} }, r = t.map((e) => {
|
|
@@ -967,7 +967,7 @@ function* Ye(e) {
|
|
|
967
967
|
if (i + 1 < d) {
|
|
968
968
|
let r = !1, o = n[i + 1];
|
|
969
969
|
if (o.openingTag !== void 0 && o.outputIndex + o.outputLength < e.start) {
|
|
970
|
-
let e = o.openingTag.match(
|
|
970
|
+
let e = o.openingTag.match(L);
|
|
971
971
|
if (e !== null) {
|
|
972
972
|
let t = e[1], n = t.toUpperCase();
|
|
973
973
|
[
|
|
@@ -992,7 +992,7 @@ function* Ye(e) {
|
|
|
992
992
|
if (i + 1 > f) {
|
|
993
993
|
let a = !1, s = n[r], l = n[i + 1];
|
|
994
994
|
if (s.openingTag !== void 0 && e.stop < l.outputIndex) {
|
|
995
|
-
let e = s.openingTag.match(
|
|
995
|
+
let e = s.openingTag.match(L);
|
|
996
996
|
if (e !== null) {
|
|
997
997
|
let t = e[1], n = t.toUpperCase();
|
|
998
998
|
[
|
|
@@ -1041,7 +1041,7 @@ function Xe(e) {
|
|
|
1041
1041
|
}
|
|
1042
1042
|
function Ze(e, t) {
|
|
1043
1043
|
let n = t.map((e) => [e]);
|
|
1044
|
-
for (let { sourceMap: t } of [...
|
|
1044
|
+
for (let { sourceMap: t } of [...z(e)].reverse()) n = Qe(t, n);
|
|
1045
1045
|
return n;
|
|
1046
1046
|
}
|
|
1047
1047
|
function Qe(e, t) {
|
|
@@ -1154,7 +1154,7 @@ function it({ removeAWithHref: e } = {}) {
|
|
|
1154
1154
|
sourceMap: a,
|
|
1155
1155
|
title: s
|
|
1156
1156
|
};
|
|
1157
|
-
let u = t.slice(c, l + 1), d = u.startsWith("</"), f = u.length, p = u.match(
|
|
1157
|
+
let u = t.slice(c, l + 1), d = u.startsWith("</"), f = u.length, p = u.match(L);
|
|
1158
1158
|
if (p === null) {
|
|
1159
1159
|
i.push(t.slice(n, l + 1).replace(/[\n\r]/g, " ")), n = l + 1;
|
|
1160
1160
|
continue;
|
|
@@ -1372,7 +1372,7 @@ function st(e) {
|
|
|
1372
1372
|
[/<script.*?>.*?<\/script>/gis, ""],
|
|
1373
1373
|
[/<style.*?>.*?<\/style>/gis, ""]
|
|
1374
1374
|
]) {
|
|
1375
|
-
let i =
|
|
1375
|
+
let i = B(e, r)(n);
|
|
1376
1376
|
i.sourceMap.length !== 0 && (t.push(i), n = i.output);
|
|
1377
1377
|
}
|
|
1378
1378
|
return {
|
|
@@ -1382,7 +1382,7 @@ function st(e) {
|
|
|
1382
1382
|
transformations: t
|
|
1383
1383
|
};
|
|
1384
1384
|
}
|
|
1385
|
-
function
|
|
1385
|
+
function B(e, t) {
|
|
1386
1386
|
return (n) => {
|
|
1387
1387
|
let r = [], i = n.replaceAll(e, (e, ...n) => {
|
|
1388
1388
|
let i = n.at(-2), a = t;
|
|
@@ -1402,14 +1402,14 @@ function z(e, t) {
|
|
|
1402
1402
|
};
|
|
1403
1403
|
};
|
|
1404
1404
|
}
|
|
1405
|
-
function
|
|
1405
|
+
function V(e) {
|
|
1406
1406
|
let t = [], n = e;
|
|
1407
1407
|
for (let [e, r] of [
|
|
1408
1408
|
[/(\sn°)([^\s])/gi, "$1 $2"],
|
|
1409
1409
|
[/[\u200E\u200F]/g, ""],
|
|
1410
1410
|
[/[\uF031-\uF039\uF041-\uF054\uF061-\uF06A]/g, ""]
|
|
1411
1411
|
]) {
|
|
1412
|
-
let i =
|
|
1412
|
+
let i = B(e, r)(n);
|
|
1413
1413
|
i.sourceMap.length !== 0 && (t.push(i), n = i.output);
|
|
1414
1414
|
}
|
|
1415
1415
|
return {
|
|
@@ -1420,24 +1420,24 @@ function B(e) {
|
|
|
1420
1420
|
};
|
|
1421
1421
|
}
|
|
1422
1422
|
function ct({ removeAWithHref: e } = {}) {
|
|
1423
|
-
return (t) =>
|
|
1423
|
+
return (t) => R("Simplification du HTML", [
|
|
1424
1424
|
at,
|
|
1425
1425
|
ot,
|
|
1426
1426
|
st,
|
|
1427
|
-
|
|
1428
|
-
|
|
1427
|
+
V,
|
|
1428
|
+
U,
|
|
1429
1429
|
it({ removeAWithHref: e }),
|
|
1430
|
-
|
|
1430
|
+
H
|
|
1431
1431
|
])(t);
|
|
1432
1432
|
}
|
|
1433
1433
|
function lt(e) {
|
|
1434
|
-
return
|
|
1435
|
-
|
|
1436
|
-
|
|
1437
|
-
|
|
1434
|
+
return R("Simplification du texte brut", [
|
|
1435
|
+
V,
|
|
1436
|
+
U,
|
|
1437
|
+
H
|
|
1438
1438
|
])(e);
|
|
1439
1439
|
}
|
|
1440
|
-
function
|
|
1440
|
+
function H(e) {
|
|
1441
1441
|
let t = [], n = e;
|
|
1442
1442
|
for (let [e, r, i] of [
|
|
1443
1443
|
[
|
|
@@ -1495,8 +1495,8 @@ function V(e) {
|
|
|
1495
1495
|
transformations: t
|
|
1496
1496
|
};
|
|
1497
1497
|
}
|
|
1498
|
-
function
|
|
1499
|
-
return
|
|
1498
|
+
function U(e) {
|
|
1499
|
+
return R("Simplification des caractères unicodes", [
|
|
1500
1500
|
["À", "À"],
|
|
1501
1501
|
["Â", "Â"],
|
|
1502
1502
|
["Ä", "Ä"],
|
|
@@ -1531,24 +1531,24 @@ function H(e) {
|
|
|
1531
1531
|
[/[‐‑–·]/g, "-"],
|
|
1532
1532
|
[/’/g, "'"],
|
|
1533
1533
|
["İ", "I"]
|
|
1534
|
-
].map(([e, t]) =>
|
|
1534
|
+
].map(([e, t]) => B(e, t)))(e);
|
|
1535
1535
|
}
|
|
1536
1536
|
//#endregion
|
|
1537
1537
|
//#region src/lib/text_parsers/texts.ts
|
|
1538
|
-
var
|
|
1538
|
+
var W = {}, ut = {}, dt = {}, ft = {}, pt = {};
|
|
1539
1539
|
function mt(e) {
|
|
1540
1540
|
let t = e ?? {};
|
|
1541
|
-
|
|
1541
|
+
G(ut, t.textCidByOtherTitleWordsTree ?? {}), G(dt, t.textCidByTitleRestWordsTree ?? {}), G(W, Object.fromEntries(Object.entries(t.textInfosByCid ?? {}).map(([e, t]) => [e, Array.isArray(t) ? {
|
|
1542
1542
|
nature: t[0],
|
|
1543
1543
|
title: t[1]
|
|
1544
|
-
} : t]))),
|
|
1544
|
+
} : t]))), G(ft, t.textsCidsByNatureAndDate ?? {}), G(pt, t.textsCidsByNatureAndNum ?? {});
|
|
1545
1545
|
}
|
|
1546
|
-
function
|
|
1546
|
+
function G(e, t) {
|
|
1547
1547
|
let n = e;
|
|
1548
1548
|
for (let e of Object.keys(n)) delete n[e];
|
|
1549
1549
|
Object.assign(e, t);
|
|
1550
1550
|
}
|
|
1551
|
-
var ht = (e) => Array.isArray(e) ? e : [e],
|
|
1551
|
+
var ht = (e) => Array.isArray(e) ? e : [e], K = v(g(b("Constitution", { value: "CONSTITUTION" }), b("arrêtés?|circulaires?|code professionnel local|code|décret-loi|décrets?|livre(?= des procédures fiscales)|loi constitutionnelle|loi d'orientation quinquennale|loi d'orientation|loi de programme|loi locale|loi organique|loi quinquennale|loi|ordonnance (?:du Roi|locale|ministérielle|royale)|ordonnance", {
|
|
1552
1552
|
flags: "i",
|
|
1553
1553
|
value: (e) => {
|
|
1554
1554
|
let t = e[0].toLowerCase();
|
|
@@ -1557,7 +1557,7 @@ var ht = (e) => Array.isArray(e) ? e : [e], G = v(g(b("Constitution", { value: "
|
|
|
1557
1557
|
})), { value: (e) => ({
|
|
1558
1558
|
nature: e,
|
|
1559
1559
|
type: "texte"
|
|
1560
|
-
}) }), gt = _([y(w, { default: null }), b(String.raw`\d+(-\d+)?`)], { value: (e) => e[1] }),
|
|
1560
|
+
}) }), gt = _([y(w, { default: null }), b(String.raw`\d+(-\d+)?`)], { value: (e) => e[1] }), q = g(M, _([gt, y(Pe, { default: null })], { value: (e) => e[1] === null ? { num: e[0] } : {
|
|
1561
1561
|
...e[1],
|
|
1562
1562
|
num: e[0]
|
|
1563
1563
|
} }));
|
|
@@ -1569,11 +1569,11 @@ b("décision( du Conseil constitutionnel)? (?<numero>[-/0-9A-Z]+ (QPC|DC|AN|D|EL
|
|
|
1569
1569
|
type: "décision du Conseil constitutionnel"
|
|
1570
1570
|
})
|
|
1571
1571
|
});
|
|
1572
|
-
var
|
|
1573
|
-
G,
|
|
1574
|
-
q,
|
|
1575
|
-
C,
|
|
1572
|
+
var J = y(g(b(" de la République française", { flags: "i" }), b(" du pays", { flags: "i" })), { default: null }), _t = g(_([
|
|
1576
1573
|
K,
|
|
1574
|
+
J,
|
|
1575
|
+
C,
|
|
1576
|
+
q,
|
|
1577
1577
|
b(".*")
|
|
1578
1578
|
], { value: (e) => {
|
|
1579
1579
|
let t = {
|
|
@@ -1582,10 +1582,10 @@ var q = y(g(b(" de la République française", { flags: "i" }), b(" du pays", {
|
|
|
1582
1582
|
}, n = e[4].trim() || void 0;
|
|
1583
1583
|
return n !== void 0 && (t.titleRest = n), t;
|
|
1584
1584
|
} }), _([
|
|
1585
|
-
|
|
1585
|
+
K,
|
|
1586
1586
|
b("[^()]+"),
|
|
1587
1587
|
b(String.raw`\( ?`),
|
|
1588
|
-
|
|
1588
|
+
q,
|
|
1589
1589
|
b(String.raw` ?\)`)
|
|
1590
1590
|
], { value: (e) => {
|
|
1591
1591
|
let t = {
|
|
@@ -1602,10 +1602,10 @@ var q = y(g(b(" de la République française", { flags: "i" }), b(" du pays", {
|
|
|
1602
1602
|
})), b(".+")], { value: (e) => {
|
|
1603
1603
|
let t = { ...e[0] }, n = e[1].trim() || void 0;
|
|
1604
1604
|
return n !== void 0 && (t.titleRest = n), t;
|
|
1605
|
-
} })),
|
|
1606
|
-
|
|
1607
|
-
|
|
1608
|
-
y([C,
|
|
1605
|
+
} })), Y = g(_([
|
|
1606
|
+
K,
|
|
1607
|
+
J,
|
|
1608
|
+
y([C, q], {
|
|
1609
1609
|
default: null,
|
|
1610
1610
|
value: (e) => e[1]
|
|
1611
1611
|
}),
|
|
@@ -1618,13 +1618,13 @@ var q = y(g(b(" de la République française", { flags: "i" }), b(" du pays", {
|
|
|
1618
1618
|
}),
|
|
1619
1619
|
y([
|
|
1620
1620
|
b(String.raw` ?\( ?`),
|
|
1621
|
-
|
|
1621
|
+
q,
|
|
1622
1622
|
b(String.raw` ?\)`)
|
|
1623
1623
|
], {
|
|
1624
1624
|
default: null,
|
|
1625
1625
|
value: (e) => e[1]
|
|
1626
1626
|
}),
|
|
1627
|
-
y(
|
|
1627
|
+
y(I, { default: "" })
|
|
1628
1628
|
], { value: (e) => {
|
|
1629
1629
|
let { nature: t, type: n } = e[0], { date: r, num: i } = e[2] ?? e[4] ?? {}, { cid: a, titleRest: o } = e[3] ?? {};
|
|
1630
1630
|
if (a === void 0 && r === void 0 && i === void 0) return;
|
|
@@ -1645,9 +1645,9 @@ var q = y(g(b(" de la République française", { flags: "i" }), b(" du pays", {
|
|
|
1645
1645
|
}
|
|
1646
1646
|
if (a !== void 0) {
|
|
1647
1647
|
let e = Array.isArray(a) ? a : [a];
|
|
1648
|
-
s = s.size === 0 ? new Set(e) : s.intersection(new Set(e.filter((e) =>
|
|
1648
|
+
s = s.size === 0 ? new Set(e) : s.intersection(new Set(e.filter((e) => W[e].nature === t)));
|
|
1649
1649
|
}
|
|
1650
|
-
let c = s.size === 1 ? s.values().next().value : void 0, l = c === void 0 ? void 0 :
|
|
1650
|
+
let c = s.size === 1 ? s.values().next().value : void 0, l = c === void 0 ? void 0 : W[c];
|
|
1651
1651
|
return Object.fromEntries(Object.entries({
|
|
1652
1652
|
cid: c,
|
|
1653
1653
|
date: r,
|
|
@@ -1657,8 +1657,8 @@ var q = y(g(b(" de la République française", { flags: "i" }), b(" du pays", {
|
|
|
1657
1657
|
titleRest: o,
|
|
1658
1658
|
type: n
|
|
1659
1659
|
}).filter(([, e]) => e !== void 0));
|
|
1660
|
-
} }), _([S(ut), y(
|
|
1661
|
-
let { cid: t } = e[0], n = typeof t == "string" ?
|
|
1660
|
+
} }), _([S(ut), y(I, { default: "" })], { value: (e) => {
|
|
1661
|
+
let { cid: t } = e[0], n = typeof t == "string" ? W[t] : void 0;
|
|
1662
1662
|
return Object.fromEntries(Object.entries({
|
|
1663
1663
|
cid: t,
|
|
1664
1664
|
...n ?? {},
|
|
@@ -1682,35 +1682,35 @@ var q = y(g(b(" de la République française", { flags: "i" }), b(" du pays", {
|
|
|
1682
1682
|
nature: e[0],
|
|
1683
1683
|
legislation: "UE",
|
|
1684
1684
|
type: "texte"
|
|
1685
|
-
}) }),
|
|
1685
|
+
}) }), X = _([
|
|
1686
1686
|
xt,
|
|
1687
1687
|
C,
|
|
1688
1688
|
bt
|
|
1689
1689
|
], { value: (e) => ({
|
|
1690
1690
|
...e[2],
|
|
1691
1691
|
...e[0]
|
|
1692
|
-
}) }),
|
|
1692
|
+
}) }), Z = b("convention", {
|
|
1693
1693
|
flags: "i",
|
|
1694
1694
|
value: {
|
|
1695
1695
|
nature: "CONVENTION",
|
|
1696
1696
|
legislation: "international",
|
|
1697
1697
|
type: "texte"
|
|
1698
1698
|
}
|
|
1699
|
-
}), St = _([y(
|
|
1699
|
+
}), St = _([y(Ve, { default: !1 }), g(_([
|
|
1700
1700
|
qe,
|
|
1701
1701
|
C,
|
|
1702
|
-
g(
|
|
1702
|
+
g(Y, X, Z, K, xt)
|
|
1703
1703
|
], { value: (e) => ({
|
|
1704
1704
|
...e[2],
|
|
1705
1705
|
...e[0] === void 0 ? {} : e[0]
|
|
1706
|
-
}) }),
|
|
1706
|
+
}) }), Y, X, Z)], { value: (e, t) => {
|
|
1707
1707
|
let n = {
|
|
1708
1708
|
...e[1],
|
|
1709
1709
|
...e[0] ? { ofTheSaid: !0 } : {},
|
|
1710
1710
|
position: t.position()
|
|
1711
1711
|
};
|
|
1712
1712
|
return t.currentText = n, n;
|
|
1713
|
-
} }),
|
|
1713
|
+
} }), Q = (e) => e?.replace(/\n/g, " ").replace(/ {2,}/g, " ").replace(/ \(\d+\)\.?$/, "").replace(/\.$/, ""), Ct = (e) => {
|
|
1714
1714
|
let t = e.META.META_SPEC.META_TEXTE_VERSION.DATE_DEBUT;
|
|
1715
1715
|
return t === void 0 || ["2222-02-22", "2999-01-01"].includes(t) ? e.META.META_SPEC.META_TEXTE_CHRONICLE.DATE_PUBLI : t;
|
|
1716
1716
|
}, wt = (e) => {
|
|
@@ -1794,17 +1794,17 @@ function jt(e) {
|
|
|
1794
1794
|
return lt(e).output;
|
|
1795
1795
|
}
|
|
1796
1796
|
function Mt(e, t, n) {
|
|
1797
|
-
let r = jt(
|
|
1797
|
+
let r = jt(Q(t).replace(/[,()]/g, " ")).split(" ").map((e) => /^[IVX]+$/gi.test(e) ? d(e).toString() : e.toLowerCase().replace(/^no$/, "n°")), i = e;
|
|
1798
1798
|
for (let e of r) i = i[e] ??= {};
|
|
1799
1799
|
i.cid === void 0 ? i.cid = n : Array.isArray(i.cid) ? i.cid.push(n) : i.cid = [i.cid, n];
|
|
1800
1800
|
}
|
|
1801
1801
|
async function Nt(e, t = {}) {
|
|
1802
|
-
|
|
1802
|
+
Pt(await Ft(e, t));
|
|
1803
1803
|
}
|
|
1804
|
-
function
|
|
1804
|
+
function Pt(e) {
|
|
1805
1805
|
mt(e);
|
|
1806
1806
|
}
|
|
1807
|
-
async function
|
|
1807
|
+
async function Ft(e, { onProgress: t } = {}) {
|
|
1808
1808
|
let n = new Et("legi.buildTextTitlesInfos"), r = {}, i = {}, a = {}, o = {}, s = {}, c = {
|
|
1809
1809
|
addOtherTitleWordsTreeMs: 0,
|
|
1810
1810
|
addTitleRestWordsTreeMs: 0,
|
|
@@ -1836,7 +1836,7 @@ async function Pt(e, { onProgress: t } = {}) {
|
|
|
1836
1836
|
count: n,
|
|
1837
1837
|
phase: "parse:progress"
|
|
1838
1838
|
}), await new Promise((e) => setTimeout(e, 0)));
|
|
1839
|
-
let e = u("cleanTitleMs", () =>
|
|
1839
|
+
let e = u("cleanTitleMs", () => Q(m));
|
|
1840
1840
|
if ([
|
|
1841
1841
|
"code",
|
|
1842
1842
|
"décret",
|
|
@@ -1898,8 +1898,8 @@ async function Pt(e, { onProgress: t } = {}) {
|
|
|
1898
1898
|
textCidByOtherTitleWordsTree: $(r),
|
|
1899
1899
|
textCidByTitleRestWordsTree: $(i),
|
|
1900
1900
|
textInfosByCid: a,
|
|
1901
|
-
textsCidsByNatureAndDate:
|
|
1902
|
-
textsCidsByNatureAndNum:
|
|
1901
|
+
textsCidsByNatureAndDate: It(o),
|
|
1902
|
+
textsCidsByNatureAndNum: It(s)
|
|
1903
1903
|
}));
|
|
1904
1904
|
t?.({ phase: "compact:done" });
|
|
1905
1905
|
for (let [e, t] of Object.entries(c)) n.add({
|
|
@@ -1911,7 +1911,7 @@ async function Pt(e, { onProgress: t } = {}) {
|
|
|
1911
1911
|
...l
|
|
1912
1912
|
}), d;
|
|
1913
1913
|
}
|
|
1914
|
-
function
|
|
1914
|
+
function It(e) {
|
|
1915
1915
|
return Object.fromEntries(Object.entries(e).map(([e, t]) => [e, Object.fromEntries(Object.entries(t).map(([e, t]) => [e, t.length === 1 ? t[0] : t]))]));
|
|
1916
1916
|
}
|
|
1917
1917
|
function $(e) {
|
|
@@ -1930,7 +1930,7 @@ function $(e) {
|
|
|
1930
1930
|
}
|
|
1931
1931
|
//#endregion
|
|
1932
1932
|
//#region src/lib/legi/resolver.ts
|
|
1933
|
-
var
|
|
1933
|
+
var Lt = class {
|
|
1934
1934
|
getArticleHistoryInfo(e) {
|
|
1935
1935
|
return Promise.resolve(void 0);
|
|
1936
1936
|
}
|
|
@@ -1942,4 +1942,4 @@ var It = class {
|
|
|
1942
1942
|
}
|
|
1943
1943
|
};
|
|
1944
1944
|
//#endregion
|
|
1945
|
-
export {
|
|
1945
|
+
export { ze as $, H as A, ee as At, P as B, l as Bt, at as C, w as Ct, V as D, g as Dt, B as E, h as Et, et as F, re as Ft, Ke as G, Ue as H, d as Ht, $e as I, x as It, Be as J, qe as K, tt as L, S as Lt, R as M, y as Mt, Xe as N, ne as Nt, ct as O, _ as Ot, Ze as P, b as Pt, Le as Q, nt as R, m as Rt, it as S, ce as St, st as T, de as Tt, We as U, F as V, u as Vt, Ge as W, Fe as X, Ve as Y, Ie as Z, J as _, Te as _t, kt as a, D as at, Y as b, oe as bt, Ct as c, xe as ct, _t as d, fe as dt, Re as et, bt as f, E as ft, gt as g, Ce as gt, yt as h, ge as ht, Pt as i, be as it, U as j, te as jt, lt as k, v as kt, wt as l, De as lt, q as m, he as mt, Nt as n, M as nt, Et as o, Se as ot, K as p, me as pt, He as q, Ft as r, je as rt, Q as s, pe as st, Lt as t, j as tt, Tt as u, Ee as ut, St as v, ae as vt, ot as w, ue as wt, Z as x, se as xt, X as y, C as yt, N as z, c as zt };
|
package/dist/server-f-legi.js
CHANGED