@bahmni/services 0.0.1-dev.78 → 0.0.1-dev.80
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/constants/app.d.ts +1 -0
- package/dist/constants/app.d.ts.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +875 -895
- package/dist/patientService/models.d.ts +35 -0
- package/dist/patientService/models.d.ts.map +1 -1
- package/dist/programService/index.d.ts +3 -0
- package/dist/programService/index.d.ts.map +1 -0
- package/dist/programService/model.d.ts +134 -0
- package/dist/programService/model.d.ts.map +1 -0
- package/dist/programService/programService.d.ts +26 -0
- package/dist/programService/programService.d.ts.map +1 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { initReactI18next as di } from "react-i18next";
|
|
2
|
-
import { useTranslation as
|
|
2
|
+
import { useTranslation as fw } from "react-i18next";
|
|
3
3
|
import { useRef as Bn, useCallback as Jr, useEffect as fi } from "react";
|
|
4
4
|
function no(e, t) {
|
|
5
5
|
return function() {
|
|
@@ -1253,14 +1253,14 @@ const _o = (e) => {
|
|
|
1253
1253
|
}
|
|
1254
1254
|
}
|
|
1255
1255
|
D.isString(L) || (L = L ? "include" : "omit");
|
|
1256
|
-
const
|
|
1256
|
+
const Y = a && "credentials" in r.prototype, he = {
|
|
1257
1257
|
...j,
|
|
1258
1258
|
signal: q,
|
|
1259
1259
|
method: f.toUpperCase(),
|
|
1260
1260
|
headers: O.normalize().toJSON(),
|
|
1261
1261
|
body: h,
|
|
1262
1262
|
duplex: "half",
|
|
1263
|
-
credentials:
|
|
1263
|
+
credentials: Y ? L : void 0
|
|
1264
1264
|
};
|
|
1265
1265
|
U = a && new r(g, he);
|
|
1266
1266
|
let ue = await (a ? t(U, j) : t(g, he));
|
|
@@ -1293,13 +1293,13 @@ const _o = (e) => {
|
|
|
1293
1293
|
request: U
|
|
1294
1294
|
});
|
|
1295
1295
|
});
|
|
1296
|
-
} catch (
|
|
1297
|
-
throw F && F(),
|
|
1296
|
+
} catch (Y) {
|
|
1297
|
+
throw F && F(), Y && Y.name === "TypeError" && /Load failed|fetch/i.test(Y.message) ? Object.assign(
|
|
1298
1298
|
new G("Network Error", G.ERR_NETWORK, v, U),
|
|
1299
1299
|
{
|
|
1300
|
-
cause:
|
|
1300
|
+
cause: Y.cause || Y
|
|
1301
1301
|
}
|
|
1302
|
-
) : G.from(
|
|
1302
|
+
) : G.from(Y, Y && Y.code, v, U);
|
|
1303
1303
|
}
|
|
1304
1304
|
};
|
|
1305
1305
|
}, kc = /* @__PURE__ */ new Map(), Ro = (e) => {
|
|
@@ -1735,22 +1735,22 @@ le.getAdapter = Po.getAdapter;
|
|
|
1735
1735
|
le.HttpStatusCode = Pn;
|
|
1736
1736
|
le.default = le;
|
|
1737
1737
|
const {
|
|
1738
|
-
Axios:
|
|
1739
|
-
AxiosError:
|
|
1740
|
-
CanceledError:
|
|
1741
|
-
isCancel:
|
|
1742
|
-
CancelToken:
|
|
1743
|
-
VERSION:
|
|
1744
|
-
all:
|
|
1745
|
-
Cancel:
|
|
1746
|
-
isAxiosError:
|
|
1747
|
-
spread:
|
|
1748
|
-
toFormData:
|
|
1749
|
-
AxiosHeaders:
|
|
1750
|
-
HttpStatusCode:
|
|
1751
|
-
formToJSON:
|
|
1752
|
-
getAdapter:
|
|
1753
|
-
mergeConfig:
|
|
1738
|
+
Axios: hy,
|
|
1739
|
+
AxiosError: py,
|
|
1740
|
+
CanceledError: my,
|
|
1741
|
+
isCancel: gy,
|
|
1742
|
+
CancelToken: yy,
|
|
1743
|
+
VERSION: vy,
|
|
1744
|
+
all: wy,
|
|
1745
|
+
Cancel: by,
|
|
1746
|
+
isAxiosError: Ey,
|
|
1747
|
+
spread: _y,
|
|
1748
|
+
toFormData: Sy,
|
|
1749
|
+
AxiosHeaders: Ry,
|
|
1750
|
+
HttpStatusCode: Py,
|
|
1751
|
+
formToJSON: Ty,
|
|
1752
|
+
getAdapter: $y,
|
|
1753
|
+
mergeConfig: Oy
|
|
1754
1754
|
} = le, ut = (e) => {
|
|
1755
1755
|
let t = "Error", r = "An unexpected error occurred";
|
|
1756
1756
|
if (!e)
|
|
@@ -1941,7 +1941,7 @@ Ye.interceptors.response.use(
|
|
|
1941
1941
|
return Promise.reject(`${t}: ${r}`);
|
|
1942
1942
|
}
|
|
1943
1943
|
);
|
|
1944
|
-
const
|
|
1944
|
+
const K = async (e) => (await Ye.get(e)).data, pt = async (e, t) => (await Ye.post(e, t)).data, Ay = async (e, t) => (await Ye.put(e, t)).data, Ny = async (e) => (await Ye.delete(e)).data, W = (e) => typeof e == "string", yt = () => {
|
|
1945
1945
|
let e, t;
|
|
1946
1946
|
const r = new Promise((n, s) => {
|
|
1947
1947
|
e = n, t = s;
|
|
@@ -2313,17 +2313,17 @@ class $r extends xr {
|
|
|
2313
2313
|
const q = Array.isArray(O), U = q ? [] : {}, F = q ? v : R;
|
|
2314
2314
|
for (const z in O)
|
|
2315
2315
|
if (Object.prototype.hasOwnProperty.call(O, z)) {
|
|
2316
|
-
const
|
|
2317
|
-
p && !y ? U[z] = this.translate(
|
|
2316
|
+
const Y = `${F}${a}${z}`;
|
|
2317
|
+
p && !y ? U[z] = this.translate(Y, {
|
|
2318
2318
|
...r,
|
|
2319
2319
|
defaultValue: ps(S) ? S[z] : void 0,
|
|
2320
2320
|
joinArrays: !1,
|
|
2321
2321
|
ns: i
|
|
2322
|
-
}) : U[z] = this.translate(
|
|
2322
|
+
}) : U[z] = this.translate(Y, {
|
|
2323
2323
|
...r,
|
|
2324
2324
|
joinArrays: !1,
|
|
2325
2325
|
ns: i
|
|
2326
|
-
}), U[z] ===
|
|
2326
|
+
}), U[z] === Y && (U[z] = O[z]);
|
|
2327
2327
|
}
|
|
2328
2328
|
y = U;
|
|
2329
2329
|
}
|
|
@@ -2332,9 +2332,9 @@ class $r extends xr {
|
|
|
2332
2332
|
else {
|
|
2333
2333
|
let q = !1, U = !1;
|
|
2334
2334
|
!this.isValidLookup(y) && p && (q = !0, y = S), this.isValidLookup(y) || (U = !0, y = o);
|
|
2335
|
-
const z = (r.missingKeyNoValueFallbackToKey || this.options.missingKeyNoValueFallbackToKey) && U ? void 0 : y,
|
|
2336
|
-
if (U || q ||
|
|
2337
|
-
if (this.logger.log(
|
|
2335
|
+
const z = (r.missingKeyNoValueFallbackToKey || this.options.missingKeyNoValueFallbackToKey) && U ? void 0 : y, Y = p && S !== y && this.options.updateMissing;
|
|
2336
|
+
if (U || q || Y) {
|
|
2337
|
+
if (this.logger.log(Y ? "updateKey" : "missingKey", d, c, o, Y ? S : y), a) {
|
|
2338
2338
|
const ie = this.resolve(o, {
|
|
2339
2339
|
...r,
|
|
2340
2340
|
keySeparator: !1
|
|
@@ -2349,7 +2349,7 @@ class $r extends xr {
|
|
|
2349
2349
|
else this.options.saveMissingTo === "all" ? he = this.languageUtils.toResolveHierarchy(r.lng || this.language) : he.push(r.lng || this.language);
|
|
2350
2350
|
const ee = (ie, M, $) => {
|
|
2351
2351
|
const C = p && $ !== y ? $ : z;
|
|
2352
|
-
this.options.missingKeyHandler ? this.options.missingKeyHandler(ie, c, M, C,
|
|
2352
|
+
this.options.missingKeyHandler ? this.options.missingKeyHandler(ie, c, M, C, Y, r) : this.backendConnector?.saveMissing && this.backendConnector.saveMissing(ie, c, M, C, Y, r), this.emit("missingKey", ie, c, M, y);
|
|
2353
2353
|
};
|
|
2354
2354
|
this.options.saveMissing && (this.options.saveMissingPlurals && u ? he.forEach((ie) => {
|
|
2355
2355
|
const M = this.pluralResolver.getSuffixes(ie, r);
|
|
@@ -3615,9 +3615,9 @@ class ko {
|
|
|
3615
3615
|
}
|
|
3616
3616
|
}
|
|
3617
3617
|
ko.type = "languageDetector";
|
|
3618
|
-
const Iu = process.env.PUBLIC_URL ?? "/", Pe = "/openmrs/ws/fhir2/R4", ae = "/openmrs/ws/rest/v1", Cu = "/openmrs/ws/rest/v2", ku = "bahmni.user",
|
|
3618
|
+
const Iu = process.env.PUBLIC_URL ?? "/", Pe = "/openmrs/ws/fhir2/R4", ae = "/openmrs/ws/rest/v1", Cu = "/openmrs/ws/rest/v2", ku = "bahmni.user", Dy = "/bahmni/home/index.html", Lu = ae + "/bahmnicore/whoami", Mu = ae + "/bahmnicore/visitLocation/", xu = (e) => `${ae}/bahmniprogramenrollment?patient=${e}&v=full`, qu = "en", Lo = "NG_TRANSLATE_LANG_KEY", ju = (e, t) => Iu + `${e}/locales/locale_${t}.json`, Uu = (e, t) => `/bahmni_config/openmrs/i18n/${e}/locale_${t}.json`, qr = () => localStorage.getItem(Lo) ?? qu, Ps = async (e) => {
|
|
3619
3619
|
try {
|
|
3620
|
-
const t = await
|
|
3620
|
+
const t = await K(e);
|
|
3621
3621
|
return t || (console.error(`Invalid response from ${e}`), {});
|
|
3622
3622
|
} catch (t) {
|
|
3623
3623
|
return console.error(`Failed to load translations from ${e}:`, t), {};
|
|
@@ -3625,25 +3625,25 @@ const Iu = process.env.PUBLIC_URL ?? "/", Pe = "/openmrs/ws/fhir2/R4", ae = "/op
|
|
|
3625
3625
|
}, Ts = async (e, t) => {
|
|
3626
3626
|
let r = {}, n = {};
|
|
3627
3627
|
return r = await Ps(
|
|
3628
|
-
qu(e, t)
|
|
3629
|
-
), n = await Ps(
|
|
3630
3628
|
ju(e, t)
|
|
3629
|
+
), n = await Ps(
|
|
3630
|
+
Uu(e, t)
|
|
3631
3631
|
), {
|
|
3632
3632
|
...r,
|
|
3633
3633
|
...n
|
|
3634
3634
|
};
|
|
3635
|
-
},
|
|
3635
|
+
}, Fu = async (e, t) => {
|
|
3636
3636
|
const r = {};
|
|
3637
3637
|
return r[e] = {
|
|
3638
3638
|
[t]: await Ts(t, e)
|
|
3639
3639
|
}, e !== "en" && (r.en = {
|
|
3640
3640
|
[t]: await Ts(t, "en")
|
|
3641
3641
|
}), r;
|
|
3642
|
-
},
|
|
3642
|
+
}, Iy = (e, t) => {
|
|
3643
3643
|
const r = e.toUpperCase(), n = t.toUpperCase().replace(/\s+/g, "_").replace(/[^A-Z0-9_]/g, "");
|
|
3644
3644
|
return `${r}_${n}`;
|
|
3645
|
-
},
|
|
3646
|
-
const t = qr(), r = await
|
|
3645
|
+
}, Cy = async (e) => {
|
|
3646
|
+
const t = qr(), r = await Fu(t, e);
|
|
3647
3647
|
return await oe.use(ko).use(di).init({
|
|
3648
3648
|
fallbackLng: "en",
|
|
3649
3649
|
ns: [e],
|
|
@@ -3661,7 +3661,7 @@ const Iu = process.env.PUBLIC_URL ?? "/", Pe = "/openmrs/ws/fhir2/R4", ae = "/op
|
|
|
3661
3661
|
}
|
|
3662
3662
|
}), oe;
|
|
3663
3663
|
};
|
|
3664
|
-
function
|
|
3664
|
+
function ky() {
|
|
3665
3665
|
const e = Bn(null), t = Bn(null), r = Jr(async () => {
|
|
3666
3666
|
t.current && (t.current.getTracks().forEach((o) => o.stop()), t.current = null);
|
|
3667
3667
|
const a = await navigator.mediaDevices.getUserMedia({
|
|
@@ -3684,14 +3684,14 @@ function Dy() {
|
|
|
3684
3684
|
}, []);
|
|
3685
3685
|
return fi(() => () => n(), [n]), { videoRef: e, start: r, stop: n, capture: s };
|
|
3686
3686
|
}
|
|
3687
|
-
const
|
|
3687
|
+
const Vu = "bahmni.enableAuditLog", Mo = (e) => `${ae}/bahmnicore/sql/globalproperty?property=${e}`, xo = 6048e5, Hu = 864e5, qo = 6e4, jo = 36e5, $s = /* @__PURE__ */ Symbol.for("constructDateFrom");
|
|
3688
3688
|
function Oe(e, t) {
|
|
3689
3689
|
return typeof e == "function" ? e(t) : e && typeof e == "object" && $s in e ? e[$s](t) : e instanceof Date ? new e.constructor(t) : new Date(t);
|
|
3690
3690
|
}
|
|
3691
3691
|
function ce(e, t) {
|
|
3692
3692
|
return Oe(t || e, e);
|
|
3693
3693
|
}
|
|
3694
|
-
function
|
|
3694
|
+
function Bu(e, t, r) {
|
|
3695
3695
|
const n = ce(e, r?.in);
|
|
3696
3696
|
return isNaN(t) ? Oe(e, NaN) : (t && n.setDate(n.getDate() + t), n);
|
|
3697
3697
|
}
|
|
@@ -3709,9 +3709,9 @@ function jr(e, t, r) {
|
|
|
3709
3709
|
s
|
|
3710
3710
|
), n);
|
|
3711
3711
|
}
|
|
3712
|
-
let
|
|
3712
|
+
let zu = {};
|
|
3713
3713
|
function Ur() {
|
|
3714
|
-
return
|
|
3714
|
+
return zu;
|
|
3715
3715
|
}
|
|
3716
3716
|
function Pt(e, t) {
|
|
3717
3717
|
const r = Ur(), n = t?.weekStartsOn ?? t?.locale?.options?.weekStartsOn ?? r.weekStartsOn ?? r.locale?.options?.weekStartsOn ?? 0, s = ce(e, t?.in), a = s.getDay(), o = (a < n ? 7 : 0) + a - n;
|
|
@@ -3759,9 +3759,9 @@ function Fo(e, t, r) {
|
|
|
3759
3759
|
e,
|
|
3760
3760
|
t
|
|
3761
3761
|
), a = Ar(n), o = Ar(s), i = +a - Os(a), c = +o - Os(o);
|
|
3762
|
-
return Math.round((i - c) /
|
|
3762
|
+
return Math.round((i - c) / Hu);
|
|
3763
3763
|
}
|
|
3764
|
-
function
|
|
3764
|
+
function Wu(e, t) {
|
|
3765
3765
|
const r = Uo(e, t), n = Oe(e, 0);
|
|
3766
3766
|
return n.setFullYear(r, 0, 4), n.setHours(0, 0, 0, 0), Or(n);
|
|
3767
3767
|
}
|
|
@@ -3772,7 +3772,7 @@ function St(e, t) {
|
|
|
3772
3772
|
const r = +ce(e) - +ce(t);
|
|
3773
3773
|
return r < 0 ? -1 : r > 0 ? 1 : r;
|
|
3774
3774
|
}
|
|
3775
|
-
function
|
|
3775
|
+
function Gu(e, t, r) {
|
|
3776
3776
|
const [n, s] = Je(
|
|
3777
3777
|
r?.in,
|
|
3778
3778
|
e,
|
|
@@ -3780,13 +3780,13 @@ function Wu(e, t, r) {
|
|
|
3780
3780
|
);
|
|
3781
3781
|
return +Ar(n) == +Ar(s);
|
|
3782
3782
|
}
|
|
3783
|
-
function
|
|
3783
|
+
function Ku(e) {
|
|
3784
3784
|
return e instanceof Date || typeof e == "object" && Object.prototype.toString.call(e) === "[object Date]";
|
|
3785
3785
|
}
|
|
3786
3786
|
function Nt(e) {
|
|
3787
|
-
return !(!
|
|
3787
|
+
return !(!Ku(e) && typeof e != "number" || isNaN(+ce(e)));
|
|
3788
3788
|
}
|
|
3789
|
-
function
|
|
3789
|
+
function Yu(e, t, r) {
|
|
3790
3790
|
const [n, s] = Je(
|
|
3791
3791
|
r?.in,
|
|
3792
3792
|
e,
|
|
@@ -3794,7 +3794,7 @@ function Ku(e, t, r) {
|
|
|
3794
3794
|
), a = n.getFullYear() - s.getFullYear(), o = n.getMonth() - s.getMonth();
|
|
3795
3795
|
return a * 12 + o;
|
|
3796
3796
|
}
|
|
3797
|
-
function
|
|
3797
|
+
function Ju(e, t, r) {
|
|
3798
3798
|
const [n, s] = Je(
|
|
3799
3799
|
r?.in,
|
|
3800
3800
|
e,
|
|
@@ -3818,17 +3818,17 @@ function As(e, t) {
|
|
|
3818
3818
|
const r = e.getFullYear() - t.getFullYear() || e.getMonth() - t.getMonth() || e.getDate() - t.getDate() || e.getHours() - t.getHours() || e.getMinutes() - t.getMinutes() || e.getSeconds() - t.getSeconds() || e.getMilliseconds() - t.getMilliseconds();
|
|
3819
3819
|
return r < 0 ? -1 : r > 0 ? 1 : r;
|
|
3820
3820
|
}
|
|
3821
|
-
function
|
|
3821
|
+
function Xu(e, t) {
|
|
3822
3822
|
const r = ce(e, t?.in);
|
|
3823
3823
|
return r.setHours(23, 59, 59, 999), r;
|
|
3824
3824
|
}
|
|
3825
|
-
function
|
|
3825
|
+
function Qu(e, t) {
|
|
3826
3826
|
const r = ce(e, t?.in), n = r.getMonth();
|
|
3827
3827
|
return r.setFullYear(r.getFullYear(), n + 1, 0), r.setHours(23, 59, 59, 999), r;
|
|
3828
3828
|
}
|
|
3829
|
-
function
|
|
3829
|
+
function Zu(e, t) {
|
|
3830
3830
|
const r = ce(e, t?.in);
|
|
3831
|
-
return +
|
|
3831
|
+
return +Xu(r, t) == +Qu(r, t);
|
|
3832
3832
|
}
|
|
3833
3833
|
function Ln(e, t, r) {
|
|
3834
3834
|
const [n, s, a] = Je(
|
|
@@ -3837,12 +3837,12 @@ function Ln(e, t, r) {
|
|
|
3837
3837
|
e,
|
|
3838
3838
|
t
|
|
3839
3839
|
), o = St(s, a), i = Math.abs(
|
|
3840
|
-
|
|
3840
|
+
Yu(s, a)
|
|
3841
3841
|
);
|
|
3842
3842
|
if (i < 1) return 0;
|
|
3843
3843
|
s.getMonth() === 1 && s.getDate() > 27 && s.setDate(30), s.setMonth(s.getMonth() - o * i);
|
|
3844
3844
|
let c = St(s, a) === -o;
|
|
3845
|
-
|
|
3845
|
+
Zu(n) && i === 1 && St(n, a) === 1 && (c = !1);
|
|
3846
3846
|
const d = o * (i - +c);
|
|
3847
3847
|
return d === 0 ? 0 : d;
|
|
3848
3848
|
}
|
|
@@ -3851,16 +3851,16 @@ function Mn(e, t, r) {
|
|
|
3851
3851
|
r?.in,
|
|
3852
3852
|
e,
|
|
3853
3853
|
t
|
|
3854
|
-
), a = St(n, s), o = Math.abs(
|
|
3854
|
+
), a = St(n, s), o = Math.abs(Ju(n, s));
|
|
3855
3855
|
n.setFullYear(1584), s.setFullYear(1584);
|
|
3856
3856
|
const i = St(n, s) === -a, c = a * (o - +i);
|
|
3857
3857
|
return c === 0 ? 0 : c;
|
|
3858
3858
|
}
|
|
3859
|
-
function
|
|
3859
|
+
function el(e, t) {
|
|
3860
3860
|
const r = ce(e, t?.in);
|
|
3861
3861
|
return r.setFullYear(r.getFullYear(), 0, 1), r.setHours(0, 0, 0, 0), r;
|
|
3862
3862
|
}
|
|
3863
|
-
const
|
|
3863
|
+
const tl = {
|
|
3864
3864
|
lessThanXSeconds: {
|
|
3865
3865
|
one: "less than a second",
|
|
3866
3866
|
other: "less than {{count}} seconds"
|
|
@@ -3924,7 +3924,7 @@ const el = {
|
|
|
3924
3924
|
}
|
|
3925
3925
|
}, Vo = (e, t, r) => {
|
|
3926
3926
|
let n;
|
|
3927
|
-
const s =
|
|
3927
|
+
const s = tl[e];
|
|
3928
3928
|
return typeof s == "string" ? n = s : t === 1 ? n = s.one : n = s.other.replace("{{count}}", t.toString()), r?.addSuffix ? r.comparison && r.comparison > 0 ? "in " + n : n + " ago" : n;
|
|
3929
3929
|
};
|
|
3930
3930
|
function we(e) {
|
|
@@ -3933,42 +3933,42 @@ function we(e) {
|
|
|
3933
3933
|
return e.formats[r] || e.formats[e.defaultWidth];
|
|
3934
3934
|
};
|
|
3935
3935
|
}
|
|
3936
|
-
const
|
|
3936
|
+
const rl = {
|
|
3937
3937
|
full: "EEEE, MMMM do, y",
|
|
3938
3938
|
long: "MMMM do, y",
|
|
3939
3939
|
medium: "MMM d, y",
|
|
3940
3940
|
short: "MM/dd/yyyy"
|
|
3941
|
-
},
|
|
3941
|
+
}, nl = {
|
|
3942
3942
|
full: "h:mm:ss a zzzz",
|
|
3943
3943
|
long: "h:mm:ss a z",
|
|
3944
3944
|
medium: "h:mm:ss a",
|
|
3945
3945
|
short: "h:mm a"
|
|
3946
|
-
},
|
|
3946
|
+
}, sl = {
|
|
3947
3947
|
full: "{{date}} 'at' {{time}}",
|
|
3948
3948
|
long: "{{date}} 'at' {{time}}",
|
|
3949
3949
|
medium: "{{date}}, {{time}}",
|
|
3950
3950
|
short: "{{date}}, {{time}}"
|
|
3951
|
-
},
|
|
3951
|
+
}, al = {
|
|
3952
3952
|
date: we({
|
|
3953
|
-
formats:
|
|
3953
|
+
formats: rl,
|
|
3954
3954
|
defaultWidth: "full"
|
|
3955
3955
|
}),
|
|
3956
3956
|
time: we({
|
|
3957
|
-
formats:
|
|
3957
|
+
formats: nl,
|
|
3958
3958
|
defaultWidth: "full"
|
|
3959
3959
|
}),
|
|
3960
3960
|
dateTime: we({
|
|
3961
|
-
formats:
|
|
3961
|
+
formats: sl,
|
|
3962
3962
|
defaultWidth: "full"
|
|
3963
3963
|
})
|
|
3964
|
-
},
|
|
3964
|
+
}, ol = {
|
|
3965
3965
|
lastWeek: "'last' eeee 'at' p",
|
|
3966
3966
|
yesterday: "'yesterday at' p",
|
|
3967
3967
|
today: "'today at' p",
|
|
3968
3968
|
tomorrow: "'tomorrow at' p",
|
|
3969
3969
|
nextWeek: "eeee 'at' p",
|
|
3970
3970
|
other: "P"
|
|
3971
|
-
}, Ho = (e, t, r, n) =>
|
|
3971
|
+
}, Ho = (e, t, r, n) => ol[e];
|
|
3972
3972
|
function de(e) {
|
|
3973
3973
|
return (t, r) => {
|
|
3974
3974
|
const n = r?.context ? String(r.context) : "standalone";
|
|
@@ -3984,15 +3984,15 @@ function de(e) {
|
|
|
3984
3984
|
return s[a];
|
|
3985
3985
|
};
|
|
3986
3986
|
}
|
|
3987
|
-
const
|
|
3987
|
+
const il = {
|
|
3988
3988
|
narrow: ["B", "A"],
|
|
3989
3989
|
abbreviated: ["BC", "AD"],
|
|
3990
3990
|
wide: ["Before Christ", "Anno Domini"]
|
|
3991
|
-
},
|
|
3991
|
+
}, cl = {
|
|
3992
3992
|
narrow: ["1", "2", "3", "4"],
|
|
3993
3993
|
abbreviated: ["Q1", "Q2", "Q3", "Q4"],
|
|
3994
3994
|
wide: ["1st quarter", "2nd quarter", "3rd quarter", "4th quarter"]
|
|
3995
|
-
},
|
|
3995
|
+
}, ul = {
|
|
3996
3996
|
narrow: ["J", "F", "M", "A", "M", "J", "J", "A", "S", "O", "N", "D"],
|
|
3997
3997
|
abbreviated: [
|
|
3998
3998
|
"Jan",
|
|
@@ -4022,7 +4022,7 @@ const ol = {
|
|
|
4022
4022
|
"November",
|
|
4023
4023
|
"December"
|
|
4024
4024
|
]
|
|
4025
|
-
},
|
|
4025
|
+
}, ll = {
|
|
4026
4026
|
narrow: ["S", "M", "T", "W", "T", "F", "S"],
|
|
4027
4027
|
short: ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"],
|
|
4028
4028
|
abbreviated: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"],
|
|
@@ -4035,7 +4035,7 @@ const ol = {
|
|
|
4035
4035
|
"Friday",
|
|
4036
4036
|
"Saturday"
|
|
4037
4037
|
]
|
|
4038
|
-
},
|
|
4038
|
+
}, dl = {
|
|
4039
4039
|
narrow: {
|
|
4040
4040
|
am: "a",
|
|
4041
4041
|
pm: "p",
|
|
@@ -4066,7 +4066,7 @@ const ol = {
|
|
|
4066
4066
|
evening: "evening",
|
|
4067
4067
|
night: "night"
|
|
4068
4068
|
}
|
|
4069
|
-
},
|
|
4069
|
+
}, fl = {
|
|
4070
4070
|
narrow: {
|
|
4071
4071
|
am: "a",
|
|
4072
4072
|
pm: "p",
|
|
@@ -4097,7 +4097,7 @@ const ol = {
|
|
|
4097
4097
|
evening: "in the evening",
|
|
4098
4098
|
night: "at night"
|
|
4099
4099
|
}
|
|
4100
|
-
},
|
|
4100
|
+
}, hl = (e, t) => {
|
|
4101
4101
|
const r = Number(e), n = r % 100;
|
|
4102
4102
|
if (n > 20 || n < 10)
|
|
4103
4103
|
switch (n % 10) {
|
|
@@ -4110,28 +4110,28 @@ const ol = {
|
|
|
4110
4110
|
}
|
|
4111
4111
|
return r + "th";
|
|
4112
4112
|
}, Bo = {
|
|
4113
|
-
ordinalNumber:
|
|
4113
|
+
ordinalNumber: hl,
|
|
4114
4114
|
era: de({
|
|
4115
|
-
values:
|
|
4115
|
+
values: il,
|
|
4116
4116
|
defaultWidth: "wide"
|
|
4117
4117
|
}),
|
|
4118
4118
|
quarter: de({
|
|
4119
|
-
values:
|
|
4119
|
+
values: cl,
|
|
4120
4120
|
defaultWidth: "wide",
|
|
4121
4121
|
argumentCallback: (e) => e - 1
|
|
4122
4122
|
}),
|
|
4123
4123
|
month: de({
|
|
4124
|
-
values:
|
|
4124
|
+
values: ul,
|
|
4125
4125
|
defaultWidth: "wide"
|
|
4126
4126
|
}),
|
|
4127
4127
|
day: de({
|
|
4128
|
-
values:
|
|
4128
|
+
values: ll,
|
|
4129
4129
|
defaultWidth: "wide"
|
|
4130
4130
|
}),
|
|
4131
4131
|
dayPeriod: de({
|
|
4132
|
-
values:
|
|
4132
|
+
values: dl,
|
|
4133
4133
|
defaultWidth: "wide",
|
|
4134
|
-
formattingValues:
|
|
4134
|
+
formattingValues: fl,
|
|
4135
4135
|
defaultFormattingWidth: "wide"
|
|
4136
4136
|
})
|
|
4137
4137
|
};
|
|
@@ -4140,9 +4140,9 @@ function fe(e) {
|
|
|
4140
4140
|
const n = r.width, s = n && e.matchPatterns[n] || e.matchPatterns[e.defaultMatchWidth], a = t.match(s);
|
|
4141
4141
|
if (!a)
|
|
4142
4142
|
return null;
|
|
4143
|
-
const o = a[0], i = n && e.parsePatterns[n] || e.parsePatterns[e.defaultParseWidth], c = Array.isArray(i) ?
|
|
4143
|
+
const o = a[0], i = n && e.parsePatterns[n] || e.parsePatterns[e.defaultParseWidth], c = Array.isArray(i) ? ml(i, (m) => m.test(o)) : (
|
|
4144
4144
|
// [TODO] -- I challenge you to fix the type
|
|
4145
|
-
|
|
4145
|
+
pl(i, (m) => m.test(o))
|
|
4146
4146
|
);
|
|
4147
4147
|
let d;
|
|
4148
4148
|
d = e.valueCallback ? e.valueCallback(c) : c, d = r.valueCallback ? (
|
|
@@ -4153,12 +4153,12 @@ function fe(e) {
|
|
|
4153
4153
|
return { value: d, rest: l };
|
|
4154
4154
|
};
|
|
4155
4155
|
}
|
|
4156
|
-
function
|
|
4156
|
+
function pl(e, t) {
|
|
4157
4157
|
for (const r in e)
|
|
4158
4158
|
if (Object.prototype.hasOwnProperty.call(e, r) && t(e[r]))
|
|
4159
4159
|
return r;
|
|
4160
4160
|
}
|
|
4161
|
-
function
|
|
4161
|
+
function ml(e, t) {
|
|
4162
4162
|
for (let r = 0; r < e.length; r++)
|
|
4163
4163
|
if (t(e[r]))
|
|
4164
4164
|
return r;
|
|
@@ -4175,23 +4175,23 @@ function Fr(e) {
|
|
|
4175
4175
|
return { value: o, rest: i };
|
|
4176
4176
|
};
|
|
4177
4177
|
}
|
|
4178
|
-
const
|
|
4178
|
+
const gl = /^(\d+)(th|st|nd|rd)?/i, yl = /\d+/i, vl = {
|
|
4179
4179
|
narrow: /^(b|a)/i,
|
|
4180
4180
|
abbreviated: /^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,
|
|
4181
4181
|
wide: /^(before christ|before common era|anno domini|common era)/i
|
|
4182
|
-
}, vl = {
|
|
4183
|
-
any: [/^b/i, /^(a|c)/i]
|
|
4184
4182
|
}, wl = {
|
|
4183
|
+
any: [/^b/i, /^(a|c)/i]
|
|
4184
|
+
}, bl = {
|
|
4185
4185
|
narrow: /^[1234]/i,
|
|
4186
4186
|
abbreviated: /^q[1234]/i,
|
|
4187
4187
|
wide: /^[1234](th|st|nd|rd)? quarter/i
|
|
4188
|
-
}, bl = {
|
|
4189
|
-
any: [/1/i, /2/i, /3/i, /4/i]
|
|
4190
4188
|
}, El = {
|
|
4189
|
+
any: [/1/i, /2/i, /3/i, /4/i]
|
|
4190
|
+
}, _l = {
|
|
4191
4191
|
narrow: /^[jfmasond]/i,
|
|
4192
4192
|
abbreviated: /^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,
|
|
4193
4193
|
wide: /^(january|february|march|april|may|june|july|august|september|october|november|december)/i
|
|
4194
|
-
},
|
|
4194
|
+
}, Sl = {
|
|
4195
4195
|
narrow: [
|
|
4196
4196
|
/^j/i,
|
|
4197
4197
|
/^f/i,
|
|
@@ -4220,18 +4220,18 @@ const ml = /^(\d+)(th|st|nd|rd)?/i, gl = /\d+/i, yl = {
|
|
|
4220
4220
|
/^n/i,
|
|
4221
4221
|
/^d/i
|
|
4222
4222
|
]
|
|
4223
|
-
},
|
|
4223
|
+
}, Rl = {
|
|
4224
4224
|
narrow: /^[smtwf]/i,
|
|
4225
4225
|
short: /^(su|mo|tu|we|th|fr|sa)/i,
|
|
4226
4226
|
abbreviated: /^(sun|mon|tue|wed|thu|fri|sat)/i,
|
|
4227
4227
|
wide: /^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i
|
|
4228
|
-
},
|
|
4228
|
+
}, Pl = {
|
|
4229
4229
|
narrow: [/^s/i, /^m/i, /^t/i, /^w/i, /^t/i, /^f/i, /^s/i],
|
|
4230
4230
|
any: [/^su/i, /^m/i, /^tu/i, /^w/i, /^th/i, /^f/i, /^sa/i]
|
|
4231
|
-
},
|
|
4231
|
+
}, Tl = {
|
|
4232
4232
|
narrow: /^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,
|
|
4233
4233
|
any: /^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i
|
|
4234
|
-
},
|
|
4234
|
+
}, $l = {
|
|
4235
4235
|
any: {
|
|
4236
4236
|
am: /^a/i,
|
|
4237
4237
|
pm: /^p/i,
|
|
@@ -4244,45 +4244,45 @@ const ml = /^(\d+)(th|st|nd|rd)?/i, gl = /\d+/i, yl = {
|
|
|
4244
4244
|
}
|
|
4245
4245
|
}, zo = {
|
|
4246
4246
|
ordinalNumber: Fr({
|
|
4247
|
-
matchPattern:
|
|
4248
|
-
parsePattern:
|
|
4247
|
+
matchPattern: gl,
|
|
4248
|
+
parsePattern: yl,
|
|
4249
4249
|
valueCallback: (e) => parseInt(e, 10)
|
|
4250
4250
|
}),
|
|
4251
4251
|
era: fe({
|
|
4252
|
-
matchPatterns:
|
|
4252
|
+
matchPatterns: vl,
|
|
4253
4253
|
defaultMatchWidth: "wide",
|
|
4254
|
-
parsePatterns:
|
|
4254
|
+
parsePatterns: wl,
|
|
4255
4255
|
defaultParseWidth: "any"
|
|
4256
4256
|
}),
|
|
4257
4257
|
quarter: fe({
|
|
4258
|
-
matchPatterns:
|
|
4258
|
+
matchPatterns: bl,
|
|
4259
4259
|
defaultMatchWidth: "wide",
|
|
4260
|
-
parsePatterns:
|
|
4260
|
+
parsePatterns: El,
|
|
4261
4261
|
defaultParseWidth: "any",
|
|
4262
4262
|
valueCallback: (e) => e + 1
|
|
4263
4263
|
}),
|
|
4264
4264
|
month: fe({
|
|
4265
|
-
matchPatterns:
|
|
4265
|
+
matchPatterns: _l,
|
|
4266
4266
|
defaultMatchWidth: "wide",
|
|
4267
|
-
parsePatterns:
|
|
4267
|
+
parsePatterns: Sl,
|
|
4268
4268
|
defaultParseWidth: "any"
|
|
4269
4269
|
}),
|
|
4270
4270
|
day: fe({
|
|
4271
|
-
matchPatterns:
|
|
4271
|
+
matchPatterns: Rl,
|
|
4272
4272
|
defaultMatchWidth: "wide",
|
|
4273
|
-
parsePatterns:
|
|
4273
|
+
parsePatterns: Pl,
|
|
4274
4274
|
defaultParseWidth: "any"
|
|
4275
4275
|
}),
|
|
4276
4276
|
dayPeriod: fe({
|
|
4277
|
-
matchPatterns:
|
|
4277
|
+
matchPatterns: Tl,
|
|
4278
4278
|
defaultMatchWidth: "any",
|
|
4279
|
-
parsePatterns:
|
|
4279
|
+
parsePatterns: $l,
|
|
4280
4280
|
defaultParseWidth: "any"
|
|
4281
4281
|
})
|
|
4282
4282
|
}, Wo = {
|
|
4283
4283
|
code: "en-US",
|
|
4284
4284
|
formatDistance: Vo,
|
|
4285
|
-
formatLong:
|
|
4285
|
+
formatLong: al,
|
|
4286
4286
|
formatRelative: Ho,
|
|
4287
4287
|
localize: Bo,
|
|
4288
4288
|
match: zo,
|
|
@@ -4291,12 +4291,12 @@ const ml = /^(\d+)(th|st|nd|rd)?/i, gl = /\d+/i, yl = {
|
|
|
4291
4291
|
firstWeekContainsDate: 1
|
|
4292
4292
|
}
|
|
4293
4293
|
};
|
|
4294
|
-
function
|
|
4294
|
+
function Ol(e, t) {
|
|
4295
4295
|
const r = ce(e, t?.in);
|
|
4296
|
-
return Fo(r,
|
|
4296
|
+
return Fo(r, el(r)) + 1;
|
|
4297
4297
|
}
|
|
4298
|
-
function
|
|
4299
|
-
const r = ce(e, t?.in), n = +Or(r) - +
|
|
4298
|
+
function Al(e, t) {
|
|
4299
|
+
const r = ce(e, t?.in), n = +Or(r) - +Wu(r);
|
|
4300
4300
|
return Math.round(n / xo) + 1;
|
|
4301
4301
|
}
|
|
4302
4302
|
function Go(e, t) {
|
|
@@ -4307,12 +4307,12 @@ function Go(e, t) {
|
|
|
4307
4307
|
const d = Pt(c, t);
|
|
4308
4308
|
return +r >= +i ? n + 1 : +r >= +d ? n : n - 1;
|
|
4309
4309
|
}
|
|
4310
|
-
function
|
|
4310
|
+
function Nl(e, t) {
|
|
4311
4311
|
const r = Ur(), n = t?.firstWeekContainsDate ?? t?.locale?.options?.firstWeekContainsDate ?? r.firstWeekContainsDate ?? r.locale?.options?.firstWeekContainsDate ?? 1, s = Go(e, t), a = Oe(t?.in || e, 0);
|
|
4312
4312
|
return a.setFullYear(s, 0, n), a.setHours(0, 0, 0, 0), Pt(a, t);
|
|
4313
4313
|
}
|
|
4314
|
-
function
|
|
4315
|
-
const r = ce(e, t?.in), n = +Pt(r, t) - +
|
|
4314
|
+
function Dl(e, t) {
|
|
4315
|
+
const r = ce(e, t?.in), n = +Pt(r, t) - +Nl(r, t);
|
|
4316
4316
|
return Math.round(n / xo) + 1;
|
|
4317
4317
|
}
|
|
4318
4318
|
function se(e, t) {
|
|
@@ -4345,7 +4345,6 @@ const je = {
|
|
|
4345
4345
|
return r;
|
|
4346
4346
|
case "aaaaa":
|
|
4347
4347
|
return r[0];
|
|
4348
|
-
case "aaaa":
|
|
4349
4348
|
default:
|
|
4350
4349
|
return r === "am" ? "a.m." : "p.m.";
|
|
4351
4350
|
}
|
|
@@ -4393,8 +4392,6 @@ const je = {
|
|
|
4393
4392
|
// A, B
|
|
4394
4393
|
case "GGGGG":
|
|
4395
4394
|
return r.era(n, { width: "narrow" });
|
|
4396
|
-
// Anno Domini, Before Christ
|
|
4397
|
-
case "GGGG":
|
|
4398
4395
|
default:
|
|
4399
4396
|
return r.era(n, { width: "wide" });
|
|
4400
4397
|
}
|
|
@@ -4459,8 +4456,6 @@ const je = {
|
|
|
4459
4456
|
width: "narrow",
|
|
4460
4457
|
context: "formatting"
|
|
4461
4458
|
});
|
|
4462
|
-
// 1st quarter, 2nd quarter, ...
|
|
4463
|
-
case "QQQQ":
|
|
4464
4459
|
default:
|
|
4465
4460
|
return r.quarter(n, {
|
|
4466
4461
|
width: "wide",
|
|
@@ -4493,8 +4488,6 @@ const je = {
|
|
|
4493
4488
|
width: "narrow",
|
|
4494
4489
|
context: "standalone"
|
|
4495
4490
|
});
|
|
4496
|
-
// 1st quarter, 2nd quarter, ...
|
|
4497
|
-
case "qqqq":
|
|
4498
4491
|
default:
|
|
4499
4492
|
return r.quarter(n, {
|
|
4500
4493
|
width: "wide",
|
|
@@ -4524,8 +4517,6 @@ const je = {
|
|
|
4524
4517
|
width: "narrow",
|
|
4525
4518
|
context: "formatting"
|
|
4526
4519
|
});
|
|
4527
|
-
// January, February, ..., December
|
|
4528
|
-
case "MMMM":
|
|
4529
4520
|
default:
|
|
4530
4521
|
return r.month(n, { width: "wide", context: "formatting" });
|
|
4531
4522
|
}
|
|
@@ -4555,20 +4546,18 @@ const je = {
|
|
|
4555
4546
|
width: "narrow",
|
|
4556
4547
|
context: "standalone"
|
|
4557
4548
|
});
|
|
4558
|
-
// January, February, ..., December
|
|
4559
|
-
case "LLLL":
|
|
4560
4549
|
default:
|
|
4561
4550
|
return r.month(n, { width: "wide", context: "standalone" });
|
|
4562
4551
|
}
|
|
4563
4552
|
},
|
|
4564
4553
|
// Local week of year
|
|
4565
4554
|
w: function(e, t, r, n) {
|
|
4566
|
-
const s =
|
|
4555
|
+
const s = Dl(e, n);
|
|
4567
4556
|
return t === "wo" ? r.ordinalNumber(s, { unit: "week" }) : se(s, t.length);
|
|
4568
4557
|
},
|
|
4569
4558
|
// ISO week of year
|
|
4570
4559
|
I: function(e, t, r) {
|
|
4571
|
-
const n =
|
|
4560
|
+
const n = Al(e);
|
|
4572
4561
|
return t === "Io" ? r.ordinalNumber(n, { unit: "week" }) : se(n, t.length);
|
|
4573
4562
|
},
|
|
4574
4563
|
// Day of the month
|
|
@@ -4577,7 +4566,7 @@ const je = {
|
|
|
4577
4566
|
},
|
|
4578
4567
|
// Day of year
|
|
4579
4568
|
D: function(e, t, r) {
|
|
4580
|
-
const n =
|
|
4569
|
+
const n = Ol(e);
|
|
4581
4570
|
return t === "Do" ? r.ordinalNumber(n, { unit: "dayOfYear" }) : se(n, t.length);
|
|
4582
4571
|
},
|
|
4583
4572
|
// Day of week
|
|
@@ -4604,8 +4593,6 @@ const je = {
|
|
|
4604
4593
|
width: "short",
|
|
4605
4594
|
context: "formatting"
|
|
4606
4595
|
});
|
|
4607
|
-
// Tuesday
|
|
4608
|
-
case "EEEE":
|
|
4609
4596
|
default:
|
|
4610
4597
|
return r.day(n, {
|
|
4611
4598
|
width: "wide",
|
|
@@ -4643,8 +4630,6 @@ const je = {
|
|
|
4643
4630
|
width: "short",
|
|
4644
4631
|
context: "formatting"
|
|
4645
4632
|
});
|
|
4646
|
-
// Tuesday
|
|
4647
|
-
case "eeee":
|
|
4648
4633
|
default:
|
|
4649
4634
|
return r.day(s, {
|
|
4650
4635
|
width: "wide",
|
|
@@ -4682,8 +4667,6 @@ const je = {
|
|
|
4682
4667
|
width: "short",
|
|
4683
4668
|
context: "standalone"
|
|
4684
4669
|
});
|
|
4685
|
-
// Tuesday
|
|
4686
|
-
case "cccc":
|
|
4687
4670
|
default:
|
|
4688
4671
|
return r.day(s, {
|
|
4689
4672
|
width: "wide",
|
|
@@ -4722,8 +4705,6 @@ const je = {
|
|
|
4722
4705
|
width: "short",
|
|
4723
4706
|
context: "formatting"
|
|
4724
4707
|
});
|
|
4725
|
-
// Tuesday
|
|
4726
|
-
case "iiii":
|
|
4727
4708
|
default:
|
|
4728
4709
|
return r.day(n, {
|
|
4729
4710
|
width: "wide",
|
|
@@ -4751,7 +4732,6 @@ const je = {
|
|
|
4751
4732
|
width: "narrow",
|
|
4752
4733
|
context: "formatting"
|
|
4753
4734
|
});
|
|
4754
|
-
case "aaaa":
|
|
4755
4735
|
default:
|
|
4756
4736
|
return r.dayPeriod(s, {
|
|
4757
4737
|
width: "wide",
|
|
@@ -4780,7 +4760,6 @@ const je = {
|
|
|
4780
4760
|
width: "narrow",
|
|
4781
4761
|
context: "formatting"
|
|
4782
4762
|
});
|
|
4783
|
-
case "bbbb":
|
|
4784
4763
|
default:
|
|
4785
4764
|
return r.dayPeriod(s, {
|
|
4786
4765
|
width: "wide",
|
|
@@ -4805,7 +4784,6 @@ const je = {
|
|
|
4805
4784
|
width: "narrow",
|
|
4806
4785
|
context: "formatting"
|
|
4807
4786
|
});
|
|
4808
|
-
case "BBBB":
|
|
4809
4787
|
default:
|
|
4810
4788
|
return r.dayPeriod(s, {
|
|
4811
4789
|
width: "wide",
|
|
@@ -4862,11 +4840,6 @@ const je = {
|
|
|
4862
4840
|
case "XXXX":
|
|
4863
4841
|
case "XX":
|
|
4864
4842
|
return ze(n);
|
|
4865
|
-
// Hours, minutes and optional seconds with `:` delimiter
|
|
4866
|
-
// Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets
|
|
4867
|
-
// so this token always has the same output as `XXX`
|
|
4868
|
-
case "XXXXX":
|
|
4869
|
-
case "XXX":
|
|
4870
4843
|
// Hours and minutes with `:` delimiter
|
|
4871
4844
|
default:
|
|
4872
4845
|
return ze(n, ":");
|
|
@@ -4885,11 +4858,6 @@ const je = {
|
|
|
4885
4858
|
case "xxxx":
|
|
4886
4859
|
case "xx":
|
|
4887
4860
|
return ze(n);
|
|
4888
|
-
// Hours, minutes and optional seconds with `:` delimiter
|
|
4889
|
-
// Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets
|
|
4890
|
-
// so this token always has the same output as `xxx`
|
|
4891
|
-
case "xxxxx":
|
|
4892
|
-
case "xxx":
|
|
4893
4861
|
// Hours and minutes with `:` delimiter
|
|
4894
4862
|
default:
|
|
4895
4863
|
return ze(n, ":");
|
|
@@ -4904,8 +4872,6 @@ const je = {
|
|
|
4904
4872
|
case "OO":
|
|
4905
4873
|
case "OOO":
|
|
4906
4874
|
return "GMT" + Ds(n, ":");
|
|
4907
|
-
// Long
|
|
4908
|
-
case "OOOO":
|
|
4909
4875
|
default:
|
|
4910
4876
|
return "GMT" + ze(n, ":");
|
|
4911
4877
|
}
|
|
@@ -4919,8 +4885,6 @@ const je = {
|
|
|
4919
4885
|
case "zz":
|
|
4920
4886
|
case "zzz":
|
|
4921
4887
|
return "GMT" + Ds(n, ":");
|
|
4922
|
-
// Long
|
|
4923
|
-
case "zzzz":
|
|
4924
4888
|
default:
|
|
4925
4889
|
return "GMT" + ze(n, ":");
|
|
4926
4890
|
}
|
|
@@ -4954,7 +4918,6 @@ const Cs = (e, t) => {
|
|
|
4954
4918
|
return t.date({ width: "medium" });
|
|
4955
4919
|
case "PPP":
|
|
4956
4920
|
return t.date({ width: "long" });
|
|
4957
|
-
case "PPPP":
|
|
4958
4921
|
default:
|
|
4959
4922
|
return t.date({ width: "full" });
|
|
4960
4923
|
}
|
|
@@ -4966,11 +4929,10 @@ const Cs = (e, t) => {
|
|
|
4966
4929
|
return t.time({ width: "medium" });
|
|
4967
4930
|
case "ppp":
|
|
4968
4931
|
return t.time({ width: "long" });
|
|
4969
|
-
case "pppp":
|
|
4970
4932
|
default:
|
|
4971
4933
|
return t.time({ width: "full" });
|
|
4972
4934
|
}
|
|
4973
|
-
},
|
|
4935
|
+
}, Il = (e, t) => {
|
|
4974
4936
|
const r = e.match(/(P+)(p+)?/) || [], n = r[1], s = r[2];
|
|
4975
4937
|
if (!s)
|
|
4976
4938
|
return Cs(e, t);
|
|
@@ -4985,51 +4947,50 @@ const Cs = (e, t) => {
|
|
|
4985
4947
|
case "PPP":
|
|
4986
4948
|
a = t.dateTime({ width: "long" });
|
|
4987
4949
|
break;
|
|
4988
|
-
case "PPPP":
|
|
4989
4950
|
default:
|
|
4990
4951
|
a = t.dateTime({ width: "full" });
|
|
4991
4952
|
break;
|
|
4992
4953
|
}
|
|
4993
4954
|
return a.replace("{{date}}", Cs(n, t)).replace("{{time}}", Ko(s, t));
|
|
4994
|
-
},
|
|
4955
|
+
}, Cl = {
|
|
4995
4956
|
p: Ko,
|
|
4996
|
-
P:
|
|
4997
|
-
},
|
|
4998
|
-
function Ml(e) {
|
|
4999
|
-
return Cl.test(e);
|
|
5000
|
-
}
|
|
4957
|
+
P: Il
|
|
4958
|
+
}, kl = /^D+$/, Ll = /^Y+$/, Ml = ["D", "DD", "YY", "YYYY"];
|
|
5001
4959
|
function xl(e) {
|
|
5002
4960
|
return kl.test(e);
|
|
5003
4961
|
}
|
|
5004
|
-
function ql(e
|
|
5005
|
-
|
|
5006
|
-
if (console.warn(n), Ll.includes(e)) throw new RangeError(n);
|
|
4962
|
+
function ql(e) {
|
|
4963
|
+
return Ll.test(e);
|
|
5007
4964
|
}
|
|
5008
4965
|
function jl(e, t, r) {
|
|
4966
|
+
const n = Ul(e, t, r);
|
|
4967
|
+
if (console.warn(n), Ml.includes(e)) throw new RangeError(n);
|
|
4968
|
+
}
|
|
4969
|
+
function Ul(e, t, r) {
|
|
5009
4970
|
const n = e[0] === "Y" ? "years" : "days of the month";
|
|
5010
4971
|
return `Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${n} to the input \`${r}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`;
|
|
5011
4972
|
}
|
|
5012
|
-
const
|
|
5013
|
-
function
|
|
4973
|
+
const Fl = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, Vl = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, Hl = /^'([^]*?)'?$/, Bl = /''/g, zl = /[a-zA-Z]/;
|
|
4974
|
+
function Wl(e, t, r) {
|
|
5014
4975
|
const n = Ur(), s = r?.locale ?? n.locale ?? Wo, a = r?.firstWeekContainsDate ?? r?.locale?.options?.firstWeekContainsDate ?? n.firstWeekContainsDate ?? n.locale?.options?.firstWeekContainsDate ?? 1, o = r?.weekStartsOn ?? r?.locale?.options?.weekStartsOn ?? n.weekStartsOn ?? n.locale?.options?.weekStartsOn ?? 0, i = ce(e, r?.in);
|
|
5015
4976
|
if (!Nt(i))
|
|
5016
4977
|
throw new RangeError("Invalid time value");
|
|
5017
|
-
let c = t.match(
|
|
4978
|
+
let c = t.match(Vl).map((l) => {
|
|
5018
4979
|
const m = l[0];
|
|
5019
4980
|
if (m === "p" || m === "P") {
|
|
5020
|
-
const y =
|
|
4981
|
+
const y = Cl[m];
|
|
5021
4982
|
return y(l, s.formatLong);
|
|
5022
4983
|
}
|
|
5023
4984
|
return l;
|
|
5024
|
-
}).join("").match(
|
|
4985
|
+
}).join("").match(Fl).map((l) => {
|
|
5025
4986
|
if (l === "''")
|
|
5026
4987
|
return { isToken: !1, value: "'" };
|
|
5027
4988
|
const m = l[0];
|
|
5028
4989
|
if (m === "'")
|
|
5029
|
-
return { isToken: !1, value:
|
|
4990
|
+
return { isToken: !1, value: Gl(l) };
|
|
5030
4991
|
if (Ns[m])
|
|
5031
4992
|
return { isToken: !0, value: l };
|
|
5032
|
-
if (m.match(
|
|
4993
|
+
if (m.match(zl))
|
|
5033
4994
|
throw new RangeError(
|
|
5034
4995
|
"Format string contains an unescaped latin alphabet character `" + m + "`"
|
|
5035
4996
|
);
|
|
@@ -5044,38 +5005,38 @@ function zl(e, t, r) {
|
|
|
5044
5005
|
return c.map((l) => {
|
|
5045
5006
|
if (!l.isToken) return l.value;
|
|
5046
5007
|
const m = l.value;
|
|
5047
|
-
(!r?.useAdditionalWeekYearTokens &&
|
|
5008
|
+
(!r?.useAdditionalWeekYearTokens && ql(m) || !r?.useAdditionalDayOfYearTokens && xl(m)) && jl(m, t, String(e));
|
|
5048
5009
|
const y = Ns[m[0]];
|
|
5049
5010
|
return y(i, m, s.localize, d);
|
|
5050
5011
|
}).join("");
|
|
5051
5012
|
}
|
|
5052
|
-
function
|
|
5053
|
-
const t = e.match(
|
|
5054
|
-
return t ? t[1].replace(
|
|
5013
|
+
function Gl(e) {
|
|
5014
|
+
const t = e.match(Hl);
|
|
5015
|
+
return t ? t[1].replace(Bl, "'") : e;
|
|
5055
5016
|
}
|
|
5056
|
-
function
|
|
5017
|
+
function Kl(e, t) {
|
|
5057
5018
|
return +ce(e) > +ce(t);
|
|
5058
5019
|
}
|
|
5059
|
-
function
|
|
5020
|
+
function Yl(e, t) {
|
|
5060
5021
|
return +ce(e) < +ce(t);
|
|
5061
5022
|
}
|
|
5062
|
-
function
|
|
5063
|
-
return
|
|
5023
|
+
function Jl(e, t, r) {
|
|
5024
|
+
return Bu(e, -t, r);
|
|
5064
5025
|
}
|
|
5065
5026
|
function Yo(e, t) {
|
|
5066
|
-
const r = () => Oe(t?.in, NaN), s =
|
|
5027
|
+
const r = () => Oe(t?.in, NaN), s = ed(e);
|
|
5067
5028
|
let a;
|
|
5068
5029
|
if (s.date) {
|
|
5069
|
-
const d =
|
|
5070
|
-
a =
|
|
5030
|
+
const d = td(s.date, 2);
|
|
5031
|
+
a = rd(d.restDateString, d.year);
|
|
5071
5032
|
}
|
|
5072
5033
|
if (!a || isNaN(+a)) return r();
|
|
5073
5034
|
const o = +a;
|
|
5074
5035
|
let i = 0, c;
|
|
5075
|
-
if (s.time && (i =
|
|
5036
|
+
if (s.time && (i = nd(s.time), isNaN(i)))
|
|
5076
5037
|
return r();
|
|
5077
5038
|
if (s.timezone) {
|
|
5078
|
-
if (c =
|
|
5039
|
+
if (c = sd(s.timezone), isNaN(c)) return r();
|
|
5079
5040
|
} else {
|
|
5080
5041
|
const d = new Date(o + i), l = ce(0, t?.in);
|
|
5081
5042
|
return l.setFullYear(
|
|
@@ -5095,8 +5056,8 @@ const Ct = {
|
|
|
5095
5056
|
dateTimeDelimiter: /[T ]/,
|
|
5096
5057
|
timeZoneDelimiter: /[Z ]/i,
|
|
5097
5058
|
timezone: /([Z+-].*)$/
|
|
5098
|
-
},
|
|
5099
|
-
function
|
|
5059
|
+
}, Xl = /^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/, Ql = /^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/, Zl = /^([+-])(\d{2})(?::?(\d{2}))?$/;
|
|
5060
|
+
function ed(e) {
|
|
5100
5061
|
const t = {}, r = e.split(Ct.dateTimeDelimiter);
|
|
5101
5062
|
let n;
|
|
5102
5063
|
if (r.length > 2)
|
|
@@ -5110,7 +5071,7 @@ function Zl(e) {
|
|
|
5110
5071
|
}
|
|
5111
5072
|
return t;
|
|
5112
5073
|
}
|
|
5113
|
-
function
|
|
5074
|
+
function td(e, t) {
|
|
5114
5075
|
const r = new RegExp(
|
|
5115
5076
|
"^(?:(\\d{4}|[+-]\\d{" + (4 + t) + "})|(\\d{2}|[+-]\\d{" + (2 + t) + "})$)"
|
|
5116
5077
|
), n = e.match(r);
|
|
@@ -5121,66 +5082,66 @@ function ed(e, t) {
|
|
|
5121
5082
|
restDateString: e.slice((n[1] || n[2]).length)
|
|
5122
5083
|
};
|
|
5123
5084
|
}
|
|
5124
|
-
function
|
|
5085
|
+
function rd(e, t) {
|
|
5125
5086
|
if (t === null) return /* @__PURE__ */ new Date(NaN);
|
|
5126
|
-
const r = e.match(
|
|
5087
|
+
const r = e.match(Xl);
|
|
5127
5088
|
if (!r) return /* @__PURE__ */ new Date(NaN);
|
|
5128
5089
|
const n = !!r[4], s = vt(r[1]), a = vt(r[2]) - 1, o = vt(r[3]), i = vt(r[4]), c = vt(r[5]) - 1;
|
|
5129
5090
|
if (n)
|
|
5130
|
-
return
|
|
5091
|
+
return ud(t, i, c) ? ad(t, i, c) : /* @__PURE__ */ new Date(NaN);
|
|
5131
5092
|
{
|
|
5132
5093
|
const d = /* @__PURE__ */ new Date(0);
|
|
5133
|
-
return !
|
|
5094
|
+
return !id(t, a, o) || !cd(t, s) ? /* @__PURE__ */ new Date(NaN) : (d.setUTCFullYear(t, a, Math.max(s, o)), d);
|
|
5134
5095
|
}
|
|
5135
5096
|
}
|
|
5136
5097
|
function vt(e) {
|
|
5137
5098
|
return e ? parseInt(e) : 1;
|
|
5138
5099
|
}
|
|
5139
|
-
function
|
|
5140
|
-
const t = e.match(
|
|
5100
|
+
function nd(e) {
|
|
5101
|
+
const t = e.match(Ql);
|
|
5141
5102
|
if (!t) return NaN;
|
|
5142
5103
|
const r = sn(t[1]), n = sn(t[2]), s = sn(t[3]);
|
|
5143
|
-
return
|
|
5104
|
+
return ld(r, n, s) ? r * jo + n * qo + s * 1e3 : NaN;
|
|
5144
5105
|
}
|
|
5145
5106
|
function sn(e) {
|
|
5146
5107
|
return e && parseFloat(e.replace(",", ".")) || 0;
|
|
5147
5108
|
}
|
|
5148
|
-
function
|
|
5109
|
+
function sd(e) {
|
|
5149
5110
|
if (e === "Z") return 0;
|
|
5150
|
-
const t = e.match(
|
|
5111
|
+
const t = e.match(Zl);
|
|
5151
5112
|
if (!t) return 0;
|
|
5152
5113
|
const r = t[1] === "+" ? -1 : 1, n = parseInt(t[2]), s = t[3] && parseInt(t[3]) || 0;
|
|
5153
|
-
return
|
|
5114
|
+
return dd(n, s) ? r * (n * jo + s * qo) : NaN;
|
|
5154
5115
|
}
|
|
5155
|
-
function
|
|
5116
|
+
function ad(e, t, r) {
|
|
5156
5117
|
const n = /* @__PURE__ */ new Date(0);
|
|
5157
5118
|
n.setUTCFullYear(e, 0, 4);
|
|
5158
5119
|
const s = n.getUTCDay() || 7, a = (t - 1) * 7 + r + 1 - s;
|
|
5159
5120
|
return n.setUTCDate(n.getUTCDate() + a), n;
|
|
5160
5121
|
}
|
|
5161
|
-
const
|
|
5122
|
+
const od = [31, null, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];
|
|
5162
5123
|
function Jo(e) {
|
|
5163
5124
|
return e % 400 === 0 || e % 4 === 0 && e % 100 !== 0;
|
|
5164
5125
|
}
|
|
5165
|
-
function
|
|
5166
|
-
return t >= 0 && t <= 11 && r >= 1 && r <= (
|
|
5126
|
+
function id(e, t, r) {
|
|
5127
|
+
return t >= 0 && t <= 11 && r >= 1 && r <= (od[t] || (Jo(e) ? 29 : 28));
|
|
5167
5128
|
}
|
|
5168
|
-
function
|
|
5129
|
+
function cd(e, t) {
|
|
5169
5130
|
return t >= 1 && t <= (Jo(e) ? 366 : 365);
|
|
5170
5131
|
}
|
|
5171
|
-
function
|
|
5132
|
+
function ud(e, t, r) {
|
|
5172
5133
|
return t >= 1 && t <= 53 && r >= 0 && r <= 6;
|
|
5173
5134
|
}
|
|
5174
|
-
function
|
|
5135
|
+
function ld(e, t, r) {
|
|
5175
5136
|
return e === 24 ? t === 0 && r === 0 : r >= 0 && r < 60 && t >= 0 && t < 60 && e >= 0 && e < 25;
|
|
5176
5137
|
}
|
|
5177
|
-
function
|
|
5138
|
+
function dd(e, t) {
|
|
5178
5139
|
return t >= 0 && t <= 59;
|
|
5179
5140
|
}
|
|
5180
|
-
function
|
|
5141
|
+
function fd(e, t, r) {
|
|
5181
5142
|
return jr(e, -t, r);
|
|
5182
5143
|
}
|
|
5183
|
-
function
|
|
5144
|
+
function hd(e, t, r) {
|
|
5184
5145
|
return kn(e, -t, r);
|
|
5185
5146
|
}
|
|
5186
5147
|
const ks = {
|
|
@@ -5338,11 +5299,11 @@ const ks = {
|
|
|
5338
5299
|
other: "fast {{count}} Jahren"
|
|
5339
5300
|
}
|
|
5340
5301
|
}
|
|
5341
|
-
},
|
|
5302
|
+
}, pd = (e, t, r) => {
|
|
5342
5303
|
let n;
|
|
5343
5304
|
const s = r?.addSuffix ? ks[e].withPreposition : ks[e].standalone;
|
|
5344
5305
|
return typeof s == "string" ? n = s : t === 1 ? n = s.one : n = s.other.replace("{{count}}", String(t)), r?.addSuffix ? r.comparison && r.comparison > 0 ? "in " + n : "vor " + n : n;
|
|
5345
|
-
},
|
|
5306
|
+
}, md = {
|
|
5346
5307
|
full: "EEEE, do MMMM y",
|
|
5347
5308
|
// Montag, 7. Januar 2018
|
|
5348
5309
|
long: "do MMMM y",
|
|
@@ -5351,41 +5312,41 @@ const ks = {
|
|
|
5351
5312
|
// 7. Jan. 2018
|
|
5352
5313
|
short: "dd.MM.y"
|
|
5353
5314
|
// 07.01.2018
|
|
5354
|
-
},
|
|
5315
|
+
}, gd = {
|
|
5355
5316
|
full: "HH:mm:ss zzzz",
|
|
5356
5317
|
long: "HH:mm:ss z",
|
|
5357
5318
|
medium: "HH:mm:ss",
|
|
5358
5319
|
short: "HH:mm"
|
|
5359
|
-
},
|
|
5320
|
+
}, yd = {
|
|
5360
5321
|
full: "{{date}} 'um' {{time}}",
|
|
5361
5322
|
long: "{{date}} 'um' {{time}}",
|
|
5362
5323
|
medium: "{{date}} {{time}}",
|
|
5363
5324
|
short: "{{date}} {{time}}"
|
|
5364
|
-
},
|
|
5325
|
+
}, vd = {
|
|
5365
5326
|
date: we({
|
|
5366
|
-
formats:
|
|
5327
|
+
formats: md,
|
|
5367
5328
|
defaultWidth: "full"
|
|
5368
5329
|
}),
|
|
5369
5330
|
time: we({
|
|
5370
|
-
formats:
|
|
5331
|
+
formats: gd,
|
|
5371
5332
|
defaultWidth: "full"
|
|
5372
5333
|
}),
|
|
5373
5334
|
dateTime: we({
|
|
5374
|
-
formats:
|
|
5335
|
+
formats: yd,
|
|
5375
5336
|
defaultWidth: "full"
|
|
5376
5337
|
})
|
|
5377
|
-
},
|
|
5338
|
+
}, wd = {
|
|
5378
5339
|
lastWeek: "'letzten' eeee 'um' p",
|
|
5379
5340
|
yesterday: "'gestern um' p",
|
|
5380
5341
|
today: "'heute um' p",
|
|
5381
5342
|
tomorrow: "'morgen um' p",
|
|
5382
5343
|
nextWeek: "eeee 'um' p",
|
|
5383
5344
|
other: "P"
|
|
5384
|
-
},
|
|
5345
|
+
}, bd = (e, t, r, n) => wd[e], Ed = {
|
|
5385
5346
|
narrow: ["v.Chr.", "n.Chr."],
|
|
5386
5347
|
abbreviated: ["v.Chr.", "n.Chr."],
|
|
5387
5348
|
wide: ["vor Christus", "nach Christus"]
|
|
5388
|
-
},
|
|
5349
|
+
}, _d = {
|
|
5389
5350
|
narrow: ["1", "2", "3", "4"],
|
|
5390
5351
|
abbreviated: ["Q1", "Q2", "Q3", "Q4"],
|
|
5391
5352
|
wide: ["1. Quartal", "2. Quartal", "3. Quartal", "4. Quartal"]
|
|
@@ -5419,7 +5380,7 @@ const ks = {
|
|
|
5419
5380
|
"November",
|
|
5420
5381
|
"Dezember"
|
|
5421
5382
|
]
|
|
5422
|
-
},
|
|
5383
|
+
}, Sd = {
|
|
5423
5384
|
narrow: An.narrow,
|
|
5424
5385
|
abbreviated: [
|
|
5425
5386
|
"Jan.",
|
|
@@ -5436,7 +5397,7 @@ const ks = {
|
|
|
5436
5397
|
"Dez."
|
|
5437
5398
|
],
|
|
5438
5399
|
wide: An.wide
|
|
5439
|
-
},
|
|
5400
|
+
}, Rd = {
|
|
5440
5401
|
narrow: ["S", "M", "D", "M", "D", "F", "S"],
|
|
5441
5402
|
short: ["So", "Mo", "Di", "Mi", "Do", "Fr", "Sa"],
|
|
5442
5403
|
abbreviated: ["So.", "Mo.", "Di.", "Mi.", "Do.", "Fr.", "Sa."],
|
|
@@ -5449,7 +5410,7 @@ const ks = {
|
|
|
5449
5410
|
"Freitag",
|
|
5450
5411
|
"Samstag"
|
|
5451
5412
|
]
|
|
5452
|
-
},
|
|
5413
|
+
}, Pd = {
|
|
5453
5414
|
narrow: {
|
|
5454
5415
|
am: "vm.",
|
|
5455
5416
|
pm: "nm.",
|
|
@@ -5480,7 +5441,7 @@ const ks = {
|
|
|
5480
5441
|
evening: "Abend",
|
|
5481
5442
|
night: "Nacht"
|
|
5482
5443
|
}
|
|
5483
|
-
},
|
|
5444
|
+
}, Td = {
|
|
5484
5445
|
narrow: {
|
|
5485
5446
|
am: "vm.",
|
|
5486
5447
|
pm: "nm.",
|
|
@@ -5511,49 +5472,49 @@ const ks = {
|
|
|
5511
5472
|
evening: "abends",
|
|
5512
5473
|
night: "nachts"
|
|
5513
5474
|
}
|
|
5514
|
-
},
|
|
5515
|
-
ordinalNumber:
|
|
5475
|
+
}, $d = (e) => Number(e) + ".", Od = {
|
|
5476
|
+
ordinalNumber: $d,
|
|
5516
5477
|
era: de({
|
|
5517
|
-
values:
|
|
5478
|
+
values: Ed,
|
|
5518
5479
|
defaultWidth: "wide"
|
|
5519
5480
|
}),
|
|
5520
5481
|
quarter: de({
|
|
5521
|
-
values:
|
|
5482
|
+
values: _d,
|
|
5522
5483
|
defaultWidth: "wide",
|
|
5523
5484
|
argumentCallback: (e) => e - 1
|
|
5524
5485
|
}),
|
|
5525
5486
|
month: de({
|
|
5526
5487
|
values: An,
|
|
5527
|
-
formattingValues:
|
|
5488
|
+
formattingValues: Sd,
|
|
5528
5489
|
defaultWidth: "wide"
|
|
5529
5490
|
}),
|
|
5530
5491
|
day: de({
|
|
5531
|
-
values:
|
|
5492
|
+
values: Rd,
|
|
5532
5493
|
defaultWidth: "wide"
|
|
5533
5494
|
}),
|
|
5534
5495
|
dayPeriod: de({
|
|
5535
|
-
values:
|
|
5496
|
+
values: Pd,
|
|
5536
5497
|
defaultWidth: "wide",
|
|
5537
|
-
formattingValues:
|
|
5498
|
+
formattingValues: Td,
|
|
5538
5499
|
defaultFormattingWidth: "wide"
|
|
5539
5500
|
})
|
|
5540
|
-
},
|
|
5501
|
+
}, Ad = /^(\d+)(\.)?/i, Nd = /\d+/i, Dd = {
|
|
5541
5502
|
narrow: /^(v\.? ?Chr\.?|n\.? ?Chr\.?)/i,
|
|
5542
5503
|
abbreviated: /^(v\.? ?Chr\.?|n\.? ?Chr\.?)/i,
|
|
5543
5504
|
wide: /^(vor Christus|vor unserer Zeitrechnung|nach Christus|unserer Zeitrechnung)/i
|
|
5544
|
-
}, Dd = {
|
|
5545
|
-
any: [/^v/i, /^n/i]
|
|
5546
5505
|
}, Id = {
|
|
5506
|
+
any: [/^v/i, /^n/i]
|
|
5507
|
+
}, Cd = {
|
|
5547
5508
|
narrow: /^[1234]/i,
|
|
5548
5509
|
abbreviated: /^q[1234]/i,
|
|
5549
5510
|
wide: /^[1234](\.)? Quartal/i
|
|
5550
|
-
}, Cd = {
|
|
5551
|
-
any: [/1/i, /2/i, /3/i, /4/i]
|
|
5552
5511
|
}, kd = {
|
|
5512
|
+
any: [/1/i, /2/i, /3/i, /4/i]
|
|
5513
|
+
}, Ld = {
|
|
5553
5514
|
narrow: /^[jfmasond]/i,
|
|
5554
5515
|
abbreviated: /^(j[aä]n|feb|mär[z]?|apr|mai|jun[i]?|jul[i]?|aug|sep|okt|nov|dez)\.?/i,
|
|
5555
5516
|
wide: /^(januar|februar|märz|april|mai|juni|juli|august|september|oktober|november|dezember)/i
|
|
5556
|
-
},
|
|
5517
|
+
}, Md = {
|
|
5557
5518
|
narrow: [
|
|
5558
5519
|
/^j/i,
|
|
5559
5520
|
/^f/i,
|
|
@@ -5582,18 +5543,18 @@ const ks = {
|
|
|
5582
5543
|
/^n/i,
|
|
5583
5544
|
/^d/i
|
|
5584
5545
|
]
|
|
5585
|
-
},
|
|
5546
|
+
}, xd = {
|
|
5586
5547
|
narrow: /^[smdmf]/i,
|
|
5587
5548
|
short: /^(so|mo|di|mi|do|fr|sa)/i,
|
|
5588
5549
|
abbreviated: /^(son?|mon?|die?|mit?|don?|fre?|sam?)\.?/i,
|
|
5589
5550
|
wide: /^(sonntag|montag|dienstag|mittwoch|donnerstag|freitag|samstag)/i
|
|
5590
|
-
}, xd = {
|
|
5591
|
-
any: [/^so/i, /^mo/i, /^di/i, /^mi/i, /^do/i, /^f/i, /^sa/i]
|
|
5592
5551
|
}, qd = {
|
|
5552
|
+
any: [/^so/i, /^mo/i, /^di/i, /^mi/i, /^do/i, /^f/i, /^sa/i]
|
|
5553
|
+
}, jd = {
|
|
5593
5554
|
narrow: /^(vm\.?|nm\.?|Mitternacht|Mittag|morgens|nachm\.?|abends|nachts)/i,
|
|
5594
5555
|
abbreviated: /^(vorm\.?|nachm\.?|Mitternacht|Mittag|morgens|nachm\.?|abends|nachts)/i,
|
|
5595
5556
|
wide: /^(vormittags|nachmittags|Mitternacht|Mittag|morgens|nachmittags|abends|nachts)/i
|
|
5596
|
-
},
|
|
5557
|
+
}, Ud = {
|
|
5597
5558
|
any: {
|
|
5598
5559
|
am: /^v/i,
|
|
5599
5560
|
pm: /^n/i,
|
|
@@ -5606,86 +5567,86 @@ const ks = {
|
|
|
5606
5567
|
night: /nachts/i
|
|
5607
5568
|
// will never be matched. Night is matched by `pm`
|
|
5608
5569
|
}
|
|
5609
|
-
},
|
|
5570
|
+
}, Fd = {
|
|
5610
5571
|
ordinalNumber: Fr({
|
|
5611
|
-
matchPattern:
|
|
5612
|
-
parsePattern:
|
|
5572
|
+
matchPattern: Ad,
|
|
5573
|
+
parsePattern: Nd,
|
|
5613
5574
|
valueCallback: (e) => parseInt(e)
|
|
5614
5575
|
}),
|
|
5615
5576
|
era: fe({
|
|
5616
|
-
matchPatterns:
|
|
5577
|
+
matchPatterns: Dd,
|
|
5617
5578
|
defaultMatchWidth: "wide",
|
|
5618
|
-
parsePatterns:
|
|
5579
|
+
parsePatterns: Id,
|
|
5619
5580
|
defaultParseWidth: "any"
|
|
5620
5581
|
}),
|
|
5621
5582
|
quarter: fe({
|
|
5622
|
-
matchPatterns:
|
|
5583
|
+
matchPatterns: Cd,
|
|
5623
5584
|
defaultMatchWidth: "wide",
|
|
5624
|
-
parsePatterns:
|
|
5585
|
+
parsePatterns: kd,
|
|
5625
5586
|
defaultParseWidth: "any",
|
|
5626
5587
|
valueCallback: (e) => e + 1
|
|
5627
5588
|
}),
|
|
5628
5589
|
month: fe({
|
|
5629
|
-
matchPatterns:
|
|
5590
|
+
matchPatterns: Ld,
|
|
5630
5591
|
defaultMatchWidth: "wide",
|
|
5631
|
-
parsePatterns:
|
|
5592
|
+
parsePatterns: Md,
|
|
5632
5593
|
defaultParseWidth: "any"
|
|
5633
5594
|
}),
|
|
5634
5595
|
day: fe({
|
|
5635
|
-
matchPatterns:
|
|
5596
|
+
matchPatterns: xd,
|
|
5636
5597
|
defaultMatchWidth: "wide",
|
|
5637
|
-
parsePatterns:
|
|
5598
|
+
parsePatterns: qd,
|
|
5638
5599
|
defaultParseWidth: "any"
|
|
5639
5600
|
}),
|
|
5640
5601
|
dayPeriod: fe({
|
|
5641
|
-
matchPatterns:
|
|
5602
|
+
matchPatterns: jd,
|
|
5642
5603
|
defaultMatchWidth: "wide",
|
|
5643
|
-
parsePatterns:
|
|
5604
|
+
parsePatterns: Ud,
|
|
5644
5605
|
defaultParseWidth: "any"
|
|
5645
5606
|
})
|
|
5646
5607
|
}, Ls = {
|
|
5647
5608
|
code: "de",
|
|
5648
|
-
formatDistance:
|
|
5649
|
-
formatLong:
|
|
5650
|
-
formatRelative:
|
|
5651
|
-
localize:
|
|
5652
|
-
match:
|
|
5609
|
+
formatDistance: pd,
|
|
5610
|
+
formatLong: vd,
|
|
5611
|
+
formatRelative: bd,
|
|
5612
|
+
localize: Od,
|
|
5613
|
+
match: Fd,
|
|
5653
5614
|
options: {
|
|
5654
5615
|
weekStartsOn: 1,
|
|
5655
5616
|
firstWeekContainsDate: 4
|
|
5656
5617
|
}
|
|
5657
|
-
},
|
|
5618
|
+
}, Vd = {
|
|
5658
5619
|
full: "EEEE, d MMMM yyyy",
|
|
5659
5620
|
long: "d MMMM yyyy",
|
|
5660
5621
|
medium: "d MMM yyyy",
|
|
5661
5622
|
short: "dd/MM/yyyy"
|
|
5662
|
-
},
|
|
5623
|
+
}, Hd = {
|
|
5663
5624
|
full: "HH:mm:ss zzzz",
|
|
5664
5625
|
long: "HH:mm:ss z",
|
|
5665
5626
|
medium: "HH:mm:ss",
|
|
5666
5627
|
short: "HH:mm"
|
|
5667
|
-
},
|
|
5628
|
+
}, Bd = {
|
|
5668
5629
|
full: "{{date}} 'at' {{time}}",
|
|
5669
5630
|
long: "{{date}} 'at' {{time}}",
|
|
5670
5631
|
medium: "{{date}}, {{time}}",
|
|
5671
5632
|
short: "{{date}}, {{time}}"
|
|
5672
|
-
},
|
|
5633
|
+
}, zd = {
|
|
5673
5634
|
date: we({
|
|
5674
|
-
formats:
|
|
5635
|
+
formats: Vd,
|
|
5675
5636
|
defaultWidth: "full"
|
|
5676
5637
|
}),
|
|
5677
5638
|
time: we({
|
|
5678
|
-
formats:
|
|
5639
|
+
formats: Hd,
|
|
5679
5640
|
defaultWidth: "full"
|
|
5680
5641
|
}),
|
|
5681
5642
|
dateTime: we({
|
|
5682
|
-
formats:
|
|
5643
|
+
formats: Bd,
|
|
5683
5644
|
defaultWidth: "full"
|
|
5684
5645
|
})
|
|
5685
5646
|
}, Ms = {
|
|
5686
5647
|
code: "en-GB",
|
|
5687
5648
|
formatDistance: Vo,
|
|
5688
|
-
formatLong:
|
|
5649
|
+
formatLong: zd,
|
|
5689
5650
|
formatRelative: Ho,
|
|
5690
5651
|
localize: Bo,
|
|
5691
5652
|
match: zo,
|
|
@@ -5693,7 +5654,7 @@ const ks = {
|
|
|
5693
5654
|
weekStartsOn: 1,
|
|
5694
5655
|
firstWeekContainsDate: 4
|
|
5695
5656
|
}
|
|
5696
|
-
},
|
|
5657
|
+
}, Wd = {
|
|
5697
5658
|
lessThanXSeconds: {
|
|
5698
5659
|
one: "menos de un segundo",
|
|
5699
5660
|
other: "menos de {{count}} segundos"
|
|
@@ -5755,61 +5716,61 @@ const ks = {
|
|
|
5755
5716
|
one: "casi 1 año",
|
|
5756
5717
|
other: "casi {{count}} años"
|
|
5757
5718
|
}
|
|
5758
|
-
},
|
|
5719
|
+
}, Gd = (e, t, r) => {
|
|
5759
5720
|
let n;
|
|
5760
|
-
const s =
|
|
5721
|
+
const s = Wd[e];
|
|
5761
5722
|
return typeof s == "string" ? n = s : t === 1 ? n = s.one : n = s.other.replace("{{count}}", t.toString()), r?.addSuffix ? r.comparison && r.comparison > 0 ? "en " + n : "hace " + n : n;
|
|
5762
|
-
},
|
|
5723
|
+
}, Kd = {
|
|
5763
5724
|
full: "EEEE, d 'de' MMMM 'de' y",
|
|
5764
5725
|
long: "d 'de' MMMM 'de' y",
|
|
5765
5726
|
medium: "d MMM y",
|
|
5766
5727
|
short: "dd/MM/y"
|
|
5767
|
-
},
|
|
5728
|
+
}, Yd = {
|
|
5768
5729
|
full: "HH:mm:ss zzzz",
|
|
5769
5730
|
long: "HH:mm:ss z",
|
|
5770
5731
|
medium: "HH:mm:ss",
|
|
5771
5732
|
short: "HH:mm"
|
|
5772
|
-
},
|
|
5733
|
+
}, Jd = {
|
|
5773
5734
|
full: "{{date}} 'a las' {{time}}",
|
|
5774
5735
|
long: "{{date}} 'a las' {{time}}",
|
|
5775
5736
|
medium: "{{date}}, {{time}}",
|
|
5776
5737
|
short: "{{date}}, {{time}}"
|
|
5777
|
-
},
|
|
5738
|
+
}, Xd = {
|
|
5778
5739
|
date: we({
|
|
5779
|
-
formats:
|
|
5740
|
+
formats: Kd,
|
|
5780
5741
|
defaultWidth: "full"
|
|
5781
5742
|
}),
|
|
5782
5743
|
time: we({
|
|
5783
|
-
formats:
|
|
5744
|
+
formats: Yd,
|
|
5784
5745
|
defaultWidth: "full"
|
|
5785
5746
|
}),
|
|
5786
5747
|
dateTime: we({
|
|
5787
|
-
formats:
|
|
5748
|
+
formats: Jd,
|
|
5788
5749
|
defaultWidth: "full"
|
|
5789
5750
|
})
|
|
5790
|
-
},
|
|
5751
|
+
}, Qd = {
|
|
5791
5752
|
lastWeek: "'el' eeee 'pasado a la' p",
|
|
5792
5753
|
yesterday: "'ayer a la' p",
|
|
5793
5754
|
today: "'hoy a la' p",
|
|
5794
5755
|
tomorrow: "'mañana a la' p",
|
|
5795
5756
|
nextWeek: "eeee 'a la' p",
|
|
5796
5757
|
other: "P"
|
|
5797
|
-
},
|
|
5758
|
+
}, Zd = {
|
|
5798
5759
|
lastWeek: "'el' eeee 'pasado a las' p",
|
|
5799
5760
|
yesterday: "'ayer a las' p",
|
|
5800
5761
|
today: "'hoy a las' p",
|
|
5801
5762
|
tomorrow: "'mañana a las' p",
|
|
5802
5763
|
nextWeek: "eeee 'a las' p",
|
|
5803
5764
|
other: "P"
|
|
5804
|
-
},
|
|
5765
|
+
}, ef = (e, t, r, n) => t.getHours() !== 1 ? Zd[e] : Qd[e], tf = {
|
|
5805
5766
|
narrow: ["AC", "DC"],
|
|
5806
5767
|
abbreviated: ["AC", "DC"],
|
|
5807
5768
|
wide: ["antes de cristo", "después de cristo"]
|
|
5808
|
-
},
|
|
5769
|
+
}, rf = {
|
|
5809
5770
|
narrow: ["1", "2", "3", "4"],
|
|
5810
5771
|
abbreviated: ["T1", "T2", "T3", "T4"],
|
|
5811
5772
|
wide: ["1º trimestre", "2º trimestre", "3º trimestre", "4º trimestre"]
|
|
5812
|
-
},
|
|
5773
|
+
}, nf = {
|
|
5813
5774
|
narrow: ["e", "f", "m", "a", "m", "j", "j", "a", "s", "o", "n", "d"],
|
|
5814
5775
|
abbreviated: [
|
|
5815
5776
|
"ene",
|
|
@@ -5839,7 +5800,7 @@ const ks = {
|
|
|
5839
5800
|
"noviembre",
|
|
5840
5801
|
"diciembre"
|
|
5841
5802
|
]
|
|
5842
|
-
},
|
|
5803
|
+
}, sf = {
|
|
5843
5804
|
narrow: ["d", "l", "m", "m", "j", "v", "s"],
|
|
5844
5805
|
short: ["do", "lu", "ma", "mi", "ju", "vi", "sá"],
|
|
5845
5806
|
abbreviated: ["dom", "lun", "mar", "mié", "jue", "vie", "sáb"],
|
|
@@ -5852,7 +5813,7 @@ const ks = {
|
|
|
5852
5813
|
"viernes",
|
|
5853
5814
|
"sábado"
|
|
5854
5815
|
]
|
|
5855
|
-
},
|
|
5816
|
+
}, af = {
|
|
5856
5817
|
narrow: {
|
|
5857
5818
|
am: "a",
|
|
5858
5819
|
pm: "p",
|
|
@@ -5883,7 +5844,7 @@ const ks = {
|
|
|
5883
5844
|
evening: "tarde",
|
|
5884
5845
|
night: "noche"
|
|
5885
5846
|
}
|
|
5886
|
-
},
|
|
5847
|
+
}, of = {
|
|
5887
5848
|
narrow: {
|
|
5888
5849
|
am: "a",
|
|
5889
5850
|
pm: "p",
|
|
@@ -5914,52 +5875,52 @@ const ks = {
|
|
|
5914
5875
|
evening: "de la tarde",
|
|
5915
5876
|
night: "de la noche"
|
|
5916
5877
|
}
|
|
5917
|
-
},
|
|
5918
|
-
ordinalNumber:
|
|
5878
|
+
}, cf = (e, t) => Number(e) + "º", uf = {
|
|
5879
|
+
ordinalNumber: cf,
|
|
5919
5880
|
era: de({
|
|
5920
|
-
values:
|
|
5881
|
+
values: tf,
|
|
5921
5882
|
defaultWidth: "wide"
|
|
5922
5883
|
}),
|
|
5923
5884
|
quarter: de({
|
|
5924
|
-
values:
|
|
5885
|
+
values: rf,
|
|
5925
5886
|
defaultWidth: "wide",
|
|
5926
5887
|
argumentCallback: (e) => Number(e) - 1
|
|
5927
5888
|
}),
|
|
5928
5889
|
month: de({
|
|
5929
|
-
values:
|
|
5890
|
+
values: nf,
|
|
5930
5891
|
defaultWidth: "wide"
|
|
5931
5892
|
}),
|
|
5932
5893
|
day: de({
|
|
5933
|
-
values:
|
|
5894
|
+
values: sf,
|
|
5934
5895
|
defaultWidth: "wide"
|
|
5935
5896
|
}),
|
|
5936
5897
|
dayPeriod: de({
|
|
5937
|
-
values:
|
|
5898
|
+
values: af,
|
|
5938
5899
|
defaultWidth: "wide",
|
|
5939
|
-
formattingValues:
|
|
5900
|
+
formattingValues: of,
|
|
5940
5901
|
defaultFormattingWidth: "wide"
|
|
5941
5902
|
})
|
|
5942
|
-
},
|
|
5903
|
+
}, lf = /^(\d+)(º)?/i, df = /\d+/i, ff = {
|
|
5943
5904
|
narrow: /^(ac|dc|a|d)/i,
|
|
5944
5905
|
abbreviated: /^(a\.?\s?c\.?|a\.?\s?e\.?\s?c\.?|d\.?\s?c\.?|e\.?\s?c\.?)/i,
|
|
5945
5906
|
wide: /^(antes de cristo|antes de la era com[uú]n|despu[eé]s de cristo|era com[uú]n)/i
|
|
5946
|
-
},
|
|
5907
|
+
}, hf = {
|
|
5947
5908
|
any: [/^ac/i, /^dc/i],
|
|
5948
5909
|
wide: [
|
|
5949
5910
|
/^(antes de cristo|antes de la era com[uú]n)/i,
|
|
5950
5911
|
/^(despu[eé]s de cristo|era com[uú]n)/i
|
|
5951
5912
|
]
|
|
5952
|
-
},
|
|
5913
|
+
}, pf = {
|
|
5953
5914
|
narrow: /^[1234]/i,
|
|
5954
5915
|
abbreviated: /^T[1234]/i,
|
|
5955
5916
|
wide: /^[1234](º)? trimestre/i
|
|
5956
|
-
}, pf = {
|
|
5957
|
-
any: [/1/i, /2/i, /3/i, /4/i]
|
|
5958
5917
|
}, mf = {
|
|
5918
|
+
any: [/1/i, /2/i, /3/i, /4/i]
|
|
5919
|
+
}, gf = {
|
|
5959
5920
|
narrow: /^[efmajsond]/i,
|
|
5960
5921
|
abbreviated: /^(ene|feb|mar|abr|may|jun|jul|ago|sep|oct|nov|dic)/i,
|
|
5961
5922
|
wide: /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i
|
|
5962
|
-
},
|
|
5923
|
+
}, yf = {
|
|
5963
5924
|
narrow: [
|
|
5964
5925
|
/^e/i,
|
|
5965
5926
|
/^f/i,
|
|
@@ -5988,18 +5949,18 @@ const ks = {
|
|
|
5988
5949
|
/^nov/i,
|
|
5989
5950
|
/^dic/i
|
|
5990
5951
|
]
|
|
5991
|
-
},
|
|
5952
|
+
}, vf = {
|
|
5992
5953
|
narrow: /^[dlmjvs]/i,
|
|
5993
5954
|
short: /^(do|lu|ma|mi|ju|vi|s[áa])/i,
|
|
5994
5955
|
abbreviated: /^(dom|lun|mar|mi[ée]|jue|vie|s[áa]b)/i,
|
|
5995
5956
|
wide: /^(domingo|lunes|martes|mi[ée]rcoles|jueves|viernes|s[áa]bado)/i
|
|
5996
|
-
},
|
|
5957
|
+
}, wf = {
|
|
5997
5958
|
narrow: [/^d/i, /^l/i, /^m/i, /^m/i, /^j/i, /^v/i, /^s/i],
|
|
5998
5959
|
any: [/^do/i, /^lu/i, /^ma/i, /^mi/i, /^ju/i, /^vi/i, /^sa/i]
|
|
5999
|
-
},
|
|
5960
|
+
}, bf = {
|
|
6000
5961
|
narrow: /^(a|p|mn|md|(de la|a las) (mañana|tarde|noche))/i,
|
|
6001
5962
|
any: /^([ap]\.?\s?m\.?|medianoche|mediodia|(de la|a las) (mañana|tarde|noche))/i
|
|
6002
|
-
},
|
|
5963
|
+
}, Ef = {
|
|
6003
5964
|
any: {
|
|
6004
5965
|
am: /^a/i,
|
|
6005
5966
|
pm: /^p/i,
|
|
@@ -6010,57 +5971,57 @@ const ks = {
|
|
|
6010
5971
|
evening: /tarde/i,
|
|
6011
5972
|
night: /noche/i
|
|
6012
5973
|
}
|
|
6013
|
-
},
|
|
5974
|
+
}, _f = {
|
|
6014
5975
|
ordinalNumber: Fr({
|
|
6015
|
-
matchPattern:
|
|
6016
|
-
parsePattern:
|
|
5976
|
+
matchPattern: lf,
|
|
5977
|
+
parsePattern: df,
|
|
6017
5978
|
valueCallback: function(e) {
|
|
6018
5979
|
return parseInt(e, 10);
|
|
6019
5980
|
}
|
|
6020
5981
|
}),
|
|
6021
5982
|
era: fe({
|
|
6022
|
-
matchPatterns:
|
|
5983
|
+
matchPatterns: ff,
|
|
6023
5984
|
defaultMatchWidth: "wide",
|
|
6024
|
-
parsePatterns:
|
|
5985
|
+
parsePatterns: hf,
|
|
6025
5986
|
defaultParseWidth: "any"
|
|
6026
5987
|
}),
|
|
6027
5988
|
quarter: fe({
|
|
6028
|
-
matchPatterns:
|
|
5989
|
+
matchPatterns: pf,
|
|
6029
5990
|
defaultMatchWidth: "wide",
|
|
6030
|
-
parsePatterns:
|
|
5991
|
+
parsePatterns: mf,
|
|
6031
5992
|
defaultParseWidth: "any",
|
|
6032
5993
|
valueCallback: (e) => e + 1
|
|
6033
5994
|
}),
|
|
6034
5995
|
month: fe({
|
|
6035
|
-
matchPatterns:
|
|
5996
|
+
matchPatterns: gf,
|
|
6036
5997
|
defaultMatchWidth: "wide",
|
|
6037
|
-
parsePatterns:
|
|
5998
|
+
parsePatterns: yf,
|
|
6038
5999
|
defaultParseWidth: "any"
|
|
6039
6000
|
}),
|
|
6040
6001
|
day: fe({
|
|
6041
|
-
matchPatterns:
|
|
6002
|
+
matchPatterns: vf,
|
|
6042
6003
|
defaultMatchWidth: "wide",
|
|
6043
|
-
parsePatterns:
|
|
6004
|
+
parsePatterns: wf,
|
|
6044
6005
|
defaultParseWidth: "any"
|
|
6045
6006
|
}),
|
|
6046
6007
|
dayPeriod: fe({
|
|
6047
|
-
matchPatterns:
|
|
6008
|
+
matchPatterns: bf,
|
|
6048
6009
|
defaultMatchWidth: "any",
|
|
6049
|
-
parsePatterns:
|
|
6010
|
+
parsePatterns: Ef,
|
|
6050
6011
|
defaultParseWidth: "any"
|
|
6051
6012
|
})
|
|
6052
6013
|
}, xs = {
|
|
6053
6014
|
code: "es",
|
|
6054
|
-
formatDistance:
|
|
6055
|
-
formatLong:
|
|
6056
|
-
formatRelative:
|
|
6057
|
-
localize:
|
|
6058
|
-
match:
|
|
6015
|
+
formatDistance: Gd,
|
|
6016
|
+
formatLong: Xd,
|
|
6017
|
+
formatRelative: ef,
|
|
6018
|
+
localize: uf,
|
|
6019
|
+
match: _f,
|
|
6059
6020
|
options: {
|
|
6060
6021
|
weekStartsOn: 1,
|
|
6061
6022
|
firstWeekContainsDate: 1
|
|
6062
6023
|
}
|
|
6063
|
-
},
|
|
6024
|
+
}, Sf = {
|
|
6064
6025
|
lessThanXSeconds: {
|
|
6065
6026
|
one: "moins d’une seconde",
|
|
6066
6027
|
other: "moins de {{count}} secondes"
|
|
@@ -6122,54 +6083,54 @@ const ks = {
|
|
|
6122
6083
|
one: "presqu’un an",
|
|
6123
6084
|
other: "presque {{count}} ans"
|
|
6124
6085
|
}
|
|
6125
|
-
},
|
|
6086
|
+
}, Rf = (e, t, r) => {
|
|
6126
6087
|
let n;
|
|
6127
|
-
const s =
|
|
6088
|
+
const s = Sf[e];
|
|
6128
6089
|
return typeof s == "string" ? n = s : t === 1 ? n = s.one : n = s.other.replace("{{count}}", String(t)), r?.addSuffix ? r.comparison && r.comparison > 0 ? "dans " + n : "il y a " + n : n;
|
|
6129
|
-
},
|
|
6090
|
+
}, Pf = {
|
|
6130
6091
|
full: "EEEE d MMMM y",
|
|
6131
6092
|
long: "d MMMM y",
|
|
6132
6093
|
medium: "d MMM y",
|
|
6133
6094
|
short: "dd/MM/y"
|
|
6134
|
-
},
|
|
6095
|
+
}, Tf = {
|
|
6135
6096
|
full: "HH:mm:ss zzzz",
|
|
6136
6097
|
long: "HH:mm:ss z",
|
|
6137
6098
|
medium: "HH:mm:ss",
|
|
6138
6099
|
short: "HH:mm"
|
|
6139
|
-
},
|
|
6100
|
+
}, $f = {
|
|
6140
6101
|
full: "{{date}} 'à' {{time}}",
|
|
6141
6102
|
long: "{{date}} 'à' {{time}}",
|
|
6142
6103
|
medium: "{{date}}, {{time}}",
|
|
6143
6104
|
short: "{{date}}, {{time}}"
|
|
6144
|
-
},
|
|
6105
|
+
}, Of = {
|
|
6145
6106
|
date: we({
|
|
6146
|
-
formats:
|
|
6107
|
+
formats: Pf,
|
|
6147
6108
|
defaultWidth: "full"
|
|
6148
6109
|
}),
|
|
6149
6110
|
time: we({
|
|
6150
|
-
formats:
|
|
6111
|
+
formats: Tf,
|
|
6151
6112
|
defaultWidth: "full"
|
|
6152
6113
|
}),
|
|
6153
6114
|
dateTime: we({
|
|
6154
|
-
formats:
|
|
6115
|
+
formats: $f,
|
|
6155
6116
|
defaultWidth: "full"
|
|
6156
6117
|
})
|
|
6157
|
-
},
|
|
6118
|
+
}, Af = {
|
|
6158
6119
|
lastWeek: "eeee 'dernier à' p",
|
|
6159
6120
|
yesterday: "'hier à' p",
|
|
6160
6121
|
today: "'aujourd’hui à' p",
|
|
6161
6122
|
tomorrow: "'demain à' p'",
|
|
6162
6123
|
nextWeek: "eeee 'prochain à' p",
|
|
6163
6124
|
other: "P"
|
|
6164
|
-
},
|
|
6125
|
+
}, Nf = (e, t, r, n) => Af[e], Df = {
|
|
6165
6126
|
narrow: ["av. J.-C", "ap. J.-C"],
|
|
6166
6127
|
abbreviated: ["av. J.-C", "ap. J.-C"],
|
|
6167
6128
|
wide: ["avant Jésus-Christ", "après Jésus-Christ"]
|
|
6168
|
-
},
|
|
6129
|
+
}, If = {
|
|
6169
6130
|
narrow: ["T1", "T2", "T3", "T4"],
|
|
6170
6131
|
abbreviated: ["1er trim.", "2ème trim.", "3ème trim.", "4ème trim."],
|
|
6171
6132
|
wide: ["1er trimestre", "2ème trimestre", "3ème trimestre", "4ème trimestre"]
|
|
6172
|
-
},
|
|
6133
|
+
}, Cf = {
|
|
6173
6134
|
narrow: ["J", "F", "M", "A", "M", "J", "J", "A", "S", "O", "N", "D"],
|
|
6174
6135
|
abbreviated: [
|
|
6175
6136
|
"janv.",
|
|
@@ -6199,7 +6160,7 @@ const ks = {
|
|
|
6199
6160
|
"novembre",
|
|
6200
6161
|
"décembre"
|
|
6201
6162
|
]
|
|
6202
|
-
},
|
|
6163
|
+
}, kf = {
|
|
6203
6164
|
narrow: ["D", "L", "M", "M", "J", "V", "S"],
|
|
6204
6165
|
short: ["di", "lu", "ma", "me", "je", "ve", "sa"],
|
|
6205
6166
|
abbreviated: ["dim.", "lun.", "mar.", "mer.", "jeu.", "ven.", "sam."],
|
|
@@ -6212,7 +6173,7 @@ const ks = {
|
|
|
6212
6173
|
"vendredi",
|
|
6213
6174
|
"samedi"
|
|
6214
6175
|
]
|
|
6215
|
-
},
|
|
6176
|
+
}, Lf = {
|
|
6216
6177
|
narrow: {
|
|
6217
6178
|
am: "AM",
|
|
6218
6179
|
pm: "PM",
|
|
@@ -6243,57 +6204,57 @@ const ks = {
|
|
|
6243
6204
|
evening: "du soir",
|
|
6244
6205
|
night: "du matin"
|
|
6245
6206
|
}
|
|
6246
|
-
},
|
|
6207
|
+
}, Mf = (e, t) => {
|
|
6247
6208
|
const r = Number(e), n = t?.unit;
|
|
6248
6209
|
if (r === 0) return "0";
|
|
6249
6210
|
const s = ["year", "week", "hour", "minute", "second"];
|
|
6250
6211
|
let a;
|
|
6251
6212
|
return r === 1 ? a = n && s.includes(n) ? "ère" : "er" : a = "ème", r + a;
|
|
6252
|
-
},
|
|
6213
|
+
}, xf = ["MMM", "MMMM"], qf = {
|
|
6253
6214
|
preprocessor: (e, t) => e.getDate() === 1 || !t.some(
|
|
6254
|
-
(n) => n.isToken &&
|
|
6215
|
+
(n) => n.isToken && xf.includes(n.value)
|
|
6255
6216
|
) ? t : t.map(
|
|
6256
6217
|
(n) => n.isToken && n.value === "do" ? { isToken: !0, value: "d" } : n
|
|
6257
6218
|
),
|
|
6258
|
-
ordinalNumber:
|
|
6219
|
+
ordinalNumber: Mf,
|
|
6259
6220
|
era: de({
|
|
6260
|
-
values:
|
|
6221
|
+
values: Df,
|
|
6261
6222
|
defaultWidth: "wide"
|
|
6262
6223
|
}),
|
|
6263
6224
|
quarter: de({
|
|
6264
|
-
values:
|
|
6225
|
+
values: If,
|
|
6265
6226
|
defaultWidth: "wide",
|
|
6266
6227
|
argumentCallback: (e) => e - 1
|
|
6267
6228
|
}),
|
|
6268
6229
|
month: de({
|
|
6269
|
-
values:
|
|
6230
|
+
values: Cf,
|
|
6270
6231
|
defaultWidth: "wide"
|
|
6271
6232
|
}),
|
|
6272
6233
|
day: de({
|
|
6273
|
-
values:
|
|
6234
|
+
values: kf,
|
|
6274
6235
|
defaultWidth: "wide"
|
|
6275
6236
|
}),
|
|
6276
6237
|
dayPeriod: de({
|
|
6277
|
-
values:
|
|
6238
|
+
values: Lf,
|
|
6278
6239
|
defaultWidth: "wide"
|
|
6279
6240
|
})
|
|
6280
|
-
},
|
|
6241
|
+
}, jf = /^(\d+)(ième|ère|ème|er|e)?/i, Uf = /\d+/i, Ff = {
|
|
6281
6242
|
narrow: /^(av\.J\.C|ap\.J\.C|ap\.J\.-C)/i,
|
|
6282
6243
|
abbreviated: /^(av\.J\.-C|av\.J-C|apr\.J\.-C|apr\.J-C|ap\.J-C)/i,
|
|
6283
6244
|
wide: /^(avant Jésus-Christ|après Jésus-Christ)/i
|
|
6284
|
-
}, Ff = {
|
|
6285
|
-
any: [/^av/i, /^ap/i]
|
|
6286
6245
|
}, Vf = {
|
|
6246
|
+
any: [/^av/i, /^ap/i]
|
|
6247
|
+
}, Hf = {
|
|
6287
6248
|
narrow: /^T?[1234]/i,
|
|
6288
6249
|
abbreviated: /^[1234](er|ème|e)? trim\.?/i,
|
|
6289
6250
|
wide: /^[1234](er|ème|e)? trimestre/i
|
|
6290
|
-
}, Hf = {
|
|
6291
|
-
any: [/1/i, /2/i, /3/i, /4/i]
|
|
6292
6251
|
}, Bf = {
|
|
6252
|
+
any: [/1/i, /2/i, /3/i, /4/i]
|
|
6253
|
+
}, zf = {
|
|
6293
6254
|
narrow: /^[jfmasond]/i,
|
|
6294
6255
|
abbreviated: /^(janv|févr|mars|avr|mai|juin|juill|juil|août|sept|oct|nov|déc)\.?/i,
|
|
6295
6256
|
wide: /^(janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i
|
|
6296
|
-
},
|
|
6257
|
+
}, Wf = {
|
|
6297
6258
|
narrow: [
|
|
6298
6259
|
/^j/i,
|
|
6299
6260
|
/^f/i,
|
|
@@ -6322,18 +6283,18 @@ const ks = {
|
|
|
6322
6283
|
/^n/i,
|
|
6323
6284
|
/^d/i
|
|
6324
6285
|
]
|
|
6325
|
-
},
|
|
6286
|
+
}, Gf = {
|
|
6326
6287
|
narrow: /^[lmjvsd]/i,
|
|
6327
6288
|
short: /^(di|lu|ma|me|je|ve|sa)/i,
|
|
6328
6289
|
abbreviated: /^(dim|lun|mar|mer|jeu|ven|sam)\.?/i,
|
|
6329
6290
|
wide: /^(dimanche|lundi|mardi|mercredi|jeudi|vendredi|samedi)/i
|
|
6330
|
-
},
|
|
6291
|
+
}, Kf = {
|
|
6331
6292
|
narrow: [/^d/i, /^l/i, /^m/i, /^m/i, /^j/i, /^v/i, /^s/i],
|
|
6332
6293
|
any: [/^di/i, /^lu/i, /^ma/i, /^me/i, /^je/i, /^ve/i, /^sa/i]
|
|
6333
|
-
},
|
|
6294
|
+
}, Yf = {
|
|
6334
6295
|
narrow: /^(a|p|minuit|midi|mat\.?|ap\.?m\.?|soir|nuit)/i,
|
|
6335
6296
|
any: /^([ap]\.?\s?m\.?|du matin|de l'après[-\s]midi|du soir|de la nuit)/i
|
|
6336
|
-
},
|
|
6297
|
+
}, Jf = {
|
|
6337
6298
|
any: {
|
|
6338
6299
|
am: /^a/i,
|
|
6339
6300
|
pm: /^p/i,
|
|
@@ -6344,55 +6305,55 @@ const ks = {
|
|
|
6344
6305
|
evening: /soir/i,
|
|
6345
6306
|
night: /nuit/i
|
|
6346
6307
|
}
|
|
6347
|
-
},
|
|
6308
|
+
}, Xf = {
|
|
6348
6309
|
ordinalNumber: Fr({
|
|
6349
|
-
matchPattern:
|
|
6350
|
-
parsePattern:
|
|
6310
|
+
matchPattern: jf,
|
|
6311
|
+
parsePattern: Uf,
|
|
6351
6312
|
valueCallback: (e) => parseInt(e)
|
|
6352
6313
|
}),
|
|
6353
6314
|
era: fe({
|
|
6354
|
-
matchPatterns:
|
|
6315
|
+
matchPatterns: Ff,
|
|
6355
6316
|
defaultMatchWidth: "wide",
|
|
6356
|
-
parsePatterns:
|
|
6317
|
+
parsePatterns: Vf,
|
|
6357
6318
|
defaultParseWidth: "any"
|
|
6358
6319
|
}),
|
|
6359
6320
|
quarter: fe({
|
|
6360
|
-
matchPatterns:
|
|
6321
|
+
matchPatterns: Hf,
|
|
6361
6322
|
defaultMatchWidth: "wide",
|
|
6362
|
-
parsePatterns:
|
|
6323
|
+
parsePatterns: Bf,
|
|
6363
6324
|
defaultParseWidth: "any",
|
|
6364
6325
|
valueCallback: (e) => e + 1
|
|
6365
6326
|
}),
|
|
6366
6327
|
month: fe({
|
|
6367
|
-
matchPatterns:
|
|
6328
|
+
matchPatterns: zf,
|
|
6368
6329
|
defaultMatchWidth: "wide",
|
|
6369
|
-
parsePatterns:
|
|
6330
|
+
parsePatterns: Wf,
|
|
6370
6331
|
defaultParseWidth: "any"
|
|
6371
6332
|
}),
|
|
6372
6333
|
day: fe({
|
|
6373
|
-
matchPatterns:
|
|
6334
|
+
matchPatterns: Gf,
|
|
6374
6335
|
defaultMatchWidth: "wide",
|
|
6375
|
-
parsePatterns:
|
|
6336
|
+
parsePatterns: Kf,
|
|
6376
6337
|
defaultParseWidth: "any"
|
|
6377
6338
|
}),
|
|
6378
6339
|
dayPeriod: fe({
|
|
6379
|
-
matchPatterns:
|
|
6340
|
+
matchPatterns: Yf,
|
|
6380
6341
|
defaultMatchWidth: "any",
|
|
6381
|
-
parsePatterns:
|
|
6342
|
+
parsePatterns: Jf,
|
|
6382
6343
|
defaultParseWidth: "any"
|
|
6383
6344
|
})
|
|
6384
6345
|
}, qs = {
|
|
6385
6346
|
code: "fr",
|
|
6386
|
-
formatDistance:
|
|
6387
|
-
formatLong:
|
|
6388
|
-
formatRelative:
|
|
6389
|
-
localize:
|
|
6390
|
-
match:
|
|
6347
|
+
formatDistance: Rf,
|
|
6348
|
+
formatLong: Of,
|
|
6349
|
+
formatRelative: Nf,
|
|
6350
|
+
localize: qf,
|
|
6351
|
+
match: Xf,
|
|
6391
6352
|
options: {
|
|
6392
6353
|
weekStartsOn: 1,
|
|
6393
6354
|
firstWeekContainsDate: 4
|
|
6394
6355
|
}
|
|
6395
|
-
},
|
|
6356
|
+
}, Qf = "dd/MM/yyyy", Ly = "MMMM dd, yyyy", My = "do MMM, yyyy", Zf = "dd/MM/yyyy HH:mm", xy = "yyyy-MM-dd", qy = "d/m/Y", $e = {
|
|
6396
6357
|
PARSE_ERROR: "DATE_ERROR_PARSE",
|
|
6397
6358
|
FORMAT_ERROR: "DATE_ERROR_FORMAT",
|
|
6398
6359
|
EMPTY_OR_INVALID: "DATE_ERROR_EMPTY_OR_INVALID",
|
|
@@ -6409,11 +6370,11 @@ const ks = {
|
|
|
6409
6370
|
de: Ls,
|
|
6410
6371
|
"de-DE": Ls
|
|
6411
6372
|
};
|
|
6412
|
-
function
|
|
6373
|
+
function eh() {
|
|
6413
6374
|
const e = qr();
|
|
6414
6375
|
return js[e] || js.en;
|
|
6415
6376
|
}
|
|
6416
|
-
function
|
|
6377
|
+
function th(e) {
|
|
6417
6378
|
if (typeof e != "string" || !/^\d{4}-\d{2}-\d{2}$/.test(e))
|
|
6418
6379
|
return null;
|
|
6419
6380
|
const t = Yo(e);
|
|
@@ -6469,31 +6430,31 @@ function Qo(e, t, r) {
|
|
|
6469
6430
|
message: r($e.INVALID_FORMAT)
|
|
6470
6431
|
}
|
|
6471
6432
|
};
|
|
6472
|
-
const s =
|
|
6473
|
-
return { formattedResult:
|
|
6433
|
+
const s = eh();
|
|
6434
|
+
return { formattedResult: Wl(n, t, { locale: s }) };
|
|
6474
6435
|
}
|
|
6475
|
-
function
|
|
6476
|
-
return Qo(e,
|
|
6436
|
+
function jy(e, t) {
|
|
6437
|
+
return Qo(e, Zf, t);
|
|
6477
6438
|
}
|
|
6478
|
-
function
|
|
6439
|
+
function rh(e, t, r = Qf) {
|
|
6479
6440
|
return Qo(e, r, t);
|
|
6480
6441
|
}
|
|
6481
|
-
function
|
|
6442
|
+
function Uy(e, t, r) {
|
|
6482
6443
|
if (!e || !Nt(e) || t === null || t === void 0 || !r || typeof t != "number")
|
|
6483
6444
|
return;
|
|
6484
6445
|
const n = new Date(e);
|
|
6485
6446
|
switch (r) {
|
|
6486
6447
|
case "days":
|
|
6487
|
-
return
|
|
6448
|
+
return Jl(n, t);
|
|
6488
6449
|
case "months":
|
|
6489
|
-
return dd(n, t);
|
|
6490
|
-
case "years":
|
|
6491
6450
|
return fd(n, t);
|
|
6451
|
+
case "years":
|
|
6452
|
+
return hd(n, t);
|
|
6492
6453
|
default:
|
|
6493
6454
|
return;
|
|
6494
6455
|
}
|
|
6495
6456
|
}
|
|
6496
|
-
function
|
|
6457
|
+
function Fy(e, t) {
|
|
6497
6458
|
if (e == null)
|
|
6498
6459
|
return {
|
|
6499
6460
|
formattedResult: "",
|
|
@@ -6545,11 +6506,11 @@ function qy(e, t) {
|
|
|
6545
6506
|
}
|
|
6546
6507
|
return { formattedResult: c };
|
|
6547
6508
|
}
|
|
6548
|
-
const
|
|
6509
|
+
const Vy = () => {
|
|
6549
6510
|
const e = /* @__PURE__ */ new Date();
|
|
6550
6511
|
return e.setHours(0, 0, 0, 0), e;
|
|
6551
6512
|
};
|
|
6552
|
-
function
|
|
6513
|
+
function Hy(e, t) {
|
|
6553
6514
|
const r = new Date(e), s = new Intl.DateTimeFormat("en-US", {
|
|
6554
6515
|
day: "2-digit",
|
|
6555
6516
|
month: "short",
|
|
@@ -6565,7 +6526,7 @@ function Uy(e, t) {
|
|
|
6565
6526
|
}
|
|
6566
6527
|
return c;
|
|
6567
6528
|
}
|
|
6568
|
-
function
|
|
6529
|
+
function By(e, t) {
|
|
6569
6530
|
const r = new Date(e), n = /* @__PURE__ */ new Date(), s = Mn(n, r), a = kn(r, s), o = Ln(n, a), i = jr(a, o), c = On(n, i);
|
|
6570
6531
|
if (s === 0 && o < 3) {
|
|
6571
6532
|
const m = On(n, r);
|
|
@@ -6580,7 +6541,7 @@ function Fy(e, t) {
|
|
|
6580
6541
|
[c, "REGISTRATION_DAYS_SHORT"]
|
|
6581
6542
|
].filter(([m]) => m > 0).map(([m, y]) => `${m}${t(y, { count: m })}`).join(" ") || "0d" : `${s} years ${o} months ${c} days`;
|
|
6582
6543
|
}
|
|
6583
|
-
function
|
|
6544
|
+
function zy(e, t, r = !1) {
|
|
6584
6545
|
return !e || !Array.isArray(e) ? [] : e.sort((n, s) => {
|
|
6585
6546
|
const a = new Date(n[t]), o = new Date(s[t]);
|
|
6586
6547
|
if (isNaN(a.getTime()) && isNaN(o.getTime())) return 0;
|
|
@@ -6590,18 +6551,18 @@ function Vy(e, t, r = !1) {
|
|
|
6590
6551
|
return r ? i : -i;
|
|
6591
6552
|
});
|
|
6592
6553
|
}
|
|
6593
|
-
const
|
|
6554
|
+
const Wy = (e, t) => {
|
|
6594
6555
|
const r = /* @__PURE__ */ new Date(), n = new Date(r.getFullYear(), r.getMonth(), r.getDate()), s = new Date(e);
|
|
6595
6556
|
return {
|
|
6596
|
-
today: () =>
|
|
6597
|
-
past: () =>
|
|
6598
|
-
future: () =>
|
|
6557
|
+
today: () => Gu(s, n),
|
|
6558
|
+
past: () => Yl(s, n),
|
|
6559
|
+
future: () => Kl(s, n)
|
|
6599
6560
|
}[t]();
|
|
6600
|
-
},
|
|
6561
|
+
}, Gy = async (e, t, r) => {
|
|
6601
6562
|
const { exact: n = !0, refetchActiveNow: s = !0 } = r ?? {};
|
|
6602
6563
|
await e.cancelQueries({ queryKey: t, exact: n }), await e.removeQueries({ queryKey: t, exact: n }), await e.invalidateQueries({ queryKey: t, exact: n }), s && await e.refetchQueries({ queryKey: t, exact: n, type: "active" });
|
|
6603
|
-
},
|
|
6604
|
-
function
|
|
6564
|
+
}, nh = () => Math.random().toString(36).substring(2, 9);
|
|
6565
|
+
function Ky(e, t = " -") {
|
|
6605
6566
|
return e ? e.toLowerCase().split(new RegExp(`[${t}]+`)).map((n) => n.charAt(0).toUpperCase() + n.slice(1)).join(" ") : "";
|
|
6606
6567
|
}
|
|
6607
6568
|
function Zo(e) {
|
|
@@ -6613,7 +6574,7 @@ function Zo(e) {
|
|
|
6613
6574
|
}
|
|
6614
6575
|
return "";
|
|
6615
6576
|
}
|
|
6616
|
-
const
|
|
6577
|
+
const Yy = (e) => !e || e.trim().length === 0, Jy = (e, t) => {
|
|
6617
6578
|
if (!e || !t || t.length === 0)
|
|
6618
6579
|
return 999;
|
|
6619
6580
|
const r = t.findIndex(
|
|
@@ -6621,7 +6582,7 @@ const Wy = (e) => !e || e.trim().length === 0, Gy = (e, t) => {
|
|
|
6621
6582
|
);
|
|
6622
6583
|
return r === -1 ? 999 : r;
|
|
6623
6584
|
};
|
|
6624
|
-
function
|
|
6585
|
+
function Xy(e, t) {
|
|
6625
6586
|
if (!e || e.length === 0)
|
|
6626
6587
|
return [];
|
|
6627
6588
|
const r = /* @__PURE__ */ new Map();
|
|
@@ -6633,7 +6594,7 @@ function Ky(e, t) {
|
|
|
6633
6594
|
items: s
|
|
6634
6595
|
}));
|
|
6635
6596
|
}
|
|
6636
|
-
function
|
|
6597
|
+
function Qy(e, t, r) {
|
|
6637
6598
|
if (!e || e.length === 0)
|
|
6638
6599
|
return [];
|
|
6639
6600
|
const n = /* @__PURE__ */ new Set(), s = /* @__PURE__ */ new Set();
|
|
@@ -6647,28 +6608,28 @@ function Yy(e, t, r) {
|
|
|
6647
6608
|
return !i && !c;
|
|
6648
6609
|
});
|
|
6649
6610
|
}
|
|
6650
|
-
function
|
|
6611
|
+
function sh(e) {
|
|
6651
6612
|
const t = /\+/g, r = /([^&=]+)=?([^&]*)/g, n = (i) => decodeURIComponent(i.replace(t, " ")), s = e ?? window.location.search.substring(1), a = {};
|
|
6652
6613
|
let o;
|
|
6653
6614
|
for (; (o = r.exec(s)) !== null; )
|
|
6654
6615
|
a[n(o[1])] = n(o[2]);
|
|
6655
6616
|
return a;
|
|
6656
6617
|
}
|
|
6657
|
-
function
|
|
6618
|
+
function Zy(e, t, r) {
|
|
6658
6619
|
const n = /{{([^}]*)}}/g, s = e.match(n);
|
|
6659
6620
|
let a = e;
|
|
6660
|
-
const o = r ?? !1, i = o ?
|
|
6621
|
+
const o = r ?? !1, i = o ? sh() : {};
|
|
6661
6622
|
return s && s.forEach((c) => {
|
|
6662
6623
|
const d = c.replace("{{", "").replace("}}", "");
|
|
6663
6624
|
let l = t[d];
|
|
6664
6625
|
!l && o && (l = i[d] || ""), a = a.replace(c, l);
|
|
6665
6626
|
}), a.trim();
|
|
6666
6627
|
}
|
|
6667
|
-
const
|
|
6628
|
+
const ah = (e) => new Promise((t, r) => {
|
|
6668
6629
|
const n = new FileReader();
|
|
6669
6630
|
n.onloadend = () => t(n.result), n.onerror = r, n.readAsDataURL(e);
|
|
6670
|
-
}),
|
|
6671
|
-
async function
|
|
6631
|
+
}), oh = (e) => ae + `/user?username=${e}&v=custom:(username,uuid)`, ih = "bahmni.user.location";
|
|
6632
|
+
async function ev() {
|
|
6672
6633
|
const e = Zo(ku);
|
|
6673
6634
|
if (!e)
|
|
6674
6635
|
return null;
|
|
@@ -6676,14 +6637,14 @@ async function Xy() {
|
|
|
6676
6637
|
const t = decodeURIComponent(e).replace(
|
|
6677
6638
|
/^"(.*)"$/,
|
|
6678
6639
|
"$1"
|
|
6679
|
-
), r = await
|
|
6640
|
+
), r = await K(oh(t));
|
|
6680
6641
|
return !r.results || r.results.length === 0 ? null : r.results[0];
|
|
6681
6642
|
} catch {
|
|
6682
6643
|
throw new Error(oe.t("ERROR_FETCHING_USER_DETAILS"));
|
|
6683
6644
|
}
|
|
6684
6645
|
}
|
|
6685
6646
|
const ei = () => {
|
|
6686
|
-
const e = Zo(
|
|
6647
|
+
const e = Zo(ih) ?? null;
|
|
6687
6648
|
if (!e)
|
|
6688
6649
|
throw new Error(oe.t("ERROR_FETCHING_USER_LOCATION_DETAILS"));
|
|
6689
6650
|
const t = JSON.parse(
|
|
@@ -6703,14 +6664,14 @@ const ei = () => {
|
|
|
6703
6664
|
searchFieldParam: "addressFieldName",
|
|
6704
6665
|
resultParam: "addressSearchResultsConfig"
|
|
6705
6666
|
}
|
|
6706
|
-
},
|
|
6667
|
+
}, ch = (e, t) => {
|
|
6707
6668
|
t.forEach((r) => {
|
|
6708
6669
|
const n = xn[r.type];
|
|
6709
6670
|
n && r.fields.forEach((s) => {
|
|
6710
6671
|
e.append(n.resultParam, s);
|
|
6711
6672
|
});
|
|
6712
6673
|
});
|
|
6713
|
-
},
|
|
6674
|
+
}, uh = (e) => Pe + `/Patient/${e}`, lh = (e, t, r) => {
|
|
6714
6675
|
const n = new URLSearchParams({
|
|
6715
6676
|
filterOnAllIdentifiers: "false",
|
|
6716
6677
|
identifier: e,
|
|
@@ -6725,7 +6686,7 @@ const ei = () => {
|
|
|
6725
6686
|
n.append(a.searchFieldParam, o), n.append(a.resultParam, o);
|
|
6726
6687
|
});
|
|
6727
6688
|
}), `${ae}/bahmni/search/patient/lucene?${n.toString()}`;
|
|
6728
|
-
},
|
|
6689
|
+
}, dh = (e, t, r, n, s) => {
|
|
6729
6690
|
const a = e.trim(), o = new URLSearchParams({
|
|
6730
6691
|
loginLocationUuid: s,
|
|
6731
6692
|
startIndex: "0",
|
|
@@ -6734,39 +6695,39 @@ const ei = () => {
|
|
|
6734
6695
|
}), i = xn[t];
|
|
6735
6696
|
return i && (o.set(i.searchParam, a), r.forEach((c) => {
|
|
6736
6697
|
o.append(i.searchFieldParam, c);
|
|
6737
|
-
})),
|
|
6738
|
-
}, ti = ae + "/idgen/identifiertype",
|
|
6698
|
+
})), ch(o, n), ae + `/bahmni/search/patient?${o.toString()}`;
|
|
6699
|
+
}, ti = ae + "/idgen/identifiertype", fh = (e) => ae + `/bahmni/app/setting?module=${e}`, hh = "bahmni.primaryIdentifierType", ph = ae + "/bahmnicore/patientprofile", mh = (e) => ae + `/bahmnicore/patientprofile/${e}`, gh = (e) => ae + `/patientprofile/${e}?v=full`, yh = ae + "/visit", vh = (e) => ae + `/visit?includeInactive=false&patient=${e}&v=custom:(uuid,visitType,location:(uuid))`, wh = (e) => Mu + `${e}`, bh = (e, t, r = 20, n) => {
|
|
6739
6700
|
let s = `/openmrs/module/addresshierarchy/ajax/getPossibleAddressHierarchyEntriesWithParents.form?addressField=${e}&limit=${r}&searchString=${encodeURIComponent(t)}`;
|
|
6740
6701
|
return n && (s += `&parent=${n}`), s;
|
|
6741
|
-
},
|
|
6702
|
+
}, Eh = "/openmrs/module/addresshierarchy/ajax/getOrderedAddressHierarchyLevels.form", _h = ae + "/relationshiptype?v=custom:(aIsToB,bIsToA,uuid)", Sh = 20, Rh = 2, tv = 120, rv = 50, nv = 15, Ph = /^[a-f0-9-]{36}$/i, Th = () => ae + "/bahmnicore/config/bahmniencounter?callerContext=REGISTRATION_CONCEPTS", $h = (e) => Cu + `/patientImage?patientUuid=${e}`, Oh = ae + "/personattributetype?v=custom:(uuid,name,sortWeight,description,format,concept:(uuid,display,answers:(uuid,name)))", Ah = async (e) => {
|
|
6742
6703
|
if (!e || e.trim() === "")
|
|
6743
6704
|
throw new Error("Invalid patient UUID: UUID cannot be empty");
|
|
6744
|
-
if (!
|
|
6705
|
+
if (!Ph.test(e))
|
|
6745
6706
|
throw new Error(`Invalid patient UUID format: ${e}`);
|
|
6746
|
-
return
|
|
6747
|
-
},
|
|
6707
|
+
return K(uh(e));
|
|
6708
|
+
}, Nh = (e) => !e.extension || !Array.isArray(e.extension) ? [] : e.extension.flatMap((t) => t.extension && Array.isArray(t.extension) ? t.extension.filter((r) => r.valueString).map((r) => r.valueString) : []), Dh = (e) => {
|
|
6748
6709
|
if (!e.name || e.name.length === 0)
|
|
6749
6710
|
return null;
|
|
6750
6711
|
const t = e.name[0], r = t.given?.join(" ") ?? "", n = t.family ?? "";
|
|
6751
6712
|
return !r && !n ? null : `${r} ${n}`.trim();
|
|
6752
|
-
},
|
|
6713
|
+
}, Ih = (e) => {
|
|
6753
6714
|
if (!e) return null;
|
|
6754
6715
|
const t = [
|
|
6755
6716
|
...e.line ?? [],
|
|
6756
6717
|
// Standard address lines
|
|
6757
|
-
...
|
|
6718
|
+
...Nh(e)
|
|
6758
6719
|
// Extracted address extensions
|
|
6759
6720
|
], r = e.city ?? "", n = e.state ?? "", s = e.postalCode ?? "", a = t.filter(Boolean);
|
|
6760
6721
|
return r && a.push(r), n && s ? a.push(`${n} ${s}`) : n ? a.push(n) : s && a.push(s), a.length > 0 ? a.join(", ").trim() : null;
|
|
6761
|
-
},
|
|
6762
|
-
const t = e.address && e.address.length > 0 ?
|
|
6722
|
+
}, Ch = (e) => !e?.system || !e.value ? null : `${e.system}: ${e.value}`, kh = (e) => {
|
|
6723
|
+
const t = e.address && e.address.length > 0 ? Ih(e.address[0]) : null, r = e.telecom && e.telecom.length > 0 ? Ch(e.telecom[0]) : null, n = e.identifier ?? [], s = /* @__PURE__ */ new Map();
|
|
6763
6724
|
n.length > 0 && n.forEach((o) => {
|
|
6764
6725
|
!o.type?.text || !o.value || s.set(o.type.text, o.value);
|
|
6765
6726
|
});
|
|
6766
|
-
const a = e.birthDate ?
|
|
6727
|
+
const a = e.birthDate ? th(e.birthDate) : null;
|
|
6767
6728
|
return {
|
|
6768
6729
|
id: e.id ?? "",
|
|
6769
|
-
fullName:
|
|
6730
|
+
fullName: Dh(e),
|
|
6770
6731
|
gender: e.gender ?? null,
|
|
6771
6732
|
birthDate: e.birthDate ?? null,
|
|
6772
6733
|
formattedAddress: t,
|
|
@@ -6774,23 +6735,23 @@ const ei = () => {
|
|
|
6774
6735
|
identifiers: s,
|
|
6775
6736
|
age: a
|
|
6776
6737
|
};
|
|
6777
|
-
},
|
|
6778
|
-
const t = await
|
|
6779
|
-
return
|
|
6780
|
-
},
|
|
6781
|
-
const t = await fetch(
|
|
6738
|
+
}, sv = async (e) => {
|
|
6739
|
+
const t = await Ah(e);
|
|
6740
|
+
return kh(t);
|
|
6741
|
+
}, av = async (e) => {
|
|
6742
|
+
const t = await fetch($h(e));
|
|
6782
6743
|
if (!t.ok) return null;
|
|
6783
6744
|
const r = await t.blob();
|
|
6784
|
-
return await
|
|
6785
|
-
},
|
|
6745
|
+
return await ah(r);
|
|
6746
|
+
}, ov = async (e, t) => {
|
|
6786
6747
|
const r = ei();
|
|
6787
|
-
return await
|
|
6788
|
-
|
|
6748
|
+
return await K(
|
|
6749
|
+
lh(e, r.uuid, t)
|
|
6789
6750
|
);
|
|
6790
|
-
},
|
|
6751
|
+
}, iv = async (e, t, r, n, s) => {
|
|
6791
6752
|
const a = ei();
|
|
6792
|
-
return await
|
|
6793
|
-
|
|
6753
|
+
return await K(
|
|
6754
|
+
dh(
|
|
6794
6755
|
e,
|
|
6795
6756
|
t,
|
|
6796
6757
|
r,
|
|
@@ -6798,12 +6759,12 @@ const ei = () => {
|
|
|
6798
6759
|
a.uuid
|
|
6799
6760
|
)
|
|
6800
6761
|
);
|
|
6801
|
-
},
|
|
6802
|
-
(r) => r.property ===
|
|
6803
|
-
)?.value ?? null,
|
|
6762
|
+
}, cv = async () => K(ti), Lh = async () => (await K(fh("core"))).find(
|
|
6763
|
+
(r) => r.property === hh
|
|
6764
|
+
)?.value ?? null, uv = async () => {
|
|
6804
6765
|
const [e, t] = await Promise.all([
|
|
6805
|
-
|
|
6806
|
-
|
|
6766
|
+
K(ti),
|
|
6767
|
+
Lh()
|
|
6807
6768
|
]), r = [], n = /* @__PURE__ */ new Map();
|
|
6808
6769
|
if (!t)
|
|
6809
6770
|
return { prefixes: r, sourcesByPrefix: n, primaryIdentifierTypeUuid: null };
|
|
@@ -6817,25 +6778,25 @@ const ei = () => {
|
|
|
6817
6778
|
sourcesByPrefix: n,
|
|
6818
6779
|
primaryIdentifierTypeUuid: t
|
|
6819
6780
|
}) : { prefixes: r, sourcesByPrefix: n, primaryIdentifierTypeUuid: t };
|
|
6820
|
-
},
|
|
6821
|
-
|
|
6781
|
+
}, lv = async (e) => pt(ph, e), dv = async (e, t) => pt(
|
|
6782
|
+
mh(e),
|
|
6822
6783
|
t
|
|
6823
|
-
),
|
|
6824
|
-
if (!t || t.length <
|
|
6784
|
+
), fv = async () => K(Mo("mrs.genders")), hv = async (e, t, r = Sh, n) => {
|
|
6785
|
+
if (!t || t.length < Rh)
|
|
6825
6786
|
return [];
|
|
6826
6787
|
try {
|
|
6827
|
-
return await
|
|
6828
|
-
|
|
6788
|
+
return await K(
|
|
6789
|
+
bh(e, t, r, n)
|
|
6829
6790
|
);
|
|
6830
6791
|
} catch (s) {
|
|
6831
6792
|
throw new Error(
|
|
6832
6793
|
`Failed to fetch address hierarchy for field "${e}": ${s instanceof Error ? s.message : "Unknown error"}`
|
|
6833
6794
|
);
|
|
6834
6795
|
}
|
|
6835
|
-
},
|
|
6796
|
+
}, pv = async () => K(Th()), mv = async (e) => pt(yh, e), gv = async (e) => K(vh(e)), yv = async (e) => K(wh(e)), vv = async () => K(Eh), wv = async (e) => K(gh(e)), bv = async () => {
|
|
6836
6797
|
try {
|
|
6837
|
-
return (await
|
|
6838
|
-
|
|
6798
|
+
return (await K(
|
|
6799
|
+
_h
|
|
6839
6800
|
)).results.map((t) => ({
|
|
6840
6801
|
uuid: t.uuid,
|
|
6841
6802
|
aIsToB: t.aIsToB,
|
|
@@ -6846,19 +6807,19 @@ const ei = () => {
|
|
|
6846
6807
|
`Failed to fetch relationship types: ${e instanceof Error ? e.message : "Unknown error"}`
|
|
6847
6808
|
);
|
|
6848
6809
|
}
|
|
6849
|
-
},
|
|
6850
|
-
var
|
|
6851
|
-
const
|
|
6852
|
-
|
|
6810
|
+
}, Ev = async () => K(Oh);
|
|
6811
|
+
var Mh = /* @__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))(Mh || {}), xh = /* @__PURE__ */ ((e) => (e.CHECKBOX = "checkbox", e.DROPDOWN = "dropdown", e.TEXT = "text", e.NUMBER = "number", e.DATE = "date", e))(xh || {});
|
|
6812
|
+
const _v = (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", Sv = (e) => e === "java.lang.Boolean" || e === "org.openmrs.customdatatype.datatype.BooleanDatatype", Rv = (e) => e === "org.openmrs.Concept" || e === "org.bahmni.module.bahmnicore.customdatatype.datatype.CodedConceptDatatype" || e === "org.openmrs.customdatatype.datatype.ConceptDatatype", Pv = (e) => e === "java.lang.Integer" || e === "java.lang.Float", Tv = (e) => e === "org.openmrs.util.AttributableDate" || e === "org.openmrs.customdatatype.datatype.DateDatatype", $v = (e) => e === "java.lang.String" || e === "org.openmrs.customdatatype.datatype.FreeTextDatatype" || e === "org.openmrs.customdatatype.datatype.RegexValidatedTextDatatype", qh = ae + "/appointments/search", ri = ae + "/appointments", Ov = async (e) => await pt(
|
|
6813
|
+
qh,
|
|
6853
6814
|
e
|
|
6854
|
-
),
|
|
6815
|
+
), Av = async (e, t, r) => await pt(
|
|
6855
6816
|
`${ri}/${e}/status-change`,
|
|
6856
6817
|
{ toStatus: t, onDate: r }
|
|
6857
6818
|
);
|
|
6858
|
-
async function
|
|
6859
|
-
return await
|
|
6819
|
+
async function Nv(e) {
|
|
6820
|
+
return await K(`${ri}/${e}`);
|
|
6860
6821
|
}
|
|
6861
|
-
const
|
|
6822
|
+
const jh = () => {
|
|
6862
6823
|
let e = null;
|
|
6863
6824
|
return {
|
|
6864
6825
|
// Method to register the callback
|
|
@@ -6887,20 +6848,20 @@ const qh = () => {
|
|
|
6887
6848
|
);
|
|
6888
6849
|
}
|
|
6889
6850
|
};
|
|
6890
|
-
}, an =
|
|
6891
|
-
const r = qr(), n =
|
|
6892
|
-
return
|
|
6851
|
+
}, an = jh(), Uh = (e) => Pe + `/ValueSet/${e}/$expand`, Fh = (e) => Pe + `/ValueSet/$expand?filter=${encodeURIComponent(e)}`, Vh = (e, t, r) => ae + `/bahmni/terminologies/concepts?limit=${t}&locale=${r}&term=${e}`, Hh = (e) => ae + `/concept/${e}`, Dv = async (e, t = 20) => {
|
|
6852
|
+
const r = qr(), n = Vh(e, t, r);
|
|
6853
|
+
return K(n);
|
|
6893
6854
|
}, Er = async (e) => {
|
|
6894
|
-
const t =
|
|
6895
|
-
return
|
|
6896
|
-
},
|
|
6897
|
-
const t = `${
|
|
6898
|
-
return
|
|
6855
|
+
const t = Uh(e);
|
|
6856
|
+
return K(t);
|
|
6857
|
+
}, Bh = async (e) => {
|
|
6858
|
+
const t = `${Fh(e)}`;
|
|
6859
|
+
return K(t);
|
|
6899
6860
|
};
|
|
6900
|
-
async function
|
|
6901
|
-
return await
|
|
6861
|
+
async function Iv(e) {
|
|
6862
|
+
return await K(Hh(e));
|
|
6902
6863
|
}
|
|
6903
|
-
const
|
|
6864
|
+
const zh = (e) => Pe + `/AllergyIntolerance?patient=${e}&_count=100&_sort=-_lastUpdated`, nt = {
|
|
6904
6865
|
FOOD: {
|
|
6905
6866
|
code: "162553AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
|
|
6906
6867
|
display: "food"
|
|
@@ -6913,16 +6874,16 @@ const Bh = (e) => Pe + `/AllergyIntolerance?patient=${e}&_count=100&_sort=-_last
|
|
|
6913
6874
|
code: "162554AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
|
|
6914
6875
|
display: "environment"
|
|
6915
6876
|
}
|
|
6916
|
-
},
|
|
6877
|
+
}, Wh = {
|
|
6917
6878
|
code: "162555AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
|
|
6918
|
-
},
|
|
6879
|
+
}, Gh = (e) => e.filter((t) => t.inactive !== !0), Kh = (e, t) => ({
|
|
6919
6880
|
uuid: e.code ?? "",
|
|
6920
6881
|
display: e.display ?? "",
|
|
6921
6882
|
type: t
|
|
6922
6883
|
}), on = (e, t) => {
|
|
6923
6884
|
const r = e.expansion?.contains ?? [];
|
|
6924
|
-
return
|
|
6925
|
-
},
|
|
6885
|
+
return Gh(r).map((s) => Kh(s, t));
|
|
6886
|
+
}, Cv = async (e, t, r) => {
|
|
6926
6887
|
const n = e ?? nt.MEDICATION.code, s = t ?? nt.FOOD.code, a = r ?? nt.ENVIRONMENT.code, [o, i, c] = await Promise.all([
|
|
6927
6888
|
Er(n),
|
|
6928
6889
|
Er(s),
|
|
@@ -6942,19 +6903,19 @@ const Bh = (e) => Pe + `/AllergyIntolerance?patient=${e}&_count=100&_sort=-_last
|
|
|
6942
6903
|
nt.ENVIRONMENT.display
|
|
6943
6904
|
)
|
|
6944
6905
|
];
|
|
6945
|
-
},
|
|
6946
|
-
const t = e ??
|
|
6906
|
+
}, kv = async (e) => {
|
|
6907
|
+
const t = e ?? Wh.code;
|
|
6947
6908
|
return (await Er(t)).compose?.include[0]?.concept ?? [];
|
|
6948
6909
|
};
|
|
6949
|
-
async function Kh(e) {
|
|
6950
|
-
return await J(`${Bh(e)}`);
|
|
6951
|
-
}
|
|
6952
6910
|
async function Yh(e) {
|
|
6953
|
-
return
|
|
6911
|
+
return await K(`${zh(e)}`);
|
|
6912
|
+
}
|
|
6913
|
+
async function Jh(e) {
|
|
6914
|
+
return (await Yh(e)).entry?.map(
|
|
6954
6915
|
(r) => r.resource
|
|
6955
6916
|
) ?? [];
|
|
6956
6917
|
}
|
|
6957
|
-
function
|
|
6918
|
+
function Xh(e) {
|
|
6958
6919
|
return e.map((t) => {
|
|
6959
6920
|
const r = t.clinicalStatus?.coding?.[0]?.display ?? "Unknown", n = t.reaction?.[0]?.severity ?? "Unknown";
|
|
6960
6921
|
return {
|
|
@@ -6976,19 +6937,19 @@ function Jh(e) {
|
|
|
6976
6937
|
};
|
|
6977
6938
|
});
|
|
6978
6939
|
}
|
|
6979
|
-
async function
|
|
6980
|
-
const t = await
|
|
6981
|
-
return
|
|
6940
|
+
async function Lv(e) {
|
|
6941
|
+
const t = await Jh(e);
|
|
6942
|
+
return Xh(t);
|
|
6982
6943
|
}
|
|
6983
|
-
var
|
|
6984
|
-
const
|
|
6985
|
-
async function
|
|
6986
|
-
return await
|
|
6944
|
+
var Qh = /* @__PURE__ */ ((e) => (e.Active = "Active", e.Inactive = "Inactive", e))(Qh || {}), Zh = /* @__PURE__ */ ((e) => (e.mild = "mild", e.moderate = "moderate", e.severe = "severe", e))(Zh || {});
|
|
6945
|
+
const Mv = "http://fhir.openmrs.org/code-system/encounter-type", ep = "problem-list-item", xv = "http://terminology.hl7.org/CodeSystem/condition-ver-status", tp = "encounter-diagnosis", qv = "http://terminology.hl7.org/CodeSystem/condition-clinical", jv = "http://terminology.hl7.org/CodeSystem/condition-category", rp = (e) => Pe + `/Condition?category=${ep}&patient=${e}&_count=100&_sort=-_lastUpdated`;
|
|
6946
|
+
async function np(e) {
|
|
6947
|
+
return await K(`${rp(e)}`);
|
|
6987
6948
|
}
|
|
6988
|
-
async function
|
|
6989
|
-
return (await
|
|
6949
|
+
async function Uv(e) {
|
|
6950
|
+
return (await np(e)).entry?.filter((n) => n.resource?.resourceType === "Condition").map((n) => n.resource) ?? [];
|
|
6990
6951
|
}
|
|
6991
|
-
const
|
|
6952
|
+
const sp = (e) => Pe + `/Condition?category=${tp}&patient=${e}&_count=100&_sort=-_lastUpdated`, cn = [
|
|
6992
6953
|
{
|
|
6993
6954
|
code: "confirmed",
|
|
6994
6955
|
display: "CERTAINITY_CONFIRMED",
|
|
@@ -6999,26 +6960,26 @@ const np = (e) => Pe + `/Condition?category=${ep}&patient=${e}&_count=100&_sort=
|
|
|
6999
6960
|
display: "CERTAINITY_PROVISIONAL",
|
|
7000
6961
|
system: "http://terminology.hl7.org/CodeSystem/condition-ver-status"
|
|
7001
6962
|
}
|
|
7002
|
-
],
|
|
7003
|
-
async function
|
|
7004
|
-
const t =
|
|
7005
|
-
return await
|
|
6963
|
+
], ap = "confirmed", op = "provisional";
|
|
6964
|
+
async function ip(e) {
|
|
6965
|
+
const t = sp(e);
|
|
6966
|
+
return await K(t);
|
|
7006
6967
|
}
|
|
7007
|
-
const
|
|
6968
|
+
const cp = (e) => {
|
|
7008
6969
|
switch (e.verificationStatus?.coding?.[0]?.code) {
|
|
7009
|
-
case sp:
|
|
7010
|
-
return cn[0];
|
|
7011
6970
|
case ap:
|
|
6971
|
+
return cn[0];
|
|
6972
|
+
case op:
|
|
7012
6973
|
return cn[1];
|
|
7013
6974
|
default:
|
|
7014
6975
|
return cn[1];
|
|
7015
6976
|
}
|
|
7016
|
-
},
|
|
7017
|
-
function
|
|
6977
|
+
}, up = (e) => !!(e.id && e.code && e.recordedDate);
|
|
6978
|
+
function lp(e) {
|
|
7018
6979
|
return (e.entry?.filter((r) => r.resource?.resourceType === "Condition").map((r) => r.resource) ?? []).map((r) => {
|
|
7019
|
-
if (!
|
|
6980
|
+
if (!up(r))
|
|
7020
6981
|
throw new Error("Incomplete diagnosis data");
|
|
7021
|
-
const n =
|
|
6982
|
+
const n = cp(r), s = r.recordedDate;
|
|
7022
6983
|
return {
|
|
7023
6984
|
id: r.id,
|
|
7024
6985
|
display: r.code?.text ?? "",
|
|
@@ -7028,12 +6989,12 @@ function up(e) {
|
|
|
7028
6989
|
};
|
|
7029
6990
|
});
|
|
7030
6991
|
}
|
|
7031
|
-
async function
|
|
7032
|
-
const t = await
|
|
7033
|
-
return
|
|
6992
|
+
async function Fv(e) {
|
|
6993
|
+
const t = await ip(e);
|
|
6994
|
+
return lp(t);
|
|
7034
6995
|
}
|
|
7035
6996
|
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 || {});
|
|
7036
|
-
const
|
|
6997
|
+
const dp = (e) => Pe + `/MedicationRequest?patient=${e}&_count=100&_sort=-_lastUpdated`, fp = (e) => {
|
|
7037
6998
|
switch (e.status) {
|
|
7038
6999
|
case "active":
|
|
7039
7000
|
return qe.Active;
|
|
@@ -7053,32 +7014,32 @@ const lp = (e) => Pe + `/MedicationRequest?patient=${e}&_count=100&_sort=-_lastU
|
|
|
7053
7014
|
return qe.Unknown;
|
|
7054
7015
|
}
|
|
7055
7016
|
};
|
|
7056
|
-
async function
|
|
7057
|
-
const t =
|
|
7058
|
-
return await
|
|
7017
|
+
async function hp(e) {
|
|
7018
|
+
const t = dp(e);
|
|
7019
|
+
return await K(t);
|
|
7059
7020
|
}
|
|
7060
|
-
function
|
|
7021
|
+
function pp(e) {
|
|
7061
7022
|
const t = e?.[0]?.doseAndRate?.[0]?.doseQuantity;
|
|
7062
7023
|
return {
|
|
7063
7024
|
value: t?.value ?? 0,
|
|
7064
7025
|
unit: t?.unit ?? ""
|
|
7065
7026
|
};
|
|
7066
7027
|
}
|
|
7067
|
-
function
|
|
7028
|
+
function mp(e) {
|
|
7068
7029
|
return e?.[0]?.timing?.code?.coding?.[0]?.display ?? "";
|
|
7069
7030
|
}
|
|
7070
|
-
function
|
|
7031
|
+
function gp(e) {
|
|
7071
7032
|
const t = e?.[0]?.route;
|
|
7072
7033
|
return t && Array.isArray(t.coding) && t.coding[0]?.display ? t.coding[0].display : "";
|
|
7073
7034
|
}
|
|
7074
|
-
function
|
|
7035
|
+
function yp(e) {
|
|
7075
7036
|
const t = e?.[0]?.timing?.repeat, r = t?.durationUnit;
|
|
7076
7037
|
return {
|
|
7077
7038
|
duration: t?.duration ?? 0,
|
|
7078
7039
|
durationUnit: r ?? ""
|
|
7079
7040
|
};
|
|
7080
7041
|
}
|
|
7081
|
-
function
|
|
7042
|
+
function vp(e) {
|
|
7082
7043
|
try {
|
|
7083
7044
|
const t = e?.[0]?.text;
|
|
7084
7045
|
return t ? JSON.parse(t).additionalInstructions ?? "" : "";
|
|
@@ -7086,7 +7047,7 @@ function yp(e) {
|
|
|
7086
7047
|
return "";
|
|
7087
7048
|
}
|
|
7088
7049
|
}
|
|
7089
|
-
function
|
|
7050
|
+
function wp(e) {
|
|
7090
7051
|
try {
|
|
7091
7052
|
const t = e?.[0]?.text;
|
|
7092
7053
|
return t ? JSON.parse(t).instructions ?? "" : "";
|
|
@@ -7094,49 +7055,49 @@ function vp(e) {
|
|
|
7094
7055
|
return "";
|
|
7095
7056
|
}
|
|
7096
7057
|
}
|
|
7097
|
-
function
|
|
7058
|
+
function bp(e) {
|
|
7098
7059
|
const t = e?.quantity;
|
|
7099
7060
|
return {
|
|
7100
7061
|
value: t?.value ?? 0,
|
|
7101
7062
|
unit: t?.unit ?? ""
|
|
7102
7063
|
};
|
|
7103
7064
|
}
|
|
7104
|
-
function
|
|
7065
|
+
function Ep(e) {
|
|
7105
7066
|
return (e.entry?.map((r) => r.resource) ?? []).map((r) => {
|
|
7106
|
-
const n = r.medicationReference, s = r.requester, a =
|
|
7067
|
+
const n = r.medicationReference, s = r.requester, a = fp(r);
|
|
7107
7068
|
return {
|
|
7108
7069
|
id: r.id,
|
|
7109
7070
|
name: n.display,
|
|
7110
|
-
dose:
|
|
7071
|
+
dose: pp(r.dosageInstruction),
|
|
7111
7072
|
asNeeded: r.dosageInstruction?.[0]?.asNeededBoolean ?? !1,
|
|
7112
|
-
frequency:
|
|
7113
|
-
route:
|
|
7114
|
-
duration:
|
|
7073
|
+
frequency: mp(r.dosageInstruction),
|
|
7074
|
+
route: gp(r.dosageInstruction),
|
|
7075
|
+
duration: yp(r.dosageInstruction),
|
|
7115
7076
|
status: a,
|
|
7116
7077
|
priority: r.priority ?? "",
|
|
7117
7078
|
isImmediate: Us(r),
|
|
7118
|
-
quantity:
|
|
7079
|
+
quantity: bp(r.dispenseRequest),
|
|
7119
7080
|
startDate: Us(r) ? r.authoredOn : r.dosageInstruction?.[0]?.timing?.event?.[0],
|
|
7120
7081
|
orderDate: r.authoredOn,
|
|
7121
7082
|
orderedBy: s.display,
|
|
7122
|
-
instructions:
|
|
7123
|
-
additionalInstructions:
|
|
7083
|
+
instructions: wp(r.dosageInstruction),
|
|
7084
|
+
additionalInstructions: vp(
|
|
7124
7085
|
r.dosageInstruction
|
|
7125
7086
|
)
|
|
7126
7087
|
};
|
|
7127
7088
|
});
|
|
7128
7089
|
}
|
|
7129
7090
|
const Us = (e) => e.priority === "stat" || e.dosageInstruction?.[0]?.timing?.code?.text === "Immediately" || !1;
|
|
7130
|
-
async function
|
|
7131
|
-
const t = await
|
|
7132
|
-
return
|
|
7091
|
+
async function Vv(e) {
|
|
7092
|
+
const t = await hp(e);
|
|
7093
|
+
return Ep(t);
|
|
7133
7094
|
}
|
|
7134
|
-
const
|
|
7135
|
-
async function
|
|
7136
|
-
const t =
|
|
7137
|
-
return await
|
|
7095
|
+
const _p = "d3561dc0-5e07-11ef-8f7c-0242ac120002", Sp = (e) => Pe + `/ServiceRequest?category=${_p}&patient=${e}&_count=100&_sort=-_lastUpdated&numberOfVisits=5`;
|
|
7096
|
+
async function Rp(e) {
|
|
7097
|
+
const t = Sp(e);
|
|
7098
|
+
return await K(t);
|
|
7138
7099
|
}
|
|
7139
|
-
function
|
|
7100
|
+
function Pp(e) {
|
|
7140
7101
|
return (e.entry?.map((r) => r.resource) ?? []).map((r) => {
|
|
7141
7102
|
const n = r.occurrencePeriod?.start, s = r.replaces?.map((a) => (a.reference ?? "").split("/").pop() ?? "").filter((a) => a.length > 0);
|
|
7142
7103
|
return {
|
|
@@ -7149,13 +7110,13 @@ function Rp(e) {
|
|
|
7149
7110
|
};
|
|
7150
7111
|
});
|
|
7151
7112
|
}
|
|
7152
|
-
async function
|
|
7153
|
-
const t = await
|
|
7154
|
-
return
|
|
7113
|
+
async function Hv(e) {
|
|
7114
|
+
const t = await Rp(e);
|
|
7115
|
+
return Pp(t);
|
|
7155
7116
|
}
|
|
7156
|
-
const
|
|
7117
|
+
const Tp = "d3560b17-5e07-11ef-8f7c-0242ac120002", $p = "http://fhir.bahmni.org/ext/lab-order-concept-type", Op = (e) => Pe + `/ServiceRequest?category=${Tp}&patient=${e}&numberOfVisits=5&_count=100&_sort=-_lastUpdated`;
|
|
7157
7118
|
var _r = /* @__PURE__ */ ((e) => (e.stat = "Urgent", e.routine = "Routine", e))(_r || {});
|
|
7158
|
-
const
|
|
7119
|
+
const Ap = (e) => {
|
|
7159
7120
|
switch (e.priority) {
|
|
7160
7121
|
case "routine":
|
|
7161
7122
|
return _r.routine;
|
|
@@ -7165,7 +7126,7 @@ const Op = (e) => {
|
|
|
7165
7126
|
return _r.routine;
|
|
7166
7127
|
}
|
|
7167
7128
|
};
|
|
7168
|
-
function
|
|
7129
|
+
function Np(e) {
|
|
7169
7130
|
if (!e.entry) return [];
|
|
7170
7131
|
const t = new Set(
|
|
7171
7132
|
e.entry.flatMap((r) => r.resource?.replaces ?? []).map((r) => r.reference?.split("/").pop()).filter(Boolean)
|
|
@@ -7176,26 +7137,26 @@ function Ap(e) {
|
|
|
7176
7137
|
return !s && !a;
|
|
7177
7138
|
});
|
|
7178
7139
|
}
|
|
7179
|
-
async function
|
|
7180
|
-
const t = await
|
|
7181
|
-
`${
|
|
7182
|
-
), r =
|
|
7140
|
+
async function Dp(e) {
|
|
7141
|
+
const t = await K(
|
|
7142
|
+
`${Op(e)}`
|
|
7143
|
+
), r = Np(t);
|
|
7183
7144
|
return {
|
|
7184
7145
|
...t,
|
|
7185
7146
|
entry: r
|
|
7186
7147
|
};
|
|
7187
7148
|
}
|
|
7188
|
-
const
|
|
7189
|
-
(r) => r.url ===
|
|
7149
|
+
const Ip = (e) => e.extension?.find(
|
|
7150
|
+
(r) => r.url === $p && r.valueString === "Panel"
|
|
7190
7151
|
) ? "Panel" : "Single Test";
|
|
7191
|
-
function
|
|
7152
|
+
function Cp(e, t) {
|
|
7192
7153
|
return e.filter(
|
|
7193
7154
|
(r) => !!r.id
|
|
7194
7155
|
).map((r) => {
|
|
7195
|
-
const n =
|
|
7156
|
+
const n = Ap(r), s = r.occurrencePeriod?.start;
|
|
7196
7157
|
let a;
|
|
7197
|
-
s && (a =
|
|
7198
|
-
const o =
|
|
7158
|
+
s && (a = rh(s, t, "MMMM d, yyyy").formattedResult || s.split("T")[0]);
|
|
7159
|
+
const o = Ip(r);
|
|
7199
7160
|
return {
|
|
7200
7161
|
id: r.id,
|
|
7201
7162
|
testName: r.code?.text ?? "",
|
|
@@ -7209,7 +7170,7 @@ function Ip(e, t) {
|
|
|
7209
7170
|
};
|
|
7210
7171
|
});
|
|
7211
7172
|
}
|
|
7212
|
-
function
|
|
7173
|
+
function Bv(e) {
|
|
7213
7174
|
const t = /* @__PURE__ */ new Map();
|
|
7214
7175
|
return e.forEach((r) => {
|
|
7215
7176
|
const n = r.orderedDate.split("T")[0];
|
|
@@ -7222,14 +7183,14 @@ function Fv(e) {
|
|
|
7222
7183
|
(r, n) => new Date(n.rawDate).getTime() - new Date(r.rawDate).getTime()
|
|
7223
7184
|
);
|
|
7224
7185
|
}
|
|
7225
|
-
async function
|
|
7226
|
-
const n = (await
|
|
7227
|
-
return
|
|
7186
|
+
async function zv(e, t) {
|
|
7187
|
+
const n = (await Dp(e)).entry?.map((s) => s.resource).filter((s) => s !== void 0) ?? [];
|
|
7188
|
+
return Cp(n, t);
|
|
7228
7189
|
}
|
|
7229
|
-
const
|
|
7190
|
+
const kp = "All Orderables", Lp = "/openmrs/ws/rest/v1/ordertype?v=custom:(uuid,display,conceptClasses:(uuid,name))", Mp = "LabSet", xp = "http://fhir.bahmni.org/ext/ValueSet/concept-class", qp = async () => await Bh(kp), jp = async () => await K(Lp), Up = (e) => {
|
|
7230
7191
|
let t = e.display ?? "Unknown investigation";
|
|
7231
|
-
return ni(e) ===
|
|
7232
|
-
},
|
|
7192
|
+
return ni(e) === Mp && (t += ` (${oe.t("INVESTIGATION_PANEL")})`), t;
|
|
7193
|
+
}, Fp = (e) => {
|
|
7233
7194
|
const t = /* @__PURE__ */ new Map();
|
|
7234
7195
|
return e.results.forEach((r) => {
|
|
7235
7196
|
r.conceptClasses.forEach((n) => {
|
|
@@ -7238,10 +7199,10 @@ const Cp = "All Orderables", kp = "/openmrs/ws/rest/v1/ordertype?v=custom:(uuid,
|
|
|
7238
7199
|
}), t;
|
|
7239
7200
|
}, ni = (e) => {
|
|
7240
7201
|
const t = e.extension?.find(
|
|
7241
|
-
(r) => r.url ===
|
|
7202
|
+
(r) => r.url === xp
|
|
7242
7203
|
);
|
|
7243
7204
|
return t ? t.valueString ?? "" : "";
|
|
7244
|
-
},
|
|
7205
|
+
}, Vp = (e, t) => {
|
|
7245
7206
|
const r = [];
|
|
7246
7207
|
return !e.expansion?.contains || e.expansion.contains.length === 0 || t.size === 0 || e.expansion.contains.forEach((n) => {
|
|
7247
7208
|
n.contains?.forEach((s) => {
|
|
@@ -7251,18 +7212,18 @@ const Cp = "All Orderables", kp = "/openmrs/ws/rest/v1/ordertype?v=custom:(uuid,
|
|
|
7251
7212
|
return;
|
|
7252
7213
|
r.filter((d) => d.code === a.code && d.categoryCode === i.uuid).length > 0 || r.push({
|
|
7253
7214
|
code: a.code ?? "",
|
|
7254
|
-
display:
|
|
7215
|
+
display: Up(a),
|
|
7255
7216
|
category: i.display,
|
|
7256
7217
|
categoryCode: i.uuid
|
|
7257
7218
|
});
|
|
7258
7219
|
});
|
|
7259
7220
|
});
|
|
7260
7221
|
}), r;
|
|
7261
|
-
},
|
|
7262
|
-
const e = await
|
|
7263
|
-
return
|
|
7222
|
+
}, Wv = async () => {
|
|
7223
|
+
const e = await qp(), t = await jp();
|
|
7224
|
+
return Vp(e, Fp(t));
|
|
7264
7225
|
};
|
|
7265
|
-
function
|
|
7226
|
+
function Hp(e) {
|
|
7266
7227
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
7267
7228
|
}
|
|
7268
7229
|
var kt = { exports: {} }, un = {}, Le = {}, Ve = {}, ln = {}, dn = {}, fn = {}, Fs;
|
|
@@ -7668,7 +7629,7 @@ function Q() {
|
|
|
7668
7629
|
let V = I.length;
|
|
7669
7630
|
for (; V--; ) {
|
|
7670
7631
|
const B = I[V];
|
|
7671
|
-
B.optimizeNames(w, P) || (
|
|
7632
|
+
B.optimizeNames(w, P) || (Y(w, B.names), I.splice(V, 1));
|
|
7672
7633
|
}
|
|
7673
7634
|
return I.length > 0 ? this : void 0;
|
|
7674
7635
|
}
|
|
@@ -8047,7 +8008,7 @@ function Q() {
|
|
|
8047
8008
|
return B instanceof t._Code && B._items.some((re) => re instanceof t.Name && w[re.str] === 1 && P[re.str] !== void 0);
|
|
8048
8009
|
}
|
|
8049
8010
|
}
|
|
8050
|
-
function
|
|
8011
|
+
function Y(N, w) {
|
|
8051
8012
|
for (const P in w)
|
|
8052
8013
|
N[P] = (N[P] || 0) - (w[P] || 0);
|
|
8053
8014
|
}
|
|
@@ -8073,10 +8034,10 @@ function Q() {
|
|
|
8073
8034
|
}
|
|
8074
8035
|
})(dn)), dn;
|
|
8075
8036
|
}
|
|
8076
|
-
var
|
|
8037
|
+
var J = {}, zs;
|
|
8077
8038
|
function te() {
|
|
8078
|
-
if (zs) return
|
|
8079
|
-
zs = 1, Object.defineProperty(
|
|
8039
|
+
if (zs) return J;
|
|
8040
|
+
zs = 1, Object.defineProperty(J, "__esModule", { value: !0 }), J.checkStrictMode = J.getErrorPath = J.Type = J.useFunc = J.setEvaluated = J.evaluatedPropsToName = J.mergeEvaluated = J.eachItem = J.unescapeJsonPointer = J.escapeJsonPointer = J.escapeFragment = J.unescapeFragment = J.schemaRefOrVal = J.schemaHasRulesButRef = J.schemaHasRules = J.checkUnknownRules = J.alwaysValidSchema = J.toHash = void 0;
|
|
8080
8041
|
const e = Q(), t = Nr();
|
|
8081
8042
|
function r(_) {
|
|
8082
8043
|
const E = {};
|
|
@@ -8084,11 +8045,11 @@ function te() {
|
|
|
8084
8045
|
E[S] = !0;
|
|
8085
8046
|
return E;
|
|
8086
8047
|
}
|
|
8087
|
-
|
|
8048
|
+
J.toHash = r;
|
|
8088
8049
|
function n(_, E) {
|
|
8089
8050
|
return typeof E == "boolean" ? E : Object.keys(E).length === 0 ? !0 : (s(_, E), !a(E, _.self.RULES.all));
|
|
8090
8051
|
}
|
|
8091
|
-
|
|
8052
|
+
J.alwaysValidSchema = n;
|
|
8092
8053
|
function s(_, E = _.schema) {
|
|
8093
8054
|
const { opts: S, self: O } = _;
|
|
8094
8055
|
if (!S.strictSchema || typeof E == "boolean")
|
|
@@ -8097,7 +8058,7 @@ function te() {
|
|
|
8097
8058
|
for (const j in E)
|
|
8098
8059
|
L[j] || b(_, `unknown keyword: "${j}"`);
|
|
8099
8060
|
}
|
|
8100
|
-
|
|
8061
|
+
J.checkUnknownRules = s;
|
|
8101
8062
|
function a(_, E) {
|
|
8102
8063
|
if (typeof _ == "boolean")
|
|
8103
8064
|
return !_;
|
|
@@ -8106,7 +8067,7 @@ function te() {
|
|
|
8106
8067
|
return !0;
|
|
8107
8068
|
return !1;
|
|
8108
8069
|
}
|
|
8109
|
-
|
|
8070
|
+
J.schemaHasRules = a;
|
|
8110
8071
|
function o(_, E) {
|
|
8111
8072
|
if (typeof _ == "boolean")
|
|
8112
8073
|
return !_;
|
|
@@ -8115,7 +8076,7 @@ function te() {
|
|
|
8115
8076
|
return !0;
|
|
8116
8077
|
return !1;
|
|
8117
8078
|
}
|
|
8118
|
-
|
|
8079
|
+
J.schemaHasRulesButRef = o;
|
|
8119
8080
|
function i({ topSchemaRef: _, schemaPath: E }, S, O, L) {
|
|
8120
8081
|
if (!L) {
|
|
8121
8082
|
if (typeof S == "number" || typeof S == "boolean")
|
|
@@ -8125,23 +8086,23 @@ function te() {
|
|
|
8125
8086
|
}
|
|
8126
8087
|
return (0, e._)`${_}${E}${(0, e.getProperty)(O)}`;
|
|
8127
8088
|
}
|
|
8128
|
-
|
|
8089
|
+
J.schemaRefOrVal = i;
|
|
8129
8090
|
function c(_) {
|
|
8130
8091
|
return m(decodeURIComponent(_));
|
|
8131
8092
|
}
|
|
8132
|
-
|
|
8093
|
+
J.unescapeFragment = c;
|
|
8133
8094
|
function d(_) {
|
|
8134
8095
|
return encodeURIComponent(l(_));
|
|
8135
8096
|
}
|
|
8136
|
-
|
|
8097
|
+
J.escapeFragment = d;
|
|
8137
8098
|
function l(_) {
|
|
8138
8099
|
return typeof _ == "number" ? `${_}` : _.replace(/~/g, "~0").replace(/\//g, "~1");
|
|
8139
8100
|
}
|
|
8140
|
-
|
|
8101
|
+
J.escapeJsonPointer = l;
|
|
8141
8102
|
function m(_) {
|
|
8142
8103
|
return _.replace(/~1/g, "/").replace(/~0/g, "~");
|
|
8143
8104
|
}
|
|
8144
|
-
|
|
8105
|
+
J.unescapeJsonPointer = m;
|
|
8145
8106
|
function y(_, E) {
|
|
8146
8107
|
if (Array.isArray(_))
|
|
8147
8108
|
for (const S of _)
|
|
@@ -8149,14 +8110,14 @@ function te() {
|
|
|
8149
8110
|
else
|
|
8150
8111
|
E(_);
|
|
8151
8112
|
}
|
|
8152
|
-
|
|
8113
|
+
J.eachItem = y;
|
|
8153
8114
|
function R({ mergeNames: _, mergeToName: E, mergeValues: S, resultToName: O }) {
|
|
8154
8115
|
return (L, j, q, U) => {
|
|
8155
8116
|
const F = q === void 0 ? j : q instanceof e.Name ? (j instanceof e.Name ? _(L, j, q) : E(L, j, q), q) : j instanceof e.Name ? (E(L, q, j), j) : S(j, q);
|
|
8156
8117
|
return U === e.Name && !(F instanceof e.Name) ? O(L, F) : F;
|
|
8157
8118
|
};
|
|
8158
8119
|
}
|
|
8159
|
-
|
|
8120
|
+
J.mergeEvaluated = {
|
|
8160
8121
|
props: R({
|
|
8161
8122
|
mergeNames: (_, E, S) => _.if((0, e._)`${S} !== true && ${E} !== undefined`, () => {
|
|
8162
8123
|
_.if((0, e._)`${E} === true`, () => _.assign(S, !0), () => _.assign(S, (0, e._)`${S} || {}`).code((0, e._)`Object.assign(${S}, ${E})`));
|
|
@@ -8180,11 +8141,11 @@ function te() {
|
|
|
8180
8141
|
const S = _.var("props", (0, e._)`{}`);
|
|
8181
8142
|
return E !== void 0 && g(_, S, E), S;
|
|
8182
8143
|
}
|
|
8183
|
-
|
|
8144
|
+
J.evaluatedPropsToName = v;
|
|
8184
8145
|
function g(_, E, S) {
|
|
8185
8146
|
Object.keys(S).forEach((O) => _.assign((0, e._)`${E}${(0, e.getProperty)(O)}`, !0));
|
|
8186
8147
|
}
|
|
8187
|
-
|
|
8148
|
+
J.setEvaluated = g;
|
|
8188
8149
|
const f = {};
|
|
8189
8150
|
function h(_, E) {
|
|
8190
8151
|
return _.scopeValue("func", {
|
|
@@ -8192,11 +8153,11 @@ function te() {
|
|
|
8192
8153
|
code: f[E.code] || (f[E.code] = new t._Code(E.code))
|
|
8193
8154
|
});
|
|
8194
8155
|
}
|
|
8195
|
-
|
|
8156
|
+
J.useFunc = h;
|
|
8196
8157
|
var u;
|
|
8197
8158
|
(function(_) {
|
|
8198
8159
|
_[_.Num = 0] = "Num", _[_.Str = 1] = "Str";
|
|
8199
|
-
})(u || (
|
|
8160
|
+
})(u || (J.Type = u = {}));
|
|
8200
8161
|
function p(_, E, S) {
|
|
8201
8162
|
if (_ instanceof e.Name) {
|
|
8202
8163
|
const O = E === u.Num;
|
|
@@ -8204,7 +8165,7 @@ function te() {
|
|
|
8204
8165
|
}
|
|
8205
8166
|
return S ? (0, e.getProperty)(_).toString() : "/" + l(_);
|
|
8206
8167
|
}
|
|
8207
|
-
|
|
8168
|
+
J.getErrorPath = p;
|
|
8208
8169
|
function b(_, E, S = _.opts.strictSchema) {
|
|
8209
8170
|
if (S) {
|
|
8210
8171
|
if (E = `strict mode: ${E}`, S === !0)
|
|
@@ -8212,7 +8173,7 @@ function te() {
|
|
|
8212
8173
|
_.self.logger.warn(E);
|
|
8213
8174
|
}
|
|
8214
8175
|
}
|
|
8215
|
-
return
|
|
8176
|
+
return J.checkStrictMode = b, J;
|
|
8216
8177
|
}
|
|
8217
8178
|
var Lt = {}, Ws;
|
|
8218
8179
|
function Fe() {
|
|
@@ -8326,7 +8287,7 @@ function Vr() {
|
|
|
8326
8287
|
})(ln)), ln;
|
|
8327
8288
|
}
|
|
8328
8289
|
var Ks;
|
|
8329
|
-
function
|
|
8290
|
+
function Bp() {
|
|
8330
8291
|
if (Ks) return Ve;
|
|
8331
8292
|
Ks = 1, Object.defineProperty(Ve, "__esModule", { value: !0 }), Ve.boolOrEmptySchema = Ve.topBoolOrEmptySchema = void 0;
|
|
8332
8293
|
const e = Vr(), t = Q(), r = Fe(), n = {
|
|
@@ -8551,7 +8512,7 @@ function Dr() {
|
|
|
8551
8512
|
return ge;
|
|
8552
8513
|
}
|
|
8553
8514
|
var wt = {}, Qs;
|
|
8554
|
-
function
|
|
8515
|
+
function zp() {
|
|
8555
8516
|
if (Qs) return wt;
|
|
8556
8517
|
Qs = 1, Object.defineProperty(wt, "__esModule", { value: !0 }), wt.assignDefaults = void 0;
|
|
8557
8518
|
const e = Q(), t = te();
|
|
@@ -8687,7 +8648,7 @@ function Ie() {
|
|
|
8687
8648
|
return ne.validateUnion = h, ne;
|
|
8688
8649
|
}
|
|
8689
8650
|
var ea;
|
|
8690
|
-
function
|
|
8651
|
+
function Wp() {
|
|
8691
8652
|
if (ea) return Ne;
|
|
8692
8653
|
ea = 1, Object.defineProperty(Ne, "__esModule", { value: !0 }), Ne.validateKeywordUsage = Ne.validSchemaType = Ne.funcKeywordCode = Ne.macroKeywordCode = void 0;
|
|
8693
8654
|
const e = Q(), t = Fe(), r = Ie(), n = Vr();
|
|
@@ -8727,8 +8688,8 @@ function zp() {
|
|
|
8727
8688
|
return g.assign(F, null), q(e.nil), F;
|
|
8728
8689
|
}
|
|
8729
8690
|
function q(F = R.async ? (0, e._)`await ` : e.nil) {
|
|
8730
|
-
const z = b.opts.passContext ? t.default.this : t.default.self,
|
|
8731
|
-
g.assign(S, (0, e._)`${F}${(0, r.callValidateCode)(y, E, z,
|
|
8691
|
+
const z = b.opts.passContext ? t.default.this : t.default.self, Y = !("compile" in R && !p || R.schema === !1);
|
|
8692
|
+
g.assign(S, (0, e._)`${F}${(0, r.callValidateCode)(y, E, z, Y)}`, R.modifying);
|
|
8732
8693
|
}
|
|
8733
8694
|
function U(F) {
|
|
8734
8695
|
var z;
|
|
@@ -8776,7 +8737,7 @@ function zp() {
|
|
|
8776
8737
|
return Ne.validateKeywordUsage = m, Ne;
|
|
8777
8738
|
}
|
|
8778
8739
|
var xe = {}, ta;
|
|
8779
|
-
function
|
|
8740
|
+
function Gp() {
|
|
8780
8741
|
if (ta) return xe;
|
|
8781
8742
|
ta = 1, Object.defineProperty(xe, "__esModule", { value: !0 }), xe.extendSubschemaMode = xe.extendSubschemaData = xe.getSubschema = void 0;
|
|
8782
8743
|
const e = Q(), t = te();
|
|
@@ -8860,7 +8821,7 @@ function oi() {
|
|
|
8860
8821
|
}), pn;
|
|
8861
8822
|
}
|
|
8862
8823
|
var mn = { exports: {} }, na;
|
|
8863
|
-
function
|
|
8824
|
+
function Kp() {
|
|
8864
8825
|
if (na) return mn.exports;
|
|
8865
8826
|
na = 1;
|
|
8866
8827
|
var e = mn.exports = function(n, s, a) {
|
|
@@ -8938,7 +8899,7 @@ var sa;
|
|
|
8938
8899
|
function Hr() {
|
|
8939
8900
|
if (sa) return ve;
|
|
8940
8901
|
sa = 1, Object.defineProperty(ve, "__esModule", { value: !0 }), ve.getSchemaRefs = ve.resolveUrl = ve.normalizeId = ve._getFullPath = ve.getFullPath = ve.inlineRef = void 0;
|
|
8941
|
-
const e = te(), t = oi(), r =
|
|
8902
|
+
const e = te(), t = oi(), r = Kp(), n = /* @__PURE__ */ new Set([
|
|
8942
8903
|
"type",
|
|
8943
8904
|
"format",
|
|
8944
8905
|
"pattern",
|
|
@@ -9015,11 +8976,11 @@ function Hr() {
|
|
|
9015
8976
|
if (F === void 0)
|
|
9016
8977
|
return;
|
|
9017
8978
|
const z = _ + q;
|
|
9018
|
-
let
|
|
9019
|
-
typeof j[h] == "string" && (
|
|
8979
|
+
let Y = b[F];
|
|
8980
|
+
typeof j[h] == "string" && (Y = he.call(this, j[h])), ue.call(this, j.$anchor), ue.call(this, j.$dynamicAnchor), b[q] = Y;
|
|
9020
8981
|
function he(ee) {
|
|
9021
8982
|
const ie = this.opts.uriResolver.resolve;
|
|
9022
|
-
if (ee = m(
|
|
8983
|
+
if (ee = m(Y ? ie(Y, ee) : ee), S.has(ee))
|
|
9023
8984
|
throw L(ee);
|
|
9024
8985
|
S.add(ee);
|
|
9025
8986
|
let M = this.refs[ee];
|
|
@@ -9047,7 +9008,7 @@ var aa;
|
|
|
9047
9008
|
function Br() {
|
|
9048
9009
|
if (aa) return Le;
|
|
9049
9010
|
aa = 1, Object.defineProperty(Le, "__esModule", { value: !0 }), Le.getData = Le.KeywordCxt = Le.validateFunctionCode = void 0;
|
|
9050
|
-
const e =
|
|
9011
|
+
const e = Bp(), t = Dr(), r = ai(), n = Dr(), s = zp(), a = Wp(), o = Gp(), i = Q(), c = Fe(), d = Hr(), l = te(), m = Vr();
|
|
9051
9012
|
function y(T) {
|
|
9052
9013
|
if (_(T) && (S(T), b(T))) {
|
|
9053
9014
|
f(T);
|
|
@@ -9145,9 +9106,9 @@ function Br() {
|
|
|
9145
9106
|
}
|
|
9146
9107
|
function z(T) {
|
|
9147
9108
|
const { gen: A, schemaEnv: k, validateName: x, ValidationError: H, opts: X } = T;
|
|
9148
|
-
k.$async ? A.if((0, i._)`${c.default.errors} === 0`, () => A.return(c.default.data), () => A.throw((0, i._)`new ${H}(${c.default.vErrors})`)) : (A.assign((0, i._)`${x}.errors`, c.default.vErrors), X.unevaluated &&
|
|
9109
|
+
k.$async ? A.if((0, i._)`${c.default.errors} === 0`, () => A.return(c.default.data), () => A.throw((0, i._)`new ${H}(${c.default.vErrors})`)) : (A.assign((0, i._)`${x}.errors`, c.default.vErrors), X.unevaluated && Y(T), A.return((0, i._)`${c.default.errors} === 0`));
|
|
9149
9110
|
}
|
|
9150
|
-
function
|
|
9111
|
+
function Y({ gen: T, evaluated: A, props: k, items: x }) {
|
|
9151
9112
|
k instanceof i.Name && T.assign((0, i._)`${A}.props`, k), x instanceof i.Name && T.assign((0, i._)`${A}.items`, x);
|
|
9152
9113
|
}
|
|
9153
9114
|
function he(T, A, k, x) {
|
|
@@ -9437,12 +9398,12 @@ function jn() {
|
|
|
9437
9398
|
j = `${E.scopeRefs(r.default.scope)}return ${q}`, this.opts.code.process && (j = this.opts.code.process(j, f));
|
|
9438
9399
|
const F = new Function(`${r.default.self}`, `${r.default.scope}`, j)(this, this.scope.get());
|
|
9439
9400
|
if (this.scope.value(O, { ref: F }), F.errors = null, F.schema = f.schema, F.schemaEnv = f, f.$async && (F.$async = !0), this.opts.code.source === !0 && (F.source = { validateName: O, validateCode: q, scopeValues: E._values }), this.opts.unevaluated) {
|
|
9440
|
-
const { props: z, items:
|
|
9401
|
+
const { props: z, items: Y } = L;
|
|
9441
9402
|
F.evaluated = {
|
|
9442
9403
|
props: z instanceof e.Name ? void 0 : z,
|
|
9443
|
-
items:
|
|
9404
|
+
items: Y instanceof e.Name ? void 0 : Y,
|
|
9444
9405
|
dynamicProps: z instanceof e.Name,
|
|
9445
|
-
dynamicItems:
|
|
9406
|
+
dynamicItems: Y instanceof e.Name
|
|
9446
9407
|
}, F.source && (F.source.evaluated = (0, e.stringify)(F.evaluated));
|
|
9447
9408
|
}
|
|
9448
9409
|
return f.validate = F, f;
|
|
@@ -9537,16 +9498,16 @@ function jn() {
|
|
|
9537
9498
|
}
|
|
9538
9499
|
return Re;
|
|
9539
9500
|
}
|
|
9540
|
-
const
|
|
9541
|
-
$id:
|
|
9542
|
-
description:
|
|
9543
|
-
type:
|
|
9544
|
-
required:
|
|
9545
|
-
properties:
|
|
9546
|
-
additionalProperties:
|
|
9501
|
+
const Yp = "https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#", Jp = "Meta-schema for $data reference (JSON AnySchema extension proposal)", Xp = "object", Qp = ["$data"], Zp = { $data: { type: "string", anyOf: [{ format: "relative-json-pointer" }, { format: "json-pointer" }] } }, em = !1, tm = {
|
|
9502
|
+
$id: Yp,
|
|
9503
|
+
description: Jp,
|
|
9504
|
+
type: Xp,
|
|
9505
|
+
required: Qp,
|
|
9506
|
+
properties: Zp,
|
|
9507
|
+
additionalProperties: em
|
|
9547
9508
|
};
|
|
9548
9509
|
var qt = {}, bt = { exports: {} }, gn, ua;
|
|
9549
|
-
function
|
|
9510
|
+
function rm() {
|
|
9550
9511
|
return ua || (ua = 1, gn = {
|
|
9551
9512
|
HEX: {
|
|
9552
9513
|
0: 0,
|
|
@@ -9575,10 +9536,10 @@ function tm() {
|
|
|
9575
9536
|
}), gn;
|
|
9576
9537
|
}
|
|
9577
9538
|
var yn, la;
|
|
9578
|
-
function
|
|
9539
|
+
function nm() {
|
|
9579
9540
|
if (la) return yn;
|
|
9580
9541
|
la = 1;
|
|
9581
|
-
const { HEX: e } =
|
|
9542
|
+
const { HEX: e } = rm(), 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;
|
|
9582
9543
|
function r(g) {
|
|
9583
9544
|
if (i(g, ".") < 3)
|
|
9584
9545
|
return { host: g, isIPV4: !1 };
|
|
@@ -9710,7 +9671,7 @@ function rm() {
|
|
|
9710
9671
|
}, yn;
|
|
9711
9672
|
}
|
|
9712
9673
|
var vn, da;
|
|
9713
|
-
function
|
|
9674
|
+
function sm() {
|
|
9714
9675
|
if (da) return vn;
|
|
9715
9676
|
da = 1;
|
|
9716
9677
|
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;
|
|
@@ -9802,10 +9763,10 @@ function nm() {
|
|
|
9802
9763
|
return vn = h, vn;
|
|
9803
9764
|
}
|
|
9804
9765
|
var fa;
|
|
9805
|
-
function
|
|
9766
|
+
function am() {
|
|
9806
9767
|
if (fa) return bt.exports;
|
|
9807
9768
|
fa = 1;
|
|
9808
|
-
const { normalizeIPv6: e, normalizeIPv4: t, removeDotSegments: r, recomposeAuthority: n, normalizeComponentEncoding: s } =
|
|
9769
|
+
const { normalizeIPv6: e, normalizeIPv4: t, removeDotSegments: r, recomposeAuthority: n, normalizeComponentEncoding: s } = nm(), a = sm();
|
|
9809
9770
|
function o(f, h) {
|
|
9810
9771
|
return typeof f == "string" ? f = l(v(f, h), h) : typeof f == "object" && (f = v(l(f, h), h)), f;
|
|
9811
9772
|
}
|
|
@@ -9901,14 +9862,14 @@ function sm() {
|
|
|
9901
9862
|
return bt.exports = g, bt.exports.default = g, bt.exports.fastUri = g, bt.exports;
|
|
9902
9863
|
}
|
|
9903
9864
|
var ha;
|
|
9904
|
-
function
|
|
9865
|
+
function om() {
|
|
9905
9866
|
if (ha) return qt;
|
|
9906
9867
|
ha = 1, Object.defineProperty(qt, "__esModule", { value: !0 });
|
|
9907
|
-
const e =
|
|
9868
|
+
const e = am();
|
|
9908
9869
|
return e.code = 'require("ajv/dist/runtime/uri").default', qt.default = e, qt;
|
|
9909
9870
|
}
|
|
9910
9871
|
var pa;
|
|
9911
|
-
function
|
|
9872
|
+
function im() {
|
|
9912
9873
|
return pa || (pa = 1, (function(e) {
|
|
9913
9874
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.CodeGen = e.Name = e.nil = e.stringify = e.str = e._ = e.KeywordCxt = void 0;
|
|
9914
9875
|
var t = Br();
|
|
@@ -9929,7 +9890,7 @@ function om() {
|
|
|
9929
9890
|
} }), Object.defineProperty(e, "CodeGen", { enumerable: !0, get: function() {
|
|
9930
9891
|
return r.CodeGen;
|
|
9931
9892
|
} });
|
|
9932
|
-
const n = qn(), s = zr(), a = si(), o = jn(), i = Q(), c = Hr(), d = Dr(), l = te(), m =
|
|
9893
|
+
const n = qn(), s = zr(), a = si(), o = jn(), i = Q(), c = Hr(), d = Dr(), l = te(), m = tm, y = om(), R = (M, $) => new RegExp(M, $);
|
|
9933
9894
|
R.code = "new RegExp";
|
|
9934
9895
|
const v = ["removeAdditional", "useDefaults", "coerceTypes"], g = /* @__PURE__ */ new Set([
|
|
9935
9896
|
"validate",
|
|
@@ -10158,14 +10119,14 @@ function om() {
|
|
|
10158
10119
|
} else
|
|
10159
10120
|
throw new Error("invalid addKeywords parameters");
|
|
10160
10121
|
if (z.call(this, N, C), !C)
|
|
10161
|
-
return (0, l.eachItem)(N, (P) =>
|
|
10122
|
+
return (0, l.eachItem)(N, (P) => Y.call(this, P)), this;
|
|
10162
10123
|
ue.call(this, C);
|
|
10163
10124
|
const w = {
|
|
10164
10125
|
...C,
|
|
10165
10126
|
type: (0, d.getJSONTypes)(C.type),
|
|
10166
10127
|
schemaType: (0, d.getJSONTypes)(C.schemaType)
|
|
10167
10128
|
};
|
|
10168
|
-
return (0, l.eachItem)(N, w.type.length === 0 ? (P) =>
|
|
10129
|
+
return (0, l.eachItem)(N, w.type.length === 0 ? (P) => Y.call(this, P, w) : (P) => w.type.forEach((I) => Y.call(this, P, w, I))), this;
|
|
10169
10130
|
}
|
|
10170
10131
|
getKeyword($) {
|
|
10171
10132
|
const C = this.RULES.all[$];
|
|
@@ -10315,7 +10276,7 @@ function om() {
|
|
|
10315
10276
|
}), !!$ && $.$data && !("code" in $ || "validate" in $))
|
|
10316
10277
|
throw new Error('$data keyword must have "code" or "validate" function');
|
|
10317
10278
|
}
|
|
10318
|
-
function
|
|
10279
|
+
function Y(M, $, C) {
|
|
10319
10280
|
var N;
|
|
10320
10281
|
const w = $?.post;
|
|
10321
10282
|
if (C && w)
|
|
@@ -10351,7 +10312,7 @@ function om() {
|
|
|
10351
10312
|
})(un)), un;
|
|
10352
10313
|
}
|
|
10353
10314
|
var jt = {}, Ut = {}, Ft = {}, ma;
|
|
10354
|
-
function
|
|
10315
|
+
function cm() {
|
|
10355
10316
|
if (ma) return Ft;
|
|
10356
10317
|
ma = 1, Object.defineProperty(Ft, "__esModule", { value: !0 });
|
|
10357
10318
|
const e = {
|
|
@@ -10363,7 +10324,7 @@ function im() {
|
|
|
10363
10324
|
return Ft.default = e, Ft;
|
|
10364
10325
|
}
|
|
10365
10326
|
var Ue = {}, ga;
|
|
10366
|
-
function
|
|
10327
|
+
function um() {
|
|
10367
10328
|
if (ga) return Ue;
|
|
10368
10329
|
ga = 1, Object.defineProperty(Ue, "__esModule", { value: !0 }), Ue.callRef = Ue.getValidate = void 0;
|
|
10369
10330
|
const e = zr(), t = Ie(), r = Q(), n = Fe(), s = jn(), a = te(), o = {
|
|
@@ -10450,10 +10411,10 @@ function cm() {
|
|
|
10450
10411
|
return Ue.callRef = c, Ue.default = o, Ue;
|
|
10451
10412
|
}
|
|
10452
10413
|
var ya;
|
|
10453
|
-
function
|
|
10414
|
+
function lm() {
|
|
10454
10415
|
if (ya) return Ut;
|
|
10455
10416
|
ya = 1, Object.defineProperty(Ut, "__esModule", { value: !0 });
|
|
10456
|
-
const e =
|
|
10417
|
+
const e = cm(), t = um(), r = [
|
|
10457
10418
|
"$schema",
|
|
10458
10419
|
"$id",
|
|
10459
10420
|
"$defs",
|
|
@@ -10466,7 +10427,7 @@ function um() {
|
|
|
10466
10427
|
return Ut.default = r, Ut;
|
|
10467
10428
|
}
|
|
10468
10429
|
var Vt = {}, Ht = {}, va;
|
|
10469
|
-
function
|
|
10430
|
+
function dm() {
|
|
10470
10431
|
if (va) return Ht;
|
|
10471
10432
|
va = 1, Object.defineProperty(Ht, "__esModule", { value: !0 });
|
|
10472
10433
|
const e = Q(), t = e.operators, r = {
|
|
@@ -10491,7 +10452,7 @@ function lm() {
|
|
|
10491
10452
|
return Ht.default = s, Ht;
|
|
10492
10453
|
}
|
|
10493
10454
|
var Bt = {}, wa;
|
|
10494
|
-
function
|
|
10455
|
+
function fm() {
|
|
10495
10456
|
if (wa) return Bt;
|
|
10496
10457
|
wa = 1, Object.defineProperty(Bt, "__esModule", { value: !0 });
|
|
10497
10458
|
const e = Q(), r = {
|
|
@@ -10511,7 +10472,7 @@ function dm() {
|
|
|
10511
10472
|
return Bt.default = r, Bt;
|
|
10512
10473
|
}
|
|
10513
10474
|
var zt = {}, Wt = {}, ba;
|
|
10514
|
-
function
|
|
10475
|
+
function hm() {
|
|
10515
10476
|
if (ba) return Wt;
|
|
10516
10477
|
ba = 1, Object.defineProperty(Wt, "__esModule", { value: !0 });
|
|
10517
10478
|
function e(t) {
|
|
@@ -10524,10 +10485,10 @@ function fm() {
|
|
|
10524
10485
|
return Wt.default = e, e.code = 'require("ajv/dist/runtime/ucs2length").default', Wt;
|
|
10525
10486
|
}
|
|
10526
10487
|
var Ea;
|
|
10527
|
-
function
|
|
10488
|
+
function pm() {
|
|
10528
10489
|
if (Ea) return zt;
|
|
10529
10490
|
Ea = 1, Object.defineProperty(zt, "__esModule", { value: !0 });
|
|
10530
|
-
const e = Q(), t = te(), r =
|
|
10491
|
+
const e = Q(), t = te(), r = hm(), s = {
|
|
10531
10492
|
keyword: ["maxLength", "minLength"],
|
|
10532
10493
|
type: "string",
|
|
10533
10494
|
schemaType: "number",
|
|
@@ -10547,7 +10508,7 @@ function hm() {
|
|
|
10547
10508
|
return zt.default = s, zt;
|
|
10548
10509
|
}
|
|
10549
10510
|
var Gt = {}, _a;
|
|
10550
|
-
function
|
|
10511
|
+
function mm() {
|
|
10551
10512
|
if (_a) return Gt;
|
|
10552
10513
|
_a = 1, Object.defineProperty(Gt, "__esModule", { value: !0 });
|
|
10553
10514
|
const e = Ie(), t = Q(), n = {
|
|
@@ -10567,7 +10528,7 @@ function pm() {
|
|
|
10567
10528
|
return Gt.default = n, Gt;
|
|
10568
10529
|
}
|
|
10569
10530
|
var Kt = {}, Sa;
|
|
10570
|
-
function
|
|
10531
|
+
function gm() {
|
|
10571
10532
|
if (Sa) return Kt;
|
|
10572
10533
|
Sa = 1, Object.defineProperty(Kt, "__esModule", { value: !0 });
|
|
10573
10534
|
const e = Q(), r = {
|
|
@@ -10590,7 +10551,7 @@ function mm() {
|
|
|
10590
10551
|
return Kt.default = r, Kt;
|
|
10591
10552
|
}
|
|
10592
10553
|
var Yt = {}, Ra;
|
|
10593
|
-
function
|
|
10554
|
+
function ym() {
|
|
10594
10555
|
if (Ra) return Yt;
|
|
10595
10556
|
Ra = 1, Object.defineProperty(Yt, "__esModule", { value: !0 });
|
|
10596
10557
|
const e = Ie(), t = Q(), r = te(), s = {
|
|
@@ -10647,7 +10608,7 @@ function gm() {
|
|
|
10647
10608
|
return Yt.default = s, Yt;
|
|
10648
10609
|
}
|
|
10649
10610
|
var Jt = {}, Pa;
|
|
10650
|
-
function
|
|
10611
|
+
function vm() {
|
|
10651
10612
|
if (Pa) return Jt;
|
|
10652
10613
|
Pa = 1, Object.defineProperty(Jt, "__esModule", { value: !0 });
|
|
10653
10614
|
const e = Q(), r = {
|
|
@@ -10677,7 +10638,7 @@ function Un() {
|
|
|
10677
10638
|
return e.code = 'require("ajv/dist/runtime/equal").default', Qt.default = e, Qt;
|
|
10678
10639
|
}
|
|
10679
10640
|
var $a;
|
|
10680
|
-
function
|
|
10641
|
+
function wm() {
|
|
10681
10642
|
if ($a) return Xt;
|
|
10682
10643
|
$a = 1, Object.defineProperty(Xt, "__esModule", { value: !0 });
|
|
10683
10644
|
const e = Dr(), t = Q(), r = te(), n = Un(), a = {
|
|
@@ -10721,7 +10682,7 @@ function vm() {
|
|
|
10721
10682
|
return Xt.default = a, Xt;
|
|
10722
10683
|
}
|
|
10723
10684
|
var Zt = {}, Oa;
|
|
10724
|
-
function
|
|
10685
|
+
function bm() {
|
|
10725
10686
|
if (Oa) return Zt;
|
|
10726
10687
|
Oa = 1, Object.defineProperty(Zt, "__esModule", { value: !0 });
|
|
10727
10688
|
const e = Q(), t = te(), r = Un(), s = {
|
|
@@ -10739,7 +10700,7 @@ function wm() {
|
|
|
10739
10700
|
return Zt.default = s, Zt;
|
|
10740
10701
|
}
|
|
10741
10702
|
var er = {}, Aa;
|
|
10742
|
-
function
|
|
10703
|
+
function Em() {
|
|
10743
10704
|
if (Aa) return er;
|
|
10744
10705
|
Aa = 1, Object.defineProperty(er, "__esModule", { value: !0 });
|
|
10745
10706
|
const e = Q(), t = te(), r = Un(), s = {
|
|
@@ -10779,10 +10740,10 @@ function bm() {
|
|
|
10779
10740
|
return er.default = s, er;
|
|
10780
10741
|
}
|
|
10781
10742
|
var Na;
|
|
10782
|
-
function
|
|
10743
|
+
function _m() {
|
|
10783
10744
|
if (Na) return Vt;
|
|
10784
10745
|
Na = 1, Object.defineProperty(Vt, "__esModule", { value: !0 });
|
|
10785
|
-
const e =
|
|
10746
|
+
const e = dm(), t = fm(), r = pm(), n = mm(), s = gm(), a = ym(), o = vm(), i = wm(), c = bm(), d = Em(), l = [
|
|
10786
10747
|
// number
|
|
10787
10748
|
e.default,
|
|
10788
10749
|
t.default,
|
|
@@ -10881,7 +10842,7 @@ function ci() {
|
|
|
10881
10842
|
return at.validateTuple = s, at.default = n, at;
|
|
10882
10843
|
}
|
|
10883
10844
|
var Ca;
|
|
10884
|
-
function
|
|
10845
|
+
function Sm() {
|
|
10885
10846
|
if (Ca) return rr;
|
|
10886
10847
|
Ca = 1, Object.defineProperty(rr, "__esModule", { value: !0 });
|
|
10887
10848
|
const e = ci(), t = {
|
|
@@ -10894,7 +10855,7 @@ function _m() {
|
|
|
10894
10855
|
return rr.default = t, rr;
|
|
10895
10856
|
}
|
|
10896
10857
|
var nr = {}, ka;
|
|
10897
|
-
function
|
|
10858
|
+
function Rm() {
|
|
10898
10859
|
if (ka) return nr;
|
|
10899
10860
|
ka = 1, Object.defineProperty(nr, "__esModule", { value: !0 });
|
|
10900
10861
|
const e = Q(), t = te(), r = Ie(), n = ii(), a = {
|
|
@@ -10914,7 +10875,7 @@ function Sm() {
|
|
|
10914
10875
|
return nr.default = a, nr;
|
|
10915
10876
|
}
|
|
10916
10877
|
var sr = {}, La;
|
|
10917
|
-
function
|
|
10878
|
+
function Pm() {
|
|
10918
10879
|
if (La) return sr;
|
|
10919
10880
|
La = 1, Object.defineProperty(sr, "__esModule", { value: !0 });
|
|
10920
10881
|
const e = Q(), t = te(), n = {
|
|
@@ -10971,7 +10932,7 @@ function Rm() {
|
|
|
10971
10932
|
return sr.default = n, sr;
|
|
10972
10933
|
}
|
|
10973
10934
|
var wn = {}, Ma;
|
|
10974
|
-
function
|
|
10935
|
+
function Tm() {
|
|
10975
10936
|
return Ma || (Ma = 1, (function(e) {
|
|
10976
10937
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.validateSchemaDeps = e.validatePropertyDeps = e.error = void 0;
|
|
10977
10938
|
const t = Q(), r = te(), n = Ie();
|
|
@@ -11044,7 +11005,7 @@ function Pm() {
|
|
|
11044
11005
|
})(wn)), wn;
|
|
11045
11006
|
}
|
|
11046
11007
|
var ar = {}, xa;
|
|
11047
|
-
function
|
|
11008
|
+
function $m() {
|
|
11048
11009
|
if (xa) return ar;
|
|
11049
11010
|
xa = 1, Object.defineProperty(ar, "__esModule", { value: !0 });
|
|
11050
11011
|
const e = Q(), t = te(), n = {
|
|
@@ -11147,7 +11108,7 @@ function ui() {
|
|
|
11147
11108
|
return or.default = a, or;
|
|
11148
11109
|
}
|
|
11149
11110
|
var ir = {}, ja;
|
|
11150
|
-
function
|
|
11111
|
+
function Om() {
|
|
11151
11112
|
if (ja) return ir;
|
|
11152
11113
|
ja = 1, Object.defineProperty(ir, "__esModule", { value: !0 });
|
|
11153
11114
|
const e = Br(), t = Ie(), r = te(), n = ui(), s = {
|
|
@@ -11182,7 +11143,7 @@ function $m() {
|
|
|
11182
11143
|
return ir.default = s, ir;
|
|
11183
11144
|
}
|
|
11184
11145
|
var cr = {}, Ua;
|
|
11185
|
-
function
|
|
11146
|
+
function Am() {
|
|
11186
11147
|
if (Ua) return cr;
|
|
11187
11148
|
Ua = 1, Object.defineProperty(cr, "__esModule", { value: !0 });
|
|
11188
11149
|
const e = Ie(), t = Q(), r = te(), n = te(), s = {
|
|
@@ -11223,7 +11184,7 @@ function Om() {
|
|
|
11223
11184
|
return cr.default = s, cr;
|
|
11224
11185
|
}
|
|
11225
11186
|
var ur = {}, Fa;
|
|
11226
|
-
function
|
|
11187
|
+
function Nm() {
|
|
11227
11188
|
if (Fa) return ur;
|
|
11228
11189
|
Fa = 1, Object.defineProperty(ur, "__esModule", { value: !0 });
|
|
11229
11190
|
const e = te(), t = {
|
|
@@ -11249,7 +11210,7 @@ function Am() {
|
|
|
11249
11210
|
return ur.default = t, ur;
|
|
11250
11211
|
}
|
|
11251
11212
|
var lr = {}, Va;
|
|
11252
|
-
function
|
|
11213
|
+
function Dm() {
|
|
11253
11214
|
if (Va) return lr;
|
|
11254
11215
|
Va = 1, Object.defineProperty(lr, "__esModule", { value: !0 });
|
|
11255
11216
|
const t = {
|
|
@@ -11262,7 +11223,7 @@ function Nm() {
|
|
|
11262
11223
|
return lr.default = t, lr;
|
|
11263
11224
|
}
|
|
11264
11225
|
var dr = {}, Ha;
|
|
11265
|
-
function
|
|
11226
|
+
function Im() {
|
|
11266
11227
|
if (Ha) return dr;
|
|
11267
11228
|
Ha = 1, Object.defineProperty(dr, "__esModule", { value: !0 });
|
|
11268
11229
|
const e = Q(), t = te(), n = {
|
|
@@ -11298,7 +11259,7 @@ function Dm() {
|
|
|
11298
11259
|
return dr.default = n, dr;
|
|
11299
11260
|
}
|
|
11300
11261
|
var fr = {}, Ba;
|
|
11301
|
-
function
|
|
11262
|
+
function Cm() {
|
|
11302
11263
|
if (Ba) return fr;
|
|
11303
11264
|
Ba = 1, Object.defineProperty(fr, "__esModule", { value: !0 });
|
|
11304
11265
|
const e = te(), t = {
|
|
@@ -11320,7 +11281,7 @@ function Im() {
|
|
|
11320
11281
|
return fr.default = t, fr;
|
|
11321
11282
|
}
|
|
11322
11283
|
var hr = {}, za;
|
|
11323
|
-
function
|
|
11284
|
+
function km() {
|
|
11324
11285
|
if (za) return hr;
|
|
11325
11286
|
za = 1, Object.defineProperty(hr, "__esModule", { value: !0 });
|
|
11326
11287
|
const e = Q(), t = te(), n = {
|
|
@@ -11367,7 +11328,7 @@ function Cm() {
|
|
|
11367
11328
|
return hr.default = n, hr;
|
|
11368
11329
|
}
|
|
11369
11330
|
var pr = {}, Wa;
|
|
11370
|
-
function
|
|
11331
|
+
function Lm() {
|
|
11371
11332
|
if (Wa) return pr;
|
|
11372
11333
|
Wa = 1, Object.defineProperty(pr, "__esModule", { value: !0 });
|
|
11373
11334
|
const e = te(), t = {
|
|
@@ -11380,10 +11341,10 @@ function km() {
|
|
|
11380
11341
|
return pr.default = t, pr;
|
|
11381
11342
|
}
|
|
11382
11343
|
var Ga;
|
|
11383
|
-
function
|
|
11344
|
+
function Mm() {
|
|
11384
11345
|
if (Ga) return tr;
|
|
11385
11346
|
Ga = 1, Object.defineProperty(tr, "__esModule", { value: !0 });
|
|
11386
|
-
const e = ii(), t =
|
|
11347
|
+
const e = ii(), t = Sm(), r = ci(), n = Rm(), s = Pm(), a = Tm(), o = $m(), i = ui(), c = Om(), d = Am(), l = Nm(), m = Dm(), y = Im(), R = Cm(), v = km(), g = Lm();
|
|
11387
11348
|
function f(h = !1) {
|
|
11388
11349
|
const u = [
|
|
11389
11350
|
// any
|
|
@@ -11405,7 +11366,7 @@ function Lm() {
|
|
|
11405
11366
|
return tr.default = f, tr;
|
|
11406
11367
|
}
|
|
11407
11368
|
var mr = {}, gr = {}, Ka;
|
|
11408
|
-
function
|
|
11369
|
+
function xm() {
|
|
11409
11370
|
if (Ka) return gr;
|
|
11410
11371
|
Ka = 1, Object.defineProperty(gr, "__esModule", { value: !0 });
|
|
11411
11372
|
const e = Q(), r = {
|
|
@@ -11474,14 +11435,14 @@ function Mm() {
|
|
|
11474
11435
|
return gr.default = r, gr;
|
|
11475
11436
|
}
|
|
11476
11437
|
var Ya;
|
|
11477
|
-
function
|
|
11438
|
+
function qm() {
|
|
11478
11439
|
if (Ya) return mr;
|
|
11479
11440
|
Ya = 1, Object.defineProperty(mr, "__esModule", { value: !0 });
|
|
11480
|
-
const t = [
|
|
11441
|
+
const t = [xm().default];
|
|
11481
11442
|
return mr.default = t, mr;
|
|
11482
11443
|
}
|
|
11483
11444
|
var Be = {}, Ja;
|
|
11484
|
-
function
|
|
11445
|
+
function jm() {
|
|
11485
11446
|
return Ja || (Ja = 1, Object.defineProperty(Be, "__esModule", { value: !0 }), Be.contentVocabulary = Be.metadataVocabulary = void 0, Be.metadataVocabulary = [
|
|
11486
11447
|
"title",
|
|
11487
11448
|
"description",
|
|
@@ -11497,10 +11458,10 @@ function qm() {
|
|
|
11497
11458
|
]), Be;
|
|
11498
11459
|
}
|
|
11499
11460
|
var Xa;
|
|
11500
|
-
function
|
|
11461
|
+
function Um() {
|
|
11501
11462
|
if (Xa) return jt;
|
|
11502
11463
|
Xa = 1, Object.defineProperty(jt, "__esModule", { value: !0 });
|
|
11503
|
-
const e =
|
|
11464
|
+
const e = lm(), t = _m(), r = Mm(), n = qm(), s = jm(), a = [
|
|
11504
11465
|
e.default,
|
|
11505
11466
|
t.default,
|
|
11506
11467
|
(0, r.default)(),
|
|
@@ -11511,7 +11472,7 @@ function jm() {
|
|
|
11511
11472
|
return jt.default = a, jt;
|
|
11512
11473
|
}
|
|
11513
11474
|
var yr = {}, Et = {}, Qa;
|
|
11514
|
-
function
|
|
11475
|
+
function Fm() {
|
|
11515
11476
|
if (Qa) return Et;
|
|
11516
11477
|
Qa = 1, Object.defineProperty(Et, "__esModule", { value: !0 }), Et.DiscrError = void 0;
|
|
11517
11478
|
var e;
|
|
@@ -11520,10 +11481,10 @@ function Um() {
|
|
|
11520
11481
|
})(e || (Et.DiscrError = e = {})), Et;
|
|
11521
11482
|
}
|
|
11522
11483
|
var Za;
|
|
11523
|
-
function
|
|
11484
|
+
function Vm() {
|
|
11524
11485
|
if (Za) return yr;
|
|
11525
11486
|
Za = 1, Object.defineProperty(yr, "__esModule", { value: !0 });
|
|
11526
|
-
const e = Q(), t =
|
|
11487
|
+
const e = Q(), t = Fm(), r = jn(), n = zr(), s = te(), o = {
|
|
11527
11488
|
keyword: "discriminator",
|
|
11528
11489
|
type: "object",
|
|
11529
11490
|
schemaType: "object",
|
|
@@ -11596,20 +11557,20 @@ function Fm() {
|
|
|
11596
11557
|
};
|
|
11597
11558
|
return yr.default = o, yr;
|
|
11598
11559
|
}
|
|
11599
|
-
const
|
|
11600
|
-
$schema:
|
|
11601
|
-
$id:
|
|
11602
|
-
title:
|
|
11603
|
-
definitions:
|
|
11604
|
-
type:
|
|
11605
|
-
properties:
|
|
11560
|
+
const Hm = "http://json-schema.org/draft-07/schema#", Bm = "http://json-schema.org/draft-07/schema#", zm = "Core schema meta-schema", Wm = { 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: [] } }, Gm = ["object", "boolean"], Km = { $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: "#" } }, Ym = {
|
|
11561
|
+
$schema: Hm,
|
|
11562
|
+
$id: Bm,
|
|
11563
|
+
title: zm,
|
|
11564
|
+
definitions: Wm,
|
|
11565
|
+
type: Gm,
|
|
11566
|
+
properties: Km,
|
|
11606
11567
|
default: !0
|
|
11607
11568
|
};
|
|
11608
11569
|
var eo;
|
|
11609
|
-
function
|
|
11570
|
+
function Jm() {
|
|
11610
11571
|
return eo || (eo = 1, (function(e, t) {
|
|
11611
11572
|
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;
|
|
11612
|
-
const r =
|
|
11573
|
+
const r = im(), n = Um(), s = Vm(), a = Ym, o = ["/properties"], i = "http://json-schema.org/draft-07/schema";
|
|
11613
11574
|
class c extends r.default {
|
|
11614
11575
|
_addVocabularies() {
|
|
11615
11576
|
super._addVocabularies(), n.default.forEach((v) => this.addVocabulary(v)), this.opts.discriminator && this.addKeyword(s.default);
|
|
@@ -11653,8 +11614,8 @@ function Ym() {
|
|
|
11653
11614
|
} });
|
|
11654
11615
|
})(kt, kt.exports)), kt.exports;
|
|
11655
11616
|
}
|
|
11656
|
-
var
|
|
11657
|
-
const
|
|
11617
|
+
var Xm = Jm();
|
|
11618
|
+
const Qm = /* @__PURE__ */ Hp(Xm), Fn = "/bahmni_config/openmrs/apps/clinical/v2", Zm = "/bahmni_config/openmrs/apps/registration/v2", eg = Fn + "/app.json", tg = Zm + "/app.json", rg = Fn + "/medication.json", ng = (e) => `${Fn}/dashboards/${e}`, to = {
|
|
11658
11619
|
CONFIG_NOT_FOUND: "CONFIG_ERROR_NOT_FOUND",
|
|
11659
11620
|
VALIDATION_FAILED: "CONFIG_ERROR_VALIDATION_FAILED",
|
|
11660
11621
|
SCHEMA_VALIDATION_FAILED: "CONFIG_ERROR_SCHEMA_VALIDATION_FAILED"
|
|
@@ -11662,54 +11623,54 @@ const Xm = /* @__PURE__ */ Vp(Jm), Fn = "/bahmni_config/openmrs/apps/clinical/v2
|
|
|
11662
11623
|
CONFIG_ERROR: "ERROR_CONFIG_TITLE",
|
|
11663
11624
|
VALIDATION_ERROR: "ERROR_VALIDATION_TITLE",
|
|
11664
11625
|
DASHBOARD_ERROR: "ERROR_DASHBOARD_CONFIG_TITLE"
|
|
11665
|
-
},
|
|
11666
|
-
$schema:
|
|
11667
|
-
title:
|
|
11668
|
-
description:
|
|
11669
|
-
type:
|
|
11670
|
-
required:
|
|
11671
|
-
additionalProperties:
|
|
11672
|
-
properties:
|
|
11673
|
-
},
|
|
11674
|
-
$schema:
|
|
11675
|
-
title:
|
|
11676
|
-
description:
|
|
11677
|
-
type:
|
|
11678
|
-
additionalProperties:
|
|
11679
|
-
required:
|
|
11680
|
-
properties:
|
|
11681
|
-
},
|
|
11682
|
-
$schema:
|
|
11683
|
-
title:
|
|
11684
|
-
type:
|
|
11685
|
-
additionalProperties:
|
|
11686
|
-
properties:
|
|
11687
|
-
},
|
|
11688
|
-
$schema:
|
|
11689
|
-
title:
|
|
11690
|
-
description:
|
|
11691
|
-
type:
|
|
11692
|
-
additionalProperties:
|
|
11693
|
-
properties:
|
|
11694
|
-
},
|
|
11626
|
+
}, sg = "http://json-schema.org/draft-07/schema#", ag = "Clinical App Configuration Schema", og = "Schema for global clinical app configuration including patient information, actions and available dashboards", ig = "object", cg = ["patientInformation", "actions", "dashboards", "consultationPad"], ug = !1, lg = { patientInformation: { type: "object", description: "Patient information configuration", additionalProperties: !1 }, actions: { type: "array", description: "List of available actions" }, dashboards: { type: "array", description: "List of available dashboards", items: { type: "object", required: ["name", "requiredPrivileges", "url"], additionalProperties: !1, properties: { name: { type: "string", description: "Display name of the dashboard" }, requiredPrivileges: { type: "array", items: { type: "string" }, description: "List of permissions required to access this dashboard" }, icon: { type: "string", description: "Icon class name for the dashboard" }, default: { type: "boolean", description: "Whether this is the default dashboard" }, url: { type: "string", description: "URL to access the dashboard data" } } } }, consultationPad: { type: "object", description: "Configuration for consultation pad forms", required: ["allergyConceptMap"], additionalProperties: !1, properties: { allergyConceptMap: { type: "object", description: "UUID mappings for allergy concepts", required: ["medicationAllergenUuid", "foodAllergenUuid", "environmentalAllergenUuid", "allergyReactionUuid"], additionalProperties: !1, properties: { medicationAllergenUuid: { type: "string", description: "UUID for medication allergen concept" }, foodAllergenUuid: { type: "string", description: "UUID for food allergen concept" }, environmentalAllergenUuid: { type: "string", description: "UUID for environmental allergen concept" }, allergyReactionUuid: { type: "string", description: "UUID for allergy reaction concept" } } } } } }, dg = {
|
|
11627
|
+
$schema: sg,
|
|
11628
|
+
title: ag,
|
|
11629
|
+
description: og,
|
|
11630
|
+
type: ig,
|
|
11631
|
+
required: cg,
|
|
11632
|
+
additionalProperties: ug,
|
|
11633
|
+
properties: lg
|
|
11634
|
+
}, fg = "http://json-schema.org/draft-07/schema#", hg = "Clinical Dashboard Configuration Schema", pg = "Schema for dashboards in clinical app which contains sections and associated controls", mg = "object", gg = !1, yg = ["sections"], vg = { 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" } } }] } } } } }, wg = {
|
|
11635
|
+
$schema: fg,
|
|
11636
|
+
title: hg,
|
|
11637
|
+
description: pg,
|
|
11638
|
+
type: mg,
|
|
11639
|
+
additionalProperties: gg,
|
|
11640
|
+
required: yg,
|
|
11641
|
+
properties: vg
|
|
11642
|
+
}, bg = "http://json-schema.org/draft-07/schema#", Eg = "Medication Configuration Schema", _g = "object", Sg = !1, Rg = { 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" } } } } } }, Pg = {
|
|
11643
|
+
$schema: bg,
|
|
11644
|
+
title: Eg,
|
|
11645
|
+
type: _g,
|
|
11646
|
+
additionalProperties: Sg,
|
|
11647
|
+
properties: Rg
|
|
11648
|
+
}, Tg = "http://json-schema.org/draft-07/schema#", $g = "Registration Configuration Schema", Og = "Schema for validating registration app configuration", Ag = "object", Ng = !1, Dg = { 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" } } } } }, Ig = {
|
|
11649
|
+
$schema: Tg,
|
|
11650
|
+
title: $g,
|
|
11651
|
+
description: Og,
|
|
11652
|
+
type: Ag,
|
|
11653
|
+
additionalProperties: Ng,
|
|
11654
|
+
properties: Dg
|
|
11655
|
+
}, Gv = async () => Wr(eg, dg), Kv = async (e) => {
|
|
11695
11656
|
const t = await Wr(
|
|
11696
|
-
|
|
11697
|
-
|
|
11657
|
+
ng(e),
|
|
11658
|
+
wg
|
|
11698
11659
|
);
|
|
11699
11660
|
return t && t.sections && t.sections.length > 0 && (t.sections = t.sections.map((r) => r.id ? r : {
|
|
11700
11661
|
...r,
|
|
11701
|
-
id:
|
|
11662
|
+
id: nh()
|
|
11702
11663
|
})), t;
|
|
11703
|
-
},
|
|
11664
|
+
}, Yv = async () => Wr(
|
|
11665
|
+
rg,
|
|
11666
|
+
Pg
|
|
11667
|
+
), Jv = async () => Wr(
|
|
11704
11668
|
tg,
|
|
11705
|
-
|
|
11706
|
-
), Gv = async () => Wr(
|
|
11707
|
-
eg,
|
|
11708
|
-
Dg
|
|
11669
|
+
Ig
|
|
11709
11670
|
), Wr = async (e, t) => {
|
|
11710
11671
|
try {
|
|
11711
|
-
const r = await
|
|
11712
|
-
return r ? await
|
|
11672
|
+
const r = await Cg(e);
|
|
11673
|
+
return r ? await kg(r, t) ? r : (an.showError(
|
|
11713
11674
|
oe.t(ro.VALIDATION_ERROR),
|
|
11714
11675
|
oe.t(to.VALIDATION_FAILED)
|
|
11715
11676
|
), null) : (an.showError(
|
|
@@ -11720,53 +11681,53 @@ const Xm = /* @__PURE__ */ Vp(Jm), Fn = "/bahmni_config/openmrs/apps/clinical/v2
|
|
|
11720
11681
|
const { title: n, message: s } = ut(r);
|
|
11721
11682
|
return an.showError(n, s), null;
|
|
11722
11683
|
}
|
|
11723
|
-
},
|
|
11684
|
+
}, Cg = async (e) => {
|
|
11724
11685
|
try {
|
|
11725
|
-
return await
|
|
11686
|
+
return await K(e);
|
|
11726
11687
|
} catch (t) {
|
|
11727
11688
|
const { message: r } = ut(t);
|
|
11728
11689
|
throw new Error(r);
|
|
11729
11690
|
}
|
|
11730
|
-
},
|
|
11731
|
-
async function
|
|
11732
|
-
const t = await
|
|
11733
|
-
|
|
11691
|
+
}, kg = async (e, t) => new Qm().compile(t)(e), Lg = (e) => ae + `/form/${e}?v=custom:(resources:(value))`, Mg = ae + "/bahmniie/form/latestPublishedForms", Xv = (e) => ae + `/user/${e}?v=full`, xg = (e) => ae + `/provider?user=${e}&v=custom:(uuid,display,person)`;
|
|
11692
|
+
async function Qv(e) {
|
|
11693
|
+
const t = await K(
|
|
11694
|
+
xg(e)
|
|
11734
11695
|
);
|
|
11735
11696
|
return !t.results || t.results.length === 0 ? null : t.results[0];
|
|
11736
11697
|
}
|
|
11737
|
-
const
|
|
11738
|
-
async function qg(e) {
|
|
11739
|
-
return await J(xg(e));
|
|
11740
|
-
}
|
|
11698
|
+
const qg = (e) => Pe + `/Encounter?subject:Patient=${e}&_tag=visit`;
|
|
11741
11699
|
async function jg(e) {
|
|
11742
|
-
return
|
|
11700
|
+
return await K(qg(e));
|
|
11743
11701
|
}
|
|
11744
11702
|
async function Ug(e) {
|
|
11745
|
-
return (await jg(e)).
|
|
11703
|
+
return (await jg(e)).entry?.map((r) => r.resource).filter((r) => r !== void 0) ?? [];
|
|
11704
|
+
}
|
|
11705
|
+
async function Fg(e) {
|
|
11706
|
+
return (await Ug(e)).find((r) => !r.period?.end) ?? null;
|
|
11746
11707
|
}
|
|
11747
|
-
const
|
|
11748
|
-
async function
|
|
11708
|
+
const Vg = Pe + "/Encounter", Hg = ae + "/systemsetting/bahmni.encountersession.duration", Bg = "d34fe3ab-5e07-11ef-8f7c-0242ac120002";
|
|
11709
|
+
async function zg(e) {
|
|
11749
11710
|
const t = new URLSearchParams();
|
|
11750
11711
|
Object.entries(e).forEach(([s, a]) => {
|
|
11751
11712
|
a && t.append(s, a);
|
|
11752
11713
|
});
|
|
11753
|
-
const r = `${
|
|
11754
|
-
return (await
|
|
11714
|
+
const r = `${Vg}?${t.toString()}`;
|
|
11715
|
+
return (await K(r)).entry?.map((s) => s.resource).filter((s) => s !== void 0) ?? [];
|
|
11755
11716
|
}
|
|
11756
|
-
async function
|
|
11717
|
+
async function Wg() {
|
|
11757
11718
|
try {
|
|
11758
|
-
const e = await
|
|
11759
|
-
|
|
11719
|
+
const e = await K(
|
|
11720
|
+
Hg
|
|
11760
11721
|
), t = Number(e.value);
|
|
11761
11722
|
return !isNaN(t) && t > 0 ? t : 60;
|
|
11762
11723
|
} catch {
|
|
11763
11724
|
return 30;
|
|
11764
11725
|
}
|
|
11765
11726
|
}
|
|
11766
|
-
async function
|
|
11727
|
+
async function Gg(e, t) {
|
|
11767
11728
|
if (!e.length) return null;
|
|
11768
11729
|
try {
|
|
11769
|
-
const r = await
|
|
11730
|
+
const r = await Fg(t);
|
|
11770
11731
|
return r ? e.find((n) => {
|
|
11771
11732
|
const s = n.partOf?.reference?.split("/")[1];
|
|
11772
11733
|
return r.id === s;
|
|
@@ -11775,25 +11736,25 @@ async function Wg(e, t) {
|
|
|
11775
11736
|
return null;
|
|
11776
11737
|
}
|
|
11777
11738
|
}
|
|
11778
|
-
async function
|
|
11739
|
+
async function Zv(e, t, r) {
|
|
11779
11740
|
try {
|
|
11780
11741
|
if (!e) return null;
|
|
11781
|
-
const n = r ?? await
|
|
11742
|
+
const n = r ?? await Wg(), a = `ge${new Date(Date.now() - n * 60 * 1e3).toISOString()}`, o = {
|
|
11782
11743
|
patient: e,
|
|
11783
11744
|
_tag: "encounter",
|
|
11784
11745
|
_lastUpdated: a,
|
|
11785
|
-
type:
|
|
11746
|
+
type: Bg
|
|
11786
11747
|
};
|
|
11787
11748
|
t && (o.participant = t);
|
|
11788
|
-
const i = await
|
|
11789
|
-
return i.length === 0 ? null : await
|
|
11749
|
+
const i = await zg(o);
|
|
11750
|
+
return i.length === 0 ? null : await Gg(i, e);
|
|
11790
11751
|
} catch {
|
|
11791
11752
|
return null;
|
|
11792
11753
|
}
|
|
11793
11754
|
}
|
|
11794
|
-
const
|
|
11795
|
-
async function
|
|
11796
|
-
const t = e.join(","), r = await
|
|
11755
|
+
const Kg = (e) => Pe + `/EpisodeOfCare?_revinclude=Encounter:episode-of-care&_id=${e}`;
|
|
11756
|
+
async function ew(e) {
|
|
11757
|
+
const t = e.join(","), r = await K(Kg(t));
|
|
11797
11758
|
if (r.total === 0)
|
|
11798
11759
|
throw new Error(
|
|
11799
11760
|
"No episode of care found for the provided UUIDs: " + e.join(", ")
|
|
@@ -11805,10 +11766,10 @@ async function Xv(e) {
|
|
|
11805
11766
|
c && s.add(c);
|
|
11806
11767
|
}), { visitUuids: Array.from(s), encounterUuids: a };
|
|
11807
11768
|
}
|
|
11808
|
-
const
|
|
11769
|
+
const tw = (e) => {
|
|
11809
11770
|
const t = new CustomEvent("bahmni-audit-log", { detail: e });
|
|
11810
11771
|
window.dispatchEvent(t);
|
|
11811
|
-
},
|
|
11772
|
+
}, Yg = (e) => {
|
|
11812
11773
|
const t = (r) => {
|
|
11813
11774
|
e(r.detail);
|
|
11814
11775
|
};
|
|
@@ -11818,7 +11779,7 @@ const Qv = (e) => {
|
|
|
11818
11779
|
}, ot = {
|
|
11819
11780
|
CLINICAL: "MODULE_LABEL_CLINICAL_KEY",
|
|
11820
11781
|
REGISTRATION: "MODULE_LABEL_REGISTRATION_KEY"
|
|
11821
|
-
},
|
|
11782
|
+
}, Jg = {
|
|
11822
11783
|
VIEWED_CLINICAL_DASHBOARD: {
|
|
11823
11784
|
eventType: "VIEWED_CLINICAL_DASHBOARD",
|
|
11824
11785
|
message: "VIEWED_CLINICAL_DASHBOARD_MESSAGE"
|
|
@@ -11852,21 +11813,21 @@ const Qv = (e) => {
|
|
|
11852
11813
|
message: "EDIT_PATIENT_DETAILS_MESSAGE",
|
|
11853
11814
|
module: ot.REGISTRATION
|
|
11854
11815
|
}
|
|
11855
|
-
},
|
|
11816
|
+
}, Xg = ae + "/auditlog", Qg = {
|
|
11856
11817
|
UNKNOWN_EVENT_TYPE: "AUDIT_LOG_ERROR_UNKNOWN_EVENT_TYPE"
|
|
11857
|
-
}, bn = /* @__PURE__ */ new Map(),
|
|
11818
|
+
}, bn = /* @__PURE__ */ new Map(), Zg = async (e) => {
|
|
11858
11819
|
if (bn.has(e))
|
|
11859
11820
|
return bn.get(e) ?? null;
|
|
11860
|
-
const t = await
|
|
11821
|
+
const t = await K(Mo(e)), r = t ? String(t) : null;
|
|
11861
11822
|
return bn.set(e, r), r;
|
|
11862
|
-
},
|
|
11863
|
-
if (!await
|
|
11823
|
+
}, ey = async () => await Zg(Vu) === "true", ty = async (e, t, r, n = ot.CLINICAL) => {
|
|
11824
|
+
if (!await ey())
|
|
11864
11825
|
return { logged: !1 };
|
|
11865
|
-
const a =
|
|
11826
|
+
const a = Jg[t];
|
|
11866
11827
|
if (!a)
|
|
11867
11828
|
return {
|
|
11868
11829
|
logged: !1,
|
|
11869
|
-
error: oe.t(
|
|
11830
|
+
error: oe.t(Qg.UNKNOWN_EVENT_TYPE, {
|
|
11870
11831
|
eventType: t
|
|
11871
11832
|
})
|
|
11872
11833
|
};
|
|
@@ -11876,30 +11837,30 @@ const Qv = (e) => {
|
|
|
11876
11837
|
message: r ? `${a.message}~${JSON.stringify(r)}` : a.message,
|
|
11877
11838
|
module: n
|
|
11878
11839
|
};
|
|
11879
|
-
return await pt(
|
|
11880
|
-
},
|
|
11881
|
-
await
|
|
11840
|
+
return await pt(Xg, o), { logged: !0 };
|
|
11841
|
+
}, rw = () => Yg(async (t) => {
|
|
11842
|
+
await ty(
|
|
11882
11843
|
t.patientUuid,
|
|
11883
11844
|
t.eventType,
|
|
11884
11845
|
t.messageParams,
|
|
11885
11846
|
t.module
|
|
11886
11847
|
);
|
|
11887
|
-
}),
|
|
11848
|
+
}), nw = async () => {
|
|
11888
11849
|
try {
|
|
11889
|
-
return await
|
|
11850
|
+
return await K(Lu);
|
|
11890
11851
|
} catch (e) {
|
|
11891
11852
|
const { message: t } = ut(e);
|
|
11892
11853
|
throw new Error(t);
|
|
11893
11854
|
}
|
|
11894
|
-
},
|
|
11895
|
-
const e = await fetch(
|
|
11855
|
+
}, sw = (e, t) => !e || e.length === 0 ? !1 : e.some((r) => r.name === t), ry = async () => {
|
|
11856
|
+
const e = await fetch(Mg);
|
|
11896
11857
|
if (!e.ok)
|
|
11897
11858
|
throw new Error(
|
|
11898
11859
|
`HTTP error! status for latestPublishedForms: ${e.status}`
|
|
11899
11860
|
);
|
|
11900
11861
|
const t = await e.json();
|
|
11901
11862
|
return Array.isArray(t) ? t : [];
|
|
11902
|
-
},
|
|
11863
|
+
}, ny = (e, t) => {
|
|
11903
11864
|
const r = JSON.parse(e.nameTranslation);
|
|
11904
11865
|
if (Array.isArray(r) && r.length > 0) {
|
|
11905
11866
|
const n = r.find(
|
|
@@ -11909,8 +11870,8 @@ const Qv = (e) => {
|
|
|
11909
11870
|
return n.display;
|
|
11910
11871
|
}
|
|
11911
11872
|
return e.name;
|
|
11912
|
-
},
|
|
11913
|
-
const r =
|
|
11873
|
+
}, sy = (e, t) => {
|
|
11874
|
+
const r = ny(e, t);
|
|
11914
11875
|
return {
|
|
11915
11876
|
uuid: e.uuid,
|
|
11916
11877
|
name: r,
|
|
@@ -11920,13 +11881,13 @@ const Qv = (e) => {
|
|
|
11920
11881
|
editable: n.editable
|
|
11921
11882
|
}))
|
|
11922
11883
|
};
|
|
11923
|
-
},
|
|
11924
|
-
const e = await
|
|
11884
|
+
}, aw = async () => {
|
|
11885
|
+
const e = await ry(), t = qr();
|
|
11925
11886
|
return e.map(
|
|
11926
|
-
(r) =>
|
|
11887
|
+
(r) => sy(r, t)
|
|
11927
11888
|
);
|
|
11928
|
-
},
|
|
11929
|
-
const t = await fetch(
|
|
11889
|
+
}, ow = async (e) => {
|
|
11890
|
+
const t = await fetch(Lg(e));
|
|
11930
11891
|
if (!t.ok)
|
|
11931
11892
|
throw new Error(
|
|
11932
11893
|
`Failed to fetch form metadata for ${e}: ${t.status}`
|
|
@@ -11942,7 +11903,7 @@ const Qv = (e) => {
|
|
|
11942
11903
|
published: r.published,
|
|
11943
11904
|
schema: n
|
|
11944
11905
|
};
|
|
11945
|
-
},
|
|
11906
|
+
}, ay = ae + "/bahmnicore/diseaseSummaryData?", iw = async (e, t, r, n) => {
|
|
11946
11907
|
const s = new URLSearchParams({
|
|
11947
11908
|
groupBy: n,
|
|
11948
11909
|
latestCount: t.toString(),
|
|
@@ -11951,141 +11912,160 @@ const Qv = (e) => {
|
|
|
11951
11912
|
r.forEach((o) => {
|
|
11952
11913
|
s.append("obsConcepts", o);
|
|
11953
11914
|
});
|
|
11954
|
-
const a =
|
|
11955
|
-
return
|
|
11956
|
-
},
|
|
11915
|
+
const a = ay + s.toString();
|
|
11916
|
+
return K(a);
|
|
11917
|
+
}, oy = (e, t, r) => {
|
|
11957
11918
|
let s = `${Pe + "/ServiceRequest?_sort=-_lastUpdated"}&category=${e}&patient=${t}`;
|
|
11958
11919
|
return r && (s += `&encounter=${r}`), s;
|
|
11959
11920
|
};
|
|
11960
|
-
async function
|
|
11921
|
+
async function cw(e, t, r) {
|
|
11961
11922
|
let n;
|
|
11962
|
-
return r && r.length > 0 && (n = r.join(",")), await
|
|
11963
|
-
|
|
11923
|
+
return r && r.length > 0 && (n = r.join(",")), await K(
|
|
11924
|
+
oy(e, t, n)
|
|
11964
11925
|
);
|
|
11965
11926
|
}
|
|
11927
|
+
const iy = async (e) => {
|
|
11928
|
+
if (!e || e.trim() === "")
|
|
11929
|
+
throw new Error("Invalid patient UUID: UUID cannot be empty");
|
|
11930
|
+
return (await K(
|
|
11931
|
+
xu(e)
|
|
11932
|
+
)).results || [];
|
|
11933
|
+
}, cy = (e) => {
|
|
11934
|
+
const t = [], r = [];
|
|
11935
|
+
return e.forEach((n) => {
|
|
11936
|
+
n.dateCompleted || n.dateEnded ? r.push(n) : t.push(n);
|
|
11937
|
+
}), {
|
|
11938
|
+
activePrograms: t,
|
|
11939
|
+
endedPrograms: r
|
|
11940
|
+
};
|
|
11941
|
+
}, uw = async (e) => {
|
|
11942
|
+
const t = await iy(e);
|
|
11943
|
+
return cy(t);
|
|
11944
|
+
};
|
|
11966
11945
|
export {
|
|
11967
|
-
|
|
11968
|
-
|
|
11969
|
-
|
|
11970
|
-
|
|
11971
|
-
|
|
11972
|
-
|
|
11973
|
-
|
|
11974
|
-
|
|
11975
|
-
|
|
11976
|
-
|
|
11977
|
-
|
|
11978
|
-
|
|
11979
|
-
|
|
11980
|
-
|
|
11981
|
-
|
|
11982
|
-
|
|
11983
|
-
|
|
11946
|
+
Jg as AUDIT_LOG_EVENT_DETAILS,
|
|
11947
|
+
Zh as AllergySeverity,
|
|
11948
|
+
Qh as AllergyStatus,
|
|
11949
|
+
Mh as AttributeFormat,
|
|
11950
|
+
xh as AttributeInputType,
|
|
11951
|
+
Dy as BAHMNI_HOME_PATH,
|
|
11952
|
+
Qf as DATE_FORMAT,
|
|
11953
|
+
qy as DATE_PICKER_INPUT_FORMAT,
|
|
11954
|
+
Zf as DATE_TIME_FORMAT,
|
|
11955
|
+
Mv as FHIR_ENCOUNTER_TYPE_CODE_SYSTEM,
|
|
11956
|
+
Ly as FULL_MONTH_DATE_FORMAT,
|
|
11957
|
+
jv as HL7_CONDITION_CATEGORY_CODE_SYSTEM,
|
|
11958
|
+
ep as HL7_CONDITION_CATEGORY_CONDITION_CODE,
|
|
11959
|
+
tp as HL7_CONDITION_CATEGORY_DIAGNOSIS_CODE,
|
|
11960
|
+
qv as HL7_CONDITION_CLINICAL_STATUS_CODE_SYSTEM,
|
|
11961
|
+
xv as HL7_CONDITION_VERIFICATION_STATUS_CODE_SYSTEM,
|
|
11962
|
+
xy as ISO_DATE_FORMAT,
|
|
11984
11963
|
_r as LabTestPriority,
|
|
11985
|
-
|
|
11986
|
-
|
|
11987
|
-
|
|
11964
|
+
rv as MAX_NAME_LENGTH,
|
|
11965
|
+
tv as MAX_PATIENT_AGE_YEARS,
|
|
11966
|
+
nv as MAX_PHONE_NUMBER_LENGTH,
|
|
11988
11967
|
qe as MedicationStatus,
|
|
11989
11968
|
Pe as OPENMRS_FHIR_R4,
|
|
11990
11969
|
ae as OPENMRS_REST_V1,
|
|
11991
|
-
|
|
11992
|
-
|
|
11993
|
-
|
|
11994
|
-
|
|
11995
|
-
|
|
11996
|
-
|
|
11997
|
-
|
|
11998
|
-
|
|
11999
|
-
|
|
12000
|
-
|
|
12001
|
-
|
|
12002
|
-
|
|
12003
|
-
|
|
12004
|
-
|
|
12005
|
-
|
|
12006
|
-
|
|
12007
|
-
|
|
12008
|
-
|
|
12009
|
-
|
|
12010
|
-
|
|
12011
|
-
|
|
12012
|
-
|
|
12013
|
-
|
|
12014
|
-
|
|
12015
|
-
|
|
12016
|
-
|
|
12017
|
-
|
|
12018
|
-
|
|
12019
|
-
|
|
12020
|
-
|
|
12021
|
-
|
|
12022
|
-
|
|
11970
|
+
My as REGISTRATION_DATE_FORMAT,
|
|
11971
|
+
Xv as USER_PINNED_PREFERENCE_URL,
|
|
11972
|
+
th as calculateAge,
|
|
11973
|
+
By as calculateAgeinYearsAndMonths,
|
|
11974
|
+
Uy as calculateOnsetDate,
|
|
11975
|
+
Ky as capitalize,
|
|
11976
|
+
lv as createPatient,
|
|
11977
|
+
mv as createVisit,
|
|
11978
|
+
Wy as dateComparator,
|
|
11979
|
+
Ny as del,
|
|
11980
|
+
tw as dispatchAuditEvent,
|
|
11981
|
+
Cv as fetchAndFormatAllergenConcepts,
|
|
11982
|
+
ow as fetchFormMetadata,
|
|
11983
|
+
aw as fetchObservationForms,
|
|
11984
|
+
kv as fetchReactionConcepts,
|
|
11985
|
+
Qy as filterReplacementEntries,
|
|
11986
|
+
Zv as findActiveEncounterInSession,
|
|
11987
|
+
rh as formatDate,
|
|
11988
|
+
Hy as formatDateAndTime,
|
|
11989
|
+
Fy as formatDateDistance,
|
|
11990
|
+
jy as formatDateTime,
|
|
11991
|
+
Zy as formatUrl,
|
|
11992
|
+
nh as generateId,
|
|
11993
|
+
K as get,
|
|
11994
|
+
Fg as getActiveVisit,
|
|
11995
|
+
gv as getActiveVisitByPatient,
|
|
11996
|
+
hv as getAddressHierarchyEntries,
|
|
11997
|
+
Jh as getAllergies,
|
|
11998
|
+
Nv as getAppointmentById,
|
|
11999
|
+
Gv as getClinicalConfig,
|
|
12000
|
+
Iv as getConceptById,
|
|
12001
|
+
Uv as getConditions,
|
|
12023
12002
|
Zo as getCookieByName,
|
|
12024
|
-
|
|
12025
|
-
|
|
12026
|
-
|
|
12027
|
-
|
|
12028
|
-
|
|
12029
|
-
|
|
12030
|
-
|
|
12003
|
+
Qv as getCurrentProvider,
|
|
12004
|
+
ev as getCurrentUser,
|
|
12005
|
+
nw as getCurrentUserPrivileges,
|
|
12006
|
+
Kv as getDashboardConfig,
|
|
12007
|
+
ew as getEncountersAndVisitsForEOC,
|
|
12008
|
+
Wv as getFlattenedInvestigations,
|
|
12009
|
+
Lv as getFormattedAllergies,
|
|
12031
12010
|
ut as getFormattedError,
|
|
12032
|
-
|
|
12033
|
-
|
|
12034
|
-
|
|
12035
|
-
|
|
12036
|
-
|
|
12037
|
-
|
|
12038
|
-
|
|
12039
|
-
|
|
12040
|
-
|
|
12041
|
-
|
|
12042
|
-
|
|
12043
|
-
|
|
12044
|
-
|
|
12045
|
-
|
|
12046
|
-
|
|
12047
|
-
|
|
12048
|
-
|
|
12049
|
-
|
|
12050
|
-
|
|
12051
|
-
|
|
12052
|
-
|
|
12053
|
-
|
|
12054
|
-
|
|
12055
|
-
|
|
12056
|
-
|
|
12011
|
+
sv as getFormattedPatientById,
|
|
12012
|
+
fv as getGenders,
|
|
12013
|
+
uv as getIdentifierData,
|
|
12014
|
+
cv as getIdentifierTypes,
|
|
12015
|
+
_v as getInputTypeForFormat,
|
|
12016
|
+
Yv as getMedicationConfig,
|
|
12017
|
+
jp as getOrderTypes,
|
|
12018
|
+
vv as getOrderedAddressHierarchyLevels,
|
|
12019
|
+
Ah as getPatientById,
|
|
12020
|
+
Fv as getPatientDiagnoses,
|
|
12021
|
+
av as getPatientImageAsDataUrl,
|
|
12022
|
+
zv as getPatientLabInvestigations,
|
|
12023
|
+
Dp as getPatientLabTestsBundle,
|
|
12024
|
+
hp as getPatientMedicationBundle,
|
|
12025
|
+
Vv as getPatientMedications,
|
|
12026
|
+
wv as getPatientProfile,
|
|
12027
|
+
uw as getPatientPrograms,
|
|
12028
|
+
Rp as getPatientRadiologyInvestigationBundle,
|
|
12029
|
+
Hv as getPatientRadiologyInvestigations,
|
|
12030
|
+
Ev as getPersonAttributeTypes,
|
|
12031
|
+
Lh as getPrimaryIdentifierType,
|
|
12032
|
+
Jy as getPriorityByOrder,
|
|
12033
|
+
Jv as getRegistrationConfig,
|
|
12034
|
+
bv as getRelationshipTypes,
|
|
12035
|
+
cw as getServiceRequests,
|
|
12036
|
+
Vy as getTodayDate,
|
|
12057
12037
|
ei as getUserLoginLocation,
|
|
12058
12038
|
qr as getUserPreferredLocale,
|
|
12059
|
-
|
|
12060
|
-
|
|
12061
|
-
|
|
12062
|
-
|
|
12063
|
-
|
|
12064
|
-
|
|
12065
|
-
|
|
12066
|
-
|
|
12067
|
-
|
|
12068
|
-
|
|
12069
|
-
|
|
12070
|
-
|
|
12071
|
-
|
|
12072
|
-
|
|
12073
|
-
|
|
12074
|
-
|
|
12039
|
+
yv as getVisitLocationUUID,
|
|
12040
|
+
pv as getVisitTypes,
|
|
12041
|
+
iw as getVitalFlowSheetData,
|
|
12042
|
+
Xy as groupByDate,
|
|
12043
|
+
Bv as groupLabTestsByDate,
|
|
12044
|
+
sw as hasPrivilege,
|
|
12045
|
+
Cy as initAppI18n,
|
|
12046
|
+
rw as initializeAuditListener,
|
|
12047
|
+
Sv as isBooleanFormat,
|
|
12048
|
+
Rv as isConceptFormat,
|
|
12049
|
+
Tv as isDateFormat,
|
|
12050
|
+
Pv as isNumberFormat,
|
|
12051
|
+
Yy as isStringEmpty,
|
|
12052
|
+
$v as isTextFormat,
|
|
12053
|
+
ty as logAuditEvent,
|
|
12054
|
+
Iy as normalizeTranslationKey,
|
|
12075
12055
|
an as notificationService,
|
|
12076
|
-
|
|
12056
|
+
sh as parseQueryParams,
|
|
12077
12057
|
pt as post,
|
|
12078
|
-
|
|
12079
|
-
|
|
12080
|
-
|
|
12081
|
-
|
|
12058
|
+
Ay as put,
|
|
12059
|
+
Gy as refreshQueries,
|
|
12060
|
+
Ov as searchAppointmentsByAttribute,
|
|
12061
|
+
Dv as searchConcepts,
|
|
12082
12062
|
Er as searchFHIRConcepts,
|
|
12083
|
-
|
|
12084
|
-
|
|
12085
|
-
|
|
12086
|
-
|
|
12087
|
-
|
|
12088
|
-
|
|
12089
|
-
|
|
12090
|
-
|
|
12063
|
+
Bh as searchFHIRConceptsByName,
|
|
12064
|
+
iv as searchPatientByCustomAttribute,
|
|
12065
|
+
ov as searchPatientByNameOrId,
|
|
12066
|
+
zy as sortByDate,
|
|
12067
|
+
Av as updateAppointmentStatus,
|
|
12068
|
+
dv as updatePatient,
|
|
12069
|
+
ky as useCamera,
|
|
12070
|
+
fw as useTranslation
|
|
12091
12071
|
};
|