@bahmni/services 0.0.1-dev.66 → 0.0.1-dev.69
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/configService/index.d.ts +1 -1
- package/dist/configService/index.d.ts.map +1 -1
- package/dist/configService/models/registrationConfig.d.ts +18 -0
- package/dist/configService/models/registrationConfig.d.ts.map +1 -1
- package/dist/configService/models.d.ts +1 -1
- package/dist/configService/models.d.ts.map +1 -1
- package/dist/configService/schemas/registrationConfig.schema.json.d.ts +73 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +729 -729
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -18,7 +18,7 @@ function ho(e) {
|
|
|
18
18
|
let t;
|
|
19
19
|
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer && ti(e.buffer), t;
|
|
20
20
|
}
|
|
21
|
-
const
|
|
21
|
+
const po = kr("string"), _e = kr("function"), ri = kr("number"), Tt = (e) => e !== null && typeof e == "object", mo = (e) => e === !0 || e === !1, br = (e) => {
|
|
22
22
|
if (Ir(e) !== "object")
|
|
23
23
|
return !1;
|
|
24
24
|
const t = On(e);
|
|
@@ -185,9 +185,9 @@ const Wo = (e) => {
|
|
|
185
185
|
isBuffer: Pt,
|
|
186
186
|
isFormData: _o,
|
|
187
187
|
isArrayBufferView: ho,
|
|
188
|
-
isString:
|
|
188
|
+
isString: po,
|
|
189
189
|
isNumber: ri,
|
|
190
|
-
isBoolean:
|
|
190
|
+
isBoolean: mo,
|
|
191
191
|
isObject: Tt,
|
|
192
192
|
isPlainObject: br,
|
|
193
193
|
isEmptyObject: go,
|
|
@@ -333,12 +333,12 @@ function Lr(e, t, r) {
|
|
|
333
333
|
return D.isArrayBuffer(y) || D.isTypedArray(y) ? c && typeof Blob == "function" ? new Blob([y]) : Buffer.from(y) : y;
|
|
334
334
|
}
|
|
335
335
|
function d(y, g, f) {
|
|
336
|
-
let
|
|
336
|
+
let p = y;
|
|
337
337
|
if (y && !f && typeof y == "object") {
|
|
338
338
|
if (D.endsWith(g, "{}"))
|
|
339
339
|
g = n ? g : g.slice(0, -2), y = JSON.stringify(y);
|
|
340
|
-
else if (D.isArray(y) && Qo(y) || (D.isFileList(y) || D.endsWith(g, "[]")) && (
|
|
341
|
-
return g = ui(g),
|
|
340
|
+
else if (D.isArray(y) && Qo(y) || (D.isFileList(y) || D.endsWith(g, "[]")) && (p = D.toArray(y)))
|
|
341
|
+
return g = ui(g), p.forEach(function(h, w) {
|
|
342
342
|
!(D.isUndefined(h) || h === null) && t.append(
|
|
343
343
|
// eslint-disable-next-line no-nested-ternary
|
|
344
344
|
i === !0 ? Vn([g], w, s) : i === null ? g : g + "[]",
|
|
@@ -348,24 +348,24 @@ function Lr(e, t, r) {
|
|
|
348
348
|
}
|
|
349
349
|
return En(y) ? !0 : (t.append(Vn(f, g, s), l(y)), !1);
|
|
350
350
|
}
|
|
351
|
-
const
|
|
351
|
+
const m = [], b = Object.assign(Zo, {
|
|
352
352
|
defaultVisitor: d,
|
|
353
353
|
convertValue: l,
|
|
354
354
|
isVisitable: En
|
|
355
355
|
});
|
|
356
356
|
function S(y, g) {
|
|
357
357
|
if (!D.isUndefined(y)) {
|
|
358
|
-
if (
|
|
358
|
+
if (m.indexOf(y) !== -1)
|
|
359
359
|
throw Error("Circular reference detected in " + g.join("."));
|
|
360
|
-
|
|
361
|
-
(!(D.isUndefined(
|
|
360
|
+
m.push(y), D.forEach(y, function(p, u) {
|
|
361
|
+
(!(D.isUndefined(p) || p === null) && a.call(
|
|
362
362
|
t,
|
|
363
|
-
|
|
363
|
+
p,
|
|
364
364
|
D.isString(u) ? u.trim() : u,
|
|
365
365
|
g,
|
|
366
366
|
b
|
|
367
|
-
)) === !0 && S(
|
|
368
|
-
}),
|
|
367
|
+
)) === !0 && S(p, g ? g.concat(u) : [u]);
|
|
368
|
+
}), m.pop();
|
|
369
369
|
}
|
|
370
370
|
}
|
|
371
371
|
if (!D.isObject(e))
|
|
@@ -629,7 +629,7 @@ const hc = D.toObjectSet([
|
|
|
629
629
|
"referer",
|
|
630
630
|
"retry-after",
|
|
631
631
|
"user-agent"
|
|
632
|
-
]),
|
|
632
|
+
]), pc = (e) => {
|
|
633
633
|
const t = {};
|
|
634
634
|
let r, n, a;
|
|
635
635
|
return e && e.split(`
|
|
@@ -643,7 +643,7 @@ function gt(e) {
|
|
|
643
643
|
function wr(e) {
|
|
644
644
|
return e === !1 || e == null ? e : D.isArray(e) ? e.map(wr) : String(e);
|
|
645
645
|
}
|
|
646
|
-
function
|
|
646
|
+
function mc(e) {
|
|
647
647
|
const t = /* @__PURE__ */ Object.create(null), r = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
|
|
648
648
|
let n;
|
|
649
649
|
for (; n = r.exec(e); )
|
|
@@ -685,14 +685,14 @@ let Se = class {
|
|
|
685
685
|
const d = gt(c);
|
|
686
686
|
if (!d)
|
|
687
687
|
throw new Error("header name must be a non-empty string");
|
|
688
|
-
const
|
|
689
|
-
(!
|
|
688
|
+
const m = D.findKey(a, d);
|
|
689
|
+
(!m || a[m] === void 0 || l === !0 || l === void 0 && a[m] !== !1) && (a[m || c] = wr(o));
|
|
690
690
|
}
|
|
691
691
|
const i = (o, c) => D.forEach(o, (l, d) => s(l, d, c));
|
|
692
692
|
if (D.isPlainObject(t) || t instanceof this.constructor)
|
|
693
693
|
i(t, r);
|
|
694
694
|
else if (D.isString(t) && (t = t.trim()) && !gc(t))
|
|
695
|
-
i(
|
|
695
|
+
i(pc(t), r);
|
|
696
696
|
else if (D.isObject(t) && D.isIterable(t)) {
|
|
697
697
|
let o = {}, c, l;
|
|
698
698
|
for (const d of t) {
|
|
@@ -713,7 +713,7 @@ let Se = class {
|
|
|
713
713
|
if (!r)
|
|
714
714
|
return a;
|
|
715
715
|
if (r === !0)
|
|
716
|
-
return
|
|
716
|
+
return mc(a);
|
|
717
717
|
if (D.isFunction(r))
|
|
718
718
|
return r.call(this, a, n);
|
|
719
719
|
if (D.isRegExp(r))
|
|
@@ -819,7 +819,7 @@ function Xr(e, t) {
|
|
|
819
819
|
s = o.call(r, s, a.normalize(), t ? t.status : void 0);
|
|
820
820
|
}), a.normalize(), s;
|
|
821
821
|
}
|
|
822
|
-
function
|
|
822
|
+
function pi(e) {
|
|
823
823
|
return !!(e && e.__CANCEL__);
|
|
824
824
|
}
|
|
825
825
|
function ht(e, t, r) {
|
|
@@ -828,7 +828,7 @@ function ht(e, t, r) {
|
|
|
828
828
|
D.inherits(ht, G, {
|
|
829
829
|
__CANCEL__: !0
|
|
830
830
|
});
|
|
831
|
-
function
|
|
831
|
+
function mi(e, t, r) {
|
|
832
832
|
const n = r.config.validateStatus;
|
|
833
833
|
!r.status || !n || n(r.status) ? e(r) : t(new G(
|
|
834
834
|
"Request failed with status code " + r.status,
|
|
@@ -849,9 +849,9 @@ function vc(e, t) {
|
|
|
849
849
|
return t = t !== void 0 ? t : 1e3, function(c) {
|
|
850
850
|
const l = Date.now(), d = n[s];
|
|
851
851
|
i || (i = l), r[a] = c, n[a] = l;
|
|
852
|
-
let
|
|
853
|
-
for (;
|
|
854
|
-
b += r[
|
|
852
|
+
let m = s, b = 0;
|
|
853
|
+
for (; m !== a; )
|
|
854
|
+
b += r[m++], m = m % e;
|
|
855
855
|
if (a = (a + 1) % e, a === s && (s = (s + 1) % e), l - i < t)
|
|
856
856
|
return;
|
|
857
857
|
const S = d && l - d;
|
|
@@ -864,10 +864,10 @@ function Ec(e, t) {
|
|
|
864
864
|
r = d, a = null, s && (clearTimeout(s), s = null), e(...l);
|
|
865
865
|
};
|
|
866
866
|
return [(...l) => {
|
|
867
|
-
const d = Date.now(),
|
|
868
|
-
|
|
867
|
+
const d = Date.now(), m = d - r;
|
|
868
|
+
m >= n ? i(l, d) : (a = l, s || (s = setTimeout(() => {
|
|
869
869
|
s = null, i(a);
|
|
870
|
-
}, n -
|
|
870
|
+
}, n - m)));
|
|
871
871
|
}, () => a && i(a)];
|
|
872
872
|
}
|
|
873
873
|
const Sr = (e, t, r = 3) => {
|
|
@@ -876,7 +876,7 @@ const Sr = (e, t, r = 3) => {
|
|
|
876
876
|
return Ec((s) => {
|
|
877
877
|
const i = s.loaded, o = s.lengthComputable ? s.total : void 0, c = i - n, l = a(c), d = i <= o;
|
|
878
878
|
n = i;
|
|
879
|
-
const
|
|
879
|
+
const m = {
|
|
880
880
|
loaded: i,
|
|
881
881
|
total: o,
|
|
882
882
|
progress: o ? i / o : void 0,
|
|
@@ -887,7 +887,7 @@ const Sr = (e, t, r = 3) => {
|
|
|
887
887
|
lengthComputable: o != null,
|
|
888
888
|
[t ? "download" : "upload"]: !0
|
|
889
889
|
};
|
|
890
|
-
e(
|
|
890
|
+
e(m);
|
|
891
891
|
}, r);
|
|
892
892
|
}, Wn = (e, t) => {
|
|
893
893
|
const r = e != null;
|
|
@@ -940,14 +940,14 @@ const Kn = (e) => e instanceof Se ? { ...e } : e;
|
|
|
940
940
|
function Ke(e, t) {
|
|
941
941
|
t = t || {};
|
|
942
942
|
const r = {};
|
|
943
|
-
function n(l, d,
|
|
943
|
+
function n(l, d, m, b) {
|
|
944
944
|
return D.isPlainObject(l) && D.isPlainObject(d) ? D.merge.call({ caseless: b }, l, d) : D.isPlainObject(d) ? D.merge({}, d) : D.isArray(d) ? d.slice() : d;
|
|
945
945
|
}
|
|
946
|
-
function a(l, d,
|
|
946
|
+
function a(l, d, m, b) {
|
|
947
947
|
if (D.isUndefined(d)) {
|
|
948
948
|
if (!D.isUndefined(l))
|
|
949
|
-
return n(void 0, l,
|
|
950
|
-
} else return n(l, d,
|
|
949
|
+
return n(void 0, l, m, b);
|
|
950
|
+
} else return n(l, d, m, b);
|
|
951
951
|
}
|
|
952
952
|
function s(l, d) {
|
|
953
953
|
if (!D.isUndefined(d))
|
|
@@ -959,10 +959,10 @@ function Ke(e, t) {
|
|
|
959
959
|
return n(void 0, l);
|
|
960
960
|
} else return n(void 0, d);
|
|
961
961
|
}
|
|
962
|
-
function o(l, d,
|
|
963
|
-
if (
|
|
962
|
+
function o(l, d, m) {
|
|
963
|
+
if (m in t)
|
|
964
964
|
return n(l, d);
|
|
965
|
-
if (
|
|
965
|
+
if (m in e)
|
|
966
966
|
return n(void 0, l);
|
|
967
967
|
}
|
|
968
968
|
const c = {
|
|
@@ -994,11 +994,11 @@ function Ke(e, t) {
|
|
|
994
994
|
socketPath: i,
|
|
995
995
|
responseEncoding: i,
|
|
996
996
|
validateStatus: o,
|
|
997
|
-
headers: (l, d,
|
|
997
|
+
headers: (l, d, m) => a(Kn(l), Kn(d), m, !0)
|
|
998
998
|
};
|
|
999
999
|
return D.forEach(Object.keys({ ...e, ...t }), function(d) {
|
|
1000
|
-
const
|
|
1001
|
-
D.isUndefined(b) &&
|
|
1000
|
+
const m = c[d] || a, b = m(e[d], t[d], d);
|
|
1001
|
+
D.isUndefined(b) && m !== o || (r[d] = b);
|
|
1002
1002
|
}), r;
|
|
1003
1003
|
}
|
|
1004
1004
|
const yi = (e) => {
|
|
@@ -1012,8 +1012,8 @@ const yi = (e) => {
|
|
|
1012
1012
|
i.setContentType(void 0);
|
|
1013
1013
|
else if (D.isFunction(r.getHeaders)) {
|
|
1014
1014
|
const c = r.getHeaders(), l = ["content-type", "content-length"];
|
|
1015
|
-
Object.entries(c).forEach(([d,
|
|
1016
|
-
l.includes(d.toLowerCase()) && i.set(d,
|
|
1015
|
+
Object.entries(c).forEach(([d, m]) => {
|
|
1016
|
+
l.includes(d.toLowerCase()) && i.set(d, m);
|
|
1017
1017
|
});
|
|
1018
1018
|
}
|
|
1019
1019
|
}
|
|
@@ -1027,13 +1027,13 @@ const yi = (e) => {
|
|
|
1027
1027
|
const a = yi(e);
|
|
1028
1028
|
let s = a.data;
|
|
1029
1029
|
const i = Se.from(a.headers).normalize();
|
|
1030
|
-
let { responseType: o, onUploadProgress: c, onDownloadProgress: l } = a, d,
|
|
1030
|
+
let { responseType: o, onUploadProgress: c, onDownloadProgress: l } = a, d, m, b, S, y;
|
|
1031
1031
|
function g() {
|
|
1032
1032
|
S && S(), y && y(), a.cancelToken && a.cancelToken.unsubscribe(d), a.signal && a.signal.removeEventListener("abort", d);
|
|
1033
1033
|
}
|
|
1034
1034
|
let f = new XMLHttpRequest();
|
|
1035
1035
|
f.open(a.method.toUpperCase(), a.url, !0), f.timeout = a.timeout;
|
|
1036
|
-
function
|
|
1036
|
+
function p() {
|
|
1037
1037
|
if (!f)
|
|
1038
1038
|
return;
|
|
1039
1039
|
const h = Se.from(
|
|
@@ -1046,14 +1046,14 @@ const yi = (e) => {
|
|
|
1046
1046
|
config: e,
|
|
1047
1047
|
request: f
|
|
1048
1048
|
};
|
|
1049
|
-
|
|
1049
|
+
mi(function($) {
|
|
1050
1050
|
r($), g();
|
|
1051
1051
|
}, function($) {
|
|
1052
1052
|
n($), g();
|
|
1053
1053
|
}, _), f = null;
|
|
1054
1054
|
}
|
|
1055
|
-
"onloadend" in f ? f.onloadend =
|
|
1056
|
-
!f || f.readyState !== 4 || f.status === 0 && !(f.responseURL && f.responseURL.indexOf("file:") === 0) || setTimeout(
|
|
1055
|
+
"onloadend" in f ? f.onloadend = p : f.onreadystatechange = function() {
|
|
1056
|
+
!f || f.readyState !== 4 || f.status === 0 && !(f.responseURL && f.responseURL.indexOf("file:") === 0) || setTimeout(p);
|
|
1057
1057
|
}, f.onabort = function() {
|
|
1058
1058
|
f && (n(new G("Request aborted", G.ECONNABORTED, e, f)), f = null);
|
|
1059
1059
|
}, f.onerror = function(w) {
|
|
@@ -1070,7 +1070,7 @@ const yi = (e) => {
|
|
|
1070
1070
|
)), f = null;
|
|
1071
1071
|
}, s === void 0 && i.setContentType(null), "setRequestHeader" in f && D.forEach(i.toJSON(), function(w, _) {
|
|
1072
1072
|
f.setRequestHeader(_, w);
|
|
1073
|
-
}), D.isUndefined(a.withCredentials) || (f.withCredentials = !!a.withCredentials), o && o !== "json" && (f.responseType = a.responseType), l && ([b, y] = Sr(l, !0), f.addEventListener("progress", b)), c && f.upload && ([
|
|
1073
|
+
}), D.isUndefined(a.withCredentials) || (f.withCredentials = !!a.withCredentials), o && o !== "json" && (f.responseType = a.responseType), l && ([b, y] = Sr(l, !0), f.addEventListener("progress", b)), c && f.upload && ([m, S] = Sr(c), f.upload.addEventListener("progress", m), f.upload.addEventListener("loadend", S)), (a.cancelToken || a.signal) && (d = (h) => {
|
|
1074
1074
|
f && (n(!h || h.type ? new ht(null, e, f) : h), f.abort(), f = null);
|
|
1075
1075
|
}, a.cancelToken && a.cancelToken.subscribe(d), a.signal && (a.signal.aborted ? d() : a.signal.addEventListener("abort", d)));
|
|
1076
1076
|
const u = wc(a.url);
|
|
@@ -1144,9 +1144,9 @@ const yi = (e) => {
|
|
|
1144
1144
|
o(), c.close();
|
|
1145
1145
|
return;
|
|
1146
1146
|
}
|
|
1147
|
-
let
|
|
1147
|
+
let m = d.byteLength;
|
|
1148
1148
|
if (r) {
|
|
1149
|
-
let b = s +=
|
|
1149
|
+
let b = s += m;
|
|
1150
1150
|
r(b);
|
|
1151
1151
|
}
|
|
1152
1152
|
c.enqueue(new Uint8Array(d));
|
|
@@ -1187,14 +1187,14 @@ const yi = (e) => {
|
|
|
1187
1187
|
}
|
|
1188
1188
|
}).headers.has("Content-Type");
|
|
1189
1189
|
return y && !g;
|
|
1190
|
-
}), d = i && o && Zn(() => D.isReadableStream(new n("").body)),
|
|
1190
|
+
}), d = i && o && Zn(() => D.isReadableStream(new n("").body)), m = {
|
|
1191
1191
|
stream: d && ((y) => y.body)
|
|
1192
1192
|
};
|
|
1193
1193
|
a && ["text", "arrayBuffer", "blob", "formData", "stream"].forEach((y) => {
|
|
1194
|
-
!
|
|
1195
|
-
let
|
|
1196
|
-
if (
|
|
1197
|
-
return
|
|
1194
|
+
!m[y] && (m[y] = (g, f) => {
|
|
1195
|
+
let p = g && g[y];
|
|
1196
|
+
if (p)
|
|
1197
|
+
return p.call(g);
|
|
1198
1198
|
throw new G(`Response type '${y}' is not supported`, G.ERR_NOT_SUPPORT, f);
|
|
1199
1199
|
});
|
|
1200
1200
|
});
|
|
@@ -1220,7 +1220,7 @@ const yi = (e) => {
|
|
|
1220
1220
|
let {
|
|
1221
1221
|
url: g,
|
|
1222
1222
|
method: f,
|
|
1223
|
-
data:
|
|
1223
|
+
data: p,
|
|
1224
1224
|
signal: u,
|
|
1225
1225
|
cancelToken: h,
|
|
1226
1226
|
timeout: w,
|
|
@@ -1238,18 +1238,18 @@ const yi = (e) => {
|
|
|
1238
1238
|
});
|
|
1239
1239
|
let z;
|
|
1240
1240
|
try {
|
|
1241
|
-
if (E && l && f !== "get" && f !== "head" && (z = await S(O,
|
|
1241
|
+
if (E && l && f !== "get" && f !== "head" && (z = await S(O, p)) !== 0) {
|
|
1242
1242
|
let M = new r(g, {
|
|
1243
1243
|
method: "POST",
|
|
1244
|
-
body:
|
|
1244
|
+
body: p,
|
|
1245
1245
|
duplex: "half"
|
|
1246
1246
|
}), T;
|
|
1247
|
-
if (D.isFormData(
|
|
1247
|
+
if (D.isFormData(p) && (T = M.headers.get("content-type")) && O.setContentType(T), M.body) {
|
|
1248
1248
|
const [I, A] = Wn(
|
|
1249
1249
|
z,
|
|
1250
1250
|
Sr(Gn(E))
|
|
1251
1251
|
);
|
|
1252
|
-
|
|
1252
|
+
p = Yn(M.body, Jn, I, A);
|
|
1253
1253
|
}
|
|
1254
1254
|
}
|
|
1255
1255
|
D.isString(k) || (k = k ? "include" : "omit");
|
|
@@ -1258,7 +1258,7 @@ const yi = (e) => {
|
|
|
1258
1258
|
signal: q,
|
|
1259
1259
|
method: f.toUpperCase(),
|
|
1260
1260
|
headers: O.normalize().toJSON(),
|
|
1261
|
-
body:
|
|
1261
|
+
body: p,
|
|
1262
1262
|
duplex: "half",
|
|
1263
1263
|
credentials: K ? k : void 0
|
|
1264
1264
|
};
|
|
@@ -1282,9 +1282,9 @@ const yi = (e) => {
|
|
|
1282
1282
|
);
|
|
1283
1283
|
}
|
|
1284
1284
|
$ = $ || "text";
|
|
1285
|
-
let oe = await
|
|
1285
|
+
let oe = await m[D.findKey(m, $) || "text"](ue, y);
|
|
1286
1286
|
return !ee && F && F(), await new Promise((M, T) => {
|
|
1287
|
-
|
|
1287
|
+
mi(M, T, {
|
|
1288
1288
|
data: oe,
|
|
1289
1289
|
headers: Se.from(ue.headers),
|
|
1290
1290
|
status: ue.status,
|
|
@@ -1379,7 +1379,7 @@ function ta(e) {
|
|
|
1379
1379
|
n
|
|
1380
1380
|
), n.headers = Se.from(n.headers), n;
|
|
1381
1381
|
}, function(n) {
|
|
1382
|
-
return
|
|
1382
|
+
return pi(n) || (Qr(e), n && n.response && (n.response.data = Xr.call(
|
|
1383
1383
|
e,
|
|
1384
1384
|
e.transformResponse,
|
|
1385
1385
|
n.response
|
|
@@ -1502,17 +1502,17 @@ let Ge = class {
|
|
|
1502
1502
|
this.interceptors.response.forEach(function(g) {
|
|
1503
1503
|
l.push(g.fulfilled, g.rejected);
|
|
1504
1504
|
});
|
|
1505
|
-
let d,
|
|
1505
|
+
let d, m = 0, b;
|
|
1506
1506
|
if (!c) {
|
|
1507
1507
|
const y = [ta.bind(this), void 0];
|
|
1508
|
-
for (y.unshift(...o), y.push(...l), b = y.length, d = Promise.resolve(r);
|
|
1509
|
-
d = d.then(y[
|
|
1508
|
+
for (y.unshift(...o), y.push(...l), b = y.length, d = Promise.resolve(r); m < b; )
|
|
1509
|
+
d = d.then(y[m++], y[m++]);
|
|
1510
1510
|
return d;
|
|
1511
1511
|
}
|
|
1512
1512
|
b = o.length;
|
|
1513
1513
|
let S = r;
|
|
1514
|
-
for (
|
|
1515
|
-
const y = o[
|
|
1514
|
+
for (m = 0; m < b; ) {
|
|
1515
|
+
const y = o[m++], g = o[m++];
|
|
1516
1516
|
try {
|
|
1517
1517
|
S = y(S);
|
|
1518
1518
|
} catch (f) {
|
|
@@ -1525,8 +1525,8 @@ let Ge = class {
|
|
|
1525
1525
|
} catch (y) {
|
|
1526
1526
|
return Promise.reject(y);
|
|
1527
1527
|
}
|
|
1528
|
-
for (
|
|
1529
|
-
d = d.then(l[
|
|
1528
|
+
for (m = 0, b = l.length; m < b; )
|
|
1529
|
+
d = d.then(l[m++], l[m++]);
|
|
1530
1530
|
return d;
|
|
1531
1531
|
}
|
|
1532
1532
|
getUri(t) {
|
|
@@ -1718,7 +1718,7 @@ const le = Si(At);
|
|
|
1718
1718
|
le.Axios = Ge;
|
|
1719
1719
|
le.CanceledError = ht;
|
|
1720
1720
|
le.CancelToken = Mc;
|
|
1721
|
-
le.isCancel =
|
|
1721
|
+
le.isCancel = pi;
|
|
1722
1722
|
le.VERSION = Ei;
|
|
1723
1723
|
le.toFormData = Lr;
|
|
1724
1724
|
le.AxiosError = G;
|
|
@@ -1744,8 +1744,8 @@ const {
|
|
|
1744
1744
|
all: dy,
|
|
1745
1745
|
Cancel: fy,
|
|
1746
1746
|
isAxiosError: hy,
|
|
1747
|
-
spread:
|
|
1748
|
-
toFormData:
|
|
1747
|
+
spread: py,
|
|
1748
|
+
toFormData: my,
|
|
1749
1749
|
AxiosHeaders: gy,
|
|
1750
1750
|
HttpStatusCode: yy,
|
|
1751
1751
|
formToJSON: by,
|
|
@@ -1805,8 +1805,8 @@ var ot = function() {
|
|
|
1805
1805
|
function Dn(e, t) {
|
|
1806
1806
|
for (var r = {}, n = {}, a = e.split(Fc), s = !1, i = 0; a.length > i; i++) {
|
|
1807
1807
|
for (var o = a[i].split(Uc), c = 0; c < o.length; c += 2) {
|
|
1808
|
-
var l = o[c], d = o[c + 1],
|
|
1809
|
-
r[
|
|
1808
|
+
var l = o[c], d = o[c + 1], m = "&" + l + ";";
|
|
1809
|
+
r[m] = d, s && (r["&" + l] = d), n[d] = m;
|
|
1810
1810
|
}
|
|
1811
1811
|
s = !0;
|
|
1812
1812
|
}
|
|
@@ -1901,8 +1901,8 @@ function Yc(e, t) {
|
|
|
1901
1901
|
if (!e)
|
|
1902
1902
|
return "";
|
|
1903
1903
|
var o = Wc[a][i], c = Bc[a].entities, l = i === "attribute", d = i === "strict";
|
|
1904
|
-
return e.replace(o, function(
|
|
1905
|
-
return Kc(
|
|
1904
|
+
return e.replace(o, function(m) {
|
|
1905
|
+
return Kc(m, c, l, d);
|
|
1906
1906
|
});
|
|
1907
1907
|
}
|
|
1908
1908
|
const Rn = (e) => {
|
|
@@ -1946,7 +1946,7 @@ Ye.interceptors.response.use(
|
|
|
1946
1946
|
return Promise.reject(`${t}: ${r}`);
|
|
1947
1947
|
}
|
|
1948
1948
|
);
|
|
1949
|
-
const Q = async (e) => (await Ye.get(e)).data,
|
|
1949
|
+
const Q = async (e) => (await Ye.get(e)).data, pt = async (e, t) => (await Ye.post(e, t)).data, Ey = async (e, t) => (await Ye.put(e, t)).data, _y = async (e) => (await Ye.delete(e)).data, W = (e) => typeof e == "string", yt = () => {
|
|
1950
1950
|
let e, t;
|
|
1951
1951
|
const r = new Promise((n, a) => {
|
|
1952
1952
|
e = n, t = a;
|
|
@@ -2303,22 +2303,22 @@ class Tr extends xr {
|
|
|
2303
2303
|
usedParams: this.getUsedParamsDetails(r)
|
|
2304
2304
|
} : i;
|
|
2305
2305
|
}
|
|
2306
|
-
const
|
|
2307
|
-
let b =
|
|
2308
|
-
const S = (
|
|
2306
|
+
const m = this.resolve(t, r);
|
|
2307
|
+
let b = m == null ? void 0 : m.res;
|
|
2308
|
+
const S = (m == null ? void 0 : m.usedKey) || i, y = (m == null ? void 0 : m.exactUsedKey) || i, g = ["[object Number]", "[object Function]", "[object RegExp]"], f = r.joinArrays !== void 0 ? r.joinArrays : this.options.joinArrays, p = !this.i18nFormat || this.i18nFormat.handleAsObject, u = r.count !== void 0 && !W(r.count), h = Tr.hasDefaultValue(r), w = u ? this.pluralResolver.getSuffix(l, r.count, r) : "", _ = r.ordinal && u ? this.pluralResolver.getSuffix(l, r.count, {
|
|
2309
2309
|
ordinal: !1
|
|
2310
2310
|
}) : "", E = u && !r.ordinal && r.count === 0, $ = E && r[`defaultValue${this.options.pluralSeparator}zero`] || r[`defaultValue${w}`] || r[`defaultValue${_}`] || r.defaultValue;
|
|
2311
2311
|
let O = b;
|
|
2312
|
-
|
|
2312
|
+
p && !b && h && (O = $);
|
|
2313
2313
|
const k = la(O), j = Object.prototype.toString.apply(O);
|
|
2314
|
-
if (
|
|
2314
|
+
if (p && O && k && g.indexOf(j) < 0 && !(W(f) && Array.isArray(O))) {
|
|
2315
2315
|
if (!r.returnObjects && !this.options.returnObjects) {
|
|
2316
2316
|
this.options.returnedObjectHandler || this.logger.warn("accessing an object - but returnObjects options is not enabled!");
|
|
2317
2317
|
const q = this.options.returnedObjectHandler ? this.options.returnedObjectHandler(S, O, {
|
|
2318
2318
|
...r,
|
|
2319
2319
|
ns: o
|
|
2320
2320
|
}) : `key '${i} (${this.language})' returned an object instead of string.`;
|
|
2321
|
-
return a ? (
|
|
2321
|
+
return a ? (m.res = q, m.usedParams = this.getUsedParamsDetails(r), m) : q;
|
|
2322
2322
|
}
|
|
2323
2323
|
if (s) {
|
|
2324
2324
|
const q = Array.isArray(O), U = q ? [] : {}, F = q ? y : S;
|
|
@@ -2338,7 +2338,7 @@ class Tr extends xr {
|
|
|
2338
2338
|
}
|
|
2339
2339
|
b = U;
|
|
2340
2340
|
}
|
|
2341
|
-
} else if (
|
|
2341
|
+
} else if (p && W(f) && Array.isArray(b))
|
|
2342
2342
|
b = b.join(f), b && (b = this.extendTranslation(b, t, r, n));
|
|
2343
2343
|
else {
|
|
2344
2344
|
let q = !1, U = !1;
|
|
@@ -2370,9 +2370,9 @@ class Tr extends xr {
|
|
|
2370
2370
|
});
|
|
2371
2371
|
}) : ee(he, i, $));
|
|
2372
2372
|
}
|
|
2373
|
-
b = this.extendTranslation(b, t, r,
|
|
2373
|
+
b = this.extendTranslation(b, t, r, m, n), U && b === i && this.options.appendNamespaceToMissingKey && (b = `${c}:${i}`), (U || q) && this.options.parseMissingKeyHandler && (b = this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey ? `${c}:${i}` : i, q ? b : void 0));
|
|
2374
2374
|
}
|
|
2375
|
-
return a ? (
|
|
2375
|
+
return a ? (m.res = b, m.usedParams = this.getUsedParamsDetails(r), m) : b;
|
|
2376
2376
|
}
|
|
2377
2377
|
extendTranslation(t, r, n, a, s) {
|
|
2378
2378
|
var l, d;
|
|
@@ -2392,9 +2392,9 @@ class Tr extends xr {
|
|
|
2392
2392
|
...n.interpolation
|
|
2393
2393
|
}
|
|
2394
2394
|
});
|
|
2395
|
-
const
|
|
2395
|
+
const m = W(t) && (((d = n == null ? void 0 : n.interpolation) == null ? void 0 : d.skipOnVariables) !== void 0 ? n.interpolation.skipOnVariables : this.options.interpolation.skipOnVariables);
|
|
2396
2396
|
let b;
|
|
2397
|
-
if (
|
|
2397
|
+
if (m) {
|
|
2398
2398
|
const y = t.match(this.interpolator.nestingRegexp);
|
|
2399
2399
|
b = y && y.length;
|
|
2400
2400
|
}
|
|
@@ -2402,7 +2402,7 @@ class Tr extends xr {
|
|
|
2402
2402
|
if (this.options.interpolation.defaultVariables && (S = {
|
|
2403
2403
|
...this.options.interpolation.defaultVariables,
|
|
2404
2404
|
...S
|
|
2405
|
-
}), t = this.interpolator.interpolate(t, S, n.lng || this.language || a.usedLng, n),
|
|
2405
|
+
}), t = this.interpolator.interpolate(t, S, n.lng || this.language || a.usedLng, n), m) {
|
|
2406
2406
|
const y = t.match(this.interpolator.nestingRegexp), g = y && y.length;
|
|
2407
2407
|
b < g && (n.nest = !1);
|
|
2408
2408
|
}
|
|
@@ -2427,12 +2427,12 @@ class Tr extends xr {
|
|
|
2427
2427
|
if (this.isValidLookup(n)) return;
|
|
2428
2428
|
const l = this.extractFromKey(c, r), d = l.key;
|
|
2429
2429
|
a = d;
|
|
2430
|
-
let
|
|
2431
|
-
this.options.fallbackNS && (
|
|
2430
|
+
let m = l.namespaces;
|
|
2431
|
+
this.options.fallbackNS && (m = m.concat(this.options.fallbackNS));
|
|
2432
2432
|
const b = r.count !== void 0 && !W(r.count), S = b && !r.ordinal && r.count === 0, y = r.context !== void 0 && (W(r.context) || typeof r.context == "number") && r.context !== "", g = r.lngs ? r.lngs : this.languageUtils.toResolveHierarchy(r.lng || this.language, r.fallbackLng);
|
|
2433
|
-
|
|
2434
|
-
var
|
|
2435
|
-
this.isValidLookup(n) || (o = f, !ua[`${g[0]}-${f}`] && ((
|
|
2433
|
+
m.forEach((f) => {
|
|
2434
|
+
var p, u;
|
|
2435
|
+
this.isValidLookup(n) || (o = f, !ua[`${g[0]}-${f}`] && ((p = this.utils) != null && p.hasLoadedNamespace) && !((u = this.utils) != null && u.hasLoadedNamespace(o)) && (ua[`${g[0]}-${f}`] = !0, this.logger.warn(`key "${a}" for languages "${g.join(", ")}" won't get resolved as namespace "${o}" was not yet loaded`, "This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")), g.forEach((h) => {
|
|
2436
2436
|
var E;
|
|
2437
2437
|
if (this.isValidLookup(n)) return;
|
|
2438
2438
|
i = h;
|
|
@@ -2619,7 +2619,7 @@ class uu {
|
|
|
2619
2619
|
return a ? `${this.options.prepend}${n.ordinal ? `ordinal${this.options.prepend}` : ""}${a.select(r)}` : (this.logger.warn(`no plural rule found for: ${t}`), this.getSuffix("dev", r, n));
|
|
2620
2620
|
}
|
|
2621
2621
|
}
|
|
2622
|
-
const
|
|
2622
|
+
const pa = function(e, t, r) {
|
|
2623
2623
|
let n = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : ".", a = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : !0, s = tu(e, t, r);
|
|
2624
2624
|
return !s && a && W(r) && (s = Pn(e, r, n), s === void 0 && (s = Pn(t, r, n))), s;
|
|
2625
2625
|
}, rn = (e) => e.replace(/\$/g, "$$$$");
|
|
@@ -2644,16 +2644,16 @@ class lu {
|
|
|
2644
2644
|
suffixEscaped: c,
|
|
2645
2645
|
formatSeparator: l,
|
|
2646
2646
|
unescapeSuffix: d,
|
|
2647
|
-
unescapePrefix:
|
|
2647
|
+
unescapePrefix: m,
|
|
2648
2648
|
nestingPrefix: b,
|
|
2649
2649
|
nestingPrefixEscaped: S,
|
|
2650
2650
|
nestingSuffix: y,
|
|
2651
2651
|
nestingSuffixEscaped: g,
|
|
2652
2652
|
nestingOptionsSeparator: f,
|
|
2653
|
-
maxReplaces:
|
|
2653
|
+
maxReplaces: p,
|
|
2654
2654
|
alwaysFormat: u
|
|
2655
2655
|
} = t.interpolation;
|
|
2656
|
-
this.escape = r !== void 0 ? r : nu, this.escapeValue = n !== void 0 ? n : !0, this.useRawValueToEscape = a !== void 0 ? a : !1, this.prefix = s ? Qe(s) : i || "{{", this.suffix = o ? Qe(o) : c || "}}", this.formatSeparator = l || ",", this.unescapePrefix = d ? "" :
|
|
2656
|
+
this.escape = r !== void 0 ? r : nu, this.escapeValue = n !== void 0 ? n : !0, this.useRawValueToEscape = a !== void 0 ? a : !1, this.prefix = s ? Qe(s) : i || "{{", this.suffix = o ? Qe(o) : c || "}}", this.formatSeparator = l || ",", this.unescapePrefix = d ? "" : m || "-", this.unescapeSuffix = this.unescapePrefix ? "" : d || "", this.nestingPrefix = b ? Qe(b) : S || Qe("$t("), this.nestingSuffix = y ? Qe(y) : g || Qe(")"), this.nestingOptionsSeparator = f || ",", this.maxReplaces = p || 1e3, this.alwaysFormat = u !== void 0 ? u : !1, this.resetRegExp();
|
|
2657
2657
|
}
|
|
2658
2658
|
reset() {
|
|
2659
2659
|
this.options && this.init(this.options);
|
|
@@ -2667,22 +2667,22 @@ class lu {
|
|
|
2667
2667
|
let s, i, o;
|
|
2668
2668
|
const c = this.options && this.options.interpolation && this.options.interpolation.defaultVariables || {}, l = (y) => {
|
|
2669
2669
|
if (y.indexOf(this.formatSeparator) < 0) {
|
|
2670
|
-
const u =
|
|
2670
|
+
const u = pa(r, c, y, this.options.keySeparator, this.options.ignoreJSONStructure);
|
|
2671
2671
|
return this.alwaysFormat ? this.format(u, void 0, n, {
|
|
2672
2672
|
...a,
|
|
2673
2673
|
...r,
|
|
2674
2674
|
interpolationkey: y
|
|
2675
2675
|
}) : u;
|
|
2676
2676
|
}
|
|
2677
|
-
const g = y.split(this.formatSeparator), f = g.shift().trim(),
|
|
2678
|
-
return this.format(
|
|
2677
|
+
const g = y.split(this.formatSeparator), f = g.shift().trim(), p = g.join(this.formatSeparator).trim();
|
|
2678
|
+
return this.format(pa(r, c, f, this.options.keySeparator, this.options.ignoreJSONStructure), p, n, {
|
|
2679
2679
|
...a,
|
|
2680
2680
|
...r,
|
|
2681
2681
|
interpolationkey: f
|
|
2682
2682
|
});
|
|
2683
2683
|
};
|
|
2684
2684
|
this.resetRegExp();
|
|
2685
|
-
const d = (a == null ? void 0 : a.missingInterpolationHandler) || this.options.missingInterpolationHandler,
|
|
2685
|
+
const d = (a == null ? void 0 : a.missingInterpolationHandler) || this.options.missingInterpolationHandler, m = ((S = a == null ? void 0 : a.interpolation) == null ? void 0 : S.skipOnVariables) !== void 0 ? a.interpolation.skipOnVariables : this.options.interpolation.skipOnVariables;
|
|
2686
2686
|
return [{
|
|
2687
2687
|
regex: this.regexpUnescape,
|
|
2688
2688
|
safeValue: (y) => rn(y)
|
|
@@ -2694,18 +2694,18 @@ class lu {
|
|
|
2694
2694
|
const g = s[1].trim();
|
|
2695
2695
|
if (i = l(g), i === void 0)
|
|
2696
2696
|
if (typeof d == "function") {
|
|
2697
|
-
const
|
|
2698
|
-
i = W(
|
|
2697
|
+
const p = d(t, s, a);
|
|
2698
|
+
i = W(p) ? p : "";
|
|
2699
2699
|
} else if (a && Object.prototype.hasOwnProperty.call(a, g))
|
|
2700
2700
|
i = "";
|
|
2701
|
-
else if (
|
|
2701
|
+
else if (m) {
|
|
2702
2702
|
i = s[0];
|
|
2703
2703
|
continue;
|
|
2704
2704
|
} else
|
|
2705
2705
|
this.logger.warn(`missed to pass in variable ${g} for interpolating ${t}`), i = "";
|
|
2706
2706
|
else !W(i) && !this.useRawValueToEscape && (i = aa(i));
|
|
2707
2707
|
const f = y.safeValue(i);
|
|
2708
|
-
if (t = t.replace(s[0], f),
|
|
2708
|
+
if (t = t.replace(s[0], f), m ? (y.regex.lastIndex += i.length, y.regex.lastIndex -= s[0].length) : y.regex.lastIndex = 0, o++, o >= this.maxReplaces)
|
|
2709
2709
|
break;
|
|
2710
2710
|
}
|
|
2711
2711
|
}), t;
|
|
@@ -2715,9 +2715,9 @@ class lu {
|
|
|
2715
2715
|
const o = (c, l) => {
|
|
2716
2716
|
const d = this.nestingOptionsSeparator;
|
|
2717
2717
|
if (c.indexOf(d) < 0) return c;
|
|
2718
|
-
const
|
|
2719
|
-
let b = `{${
|
|
2720
|
-
c =
|
|
2718
|
+
const m = c.split(new RegExp(`${d}[ ]*{`));
|
|
2719
|
+
let b = `{${m[1]}`;
|
|
2720
|
+
c = m[0], b = this.interpolate(b, i);
|
|
2721
2721
|
const S = b.match(/'/g), y = b.match(/"/g);
|
|
2722
2722
|
(((S == null ? void 0 : S.length) ?? 0) % 2 === 0 && !y || y.length % 2 !== 0) && (b = b.replace(/'/g, '"'));
|
|
2723
2723
|
try {
|
|
@@ -2737,11 +2737,11 @@ class lu {
|
|
|
2737
2737
|
}, i = i.replace && !W(i.replace) ? i.replace : i, i.applyPostProcessor = !1, delete i.defaultValue;
|
|
2738
2738
|
let l = !1;
|
|
2739
2739
|
if (a[0].indexOf(this.formatSeparator) !== -1 && !/{.*}/.test(a[1])) {
|
|
2740
|
-
const d = a[1].split(this.formatSeparator).map((
|
|
2740
|
+
const d = a[1].split(this.formatSeparator).map((m) => m.trim());
|
|
2741
2741
|
a[1] = d.shift(), c = d, l = !0;
|
|
2742
2742
|
}
|
|
2743
2743
|
if (s = r(o.call(this, a[1].trim(), i), i), s && a[0] === t && !W(s)) return s;
|
|
2744
|
-
W(s) || (s = aa(s)), s || (this.logger.warn(`missed to resolve ${a[1]} for nesting ${t}`), s = ""), l && (s = c.reduce((d,
|
|
2744
|
+
W(s) || (s = aa(s)), s || (this.logger.warn(`missed to resolve ${a[1]} for nesting ${t}`), s = ""), l && (s = c.reduce((d, m) => this.format(d, m, n.lng, {
|
|
2745
2745
|
...n,
|
|
2746
2746
|
interpolationkey: a[1].trim()
|
|
2747
2747
|
}), s.trim())), t = t.replace(a[0], s), this.regexp.lastIndex = 0;
|
|
@@ -2837,7 +2837,7 @@ class fu {
|
|
|
2837
2837
|
s[0] = [s[0], ...s.splice(1, o)].join(this.formatSeparator);
|
|
2838
2838
|
}
|
|
2839
2839
|
return s.reduce((o, c) => {
|
|
2840
|
-
var
|
|
2840
|
+
var m;
|
|
2841
2841
|
const {
|
|
2842
2842
|
formatName: l,
|
|
2843
2843
|
formatOptions: d
|
|
@@ -2845,7 +2845,7 @@ class fu {
|
|
|
2845
2845
|
if (this.formats[l]) {
|
|
2846
2846
|
let b = o;
|
|
2847
2847
|
try {
|
|
2848
|
-
const S = ((
|
|
2848
|
+
const S = ((m = a == null ? void 0 : a.formatParams) == null ? void 0 : m[a.interpolationkey]) || {}, y = S.locale || S.lng || a.locale || a.lng || n;
|
|
2849
2849
|
b = this.formats[l](o, y, {
|
|
2850
2850
|
...d,
|
|
2851
2851
|
...a,
|
|
@@ -2864,7 +2864,7 @@ class fu {
|
|
|
2864
2864
|
const hu = (e, t) => {
|
|
2865
2865
|
e.pending[t] !== void 0 && (delete e.pending[t], e.pendingCount--);
|
|
2866
2866
|
};
|
|
2867
|
-
class
|
|
2867
|
+
class pu extends xr {
|
|
2868
2868
|
constructor(t, r, n) {
|
|
2869
2869
|
var s, i;
|
|
2870
2870
|
let a = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {};
|
|
@@ -2874,9 +2874,9 @@ class mu extends xr {
|
|
|
2874
2874
|
const s = {}, i = {}, o = {}, c = {};
|
|
2875
2875
|
return t.forEach((l) => {
|
|
2876
2876
|
let d = !0;
|
|
2877
|
-
r.forEach((
|
|
2878
|
-
const b = `${l}|${
|
|
2879
|
-
!n.reload && this.store.hasResourceBundle(l,
|
|
2877
|
+
r.forEach((m) => {
|
|
2878
|
+
const b = `${l}|${m}`;
|
|
2879
|
+
!n.reload && this.store.hasResourceBundle(l, m) ? this.state[b] = 2 : this.state[b] < 0 || (this.state[b] === 1 ? i[b] === void 0 && (i[b] = !0) : (this.state[b] = 1, d = !1, i[b] === void 0 && (i[b] = !0), s[b] === void 0 && (s[b] = !0), c[m] === void 0 && (c[m] = !0)));
|
|
2880
2880
|
}), d || (o[l] = !0);
|
|
2881
2881
|
}), (Object.keys(s).length || Object.keys(i).length) && this.queue.push({
|
|
2882
2882
|
pending: i,
|
|
@@ -2901,8 +2901,8 @@ class mu extends xr {
|
|
|
2901
2901
|
eu(c.loaded, [s], i), hu(c, t), r && c.errors.push(r), c.pendingCount === 0 && !c.done && (Object.keys(c.loaded).forEach((l) => {
|
|
2902
2902
|
o[l] || (o[l] = {});
|
|
2903
2903
|
const d = c.loaded[l];
|
|
2904
|
-
d.length && d.forEach((
|
|
2905
|
-
o[l][
|
|
2904
|
+
d.length && d.forEach((m) => {
|
|
2905
|
+
o[l][m] === void 0 && (o[l][m] = !0);
|
|
2906
2906
|
});
|
|
2907
2907
|
}), c.done = !0, c.errors.length ? c.callback(c.errors) : c.callback());
|
|
2908
2908
|
}), this.emit("loaded", o), this.queue = this.queue.filter((c) => !c.done);
|
|
@@ -2924,8 +2924,8 @@ class mu extends xr {
|
|
|
2924
2924
|
this.readingCalls++;
|
|
2925
2925
|
const o = (l, d) => {
|
|
2926
2926
|
if (this.readingCalls--, this.waitingReads.length > 0) {
|
|
2927
|
-
const
|
|
2928
|
-
this.read(
|
|
2927
|
+
const m = this.waitingReads.shift();
|
|
2928
|
+
this.read(m.lng, m.ns, m.fcName, m.tried, m.wait, m.callback);
|
|
2929
2929
|
}
|
|
2930
2930
|
if (l && d && a < this.maxRetries) {
|
|
2931
2931
|
setTimeout(() => {
|
|
@@ -2974,10 +2974,10 @@ class mu extends xr {
|
|
|
2974
2974
|
});
|
|
2975
2975
|
}
|
|
2976
2976
|
saveMissing(t, r, n, a, s) {
|
|
2977
|
-
var c, l, d,
|
|
2977
|
+
var c, l, d, m, b;
|
|
2978
2978
|
let i = arguments.length > 5 && arguments[5] !== void 0 ? arguments[5] : {}, o = arguments.length > 6 && arguments[6] !== void 0 ? arguments[6] : () => {
|
|
2979
2979
|
};
|
|
2980
|
-
if ((l = (c = this.services) == null ? void 0 : c.utils) != null && l.hasLoadedNamespace && !((
|
|
2980
|
+
if ((l = (c = this.services) == null ? void 0 : c.utils) != null && l.hasLoadedNamespace && !((m = (d = this.services) == null ? void 0 : d.utils) != null && m.hasLoadedNamespace(r))) {
|
|
2981
2981
|
this.logger.warn(`did not save key "${n}" as the namespace "${r}" was not yet loaded`, "This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");
|
|
2982
2982
|
return;
|
|
2983
2983
|
}
|
|
@@ -3001,7 +3001,7 @@ class mu extends xr {
|
|
|
3001
3001
|
}
|
|
3002
3002
|
}
|
|
3003
3003
|
}
|
|
3004
|
-
const
|
|
3004
|
+
const ma = () => ({
|
|
3005
3005
|
debug: !1,
|
|
3006
3006
|
initAsync: !0,
|
|
3007
3007
|
ns: ["translation"],
|
|
@@ -3061,7 +3061,7 @@ const pa = () => ({
|
|
|
3061
3061
|
var t, r;
|
|
3062
3062
|
return W(e.ns) && (e.ns = [e.ns]), W(e.fallbackLng) && (e.fallbackLng = [e.fallbackLng]), W(e.fallbackNS) && (e.fallbackNS = [e.fallbackNS]), ((r = (t = e.supportedLngs) == null ? void 0 : t.indexOf) == null ? void 0 : r.call(t, "cimode")) < 0 && (e.supportedLngs = e.supportedLngs.concat(["cimode"])), typeof e.initImmediate == "boolean" && (e.initAsync = e.initImmediate), e;
|
|
3063
3063
|
}, Ct = () => {
|
|
3064
|
-
},
|
|
3064
|
+
}, mu = (e) => {
|
|
3065
3065
|
Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach((r) => {
|
|
3066
3066
|
typeof e[r] == "function" && (e[r] = e[r].bind(e));
|
|
3067
3067
|
});
|
|
@@ -3071,7 +3071,7 @@ class $t extends xr {
|
|
|
3071
3071
|
let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, r = arguments.length > 1 ? arguments[1] : void 0;
|
|
3072
3072
|
if (super(), this.options = ga(t), this.services = {}, this.logger = ke, this.modules = {
|
|
3073
3073
|
external: []
|
|
3074
|
-
},
|
|
3074
|
+
}, mu(this), r && !this.isInitialized && !t.isClone) {
|
|
3075
3075
|
if (!this.options.initAsync)
|
|
3076
3076
|
return this.init(t, r), this;
|
|
3077
3077
|
setTimeout(() => {
|
|
@@ -3083,7 +3083,7 @@ class $t extends xr {
|
|
|
3083
3083
|
var t = this;
|
|
3084
3084
|
let r = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, n = arguments.length > 1 ? arguments[1] : void 0;
|
|
3085
3085
|
this.isInitializing = !0, typeof r == "function" && (n = r, r = {}), r.defaultNS == null && r.ns && (W(r.ns) ? r.defaultNS = r.ns : r.ns.indexOf("translation") < 0 && (r.defaultNS = r.ns[0]));
|
|
3086
|
-
const a =
|
|
3086
|
+
const a = ma();
|
|
3087
3087
|
this.options = {
|
|
3088
3088
|
...a,
|
|
3089
3089
|
...this.options,
|
|
@@ -3097,15 +3097,15 @@ class $t extends xr {
|
|
|
3097
3097
|
this.modules.logger ? ke.init(s(this.modules.logger), this.options) : ke.init(null, this.options);
|
|
3098
3098
|
let d;
|
|
3099
3099
|
this.modules.formatter ? d = this.modules.formatter : d = fu;
|
|
3100
|
-
const
|
|
3100
|
+
const m = new da(this.options);
|
|
3101
3101
|
this.store = new ca(this.options.resources, this.options);
|
|
3102
3102
|
const b = this.services;
|
|
3103
|
-
b.logger = ke, b.resourceStore = this.store, b.languageUtils =
|
|
3103
|
+
b.logger = ke, b.resourceStore = this.store, b.languageUtils = m, b.pluralResolver = new uu(m, {
|
|
3104
3104
|
prepend: this.options.pluralSeparator,
|
|
3105
3105
|
simplifyPluralSuffix: this.options.simplifyPluralSuffix
|
|
3106
3106
|
}), d && (!this.options.interpolation.format || this.options.interpolation.format === a.interpolation.format) && (b.formatter = s(d), b.formatter.init(b, this.options), this.options.interpolation.format = b.formatter.format.bind(b.formatter)), b.interpolator = new lu(this.options), b.utils = {
|
|
3107
3107
|
hasLoadedNamespace: this.hasLoadedNamespace.bind(this)
|
|
3108
|
-
}, b.backendConnector = new
|
|
3108
|
+
}, b.backendConnector = new pu(s(this.modules.backend), b.resourceStore, b, this.options), b.backendConnector.on("*", function(S) {
|
|
3109
3109
|
for (var y = arguments.length, g = new Array(y > 1 ? y - 1 : 0), f = 1; f < y; f++)
|
|
3110
3110
|
g[f - 1] = arguments[f];
|
|
3111
3111
|
t.emit(S, ...g);
|
|
@@ -3131,8 +3131,8 @@ class $t extends xr {
|
|
|
3131
3131
|
};
|
|
3132
3132
|
});
|
|
3133
3133
|
const c = yt(), l = () => {
|
|
3134
|
-
const d = (
|
|
3135
|
-
this.isInitializing = !1, this.isInitialized && !this.initializedStoreOnce && this.logger.warn("init: i18next is already initialized. You should call init just once!"), this.isInitialized = !0, this.options.isClone || this.logger.log("initialized", this.options), this.emit("initialized", this.options), c.resolve(b), n(
|
|
3134
|
+
const d = (m, b) => {
|
|
3135
|
+
this.isInitializing = !1, this.isInitialized && !this.initializedStoreOnce && this.logger.warn("init: i18next is already initialized. You should call init just once!"), this.isInitialized = !0, this.options.isClone || this.logger.log("initialized", this.options), this.emit("initialized", this.options), c.resolve(b), n(m, b);
|
|
3136
3136
|
};
|
|
3137
3137
|
if (this.languages && !this.isInitialized) return d(null, this.t.bind(this));
|
|
3138
3138
|
this.changeLanguage(this.options.lng, d);
|
|
@@ -3147,8 +3147,8 @@ class $t extends xr {
|
|
|
3147
3147
|
if ((a == null ? void 0 : a.toLowerCase()) === "cimode" && (!this.options.preload || this.options.preload.length === 0)) return n();
|
|
3148
3148
|
const o = [], c = (l) => {
|
|
3149
3149
|
if (!l || l === "cimode") return;
|
|
3150
|
-
this.services.languageUtils.toResolveHierarchy(l).forEach((
|
|
3151
|
-
|
|
3150
|
+
this.services.languageUtils.toResolveHierarchy(l).forEach((m) => {
|
|
3151
|
+
m !== "cimode" && o.indexOf(m) < 0 && o.push(m);
|
|
3152
3152
|
});
|
|
3153
3153
|
};
|
|
3154
3154
|
a ? c(a) : this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach((d) => c(d)), (i = (s = this.options.preload) == null ? void 0 : s.forEach) == null || i.call(s, (l) => c(l)), this.services.backendConnector.load(o, this.options.ns, (l) => {
|
|
@@ -3192,10 +3192,10 @@ class $t extends xr {
|
|
|
3192
3192
|
return n.t(...arguments);
|
|
3193
3193
|
});
|
|
3194
3194
|
}, o = (c) => {
|
|
3195
|
-
var d,
|
|
3195
|
+
var d, m;
|
|
3196
3196
|
!t && !c && this.services.languageDetector && (c = []);
|
|
3197
3197
|
const l = W(c) ? c : this.services.languageUtils.getBestMatchFromCodes(c);
|
|
3198
|
-
l && (this.language || s(l), this.translator.language || this.translator.changeLanguage(l), (
|
|
3198
|
+
l && (this.language || s(l), this.translator.language || this.translator.changeLanguage(l), (m = (d = this.services.languageDetector) == null ? void 0 : d.cacheUserLanguage) == null || m.call(d, l)), this.loadResources(l, (b) => {
|
|
3199
3199
|
i(b, l);
|
|
3200
3200
|
});
|
|
3201
3201
|
};
|
|
@@ -3206,8 +3206,8 @@ class $t extends xr {
|
|
|
3206
3206
|
const s = function(i, o) {
|
|
3207
3207
|
let c;
|
|
3208
3208
|
if (typeof o != "object") {
|
|
3209
|
-
for (var l = arguments.length, d = new Array(l > 2 ? l - 2 : 0),
|
|
3210
|
-
d[
|
|
3209
|
+
for (var l = arguments.length, d = new Array(l > 2 ? l - 2 : 0), m = 2; m < l; m++)
|
|
3210
|
+
d[m - 2] = arguments[m];
|
|
3211
3211
|
c = a.options.overloadTranslationOptionHandler([i, o].concat(d));
|
|
3212
3212
|
} else
|
|
3213
3213
|
c = {
|
|
@@ -3272,7 +3272,7 @@ class $t extends xr {
|
|
|
3272
3272
|
dir(t) {
|
|
3273
3273
|
var a, s;
|
|
3274
3274
|
if (t || (t = this.resolvedLanguage || (((a = this.languages) == null ? void 0 : a.length) > 0 ? this.languages[0] : this.language)), !t) return "rtl";
|
|
3275
|
-
const r = ["ar", "shu", "sqr", "ssh", "xaa", "yhd", "yud", "aao", "abh", "abv", "acm", "acq", "acw", "acx", "acy", "adf", "ads", "aeb", "aec", "afb", "ajp", "apc", "apd", "arb", "arq", "ars", "ary", "arz", "auz", "avl", "ayh", "ayl", "ayn", "ayp", "bbz", "pga", "he", "iw", "ps", "pbt", "pbu", "pst", "prp", "prd", "ug", "ur", "ydd", "yds", "yih", "ji", "yi", "hbo", "men", "xmn", "fa", "jpr", "peo", "pes", "prs", "dv", "sam", "ckb"], n = ((s = this.services) == null ? void 0 : s.languageUtils) || new da(
|
|
3275
|
+
const r = ["ar", "shu", "sqr", "ssh", "xaa", "yhd", "yud", "aao", "abh", "abv", "acm", "acq", "acw", "acx", "acy", "adf", "ads", "aeb", "aec", "afb", "ajp", "apc", "apd", "arb", "arq", "ars", "ary", "arz", "auz", "avl", "ayh", "ayl", "ayn", "ayp", "bbz", "pga", "he", "iw", "ps", "pbt", "pbu", "pst", "prp", "prd", "ug", "ur", "ydd", "yds", "yih", "ji", "yi", "hbo", "men", "xmn", "fa", "jpr", "peo", "pes", "prs", "dv", "sam", "ckb"], n = ((s = this.services) == null ? void 0 : s.languageUtils) || new da(ma());
|
|
3276
3276
|
return r.indexOf(n.getLanguagePartFromCode(t)) > -1 || t.toLowerCase().indexOf("-arab") > 1 ? "rtl" : "ltr";
|
|
3277
3277
|
}
|
|
3278
3278
|
static createInstance() {
|
|
@@ -3297,8 +3297,8 @@ class $t extends xr {
|
|
|
3297
3297
|
}, n) {
|
|
3298
3298
|
const o = Object.keys(this.store.data).reduce((c, l) => (c[l] = {
|
|
3299
3299
|
...this.store.data[l]
|
|
3300
|
-
}, Object.keys(c[l]).reduce((d,
|
|
3301
|
-
...c[l][
|
|
3300
|
+
}, Object.keys(c[l]).reduce((d, m) => (d[m] = {
|
|
3301
|
+
...c[l][m]
|
|
3302
3302
|
}, d), {})), {});
|
|
3303
3303
|
s.store = new ca(o, a), s.services.resourceStore = s.store;
|
|
3304
3304
|
}
|
|
@@ -4131,7 +4131,7 @@ const cl = {
|
|
|
4131
4131
|
evening: "in the evening",
|
|
4132
4132
|
night: "at night"
|
|
4133
4133
|
}
|
|
4134
|
-
},
|
|
4134
|
+
}, pl = (e, t) => {
|
|
4135
4135
|
const r = Number(e), n = r % 100;
|
|
4136
4136
|
if (n > 20 || n < 10)
|
|
4137
4137
|
switch (n % 10) {
|
|
@@ -4144,7 +4144,7 @@ const cl = {
|
|
|
4144
4144
|
}
|
|
4145
4145
|
return r + "th";
|
|
4146
4146
|
}, Ui = {
|
|
4147
|
-
ordinalNumber:
|
|
4147
|
+
ordinalNumber: pl,
|
|
4148
4148
|
era: de({
|
|
4149
4149
|
values: cl,
|
|
4150
4150
|
defaultWidth: "wide"
|
|
@@ -4174,9 +4174,9 @@ function fe(e) {
|
|
|
4174
4174
|
const n = r.width, a = n && e.matchPatterns[n] || e.matchPatterns[e.defaultMatchWidth], s = t.match(a);
|
|
4175
4175
|
if (!s)
|
|
4176
4176
|
return null;
|
|
4177
|
-
const i = s[0], o = n && e.parsePatterns[n] || e.parsePatterns[e.defaultParseWidth], c = Array.isArray(o) ? gl(o, (
|
|
4177
|
+
const i = s[0], o = n && e.parsePatterns[n] || e.parsePatterns[e.defaultParseWidth], c = Array.isArray(o) ? gl(o, (m) => m.test(i)) : (
|
|
4178
4178
|
// [TODO] -- I challenge you to fix the type
|
|
4179
|
-
|
|
4179
|
+
ml(o, (m) => m.test(i))
|
|
4180
4180
|
);
|
|
4181
4181
|
let l;
|
|
4182
4182
|
l = e.valueCallback ? e.valueCallback(c) : c, l = r.valueCallback ? (
|
|
@@ -4187,7 +4187,7 @@ function fe(e) {
|
|
|
4187
4187
|
return { value: l, rest: d };
|
|
4188
4188
|
};
|
|
4189
4189
|
}
|
|
4190
|
-
function
|
|
4190
|
+
function ml(e, t) {
|
|
4191
4191
|
for (const r in e)
|
|
4192
4192
|
if (Object.prototype.hasOwnProperty.call(e, r) && t(e[r]))
|
|
4193
4193
|
return r;
|
|
@@ -4334,8 +4334,8 @@ function Nl(e, t) {
|
|
|
4334
4334
|
return Math.round(n / Ci) + 1;
|
|
4335
4335
|
}
|
|
4336
4336
|
function Hi(e, t) {
|
|
4337
|
-
var d,
|
|
4338
|
-
const r = ce(e, t == null ? void 0 : t.in), n = r.getFullYear(), a = jr(), s = (t == null ? void 0 : t.firstWeekContainsDate) ?? ((
|
|
4337
|
+
var d, m, b, S;
|
|
4338
|
+
const r = ce(e, t == null ? void 0 : t.in), n = r.getFullYear(), a = jr(), s = (t == null ? void 0 : t.firstWeekContainsDate) ?? ((m = (d = t == null ? void 0 : t.locale) == null ? void 0 : d.options) == null ? void 0 : m.firstWeekContainsDate) ?? a.firstWeekContainsDate ?? ((S = (b = a.locale) == null ? void 0 : b.options) == null ? void 0 : S.firstWeekContainsDate) ?? 1, i = Te((t == null ? void 0 : t.in) || e, 0);
|
|
4339
4339
|
i.setFullYear(n + 1, 0, s), i.setHours(0, 0, 0, 0);
|
|
4340
4340
|
const o = Rt(i, t), c = Te((t == null ? void 0 : t.in) || e, 0);
|
|
4341
4341
|
c.setFullYear(n, 0, s), c.setHours(0, 0, 0, 0);
|
|
@@ -5047,8 +5047,8 @@ function Fl(e, t, r) {
|
|
|
5047
5047
|
}
|
|
5048
5048
|
const Vl = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, Hl = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, Bl = /^'([^]*?)'?$/, zl = /''/g, Wl = /[a-zA-Z]/;
|
|
5049
5049
|
function Gl(e, t, r) {
|
|
5050
|
-
var d,
|
|
5051
|
-
const n = jr(), a = (r == null ? void 0 : r.locale) ?? n.locale ?? Vi, s = (r == null ? void 0 : r.firstWeekContainsDate) ?? ((
|
|
5050
|
+
var d, m, b, S, y, g, f, p;
|
|
5051
|
+
const n = jr(), a = (r == null ? void 0 : r.locale) ?? n.locale ?? Vi, s = (r == null ? void 0 : r.firstWeekContainsDate) ?? ((m = (d = r == null ? void 0 : r.locale) == null ? void 0 : d.options) == null ? void 0 : m.firstWeekContainsDate) ?? n.firstWeekContainsDate ?? ((S = (b = n.locale) == null ? void 0 : b.options) == null ? void 0 : S.firstWeekContainsDate) ?? 1, i = (r == null ? void 0 : r.weekStartsOn) ?? ((g = (y = r == null ? void 0 : r.locale) == null ? void 0 : y.options) == null ? void 0 : g.weekStartsOn) ?? n.weekStartsOn ?? ((p = (f = n.locale) == null ? void 0 : f.options) == null ? void 0 : p.weekStartsOn) ?? 0, o = ce(e, r == null ? void 0 : r.in);
|
|
5052
5052
|
if (!Nt(o))
|
|
5053
5053
|
throw new RangeError("Invalid time value");
|
|
5054
5054
|
let c = t.match(Hl).map((u) => {
|
|
@@ -5379,7 +5379,7 @@ const Na = {
|
|
|
5379
5379
|
let n;
|
|
5380
5380
|
const a = r != null && r.addSuffix ? Na[e].withPreposition : Na[e].standalone;
|
|
5381
5381
|
return typeof a == "string" ? n = a : t === 1 ? n = a.one : n = a.other.replace("{{count}}", String(t)), r != null && r.addSuffix ? r.comparison && r.comparison > 0 ? "in " + n : "vor " + n : n;
|
|
5382
|
-
},
|
|
5382
|
+
}, pd = {
|
|
5383
5383
|
full: "EEEE, do MMMM y",
|
|
5384
5384
|
// Montag, 7. Januar 2018
|
|
5385
5385
|
long: "do MMMM y",
|
|
@@ -5388,7 +5388,7 @@ const Na = {
|
|
|
5388
5388
|
// 7. Jan. 2018
|
|
5389
5389
|
short: "dd.MM.y"
|
|
5390
5390
|
// 07.01.2018
|
|
5391
|
-
},
|
|
5391
|
+
}, md = {
|
|
5392
5392
|
full: "HH:mm:ss zzzz",
|
|
5393
5393
|
long: "HH:mm:ss z",
|
|
5394
5394
|
medium: "HH:mm:ss",
|
|
@@ -5400,11 +5400,11 @@ const Na = {
|
|
|
5400
5400
|
short: "{{date}} {{time}}"
|
|
5401
5401
|
}, yd = {
|
|
5402
5402
|
date: we({
|
|
5403
|
-
formats:
|
|
5403
|
+
formats: pd,
|
|
5404
5404
|
defaultWidth: "full"
|
|
5405
5405
|
}),
|
|
5406
5406
|
time: we({
|
|
5407
|
-
formats:
|
|
5407
|
+
formats: md,
|
|
5408
5408
|
defaultWidth: "full"
|
|
5409
5409
|
}),
|
|
5410
5410
|
dateTime: we({
|
|
@@ -5990,9 +5990,9 @@ const Na = {
|
|
|
5990
5990
|
narrow: /^[1234]/i,
|
|
5991
5991
|
abbreviated: /^T[1234]/i,
|
|
5992
5992
|
wide: /^[1234](º)? trimestre/i
|
|
5993
|
-
}, mf = {
|
|
5994
|
-
any: [/1/i, /2/i, /3/i, /4/i]
|
|
5995
5993
|
}, pf = {
|
|
5994
|
+
any: [/1/i, /2/i, /3/i, /4/i]
|
|
5995
|
+
}, mf = {
|
|
5996
5996
|
narrow: /^[efmajsond]/i,
|
|
5997
5997
|
abbreviated: /^(ene|feb|mar|abr|may|jun|jul|ago|sep|oct|nov|dic)/i,
|
|
5998
5998
|
wide: /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i
|
|
@@ -6064,12 +6064,12 @@ const Na = {
|
|
|
6064
6064
|
quarter: fe({
|
|
6065
6065
|
matchPatterns: hf,
|
|
6066
6066
|
defaultMatchWidth: "wide",
|
|
6067
|
-
parsePatterns:
|
|
6067
|
+
parsePatterns: pf,
|
|
6068
6068
|
defaultParseWidth: "any",
|
|
6069
6069
|
valueCallback: (e) => e + 1
|
|
6070
6070
|
}),
|
|
6071
6071
|
month: fe({
|
|
6072
|
-
matchPatterns:
|
|
6072
|
+
matchPatterns: mf,
|
|
6073
6073
|
defaultMatchWidth: "wide",
|
|
6074
6074
|
parsePatterns: gf,
|
|
6075
6075
|
defaultParseWidth: "any"
|
|
@@ -6556,10 +6556,10 @@ function ky(e, t) {
|
|
|
6556
6556
|
const n = /* @__PURE__ */ new Date(), a = n.getTime() - r.date.getTime(), s = Math.floor(a / (1e3 * 60 * 60 * 24)), i = Cn(n, r.date), o = In(n, r.date);
|
|
6557
6557
|
let c;
|
|
6558
6558
|
if (o >= 5) {
|
|
6559
|
-
const d = i % 12 > 6 ? o + 1 : o,
|
|
6559
|
+
const d = i % 12 > 6 ? o + 1 : o, m = t("CLINICAL_YEARS_TRANSLATION_KEY", {
|
|
6560
6560
|
count: d
|
|
6561
6561
|
});
|
|
6562
|
-
c = `${d} ${
|
|
6562
|
+
c = `${d} ${m}`;
|
|
6563
6563
|
} else if (o >= 1) {
|
|
6564
6564
|
const l = i % 12, d = t("CLINICAL_YEARS_TRANSLATION_KEY", {
|
|
6565
6565
|
count: o + l
|
|
@@ -6570,10 +6570,10 @@ function ky(e, t) {
|
|
|
6570
6570
|
count: 1
|
|
6571
6571
|
})}`;
|
|
6572
6572
|
else if (i >= 1) {
|
|
6573
|
-
const d = s % 30 > 15 ? i + 1 : i,
|
|
6573
|
+
const d = s % 30 > 15 ? i + 1 : i, m = t("CLINICAL_MONTHS_TRANSLATION_KEY", {
|
|
6574
6574
|
count: d
|
|
6575
6575
|
});
|
|
6576
|
-
c = `${d} ${
|
|
6576
|
+
c = `${d} ${m}`;
|
|
6577
6577
|
} else {
|
|
6578
6578
|
const l = Math.max(1, s), d = t("CLINICAL_DAYS_TRANSLATION_KEY", {
|
|
6579
6579
|
count: l
|
|
@@ -6587,12 +6587,12 @@ const Ly = () => {
|
|
|
6587
6587
|
return e.setHours(0, 0, 0, 0), e;
|
|
6588
6588
|
};
|
|
6589
6589
|
function My(e, t) {
|
|
6590
|
-
var l, d,
|
|
6590
|
+
var l, d, m;
|
|
6591
6591
|
const r = new Date(e), a = new Intl.DateTimeFormat("en-US", {
|
|
6592
6592
|
day: "2-digit",
|
|
6593
6593
|
month: "short",
|
|
6594
6594
|
year: "numeric"
|
|
6595
|
-
}).formatToParts(r), s = (l = a.find((b) => b.type === "day")) == null ? void 0 : l.value, i = (d = a.find((b) => b.type === "month")) == null ? void 0 : d.value, o = (
|
|
6595
|
+
}).formatToParts(r), s = (l = a.find((b) => b.type === "day")) == null ? void 0 : l.value, i = (d = a.find((b) => b.type === "month")) == null ? void 0 : d.value, o = (m = a.find((b) => b.type === "year")) == null ? void 0 : m.value;
|
|
6596
6596
|
let c = `${s} ${i} ${o}`;
|
|
6597
6597
|
if (t) {
|
|
6598
6598
|
let b = r.getHours();
|
|
@@ -6746,11 +6746,11 @@ const Qi = () => {
|
|
|
6746
6746
|
i.append(c.searchFieldParam, l);
|
|
6747
6747
|
})), n.forEach((l) => {
|
|
6748
6748
|
const d = o[l.type];
|
|
6749
|
-
d && l.fields.forEach((
|
|
6750
|
-
i.append(d.resultParam,
|
|
6749
|
+
d && l.fields.forEach((m) => {
|
|
6750
|
+
i.append(d.resultParam, m);
|
|
6751
6751
|
});
|
|
6752
6752
|
}), ie + `/bahmni/search/patient?${i.toString()}`;
|
|
6753
|
-
}, Zi = ie + "/idgen/identifiertype", lh = (e) => ie + `/bahmni/app/setting?module=${e}`, dh = "bahmni.primaryIdentifierType", fh = ie + "/bahmnicore/patientprofile", hh = (e) => ie + `/bahmnicore/patientprofile/${e}`,
|
|
6753
|
+
}, Zi = ie + "/idgen/identifiertype", lh = (e) => ie + `/bahmni/app/setting?module=${e}`, dh = "bahmni.primaryIdentifierType", fh = ie + "/bahmnicore/patientprofile", hh = (e) => ie + `/bahmnicore/patientprofile/${e}`, ph = (e) => ie + `/patientprofile/${e}?v=full`, mh = ie + "/visit", gh = (e) => ie + `/visit?includeInactive=false&patient=${e}&v=custom:(uuid,visitType,location:(uuid))`, yh = (e) => Mu + `${e}`, bh = (e, t, r = 20, n) => {
|
|
6754
6754
|
let a = `/openmrs/module/addresshierarchy/ajax/getPossibleAddressHierarchyEntriesWithParents.form?addressField=${e}&limit=${r}&searchString=${encodeURIComponent(t)}`;
|
|
6755
6755
|
return n && (a += `&parent=${n}`), a;
|
|
6756
6756
|
}, wh = "/openmrs/module/addresshierarchy/ajax/getOrderedAddressHierarchyLevels.form", vh = ie + "/relationshiptype?v=custom:(aIsToB,bIsToA,uuid)", Eh = 20, _h = 2, Ky = 120, Yy = 50, Jy = 15, Sh = /^[a-f0-9-]{36}$/i, $h = () => ie + "/bahmnicore/config/bahmniencounter?callerContext=REGISTRATION_CONCEPTS", Rh = (e) => Cu + `/patientImage?patientUuid=${e}`, Ph = ie + "/personattributetype?v=custom:(uuid,name,sortWeight,description,format,concept:(uuid,display,answers:(uuid,name)))", Th = async (e) => {
|
|
@@ -6837,7 +6837,7 @@ const Qi = () => {
|
|
|
6837
6837
|
sourcesByPrefix: n,
|
|
6838
6838
|
primaryIdentifierTypeUuid: t
|
|
6839
6839
|
}) : { prefixes: r, sourcesByPrefix: n, primaryIdentifierTypeUuid: t };
|
|
6840
|
-
}, nb = async (e) =>
|
|
6840
|
+
}, nb = async (e) => pt(fh, e), ab = async (e, t) => pt(
|
|
6841
6841
|
hh(e),
|
|
6842
6842
|
t
|
|
6843
6843
|
), sb = async () => Q(Di("mrs.genders")), ib = async (e, t, r = Eh, n) => {
|
|
@@ -6852,7 +6852,7 @@ const Qi = () => {
|
|
|
6852
6852
|
`Failed to fetch address hierarchy for field "${e}": ${a instanceof Error ? a.message : "Unknown error"}`
|
|
6853
6853
|
);
|
|
6854
6854
|
}
|
|
6855
|
-
}, ob = async () => Q($h()), cb = async (e) =>
|
|
6855
|
+
}, ob = async () => Q($h()), cb = async (e) => pt(mh, e), ub = async (e) => Q(gh(e)), lb = async (e) => Q(yh(e)), db = async () => Q(wh), fb = async (e) => Q(ph(e)), hb = async () => {
|
|
6856
6856
|
try {
|
|
6857
6857
|
return (await Q(
|
|
6858
6858
|
vh
|
|
@@ -6866,12 +6866,12 @@ const Qi = () => {
|
|
|
6866
6866
|
`Failed to fetch relationship types: ${e instanceof Error ? e.message : "Unknown error"}`
|
|
6867
6867
|
);
|
|
6868
6868
|
}
|
|
6869
|
-
},
|
|
6869
|
+
}, pb = async () => Q(Ph);
|
|
6870
6870
|
var kh = /* @__PURE__ */ ((e) => (e.BOOLEAN = "java.lang.Boolean", e.BOOLEAN_DATATYPE = "org.openmrs.customdatatype.datatype.BooleanDatatype", e.CONCEPT = "org.openmrs.Concept", e.CODED_CONCEPT = "org.bahmni.module.bahmnicore.customdatatype.datatype.CodedConceptDatatype", e.CONCEPT_DATATYPE = "org.openmrs.customdatatype.datatype.ConceptDatatype", e.STRING = "java.lang.String", e.FREE_TEXT = "org.openmrs.customdatatype.datatype.FreeTextDatatype", e.REGEX_VALIDATED_TEXT = "org.openmrs.customdatatype.datatype.RegexValidatedTextDatatype", e.INTEGER = "java.lang.Integer", e.FLOAT = "java.lang.Float", e.ATTRIBUTABLE_DATE = "org.openmrs.util.AttributableDate", e.DATE_DATATYPE = "org.openmrs.customdatatype.datatype.DateDatatype", e))(kh || {}), Lh = /* @__PURE__ */ ((e) => (e.CHECKBOX = "checkbox", e.DROPDOWN = "dropdown", e.TEXT = "text", e.NUMBER = "number", e.DATE = "date", e))(Lh || {});
|
|
6871
|
-
const
|
|
6871
|
+
const mb = (e) => e === "java.lang.Boolean" || e === "org.openmrs.customdatatype.datatype.BooleanDatatype" ? "checkbox" : e === "org.openmrs.Concept" || e === "org.bahmni.module.bahmnicore.customdatatype.datatype.CodedConceptDatatype" || e === "org.openmrs.customdatatype.datatype.ConceptDatatype" ? "dropdown" : e === "java.lang.Integer" || e === "java.lang.Float" ? "number" : e === "org.openmrs.util.AttributableDate" || e === "org.openmrs.customdatatype.datatype.DateDatatype" ? "date" : "text", gb = (e) => e === "java.lang.Boolean" || e === "org.openmrs.customdatatype.datatype.BooleanDatatype", yb = (e) => e === "org.openmrs.Concept" || e === "org.bahmni.module.bahmnicore.customdatatype.datatype.CodedConceptDatatype" || e === "org.openmrs.customdatatype.datatype.ConceptDatatype", bb = (e) => e === "java.lang.Integer" || e === "java.lang.Float", wb = (e) => e === "org.openmrs.util.AttributableDate" || e === "org.openmrs.customdatatype.datatype.DateDatatype", vb = (e) => e === "java.lang.String" || e === "org.openmrs.customdatatype.datatype.FreeTextDatatype" || e === "org.openmrs.customdatatype.datatype.RegexValidatedTextDatatype", Mh = ie + "/appointments/search", eo = ie + "/appointments", Eb = async (e) => await pt(
|
|
6872
6872
|
Mh,
|
|
6873
6873
|
e
|
|
6874
|
-
), _b = async (e, t, r) => await
|
|
6874
|
+
), _b = async (e, t, r) => await pt(
|
|
6875
6875
|
`${eo}/${e}/status-change`,
|
|
6876
6876
|
{ toStatus: t, onDate: r }
|
|
6877
6877
|
);
|
|
@@ -6979,7 +6979,7 @@ async function Kh(e) {
|
|
|
6979
6979
|
}
|
|
6980
6980
|
function Yh(e) {
|
|
6981
6981
|
return e.map((t) => {
|
|
6982
|
-
var a, s, i, o, c, l, d,
|
|
6982
|
+
var a, s, i, o, c, l, d, m, b;
|
|
6983
6983
|
const r = ((i = (s = (a = t.clinicalStatus) == null ? void 0 : a.coding) == null ? void 0 : s[0]) == null ? void 0 : i.display) ?? "Unknown", n = ((c = (o = t.reaction) == null ? void 0 : o[0]) == null ? void 0 : c.severity) ?? "Unknown";
|
|
6984
6984
|
return {
|
|
6985
6985
|
id: t.id,
|
|
@@ -6989,7 +6989,7 @@ function Yh(e) {
|
|
|
6989
6989
|
status: r,
|
|
6990
6990
|
recordedDate: t.recordedDate,
|
|
6991
6991
|
recorder: (d = t.recorder) == null ? void 0 : d.display,
|
|
6992
|
-
reactions: (
|
|
6992
|
+
reactions: (m = t.reaction) == null ? void 0 : m.map((S) => ({
|
|
6993
6993
|
manifestation: S.manifestation.map(
|
|
6994
6994
|
(y) => y.text
|
|
6995
6995
|
),
|
|
@@ -7005,18 +7005,18 @@ async function Ob(e) {
|
|
|
7005
7005
|
return Yh(t);
|
|
7006
7006
|
}
|
|
7007
7007
|
var Jh = /* @__PURE__ */ ((e) => (e.Active = "Active", e.Inactive = "Inactive", e))(Jh || {}), Xh = /* @__PURE__ */ ((e) => (e.mild = "mild", e.moderate = "moderate", e.severe = "severe", e))(Xh || {});
|
|
7008
|
-
const Ab = "http://fhir.openmrs.org/code-system/encounter-type", Qh = "problem-list-item", Nb = "http://terminology.hl7.org/CodeSystem/condition-ver-status", Zh = "encounter-diagnosis", Db = "http://terminology.hl7.org/CodeSystem/condition-clinical", Cb = "http://terminology.hl7.org/CodeSystem/condition-category",
|
|
7009
|
-
async function
|
|
7010
|
-
return await Q(`${
|
|
7008
|
+
const Ab = "http://fhir.openmrs.org/code-system/encounter-type", Qh = "problem-list-item", Nb = "http://terminology.hl7.org/CodeSystem/condition-ver-status", Zh = "encounter-diagnosis", Db = "http://terminology.hl7.org/CodeSystem/condition-clinical", Cb = "http://terminology.hl7.org/CodeSystem/condition-category", ep = (e) => De + `/Condition?category=${Qh}&patient=${e}&_count=100&_sort=-_lastUpdated`;
|
|
7009
|
+
async function tp(e) {
|
|
7010
|
+
return await Q(`${ep(e)}`);
|
|
7011
7011
|
}
|
|
7012
7012
|
async function Ib(e) {
|
|
7013
7013
|
var n;
|
|
7014
|
-
return ((n = (await
|
|
7014
|
+
return ((n = (await tp(e)).entry) == null ? void 0 : n.filter((a) => {
|
|
7015
7015
|
var s;
|
|
7016
7016
|
return ((s = a.resource) == null ? void 0 : s.resourceType) === "Condition";
|
|
7017
7017
|
}).map((a) => a.resource)) ?? [];
|
|
7018
7018
|
}
|
|
7019
|
-
const
|
|
7019
|
+
const rp = (e) => De + `/Condition?category=${Zh}&patient=${e}&_count=100&_sort=-_lastUpdated`, on = [
|
|
7020
7020
|
{
|
|
7021
7021
|
code: "confirmed",
|
|
7022
7022
|
display: "CERTAINITY_CONFIRMED",
|
|
@@ -7027,32 +7027,32 @@ const rm = (e) => De + `/Condition?category=${Zh}&patient=${e}&_count=100&_sort=
|
|
|
7027
7027
|
display: "CERTAINITY_PROVISIONAL",
|
|
7028
7028
|
system: "http://terminology.hl7.org/CodeSystem/condition-ver-status"
|
|
7029
7029
|
}
|
|
7030
|
-
],
|
|
7031
|
-
async function
|
|
7032
|
-
const t =
|
|
7030
|
+
], np = "confirmed", ap = "provisional";
|
|
7031
|
+
async function sp(e) {
|
|
7032
|
+
const t = rp(e);
|
|
7033
7033
|
return await Q(t);
|
|
7034
7034
|
}
|
|
7035
|
-
const
|
|
7035
|
+
const ip = (e) => {
|
|
7036
7036
|
var r, n, a;
|
|
7037
7037
|
switch ((a = (n = (r = e.verificationStatus) == null ? void 0 : r.coding) == null ? void 0 : n[0]) == null ? void 0 : a.code) {
|
|
7038
|
-
case
|
|
7038
|
+
case np:
|
|
7039
7039
|
return on[0];
|
|
7040
|
-
case
|
|
7040
|
+
case ap:
|
|
7041
7041
|
return on[1];
|
|
7042
7042
|
default:
|
|
7043
7043
|
return on[1];
|
|
7044
7044
|
}
|
|
7045
|
-
},
|
|
7046
|
-
function
|
|
7045
|
+
}, op = (e) => !!(e.id && e.code && e.recordedDate);
|
|
7046
|
+
function cp(e) {
|
|
7047
7047
|
var r;
|
|
7048
7048
|
return (((r = e.entry) == null ? void 0 : r.filter((n) => {
|
|
7049
7049
|
var a;
|
|
7050
7050
|
return ((a = n.resource) == null ? void 0 : a.resourceType) === "Condition";
|
|
7051
7051
|
}).map((n) => n.resource)) ?? []).map((n) => {
|
|
7052
7052
|
var i, o;
|
|
7053
|
-
if (!
|
|
7053
|
+
if (!op(n))
|
|
7054
7054
|
throw new Error("Incomplete diagnosis data");
|
|
7055
|
-
const a =
|
|
7055
|
+
const a = ip(n), s = n.recordedDate;
|
|
7056
7056
|
return {
|
|
7057
7057
|
id: n.id,
|
|
7058
7058
|
display: ((i = n.code) == null ? void 0 : i.text) ?? "",
|
|
@@ -7063,11 +7063,11 @@ function cm(e) {
|
|
|
7063
7063
|
});
|
|
7064
7064
|
}
|
|
7065
7065
|
async function kb(e) {
|
|
7066
|
-
const t = await
|
|
7067
|
-
return
|
|
7066
|
+
const t = await sp(e);
|
|
7067
|
+
return cp(t);
|
|
7068
7068
|
}
|
|
7069
7069
|
var qe = /* @__PURE__ */ ((e) => (e.Active = "active", e.OnHold = "on-hold", e.Completed = "completed", e.Stopped = "stopped", e.Cancelled = "cancelled", e.EnteredInError = "entered-in-error", e.Draft = "draft", e.Unknown = "unknown", e))(qe || {});
|
|
7070
|
-
const
|
|
7070
|
+
const up = (e) => De + `/MedicationRequest?patient=${e}&_count=100&_sort=-_lastUpdated`, lp = (e) => {
|
|
7071
7071
|
switch (e.status) {
|
|
7072
7072
|
case "active":
|
|
7073
7073
|
return qe.Active;
|
|
@@ -7087,11 +7087,11 @@ const um = (e) => De + `/MedicationRequest?patient=${e}&_count=100&_sort=-_lastU
|
|
|
7087
7087
|
return qe.Unknown;
|
|
7088
7088
|
}
|
|
7089
7089
|
};
|
|
7090
|
-
async function
|
|
7091
|
-
const t =
|
|
7090
|
+
async function dp(e) {
|
|
7091
|
+
const t = up(e);
|
|
7092
7092
|
return await Q(t);
|
|
7093
7093
|
}
|
|
7094
|
-
function
|
|
7094
|
+
function fp(e) {
|
|
7095
7095
|
var r, n, a;
|
|
7096
7096
|
const t = (a = (n = (r = e == null ? void 0 : e[0]) == null ? void 0 : r.doseAndRate) == null ? void 0 : n[0]) == null ? void 0 : a.doseQuantity;
|
|
7097
7097
|
return {
|
|
@@ -7099,16 +7099,16 @@ function fm(e) {
|
|
|
7099
7099
|
unit: (t == null ? void 0 : t.unit) ?? ""
|
|
7100
7100
|
};
|
|
7101
7101
|
}
|
|
7102
|
-
function
|
|
7102
|
+
function hp(e) {
|
|
7103
7103
|
var t, r, n, a, s;
|
|
7104
7104
|
return ((s = (a = (n = (r = (t = e == null ? void 0 : e[0]) == null ? void 0 : t.timing) == null ? void 0 : r.code) == null ? void 0 : n.coding) == null ? void 0 : a[0]) == null ? void 0 : s.display) ?? "";
|
|
7105
7105
|
}
|
|
7106
|
-
function
|
|
7106
|
+
function pp(e) {
|
|
7107
7107
|
var r, n;
|
|
7108
7108
|
const t = (r = e == null ? void 0 : e[0]) == null ? void 0 : r.route;
|
|
7109
7109
|
return t && Array.isArray(t.coding) && ((n = t.coding[0]) != null && n.display) ? t.coding[0].display : "";
|
|
7110
7110
|
}
|
|
7111
|
-
function
|
|
7111
|
+
function mp(e) {
|
|
7112
7112
|
var n, a;
|
|
7113
7113
|
const t = (a = (n = e == null ? void 0 : e[0]) == null ? void 0 : n.timing) == null ? void 0 : a.repeat, r = t == null ? void 0 : t.durationUnit;
|
|
7114
7114
|
return {
|
|
@@ -7116,7 +7116,7 @@ function pm(e) {
|
|
|
7116
7116
|
durationUnit: r ?? ""
|
|
7117
7117
|
};
|
|
7118
7118
|
}
|
|
7119
|
-
function
|
|
7119
|
+
function gp(e) {
|
|
7120
7120
|
var t;
|
|
7121
7121
|
try {
|
|
7122
7122
|
const r = (t = e == null ? void 0 : e[0]) == null ? void 0 : t.text;
|
|
@@ -7125,7 +7125,7 @@ function gm(e) {
|
|
|
7125
7125
|
return "";
|
|
7126
7126
|
}
|
|
7127
7127
|
}
|
|
7128
|
-
function
|
|
7128
|
+
function yp(e) {
|
|
7129
7129
|
var t;
|
|
7130
7130
|
try {
|
|
7131
7131
|
const r = (t = e == null ? void 0 : e[0]) == null ? void 0 : t.text;
|
|
@@ -7134,35 +7134,35 @@ function ym(e) {
|
|
|
7134
7134
|
return "";
|
|
7135
7135
|
}
|
|
7136
7136
|
}
|
|
7137
|
-
function
|
|
7137
|
+
function bp(e) {
|
|
7138
7138
|
const t = e == null ? void 0 : e.quantity;
|
|
7139
7139
|
return {
|
|
7140
7140
|
value: (t == null ? void 0 : t.value) ?? 0,
|
|
7141
7141
|
unit: (t == null ? void 0 : t.unit) ?? ""
|
|
7142
7142
|
};
|
|
7143
7143
|
}
|
|
7144
|
-
function
|
|
7144
|
+
function wp(e) {
|
|
7145
7145
|
var r;
|
|
7146
7146
|
return (((r = e.entry) == null ? void 0 : r.map((n) => n.resource)) ?? []).map((n) => {
|
|
7147
|
-
var o, c, l, d,
|
|
7148
|
-
const a = n.medicationReference, s = n.requester, i =
|
|
7147
|
+
var o, c, l, d, m, b;
|
|
7148
|
+
const a = n.medicationReference, s = n.requester, i = lp(n);
|
|
7149
7149
|
return {
|
|
7150
7150
|
id: n.id,
|
|
7151
7151
|
name: a.display,
|
|
7152
|
-
dose:
|
|
7152
|
+
dose: fp(n.dosageInstruction),
|
|
7153
7153
|
asNeeded: ((c = (o = n.dosageInstruction) == null ? void 0 : o[0]) == null ? void 0 : c.asNeededBoolean) ?? !1,
|
|
7154
|
-
frequency:
|
|
7155
|
-
route:
|
|
7156
|
-
duration:
|
|
7154
|
+
frequency: hp(n.dosageInstruction),
|
|
7155
|
+
route: pp(n.dosageInstruction),
|
|
7156
|
+
duration: mp(n.dosageInstruction),
|
|
7157
7157
|
status: i,
|
|
7158
7158
|
priority: n.priority ?? "",
|
|
7159
7159
|
isImmediate: Ma(n),
|
|
7160
|
-
quantity:
|
|
7161
|
-
startDate: Ma(n) ? n.authoredOn : (b = (
|
|
7160
|
+
quantity: bp(n.dispenseRequest),
|
|
7161
|
+
startDate: Ma(n) ? n.authoredOn : (b = (m = (d = (l = n.dosageInstruction) == null ? void 0 : l[0]) == null ? void 0 : d.timing) == null ? void 0 : m.event) == null ? void 0 : b[0],
|
|
7162
7162
|
orderDate: n.authoredOn,
|
|
7163
7163
|
orderedBy: s.display,
|
|
7164
|
-
instructions:
|
|
7165
|
-
additionalInstructions:
|
|
7164
|
+
instructions: yp(n.dosageInstruction),
|
|
7165
|
+
additionalInstructions: gp(
|
|
7166
7166
|
n.dosageInstruction
|
|
7167
7167
|
)
|
|
7168
7168
|
};
|
|
@@ -7173,15 +7173,15 @@ const Ma = (e) => {
|
|
|
7173
7173
|
return e.priority === "stat" || ((a = (n = (r = (t = e.dosageInstruction) == null ? void 0 : t[0]) == null ? void 0 : r.timing) == null ? void 0 : n.code) == null ? void 0 : a.text) === "Immediately" || !1;
|
|
7174
7174
|
};
|
|
7175
7175
|
async function Lb(e) {
|
|
7176
|
-
const t = await
|
|
7177
|
-
return
|
|
7176
|
+
const t = await dp(e);
|
|
7177
|
+
return wp(t);
|
|
7178
7178
|
}
|
|
7179
|
-
const
|
|
7180
|
-
async function
|
|
7181
|
-
const t =
|
|
7179
|
+
const vp = "d3561dc0-5e07-11ef-8f7c-0242ac120002", Ep = (e) => De + `/ServiceRequest?category=${vp}&patient=${e}&_count=100&_sort=-_lastUpdated&numberOfVisits=5`;
|
|
7180
|
+
async function _p(e) {
|
|
7181
|
+
const t = Ep(e);
|
|
7182
7182
|
return await Q(t);
|
|
7183
7183
|
}
|
|
7184
|
-
function
|
|
7184
|
+
function Sp(e) {
|
|
7185
7185
|
var r;
|
|
7186
7186
|
return (((r = e.entry) == null ? void 0 : r.map((n) => n.resource)) ?? []).map((n) => {
|
|
7187
7187
|
var i, o;
|
|
@@ -7197,12 +7197,12 @@ function Sm(e) {
|
|
|
7197
7197
|
});
|
|
7198
7198
|
}
|
|
7199
7199
|
async function Mb(e) {
|
|
7200
|
-
const t = await
|
|
7201
|
-
return
|
|
7200
|
+
const t = await _p(e);
|
|
7201
|
+
return Sp(t);
|
|
7202
7202
|
}
|
|
7203
|
-
const $
|
|
7203
|
+
const $p = "d3560b17-5e07-11ef-8f7c-0242ac120002", Rp = "http://fhir.bahmni.org/ext/lab-order-concept-type", Pp = (e) => De + `/ServiceRequest?category=${$p}&patient=${e}&numberOfVisits=5&_count=100&_sort=-_lastUpdated`;
|
|
7204
7204
|
var _r = /* @__PURE__ */ ((e) => (e.stat = "Urgent", e.routine = "Routine", e))(_r || {});
|
|
7205
|
-
const
|
|
7205
|
+
const Tp = (e) => {
|
|
7206
7206
|
switch (e.priority) {
|
|
7207
7207
|
case "routine":
|
|
7208
7208
|
return _r.routine;
|
|
@@ -7212,7 +7212,7 @@ const Tm = (e) => {
|
|
|
7212
7212
|
return _r.routine;
|
|
7213
7213
|
}
|
|
7214
7214
|
};
|
|
7215
|
-
function
|
|
7215
|
+
function Op(e) {
|
|
7216
7216
|
if (!e.entry) return [];
|
|
7217
7217
|
const t = new Set(
|
|
7218
7218
|
e.entry.flatMap((r) => {
|
|
@@ -7230,30 +7230,30 @@ function Om(e) {
|
|
|
7230
7230
|
return !a && !s;
|
|
7231
7231
|
});
|
|
7232
7232
|
}
|
|
7233
|
-
async function
|
|
7233
|
+
async function Ap(e) {
|
|
7234
7234
|
const t = await Q(
|
|
7235
|
-
`${
|
|
7236
|
-
), r =
|
|
7235
|
+
`${Pp(e)}`
|
|
7236
|
+
), r = Op(t);
|
|
7237
7237
|
return {
|
|
7238
7238
|
...t,
|
|
7239
7239
|
entry: r
|
|
7240
7240
|
};
|
|
7241
7241
|
}
|
|
7242
|
-
const
|
|
7242
|
+
const Np = (e) => {
|
|
7243
7243
|
var r;
|
|
7244
7244
|
return ((r = e.extension) == null ? void 0 : r.find(
|
|
7245
|
-
(n) => n.url ===
|
|
7245
|
+
(n) => n.url === Rp && n.valueString === "Panel"
|
|
7246
7246
|
)) ? "Panel" : "Single Test";
|
|
7247
7247
|
};
|
|
7248
|
-
function
|
|
7248
|
+
function Dp(e, t) {
|
|
7249
7249
|
return e.filter(
|
|
7250
7250
|
(r) => !!r.id
|
|
7251
7251
|
).map((r) => {
|
|
7252
7252
|
var o, c, l;
|
|
7253
|
-
const n =
|
|
7253
|
+
const n = Tp(r), a = (o = r.occurrencePeriod) == null ? void 0 : o.start;
|
|
7254
7254
|
let s;
|
|
7255
7255
|
a && (s = th(a, t, "MMMM d, yyyy").formattedResult || a.split("T")[0]);
|
|
7256
|
-
const i =
|
|
7256
|
+
const i = Np(r);
|
|
7257
7257
|
return {
|
|
7258
7258
|
id: r.id,
|
|
7259
7259
|
testName: ((c = r.code) == null ? void 0 : c.text) ?? "",
|
|
@@ -7283,13 +7283,13 @@ function xb(e) {
|
|
|
7283
7283
|
}
|
|
7284
7284
|
async function qb(e, t) {
|
|
7285
7285
|
var a;
|
|
7286
|
-
const n = ((a = (await
|
|
7287
|
-
return
|
|
7286
|
+
const n = ((a = (await Ap(e)).entry) == null ? void 0 : a.map((s) => s.resource).filter((s) => s !== void 0)) ?? [];
|
|
7287
|
+
return Dp(n, t);
|
|
7288
7288
|
}
|
|
7289
|
-
const
|
|
7289
|
+
const Cp = "All Orderables", Ip = "/openmrs/ws/rest/v1/ordertype?v=custom:(uuid,display,conceptClasses:(uuid,name))", kp = "LabSet", Lp = "http://fhir.bahmni.org/ext/ValueSet/concept-class", Mp = async () => await Vh(Cp), xp = async () => await Q(Ip), qp = (e) => {
|
|
7290
7290
|
let t = e.display ?? "Unknown investigation";
|
|
7291
|
-
return to(e) ===
|
|
7292
|
-
},
|
|
7291
|
+
return to(e) === kp && (t += ` (${se.t("INVESTIGATION_PANEL")})`), t;
|
|
7292
|
+
}, jp = (e) => {
|
|
7293
7293
|
const t = /* @__PURE__ */ new Map();
|
|
7294
7294
|
return e.results.forEach((r) => {
|
|
7295
7295
|
r.conceptClasses.forEach((n) => {
|
|
@@ -7299,10 +7299,10 @@ const Cm = "All Orderables", Im = "/openmrs/ws/rest/v1/ordertype?v=custom:(uuid,
|
|
|
7299
7299
|
}, to = (e) => {
|
|
7300
7300
|
var r;
|
|
7301
7301
|
const t = (r = e.extension) == null ? void 0 : r.find(
|
|
7302
|
-
(n) => n.url ===
|
|
7302
|
+
(n) => n.url === Lp
|
|
7303
7303
|
);
|
|
7304
7304
|
return t ? t.valueString ?? "" : "";
|
|
7305
|
-
},
|
|
7305
|
+
}, Up = (e, t) => {
|
|
7306
7306
|
var n;
|
|
7307
7307
|
const r = [];
|
|
7308
7308
|
return !((n = e.expansion) != null && n.contains) || e.expansion.contains.length === 0 || t.size === 0 || e.expansion.contains.forEach((a) => {
|
|
@@ -7315,7 +7315,7 @@ const Cm = "All Orderables", Im = "/openmrs/ws/rest/v1/ordertype?v=custom:(uuid,
|
|
|
7315
7315
|
return;
|
|
7316
7316
|
r.filter((b) => b.code === c.code && b.categoryCode === d.uuid).length > 0 || r.push({
|
|
7317
7317
|
code: c.code ?? "",
|
|
7318
|
-
display:
|
|
7318
|
+
display: qp(c),
|
|
7319
7319
|
category: d.display,
|
|
7320
7320
|
categoryCode: d.uuid
|
|
7321
7321
|
});
|
|
@@ -7323,10 +7323,10 @@ const Cm = "All Orderables", Im = "/openmrs/ws/rest/v1/ordertype?v=custom:(uuid,
|
|
|
7323
7323
|
});
|
|
7324
7324
|
}), r;
|
|
7325
7325
|
}, jb = async () => {
|
|
7326
|
-
const e = await
|
|
7327
|
-
return
|
|
7326
|
+
const e = await Mp(), t = await xp();
|
|
7327
|
+
return Up(e, jp(t));
|
|
7328
7328
|
};
|
|
7329
|
-
function
|
|
7329
|
+
function Fp(e) {
|
|
7330
7330
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
7331
7331
|
}
|
|
7332
7332
|
var kt = { exports: {} }, cn = {}, Le = {}, Ve = {}, un = {}, ln = {}, dn = {}, xa;
|
|
@@ -7376,78 +7376,78 @@ function Nr() {
|
|
|
7376
7376
|
}
|
|
7377
7377
|
}
|
|
7378
7378
|
e._Code = n, e.nil = new n("");
|
|
7379
|
-
function a(
|
|
7380
|
-
const h = [
|
|
7379
|
+
function a(p, ...u) {
|
|
7380
|
+
const h = [p[0]];
|
|
7381
7381
|
let w = 0;
|
|
7382
7382
|
for (; w < u.length; )
|
|
7383
|
-
o(h, u[w]), h.push(
|
|
7383
|
+
o(h, u[w]), h.push(p[++w]);
|
|
7384
7384
|
return new n(h);
|
|
7385
7385
|
}
|
|
7386
7386
|
e._ = a;
|
|
7387
7387
|
const s = new n("+");
|
|
7388
|
-
function i(
|
|
7389
|
-
const h = [S(
|
|
7388
|
+
function i(p, ...u) {
|
|
7389
|
+
const h = [S(p[0])];
|
|
7390
7390
|
let w = 0;
|
|
7391
7391
|
for (; w < u.length; )
|
|
7392
|
-
h.push(s), o(h, u[w]), h.push(s, S(
|
|
7392
|
+
h.push(s), o(h, u[w]), h.push(s, S(p[++w]));
|
|
7393
7393
|
return c(h), new n(h);
|
|
7394
7394
|
}
|
|
7395
7395
|
e.str = i;
|
|
7396
|
-
function o(
|
|
7397
|
-
u instanceof n ?
|
|
7396
|
+
function o(p, u) {
|
|
7397
|
+
u instanceof n ? p.push(...u._items) : u instanceof r ? p.push(u) : p.push(m(u));
|
|
7398
7398
|
}
|
|
7399
7399
|
e.addCodeArg = o;
|
|
7400
|
-
function c(
|
|
7400
|
+
function c(p) {
|
|
7401
7401
|
let u = 1;
|
|
7402
|
-
for (; u <
|
|
7403
|
-
if (
|
|
7404
|
-
const h = l(
|
|
7402
|
+
for (; u < p.length - 1; ) {
|
|
7403
|
+
if (p[u] === s) {
|
|
7404
|
+
const h = l(p[u - 1], p[u + 1]);
|
|
7405
7405
|
if (h !== void 0) {
|
|
7406
|
-
|
|
7406
|
+
p.splice(u - 1, 3, h);
|
|
7407
7407
|
continue;
|
|
7408
7408
|
}
|
|
7409
|
-
|
|
7409
|
+
p[u++] = "+";
|
|
7410
7410
|
}
|
|
7411
7411
|
u++;
|
|
7412
7412
|
}
|
|
7413
7413
|
}
|
|
7414
|
-
function l(
|
|
7414
|
+
function l(p, u) {
|
|
7415
7415
|
if (u === '""')
|
|
7416
|
-
return
|
|
7417
|
-
if (
|
|
7416
|
+
return p;
|
|
7417
|
+
if (p === '""')
|
|
7418
7418
|
return u;
|
|
7419
|
-
if (typeof
|
|
7420
|
-
return u instanceof r ||
|
|
7421
|
-
if (typeof u == "string" && u[0] === '"' && !(
|
|
7422
|
-
return `"${
|
|
7419
|
+
if (typeof p == "string")
|
|
7420
|
+
return u instanceof r || p[p.length - 1] !== '"' ? void 0 : typeof u != "string" ? `${p.slice(0, -1)}${u}"` : u[0] === '"' ? p.slice(0, -1) + u.slice(1) : void 0;
|
|
7421
|
+
if (typeof u == "string" && u[0] === '"' && !(p instanceof r))
|
|
7422
|
+
return `"${p}${u.slice(1)}`;
|
|
7423
7423
|
}
|
|
7424
|
-
function d(
|
|
7425
|
-
return u.emptyStr() ?
|
|
7424
|
+
function d(p, u) {
|
|
7425
|
+
return u.emptyStr() ? p : p.emptyStr() ? u : i`${p}${u}`;
|
|
7426
7426
|
}
|
|
7427
7427
|
e.strConcat = d;
|
|
7428
|
-
function p
|
|
7429
|
-
return typeof
|
|
7428
|
+
function m(p) {
|
|
7429
|
+
return typeof p == "number" || typeof p == "boolean" || p === null ? p : S(Array.isArray(p) ? p.join(",") : p);
|
|
7430
7430
|
}
|
|
7431
|
-
function b(
|
|
7432
|
-
return new n(S(
|
|
7431
|
+
function b(p) {
|
|
7432
|
+
return new n(S(p));
|
|
7433
7433
|
}
|
|
7434
7434
|
e.stringify = b;
|
|
7435
|
-
function S(
|
|
7436
|
-
return JSON.stringify(
|
|
7435
|
+
function S(p) {
|
|
7436
|
+
return JSON.stringify(p).replace(/\u2028/g, "\\u2028").replace(/\u2029/g, "\\u2029");
|
|
7437
7437
|
}
|
|
7438
7438
|
e.safeStringify = S;
|
|
7439
|
-
function y(
|
|
7440
|
-
return typeof
|
|
7439
|
+
function y(p) {
|
|
7440
|
+
return typeof p == "string" && e.IDENTIFIER.test(p) ? new n(`.${p}`) : a`[${p}]`;
|
|
7441
7441
|
}
|
|
7442
7442
|
e.getProperty = y;
|
|
7443
|
-
function g(
|
|
7444
|
-
if (typeof
|
|
7445
|
-
return new n(`${
|
|
7446
|
-
throw new Error(`CodeGen: invalid export name: ${
|
|
7443
|
+
function g(p) {
|
|
7444
|
+
if (typeof p == "string" && e.IDENTIFIER.test(p))
|
|
7445
|
+
return new n(`${p}`);
|
|
7446
|
+
throw new Error(`CodeGen: invalid export name: ${p}, use explicit $id name mapping`);
|
|
7447
7447
|
}
|
|
7448
7448
|
e.getEsmExportName = g;
|
|
7449
|
-
function f(
|
|
7450
|
-
return new n(
|
|
7449
|
+
function f(p) {
|
|
7450
|
+
return new n(p.toString());
|
|
7451
7451
|
}
|
|
7452
7452
|
e.regexpCode = f;
|
|
7453
7453
|
})(dn)), dn;
|
|
@@ -7485,8 +7485,8 @@ function ja() {
|
|
|
7485
7485
|
return `${l}${d.index++}`;
|
|
7486
7486
|
}
|
|
7487
7487
|
_nameGroup(l) {
|
|
7488
|
-
var d,
|
|
7489
|
-
if (!((
|
|
7488
|
+
var d, m;
|
|
7489
|
+
if (!((m = (d = this._parent) === null || d === void 0 ? void 0 : d._prefixes) === null || m === void 0) && m.has(l) || this._prefixes && !this._prefixes.has(l))
|
|
7490
7490
|
throw new Error(`CodeGen: prefix "${l}" is not allowed in this scope`);
|
|
7491
7491
|
return this._names[l] = { prefix: l, index: 0 };
|
|
7492
7492
|
}
|
|
@@ -7496,8 +7496,8 @@ function ja() {
|
|
|
7496
7496
|
constructor(l, d) {
|
|
7497
7497
|
super(d), this.prefix = l;
|
|
7498
7498
|
}
|
|
7499
|
-
setValue(l, { property: d, itemIndex:
|
|
7500
|
-
this.value = l, this.scopePath = (0, t._)`.${new t.Name(d)}[${
|
|
7499
|
+
setValue(l, { property: d, itemIndex: m }) {
|
|
7500
|
+
this.value = l, this.scopePath = (0, t._)`.${new t.Name(d)}[${m}]`;
|
|
7501
7501
|
}
|
|
7502
7502
|
}
|
|
7503
7503
|
e.ValueScopeName = s;
|
|
@@ -7513,10 +7513,10 @@ function ja() {
|
|
|
7513
7513
|
return new s(l, this._newName(l));
|
|
7514
7514
|
}
|
|
7515
7515
|
value(l, d) {
|
|
7516
|
-
var
|
|
7516
|
+
var m;
|
|
7517
7517
|
if (d.ref === void 0)
|
|
7518
7518
|
throw new Error("CodeGen: ref must be passed in value");
|
|
7519
|
-
const b = this.toName(l), { prefix: S } = b, y = (
|
|
7519
|
+
const b = this.toName(l), { prefix: S } = b, y = (m = d.key) !== null && m !== void 0 ? m : d.ref;
|
|
7520
7520
|
let g = this._values[S];
|
|
7521
7521
|
if (g) {
|
|
7522
7522
|
const u = g.get(y);
|
|
@@ -7525,48 +7525,48 @@ function ja() {
|
|
|
7525
7525
|
} else
|
|
7526
7526
|
g = this._values[S] = /* @__PURE__ */ new Map();
|
|
7527
7527
|
g.set(y, b);
|
|
7528
|
-
const f = this._scope[S] || (this._scope[S] = []),
|
|
7529
|
-
return f[
|
|
7528
|
+
const f = this._scope[S] || (this._scope[S] = []), p = f.length;
|
|
7529
|
+
return f[p] = d.ref, b.setValue(d, { property: S, itemIndex: p }), b;
|
|
7530
7530
|
}
|
|
7531
7531
|
getValue(l, d) {
|
|
7532
|
-
const
|
|
7533
|
-
if (
|
|
7534
|
-
return
|
|
7532
|
+
const m = this._values[l];
|
|
7533
|
+
if (m)
|
|
7534
|
+
return m.get(d);
|
|
7535
7535
|
}
|
|
7536
7536
|
scopeRefs(l, d = this._values) {
|
|
7537
|
-
return this._reduceValues(d, (
|
|
7538
|
-
if (
|
|
7539
|
-
throw new Error(`CodeGen: name "${
|
|
7540
|
-
return (0, t._)`${l}${
|
|
7537
|
+
return this._reduceValues(d, (m) => {
|
|
7538
|
+
if (m.scopePath === void 0)
|
|
7539
|
+
throw new Error(`CodeGen: name "${m}" has no value`);
|
|
7540
|
+
return (0, t._)`${l}${m.scopePath}`;
|
|
7541
7541
|
});
|
|
7542
7542
|
}
|
|
7543
|
-
scopeCode(l = this._values, d,
|
|
7543
|
+
scopeCode(l = this._values, d, m) {
|
|
7544
7544
|
return this._reduceValues(l, (b) => {
|
|
7545
7545
|
if (b.value === void 0)
|
|
7546
7546
|
throw new Error(`CodeGen: name "${b}" has no value`);
|
|
7547
7547
|
return b.value.code;
|
|
7548
|
-
}, d,
|
|
7548
|
+
}, d, m);
|
|
7549
7549
|
}
|
|
7550
|
-
_reduceValues(l, d,
|
|
7550
|
+
_reduceValues(l, d, m = {}, b) {
|
|
7551
7551
|
let S = t.nil;
|
|
7552
7552
|
for (const y in l) {
|
|
7553
7553
|
const g = l[y];
|
|
7554
7554
|
if (!g)
|
|
7555
7555
|
continue;
|
|
7556
|
-
const f =
|
|
7557
|
-
g.forEach((
|
|
7558
|
-
if (f.has(
|
|
7556
|
+
const f = m[y] = m[y] || /* @__PURE__ */ new Map();
|
|
7557
|
+
g.forEach((p) => {
|
|
7558
|
+
if (f.has(p))
|
|
7559
7559
|
return;
|
|
7560
|
-
f.set(
|
|
7561
|
-
let u = d(
|
|
7560
|
+
f.set(p, n.Started);
|
|
7561
|
+
let u = d(p);
|
|
7562
7562
|
if (u) {
|
|
7563
7563
|
const h = this.opts.es5 ? e.varKinds.var : e.varKinds.const;
|
|
7564
|
-
S = (0, t._)`${S}${h} ${
|
|
7565
|
-
} else if (u = b == null ? void 0 : b(
|
|
7564
|
+
S = (0, t._)`${S}${h} ${p} = ${u};${this.opts._n}`;
|
|
7565
|
+
} else if (u = b == null ? void 0 : b(p))
|
|
7566
7566
|
S = (0, t._)`${S}${u}${this.opts._n}`;
|
|
7567
7567
|
else
|
|
7568
|
-
throw new r(
|
|
7569
|
-
f.set(
|
|
7568
|
+
throw new r(p);
|
|
7569
|
+
f.set(p, n.Completed);
|
|
7570
7570
|
});
|
|
7571
7571
|
}
|
|
7572
7572
|
return S;
|
|
@@ -7683,7 +7683,7 @@ function X() {
|
|
|
7683
7683
|
return `break${this.label ? ` ${this.label}` : ""};` + v;
|
|
7684
7684
|
}
|
|
7685
7685
|
}
|
|
7686
|
-
class
|
|
7686
|
+
class m extends s {
|
|
7687
7687
|
constructor(v) {
|
|
7688
7688
|
super(), this.error = v;
|
|
7689
7689
|
}
|
|
@@ -7750,7 +7750,7 @@ function X() {
|
|
|
7750
7750
|
class f extends y {
|
|
7751
7751
|
}
|
|
7752
7752
|
f.kind = "else";
|
|
7753
|
-
class
|
|
7753
|
+
class p extends y {
|
|
7754
7754
|
constructor(v, R) {
|
|
7755
7755
|
super(R), this.condition = v;
|
|
7756
7756
|
}
|
|
@@ -7769,7 +7769,7 @@ function X() {
|
|
|
7769
7769
|
R = this.else = Array.isArray(C) ? new f(C) : C;
|
|
7770
7770
|
}
|
|
7771
7771
|
if (R)
|
|
7772
|
-
return v === !1 ? R instanceof
|
|
7772
|
+
return v === !1 ? R instanceof p ? R : R.nodes : this.nodes.length ? this : new p(he(v), R instanceof p ? [R] : R.nodes);
|
|
7773
7773
|
if (!(v === !1 || !this.nodes.length))
|
|
7774
7774
|
return this;
|
|
7775
7775
|
}
|
|
@@ -7783,7 +7783,7 @@ function X() {
|
|
|
7783
7783
|
return F(v, this.condition), this.else && U(v, this.else.names), v;
|
|
7784
7784
|
}
|
|
7785
7785
|
}
|
|
7786
|
-
|
|
7786
|
+
p.kind = "if";
|
|
7787
7787
|
class u extends y {
|
|
7788
7788
|
}
|
|
7789
7789
|
u.kind = "for";
|
|
@@ -7947,7 +7947,7 @@ function X() {
|
|
|
7947
7947
|
}
|
|
7948
7948
|
// `if` clause (or statement if `thenBody` and, optionally, `elseBody` are passed)
|
|
7949
7949
|
if(v, R, C) {
|
|
7950
|
-
if (this._blockNode(new
|
|
7950
|
+
if (this._blockNode(new p(v)), R && C)
|
|
7951
7951
|
this.code(R).else().code(C).endIf();
|
|
7952
7952
|
else if (R)
|
|
7953
7953
|
this.code(R).endIf();
|
|
@@ -7957,7 +7957,7 @@ function X() {
|
|
|
7957
7957
|
}
|
|
7958
7958
|
// `else if` clause - invalid without `if` or after `else` clauses
|
|
7959
7959
|
elseIf(v) {
|
|
7960
|
-
return this._elseNode(new
|
|
7960
|
+
return this._elseNode(new p(v));
|
|
7961
7961
|
}
|
|
7962
7962
|
// `else` clause - only valid after `if` or `else if` clauses
|
|
7963
7963
|
else() {
|
|
@@ -7965,7 +7965,7 @@ function X() {
|
|
|
7965
7965
|
}
|
|
7966
7966
|
// end `if` statement (needed if gen.if was used only with condition)
|
|
7967
7967
|
endIf() {
|
|
7968
|
-
return this._endBlockNode(
|
|
7968
|
+
return this._endBlockNode(p, f);
|
|
7969
7969
|
}
|
|
7970
7970
|
_for(v, R) {
|
|
7971
7971
|
return this._blockNode(v), R && this.code(R).endFor(), this;
|
|
@@ -8030,7 +8030,7 @@ function X() {
|
|
|
8030
8030
|
}
|
|
8031
8031
|
// `throw` statement
|
|
8032
8032
|
throw(v) {
|
|
8033
|
-
return this._leafNode(new
|
|
8033
|
+
return this._leafNode(new m(v));
|
|
8034
8034
|
}
|
|
8035
8035
|
// start self-balancing block
|
|
8036
8036
|
block(v, R) {
|
|
@@ -8072,7 +8072,7 @@ function X() {
|
|
|
8072
8072
|
}
|
|
8073
8073
|
_elseNode(v) {
|
|
8074
8074
|
const R = this._currNode;
|
|
8075
|
-
if (!(R instanceof
|
|
8075
|
+
if (!(R instanceof p))
|
|
8076
8076
|
throw new Error('CodeGen: "else" without "if"');
|
|
8077
8077
|
return this._currNode = R.else = v, this;
|
|
8078
8078
|
}
|
|
@@ -8191,7 +8191,7 @@ function te() {
|
|
|
8191
8191
|
}
|
|
8192
8192
|
Y.schemaRefOrVal = o;
|
|
8193
8193
|
function c(_) {
|
|
8194
|
-
return
|
|
8194
|
+
return m(decodeURIComponent(_));
|
|
8195
8195
|
}
|
|
8196
8196
|
Y.unescapeFragment = c;
|
|
8197
8197
|
function l(_) {
|
|
@@ -8202,10 +8202,10 @@ function te() {
|
|
|
8202
8202
|
return typeof _ == "number" ? `${_}` : _.replace(/~/g, "~0").replace(/\//g, "~1");
|
|
8203
8203
|
}
|
|
8204
8204
|
Y.escapeJsonPointer = d;
|
|
8205
|
-
function
|
|
8205
|
+
function m(_) {
|
|
8206
8206
|
return _.replace(/~1/g, "/").replace(/~0/g, "~");
|
|
8207
8207
|
}
|
|
8208
|
-
Y.unescapeJsonPointer =
|
|
8208
|
+
Y.unescapeJsonPointer = m;
|
|
8209
8209
|
function b(_, E) {
|
|
8210
8210
|
if (Array.isArray(_))
|
|
8211
8211
|
for (const $ of _)
|
|
@@ -8250,13 +8250,13 @@ function te() {
|
|
|
8250
8250
|
}
|
|
8251
8251
|
Y.setEvaluated = g;
|
|
8252
8252
|
const f = {};
|
|
8253
|
-
function
|
|
8253
|
+
function p(_, E) {
|
|
8254
8254
|
return _.scopeValue("func", {
|
|
8255
8255
|
ref: E,
|
|
8256
8256
|
code: f[E.code] || (f[E.code] = new t._Code(E.code))
|
|
8257
8257
|
});
|
|
8258
8258
|
}
|
|
8259
|
-
Y.useFunc =
|
|
8259
|
+
Y.useFunc = p;
|
|
8260
8260
|
var u;
|
|
8261
8261
|
(function(_) {
|
|
8262
8262
|
_[_.Num = 0] = "Num", _[_.Str = 1] = "Str";
|
|
@@ -8321,38 +8321,38 @@ function Fr() {
|
|
|
8321
8321
|
e.keywordError = {
|
|
8322
8322
|
message: ({ keyword: f }) => (0, t.str)`must pass "${f}" keyword validation`
|
|
8323
8323
|
}, e.keyword$DataError = {
|
|
8324
|
-
message: ({ keyword: f, schemaType:
|
|
8324
|
+
message: ({ keyword: f, schemaType: p }) => p ? (0, t.str)`"${f}" keyword must be ${p} ($data)` : (0, t.str)`"${f}" keyword is invalid ($data)`
|
|
8325
8325
|
};
|
|
8326
|
-
function a(f,
|
|
8327
|
-
const { it: w } = f, { gen: _, compositeRule: E, allErrors: $ } = w, O =
|
|
8326
|
+
function a(f, p = e.keywordError, u, h) {
|
|
8327
|
+
const { it: w } = f, { gen: _, compositeRule: E, allErrors: $ } = w, O = m(f, p, u);
|
|
8328
8328
|
h ?? (E || $) ? c(_, O) : l(w, (0, t._)`[${O}]`);
|
|
8329
8329
|
}
|
|
8330
8330
|
e.reportError = a;
|
|
8331
|
-
function s(f,
|
|
8332
|
-
const { it: h } = f, { gen: w, compositeRule: _, allErrors: E } = h, $ =
|
|
8331
|
+
function s(f, p = e.keywordError, u) {
|
|
8332
|
+
const { it: h } = f, { gen: w, compositeRule: _, allErrors: E } = h, $ = m(f, p, u);
|
|
8333
8333
|
c(w, $), _ || E || l(h, n.default.vErrors);
|
|
8334
8334
|
}
|
|
8335
8335
|
e.reportExtraError = s;
|
|
8336
|
-
function i(f,
|
|
8337
|
-
f.assign(n.default.errors,
|
|
8336
|
+
function i(f, p) {
|
|
8337
|
+
f.assign(n.default.errors, p), f.if((0, t._)`${n.default.vErrors} !== null`, () => f.if(p, () => f.assign((0, t._)`${n.default.vErrors}.length`, p), () => f.assign(n.default.vErrors, null)));
|
|
8338
8338
|
}
|
|
8339
8339
|
e.resetErrorsCount = i;
|
|
8340
|
-
function o({ gen: f, keyword:
|
|
8340
|
+
function o({ gen: f, keyword: p, schemaValue: u, data: h, errsCount: w, it: _ }) {
|
|
8341
8341
|
if (w === void 0)
|
|
8342
8342
|
throw new Error("ajv implementation error");
|
|
8343
8343
|
const E = f.name("err");
|
|
8344
8344
|
f.forRange("i", w, n.default.errors, ($) => {
|
|
8345
|
-
f.const(E, (0, t._)`${n.default.vErrors}[${$}]`), f.if((0, t._)`${E}.instancePath === undefined`, () => f.assign((0, t._)`${E}.instancePath`, (0, t.strConcat)(n.default.instancePath, _.errorPath))), f.assign((0, t._)`${E}.schemaPath`, (0, t.str)`${_.errSchemaPath}/${
|
|
8345
|
+
f.const(E, (0, t._)`${n.default.vErrors}[${$}]`), f.if((0, t._)`${E}.instancePath === undefined`, () => f.assign((0, t._)`${E}.instancePath`, (0, t.strConcat)(n.default.instancePath, _.errorPath))), f.assign((0, t._)`${E}.schemaPath`, (0, t.str)`${_.errSchemaPath}/${p}`), _.opts.verbose && (f.assign((0, t._)`${E}.schema`, u), f.assign((0, t._)`${E}.data`, h));
|
|
8346
8346
|
});
|
|
8347
8347
|
}
|
|
8348
8348
|
e.extendErrors = o;
|
|
8349
|
-
function c(f,
|
|
8350
|
-
const u = f.const("err",
|
|
8349
|
+
function c(f, p) {
|
|
8350
|
+
const u = f.const("err", p);
|
|
8351
8351
|
f.if((0, t._)`${n.default.vErrors} === null`, () => f.assign(n.default.vErrors, (0, t._)`[${u}]`), (0, t._)`${n.default.vErrors}.push(${u})`), f.code((0, t._)`${n.default.errors}++`);
|
|
8352
8352
|
}
|
|
8353
|
-
function l(f,
|
|
8353
|
+
function l(f, p) {
|
|
8354
8354
|
const { gen: u, validateName: h, schemaEnv: w } = f;
|
|
8355
|
-
w.$async ? u.throw((0, t._)`new ${f.ValidationError}(${
|
|
8355
|
+
w.$async ? u.throw((0, t._)`new ${f.ValidationError}(${p})`) : (u.assign((0, t._)`${h}.errors`, p), u.return(!1));
|
|
8356
8356
|
}
|
|
8357
8357
|
const d = {
|
|
8358
8358
|
keyword: new t.Name("keyword"),
|
|
@@ -8364,33 +8364,33 @@ function Fr() {
|
|
|
8364
8364
|
schema: new t.Name("schema"),
|
|
8365
8365
|
parentSchema: new t.Name("parentSchema")
|
|
8366
8366
|
};
|
|
8367
|
-
function
|
|
8367
|
+
function m(f, p, u) {
|
|
8368
8368
|
const { createErrors: h } = f.it;
|
|
8369
|
-
return h === !1 ? (0, t._)`{}` : b(f,
|
|
8369
|
+
return h === !1 ? (0, t._)`{}` : b(f, p, u);
|
|
8370
8370
|
}
|
|
8371
|
-
function b(f,
|
|
8371
|
+
function b(f, p, u = {}) {
|
|
8372
8372
|
const { gen: h, it: w } = f, _ = [
|
|
8373
8373
|
S(w, u),
|
|
8374
8374
|
y(f, u)
|
|
8375
8375
|
];
|
|
8376
|
-
return g(f,
|
|
8376
|
+
return g(f, p, _), h.object(..._);
|
|
8377
8377
|
}
|
|
8378
|
-
function S({ errorPath: f }, { instancePath:
|
|
8379
|
-
const u =
|
|
8378
|
+
function S({ errorPath: f }, { instancePath: p }) {
|
|
8379
|
+
const u = p ? (0, t.str)`${f}${(0, r.getErrorPath)(p, r.Type.Str)}` : f;
|
|
8380
8380
|
return [n.default.instancePath, (0, t.strConcat)(n.default.instancePath, u)];
|
|
8381
8381
|
}
|
|
8382
|
-
function y({ keyword: f, it: { errSchemaPath:
|
|
8383
|
-
let w = h ?
|
|
8382
|
+
function y({ keyword: f, it: { errSchemaPath: p } }, { schemaPath: u, parentSchema: h }) {
|
|
8383
|
+
let w = h ? p : (0, t.str)`${p}/${f}`;
|
|
8384
8384
|
return u && (w = (0, t.str)`${w}${(0, r.getErrorPath)(u, r.Type.Str)}`), [d.schemaPath, w];
|
|
8385
8385
|
}
|
|
8386
|
-
function g(f, { params:
|
|
8386
|
+
function g(f, { params: p, message: u }, h) {
|
|
8387
8387
|
const { keyword: w, data: _, schemaValue: E, it: $ } = f, { opts: O, propertyName: k, topSchemaRef: j, schemaPath: q } = $;
|
|
8388
|
-
h.push([d.keyword, w], [d.params, typeof
|
|
8388
|
+
h.push([d.keyword, w], [d.params, typeof p == "function" ? p(f) : p || (0, t._)`{}`]), O.messages && h.push([d.message, typeof u == "function" ? u(f) : u]), O.verbose && h.push([d.schema, E], [d.parentSchema, (0, t._)`${j}${q}`], [n.default.data, _]), k && h.push([d.propertyName, k]);
|
|
8389
8389
|
}
|
|
8390
8390
|
})(un)), un;
|
|
8391
8391
|
}
|
|
8392
8392
|
var Ba;
|
|
8393
|
-
function
|
|
8393
|
+
function Vp() {
|
|
8394
8394
|
if (Ba) return Ve;
|
|
8395
8395
|
Ba = 1, Object.defineProperty(Ve, "__esModule", { value: !0 }), Ve.boolOrEmptySchema = Ve.topBoolOrEmptySchema = void 0;
|
|
8396
8396
|
const e = Fr(), t = X(), r = Fe(), n = {
|
|
@@ -8407,7 +8407,7 @@ function Vm() {
|
|
|
8407
8407
|
}
|
|
8408
8408
|
Ve.boolOrEmptySchema = s;
|
|
8409
8409
|
function i(o, c) {
|
|
8410
|
-
const { gen: l, data: d } = o,
|
|
8410
|
+
const { gen: l, data: d } = o, m = {
|
|
8411
8411
|
gen: l,
|
|
8412
8412
|
keyword: "false schema",
|
|
8413
8413
|
data: d,
|
|
@@ -8417,7 +8417,7 @@ function Vm() {
|
|
|
8417
8417
|
params: {},
|
|
8418
8418
|
it: o
|
|
8419
8419
|
};
|
|
8420
|
-
(0, e.reportError)(
|
|
8420
|
+
(0, e.reportError)(m, n, void 0, c);
|
|
8421
8421
|
}
|
|
8422
8422
|
return Ve;
|
|
8423
8423
|
}
|
|
@@ -8500,7 +8500,7 @@ function Dr() {
|
|
|
8500
8500
|
if (O) {
|
|
8501
8501
|
const k = y(h, _, E.strictNumbers, s.Wrong);
|
|
8502
8502
|
w.if(k, () => {
|
|
8503
|
-
$.length ?
|
|
8503
|
+
$.length ? m(u, h, $) : f(u);
|
|
8504
8504
|
});
|
|
8505
8505
|
}
|
|
8506
8506
|
return O;
|
|
@@ -8510,7 +8510,7 @@ function Dr() {
|
|
|
8510
8510
|
function d(u, h) {
|
|
8511
8511
|
return h ? u.filter((w) => l.has(w) || h === "array" && w === "array") : [];
|
|
8512
8512
|
}
|
|
8513
|
-
function
|
|
8513
|
+
function m(u, h, w) {
|
|
8514
8514
|
const { gen: _, data: E, opts: $ } = u, O = _.let("dataType", (0, n._)`typeof ${E}`), k = _.let("coerced", (0, n._)`undefined`);
|
|
8515
8515
|
$.coerceTypes === "array" && _.if((0, n._)`${O} == 'object' && Array.isArray(${E}) && ${E}.length == 1`, () => _.assign(E, (0, n._)`${E}[0]`).assign(O, (0, n._)`typeof ${E}`).if(y(h, E, $.strictNumbers), () => _.assign(k, E))), _.if((0, n._)`${k} !== undefined`);
|
|
8516
8516
|
for (const q of w)
|
|
@@ -8594,11 +8594,11 @@ function Dr() {
|
|
|
8594
8594
|
params: ({ schema: u, schemaValue: h }) => typeof u == "string" ? (0, n._)`{type: ${u}}` : (0, n._)`{type: ${h}}`
|
|
8595
8595
|
};
|
|
8596
8596
|
function f(u) {
|
|
8597
|
-
const h =
|
|
8597
|
+
const h = p(u);
|
|
8598
8598
|
(0, r.reportError)(h, g);
|
|
8599
8599
|
}
|
|
8600
8600
|
ge.reportTypeError = f;
|
|
8601
|
-
function
|
|
8601
|
+
function p(u) {
|
|
8602
8602
|
const { gen: h, data: w, schema: _ } = u, E = (0, a.schemaRefOrVal)(u, _, "type");
|
|
8603
8603
|
return {
|
|
8604
8604
|
gen: h,
|
|
@@ -8615,7 +8615,7 @@ function Dr() {
|
|
|
8615
8615
|
return ge;
|
|
8616
8616
|
}
|
|
8617
8617
|
var wt = {}, Ka;
|
|
8618
|
-
function
|
|
8618
|
+
function Hp() {
|
|
8619
8619
|
if (Ka) return wt;
|
|
8620
8620
|
Ka = 1, Object.defineProperty(wt, "__esModule", { value: !0 }), wt.assignDefaults = void 0;
|
|
8621
8621
|
const e = X(), t = te();
|
|
@@ -8631,13 +8631,13 @@ function Hm() {
|
|
|
8631
8631
|
const { gen: o, compositeRule: c, data: l, opts: d } = a;
|
|
8632
8632
|
if (i === void 0)
|
|
8633
8633
|
return;
|
|
8634
|
-
const
|
|
8634
|
+
const m = (0, e._)`${l}${(0, e.getProperty)(s)}`;
|
|
8635
8635
|
if (c) {
|
|
8636
|
-
(0, t.checkStrictMode)(a, `default is ignored for: ${
|
|
8636
|
+
(0, t.checkStrictMode)(a, `default is ignored for: ${m}`);
|
|
8637
8637
|
return;
|
|
8638
8638
|
}
|
|
8639
|
-
let b = (0, e._)`${
|
|
8640
|
-
d.useDefaults === "empty" && (b = (0, e._)`${b} || ${
|
|
8639
|
+
let b = (0, e._)`${m} === undefined`;
|
|
8640
|
+
d.useDefaults === "empty" && (b = (0, e._)`${b} || ${m} === null || ${m} === ""`), o.if(b, (0, e._)`${m} = ${(0, e.stringify)(i)}`);
|
|
8641
8641
|
}
|
|
8642
8642
|
return wt;
|
|
8643
8643
|
}
|
|
@@ -8683,12 +8683,12 @@ function Ce() {
|
|
|
8683
8683
|
return _ ? (0, e.or)(E, (0, e.not)(c(u, h, w))) : E;
|
|
8684
8684
|
}
|
|
8685
8685
|
ne.noPropertyInData = d;
|
|
8686
|
-
function
|
|
8686
|
+
function m(u) {
|
|
8687
8687
|
return u ? Object.keys(u).filter((h) => h !== "__proto__") : [];
|
|
8688
8688
|
}
|
|
8689
|
-
ne.allSchemaProperties =
|
|
8689
|
+
ne.allSchemaProperties = m;
|
|
8690
8690
|
function b(u, h) {
|
|
8691
|
-
return
|
|
8691
|
+
return m(h).filter((w) => !(0, t.alwaysValidSchema)(u, h[w]));
|
|
8692
8692
|
}
|
|
8693
8693
|
ne.schemaProperties = b;
|
|
8694
8694
|
function S({ schemaCode: u, data: h, it: { gen: w, topSchemaRef: _, schemaPath: E, errorPath: $ }, it: O }, k, j, q) {
|
|
@@ -8732,7 +8732,7 @@ function Ce() {
|
|
|
8732
8732
|
}
|
|
8733
8733
|
}
|
|
8734
8734
|
ne.validateArray = f;
|
|
8735
|
-
function
|
|
8735
|
+
function p(u) {
|
|
8736
8736
|
const { gen: h, schema: w, keyword: _, it: E } = u;
|
|
8737
8737
|
if (!Array.isArray(w))
|
|
8738
8738
|
throw new Error("ajv implementation error");
|
|
@@ -8748,15 +8748,15 @@ function Ce() {
|
|
|
8748
8748
|
h.assign(O, (0, e._)`${O} || ${k}`), u.mergeValidEvaluated(U, k) || h.if((0, e.not)(O));
|
|
8749
8749
|
})), u.result(O, () => u.reset(), () => u.error(!0));
|
|
8750
8750
|
}
|
|
8751
|
-
return ne.validateUnion =
|
|
8751
|
+
return ne.validateUnion = p, ne;
|
|
8752
8752
|
}
|
|
8753
8753
|
var Ja;
|
|
8754
|
-
function
|
|
8754
|
+
function Bp() {
|
|
8755
8755
|
if (Ja) return Ae;
|
|
8756
8756
|
Ja = 1, Object.defineProperty(Ae, "__esModule", { value: !0 }), Ae.validateKeywordUsage = Ae.validSchemaType = Ae.funcKeywordCode = Ae.macroKeywordCode = void 0;
|
|
8757
8757
|
const e = X(), t = Fe(), r = Ce(), n = Fr();
|
|
8758
8758
|
function a(b, S) {
|
|
8759
|
-
const { gen: y, keyword: g, schema: f, parentSchema:
|
|
8759
|
+
const { gen: y, keyword: g, schema: f, parentSchema: p, it: u } = b, h = S.macro.call(u.self, f, p, u), w = l(y, g, h);
|
|
8760
8760
|
u.opts.validateSchema !== !1 && u.self.validateSchema(h, !0);
|
|
8761
8761
|
const _ = y.name("valid");
|
|
8762
8762
|
b.subschema({
|
|
@@ -8770,9 +8770,9 @@ function Bm() {
|
|
|
8770
8770
|
Ae.macroKeywordCode = a;
|
|
8771
8771
|
function s(b, S) {
|
|
8772
8772
|
var y;
|
|
8773
|
-
const { gen: g, keyword: f, schema:
|
|
8773
|
+
const { gen: g, keyword: f, schema: p, parentSchema: u, $data: h, it: w } = b;
|
|
8774
8774
|
c(w, S);
|
|
8775
|
-
const _ = !h && S.compile ? S.compile.call(w.self,
|
|
8775
|
+
const _ = !h && S.compile ? S.compile.call(w.self, p, u, w) : S.validate, E = l(g, f, _), $ = g.let("valid");
|
|
8776
8776
|
b.block$data($, O), b.ok((y = S.valid) !== null && y !== void 0 ? y : $);
|
|
8777
8777
|
function O() {
|
|
8778
8778
|
if (S.errors === !1)
|
|
@@ -8823,28 +8823,28 @@ function Bm() {
|
|
|
8823
8823
|
return !S.length || S.some((g) => g === "array" ? Array.isArray(b) : g === "object" ? b && typeof b == "object" && !Array.isArray(b) : typeof b == g || y && typeof b > "u");
|
|
8824
8824
|
}
|
|
8825
8825
|
Ae.validSchemaType = d;
|
|
8826
|
-
function
|
|
8827
|
-
if (Array.isArray(f.keyword) ? !f.keyword.includes(
|
|
8826
|
+
function m({ schema: b, opts: S, self: y, errSchemaPath: g }, f, p) {
|
|
8827
|
+
if (Array.isArray(f.keyword) ? !f.keyword.includes(p) : f.keyword !== p)
|
|
8828
8828
|
throw new Error("ajv implementation error");
|
|
8829
8829
|
const u = f.dependencies;
|
|
8830
8830
|
if (u != null && u.some((h) => !Object.prototype.hasOwnProperty.call(b, h)))
|
|
8831
|
-
throw new Error(`parent schema must have dependencies of ${
|
|
8832
|
-
if (f.validateSchema && !f.validateSchema(b[
|
|
8833
|
-
const w = `keyword "${
|
|
8831
|
+
throw new Error(`parent schema must have dependencies of ${p}: ${u.join(",")}`);
|
|
8832
|
+
if (f.validateSchema && !f.validateSchema(b[p])) {
|
|
8833
|
+
const w = `keyword "${p}" value is invalid at path "${g}": ` + y.errorsText(f.validateSchema.errors);
|
|
8834
8834
|
if (S.validateSchema === "log")
|
|
8835
8835
|
y.logger.error(w);
|
|
8836
8836
|
else
|
|
8837
8837
|
throw new Error(w);
|
|
8838
8838
|
}
|
|
8839
8839
|
}
|
|
8840
|
-
return Ae.validateKeywordUsage =
|
|
8840
|
+
return Ae.validateKeywordUsage = m, Ae;
|
|
8841
8841
|
}
|
|
8842
8842
|
var xe = {}, Xa;
|
|
8843
|
-
function
|
|
8843
|
+
function zp() {
|
|
8844
8844
|
if (Xa) return xe;
|
|
8845
8845
|
Xa = 1, Object.defineProperty(xe, "__esModule", { value: !0 }), xe.extendSubschemaMode = xe.extendSubschemaData = xe.getSubschema = void 0;
|
|
8846
8846
|
const e = X(), t = te();
|
|
8847
|
-
function r(s, { keyword: i, schemaProp: o, schema: c, schemaPath: l, errSchemaPath: d, topSchemaRef:
|
|
8847
|
+
function r(s, { keyword: i, schemaProp: o, schema: c, schemaPath: l, errSchemaPath: d, topSchemaRef: m }) {
|
|
8848
8848
|
if (i !== void 0 && c !== void 0)
|
|
8849
8849
|
throw new Error('both "keyword" and "schema" passed, only one allowed');
|
|
8850
8850
|
if (i !== void 0) {
|
|
@@ -8860,29 +8860,29 @@ function zm() {
|
|
|
8860
8860
|
};
|
|
8861
8861
|
}
|
|
8862
8862
|
if (c !== void 0) {
|
|
8863
|
-
if (l === void 0 || d === void 0 ||
|
|
8863
|
+
if (l === void 0 || d === void 0 || m === void 0)
|
|
8864
8864
|
throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');
|
|
8865
8865
|
return {
|
|
8866
8866
|
schema: c,
|
|
8867
8867
|
schemaPath: l,
|
|
8868
|
-
topSchemaRef:
|
|
8868
|
+
topSchemaRef: m,
|
|
8869
8869
|
errSchemaPath: d
|
|
8870
8870
|
};
|
|
8871
8871
|
}
|
|
8872
8872
|
throw new Error('either "keyword" or "schema" must be passed');
|
|
8873
8873
|
}
|
|
8874
8874
|
xe.getSubschema = r;
|
|
8875
|
-
function n(s, i, { dataProp: o, dataPropType: c, data: l, dataTypes: d, propertyName:
|
|
8875
|
+
function n(s, i, { dataProp: o, dataPropType: c, data: l, dataTypes: d, propertyName: m }) {
|
|
8876
8876
|
if (l !== void 0 && o !== void 0)
|
|
8877
8877
|
throw new Error('both "data" and "dataProp" passed, only one allowed');
|
|
8878
8878
|
const { gen: b } = i;
|
|
8879
8879
|
if (o !== void 0) {
|
|
8880
|
-
const { errorPath: y, dataPathArr: g, opts: f } = i,
|
|
8881
|
-
S(
|
|
8880
|
+
const { errorPath: y, dataPathArr: g, opts: f } = i, p = b.let("data", (0, e._)`${i.data}${(0, e.getProperty)(o)}`, !0);
|
|
8881
|
+
S(p), s.errorPath = (0, e.str)`${y}${(0, t.getErrorPath)(o, c, f.jsPropertySyntax)}`, s.parentDataProperty = (0, e._)`${o}`, s.dataPathArr = [...g, s.parentDataProperty];
|
|
8882
8882
|
}
|
|
8883
8883
|
if (l !== void 0) {
|
|
8884
8884
|
const y = l instanceof e.Name ? l : b.let("data", l, !0);
|
|
8885
|
-
S(y),
|
|
8885
|
+
S(y), m !== void 0 && (s.propertyName = m);
|
|
8886
8886
|
}
|
|
8887
8887
|
d && (s.dataTypes = d);
|
|
8888
8888
|
function S(y) {
|
|
@@ -8923,11 +8923,11 @@ function ao() {
|
|
|
8923
8923
|
return t !== t && r !== r;
|
|
8924
8924
|
}), hn;
|
|
8925
8925
|
}
|
|
8926
|
-
var
|
|
8927
|
-
function
|
|
8928
|
-
if (Za) return
|
|
8926
|
+
var pn = { exports: {} }, Za;
|
|
8927
|
+
function Wp() {
|
|
8928
|
+
if (Za) return pn.exports;
|
|
8929
8929
|
Za = 1;
|
|
8930
|
-
var e =
|
|
8930
|
+
var e = pn.exports = function(n, a, s) {
|
|
8931
8931
|
typeof a == "function" && (s = a, a = {}), s = a.cb || s;
|
|
8932
8932
|
var i = typeof s == "function" ? s : s.pre || function() {
|
|
8933
8933
|
}, o = s.post || function() {
|
|
@@ -8975,9 +8975,9 @@ function Wm() {
|
|
|
8975
8975
|
maxProperties: !0,
|
|
8976
8976
|
minProperties: !0
|
|
8977
8977
|
};
|
|
8978
|
-
function t(n, a, s, i, o, c, l, d,
|
|
8978
|
+
function t(n, a, s, i, o, c, l, d, m, b) {
|
|
8979
8979
|
if (i && typeof i == "object" && !Array.isArray(i)) {
|
|
8980
|
-
a(i, o, c, l, d,
|
|
8980
|
+
a(i, o, c, l, d, m, b);
|
|
8981
8981
|
for (var S in i) {
|
|
8982
8982
|
var y = i[S];
|
|
8983
8983
|
if (Array.isArray(y)) {
|
|
@@ -8990,19 +8990,19 @@ function Wm() {
|
|
|
8990
8990
|
t(n, a, s, y[f], o + "/" + S + "/" + r(f), c, o, S, i, f);
|
|
8991
8991
|
} else (S in e.keywords || n.allKeys && !(S in e.skipKeywords)) && t(n, a, s, y, o + "/" + S, c, o, S, i);
|
|
8992
8992
|
}
|
|
8993
|
-
s(i, o, c, l, d,
|
|
8993
|
+
s(i, o, c, l, d, m, b);
|
|
8994
8994
|
}
|
|
8995
8995
|
}
|
|
8996
8996
|
function r(n) {
|
|
8997
8997
|
return n.replace(/~/g, "~0").replace(/\//g, "~1");
|
|
8998
8998
|
}
|
|
8999
|
-
return
|
|
8999
|
+
return pn.exports;
|
|
9000
9000
|
}
|
|
9001
9001
|
var es;
|
|
9002
9002
|
function Vr() {
|
|
9003
9003
|
if (es) return be;
|
|
9004
9004
|
es = 1, Object.defineProperty(be, "__esModule", { value: !0 }), be.getSchemaRefs = be.resolveUrl = be.normalizeId = be._getFullPath = be.getFullPath = be.inlineRef = void 0;
|
|
9005
|
-
const e = te(), t = ao(), r =
|
|
9005
|
+
const e = te(), t = ao(), r = Wp(), n = /* @__PURE__ */ new Set([
|
|
9006
9006
|
"type",
|
|
9007
9007
|
"format",
|
|
9008
9008
|
"pattern",
|
|
@@ -9035,24 +9035,24 @@ function Vr() {
|
|
|
9035
9035
|
for (const f in g) {
|
|
9036
9036
|
if (s.has(f))
|
|
9037
9037
|
return !0;
|
|
9038
|
-
const
|
|
9039
|
-
if (Array.isArray(
|
|
9038
|
+
const p = g[f];
|
|
9039
|
+
if (Array.isArray(p) && p.some(i) || typeof p == "object" && i(p))
|
|
9040
9040
|
return !0;
|
|
9041
9041
|
}
|
|
9042
9042
|
return !1;
|
|
9043
9043
|
}
|
|
9044
9044
|
function o(g) {
|
|
9045
9045
|
let f = 0;
|
|
9046
|
-
for (const
|
|
9047
|
-
if (
|
|
9046
|
+
for (const p in g) {
|
|
9047
|
+
if (p === "$ref")
|
|
9048
9048
|
return 1 / 0;
|
|
9049
|
-
if (f++, !n.has(
|
|
9049
|
+
if (f++, !n.has(p) && (typeof g[p] == "object" && (0, e.eachItem)(g[p], (u) => f += o(u)), f === 1 / 0))
|
|
9050
9050
|
return 1 / 0;
|
|
9051
9051
|
}
|
|
9052
9052
|
return f;
|
|
9053
9053
|
}
|
|
9054
|
-
function c(g, f = "",
|
|
9055
|
-
|
|
9054
|
+
function c(g, f = "", p) {
|
|
9055
|
+
p !== !1 && (f = m(f));
|
|
9056
9056
|
const u = g.parse(f);
|
|
9057
9057
|
return l(g, u);
|
|
9058
9058
|
}
|
|
@@ -9062,32 +9062,32 @@ function Vr() {
|
|
|
9062
9062
|
}
|
|
9063
9063
|
be._getFullPath = l;
|
|
9064
9064
|
const d = /#\/?$/;
|
|
9065
|
-
function
|
|
9065
|
+
function m(g) {
|
|
9066
9066
|
return g ? g.replace(d, "") : "";
|
|
9067
9067
|
}
|
|
9068
|
-
be.normalizeId =
|
|
9069
|
-
function b(g, f,
|
|
9070
|
-
return
|
|
9068
|
+
be.normalizeId = m;
|
|
9069
|
+
function b(g, f, p) {
|
|
9070
|
+
return p = m(p), g.resolve(f, p);
|
|
9071
9071
|
}
|
|
9072
9072
|
be.resolveUrl = b;
|
|
9073
9073
|
const S = /^[a-z_][-a-z0-9._]*$/i;
|
|
9074
9074
|
function y(g, f) {
|
|
9075
9075
|
if (typeof g == "boolean")
|
|
9076
9076
|
return {};
|
|
9077
|
-
const { schemaId:
|
|
9077
|
+
const { schemaId: p, uriResolver: u } = this.opts, h = m(g[p] || f), w = { "": h }, _ = c(u, h, !1), E = {}, $ = /* @__PURE__ */ new Set();
|
|
9078
9078
|
return r(g, { allKeys: !0 }, (j, q, U, F) => {
|
|
9079
9079
|
if (F === void 0)
|
|
9080
9080
|
return;
|
|
9081
9081
|
const z = _ + q;
|
|
9082
9082
|
let K = w[F];
|
|
9083
|
-
typeof j[
|
|
9083
|
+
typeof j[p] == "string" && (K = he.call(this, j[p])), ue.call(this, j.$anchor), ue.call(this, j.$dynamicAnchor), w[q] = K;
|
|
9084
9084
|
function he(ee) {
|
|
9085
9085
|
const oe = this.opts.uriResolver.resolve;
|
|
9086
|
-
if (ee =
|
|
9086
|
+
if (ee = m(K ? oe(K, ee) : ee), $.has(ee))
|
|
9087
9087
|
throw k(ee);
|
|
9088
9088
|
$.add(ee);
|
|
9089
9089
|
let M = this.refs[ee];
|
|
9090
|
-
return typeof M == "string" && (M = this.refs[M]), typeof M == "object" ? O(j, M.schema, ee) : ee !==
|
|
9090
|
+
return typeof M == "string" && (M = this.refs[M]), typeof M == "object" ? O(j, M.schema, ee) : ee !== m(z) && (ee[0] === "#" ? (O(j, E[ee], ee), E[ee] = j) : this.refs[ee] = z), ee;
|
|
9091
9091
|
}
|
|
9092
9092
|
function ue(ee) {
|
|
9093
9093
|
if (typeof ee == "string") {
|
|
@@ -9111,7 +9111,7 @@ var ts;
|
|
|
9111
9111
|
function Hr() {
|
|
9112
9112
|
if (ts) return Le;
|
|
9113
9113
|
ts = 1, Object.defineProperty(Le, "__esModule", { value: !0 }), Le.getData = Le.KeywordCxt = Le.validateFunctionCode = void 0;
|
|
9114
|
-
const e =
|
|
9114
|
+
const e = Vp(), t = Dr(), r = no(), n = Dr(), a = Hp(), s = Bp(), i = zp(), o = X(), c = Fe(), l = Vr(), d = te(), m = Fr();
|
|
9115
9115
|
function b(P) {
|
|
9116
9116
|
if (_(P) && ($(P), w(P))) {
|
|
9117
9117
|
f(P);
|
|
@@ -9138,10 +9138,10 @@ function Hr() {
|
|
|
9138
9138
|
function f(P) {
|
|
9139
9139
|
const { schema: N, opts: L, gen: x } = P;
|
|
9140
9140
|
S(P, () => {
|
|
9141
|
-
L.$comment && N.$comment && F(P), j(P), x.let(c.default.vErrors, null), x.let(c.default.errors, 0), L.unevaluated &&
|
|
9141
|
+
L.$comment && N.$comment && F(P), j(P), x.let(c.default.vErrors, null), x.let(c.default.errors, 0), L.unevaluated && p(P), O(P), z(P);
|
|
9142
9142
|
});
|
|
9143
9143
|
}
|
|
9144
|
-
function
|
|
9144
|
+
function p(P) {
|
|
9145
9145
|
const { gen: N, validateName: L } = P;
|
|
9146
9146
|
P.evaluated = N.const("evaluated", (0, o._)`${L}.evaluated`), N.if((0, o._)`${P.evaluated}.dynamicProps`, () => N.assign((0, o._)`${P.evaluated}.props`, (0, o._)`undefined`)), N.if((0, o._)`${P.evaluated}.dynamicItems`, () => N.assign((0, o._)`${P.evaluated}.items`, (0, o._)`undefined`));
|
|
9147
9147
|
}
|
|
@@ -9203,8 +9203,8 @@ function Hr() {
|
|
|
9203
9203
|
if (H.$comment === !0)
|
|
9204
9204
|
P.code((0, o._)`${c.default.self}.logger.log(${J})`);
|
|
9205
9205
|
else if (typeof H.$comment == "function") {
|
|
9206
|
-
const
|
|
9207
|
-
P.code((0, o._)`${c.default.self}.opts.$comment(${J}, ${
|
|
9206
|
+
const pe = (0, o.str)`${x}/$comment`, Oe = P.scopeValue("root", { ref: N.root });
|
|
9207
|
+
P.code((0, o._)`${c.default.self}.opts.$comment(${J}, ${pe}, ${Oe}.schema)`);
|
|
9208
9208
|
}
|
|
9209
9209
|
}
|
|
9210
9210
|
function z(P) {
|
|
@@ -9215,18 +9215,18 @@ function Hr() {
|
|
|
9215
9215
|
L instanceof o.Name && P.assign((0, o._)`${N}.props`, L), x instanceof o.Name && P.assign((0, o._)`${N}.items`, x);
|
|
9216
9216
|
}
|
|
9217
9217
|
function he(P, N, L, x) {
|
|
9218
|
-
const { gen: H, schema: J, data:
|
|
9219
|
-
if (J.$ref && (ve.ignoreKeywordsWithRef || !(0, d.schemaHasRulesButRef)(J,
|
|
9220
|
-
H.block(() => V(P, "$ref",
|
|
9218
|
+
const { gen: H, schema: J, data: pe, allErrors: Oe, opts: ve, self: Ee } = P, { RULES: me } = Ee;
|
|
9219
|
+
if (J.$ref && (ve.ignoreKeywordsWithRef || !(0, d.schemaHasRulesButRef)(J, me))) {
|
|
9220
|
+
H.block(() => V(P, "$ref", me.all.$ref.definition));
|
|
9221
9221
|
return;
|
|
9222
9222
|
}
|
|
9223
9223
|
ve.jtd || ee(P, N), H.block(() => {
|
|
9224
|
-
for (const Re of
|
|
9224
|
+
for (const Re of me.rules)
|
|
9225
9225
|
Xe(Re);
|
|
9226
|
-
Xe(
|
|
9226
|
+
Xe(me.post);
|
|
9227
9227
|
});
|
|
9228
9228
|
function Xe(Re) {
|
|
9229
|
-
(0, r.shouldUseGroup)(J, Re) && (Re.type ? (H.if((0, n.checkDataType)(Re.type,
|
|
9229
|
+
(0, r.shouldUseGroup)(J, Re) && (Re.type ? (H.if((0, n.checkDataType)(Re.type, pe, ve.strictNumbers)), ue(P, Re), N.length === 1 && N[0] === Re.type && L && (H.else(), (0, n.reportTypeError)(P)), H.endIf()) : ue(P, Re), Oe || H.if((0, o._)`${c.default.errors} === ${x || 0}`));
|
|
9230
9230
|
}
|
|
9231
9231
|
}
|
|
9232
9232
|
function ue(P, N) {
|
|
@@ -9259,7 +9259,7 @@ function Hr() {
|
|
|
9259
9259
|
const H = L[x];
|
|
9260
9260
|
if (typeof H == "object" && (0, r.shouldUseRule)(P.schema, H)) {
|
|
9261
9261
|
const { type: J } = H.definition;
|
|
9262
|
-
J.length && !J.some((
|
|
9262
|
+
J.length && !J.some((pe) => I(N, pe)) && R(P, `missing type "${J.join(",")}" for keyword "${x}"`);
|
|
9263
9263
|
}
|
|
9264
9264
|
}
|
|
9265
9265
|
}
|
|
@@ -9317,15 +9317,15 @@ function Hr() {
|
|
|
9317
9317
|
this._error(N, x);
|
|
9318
9318
|
}
|
|
9319
9319
|
_error(N, L) {
|
|
9320
|
-
(N ?
|
|
9320
|
+
(N ? m.reportExtraError : m.reportError)(this, this.def.error, L);
|
|
9321
9321
|
}
|
|
9322
9322
|
$dataError() {
|
|
9323
|
-
(0,
|
|
9323
|
+
(0, m.reportError)(this, this.def.$dataError || m.keyword$DataError);
|
|
9324
9324
|
}
|
|
9325
9325
|
reset() {
|
|
9326
9326
|
if (this.errsCount === void 0)
|
|
9327
9327
|
throw new Error('add "trackErrors" to keyword definition');
|
|
9328
|
-
(0,
|
|
9328
|
+
(0, m.resetErrorsCount)(this.gen, this.errsCount);
|
|
9329
9329
|
}
|
|
9330
9330
|
ok(N) {
|
|
9331
9331
|
this.allErrors || this.gen.if(N);
|
|
@@ -9341,13 +9341,13 @@ function Hr() {
|
|
|
9341
9341
|
check$data(N = o.nil, L = o.nil) {
|
|
9342
9342
|
if (!this.$data)
|
|
9343
9343
|
return;
|
|
9344
|
-
const { gen: x, schemaCode: H, schemaType: J, def:
|
|
9345
|
-
x.if((0, o.or)((0, o._)`${H} === undefined`, L)), N !== o.nil && x.assign(N, !0), (J.length ||
|
|
9344
|
+
const { gen: x, schemaCode: H, schemaType: J, def: pe } = this;
|
|
9345
|
+
x.if((0, o.or)((0, o._)`${H} === undefined`, L)), N !== o.nil && x.assign(N, !0), (J.length || pe.validateSchema) && (x.elseIf(this.invalid$data()), this.$dataError(), N !== o.nil && x.assign(N, !1)), x.else();
|
|
9346
9346
|
}
|
|
9347
9347
|
invalid$data() {
|
|
9348
9348
|
const { gen: N, schemaCode: L, schemaType: x, def: H, it: J } = this;
|
|
9349
|
-
return (0, o.or)(
|
|
9350
|
-
function
|
|
9349
|
+
return (0, o.or)(pe(), Oe());
|
|
9350
|
+
function pe() {
|
|
9351
9351
|
if (x.length) {
|
|
9352
9352
|
if (!(L instanceof o.Name))
|
|
9353
9353
|
throw new Error("ajv implementation error");
|
|
@@ -9398,24 +9398,24 @@ function Hr() {
|
|
|
9398
9398
|
const Ee = re.exec(P);
|
|
9399
9399
|
if (!Ee)
|
|
9400
9400
|
throw new Error(`Invalid JSON-pointer: ${P}`);
|
|
9401
|
-
const
|
|
9401
|
+
const me = +Ee[1];
|
|
9402
9402
|
if (H = Ee[2], H === "#") {
|
|
9403
|
-
if (
|
|
9404
|
-
throw new Error(ve("property/index",
|
|
9405
|
-
return x[N -
|
|
9403
|
+
if (me >= N)
|
|
9404
|
+
throw new Error(ve("property/index", me));
|
|
9405
|
+
return x[N - me];
|
|
9406
9406
|
}
|
|
9407
|
-
if (
|
|
9408
|
-
throw new Error(ve("data",
|
|
9409
|
-
if (J = L[N -
|
|
9407
|
+
if (me > N)
|
|
9408
|
+
throw new Error(ve("data", me));
|
|
9409
|
+
if (J = L[N - me], !H)
|
|
9410
9410
|
return J;
|
|
9411
9411
|
}
|
|
9412
|
-
let
|
|
9412
|
+
let pe = J;
|
|
9413
9413
|
const Oe = H.split("/");
|
|
9414
9414
|
for (const Ee of Oe)
|
|
9415
|
-
Ee && (J = (0, o._)`${J}${(0, o.getProperty)((0, d.unescapeJsonPointer)(Ee))}`,
|
|
9416
|
-
return
|
|
9417
|
-
function ve(Ee,
|
|
9418
|
-
return `Cannot access ${Ee} ${
|
|
9415
|
+
Ee && (J = (0, o._)`${J}${(0, o.getProperty)((0, d.unescapeJsonPointer)(Ee))}`, pe = (0, o._)`${pe} && ${J}`);
|
|
9416
|
+
return pe;
|
|
9417
|
+
function ve(Ee, me) {
|
|
9418
|
+
return `Cannot access ${Ee} ${me} levels up, current level is ${N}`;
|
|
9419
9419
|
}
|
|
9420
9420
|
}
|
|
9421
9421
|
return Le.getData = Z, Le;
|
|
@@ -9449,18 +9449,18 @@ function Ln() {
|
|
|
9449
9449
|
as = 1, Object.defineProperty($e, "__esModule", { value: !0 }), $e.resolveSchema = $e.getCompilingSchema = $e.resolveRef = $e.compileSchema = $e.SchemaEnv = void 0;
|
|
9450
9450
|
const e = X(), t = kn(), r = Fe(), n = Vr(), a = te(), s = Hr();
|
|
9451
9451
|
class i {
|
|
9452
|
-
constructor(
|
|
9452
|
+
constructor(p) {
|
|
9453
9453
|
var u;
|
|
9454
9454
|
this.refs = {}, this.dynamicAnchors = {};
|
|
9455
9455
|
let h;
|
|
9456
|
-
typeof
|
|
9456
|
+
typeof p.schema == "object" && (h = p.schema), this.schema = p.schema, this.schemaId = p.schemaId, this.root = p.root || this, this.baseId = (u = p.baseId) !== null && u !== void 0 ? u : (0, n.normalizeId)(h == null ? void 0 : h[p.schemaId || "$id"]), this.schemaPath = p.schemaPath, this.localRefs = p.localRefs, this.meta = p.meta, this.$async = h == null ? void 0 : h.$async, this.refs = {};
|
|
9457
9457
|
}
|
|
9458
9458
|
}
|
|
9459
9459
|
$e.SchemaEnv = i;
|
|
9460
9460
|
function o(f) {
|
|
9461
|
-
const
|
|
9462
|
-
if (
|
|
9463
|
-
return
|
|
9461
|
+
const p = d.call(this, f);
|
|
9462
|
+
if (p)
|
|
9463
|
+
return p;
|
|
9464
9464
|
const u = (0, n.getFullPath)(this.opts.uriResolver, f.root.baseId), { es5: h, lines: w } = this.opts.code, { ownProperties: _ } = this.opts, E = new e.CodeGen(this.scope, { es5: h, lines: w, ownProperties: _ });
|
|
9465
9465
|
let $;
|
|
9466
9466
|
f.$async && ($ = E.scopeValue("Error", {
|
|
@@ -9517,16 +9517,16 @@ function Ln() {
|
|
|
9517
9517
|
}
|
|
9518
9518
|
}
|
|
9519
9519
|
$e.compileSchema = o;
|
|
9520
|
-
function c(f,
|
|
9520
|
+
function c(f, p, u) {
|
|
9521
9521
|
var h;
|
|
9522
|
-
u = (0, n.resolveUrl)(this.opts.uriResolver,
|
|
9522
|
+
u = (0, n.resolveUrl)(this.opts.uriResolver, p, u);
|
|
9523
9523
|
const w = f.refs[u];
|
|
9524
9524
|
if (w)
|
|
9525
9525
|
return w;
|
|
9526
9526
|
let _ = b.call(this, f, u);
|
|
9527
9527
|
if (_ === void 0) {
|
|
9528
9528
|
const E = (h = f.localRefs) === null || h === void 0 ? void 0 : h[u], { schemaId: $ } = this.opts;
|
|
9529
|
-
E && (_ = new i({ schema: E, schemaId: $, root: f, baseId:
|
|
9529
|
+
E && (_ = new i({ schema: E, schemaId: $, root: f, baseId: p }));
|
|
9530
9530
|
}
|
|
9531
9531
|
if (_ !== void 0)
|
|
9532
9532
|
return f.refs[u] = l.call(this, _);
|
|
@@ -9536,22 +9536,22 @@ function Ln() {
|
|
|
9536
9536
|
return (0, n.inlineRef)(f.schema, this.opts.inlineRefs) ? f.schema : f.validate ? f : o.call(this, f);
|
|
9537
9537
|
}
|
|
9538
9538
|
function d(f) {
|
|
9539
|
-
for (const
|
|
9540
|
-
if (p
|
|
9541
|
-
return
|
|
9539
|
+
for (const p of this._compilations)
|
|
9540
|
+
if (m(p, f))
|
|
9541
|
+
return p;
|
|
9542
9542
|
}
|
|
9543
9543
|
$e.getCompilingSchema = d;
|
|
9544
|
-
function
|
|
9545
|
-
return f.schema ===
|
|
9544
|
+
function m(f, p) {
|
|
9545
|
+
return f.schema === p.schema && f.root === p.root && f.baseId === p.baseId;
|
|
9546
9546
|
}
|
|
9547
|
-
function b(f,
|
|
9547
|
+
function b(f, p) {
|
|
9548
9548
|
let u;
|
|
9549
|
-
for (; typeof (u = this.refs[
|
|
9550
|
-
|
|
9551
|
-
return u || this.schemas[
|
|
9549
|
+
for (; typeof (u = this.refs[p]) == "string"; )
|
|
9550
|
+
p = u;
|
|
9551
|
+
return u || this.schemas[p] || S.call(this, f, p);
|
|
9552
9552
|
}
|
|
9553
|
-
function S(f,
|
|
9554
|
-
const u = this.opts.uriResolver.parse(
|
|
9553
|
+
function S(f, p) {
|
|
9554
|
+
const u = this.opts.uriResolver.parse(p), h = (0, n._getFullPath)(this.opts.uriResolver, u);
|
|
9555
9555
|
let w = (0, n.getFullPath)(this.opts.uriResolver, f.baseId, void 0);
|
|
9556
9556
|
if (Object.keys(f.schema).length > 0 && h === w)
|
|
9557
9557
|
return g.call(this, u, f);
|
|
@@ -9561,7 +9561,7 @@ function Ln() {
|
|
|
9561
9561
|
return typeof ($ == null ? void 0 : $.schema) != "object" ? void 0 : g.call(this, u, $);
|
|
9562
9562
|
}
|
|
9563
9563
|
if (typeof (E == null ? void 0 : E.schema) == "object") {
|
|
9564
|
-
if (E.validate || o.call(this, E), _ === (0, n.normalizeId)(
|
|
9564
|
+
if (E.validate || o.call(this, E), _ === (0, n.normalizeId)(p)) {
|
|
9565
9565
|
const { schema: $ } = E, { schemaId: O } = this.opts, k = $[O];
|
|
9566
9566
|
return k && (w = (0, n.resolveUrl)(this.opts.uriResolver, w, k)), new i({ schema: $, schemaId: O, root: f, baseId: w });
|
|
9567
9567
|
}
|
|
@@ -9576,7 +9576,7 @@ function Ln() {
|
|
|
9576
9576
|
"dependencies",
|
|
9577
9577
|
"definitions"
|
|
9578
9578
|
]);
|
|
9579
|
-
function g(f, { baseId:
|
|
9579
|
+
function g(f, { baseId: p, schema: u, root: h }) {
|
|
9580
9580
|
var w;
|
|
9581
9581
|
if (((w = f.fragment) === null || w === void 0 ? void 0 : w[0]) !== "/")
|
|
9582
9582
|
return;
|
|
@@ -9588,30 +9588,30 @@ function Ln() {
|
|
|
9588
9588
|
return;
|
|
9589
9589
|
u = O;
|
|
9590
9590
|
const k = typeof u == "object" && u[this.opts.schemaId];
|
|
9591
|
-
!y.has($) && k && (
|
|
9591
|
+
!y.has($) && k && (p = (0, n.resolveUrl)(this.opts.uriResolver, p, k));
|
|
9592
9592
|
}
|
|
9593
9593
|
let _;
|
|
9594
9594
|
if (typeof u != "boolean" && u.$ref && !(0, a.schemaHasRulesButRef)(u, this.RULES)) {
|
|
9595
|
-
const $ = (0, n.resolveUrl)(this.opts.uriResolver,
|
|
9595
|
+
const $ = (0, n.resolveUrl)(this.opts.uriResolver, p, u.$ref);
|
|
9596
9596
|
_ = S.call(this, h, $);
|
|
9597
9597
|
}
|
|
9598
9598
|
const { schemaId: E } = this.opts;
|
|
9599
|
-
if (_ = _ || new i({ schema: u, schemaId: E, root: h, baseId:
|
|
9599
|
+
if (_ = _ || new i({ schema: u, schemaId: E, root: h, baseId: p }), _.schema !== _.root.schema)
|
|
9600
9600
|
return _;
|
|
9601
9601
|
}
|
|
9602
9602
|
return $e;
|
|
9603
9603
|
}
|
|
9604
|
-
const
|
|
9605
|
-
$id:
|
|
9606
|
-
description:
|
|
9607
|
-
type:
|
|
9608
|
-
required:
|
|
9609
|
-
properties:
|
|
9610
|
-
additionalProperties:
|
|
9604
|
+
const Gp = "https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#", Kp = "Meta-schema for $data reference (JSON AnySchema extension proposal)", Yp = "object", Jp = ["$data"], Xp = { $data: { type: "string", anyOf: [{ format: "relative-json-pointer" }, { format: "json-pointer" }] } }, Qp = !1, Zp = {
|
|
9605
|
+
$id: Gp,
|
|
9606
|
+
description: Kp,
|
|
9607
|
+
type: Yp,
|
|
9608
|
+
required: Jp,
|
|
9609
|
+
properties: Xp,
|
|
9610
|
+
additionalProperties: Qp
|
|
9611
9611
|
};
|
|
9612
|
-
var qt = {}, vt = { exports: {} },
|
|
9613
|
-
function
|
|
9614
|
-
return ss || (ss = 1,
|
|
9612
|
+
var qt = {}, vt = { exports: {} }, mn, ss;
|
|
9613
|
+
function em() {
|
|
9614
|
+
return ss || (ss = 1, mn = {
|
|
9615
9615
|
HEX: {
|
|
9616
9616
|
0: 0,
|
|
9617
9617
|
1: 1,
|
|
@@ -9636,30 +9636,30 @@ function ep() {
|
|
|
9636
9636
|
f: 15,
|
|
9637
9637
|
F: 15
|
|
9638
9638
|
}
|
|
9639
|
-
}),
|
|
9639
|
+
}), mn;
|
|
9640
9640
|
}
|
|
9641
9641
|
var gn, is;
|
|
9642
|
-
function
|
|
9642
|
+
function tm() {
|
|
9643
9643
|
if (is) return gn;
|
|
9644
9644
|
is = 1;
|
|
9645
|
-
const { HEX: e } =
|
|
9645
|
+
const { HEX: e } = em(), t = /^(?:(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)$/u;
|
|
9646
9646
|
function r(g) {
|
|
9647
9647
|
if (o(g, ".") < 3)
|
|
9648
9648
|
return { host: g, isIPV4: !1 };
|
|
9649
|
-
const f = g.match(t) || [], [
|
|
9650
|
-
return
|
|
9649
|
+
const f = g.match(t) || [], [p] = f;
|
|
9650
|
+
return p ? { host: i(p, "."), isIPV4: !0 } : { host: g, isIPV4: !1 };
|
|
9651
9651
|
}
|
|
9652
9652
|
function n(g, f = !1) {
|
|
9653
|
-
let
|
|
9653
|
+
let p = "", u = !0;
|
|
9654
9654
|
for (const h of g) {
|
|
9655
9655
|
if (e[h] === void 0) return;
|
|
9656
|
-
h !== "0" && u === !0 && (u = !1), u || (
|
|
9656
|
+
h !== "0" && u === !0 && (u = !1), u || (p += h);
|
|
9657
9657
|
}
|
|
9658
|
-
return f &&
|
|
9658
|
+
return f && p.length === 0 && (p = "0"), p;
|
|
9659
9659
|
}
|
|
9660
9660
|
function a(g) {
|
|
9661
9661
|
let f = 0;
|
|
9662
|
-
const
|
|
9662
|
+
const p = { error: !1, address: "", zone: "" }, u = [], h = [];
|
|
9663
9663
|
let w = !1, _ = !1, E = !1;
|
|
9664
9664
|
function $() {
|
|
9665
9665
|
if (h.length) {
|
|
@@ -9668,7 +9668,7 @@ function tp() {
|
|
|
9668
9668
|
if (O !== void 0)
|
|
9669
9669
|
u.push(O);
|
|
9670
9670
|
else
|
|
9671
|
-
return
|
|
9671
|
+
return p.error = !0, !1;
|
|
9672
9672
|
}
|
|
9673
9673
|
h.length = 0;
|
|
9674
9674
|
}
|
|
@@ -9681,7 +9681,7 @@ function tp() {
|
|
|
9681
9681
|
if (_ === !0 && (E = !0), !$())
|
|
9682
9682
|
break;
|
|
9683
9683
|
if (f++, u.push(":"), f > 7) {
|
|
9684
|
-
|
|
9684
|
+
p.error = !0;
|
|
9685
9685
|
break;
|
|
9686
9686
|
}
|
|
9687
9687
|
O - 1 >= 0 && g[O - 1] === ":" && (_ = !0);
|
|
@@ -9695,7 +9695,7 @@ function tp() {
|
|
|
9695
9695
|
continue;
|
|
9696
9696
|
}
|
|
9697
9697
|
}
|
|
9698
|
-
return h.length && (w ?
|
|
9698
|
+
return h.length && (w ? p.zone = h.join("") : E ? u.push(h.join("")) : u.push(n(h))), p.address = u.join(""), p;
|
|
9699
9699
|
}
|
|
9700
9700
|
function s(g) {
|
|
9701
9701
|
if (o(g, ":") < 2)
|
|
@@ -9704,26 +9704,26 @@ function tp() {
|
|
|
9704
9704
|
if (f.error)
|
|
9705
9705
|
return { host: g, isIPV6: !1 };
|
|
9706
9706
|
{
|
|
9707
|
-
let
|
|
9708
|
-
return f.zone && (
|
|
9707
|
+
let p = f.address, u = f.address;
|
|
9708
|
+
return f.zone && (p += "%" + f.zone, u += "%25" + f.zone), { host: p, escapedHost: u, isIPV6: !0 };
|
|
9709
9709
|
}
|
|
9710
9710
|
}
|
|
9711
9711
|
function i(g, f) {
|
|
9712
|
-
let
|
|
9712
|
+
let p = "", u = !0;
|
|
9713
9713
|
const h = g.length;
|
|
9714
9714
|
for (let w = 0; w < h; w++) {
|
|
9715
9715
|
const _ = g[w];
|
|
9716
|
-
_ === "0" && u ? (w + 1 <= h && g[w + 1] === f || w + 1 === h) && (
|
|
9716
|
+
_ === "0" && u ? (w + 1 <= h && g[w + 1] === f || w + 1 === h) && (p += _, u = !1) : (_ === f ? u = !0 : u = !1, p += _);
|
|
9717
9717
|
}
|
|
9718
|
-
return
|
|
9718
|
+
return p;
|
|
9719
9719
|
}
|
|
9720
9720
|
function o(g, f) {
|
|
9721
|
-
let
|
|
9721
|
+
let p = 0;
|
|
9722
9722
|
for (let u = 0; u < g.length; u++)
|
|
9723
|
-
g[u] === f &&
|
|
9724
|
-
return
|
|
9723
|
+
g[u] === f && p++;
|
|
9724
|
+
return p;
|
|
9725
9725
|
}
|
|
9726
|
-
const c = /^\.\.?\//u, l = /^\/\.(?:\/|$)/u, d = /^\/\.\.(?:\/|$)/u,
|
|
9726
|
+
const c = /^\.\.?\//u, l = /^\/\.(?:\/|$)/u, d = /^\/\.\.(?:\/|$)/u, m = /^\/?(?:.|\n)*?(?=\/|$)/u;
|
|
9727
9727
|
function b(g) {
|
|
9728
9728
|
const f = [];
|
|
9729
9729
|
for (; g.length; )
|
|
@@ -9736,9 +9736,9 @@ function tp() {
|
|
|
9736
9736
|
else if (g === "." || g === "..")
|
|
9737
9737
|
g = "";
|
|
9738
9738
|
else {
|
|
9739
|
-
const
|
|
9740
|
-
if (
|
|
9741
|
-
const u =
|
|
9739
|
+
const p = g.match(m);
|
|
9740
|
+
if (p) {
|
|
9741
|
+
const u = p[0];
|
|
9742
9742
|
g = g.slice(u.length), f.push(u);
|
|
9743
9743
|
} else
|
|
9744
9744
|
throw new Error("Unexpected dot segment condition");
|
|
@@ -9746,21 +9746,21 @@ function tp() {
|
|
|
9746
9746
|
return f.join("");
|
|
9747
9747
|
}
|
|
9748
9748
|
function S(g, f) {
|
|
9749
|
-
const
|
|
9750
|
-
return g.scheme !== void 0 && (g.scheme =
|
|
9749
|
+
const p = f !== !0 ? escape : unescape;
|
|
9750
|
+
return g.scheme !== void 0 && (g.scheme = p(g.scheme)), g.userinfo !== void 0 && (g.userinfo = p(g.userinfo)), g.host !== void 0 && (g.host = p(g.host)), g.path !== void 0 && (g.path = p(g.path)), g.query !== void 0 && (g.query = p(g.query)), g.fragment !== void 0 && (g.fragment = p(g.fragment)), g;
|
|
9751
9751
|
}
|
|
9752
9752
|
function y(g) {
|
|
9753
9753
|
const f = [];
|
|
9754
9754
|
if (g.userinfo !== void 0 && (f.push(g.userinfo), f.push("@")), g.host !== void 0) {
|
|
9755
|
-
let
|
|
9756
|
-
const u = r(
|
|
9755
|
+
let p = unescape(g.host);
|
|
9756
|
+
const u = r(p);
|
|
9757
9757
|
if (u.isIPV4)
|
|
9758
|
-
|
|
9758
|
+
p = u.host;
|
|
9759
9759
|
else {
|
|
9760
9760
|
const h = s(u.host);
|
|
9761
|
-
h.isIPV6 === !0 ?
|
|
9761
|
+
h.isIPV6 === !0 ? p = `[${h.escapedHost}]` : p = g.host;
|
|
9762
9762
|
}
|
|
9763
|
-
f.push(
|
|
9763
|
+
f.push(p);
|
|
9764
9764
|
}
|
|
9765
9765
|
return (typeof g.port == "number" || typeof g.port == "string") && (f.push(":"), f.push(String(g.port))), f.length ? f.join("") : void 0;
|
|
9766
9766
|
}
|
|
@@ -9774,7 +9774,7 @@ function tp() {
|
|
|
9774
9774
|
}, gn;
|
|
9775
9775
|
}
|
|
9776
9776
|
var yn, os;
|
|
9777
|
-
function
|
|
9777
|
+
function rm() {
|
|
9778
9778
|
if (os) return yn;
|
|
9779
9779
|
os = 1;
|
|
9780
9780
|
const e = /^[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}$/iu, t = /([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-.:;=@]|%[\da-f]{2})+)/iu;
|
|
@@ -9805,14 +9805,14 @@ function rp() {
|
|
|
9805
9805
|
if (w) {
|
|
9806
9806
|
const _ = h.scheme || u.scheme || "urn";
|
|
9807
9807
|
u.nid = w[1].toLowerCase(), u.nss = w[2];
|
|
9808
|
-
const E = `${_}:${h.nid || u.nid}`, $ =
|
|
9808
|
+
const E = `${_}:${h.nid || u.nid}`, $ = p[E];
|
|
9809
9809
|
u.path = void 0, $ && (u = $.parse(u, h));
|
|
9810
9810
|
} else
|
|
9811
9811
|
u.error = u.error || "URN can not be parsed.";
|
|
9812
9812
|
return u;
|
|
9813
9813
|
}
|
|
9814
9814
|
function c(u, h) {
|
|
9815
|
-
const w = h.scheme || u.scheme || "urn", _ = u.nid.toLowerCase(), E = `${w}:${h.nid || _}`, $ =
|
|
9815
|
+
const w = h.scheme || u.scheme || "urn", _ = u.nid.toLowerCase(), E = `${w}:${h.nid || _}`, $ = p[E];
|
|
9816
9816
|
$ && (u = $.serialize(u, h));
|
|
9817
9817
|
const O = u, k = u.nss;
|
|
9818
9818
|
return O.path = `${_ || h.nid}:${k}`, h.skipEscape = !0, O;
|
|
@@ -9825,14 +9825,14 @@ function rp() {
|
|
|
9825
9825
|
const h = u;
|
|
9826
9826
|
return h.nss = (u.uuid || "").toLowerCase(), h;
|
|
9827
9827
|
}
|
|
9828
|
-
const
|
|
9828
|
+
const m = {
|
|
9829
9829
|
scheme: "http",
|
|
9830
9830
|
domainHost: !0,
|
|
9831
9831
|
parse: n,
|
|
9832
9832
|
serialize: a
|
|
9833
9833
|
}, b = {
|
|
9834
9834
|
scheme: "https",
|
|
9835
|
-
domainHost:
|
|
9835
|
+
domainHost: m.domainHost,
|
|
9836
9836
|
parse: n,
|
|
9837
9837
|
serialize: a
|
|
9838
9838
|
}, S = {
|
|
@@ -9845,8 +9845,8 @@ function rp() {
|
|
|
9845
9845
|
domainHost: S.domainHost,
|
|
9846
9846
|
parse: S.parse,
|
|
9847
9847
|
serialize: S.serialize
|
|
9848
|
-
},
|
|
9849
|
-
http:
|
|
9848
|
+
}, p = {
|
|
9849
|
+
http: m,
|
|
9850
9850
|
https: b,
|
|
9851
9851
|
ws: S,
|
|
9852
9852
|
wss: y,
|
|
@@ -9863,28 +9863,28 @@ function rp() {
|
|
|
9863
9863
|
skipNormalize: !0
|
|
9864
9864
|
}
|
|
9865
9865
|
};
|
|
9866
|
-
return yn =
|
|
9866
|
+
return yn = p, yn;
|
|
9867
9867
|
}
|
|
9868
9868
|
var cs;
|
|
9869
|
-
function
|
|
9869
|
+
function nm() {
|
|
9870
9870
|
if (cs) return vt.exports;
|
|
9871
9871
|
cs = 1;
|
|
9872
|
-
const { normalizeIPv6: e, normalizeIPv4: t, removeDotSegments: r, recomposeAuthority: n, normalizeComponentEncoding: a } =
|
|
9873
|
-
function i(f,
|
|
9874
|
-
return typeof f == "string" ? f = d(y(f,
|
|
9872
|
+
const { normalizeIPv6: e, normalizeIPv4: t, removeDotSegments: r, recomposeAuthority: n, normalizeComponentEncoding: a } = tm(), s = rm();
|
|
9873
|
+
function i(f, p) {
|
|
9874
|
+
return typeof f == "string" ? f = d(y(f, p), p) : typeof f == "object" && (f = y(d(f, p), p)), f;
|
|
9875
9875
|
}
|
|
9876
|
-
function o(f,
|
|
9877
|
-
const h = Object.assign({ scheme: "null" }, u), w = c(y(f, h), y(
|
|
9876
|
+
function o(f, p, u) {
|
|
9877
|
+
const h = Object.assign({ scheme: "null" }, u), w = c(y(f, h), y(p, h), h, !0);
|
|
9878
9878
|
return d(w, { ...h, skipEscape: !0 });
|
|
9879
9879
|
}
|
|
9880
|
-
function c(f,
|
|
9880
|
+
function c(f, p, u, h) {
|
|
9881
9881
|
const w = {};
|
|
9882
|
-
return h || (f = y(d(f, u), u),
|
|
9882
|
+
return h || (f = y(d(f, u), u), p = y(d(p, u), u)), u = u || {}, !u.tolerant && p.scheme ? (w.scheme = p.scheme, w.userinfo = p.userinfo, w.host = p.host, w.port = p.port, w.path = r(p.path || ""), w.query = p.query) : (p.userinfo !== void 0 || p.host !== void 0 || p.port !== void 0 ? (w.userinfo = p.userinfo, w.host = p.host, w.port = p.port, w.path = r(p.path || ""), w.query = p.query) : (p.path ? (p.path.charAt(0) === "/" ? w.path = r(p.path) : ((f.userinfo !== void 0 || f.host !== void 0 || f.port !== void 0) && !f.path ? w.path = "/" + p.path : f.path ? w.path = f.path.slice(0, f.path.lastIndexOf("/") + 1) + p.path : w.path = p.path, w.path = r(w.path)), w.query = p.query) : (w.path = f.path, p.query !== void 0 ? w.query = p.query : w.query = f.query), w.userinfo = f.userinfo, w.host = f.host, w.port = f.port), w.scheme = f.scheme), w.fragment = p.fragment, w;
|
|
9883
9883
|
}
|
|
9884
|
-
function l(f,
|
|
9885
|
-
return typeof f == "string" ? (f = unescape(f), f = d(a(y(f, u), !0), { ...u, skipEscape: !0 })) : typeof f == "object" && (f = d(a(f, !0), { ...u, skipEscape: !0 })), typeof
|
|
9884
|
+
function l(f, p, u) {
|
|
9885
|
+
return typeof f == "string" ? (f = unescape(f), f = d(a(y(f, u), !0), { ...u, skipEscape: !0 })) : typeof f == "object" && (f = d(a(f, !0), { ...u, skipEscape: !0 })), typeof p == "string" ? (p = unescape(p), p = d(a(y(p, u), !0), { ...u, skipEscape: !0 })) : typeof p == "object" && (p = d(a(p, !0), { ...u, skipEscape: !0 })), f.toLowerCase() === p.toLowerCase();
|
|
9886
9886
|
}
|
|
9887
|
-
function d(f,
|
|
9887
|
+
function d(f, p) {
|
|
9888
9888
|
const u = {
|
|
9889
9889
|
host: f.host,
|
|
9890
9890
|
scheme: f.scheme,
|
|
@@ -9900,7 +9900,7 @@ function np() {
|
|
|
9900
9900
|
resourceName: f.resourceName,
|
|
9901
9901
|
secure: f.secure,
|
|
9902
9902
|
error: ""
|
|
9903
|
-
}, h = Object.assign({},
|
|
9903
|
+
}, h = Object.assign({}, p), w = [], _ = s[(h.scheme || u.scheme || "").toLowerCase()];
|
|
9904
9904
|
_ && _.serialize && _.serialize(u, h), u.path !== void 0 && (h.skipEscape ? u.path = unescape(u.path) : (u.path = escape(u.path), u.scheme !== void 0 && (u.path = u.path.split("%3A").join(":")))), h.reference !== "suffix" && u.scheme && w.push(u.scheme, ":");
|
|
9905
9905
|
const E = n(u);
|
|
9906
9906
|
if (E !== void 0 && (h.reference !== "suffix" && w.push("//"), w.push(E), u.path && u.path.charAt(0) !== "/" && w.push("/")), u.path !== void 0) {
|
|
@@ -9909,17 +9909,17 @@ function np() {
|
|
|
9909
9909
|
}
|
|
9910
9910
|
return u.query !== void 0 && w.push("?", u.query), u.fragment !== void 0 && w.push("#", u.fragment), w.join("");
|
|
9911
9911
|
}
|
|
9912
|
-
const
|
|
9912
|
+
const m = Array.from({ length: 127 }, (f, p) => /[^!"$&'()*+,\-.;=_`a-z{}~]/u.test(String.fromCharCode(p)));
|
|
9913
9913
|
function b(f) {
|
|
9914
|
-
let
|
|
9914
|
+
let p = 0;
|
|
9915
9915
|
for (let u = 0, h = f.length; u < h; ++u)
|
|
9916
|
-
if (
|
|
9916
|
+
if (p = f.charCodeAt(u), p > 126 || m[p])
|
|
9917
9917
|
return !0;
|
|
9918
9918
|
return !1;
|
|
9919
9919
|
}
|
|
9920
9920
|
const S = /^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u;
|
|
9921
|
-
function y(f,
|
|
9922
|
-
const u = Object.assign({},
|
|
9921
|
+
function y(f, p) {
|
|
9922
|
+
const u = Object.assign({}, p), h = {
|
|
9923
9923
|
scheme: void 0,
|
|
9924
9924
|
userinfo: void 0,
|
|
9925
9925
|
host: "",
|
|
@@ -9965,14 +9965,14 @@ function np() {
|
|
|
9965
9965
|
return vt.exports = g, vt.exports.default = g, vt.exports.fastUri = g, vt.exports;
|
|
9966
9966
|
}
|
|
9967
9967
|
var us;
|
|
9968
|
-
function
|
|
9968
|
+
function am() {
|
|
9969
9969
|
if (us) return qt;
|
|
9970
9970
|
us = 1, Object.defineProperty(qt, "__esModule", { value: !0 });
|
|
9971
|
-
const e =
|
|
9971
|
+
const e = nm();
|
|
9972
9972
|
return e.code = 'require("ajv/dist/runtime/uri").default', qt.default = e, qt;
|
|
9973
9973
|
}
|
|
9974
9974
|
var ls;
|
|
9975
|
-
function
|
|
9975
|
+
function sm() {
|
|
9976
9976
|
return ls || (ls = 1, (function(e) {
|
|
9977
9977
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.CodeGen = e.Name = e.nil = e.stringify = e.str = e._ = e.KeywordCxt = void 0;
|
|
9978
9978
|
var t = Hr();
|
|
@@ -9993,7 +9993,7 @@ function sp() {
|
|
|
9993
9993
|
} }), Object.defineProperty(e, "CodeGen", { enumerable: !0, get: function() {
|
|
9994
9994
|
return r.CodeGen;
|
|
9995
9995
|
} });
|
|
9996
|
-
const n = kn(), a = Br(), s = ro(), i = Ln(), o = X(), c = Vr(), l = Dr(), d = te(),
|
|
9996
|
+
const n = kn(), a = Br(), s = ro(), i = Ln(), o = X(), c = Vr(), l = Dr(), d = te(), m = Zp, b = am(), S = (M, T) => new RegExp(M, T);
|
|
9997
9997
|
S.code = "new RegExp";
|
|
9998
9998
|
const y = ["removeAdditional", "useDefaults", "coerceTypes"], g = /* @__PURE__ */ new Set([
|
|
9999
9999
|
"validate",
|
|
@@ -10025,28 +10025,28 @@ function sp() {
|
|
|
10025
10025
|
cache: "Map is used as cache, schema object as key.",
|
|
10026
10026
|
serialize: "Map is used as cache, schema object as key.",
|
|
10027
10027
|
ajvErrors: "It is default now."
|
|
10028
|
-
},
|
|
10028
|
+
}, p = {
|
|
10029
10029
|
ignoreKeywordsWithRef: "",
|
|
10030
10030
|
jsPropertySyntax: "",
|
|
10031
10031
|
unicode: '"minLength"/"maxLength" account for unicode characters by default.'
|
|
10032
10032
|
}, u = 200;
|
|
10033
10033
|
function h(M) {
|
|
10034
|
-
var T, I, A, v, R, C, V, B, re, Z, P, N, L, x, H, J,
|
|
10035
|
-
const
|
|
10034
|
+
var T, I, A, v, R, C, V, B, re, Z, P, N, L, x, H, J, pe, Oe, ve, Ee, me, Xe, Re, Wr, Gr;
|
|
10035
|
+
const mt = M.strict, Kr = (T = M.code) === null || T === void 0 ? void 0 : T.optimize, qn = Kr === !0 || Kr === void 0 ? 1 : Kr || 0, jn = (A = (I = M.code) === null || I === void 0 ? void 0 : I.regExp) !== null && A !== void 0 ? A : S, co = (v = M.uriResolver) !== null && v !== void 0 ? v : b.default;
|
|
10036
10036
|
return {
|
|
10037
|
-
strictSchema: (C = (R = M.strictSchema) !== null && R !== void 0 ? R :
|
|
10038
|
-
strictNumbers: (B = (V = M.strictNumbers) !== null && V !== void 0 ? V :
|
|
10039
|
-
strictTypes: (Z = (re = M.strictTypes) !== null && re !== void 0 ? re :
|
|
10040
|
-
strictTuples: (N = (P = M.strictTuples) !== null && P !== void 0 ? P :
|
|
10041
|
-
strictRequired: (x = (L = M.strictRequired) !== null && L !== void 0 ? L :
|
|
10037
|
+
strictSchema: (C = (R = M.strictSchema) !== null && R !== void 0 ? R : mt) !== null && C !== void 0 ? C : !0,
|
|
10038
|
+
strictNumbers: (B = (V = M.strictNumbers) !== null && V !== void 0 ? V : mt) !== null && B !== void 0 ? B : !0,
|
|
10039
|
+
strictTypes: (Z = (re = M.strictTypes) !== null && re !== void 0 ? re : mt) !== null && Z !== void 0 ? Z : "log",
|
|
10040
|
+
strictTuples: (N = (P = M.strictTuples) !== null && P !== void 0 ? P : mt) !== null && N !== void 0 ? N : "log",
|
|
10041
|
+
strictRequired: (x = (L = M.strictRequired) !== null && L !== void 0 ? L : mt) !== null && x !== void 0 ? x : !1,
|
|
10042
10042
|
code: M.code ? { ...M.code, optimize: qn, regExp: jn } : { optimize: qn, regExp: jn },
|
|
10043
10043
|
loopRequired: (H = M.loopRequired) !== null && H !== void 0 ? H : u,
|
|
10044
10044
|
loopEnum: (J = M.loopEnum) !== null && J !== void 0 ? J : u,
|
|
10045
|
-
meta: (
|
|
10045
|
+
meta: (pe = M.meta) !== null && pe !== void 0 ? pe : !0,
|
|
10046
10046
|
messages: (Oe = M.messages) !== null && Oe !== void 0 ? Oe : !0,
|
|
10047
10047
|
inlineRefs: (ve = M.inlineRefs) !== null && ve !== void 0 ? ve : !0,
|
|
10048
10048
|
schemaId: (Ee = M.schemaId) !== null && Ee !== void 0 ? Ee : "$id",
|
|
10049
|
-
addUsedSchema: (
|
|
10049
|
+
addUsedSchema: (me = M.addUsedSchema) !== null && me !== void 0 ? me : !0,
|
|
10050
10050
|
validateSchema: (Xe = M.validateSchema) !== null && Xe !== void 0 ? Xe : !0,
|
|
10051
10051
|
validateFormats: (Re = M.validateFormats) !== null && Re !== void 0 ? Re : !0,
|
|
10052
10052
|
unicodeRegExp: (Wr = M.unicodeRegExp) !== null && Wr !== void 0 ? Wr : !0,
|
|
@@ -10060,15 +10060,15 @@ function sp() {
|
|
|
10060
10060
|
const { es5: I, lines: A } = this.opts.code;
|
|
10061
10061
|
this.scope = new o.ValueScope({ scope: {}, prefixes: g, es5: I, lines: A }), this.logger = U(T.logger);
|
|
10062
10062
|
const v = T.validateFormats;
|
|
10063
|
-
T.validateFormats = !1, this.RULES = (0, s.getRules)(), _.call(this, f, T, "NOT SUPPORTED"), _.call(this,
|
|
10063
|
+
T.validateFormats = !1, this.RULES = (0, s.getRules)(), _.call(this, f, T, "NOT SUPPORTED"), _.call(this, p, T, "DEPRECATED", "warn"), this._metaOpts = j.call(this), T.formats && O.call(this), this._addVocabularies(), this._addDefaultMetaSchema(), T.keywords && k.call(this, T.keywords), typeof T.meta == "object" && this.addMetaSchema(T.meta), $.call(this), T.validateFormats = v;
|
|
10064
10064
|
}
|
|
10065
10065
|
_addVocabularies() {
|
|
10066
10066
|
this.addKeyword("$async");
|
|
10067
10067
|
}
|
|
10068
10068
|
_addDefaultMetaSchema() {
|
|
10069
10069
|
const { $data: T, meta: I, schemaId: A } = this.opts;
|
|
10070
|
-
let v =
|
|
10071
|
-
A === "id" && (v = { ...
|
|
10070
|
+
let v = m;
|
|
10071
|
+
A === "id" && (v = { ...m }, v.id = v.$id, delete v.$id), I && T && this.addMetaSchema(v, v[A], !1);
|
|
10072
10072
|
}
|
|
10073
10073
|
defaultMeta() {
|
|
10074
10074
|
const { meta: T, schemaId: I } = this.opts;
|
|
@@ -10415,7 +10415,7 @@ function sp() {
|
|
|
10415
10415
|
})(cn)), cn;
|
|
10416
10416
|
}
|
|
10417
10417
|
var jt = {}, Ut = {}, Ft = {}, ds;
|
|
10418
|
-
function
|
|
10418
|
+
function im() {
|
|
10419
10419
|
if (ds) return Ft;
|
|
10420
10420
|
ds = 1, Object.defineProperty(Ft, "__esModule", { value: !0 });
|
|
10421
10421
|
const e = {
|
|
@@ -10427,19 +10427,19 @@ function ip() {
|
|
|
10427
10427
|
return Ft.default = e, Ft;
|
|
10428
10428
|
}
|
|
10429
10429
|
var Ue = {}, fs;
|
|
10430
|
-
function
|
|
10430
|
+
function om() {
|
|
10431
10431
|
if (fs) return Ue;
|
|
10432
10432
|
fs = 1, Object.defineProperty(Ue, "__esModule", { value: !0 }), Ue.callRef = Ue.getValidate = void 0;
|
|
10433
10433
|
const e = Br(), t = Ce(), r = X(), n = Fe(), a = Ln(), s = te(), i = {
|
|
10434
10434
|
keyword: "$ref",
|
|
10435
10435
|
schemaType: "string",
|
|
10436
10436
|
code(l) {
|
|
10437
|
-
const { gen: d, schema:
|
|
10438
|
-
if ((
|
|
10437
|
+
const { gen: d, schema: m, it: b } = l, { baseId: S, schemaEnv: y, validateName: g, opts: f, self: p } = b, { root: u } = y;
|
|
10438
|
+
if ((m === "#" || m === "#/") && S === u.baseId)
|
|
10439
10439
|
return w();
|
|
10440
|
-
const h = a.resolveRef.call(
|
|
10440
|
+
const h = a.resolveRef.call(p, u, S, m);
|
|
10441
10441
|
if (h === void 0)
|
|
10442
|
-
throw new e.default(b.opts.uriResolver, S,
|
|
10442
|
+
throw new e.default(b.opts.uriResolver, S, m);
|
|
10443
10443
|
if (h instanceof a.SchemaEnv)
|
|
10444
10444
|
return _(h);
|
|
10445
10445
|
return E(h);
|
|
@@ -10459,19 +10459,19 @@ function op() {
|
|
|
10459
10459
|
dataTypes: [],
|
|
10460
10460
|
schemaPath: r.nil,
|
|
10461
10461
|
topSchemaRef: O,
|
|
10462
|
-
errSchemaPath:
|
|
10462
|
+
errSchemaPath: m
|
|
10463
10463
|
}, k);
|
|
10464
10464
|
l.mergeEvaluated(j), l.ok(k);
|
|
10465
10465
|
}
|
|
10466
10466
|
}
|
|
10467
10467
|
};
|
|
10468
10468
|
function o(l, d) {
|
|
10469
|
-
const { gen:
|
|
10470
|
-
return d.validate ?
|
|
10469
|
+
const { gen: m } = l;
|
|
10470
|
+
return d.validate ? m.scopeValue("validate", { ref: d.validate }) : (0, r._)`${m.scopeValue("wrapper", { ref: d })}.validate`;
|
|
10471
10471
|
}
|
|
10472
10472
|
Ue.getValidate = o;
|
|
10473
|
-
function c(l, d,
|
|
10474
|
-
const { gen: S, it: y } = l, { allErrors: g, schemaEnv: f, opts:
|
|
10473
|
+
function c(l, d, m, b) {
|
|
10474
|
+
const { gen: S, it: y } = l, { allErrors: g, schemaEnv: f, opts: p } = y, u = p.passContext ? n.default.this : r.nil;
|
|
10475
10475
|
b ? h() : w();
|
|
10476
10476
|
function h() {
|
|
10477
10477
|
if (!f.$async)
|
|
@@ -10494,7 +10494,7 @@ function op() {
|
|
|
10494
10494
|
var O;
|
|
10495
10495
|
if (!y.opts.unevaluated)
|
|
10496
10496
|
return;
|
|
10497
|
-
const k = (O =
|
|
10497
|
+
const k = (O = m == null ? void 0 : m.validate) === null || O === void 0 ? void 0 : O.evaluated;
|
|
10498
10498
|
if (y.props !== !0)
|
|
10499
10499
|
if (k && !k.dynamicProps)
|
|
10500
10500
|
k.props !== void 0 && (y.props = s.mergeEvaluated.props(S, k.props, y.props));
|
|
@@ -10514,10 +10514,10 @@ function op() {
|
|
|
10514
10514
|
return Ue.callRef = c, Ue.default = i, Ue;
|
|
10515
10515
|
}
|
|
10516
10516
|
var hs;
|
|
10517
|
-
function
|
|
10517
|
+
function cm() {
|
|
10518
10518
|
if (hs) return Ut;
|
|
10519
10519
|
hs = 1, Object.defineProperty(Ut, "__esModule", { value: !0 });
|
|
10520
|
-
const e =
|
|
10520
|
+
const e = im(), t = om(), r = [
|
|
10521
10521
|
"$schema",
|
|
10522
10522
|
"$id",
|
|
10523
10523
|
"$defs",
|
|
@@ -10529,10 +10529,10 @@ function cp() {
|
|
|
10529
10529
|
];
|
|
10530
10530
|
return Ut.default = r, Ut;
|
|
10531
10531
|
}
|
|
10532
|
-
var Vt = {}, Ht = {},
|
|
10533
|
-
function
|
|
10534
|
-
if (
|
|
10535
|
-
|
|
10532
|
+
var Vt = {}, Ht = {}, ps;
|
|
10533
|
+
function um() {
|
|
10534
|
+
if (ps) return Ht;
|
|
10535
|
+
ps = 1, Object.defineProperty(Ht, "__esModule", { value: !0 });
|
|
10536
10536
|
const e = X(), t = e.operators, r = {
|
|
10537
10537
|
maximum: { okStr: "<=", ok: t.LTE, fail: t.GT },
|
|
10538
10538
|
minimum: { okStr: ">=", ok: t.GTE, fail: t.LT },
|
|
@@ -10554,10 +10554,10 @@ function up() {
|
|
|
10554
10554
|
};
|
|
10555
10555
|
return Ht.default = a, Ht;
|
|
10556
10556
|
}
|
|
10557
|
-
var Bt = {},
|
|
10558
|
-
function
|
|
10559
|
-
if (
|
|
10560
|
-
|
|
10557
|
+
var Bt = {}, ms;
|
|
10558
|
+
function lm() {
|
|
10559
|
+
if (ms) return Bt;
|
|
10560
|
+
ms = 1, Object.defineProperty(Bt, "__esModule", { value: !0 });
|
|
10561
10561
|
const e = X(), r = {
|
|
10562
10562
|
keyword: "multipleOf",
|
|
10563
10563
|
type: "number",
|
|
@@ -10575,7 +10575,7 @@ function lp() {
|
|
|
10575
10575
|
return Bt.default = r, Bt;
|
|
10576
10576
|
}
|
|
10577
10577
|
var zt = {}, Wt = {}, gs;
|
|
10578
|
-
function
|
|
10578
|
+
function dm() {
|
|
10579
10579
|
if (gs) return Wt;
|
|
10580
10580
|
gs = 1, Object.defineProperty(Wt, "__esModule", { value: !0 });
|
|
10581
10581
|
function e(t) {
|
|
@@ -10588,10 +10588,10 @@ function dp() {
|
|
|
10588
10588
|
return Wt.default = e, e.code = 'require("ajv/dist/runtime/ucs2length").default', Wt;
|
|
10589
10589
|
}
|
|
10590
10590
|
var ys;
|
|
10591
|
-
function
|
|
10591
|
+
function fm() {
|
|
10592
10592
|
if (ys) return zt;
|
|
10593
10593
|
ys = 1, Object.defineProperty(zt, "__esModule", { value: !0 });
|
|
10594
|
-
const e = X(), t = te(), r =
|
|
10594
|
+
const e = X(), t = te(), r = dm(), a = {
|
|
10595
10595
|
keyword: ["maxLength", "minLength"],
|
|
10596
10596
|
type: "string",
|
|
10597
10597
|
schemaType: "number",
|
|
@@ -10604,14 +10604,14 @@ function fp() {
|
|
|
10604
10604
|
params: ({ schemaCode: s }) => (0, e._)`{limit: ${s}}`
|
|
10605
10605
|
},
|
|
10606
10606
|
code(s) {
|
|
10607
|
-
const { keyword: i, data: o, schemaCode: c, it: l } = s, d = i === "maxLength" ? e.operators.GT : e.operators.LT,
|
|
10608
|
-
s.fail$data((0, e._)`${
|
|
10607
|
+
const { keyword: i, data: o, schemaCode: c, it: l } = s, d = i === "maxLength" ? e.operators.GT : e.operators.LT, m = l.opts.unicode === !1 ? (0, e._)`${o}.length` : (0, e._)`${(0, t.useFunc)(s.gen, r.default)}(${o})`;
|
|
10608
|
+
s.fail$data((0, e._)`${m} ${d} ${c}`);
|
|
10609
10609
|
}
|
|
10610
10610
|
};
|
|
10611
10611
|
return zt.default = a, zt;
|
|
10612
10612
|
}
|
|
10613
10613
|
var Gt = {}, bs;
|
|
10614
|
-
function
|
|
10614
|
+
function hm() {
|
|
10615
10615
|
if (bs) return Gt;
|
|
10616
10616
|
bs = 1, Object.defineProperty(Gt, "__esModule", { value: !0 });
|
|
10617
10617
|
const e = Ce(), t = X(), n = {
|
|
@@ -10624,14 +10624,14 @@ function hp() {
|
|
|
10624
10624
|
params: ({ schemaCode: a }) => (0, t._)`{pattern: ${a}}`
|
|
10625
10625
|
},
|
|
10626
10626
|
code(a) {
|
|
10627
|
-
const { data: s, $data: i, schema: o, schemaCode: c, it: l } = a, d = l.opts.unicodeRegExp ? "u" : "",
|
|
10628
|
-
a.fail$data((0, t._)`!${
|
|
10627
|
+
const { data: s, $data: i, schema: o, schemaCode: c, it: l } = a, d = l.opts.unicodeRegExp ? "u" : "", m = i ? (0, t._)`(new RegExp(${c}, ${d}))` : (0, e.usePattern)(a, o);
|
|
10628
|
+
a.fail$data((0, t._)`!${m}.test(${s})`);
|
|
10629
10629
|
}
|
|
10630
10630
|
};
|
|
10631
10631
|
return Gt.default = n, Gt;
|
|
10632
10632
|
}
|
|
10633
10633
|
var Kt = {}, ws;
|
|
10634
|
-
function
|
|
10634
|
+
function pm() {
|
|
10635
10635
|
if (ws) return Kt;
|
|
10636
10636
|
ws = 1, Object.defineProperty(Kt, "__esModule", { value: !0 });
|
|
10637
10637
|
const e = X(), r = {
|
|
@@ -10654,7 +10654,7 @@ function mp() {
|
|
|
10654
10654
|
return Kt.default = r, Kt;
|
|
10655
10655
|
}
|
|
10656
10656
|
var Yt = {}, vs;
|
|
10657
|
-
function
|
|
10657
|
+
function mm() {
|
|
10658
10658
|
if (vs) return Yt;
|
|
10659
10659
|
vs = 1, Object.defineProperty(Yt, "__esModule", { value: !0 });
|
|
10660
10660
|
const e = Ce(), t = X(), r = te(), a = {
|
|
@@ -10667,16 +10667,16 @@ function pp() {
|
|
|
10667
10667
|
params: ({ params: { missingProperty: s } }) => (0, t._)`{missingProperty: ${s}}`
|
|
10668
10668
|
},
|
|
10669
10669
|
code(s) {
|
|
10670
|
-
const { gen: i, schema: o, schemaCode: c, data: l, $data: d, it:
|
|
10670
|
+
const { gen: i, schema: o, schemaCode: c, data: l, $data: d, it: m } = s, { opts: b } = m;
|
|
10671
10671
|
if (!d && o.length === 0)
|
|
10672
10672
|
return;
|
|
10673
10673
|
const S = o.length >= b.loopRequired;
|
|
10674
|
-
if (
|
|
10674
|
+
if (m.allErrors ? y() : g(), b.strictRequired) {
|
|
10675
10675
|
const u = s.parentSchema.properties, { definedProperties: h } = s.it;
|
|
10676
10676
|
for (const w of o)
|
|
10677
10677
|
if ((u == null ? void 0 : u[w]) === void 0 && !h.has(w)) {
|
|
10678
|
-
const _ =
|
|
10679
|
-
(0, r.checkStrictMode)(
|
|
10678
|
+
const _ = m.schemaEnv.baseId + m.errSchemaPath, E = `required property "${w}" is not defined at "${_}" (strictRequired)`;
|
|
10679
|
+
(0, r.checkStrictMode)(m, E, m.opts.strictRequired);
|
|
10680
10680
|
}
|
|
10681
10681
|
}
|
|
10682
10682
|
function y() {
|
|
@@ -10690,7 +10690,7 @@ function pp() {
|
|
|
10690
10690
|
const u = i.let("missing");
|
|
10691
10691
|
if (S || d) {
|
|
10692
10692
|
const h = i.let("valid", !0);
|
|
10693
|
-
s.block$data(h, () =>
|
|
10693
|
+
s.block$data(h, () => p(u, h)), s.ok(h);
|
|
10694
10694
|
} else
|
|
10695
10695
|
i.if((0, e.checkMissingProp)(s, o, u)), (0, e.reportMissingProp)(s, u), i.else();
|
|
10696
10696
|
}
|
|
@@ -10699,7 +10699,7 @@ function pp() {
|
|
|
10699
10699
|
s.setParams({ missingProperty: u }), i.if((0, e.noPropertyInData)(i, l, u, b.ownProperties), () => s.error());
|
|
10700
10700
|
});
|
|
10701
10701
|
}
|
|
10702
|
-
function
|
|
10702
|
+
function p(u, h) {
|
|
10703
10703
|
s.setParams({ missingProperty: u }), i.forOf(u, c, () => {
|
|
10704
10704
|
i.assign(h, (0, e.propertyInData)(i, l, u, b.ownProperties)), i.if((0, t.not)(h), () => {
|
|
10705
10705
|
s.error(), i.break();
|
|
@@ -10711,7 +10711,7 @@ function pp() {
|
|
|
10711
10711
|
return Yt.default = a, Yt;
|
|
10712
10712
|
}
|
|
10713
10713
|
var Jt = {}, Es;
|
|
10714
|
-
function
|
|
10714
|
+
function gm() {
|
|
10715
10715
|
if (Es) return Jt;
|
|
10716
10716
|
Es = 1, Object.defineProperty(Jt, "__esModule", { value: !0 });
|
|
10717
10717
|
const e = X(), r = {
|
|
@@ -10741,7 +10741,7 @@ function Mn() {
|
|
|
10741
10741
|
return e.code = 'require("ajv/dist/runtime/equal").default', Qt.default = e, Qt;
|
|
10742
10742
|
}
|
|
10743
10743
|
var Ss;
|
|
10744
|
-
function
|
|
10744
|
+
function ym() {
|
|
10745
10745
|
if (Ss) return Xt;
|
|
10746
10746
|
Ss = 1, Object.defineProperty(Xt, "__esModule", { value: !0 });
|
|
10747
10747
|
const e = Dr(), t = X(), r = te(), n = Mn(), s = {
|
|
@@ -10754,16 +10754,16 @@ function yp() {
|
|
|
10754
10754
|
params: ({ params: { i, j: o } }) => (0, t._)`{i: ${i}, j: ${o}}`
|
|
10755
10755
|
},
|
|
10756
10756
|
code(i) {
|
|
10757
|
-
const { gen: o, data: c, $data: l, schema: d, parentSchema:
|
|
10757
|
+
const { gen: o, data: c, $data: l, schema: d, parentSchema: m, schemaCode: b, it: S } = i;
|
|
10758
10758
|
if (!l && !d)
|
|
10759
10759
|
return;
|
|
10760
|
-
const y = o.let("valid"), g =
|
|
10760
|
+
const y = o.let("valid"), g = m.items ? (0, e.getSchemaTypes)(m.items) : [];
|
|
10761
10761
|
i.block$data(y, f, (0, t._)`${b} === false`), i.ok(y);
|
|
10762
10762
|
function f() {
|
|
10763
10763
|
const w = o.let("i", (0, t._)`${c}.length`), _ = o.let("j");
|
|
10764
|
-
i.setParams({ i: w, j: _ }), o.assign(y, !0), o.if((0, t._)`${w} > 1`, () => (
|
|
10764
|
+
i.setParams({ i: w, j: _ }), o.assign(y, !0), o.if((0, t._)`${w} > 1`, () => (p() ? u : h)(w, _));
|
|
10765
10765
|
}
|
|
10766
|
-
function
|
|
10766
|
+
function p() {
|
|
10767
10767
|
return g.length > 0 && !g.some((w) => w === "object" || w === "array");
|
|
10768
10768
|
}
|
|
10769
10769
|
function u(w, _) {
|
|
@@ -10785,7 +10785,7 @@ function yp() {
|
|
|
10785
10785
|
return Xt.default = s, Xt;
|
|
10786
10786
|
}
|
|
10787
10787
|
var Zt = {}, $s;
|
|
10788
|
-
function
|
|
10788
|
+
function bm() {
|
|
10789
10789
|
if ($s) return Zt;
|
|
10790
10790
|
$s = 1, Object.defineProperty(Zt, "__esModule", { value: !0 });
|
|
10791
10791
|
const e = X(), t = te(), r = Mn(), a = {
|
|
@@ -10803,7 +10803,7 @@ function bp() {
|
|
|
10803
10803
|
return Zt.default = a, Zt;
|
|
10804
10804
|
}
|
|
10805
10805
|
var er = {}, Rs;
|
|
10806
|
-
function
|
|
10806
|
+
function wm() {
|
|
10807
10807
|
if (Rs) return er;
|
|
10808
10808
|
Rs = 1, Object.defineProperty(er, "__esModule", { value: !0 });
|
|
10809
10809
|
const e = X(), t = te(), r = Mn(), a = {
|
|
@@ -10815,10 +10815,10 @@ function wp() {
|
|
|
10815
10815
|
params: ({ schemaCode: s }) => (0, e._)`{allowedValues: ${s}}`
|
|
10816
10816
|
},
|
|
10817
10817
|
code(s) {
|
|
10818
|
-
const { gen: i, data: o, $data: c, schema: l, schemaCode: d, it:
|
|
10818
|
+
const { gen: i, data: o, $data: c, schema: l, schemaCode: d, it: m } = s;
|
|
10819
10819
|
if (!c && l.length === 0)
|
|
10820
10820
|
throw new Error("enum must have non-empty array");
|
|
10821
|
-
const b = l.length >=
|
|
10821
|
+
const b = l.length >= m.opts.loopEnum;
|
|
10822
10822
|
let S;
|
|
10823
10823
|
const y = () => S ?? (S = (0, t.useFunc)(i, r.default));
|
|
10824
10824
|
let g;
|
|
@@ -10828,13 +10828,13 @@ function wp() {
|
|
|
10828
10828
|
if (!Array.isArray(l))
|
|
10829
10829
|
throw new Error("ajv implementation error");
|
|
10830
10830
|
const u = i.const("vSchema", d);
|
|
10831
|
-
g = (0, e.or)(...l.map((h, w) =>
|
|
10831
|
+
g = (0, e.or)(...l.map((h, w) => p(u, w)));
|
|
10832
10832
|
}
|
|
10833
10833
|
s.pass(g);
|
|
10834
10834
|
function f() {
|
|
10835
10835
|
i.assign(g, !1), i.forOf("v", d, (u) => i.if((0, e._)`${y()}(${o}, ${u})`, () => i.assign(g, !0).break()));
|
|
10836
10836
|
}
|
|
10837
|
-
function
|
|
10837
|
+
function p(u, h) {
|
|
10838
10838
|
const w = l[h];
|
|
10839
10839
|
return typeof w == "object" && w !== null ? (0, e._)`${y()}(${o}, ${u}[${h}])` : (0, e._)`${o} === ${w}`;
|
|
10840
10840
|
}
|
|
@@ -10843,10 +10843,10 @@ function wp() {
|
|
|
10843
10843
|
return er.default = a, er;
|
|
10844
10844
|
}
|
|
10845
10845
|
var Ps;
|
|
10846
|
-
function
|
|
10846
|
+
function vm() {
|
|
10847
10847
|
if (Ps) return Vt;
|
|
10848
10848
|
Ps = 1, Object.defineProperty(Vt, "__esModule", { value: !0 });
|
|
10849
|
-
const e =
|
|
10849
|
+
const e = um(), t = lm(), r = fm(), n = hm(), a = pm(), s = mm(), i = gm(), o = ym(), c = bm(), l = wm(), d = [
|
|
10850
10850
|
// number
|
|
10851
10851
|
e.default,
|
|
10852
10852
|
t.default,
|
|
@@ -10890,18 +10890,18 @@ function so() {
|
|
|
10890
10890
|
}
|
|
10891
10891
|
};
|
|
10892
10892
|
function a(s, i) {
|
|
10893
|
-
const { gen: o, schema: c, data: l, keyword: d, it:
|
|
10894
|
-
|
|
10893
|
+
const { gen: o, schema: c, data: l, keyword: d, it: m } = s;
|
|
10894
|
+
m.items = !0;
|
|
10895
10895
|
const b = o.const("len", (0, e._)`${l}.length`);
|
|
10896
10896
|
if (c === !1)
|
|
10897
10897
|
s.setParams({ len: i.length }), s.pass((0, e._)`${b} <= ${i.length}`);
|
|
10898
|
-
else if (typeof c == "object" && !(0, t.alwaysValidSchema)(
|
|
10898
|
+
else if (typeof c == "object" && !(0, t.alwaysValidSchema)(m, c)) {
|
|
10899
10899
|
const y = o.var("valid", (0, e._)`${b} <= ${i.length}`);
|
|
10900
10900
|
o.if((0, e.not)(y), () => S(y)), s.ok(y);
|
|
10901
10901
|
}
|
|
10902
10902
|
function S(y) {
|
|
10903
10903
|
o.forRange("i", i.length, b, (g) => {
|
|
10904
|
-
s.subschema({ keyword: d, dataProp: g, dataPropType: t.Type.Num }, y),
|
|
10904
|
+
s.subschema({ keyword: d, dataProp: g, dataPropType: t.Type.Num }, y), m.allErrors || o.if((0, e.not)(y), () => o.break());
|
|
10905
10905
|
});
|
|
10906
10906
|
}
|
|
10907
10907
|
}
|
|
@@ -10924,28 +10924,28 @@ function io() {
|
|
|
10924
10924
|
}
|
|
10925
10925
|
};
|
|
10926
10926
|
function a(s, i, o = s.schema) {
|
|
10927
|
-
const { gen: c, parentSchema: l, data: d, keyword:
|
|
10927
|
+
const { gen: c, parentSchema: l, data: d, keyword: m, it: b } = s;
|
|
10928
10928
|
g(l), b.opts.unevaluated && o.length && b.items !== !0 && (b.items = t.mergeEvaluated.items(c, o.length, b.items));
|
|
10929
10929
|
const S = c.name("valid"), y = c.const("len", (0, e._)`${d}.length`);
|
|
10930
|
-
o.forEach((f,
|
|
10931
|
-
(0, t.alwaysValidSchema)(b, f) || (c.if((0, e._)`${y} > ${
|
|
10932
|
-
keyword:
|
|
10933
|
-
schemaProp:
|
|
10934
|
-
dataProp:
|
|
10930
|
+
o.forEach((f, p) => {
|
|
10931
|
+
(0, t.alwaysValidSchema)(b, f) || (c.if((0, e._)`${y} > ${p}`, () => s.subschema({
|
|
10932
|
+
keyword: m,
|
|
10933
|
+
schemaProp: p,
|
|
10934
|
+
dataProp: p
|
|
10935
10935
|
}, S)), s.ok(S));
|
|
10936
10936
|
});
|
|
10937
10937
|
function g(f) {
|
|
10938
|
-
const { opts:
|
|
10939
|
-
if (
|
|
10940
|
-
const _ = `"${
|
|
10941
|
-
(0, t.checkStrictMode)(b, _,
|
|
10938
|
+
const { opts: p, errSchemaPath: u } = b, h = o.length, w = h === f.minItems && (h === f.maxItems || f[i] === !1);
|
|
10939
|
+
if (p.strictTuples && !w) {
|
|
10940
|
+
const _ = `"${m}" is ${h}-tuple, but minItems or maxItems/${i} are not specified or different at path "${u}"`;
|
|
10941
|
+
(0, t.checkStrictMode)(b, _, p.strictTuples);
|
|
10942
10942
|
}
|
|
10943
10943
|
}
|
|
10944
10944
|
}
|
|
10945
10945
|
return st.validateTuple = a, st.default = n, st;
|
|
10946
10946
|
}
|
|
10947
10947
|
var As;
|
|
10948
|
-
function
|
|
10948
|
+
function Em() {
|
|
10949
10949
|
if (As) return rr;
|
|
10950
10950
|
As = 1, Object.defineProperty(rr, "__esModule", { value: !0 });
|
|
10951
10951
|
const e = io(), t = {
|
|
@@ -10958,7 +10958,7 @@ function Ep() {
|
|
|
10958
10958
|
return rr.default = t, rr;
|
|
10959
10959
|
}
|
|
10960
10960
|
var nr = {}, Ns;
|
|
10961
|
-
function
|
|
10961
|
+
function _m() {
|
|
10962
10962
|
if (Ns) return nr;
|
|
10963
10963
|
Ns = 1, Object.defineProperty(nr, "__esModule", { value: !0 });
|
|
10964
10964
|
const e = X(), t = te(), r = Ce(), n = so(), s = {
|
|
@@ -10978,7 +10978,7 @@ function _p() {
|
|
|
10978
10978
|
return nr.default = s, nr;
|
|
10979
10979
|
}
|
|
10980
10980
|
var ar = {}, Ds;
|
|
10981
|
-
function
|
|
10981
|
+
function Sm() {
|
|
10982
10982
|
if (Ds) return ar;
|
|
10983
10983
|
Ds = 1, Object.defineProperty(ar, "__esModule", { value: !0 });
|
|
10984
10984
|
const e = X(), t = te(), n = {
|
|
@@ -10993,31 +10993,31 @@ function Sp() {
|
|
|
10993
10993
|
},
|
|
10994
10994
|
code(a) {
|
|
10995
10995
|
const { gen: s, schema: i, parentSchema: o, data: c, it: l } = a;
|
|
10996
|
-
let d,
|
|
10996
|
+
let d, m;
|
|
10997
10997
|
const { minContains: b, maxContains: S } = o;
|
|
10998
|
-
l.opts.next ? (d = b === void 0 ? 1 : b,
|
|
10998
|
+
l.opts.next ? (d = b === void 0 ? 1 : b, m = S) : d = 1;
|
|
10999
10999
|
const y = s.const("len", (0, e._)`${c}.length`);
|
|
11000
|
-
if (a.setParams({ min: d, max:
|
|
11000
|
+
if (a.setParams({ min: d, max: m }), m === void 0 && d === 0) {
|
|
11001
11001
|
(0, t.checkStrictMode)(l, '"minContains" == 0 without "maxContains": "contains" keyword ignored');
|
|
11002
11002
|
return;
|
|
11003
11003
|
}
|
|
11004
|
-
if (
|
|
11004
|
+
if (m !== void 0 && d > m) {
|
|
11005
11005
|
(0, t.checkStrictMode)(l, '"minContains" > "maxContains" is always invalid'), a.fail();
|
|
11006
11006
|
return;
|
|
11007
11007
|
}
|
|
11008
11008
|
if ((0, t.alwaysValidSchema)(l, i)) {
|
|
11009
11009
|
let h = (0, e._)`${y} >= ${d}`;
|
|
11010
|
-
|
|
11010
|
+
m !== void 0 && (h = (0, e._)`${h} && ${y} <= ${m}`), a.pass(h);
|
|
11011
11011
|
return;
|
|
11012
11012
|
}
|
|
11013
11013
|
l.items = !0;
|
|
11014
11014
|
const g = s.name("valid");
|
|
11015
|
-
|
|
11015
|
+
m === void 0 && d === 1 ? p(g, () => s.if(g, () => s.break())) : d === 0 ? (s.let(g, !0), m !== void 0 && s.if((0, e._)`${c}.length > 0`, f)) : (s.let(g, !1), f()), a.result(g, () => a.reset());
|
|
11016
11016
|
function f() {
|
|
11017
11017
|
const h = s.name("_valid"), w = s.let("count", 0);
|
|
11018
|
-
|
|
11018
|
+
p(h, () => s.if(h, () => u(w)));
|
|
11019
11019
|
}
|
|
11020
|
-
function
|
|
11020
|
+
function p(h, w) {
|
|
11021
11021
|
s.forRange("i", 0, y, (_) => {
|
|
11022
11022
|
a.subschema({
|
|
11023
11023
|
keyword: "contains",
|
|
@@ -11028,24 +11028,24 @@ function Sp() {
|
|
|
11028
11028
|
});
|
|
11029
11029
|
}
|
|
11030
11030
|
function u(h) {
|
|
11031
|
-
s.code((0, e._)`${h}++`),
|
|
11031
|
+
s.code((0, e._)`${h}++`), m === void 0 ? s.if((0, e._)`${h} >= ${d}`, () => s.assign(g, !0).break()) : (s.if((0, e._)`${h} > ${m}`, () => s.assign(g, !1).break()), d === 1 ? s.assign(g, !0) : s.if((0, e._)`${h} >= ${d}`, () => s.assign(g, !0)));
|
|
11032
11032
|
}
|
|
11033
11033
|
}
|
|
11034
11034
|
};
|
|
11035
11035
|
return ar.default = n, ar;
|
|
11036
11036
|
}
|
|
11037
11037
|
var bn = {}, Cs;
|
|
11038
|
-
function $
|
|
11038
|
+
function $m() {
|
|
11039
11039
|
return Cs || (Cs = 1, (function(e) {
|
|
11040
11040
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.validateSchemaDeps = e.validatePropertyDeps = e.error = void 0;
|
|
11041
11041
|
const t = X(), r = te(), n = Ce();
|
|
11042
11042
|
e.error = {
|
|
11043
11043
|
message: ({ params: { property: c, depsCount: l, deps: d } }) => {
|
|
11044
|
-
const
|
|
11045
|
-
return (0, t.str)`must have ${
|
|
11044
|
+
const m = l === 1 ? "property" : "properties";
|
|
11045
|
+
return (0, t.str)`must have ${m} ${d} when property ${c} is present`;
|
|
11046
11046
|
},
|
|
11047
|
-
params: ({ params: { property: c, depsCount: l, deps: d, missingProperty:
|
|
11048
|
-
missingProperty: ${
|
|
11047
|
+
params: ({ params: { property: c, depsCount: l, deps: d, missingProperty: m } }) => (0, t._)`{property: ${c},
|
|
11048
|
+
missingProperty: ${m},
|
|
11049
11049
|
depsCount: ${l},
|
|
11050
11050
|
deps: ${d}}`
|
|
11051
11051
|
// TODO change to reference
|
|
@@ -11062,16 +11062,16 @@ function $p() {
|
|
|
11062
11062
|
};
|
|
11063
11063
|
function s({ schema: c }) {
|
|
11064
11064
|
const l = {}, d = {};
|
|
11065
|
-
for (const
|
|
11066
|
-
if (
|
|
11065
|
+
for (const m in c) {
|
|
11066
|
+
if (m === "__proto__")
|
|
11067
11067
|
continue;
|
|
11068
|
-
const b = Array.isArray(c[
|
|
11069
|
-
b[
|
|
11068
|
+
const b = Array.isArray(c[m]) ? l : d;
|
|
11069
|
+
b[m] = c[m];
|
|
11070
11070
|
}
|
|
11071
11071
|
return [l, d];
|
|
11072
11072
|
}
|
|
11073
11073
|
function i(c, l = c.schema) {
|
|
11074
|
-
const { gen: d, data:
|
|
11074
|
+
const { gen: d, data: m, it: b } = c;
|
|
11075
11075
|
if (Object.keys(l).length === 0)
|
|
11076
11076
|
return;
|
|
11077
11077
|
const S = d.let("missing");
|
|
@@ -11079,23 +11079,23 @@ function $p() {
|
|
|
11079
11079
|
const g = l[y];
|
|
11080
11080
|
if (g.length === 0)
|
|
11081
11081
|
continue;
|
|
11082
|
-
const f = (0, n.propertyInData)(d,
|
|
11082
|
+
const f = (0, n.propertyInData)(d, m, y, b.opts.ownProperties);
|
|
11083
11083
|
c.setParams({
|
|
11084
11084
|
property: y,
|
|
11085
11085
|
depsCount: g.length,
|
|
11086
11086
|
deps: g.join(", ")
|
|
11087
11087
|
}), b.allErrors ? d.if(f, () => {
|
|
11088
|
-
for (const
|
|
11089
|
-
(0, n.checkReportMissingProp)(c,
|
|
11088
|
+
for (const p of g)
|
|
11089
|
+
(0, n.checkReportMissingProp)(c, p);
|
|
11090
11090
|
}) : (d.if((0, t._)`${f} && (${(0, n.checkMissingProp)(c, g, S)})`), (0, n.reportMissingProp)(c, S), d.else());
|
|
11091
11091
|
}
|
|
11092
11092
|
}
|
|
11093
11093
|
e.validatePropertyDeps = i;
|
|
11094
11094
|
function o(c, l = c.schema) {
|
|
11095
|
-
const { gen: d, data:
|
|
11095
|
+
const { gen: d, data: m, keyword: b, it: S } = c, y = d.name("valid");
|
|
11096
11096
|
for (const g in l)
|
|
11097
11097
|
(0, r.alwaysValidSchema)(S, l[g]) || (d.if(
|
|
11098
|
-
(0, n.propertyInData)(d,
|
|
11098
|
+
(0, n.propertyInData)(d, m, g, S.opts.ownProperties),
|
|
11099
11099
|
() => {
|
|
11100
11100
|
const f = c.subschema({ keyword: b, schemaProp: g }, y);
|
|
11101
11101
|
c.mergeValidEvaluated(f, y);
|
|
@@ -11108,7 +11108,7 @@ function $p() {
|
|
|
11108
11108
|
})(bn)), bn;
|
|
11109
11109
|
}
|
|
11110
11110
|
var sr = {}, Is;
|
|
11111
|
-
function
|
|
11111
|
+
function Rm() {
|
|
11112
11112
|
if (Is) return sr;
|
|
11113
11113
|
Is = 1, Object.defineProperty(sr, "__esModule", { value: !0 });
|
|
11114
11114
|
const e = X(), t = te(), n = {
|
|
@@ -11154,15 +11154,15 @@ function oo() {
|
|
|
11154
11154
|
params: ({ params: i }) => (0, t._)`{additionalProperty: ${i.additionalProperty}}`
|
|
11155
11155
|
},
|
|
11156
11156
|
code(i) {
|
|
11157
|
-
const { gen: o, schema: c, parentSchema: l, data: d, errsCount:
|
|
11158
|
-
if (!
|
|
11157
|
+
const { gen: o, schema: c, parentSchema: l, data: d, errsCount: m, it: b } = i;
|
|
11158
|
+
if (!m)
|
|
11159
11159
|
throw new Error("ajv implementation error");
|
|
11160
11160
|
const { allErrors: S, opts: y } = b;
|
|
11161
11161
|
if (b.props = !0, y.removeAdditional !== "all" && (0, n.alwaysValidSchema)(b, c))
|
|
11162
11162
|
return;
|
|
11163
11163
|
const g = (0, e.allSchemaProperties)(l.properties), f = (0, e.allSchemaProperties)(l.patternProperties);
|
|
11164
|
-
|
|
11165
|
-
function
|
|
11164
|
+
p(), i.ok((0, t._)`${m} === ${r.default.errors}`);
|
|
11165
|
+
function p() {
|
|
11166
11166
|
o.forIn("key", d, (E) => {
|
|
11167
11167
|
!g.length && !f.length ? w(E) : o.if(u(E), () => w(E));
|
|
11168
11168
|
});
|
|
@@ -11211,7 +11211,7 @@ function oo() {
|
|
|
11211
11211
|
return ir.default = s, ir;
|
|
11212
11212
|
}
|
|
11213
11213
|
var or = {}, Ls;
|
|
11214
|
-
function
|
|
11214
|
+
function Pm() {
|
|
11215
11215
|
if (Ls) return or;
|
|
11216
11216
|
Ls = 1, Object.defineProperty(or, "__esModule", { value: !0 });
|
|
11217
11217
|
const e = Hr(), t = Ce(), r = te(), n = oo(), a = {
|
|
@@ -11221,11 +11221,11 @@ function Pp() {
|
|
|
11221
11221
|
code(s) {
|
|
11222
11222
|
const { gen: i, schema: o, parentSchema: c, data: l, it: d } = s;
|
|
11223
11223
|
d.opts.removeAdditional === "all" && c.additionalProperties === void 0 && n.default.code(new e.KeywordCxt(d, n.default, "additionalProperties"));
|
|
11224
|
-
const
|
|
11225
|
-
for (const f of
|
|
11224
|
+
const m = (0, t.allSchemaProperties)(o);
|
|
11225
|
+
for (const f of m)
|
|
11226
11226
|
d.definedProperties.add(f);
|
|
11227
|
-
d.opts.unevaluated &&
|
|
11228
|
-
const b =
|
|
11227
|
+
d.opts.unevaluated && m.length && d.props !== !0 && (d.props = r.mergeEvaluated.props(i, (0, r.toHash)(m), d.props));
|
|
11228
|
+
const b = m.filter((f) => !(0, r.alwaysValidSchema)(d, o[f]));
|
|
11229
11229
|
if (b.length === 0)
|
|
11230
11230
|
return;
|
|
11231
11231
|
const S = i.name("valid");
|
|
@@ -11246,7 +11246,7 @@ function Pp() {
|
|
|
11246
11246
|
return or.default = a, or;
|
|
11247
11247
|
}
|
|
11248
11248
|
var cr = {}, Ms;
|
|
11249
|
-
function
|
|
11249
|
+
function Tm() {
|
|
11250
11250
|
if (Ms) return cr;
|
|
11251
11251
|
Ms = 1, Object.defineProperty(cr, "__esModule", { value: !0 });
|
|
11252
11252
|
const e = Ce(), t = X(), r = te(), n = te(), a = {
|
|
@@ -11254,14 +11254,14 @@ function Tp() {
|
|
|
11254
11254
|
type: "object",
|
|
11255
11255
|
schemaType: "object",
|
|
11256
11256
|
code(s) {
|
|
11257
|
-
const { gen: i, schema: o, data: c, parentSchema: l, it: d } = s, { opts:
|
|
11257
|
+
const { gen: i, schema: o, data: c, parentSchema: l, it: d } = s, { opts: m } = d, b = (0, e.allSchemaProperties)(o), S = b.filter((w) => (0, r.alwaysValidSchema)(d, o[w]));
|
|
11258
11258
|
if (b.length === 0 || S.length === b.length && (!d.opts.unevaluated || d.props === !0))
|
|
11259
11259
|
return;
|
|
11260
|
-
const y =
|
|
11260
|
+
const y = m.strictSchema && !m.allowMatchingProperties && l.properties, g = i.name("valid");
|
|
11261
11261
|
d.props !== !0 && !(d.props instanceof t.Name) && (d.props = (0, n.evaluatedPropsToName)(i, d.props));
|
|
11262
11262
|
const { props: f } = d;
|
|
11263
|
-
|
|
11264
|
-
function
|
|
11263
|
+
p();
|
|
11264
|
+
function p() {
|
|
11265
11265
|
for (const w of b)
|
|
11266
11266
|
y && u(w), d.allErrors ? h(w) : (i.var(g, !0), h(w), i.if(g));
|
|
11267
11267
|
}
|
|
@@ -11287,7 +11287,7 @@ function Tp() {
|
|
|
11287
11287
|
return cr.default = a, cr;
|
|
11288
11288
|
}
|
|
11289
11289
|
var ur = {}, xs;
|
|
11290
|
-
function
|
|
11290
|
+
function Om() {
|
|
11291
11291
|
if (xs) return ur;
|
|
11292
11292
|
xs = 1, Object.defineProperty(ur, "__esModule", { value: !0 });
|
|
11293
11293
|
const e = te(), t = {
|
|
@@ -11313,7 +11313,7 @@ function Op() {
|
|
|
11313
11313
|
return ur.default = t, ur;
|
|
11314
11314
|
}
|
|
11315
11315
|
var lr = {}, qs;
|
|
11316
|
-
function
|
|
11316
|
+
function Am() {
|
|
11317
11317
|
if (qs) return lr;
|
|
11318
11318
|
qs = 1, Object.defineProperty(lr, "__esModule", { value: !0 });
|
|
11319
11319
|
const t = {
|
|
@@ -11326,7 +11326,7 @@ function Ap() {
|
|
|
11326
11326
|
return lr.default = t, lr;
|
|
11327
11327
|
}
|
|
11328
11328
|
var dr = {}, js;
|
|
11329
|
-
function
|
|
11329
|
+
function Nm() {
|
|
11330
11330
|
if (js) return dr;
|
|
11331
11331
|
js = 1, Object.defineProperty(dr, "__esModule", { value: !0 });
|
|
11332
11332
|
const e = X(), t = te(), n = {
|
|
@@ -11343,8 +11343,8 @@ function Np() {
|
|
|
11343
11343
|
throw new Error("ajv implementation error");
|
|
11344
11344
|
if (c.opts.discriminator && o.discriminator)
|
|
11345
11345
|
return;
|
|
11346
|
-
const l = i, d = s.let("valid", !1),
|
|
11347
|
-
a.setParams({ passing:
|
|
11346
|
+
const l = i, d = s.let("valid", !1), m = s.let("passing", null), b = s.name("_valid");
|
|
11347
|
+
a.setParams({ passing: m }), s.block(S), a.result(d, () => a.reset(), () => a.error(!0));
|
|
11348
11348
|
function S() {
|
|
11349
11349
|
l.forEach((y, g) => {
|
|
11350
11350
|
let f;
|
|
@@ -11352,8 +11352,8 @@ function Np() {
|
|
|
11352
11352
|
keyword: "oneOf",
|
|
11353
11353
|
schemaProp: g,
|
|
11354
11354
|
compositeRule: !0
|
|
11355
|
-
}, b), g > 0 && s.if((0, e._)`${b} && ${d}`).assign(d, !1).assign(
|
|
11356
|
-
s.assign(d, !0), s.assign(
|
|
11355
|
+
}, b), g > 0 && s.if((0, e._)`${b} && ${d}`).assign(d, !1).assign(m, (0, e._)`[${m}, ${g}]`).else(), s.if(b, () => {
|
|
11356
|
+
s.assign(d, !0), s.assign(m, g), f && a.mergeEvaluated(f, e.Name);
|
|
11357
11357
|
});
|
|
11358
11358
|
});
|
|
11359
11359
|
}
|
|
@@ -11362,7 +11362,7 @@ function Np() {
|
|
|
11362
11362
|
return dr.default = n, dr;
|
|
11363
11363
|
}
|
|
11364
11364
|
var fr = {}, Us;
|
|
11365
|
-
function
|
|
11365
|
+
function Dm() {
|
|
11366
11366
|
if (Us) return fr;
|
|
11367
11367
|
Us = 1, Object.defineProperty(fr, "__esModule", { value: !0 });
|
|
11368
11368
|
const e = te(), t = {
|
|
@@ -11384,7 +11384,7 @@ function Dp() {
|
|
|
11384
11384
|
return fr.default = t, fr;
|
|
11385
11385
|
}
|
|
11386
11386
|
var hr = {}, Fs;
|
|
11387
|
-
function
|
|
11387
|
+
function Cm() {
|
|
11388
11388
|
if (Fs) return hr;
|
|
11389
11389
|
Fs = 1, Object.defineProperty(hr, "__esModule", { value: !0 });
|
|
11390
11390
|
const e = X(), t = te(), n = {
|
|
@@ -11401,12 +11401,12 @@ function Cp() {
|
|
|
11401
11401
|
const l = a(c, "then"), d = a(c, "else");
|
|
11402
11402
|
if (!l && !d)
|
|
11403
11403
|
return;
|
|
11404
|
-
const
|
|
11404
|
+
const m = i.let("valid", !0), b = i.name("_valid");
|
|
11405
11405
|
if (S(), s.reset(), l && d) {
|
|
11406
11406
|
const g = i.let("ifClause");
|
|
11407
11407
|
s.setParams({ ifClause: g }), i.if(b, y("then", g), y("else", g));
|
|
11408
11408
|
} else l ? i.if(b, y("then")) : i.if((0, e.not)(b), y("else"));
|
|
11409
|
-
s.pass(
|
|
11409
|
+
s.pass(m, () => s.error(!0));
|
|
11410
11410
|
function S() {
|
|
11411
11411
|
const g = s.subschema({
|
|
11412
11412
|
keyword: "if",
|
|
@@ -11418,8 +11418,8 @@ function Cp() {
|
|
|
11418
11418
|
}
|
|
11419
11419
|
function y(g, f) {
|
|
11420
11420
|
return () => {
|
|
11421
|
-
const
|
|
11422
|
-
i.assign(
|
|
11421
|
+
const p = s.subschema({ keyword: g }, b);
|
|
11422
|
+
i.assign(m, b), s.mergeValidEvaluated(p, m), f ? i.assign(f, (0, e._)`${g}`) : s.setParams({ ifClause: g });
|
|
11423
11423
|
};
|
|
11424
11424
|
}
|
|
11425
11425
|
}
|
|
@@ -11430,10 +11430,10 @@ function Cp() {
|
|
|
11430
11430
|
}
|
|
11431
11431
|
return hr.default = n, hr;
|
|
11432
11432
|
}
|
|
11433
|
-
var
|
|
11434
|
-
function
|
|
11435
|
-
if (Vs) return
|
|
11436
|
-
Vs = 1, Object.defineProperty(
|
|
11433
|
+
var pr = {}, Vs;
|
|
11434
|
+
function Im() {
|
|
11435
|
+
if (Vs) return pr;
|
|
11436
|
+
Vs = 1, Object.defineProperty(pr, "__esModule", { value: !0 });
|
|
11437
11437
|
const e = te(), t = {
|
|
11438
11438
|
keyword: ["then", "else"],
|
|
11439
11439
|
schemaType: ["object", "boolean"],
|
|
@@ -11441,18 +11441,18 @@ function Ip() {
|
|
|
11441
11441
|
n.if === void 0 && (0, e.checkStrictMode)(a, `"${r}" without "if" is ignored`);
|
|
11442
11442
|
}
|
|
11443
11443
|
};
|
|
11444
|
-
return
|
|
11444
|
+
return pr.default = t, pr;
|
|
11445
11445
|
}
|
|
11446
11446
|
var Hs;
|
|
11447
|
-
function
|
|
11447
|
+
function km() {
|
|
11448
11448
|
if (Hs) return tr;
|
|
11449
11449
|
Hs = 1, Object.defineProperty(tr, "__esModule", { value: !0 });
|
|
11450
|
-
const e = so(), t =
|
|
11451
|
-
function f(
|
|
11450
|
+
const e = so(), t = Em(), r = io(), n = _m(), a = Sm(), s = $m(), i = Rm(), o = oo(), c = Pm(), l = Tm(), d = Om(), m = Am(), b = Nm(), S = Dm(), y = Cm(), g = Im();
|
|
11451
|
+
function f(p = !1) {
|
|
11452
11452
|
const u = [
|
|
11453
11453
|
// any
|
|
11454
11454
|
d.default,
|
|
11455
|
-
|
|
11455
|
+
m.default,
|
|
11456
11456
|
b.default,
|
|
11457
11457
|
S.default,
|
|
11458
11458
|
y.default,
|
|
@@ -11464,12 +11464,12 @@ function kp() {
|
|
|
11464
11464
|
c.default,
|
|
11465
11465
|
l.default
|
|
11466
11466
|
];
|
|
11467
|
-
return
|
|
11467
|
+
return p ? u.push(t.default, n.default) : u.push(e.default, r.default), u.push(a.default), u;
|
|
11468
11468
|
}
|
|
11469
11469
|
return tr.default = f, tr;
|
|
11470
11470
|
}
|
|
11471
|
-
var
|
|
11472
|
-
function
|
|
11471
|
+
var mr = {}, gr = {}, Bs;
|
|
11472
|
+
function Lm() {
|
|
11473
11473
|
if (Bs) return gr;
|
|
11474
11474
|
Bs = 1, Object.defineProperty(gr, "__esModule", { value: !0 });
|
|
11475
11475
|
const e = X(), r = {
|
|
@@ -11482,18 +11482,18 @@ function Lp() {
|
|
|
11482
11482
|
params: ({ schemaCode: n }) => (0, e._)`{format: ${n}}`
|
|
11483
11483
|
},
|
|
11484
11484
|
code(n, a) {
|
|
11485
|
-
const { gen: s, data: i, $data: o, schema: c, schemaCode: l, it: d } = n, { opts:
|
|
11486
|
-
if (!
|
|
11485
|
+
const { gen: s, data: i, $data: o, schema: c, schemaCode: l, it: d } = n, { opts: m, errSchemaPath: b, schemaEnv: S, self: y } = d;
|
|
11486
|
+
if (!m.validateFormats)
|
|
11487
11487
|
return;
|
|
11488
11488
|
o ? g() : f();
|
|
11489
11489
|
function g() {
|
|
11490
|
-
const
|
|
11490
|
+
const p = s.scopeValue("formats", {
|
|
11491
11491
|
ref: y.formats,
|
|
11492
|
-
code:
|
|
11493
|
-
}), u = s.const("fDef", (0, e._)`${
|
|
11492
|
+
code: m.code.formats
|
|
11493
|
+
}), u = s.const("fDef", (0, e._)`${p}[${l}]`), h = s.let("fType"), w = s.let("format");
|
|
11494
11494
|
s.if((0, e._)`typeof ${u} == "object" && !(${u} instanceof RegExp)`, () => s.assign(h, (0, e._)`${u}.type || "string"`).assign(w, (0, e._)`${u}.validate`), () => s.assign(h, (0, e._)`"string"`).assign(w, u)), n.fail$data((0, e.or)(_(), E()));
|
|
11495
11495
|
function _() {
|
|
11496
|
-
return
|
|
11496
|
+
return m.strictSchema === !1 ? e.nil : (0, e._)`${l} && !${w}`;
|
|
11497
11497
|
}
|
|
11498
11498
|
function E() {
|
|
11499
11499
|
const $ = S.$async ? (0, e._)`(${u}.async ? await ${w}(${i}) : ${w}(${i}))` : (0, e._)`${w}(${i})`, O = (0, e._)`(typeof ${w} == "function" ? ${$} : ${w}.test(${i}))`;
|
|
@@ -11501,17 +11501,17 @@ function Lp() {
|
|
|
11501
11501
|
}
|
|
11502
11502
|
}
|
|
11503
11503
|
function f() {
|
|
11504
|
-
const
|
|
11505
|
-
if (!
|
|
11504
|
+
const p = y.formats[c];
|
|
11505
|
+
if (!p) {
|
|
11506
11506
|
_();
|
|
11507
11507
|
return;
|
|
11508
11508
|
}
|
|
11509
|
-
if (
|
|
11509
|
+
if (p === !0)
|
|
11510
11510
|
return;
|
|
11511
|
-
const [u, h, w] = E(
|
|
11511
|
+
const [u, h, w] = E(p);
|
|
11512
11512
|
u === a && n.pass($());
|
|
11513
11513
|
function _() {
|
|
11514
|
-
if (
|
|
11514
|
+
if (m.strictSchema === !1) {
|
|
11515
11515
|
y.logger.warn(O());
|
|
11516
11516
|
return;
|
|
11517
11517
|
}
|
|
@@ -11521,11 +11521,11 @@ function Lp() {
|
|
|
11521
11521
|
}
|
|
11522
11522
|
}
|
|
11523
11523
|
function E(O) {
|
|
11524
|
-
const k = O instanceof RegExp ? (0, e.regexpCode)(O) :
|
|
11524
|
+
const k = O instanceof RegExp ? (0, e.regexpCode)(O) : m.code.formats ? (0, e._)`${m.code.formats}${(0, e.getProperty)(c)}` : void 0, j = s.scopeValue("formats", { key: c, ref: O, code: k });
|
|
11525
11525
|
return typeof O == "object" && !(O instanceof RegExp) ? [O.type || "string", O.validate, (0, e._)`${j}.validate`] : ["string", O, j];
|
|
11526
11526
|
}
|
|
11527
11527
|
function $() {
|
|
11528
|
-
if (typeof
|
|
11528
|
+
if (typeof p == "object" && !(p instanceof RegExp) && p.async) {
|
|
11529
11529
|
if (!S.$async)
|
|
11530
11530
|
throw new Error("async format in sync schema");
|
|
11531
11531
|
return (0, e._)`await ${w}(${i})`;
|
|
@@ -11538,14 +11538,14 @@ function Lp() {
|
|
|
11538
11538
|
return gr.default = r, gr;
|
|
11539
11539
|
}
|
|
11540
11540
|
var zs;
|
|
11541
|
-
function
|
|
11542
|
-
if (zs) return
|
|
11543
|
-
zs = 1, Object.defineProperty(
|
|
11544
|
-
const t = [
|
|
11545
|
-
return
|
|
11541
|
+
function Mm() {
|
|
11542
|
+
if (zs) return mr;
|
|
11543
|
+
zs = 1, Object.defineProperty(mr, "__esModule", { value: !0 });
|
|
11544
|
+
const t = [Lm().default];
|
|
11545
|
+
return mr.default = t, mr;
|
|
11546
11546
|
}
|
|
11547
11547
|
var Be = {}, Ws;
|
|
11548
|
-
function
|
|
11548
|
+
function xm() {
|
|
11549
11549
|
return Ws || (Ws = 1, Object.defineProperty(Be, "__esModule", { value: !0 }), Be.contentVocabulary = Be.metadataVocabulary = void 0, Be.metadataVocabulary = [
|
|
11550
11550
|
"title",
|
|
11551
11551
|
"description",
|
|
@@ -11561,10 +11561,10 @@ function xp() {
|
|
|
11561
11561
|
]), Be;
|
|
11562
11562
|
}
|
|
11563
11563
|
var Gs;
|
|
11564
|
-
function
|
|
11564
|
+
function qm() {
|
|
11565
11565
|
if (Gs) return jt;
|
|
11566
11566
|
Gs = 1, Object.defineProperty(jt, "__esModule", { value: !0 });
|
|
11567
|
-
const e =
|
|
11567
|
+
const e = cm(), t = vm(), r = km(), n = Mm(), a = xm(), s = [
|
|
11568
11568
|
e.default,
|
|
11569
11569
|
t.default,
|
|
11570
11570
|
(0, r.default)(),
|
|
@@ -11575,7 +11575,7 @@ function qp() {
|
|
|
11575
11575
|
return jt.default = s, jt;
|
|
11576
11576
|
}
|
|
11577
11577
|
var yr = {}, Et = {}, Ks;
|
|
11578
|
-
function
|
|
11578
|
+
function jm() {
|
|
11579
11579
|
if (Ks) return Et;
|
|
11580
11580
|
Ks = 1, Object.defineProperty(Et, "__esModule", { value: !0 }), Et.DiscrError = void 0;
|
|
11581
11581
|
var e;
|
|
@@ -11584,10 +11584,10 @@ function jp() {
|
|
|
11584
11584
|
})(e || (Et.DiscrError = e = {})), Et;
|
|
11585
11585
|
}
|
|
11586
11586
|
var Ys;
|
|
11587
|
-
function
|
|
11587
|
+
function Um() {
|
|
11588
11588
|
if (Ys) return yr;
|
|
11589
11589
|
Ys = 1, Object.defineProperty(yr, "__esModule", { value: !0 });
|
|
11590
|
-
const e = X(), t =
|
|
11590
|
+
const e = X(), t = jm(), r = Ln(), n = Br(), a = te(), i = {
|
|
11591
11591
|
keyword: "discriminator",
|
|
11592
11592
|
type: "object",
|
|
11593
11593
|
schemaType: "object",
|
|
@@ -11596,7 +11596,7 @@ function Up() {
|
|
|
11596
11596
|
params: ({ params: { discrError: o, tag: c, tagName: l } }) => (0, e._)`{error: ${o}, tag: ${l}, tagValue: ${c}}`
|
|
11597
11597
|
},
|
|
11598
11598
|
code(o) {
|
|
11599
|
-
const { gen: c, data: l, schema: d, parentSchema:
|
|
11599
|
+
const { gen: c, data: l, schema: d, parentSchema: m, it: b } = o, { oneOf: S } = m;
|
|
11600
11600
|
if (!b.opts.discriminator)
|
|
11601
11601
|
throw new Error("discriminator: requires discriminator option");
|
|
11602
11602
|
const y = d.propertyName;
|
|
@@ -11607,8 +11607,8 @@ function Up() {
|
|
|
11607
11607
|
if (!S)
|
|
11608
11608
|
throw new Error("discriminator: requires oneOf keyword");
|
|
11609
11609
|
const g = c.let("valid", !1), f = c.const("tag", (0, e._)`${l}${(0, e.getProperty)(y)}`);
|
|
11610
|
-
c.if((0, e._)`typeof ${f} == "string"`, () =>
|
|
11611
|
-
function
|
|
11610
|
+
c.if((0, e._)`typeof ${f} == "string"`, () => p(), () => o.error(!1, { discrError: t.DiscrError.Tag, tag: f, tagName: y })), o.ok(g);
|
|
11611
|
+
function p() {
|
|
11612
11612
|
const w = h();
|
|
11613
11613
|
c.if(!1);
|
|
11614
11614
|
for (const _ in w)
|
|
@@ -11621,7 +11621,7 @@ function Up() {
|
|
|
11621
11621
|
}
|
|
11622
11622
|
function h() {
|
|
11623
11623
|
var w;
|
|
11624
|
-
const _ = {}, E = O(
|
|
11624
|
+
const _ = {}, E = O(m);
|
|
11625
11625
|
let $ = !0;
|
|
11626
11626
|
for (let q = 0; q < S.length; q++) {
|
|
11627
11627
|
let U = S[q];
|
|
@@ -11660,20 +11660,20 @@ function Up() {
|
|
|
11660
11660
|
};
|
|
11661
11661
|
return yr.default = i, yr;
|
|
11662
11662
|
}
|
|
11663
|
-
const
|
|
11664
|
-
$schema:
|
|
11665
|
-
$id:
|
|
11666
|
-
title:
|
|
11667
|
-
definitions:
|
|
11668
|
-
type:
|
|
11669
|
-
properties:
|
|
11663
|
+
const Fm = "http://json-schema.org/draft-07/schema#", Vm = "http://json-schema.org/draft-07/schema#", Hm = "Core schema meta-schema", Bm = { schemaArray: { type: "array", minItems: 1, items: { $ref: "#" } }, nonNegativeInteger: { type: "integer", minimum: 0 }, nonNegativeIntegerDefault0: { allOf: [{ $ref: "#/definitions/nonNegativeInteger" }, { default: 0 }] }, simpleTypes: { enum: ["array", "boolean", "integer", "null", "number", "object", "string"] }, stringArray: { type: "array", items: { type: "string" }, uniqueItems: !0, default: [] } }, zm = ["object", "boolean"], Wm = { $id: { type: "string", format: "uri-reference" }, $schema: { type: "string", format: "uri" }, $ref: { type: "string", format: "uri-reference" }, $comment: { type: "string" }, title: { type: "string" }, description: { type: "string" }, default: !0, readOnly: { type: "boolean", default: !1 }, examples: { type: "array", items: !0 }, multipleOf: { type: "number", exclusiveMinimum: 0 }, maximum: { type: "number" }, exclusiveMaximum: { type: "number" }, minimum: { type: "number" }, exclusiveMinimum: { type: "number" }, maxLength: { $ref: "#/definitions/nonNegativeInteger" }, minLength: { $ref: "#/definitions/nonNegativeIntegerDefault0" }, pattern: { type: "string", format: "regex" }, additionalItems: { $ref: "#" }, items: { anyOf: [{ $ref: "#" }, { $ref: "#/definitions/schemaArray" }], default: !0 }, maxItems: { $ref: "#/definitions/nonNegativeInteger" }, minItems: { $ref: "#/definitions/nonNegativeIntegerDefault0" }, uniqueItems: { type: "boolean", default: !1 }, contains: { $ref: "#" }, maxProperties: { $ref: "#/definitions/nonNegativeInteger" }, minProperties: { $ref: "#/definitions/nonNegativeIntegerDefault0" }, required: { $ref: "#/definitions/stringArray" }, additionalProperties: { $ref: "#" }, definitions: { type: "object", additionalProperties: { $ref: "#" }, default: {} }, properties: { type: "object", additionalProperties: { $ref: "#" }, default: {} }, patternProperties: { type: "object", additionalProperties: { $ref: "#" }, propertyNames: { format: "regex" }, default: {} }, dependencies: { type: "object", additionalProperties: { anyOf: [{ $ref: "#" }, { $ref: "#/definitions/stringArray" }] } }, propertyNames: { $ref: "#" }, const: !0, enum: { type: "array", items: !0, minItems: 1, uniqueItems: !0 }, type: { anyOf: [{ $ref: "#/definitions/simpleTypes" }, { type: "array", items: { $ref: "#/definitions/simpleTypes" }, minItems: 1, uniqueItems: !0 }] }, format: { type: "string" }, contentMediaType: { type: "string" }, contentEncoding: { type: "string" }, if: { $ref: "#" }, then: { $ref: "#" }, else: { $ref: "#" }, allOf: { $ref: "#/definitions/schemaArray" }, anyOf: { $ref: "#/definitions/schemaArray" }, oneOf: { $ref: "#/definitions/schemaArray" }, not: { $ref: "#" } }, Gm = {
|
|
11664
|
+
$schema: Fm,
|
|
11665
|
+
$id: Vm,
|
|
11666
|
+
title: Hm,
|
|
11667
|
+
definitions: Bm,
|
|
11668
|
+
type: zm,
|
|
11669
|
+
properties: Wm,
|
|
11670
11670
|
default: !0
|
|
11671
11671
|
};
|
|
11672
11672
|
var Js;
|
|
11673
|
-
function
|
|
11673
|
+
function Km() {
|
|
11674
11674
|
return Js || (Js = 1, (function(e, t) {
|
|
11675
11675
|
Object.defineProperty(t, "__esModule", { value: !0 }), t.MissingRefError = t.ValidationError = t.CodeGen = t.Name = t.nil = t.stringify = t.str = t._ = t.KeywordCxt = t.Ajv = void 0;
|
|
11676
|
-
const r =
|
|
11676
|
+
const r = sm(), n = qm(), a = Um(), s = Gm, i = ["/properties"], o = "http://json-schema.org/draft-07/schema";
|
|
11677
11677
|
class c extends r.default {
|
|
11678
11678
|
_addVocabularies() {
|
|
11679
11679
|
super._addVocabularies(), n.default.forEach((y) => this.addVocabulary(y)), this.opts.discriminator && this.addKeyword(a.default);
|
|
@@ -11707,9 +11707,9 @@ function Kp() {
|
|
|
11707
11707
|
} }), Object.defineProperty(t, "CodeGen", { enumerable: !0, get: function() {
|
|
11708
11708
|
return d.CodeGen;
|
|
11709
11709
|
} });
|
|
11710
|
-
var
|
|
11710
|
+
var m = kn();
|
|
11711
11711
|
Object.defineProperty(t, "ValidationError", { enumerable: !0, get: function() {
|
|
11712
|
-
return
|
|
11712
|
+
return m.default;
|
|
11713
11713
|
} });
|
|
11714
11714
|
var b = Br();
|
|
11715
11715
|
Object.defineProperty(t, "MissingRefError", { enumerable: !0, get: function() {
|
|
@@ -11717,8 +11717,8 @@ function Kp() {
|
|
|
11717
11717
|
} });
|
|
11718
11718
|
})(kt, kt.exports)), kt.exports;
|
|
11719
11719
|
}
|
|
11720
|
-
var
|
|
11721
|
-
const
|
|
11720
|
+
var Ym = Km();
|
|
11721
|
+
const Jm = /* @__PURE__ */ Fp(Ym), xn = "/bahmni_config/openmrs/apps/clinical/v2", Xm = "/bahmni_config/openmrs/apps/registration/v2", Qm = xn + "/app.json", Zm = Xm + "/app.json", eg = xn + "/medication.json", tg = (e) => `${xn}/dashboards/${e}`, Xs = {
|
|
11722
11722
|
CONFIG_NOT_FOUND: "CONFIG_ERROR_NOT_FOUND",
|
|
11723
11723
|
VALIDATION_FAILED: "CONFIG_ERROR_VALIDATION_FAILED",
|
|
11724
11724
|
SCHEMA_VALIDATION_FAILED: "CONFIG_ERROR_SCHEMA_VALIDATION_FAILED"
|
|
@@ -11734,13 +11734,13 @@ const Jp = /* @__PURE__ */ Fm(Yp), xn = "/bahmni_config/openmrs/apps/clinical/v2
|
|
|
11734
11734
|
required: ig,
|
|
11735
11735
|
additionalProperties: og,
|
|
11736
11736
|
properties: cg
|
|
11737
|
-
}, lg = "http://json-schema.org/draft-07/schema#", dg = "Clinical Dashboard Configuration Schema", fg = "Schema for dashboards in clinical app which contains sections and associated controls", hg = "object",
|
|
11737
|
+
}, lg = "http://json-schema.org/draft-07/schema#", dg = "Clinical Dashboard Configuration Schema", fg = "Schema for dashboards in clinical app which contains sections and associated controls", hg = "object", pg = !1, mg = ["sections"], gg = { sections: { type: "array", description: "Section in a dashboard", items: { type: "object", additionalProperties: !1, required: ["name", "icon", "controls"], properties: { name: { type: "string", description: "Display name of the section" }, translationKey: { type: "string", description: "Translation key for the section name" }, icon: { type: "string", description: "Fontawesome Icon name for the section" }, controls: { type: "array", description: "List of controls in the section", items: [{ type: "object", additionalProperties: !1, required: ["type"], properties: { type: { type: "string", description: "Type of the control" }, config: { type: "object", description: "Configuration for the control" } } }] } } } } }, yg = {
|
|
11738
11738
|
$schema: lg,
|
|
11739
11739
|
title: dg,
|
|
11740
11740
|
description: fg,
|
|
11741
11741
|
type: hg,
|
|
11742
|
-
additionalProperties:
|
|
11743
|
-
required:
|
|
11742
|
+
additionalProperties: pg,
|
|
11743
|
+
required: mg,
|
|
11744
11744
|
properties: gg
|
|
11745
11745
|
}, bg = "http://json-schema.org/draft-07/schema#", wg = "Medication Configuration Schema", vg = "object", Eg = !1, _g = { defaultDurationUnit: { type: "string", enum: ["min", "h", "d", "wk", "mo"], description: "Default unit for medication duration" }, defaultInstructions: { type: "string", description: "Default instructions for medication" }, drugFormDefaults: { type: "object", description: "Default dose units and routes for different drug forms", patternProperties: { "^.*$": { type: "object", additionalProperties: !1, properties: { doseUnits: { type: "string", description: "Default dose units for this drug form" }, route: { type: "string", description: "Default route of administration for this drug form" } } } } } }, Sg = {
|
|
11746
11746
|
$schema: bg,
|
|
@@ -11748,14 +11748,14 @@ const Jp = /* @__PURE__ */ Fm(Yp), xn = "/bahmni_config/openmrs/apps/clinical/v2
|
|
|
11748
11748
|
type: vg,
|
|
11749
11749
|
additionalProperties: Eg,
|
|
11750
11750
|
properties: _g
|
|
11751
|
-
}, $g = "http://json-schema.org/draft-07/schema#", Rg = "Registration Configuration Schema", Pg = "Schema for validating registration app configuration", Tg = "object", Og = !1, Ag = { id: { type: "string", description: "Unique identifier for the registration configuration" }, contextModel: { type: "array", description: "Array of context model configurations", items: { type: "string" } }, patientSearch: { type: "object", description: "Patient search configuration", additionalProperties: !1, properties: { customAttributes: { type: "array", description: "Array of available search fields", items: { type: "object", additionalProperties: !1, properties: { translationKey: { type: "string", description: "Translation key for the dropdown label" }, fields: { type: "array", description: "Array of field names to search against", items: { type: "string" } }, expectedFields: { type: "array", description: "Array of fields configurations with translation keys to display on table headers", items: { type: "object", additionalProperties: !1, properties: { field: { type: "string", description: "field corresponding to table header" }, translationKey: { type: "string", description: "Translation key for the table header" } } } }, type: { type: "string", enum: ["person", "address", "program", "appointment"], description: "Type of the search field (person, address, program, appointment)" } } } }, appointment: { type: "array", description: "Array of available search fields for appointments", items: { type: "object", additionalProperties: !0, required: ["translationKey", "fields"], properties: { translationKey: { type: "string", description: "Translation key for the field label" }, fields: { type: "array", description: "Array of field names to search against", items: { type: "string" } }, expectedFields: { type: "array", description: "Array of expected fields with optional types", items: { type: "object", required: ["field", "translationKey"], properties: { field: { type: "string", description: "The field name (e.g., apptNumber, apptDate)" }, translationKey: { type: "string", description: "Translation key for the field's display label" }, type: { type: "string", description: "Optional field type (e.g., date, string)" } } } }, type: { type: "string", enum: ["appointment"], description: "Type of the search field (appointment)" }, actions: { type: "array", description: "Array of actions allowed on this search field", items: { type: "object", required: ["translationKey", "type", "enabledRule", "onAction"], properties: { translationKey: { type: "string", description: "Translation key for the action button label" }, type: { type: "string", enum: ["changeStatus", "navigate"], description: "Type of action to perform" }, enabledRule: { type: "array", description: "Conditions to enable this action (rules)", items: { type: "object", properties: { type: { type: "string", enum: ["privilegeCheck", "statusCheck", "appDateCheck"], description: "Type of rule to evaluate" }, values: { type: "array", items: { type: "string" }, description: "Values to check against for the rule" } } } }, onAction: { type: "object", description: "What happens when action is triggered", additionalProperties: !0, properties: { status: { type: "string", description: "Status to set (for changeStatus type)" }, navigation: { type: "string", description: "URL path to navigate to (for navigate type)" } } }, onSuccess: { type: "object", description: "Notification or other success response", additionalProperties: !0, properties: { notification: { type: "string", description: "Translation key for success notification message" } } } } } } } } } } }, defaultVisitType: { type: "string", description: "Default visit type for patient registration" }, patientInformation: { type: "object", description: "Patient name related fields configuration", additionalProperties: !0, properties: { defaultIdentifierPrefix: { type: "string", description: "Default prefix for patient identifiers" }, showEnterManually: { type: "boolean" }, showMiddleName: { type: "boolean" }, showLastName: { type: "boolean" }, isFirstNameMandatory: { type: "boolean" }, isMiddleNameMandatory: { type: "boolean" }, isGenderMandatory: { type: "boolean" }, isDateOfBirthMandatory: { type: "boolean" }, isLastNameMandatory: { type: "boolean" }, patientNameDisplayOrder: { type: "array", description: "Order in which patient name fields should be displayed", items: { type: "string" } }, showBirthTime: { type: "boolean" }, showDOBEstimated: { type: "boolean" }, addressHierarchy: { type: "object", description: "Address hierarchy levels to be displayed", additionalProperties: !1, properties: { showAddressFieldsTopDown: { type: "boolean" }, strictAutocompleteFromLevel: { type: "string" }, expectedFields: { type: "array", description: "Array of expected fields with translation keys", items: { type: "object", properties: { addressField: { type: "string", description: "Field name" }, translationKey: { type: "string", description: "Translation key for the field label" } } } } } }, additionalPatientInformation: { type: "object", description: "Additional patient information configuration", additionalProperties: !0, properties: { translationKey: { type: "string", description: "Translation key for the section title" }, attributes: { type: "array", description: "Array of attribute fields with translation keys", items: { type: "object", required: ["field", "translationKey"], properties: { field: { type: "string", description: "Field name" }, translationKey: { type: "string", description: "Translation key for the field label" } } } } } }, contactInformation: { type: "object", additionalProperties: !0, properties: { translationKey: { type: "string", description: "Translation key for the section title" }, attributes: { type: "array", description: "Array of attribute fields with translation keys", items: { type: "object", required: ["field", "translationKey"], properties: { field: { type: "string", description: "Field name" }, translationKey: { type: "string", description: "Translation key for the field label" } } } } } }, showExtraPatientIdentifiersSection: { type: "boolean", description: "Whether to show extra patient identifiers section" } } }, fieldValidation: { type: "object", description: "Field validation rules with regex patterns and error messages", additionalProperties: !0, patternProperties: { "^.*$": { type: "object", properties: { pattern: { type: "string", description: "Regular expression pattern for field validation" }, errorMessage: { type: "string", description: "Error message to display when validation fails" } } } } } }, Ng = {
|
|
11751
|
+
}, $g = "http://json-schema.org/draft-07/schema#", Rg = "Registration Configuration Schema", Pg = "Schema for validating registration app configuration", Tg = "object", Og = !1, Ag = { id: { type: "string", description: "Unique identifier for the registration configuration" }, contextModel: { type: "array", description: "Array of context model configurations", items: { type: "string" } }, patientSearch: { type: "object", description: "Patient search configuration", additionalProperties: !1, properties: { customAttributes: { type: "array", description: "Array of available search fields", items: { type: "object", additionalProperties: !1, properties: { translationKey: { type: "string", description: "Translation key for the dropdown label" }, fields: { type: "array", description: "Array of field names to search against", items: { type: "string" } }, expectedFields: { type: "array", description: "Array of fields configurations with translation keys to display on table headers", items: { type: "object", additionalProperties: !1, properties: { field: { type: "string", description: "field corresponding to table header" }, translationKey: { type: "string", description: "Translation key for the table header" } } } }, type: { type: "string", enum: ["person", "address", "program", "appointment"], description: "Type of the search field (person, address, program, appointment)" } } } }, appointment: { type: "array", description: "Array of available search fields for appointments", items: { type: "object", additionalProperties: !0, required: ["translationKey", "fields"], properties: { translationKey: { type: "string", description: "Translation key for the field label" }, fields: { type: "array", description: "Array of field names to search against", items: { type: "string" } }, expectedFields: { type: "array", description: "Array of expected fields with optional types", items: { type: "object", required: ["field", "translationKey"], properties: { field: { type: "string", description: "The field name (e.g., apptNumber, apptDate)" }, translationKey: { type: "string", description: "Translation key for the field's display label" }, type: { type: "string", description: "Optional field type (e.g., date, string)" } } } }, type: { type: "string", enum: ["appointment"], description: "Type of the search field (appointment)" }, actions: { type: "array", description: "Array of actions allowed on this search field", items: { type: "object", required: ["translationKey", "type", "enabledRule", "onAction"], properties: { translationKey: { type: "string", description: "Translation key for the action button label" }, type: { type: "string", enum: ["changeStatus", "navigate"], description: "Type of action to perform" }, enabledRule: { type: "array", description: "Conditions to enable this action (rules)", items: { type: "object", properties: { type: { type: "string", enum: ["privilegeCheck", "statusCheck", "appDateCheck"], description: "Type of rule to evaluate" }, values: { type: "array", items: { type: "string" }, description: "Values to check against for the rule" } } } }, onAction: { type: "object", description: "What happens when action is triggered", additionalProperties: !0, properties: { status: { type: "string", description: "Status to set (for changeStatus type)" }, navigation: { type: "string", description: "URL path to navigate to (for navigate type)" } } }, onSuccess: { type: "object", description: "Notification or other success response", additionalProperties: !0, properties: { notification: { type: "string", description: "Translation key for success notification message" } } } } } } } } } } }, defaultVisitType: { type: "string", description: "Default visit type for patient registration" }, patientInformation: { type: "object", description: "Patient name related fields configuration", additionalProperties: !0, properties: { defaultIdentifierPrefix: { type: "string", description: "Default prefix for patient identifiers" }, showEnterManually: { type: "boolean" }, showMiddleName: { type: "boolean" }, showLastName: { type: "boolean" }, isFirstNameMandatory: { type: "boolean" }, isMiddleNameMandatory: { type: "boolean" }, isGenderMandatory: { type: "boolean" }, isDateOfBirthMandatory: { type: "boolean" }, isLastNameMandatory: { type: "boolean" }, patientNameDisplayOrder: { type: "array", description: "Order in which patient name fields should be displayed", items: { type: "string" } }, showBirthTime: { type: "boolean" }, showDOBEstimated: { type: "boolean" }, addressHierarchy: { type: "object", description: "Address hierarchy levels to be displayed", additionalProperties: !1, properties: { showAddressFieldsTopDown: { type: "boolean" }, strictAutocompleteFromLevel: { type: "string" }, expectedFields: { type: "array", description: "Array of expected fields with translation keys", items: { type: "object", properties: { addressField: { type: "string", description: "Field name" }, translationKey: { type: "string", description: "Translation key for the field label" } } } } } }, additionalPatientInformation: { type: "object", description: "Additional patient information configuration", additionalProperties: !0, properties: { translationKey: { type: "string", description: "Translation key for the section title" }, attributes: { type: "array", description: "Array of attribute fields with translation keys", items: { type: "object", required: ["field", "translationKey"], properties: { field: { type: "string", description: "Field name" }, translationKey: { type: "string", description: "Translation key for the field label" } } } } } }, contactInformation: { type: "object", additionalProperties: !0, properties: { translationKey: { type: "string", description: "Translation key for the section title" }, attributes: { type: "array", description: "Array of attribute fields with translation keys", items: { type: "object", required: ["field", "translationKey"], properties: { field: { type: "string", description: "Field name" }, translationKey: { type: "string", description: "Translation key for the field label" } } } } } }, showExtraPatientIdentifiersSection: { type: "boolean", description: "Whether to show extra patient identifiers section" } } }, fieldValidation: { type: "object", description: "Field validation rules with regex patterns and error messages", additionalProperties: !0, patternProperties: { "^.*$": { type: "object", properties: { pattern: { type: "string", description: "Regular expression pattern for field validation" }, errorMessage: { type: "string", description: "Error message to display when validation fails" } } } } }, extensionPoints: { type: "array", description: "Array of extension point definitions that extensions can attach to", items: { type: "object", required: ["id"], additionalProperties: !1, properties: { id: { type: "string", description: "Unique identifier for the extension point (e.g., 'org.bahmni.registration.navigation')" }, description: { type: "string", description: "Human-readable description of what this extension point is for" } } } }, registrationAppExtensions: { type: "array", description: "Array of app extension configurations for registration", items: { type: "object", description: "Extension configuration", additionalProperties: !1, required: ["id", "extensionPointId", "type", "requiredPrivilege"], properties: { id: { type: "string", description: "Unique identifier for the extension" }, extensionPointId: { type: "string", description: "Extension point identifier this extension attaches to" }, type: { type: "string", enum: ["link", "startVisit"], description: "Type of extension (e.g., 'link', 'startVisit')" }, translationKey: { type: "string", description: "Translation key for the extension label" }, url: { type: "string", description: "URL path for the extension" }, shortcutKey: { type: "string", description: "Keyboard shortcut key for the extension" }, icon: { type: "string", description: "Icon class name (e.g., FontAwesome class like 'fa-search')" }, order: { type: "number", description: "Display order of the extension" }, kind: { type: "string", enum: ["primary", "secondary", "tertiary", "ghost", "danger"], description: "Button kind/variant (defaults to 'primary' if not specified)" }, requiredPrivilege: { type: "string", description: "Required privilege to access this extension" } } } } }, Ng = {
|
|
11752
11752
|
$schema: $g,
|
|
11753
11753
|
title: Rg,
|
|
11754
11754
|
description: Pg,
|
|
11755
11755
|
type: Tg,
|
|
11756
11756
|
additionalProperties: Og,
|
|
11757
11757
|
properties: Ag
|
|
11758
|
-
}, Ub = async () => zr(
|
|
11758
|
+
}, Ub = async () => zr(Qm, ug), Fb = async (e) => {
|
|
11759
11759
|
const t = await zr(
|
|
11760
11760
|
tg(e),
|
|
11761
11761
|
yg
|
|
@@ -11768,7 +11768,7 @@ const Jp = /* @__PURE__ */ Fm(Yp), xn = "/bahmni_config/openmrs/apps/clinical/v2
|
|
|
11768
11768
|
eg,
|
|
11769
11769
|
Sg
|
|
11770
11770
|
), Hb = async () => zr(
|
|
11771
|
-
|
|
11771
|
+
Zm,
|
|
11772
11772
|
Ng
|
|
11773
11773
|
), zr = async (e, t) => {
|
|
11774
11774
|
try {
|
|
@@ -11791,7 +11791,7 @@ const Jp = /* @__PURE__ */ Fm(Yp), xn = "/bahmni_config/openmrs/apps/clinical/v2
|
|
|
11791
11791
|
const { message: r } = ut(t);
|
|
11792
11792
|
throw new Error(r);
|
|
11793
11793
|
}
|
|
11794
|
-
}, Cg = async (e, t) => new
|
|
11794
|
+
}, Cg = async (e, t) => new Jm().compile(t)(e), Ig = (e) => ie + `/provider?user=${e}&v=custom:(uuid,display,person)`;
|
|
11795
11795
|
async function Bb(e) {
|
|
11796
11796
|
const t = await Q(
|
|
11797
11797
|
Ig(e)
|
|
@@ -11932,7 +11932,7 @@ const Wb = (e) => {
|
|
|
11932
11932
|
message: r ? `${s.message}~${JSON.stringify(r)}` : s.message,
|
|
11933
11933
|
module: n
|
|
11934
11934
|
};
|
|
11935
|
-
return await
|
|
11935
|
+
return await pt(Wg, i), { logged: !0 };
|
|
11936
11936
|
}, Gb = () => Bg(async (t) => {
|
|
11937
11937
|
await Jg(
|
|
11938
11938
|
t.patientUuid,
|
|
@@ -12061,20 +12061,20 @@ export {
|
|
|
12061
12061
|
sb as getGenders,
|
|
12062
12062
|
rb as getIdentifierData,
|
|
12063
12063
|
tb as getIdentifierTypes,
|
|
12064
|
-
|
|
12064
|
+
mb as getInputTypeForFormat,
|
|
12065
12065
|
Vb as getMedicationConfig,
|
|
12066
12066
|
db as getOrderedAddressHierarchyLevels,
|
|
12067
12067
|
Th as getPatientById,
|
|
12068
12068
|
kb as getPatientDiagnoses,
|
|
12069
12069
|
Qy as getPatientImageAsDataUrl,
|
|
12070
12070
|
qb as getPatientLabInvestigations,
|
|
12071
|
-
|
|
12072
|
-
|
|
12071
|
+
Ap as getPatientLabTestsBundle,
|
|
12072
|
+
dp as getPatientMedicationBundle,
|
|
12073
12073
|
Lb as getPatientMedications,
|
|
12074
12074
|
fb as getPatientProfile,
|
|
12075
|
-
|
|
12075
|
+
_p as getPatientRadiologyInvestigationBundle,
|
|
12076
12076
|
Mb as getPatientRadiologyInvestigations,
|
|
12077
|
-
|
|
12077
|
+
pb as getPersonAttributeTypes,
|
|
12078
12078
|
Ih as getPrimaryIdentifierType,
|
|
12079
12079
|
Hy as getPriorityByOrder,
|
|
12080
12080
|
Hb as getRegistrationConfig,
|
|
@@ -12099,7 +12099,7 @@ export {
|
|
|
12099
12099
|
Ry as normalizeTranslationKey,
|
|
12100
12100
|
an as notificationService,
|
|
12101
12101
|
nh as parseQueryParams,
|
|
12102
|
-
|
|
12102
|
+
pt as post,
|
|
12103
12103
|
Ey as put,
|
|
12104
12104
|
Uy as refreshQueries,
|
|
12105
12105
|
Eb as searchAppointmentsByAttribute,
|