@nongt/visql-core 0.11.0 → 0.12.1
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/core.js +125 -116
- package/dist/explain.js +3 -3
- package/dist/fixtures.js +3 -3
- package/dist/{issueLocation-Yn71qJyP.js → issueLocation-DY-vvgFF.js} +437 -423
- package/dist/{params-DVkfcD6D.js → params-Btjlj45_.js} +104 -91
- package/dist/{schema-CzKt6cN2.js → schema-DsMO9oFE.js} +133 -129
- package/dist/sql-import.js +776 -767
- package/dist/{sqlGen-BoJXaULd.js → sqlGen-DGXVba3D.js} +198 -182
- package/dist/types/core/ast.d.ts +15 -1
- package/dist/types/core/i18n/defaultMessages.d.ts +7 -0
- package/dist/types/core/issueLocation.d.ts +1 -1
- package/dist/types/core/queryHelpers.d.ts +4 -1
- package/dist/types/core/sqlGen.d.ts +12 -0
- package/dist/types/core/storedQuery.d.ts +1 -1
- package/dist/types/core-api.d.ts +2 -2
- package/dist/types/sqlImport/context.d.ts +2 -2
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { D as P, h as U, q as S, t as v, i as
|
|
1
|
+
import { D as P, h as U, q as S, t as v, i as C, K as _e, u as ne, F as jn, e as te, n as re, L as Te, j as x, y as oe, m as Q, o as A, N as Je, l as E, O as Rn, P as _, z as R, r as qn, M as D, s as Gn, Q as Fn, d as M, g as se, R as Ne, b as Y, J as Pn, x as Qn, S as We } from "./schema-DsMO9oFE.js";
|
|
2
2
|
import { c as _n, s as Jn, b as Ve } from "./calendarDate-CYlr9TvX.js";
|
|
3
3
|
const Ot = 1e3, Wn = 15, Ut = 40, Lt = 100;
|
|
4
4
|
function Vn(e) {
|
|
@@ -49,10 +49,10 @@ function ke(e, n) {
|
|
|
49
49
|
}
|
|
50
50
|
function Xe(e, n) {
|
|
51
51
|
const r = ke(e, n);
|
|
52
|
-
if (r) return
|
|
52
|
+
if (r) return C(r.query) ? void 0 : r;
|
|
53
53
|
const t = He(e).find((a) => a.id === n);
|
|
54
54
|
if (t) return t;
|
|
55
|
-
const o = /^(.*)#(\d+)$/.exec(n), s = o ? ke(e, o[1]) : void 0, i = Number(o == null ? void 0 : o[2]), u = s &&
|
|
55
|
+
const o = /^(.*)#(\d+)$/.exec(n), s = o ? ke(e, o[1]) : void 0, i = Number(o == null ? void 0 : o[2]), u = s && C(s.query) ? s.query.union[i] : void 0;
|
|
56
56
|
return s && u ? {
|
|
57
57
|
id: n,
|
|
58
58
|
alias: s.alias,
|
|
@@ -148,7 +148,7 @@ function ye(e, n, r = []) {
|
|
|
148
148
|
if (l === "SUM" || l === "AVG") return "decimal";
|
|
149
149
|
if ((l === "MIN" || l === "MAX") && u.args[0]) return s(u.args[0]);
|
|
150
150
|
}
|
|
151
|
-
return u.type === "literal" && typeof u.value == "number" ? "decimal" : u.type === "literal" && u.as ? Yn[u.as] : "varchar";
|
|
151
|
+
return u.type === "arithmetic" ? u.operator !== "/" && s(u.left) === "integer" && s(u.right) === "integer" ? "integer" : "decimal" : u.type === "literal" && typeof u.value == "number" ? "decimal" : u.type === "literal" && u.as ? Yn[u.as] : "varchar";
|
|
152
152
|
}, i = (u) => {
|
|
153
153
|
var d, f;
|
|
154
154
|
if (u.type !== "field" || u.table === void 0) return !1;
|
|
@@ -175,7 +175,7 @@ function qt(e, n, r = []) {
|
|
|
175
175
|
return S(n).filter((t) => t.table === void 0).map((t) => Ze(e, t, r));
|
|
176
176
|
}
|
|
177
177
|
function Gt(e, n = P) {
|
|
178
|
-
if (
|
|
178
|
+
if (C(e)) return !1;
|
|
179
179
|
const r = e;
|
|
180
180
|
return (r.groupBy ?? []).length === 0 && r.select.length > 0 && r.select.every((t) => ne(t.expression, n)) && jn(r, n).select.length === 0;
|
|
181
181
|
}
|
|
@@ -295,6 +295,12 @@ const et = {
|
|
|
295
295
|
// Functions
|
|
296
296
|
addArg: "Add Arg",
|
|
297
297
|
removeArg: "Remove Arg",
|
|
298
|
+
// Calculations (+ − × ÷): its two values, in order, and its operator.
|
|
299
|
+
calcFirst: "First value",
|
|
300
|
+
calcSecond: "Second value",
|
|
301
|
+
calcOperator: "Operator",
|
|
302
|
+
/** Makes a calculation the first value of a new one. */
|
|
303
|
+
wrapInCalculation: "Wrap in Calculation",
|
|
298
304
|
// Value type menu
|
|
299
305
|
typeField: "Field",
|
|
300
306
|
typeValue: "Value",
|
|
@@ -307,6 +313,8 @@ const et = {
|
|
|
307
313
|
typeDate: "Date",
|
|
308
314
|
typeBoolean: "Yes / No",
|
|
309
315
|
typeFunction: "Function",
|
|
316
|
+
/** A calculation, `a + b` (issue 26). */
|
|
317
|
+
typeCalculation: "Calculation",
|
|
310
318
|
typeExpression: "Expression",
|
|
311
319
|
/** A named param (set by the application, shown read-only). */
|
|
312
320
|
typeParam: "Parameter",
|
|
@@ -741,6 +749,7 @@ function k(e) {
|
|
|
741
749
|
t.table && n.add(t.table);
|
|
742
750
|
break;
|
|
743
751
|
case "binary":
|
|
752
|
+
case "arithmetic":
|
|
744
753
|
r(t.left), r(t.right);
|
|
745
754
|
break;
|
|
746
755
|
case "logical":
|
|
@@ -1118,7 +1127,7 @@ function Zt(e, n, r) {
|
|
|
1118
1127
|
function er(e, n, r, t) {
|
|
1119
1128
|
return r.length === 0 ? he(e, n, t) : U(n) ? ze(n, r, (o) => he(e, o, t)) : n;
|
|
1120
1129
|
}
|
|
1121
|
-
const un = (e) => e.query !== void 0 &&
|
|
1130
|
+
const un = (e) => e.query !== void 0 && !C(e.query);
|
|
1122
1131
|
function ln(e) {
|
|
1123
1132
|
const n = /* @__PURE__ */ new Map();
|
|
1124
1133
|
return e.relations.forEach((r) => {
|
|
@@ -1141,7 +1150,7 @@ function cn(e, n) {
|
|
|
1141
1150
|
table: r.has(t) ? r.get(t) : t
|
|
1142
1151
|
}));
|
|
1143
1152
|
}
|
|
1144
|
-
const
|
|
1153
|
+
const Ce = (e, n) => cn(e, n).map((r) => r.table);
|
|
1145
1154
|
function Fe(e, n) {
|
|
1146
1155
|
const r = new Map(S(e).map((t) => [v(t), t.table]));
|
|
1147
1156
|
return Ne(n, (t) => {
|
|
@@ -1160,14 +1169,14 @@ function dn(e, n) {
|
|
|
1160
1169
|
function dt(e, n, r) {
|
|
1161
1170
|
const t = J(e, r);
|
|
1162
1171
|
return j(n.where).filter((o) => {
|
|
1163
|
-
const s =
|
|
1172
|
+
const s = Ce(n, o);
|
|
1164
1173
|
return s.length > 0 && s.every((i) => i !== void 0 && t.has(i));
|
|
1165
1174
|
});
|
|
1166
1175
|
}
|
|
1167
1176
|
function nr(e, n, r) {
|
|
1168
1177
|
const t = J(e, r);
|
|
1169
1178
|
return j(n.where).some((o) => {
|
|
1170
|
-
const s =
|
|
1179
|
+
const s = Ce(n, o);
|
|
1171
1180
|
return s.some((i) => i !== void 0 && t.has(i)) && s.some((i) => i === void 0 || !t.has(i));
|
|
1172
1181
|
});
|
|
1173
1182
|
}
|
|
@@ -1210,7 +1219,7 @@ function ft(e, n) {
|
|
|
1210
1219
|
function mt(e, n, r) {
|
|
1211
1220
|
var s;
|
|
1212
1221
|
if (r.type !== "field" || r.table === void 0 || r.column === void 0) return !1;
|
|
1213
|
-
const t =
|
|
1222
|
+
const t = Ce(n, r)[0], o = (s = x(e, t)) == null ? void 0 : s.columns.find((i) => i.name === r.column);
|
|
1214
1223
|
return o !== void 0 && !o.nullable;
|
|
1215
1224
|
}
|
|
1216
1225
|
function fn(e, n, r, t) {
|
|
@@ -1238,7 +1247,7 @@ function mn(e, n, r, t, o, s) {
|
|
|
1238
1247
|
d = L(e, d, y);
|
|
1239
1248
|
});
|
|
1240
1249
|
const f = ((b = s == null ? void 0 : s.groupBy) == null ? void 0 : b.length) ?? 0, m = [...(s == null ? void 0 : s.joins) ?? []], g = d.joins.map((y) => {
|
|
1241
|
-
const w = m.findIndex((
|
|
1250
|
+
const w = m.findIndex(($) => $.table !== void 0 && $.table === y.table);
|
|
1242
1251
|
if (w === -1) return y;
|
|
1243
1252
|
const [T] = m.splice(w, 1);
|
|
1244
1253
|
return { ...y, id: T.id };
|
|
@@ -1248,9 +1257,9 @@ function mn(e, n, r, t, o, s) {
|
|
|
1248
1257
|
joins: g,
|
|
1249
1258
|
where: c.length > 0 ? { type: "logical", operator: "AND", operands: c } : void 0,
|
|
1250
1259
|
groupBy: i.map((y, w) => {
|
|
1251
|
-
var T,
|
|
1260
|
+
var T, $;
|
|
1252
1261
|
return {
|
|
1253
|
-
id: ((
|
|
1262
|
+
id: (($ = (T = s == null ? void 0 : s.groupBy) == null ? void 0 : T[w]) == null ? void 0 : $.id) ?? E(),
|
|
1254
1263
|
expression: y
|
|
1255
1264
|
};
|
|
1256
1265
|
}),
|
|
@@ -1298,7 +1307,7 @@ function tr(e, n, r) {
|
|
|
1298
1307
|
a = ge(r.value, "value");
|
|
1299
1308
|
const p = { id: E(), alias: a, expression: r.value }, b = mn(e, n, r.table, o, [p]), y = /* @__PURE__ */ new Set([
|
|
1300
1309
|
...S(n).map(v),
|
|
1301
|
-
...R(e).map((
|
|
1310
|
+
...R(e).map(($) => $.name)
|
|
1302
1311
|
]), w = `${r.table}_per_${b.keyNames.join("_and_")}`.slice(0, D - 4);
|
|
1303
1312
|
u = K(w, y);
|
|
1304
1313
|
const T = {
|
|
@@ -1354,7 +1363,7 @@ function yn(e, n, r) {
|
|
|
1354
1363
|
a,
|
|
1355
1364
|
(l, c) => yn(
|
|
1356
1365
|
e,
|
|
1357
|
-
u &&
|
|
1366
|
+
u && C(u) === C(a) ? Y(u)[c] : void 0,
|
|
1358
1367
|
l
|
|
1359
1368
|
)
|
|
1360
1369
|
), s = r.from.query ? (() => {
|
|
@@ -1427,6 +1436,9 @@ function bn(e, n, r) {
|
|
|
1427
1436
|
const u = o == null ? void 0 : o.returns;
|
|
1428
1437
|
return u === "arg" ? t(e.args[0]) : u;
|
|
1429
1438
|
}
|
|
1439
|
+
// A number: whole when both sides are and it isn't a division.
|
|
1440
|
+
case "arithmetic":
|
|
1441
|
+
return e.operator !== "/" && t(e.left) === "integer" && t(e.right) === "integer" ? "integer" : "number";
|
|
1430
1442
|
case "if":
|
|
1431
1443
|
return t(e.then) ?? t(e.else);
|
|
1432
1444
|
case "case":
|
|
@@ -1511,15 +1523,15 @@ function ur(e, n = !1) {
|
|
|
1511
1523
|
"IS NOT NULL"
|
|
1512
1524
|
] : e === "boolean" ? ["=", "!=", me, "IS NULL", "IS NOT NULL"] : ["=", "!=", me, "<", "<=", ">", ">=", "IN", "BETWEEN", "IS NULL", "IS NOT NULL"];
|
|
1513
1525
|
}
|
|
1514
|
-
const wn = "source", Sn = "rows_", B = (e) => e ? { type: "literal", value: null, as: e } : { type: "literal", value: null }, F = (e) => e.type === "literal" && e.value === null,
|
|
1526
|
+
const wn = "source", Sn = "rows_", B = (e) => e ? { type: "literal", value: null, as: e } : { type: "literal", value: null }, F = (e) => e.type === "literal" && e.value === null, $e = (e) => new Map(
|
|
1515
1527
|
S(e).map((n) => [v(n), n.table])
|
|
1516
1528
|
);
|
|
1517
1529
|
function Se(e, n) {
|
|
1518
|
-
const r =
|
|
1530
|
+
const r = $e(e);
|
|
1519
1531
|
return k(n).map((t) => r.get(t) ?? t);
|
|
1520
1532
|
}
|
|
1521
1533
|
function vn(e, n) {
|
|
1522
|
-
const r =
|
|
1534
|
+
const r = $e(e);
|
|
1523
1535
|
return Ne(n, (t) => {
|
|
1524
1536
|
if (t.type !== "field" || t.table === void 0) return t;
|
|
1525
1537
|
const o = r.get(t.table);
|
|
@@ -1527,7 +1539,7 @@ function vn(e, n) {
|
|
|
1527
1539
|
});
|
|
1528
1540
|
}
|
|
1529
1541
|
function Z(e, n, r) {
|
|
1530
|
-
const t =
|
|
1542
|
+
const t = $e(n);
|
|
1531
1543
|
return bn(r, (o) => {
|
|
1532
1544
|
var u;
|
|
1533
1545
|
const s = t.get(o.table ?? "") ?? o.table ?? "", i = (u = x(e, s)) == null ? void 0 : u.columns.find((a) => a.name === o.column);
|
|
@@ -1545,12 +1557,12 @@ const ee = (e) => e ? e.type === "logical" && e.operator === "AND" ? e.operands
|
|
|
1545
1557
|
}, I = (e) => e.from.table, Pe = (e, n) => x(e, n).label;
|
|
1546
1558
|
function ue(e) {
|
|
1547
1559
|
const { from: n } = e;
|
|
1548
|
-
return n.query &&
|
|
1560
|
+
return n.query && C(n.query) ? n : void 0;
|
|
1549
1561
|
}
|
|
1550
1562
|
function W(e, n) {
|
|
1551
1563
|
if (n === void 0) return ue(e);
|
|
1552
1564
|
const r = O(e).find((t) => t.id === n);
|
|
1553
|
-
return r &&
|
|
1565
|
+
return r && C(r.query) ? r : void 0;
|
|
1554
1566
|
}
|
|
1555
1567
|
function V(e, n, r) {
|
|
1556
1568
|
const t = { ...n, query: r };
|
|
@@ -1682,7 +1694,7 @@ function Qe(e, n, r, t) {
|
|
|
1682
1694
|
...h,
|
|
1683
1695
|
select: [...h.select, ...g.map((N) => y(N.name, N.others(h)))]
|
|
1684
1696
|
})), T = Tn([...i.map((h) => h.operand), ...ee(r.where)]);
|
|
1685
|
-
let
|
|
1697
|
+
let $ = {
|
|
1686
1698
|
id: "",
|
|
1687
1699
|
from: { table: r.table },
|
|
1688
1700
|
joins: [],
|
|
@@ -1692,15 +1704,15 @@ function Qe(e, n, r, t) {
|
|
|
1692
1704
|
...g.map((h) => y(h.name, h.own))
|
|
1693
1705
|
]
|
|
1694
1706
|
};
|
|
1695
|
-
[T,
|
|
1696
|
-
|
|
1707
|
+
[T, ...$.select.map((h) => h.expression)].forEach((h) => {
|
|
1708
|
+
$ = L(e, $, h);
|
|
1697
1709
|
});
|
|
1698
1710
|
const {
|
|
1699
1711
|
from: Mn,
|
|
1700
1712
|
joins: On,
|
|
1701
1713
|
select: Un,
|
|
1702
1714
|
where: Be
|
|
1703
|
-
} =
|
|
1715
|
+
} = $, Ln = {
|
|
1704
1716
|
from: Mn,
|
|
1705
1717
|
joins: On,
|
|
1706
1718
|
select: Un,
|
|
@@ -1708,7 +1720,7 @@ function Qe(e, n, r, t) {
|
|
|
1708
1720
|
};
|
|
1709
1721
|
return { union: [...w, Ln], added: f };
|
|
1710
1722
|
}
|
|
1711
|
-
function
|
|
1723
|
+
function Cn(e) {
|
|
1712
1724
|
const n = (o) => new Error(`addUnionTable: ${o}`);
|
|
1713
1725
|
if (e.from.query) throw n("the query reads from a derived table");
|
|
1714
1726
|
if (e.select.length === 0) throw n("the query picks no columns (SELECT *)");
|
|
@@ -1737,7 +1749,7 @@ function cr(e, n, r, t = {}) {
|
|
|
1737
1749
|
];
|
|
1738
1750
|
return { ...n, from: d, select: f };
|
|
1739
1751
|
}
|
|
1740
|
-
const s =
|
|
1752
|
+
const s = Cn(n), { union: i } = Qe(e, [s], r, t), u = t.alias ?? "stacked", a = i[0].select.map((l) => l.alias);
|
|
1741
1753
|
return {
|
|
1742
1754
|
id: n.id,
|
|
1743
1755
|
from: { id: E(), alias: u, query: { union: i, all: !0 } },
|
|
@@ -1754,7 +1766,7 @@ function dr(e, n, r = {}) {
|
|
|
1754
1766
|
const t = ue(n);
|
|
1755
1767
|
let o;
|
|
1756
1768
|
try {
|
|
1757
|
-
o = t ? t.query.union : [
|
|
1769
|
+
o = t ? t.query.union : [Cn(n)];
|
|
1758
1770
|
} catch {
|
|
1759
1771
|
return [];
|
|
1760
1772
|
}
|
|
@@ -1808,20 +1820,20 @@ function Nt(e, n) {
|
|
|
1808
1820
|
return s && u && s !== u && !o.includes(s) && !t.includes(u) ? [{ from: s, to: u }] : [];
|
|
1809
1821
|
});
|
|
1810
1822
|
}
|
|
1811
|
-
function
|
|
1823
|
+
function $n(e, n, r) {
|
|
1812
1824
|
let t = r;
|
|
1813
|
-
n &&
|
|
1825
|
+
n && C(n) && C(t) && n.union.length === t.union.length && (t = Tt(e, n, t));
|
|
1814
1826
|
const o = t;
|
|
1815
1827
|
return se(o, (s, i) => xe(
|
|
1816
1828
|
e,
|
|
1817
|
-
n &&
|
|
1829
|
+
n && C(n) === C(o) ? Y(n)[i] : void 0,
|
|
1818
1830
|
s
|
|
1819
1831
|
));
|
|
1820
1832
|
}
|
|
1821
1833
|
function xe(e, n, r) {
|
|
1822
1834
|
const t = (f) => {
|
|
1823
1835
|
var m;
|
|
1824
|
-
return
|
|
1836
|
+
return $n(
|
|
1825
1837
|
e,
|
|
1826
1838
|
n && ((m = O(n).find((g) => g.id === f.id)) == null ? void 0 : m.query),
|
|
1827
1839
|
f.query
|
|
@@ -1837,7 +1849,7 @@ function xe(e, n, r) {
|
|
|
1837
1849
|
const l = { ...r, from: i, joins: a }, c = O(l).flatMap((f) => {
|
|
1838
1850
|
var g;
|
|
1839
1851
|
const m = n && ((g = O(n).find((p) => p.id === f.id)) == null ? void 0 : g.query);
|
|
1840
|
-
return m &&
|
|
1852
|
+
return m && C(m) && C(f.query) ? Nt(m, f.query).map((p) => ({ ...p, alias: f.alias })) : [];
|
|
1841
1853
|
});
|
|
1842
1854
|
if (c.length === 0) return l;
|
|
1843
1855
|
const d = (f) => {
|
|
@@ -1852,7 +1864,7 @@ function Et(e, n, r) {
|
|
|
1852
1864
|
const t = n && U(n) ? n : void 0;
|
|
1853
1865
|
return Te(xe(e, t, r), (o, s) => {
|
|
1854
1866
|
var i, u;
|
|
1855
|
-
return
|
|
1867
|
+
return $n(
|
|
1856
1868
|
e,
|
|
1857
1869
|
(u = (i = t == null ? void 0 : t.shared) == null ? void 0 : i.find((a) => a.id === s.id)) == null ? void 0 : u.query,
|
|
1858
1870
|
o
|
|
@@ -1863,7 +1875,7 @@ function An(e) {
|
|
|
1863
1875
|
return e.type === "field" ? [e] : oe(e).flatMap(An);
|
|
1864
1876
|
}
|
|
1865
1877
|
const xn = (e, n, r) => An(e).some((t) => t.table === n && r.has(t.column ?? ""));
|
|
1866
|
-
function
|
|
1878
|
+
function Ct(e, n, r) {
|
|
1867
1879
|
const t = n.query.union.filter((a, l) => l !== r), o = [
|
|
1868
1880
|
e.where,
|
|
1869
1881
|
e.having,
|
|
@@ -1884,12 +1896,12 @@ function $t(e, n, r) {
|
|
|
1884
1896
|
function fr(e, n, r) {
|
|
1885
1897
|
const t = W(e, r);
|
|
1886
1898
|
if (!t || !t.query.union[n] || t.query.union.length < 2) return e;
|
|
1887
|
-
const o =
|
|
1899
|
+
const o = Ct(e, t, n), s = t.query.union.filter((l, c) => c !== n), i = o.at.size < s[0].select.length ? o : { at: /* @__PURE__ */ new Set(), names: /* @__PURE__ */ new Set() }, u = e.select.filter(
|
|
1888
1900
|
(l) => !xn(l.expression, t.alias, i.names)
|
|
1889
1901
|
), a = s.map((l) => ({ ...l, select: l.select.filter((c, d) => !i.at.has(d)) }));
|
|
1890
1902
|
return V({ ...e, select: u }, t, { ...t.query, union: a });
|
|
1891
1903
|
}
|
|
1892
|
-
function
|
|
1904
|
+
function $t(e, n) {
|
|
1893
1905
|
const r = /* @__PURE__ */ new Set([
|
|
1894
1906
|
...n ? S(n).map(v) : [],
|
|
1895
1907
|
...e.tables.map((o) => o.name)
|
|
@@ -1958,7 +1970,7 @@ function yr(e, n, r, t) {
|
|
|
1958
1970
|
function hr(e, n, r, t) {
|
|
1959
1971
|
const o = {
|
|
1960
1972
|
id: r,
|
|
1961
|
-
alias:
|
|
1973
|
+
alias: $t(e, n),
|
|
1962
1974
|
joinType: "left",
|
|
1963
1975
|
query: { union: [{ from: t, joins: [], select: [] }], all: !0 }
|
|
1964
1976
|
};
|
|
@@ -2087,7 +2099,7 @@ const Tr = [
|
|
|
2087
2099
|
function Nr(e) {
|
|
2088
2100
|
return kt.includes(e);
|
|
2089
2101
|
}
|
|
2090
|
-
const kn = (e) => {
|
|
2102
|
+
const Er = ["+", "-", "*", "/"], kn = (e) => {
|
|
2091
2103
|
const n = /* @__PURE__ */ new Map();
|
|
2092
2104
|
return We(e, (r) => (r.type === "param" && r.relative && (n.has(r.name) || n.set(r.name, /* @__PURE__ */ new Set()), n.get(r.name).add(JSON.stringify(r.relative))), r)), n;
|
|
2093
2105
|
};
|
|
@@ -2120,7 +2132,7 @@ function In(e, n) {
|
|
|
2120
2132
|
};
|
|
2121
2133
|
return (e.shared ?? []).forEach((a) => Y(a.query).forEach(u)), u(e), r;
|
|
2122
2134
|
}
|
|
2123
|
-
function
|
|
2135
|
+
function Cr(e, n) {
|
|
2124
2136
|
const r = kn(e);
|
|
2125
2137
|
return [...In(e, n)].map(([t, { types: o, columns: s }]) => {
|
|
2126
2138
|
const i = r.get(t);
|
|
@@ -2136,10 +2148,10 @@ function Er(e, n) {
|
|
|
2136
2148
|
function $r(e) {
|
|
2137
2149
|
return [...kn(e)].filter(([, n]) => n.size > 1).map(([n]) => n);
|
|
2138
2150
|
}
|
|
2139
|
-
function
|
|
2151
|
+
function Ar(e, n) {
|
|
2140
2152
|
return [...In(e, n)].filter(([, r]) => r.types.size > 1).map(([r]) => r);
|
|
2141
2153
|
}
|
|
2142
|
-
function
|
|
2154
|
+
function xr(e, n) {
|
|
2143
2155
|
const r = new Map(Object.entries(n));
|
|
2144
2156
|
return We(e, (t) => {
|
|
2145
2157
|
if (t.type !== "param") return t;
|
|
@@ -2149,7 +2161,7 @@ function Ar(e, n) {
|
|
|
2149
2161
|
});
|
|
2150
2162
|
}
|
|
2151
2163
|
export {
|
|
2152
|
-
|
|
2164
|
+
Wt as $,
|
|
2153
2165
|
Tr as A,
|
|
2154
2166
|
Ie as B,
|
|
2155
2167
|
Rt as C,
|
|
@@ -2160,57 +2172,58 @@ export {
|
|
|
2160
2172
|
Gt as H,
|
|
2161
2173
|
X as I,
|
|
2162
2174
|
ye as J,
|
|
2163
|
-
|
|
2175
|
+
Ar as K,
|
|
2164
2176
|
$r as L,
|
|
2165
2177
|
Wn as M,
|
|
2166
2178
|
an as N,
|
|
2167
2179
|
rr as O,
|
|
2168
2180
|
nr as P,
|
|
2169
|
-
|
|
2170
|
-
|
|
2171
|
-
|
|
2172
|
-
|
|
2173
|
-
|
|
2174
|
-
|
|
2175
|
-
|
|
2176
|
-
|
|
2177
|
-
|
|
2178
|
-
|
|
2179
|
-
|
|
2181
|
+
Er as Q,
|
|
2182
|
+
Hn as R,
|
|
2183
|
+
hn as S,
|
|
2184
|
+
bn as T,
|
|
2185
|
+
ht as U,
|
|
2186
|
+
Zn as V,
|
|
2187
|
+
Lt as W,
|
|
2188
|
+
Xe as X,
|
|
2189
|
+
_t as Y,
|
|
2190
|
+
Jt as Z,
|
|
2191
|
+
Vt as _,
|
|
2180
2192
|
Ot as a,
|
|
2181
|
-
|
|
2182
|
-
|
|
2183
|
-
|
|
2184
|
-
|
|
2185
|
-
|
|
2186
|
-
|
|
2187
|
-
|
|
2188
|
-
|
|
2189
|
-
|
|
2190
|
-
|
|
2191
|
-
|
|
2192
|
-
|
|
2193
|
-
|
|
2194
|
-
|
|
2195
|
-
|
|
2196
|
-
|
|
2197
|
-
|
|
2198
|
-
|
|
2199
|
-
|
|
2200
|
-
|
|
2201
|
-
|
|
2202
|
-
|
|
2203
|
-
|
|
2204
|
-
|
|
2205
|
-
|
|
2206
|
-
|
|
2207
|
-
|
|
2208
|
-
|
|
2209
|
-
|
|
2210
|
-
|
|
2211
|
-
|
|
2212
|
-
|
|
2213
|
-
|
|
2193
|
+
jt as a0,
|
|
2194
|
+
ir as a1,
|
|
2195
|
+
or as a2,
|
|
2196
|
+
ar as a3,
|
|
2197
|
+
ur as a4,
|
|
2198
|
+
sr as a5,
|
|
2199
|
+
vt as a6,
|
|
2200
|
+
xt as a7,
|
|
2201
|
+
Vn as a8,
|
|
2202
|
+
nn as a9,
|
|
2203
|
+
Ft as aa,
|
|
2204
|
+
Xt as ab,
|
|
2205
|
+
zt as ac,
|
|
2206
|
+
Yt as ad,
|
|
2207
|
+
Ze as ae,
|
|
2208
|
+
Dt as af,
|
|
2209
|
+
er as ag,
|
|
2210
|
+
lt as ah,
|
|
2211
|
+
Pt as ai,
|
|
2212
|
+
ut as aj,
|
|
2213
|
+
it as ak,
|
|
2214
|
+
ae as al,
|
|
2215
|
+
Zt as am,
|
|
2216
|
+
qe as an,
|
|
2217
|
+
tn as ao,
|
|
2218
|
+
At as ap,
|
|
2219
|
+
qt as aq,
|
|
2220
|
+
Ht as ar,
|
|
2221
|
+
Kt as as,
|
|
2222
|
+
Kn as at,
|
|
2223
|
+
He as au,
|
|
2224
|
+
ue as av,
|
|
2225
|
+
J as aw,
|
|
2226
|
+
he as ax,
|
|
2214
2227
|
Ut as b,
|
|
2215
2228
|
Qt as c,
|
|
2216
2229
|
tr as d,
|
|
@@ -2219,21 +2232,21 @@ export {
|
|
|
2219
2232
|
cr as g,
|
|
2220
2233
|
mr as h,
|
|
2221
2234
|
gr as i,
|
|
2222
|
-
|
|
2235
|
+
$t as j,
|
|
2223
2236
|
pt as k,
|
|
2224
2237
|
pr as l,
|
|
2225
2238
|
dn as m,
|
|
2226
2239
|
dr as n,
|
|
2227
2240
|
lr as o,
|
|
2228
2241
|
vr as p,
|
|
2229
|
-
|
|
2242
|
+
Cr as q,
|
|
2230
2243
|
fr as r,
|
|
2231
2244
|
br as s,
|
|
2232
2245
|
k as t,
|
|
2233
2246
|
wr as u,
|
|
2234
2247
|
G as v,
|
|
2235
2248
|
gn as w,
|
|
2236
|
-
|
|
2249
|
+
xr as x,
|
|
2237
2250
|
Sr as y,
|
|
2238
2251
|
Nr as z
|
|
2239
2252
|
};
|