@expofp/floorplan 3.28.3 → 3.29.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/browser/{Button-Coh7q_DI.js → Button-l_hPqiuU.js} +5 -5
- package/dist/browser/{CookieConsent-j1ipRXTj.js → CookieConsent-EffOZJgD.js} +7 -7
- package/dist/browser/{Debug-BU_LYkwF.js → Debug-rOD-YWud.js} +7 -7
- package/dist/browser/{DebugTools-DXiyWDhX.js → DebugTools-BwsNJtP5.js} +6 -6
- package/dist/browser/{Demo-DrtsEare.js → Demo-DQocGpY4.js} +9 -9
- package/dist/browser/{Free-C3Wjdjdq.js → Free-jKrNfKhM.js} +9 -9
- package/dist/browser/{GalleryContainer-C3iBxaZn.js → GalleryContainer-De1iNCNG.js} +10 -10
- package/dist/browser/{GpsLoader-C5BKW26I.js → GpsLoader-BenMF1AT.js} +10 -10
- package/dist/browser/{KioskStore-DPC-3m9q.js → KioskStore-jkf_5ZIR.js} +5 -5
- package/dist/browser/{MaplibreAdapter-CqOBdz25.js → MaplibreAdapter-CE4B_TIi.js} +11 -11
- package/dist/browser/{ModalContainer-BZxG9MJw.js → ModalContainer-BloTbQku.js} +10 -10
- package/dist/browser/{PermissionNotice-39lUAu-m.js → PermissionNotice-DS0oqKu9.js} +6 -6
- package/dist/browser/{SetKioskMode-xG3fZ6xr.js → SetKioskMode-HtAKOPC9.js} +9 -9
- package/dist/browser/{ShowKiosk-CmvZtesx.js → ShowKiosk-7tbZQIDI.js} +10 -10
- package/dist/browser/{ViewerMenuPanel-DU_urcM9.js → ViewerMenuPanel-XbhQNWx_.js} +9 -9
- package/dist/browser/{add-debug-secret-listener-DStP82Xa.js → add-debug-secret-listener-CkeCkfaL.js} +1 -1
- package/dist/browser/{adopt-global-settings-DR4ZSA9m.js → adopt-global-settings-Be-vT3wB.js} +9 -9
- package/dist/browser/{boolean-editor-BVGfJeiC.js → boolean-editor-HgpSyxYE.js} +9 -9
- package/dist/browser/{bootIntercom-xqHoo_gz.js → bootIntercom-CdnkOUSF.js} +2 -2
- package/dist/browser/bundle.json +69 -69
- package/dist/browser/{camera-events-bN1K0dRW.js → camera-events-Cfr8wY1s.js} +1 -1
- package/dist/browser/{classnames-CXGWo8aH.js → classnames-gre2OstJ.js} +2 -2
- package/dist/browser/{client-CuvC5nj8.js → client-DEv3diyQ.js} +5 -5
- package/dist/browser/{components-CNxmdbeV.js → components-cxKqJ5jL.js} +37 -37
- package/dist/browser/{debug-context-CuoJeRPl.js → debug-context-BgfkvL7V.js} +5 -5
- package/dist/browser/{debug-overlay-xUfCfGkl.js → debug-overlay-CblRDbHl.js} +10 -10
- package/dist/browser/{debug-ui-Bzlcuehu.js → debug-ui-DYJdJ6jj.js} +6 -6
- package/dist/browser/{dimming-CIMGmpWl.js → dimming-zcyPvfOo.js} +7 -7
- package/dist/browser/{dist-Bl5ybYSW.js → dist-CRKbXPIc.js} +6 -6
- package/dist/browser/{dist-D2w6YsHQ.js → dist-CjHkfOEr.js} +5 -5
- package/dist/browser/{dist-D7ZFTk7I.js → dist-DK1wSRUs.js} +3 -3
- package/dist/browser/{efp-debug-init-DSb7RulJ.js → efp-debug-init-CakRcoee.js} +3 -3
- package/dist/browser/{enum-editor-Cs-ygRd8.js → enum-editor-aOqv4ECw.js} +4 -4
- package/dist/browser/{es5-DNYtcQ-c.js → es5-CYJMN1yS.js} +2 -2
- package/dist/browser/{event-not-found-BlHpQwmn.js → event-not-found-CFV7733L.js} +1 -1
- package/dist/browser/{exports-9iMM3XEX.js → exports-Cg3bnLdL.js} +1 -1
- package/dist/browser/{favicon-eqHI8xVh.js → favicon-CnMKXilr.js} +1 -1
- package/dist/browser/{fetch-retry.umd-DVMFpnep.js → fetch-retry.umd-BRv-ZUsT.js} +2 -2
- package/dist/browser/{flex-CoxCoAmj.js → flex-Dey_v5Rg.js} +5 -5
- package/dist/browser/{floorplan.loader-D5sL01CC.js → floorplan.loader-Czl85866.js} +10 -10
- package/dist/browser/{floorplan.ready-B4mAWUqB.js → floorplan.ready-DvJANOyh.js} +14 -14
- package/dist/browser/{fuse-Drqz8ttC.js → fuse-D6dqsPyE.js} +2 -2
- package/dist/browser/{i18n-m4Ja_btd.js → i18n-q7qL5ZoI.js} +839 -791
- package/dist/browser/index.js +14 -14
- package/dist/browser/{index.module-D7vtUUo8.js → index.module-BOYpQR7T.js} +4 -4
- package/dist/browser/{integrateKiosk-BsZQLDc2.js → integrateKiosk-BXyk9qXx.js} +4 -4
- package/dist/browser/{is-webview-1SiAcgKc.js → is-webview-BTf8kTai.js} +1 -1
- package/dist/browser/{jsx-runtime-Dv2r57MK.js → jsx-runtime-CDl3fsrH.js} +2 -2
- package/dist/browser/{kiosk-record-E1YVbTzJ.js → kiosk-record-g8ouzTVC.js} +1 -1
- package/dist/browser/{lib-CSXPQkHU.js → lib-DEuN4kdx.js} +3 -3
- package/dist/browser/{loadImage-BvP0FnnL.js → loadImage-C3eJlb8I.js} +4 -4
- package/dist/browser/{logDeviceInfo-BDvzGnfT.js → logDeviceInfo-l6Au-h-6.js} +9 -9
- package/dist/browser/{mobx-BUccMluP.js → mobx-xecOIlkC.js} +4 -4
- package/dist/browser/{optional-boolean-editor-CPoKrNvB.js → optional-boolean-editor-B7aKIM3h.js} +3 -3
- package/dist/browser/{optional-enum-editor-B_7_ZPy-.js → optional-enum-editor-BAe9FxTq.js} +4 -4
- package/dist/browser/{optional-string-editor-CkJ5fL1p.js → optional-string-editor-Da9aXoKe.js} +4 -4
- package/dist/browser/{particles.min-IdgtSwWV.js → particles.min-DURYN-qI.js} +2 -2
- package/dist/browser/{react-B1BglGm0.js → react-DFBml8M2.js} +2 -2
- package/dist/browser/{react-dom-BhdL-d2L.js → react-dom-BcgXsF5y.js} +3 -3
- package/dist/browser/{rolldown-runtime-D3fbr5gg.js → rolldown-runtime-BE082EJH.js} +1 -1
- package/dist/browser/{scheduler-BoBjt-tw.js → scheduler-BTdl9Z-L.js} +2 -2
- package/dist/browser/{select-BF1LF8_K.js → select-DLQkYoyz.js} +10 -10
- package/dist/browser/{settings-U7Zg7UQz.js → settings-CrCkwXD5.js} +2 -2
- package/dist/browser/{settings-item-kKhjUmc_.js → settings-item-J-nvw2nS.js} +6 -6
- package/dist/browser/{store-BAxxXJC1.js → store-Dk0JLM7b.js} +15 -15
- package/dist/browser/{string-editor-BmUo74PT.js → string-editor-BwskUza8.js} +4 -4
- package/dist/browser/{text-field-D00wdoGW.js → text-field-BgJYP7NI.js} +5 -5
- package/dist/browser/{theme-r_iPBO3b.js → theme-DZRNImDh.js} +8 -8
- package/dist/browser/{ui-BW8jA-DQ.js → ui-DIbqA_0R.js} +8 -8
- package/dist/browser/{useRenderTarget-DaMQU-Wc.js → useRenderTarget-QjG-IZYX.js} +4 -4
- package/dist/browser/{viewport-BcJm0QMy.js → viewport-Cre6yS9D.js} +2 -2
- package/package.json +10 -10
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
(function() {
|
|
2
2
|
try {
|
|
3
3
|
var e = typeof window < "u" ? window : typeof global < "u" ? global : typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : {};
|
|
4
|
-
e.SENTRY_RELEASE = { id: "3.
|
|
4
|
+
e.SENTRY_RELEASE = { id: "3.29.0" };
|
|
5
5
|
var t = new e.Error().stack;
|
|
6
|
-
t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "
|
|
6
|
+
t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "e9ce45da-3260-4d2d-9f0c-9e283380e6a0", e._sentryDebugIdIdentifier = "sentry-dbid-e9ce45da-3260-4d2d-9f0c-9e283380e6a0");
|
|
7
7
|
} catch {}
|
|
8
8
|
})();
|
|
9
|
-
import { r as e, t } from "./rolldown-runtime-
|
|
10
|
-
import { s as n } from "./efp-debug-init-
|
|
11
|
-
import { t as r } from "./es5-
|
|
9
|
+
import { r as e, t } from "./rolldown-runtime-BE082EJH.js";
|
|
10
|
+
import { s as n } from "./efp-debug-init-CakRcoee.js";
|
|
11
|
+
import { t as r } from "./es5-CYJMN1yS.js";
|
|
12
12
|
//#region ../config/src/lib/config-store.ts
|
|
13
13
|
var i;
|
|
14
14
|
function a(e) {
|
|
@@ -4010,7 +4010,10 @@ var os = B({
|
|
|
4010
4010
|
id: I(),
|
|
4011
4011
|
name: P(),
|
|
4012
4012
|
parentId: I().optional(),
|
|
4013
|
-
iconUrl: P().optional()
|
|
4013
|
+
iconUrl: P().optional().meta({
|
|
4014
|
+
asset: !0,
|
|
4015
|
+
optionalAsset: !0
|
|
4016
|
+
})
|
|
4014
4017
|
}), Gs = B({ photoFile: P().optional().meta({ asset: !0 }) }), Ks = B({
|
|
4015
4018
|
id: I(),
|
|
4016
4019
|
name: P(),
|
|
@@ -4444,14 +4447,22 @@ function Ac(e) {
|
|
|
4444
4447
|
//#endregion
|
|
4445
4448
|
//#region ../utils/src/lib/fetch-with-retry.ts
|
|
4446
4449
|
var jc, Mc = async function(...t) {
|
|
4447
|
-
return jc || (jc = typeof window < "u" && typeof document < "u" ? window.fetch.bind(window) : (await import("./fetch-retry.umd-
|
|
4450
|
+
return jc || (jc = typeof window < "u" && typeof document < "u" ? window.fetch.bind(window) : (await import("./fetch-retry.umd-BRv-ZUsT.js").then((t) => /* @__PURE__ */ e(t.default, 1))).default(globalThis.fetch)), jc(...t);
|
|
4448
4451
|
};
|
|
4449
4452
|
//#endregion
|
|
4450
4453
|
//#region ../utils/src/lib/import-node-module.ts
|
|
4451
4454
|
async function Nc(e) {
|
|
4452
4455
|
var t;
|
|
4453
4456
|
if (typeof process > "u" || !((t = process.versions) != null && t.node)) throw Error("importNodeModule can only be used in Node.js environments");
|
|
4454
|
-
|
|
4457
|
+
try {
|
|
4458
|
+
return await Function("moduleName", "return import(moduleName)")(e);
|
|
4459
|
+
} catch {
|
|
4460
|
+
return await import(
|
|
4461
|
+
/* @vite-ignore */
|
|
4462
|
+
/* webpackIgnore: true */
|
|
4463
|
+
e
|
|
4464
|
+
);
|
|
4465
|
+
}
|
|
4455
4466
|
}
|
|
4456
4467
|
//#endregion
|
|
4457
4468
|
//#region ../utils/src/lib/import-fs-promises.ts
|
|
@@ -4992,32 +5003,44 @@ function Zl(e, t) {
|
|
|
4992
5003
|
}
|
|
4993
5004
|
}
|
|
4994
5005
|
//#endregion
|
|
5006
|
+
//#region ../config/src/lib/store-ref.ts
|
|
5007
|
+
var Ql = "$/", $l = /^\$\/([a-z0-9-]+)\/(.+)$/;
|
|
5008
|
+
function eu(e) {
|
|
5009
|
+
return e.startsWith(Ql);
|
|
5010
|
+
}
|
|
5011
|
+
function tu(e) {
|
|
5012
|
+
if (!eu(e)) return e;
|
|
5013
|
+
let t = $l.exec(e);
|
|
5014
|
+
if (!t) throw Error(`resolveUrl: malformed store ref ${JSON.stringify(e)}`);
|
|
5015
|
+
return `https://${t[1]}.expofp.com/immutable/${t[2]}`;
|
|
5016
|
+
}
|
|
5017
|
+
//#endregion
|
|
4995
5018
|
//#region ../config/src/lib/validate-flag.ts
|
|
4996
|
-
function
|
|
5019
|
+
function nu(e, t) {
|
|
4997
5020
|
var n;
|
|
4998
5021
|
let r = e === void 0 ? void 0 : uc(sc, e).value.validateSchema, i = t ? es(cc, t).validateSchema : void 0;
|
|
4999
5022
|
return (n = r == null ? i : r) != null && n;
|
|
5000
5023
|
}
|
|
5001
5024
|
//#endregion
|
|
5002
5025
|
//#region ../config/src/lib/validate-timing.ts
|
|
5003
|
-
var
|
|
5004
|
-
function
|
|
5005
|
-
|
|
5026
|
+
var ru = (0, Uo.default)("efp:config:validate"), iu = 0, au = 0, ou = -Infinity, su = !1;
|
|
5027
|
+
function cu() {
|
|
5028
|
+
ou = performance.now(), ru("%d validations, %sms total since page load", au, iu.toFixed(1));
|
|
5006
5029
|
}
|
|
5007
|
-
function
|
|
5008
|
-
if (
|
|
5030
|
+
function lu(e) {
|
|
5031
|
+
if (!ru.enabled) return e();
|
|
5009
5032
|
let t = performance.now();
|
|
5010
5033
|
try {
|
|
5011
5034
|
return e();
|
|
5012
5035
|
} finally {
|
|
5013
|
-
|
|
5014
|
-
let e = performance.now() -
|
|
5015
|
-
if (e >= 1e3)
|
|
5016
|
-
else if (!
|
|
5036
|
+
iu += performance.now() - t, au++;
|
|
5037
|
+
let e = performance.now() - ou;
|
|
5038
|
+
if (e >= 1e3) cu();
|
|
5039
|
+
else if (!su) {
|
|
5017
5040
|
var n;
|
|
5018
|
-
|
|
5041
|
+
su = !0;
|
|
5019
5042
|
let t = setTimeout(() => {
|
|
5020
|
-
|
|
5043
|
+
su = !1, cu();
|
|
5021
5044
|
}, 1e3 - e);
|
|
5022
5045
|
(n = t.unref) == null || n.call(t);
|
|
5023
5046
|
}
|
|
@@ -5025,39 +5048,43 @@ function au(e) {
|
|
|
5025
5048
|
}
|
|
5026
5049
|
//#endregion
|
|
5027
5050
|
//#region ../config/src/lib/visit-resources.ts
|
|
5028
|
-
var
|
|
5029
|
-
function
|
|
5030
|
-
|
|
5051
|
+
var uu = !1;
|
|
5052
|
+
function du(e) {
|
|
5053
|
+
uu = e;
|
|
5031
5054
|
}
|
|
5032
|
-
function
|
|
5033
|
-
return
|
|
5055
|
+
function fu(e, t) {
|
|
5056
|
+
return uu ? lu(() => e.parse(t)) : kc(t);
|
|
5034
5057
|
}
|
|
5035
|
-
function
|
|
5058
|
+
function pu(e, t, n) {
|
|
5036
5059
|
let r = async (e, r) => {
|
|
5037
|
-
let i =
|
|
5060
|
+
let i = fu(t, e);
|
|
5038
5061
|
n == null || n(i);
|
|
5039
5062
|
let a = Dl(r), o = El(a);
|
|
5040
|
-
return await
|
|
5063
|
+
return await mu(t, i, { asset: (e) => eu(e) ? tu(e) : o ? Tl(e, a) : e }), i;
|
|
5041
5064
|
};
|
|
5042
5065
|
return {
|
|
5043
5066
|
...e,
|
|
5044
5067
|
process: r
|
|
5045
5068
|
};
|
|
5046
5069
|
}
|
|
5047
|
-
async function
|
|
5048
|
-
await
|
|
5070
|
+
async function mu(e, t, n, r) {
|
|
5071
|
+
await hu(qo(e), t, _u, n, r);
|
|
5049
5072
|
}
|
|
5050
|
-
async function
|
|
5073
|
+
async function hu(e, t, n, r, i) {
|
|
5051
5074
|
var a;
|
|
5052
5075
|
if (t == null) return;
|
|
5053
5076
|
let o = (a = e == null ? void 0 : e.anyOf) == null ? e == null ? void 0 : e.oneOf : a;
|
|
5054
|
-
if (o) return
|
|
5055
|
-
if (
|
|
5077
|
+
if (o) return hu(o.find((e) => Yo(e, t)), t, n, r, i);
|
|
5078
|
+
if (gu(t)) {
|
|
5079
|
+
if (r.ref) {
|
|
5080
|
+
n({ $ref: await r.ref(t.$ref) });
|
|
5081
|
+
return;
|
|
5082
|
+
}
|
|
5056
5083
|
if (!r.document || t.$ref.startsWith("/")) return;
|
|
5057
5084
|
let a = t.$ref;
|
|
5058
5085
|
try {
|
|
5059
|
-
let o = e ? Jo(e) : void 0, s = { document: kc(bl(t) ? yl(t) : await vl(o ?
|
|
5060
|
-
o && await
|
|
5086
|
+
let o = e ? Jo(e) : void 0, s = { document: kc(bl(t) ? yl(t) : await vl(o ? pu({ $ref: a }, o) : { $ref: a }, { signal: i == null ? void 0 : i.signal })) };
|
|
5087
|
+
o && await hu(qo(o), s.document, (e) => {
|
|
5061
5088
|
s.document = e;
|
|
5062
5089
|
}, r, i), n({ $ref: await r.document(a, s.document) });
|
|
5063
5090
|
} catch (e) {
|
|
@@ -5079,7 +5106,7 @@ async function du(e, t, n, r, i) {
|
|
|
5079
5106
|
let e = t, i = /* @__PURE__ */ new Set();
|
|
5080
5107
|
r.stylesheetText && ({css: e, external: i} = await Rl(e, r.stylesheetText.bind(r)));
|
|
5081
5108
|
let a = /* @__PURE__ */ new Map();
|
|
5082
|
-
for (let t of Fl(e)) i.has(t) || /^[a-z][a-z0-9+.-]*:/i.test(t) && a.set(t, await r.asset(t));
|
|
5109
|
+
for (let t of Fl(e)) i.has(t) || (eu(t) || /^[a-z][a-z0-9+.-]*:/i.test(t)) && a.set(t, await r.asset(t));
|
|
5083
5110
|
n(Il(e, (e) => {
|
|
5084
5111
|
var t;
|
|
5085
5112
|
return (t = a.get(e)) == null ? e : t;
|
|
@@ -5088,7 +5115,7 @@ async function du(e, t, n, r, i) {
|
|
|
5088
5115
|
return;
|
|
5089
5116
|
}
|
|
5090
5117
|
if (Array.isArray(t)) {
|
|
5091
|
-
for (let n = 0; n < t.length; n++) await
|
|
5118
|
+
for (let n = 0; n < t.length; n++) await hu(e == null ? void 0 : e.items, t[n], (e) => {
|
|
5092
5119
|
t[n] = e;
|
|
5093
5120
|
}, r, i);
|
|
5094
5121
|
return;
|
|
@@ -5097,54 +5124,54 @@ async function du(e, t, n, r, i) {
|
|
|
5097
5124
|
let n = t, a = typeof (e == null ? void 0 : e.additionalProperties) == "object" ? e.additionalProperties : void 0;
|
|
5098
5125
|
for (let t of Object.keys(n)) {
|
|
5099
5126
|
var s, c;
|
|
5100
|
-
await
|
|
5127
|
+
await hu((s = e == null || (c = e.properties) == null ? void 0 : c[t]) == null ? a : s, n[t], (e) => {
|
|
5101
5128
|
e === void 0 ? delete n[t] : n[t] = e;
|
|
5102
5129
|
}, r, i);
|
|
5103
5130
|
}
|
|
5104
5131
|
}
|
|
5105
5132
|
}
|
|
5106
|
-
function
|
|
5133
|
+
function gu(e) {
|
|
5107
5134
|
return typeof e == "object" && !!e && "$ref" in e && typeof e.$ref == "string";
|
|
5108
5135
|
}
|
|
5109
|
-
function
|
|
5136
|
+
function _u() {
|
|
5110
5137
|
throw Error("visitResources: the top-level value must be an object or array");
|
|
5111
5138
|
}
|
|
5112
5139
|
//#endregion
|
|
5113
5140
|
//#region ../config/src/lib/load-config.ts
|
|
5114
|
-
var
|
|
5115
|
-
async function
|
|
5141
|
+
var vu = (0, Uo.default)("efp:config");
|
|
5142
|
+
async function yu(e, t, n, r) {
|
|
5116
5143
|
let i = { ...lc };
|
|
5117
|
-
|
|
5144
|
+
du(nu(n, r)), e = fu(ac, await xu(e)), await Su(e);
|
|
5118
5145
|
let { legacyDataUrlBase: a, legacyDataVersion: o, ...s } = e;
|
|
5119
|
-
|
|
5146
|
+
Mu(s), Nu(i, s), t = oc.parse(t), Mu(t);
|
|
5120
5147
|
let c = String(Date.now());
|
|
5121
5148
|
if (a) {
|
|
5122
|
-
if (
|
|
5149
|
+
if (ku()) vu("loadConfig", "designer referrer — cache-busting with a timestamp");
|
|
5123
5150
|
else if (typeof o == "string" && o) c = o;
|
|
5124
|
-
else if (o === null)
|
|
5151
|
+
else if (o === null) vu("loadConfig", "manifest pins \"no version\" — cache-busting with a timestamp");
|
|
5125
5152
|
else try {
|
|
5126
5153
|
c = (await vl({ $ref: `${a}version.json` })).version;
|
|
5127
5154
|
} catch {
|
|
5128
|
-
|
|
5155
|
+
vu("loadConfig", "no version.json found at", a);
|
|
5129
5156
|
}
|
|
5130
|
-
i.fpSvgJsRef != null || (i.fpSvgJsRef =
|
|
5157
|
+
i.fpSvgJsRef != null || (i.fpSvgJsRef = Au(a, "fp.svg.js", c)), i.wfDataJsRef != null || (i.wfDataJsRef = Au(a, "wf.data.js", c));
|
|
5131
5158
|
}
|
|
5132
|
-
i.fpSvgJsRef && (i.fpSvgJsRef =
|
|
5159
|
+
i.fpSvgJsRef && (i.fpSvgJsRef = pu(i.fpSvgJsRef, Fs)), i.wfDataJsRef && (i.wfDataJsRef = pu(i.wfDataJsRef, Zs));
|
|
5133
5160
|
let l = {};
|
|
5134
|
-
for (let [e, t] of Object.entries(i.fpSvgLayerJsRefs)) l[e] =
|
|
5161
|
+
for (let [e, t] of Object.entries(i.fpSvgLayerJsRefs)) l[e] = Du(t, e);
|
|
5135
5162
|
i.fpSvgLayerJsRefs = l;
|
|
5136
5163
|
let [u, d] = await Promise.all([
|
|
5137
|
-
a ?
|
|
5138
|
-
i.fpSvgJsRef ?
|
|
5139
|
-
|
|
5164
|
+
a ? Cu(a, c) : null,
|
|
5165
|
+
i.fpSvgJsRef ? Tu(i.fpSvgJsRef, a) : null,
|
|
5166
|
+
Eu(i.wfDataJsRef)
|
|
5140
5167
|
]);
|
|
5141
5168
|
if (u) {
|
|
5142
5169
|
let { flags: e, legacyDataUrlBase: t, legacyDataVersion: n, fpSvgJsRef: r, wfDataJsRef: a, fpSvgLayerJsRefs: o, ...s } = u;
|
|
5143
|
-
e && (
|
|
5170
|
+
e && (Mu(e), Nu(i, e)), Mu(s), Nu(i, s);
|
|
5144
5171
|
}
|
|
5145
|
-
if (d && (i.fpSvgJsRef = d.ref, !Object.keys(i.fpSvgLayerJsRefs).length && a && (i.fpSvgLayerJsRefs =
|
|
5172
|
+
if (d && (i.fpSvgJsRef = d.ref, !Object.keys(i.fpSvgLayerJsRefs).length && a && (i.fpSvgLayerJsRefs = Ou(d.payload, a, c))), Nu(i, t), r) {
|
|
5146
5173
|
let { viewerMode: e, previewMode: t, uiScale: n, ...a } = es(cc, r);
|
|
5147
|
-
|
|
5174
|
+
Nu(i, a);
|
|
5148
5175
|
}
|
|
5149
5176
|
if (n !== void 0 && !i.ignoreQuery) {
|
|
5150
5177
|
var f;
|
|
@@ -5153,65 +5180,86 @@ async function hu(e, t, n, r) {
|
|
|
5153
5180
|
consent: e.consent,
|
|
5154
5181
|
intents: a
|
|
5155
5182
|
}), c = [...a, ...o];
|
|
5156
|
-
c.length && (e.intents = c), t.push(...r.invalidKeys), t.length &&
|
|
5183
|
+
c.length && (e.intents = c), t.push(...r.invalidKeys), t.length && vu("loadConfig", "ignoring invalid URL config params:", t), Nu(i, s), Nu(i, e);
|
|
5157
5184
|
}
|
|
5158
5185
|
return Wl(i, a), await Jl(i, i.ignoreQuery ? void 0 : n), delete i.validateSchema, Ac(i), i;
|
|
5159
5186
|
}
|
|
5160
|
-
|
|
5187
|
+
var bu = 3;
|
|
5188
|
+
async function xu(e) {
|
|
5189
|
+
let t = e;
|
|
5190
|
+
for (let e = 0;; e++) {
|
|
5191
|
+
gu(t) && (t = {
|
|
5192
|
+
...t,
|
|
5193
|
+
$ref: tu(t.$ref)
|
|
5194
|
+
});
|
|
5195
|
+
let n = await vl(t);
|
|
5196
|
+
if (!gu(n)) return n;
|
|
5197
|
+
if (e >= bu) throw Error(`loadConfig: manifest pointer chain deeper than ${bu} at ${n.$ref}`);
|
|
5198
|
+
vu("loadConfig", "manifest is a pointer, following it to", n.$ref), t = { $ref: n.$ref };
|
|
5199
|
+
}
|
|
5200
|
+
}
|
|
5201
|
+
async function Su(e) {
|
|
5202
|
+
let t = (e) => tu(e);
|
|
5203
|
+
await mu(ac, e, {
|
|
5204
|
+
asset: t,
|
|
5205
|
+
ref: t
|
|
5206
|
+
});
|
|
5207
|
+
}
|
|
5208
|
+
async function Cu(e, t) {
|
|
5161
5209
|
var n;
|
|
5162
|
-
let r = await vl(
|
|
5163
|
-
return r.__data ||
|
|
5210
|
+
let r = await vl(pu(Au(e, "data.js", t), ic));
|
|
5211
|
+
return r.__data || vu("loadLegacyDataJs", "no __data global in data.js at", e), kc((n = r.__data) == null ? {} : n);
|
|
5164
5212
|
}
|
|
5165
|
-
var
|
|
5166
|
-
async function
|
|
5213
|
+
var wu = 2e3;
|
|
5214
|
+
async function Tu(e, t) {
|
|
5167
5215
|
let n = e, r = await vl(n);
|
|
5168
|
-
for (let i = 1; r.__fpPending && !r.__fp; i++)
|
|
5216
|
+
for (let i = 1; r.__fpPending && !r.__fp; i++) vu("loadLegacyFpSvgJs", "plan is still generating, retry", i), await ju(wu), n = t ? pu(Au(t, "fp.svg.js", String(i)), Fs) : e, r = await vl(n, { forceFetch: !0 });
|
|
5169
5217
|
return {
|
|
5170
5218
|
payload: r,
|
|
5171
5219
|
ref: n
|
|
5172
5220
|
};
|
|
5173
5221
|
}
|
|
5174
|
-
async function
|
|
5222
|
+
async function Eu(e) {
|
|
5175
5223
|
if (e) try {
|
|
5176
5224
|
await vl(e);
|
|
5177
5225
|
} catch (e) {
|
|
5178
|
-
|
|
5226
|
+
vu("prefetchWfData", "wf.data.js not loaded, wayfinding stays off", e);
|
|
5179
5227
|
}
|
|
5180
5228
|
}
|
|
5181
|
-
function
|
|
5182
|
-
return
|
|
5229
|
+
function Du(e, t) {
|
|
5230
|
+
return pu(e, Ns, (e) => wl(e, t));
|
|
5183
5231
|
}
|
|
5184
|
-
function
|
|
5232
|
+
function Ou(e, t, n) {
|
|
5185
5233
|
var r;
|
|
5186
5234
|
let i = {};
|
|
5187
|
-
for (let a of (r = e.__fpLayers) == null ? [] : r) a.name !== e.__fpDefaultLayer && (i[a.name] =
|
|
5235
|
+
for (let a of (r = e.__fpLayers) == null ? [] : r) a.name !== e.__fpDefaultLayer && (i[a.name] = Du(Au(t, `fp.svg.${a.name}.js`, n), a.name));
|
|
5188
5236
|
return i;
|
|
5189
5237
|
}
|
|
5190
|
-
function
|
|
5238
|
+
function ku() {
|
|
5191
5239
|
return typeof document > "u" || !document.referrer ? !1 : document.referrer.includes("app.expofp.com") || document.referrer.includes("app-show.expofp.com");
|
|
5192
5240
|
}
|
|
5193
|
-
function
|
|
5241
|
+
function Au(e, t, n) {
|
|
5194
5242
|
let r = `${e}${t}`;
|
|
5195
5243
|
return { $ref: n ? `${r}?v=${n}` : r };
|
|
5196
5244
|
}
|
|
5197
|
-
function
|
|
5245
|
+
function ju(e) {
|
|
5198
5246
|
return new Promise((t) => setTimeout(t, e));
|
|
5199
5247
|
}
|
|
5200
|
-
function
|
|
5248
|
+
function Mu(e) {
|
|
5201
5249
|
e.allowConsent !== void 0 && (e.consent != null || (e.consent = e.allowConsent ? "granted" : "denied"), delete e.allowConsent);
|
|
5202
5250
|
}
|
|
5203
|
-
function
|
|
5251
|
+
function Nu(e, t) {
|
|
5204
5252
|
for (let [n, r] of Object.entries(t)) r !== void 0 && (e[n] = r);
|
|
5205
5253
|
}
|
|
5206
5254
|
//#endregion
|
|
5207
5255
|
//#region src/constants.ts
|
|
5208
|
-
var
|
|
5256
|
+
var Pu = "___visibility", Fu = "data-preview-mode", Iu = "booths", Lu = "Outdoor", Ru = "#ea4236", zu = "rgba(234, 66, 54, 0.85)", Bu = "#ffffff", Vu = "kiosk", Hu = "setkiosk", Uu = "debug", Wu = "efp-debugMode", Gu = "pathway", Ku = 1e3, qu = "language", Ju = "efp-viewerMode", Yu = "___viewer_mode", Xu = "efp-previewMode", Zu = "___preview_mode", Qu = "efp-uiScale", $u = "___ui-scale", ed = "--expofp-font-face", td = "--expofp-booth-main-weight", nd = "--expofp-booth-details-weight", rd = "--expofp-exhibitor-main-weight", id = "--expofp-exhibitor-details-weight", ad = "--expofp-booth-special-weight", od = "efp-compass-permission-granted", sd = new URL(
|
|
5209
5257
|
/* @vite-ignore */
|
|
5210
5258
|
".",
|
|
5211
5259
|
import.meta.url
|
|
5212
5260
|
).href;
|
|
5213
|
-
|
|
5214
|
-
var
|
|
5261
|
+
sd.endsWith("/") || (sd += "/");
|
|
5262
|
+
var cd = sd, ld = /* @__PURE__ */ e((/* @__PURE__ */ t(((e, t) => {
|
|
5215
5263
|
(function() {
|
|
5216
5264
|
function e(e, t) {
|
|
5217
5265
|
document.addEventListener ? e.addEventListener("scroll", t, !1) : e.attachEvent("scroll", t);
|
|
@@ -5311,17 +5359,17 @@ var td = ed, nd = /* @__PURE__ */ e((/* @__PURE__ */ t(((e, t) => {
|
|
|
5311
5359
|
});
|
|
5312
5360
|
}, typeof t == "object" ? t.exports = s : (window.FontFaceObserver = s, window.FontFaceObserver.prototype.load = s.prototype.load);
|
|
5313
5361
|
})();
|
|
5314
|
-
})))(), 1),
|
|
5362
|
+
})))(), 1), ud = /* @__PURE__ */ e(r(), 1), dd = window.navigator.userAgent, fd = ud.default.getParser(dd);
|
|
5315
5363
|
//#endregion
|
|
5316
5364
|
//#region src/tools/loaders.ts
|
|
5317
|
-
async function
|
|
5365
|
+
async function pd(e) {
|
|
5318
5366
|
return await (await fetch(e, { credentials: "same-origin" })).json();
|
|
5319
5367
|
}
|
|
5320
|
-
function
|
|
5368
|
+
function md(e, t) {
|
|
5321
5369
|
let n = document.createElement("link");
|
|
5322
5370
|
n.rel = "stylesheet", n.href = e, n.setAttribute("fetchpriority", "high"), t.appendChild(n);
|
|
5323
5371
|
}
|
|
5324
|
-
async function
|
|
5372
|
+
async function hd(e, t, n) {
|
|
5325
5373
|
var r;
|
|
5326
5374
|
n = {
|
|
5327
5375
|
style: "normal",
|
|
@@ -5329,8 +5377,8 @@ async function cd(e, t, n) {
|
|
|
5329
5377
|
...n || {}
|
|
5330
5378
|
};
|
|
5331
5379
|
let i = `url("${t}")`;
|
|
5332
|
-
if (!window.FontFace) return e.startsWith("Font Awesome") ||
|
|
5333
|
-
e.indexOf(" ") !== -1 && ((r =
|
|
5380
|
+
if (!window.FontFace) return e.startsWith("Font Awesome") || gd(e, i, n), Promise.resolve();
|
|
5381
|
+
e.indexOf(" ") !== -1 && ((r = fd.getEngine()) == null ? void 0 : r.name) === "Gecko" && (e = `'${e}'`);
|
|
5334
5382
|
let a;
|
|
5335
5383
|
try {
|
|
5336
5384
|
a = new FontFace(e, i, n);
|
|
@@ -5339,17 +5387,17 @@ async function cd(e, t, n) {
|
|
|
5339
5387
|
}
|
|
5340
5388
|
return document.fonts.add(a), a.load();
|
|
5341
5389
|
}
|
|
5342
|
-
function
|
|
5390
|
+
function gd(e, t, n) {
|
|
5343
5391
|
let r = document.createElement("style");
|
|
5344
5392
|
r.appendChild(document.createTextNode(`@font-face { font-family: ${e}; font-weight: ${n.weight}; font-style: ${n.style}; src: ${t} format('woff2'); font-display: swap; }`)), document.head.appendChild(r);
|
|
5345
5393
|
let i = document.createElement("div");
|
|
5346
5394
|
i.setAttribute("style", `font-family: oswald; font-weight: ${n.weight}; position: fixed; left: -1000px; top: 0; visibility: hidden`), i.innerHTML = "Oswald", document.body.appendChild(i);
|
|
5347
5395
|
}
|
|
5348
|
-
async function
|
|
5396
|
+
async function _d(e) {
|
|
5349
5397
|
var t;
|
|
5350
5398
|
let n = getComputedStyle(document.documentElement).getPropertyValue("--expofp-font-face") || ((t = e.match(/--expofp-font-face:\s*([^;]*)/)) == null ? void 0 : t[1]);
|
|
5351
5399
|
if (!n) return;
|
|
5352
|
-
let r = n.replace(/"/g, "").split(", ").map((e) => e.trim()).map((e) => new
|
|
5400
|
+
let r = n.replace(/"/g, "").split(", ").map((e) => e.trim()).map((e) => new ld.default(e).load());
|
|
5353
5401
|
return Promise.allSettled(r);
|
|
5354
5402
|
}
|
|
5355
5403
|
//#endregion
|
|
@@ -5364,7 +5412,7 @@ function U(e) {
|
|
|
5364
5412
|
}
|
|
5365
5413
|
//#endregion
|
|
5366
5414
|
//#region ../../node_modules/.pnpm/@babel+runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/toPrimitive.js
|
|
5367
|
-
function
|
|
5415
|
+
function vd(e, t) {
|
|
5368
5416
|
if (U(e) != "object" || !e) return e;
|
|
5369
5417
|
var n = e[Symbol.toPrimitive];
|
|
5370
5418
|
if (n !== void 0) {
|
|
@@ -5376,14 +5424,14 @@ function dd(e, t) {
|
|
|
5376
5424
|
}
|
|
5377
5425
|
//#endregion
|
|
5378
5426
|
//#region ../../node_modules/.pnpm/@babel+runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/toPropertyKey.js
|
|
5379
|
-
function
|
|
5380
|
-
var t =
|
|
5427
|
+
function yd(e) {
|
|
5428
|
+
var t = vd(e, "string");
|
|
5381
5429
|
return U(t) == "symbol" ? t : t + "";
|
|
5382
5430
|
}
|
|
5383
5431
|
//#endregion
|
|
5384
5432
|
//#region ../../node_modules/.pnpm/@babel+runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
|
5385
|
-
function
|
|
5386
|
-
return (t =
|
|
5433
|
+
function bd(e, t, n) {
|
|
5434
|
+
return (t = yd(t)) in e ? Object.defineProperty(e, t, {
|
|
5387
5435
|
value: n,
|
|
5388
5436
|
enumerable: !0,
|
|
5389
5437
|
configurable: !0,
|
|
@@ -5398,67 +5446,67 @@ function W(e) {
|
|
|
5398
5446
|
typeof Object.getOwnPropertySymbols == "function" && r.push.apply(r, Object.getOwnPropertySymbols(n).filter(function(e) {
|
|
5399
5447
|
return Object.getOwnPropertyDescriptor(n, e).enumerable;
|
|
5400
5448
|
})), r.forEach(function(t) {
|
|
5401
|
-
|
|
5449
|
+
bd(e, t, n[t]);
|
|
5402
5450
|
});
|
|
5403
5451
|
}
|
|
5404
5452
|
return e;
|
|
5405
5453
|
}
|
|
5406
5454
|
//#endregion
|
|
5407
5455
|
//#region ../../node_modules/.pnpm/@babel+runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/classCallCheck.js
|
|
5408
|
-
function
|
|
5456
|
+
function xd(e, t) {
|
|
5409
5457
|
if (!(e instanceof t)) throw TypeError("Cannot call a class as a function");
|
|
5410
5458
|
}
|
|
5411
5459
|
//#endregion
|
|
5412
5460
|
//#region ../../node_modules/.pnpm/@babel+runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/createClass.js
|
|
5413
|
-
function
|
|
5461
|
+
function Sd(e, t) {
|
|
5414
5462
|
for (var n = 0; n < t.length; n++) {
|
|
5415
5463
|
var r = t[n];
|
|
5416
|
-
r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e,
|
|
5464
|
+
r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, yd(r.key), r);
|
|
5417
5465
|
}
|
|
5418
5466
|
}
|
|
5419
|
-
function
|
|
5420
|
-
return t &&
|
|
5467
|
+
function Cd(e, t, n) {
|
|
5468
|
+
return t && Sd(e.prototype, t), n && Sd(e, n), Object.defineProperty(e, "prototype", { writable: !1 }), e;
|
|
5421
5469
|
}
|
|
5422
5470
|
//#endregion
|
|
5423
5471
|
//#region ../../node_modules/.pnpm/@babel+runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js
|
|
5424
|
-
function
|
|
5472
|
+
function wd(e) {
|
|
5425
5473
|
if (e === void 0) throw ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
5426
5474
|
return e;
|
|
5427
5475
|
}
|
|
5428
5476
|
//#endregion
|
|
5429
5477
|
//#region ../../node_modules/.pnpm/@babel+runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js
|
|
5430
|
-
function
|
|
5478
|
+
function Td(e, t) {
|
|
5431
5479
|
if (t && (U(t) == "object" || typeof t == "function")) return t;
|
|
5432
5480
|
if (t !== void 0) throw TypeError("Derived constructors may only return object or undefined");
|
|
5433
|
-
return
|
|
5481
|
+
return wd(e);
|
|
5434
5482
|
}
|
|
5435
5483
|
//#endregion
|
|
5436
5484
|
//#region ../../node_modules/.pnpm/@babel+runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js
|
|
5437
|
-
function
|
|
5438
|
-
return
|
|
5485
|
+
function Ed(e) {
|
|
5486
|
+
return Ed = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(e) {
|
|
5439
5487
|
return e.__proto__ || Object.getPrototypeOf(e);
|
|
5440
|
-
},
|
|
5488
|
+
}, Ed(e);
|
|
5441
5489
|
}
|
|
5442
5490
|
//#endregion
|
|
5443
5491
|
//#region ../../node_modules/.pnpm/@babel+runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js
|
|
5444
|
-
function
|
|
5445
|
-
return
|
|
5492
|
+
function Dd(e, t) {
|
|
5493
|
+
return Dd = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(e, t) {
|
|
5446
5494
|
return e.__proto__ = t, e;
|
|
5447
|
-
},
|
|
5495
|
+
}, Dd(e, t);
|
|
5448
5496
|
}
|
|
5449
5497
|
//#endregion
|
|
5450
5498
|
//#region ../../node_modules/.pnpm/@babel+runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/inherits.js
|
|
5451
|
-
function
|
|
5499
|
+
function Od(e, t) {
|
|
5452
5500
|
if (typeof t != "function" && t !== null) throw TypeError("Super expression must either be null or a function");
|
|
5453
5501
|
e.prototype = Object.create(t && t.prototype, { constructor: {
|
|
5454
5502
|
value: e,
|
|
5455
5503
|
writable: !0,
|
|
5456
5504
|
configurable: !0
|
|
5457
|
-
} }), Object.defineProperty(e, "prototype", { writable: !1 }), t &&
|
|
5505
|
+
} }), Object.defineProperty(e, "prototype", { writable: !1 }), t && Dd(e, t);
|
|
5458
5506
|
}
|
|
5459
5507
|
//#endregion
|
|
5460
5508
|
//#region ../../node_modules/.pnpm/i18next@19.9.2/node_modules/i18next/dist/esm/i18next.js
|
|
5461
|
-
var
|
|
5509
|
+
var kd = {
|
|
5462
5510
|
type: "logger",
|
|
5463
5511
|
log: function(e) {
|
|
5464
5512
|
this.output("log", e);
|
|
@@ -5472,17 +5520,17 @@ var Sd = {
|
|
|
5472
5520
|
output: function(e, t) {
|
|
5473
5521
|
console && console[e] && console[e].apply(console, t);
|
|
5474
5522
|
}
|
|
5475
|
-
},
|
|
5523
|
+
}, Ad = new (function() {
|
|
5476
5524
|
function e(t) {
|
|
5477
5525
|
var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
5478
|
-
|
|
5526
|
+
xd(this, e), this.init(t, n);
|
|
5479
5527
|
}
|
|
5480
|
-
return
|
|
5528
|
+
return Cd(e, [
|
|
5481
5529
|
{
|
|
5482
5530
|
key: "init",
|
|
5483
5531
|
value: function(e) {
|
|
5484
5532
|
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
5485
|
-
this.prefix = t.prefix || "i18next:", this.logger = e ||
|
|
5533
|
+
this.prefix = t.prefix || "i18next:", this.logger = e || kd, this.options = t, this.debug = t.debug;
|
|
5486
5534
|
}
|
|
5487
5535
|
},
|
|
5488
5536
|
{
|
|
@@ -5532,11 +5580,11 @@ var Sd = {
|
|
|
5532
5580
|
}
|
|
5533
5581
|
}
|
|
5534
5582
|
]), e;
|
|
5535
|
-
}())(),
|
|
5583
|
+
}())(), jd = function() {
|
|
5536
5584
|
function e() {
|
|
5537
|
-
|
|
5585
|
+
xd(this, e), this.observers = {};
|
|
5538
5586
|
}
|
|
5539
|
-
return
|
|
5587
|
+
return Cd(e, [
|
|
5540
5588
|
{
|
|
5541
5589
|
key: "on",
|
|
5542
5590
|
value: function(e, t) {
|
|
@@ -5573,21 +5621,21 @@ var Sd = {
|
|
|
5573
5621
|
}
|
|
5574
5622
|
]), e;
|
|
5575
5623
|
}();
|
|
5576
|
-
function
|
|
5624
|
+
function Md() {
|
|
5577
5625
|
var e, t, n = new Promise(function(n, r) {
|
|
5578
5626
|
e = n, t = r;
|
|
5579
5627
|
});
|
|
5580
5628
|
return n.resolve = e, n.reject = t, n;
|
|
5581
5629
|
}
|
|
5582
|
-
function
|
|
5630
|
+
function Nd(e) {
|
|
5583
5631
|
return e == null ? "" : "" + e;
|
|
5584
5632
|
}
|
|
5585
|
-
function
|
|
5633
|
+
function Pd(e, t, n) {
|
|
5586
5634
|
e.forEach(function(e) {
|
|
5587
5635
|
t[e] && (n[e] = t[e]);
|
|
5588
5636
|
});
|
|
5589
5637
|
}
|
|
5590
|
-
function
|
|
5638
|
+
function Fd(e, t, n) {
|
|
5591
5639
|
function r(e) {
|
|
5592
5640
|
return e && e.indexOf("###") > -1 ? e.replace(/###/g, ".") : e;
|
|
5593
5641
|
}
|
|
@@ -5604,30 +5652,30 @@ function Od(e, t, n) {
|
|
|
5604
5652
|
k: r(a.shift())
|
|
5605
5653
|
};
|
|
5606
5654
|
}
|
|
5607
|
-
function
|
|
5608
|
-
var r =
|
|
5655
|
+
function Id(e, t, n) {
|
|
5656
|
+
var r = Fd(e, t, Object), i = r.obj, a = r.k;
|
|
5609
5657
|
i[a] = n;
|
|
5610
5658
|
}
|
|
5611
|
-
function
|
|
5612
|
-
var i =
|
|
5659
|
+
function Ld(e, t, n, r) {
|
|
5660
|
+
var i = Fd(e, t, Object), a = i.obj, o = i.k;
|
|
5613
5661
|
a[o] = a[o] || [], r && (a[o] = a[o].concat(n)), r || a[o].push(n);
|
|
5614
5662
|
}
|
|
5615
|
-
function
|
|
5616
|
-
var n =
|
|
5663
|
+
function Rd(e, t) {
|
|
5664
|
+
var n = Fd(e, t), r = n.obj, i = n.k;
|
|
5617
5665
|
if (r) return r[i];
|
|
5618
5666
|
}
|
|
5619
|
-
function
|
|
5620
|
-
var r =
|
|
5621
|
-
return r === void 0 ?
|
|
5667
|
+
function zd(e, t, n) {
|
|
5668
|
+
var r = Rd(e, n);
|
|
5669
|
+
return r === void 0 ? Rd(t, n) : r;
|
|
5622
5670
|
}
|
|
5623
|
-
function
|
|
5624
|
-
for (var r in t) r !== "__proto__" && r !== "constructor" && (r in e ? typeof e[r] == "string" || e[r] instanceof String || typeof t[r] == "string" || t[r] instanceof String ? n && (e[r] = t[r]) :
|
|
5671
|
+
function Bd(e, t, n) {
|
|
5672
|
+
for (var r in t) r !== "__proto__" && r !== "constructor" && (r in e ? typeof e[r] == "string" || e[r] instanceof String || typeof t[r] == "string" || t[r] instanceof String ? n && (e[r] = t[r]) : Bd(e[r], t[r], n) : e[r] = t[r]);
|
|
5625
5673
|
return e;
|
|
5626
5674
|
}
|
|
5627
|
-
function
|
|
5675
|
+
function Vd(e) {
|
|
5628
5676
|
return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, "\\$&");
|
|
5629
5677
|
}
|
|
5630
|
-
var
|
|
5678
|
+
var Hd = {
|
|
5631
5679
|
"&": "&",
|
|
5632
5680
|
"<": "<",
|
|
5633
5681
|
">": ">",
|
|
@@ -5635,21 +5683,21 @@ var Fd = {
|
|
|
5635
5683
|
"'": "'",
|
|
5636
5684
|
"/": "/"
|
|
5637
5685
|
};
|
|
5638
|
-
function
|
|
5686
|
+
function Ud(e) {
|
|
5639
5687
|
return typeof e == "string" ? e.replace(/[&<>"'\/]/g, function(e) {
|
|
5640
|
-
return
|
|
5688
|
+
return Hd[e];
|
|
5641
5689
|
}) : e;
|
|
5642
5690
|
}
|
|
5643
|
-
var
|
|
5644
|
-
|
|
5691
|
+
var Wd = typeof window < "u" && window.navigator && window.navigator.userAgent && window.navigator.userAgent.indexOf("MSIE") > -1, Gd = function(e) {
|
|
5692
|
+
Od(t, e);
|
|
5645
5693
|
function t(e) {
|
|
5646
5694
|
var n, r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {
|
|
5647
5695
|
ns: ["translation"],
|
|
5648
5696
|
defaultNS: "translation"
|
|
5649
5697
|
};
|
|
5650
|
-
return
|
|
5698
|
+
return xd(this, t), n = Td(this, Ed(t).call(this)), Wd && jd.call(wd(n)), n.data = e || {}, n.options = r, n.options.keySeparator === void 0 && (n.options.keySeparator = "."), n;
|
|
5651
5699
|
}
|
|
5652
|
-
return
|
|
5700
|
+
return Cd(t, [
|
|
5653
5701
|
{
|
|
5654
5702
|
key: "addNamespaces",
|
|
5655
5703
|
value: function(e) {
|
|
@@ -5667,7 +5715,7 @@ var Ld = typeof window < "u" && window.navigator && window.navigator.userAgent &
|
|
|
5667
5715
|
key: "getResource",
|
|
5668
5716
|
value: function(e, t, n) {
|
|
5669
5717
|
var r = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {}, i = r.keySeparator === void 0 ? this.options.keySeparator : r.keySeparator, a = [e, t];
|
|
5670
|
-
return n && typeof n != "string" && (a = a.concat(n)), n && typeof n == "string" && (a = a.concat(i ? n.split(i) : n)), e.indexOf(".") > -1 && (a = e.split(".")),
|
|
5718
|
+
return n && typeof n != "string" && (a = a.concat(n)), n && typeof n == "string" && (a = a.concat(i ? n.split(i) : n)), e.indexOf(".") > -1 && (a = e.split(".")), Rd(this.data, a);
|
|
5671
5719
|
}
|
|
5672
5720
|
},
|
|
5673
5721
|
{
|
|
@@ -5676,7 +5724,7 @@ var Ld = typeof window < "u" && window.navigator && window.navigator.userAgent &
|
|
|
5676
5724
|
var i = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : { silent: !1 }, a = this.options.keySeparator;
|
|
5677
5725
|
a === void 0 && (a = ".");
|
|
5678
5726
|
var o = [e, t];
|
|
5679
|
-
n && (o = o.concat(a ? n.split(a) : n)), e.indexOf(".") > -1 && (o = e.split("."), r = t, t = o[1]), this.addNamespaces(t),
|
|
5727
|
+
n && (o = o.concat(a ? n.split(a) : n)), e.indexOf(".") > -1 && (o = e.split("."), r = t, t = o[1]), this.addNamespaces(t), Id(this.data, o, r), i.silent || this.emit("added", e, t, n, r);
|
|
5680
5728
|
}
|
|
5681
5729
|
},
|
|
5682
5730
|
{
|
|
@@ -5692,8 +5740,8 @@ var Ld = typeof window < "u" && window.navigator && window.navigator.userAgent &
|
|
|
5692
5740
|
value: function(e, t, n, r, i) {
|
|
5693
5741
|
var a = arguments.length > 5 && arguments[5] !== void 0 ? arguments[5] : { silent: !1 }, o = [e, t];
|
|
5694
5742
|
e.indexOf(".") > -1 && (o = e.split("."), r = n, n = t, t = o[1]), this.addNamespaces(t);
|
|
5695
|
-
var s =
|
|
5696
|
-
r ?
|
|
5743
|
+
var s = Rd(this.data, o) || {};
|
|
5744
|
+
r ? Bd(s, n, i) : s = W({}, s, n), Id(this.data, o, s), a.silent || this.emit("added", e, t, n);
|
|
5697
5745
|
}
|
|
5698
5746
|
},
|
|
5699
5747
|
{
|
|
@@ -5727,7 +5775,7 @@ var Ld = typeof window < "u" && window.navigator && window.navigator.userAgent &
|
|
|
5727
5775
|
}
|
|
5728
5776
|
}
|
|
5729
5777
|
]), t;
|
|
5730
|
-
}(
|
|
5778
|
+
}(jd), Kd = {
|
|
5731
5779
|
processors: {},
|
|
5732
5780
|
addPostProcessor: function(e) {
|
|
5733
5781
|
this.processors[e.name] = e;
|
|
@@ -5738,11 +5786,11 @@ var Ld = typeof window < "u" && window.navigator && window.navigator.userAgent &
|
|
|
5738
5786
|
a.processors[e] && (t = a.processors[e].process(t, n, r, i));
|
|
5739
5787
|
}), t;
|
|
5740
5788
|
}
|
|
5741
|
-
},
|
|
5742
|
-
|
|
5789
|
+
}, qd = {}, Jd = function(e) {
|
|
5790
|
+
Od(t, e);
|
|
5743
5791
|
function t(e) {
|
|
5744
5792
|
var n, r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
5745
|
-
return
|
|
5793
|
+
return xd(this, t), n = Td(this, Ed(t).call(this)), Wd && jd.call(wd(n)), Pd([
|
|
5746
5794
|
"resourceStore",
|
|
5747
5795
|
"languageUtils",
|
|
5748
5796
|
"pluralResolver",
|
|
@@ -5750,9 +5798,9 @@ var Ld = typeof window < "u" && window.navigator && window.navigator.userAgent &
|
|
|
5750
5798
|
"backendConnector",
|
|
5751
5799
|
"i18nFormat",
|
|
5752
5800
|
"utils"
|
|
5753
|
-
], e,
|
|
5801
|
+
], e, wd(n)), n.options = r, n.options.keySeparator === void 0 && (n.options.keySeparator = "."), n.logger = Ad.create("translator"), n;
|
|
5754
5802
|
}
|
|
5755
|
-
return
|
|
5803
|
+
return Cd(t, [
|
|
5756
5804
|
{
|
|
5757
5805
|
key: "changeLanguage",
|
|
5758
5806
|
value: function(e) {
|
|
@@ -5863,7 +5911,7 @@ var Ld = typeof window < "u" && window.navigator && window.navigator.userAgent &
|
|
|
5863
5911
|
}, n)), n.interpolation && this.interpolator.reset();
|
|
5864
5912
|
}
|
|
5865
5913
|
var f = n.postProcess || this.options.postProcess, p = typeof f == "string" ? [f] : f;
|
|
5866
|
-
return e != null && p && p.length && n.applyPostProcessor !== !1 && (e =
|
|
5914
|
+
return e != null && p && p.length && n.applyPostProcessor !== !1 && (e = Kd.handle(p, e, t, this.options && this.options.postProcessPassResolved ? W({ i18nResolved: r }, n) : n, this)), e;
|
|
5867
5915
|
}
|
|
5868
5916
|
},
|
|
5869
5917
|
{
|
|
@@ -5878,7 +5926,7 @@ var Ld = typeof window < "u" && window.navigator && window.navigator.userAgent &
|
|
|
5878
5926
|
t.options.fallbackNS && (u = u.concat(t.options.fallbackNS));
|
|
5879
5927
|
var d = n.count !== void 0 && typeof n.count != "string", f = n.context !== void 0 && typeof n.context == "string" && n.context !== "", p = n.lngs ? n.lngs : t.languageUtils.toResolveHierarchy(n.lng || t.language, n.fallbackLng);
|
|
5880
5928
|
u.forEach(function(e) {
|
|
5881
|
-
t.isValidLookup(r) || (s = e, !
|
|
5929
|
+
t.isValidLookup(r) || (s = e, !qd[`${p[0]}-${e}`] && t.utils && t.utils.hasLoadedNamespace && !t.utils.hasLoadedNamespace(s) && (qd[`${p[0]}-${e}`] = !0, t.logger.warn(`key "${i}" for languages "${p.join(", ")}" won't get resolved as namespace "${s}" was not yet loaded`, "This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")), p.forEach(function(i) {
|
|
5882
5930
|
if (!t.isValidLookup(r)) {
|
|
5883
5931
|
o = i;
|
|
5884
5932
|
var s = l, c = [s];
|
|
@@ -5922,15 +5970,15 @@ var Ld = typeof window < "u" && window.navigator && window.navigator.userAgent &
|
|
|
5922
5970
|
return !1;
|
|
5923
5971
|
}
|
|
5924
5972
|
}]), t;
|
|
5925
|
-
}(
|
|
5926
|
-
function
|
|
5973
|
+
}(jd);
|
|
5974
|
+
function Yd(e) {
|
|
5927
5975
|
return e.charAt(0).toUpperCase() + e.slice(1);
|
|
5928
5976
|
}
|
|
5929
|
-
var
|
|
5977
|
+
var Xd = function() {
|
|
5930
5978
|
function e(t) {
|
|
5931
|
-
|
|
5979
|
+
xd(this, e), this.options = t, this.whitelist = this.options.supportedLngs || !1, this.supportedLngs = this.options.supportedLngs || !1, this.logger = Ad.create("languageUtils");
|
|
5932
5980
|
}
|
|
5933
|
-
return
|
|
5981
|
+
return Cd(e, [
|
|
5934
5982
|
{
|
|
5935
5983
|
key: "getScriptPartFromCode",
|
|
5936
5984
|
value: function(e) {
|
|
@@ -5962,7 +6010,7 @@ var Ud = function() {
|
|
|
5962
6010
|
], n = e.split("-");
|
|
5963
6011
|
return this.options.lowerCaseLng ? n = n.map(function(e) {
|
|
5964
6012
|
return e.toLowerCase();
|
|
5965
|
-
}) : n.length === 2 ? (n[0] = n[0].toLowerCase(), n[1] = n[1].toUpperCase(), t.indexOf(n[1].toLowerCase()) > -1 && (n[1] =
|
|
6013
|
+
}) : n.length === 2 ? (n[0] = n[0].toLowerCase(), n[1] = n[1].toUpperCase(), t.indexOf(n[1].toLowerCase()) > -1 && (n[1] = Yd(n[1].toLowerCase()))) : n.length === 3 && (n[0] = n[0].toLowerCase(), n[1].length === 2 && (n[1] = n[1].toUpperCase()), n[0] !== "sgn" && n[2].length === 2 && (n[2] = n[2].toUpperCase()), t.indexOf(n[1].toLowerCase()) > -1 && (n[1] = Yd(n[1].toLowerCase())), t.indexOf(n[2].toLowerCase()) > -1 && (n[2] = Yd(n[2].toLowerCase()))), n.join("-");
|
|
5966
6014
|
}
|
|
5967
6015
|
return this.options.cleanCode || this.options.lowerCaseLng ? e.toLowerCase() : e;
|
|
5968
6016
|
}
|
|
@@ -6023,7 +6071,7 @@ var Ud = function() {
|
|
|
6023
6071
|
}
|
|
6024
6072
|
}
|
|
6025
6073
|
]), e;
|
|
6026
|
-
}(),
|
|
6074
|
+
}(), Zd = [
|
|
6027
6075
|
{
|
|
6028
6076
|
lngs: [
|
|
6029
6077
|
"ach",
|
|
@@ -6264,7 +6312,7 @@ var Ud = function() {
|
|
|
6264
6312
|
],
|
|
6265
6313
|
fc: 22
|
|
6266
6314
|
}
|
|
6267
|
-
],
|
|
6315
|
+
], Qd = {
|
|
6268
6316
|
1: function(e) {
|
|
6269
6317
|
return Number(e > 1);
|
|
6270
6318
|
},
|
|
@@ -6332,23 +6380,23 @@ var Ud = function() {
|
|
|
6332
6380
|
return Number(e == 1 ? 0 : e == 2 ? 1 : (e < 0 || e > 10) && e % 10 == 0 ? 2 : 3);
|
|
6333
6381
|
}
|
|
6334
6382
|
};
|
|
6335
|
-
function
|
|
6383
|
+
function $d() {
|
|
6336
6384
|
var e = {};
|
|
6337
|
-
return
|
|
6385
|
+
return Zd.forEach(function(t) {
|
|
6338
6386
|
t.lngs.forEach(function(n) {
|
|
6339
6387
|
e[n] = {
|
|
6340
6388
|
numbers: t.nr,
|
|
6341
|
-
plurals:
|
|
6389
|
+
plurals: Qd[t.fc]
|
|
6342
6390
|
};
|
|
6343
6391
|
});
|
|
6344
6392
|
}), e;
|
|
6345
6393
|
}
|
|
6346
|
-
var
|
|
6394
|
+
var ef = function() {
|
|
6347
6395
|
function e(t) {
|
|
6348
6396
|
var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
6349
|
-
|
|
6397
|
+
xd(this, e), this.languageUtils = t, this.options = n, this.logger = Ad.create("pluralResolver"), this.rules = $d();
|
|
6350
6398
|
}
|
|
6351
|
-
return
|
|
6399
|
+
return Cd(e, [
|
|
6352
6400
|
{
|
|
6353
6401
|
key: "addRule",
|
|
6354
6402
|
value: function(e, t) {
|
|
@@ -6401,21 +6449,21 @@ var qd = function() {
|
|
|
6401
6449
|
}
|
|
6402
6450
|
}
|
|
6403
6451
|
]), e;
|
|
6404
|
-
}(),
|
|
6452
|
+
}(), tf = function() {
|
|
6405
6453
|
function e() {
|
|
6406
6454
|
var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
6407
|
-
|
|
6455
|
+
xd(this, e), this.logger = Ad.create("interpolator"), this.options = t, this.format = t.interpolation && t.interpolation.format || function(e) {
|
|
6408
6456
|
return e;
|
|
6409
6457
|
}, this.init(t);
|
|
6410
6458
|
}
|
|
6411
|
-
return
|
|
6459
|
+
return Cd(e, [
|
|
6412
6460
|
{
|
|
6413
6461
|
key: "init",
|
|
6414
6462
|
value: function() {
|
|
6415
6463
|
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
6416
6464
|
e.interpolation || (e.interpolation = { escapeValue: !0 });
|
|
6417
6465
|
var t = e.interpolation;
|
|
6418
|
-
this.escape = t.escape === void 0 ?
|
|
6466
|
+
this.escape = t.escape === void 0 ? Ud : t.escape, this.escapeValue = t.escapeValue === void 0 || t.escapeValue, this.useRawValueToEscape = t.useRawValueToEscape !== void 0 && t.useRawValueToEscape, this.prefix = t.prefix ? Vd(t.prefix) : t.prefixEscaped || "{{", this.suffix = t.suffix ? Vd(t.suffix) : t.suffixEscaped || "}}", this.formatSeparator = t.formatSeparator ? t.formatSeparator : t.formatSeparator || ",", this.unescapePrefix = t.unescapeSuffix ? "" : t.unescapePrefix || "-", this.unescapeSuffix = this.unescapePrefix ? "" : t.unescapeSuffix || "", this.nestingPrefix = t.nestingPrefix ? Vd(t.nestingPrefix) : t.nestingPrefixEscaped || Vd("$t("), this.nestingSuffix = t.nestingSuffix ? Vd(t.nestingSuffix) : t.nestingSuffixEscaped || Vd(")"), this.nestingOptionsSeparator = t.nestingOptionsSeparator ? t.nestingOptionsSeparator : t.nestingOptionsSeparator || ",", this.maxReplaces = t.maxReplaces ? t.maxReplaces : 1e3, this.alwaysFormat = t.alwaysFormat !== void 0 && t.alwaysFormat, this.resetRegExp();
|
|
6419
6467
|
}
|
|
6420
6468
|
},
|
|
6421
6469
|
{
|
|
@@ -6444,11 +6492,11 @@ var qd = function() {
|
|
|
6444
6492
|
}
|
|
6445
6493
|
var u = function(e) {
|
|
6446
6494
|
if (e.indexOf(i.formatSeparator) < 0) {
|
|
6447
|
-
var a =
|
|
6495
|
+
var a = zd(t, c, e);
|
|
6448
6496
|
return i.alwaysFormat ? i.format(a, void 0, n) : a;
|
|
6449
6497
|
}
|
|
6450
6498
|
var o = e.split(i.formatSeparator), s = o.shift().trim(), l = o.join(i.formatSeparator).trim();
|
|
6451
|
-
return i.format(
|
|
6499
|
+
return i.format(zd(t, c, s), l, n, r);
|
|
6452
6500
|
};
|
|
6453
6501
|
this.resetRegExp();
|
|
6454
6502
|
var d = r && r.missingInterpolationHandler || this.options.missingInterpolationHandler, f = r && r.interpolation && r.interpolation.skipOnVariables || this.options.interpolation.skipOnVariables;
|
|
@@ -6471,7 +6519,7 @@ var qd = function() {
|
|
|
6471
6519
|
o = a[0];
|
|
6472
6520
|
continue;
|
|
6473
6521
|
} else i.logger.warn(`missed to pass in variable ${a[1]} for interpolating ${e}`), o = "";
|
|
6474
|
-
else typeof o != "string" && !i.useRawValueToEscape && (o =
|
|
6522
|
+
else typeof o != "string" && !i.useRawValueToEscape && (o = Nd(o));
|
|
6475
6523
|
if (e = e.replace(a[0], t.safeValue(o)), t.regex.lastIndex = 0, s++, s >= i.maxReplaces) break;
|
|
6476
6524
|
}
|
|
6477
6525
|
}), e;
|
|
@@ -6503,7 +6551,7 @@ var qd = function() {
|
|
|
6503
6551
|
i[1] = u.shift(), c = u, l = !0;
|
|
6504
6552
|
}
|
|
6505
6553
|
if (a = t(s.call(this, i[1].trim(), o), o), a && i[0] === e && typeof a != "string") return a;
|
|
6506
|
-
typeof a != "string" && (a =
|
|
6554
|
+
typeof a != "string" && (a = Nd(a)), a || (this.logger.warn(`missed to resolve ${i[1]} for nesting ${e}`), a = ""), l && (a = c.reduce(function(e, t) {
|
|
6507
6555
|
return n.format(e, t, r.lng, r);
|
|
6508
6556
|
}, a.trim())), e = e.replace(i[0], a), this.regexp.lastIndex = 0;
|
|
6509
6557
|
}
|
|
@@ -6512,16 +6560,16 @@ var qd = function() {
|
|
|
6512
6560
|
}
|
|
6513
6561
|
]), e;
|
|
6514
6562
|
}();
|
|
6515
|
-
function
|
|
6563
|
+
function nf(e, t) {
|
|
6516
6564
|
for (var n = e.indexOf(t); n !== -1;) e.splice(n, 1), n = e.indexOf(t);
|
|
6517
6565
|
}
|
|
6518
|
-
var
|
|
6519
|
-
|
|
6566
|
+
var rf = function(e) {
|
|
6567
|
+
Od(t, e);
|
|
6520
6568
|
function t(e, n, r) {
|
|
6521
6569
|
var i, a = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {};
|
|
6522
|
-
return
|
|
6570
|
+
return xd(this, t), i = Td(this, Ed(t).call(this)), Wd && jd.call(wd(i)), i.backend = e, i.store = n, i.services = r, i.languageUtils = r.languageUtils, i.options = a, i.logger = Ad.create("backendConnector"), i.state = {}, i.queue = [], i.backend && i.backend.init && i.backend.init(r, a.backend, a), i;
|
|
6523
6571
|
}
|
|
6524
|
-
return
|
|
6572
|
+
return Cd(t, [
|
|
6525
6573
|
{
|
|
6526
6574
|
key: "queueLoad",
|
|
6527
6575
|
value: function(e, t, n, r) {
|
|
@@ -6552,7 +6600,7 @@ var Xd = function(e) {
|
|
|
6552
6600
|
t && this.emit("failedLoading", i, a, t), n && this.store.addResourceBundle(i, a, n), this.state[e] = t ? -1 : 2;
|
|
6553
6601
|
var o = {};
|
|
6554
6602
|
this.queue.forEach(function(n) {
|
|
6555
|
-
|
|
6603
|
+
Ld(n.loaded, [i], a), nf(n.pending, e), t && n.errors.push(t), n.pending.length === 0 && !n.done && (Object.keys(n.loaded).forEach(function(e) {
|
|
6556
6604
|
o[e] || (o[e] = []), n.loaded[e].length && n.loaded[e].forEach(function(t) {
|
|
6557
6605
|
o[e].indexOf(t) < 0 && o[e].push(t);
|
|
6558
6606
|
});
|
|
@@ -6623,8 +6671,8 @@ var Xd = function(e) {
|
|
|
6623
6671
|
}
|
|
6624
6672
|
}
|
|
6625
6673
|
]), t;
|
|
6626
|
-
}(
|
|
6627
|
-
function
|
|
6674
|
+
}(jd);
|
|
6675
|
+
function af() {
|
|
6628
6676
|
return {
|
|
6629
6677
|
debug: !1,
|
|
6630
6678
|
initImmediate: !0,
|
|
@@ -6687,44 +6735,44 @@ function Zd() {
|
|
|
6687
6735
|
}
|
|
6688
6736
|
};
|
|
6689
6737
|
}
|
|
6690
|
-
function
|
|
6738
|
+
function of(e) {
|
|
6691
6739
|
return typeof e.ns == "string" && (e.ns = [e.ns]), typeof e.fallbackLng == "string" && (e.fallbackLng = [e.fallbackLng]), typeof e.fallbackNS == "string" && (e.fallbackNS = [e.fallbackNS]), e.whitelist && (e.whitelist && e.whitelist.indexOf("cimode") < 0 && (e.whitelist = e.whitelist.concat(["cimode"])), e.supportedLngs = e.whitelist), e.nonExplicitWhitelist && (e.nonExplicitSupportedLngs = e.nonExplicitWhitelist), e.supportedLngs && e.supportedLngs.indexOf("cimode") < 0 && (e.supportedLngs = e.supportedLngs.concat(["cimode"])), e;
|
|
6692
6740
|
}
|
|
6693
|
-
function
|
|
6694
|
-
var
|
|
6695
|
-
|
|
6741
|
+
function sf() {}
|
|
6742
|
+
var cf = new (function(e) {
|
|
6743
|
+
Od(t, e);
|
|
6696
6744
|
function t() {
|
|
6697
6745
|
var e, n = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, r = arguments.length > 1 ? arguments[1] : void 0;
|
|
6698
|
-
if (
|
|
6699
|
-
if (!e.options.initImmediate) return e.init(n, r),
|
|
6746
|
+
if (xd(this, t), e = Td(this, Ed(t).call(this)), Wd && jd.call(wd(e)), e.options = of(n), e.services = {}, e.logger = Ad, e.modules = { external: [] }, r && !e.isInitialized && !n.isClone) {
|
|
6747
|
+
if (!e.options.initImmediate) return e.init(n, r), Td(e, wd(e));
|
|
6700
6748
|
setTimeout(function() {
|
|
6701
6749
|
e.init(n, r);
|
|
6702
6750
|
}, 0);
|
|
6703
6751
|
}
|
|
6704
6752
|
return e;
|
|
6705
6753
|
}
|
|
6706
|
-
return
|
|
6754
|
+
return Cd(t, [
|
|
6707
6755
|
{
|
|
6708
6756
|
key: "init",
|
|
6709
6757
|
value: function() {
|
|
6710
6758
|
var e = this, t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, n = arguments.length > 1 ? arguments[1] : void 0;
|
|
6711
|
-
typeof t == "function" && (n = t, t = {}), t.whitelist && !t.supportedLngs && this.logger.deprecate("whitelist", "option \"whitelist\" will be renamed to \"supportedLngs\" in the next major - please make sure to rename this option asap."), t.nonExplicitWhitelist && !t.nonExplicitSupportedLngs && this.logger.deprecate("whitelist", "options \"nonExplicitWhitelist\" will be renamed to \"nonExplicitSupportedLngs\" in the next major - please make sure to rename this option asap."), this.options = W({},
|
|
6759
|
+
typeof t == "function" && (n = t, t = {}), t.whitelist && !t.supportedLngs && this.logger.deprecate("whitelist", "option \"whitelist\" will be renamed to \"supportedLngs\" in the next major - please make sure to rename this option asap."), t.nonExplicitWhitelist && !t.nonExplicitSupportedLngs && this.logger.deprecate("whitelist", "options \"nonExplicitWhitelist\" will be renamed to \"nonExplicitSupportedLngs\" in the next major - please make sure to rename this option asap."), this.options = W({}, af(), this.options, of(t)), this.format = this.options.interpolation.format, n || (n = sf);
|
|
6712
6760
|
function r(e) {
|
|
6713
6761
|
return e ? typeof e == "function" ? new e() : e : null;
|
|
6714
6762
|
}
|
|
6715
6763
|
if (!this.options.isClone) {
|
|
6716
|
-
this.modules.logger ?
|
|
6717
|
-
var i = new
|
|
6718
|
-
this.store = new
|
|
6764
|
+
this.modules.logger ? Ad.init(r(this.modules.logger), this.options) : Ad.init(null, this.options);
|
|
6765
|
+
var i = new Xd(this.options);
|
|
6766
|
+
this.store = new Gd(this.options.resources, this.options);
|
|
6719
6767
|
var a = this.services;
|
|
6720
|
-
a.logger =
|
|
6768
|
+
a.logger = Ad, a.resourceStore = this.store, a.languageUtils = i, a.pluralResolver = new ef(i, {
|
|
6721
6769
|
prepend: this.options.pluralSeparator,
|
|
6722
6770
|
compatibilityJSON: this.options.compatibilityJSON,
|
|
6723
6771
|
simplifyPluralSuffix: this.options.simplifyPluralSuffix
|
|
6724
|
-
}), a.interpolator = new
|
|
6772
|
+
}), a.interpolator = new tf(this.options), a.utils = { hasLoadedNamespace: this.hasLoadedNamespace.bind(this) }, a.backendConnector = new rf(r(this.modules.backend), a.resourceStore, a, this.options), a.backendConnector.on("*", function(t) {
|
|
6725
6773
|
var n = [...arguments].slice(1);
|
|
6726
6774
|
e.emit.apply(e, [t].concat(n));
|
|
6727
|
-
}), this.modules.languageDetector && (a.languageDetector = r(this.modules.languageDetector), a.languageDetector.init(a, this.options.detection, this.options)), this.modules.i18nFormat && (a.i18nFormat = r(this.modules.i18nFormat), a.i18nFormat.init && a.i18nFormat.init(this)), this.translator = new
|
|
6775
|
+
}), this.modules.languageDetector && (a.languageDetector = r(this.modules.languageDetector), a.languageDetector.init(a, this.options.detection, this.options)), this.modules.i18nFormat && (a.i18nFormat = r(this.modules.i18nFormat), a.i18nFormat.init && a.i18nFormat.init(this)), this.translator = new Jd(this.services, this.options), this.translator.on("*", function(t) {
|
|
6728
6776
|
var n = [...arguments].slice(1);
|
|
6729
6777
|
e.emit.apply(e, [t].concat(n));
|
|
6730
6778
|
}), this.modules.external.forEach(function(t) {
|
|
@@ -6756,7 +6804,7 @@ var ef = new (function(e) {
|
|
|
6756
6804
|
return (n = e.store)[t].apply(n, arguments), e;
|
|
6757
6805
|
};
|
|
6758
6806
|
});
|
|
6759
|
-
var s =
|
|
6807
|
+
var s = Md(), c = function() {
|
|
6760
6808
|
var t = function(t, r) {
|
|
6761
6809
|
e.isInitialized && e.logger.warn("init: i18next is already initialized. You should call init just once!"), e.isInitialized = !0, e.options.isClone || e.logger.log("initialized", e.options), e.emit("initialized", e.options), s.resolve(r), n(t, r);
|
|
6762
6810
|
};
|
|
@@ -6769,7 +6817,7 @@ var ef = new (function(e) {
|
|
|
6769
6817
|
{
|
|
6770
6818
|
key: "loadResources",
|
|
6771
6819
|
value: function(e) {
|
|
6772
|
-
var t = this, n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] :
|
|
6820
|
+
var t = this, n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : sf, r = typeof e == "string" ? e : this.language;
|
|
6773
6821
|
if (typeof e == "function" && (n = e), !this.options.resources || this.options.partialBundledLanguages) {
|
|
6774
6822
|
if (r && r.toLowerCase() === "cimode") return n();
|
|
6775
6823
|
var i = [], a = function(e) {
|
|
@@ -6788,8 +6836,8 @@ var ef = new (function(e) {
|
|
|
6788
6836
|
{
|
|
6789
6837
|
key: "reloadResources",
|
|
6790
6838
|
value: function(e, t, n) {
|
|
6791
|
-
var r =
|
|
6792
|
-
return e || (e = this.languages), t || (t = this.options.ns), n || (n =
|
|
6839
|
+
var r = Md();
|
|
6840
|
+
return e || (e = this.languages), t || (t = this.options.ns), n || (n = sf), this.services.backendConnector.reload(e, t, function(e) {
|
|
6793
6841
|
r.resolve(), n(e);
|
|
6794
6842
|
}), r;
|
|
6795
6843
|
}
|
|
@@ -6799,7 +6847,7 @@ var ef = new (function(e) {
|
|
|
6799
6847
|
value: function(e) {
|
|
6800
6848
|
if (!e) throw Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");
|
|
6801
6849
|
if (!e.type) throw Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");
|
|
6802
|
-
return e.type === "backend" && (this.modules.backend = e), (e.type === "logger" || e.log && e.warn && e.error) && (this.modules.logger = e), e.type === "languageDetector" && (this.modules.languageDetector = e), e.type === "i18nFormat" && (this.modules.i18nFormat = e), e.type === "postProcessor" &&
|
|
6850
|
+
return e.type === "backend" && (this.modules.backend = e), (e.type === "logger" || e.log && e.warn && e.error) && (this.modules.logger = e), e.type === "languageDetector" && (this.modules.languageDetector = e), e.type === "i18nFormat" && (this.modules.i18nFormat = e), e.type === "postProcessor" && Kd.addPostProcessor(e), e.type === "3rdParty" && this.modules.external.push(e), this;
|
|
6803
6851
|
}
|
|
6804
6852
|
},
|
|
6805
6853
|
{
|
|
@@ -6807,7 +6855,7 @@ var ef = new (function(e) {
|
|
|
6807
6855
|
value: function(e, t) {
|
|
6808
6856
|
var n = this;
|
|
6809
6857
|
this.isLanguageChangingTo = e;
|
|
6810
|
-
var r =
|
|
6858
|
+
var r = Md();
|
|
6811
6859
|
this.emit("languageChanging", e);
|
|
6812
6860
|
var i = function(e, i) {
|
|
6813
6861
|
i ? (n.language = i, n.languages = n.services.languageUtils.toResolveHierarchy(i), n.translator.changeLanguage(i), n.isLanguageChangingTo = void 0, n.emit("languageChanged", i), n.logger.log("languageChanged", i)) : n.isLanguageChangingTo = void 0, r.resolve(function() {
|
|
@@ -6880,7 +6928,7 @@ var ef = new (function(e) {
|
|
|
6880
6928
|
{
|
|
6881
6929
|
key: "loadNamespaces",
|
|
6882
6930
|
value: function(e, t) {
|
|
6883
|
-
var n = this, r =
|
|
6931
|
+
var n = this, r = Md();
|
|
6884
6932
|
return this.options.ns ? (typeof e == "string" && (e = [e]), e.forEach(function(e) {
|
|
6885
6933
|
n.options.ns.indexOf(e) < 0 && n.options.ns.push(e);
|
|
6886
6934
|
}), this.loadResources(function(e) {
|
|
@@ -6891,7 +6939,7 @@ var ef = new (function(e) {
|
|
|
6891
6939
|
{
|
|
6892
6940
|
key: "loadLanguages",
|
|
6893
6941
|
value: function(e, t) {
|
|
6894
|
-
var n =
|
|
6942
|
+
var n = Md();
|
|
6895
6943
|
typeof e == "string" && (e = [e]);
|
|
6896
6944
|
var r = this.options.preload || [], i = e.filter(function(e) {
|
|
6897
6945
|
return r.indexOf(e) < 0;
|
|
@@ -6916,64 +6964,64 @@ var ef = new (function(e) {
|
|
|
6916
6964
|
{
|
|
6917
6965
|
key: "cloneInstance",
|
|
6918
6966
|
value: function() {
|
|
6919
|
-
var e = this, n = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] :
|
|
6967
|
+
var e = this, n = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : sf, i = W({}, this.options, n, { isClone: !0 }), a = new t(i);
|
|
6920
6968
|
return [
|
|
6921
6969
|
"store",
|
|
6922
6970
|
"services",
|
|
6923
6971
|
"language"
|
|
6924
6972
|
].forEach(function(t) {
|
|
6925
6973
|
a[t] = e[t];
|
|
6926
|
-
}), a.services = W({}, this.services), a.services.utils = { hasLoadedNamespace: a.hasLoadedNamespace.bind(a) }, a.translator = new
|
|
6974
|
+
}), a.services = W({}, this.services), a.services.utils = { hasLoadedNamespace: a.hasLoadedNamespace.bind(a) }, a.translator = new Jd(a.services, a.options), a.translator.on("*", function(e) {
|
|
6927
6975
|
var t = [...arguments].slice(1);
|
|
6928
6976
|
a.emit.apply(a, [e].concat(t));
|
|
6929
6977
|
}), a.init(i, r), a.translator.options = a.options, a.translator.backendConnector.services.utils = { hasLoadedNamespace: a.hasLoadedNamespace.bind(a) }, a;
|
|
6930
6978
|
}
|
|
6931
6979
|
}
|
|
6932
6980
|
]), t;
|
|
6933
|
-
}(
|
|
6934
|
-
Object.freeze(
|
|
6935
|
-
var
|
|
6936
|
-
Object.freeze(
|
|
6981
|
+
}(jd))(), lf = "An invariant failed, however the error is obfuscated because this is a production build.", uf = [];
|
|
6982
|
+
Object.freeze(uf);
|
|
6983
|
+
var df = {};
|
|
6984
|
+
Object.freeze(df);
|
|
6937
6985
|
function G() {
|
|
6938
6986
|
return ++X.mobxGuid;
|
|
6939
6987
|
}
|
|
6940
6988
|
function K(e) {
|
|
6941
|
-
throw
|
|
6989
|
+
throw ff(!1, e), "X";
|
|
6942
6990
|
}
|
|
6943
|
-
function
|
|
6944
|
-
if (!e) throw Error("[mobx] " + (t ||
|
|
6991
|
+
function ff(e, t) {
|
|
6992
|
+
if (!e) throw Error("[mobx] " + (t || lf));
|
|
6945
6993
|
}
|
|
6946
|
-
function
|
|
6994
|
+
function pf(e) {
|
|
6947
6995
|
var t = !1;
|
|
6948
6996
|
return function() {
|
|
6949
6997
|
if (!t) return t = !0, e.apply(this, arguments);
|
|
6950
6998
|
};
|
|
6951
6999
|
}
|
|
6952
|
-
var
|
|
6953
|
-
function
|
|
7000
|
+
var mf = function() {};
|
|
7001
|
+
function hf(e) {
|
|
6954
7002
|
var t = [];
|
|
6955
7003
|
return e.forEach(function(e) {
|
|
6956
7004
|
t.indexOf(e) === -1 && t.push(e);
|
|
6957
7005
|
}), t;
|
|
6958
7006
|
}
|
|
6959
|
-
function
|
|
7007
|
+
function gf(e) {
|
|
6960
7008
|
return typeof e == "object" && !!e;
|
|
6961
7009
|
}
|
|
6962
|
-
function
|
|
7010
|
+
function _f(e) {
|
|
6963
7011
|
if (typeof e != "object" || !e) return !1;
|
|
6964
7012
|
var t = Object.getPrototypeOf(e);
|
|
6965
7013
|
return t === Object.prototype || t === null;
|
|
6966
7014
|
}
|
|
6967
|
-
function
|
|
6968
|
-
if (
|
|
7015
|
+
function vf(e) {
|
|
7016
|
+
if (Cf(e) || ph(e)) return e;
|
|
6969
7017
|
if (Array.isArray(e)) return new Map(e);
|
|
6970
|
-
if (
|
|
7018
|
+
if (_f(e)) {
|
|
6971
7019
|
var t = /* @__PURE__ */ new Map();
|
|
6972
7020
|
for (var n in e) t.set(n, e[n]);
|
|
6973
7021
|
return t;
|
|
6974
7022
|
} else return K("Cannot convert to map from '" + e + "'");
|
|
6975
7023
|
}
|
|
6976
|
-
function
|
|
7024
|
+
function yf(e, t, n) {
|
|
6977
7025
|
Object.defineProperty(e, t, {
|
|
6978
7026
|
enumerable: !1,
|
|
6979
7027
|
writable: !0,
|
|
@@ -6981,7 +7029,7 @@ function ff(e, t, n) {
|
|
|
6981
7029
|
value: n
|
|
6982
7030
|
});
|
|
6983
7031
|
}
|
|
6984
|
-
function
|
|
7032
|
+
function bf(e, t, n) {
|
|
6985
7033
|
Object.defineProperty(e, t, {
|
|
6986
7034
|
enumerable: !1,
|
|
6987
7035
|
writable: !1,
|
|
@@ -6989,38 +7037,38 @@ function pf(e, t, n) {
|
|
|
6989
7037
|
value: n
|
|
6990
7038
|
});
|
|
6991
7039
|
}
|
|
6992
|
-
function
|
|
7040
|
+
function xf(e, t) {
|
|
6993
7041
|
var n = Object.getOwnPropertyDescriptor(e, t);
|
|
6994
7042
|
return !n || n.configurable !== !1 && n.writable !== !1;
|
|
6995
7043
|
}
|
|
6996
|
-
function
|
|
7044
|
+
function Sf(e, t) {
|
|
6997
7045
|
var n = "isMobX" + e;
|
|
6998
7046
|
return t.prototype[n] = !0, function(e) {
|
|
6999
|
-
return
|
|
7047
|
+
return gf(e) && e[n] === !0;
|
|
7000
7048
|
};
|
|
7001
7049
|
}
|
|
7002
|
-
function
|
|
7050
|
+
function Cf(e) {
|
|
7003
7051
|
return e instanceof Map;
|
|
7004
7052
|
}
|
|
7005
|
-
function
|
|
7053
|
+
function wf(e) {
|
|
7006
7054
|
return e instanceof Set;
|
|
7007
7055
|
}
|
|
7008
|
-
function
|
|
7056
|
+
function Tf(e) {
|
|
7009
7057
|
var t = /* @__PURE__ */ new Set();
|
|
7010
7058
|
for (var n in e) t.add(n);
|
|
7011
7059
|
return Object.getOwnPropertySymbols(e).forEach(function(n) {
|
|
7012
7060
|
Object.getOwnPropertyDescriptor(e, n).enumerable && t.add(n);
|
|
7013
7061
|
}), Array.from(t);
|
|
7014
7062
|
}
|
|
7015
|
-
function
|
|
7063
|
+
function Ef(e) {
|
|
7016
7064
|
return e && e.toString ? e.toString() : new String(e).toString();
|
|
7017
7065
|
}
|
|
7018
|
-
function
|
|
7066
|
+
function Df(e) {
|
|
7019
7067
|
return e === null ? null : typeof e == "object" ? "" + e : e;
|
|
7020
7068
|
}
|
|
7021
|
-
var
|
|
7069
|
+
var Of = typeof Reflect < "u" && Reflect.ownKeys ? Reflect.ownKeys : Object.getOwnPropertySymbols ? function(e) {
|
|
7022
7070
|
return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e));
|
|
7023
|
-
} : /* istanbul ignore next */ Object.getOwnPropertyNames, q = Symbol("mobx administration"),
|
|
7071
|
+
} : /* istanbul ignore next */ Object.getOwnPropertyNames, q = Symbol("mobx administration"), kf = function() {
|
|
7024
7072
|
function e(e) {
|
|
7025
7073
|
e === void 0 && (e = "Atom@" + G()), this.name = e, this.isPendingUnobservation = !1, this.isBeingObserved = !1, this.observers = /* @__PURE__ */ new Set(), this.diffValue = 0, this.lastAccessedBy = 0, this.lowestObserverState = Y.NOT_TRACKING;
|
|
7026
7074
|
}
|
|
@@ -7033,56 +7081,56 @@ var xf = typeof Reflect < "u" && Reflect.ownKeys ? Reflect.ownKeys : Object.getO
|
|
|
7033
7081
|
return e();
|
|
7034
7082
|
});
|
|
7035
7083
|
}, e.prototype.reportObserved = function() {
|
|
7036
|
-
return
|
|
7084
|
+
return Zp(this);
|
|
7037
7085
|
}, e.prototype.reportChanged = function() {
|
|
7038
|
-
Z(),
|
|
7086
|
+
Z(), Qp(this), Q();
|
|
7039
7087
|
}, e.prototype.toString = function() {
|
|
7040
7088
|
return this.name;
|
|
7041
7089
|
}, e;
|
|
7042
|
-
}(),
|
|
7043
|
-
function
|
|
7044
|
-
t === void 0 && (t =
|
|
7045
|
-
var r = new
|
|
7046
|
-
return t !==
|
|
7090
|
+
}(), Af = Sf("Atom", kf);
|
|
7091
|
+
function jf(e, t, n) {
|
|
7092
|
+
t === void 0 && (t = mf), n === void 0 && (n = mf);
|
|
7093
|
+
var r = new kf(e);
|
|
7094
|
+
return t !== mf && Cm(r, t), n !== mf && wm(r, n), r;
|
|
7047
7095
|
}
|
|
7048
|
-
function
|
|
7096
|
+
function Mf(e, t) {
|
|
7049
7097
|
return e === t;
|
|
7050
7098
|
}
|
|
7051
|
-
function
|
|
7052
|
-
return
|
|
7099
|
+
function Nf(e, t) {
|
|
7100
|
+
return jh(e, t);
|
|
7053
7101
|
}
|
|
7054
|
-
function
|
|
7055
|
-
return
|
|
7102
|
+
function Pf(e, t) {
|
|
7103
|
+
return jh(e, t, 1);
|
|
7056
7104
|
}
|
|
7057
|
-
function
|
|
7105
|
+
function Ff(e, t) {
|
|
7058
7106
|
return Object.is(e, t);
|
|
7059
7107
|
}
|
|
7060
|
-
var
|
|
7061
|
-
identity:
|
|
7062
|
-
structural:
|
|
7063
|
-
default:
|
|
7064
|
-
shallow:
|
|
7065
|
-
},
|
|
7066
|
-
return
|
|
7108
|
+
var If = {
|
|
7109
|
+
identity: Mf,
|
|
7110
|
+
structural: Nf,
|
|
7111
|
+
default: Ff,
|
|
7112
|
+
shallow: Pf
|
|
7113
|
+
}, Lf = function(e, t) {
|
|
7114
|
+
return Lf = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(e, t) {
|
|
7067
7115
|
e.__proto__ = t;
|
|
7068
7116
|
} || function(e, t) {
|
|
7069
7117
|
for (var n in t) t.hasOwnProperty(n) && (e[n] = t[n]);
|
|
7070
|
-
},
|
|
7118
|
+
}, Lf(e, t);
|
|
7071
7119
|
};
|
|
7072
|
-
function
|
|
7073
|
-
|
|
7120
|
+
function Rf(e, t) {
|
|
7121
|
+
Lf(e, t);
|
|
7074
7122
|
function n() {
|
|
7075
7123
|
this.constructor = e;
|
|
7076
7124
|
}
|
|
7077
7125
|
e.prototype = t === null ? Object.create(t) : (n.prototype = t.prototype, new n());
|
|
7078
7126
|
}
|
|
7079
|
-
var
|
|
7080
|
-
return
|
|
7127
|
+
var zf = function() {
|
|
7128
|
+
return zf = Object.assign || function(e) {
|
|
7081
7129
|
for (var t, n = 1, r = arguments.length; n < r; n++) for (var i in t = arguments[n], t) Object.prototype.hasOwnProperty.call(t, i) && (e[i] = t[i]);
|
|
7082
7130
|
return e;
|
|
7083
|
-
},
|
|
7131
|
+
}, zf.apply(this, arguments);
|
|
7084
7132
|
};
|
|
7085
|
-
function
|
|
7133
|
+
function Bf(e) {
|
|
7086
7134
|
var t = typeof Symbol == "function" && e[Symbol.iterator], n = 0;
|
|
7087
7135
|
return t ? t.call(e) : { next: function() {
|
|
7088
7136
|
return e && n >= e.length && (e = void 0), {
|
|
@@ -7091,7 +7139,7 @@ function Nf(e) {
|
|
|
7091
7139
|
};
|
|
7092
7140
|
} };
|
|
7093
7141
|
}
|
|
7094
|
-
function
|
|
7142
|
+
function Vf(e, t) {
|
|
7095
7143
|
var n = typeof Symbol == "function" && e[Symbol.iterator];
|
|
7096
7144
|
if (!n) return e;
|
|
7097
7145
|
var r = n.call(e), i, a = [], o;
|
|
@@ -7108,33 +7156,33 @@ function Pf(e, t) {
|
|
|
7108
7156
|
}
|
|
7109
7157
|
return a;
|
|
7110
7158
|
}
|
|
7111
|
-
function
|
|
7112
|
-
for (var e = [], t = 0; t < arguments.length; t++) e = e.concat(
|
|
7159
|
+
function Hf() {
|
|
7160
|
+
for (var e = [], t = 0; t < arguments.length; t++) e = e.concat(Vf(arguments[t]));
|
|
7113
7161
|
return e;
|
|
7114
7162
|
}
|
|
7115
|
-
var
|
|
7116
|
-
function
|
|
7117
|
-
var n = t ?
|
|
7163
|
+
var Uf = Symbol("mobx did run lazy initializers"), Wf = Symbol("mobx pending decorators"), Gf = {}, Kf = {};
|
|
7164
|
+
function qf(e, t) {
|
|
7165
|
+
var n = t ? Gf : Kf;
|
|
7118
7166
|
return n[e] || (n[e] = {
|
|
7119
7167
|
configurable: !0,
|
|
7120
7168
|
enumerable: t,
|
|
7121
7169
|
get: function() {
|
|
7122
|
-
return
|
|
7170
|
+
return Jf(this), this[e];
|
|
7123
7171
|
},
|
|
7124
7172
|
set: function(t) {
|
|
7125
|
-
|
|
7173
|
+
Jf(this), this[e] = t;
|
|
7126
7174
|
}
|
|
7127
7175
|
});
|
|
7128
7176
|
}
|
|
7129
|
-
function
|
|
7177
|
+
function Jf(e) {
|
|
7130
7178
|
var t, n;
|
|
7131
|
-
if (e[
|
|
7132
|
-
var r = e[
|
|
7179
|
+
if (e[Uf] !== !0) {
|
|
7180
|
+
var r = e[Wf];
|
|
7133
7181
|
if (r) {
|
|
7134
|
-
|
|
7135
|
-
var i =
|
|
7182
|
+
yf(e, Uf, !0);
|
|
7183
|
+
var i = Hf(Object.getOwnPropertySymbols(r), Object.keys(r));
|
|
7136
7184
|
try {
|
|
7137
|
-
for (var a =
|
|
7185
|
+
for (var a = Bf(i), o = a.next(); !o.done; o = a.next()) {
|
|
7138
7186
|
var s = r[o.value];
|
|
7139
7187
|
s.propertyCreator(e, s.prop, s.descriptor, s.decoratorTarget, s.decoratorArguments);
|
|
7140
7188
|
}
|
|
@@ -7150,182 +7198,182 @@ function Vf(e) {
|
|
|
7150
7198
|
}
|
|
7151
7199
|
}
|
|
7152
7200
|
}
|
|
7153
|
-
function
|
|
7201
|
+
function Yf(e, t) {
|
|
7154
7202
|
return function() {
|
|
7155
7203
|
var n, r = function(r, i, a, o) {
|
|
7156
7204
|
if (o === !0) return t(r, i, a, r, n), null;
|
|
7157
|
-
if (!Object.prototype.hasOwnProperty.call(r,
|
|
7158
|
-
var s = r[
|
|
7159
|
-
|
|
7205
|
+
if (!Object.prototype.hasOwnProperty.call(r, Wf)) {
|
|
7206
|
+
var s = r[Wf];
|
|
7207
|
+
yf(r, Wf, zf({}, s));
|
|
7160
7208
|
}
|
|
7161
|
-
return r[
|
|
7209
|
+
return r[Wf][i] = {
|
|
7162
7210
|
prop: i,
|
|
7163
7211
|
propertyCreator: t,
|
|
7164
7212
|
descriptor: a,
|
|
7165
7213
|
decoratorTarget: r,
|
|
7166
7214
|
decoratorArguments: n
|
|
7167
|
-
},
|
|
7215
|
+
}, qf(i, e);
|
|
7168
7216
|
};
|
|
7169
|
-
return
|
|
7217
|
+
return Xf(arguments) ? (n = uf, r.apply(null, arguments)) : (n = Array.prototype.slice.call(arguments), r);
|
|
7170
7218
|
};
|
|
7171
7219
|
}
|
|
7172
|
-
function
|
|
7220
|
+
function Xf(e) {
|
|
7173
7221
|
return (e.length === 2 || e.length === 3) && (typeof e[1] == "string" || typeof e[1] == "symbol") || e.length === 4 && e[3] === !0;
|
|
7174
7222
|
}
|
|
7175
|
-
function
|
|
7176
|
-
return
|
|
7223
|
+
function Zf(e, t, n) {
|
|
7224
|
+
return Pm(e) ? e : Array.isArray(e) ? J.array(e, { name: n }) : _f(e) ? J.object(e, void 0, { name: n }) : Cf(e) ? J.map(e, { name: n }) : wf(e) ? J.set(e, { name: n }) : e;
|
|
7177
7225
|
}
|
|
7178
|
-
function
|
|
7179
|
-
return e == null ||
|
|
7226
|
+
function Qf(e, t, n) {
|
|
7227
|
+
return e == null || Eh(e) || lh(e) || ph(e) || _h(e) ? e : Array.isArray(e) ? J.array(e, {
|
|
7180
7228
|
name: n,
|
|
7181
7229
|
deep: !1
|
|
7182
|
-
}) :
|
|
7230
|
+
}) : _f(e) ? J.object(e, void 0, {
|
|
7183
7231
|
name: n,
|
|
7184
7232
|
deep: !1
|
|
7185
|
-
}) :
|
|
7233
|
+
}) : Cf(e) ? J.map(e, {
|
|
7186
7234
|
name: n,
|
|
7187
7235
|
deep: !1
|
|
7188
|
-
}) :
|
|
7236
|
+
}) : wf(e) ? J.set(e, {
|
|
7189
7237
|
name: n,
|
|
7190
7238
|
deep: !1
|
|
7191
7239
|
}) : K(!1);
|
|
7192
7240
|
}
|
|
7193
|
-
function
|
|
7241
|
+
function $f(e) {
|
|
7194
7242
|
return e;
|
|
7195
7243
|
}
|
|
7196
|
-
function
|
|
7197
|
-
return
|
|
7244
|
+
function ep(e, t, n) {
|
|
7245
|
+
return jh(e, t) ? t : e;
|
|
7198
7246
|
}
|
|
7199
|
-
function
|
|
7200
|
-
|
|
7201
|
-
var t =
|
|
7247
|
+
function tp(e) {
|
|
7248
|
+
ff(e);
|
|
7249
|
+
var t = Yf(!0, function(t, n, r, i, a) {
|
|
7202
7250
|
var o = r ? r.initializer ? r.initializer.call(t) : r.value : void 0;
|
|
7203
|
-
|
|
7251
|
+
yh(t).addObservableProp(n, o, e);
|
|
7204
7252
|
}), n = (typeof process < "u" && process.env, t);
|
|
7205
7253
|
return n.enhancer = e, n;
|
|
7206
7254
|
}
|
|
7207
|
-
var
|
|
7255
|
+
var np = {
|
|
7208
7256
|
deep: !0,
|
|
7209
7257
|
name: void 0,
|
|
7210
7258
|
defaultDecorator: void 0,
|
|
7211
7259
|
proxy: !0
|
|
7212
7260
|
};
|
|
7213
|
-
Object.freeze(
|
|
7214
|
-
function
|
|
7215
|
-
return e == null ?
|
|
7261
|
+
Object.freeze(np);
|
|
7262
|
+
function rp(e) {
|
|
7263
|
+
return e == null ? np : typeof e == "string" ? {
|
|
7216
7264
|
name: e,
|
|
7217
7265
|
deep: !0,
|
|
7218
7266
|
proxy: !0
|
|
7219
7267
|
} : e;
|
|
7220
7268
|
}
|
|
7221
|
-
var
|
|
7222
|
-
function
|
|
7223
|
-
return e.defaultDecorator ? e.defaultDecorator.enhancer : e.deep === !1 ?
|
|
7269
|
+
var ip = tp(Zf), ap = tp(Qf), op = tp($f), sp = tp(ep);
|
|
7270
|
+
function cp(e) {
|
|
7271
|
+
return e.defaultDecorator ? e.defaultDecorator.enhancer : e.deep === !1 ? $f : Zf;
|
|
7224
7272
|
}
|
|
7225
|
-
function
|
|
7226
|
-
if (typeof arguments[1] == "string" || typeof arguments[1] == "symbol") return
|
|
7227
|
-
if (
|
|
7228
|
-
var r =
|
|
7273
|
+
function lp(e, t, n) {
|
|
7274
|
+
if (typeof arguments[1] == "string" || typeof arguments[1] == "symbol") return ip.apply(null, arguments);
|
|
7275
|
+
if (Pm(e)) return e;
|
|
7276
|
+
var r = _f(e) ? J.object(e, t, n) : Array.isArray(e) ? J.array(e, t) : Cf(e) ? J.map(e, t) : wf(e) ? J.set(e, t) : e;
|
|
7229
7277
|
if (r !== e) return r;
|
|
7230
7278
|
K(!1);
|
|
7231
7279
|
}
|
|
7232
|
-
var
|
|
7280
|
+
var up = {
|
|
7233
7281
|
box: function(e, t) {
|
|
7234
|
-
arguments.length > 2 &&
|
|
7235
|
-
var n =
|
|
7236
|
-
return new
|
|
7282
|
+
arguments.length > 2 && dp("box");
|
|
7283
|
+
var n = rp(t);
|
|
7284
|
+
return new Rp(e, cp(n), n.name, !0, n.equals);
|
|
7237
7285
|
},
|
|
7238
7286
|
array: function(e, t) {
|
|
7239
|
-
arguments.length > 2 &&
|
|
7240
|
-
var n =
|
|
7241
|
-
return
|
|
7287
|
+
arguments.length > 2 && dp("array");
|
|
7288
|
+
var n = rp(t);
|
|
7289
|
+
return ah(e, cp(n), n.name);
|
|
7242
7290
|
},
|
|
7243
7291
|
map: function(e, t) {
|
|
7244
|
-
arguments.length > 2 &&
|
|
7245
|
-
var n =
|
|
7246
|
-
return new
|
|
7292
|
+
arguments.length > 2 && dp("map");
|
|
7293
|
+
var n = rp(t);
|
|
7294
|
+
return new fh(e, cp(n), n.name);
|
|
7247
7295
|
},
|
|
7248
7296
|
set: function(e, t) {
|
|
7249
|
-
arguments.length > 2 &&
|
|
7250
|
-
var n =
|
|
7251
|
-
return new
|
|
7297
|
+
arguments.length > 2 && dp("set");
|
|
7298
|
+
var n = rp(t);
|
|
7299
|
+
return new gh(e, cp(n), n.name);
|
|
7252
7300
|
},
|
|
7253
7301
|
object: function(e, t, n) {
|
|
7254
|
-
typeof arguments[1] == "string" &&
|
|
7255
|
-
var r =
|
|
7256
|
-
if (r.proxy === !1) return
|
|
7257
|
-
var i =
|
|
7258
|
-
return
|
|
7302
|
+
typeof arguments[1] == "string" && dp("object");
|
|
7303
|
+
var r = rp(n);
|
|
7304
|
+
if (r.proxy === !1) return Dm({}, e, t, r);
|
|
7305
|
+
var i = Om(r), a = Xm(Dm({}, void 0, void 0, r));
|
|
7306
|
+
return km(a, e, t, i), a;
|
|
7259
7307
|
},
|
|
7260
|
-
ref:
|
|
7261
|
-
shallow:
|
|
7262
|
-
deep:
|
|
7263
|
-
struct:
|
|
7264
|
-
}, J =
|
|
7265
|
-
Object.keys(
|
|
7266
|
-
return J[e] =
|
|
7308
|
+
ref: op,
|
|
7309
|
+
shallow: ap,
|
|
7310
|
+
deep: ip,
|
|
7311
|
+
struct: sp
|
|
7312
|
+
}, J = lp;
|
|
7313
|
+
Object.keys(up).forEach(function(e) {
|
|
7314
|
+
return J[e] = up[e];
|
|
7267
7315
|
});
|
|
7268
|
-
function
|
|
7316
|
+
function dp(e) {
|
|
7269
7317
|
K("Expected one or two arguments to observable." + e + ". Did you accidentally try to use observable." + e + " as decorator?");
|
|
7270
7318
|
}
|
|
7271
|
-
var
|
|
7319
|
+
var fp = Yf(!1, function(e, t, n, r, i) {
|
|
7272
7320
|
var a = n.get, o = n.set, s = i[0] || {};
|
|
7273
|
-
|
|
7321
|
+
yh(e).addComputedProp(e, t, zf({
|
|
7274
7322
|
get: a,
|
|
7275
7323
|
set: o,
|
|
7276
7324
|
context: e
|
|
7277
7325
|
}, s));
|
|
7278
|
-
}),
|
|
7279
|
-
if (typeof t == "string" || typeof e == "object" && e && arguments.length === 1) return
|
|
7326
|
+
}), pp = fp({ equals: If.structural }), mp = function(e, t, n) {
|
|
7327
|
+
if (typeof t == "string" || typeof e == "object" && e && arguments.length === 1) return fp.apply(null, arguments);
|
|
7280
7328
|
var r = typeof t == "object" ? t : {};
|
|
7281
|
-
return r.get = e, r.set = typeof t == "function" ? t : r.set, r.name = r.name || e.name || "", new
|
|
7329
|
+
return r.get = e, r.set = typeof t == "function" ? t : r.set, r.name = r.name || e.name || "", new Bp(r);
|
|
7282
7330
|
};
|
|
7283
|
-
|
|
7331
|
+
mp.struct = pp;
|
|
7284
7332
|
var Y;
|
|
7285
7333
|
(function(e) {
|
|
7286
7334
|
e[e.NOT_TRACKING = -1] = "NOT_TRACKING", e[e.UP_TO_DATE = 0] = "UP_TO_DATE", e[e.POSSIBLY_STALE = 1] = "POSSIBLY_STALE", e[e.STALE = 2] = "STALE";
|
|
7287
7335
|
})(Y || (Y = {}));
|
|
7288
|
-
var
|
|
7336
|
+
var hp;
|
|
7289
7337
|
(function(e) {
|
|
7290
7338
|
e[e.NONE = 0] = "NONE", e[e.LOG = 1] = "LOG", e[e.BREAK = 2] = "BREAK";
|
|
7291
|
-
})(
|
|
7292
|
-
var
|
|
7339
|
+
})(hp || (hp = {}));
|
|
7340
|
+
var gp = function() {
|
|
7293
7341
|
function e(e) {
|
|
7294
7342
|
this.cause = e;
|
|
7295
7343
|
}
|
|
7296
7344
|
return e;
|
|
7297
7345
|
}();
|
|
7298
|
-
function
|
|
7299
|
-
return e instanceof
|
|
7346
|
+
function _p(e) {
|
|
7347
|
+
return e instanceof gp;
|
|
7300
7348
|
}
|
|
7301
|
-
function
|
|
7349
|
+
function vp(e) {
|
|
7302
7350
|
switch (e.dependenciesState) {
|
|
7303
7351
|
case Y.UP_TO_DATE: return !1;
|
|
7304
7352
|
case Y.NOT_TRACKING:
|
|
7305
7353
|
case Y.STALE: return !0;
|
|
7306
7354
|
case Y.POSSIBLY_STALE:
|
|
7307
|
-
for (var t =
|
|
7355
|
+
for (var t = Ep(!0), n = wp(), r = e.observing, i = r.length, a = 0; a < i; a++) {
|
|
7308
7356
|
var o = r[a];
|
|
7309
|
-
if (
|
|
7357
|
+
if (Vp(o)) {
|
|
7310
7358
|
if (X.disableErrorBoundaries) o.get();
|
|
7311
7359
|
else try {
|
|
7312
7360
|
o.get();
|
|
7313
7361
|
} catch {
|
|
7314
|
-
return
|
|
7362
|
+
return Tp(n), Dp(t), !0;
|
|
7315
7363
|
}
|
|
7316
|
-
if (e.dependenciesState === Y.STALE) return
|
|
7364
|
+
if (e.dependenciesState === Y.STALE) return Tp(n), Dp(t), !0;
|
|
7317
7365
|
}
|
|
7318
7366
|
}
|
|
7319
|
-
return
|
|
7367
|
+
return Op(e), Tp(n), Dp(t), !1;
|
|
7320
7368
|
}
|
|
7321
7369
|
}
|
|
7322
|
-
function
|
|
7370
|
+
function yp(e) {
|
|
7323
7371
|
var t = e.observers.size > 0;
|
|
7324
7372
|
X.computationDepth > 0 && t && K(!1), !X.allowStateChanges && (t || X.enforceActions === "strict") && K(!1);
|
|
7325
7373
|
}
|
|
7326
|
-
function
|
|
7327
|
-
var r =
|
|
7328
|
-
|
|
7374
|
+
function bp(e, t, n) {
|
|
7375
|
+
var r = Ep(!0);
|
|
7376
|
+
Op(e), e.newObserving = Array(e.observing.length + 100), e.unboundDepsCount = 0, e.runId = ++X.runId;
|
|
7329
7377
|
var i = X.trackingDerivation;
|
|
7330
7378
|
X.trackingDerivation = e;
|
|
7331
7379
|
var a;
|
|
@@ -7333,105 +7381,105 @@ function pp(e, t, n) {
|
|
|
7333
7381
|
else try {
|
|
7334
7382
|
a = t.call(n);
|
|
7335
7383
|
} catch (e) {
|
|
7336
|
-
a = new
|
|
7384
|
+
a = new gp(e);
|
|
7337
7385
|
}
|
|
7338
|
-
return X.trackingDerivation = i,
|
|
7386
|
+
return X.trackingDerivation = i, xp(e), Dp(r), a;
|
|
7339
7387
|
}
|
|
7340
|
-
function
|
|
7388
|
+
function xp(e) {
|
|
7341
7389
|
for (var t = e.observing, n = e.observing = e.newObserving, r = Y.UP_TO_DATE, i = 0, a = e.unboundDepsCount, o = 0; o < a; o++) {
|
|
7342
7390
|
var s = n[o];
|
|
7343
7391
|
s.diffValue === 0 && (s.diffValue = 1, i !== o && (n[i] = s), i++), s.dependenciesState > r && (r = s.dependenciesState);
|
|
7344
7392
|
}
|
|
7345
7393
|
for (n.length = i, e.newObserving = null, a = t.length; a--;) {
|
|
7346
7394
|
var s = t[a];
|
|
7347
|
-
s.diffValue === 0 &&
|
|
7395
|
+
s.diffValue === 0 && Yp(s, e), s.diffValue = 0;
|
|
7348
7396
|
}
|
|
7349
7397
|
for (; i--;) {
|
|
7350
7398
|
var s = n[i];
|
|
7351
|
-
s.diffValue === 1 && (s.diffValue = 0,
|
|
7399
|
+
s.diffValue === 1 && (s.diffValue = 0, Jp(s, e));
|
|
7352
7400
|
}
|
|
7353
7401
|
r !== Y.UP_TO_DATE && (e.dependenciesState = r, e.onBecomeStale());
|
|
7354
7402
|
}
|
|
7355
|
-
function
|
|
7403
|
+
function Sp(e) {
|
|
7356
7404
|
var t = e.observing;
|
|
7357
7405
|
e.observing = [];
|
|
7358
|
-
for (var n = t.length; n--;)
|
|
7406
|
+
for (var n = t.length; n--;) Yp(t[n], e);
|
|
7359
7407
|
e.dependenciesState = Y.NOT_TRACKING;
|
|
7360
7408
|
}
|
|
7361
|
-
function
|
|
7362
|
-
var t =
|
|
7409
|
+
function Cp(e) {
|
|
7410
|
+
var t = wp();
|
|
7363
7411
|
try {
|
|
7364
7412
|
return e();
|
|
7365
7413
|
} finally {
|
|
7366
|
-
|
|
7414
|
+
Tp(t);
|
|
7367
7415
|
}
|
|
7368
7416
|
}
|
|
7369
|
-
function
|
|
7417
|
+
function wp() {
|
|
7370
7418
|
var e = X.trackingDerivation;
|
|
7371
7419
|
return X.trackingDerivation = null, e;
|
|
7372
7420
|
}
|
|
7373
|
-
function
|
|
7421
|
+
function Tp(e) {
|
|
7374
7422
|
X.trackingDerivation = e;
|
|
7375
7423
|
}
|
|
7376
|
-
function
|
|
7424
|
+
function Ep(e) {
|
|
7377
7425
|
var t = X.allowStateReads;
|
|
7378
7426
|
return X.allowStateReads = e, t;
|
|
7379
7427
|
}
|
|
7380
|
-
function
|
|
7428
|
+
function Dp(e) {
|
|
7381
7429
|
X.allowStateReads = e;
|
|
7382
7430
|
}
|
|
7383
|
-
function
|
|
7431
|
+
function Op(e) {
|
|
7384
7432
|
if (e.dependenciesState !== Y.UP_TO_DATE) {
|
|
7385
7433
|
e.dependenciesState = Y.UP_TO_DATE;
|
|
7386
7434
|
for (var t = e.observing, n = t.length; n--;) t[n].lowestObserverState = Y.UP_TO_DATE;
|
|
7387
7435
|
}
|
|
7388
7436
|
}
|
|
7389
|
-
var
|
|
7390
|
-
|
|
7391
|
-
function
|
|
7437
|
+
var kp = 0, Ap = 1, jp = Object.getOwnPropertyDescriptor(function() {}, "name");
|
|
7438
|
+
jp && jp.configurable;
|
|
7439
|
+
function Mp(e, t, n) {
|
|
7392
7440
|
var r = function() {
|
|
7393
|
-
return
|
|
7441
|
+
return Np(e, t, n || this, arguments);
|
|
7394
7442
|
};
|
|
7395
7443
|
return r.isMobxAction = !0, r;
|
|
7396
7444
|
}
|
|
7397
|
-
function
|
|
7398
|
-
var i =
|
|
7445
|
+
function Np(e, t, n, r) {
|
|
7446
|
+
var i = Pp(e, n, r);
|
|
7399
7447
|
try {
|
|
7400
7448
|
return t.apply(n, r);
|
|
7401
7449
|
} catch (e) {
|
|
7402
7450
|
throw i.error = e, e;
|
|
7403
7451
|
} finally {
|
|
7404
|
-
|
|
7452
|
+
Fp(i);
|
|
7405
7453
|
}
|
|
7406
7454
|
}
|
|
7407
|
-
function
|
|
7408
|
-
var r = $() && !!e, i = 0, a =
|
|
7455
|
+
function Pp(e, t, n) {
|
|
7456
|
+
var r = $() && !!e, i = 0, a = wp();
|
|
7409
7457
|
Z();
|
|
7410
7458
|
var o = {
|
|
7411
7459
|
prevDerivation: a,
|
|
7412
|
-
prevAllowStateChanges:
|
|
7413
|
-
prevAllowStateReads:
|
|
7460
|
+
prevAllowStateChanges: Ip(!0),
|
|
7461
|
+
prevAllowStateReads: Ep(!0),
|
|
7414
7462
|
notifySpy: r,
|
|
7415
7463
|
startTime: i,
|
|
7416
|
-
actionId:
|
|
7417
|
-
parentActionId:
|
|
7464
|
+
actionId: Ap++,
|
|
7465
|
+
parentActionId: kp
|
|
7418
7466
|
};
|
|
7419
|
-
return
|
|
7467
|
+
return kp = o.actionId, o;
|
|
7420
7468
|
}
|
|
7421
|
-
function
|
|
7422
|
-
|
|
7469
|
+
function Fp(e) {
|
|
7470
|
+
kp !== e.actionId && K("invalid action stack. did you forget to finish an action?"), kp = e.parentActionId, e.error !== void 0 && (X.suppressReactionErrors = !0), Lp(e.prevAllowStateChanges), Dp(e.prevAllowStateReads), Q(), Tp(e.prevDerivation), e.notifySpy, X.suppressReactionErrors = !1;
|
|
7423
7471
|
}
|
|
7424
|
-
function
|
|
7472
|
+
function Ip(e) {
|
|
7425
7473
|
var t = X.allowStateChanges;
|
|
7426
7474
|
return X.allowStateChanges = e, t;
|
|
7427
7475
|
}
|
|
7428
|
-
function
|
|
7476
|
+
function Lp(e) {
|
|
7429
7477
|
X.allowStateChanges = e;
|
|
7430
7478
|
}
|
|
7431
|
-
var
|
|
7432
|
-
|
|
7479
|
+
var Rp = function(e) {
|
|
7480
|
+
Rf(t, e);
|
|
7433
7481
|
function t(t, n, r, i, a) {
|
|
7434
|
-
r === void 0 && (r = "ObservableValue@" + G()), i === void 0 && (i = !0), a === void 0 && (a =
|
|
7482
|
+
r === void 0 && (r = "ObservableValue@" + G()), i === void 0 && (i = !0), a === void 0 && (a = If.default);
|
|
7435
7483
|
var o = e.call(this, r) || this;
|
|
7436
7484
|
return o.enhancer = n, o.name = r, o.equals = a, o.hasUnreportedChange = !1, o.value = n(t, void 0, r), o;
|
|
7437
7485
|
}
|
|
@@ -7440,8 +7488,8 @@ var jp = function(e) {
|
|
|
7440
7488
|
}, t.prototype.set = function(e) {
|
|
7441
7489
|
this.value, e = this.prepareNewValue(e), e !== X.UNCHANGED && this.setNewValue(e);
|
|
7442
7490
|
}, t.prototype.prepareNewValue = function(e) {
|
|
7443
|
-
if (
|
|
7444
|
-
var t =
|
|
7491
|
+
if (yp(this), Zm(this)) {
|
|
7492
|
+
var t = $m(this, {
|
|
7445
7493
|
object: this,
|
|
7446
7494
|
type: "update",
|
|
7447
7495
|
newValue: e
|
|
@@ -7452,7 +7500,7 @@ var jp = function(e) {
|
|
|
7452
7500
|
return e = this.enhancer(e, this.value, this.name), this.equals(this.value, e) ? X.UNCHANGED : e;
|
|
7453
7501
|
}, t.prototype.setNewValue = function(e) {
|
|
7454
7502
|
var t = this.value;
|
|
7455
|
-
this.value = e, this.reportChanged(),
|
|
7503
|
+
this.value = e, this.reportChanged(), eh(this) && nh(this, {
|
|
7456
7504
|
type: "update",
|
|
7457
7505
|
object: this,
|
|
7458
7506
|
newValue: e,
|
|
@@ -7461,29 +7509,29 @@ var jp = function(e) {
|
|
|
7461
7509
|
}, t.prototype.get = function() {
|
|
7462
7510
|
return this.reportObserved(), this.dehanceValue(this.value);
|
|
7463
7511
|
}, t.prototype.intercept = function(e) {
|
|
7464
|
-
return
|
|
7512
|
+
return Qm(this, e);
|
|
7465
7513
|
}, t.prototype.observe = function(e, t) {
|
|
7466
7514
|
return t && e({
|
|
7467
7515
|
object: this,
|
|
7468
7516
|
type: "update",
|
|
7469
7517
|
newValue: this.value,
|
|
7470
7518
|
oldValue: void 0
|
|
7471
|
-
}),
|
|
7519
|
+
}), th(this, e);
|
|
7472
7520
|
}, t.prototype.toJSON = function() {
|
|
7473
7521
|
return this.get();
|
|
7474
7522
|
}, t.prototype.toString = function() {
|
|
7475
7523
|
return this.name + "[" + this.value + "]";
|
|
7476
7524
|
}, t.prototype.valueOf = function() {
|
|
7477
|
-
return
|
|
7525
|
+
return Df(this.get());
|
|
7478
7526
|
}, t.prototype[Symbol.toPrimitive] = function() {
|
|
7479
7527
|
return this.valueOf();
|
|
7480
7528
|
}, t;
|
|
7481
|
-
}(
|
|
7529
|
+
}(kf), zp = Sf("ObservableValue", Rp), Bp = function() {
|
|
7482
7530
|
function e(e) {
|
|
7483
|
-
this.dependenciesState = Y.NOT_TRACKING, this.observing = [], this.newObserving = null, this.isBeingObserved = !1, this.isPendingUnobservation = !1, this.observers = /* @__PURE__ */ new Set(), this.diffValue = 0, this.runId = 0, this.lastAccessedBy = 0, this.lowestObserverState = Y.UP_TO_DATE, this.unboundDepsCount = 0, this.__mapid = "#" + G(), this.value = new
|
|
7531
|
+
this.dependenciesState = Y.NOT_TRACKING, this.observing = [], this.newObserving = null, this.isBeingObserved = !1, this.isPendingUnobservation = !1, this.observers = /* @__PURE__ */ new Set(), this.diffValue = 0, this.runId = 0, this.lastAccessedBy = 0, this.lowestObserverState = Y.UP_TO_DATE, this.unboundDepsCount = 0, this.__mapid = "#" + G(), this.value = new gp(null), this.isComputing = !1, this.isRunningSetter = !1, this.isTracing = hp.NONE, ff(e.get, "missing option for computed: get"), this.derivation = e.get, this.name = e.name || "ComputedValue@" + G(), e.set && (this.setter = Mp(this.name + "-setter", e.set)), this.equals = e.equals || (e.compareStructural || e.struct ? If.structural : If.default), this.scope = e.context, this.requiresReaction = !!e.requiresReaction, this.keepAlive = !!e.keepAlive;
|
|
7484
7532
|
}
|
|
7485
7533
|
return e.prototype.onBecomeStale = function() {
|
|
7486
|
-
|
|
7534
|
+
em(this);
|
|
7487
7535
|
}, e.prototype.onBecomeObserved = function() {
|
|
7488
7536
|
this.onBecomeObservedListeners && this.onBecomeObservedListeners.forEach(function(e) {
|
|
7489
7537
|
return e();
|
|
@@ -7493,51 +7541,51 @@ var jp = function(e) {
|
|
|
7493
7541
|
return e();
|
|
7494
7542
|
});
|
|
7495
7543
|
}, e.prototype.get = function() {
|
|
7496
|
-
this.isComputing && K("Cycle detected in computation " + this.name + ": " + this.derivation), X.inBatch === 0 && this.observers.size === 0 && !this.keepAlive ?
|
|
7544
|
+
this.isComputing && K("Cycle detected in computation " + this.name + ": " + this.derivation), X.inBatch === 0 && this.observers.size === 0 && !this.keepAlive ? vp(this) && (this.warnAboutUntrackedRead(), Z(), this.value = this.computeValue(!1), Q()) : (Zp(this), vp(this) && this.trackAndCompute() && $p(this));
|
|
7497
7545
|
var e = this.value;
|
|
7498
|
-
if (
|
|
7546
|
+
if (_p(e)) throw e.cause;
|
|
7499
7547
|
return e;
|
|
7500
7548
|
}, e.prototype.peek = function() {
|
|
7501
7549
|
var e = this.computeValue(!1);
|
|
7502
|
-
if (
|
|
7550
|
+
if (_p(e)) throw e.cause;
|
|
7503
7551
|
return e;
|
|
7504
7552
|
}, e.prototype.set = function(e) {
|
|
7505
7553
|
if (this.setter) {
|
|
7506
|
-
|
|
7554
|
+
ff(!this.isRunningSetter, "The setter of computed value '" + this.name + "' is trying to update itself. Did you intend to update an _observable_ value, instead of the computed property?"), this.isRunningSetter = !0;
|
|
7507
7555
|
try {
|
|
7508
7556
|
this.setter.call(this.scope, e);
|
|
7509
7557
|
} finally {
|
|
7510
7558
|
this.isRunningSetter = !1;
|
|
7511
7559
|
}
|
|
7512
|
-
} else
|
|
7560
|
+
} else ff(!1, !1);
|
|
7513
7561
|
}, e.prototype.trackAndCompute = function() {
|
|
7514
|
-
var e = this.value, t = this.dependenciesState === Y.NOT_TRACKING, n = this.computeValue(!0), r = t ||
|
|
7562
|
+
var e = this.value, t = this.dependenciesState === Y.NOT_TRACKING, n = this.computeValue(!0), r = t || _p(e) || _p(n) || !this.equals(e, n);
|
|
7515
7563
|
return r && (this.value = n), r;
|
|
7516
7564
|
}, e.prototype.computeValue = function(e) {
|
|
7517
7565
|
this.isComputing = !0, X.computationDepth++;
|
|
7518
7566
|
var t;
|
|
7519
|
-
if (e) t =
|
|
7567
|
+
if (e) t = bp(this, this.derivation, this.scope);
|
|
7520
7568
|
else if (X.disableErrorBoundaries === !0) t = this.derivation.call(this.scope);
|
|
7521
7569
|
else try {
|
|
7522
7570
|
t = this.derivation.call(this.scope);
|
|
7523
7571
|
} catch (e) {
|
|
7524
|
-
t = new
|
|
7572
|
+
t = new gp(e);
|
|
7525
7573
|
}
|
|
7526
7574
|
return X.computationDepth--, this.isComputing = !1, t;
|
|
7527
7575
|
}, e.prototype.suspend = function() {
|
|
7528
|
-
this.keepAlive || (
|
|
7576
|
+
this.keepAlive || (Sp(this), this.value = void 0);
|
|
7529
7577
|
}, e.prototype.observe = function(e, t) {
|
|
7530
7578
|
var n = this, r = !0, i = void 0;
|
|
7531
|
-
return
|
|
7579
|
+
return vm(function() {
|
|
7532
7580
|
var a = n.get();
|
|
7533
7581
|
if (!r || t) {
|
|
7534
|
-
var o =
|
|
7582
|
+
var o = wp();
|
|
7535
7583
|
e({
|
|
7536
7584
|
type: "update",
|
|
7537
7585
|
object: n,
|
|
7538
7586
|
newValue: a,
|
|
7539
7587
|
oldValue: i
|
|
7540
|
-
}),
|
|
7588
|
+
}), Tp(o);
|
|
7541
7589
|
}
|
|
7542
7590
|
r = !1, i = a;
|
|
7543
7591
|
});
|
|
@@ -7546,35 +7594,35 @@ var jp = function(e) {
|
|
|
7546
7594
|
}, e.prototype.toString = function() {
|
|
7547
7595
|
return this.name + "[" + this.derivation.toString() + "]";
|
|
7548
7596
|
}, e.prototype.valueOf = function() {
|
|
7549
|
-
return
|
|
7597
|
+
return Df(this.get());
|
|
7550
7598
|
}, e.prototype[Symbol.toPrimitive] = function() {
|
|
7551
7599
|
return this.valueOf();
|
|
7552
7600
|
}, e;
|
|
7553
|
-
}(),
|
|
7601
|
+
}(), Vp = Sf("ComputedValue", Bp), Hp = function() {
|
|
7554
7602
|
function e() {
|
|
7555
7603
|
this.version = 5, this.UNCHANGED = {}, this.trackingDerivation = null, this.computationDepth = 0, this.runId = 0, this.mobxGuid = 0, this.inBatch = 0, this.pendingUnobservations = [], this.pendingReactions = [], this.isRunningReactions = !1, this.allowStateChanges = !0, this.allowStateReads = !0, this.enforceActions = !1, this.spyListeners = [], this.globalReactionErrorHandlers = [], this.computedRequiresReaction = !1, this.reactionRequiresObservable = !1, this.observableRequiresReaction = !1, this.computedConfigurable = !1, this.disableErrorBoundaries = !1, this.suppressReactionErrors = !1;
|
|
7556
7604
|
}
|
|
7557
7605
|
return e;
|
|
7558
|
-
}(),
|
|
7559
|
-
function
|
|
7560
|
-
return typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self :
|
|
7561
|
-
}
|
|
7562
|
-
var
|
|
7563
|
-
var e =
|
|
7564
|
-
return e.__mobxInstanceCount > 0 && !e.__mobxGlobals && (
|
|
7565
|
-
|
|
7566
|
-
}, 1), new
|
|
7606
|
+
}(), Up = {};
|
|
7607
|
+
function Wp() {
|
|
7608
|
+
return typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : Up;
|
|
7609
|
+
}
|
|
7610
|
+
var Gp = !0, Kp = !1, X = (function() {
|
|
7611
|
+
var e = Wp();
|
|
7612
|
+
return e.__mobxInstanceCount > 0 && !e.__mobxGlobals && (Gp = !1), e.__mobxGlobals && e.__mobxGlobals.version !== new Hp().version && (Gp = !1), Gp ? e.__mobxGlobals ? (e.__mobxInstanceCount += 1, e.__mobxGlobals.UNCHANGED || (e.__mobxGlobals.UNCHANGED = {}), e.__mobxGlobals) : (e.__mobxInstanceCount = 1, e.__mobxGlobals = new Hp()) : (setTimeout(function() {
|
|
7613
|
+
Kp || K("There are multiple, different versions of MobX active. Make sure MobX is loaded only once or use `configure({ isolateGlobalState: true })`");
|
|
7614
|
+
}, 1), new Hp());
|
|
7567
7615
|
})();
|
|
7568
|
-
function
|
|
7569
|
-
(X.pendingReactions.length || X.inBatch || X.isRunningReactions) && K("isolateGlobalState should be called before MobX is running any reactions"),
|
|
7616
|
+
function qp() {
|
|
7617
|
+
(X.pendingReactions.length || X.inBatch || X.isRunningReactions) && K("isolateGlobalState should be called before MobX is running any reactions"), Kp = !0, Gp && (--Wp().__mobxInstanceCount === 0 && (Wp().__mobxGlobals = void 0), X = new Hp());
|
|
7570
7618
|
}
|
|
7571
|
-
function
|
|
7619
|
+
function Jp(e, t) {
|
|
7572
7620
|
e.observers.add(t), e.lowestObserverState > t.dependenciesState && (e.lowestObserverState = t.dependenciesState);
|
|
7573
7621
|
}
|
|
7574
|
-
function
|
|
7575
|
-
e.observers.delete(t), e.observers.size === 0 &&
|
|
7622
|
+
function Yp(e, t) {
|
|
7623
|
+
e.observers.delete(t), e.observers.size === 0 && Xp(e);
|
|
7576
7624
|
}
|
|
7577
|
-
function
|
|
7625
|
+
function Xp(e) {
|
|
7578
7626
|
e.isPendingUnobservation === !1 && (e.isPendingUnobservation = !0, X.pendingUnobservations.push(e));
|
|
7579
7627
|
}
|
|
7580
7628
|
function Z() {
|
|
@@ -7582,61 +7630,61 @@ function Z() {
|
|
|
7582
7630
|
}
|
|
7583
7631
|
function Q() {
|
|
7584
7632
|
if (--X.inBatch === 0) {
|
|
7585
|
-
|
|
7633
|
+
om();
|
|
7586
7634
|
for (var e = X.pendingUnobservations, t = 0; t < e.length; t++) {
|
|
7587
7635
|
var n = e[t];
|
|
7588
|
-
n.isPendingUnobservation = !1, n.observers.size === 0 && (n.isBeingObserved && (n.isBeingObserved = !1, n.onBecomeUnobserved()), n instanceof
|
|
7636
|
+
n.isPendingUnobservation = !1, n.observers.size === 0 && (n.isBeingObserved && (n.isBeingObserved = !1, n.onBecomeUnobserved()), n instanceof Bp && n.suspend());
|
|
7589
7637
|
}
|
|
7590
7638
|
X.pendingUnobservations = [];
|
|
7591
7639
|
}
|
|
7592
7640
|
}
|
|
7593
|
-
function
|
|
7641
|
+
function Zp(e) {
|
|
7594
7642
|
var t = X.trackingDerivation;
|
|
7595
|
-
return t === null ? (e.observers.size === 0 && X.inBatch > 0 &&
|
|
7643
|
+
return t === null ? (e.observers.size === 0 && X.inBatch > 0 && Xp(e), !1) : (t.runId !== e.lastAccessedBy && (e.lastAccessedBy = t.runId, t.newObserving[t.unboundDepsCount++] = e, e.isBeingObserved || (e.isBeingObserved = !0, e.onBecomeObserved())), !0);
|
|
7596
7644
|
}
|
|
7597
|
-
function
|
|
7645
|
+
function Qp(e) {
|
|
7598
7646
|
e.lowestObserverState !== Y.STALE && (e.lowestObserverState = Y.STALE, e.observers.forEach(function(t) {
|
|
7599
|
-
t.dependenciesState === Y.UP_TO_DATE && (t.isTracing !==
|
|
7647
|
+
t.dependenciesState === Y.UP_TO_DATE && (t.isTracing !== hp.NONE && tm(t, e), t.onBecomeStale()), t.dependenciesState = Y.STALE;
|
|
7600
7648
|
}));
|
|
7601
7649
|
}
|
|
7602
|
-
function
|
|
7650
|
+
function $p(e) {
|
|
7603
7651
|
e.lowestObserverState !== Y.STALE && (e.lowestObserverState = Y.STALE, e.observers.forEach(function(t) {
|
|
7604
7652
|
t.dependenciesState === Y.POSSIBLY_STALE ? t.dependenciesState = Y.STALE : t.dependenciesState === Y.UP_TO_DATE && (e.lowestObserverState = Y.UP_TO_DATE);
|
|
7605
7653
|
}));
|
|
7606
7654
|
}
|
|
7607
|
-
function
|
|
7655
|
+
function em(e) {
|
|
7608
7656
|
e.lowestObserverState === Y.UP_TO_DATE && (e.lowestObserverState = Y.POSSIBLY_STALE, e.observers.forEach(function(t) {
|
|
7609
|
-
t.dependenciesState === Y.UP_TO_DATE && (t.dependenciesState = Y.POSSIBLY_STALE, t.isTracing !==
|
|
7657
|
+
t.dependenciesState === Y.UP_TO_DATE && (t.dependenciesState = Y.POSSIBLY_STALE, t.isTracing !== hp.NONE && tm(t, e), t.onBecomeStale());
|
|
7610
7658
|
}));
|
|
7611
7659
|
}
|
|
7612
|
-
function
|
|
7613
|
-
if (console.log("[mobx.trace] '" + e.name + "' is invalidated due to a change in: '" + t.name + "'"), e.isTracing ===
|
|
7660
|
+
function tm(e, t) {
|
|
7661
|
+
if (console.log("[mobx.trace] '" + e.name + "' is invalidated due to a change in: '" + t.name + "'"), e.isTracing === hp.BREAK) {
|
|
7614
7662
|
var n = [];
|
|
7615
|
-
|
|
7663
|
+
nm(Am(e), n, 1), Function("debugger;\n/*\nTracing '" + e.name + "'\n\nYou are entering this break point because derivation '" + e.name + "' is being traced and '" + t.name + "' is now forcing it to update.\nJust follow the stacktrace you should now see in the devtools to see precisely what piece of your code is causing this update\nThe stackframe you are looking for is at least ~6-8 stack-frames up.\n\n" + (e instanceof Bp ? e.derivation.toString().replace(/[*]\//g, "/") : "") + "\n\nThe dependencies for this derivation are:\n\n" + n.join("\n") + "\n*/\n ")();
|
|
7616
7664
|
}
|
|
7617
7665
|
}
|
|
7618
|
-
function
|
|
7666
|
+
function nm(e, t, n) {
|
|
7619
7667
|
if (t.length >= 1e3) {
|
|
7620
7668
|
t.push("(and many more)");
|
|
7621
7669
|
return;
|
|
7622
7670
|
}
|
|
7623
7671
|
t.push("" + Array(n).join(" ") + e.name), e.dependencies && e.dependencies.forEach(function(e) {
|
|
7624
|
-
return
|
|
7672
|
+
return nm(e, t, n + 1);
|
|
7625
7673
|
});
|
|
7626
7674
|
}
|
|
7627
|
-
var
|
|
7675
|
+
var rm = function() {
|
|
7628
7676
|
function e(e, t, n, r) {
|
|
7629
|
-
e === void 0 && (e = "Reaction@" + G()), r === void 0 && (r = !1), this.name = e, this.onInvalidate = t, this.errorHandler = n, this.requiresObservable = r, this.observing = [], this.newObserving = [], this.dependenciesState = Y.NOT_TRACKING, this.diffValue = 0, this.runId = 0, this.unboundDepsCount = 0, this.__mapid = "#" + G(), this.isDisposed = !1, this._isScheduled = !1, this._isTrackPending = !1, this._isRunning = !1, this.isTracing =
|
|
7677
|
+
e === void 0 && (e = "Reaction@" + G()), r === void 0 && (r = !1), this.name = e, this.onInvalidate = t, this.errorHandler = n, this.requiresObservable = r, this.observing = [], this.newObserving = [], this.dependenciesState = Y.NOT_TRACKING, this.diffValue = 0, this.runId = 0, this.unboundDepsCount = 0, this.__mapid = "#" + G(), this.isDisposed = !1, this._isScheduled = !1, this._isTrackPending = !1, this._isRunning = !1, this.isTracing = hp.NONE;
|
|
7630
7678
|
}
|
|
7631
7679
|
return e.prototype.onBecomeStale = function() {
|
|
7632
7680
|
this.schedule();
|
|
7633
7681
|
}, e.prototype.schedule = function() {
|
|
7634
|
-
this._isScheduled || (this._isScheduled = !0, X.pendingReactions.push(this),
|
|
7682
|
+
this._isScheduled || (this._isScheduled = !0, X.pendingReactions.push(this), om());
|
|
7635
7683
|
}, e.prototype.isScheduled = function() {
|
|
7636
7684
|
return this._isScheduled;
|
|
7637
7685
|
}, e.prototype.runReaction = function() {
|
|
7638
7686
|
if (!this.isDisposed) {
|
|
7639
|
-
if (Z(), this._isScheduled = !1,
|
|
7687
|
+
if (Z(), this._isScheduled = !1, vp(this)) {
|
|
7640
7688
|
this._isTrackPending = !0;
|
|
7641
7689
|
try {
|
|
7642
7690
|
this.onInvalidate(), this._isTrackPending;
|
|
@@ -7649,8 +7697,8 @@ var Xp = function() {
|
|
|
7649
7697
|
}, e.prototype.track = function(e) {
|
|
7650
7698
|
if (!this.isDisposed) {
|
|
7651
7699
|
Z(), this._isRunning = !0;
|
|
7652
|
-
var t =
|
|
7653
|
-
this._isRunning = !1, this._isTrackPending = !1, this.isDisposed &&
|
|
7700
|
+
var t = bp(this, e, void 0);
|
|
7701
|
+
this._isRunning = !1, this._isTrackPending = !1, this.isDisposed && Sp(this), _p(t) && this.reportExceptionInDerivation(t.cause), Q();
|
|
7654
7702
|
}
|
|
7655
7703
|
}, e.prototype.reportExceptionInDerivation = function(e) {
|
|
7656
7704
|
var t = this;
|
|
@@ -7664,33 +7712,33 @@ var Xp = function() {
|
|
|
7664
7712
|
return n(e, t);
|
|
7665
7713
|
});
|
|
7666
7714
|
}, e.prototype.dispose = function() {
|
|
7667
|
-
this.isDisposed || (this.isDisposed = !0, this._isRunning || (Z(),
|
|
7715
|
+
this.isDisposed || (this.isDisposed = !0, this._isRunning || (Z(), Sp(this), Q()));
|
|
7668
7716
|
}, e.prototype.getDisposer = function() {
|
|
7669
7717
|
var e = this.dispose.bind(this);
|
|
7670
7718
|
return e[q] = this, e;
|
|
7671
7719
|
}, e.prototype.toString = function() {
|
|
7672
7720
|
return "Reaction[" + this.name + "]";
|
|
7673
7721
|
}, e.prototype.trace = function(e) {
|
|
7674
|
-
e === void 0 && (e = !1),
|
|
7722
|
+
e === void 0 && (e = !1), Vm(this, e);
|
|
7675
7723
|
}, e;
|
|
7676
|
-
}(),
|
|
7724
|
+
}(), im = 100, am = function(e) {
|
|
7677
7725
|
return e();
|
|
7678
7726
|
};
|
|
7679
|
-
function
|
|
7680
|
-
X.inBatch > 0 || X.isRunningReactions ||
|
|
7727
|
+
function om() {
|
|
7728
|
+
X.inBatch > 0 || X.isRunningReactions || am(sm);
|
|
7681
7729
|
}
|
|
7682
|
-
function
|
|
7730
|
+
function sm() {
|
|
7683
7731
|
X.isRunningReactions = !0;
|
|
7684
7732
|
for (var e = X.pendingReactions, t = 0; e.length > 0;) {
|
|
7685
|
-
++t ===
|
|
7733
|
+
++t === im && (console.error("Reaction doesn't converge to a stable state after " + im + " iterations." + (" Probably there is a cycle in the reactive function: " + e[0])), e.splice(0));
|
|
7686
7734
|
for (var n = e.splice(0), r = 0, i = n.length; r < i; r++) n[r].runReaction();
|
|
7687
7735
|
}
|
|
7688
7736
|
X.isRunningReactions = !1;
|
|
7689
7737
|
}
|
|
7690
|
-
var
|
|
7691
|
-
function
|
|
7692
|
-
var t =
|
|
7693
|
-
|
|
7738
|
+
var cm = Sf("Reaction", rm);
|
|
7739
|
+
function lm(e) {
|
|
7740
|
+
var t = am;
|
|
7741
|
+
am = function(n) {
|
|
7694
7742
|
return e(function() {
|
|
7695
7743
|
return t(n);
|
|
7696
7744
|
});
|
|
@@ -7699,17 +7747,17 @@ function nm(e) {
|
|
|
7699
7747
|
function $() {
|
|
7700
7748
|
return !1;
|
|
7701
7749
|
}
|
|
7702
|
-
function
|
|
7750
|
+
function um(e) {
|
|
7703
7751
|
return console.warn("[mobx.spy] Is a no-op in production builds"), function() {};
|
|
7704
7752
|
}
|
|
7705
|
-
function
|
|
7753
|
+
function dm() {
|
|
7706
7754
|
K(!1);
|
|
7707
7755
|
}
|
|
7708
|
-
function
|
|
7756
|
+
function fm(e) {
|
|
7709
7757
|
return function(t, n, r) {
|
|
7710
7758
|
if (r) {
|
|
7711
7759
|
if (r.value) return {
|
|
7712
|
-
value:
|
|
7760
|
+
value: Mp(e, r.value),
|
|
7713
7761
|
enumerable: !1,
|
|
7714
7762
|
configurable: !0,
|
|
7715
7763
|
writable: !0
|
|
@@ -7720,65 +7768,65 @@ function am(e) {
|
|
|
7720
7768
|
configurable: !0,
|
|
7721
7769
|
writable: !0,
|
|
7722
7770
|
initializer: function() {
|
|
7723
|
-
return
|
|
7771
|
+
return Mp(e, i.call(this));
|
|
7724
7772
|
}
|
|
7725
7773
|
};
|
|
7726
7774
|
}
|
|
7727
|
-
return
|
|
7775
|
+
return pm(e).apply(this, arguments);
|
|
7728
7776
|
};
|
|
7729
7777
|
}
|
|
7730
|
-
function
|
|
7778
|
+
function pm(e) {
|
|
7731
7779
|
return function(t, n, r) {
|
|
7732
7780
|
Object.defineProperty(t, n, {
|
|
7733
7781
|
configurable: !0,
|
|
7734
7782
|
enumerable: !1,
|
|
7735
7783
|
get: function() {},
|
|
7736
7784
|
set: function(t) {
|
|
7737
|
-
|
|
7785
|
+
yf(this, n, hm(e, t));
|
|
7738
7786
|
}
|
|
7739
7787
|
});
|
|
7740
7788
|
};
|
|
7741
7789
|
}
|
|
7742
|
-
function
|
|
7743
|
-
return r === !0 ? (
|
|
7790
|
+
function mm(e, t, n, r) {
|
|
7791
|
+
return r === !0 ? (_m(e, t, n.value), null) : n ? {
|
|
7744
7792
|
configurable: !0,
|
|
7745
7793
|
enumerable: !1,
|
|
7746
7794
|
get: function() {
|
|
7747
|
-
return
|
|
7795
|
+
return _m(this, t, n.value || n.initializer.call(this)), this[t];
|
|
7748
7796
|
},
|
|
7749
|
-
set:
|
|
7797
|
+
set: dm
|
|
7750
7798
|
} : {
|
|
7751
7799
|
enumerable: !1,
|
|
7752
7800
|
configurable: !0,
|
|
7753
7801
|
set: function(e) {
|
|
7754
|
-
|
|
7802
|
+
_m(this, t, e);
|
|
7755
7803
|
},
|
|
7756
7804
|
get: function() {}
|
|
7757
7805
|
};
|
|
7758
7806
|
}
|
|
7759
|
-
var
|
|
7760
|
-
if (arguments.length === 1 && typeof e == "function") return
|
|
7761
|
-
if (arguments.length === 2 && typeof t == "function") return
|
|
7762
|
-
if (arguments.length === 1 && typeof e == "string") return
|
|
7763
|
-
if (r === !0)
|
|
7764
|
-
else return
|
|
7807
|
+
var hm = function(e, t, n, r) {
|
|
7808
|
+
if (arguments.length === 1 && typeof e == "function") return Mp(e.name || "<unnamed action>", e);
|
|
7809
|
+
if (arguments.length === 2 && typeof t == "function") return Mp(e, t);
|
|
7810
|
+
if (arguments.length === 1 && typeof e == "string") return fm(e);
|
|
7811
|
+
if (r === !0) yf(e, t, Mp(e.name || t, n.value, this));
|
|
7812
|
+
else return fm(t).apply(null, arguments);
|
|
7765
7813
|
};
|
|
7766
|
-
|
|
7767
|
-
function
|
|
7768
|
-
return
|
|
7814
|
+
hm.bound = mm;
|
|
7815
|
+
function gm(e, t) {
|
|
7816
|
+
return Np(typeof e == "string" ? e : e.name || "<unnamed action>", typeof e == "function" ? e : t, this, void 0);
|
|
7769
7817
|
}
|
|
7770
|
-
function
|
|
7771
|
-
|
|
7818
|
+
function _m(e, t, n) {
|
|
7819
|
+
yf(e, t, Mp(t, n.bind(e)));
|
|
7772
7820
|
}
|
|
7773
|
-
function
|
|
7774
|
-
t === void 0 && (t =
|
|
7821
|
+
function vm(e, t) {
|
|
7822
|
+
t === void 0 && (t = df);
|
|
7775
7823
|
var n = t && t.name || e.name || "Autorun@" + G(), r = !t.scheduler && !t.delay, i;
|
|
7776
|
-
if (r) i = new
|
|
7824
|
+
if (r) i = new rm(n, function() {
|
|
7777
7825
|
this.track(s);
|
|
7778
7826
|
}, t.onError, t.requiresObservable);
|
|
7779
7827
|
else {
|
|
7780
|
-
var a =
|
|
7781
|
-
i = new
|
|
7828
|
+
var a = bm(t), o = !1;
|
|
7829
|
+
i = new rm(n, function() {
|
|
7782
7830
|
o || (o = !0, a(function() {
|
|
7783
7831
|
o = !1, i.isDisposed || i.track(s);
|
|
7784
7832
|
}));
|
|
@@ -7789,17 +7837,17 @@ function dm(e, t) {
|
|
|
7789
7837
|
}
|
|
7790
7838
|
return i.schedule(), i.getDisposer();
|
|
7791
7839
|
}
|
|
7792
|
-
var
|
|
7840
|
+
var ym = function(e) {
|
|
7793
7841
|
return e();
|
|
7794
7842
|
};
|
|
7795
|
-
function
|
|
7843
|
+
function bm(e) {
|
|
7796
7844
|
return e.scheduler ? e.scheduler : e.delay ? function(t) {
|
|
7797
7845
|
return setTimeout(t, e.delay);
|
|
7798
|
-
} :
|
|
7846
|
+
} : ym;
|
|
7799
7847
|
}
|
|
7800
|
-
function
|
|
7801
|
-
n === void 0 && (n =
|
|
7802
|
-
var r = n.name || "Reaction@" + G(), i =
|
|
7848
|
+
function xm(e, t, n) {
|
|
7849
|
+
n === void 0 && (n = df);
|
|
7850
|
+
var r = n.name || "Reaction@" + G(), i = hm(r, n.onError ? Sm(n.onError, t) : t), a = !n.scheduler && !n.delay, o = bm(n), s = !0, c = !1, l, u = n.compareStructural ? If.structural : n.equals || If.default, d = new rm(r, function() {
|
|
7803
7851
|
s || a ? f() : c || (c = !0, o(f));
|
|
7804
7852
|
}, n.onError, n.requiresObservable);
|
|
7805
7853
|
function f() {
|
|
@@ -7813,7 +7861,7 @@ function mm(e, t, n) {
|
|
|
7813
7861
|
}
|
|
7814
7862
|
return d.schedule(), d.getDisposer();
|
|
7815
7863
|
}
|
|
7816
|
-
function
|
|
7864
|
+
function Sm(e, t) {
|
|
7817
7865
|
return function() {
|
|
7818
7866
|
try {
|
|
7819
7867
|
return t.apply(this, arguments);
|
|
@@ -7822,22 +7870,22 @@ function hm(e, t) {
|
|
|
7822
7870
|
}
|
|
7823
7871
|
};
|
|
7824
7872
|
}
|
|
7825
|
-
function
|
|
7826
|
-
return
|
|
7873
|
+
function Cm(e, t, n) {
|
|
7874
|
+
return Tm("onBecomeObserved", e, t, n);
|
|
7827
7875
|
}
|
|
7828
|
-
function
|
|
7829
|
-
return
|
|
7876
|
+
function wm(e, t, n) {
|
|
7877
|
+
return Tm("onBecomeUnobserved", e, t, n);
|
|
7830
7878
|
}
|
|
7831
|
-
function
|
|
7832
|
-
var i = typeof r == "function" ?
|
|
7879
|
+
function Tm(e, t, n, r) {
|
|
7880
|
+
var i = typeof r == "function" ? Dh(t, n) : Dh(t), a = typeof r == "function" ? r : n, o = e + "Listeners";
|
|
7833
7881
|
return i[o] ? i[o].add(a) : i[o] = /* @__PURE__ */ new Set([a]), typeof i[e] == "function" ? function() {
|
|
7834
7882
|
var e = i[o];
|
|
7835
7883
|
e && (e.delete(a), e.size === 0 && delete i[o]);
|
|
7836
7884
|
} : K(!1);
|
|
7837
7885
|
}
|
|
7838
|
-
function
|
|
7886
|
+
function Em(e) {
|
|
7839
7887
|
var t = e.enforceActions, n = e.computedRequiresReaction, r = e.computedConfigurable, i = e.disableErrorBoundaries, a = e.reactionScheduler, o = e.reactionRequiresObservable, s = e.observableRequiresReaction;
|
|
7840
|
-
if (e.isolateGlobalState === !0 &&
|
|
7888
|
+
if (e.isolateGlobalState === !0 && qp(), t !== void 0) {
|
|
7841
7889
|
var c = void 0;
|
|
7842
7890
|
switch (t) {
|
|
7843
7891
|
case !0:
|
|
@@ -7856,25 +7904,25 @@ function ym(e) {
|
|
|
7856
7904
|
}
|
|
7857
7905
|
X.enforceActions = c, X.allowStateChanges = !(c === !0 || c === "strict");
|
|
7858
7906
|
}
|
|
7859
|
-
n !== void 0 && (X.computedRequiresReaction = !!n), o !== void 0 && (X.reactionRequiresObservable = !!o), s !== void 0 && (X.observableRequiresReaction = !!s, X.allowStateReads = !X.observableRequiresReaction), r !== void 0 && (X.computedConfigurable = !!r), i !== void 0 && (i === !0 && console.warn("WARNING: Debug feature only. MobX will NOT recover from errors when `disableErrorBoundaries` is enabled."), X.disableErrorBoundaries = !!i), a &&
|
|
7907
|
+
n !== void 0 && (X.computedRequiresReaction = !!n), o !== void 0 && (X.reactionRequiresObservable = !!o), s !== void 0 && (X.observableRequiresReaction = !!s, X.allowStateReads = !X.observableRequiresReaction), r !== void 0 && (X.computedConfigurable = !!r), i !== void 0 && (i === !0 && console.warn("WARNING: Debug feature only. MobX will NOT recover from errors when `disableErrorBoundaries` is enabled."), X.disableErrorBoundaries = !!i), a && lm(a);
|
|
7860
7908
|
}
|
|
7861
|
-
function
|
|
7862
|
-
r =
|
|
7863
|
-
var i =
|
|
7864
|
-
return
|
|
7909
|
+
function Dm(e, t, n, r) {
|
|
7910
|
+
r = rp(r);
|
|
7911
|
+
var i = Om(r);
|
|
7912
|
+
return Jf(e), yh(e, r.name, i.enhancer), t && km(e, t, n, i), e;
|
|
7865
7913
|
}
|
|
7866
|
-
function
|
|
7867
|
-
return e.defaultDecorator || (e.deep === !1 ?
|
|
7914
|
+
function Om(e) {
|
|
7915
|
+
return e.defaultDecorator || (e.deep === !1 ? op : ip);
|
|
7868
7916
|
}
|
|
7869
|
-
function
|
|
7917
|
+
function km(e, t, n, r) {
|
|
7870
7918
|
var i, a;
|
|
7871
7919
|
if (0) var o, s, c, l;
|
|
7872
7920
|
Z();
|
|
7873
7921
|
try {
|
|
7874
|
-
var o =
|
|
7922
|
+
var o = Of(t);
|
|
7875
7923
|
try {
|
|
7876
|
-
for (var u =
|
|
7877
|
-
var l = d.value, f = Object.getOwnPropertyDescriptor(t, l), p = (n && l in n ? n[l] : f.get ?
|
|
7924
|
+
for (var u = Bf(o), d = u.next(); !d.done; d = u.next()) {
|
|
7925
|
+
var l = d.value, f = Object.getOwnPropertyDescriptor(t, l), p = (n && l in n ? n[l] : f.get ? fp : r)(e, l, f, !0);
|
|
7878
7926
|
p && Object.defineProperty(e, l, p);
|
|
7879
7927
|
}
|
|
7880
7928
|
} catch (e) {
|
|
@@ -7890,116 +7938,116 @@ function Sm(e, t, n, r) {
|
|
|
7890
7938
|
Q();
|
|
7891
7939
|
}
|
|
7892
7940
|
}
|
|
7893
|
-
function
|
|
7894
|
-
return
|
|
7941
|
+
function Am(e, t) {
|
|
7942
|
+
return jm(Dh(e, t));
|
|
7895
7943
|
}
|
|
7896
|
-
function
|
|
7944
|
+
function jm(e) {
|
|
7897
7945
|
var t = { name: e.name };
|
|
7898
|
-
return e.observing && e.observing.length > 0 && (t.dependencies =
|
|
7946
|
+
return e.observing && e.observing.length > 0 && (t.dependencies = hf(e.observing).map(jm)), t;
|
|
7899
7947
|
}
|
|
7900
|
-
function
|
|
7948
|
+
function Mm() {
|
|
7901
7949
|
this.message = "FLOW_CANCELLED";
|
|
7902
7950
|
}
|
|
7903
|
-
|
|
7904
|
-
function
|
|
7905
|
-
return e == null ? !1 : t === void 0 ?
|
|
7951
|
+
Mm.prototype = Object.create(Error.prototype);
|
|
7952
|
+
function Nm(e, t) {
|
|
7953
|
+
return e == null ? !1 : t === void 0 ? Eh(e) || !!e[q] || Af(e) || cm(e) || Vp(e) : Eh(e) ? e[q].values.has(t) : !1;
|
|
7906
7954
|
}
|
|
7907
|
-
function
|
|
7908
|
-
return arguments.length !== 1 && K(!1),
|
|
7955
|
+
function Pm(e) {
|
|
7956
|
+
return arguments.length !== 1 && K(!1), Nm(e);
|
|
7909
7957
|
}
|
|
7910
|
-
function
|
|
7911
|
-
return
|
|
7958
|
+
function Fm(e) {
|
|
7959
|
+
return Eh(e) ? e[q].getKeys() : ph(e) || _h(e) ? Array.from(e.keys()) : lh(e) ? e.map(function(e, t) {
|
|
7912
7960
|
return t;
|
|
7913
7961
|
}) : K(!1);
|
|
7914
7962
|
}
|
|
7915
|
-
function
|
|
7916
|
-
if (arguments.length === 2 && !
|
|
7963
|
+
function Im(e, t, n) {
|
|
7964
|
+
if (arguments.length === 2 && !_h(e)) {
|
|
7917
7965
|
Z();
|
|
7918
7966
|
var r = t;
|
|
7919
7967
|
try {
|
|
7920
|
-
for (var i in r)
|
|
7968
|
+
for (var i in r) Im(e, i, r[i]);
|
|
7921
7969
|
} finally {
|
|
7922
7970
|
Q();
|
|
7923
7971
|
}
|
|
7924
7972
|
return;
|
|
7925
7973
|
}
|
|
7926
|
-
if (
|
|
7974
|
+
if (Eh(e)) {
|
|
7927
7975
|
var a = e[q];
|
|
7928
7976
|
a.values.get(t) ? a.write(t, n) : a.addObservableProp(t, n, a.defaultEnhancer);
|
|
7929
|
-
} else if (
|
|
7930
|
-
else if (
|
|
7931
|
-
else if (
|
|
7977
|
+
} else if (ph(e)) e.set(t, n);
|
|
7978
|
+
else if (_h(e)) e.add(t);
|
|
7979
|
+
else if (lh(e)) typeof t != "number" && (t = parseInt(t, 10)), ff(t >= 0, "Not a valid index: '" + t + "'"), Z(), t >= e.length && (e.length = t + 1), e[t] = n, Q();
|
|
7932
7980
|
else return K(!1);
|
|
7933
7981
|
}
|
|
7934
|
-
var
|
|
7982
|
+
var Lm = {
|
|
7935
7983
|
detectCycles: !0,
|
|
7936
7984
|
exportMapsAsObjects: !0,
|
|
7937
7985
|
recurseEverything: !1
|
|
7938
7986
|
};
|
|
7939
|
-
function
|
|
7987
|
+
function Rm(e, t, n, r) {
|
|
7940
7988
|
return r.detectCycles && e.set(t, n), n;
|
|
7941
7989
|
}
|
|
7942
|
-
function
|
|
7943
|
-
if (!t.recurseEverything && !
|
|
7990
|
+
function zm(e, t, n) {
|
|
7991
|
+
if (!t.recurseEverything && !Pm(e) || typeof e != "object") return e;
|
|
7944
7992
|
if (e === null) return null;
|
|
7945
7993
|
if (e instanceof Date) return e;
|
|
7946
|
-
if (
|
|
7947
|
-
if (
|
|
7948
|
-
if (
|
|
7949
|
-
var r =
|
|
7950
|
-
return
|
|
7994
|
+
if (zp(e)) return zm(e.get(), t, n);
|
|
7995
|
+
if (Pm(e) && Fm(e), t.detectCycles === !0 && e !== null && n.has(e)) return n.get(e);
|
|
7996
|
+
if (lh(e) || Array.isArray(e)) {
|
|
7997
|
+
var r = Rm(n, e, [], t), i = e.map(function(e) {
|
|
7998
|
+
return zm(e, t, n);
|
|
7951
7999
|
});
|
|
7952
8000
|
r.length = i.length;
|
|
7953
8001
|
for (var a = 0, o = i.length; a < o; a++) r[a] = i[a];
|
|
7954
8002
|
return r;
|
|
7955
8003
|
}
|
|
7956
|
-
if (
|
|
7957
|
-
var s =
|
|
8004
|
+
if (_h(e) || Object.getPrototypeOf(e) === Set.prototype) if (t.exportMapsAsObjects === !1) {
|
|
8005
|
+
var s = Rm(n, e, /* @__PURE__ */ new Set(), t);
|
|
7958
8006
|
return e.forEach(function(e) {
|
|
7959
|
-
s.add(
|
|
8007
|
+
s.add(zm(e, t, n));
|
|
7960
8008
|
}), s;
|
|
7961
8009
|
} else {
|
|
7962
|
-
var c =
|
|
8010
|
+
var c = Rm(n, e, [], t);
|
|
7963
8011
|
return e.forEach(function(e) {
|
|
7964
|
-
c.push(
|
|
8012
|
+
c.push(zm(e, t, n));
|
|
7965
8013
|
}), c;
|
|
7966
8014
|
}
|
|
7967
|
-
if (
|
|
7968
|
-
var l =
|
|
8015
|
+
if (ph(e) || Object.getPrototypeOf(e) === Map.prototype) if (t.exportMapsAsObjects === !1) {
|
|
8016
|
+
var l = Rm(n, e, /* @__PURE__ */ new Map(), t);
|
|
7969
8017
|
return e.forEach(function(e, r) {
|
|
7970
|
-
l.set(r,
|
|
8018
|
+
l.set(r, zm(e, t, n));
|
|
7971
8019
|
}), l;
|
|
7972
8020
|
} else {
|
|
7973
|
-
var u =
|
|
8021
|
+
var u = Rm(n, e, {}, t);
|
|
7974
8022
|
return e.forEach(function(e, r) {
|
|
7975
|
-
u[r] =
|
|
8023
|
+
u[r] = zm(e, t, n);
|
|
7976
8024
|
}), u;
|
|
7977
8025
|
}
|
|
7978
|
-
var d =
|
|
7979
|
-
return
|
|
7980
|
-
d[r] =
|
|
8026
|
+
var d = Rm(n, e, {}, t);
|
|
8027
|
+
return Tf(e).forEach(function(r) {
|
|
8028
|
+
d[r] = zm(e[r], t, n);
|
|
7981
8029
|
}), d;
|
|
7982
8030
|
}
|
|
7983
|
-
function
|
|
7984
|
-
typeof t == "boolean" && (t = { detectCycles: t }), t || (t =
|
|
8031
|
+
function Bm(e, t) {
|
|
8032
|
+
typeof t == "boolean" && (t = { detectCycles: t }), t || (t = Lm), t.detectCycles = t.detectCycles === void 0 ? t.recurseEverything === !0 : t.detectCycles === !0;
|
|
7985
8033
|
var n;
|
|
7986
|
-
return t.detectCycles && (n = /* @__PURE__ */ new Map()),
|
|
8034
|
+
return t.detectCycles && (n = /* @__PURE__ */ new Map()), zm(e, t, n);
|
|
7987
8035
|
}
|
|
7988
|
-
function
|
|
8036
|
+
function Vm() {
|
|
7989
8037
|
var e = [...arguments], t = !1;
|
|
7990
8038
|
typeof e[e.length - 1] == "boolean" && (t = e.pop());
|
|
7991
|
-
var n =
|
|
8039
|
+
var n = Hm(e);
|
|
7992
8040
|
if (!n) return K(!1);
|
|
7993
|
-
n.isTracing ===
|
|
8041
|
+
n.isTracing === hp.NONE && console.log("[mobx.trace] '" + n.name + "' tracing enabled"), n.isTracing = t ? hp.BREAK : hp.LOG;
|
|
7994
8042
|
}
|
|
7995
|
-
function
|
|
8043
|
+
function Hm(e) {
|
|
7996
8044
|
switch (e.length) {
|
|
7997
8045
|
case 0: return X.trackingDerivation;
|
|
7998
|
-
case 1: return
|
|
7999
|
-
case 2: return
|
|
8046
|
+
case 1: return Dh(e[0]);
|
|
8047
|
+
case 2: return Dh(e[0], e[1]);
|
|
8000
8048
|
}
|
|
8001
8049
|
}
|
|
8002
|
-
function
|
|
8050
|
+
function Um(e, t) {
|
|
8003
8051
|
t === void 0 && (t = void 0), Z();
|
|
8004
8052
|
try {
|
|
8005
8053
|
return e.apply(t);
|
|
@@ -8007,10 +8055,10 @@ function Im(e, t) {
|
|
|
8007
8055
|
Q();
|
|
8008
8056
|
}
|
|
8009
8057
|
}
|
|
8010
|
-
function
|
|
8011
|
-
return arguments.length === 1 || t && typeof t == "object" ?
|
|
8058
|
+
function Wm(e, t, n) {
|
|
8059
|
+
return arguments.length === 1 || t && typeof t == "object" ? Km(e, t) : Gm(e, t, n || {});
|
|
8012
8060
|
}
|
|
8013
|
-
function
|
|
8061
|
+
function Gm(e, t, n) {
|
|
8014
8062
|
var r;
|
|
8015
8063
|
typeof n.timeout == "number" && (r = setTimeout(function() {
|
|
8016
8064
|
if (!a[q].isDisposed) {
|
|
@@ -8020,120 +8068,120 @@ function Rm(e, t, n) {
|
|
|
8020
8068
|
else throw e;
|
|
8021
8069
|
}
|
|
8022
8070
|
}, n.timeout)), n.name = n.name || "When@" + G();
|
|
8023
|
-
var i =
|
|
8071
|
+
var i = Mp(n.name + "-effect", t), a = vm(function(t) {
|
|
8024
8072
|
e() && (t.dispose(), r && clearTimeout(r), i());
|
|
8025
8073
|
}, n);
|
|
8026
8074
|
return a;
|
|
8027
8075
|
}
|
|
8028
|
-
function
|
|
8076
|
+
function Km(e, t) {
|
|
8029
8077
|
var n, r = new Promise(function(r, i) {
|
|
8030
|
-
var a =
|
|
8078
|
+
var a = Gm(e, r, zf(zf({}, t), { onError: i }));
|
|
8031
8079
|
n = function() {
|
|
8032
8080
|
a(), i("WHEN_CANCELLED");
|
|
8033
8081
|
};
|
|
8034
8082
|
});
|
|
8035
8083
|
return r.cancel = n, r;
|
|
8036
8084
|
}
|
|
8037
|
-
function
|
|
8085
|
+
function qm(e) {
|
|
8038
8086
|
return e[q];
|
|
8039
8087
|
}
|
|
8040
|
-
function
|
|
8088
|
+
function Jm(e) {
|
|
8041
8089
|
return typeof e == "string" || typeof e == "number" || typeof e == "symbol";
|
|
8042
8090
|
}
|
|
8043
|
-
var
|
|
8091
|
+
var Ym = {
|
|
8044
8092
|
has: function(e, t) {
|
|
8045
|
-
if (t === q || t === "constructor" || t ===
|
|
8046
|
-
var n =
|
|
8047
|
-
return
|
|
8093
|
+
if (t === q || t === "constructor" || t === Uf) return !0;
|
|
8094
|
+
var n = qm(e);
|
|
8095
|
+
return Jm(t) ? n.has(t) : t in e;
|
|
8048
8096
|
},
|
|
8049
8097
|
get: function(e, t) {
|
|
8050
|
-
if (t === q || t === "constructor" || t ===
|
|
8051
|
-
var n =
|
|
8052
|
-
if (r instanceof
|
|
8098
|
+
if (t === q || t === "constructor" || t === Uf) return e[t];
|
|
8099
|
+
var n = qm(e), r = n.values.get(t);
|
|
8100
|
+
if (r instanceof kf) {
|
|
8053
8101
|
var i = r.get();
|
|
8054
8102
|
return i === void 0 && n.has(t), i;
|
|
8055
8103
|
}
|
|
8056
|
-
return
|
|
8104
|
+
return Jm(t) && n.has(t), e[t];
|
|
8057
8105
|
},
|
|
8058
8106
|
set: function(e, t, n) {
|
|
8059
|
-
return
|
|
8107
|
+
return Jm(t) ? (Im(e, t, n), !0) : !1;
|
|
8060
8108
|
},
|
|
8061
8109
|
deleteProperty: function(e, t) {
|
|
8062
|
-
return
|
|
8110
|
+
return Jm(t) ? (qm(e).remove(t), !0) : !1;
|
|
8063
8111
|
},
|
|
8064
8112
|
ownKeys: function(e) {
|
|
8065
|
-
return
|
|
8113
|
+
return qm(e).keysAtom.reportObserved(), Reflect.ownKeys(e);
|
|
8066
8114
|
},
|
|
8067
8115
|
preventExtensions: function(e) {
|
|
8068
8116
|
return K("Dynamic observable objects cannot be frozen"), !1;
|
|
8069
8117
|
}
|
|
8070
8118
|
};
|
|
8071
|
-
function
|
|
8072
|
-
var t = new Proxy(e,
|
|
8119
|
+
function Xm(e) {
|
|
8120
|
+
var t = new Proxy(e, Ym);
|
|
8073
8121
|
return e[q].proxy = t, t;
|
|
8074
8122
|
}
|
|
8075
|
-
function
|
|
8123
|
+
function Zm(e) {
|
|
8076
8124
|
return e.interceptors !== void 0 && e.interceptors.length > 0;
|
|
8077
8125
|
}
|
|
8078
|
-
function
|
|
8126
|
+
function Qm(e, t) {
|
|
8079
8127
|
var n = e.interceptors || (e.interceptors = []);
|
|
8080
|
-
return n.push(t),
|
|
8128
|
+
return n.push(t), pf(function() {
|
|
8081
8129
|
var e = n.indexOf(t);
|
|
8082
8130
|
e !== -1 && n.splice(e, 1);
|
|
8083
8131
|
});
|
|
8084
8132
|
}
|
|
8085
|
-
function
|
|
8086
|
-
var n =
|
|
8133
|
+
function $m(e, t) {
|
|
8134
|
+
var n = wp();
|
|
8087
8135
|
try {
|
|
8088
|
-
for (var r =
|
|
8136
|
+
for (var r = Hf(e.interceptors || []), i = 0, a = r.length; i < a && (t = r[i](t), ff(!t || t.type, "Intercept handlers should return nothing or a change object"), t); i++);
|
|
8089
8137
|
return t;
|
|
8090
8138
|
} finally {
|
|
8091
|
-
|
|
8139
|
+
Tp(n);
|
|
8092
8140
|
}
|
|
8093
8141
|
}
|
|
8094
|
-
function
|
|
8142
|
+
function eh(e) {
|
|
8095
8143
|
return e.changeListeners !== void 0 && e.changeListeners.length > 0;
|
|
8096
8144
|
}
|
|
8097
|
-
function
|
|
8145
|
+
function th(e, t) {
|
|
8098
8146
|
var n = e.changeListeners || (e.changeListeners = []);
|
|
8099
|
-
return n.push(t),
|
|
8147
|
+
return n.push(t), pf(function() {
|
|
8100
8148
|
var e = n.indexOf(t);
|
|
8101
8149
|
e !== -1 && n.splice(e, 1);
|
|
8102
8150
|
});
|
|
8103
8151
|
}
|
|
8104
|
-
function
|
|
8105
|
-
var n =
|
|
8152
|
+
function nh(e, t) {
|
|
8153
|
+
var n = wp(), r = e.changeListeners;
|
|
8106
8154
|
if (r) {
|
|
8107
8155
|
r = r.slice();
|
|
8108
8156
|
for (var i = 0, a = r.length; i < a; i++) r[i](t);
|
|
8109
|
-
|
|
8157
|
+
Tp(n);
|
|
8110
8158
|
}
|
|
8111
8159
|
}
|
|
8112
|
-
var
|
|
8160
|
+
var rh = 1e4, ih = {
|
|
8113
8161
|
get: function(e, t) {
|
|
8114
|
-
return t === q ? e[q] : t === "length" ? e[q].getArrayLength() : typeof t == "number" ?
|
|
8162
|
+
return t === q ? e[q] : t === "length" ? e[q].getArrayLength() : typeof t == "number" ? sh.get.call(e, t) : typeof t == "string" && !isNaN(t) ? sh.get.call(e, parseInt(t)) : sh.hasOwnProperty(t) ? sh[t] : e[t];
|
|
8115
8163
|
},
|
|
8116
8164
|
set: function(e, t, n) {
|
|
8117
|
-
return t === "length" && e[q].setArrayLength(n), typeof t == "number" &&
|
|
8165
|
+
return t === "length" && e[q].setArrayLength(n), typeof t == "number" && sh.set.call(e, t, n), typeof t == "symbol" || isNaN(t) ? e[t] = n : sh.set.call(e, parseInt(t), n), !0;
|
|
8118
8166
|
},
|
|
8119
8167
|
preventExtensions: function(e) {
|
|
8120
8168
|
return K("Observable arrays cannot be frozen"), !1;
|
|
8121
8169
|
}
|
|
8122
8170
|
};
|
|
8123
|
-
function
|
|
8171
|
+
function ah(e, t, n, r) {
|
|
8124
8172
|
n === void 0 && (n = "ObservableArray@" + G()), r === void 0 && (r = !1);
|
|
8125
|
-
var i = new
|
|
8126
|
-
|
|
8127
|
-
var a = new Proxy(i.values,
|
|
8173
|
+
var i = new oh(n, t, r);
|
|
8174
|
+
bf(i.values, q, i);
|
|
8175
|
+
var a = new Proxy(i.values, ih);
|
|
8128
8176
|
if (i.proxy = a, e && e.length) {
|
|
8129
|
-
var o =
|
|
8130
|
-
i.spliceWithArray(0, 0, e),
|
|
8177
|
+
var o = Ip(!0);
|
|
8178
|
+
i.spliceWithArray(0, 0, e), Lp(o);
|
|
8131
8179
|
}
|
|
8132
8180
|
return a;
|
|
8133
8181
|
}
|
|
8134
|
-
var
|
|
8182
|
+
var oh = function() {
|
|
8135
8183
|
function e(e, t, n) {
|
|
8136
|
-
this.owned = n, this.values = [], this.proxy = void 0, this.lastKnownLength = 0, this.atom = new
|
|
8184
|
+
this.owned = n, this.values = [], this.proxy = void 0, this.lastKnownLength = 0, this.atom = new kf(e || "ObservableArray@" + G()), this.enhancer = function(n, r) {
|
|
8137
8185
|
return t(n, r, e + "[..]");
|
|
8138
8186
|
};
|
|
8139
8187
|
}
|
|
@@ -8142,7 +8190,7 @@ var $m = function() {
|
|
|
8142
8190
|
}, e.prototype.dehanceValues = function(e) {
|
|
8143
8191
|
return this.dehancer !== void 0 && e.length > 0 ? e.map(this.dehancer) : e;
|
|
8144
8192
|
}, e.prototype.intercept = function(e) {
|
|
8145
|
-
return
|
|
8193
|
+
return Qm(this, e);
|
|
8146
8194
|
}, e.prototype.observe = function(e, t) {
|
|
8147
8195
|
return t === void 0 && (t = !1), t && e({
|
|
8148
8196
|
object: this.proxy,
|
|
@@ -8152,7 +8200,7 @@ var $m = function() {
|
|
|
8152
8200
|
addedCount: this.values.length,
|
|
8153
8201
|
removed: [],
|
|
8154
8202
|
removedCount: 0
|
|
8155
|
-
}),
|
|
8203
|
+
}), th(this, e);
|
|
8156
8204
|
}, e.prototype.getArrayLength = function() {
|
|
8157
8205
|
return this.atom.reportObserved(), this.values.length;
|
|
8158
8206
|
}, e.prototype.setArrayLength = function(e) {
|
|
@@ -8167,17 +8215,17 @@ var $m = function() {
|
|
|
8167
8215
|
this.lastKnownLength += t;
|
|
8168
8216
|
}, e.prototype.spliceWithArray = function(e, t, n) {
|
|
8169
8217
|
var r = this;
|
|
8170
|
-
|
|
8218
|
+
yp(this.atom);
|
|
8171
8219
|
var i = this.values.length;
|
|
8172
|
-
if (e === void 0 ? e = 0 : e > i ? e = i : e < 0 && (e = Math.max(0, i + e)), t = arguments.length === 1 ? i - e : t == null ? 0 : Math.max(0, Math.min(t, i - e)), n === void 0 && (n =
|
|
8173
|
-
var a =
|
|
8220
|
+
if (e === void 0 ? e = 0 : e > i ? e = i : e < 0 && (e = Math.max(0, i + e)), t = arguments.length === 1 ? i - e : t == null ? 0 : Math.max(0, Math.min(t, i - e)), n === void 0 && (n = uf), Zm(this)) {
|
|
8221
|
+
var a = $m(this, {
|
|
8174
8222
|
object: this.proxy,
|
|
8175
8223
|
type: "splice",
|
|
8176
8224
|
index: e,
|
|
8177
8225
|
removedCount: t,
|
|
8178
8226
|
added: n
|
|
8179
8227
|
});
|
|
8180
|
-
if (!a) return
|
|
8228
|
+
if (!a) return uf;
|
|
8181
8229
|
t = a.removedCount, n = a.added;
|
|
8182
8230
|
}
|
|
8183
8231
|
n = n.length === 0 ? n : n.map(function(e) {
|
|
@@ -8187,20 +8235,20 @@ var $m = function() {
|
|
|
8187
8235
|
return (t !== 0 || n.length !== 0) && this.notifyArraySplice(e, n, o), this.dehanceValues(o);
|
|
8188
8236
|
}, e.prototype.spliceItemsIntoValues = function(e, t, n) {
|
|
8189
8237
|
var r;
|
|
8190
|
-
if (n.length <
|
|
8238
|
+
if (n.length < rh) return (r = this.values).splice.apply(r, Hf([e, t], n));
|
|
8191
8239
|
var i = this.values.slice(e, e + t);
|
|
8192
8240
|
return this.values = this.values.slice(0, e).concat(n, this.values.slice(e + t)), i;
|
|
8193
8241
|
}, e.prototype.notifyArrayChildUpdate = function(e, t, n) {
|
|
8194
|
-
var r = !this.owned && $(), i =
|
|
8242
|
+
var r = !this.owned && $(), i = eh(this), a = i || r ? {
|
|
8195
8243
|
object: this.proxy,
|
|
8196
8244
|
type: "update",
|
|
8197
8245
|
index: e,
|
|
8198
8246
|
newValue: t,
|
|
8199
8247
|
oldValue: n
|
|
8200
8248
|
} : null;
|
|
8201
|
-
this.atom.reportChanged(), i &&
|
|
8249
|
+
this.atom.reportChanged(), i && nh(this, a);
|
|
8202
8250
|
}, e.prototype.notifyArraySplice = function(e, t, n) {
|
|
8203
|
-
var r = !this.owned && $(), i =
|
|
8251
|
+
var r = !this.owned && $(), i = eh(this), a = i || r ? {
|
|
8204
8252
|
object: this.proxy,
|
|
8205
8253
|
type: "splice",
|
|
8206
8254
|
index: e,
|
|
@@ -8209,9 +8257,9 @@ var $m = function() {
|
|
|
8209
8257
|
removedCount: n.length,
|
|
8210
8258
|
addedCount: t.length
|
|
8211
8259
|
} : null;
|
|
8212
|
-
this.atom.reportChanged(), i &&
|
|
8260
|
+
this.atom.reportChanged(), i && nh(this, a);
|
|
8213
8261
|
}, e;
|
|
8214
|
-
}(),
|
|
8262
|
+
}(), sh = {
|
|
8215
8263
|
intercept: function(e) {
|
|
8216
8264
|
return this[q].intercept(e);
|
|
8217
8265
|
},
|
|
@@ -8279,10 +8327,10 @@ var $m = function() {
|
|
|
8279
8327
|
set: function(e, t) {
|
|
8280
8328
|
var n = this[q], r = n.values;
|
|
8281
8329
|
if (e < r.length) {
|
|
8282
|
-
|
|
8330
|
+
yp(n.atom);
|
|
8283
8331
|
var i = r[e];
|
|
8284
|
-
if (
|
|
8285
|
-
var a =
|
|
8332
|
+
if (Zm(n)) {
|
|
8333
|
+
var a = $m(n, {
|
|
8286
8334
|
type: "update",
|
|
8287
8335
|
object: n.proxy,
|
|
8288
8336
|
index: e,
|
|
@@ -8307,7 +8355,7 @@ var $m = function() {
|
|
|
8307
8355
|
"toString",
|
|
8308
8356
|
"toLocaleString"
|
|
8309
8357
|
].forEach(function(e) {
|
|
8310
|
-
typeof Array.prototype[e] == "function" && (
|
|
8358
|
+
typeof Array.prototype[e] == "function" && (sh[e] = function() {
|
|
8311
8359
|
var t = this[q];
|
|
8312
8360
|
t.atom.reportObserved();
|
|
8313
8361
|
var n = t.dehanceValues(t.values);
|
|
@@ -8323,14 +8371,14 @@ var $m = function() {
|
|
|
8323
8371
|
"map",
|
|
8324
8372
|
"some"
|
|
8325
8373
|
].forEach(function(e) {
|
|
8326
|
-
typeof Array.prototype[e] == "function" && (
|
|
8374
|
+
typeof Array.prototype[e] == "function" && (sh[e] = function(t, n) {
|
|
8327
8375
|
var r = this, i = this[q];
|
|
8328
8376
|
return i.atom.reportObserved(), i.dehanceValues(i.values)[e](function(e, i) {
|
|
8329
8377
|
return t.call(n, e, i, r);
|
|
8330
8378
|
}, n);
|
|
8331
8379
|
});
|
|
8332
8380
|
}), ["reduce", "reduceRight"].forEach(function(e) {
|
|
8333
|
-
|
|
8381
|
+
sh[e] = function() {
|
|
8334
8382
|
var t = this, n = this[q];
|
|
8335
8383
|
n.atom.reportObserved();
|
|
8336
8384
|
var r = arguments[0];
|
|
@@ -8339,13 +8387,13 @@ var $m = function() {
|
|
|
8339
8387
|
}, n.values[e].apply(n.values, arguments);
|
|
8340
8388
|
};
|
|
8341
8389
|
});
|
|
8342
|
-
var
|
|
8343
|
-
function
|
|
8344
|
-
return
|
|
8390
|
+
var ch = Sf("ObservableArrayAdministration", oh);
|
|
8391
|
+
function lh(e) {
|
|
8392
|
+
return gf(e) && ch(e[q]);
|
|
8345
8393
|
}
|
|
8346
|
-
var
|
|
8394
|
+
var uh, dh = {}, fh = function() {
|
|
8347
8395
|
function e(e, t, n) {
|
|
8348
|
-
if (t === void 0 && (t =
|
|
8396
|
+
if (t === void 0 && (t = Zf), n === void 0 && (n = "ObservableMap@" + G()), this.enhancer = t, this.name = n, this[uh] = dh, this._keysAtom = jf(this.name + ".keys()"), this[Symbol.toStringTag] = "Map", typeof Map != "function") throw Error("mobx.map requires Map polyfill for the current browser. Check babel-polyfill or core-js/es6/map.js");
|
|
8349
8397
|
this._data = /* @__PURE__ */ new Map(), this._hasMap = /* @__PURE__ */ new Map(), this.merge(e);
|
|
8350
8398
|
}
|
|
8351
8399
|
return e.prototype._has = function(e) {
|
|
@@ -8355,16 +8403,16 @@ var rh, ih = {}, ah = function() {
|
|
|
8355
8403
|
if (!X.trackingDerivation) return this._has(e);
|
|
8356
8404
|
var n = this._hasMap.get(e);
|
|
8357
8405
|
if (!n) {
|
|
8358
|
-
var r = n = new
|
|
8359
|
-
this._hasMap.set(e, r),
|
|
8406
|
+
var r = n = new Rp(this._has(e), $f, this.name + "." + Ef(e) + "?", !1);
|
|
8407
|
+
this._hasMap.set(e, r), wm(r, function() {
|
|
8360
8408
|
return t._hasMap.delete(e);
|
|
8361
8409
|
});
|
|
8362
8410
|
}
|
|
8363
8411
|
return n.get();
|
|
8364
8412
|
}, e.prototype.set = function(e, t) {
|
|
8365
8413
|
var n = this._has(e);
|
|
8366
|
-
if (
|
|
8367
|
-
var r =
|
|
8414
|
+
if (Zm(this)) {
|
|
8415
|
+
var r = $m(this, {
|
|
8368
8416
|
type: n ? "update" : "add",
|
|
8369
8417
|
object: this,
|
|
8370
8418
|
newValue: t,
|
|
@@ -8376,8 +8424,8 @@ var rh, ih = {}, ah = function() {
|
|
|
8376
8424
|
return n ? this._updateValue(e, t) : this._addValue(e, t), this;
|
|
8377
8425
|
}, e.prototype.delete = function(e) {
|
|
8378
8426
|
var t = this;
|
|
8379
|
-
if (
|
|
8380
|
-
var n =
|
|
8427
|
+
if (yp(this._keysAtom), Zm(this)) {
|
|
8428
|
+
var n = $m(this, {
|
|
8381
8429
|
type: "delete",
|
|
8382
8430
|
object: this,
|
|
8383
8431
|
name: e
|
|
@@ -8385,15 +8433,15 @@ var rh, ih = {}, ah = function() {
|
|
|
8385
8433
|
if (!n) return !1;
|
|
8386
8434
|
}
|
|
8387
8435
|
if (this._has(e)) {
|
|
8388
|
-
var r = $(), i =
|
|
8436
|
+
var r = $(), i = eh(this), n = i || r ? {
|
|
8389
8437
|
type: "delete",
|
|
8390
8438
|
object: this,
|
|
8391
8439
|
oldValue: this._data.get(e).value,
|
|
8392
8440
|
name: e
|
|
8393
8441
|
} : null;
|
|
8394
|
-
return
|
|
8442
|
+
return Um(function() {
|
|
8395
8443
|
t._keysAtom.reportChanged(), t._updateHasMapEntry(e, !1), t._data.get(e).setNewValue(void 0), t._data.delete(e);
|
|
8396
|
-
}), i &&
|
|
8444
|
+
}), i && nh(this, n), !0;
|
|
8397
8445
|
}
|
|
8398
8446
|
return !1;
|
|
8399
8447
|
}, e.prototype._updateHasMapEntry = function(e, t) {
|
|
@@ -8402,28 +8450,28 @@ var rh, ih = {}, ah = function() {
|
|
|
8402
8450
|
}, e.prototype._updateValue = function(e, t) {
|
|
8403
8451
|
var n = this._data.get(e);
|
|
8404
8452
|
if (t = n.prepareNewValue(t), t !== X.UNCHANGED) {
|
|
8405
|
-
var r = $(), i =
|
|
8453
|
+
var r = $(), i = eh(this), a = i || r ? {
|
|
8406
8454
|
type: "update",
|
|
8407
8455
|
object: this,
|
|
8408
8456
|
oldValue: n.value,
|
|
8409
8457
|
name: e,
|
|
8410
8458
|
newValue: t
|
|
8411
8459
|
} : null;
|
|
8412
|
-
n.setNewValue(t), i &&
|
|
8460
|
+
n.setNewValue(t), i && nh(this, a);
|
|
8413
8461
|
}
|
|
8414
8462
|
}, e.prototype._addValue = function(e, t) {
|
|
8415
8463
|
var n = this;
|
|
8416
|
-
|
|
8417
|
-
var r = new
|
|
8464
|
+
yp(this._keysAtom), Um(function() {
|
|
8465
|
+
var r = new Rp(t, n.enhancer, n.name + "." + Ef(e), !1);
|
|
8418
8466
|
n._data.set(e, r), t = r.value, n._updateHasMapEntry(e, !0), n._keysAtom.reportChanged();
|
|
8419
8467
|
});
|
|
8420
|
-
var r = $(), i =
|
|
8468
|
+
var r = $(), i = eh(this), a = i || r ? {
|
|
8421
8469
|
type: "add",
|
|
8422
8470
|
object: this,
|
|
8423
8471
|
name: e,
|
|
8424
8472
|
newValue: t
|
|
8425
8473
|
} : null;
|
|
8426
|
-
i &&
|
|
8474
|
+
i && nh(this, a);
|
|
8427
8475
|
}, e.prototype.get = function(e) {
|
|
8428
8476
|
return this.has(e) ? this.dehanceValue(this._data.get(e).get()) : this.dehanceValue(void 0);
|
|
8429
8477
|
}, e.prototype.dehanceValue = function(e) {
|
|
@@ -8432,7 +8480,7 @@ var rh, ih = {}, ah = function() {
|
|
|
8432
8480
|
return this._keysAtom.reportObserved(), this._data.keys();
|
|
8433
8481
|
}, e.prototype.values = function() {
|
|
8434
8482
|
var e = this, t = this.keys();
|
|
8435
|
-
return
|
|
8483
|
+
return Fh({ next: function() {
|
|
8436
8484
|
var n = t.next(), r = n.done, i = n.value;
|
|
8437
8485
|
return {
|
|
8438
8486
|
done: r,
|
|
@@ -8441,20 +8489,20 @@ var rh, ih = {}, ah = function() {
|
|
|
8441
8489
|
} });
|
|
8442
8490
|
}, e.prototype.entries = function() {
|
|
8443
8491
|
var e = this, t = this.keys();
|
|
8444
|
-
return
|
|
8492
|
+
return Fh({ next: function() {
|
|
8445
8493
|
var n = t.next(), r = n.done, i = n.value;
|
|
8446
8494
|
return {
|
|
8447
8495
|
done: r,
|
|
8448
8496
|
value: r ? void 0 : [i, e.get(i)]
|
|
8449
8497
|
};
|
|
8450
8498
|
} });
|
|
8451
|
-
}, e.prototype[
|
|
8499
|
+
}, e.prototype[uh = q, Symbol.iterator] = function() {
|
|
8452
8500
|
return this.entries();
|
|
8453
8501
|
}, e.prototype.forEach = function(e, t) {
|
|
8454
8502
|
var n, r;
|
|
8455
8503
|
try {
|
|
8456
|
-
for (var i =
|
|
8457
|
-
var o =
|
|
8504
|
+
for (var i = Bf(this), a = i.next(); !a.done; a = i.next()) {
|
|
8505
|
+
var o = Vf(a.value, 2), s = o[0], c = o[1];
|
|
8458
8506
|
e.call(t, c, s, this);
|
|
8459
8507
|
}
|
|
8460
8508
|
} catch (e) {
|
|
@@ -8468,28 +8516,28 @@ var rh, ih = {}, ah = function() {
|
|
|
8468
8516
|
}
|
|
8469
8517
|
}, e.prototype.merge = function(e) {
|
|
8470
8518
|
var t = this;
|
|
8471
|
-
return
|
|
8472
|
-
var n =
|
|
8519
|
+
return ph(e) && (e = e.toJS()), Um(function() {
|
|
8520
|
+
var n = Ip(!0);
|
|
8473
8521
|
try {
|
|
8474
|
-
|
|
8522
|
+
_f(e) ? Tf(e).forEach(function(n) {
|
|
8475
8523
|
return t.set(n, e[n]);
|
|
8476
8524
|
}) : Array.isArray(e) ? e.forEach(function(e) {
|
|
8477
|
-
var n =
|
|
8525
|
+
var n = Vf(e, 2), r = n[0], i = n[1];
|
|
8478
8526
|
return t.set(r, i);
|
|
8479
|
-
}) :
|
|
8527
|
+
}) : Cf(e) ? (e.constructor !== Map && K("Cannot initialize from classes that inherit from Map: " + e.constructor.name), e.forEach(function(e, n) {
|
|
8480
8528
|
return t.set(n, e);
|
|
8481
8529
|
})) : e != null && K("Cannot initialize map from " + e);
|
|
8482
8530
|
} finally {
|
|
8483
|
-
|
|
8531
|
+
Lp(n);
|
|
8484
8532
|
}
|
|
8485
8533
|
}), this;
|
|
8486
8534
|
}, e.prototype.clear = function() {
|
|
8487
8535
|
var e = this;
|
|
8488
|
-
|
|
8489
|
-
|
|
8536
|
+
Um(function() {
|
|
8537
|
+
Cp(function() {
|
|
8490
8538
|
var t, n;
|
|
8491
8539
|
try {
|
|
8492
|
-
for (var r =
|
|
8540
|
+
for (var r = Bf(e.keys()), i = r.next(); !i.done; i = r.next()) {
|
|
8493
8541
|
var a = i.value;
|
|
8494
8542
|
e.delete(a);
|
|
8495
8543
|
}
|
|
@@ -8506,10 +8554,10 @@ var rh, ih = {}, ah = function() {
|
|
|
8506
8554
|
});
|
|
8507
8555
|
}, e.prototype.replace = function(e) {
|
|
8508
8556
|
var t = this;
|
|
8509
|
-
return
|
|
8510
|
-
var n, r, i, a, o =
|
|
8557
|
+
return Um(function() {
|
|
8558
|
+
var n, r, i, a, o = vf(e), s = /* @__PURE__ */ new Map(), c = !1;
|
|
8511
8559
|
try {
|
|
8512
|
-
for (var l =
|
|
8560
|
+
for (var l = Bf(t._data.keys()), u = l.next(); !u.done; u = l.next()) {
|
|
8513
8561
|
var d = u.value;
|
|
8514
8562
|
if (!o.has(d)) if (t.delete(d)) c = !0;
|
|
8515
8563
|
else {
|
|
@@ -8527,8 +8575,8 @@ var rh, ih = {}, ah = function() {
|
|
|
8527
8575
|
}
|
|
8528
8576
|
}
|
|
8529
8577
|
try {
|
|
8530
|
-
for (var p =
|
|
8531
|
-
var h =
|
|
8578
|
+
for (var p = Bf(o.entries()), m = p.next(); !m.done; m = p.next()) {
|
|
8579
|
+
var h = Vf(m.value, 2), d = h[0], f = h[1], g = t._data.has(d);
|
|
8532
8580
|
if (t.set(d, f), t._data.has(d)) {
|
|
8533
8581
|
var _ = t._data.get(d);
|
|
8534
8582
|
s.set(d, _), g || (c = !0);
|
|
@@ -8562,9 +8610,9 @@ var rh, ih = {}, ah = function() {
|
|
|
8562
8610
|
}), e.prototype.toPOJO = function() {
|
|
8563
8611
|
var e, t, n = {};
|
|
8564
8612
|
try {
|
|
8565
|
-
for (var r =
|
|
8566
|
-
var a =
|
|
8567
|
-
n[typeof o == "symbol" ? o :
|
|
8613
|
+
for (var r = Bf(this), i = r.next(); !i.done; i = r.next()) {
|
|
8614
|
+
var a = Vf(i.value, 2), o = a[0], s = a[1];
|
|
8615
|
+
n[typeof o == "symbol" ? o : Ef(o)] = s;
|
|
8568
8616
|
}
|
|
8569
8617
|
} catch (t) {
|
|
8570
8618
|
e = { error: t };
|
|
@@ -8583,16 +8631,16 @@ var rh, ih = {}, ah = function() {
|
|
|
8583
8631
|
}, e.prototype.toString = function() {
|
|
8584
8632
|
var e = this;
|
|
8585
8633
|
return this.name + "[{ " + Array.from(this.keys()).map(function(t) {
|
|
8586
|
-
return
|
|
8634
|
+
return Ef(t) + ": " + ("" + e.get(t));
|
|
8587
8635
|
}).join(", ") + " }]";
|
|
8588
8636
|
}, e.prototype.observe = function(e, t) {
|
|
8589
|
-
return
|
|
8637
|
+
return th(this, e);
|
|
8590
8638
|
}, e.prototype.intercept = function(e) {
|
|
8591
|
-
return
|
|
8639
|
+
return Qm(this, e);
|
|
8592
8640
|
}, e;
|
|
8593
|
-
}(),
|
|
8641
|
+
}(), ph = Sf("ObservableMap", fh), mh, hh = {}, gh = function() {
|
|
8594
8642
|
function e(e, t, n) {
|
|
8595
|
-
if (t === void 0 && (t =
|
|
8643
|
+
if (t === void 0 && (t = Zf), n === void 0 && (n = "ObservableSet@" + G()), this.name = n, this[mh] = hh, this._data = /* @__PURE__ */ new Set(), this._atom = jf(this.name), this[Symbol.toStringTag] = "Set", typeof Set != "function") throw Error("mobx.set requires Set polyfill for the current browser. Check babel-polyfill or core-js/es6/set.js");
|
|
8596
8644
|
this.enhancer = function(e, r) {
|
|
8597
8645
|
return t(e, r, n);
|
|
8598
8646
|
}, e && this.replace(e);
|
|
@@ -8601,11 +8649,11 @@ var rh, ih = {}, ah = function() {
|
|
|
8601
8649
|
return this.dehancer === void 0 ? e : this.dehancer(e);
|
|
8602
8650
|
}, e.prototype.clear = function() {
|
|
8603
8651
|
var e = this;
|
|
8604
|
-
|
|
8605
|
-
|
|
8652
|
+
Um(function() {
|
|
8653
|
+
Cp(function() {
|
|
8606
8654
|
var t, n;
|
|
8607
8655
|
try {
|
|
8608
|
-
for (var r =
|
|
8656
|
+
for (var r = Bf(e._data.values()), i = r.next(); !i.done; i = r.next()) {
|
|
8609
8657
|
var a = i.value;
|
|
8610
8658
|
e.delete(a);
|
|
8611
8659
|
}
|
|
@@ -8623,7 +8671,7 @@ var rh, ih = {}, ah = function() {
|
|
|
8623
8671
|
}, e.prototype.forEach = function(e, t) {
|
|
8624
8672
|
var n, r;
|
|
8625
8673
|
try {
|
|
8626
|
-
for (var i =
|
|
8674
|
+
for (var i = Bf(this), a = i.next(); !a.done; a = i.next()) {
|
|
8627
8675
|
var o = a.value;
|
|
8628
8676
|
e.call(t, o, o, this);
|
|
8629
8677
|
}
|
|
@@ -8644,8 +8692,8 @@ var rh, ih = {}, ah = function() {
|
|
|
8644
8692
|
configurable: !0
|
|
8645
8693
|
}), e.prototype.add = function(e) {
|
|
8646
8694
|
var t = this;
|
|
8647
|
-
if (
|
|
8648
|
-
var n =
|
|
8695
|
+
if (yp(this._atom), Zm(this)) {
|
|
8696
|
+
var n = $m(this, {
|
|
8649
8697
|
type: "add",
|
|
8650
8698
|
object: this,
|
|
8651
8699
|
newValue: e
|
|
@@ -8653,21 +8701,21 @@ var rh, ih = {}, ah = function() {
|
|
|
8653
8701
|
if (!n) return this;
|
|
8654
8702
|
}
|
|
8655
8703
|
if (!this.has(e)) {
|
|
8656
|
-
|
|
8704
|
+
Um(function() {
|
|
8657
8705
|
t._data.add(t.enhancer(e, void 0)), t._atom.reportChanged();
|
|
8658
8706
|
});
|
|
8659
|
-
var r = $(), i =
|
|
8707
|
+
var r = $(), i = eh(this), n = i || r ? {
|
|
8660
8708
|
type: "add",
|
|
8661
8709
|
object: this,
|
|
8662
8710
|
newValue: e
|
|
8663
8711
|
} : null;
|
|
8664
|
-
i &&
|
|
8712
|
+
i && nh(this, n);
|
|
8665
8713
|
}
|
|
8666
8714
|
return this;
|
|
8667
8715
|
}, e.prototype.delete = function(e) {
|
|
8668
8716
|
var t = this;
|
|
8669
|
-
if (
|
|
8670
|
-
var n =
|
|
8717
|
+
if (Zm(this)) {
|
|
8718
|
+
var n = $m(this, {
|
|
8671
8719
|
type: "delete",
|
|
8672
8720
|
object: this,
|
|
8673
8721
|
oldValue: e
|
|
@@ -8675,21 +8723,21 @@ var rh, ih = {}, ah = function() {
|
|
|
8675
8723
|
if (!n) return !1;
|
|
8676
8724
|
}
|
|
8677
8725
|
if (this.has(e)) {
|
|
8678
|
-
var r = $(), i =
|
|
8726
|
+
var r = $(), i = eh(this), n = i || r ? {
|
|
8679
8727
|
type: "delete",
|
|
8680
8728
|
object: this,
|
|
8681
8729
|
oldValue: e
|
|
8682
8730
|
} : null;
|
|
8683
|
-
return
|
|
8731
|
+
return Um(function() {
|
|
8684
8732
|
t._atom.reportChanged(), t._data.delete(e);
|
|
8685
|
-
}), i &&
|
|
8733
|
+
}), i && nh(this, n), !0;
|
|
8686
8734
|
}
|
|
8687
8735
|
return !1;
|
|
8688
8736
|
}, e.prototype.has = function(e) {
|
|
8689
8737
|
return this._atom.reportObserved(), this._data.has(this.dehanceValue(e));
|
|
8690
8738
|
}, e.prototype.entries = function() {
|
|
8691
8739
|
var e = 0, t = Array.from(this.keys()), n = Array.from(this.values());
|
|
8692
|
-
return
|
|
8740
|
+
return Fh({ next: function() {
|
|
8693
8741
|
var r = e;
|
|
8694
8742
|
return e += 1, r < n.length ? {
|
|
8695
8743
|
value: [t[r], n[r]],
|
|
@@ -8701,7 +8749,7 @@ var rh, ih = {}, ah = function() {
|
|
|
8701
8749
|
}, e.prototype.values = function() {
|
|
8702
8750
|
this._atom.reportObserved();
|
|
8703
8751
|
var e = this, t = 0, n = Array.from(this._data.values());
|
|
8704
|
-
return
|
|
8752
|
+
return Fh({ next: function() {
|
|
8705
8753
|
return t < n.length ? {
|
|
8706
8754
|
value: e.dehanceValue(n[t++]),
|
|
8707
8755
|
done: !1
|
|
@@ -8709,41 +8757,41 @@ var rh, ih = {}, ah = function() {
|
|
|
8709
8757
|
} });
|
|
8710
8758
|
}, e.prototype.replace = function(e) {
|
|
8711
8759
|
var t = this;
|
|
8712
|
-
return
|
|
8713
|
-
var n =
|
|
8760
|
+
return _h(e) && (e = e.toJS()), Um(function() {
|
|
8761
|
+
var n = Ip(!0);
|
|
8714
8762
|
try {
|
|
8715
|
-
Array.isArray(e) ||
|
|
8763
|
+
Array.isArray(e) || wf(e) ? (t.clear(), e.forEach(function(e) {
|
|
8716
8764
|
return t.add(e);
|
|
8717
8765
|
})) : e != null && K("Cannot initialize set from " + e);
|
|
8718
8766
|
} finally {
|
|
8719
|
-
|
|
8767
|
+
Lp(n);
|
|
8720
8768
|
}
|
|
8721
8769
|
}), this;
|
|
8722
8770
|
}, e.prototype.observe = function(e, t) {
|
|
8723
|
-
return
|
|
8771
|
+
return th(this, e);
|
|
8724
8772
|
}, e.prototype.intercept = function(e) {
|
|
8725
|
-
return
|
|
8773
|
+
return Qm(this, e);
|
|
8726
8774
|
}, e.prototype.toJS = function() {
|
|
8727
8775
|
return new Set(this);
|
|
8728
8776
|
}, e.prototype.toString = function() {
|
|
8729
8777
|
return this.name + "[ " + Array.from(this).join(", ") + " ]";
|
|
8730
|
-
}, e.prototype[
|
|
8778
|
+
}, e.prototype[mh = q, Symbol.iterator] = function() {
|
|
8731
8779
|
return this.values();
|
|
8732
8780
|
}, e;
|
|
8733
|
-
}(),
|
|
8781
|
+
}(), _h = Sf("ObservableSet", gh), vh = function() {
|
|
8734
8782
|
function e(e, t, n, r) {
|
|
8735
|
-
t === void 0 && (t = /* @__PURE__ */ new Map()), this.target = e, this.values = t, this.name = n, this.defaultEnhancer = r, this.keysAtom = new
|
|
8783
|
+
t === void 0 && (t = /* @__PURE__ */ new Map()), this.target = e, this.values = t, this.name = n, this.defaultEnhancer = r, this.keysAtom = new kf(n + ".keys");
|
|
8736
8784
|
}
|
|
8737
8785
|
return e.prototype.read = function(e) {
|
|
8738
8786
|
return this.values.get(e).get();
|
|
8739
8787
|
}, e.prototype.write = function(e, t) {
|
|
8740
8788
|
var n = this.target, r = this.values.get(e);
|
|
8741
|
-
if (r instanceof
|
|
8789
|
+
if (r instanceof Bp) {
|
|
8742
8790
|
r.set(t);
|
|
8743
8791
|
return;
|
|
8744
8792
|
}
|
|
8745
|
-
if (
|
|
8746
|
-
var i =
|
|
8793
|
+
if (Zm(this)) {
|
|
8794
|
+
var i = $m(this, {
|
|
8747
8795
|
type: "update",
|
|
8748
8796
|
object: this.proxy || n,
|
|
8749
8797
|
name: e,
|
|
@@ -8753,23 +8801,23 @@ var rh, ih = {}, ah = function() {
|
|
|
8753
8801
|
t = i.newValue;
|
|
8754
8802
|
}
|
|
8755
8803
|
if (t = r.prepareNewValue(t), t !== X.UNCHANGED) {
|
|
8756
|
-
var a =
|
|
8804
|
+
var a = eh(this), o = $(), i = a || o ? {
|
|
8757
8805
|
type: "update",
|
|
8758
8806
|
object: this.proxy || n,
|
|
8759
8807
|
oldValue: r.value,
|
|
8760
8808
|
name: e,
|
|
8761
8809
|
newValue: t
|
|
8762
8810
|
} : null;
|
|
8763
|
-
r.setNewValue(t), a &&
|
|
8811
|
+
r.setNewValue(t), a && nh(this, i);
|
|
8764
8812
|
}
|
|
8765
8813
|
}, e.prototype.has = function(e) {
|
|
8766
8814
|
var t = this.pendingKeys || (this.pendingKeys = /* @__PURE__ */ new Map()), n = t.get(e);
|
|
8767
|
-
return n ? n.get() : (n = new
|
|
8815
|
+
return n ? n.get() : (n = new Rp(!!this.values.get(e), $f, this.name + "." + Ef(e) + "?", !1), t.set(e, n), n.get());
|
|
8768
8816
|
}, e.prototype.addObservableProp = function(e, t, n) {
|
|
8769
8817
|
n === void 0 && (n = this.defaultEnhancer);
|
|
8770
8818
|
var r = this.target;
|
|
8771
|
-
if (
|
|
8772
|
-
var i =
|
|
8819
|
+
if (Zm(this)) {
|
|
8820
|
+
var i = $m(this, {
|
|
8773
8821
|
object: this.proxy || r,
|
|
8774
8822
|
name: e,
|
|
8775
8823
|
type: "add",
|
|
@@ -8778,16 +8826,16 @@ var rh, ih = {}, ah = function() {
|
|
|
8778
8826
|
if (!i) return;
|
|
8779
8827
|
t = i.newValue;
|
|
8780
8828
|
}
|
|
8781
|
-
var a = new
|
|
8782
|
-
this.values.set(e, a), t = a.value, Object.defineProperty(r, e,
|
|
8829
|
+
var a = new Rp(t, n, this.name + "." + Ef(e), !1);
|
|
8830
|
+
this.values.set(e, a), t = a.value, Object.defineProperty(r, e, Sh(e)), this.notifyPropertyAddition(e, t);
|
|
8783
8831
|
}, e.prototype.addComputedProp = function(e, t, n) {
|
|
8784
8832
|
var r = this.target;
|
|
8785
|
-
n.name = n.name || this.name + "." +
|
|
8833
|
+
n.name = n.name || this.name + "." + Ef(t), this.values.set(t, new Bp(n)), (e === r || xf(e, t)) && Object.defineProperty(e, t, wh(t));
|
|
8786
8834
|
}, e.prototype.remove = function(e) {
|
|
8787
8835
|
if (this.values.has(e)) {
|
|
8788
8836
|
var t = this.target;
|
|
8789
|
-
if (
|
|
8790
|
-
var n =
|
|
8837
|
+
if (Zm(this)) {
|
|
8838
|
+
var n = $m(this, {
|
|
8791
8839
|
object: this.proxy || t,
|
|
8792
8840
|
name: e,
|
|
8793
8841
|
type: "remove"
|
|
@@ -8796,7 +8844,7 @@ var rh, ih = {}, ah = function() {
|
|
|
8796
8844
|
}
|
|
8797
8845
|
try {
|
|
8798
8846
|
Z();
|
|
8799
|
-
var r =
|
|
8847
|
+
var r = eh(this), i = $(), a = this.values.get(e), o = a && a.get();
|
|
8800
8848
|
if (a && a.set(void 0), this.keysAtom.reportChanged(), this.values.delete(e), this.pendingKeys) {
|
|
8801
8849
|
var s = this.pendingKeys.get(e);
|
|
8802
8850
|
s && s.set(!1);
|
|
@@ -8808,7 +8856,7 @@ var rh, ih = {}, ah = function() {
|
|
|
8808
8856
|
oldValue: o,
|
|
8809
8857
|
name: e
|
|
8810
8858
|
} : null;
|
|
8811
|
-
r &&
|
|
8859
|
+
r && nh(this, n);
|
|
8812
8860
|
} finally {
|
|
8813
8861
|
Q();
|
|
8814
8862
|
}
|
|
@@ -8816,17 +8864,17 @@ var rh, ih = {}, ah = function() {
|
|
|
8816
8864
|
}, e.prototype.illegalAccess = function(e, t) {
|
|
8817
8865
|
console.warn("Property '" + t + "' of '" + e + "' was accessed through the prototype chain. Use 'decorate' instead to declare the prop or access it statically through it's owner");
|
|
8818
8866
|
}, e.prototype.observe = function(e, t) {
|
|
8819
|
-
return
|
|
8867
|
+
return th(this, e);
|
|
8820
8868
|
}, e.prototype.intercept = function(e) {
|
|
8821
|
-
return
|
|
8869
|
+
return Qm(this, e);
|
|
8822
8870
|
}, e.prototype.notifyPropertyAddition = function(e, t) {
|
|
8823
|
-
var n =
|
|
8871
|
+
var n = eh(this), r = $(), i = n || r ? {
|
|
8824
8872
|
type: "add",
|
|
8825
8873
|
object: this.proxy || this.target,
|
|
8826
8874
|
name: e,
|
|
8827
8875
|
newValue: t
|
|
8828
8876
|
} : null;
|
|
8829
|
-
if (n &&
|
|
8877
|
+
if (n && nh(this, i), this.pendingKeys) {
|
|
8830
8878
|
var a = this.pendingKeys.get(e);
|
|
8831
8879
|
a && a.set(!0);
|
|
8832
8880
|
}
|
|
@@ -8836,9 +8884,9 @@ var rh, ih = {}, ah = function() {
|
|
|
8836
8884
|
this.keysAtom.reportObserved();
|
|
8837
8885
|
var n = [];
|
|
8838
8886
|
try {
|
|
8839
|
-
for (var r =
|
|
8840
|
-
var a =
|
|
8841
|
-
a[1] instanceof
|
|
8887
|
+
for (var r = Bf(this.values), i = r.next(); !i.done; i = r.next()) {
|
|
8888
|
+
var a = Vf(i.value, 2), o = a[0];
|
|
8889
|
+
a[1] instanceof Rp && n.push(o);
|
|
8842
8890
|
}
|
|
8843
8891
|
} catch (t) {
|
|
8844
8892
|
e = { error: t };
|
|
@@ -8852,15 +8900,15 @@ var rh, ih = {}, ah = function() {
|
|
|
8852
8900
|
return n;
|
|
8853
8901
|
}, e;
|
|
8854
8902
|
}();
|
|
8855
|
-
function
|
|
8856
|
-
if (t === void 0 && (t = ""), n === void 0 && (n =
|
|
8857
|
-
|
|
8858
|
-
var r = new
|
|
8859
|
-
return
|
|
8860
|
-
}
|
|
8861
|
-
var
|
|
8862
|
-
function
|
|
8863
|
-
return
|
|
8903
|
+
function yh(e, t, n) {
|
|
8904
|
+
if (t === void 0 && (t = ""), n === void 0 && (n = Zf), Object.prototype.hasOwnProperty.call(e, q)) return e[q];
|
|
8905
|
+
_f(e) || (t = (e.constructor.name || "ObservableObject") + "@" + G()), t || (t = "ObservableObject@" + G());
|
|
8906
|
+
var r = new vh(e, /* @__PURE__ */ new Map(), Ef(t), n);
|
|
8907
|
+
return yf(e, q, r), r;
|
|
8908
|
+
}
|
|
8909
|
+
var bh = Object.create(null), xh = Object.create(null);
|
|
8910
|
+
function Sh(e) {
|
|
8911
|
+
return bh[e] || (bh[e] = {
|
|
8864
8912
|
configurable: !0,
|
|
8865
8913
|
enumerable: !0,
|
|
8866
8914
|
get: function() {
|
|
@@ -8871,65 +8919,65 @@ function hh(e) {
|
|
|
8871
8919
|
}
|
|
8872
8920
|
});
|
|
8873
8921
|
}
|
|
8874
|
-
function
|
|
8875
|
-
return e[q] || (
|
|
8922
|
+
function Ch(e) {
|
|
8923
|
+
return e[q] || (Jf(e), e[q]);
|
|
8876
8924
|
}
|
|
8877
|
-
function
|
|
8878
|
-
return
|
|
8925
|
+
function wh(e) {
|
|
8926
|
+
return xh[e] || (xh[e] = {
|
|
8879
8927
|
configurable: X.computedConfigurable,
|
|
8880
8928
|
enumerable: !1,
|
|
8881
8929
|
get: function() {
|
|
8882
|
-
return
|
|
8930
|
+
return Ch(this).read(e);
|
|
8883
8931
|
},
|
|
8884
8932
|
set: function(t) {
|
|
8885
|
-
|
|
8933
|
+
Ch(this).write(e, t);
|
|
8886
8934
|
}
|
|
8887
8935
|
});
|
|
8888
8936
|
}
|
|
8889
|
-
var
|
|
8890
|
-
function
|
|
8891
|
-
return
|
|
8937
|
+
var Th = Sf("ObservableObjectAdministration", vh);
|
|
8938
|
+
function Eh(e) {
|
|
8939
|
+
return gf(e) ? (Jf(e), Th(e[q])) : !1;
|
|
8892
8940
|
}
|
|
8893
|
-
function
|
|
8941
|
+
function Dh(e, t) {
|
|
8894
8942
|
if (typeof e == "object" && e) {
|
|
8895
|
-
if (
|
|
8896
|
-
if (
|
|
8897
|
-
if (
|
|
8943
|
+
if (lh(e)) return t !== void 0 && K(!1), e[q].atom;
|
|
8944
|
+
if (_h(e)) return e[q];
|
|
8945
|
+
if (ph(e)) {
|
|
8898
8946
|
var n = e;
|
|
8899
8947
|
if (t === void 0) return n._keysAtom;
|
|
8900
8948
|
var r = n._data.get(t) || n._hasMap.get(t);
|
|
8901
8949
|
return r || K(!1), r;
|
|
8902
8950
|
}
|
|
8903
|
-
if (
|
|
8951
|
+
if (Jf(e), t && !e[q] && e[t], Eh(e)) {
|
|
8904
8952
|
if (!t) return K(!1);
|
|
8905
8953
|
var r = e[q].values.get(t);
|
|
8906
8954
|
return r || K(!1), r;
|
|
8907
8955
|
}
|
|
8908
|
-
if (
|
|
8909
|
-
} else if (typeof e == "function" &&
|
|
8956
|
+
if (Af(e) || Vp(e) || cm(e)) return e;
|
|
8957
|
+
} else if (typeof e == "function" && cm(e[q])) return e[q];
|
|
8910
8958
|
return K(!1);
|
|
8911
8959
|
}
|
|
8912
|
-
function
|
|
8913
|
-
if (e || K("Expecting some object"), t !== void 0) return
|
|
8914
|
-
if (
|
|
8915
|
-
if (
|
|
8960
|
+
function Oh(e, t) {
|
|
8961
|
+
if (e || K("Expecting some object"), t !== void 0) return Oh(Dh(e, t));
|
|
8962
|
+
if (Af(e) || Vp(e) || cm(e) || ph(e) || _h(e)) return e;
|
|
8963
|
+
if (Jf(e), e[q]) return e[q];
|
|
8916
8964
|
K(!1);
|
|
8917
8965
|
}
|
|
8918
|
-
function
|
|
8919
|
-
return (t === void 0 ?
|
|
8966
|
+
function kh(e, t) {
|
|
8967
|
+
return (t === void 0 ? Eh(e) || ph(e) || _h(e) ? Oh(e) : Dh(e) : Dh(e, t)).name;
|
|
8920
8968
|
}
|
|
8921
|
-
var
|
|
8922
|
-
function
|
|
8923
|
-
return n === void 0 && (n = -1),
|
|
8969
|
+
var Ah = Object.prototype.toString;
|
|
8970
|
+
function jh(e, t, n) {
|
|
8971
|
+
return n === void 0 && (n = -1), Mh(e, t, n);
|
|
8924
8972
|
}
|
|
8925
|
-
function
|
|
8973
|
+
function Mh(e, t, n, r, i) {
|
|
8926
8974
|
if (e === t) return e !== 0 || 1 / e == 1 / t;
|
|
8927
8975
|
if (e == null || t == null) return !1;
|
|
8928
8976
|
if (e !== e) return t !== t;
|
|
8929
8977
|
var a = typeof e;
|
|
8930
8978
|
if (a !== "function" && a !== "object" && typeof t != "object") return !1;
|
|
8931
|
-
var o =
|
|
8932
|
-
if (o !==
|
|
8979
|
+
var o = Ah.call(e);
|
|
8980
|
+
if (o !== Ah.call(t)) return !1;
|
|
8933
8981
|
switch (o) {
|
|
8934
8982
|
case "[object RegExp]":
|
|
8935
8983
|
case "[object String]": return "" + e == "" + t;
|
|
@@ -8942,7 +8990,7 @@ function Th(e, t, n, r, i) {
|
|
|
8942
8990
|
n >= 0 && n++;
|
|
8943
8991
|
break;
|
|
8944
8992
|
}
|
|
8945
|
-
e =
|
|
8993
|
+
e = Nh(e), t = Nh(t);
|
|
8946
8994
|
var s = o === "[object Array]";
|
|
8947
8995
|
if (!s) {
|
|
8948
8996
|
if (typeof e != "object" || typeof t != "object") return !1;
|
|
@@ -8954,24 +9002,24 @@ function Th(e, t, n, r, i) {
|
|
|
8954
9002
|
for (var u = r.length; u--;) if (r[u] === e) return i[u] === t;
|
|
8955
9003
|
if (r.push(e), i.push(t), s) {
|
|
8956
9004
|
if (u = e.length, u !== t.length) return !1;
|
|
8957
|
-
for (; u--;) if (!
|
|
9005
|
+
for (; u--;) if (!Mh(e[u], t[u], n - 1, r, i)) return !1;
|
|
8958
9006
|
} else {
|
|
8959
9007
|
var d = Object.keys(e), f = void 0;
|
|
8960
9008
|
if (u = d.length, Object.keys(t).length !== u) return !1;
|
|
8961
|
-
for (; u--;) if (f = d[u], !(
|
|
9009
|
+
for (; u--;) if (f = d[u], !(Ph(t, f) && Mh(e[f], t[f], n - 1, r, i))) return !1;
|
|
8962
9010
|
}
|
|
8963
9011
|
return r.pop(), i.pop(), !0;
|
|
8964
9012
|
}
|
|
8965
|
-
function
|
|
8966
|
-
return
|
|
9013
|
+
function Nh(e) {
|
|
9014
|
+
return lh(e) ? e.slice() : Cf(e) || ph(e) || wf(e) || _h(e) ? Array.from(e.entries()) : e;
|
|
8967
9015
|
}
|
|
8968
|
-
function
|
|
9016
|
+
function Ph(e, t) {
|
|
8969
9017
|
return Object.prototype.hasOwnProperty.call(e, t);
|
|
8970
9018
|
}
|
|
8971
|
-
function
|
|
8972
|
-
return e[Symbol.iterator] =
|
|
9019
|
+
function Fh(e) {
|
|
9020
|
+
return e[Symbol.iterator] = Ih, e;
|
|
8973
9021
|
}
|
|
8974
|
-
function
|
|
9022
|
+
function Ih() {
|
|
8975
9023
|
return this;
|
|
8976
9024
|
}
|
|
8977
9025
|
if (typeof Proxy > "u" || typeof Symbol > "u") throw Error("[mobx] MobX 5+ requires Proxy and Symbol objects. If your environment doesn't support Symbol or Proxy objects, please downgrade to MobX 4. For React Native Android, consider upgrading JSCore.");
|
|
@@ -8979,13 +9027,13 @@ if (typeof Proxy > "u" || typeof Symbol > "u") throw Error("[mobx] MobX 5+ requi
|
|
|
8979
9027
|
function e() {}
|
|
8980
9028
|
e.name;
|
|
8981
9029
|
})(), typeof __MOBX_DEVTOOLS_GLOBAL_HOOK__ == "object" && __MOBX_DEVTOOLS_GLOBAL_HOOK__.injectMobx({
|
|
8982
|
-
spy:
|
|
8983
|
-
extras: { getDebugName:
|
|
9030
|
+
spy: um,
|
|
9031
|
+
extras: { getDebugName: kh },
|
|
8984
9032
|
$mobx: q
|
|
8985
9033
|
});
|
|
8986
9034
|
//#endregion
|
|
8987
9035
|
//#region src/locales.ts
|
|
8988
|
-
var
|
|
9036
|
+
var Lh = {
|
|
8989
9037
|
de: "Deutsch",
|
|
8990
9038
|
en: "English",
|
|
8991
9039
|
es: "Español",
|
|
@@ -9010,47 +9058,47 @@ var Ah = {
|
|
|
9010
9058
|
};
|
|
9011
9059
|
//#endregion
|
|
9012
9060
|
//#region src/utils/localStorage.ts
|
|
9013
|
-
function
|
|
9061
|
+
function Rh() {
|
|
9014
9062
|
try {
|
|
9015
9063
|
return localStorage.setItem("test", "test"), localStorage.removeItem("test"), !0;
|
|
9016
9064
|
} catch {
|
|
9017
9065
|
return !1;
|
|
9018
9066
|
}
|
|
9019
9067
|
}
|
|
9020
|
-
var
|
|
9021
|
-
if (!
|
|
9022
|
-
let e = localStorage.getItem(
|
|
9023
|
-
return t && localStorage.removeItem(
|
|
9024
|
-
},
|
|
9068
|
+
var zh = Rh(), Bh = "en", Vh = "efp-locale", Hh = "language", Uh = J.box(Bh), Wh = J.array([], { deep: !1 }), Gh = (e) => pd(`${cd}locales/${e}.json`), Kh = () => {
|
|
9069
|
+
if (!zh) return null;
|
|
9070
|
+
let e = localStorage.getItem(Vh), t = localStorage.getItem(Hh);
|
|
9071
|
+
return t && localStorage.removeItem(Hh), e || (t && localStorage.setItem(Vh, t), t);
|
|
9072
|
+
}, qh = () => {
|
|
9025
9073
|
var e;
|
|
9026
|
-
let t = ((e = navigator.languages) == null ? void 0 : e[0]) || navigator.language, n = Object.keys(
|
|
9027
|
-
return (
|
|
9028
|
-
},
|
|
9029
|
-
|
|
9074
|
+
let t = ((e = navigator.languages) == null ? void 0 : e[0]) || navigator.language, n = Object.keys(Lh).find((e) => t.startsWith(e));
|
|
9075
|
+
return (Kh() || o().locale || n || Bh).toLowerCase();
|
|
9076
|
+
}, Jh = () => Uh.get(), Yh = () => Wh, Xh = (e) => Wh.some((t) => t.id === e), Zh = (e, t) => (Uh.get(), cf.t(e, t)), Qh = (e, t) => (Uh.get(), cf.exists(e, t) ? cf.t(e, t) : e), $h = async () => {
|
|
9077
|
+
Wh.replace(Object.entries(Lh).sort(([e], [t]) => e.localeCompare(t)).map(([e, t]) => ({
|
|
9030
9078
|
id: e,
|
|
9031
9079
|
name: t,
|
|
9032
|
-
entity: { type:
|
|
9080
|
+
entity: { type: qu }
|
|
9033
9081
|
})));
|
|
9034
|
-
let e =
|
|
9035
|
-
if (e !==
|
|
9036
|
-
t[e] = { translation: await
|
|
9082
|
+
let e = qh(), t = {};
|
|
9083
|
+
if (e !== Bh) try {
|
|
9084
|
+
t[e] = { translation: await Gh(e) };
|
|
9037
9085
|
} catch (t) {
|
|
9038
|
-
console.error(`Unable to load "${e}" localization, falling back to "${
|
|
9086
|
+
console.error(`Unable to load "${e}" localization, falling back to "${Bh}".`, t), e = Bh;
|
|
9039
9087
|
}
|
|
9040
|
-
return
|
|
9088
|
+
return Uh.set(e), cf.init({
|
|
9041
9089
|
resources: t,
|
|
9042
9090
|
lng: e,
|
|
9043
9091
|
keySeparator: !1,
|
|
9044
|
-
saveMissing: e !==
|
|
9092
|
+
saveMissing: e !== Bh,
|
|
9045
9093
|
missingKeyHandler: (e, t, n, r) => console.debug(`i18n missing key: '${e[0]}:${t}:${n}', fallback: '${r}'`)
|
|
9046
9094
|
});
|
|
9047
|
-
},
|
|
9095
|
+
}, eg = async (e) => {
|
|
9048
9096
|
let t = e.toLowerCase();
|
|
9049
9097
|
try {
|
|
9050
|
-
t !==
|
|
9098
|
+
t !== Bh && !cf.hasResourceBundle(t, "translation") && cf.addResourceBundle(t, "translation", await Gh(t), !0, !0), await cf.changeLanguage(t), Uh.set(t), zh && localStorage.setItem(Vh, t);
|
|
9051
9099
|
} catch (e) {
|
|
9052
9100
|
console.error(`Failed to switch language to "${t}":`, e);
|
|
9053
9101
|
}
|
|
9054
|
-
},
|
|
9102
|
+
}, tg = async () => (zh && (localStorage.removeItem(Vh), localStorage.removeItem(Hh)), eg(qh()));
|
|
9055
9103
|
//#endregion
|
|
9056
|
-
export {
|
|
9104
|
+
export { Xu as $, cd as A, O as At, id as B, a as Bt, Wm as C, Sn as Ct, _d as D, En as Dt, md as E, mn as Et, ed as F, T as Ft, Yu as G, qu as H, td as I, b as It, Gu as J, od as K, rd as L, E as Lt, Ku as M, je as Mt, Uu as N, Ne as Nt, hd as O, Un as Ot, Wu as P, Fe as Pt, Fu as Q, ad as R, c as Rt, Um as S, cr as St, wd as T, bn as Tt, Zu as U, Vu as V, $u as W, Bu as X, zu as Y, Ru as Z, J as _, ls as _t, tg as a, yl as at, um as b, Fr as bt, Qh as c, al as ct, hm as d, Xc as dt, Hu as et, vm as f, Tc as ft, Am as g, sc as gt, Em as h, cc as ht, $h as i, yu as it, Iu as j, ke as jt, fd as k, Bt as kt, zh as l, ml as lt, mp as m, uc as mt, Yh as n, Ju as nt, eg as o, bl as ot, If as p, Sc as pt, Lu as q, Xh as r, Pu as rt, Zh as s, vl as st, Jh as t, Qu as tt, rm as u, fl as ut, xm as v, is as vt, Dd as w, nr as wt, Bm as x, li as xt, gm as y, Vr as yt, nd as z, o as zt };
|