@epam/statgpt-sdmx-toolkit 0.4.0-rc.46 → 0.4.0-rc.48
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/index.cjs +2 -2
- package/index.mjs +195 -199
- package/package.json +3 -3
package/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const
|
|
1
|
+
const z = (t) => {
|
|
2
2
|
if (t != null) {
|
|
3
3
|
const e = t.split("=");
|
|
4
4
|
return e.length === 1 ? t : e[1];
|
|
@@ -6,7 +6,7 @@ const K = (t) => {
|
|
|
6
6
|
}, C = (t) => {
|
|
7
7
|
if (t == null)
|
|
8
8
|
return {};
|
|
9
|
-
const e =
|
|
9
|
+
const e = z(t), n = {
|
|
10
10
|
agency: "",
|
|
11
11
|
id: "",
|
|
12
12
|
version: ""
|
|
@@ -15,11 +15,11 @@ const K = (t) => {
|
|
|
15
15
|
}, tt = (t) => {
|
|
16
16
|
const [e, n] = t.split(")."), { agency: r, id: s, version: a } = C(e + ")");
|
|
17
17
|
return { childId: n, agency: r, id: s, version: a };
|
|
18
|
-
},
|
|
18
|
+
}, ue = (t, e, n) => {
|
|
19
19
|
const r = e === "" ? "" : `(${e})`;
|
|
20
20
|
return `${n}:${t}${r}`;
|
|
21
21
|
};
|
|
22
|
-
var
|
|
22
|
+
var de = /* @__PURE__ */ ((t) => (t.DESCENDANTS = "descendants", t.NONE = "none", t.ALL = "all", t))(de || {}), nt = /* @__PURE__ */ ((t) => (t.EXACT = "exact", t.AVAILABLE = "available", t))(nt || {});
|
|
23
23
|
function At(t) {
|
|
24
24
|
return {
|
|
25
25
|
data: {
|
|
@@ -65,7 +65,7 @@ class qa {
|
|
|
65
65
|
const { agency: s, id: a, version: o } = C(e), i = {
|
|
66
66
|
filters: n || [],
|
|
67
67
|
mode: nt.AVAILABLE,
|
|
68
|
-
references:
|
|
68
|
+
references: de.NONE
|
|
69
69
|
}, c = _t(s, a, o);
|
|
70
70
|
if (this.client.config.sdmxProxyUrl) {
|
|
71
71
|
const u = await this.client.postRequest(
|
|
@@ -84,33 +84,30 @@ class qa {
|
|
|
84
84
|
);
|
|
85
85
|
}
|
|
86
86
|
}
|
|
87
|
-
var
|
|
87
|
+
var G = /* @__PURE__ */ ((t) => (t.CSV = "csv", t.JSON = "json", t.XML = "xml", t))(G || {}), Yt = /* @__PURE__ */ ((t) => (t.ID = "id", t.NAME = "name", t.ID_NAME = "both", t))(Yt || {}), Ct = /* @__PURE__ */ ((t) => (t.FULL_DATASET = "full", t.DATA_IN_TABLE = "query", t))(Ct || {});
|
|
88
88
|
const Lt = (t, e) => {
|
|
89
89
|
switch (t) {
|
|
90
|
-
case
|
|
91
|
-
return
|
|
90
|
+
case G.CSV:
|
|
91
|
+
return Ie(
|
|
92
92
|
"application/vnd.sdmx.data+csv;version=2.0.0",
|
|
93
93
|
e
|
|
94
94
|
);
|
|
95
|
-
case
|
|
96
|
-
return
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
);
|
|
100
|
-
case X.JSON:
|
|
101
|
-
return B(`application/${t}`, e);
|
|
95
|
+
case G.XML:
|
|
96
|
+
return "application/vnd.sdmx.data+xml;version=3.0.0";
|
|
97
|
+
case G.JSON:
|
|
98
|
+
return "application/vnd.sdmx.data+json;version=2.1";
|
|
102
99
|
default:
|
|
103
|
-
return
|
|
100
|
+
return Ie(
|
|
104
101
|
"application/vnd.sdmx.data+csv;version=2.0.0",
|
|
105
102
|
e
|
|
106
103
|
);
|
|
107
104
|
}
|
|
108
|
-
},
|
|
105
|
+
}, Ie = (t, e) => `${t}; labels=${e}`;
|
|
109
106
|
var rt = /* @__PURE__ */ ((t) => (t.REFERENCE_PARTIAL = "referencepartial", t.FULL = "full", t))(rt || {});
|
|
110
107
|
const St = "all", $t = "sdmx/3.0/data/dataflow", st = "&", _e = ":", Wt = "=", qt = "+", Ua = ",", Ut = "*", Ye = (t, e, n) => {
|
|
111
108
|
const { filterKey: r, timeFilter: s } = n, { agency: a, id: o, version: i } = C(t), c = [s || "", e].filter((d) => !!d).join(st);
|
|
112
109
|
return `${`${$t}/${a}/${o}/${i}`}/${r || Ut}?${c}`;
|
|
113
|
-
}, Ht = (t = "", e = "", n = "", r =
|
|
110
|
+
}, Ht = (t = "", e = "", n = "", r = de.DESCENDANTS) => `sdmx/3.0/structure/dataflow/${t}/${e}/${n}?references=${r}&detail=${rt.REFERENCE_PARTIAL}`;
|
|
114
111
|
class Ha {
|
|
115
112
|
constructor(e) {
|
|
116
113
|
this.client = e;
|
|
@@ -139,7 +136,6 @@ class Ha {
|
|
|
139
136
|
}
|
|
140
137
|
async downloadDataSet(e, n, r, s, a, o, i = !1, c) {
|
|
141
138
|
const u = new URLSearchParams({
|
|
142
|
-
format: n,
|
|
143
139
|
compress: "false",
|
|
144
140
|
attributes: i ? "all" : "none",
|
|
145
141
|
limit: "1000"
|
|
@@ -158,13 +154,13 @@ class Ha {
|
|
|
158
154
|
);
|
|
159
155
|
}
|
|
160
156
|
}
|
|
161
|
-
const
|
|
157
|
+
const Ft = (t, e) => t.error || t.message || `${e.status} ${e.statusText}`, Qt = "application/json", Bt = "Content-Type", j = "Api-Key", Vt = "X-CONVERSATION-ID", X = "Ocp-Apim-Subscription-Key";
|
|
162
158
|
class Ce extends Error {
|
|
163
159
|
constructor(e) {
|
|
164
160
|
super(e.message), this.isHttpError = !0, this.name = "HttpError", this.code = e.code, this.status = e.status, this.details = e.details, this.displayMessage = e.displayMessage;
|
|
165
161
|
}
|
|
166
162
|
}
|
|
167
|
-
const at = 6048e5, Gt = 864e5,
|
|
163
|
+
const at = 6048e5, Gt = 864e5, le = 6e4, fe = 36e5, jt = 1e3, Le = /* @__PURE__ */ Symbol.for("constructDateFrom");
|
|
168
164
|
function E(t, e) {
|
|
169
165
|
return typeof t == "function" ? t(e) : t && typeof t == "object" && Le in t ? t[Le](e) : t instanceof Date ? new t.constructor(e) : new Date(e);
|
|
170
166
|
}
|
|
@@ -175,9 +171,9 @@ function ot(t, e, n) {
|
|
|
175
171
|
const r = p(t, n?.in);
|
|
176
172
|
return isNaN(e) ? E(n?.in || t, NaN) : (e && r.setDate(r.getDate() + e), r);
|
|
177
173
|
}
|
|
178
|
-
let
|
|
174
|
+
let Xt = {};
|
|
179
175
|
function $() {
|
|
180
|
-
return
|
|
176
|
+
return Xt;
|
|
181
177
|
}
|
|
182
178
|
function _(t, e) {
|
|
183
179
|
const n = $(), r = e?.weekStartsOn ?? e?.locale?.options?.weekStartsOn ?? n.weekStartsOn ?? n.locale?.options?.weekStartsOn ?? 0, s = p(t, e?.in), a = s.getDay(), o = (a < r ? 7 : 0) + a - r;
|
|
@@ -194,7 +190,7 @@ function it(t, e) {
|
|
|
194
190
|
const i = S(o);
|
|
195
191
|
return n.getTime() >= a.getTime() ? r + 1 : n.getTime() >= i.getTime() ? r : r - 1;
|
|
196
192
|
}
|
|
197
|
-
function
|
|
193
|
+
function K(t) {
|
|
198
194
|
const e = p(t), n = new Date(
|
|
199
195
|
Date.UTC(
|
|
200
196
|
e.getFullYear(),
|
|
@@ -224,7 +220,7 @@ function Kt(t, e, n) {
|
|
|
224
220
|
n?.in,
|
|
225
221
|
t,
|
|
226
222
|
e
|
|
227
|
-
), a = Se(r), o = Se(s), i = +a -
|
|
223
|
+
), a = Se(r), o = Se(s), i = +a - K(a), c = +o - K(o);
|
|
228
224
|
return Math.round((i - c) / Gt);
|
|
229
225
|
}
|
|
230
226
|
function Jt(t, e) {
|
|
@@ -234,7 +230,7 @@ function Jt(t, e) {
|
|
|
234
230
|
function Zt(t) {
|
|
235
231
|
return t instanceof Date || typeof t == "object" && Object.prototype.toString.call(t) === "[object Date]";
|
|
236
232
|
}
|
|
237
|
-
function
|
|
233
|
+
function ne(t) {
|
|
238
234
|
return !(!Zt(t) && typeof t != "number" || isNaN(+p(t)));
|
|
239
235
|
}
|
|
240
236
|
function en(t, e) {
|
|
@@ -308,7 +304,7 @@ const tn = {
|
|
|
308
304
|
const s = tn[t];
|
|
309
305
|
return typeof s == "string" ? r = s : e === 1 ? r = s.one : r = s.other.replace("{{count}}", e.toString()), n?.addSuffix ? n.comparison && n.comparison > 0 ? "in " + r : r + " ago" : r;
|
|
310
306
|
};
|
|
311
|
-
function
|
|
307
|
+
function ee(t) {
|
|
312
308
|
return (e = {}) => {
|
|
313
309
|
const n = e.width ? String(e.width) : t.defaultWidth;
|
|
314
310
|
return t.formats[n] || t.formats[t.defaultWidth];
|
|
@@ -330,15 +326,15 @@ const rn = {
|
|
|
330
326
|
medium: "{{date}}, {{time}}",
|
|
331
327
|
short: "{{date}}, {{time}}"
|
|
332
328
|
}, on = {
|
|
333
|
-
date:
|
|
329
|
+
date: ee({
|
|
334
330
|
formats: rn,
|
|
335
331
|
defaultWidth: "full"
|
|
336
332
|
}),
|
|
337
|
-
time:
|
|
333
|
+
time: ee({
|
|
338
334
|
formats: sn,
|
|
339
335
|
defaultWidth: "full"
|
|
340
336
|
}),
|
|
341
|
-
dateTime:
|
|
337
|
+
dateTime: ee({
|
|
342
338
|
formats: an,
|
|
343
339
|
defaultWidth: "full"
|
|
344
340
|
})
|
|
@@ -680,7 +676,7 @@ function ut(t, e) {
|
|
|
680
676
|
const n = p(t, e?.in), r = +S(n) - +Jt(n);
|
|
681
677
|
return Math.round(r / at) + 1;
|
|
682
678
|
}
|
|
683
|
-
function
|
|
679
|
+
function me(t, e) {
|
|
684
680
|
const n = p(t, e?.in), r = n.getFullYear(), s = $(), a = e?.firstWeekContainsDate ?? e?.locale?.options?.firstWeekContainsDate ?? s.firstWeekContainsDate ?? s.locale?.options?.firstWeekContainsDate ?? 1, o = E(e?.in || t, 0);
|
|
685
681
|
o.setFullYear(r + 1, 0, a), o.setHours(0, 0, 0, 0);
|
|
686
682
|
const i = _(o, e), c = E(e?.in || t, 0);
|
|
@@ -689,7 +685,7 @@ function he(t, e) {
|
|
|
689
685
|
return +n >= +i ? r + 1 : +n >= +u ? r : r - 1;
|
|
690
686
|
}
|
|
691
687
|
function Cn(t, e) {
|
|
692
|
-
const n = $(), r = e?.firstWeekContainsDate ?? e?.locale?.options?.firstWeekContainsDate ?? n.firstWeekContainsDate ?? n.locale?.options?.firstWeekContainsDate ?? 1, s =
|
|
688
|
+
const n = $(), r = e?.firstWeekContainsDate ?? e?.locale?.options?.firstWeekContainsDate ?? n.firstWeekContainsDate ?? n.locale?.options?.firstWeekContainsDate ?? 1, s = me(t, e), a = E(e?.in || t, 0);
|
|
693
689
|
return a.setFullYear(s, 0, r), a.setHours(0, 0, 0, 0), _(a, e);
|
|
694
690
|
}
|
|
695
691
|
function dt(t, e) {
|
|
@@ -787,7 +783,7 @@ const k = {
|
|
|
787
783
|
},
|
|
788
784
|
// Local week-numbering year
|
|
789
785
|
Y: function(t, e, n, r) {
|
|
790
|
-
const s =
|
|
786
|
+
const s = me(t, r), a = s > 0 ? s : 1 - s;
|
|
791
787
|
if (e === "YY") {
|
|
792
788
|
const o = a % 100;
|
|
793
789
|
return g(o, 2);
|
|
@@ -1333,7 +1329,7 @@ const Ue = (t, e) => {
|
|
|
1333
1329
|
break;
|
|
1334
1330
|
}
|
|
1335
1331
|
return a.replace("{{date}}", Ue(r, e)).replace("{{time}}", lt(s, e));
|
|
1336
|
-
},
|
|
1332
|
+
}, re = {
|
|
1337
1333
|
p: lt,
|
|
1338
1334
|
P: Ln
|
|
1339
1335
|
}, Sn = /^D+$/, $n = /^Y+$/, Wn = ["D", "DD", "YY", "YYYY"];
|
|
@@ -1343,7 +1339,7 @@ function ft(t) {
|
|
|
1343
1339
|
function mt(t) {
|
|
1344
1340
|
return $n.test(t);
|
|
1345
1341
|
}
|
|
1346
|
-
function
|
|
1342
|
+
function se(t, e, n) {
|
|
1347
1343
|
const r = qn(t, e, n);
|
|
1348
1344
|
if (console.warn(r), Wn.includes(t)) throw new RangeError(r);
|
|
1349
1345
|
}
|
|
@@ -1351,15 +1347,15 @@ function qn(t, e, n) {
|
|
|
1351
1347
|
const r = t[0] === "Y" ? "years" : "days of the month";
|
|
1352
1348
|
return `Use \`${t.toLowerCase()}\` instead of \`${t}\` (in \`${e}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`;
|
|
1353
1349
|
}
|
|
1354
|
-
const Un = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, Hn = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,
|
|
1350
|
+
const Un = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, Hn = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, Fn = /^'([^]*?)'?$/, Qn = /''/g, Bn = /[a-zA-Z]/;
|
|
1355
1351
|
function Vn(t, e, n) {
|
|
1356
1352
|
const r = $(), s = r.locale ?? ct, a = r.firstWeekContainsDate ?? r.locale?.options?.firstWeekContainsDate ?? 1, o = r.weekStartsOn ?? r.locale?.options?.weekStartsOn ?? 0, i = p(t, n?.in);
|
|
1357
|
-
if (!
|
|
1353
|
+
if (!ne(i))
|
|
1358
1354
|
throw new RangeError("Invalid time value");
|
|
1359
1355
|
let c = e.match(Hn).map((d) => {
|
|
1360
1356
|
const l = d[0];
|
|
1361
1357
|
if (l === "p" || l === "P") {
|
|
1362
|
-
const m =
|
|
1358
|
+
const m = re[l];
|
|
1363
1359
|
return m(d, s.formatLong);
|
|
1364
1360
|
}
|
|
1365
1361
|
return d;
|
|
@@ -1386,19 +1382,19 @@ function Vn(t, e, n) {
|
|
|
1386
1382
|
return c.map((d) => {
|
|
1387
1383
|
if (!d.isToken) return d.value;
|
|
1388
1384
|
const l = d.value;
|
|
1389
|
-
(mt(l) || ft(l)) &&
|
|
1385
|
+
(mt(l) || ft(l)) && se(l, e, String(t));
|
|
1390
1386
|
const m = $e[l[0]];
|
|
1391
1387
|
return m(i, l, s.localize, u);
|
|
1392
1388
|
}).join("");
|
|
1393
1389
|
}
|
|
1394
1390
|
function Gn(t) {
|
|
1395
|
-
const e = t.match(
|
|
1396
|
-
return e ? e[1].replace(
|
|
1391
|
+
const e = t.match(Fn);
|
|
1392
|
+
return e ? e[1].replace(Qn, "'") : t;
|
|
1397
1393
|
}
|
|
1398
|
-
function
|
|
1394
|
+
function jn() {
|
|
1399
1395
|
return Object.assign({}, $());
|
|
1400
1396
|
}
|
|
1401
|
-
function
|
|
1397
|
+
function Xn(t, e) {
|
|
1402
1398
|
const n = p(t, e?.in).getDay();
|
|
1403
1399
|
return n === 0 ? 7 : n;
|
|
1404
1400
|
}
|
|
@@ -1550,7 +1546,7 @@ function A(t, e) {
|
|
|
1550
1546
|
};
|
|
1551
1547
|
const r = n[1] === "+" ? 1 : -1, s = n[2] ? parseInt(n[2], 10) : 0, a = n[3] ? parseInt(n[3], 10) : 0, o = n[5] ? parseInt(n[5], 10) : 0;
|
|
1552
1548
|
return {
|
|
1553
|
-
value: r * (s *
|
|
1549
|
+
value: r * (s * fe + a * le + o * jt),
|
|
1554
1550
|
rest: e.slice(n[0].length)
|
|
1555
1551
|
};
|
|
1556
1552
|
}
|
|
@@ -1571,7 +1567,7 @@ function b(t, e) {
|
|
|
1571
1567
|
return y(new RegExp("^\\d{1," + t + "}"), e);
|
|
1572
1568
|
}
|
|
1573
1569
|
}
|
|
1574
|
-
function
|
|
1570
|
+
function J(t, e) {
|
|
1575
1571
|
switch (t) {
|
|
1576
1572
|
case 1:
|
|
1577
1573
|
return y(D.singleDigitSigned, e);
|
|
@@ -1585,7 +1581,7 @@ function Z(t, e) {
|
|
|
1585
1581
|
return y(new RegExp("^-?\\d{1," + t + "}"), e);
|
|
1586
1582
|
}
|
|
1587
1583
|
}
|
|
1588
|
-
function
|
|
1584
|
+
function he(t) {
|
|
1589
1585
|
switch (t) {
|
|
1590
1586
|
case "morning":
|
|
1591
1587
|
return 4;
|
|
@@ -1676,7 +1672,7 @@ class rr extends h {
|
|
|
1676
1672
|
return n.isTwoDigitYear || n.year > 0;
|
|
1677
1673
|
}
|
|
1678
1674
|
set(e, n, r, s) {
|
|
1679
|
-
const a =
|
|
1675
|
+
const a = me(e, s);
|
|
1680
1676
|
if (r.isTwoDigitYear) {
|
|
1681
1677
|
const i = wt(
|
|
1682
1678
|
r.year,
|
|
@@ -1710,7 +1706,7 @@ class rr extends h {
|
|
|
1710
1706
|
class sr extends h {
|
|
1711
1707
|
priority = 130;
|
|
1712
1708
|
parse(e, n) {
|
|
1713
|
-
return
|
|
1709
|
+
return J(n === "R" ? 4 : n.length, e);
|
|
1714
1710
|
}
|
|
1715
1711
|
set(e, n, r) {
|
|
1716
1712
|
const s = E(e, 0);
|
|
@@ -1737,7 +1733,7 @@ class sr extends h {
|
|
|
1737
1733
|
class ar extends h {
|
|
1738
1734
|
priority = 130;
|
|
1739
1735
|
parse(e, n) {
|
|
1740
|
-
return
|
|
1736
|
+
return J(n === "u" ? 4 : n.length, e);
|
|
1741
1737
|
}
|
|
1742
1738
|
set(e, n, r) {
|
|
1743
1739
|
return e.setFullYear(r, 0, 1), e.setHours(0, 0, 0, 0), e;
|
|
@@ -2159,7 +2155,7 @@ class yr extends h {
|
|
|
2159
2155
|
"T"
|
|
2160
2156
|
];
|
|
2161
2157
|
}
|
|
2162
|
-
function
|
|
2158
|
+
function ge(t, e, n) {
|
|
2163
2159
|
const r = $(), s = n?.weekStartsOn ?? n?.locale?.options?.weekStartsOn ?? r.weekStartsOn ?? r.locale?.options?.weekStartsOn ?? 0, a = p(t, n?.in), o = a.getDay(), c = (e % 7 + 7) % 7, u = 7 - s, d = e < 0 || e > 6 ? e - (o + u) % 7 : (c + u) % 7 - (o + u) % 7;
|
|
2164
2160
|
return ot(a, d, n);
|
|
2165
2161
|
}
|
|
@@ -2195,7 +2191,7 @@ class pr extends h {
|
|
|
2195
2191
|
return n >= 0 && n <= 6;
|
|
2196
2192
|
}
|
|
2197
2193
|
set(e, n, r, s) {
|
|
2198
|
-
return e =
|
|
2194
|
+
return e = ge(e, r, s), e.setHours(0, 0, 0, 0), e;
|
|
2199
2195
|
}
|
|
2200
2196
|
incompatibleTokens = ["D", "i", "e", "c", "t", "T"];
|
|
2201
2197
|
}
|
|
@@ -2245,7 +2241,7 @@ class br extends h {
|
|
|
2245
2241
|
return n >= 0 && n <= 6;
|
|
2246
2242
|
}
|
|
2247
2243
|
set(e, n, r, s) {
|
|
2248
|
-
return e =
|
|
2244
|
+
return e = ge(e, r, s), e.setHours(0, 0, 0, 0), e;
|
|
2249
2245
|
}
|
|
2250
2246
|
incompatibleTokens = [
|
|
2251
2247
|
"y",
|
|
@@ -2311,7 +2307,7 @@ class Dr extends h {
|
|
|
2311
2307
|
return n >= 0 && n <= 6;
|
|
2312
2308
|
}
|
|
2313
2309
|
set(e, n, r, s) {
|
|
2314
|
-
return e =
|
|
2310
|
+
return e = ge(e, r, s), e.setHours(0, 0, 0, 0), e;
|
|
2315
2311
|
}
|
|
2316
2312
|
incompatibleTokens = [
|
|
2317
2313
|
"y",
|
|
@@ -2332,7 +2328,7 @@ class Dr extends h {
|
|
|
2332
2328
|
];
|
|
2333
2329
|
}
|
|
2334
2330
|
function Tr(t, e, n) {
|
|
2335
|
-
const r = p(t, n?.in), s =
|
|
2331
|
+
const r = p(t, n?.in), s = Xn(r, n), a = e - s;
|
|
2336
2332
|
return ot(r, a, n);
|
|
2337
2333
|
}
|
|
2338
2334
|
class Er extends h {
|
|
@@ -2459,7 +2455,7 @@ class xr extends h {
|
|
|
2459
2455
|
}
|
|
2460
2456
|
}
|
|
2461
2457
|
set(e, n, r) {
|
|
2462
|
-
return e.setHours(
|
|
2458
|
+
return e.setHours(he(r), 0, 0, 0), e;
|
|
2463
2459
|
}
|
|
2464
2460
|
incompatibleTokens = ["b", "B", "H", "k", "t", "T"];
|
|
2465
2461
|
}
|
|
@@ -2496,7 +2492,7 @@ class Pr extends h {
|
|
|
2496
2492
|
}
|
|
2497
2493
|
}
|
|
2498
2494
|
set(e, n, r) {
|
|
2499
|
-
return e.setHours(
|
|
2495
|
+
return e.setHours(he(r), 0, 0, 0), e;
|
|
2500
2496
|
}
|
|
2501
2497
|
incompatibleTokens = ["a", "B", "H", "k", "t", "T"];
|
|
2502
2498
|
}
|
|
@@ -2533,7 +2529,7 @@ class vr extends h {
|
|
|
2533
2529
|
}
|
|
2534
2530
|
}
|
|
2535
2531
|
set(e, n, r) {
|
|
2536
|
-
return e.setHours(
|
|
2532
|
+
return e.setHours(he(r), 0, 0, 0), e;
|
|
2537
2533
|
}
|
|
2538
2534
|
incompatibleTokens = ["a", "b", "t", "T"];
|
|
2539
2535
|
}
|
|
@@ -2698,7 +2694,7 @@ class _r extends h {
|
|
|
2698
2694
|
set(e, n, r) {
|
|
2699
2695
|
return n.timestampIsSet ? e : E(
|
|
2700
2696
|
e,
|
|
2701
|
-
e.getTime() -
|
|
2697
|
+
e.getTime() - K(e) - r
|
|
2702
2698
|
);
|
|
2703
2699
|
}
|
|
2704
2700
|
incompatibleTokens = ["t", "T", "x"];
|
|
@@ -2731,7 +2727,7 @@ class Yr extends h {
|
|
|
2731
2727
|
set(e, n, r) {
|
|
2732
2728
|
return n.timestampIsSet ? e : E(
|
|
2733
2729
|
e,
|
|
2734
|
-
e.getTime() -
|
|
2730
|
+
e.getTime() - K(e) - r
|
|
2735
2731
|
);
|
|
2736
2732
|
}
|
|
2737
2733
|
incompatibleTokens = ["t", "T", "X"];
|
|
@@ -2788,9 +2784,9 @@ const Sr = {
|
|
|
2788
2784
|
x: new Yr(),
|
|
2789
2785
|
t: new Cr(),
|
|
2790
2786
|
T: new Lr()
|
|
2791
|
-
}, $r = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, Wr = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, qr = /^'([^]*?)'?$/, Ur = /''/g, Hr = /\S/,
|
|
2792
|
-
function
|
|
2793
|
-
const s = () => E(n, NaN), a =
|
|
2787
|
+
}, $r = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, Wr = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, qr = /^'([^]*?)'?$/, Ur = /''/g, Hr = /\S/, Fr = /[a-zA-Z]/;
|
|
2788
|
+
function Qr(t, e, n, r) {
|
|
2789
|
+
const s = () => E(n, NaN), a = jn(), o = a.locale ?? ct, i = a.firstWeekContainsDate ?? a.locale?.options?.firstWeekContainsDate ?? 1, c = a.weekStartsOn ?? a.locale?.options?.weekStartsOn ?? 0;
|
|
2794
2790
|
if (!e)
|
|
2795
2791
|
return t ? s() : p(n, r?.in);
|
|
2796
2792
|
const u = {
|
|
@@ -2799,20 +2795,20 @@ function Fr(t, e, n, r) {
|
|
|
2799
2795
|
locale: o
|
|
2800
2796
|
}, d = [new er(r?.in, n)], l = e.match(Wr).map((f) => {
|
|
2801
2797
|
const w = f[0];
|
|
2802
|
-
if (w in
|
|
2803
|
-
const v =
|
|
2798
|
+
if (w in re) {
|
|
2799
|
+
const v = re[w];
|
|
2804
2800
|
return v(f, o.formatLong);
|
|
2805
2801
|
}
|
|
2806
2802
|
return f;
|
|
2807
2803
|
}).join("").match($r), m = [];
|
|
2808
2804
|
for (let f of l) {
|
|
2809
|
-
mt(f) &&
|
|
2805
|
+
mt(f) && se(f, e, t), ft(f) && se(f, e, t);
|
|
2810
2806
|
const w = f[0], v = Sr[w];
|
|
2811
2807
|
if (v) {
|
|
2812
2808
|
const { incompatibleTokens: M } = v;
|
|
2813
2809
|
if (Array.isArray(M)) {
|
|
2814
2810
|
const q = m.find(
|
|
2815
|
-
(
|
|
2811
|
+
(Q) => M.includes(Q.token) || Q.token === w
|
|
2816
2812
|
);
|
|
2817
2813
|
if (q)
|
|
2818
2814
|
throw new RangeError(
|
|
@@ -2833,7 +2829,7 @@ function Fr(t, e, n, r) {
|
|
|
2833
2829
|
return s();
|
|
2834
2830
|
d.push(W.setter), t = W.rest;
|
|
2835
2831
|
} else {
|
|
2836
|
-
if (w.match(
|
|
2832
|
+
if (w.match(Fr))
|
|
2837
2833
|
throw new RangeError(
|
|
2838
2834
|
"Format string contains an unescaped latin alphabet character `" + w + "`"
|
|
2839
2835
|
);
|
|
@@ -2891,21 +2887,21 @@ function Vr(t, e) {
|
|
|
2891
2887
|
}
|
|
2892
2888
|
return p(o + i + c, e?.in);
|
|
2893
2889
|
}
|
|
2894
|
-
const
|
|
2890
|
+
const B = {
|
|
2895
2891
|
dateTimeDelimiter: /[T ]/,
|
|
2896
2892
|
timeZoneDelimiter: /[Z ]/i,
|
|
2897
2893
|
timezone: /([Z+-].*)$/
|
|
2898
|
-
}, Gr = /^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,
|
|
2894
|
+
}, Gr = /^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/, jr = /^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/, Xr = /^([+-])(\d{2})(?::?(\d{2}))?$/;
|
|
2899
2895
|
function zr(t) {
|
|
2900
|
-
const e = {}, n = t.split(
|
|
2896
|
+
const e = {}, n = t.split(B.dateTimeDelimiter);
|
|
2901
2897
|
let r;
|
|
2902
2898
|
if (n.length > 2)
|
|
2903
2899
|
return e;
|
|
2904
|
-
if (/:/.test(n[0]) ? r = n[0] : (e.date = n[0], r = n[1],
|
|
2900
|
+
if (/:/.test(n[0]) ? r = n[0] : (e.date = n[0], r = n[1], B.timeZoneDelimiter.test(e.date) && (e.date = t.split(B.timeZoneDelimiter)[0], r = t.substr(
|
|
2905
2901
|
e.date.length,
|
|
2906
2902
|
t.length
|
|
2907
2903
|
))), r) {
|
|
2908
|
-
const s =
|
|
2904
|
+
const s = B.timezone.exec(r);
|
|
2909
2905
|
s ? (e.time = r.replace(s[1], ""), e.timezone = s[1]) : e.time = r;
|
|
2910
2906
|
}
|
|
2911
2907
|
return e;
|
|
@@ -2925,7 +2921,7 @@ function Jr(t, e) {
|
|
|
2925
2921
|
if (e === null) return /* @__PURE__ */ new Date(NaN);
|
|
2926
2922
|
const n = t.match(Gr);
|
|
2927
2923
|
if (!n) return /* @__PURE__ */ new Date(NaN);
|
|
2928
|
-
const r = !!n[4], s =
|
|
2924
|
+
const r = !!n[4], s = F(n[1]), a = F(n[2]) - 1, o = F(n[3]), i = F(n[4]), c = F(n[5]) - 1;
|
|
2929
2925
|
if (r)
|
|
2930
2926
|
return as(e, i, c) ? ts(e, i, c) : /* @__PURE__ */ new Date(NaN);
|
|
2931
2927
|
{
|
|
@@ -2933,24 +2929,24 @@ function Jr(t, e) {
|
|
|
2933
2929
|
return !rs(e, a, o) || !ss(e, s) ? /* @__PURE__ */ new Date(NaN) : (u.setUTCFullYear(e, a, Math.max(s, o)), u);
|
|
2934
2930
|
}
|
|
2935
2931
|
}
|
|
2936
|
-
function
|
|
2932
|
+
function F(t) {
|
|
2937
2933
|
return t ? parseInt(t) : 1;
|
|
2938
2934
|
}
|
|
2939
2935
|
function Zr(t) {
|
|
2940
|
-
const e = t.match(
|
|
2936
|
+
const e = t.match(jr);
|
|
2941
2937
|
if (!e) return NaN;
|
|
2942
|
-
const n =
|
|
2943
|
-
return os(n, r, s) ? n *
|
|
2938
|
+
const n = te(e[1]), r = te(e[2]), s = te(e[3]);
|
|
2939
|
+
return os(n, r, s) ? n * fe + r * le + s * 1e3 : NaN;
|
|
2944
2940
|
}
|
|
2945
|
-
function
|
|
2941
|
+
function te(t) {
|
|
2946
2942
|
return t && parseFloat(t.replace(",", ".")) || 0;
|
|
2947
2943
|
}
|
|
2948
2944
|
function es(t) {
|
|
2949
2945
|
if (t === "Z") return 0;
|
|
2950
|
-
const e = t.match(
|
|
2946
|
+
const e = t.match(Xr);
|
|
2951
2947
|
if (!e) return 0;
|
|
2952
2948
|
const n = e[1] === "+" ? -1 : 1, r = parseInt(e[2]), s = e[3] && parseInt(e[3]) || 0;
|
|
2953
|
-
return is(r, s) ? n * (r *
|
|
2949
|
+
return is(r, s) ? n * (r * fe + s * le) : NaN;
|
|
2954
2950
|
}
|
|
2955
2951
|
function ts(t, e, n) {
|
|
2956
2952
|
const r = /* @__PURE__ */ new Date(0);
|
|
@@ -2977,23 +2973,23 @@ function os(t, e, n) {
|
|
|
2977
2973
|
function is(t, e) {
|
|
2978
2974
|
return e >= 0 && e <= 59;
|
|
2979
2975
|
}
|
|
2980
|
-
const
|
|
2976
|
+
const V = (t) => {
|
|
2981
2977
|
if (!t.includes("T")) {
|
|
2982
2978
|
for (const n of cs) {
|
|
2983
|
-
const r =
|
|
2984
|
-
if (
|
|
2979
|
+
const r = Qr(t, n, /* @__PURE__ */ new Date());
|
|
2980
|
+
if (ne(r))
|
|
2985
2981
|
return r;
|
|
2986
2982
|
}
|
|
2987
2983
|
return null;
|
|
2988
2984
|
}
|
|
2989
2985
|
const e = Vr(t);
|
|
2990
|
-
return
|
|
2991
|
-
}, cs = ["yyyy-MM-dd", "MM-dd-yyyy"],
|
|
2986
|
+
return ne(e) ? e : null;
|
|
2987
|
+
}, cs = ["yyyy-MM-dd", "MM-dd-yyyy"], ae = (t, e, n) => {
|
|
2992
2988
|
const r = {};
|
|
2993
|
-
return e?.contentType !== null && (r[Bt] = e?.contentType ||
|
|
2989
|
+
return e?.contentType !== null && (r[Bt] = e?.contentType || Qt), e?.jwt ? r.Authorization = `Bearer ${e.jwt}` : t && (r[j] = t), e?.chatReference && (r[Vt] = e.chatReference), { ...r, ...n };
|
|
2994
2990
|
}, us = (t) => {
|
|
2995
2991
|
const e = { ...t };
|
|
2996
|
-
return e[j] && (e[j] = e[j].substring(0, 8) + "...[REDACTED]"), e.Authorization && (e.Authorization = "Bearer [REDACTED]"), e[
|
|
2992
|
+
return e[j] && (e[j] = e[j].substring(0, 8) + "...[REDACTED]"), e.Authorization && (e.Authorization = "Bearer [REDACTED]"), e[X] && (e[X] = e[X].substring(0, 8) + "...[REDACTED]"), e;
|
|
2997
2993
|
}, He = async (t, e, n) => await fetch(t, {
|
|
2998
2994
|
method: n.method || "GET",
|
|
2999
2995
|
headers: e,
|
|
@@ -3026,7 +3022,7 @@ class ls {
|
|
|
3026
3022
|
}
|
|
3027
3023
|
}
|
|
3028
3024
|
async initializeStreamRequest(e, n, r, s) {
|
|
3029
|
-
const a =
|
|
3025
|
+
const a = ae(void 0, {
|
|
3030
3026
|
jwt: s
|
|
3031
3027
|
}), o = await ds(
|
|
3032
3028
|
e,
|
|
@@ -3104,7 +3100,7 @@ class ls {
|
|
|
3104
3100
|
}
|
|
3105
3101
|
}
|
|
3106
3102
|
new ls();
|
|
3107
|
-
class
|
|
3103
|
+
class Fa {
|
|
3108
3104
|
constructor(e) {
|
|
3109
3105
|
this.config = e, console.info("SdmxApiClient initialized", {
|
|
3110
3106
|
apiUrl: e.apiUrl || "NOT SET"
|
|
@@ -3179,7 +3175,7 @@ class Qa {
|
|
|
3179
3175
|
}
|
|
3180
3176
|
if (!c.ok) {
|
|
3181
3177
|
this.addErrorRequestLog(o, n, c, u, d);
|
|
3182
|
-
const m =
|
|
3178
|
+
const m = Ft(d, c);
|
|
3183
3179
|
throw new Error(`API request failed: ${m}`);
|
|
3184
3180
|
}
|
|
3185
3181
|
return d;
|
|
@@ -3196,14 +3192,14 @@ class Qa {
|
|
|
3196
3192
|
buildHeaders(e, n) {
|
|
3197
3193
|
if (this.config.useDialAuth)
|
|
3198
3194
|
return {
|
|
3199
|
-
...
|
|
3195
|
+
...ae(this.config.dialApiKey, { jwt: e }),
|
|
3200
3196
|
...n
|
|
3201
3197
|
};
|
|
3202
3198
|
const r = {
|
|
3203
|
-
...
|
|
3199
|
+
...ae(void 0, { jwt: this.config.jwt }),
|
|
3204
3200
|
...n
|
|
3205
3201
|
};
|
|
3206
|
-
return this.config.apiKey != null && (r[
|
|
3202
|
+
return this.config.apiKey != null && (r[X] = this.config.apiKey), r;
|
|
3207
3203
|
}
|
|
3208
3204
|
addInfoRequestLog(e, n, r, s) {
|
|
3209
3205
|
const a = {
|
|
@@ -3235,14 +3231,14 @@ class Qa {
|
|
|
3235
3231
|
});
|
|
3236
3232
|
}
|
|
3237
3233
|
}
|
|
3238
|
-
var
|
|
3239
|
-
function
|
|
3234
|
+
var we = /* @__PURE__ */ ((t) => (t.LAST_UPDATE_AT = "lastUpdatedAt", t.SERIES_COUNT = "series_count", t))(we || {});
|
|
3235
|
+
function Qa(t) {
|
|
3240
3236
|
return t?.annotations?.find((e) => {
|
|
3241
|
-
if (e.id ===
|
|
3237
|
+
if (e.id === we.LAST_UPDATE_AT)
|
|
3242
3238
|
return e;
|
|
3243
3239
|
})?.value;
|
|
3244
3240
|
}
|
|
3245
|
-
const
|
|
3241
|
+
const ye = (t, e) => t?.names && t?.names[e] || t?.name, bt = (t, e, n) => {
|
|
3246
3242
|
if (!(!t || e?.has(t?.id)) && (e?.set(t?.id, t), t?.parent)) {
|
|
3247
3243
|
const r = n?.get(t?.parent);
|
|
3248
3244
|
bt(r, e, n);
|
|
@@ -3297,7 +3293,7 @@ const Ba = ["FREQ", "FREQUENCY"], ws = "TIME_PERIOD", ys = "time_period_start",
|
|
|
3297
3293
|
} else s.length !== 0 && (a = a.filter(({ id: o }) => s.includes(o)));
|
|
3298
3294
|
return Es(t) && (a = fs(t, a)), a?.map((o) => ({
|
|
3299
3295
|
...o,
|
|
3300
|
-
name: r ?
|
|
3296
|
+
name: r ? ye(o, r) : o?.name
|
|
3301
3297
|
}));
|
|
3302
3298
|
}, xs = (t, e) => t != null && t.length > 0 && e != null, Ps = (t) => {
|
|
3303
3299
|
const e = [];
|
|
@@ -3308,23 +3304,23 @@ const Ba = ["FREQ", "FREQUENCY"], ws = "TIME_PERIOD", ys = "time_period_start",
|
|
|
3308
3304
|
value: n.values.join(",")
|
|
3309
3305
|
});
|
|
3310
3306
|
}), e;
|
|
3311
|
-
},
|
|
3307
|
+
}, ja = (t) => {
|
|
3312
3308
|
const e = /* @__PURE__ */ new Map();
|
|
3313
3309
|
return t?.forEach((n) => {
|
|
3314
3310
|
e.set(n.urn, Ps(n));
|
|
3315
3311
|
}), e;
|
|
3316
|
-
}, vs = /^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-([\da-z\-]+(?:\.[\da-z\-]+)*))?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i,
|
|
3312
|
+
}, vs = /^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-([\da-z\-]+(?:\.[\da-z\-]+)*))?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i, Fe = (t) => {
|
|
3317
3313
|
if (typeof t != "string")
|
|
3318
3314
|
throw new TypeError("Invalid argument expected string");
|
|
3319
3315
|
const e = t.match(vs);
|
|
3320
3316
|
if (!e)
|
|
3321
3317
|
throw new Error(`Invalid argument not valid semver ('${t}' received)`);
|
|
3322
3318
|
return e.shift(), e;
|
|
3323
|
-
},
|
|
3319
|
+
}, Qe = (t) => t === "*" || t === "x" || t === "X", Be = (t) => {
|
|
3324
3320
|
const e = parseInt(t, 10);
|
|
3325
3321
|
return isNaN(e) ? t : e;
|
|
3326
3322
|
}, Ms = (t, e) => typeof t != typeof e ? [String(t), String(e)] : [t, e], Os = (t, e) => {
|
|
3327
|
-
if (
|
|
3323
|
+
if (Qe(t) || Qe(e))
|
|
3328
3324
|
return 0;
|
|
3329
3325
|
const [n, r] = Ms(Be(t), Be(e));
|
|
3330
3326
|
return n > r ? 1 : n < r ? -1 : 0;
|
|
@@ -3336,7 +3332,7 @@ const Ba = ["FREQ", "FREQUENCY"], ws = "TIME_PERIOD", ys = "time_period_start",
|
|
|
3336
3332
|
}
|
|
3337
3333
|
return 0;
|
|
3338
3334
|
}, As = (t, e) => {
|
|
3339
|
-
const n =
|
|
3335
|
+
const n = Fe(t), r = Fe(e), s = n.pop(), a = r.pop(), o = Ve(n, r);
|
|
3340
3336
|
return o !== 0 ? o : s && a ? Ve(s.split("."), a.split(".")) : s || a ? s ? -1 : 1 : 0;
|
|
3341
3337
|
}, Ns = (t, e, n) => {
|
|
3342
3338
|
ks(n);
|
|
@@ -3352,13 +3348,13 @@ const Ba = ["FREQ", "FREQUENCY"], ws = "TIME_PERIOD", ys = "time_period_start",
|
|
|
3352
3348
|
}, Ge = Object.keys(Dt), ks = (t) => {
|
|
3353
3349
|
if (Ge.indexOf(t) === -1)
|
|
3354
3350
|
throw new Error(`Invalid operator, expected one of ${Ge.join("|")}`);
|
|
3355
|
-
},
|
|
3351
|
+
}, oe = "+", pe = (t, e) => {
|
|
3356
3352
|
const { agency: n, id: r, version: s } = C(t), a = e.filter(
|
|
3357
|
-
(c) => c.agencyID === n && c.id === r && !c?.version?.includes(
|
|
3353
|
+
(c) => c.agencyID === n && c.id === r && !c?.version?.includes(oe)
|
|
3358
3354
|
);
|
|
3359
3355
|
if (a.length === 1)
|
|
3360
3356
|
return a[0];
|
|
3361
|
-
if (!s?.includes(
|
|
3357
|
+
if (!s?.includes(oe))
|
|
3362
3358
|
return a.find((c) => c.version === s);
|
|
3363
3359
|
const o = a.map(
|
|
3364
3360
|
(c) => c.version
|
|
@@ -3384,7 +3380,7 @@ const Ba = ["FREQ", "FREQUENCY"], ws = "TIME_PERIOD", ys = "time_period_start",
|
|
|
3384
3380
|
}, Ys = (t, e) => {
|
|
3385
3381
|
const n = t.trim().replace(/\+/, ""), r = _s(t);
|
|
3386
3382
|
return e.startsWith(r) && Ns(e, n, ">=");
|
|
3387
|
-
},
|
|
3383
|
+
}, be = (t, e) => {
|
|
3388
3384
|
const { concept: n } = Cs(t, e);
|
|
3389
3385
|
return n;
|
|
3390
3386
|
}, Cs = (t, e) => {
|
|
@@ -3394,34 +3390,34 @@ const Ba = ["FREQ", "FREQUENCY"], ws = "TIME_PERIOD", ys = "time_period_start",
|
|
|
3394
3390
|
scheme: void 0
|
|
3395
3391
|
};
|
|
3396
3392
|
const { childId: n, agency: r, id: s, version: a } = tt(t);
|
|
3397
|
-
if (a?.includes(
|
|
3398
|
-
const o =
|
|
3393
|
+
if (a?.includes(oe)) {
|
|
3394
|
+
const o = pe(
|
|
3399
3395
|
t,
|
|
3400
3396
|
e
|
|
3401
3397
|
);
|
|
3402
3398
|
return {
|
|
3403
|
-
concept:
|
|
3399
|
+
concept: je(o?.concepts || [], n),
|
|
3404
3400
|
scheme: o
|
|
3405
3401
|
};
|
|
3406
3402
|
}
|
|
3407
3403
|
for (const o of e)
|
|
3408
3404
|
if (Ls(o, s, r, a))
|
|
3409
3405
|
return {
|
|
3410
|
-
concept:
|
|
3406
|
+
concept: je(o?.concepts || [], n),
|
|
3411
3407
|
scheme: o
|
|
3412
3408
|
};
|
|
3413
3409
|
return {
|
|
3414
3410
|
concept: void 0,
|
|
3415
3411
|
scheme: void 0
|
|
3416
3412
|
};
|
|
3417
|
-
},
|
|
3418
|
-
const r = n?.conceptIdentity || "", s =
|
|
3413
|
+
}, je = (t, e) => t?.find((n) => n.id === e), Ls = (t, e, n, r) => t.id === e && t.agencyID === n && t.version === r, Xa = (t = [], e = [], n) => {
|
|
3414
|
+
const r = n?.conceptIdentity || "", s = be(r, e), a = z(
|
|
3419
3415
|
n?.localRepresentation?.enumeration
|
|
3420
|
-
), o =
|
|
3416
|
+
), o = z(
|
|
3421
3417
|
s?.coreRepresentation?.enumeration
|
|
3422
3418
|
), i = a || o;
|
|
3423
3419
|
if (i != null)
|
|
3424
|
-
return
|
|
3420
|
+
return pe(i, t);
|
|
3425
3421
|
}, Ss = (t, e) => {
|
|
3426
3422
|
const n = t?.data?.dataSets?.[0], s = t?.data?.structures?.[0]?.attributes?.dimensionGroup || [], a = n?.dimensionGroupAttributes, o = {};
|
|
3427
3423
|
for (const i of s) {
|
|
@@ -3484,7 +3480,7 @@ const Ba = ["FREQ", "FREQUENCY"], ws = "TIME_PERIOD", ys = "time_period_start",
|
|
|
3484
3480
|
)?.values;
|
|
3485
3481
|
return n?.filter((a) => s?.some((o) => o.id === a.id))?.map((a) => ({
|
|
3486
3482
|
...a,
|
|
3487
|
-
name: r ?
|
|
3483
|
+
name: r ? ye(a, r) : a?.name
|
|
3488
3484
|
})) || [];
|
|
3489
3485
|
}, Ws = (t, e) => {
|
|
3490
3486
|
const n = e?.dataStructureComponents?.attributeList, r = t?.metadataStructureComponents?.metadataAttributeList;
|
|
@@ -3499,11 +3495,11 @@ const Ba = ["FREQ", "FREQUENCY"], ws = "TIME_PERIOD", ys = "time_period_start",
|
|
|
3499
3495
|
};
|
|
3500
3496
|
});
|
|
3501
3497
|
}, Ja = (t = [], e, n) => {
|
|
3502
|
-
const r =
|
|
3503
|
-
return n ?
|
|
3498
|
+
const r = z(e?.conceptIdentity) || "", s = be(r, t);
|
|
3499
|
+
return n ? ye(s, n) : s?.name ?? s?.id ?? e?.id;
|
|
3504
3500
|
};
|
|
3505
|
-
var qs = /* @__PURE__ */ ((t) => (t.CONDITIONAL = "Conditional", t.MANDATORY = "Mandatory", t))(qs || {}),
|
|
3506
|
-
function
|
|
3501
|
+
var qs = /* @__PURE__ */ ((t) => (t.CONDITIONAL = "Conditional", t.MANDATORY = "Mandatory", t))(qs || {}), De = /* @__PURE__ */ ((t) => (t.DIMENSION = "Dimension", t.MEASURE_DIMENSION = "MeasureDimension", t.TIME_DIMENSION = "TimeDimension", t))(De || {}), Us = /* @__PURE__ */ ((t) => (t.UNBOUNDED = "unbounded", t))(Us || {});
|
|
3502
|
+
function Xe(t) {
|
|
3507
3503
|
return t?.dataStructures?.[0]?.dataStructureComponents?.dimensionList;
|
|
3508
3504
|
}
|
|
3509
3505
|
function Za(t) {
|
|
@@ -3514,22 +3510,22 @@ function eo(t) {
|
|
|
3514
3510
|
}
|
|
3515
3511
|
function to(t) {
|
|
3516
3512
|
return t.find(
|
|
3517
|
-
(e) => e.type ===
|
|
3513
|
+
(e) => e.type === De.TIME_DIMENSION
|
|
3518
3514
|
);
|
|
3519
3515
|
}
|
|
3520
3516
|
const no = (t) => {
|
|
3521
3517
|
const e = /* @__PURE__ */ new Map(), n = t?.dataStructures?.[0], r = t?.metadataStructures?.[0], s = t?.conceptSchemes || [], a = t?.codelists || [];
|
|
3522
3518
|
return t && [
|
|
3523
|
-
...
|
|
3524
|
-
...
|
|
3519
|
+
...Xe(t)?.dimensions || [],
|
|
3520
|
+
...Xe(t)?.timeDimensions || [],
|
|
3525
3521
|
...Ws(r, n),
|
|
3526
3522
|
...n?.dataStructureComponents?.attributeList?.attributes || []
|
|
3527
3523
|
].forEach(
|
|
3528
3524
|
(i) => {
|
|
3529
|
-
const c =
|
|
3525
|
+
const c = be(
|
|
3530
3526
|
i?.conceptIdentity,
|
|
3531
3527
|
s
|
|
3532
|
-
), u = i?.localRepresentation?.enumeration || c?.coreRepresentation?.enumeration, d =
|
|
3528
|
+
), u = i?.localRepresentation?.enumeration || c?.coreRepresentation?.enumeration, d = pe(
|
|
3533
3529
|
u,
|
|
3534
3530
|
a
|
|
3535
3531
|
);
|
|
@@ -3545,9 +3541,9 @@ const no = (t) => {
|
|
|
3545
3541
|
}
|
|
3546
3542
|
), e;
|
|
3547
3543
|
}, ro = (t) => t?.find(
|
|
3548
|
-
(e) => e.id ===
|
|
3549
|
-
)?.title || "",
|
|
3550
|
-
function
|
|
3544
|
+
(e) => e.id === we.SERIES_COUNT
|
|
3545
|
+
)?.title || "", Te = 1440 * 60 * 1e3, Ee = 7 * Te;
|
|
3546
|
+
function xe(t) {
|
|
3551
3547
|
const e = `${t}-01-01`, n = new Date(e);
|
|
3552
3548
|
if (n.getDay() !== 4) {
|
|
3553
3549
|
const s = 1 + (4 - n.getDay() + 7) % 7;
|
|
@@ -3560,18 +3556,18 @@ function Hs(t) {
|
|
|
3560
3556
|
return e.setDate(e.getDate() + r), new Date(e.valueOf());
|
|
3561
3557
|
}
|
|
3562
3558
|
function ze(t, e = "W") {
|
|
3563
|
-
const n = `${t}-12-31`, r =
|
|
3559
|
+
const n = `${t}-12-31`, r = Z(new Date(n), e);
|
|
3564
3560
|
if (r.weekYear === t)
|
|
3565
3561
|
return r.weekNumber;
|
|
3566
3562
|
const s = `${t}-12-24`;
|
|
3567
|
-
return
|
|
3563
|
+
return Z(new Date(s), e).weekNumber;
|
|
3568
3564
|
}
|
|
3569
3565
|
function Et(t, e, n = "W") {
|
|
3570
3566
|
return `${t}-${n}${e < 10 ? "0" + e : e}`;
|
|
3571
3567
|
}
|
|
3572
|
-
function
|
|
3573
|
-
const n = Hs(t), r = n.getFullYear(), s =
|
|
3574
|
-
(n.getTime() - s.getTime()) /
|
|
3568
|
+
function Z(t, e = "W") {
|
|
3569
|
+
const n = Hs(t), r = n.getFullYear(), s = xe(r), a = 1 + Math.ceil(
|
|
3570
|
+
(n.getTime() - s.getTime()) / Ee
|
|
3575
3571
|
);
|
|
3576
3572
|
return {
|
|
3577
3573
|
code: Et(r, a, e),
|
|
@@ -3579,12 +3575,12 @@ function ee(t, e = "W") {
|
|
|
3579
3575
|
weekYear: r
|
|
3580
3576
|
};
|
|
3581
3577
|
}
|
|
3582
|
-
function
|
|
3583
|
-
const [e, n] = t.split("-W"), s =
|
|
3578
|
+
function Fs(t) {
|
|
3579
|
+
const [e, n] = t.split("-W"), s = xe(+e).getTime() + (+n - 1) * Ee - 3 * Te;
|
|
3584
3580
|
return new Date(s);
|
|
3585
3581
|
}
|
|
3586
|
-
function
|
|
3587
|
-
const [e, n] = t.split("-W"), s =
|
|
3582
|
+
function Qs(t) {
|
|
3583
|
+
const [e, n] = t.split("-W"), s = xe(+e).getTime() + (+n - 1) * Ee + 3 * Te;
|
|
3588
3584
|
return new Date(s);
|
|
3589
3585
|
}
|
|
3590
3586
|
const Bs = "/api/download", Vs = 6e4, so = async (t, e, n, r, s, a, o) => {
|
|
@@ -3615,7 +3611,7 @@ const Bs = "/api/download", Vs = 6e4, so = async (t, e, n, r, s, a, o) => {
|
|
|
3615
3611
|
}, ao = (t, e) => {
|
|
3616
3612
|
const n = [];
|
|
3617
3613
|
for (const r of t) {
|
|
3618
|
-
if (r.type !==
|
|
3614
|
+
if (r.type !== De.DIMENSION)
|
|
3619
3615
|
continue;
|
|
3620
3616
|
const s = e.find((a) => a.componentCode === r.id);
|
|
3621
3617
|
s != null && s.values?.length > 0 ? n.push(s.values?.join(qt)) : n.push("*");
|
|
@@ -3636,9 +3632,9 @@ const Bs = "/api/download", Vs = 6e4, so = async (t, e, n, r, s, a, o) => {
|
|
|
3636
3632
|
(o) => `${encodeURIComponent(`c[${a}]`)}${Wt}${encodeURIComponent(o)}`
|
|
3637
3633
|
).join(st);
|
|
3638
3634
|
}, Ke = (t) => Vn(t, "yyyy-MM-dd"), oo = (t, e) => {
|
|
3639
|
-
const n =
|
|
3635
|
+
const n = js(t, e) || null;
|
|
3640
3636
|
return n ? Gs(n, e?.id) : null;
|
|
3641
|
-
},
|
|
3637
|
+
}, js = (t, e) => {
|
|
3642
3638
|
const n = e.id, r = t?.filters?.find(
|
|
3643
3639
|
(c) => c.componentCode === n
|
|
3644
3640
|
);
|
|
@@ -3649,12 +3645,12 @@ const Bs = "/api/download", Vs = 6e4, so = async (t, e, n, r, s, a, o) => {
|
|
|
3649
3645
|
return null;
|
|
3650
3646
|
const a = r.operator;
|
|
3651
3647
|
if (a === R.LESS_OR_EQUAL || a === R.LESS)
|
|
3652
|
-
return { startPeriod: null, endPeriod:
|
|
3648
|
+
return { startPeriod: null, endPeriod: V(s[0]) };
|
|
3653
3649
|
if (a === R.GREATER_OR_EQUAL || a === R.GREATER)
|
|
3654
|
-
return { startPeriod:
|
|
3655
|
-
const o =
|
|
3650
|
+
return { startPeriod: V(s[0]), endPeriod: null };
|
|
3651
|
+
const o = V(s[0]), i = V(s[1]);
|
|
3656
3652
|
return { startPeriod: o, endPeriod: i };
|
|
3657
|
-
},
|
|
3653
|
+
}, Xs = "Observation", io = (t) => {
|
|
3658
3654
|
const e = t?.data?.dataSets, n = t?.data?.structures?.[0];
|
|
3659
3655
|
if (!e || !n)
|
|
3660
3656
|
return [];
|
|
@@ -3677,7 +3673,7 @@ const Bs = "/api/download", Vs = 6e4, so = async (t, e, n, r, s, a, o) => {
|
|
|
3677
3673
|
d.push(
|
|
3678
3674
|
...ea(x, n)
|
|
3679
3675
|
);
|
|
3680
|
-
const N =
|
|
3676
|
+
const N = ie(
|
|
3681
3677
|
r?.series || [],
|
|
3682
3678
|
(M) => P[M]
|
|
3683
3679
|
), f = ta(
|
|
@@ -3687,13 +3683,13 @@ const Bs = "/api/download", Vs = 6e4, so = async (t, e, n, r, s, a, o) => {
|
|
|
3687
3683
|
t,
|
|
3688
3684
|
m
|
|
3689
3685
|
), v = a.map((M, W) => {
|
|
3690
|
-
const q = w[M.id],
|
|
3686
|
+
const q = w[M.id], Q = $s(
|
|
3691
3687
|
M,
|
|
3692
3688
|
q.values[W]
|
|
3693
3689
|
);
|
|
3694
3690
|
return {
|
|
3695
3691
|
attribute: M,
|
|
3696
|
-
dimensionGroupValue:
|
|
3692
|
+
dimensionGroupValue: Q,
|
|
3697
3693
|
dimensionGroupData: q
|
|
3698
3694
|
};
|
|
3699
3695
|
});
|
|
@@ -3724,7 +3720,7 @@ const Bs = "/api/download", Vs = 6e4, so = async (t, e, n, r, s, a, o) => {
|
|
|
3724
3720
|
name: Js(r),
|
|
3725
3721
|
parsedTimeSeriesValue: r
|
|
3726
3722
|
};
|
|
3727
|
-
},
|
|
3723
|
+
}, ie = (t, e) => {
|
|
3728
3724
|
const n = [];
|
|
3729
3725
|
for (let r = 0; r < t.length; r++) {
|
|
3730
3726
|
const s = t[r], a = e(r), o = a != null && s.values != null ? Ks(a, s) : void 0;
|
|
@@ -3743,11 +3739,11 @@ const Bs = "/api/download", Vs = 6e4, so = async (t, e, n, r, s, a, o) => {
|
|
|
3743
3739
|
return [
|
|
3744
3740
|
{
|
|
3745
3741
|
values: Je(t, e.measures),
|
|
3746
|
-
obsAttributes:
|
|
3742
|
+
obsAttributes: ie(
|
|
3747
3743
|
e.attributes?.observation || [],
|
|
3748
3744
|
(o) => t[o + n]
|
|
3749
3745
|
),
|
|
3750
|
-
dimensionAtObservation:
|
|
3746
|
+
dimensionAtObservation: Xs
|
|
3751
3747
|
}
|
|
3752
3748
|
];
|
|
3753
3749
|
const r = t.observations, s = e.dimensions.observation?.[0], a = [];
|
|
@@ -3759,7 +3755,7 @@ const Bs = "/api/download", Vs = 6e4, so = async (t, e, n, r, s, a, o) => {
|
|
|
3759
3755
|
r[o],
|
|
3760
3756
|
e.measures
|
|
3761
3757
|
),
|
|
3762
|
-
obsAttributes:
|
|
3758
|
+
obsAttributes: ie(
|
|
3763
3759
|
e.attributes?.observation || [],
|
|
3764
3760
|
(c) => r[o][c + n]
|
|
3765
3761
|
)
|
|
@@ -3778,20 +3774,20 @@ const Bs = "/api/download", Vs = 6e4, so = async (t, e, n, r, s, a, o) => {
|
|
|
3778
3774
|
name: e.id,
|
|
3779
3775
|
value: s || ""
|
|
3780
3776
|
});
|
|
3781
|
-
}, ra = /^[0-9][0-9][0-9][0-9]-Q[1-4]$/, sa = /^[0-9][0-9][0-9][0-9]-W(0[1-9]|[1-4][0-9]|5[0-3])$/, aa = /^[0-9][0-9][0-9][0-9]-S[1-2]$/, oa = /^[0-9][0-9][0-9][0-9]$/, ia = /^[0-9][0-9][0-9][0-9]-(0[1-9]|1[0-2])-[0-9][0-9]$/, ca = /^[0-9][0-9][0-9][0-9]-M(0[1-9]|(1[0-2]))$/,
|
|
3777
|
+
}, ra = /^[0-9][0-9][0-9][0-9]-Q[1-4]$/, sa = /^[0-9][0-9][0-9][0-9]-W(0[1-9]|[1-4][0-9]|5[0-3])$/, aa = /^[0-9][0-9][0-9][0-9]-S[1-2]$/, oa = /^[0-9][0-9][0-9][0-9]$/, ia = /^[0-9][0-9][0-9][0-9]-(0[1-9]|1[0-2])-[0-9][0-9]$/, ca = /^[0-9][0-9][0-9][0-9]-M(0[1-9]|(1[0-2]))$/, Pe = (t) => oa.exec(t), ve = (t) => !!Pe(t), ua = (t) => aa.exec(t), Me = (t) => !!ua(t), Oe = (t) => ca.exec(t), Ae = (t) => !!Oe(t), Ne = (t) => ra.exec(t), ke = (t) => !!Ne(t), da = (t) => ia.exec(t), la = (t) => !!da(t), fa = (t) => sa.exec(t), Re = (t) => !!fa(t);
|
|
3782
3778
|
function xt(t) {
|
|
3783
|
-
return
|
|
3779
|
+
return ve(t) ? ma(t) : Me(t) ? ga(t) : ke(t) ? ya(t) : Ae(t) ? ba(t) : Re(t) ? Fs(t) : Ta(t);
|
|
3784
3780
|
}
|
|
3785
3781
|
function Pt(t) {
|
|
3786
|
-
return
|
|
3782
|
+
return ve(t) ? ha(t) : Me(t) ? wa(t) : ke(t) ? pa(t) : Ae(t) ? Da(t) : Re(t) ? Qs(t) : Ea(t);
|
|
3787
3783
|
}
|
|
3788
3784
|
function ma(t) {
|
|
3789
|
-
const e =
|
|
3785
|
+
const e = Pe(t);
|
|
3790
3786
|
if (e)
|
|
3791
3787
|
return new Date(Number(e[0]), 0, 1);
|
|
3792
3788
|
}
|
|
3793
3789
|
function ha(t) {
|
|
3794
|
-
const e =
|
|
3790
|
+
const e = Pe(t);
|
|
3795
3791
|
if (e)
|
|
3796
3792
|
return new Date(Number(e[0]) + 1, 0, 1);
|
|
3797
3793
|
}
|
|
@@ -3814,7 +3810,7 @@ function wa(t) {
|
|
|
3814
3810
|
}
|
|
3815
3811
|
}
|
|
3816
3812
|
function ya(t) {
|
|
3817
|
-
const e =
|
|
3813
|
+
const e = Ne(t);
|
|
3818
3814
|
if (!e)
|
|
3819
3815
|
return;
|
|
3820
3816
|
const [n, r] = e[0].split("-Q");
|
|
@@ -3830,7 +3826,7 @@ function ya(t) {
|
|
|
3830
3826
|
}
|
|
3831
3827
|
}
|
|
3832
3828
|
function pa(t) {
|
|
3833
|
-
const e =
|
|
3829
|
+
const e = Ne(t);
|
|
3834
3830
|
if (!e)
|
|
3835
3831
|
return;
|
|
3836
3832
|
const [n, r] = e[0].split("-Q");
|
|
@@ -3846,14 +3842,14 @@ function pa(t) {
|
|
|
3846
3842
|
}
|
|
3847
3843
|
}
|
|
3848
3844
|
function ba(t) {
|
|
3849
|
-
const e =
|
|
3845
|
+
const e = Oe(t);
|
|
3850
3846
|
if (!e)
|
|
3851
3847
|
return;
|
|
3852
3848
|
const [n, r] = e[0].split("-M");
|
|
3853
3849
|
return new Date(+n, +r - 1, 1);
|
|
3854
3850
|
}
|
|
3855
3851
|
function Da(t) {
|
|
3856
|
-
const e =
|
|
3852
|
+
const e = Oe(t);
|
|
3857
3853
|
if (!e)
|
|
3858
3854
|
return;
|
|
3859
3855
|
const [n, r] = e[0].split("-M");
|
|
@@ -3928,7 +3924,7 @@ const Ta = (t) => /* @__PURE__ */ new Date(`${t}T00:00:00`), Ea = (t) => {
|
|
|
3928
3924
|
return r - s;
|
|
3929
3925
|
}
|
|
3930
3926
|
return n;
|
|
3931
|
-
}, Ze = (t) =>
|
|
3927
|
+
}, Ze = (t) => ve(t) ? 6 : Me(t) ? 5 : ke(t) ? 4 : Ae(t) ? 3 : Re(t) ? 2 : la(t) ? 1 : 0, et = (t, e = !1) => (e ? xt(t) : Pt(t))?.getTime() || 0, Mt = (t, e, n) => {
|
|
3932
3928
|
const r = I(e, !0), s = I(n), a = I(t, !0), o = I(t), i = r.getTime() > a.getTime() ? r : a, c = s.getTime() < o.getTime() ? s : o;
|
|
3933
3929
|
return {
|
|
3934
3930
|
start: i,
|
|
@@ -3938,7 +3934,7 @@ const Ta = (t) => /* @__PURE__ */ new Date(`${t}T00:00:00`), Ea = (t) => {
|
|
|
3938
3934
|
const s = +t, { start: a, end: o } = Mt(t, e, n);
|
|
3939
3935
|
if (a.getTime() > o.getTime())
|
|
3940
3936
|
return [];
|
|
3941
|
-
const i =
|
|
3937
|
+
const i = Z(a, r), c = i.weekYear === s ? i.weekNumber : i.weekYear < s ? 1 : ze(s, r), u = Z(o, r), d = u.weekYear === s ? u.weekNumber : u.weekYear > s ? ze(s, r) : 1, l = [];
|
|
3942
3938
|
if (c < d)
|
|
3943
3939
|
for (let m = c; m <= d; m++)
|
|
3944
3940
|
l.push(Et(s, m, r));
|
|
@@ -4001,7 +3997,7 @@ const Ta = (t) => /* @__PURE__ */ new Date(`${t}T00:00:00`), Ea = (t) => {
|
|
|
4001
3997
|
};
|
|
4002
3998
|
function $a(t) {
|
|
4003
3999
|
const { urn: e } = t.details;
|
|
4004
|
-
return
|
|
4000
|
+
return ue(e.resourceId, e.version, e.agencyId);
|
|
4005
4001
|
}
|
|
4006
4002
|
function mo(t) {
|
|
4007
4003
|
const e = {};
|
|
@@ -4043,8 +4039,8 @@ function Wa(t, e) {
|
|
|
4043
4039
|
};
|
|
4044
4040
|
return n(t) === n(e);
|
|
4045
4041
|
}
|
|
4046
|
-
function
|
|
4047
|
-
return
|
|
4042
|
+
function ce(t) {
|
|
4043
|
+
return ue(
|
|
4048
4044
|
t.id,
|
|
4049
4045
|
t.version ?? "",
|
|
4050
4046
|
t.agencyID ?? ""
|
|
@@ -4052,13 +4048,13 @@ function ue(t) {
|
|
|
4052
4048
|
}
|
|
4053
4049
|
function Ot(t, e, n) {
|
|
4054
4050
|
e?.forEach((r) => {
|
|
4055
|
-
const { childId: s, agency: a, id: o, version: i } = tt(r.code), c =
|
|
4056
|
-
(l) => Wa(c,
|
|
4051
|
+
const { childId: s, agency: a, id: o, version: i } = tt(r.code), c = ue(o, i, a), u = n?.find(
|
|
4052
|
+
(l) => Wa(c, ce(l))
|
|
4057
4053
|
), d = u?.codes?.find((l) => l.id === s);
|
|
4058
4054
|
if (d != null) {
|
|
4059
4055
|
const l = r.code.replace(
|
|
4060
4056
|
c,
|
|
4061
|
-
|
|
4057
|
+
ce(u)
|
|
4062
4058
|
);
|
|
4063
4059
|
t.push({ ...d, code: l });
|
|
4064
4060
|
}
|
|
@@ -4072,7 +4068,7 @@ function go(t, e) {
|
|
|
4072
4068
|
function wo(t) {
|
|
4073
4069
|
const e = {};
|
|
4074
4070
|
return t?.forEach((n) => {
|
|
4075
|
-
e[
|
|
4071
|
+
e[ce(n)] = n.codes;
|
|
4076
4072
|
}), e;
|
|
4077
4073
|
}
|
|
4078
4074
|
function yo(t, e, n) {
|
|
@@ -4113,12 +4109,12 @@ class po {
|
|
|
4113
4109
|
}
|
|
4114
4110
|
}
|
|
4115
4111
|
export {
|
|
4116
|
-
|
|
4112
|
+
we as Annotations,
|
|
4117
4113
|
qs as AssignmentStatus,
|
|
4118
4114
|
qa as AvailabilityApi,
|
|
4119
4115
|
$t as DATASET_DATA_URL,
|
|
4120
4116
|
Ha as DatasetApi,
|
|
4121
|
-
|
|
4117
|
+
De as DimensionType,
|
|
4122
4118
|
Ct as DownloadType,
|
|
4123
4119
|
Ba as FREQUENCY_DIMENSION_ID,
|
|
4124
4120
|
Sa as FREQUENCY_DIM_ID,
|
|
@@ -4127,17 +4123,17 @@ export {
|
|
|
4127
4123
|
Ua as GET_v3_FILTER_AND,
|
|
4128
4124
|
qt as GET_v3_FILTER_OR,
|
|
4129
4125
|
po as HierarchyApi,
|
|
4130
|
-
|
|
4126
|
+
Xs as OBSERVATION_KEY,
|
|
4131
4127
|
Us as OccurrenceType,
|
|
4132
4128
|
gs as Periods,
|
|
4133
4129
|
hs as RepresentationTextType,
|
|
4134
4130
|
ms as SDMX_DATA_QUERY_PARAMS,
|
|
4135
|
-
|
|
4136
|
-
|
|
4131
|
+
oe as SINGLE_WILDCARD_SYMBOL,
|
|
4132
|
+
Fa as SdmxApiClient,
|
|
4137
4133
|
nt as SdmxAvailabilityMode,
|
|
4138
|
-
|
|
4134
|
+
G as SdmxDataFormat,
|
|
4139
4135
|
rt as SdmxDetails,
|
|
4140
|
-
|
|
4136
|
+
de as SdmxReferences,
|
|
4141
4137
|
R as SeriesFilterOperator,
|
|
4142
4138
|
ws as TIME_PERIOD,
|
|
4143
4139
|
ps as TIME_PERIOD_END_ANNOTATION_KEY,
|
|
@@ -4145,12 +4141,12 @@ export {
|
|
|
4145
4141
|
mo as buildDatasetDimensionsMetadataMap,
|
|
4146
4142
|
ia as dailyPattern,
|
|
4147
4143
|
Zs as decodeDimensionId,
|
|
4148
|
-
|
|
4144
|
+
Xa as findCodelistByDimension,
|
|
4149
4145
|
Ye as generateDatasetDataRequest,
|
|
4150
|
-
|
|
4146
|
+
ue as generateShortUrn,
|
|
4151
4147
|
fo as getAdditionalColumns,
|
|
4152
4148
|
Va as getAnnotationPeriod,
|
|
4153
|
-
|
|
4149
|
+
pe as getArtifactByUrnWithWildCard,
|
|
4154
4150
|
za as getAttachedDimensionsSeriesByDimension,
|
|
4155
4151
|
Ss as getAttachedDimensionsSeriesByTsId,
|
|
4156
4152
|
Tt as getAttachedDimensionsSeriesKey,
|
|
@@ -4159,67 +4155,67 @@ export {
|
|
|
4159
4155
|
Ga as getAvailableCodesFromConstrains,
|
|
4160
4156
|
tt as getChildParsedUrn,
|
|
4161
4157
|
wo as getCodeListsData,
|
|
4162
|
-
|
|
4163
|
-
|
|
4158
|
+
be as getConcept,
|
|
4159
|
+
je as getConceptByUrn,
|
|
4164
4160
|
Cs as getConceptWithScheme,
|
|
4165
4161
|
Ws as getConvertedMetaAttributes,
|
|
4166
4162
|
da as getDailyRegExp,
|
|
4167
4163
|
Ya as getDaysColumns,
|
|
4168
4164
|
Ja as getDimensionTitle,
|
|
4169
|
-
|
|
4165
|
+
Xe as getDimensions,
|
|
4170
4166
|
fs as getFilteredItemsWithParents,
|
|
4171
4167
|
Ps as getFiltersDtoFromDataQuery,
|
|
4172
|
-
|
|
4168
|
+
ja as getFiltersDtoMapFromDataQuery,
|
|
4173
4169
|
yo as getHierarchyAvailableCodes,
|
|
4174
4170
|
go as getHierarchyCodes,
|
|
4175
|
-
|
|
4176
|
-
|
|
4177
|
-
|
|
4171
|
+
Z as getISOWeek,
|
|
4172
|
+
z as getKeyFromUrn,
|
|
4173
|
+
Qa as getLastUpdatedTime,
|
|
4178
4174
|
ze as getLastWeekNumberOfYear,
|
|
4179
|
-
|
|
4175
|
+
ye as getLocalizedName,
|
|
4180
4176
|
Aa as getMonthlyData,
|
|
4181
4177
|
uo as getMonthlyDataByQuarter,
|
|
4182
|
-
|
|
4178
|
+
Oe as getMonthlyRegExp,
|
|
4183
4179
|
Pt as getParsedEndPeriodDate,
|
|
4184
4180
|
io as getParsedResponse,
|
|
4185
4181
|
xt as getParsedStartPeriodDate,
|
|
4186
4182
|
I as getPeriodDate,
|
|
4187
4183
|
Ca as getPeriods,
|
|
4188
4184
|
co as getQuarterByMonth,
|
|
4189
|
-
|
|
4185
|
+
Ne as getQuarterlyRegExp,
|
|
4190
4186
|
Pa as getQuartersData,
|
|
4191
4187
|
Gs as getQueryTimePeriodFilters,
|
|
4192
4188
|
Lt as getRequestAcceptHeader,
|
|
4193
4189
|
Rs as getResolvedVersionBySingleWildcard,
|
|
4194
4190
|
va as getSemiAnnualData,
|
|
4195
4191
|
ua as getSemiAnnuallyRegExp,
|
|
4196
|
-
|
|
4192
|
+
ie as getSeriesAttributes,
|
|
4197
4193
|
zs as getSeriesName,
|
|
4198
4194
|
no as getStructureComponentsMap,
|
|
4199
4195
|
Za as getStructureDimensions,
|
|
4200
4196
|
to as getTimeDimension,
|
|
4201
4197
|
eo as getTimePeriods,
|
|
4202
4198
|
oo as getTimeQueryFilter,
|
|
4203
|
-
|
|
4199
|
+
js as getTimeRangeFromAttachment,
|
|
4204
4200
|
ro as getTimeSeriesCount,
|
|
4205
4201
|
ao as getTimeSeriesFilterKey,
|
|
4206
4202
|
Js as getTimeSeriesId,
|
|
4207
4203
|
Et as getWeekCode,
|
|
4208
|
-
|
|
4209
|
-
|
|
4204
|
+
Qs as getWeeklyPeriodEndDate,
|
|
4205
|
+
Fs as getWeeklyPeriodStartDate,
|
|
4210
4206
|
fa as getWeeklyRegExp,
|
|
4211
4207
|
Ia as getWeeksColumns,
|
|
4212
4208
|
_s as getWildCardPrefix,
|
|
4213
4209
|
Mt as getYearPeriod,
|
|
4214
|
-
|
|
4210
|
+
Pe as getYearlyRegExp,
|
|
4215
4211
|
Na as getYears,
|
|
4216
4212
|
la as isDaily,
|
|
4217
|
-
|
|
4218
|
-
|
|
4219
|
-
|
|
4220
|
-
|
|
4213
|
+
Ae as isMonthly,
|
|
4214
|
+
ke as isQuarterly,
|
|
4215
|
+
Me as isSemiAnnually,
|
|
4216
|
+
Re as isWeekly,
|
|
4221
4217
|
Ys as isWildCardVersionCorrect,
|
|
4222
|
-
|
|
4218
|
+
ve as isYearly,
|
|
4223
4219
|
ca as monthlyPattern,
|
|
4224
4220
|
so as openDownloadWindow,
|
|
4225
4221
|
ra as quarterPattern,
|