@expofp/floorplan 3.1.8 → 3.1.10
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/{CookieConsent-BWIz5A9p.js → CookieConsent-a87H4eyO.js} +353 -353
- package/dist/browser/{Debug-Dc-CpIuW.js → Debug-DfGh4_QN.js} +13 -13
- package/dist/browser/{Demo-C-gDoJHz.js → Demo-BIgIFx9e.js} +13 -13
- package/dist/browser/{Free-B_Nc0lBV.js → Free-DbdK3j8V.js} +15 -15
- package/dist/browser/{Gallery-NW3tpm3U.js → Gallery-BUX5_QPS.js} +59 -59
- package/dist/browser/{GpsLoader-BgtxLTgL.js → GpsLoader-BAvg4bWZ.js} +35 -35
- package/dist/browser/{KioskStore-O9lcbMgO.js → KioskStore-D3Kv90me.js} +4 -4
- package/dist/browser/{Mapbox-n8XdO_JZ.js → Mapbox-C8_3DKUv.js} +9 -9
- package/dist/browser/{SetKioskMode-BSrhzr-T.js → SetKioskMode-D1hL_tNu.js} +8 -8
- package/dist/browser/{ShowKiosk-ChdkT29W.js → ShowKiosk-Oz_Er2Hp.js} +10 -10
- package/dist/browser/{ThreeComponent-C9NgJy3L.js → ThreeComponent-DEeXwEr_.js} +16 -16
- package/dist/browser/{TouchHand-j9wM9VIW.js → TouchHand-CABdIRBU.js} +5 -5
- package/dist/browser/{ViewerMenuPanel-B-eQvgxu.js → ViewerMenuPanel-BqpETBnQ.js} +19 -19
- package/dist/browser/{add-debug-secret-listener-hyBkCStK.js → add-debug-secret-listener-DO7UiI9_.js} +1 -1
- package/dist/browser/boolean-editor-BmuDSLi6.js +158 -0
- package/dist/browser/{bootIntercom-CWJHIFsy.js → bootIntercom-CAMX7-bk.js} +1 -1
- package/dist/browser/browser-CdveV-Ch.js +198 -0
- package/dist/browser/bundle.json +62 -44
- package/dist/browser/{classnames-CV7GydgO.js → classnames-os-gPzrW.js} +3 -3
- package/dist/browser/{client-CW46IlZK.js → client-0ALI_KV4.js} +5 -5
- package/dist/browser/{data-BFFP23Yx.js → data-BjwxGiCn.js} +4 -4
- package/dist/browser/debug-namespaces-editor-KA5P5hW5.js +119 -0
- package/dist/browser/{debug-overlay-DK1IpDkH.js → debug-overlay-DeravwkZ.js} +1468 -1264
- package/dist/browser/{debug-ui-Bk_cgOg0.js → debug-ui-DO-qpxn5.js} +7 -7
- package/dist/browser/{dist-msXGDyJE.js → dist-y0f__WrL.js} +7 -7
- package/dist/browser/efp-debug-init-sGfP4q4G.js +41 -0
- package/dist/browser/{exports-CWJfbRRi.js → exports-eFca0lYR.js} +1 -1
- package/dist/browser/{favicon-Dx5hE2TC.js → favicon-CPsQUKVl.js} +1 -1
- package/dist/browser/{fetch-retry.umd--f_V0nbP.js → fetch-retry.umd-BAWDjKCA.js} +3 -3
- package/dist/browser/flex-ZLci6ROH.js +217 -0
- package/dist/browser/{flex-DayQlZNC.js → flex.props-25tq8dKa.js} +165 -368
- package/dist/browser/{floorplan.loader-ChwMFO3K.js → floorplan.loader-DIvwiYMb.js} +643 -643
- package/dist/browser/{floorplan.ready-DH6TL_BA.js → floorplan.ready-CKD9LSug.js} +214 -213
- package/dist/browser/{fuse-Cx2xVr92.js → fuse-BLrCecKQ.js} +3 -3
- package/dist/browser/index.html +0 -2
- package/dist/browser/index.js +14 -12
- package/dist/browser/{is-debug-DeMC2fj6.js → is-debug-DCLUqHh8.js} +654 -838
- package/dist/browser/{jsx-runtime-CeW-_L98.js → jsx-runtime-DlYXaiXZ.js} +3 -3
- package/dist/browser/{lib-ouUEfatK.js → lib-BDxYYOIt.js} +5 -5
- package/dist/browser/{main-C8DYHeS3.js → main-Dk9WLOfs.js} +1 -1
- package/dist/browser/mobx-Crec_zrD.js +24 -0
- package/dist/browser/{particles.min-CuOEuyDw.js → particles.min-CJwjn4Ff.js} +3 -3
- package/dist/browser/{prop-types-CkH4l5ny.js → prop-types-Dqb4sQlT.js} +3 -3
- package/dist/browser/{react-_GkslNER.js → react-DT3DrOuh.js} +3 -3
- package/dist/browser/{react-dom-Cq9do5W9.js → react-dom-DaXpOIBA.js} +4 -4
- package/dist/browser/register-debug-namespaces-setting-CDUqQrwu.js +27 -0
- package/dist/browser/reset-all-settings-BGD6O0Yi.js +15 -0
- package/dist/browser/{chunk-CmzsSKsP.js → rolldown-runtime-BDoRuuto.js} +1 -1
- package/dist/browser/{reset-all-settings-hgrZphbe.js → setting-registry-fKTgQ5tb.js} +3 -8
- package/dist/browser/{settings-BIMaTEyo.js → settings-BESfpH6w.js} +15 -14
- package/dist/browser/settings-item-CxX99BiC.js +67 -0
- package/dist/browser/{store-B0ML_owv.js → store-Ca0tjo_1.js} +5290 -5289
- package/dist/browser/ui-RnHaY1Kz.js +36 -0
- package/dist/esm/_misc_to_move/logBuildInfo.js +1 -1
- package/dist/esm/index.d.ts +1 -0
- package/dist/esm/index.js +1 -1
- package/dist/esm/load.js +1 -1
- package/package.json +3 -3
- package/dist/browser/boolean-editor-CtepaQAf.js +0 -206
- package/dist/browser/mobx-BTzRLiLH.js +0 -24
- package/dist/browser/src-BGoCtwZn.js +0 -19
- package/dist/browser/ui-vdOqnu50.js +0 -33
- package/dist/esm/_misc_to_move/logBuildInfoImpl.d.ts +0 -2
- package/dist/esm/_misc_to_move/logBuildInfoImpl.js +0 -1
|
@@ -1,213 +1,29 @@
|
|
|
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.1.
|
|
4
|
+
e.SENTRY_RELEASE = { id: "3.1.10" };
|
|
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] = "868c2749-7c22-4afb-ac21-f28a4af25cca", e._sentryDebugIdIdentifier = "sentry-dbid-868c2749-7c22-4afb-ac21-f28a4af25cca");
|
|
7
7
|
} catch {}
|
|
8
8
|
})();
|
|
9
|
-
import { r as e, t } from "./
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
t.exports = function(e, t) {
|
|
14
|
-
t = t || {};
|
|
15
|
-
var n = typeof e;
|
|
16
|
-
if (n === "string" && e.length > 0) return c(e);
|
|
17
|
-
if (n === "number" && isFinite(e)) return t.long ? u(e) : l(e);
|
|
18
|
-
throw Error("val is not a non-empty string or a valid number. val=" + JSON.stringify(e));
|
|
19
|
-
};
|
|
20
|
-
function c(e) {
|
|
21
|
-
if (e = String(e), !(e.length > 100)) {
|
|
22
|
-
var t = /^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);
|
|
23
|
-
if (t) {
|
|
24
|
-
var c = parseFloat(t[1]);
|
|
25
|
-
switch ((t[2] || "ms").toLowerCase()) {
|
|
26
|
-
case "years":
|
|
27
|
-
case "year":
|
|
28
|
-
case "yrs":
|
|
29
|
-
case "yr":
|
|
30
|
-
case "y": return c * s;
|
|
31
|
-
case "weeks":
|
|
32
|
-
case "week":
|
|
33
|
-
case "w": return c * o;
|
|
34
|
-
case "days":
|
|
35
|
-
case "day":
|
|
36
|
-
case "d": return c * a;
|
|
37
|
-
case "hours":
|
|
38
|
-
case "hour":
|
|
39
|
-
case "hrs":
|
|
40
|
-
case "hr":
|
|
41
|
-
case "h": return c * i;
|
|
42
|
-
case "minutes":
|
|
43
|
-
case "minute":
|
|
44
|
-
case "mins":
|
|
45
|
-
case "min":
|
|
46
|
-
case "m": return c * r;
|
|
47
|
-
case "seconds":
|
|
48
|
-
case "second":
|
|
49
|
-
case "secs":
|
|
50
|
-
case "sec":
|
|
51
|
-
case "s": return c * n;
|
|
52
|
-
case "milliseconds":
|
|
53
|
-
case "millisecond":
|
|
54
|
-
case "msecs":
|
|
55
|
-
case "msec":
|
|
56
|
-
case "ms": return c;
|
|
57
|
-
default: return;
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
function l(e) {
|
|
63
|
-
var t = Math.abs(e);
|
|
64
|
-
return t >= a ? Math.round(e / a) + "d" : t >= i ? Math.round(e / i) + "h" : t >= r ? Math.round(e / r) + "m" : t >= n ? Math.round(e / n) + "s" : e + "ms";
|
|
65
|
-
}
|
|
66
|
-
function u(e) {
|
|
67
|
-
var t = Math.abs(e);
|
|
68
|
-
return t >= a ? d(e, t, a, "day") : t >= i ? d(e, t, i, "hour") : t >= r ? d(e, t, r, "minute") : t >= n ? d(e, t, n, "second") : e + " ms";
|
|
69
|
-
}
|
|
70
|
-
function d(e, t, n, r) {
|
|
71
|
-
var i = t >= n * 1.5;
|
|
72
|
-
return Math.round(e / n) + " " + r + (i ? "s" : "");
|
|
73
|
-
}
|
|
74
|
-
})), r = /* @__PURE__ */ t(((e, t) => {
|
|
75
|
-
function r(e) {
|
|
76
|
-
r.debug = r, r.default = r, r.coerce = l, r.disable = s, r.enable = a, r.enabled = c, r.humanize = n(), r.destroy = u, Object.keys(e).forEach((t) => {
|
|
77
|
-
r[t] = e[t];
|
|
78
|
-
}), r.names = [], r.skips = [], r.formatters = {};
|
|
79
|
-
function t(e) {
|
|
80
|
-
let t = 0;
|
|
81
|
-
for (let n = 0; n < e.length; n++) t = (t << 5) - t + e.charCodeAt(n), t |= 0;
|
|
82
|
-
return r.colors[Math.abs(t) % r.colors.length];
|
|
83
|
-
}
|
|
84
|
-
r.selectColor = t;
|
|
85
|
-
function r(e) {
|
|
86
|
-
let t, n = null, a, o;
|
|
87
|
-
function s(...e) {
|
|
88
|
-
if (!s.enabled) return;
|
|
89
|
-
let n = s, i = Number(/* @__PURE__ */ new Date());
|
|
90
|
-
n.diff = i - (t || i), n.prev = t, n.curr = i, t = i, e[0] = r.coerce(e[0]), typeof e[0] != "string" && e.unshift("%O");
|
|
91
|
-
let a = 0;
|
|
92
|
-
e[0] = e[0].replace(/%([a-zA-Z%])/g, (t, i) => {
|
|
93
|
-
if (t === "%%") return "%";
|
|
94
|
-
a++;
|
|
95
|
-
let o = r.formatters[i];
|
|
96
|
-
if (typeof o == "function") {
|
|
97
|
-
let r = e[a];
|
|
98
|
-
t = o.call(n, r), e.splice(a, 1), a--;
|
|
99
|
-
}
|
|
100
|
-
return t;
|
|
101
|
-
}), r.formatArgs.call(n, e), (n.log || r.log).apply(n, e);
|
|
102
|
-
}
|
|
103
|
-
return s.namespace = e, s.useColors = r.useColors(), s.color = r.selectColor(e), s.extend = i, s.destroy = r.destroy, Object.defineProperty(s, "enabled", {
|
|
104
|
-
enumerable: !0,
|
|
105
|
-
configurable: !1,
|
|
106
|
-
get: () => n === null ? (a !== r.namespaces && (a = r.namespaces, o = r.enabled(e)), o) : n,
|
|
107
|
-
set: (e) => {
|
|
108
|
-
n = e;
|
|
109
|
-
}
|
|
110
|
-
}), typeof r.init == "function" && r.init(s), s;
|
|
111
|
-
}
|
|
112
|
-
function i(e, t) {
|
|
113
|
-
let n = r(this.namespace + (t === void 0 ? ":" : t) + e);
|
|
114
|
-
return n.log = this.log, n;
|
|
115
|
-
}
|
|
116
|
-
function a(e) {
|
|
117
|
-
r.save(e), r.namespaces = e, r.names = [], r.skips = [];
|
|
118
|
-
let t = (typeof e == "string" ? e : "").trim().replace(/\s+/g, ",").split(",").filter(Boolean);
|
|
119
|
-
for (let e of t) e[0] === "-" ? r.skips.push(e.slice(1)) : r.names.push(e);
|
|
120
|
-
}
|
|
121
|
-
function o(e, t) {
|
|
122
|
-
let n = 0, r = 0, i = -1, a = 0;
|
|
123
|
-
for (; n < e.length;) if (r < t.length && (t[r] === e[n] || t[r] === "*")) t[r] === "*" ? (i = r, a = n, r++) : (n++, r++);
|
|
124
|
-
else if (i !== -1) r = i + 1, a++, n = a;
|
|
125
|
-
else return !1;
|
|
126
|
-
for (; r < t.length && t[r] === "*";) r++;
|
|
127
|
-
return r === t.length;
|
|
128
|
-
}
|
|
129
|
-
function s() {
|
|
130
|
-
let e = [...r.names, ...r.skips.map((e) => "-" + e)].join(",");
|
|
131
|
-
return r.enable(""), e;
|
|
132
|
-
}
|
|
133
|
-
function c(e) {
|
|
134
|
-
for (let t of r.skips) if (o(e, t)) return !1;
|
|
135
|
-
for (let t of r.names) if (o(e, t)) return !0;
|
|
136
|
-
return !1;
|
|
137
|
-
}
|
|
138
|
-
function l(e) {
|
|
139
|
-
return e instanceof Error ? e.stack || e.message : e;
|
|
140
|
-
}
|
|
141
|
-
function u() {
|
|
142
|
-
console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");
|
|
143
|
-
}
|
|
144
|
-
return r.enable(r.load()), r;
|
|
145
|
-
}
|
|
146
|
-
t.exports = r;
|
|
147
|
-
})), i = /* @__PURE__ */ t(((e, t) => {
|
|
148
|
-
e.formatArgs = i, e.save = a, e.load = o, e.useColors = n, e.storage = s(), e.destroy = (() => {
|
|
149
|
-
let e = !1;
|
|
150
|
-
return () => {
|
|
151
|
-
e || (e = !0, console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."));
|
|
152
|
-
};
|
|
153
|
-
})(), e.colors = /* @__PURE__ */ "#0000CC.#0000FF.#0033CC.#0033FF.#0066CC.#0066FF.#0099CC.#0099FF.#00CC00.#00CC33.#00CC66.#00CC99.#00CCCC.#00CCFF.#3300CC.#3300FF.#3333CC.#3333FF.#3366CC.#3366FF.#3399CC.#3399FF.#33CC00.#33CC33.#33CC66.#33CC99.#33CCCC.#33CCFF.#6600CC.#6600FF.#6633CC.#6633FF.#66CC00.#66CC33.#9900CC.#9900FF.#9933CC.#9933FF.#99CC00.#99CC33.#CC0000.#CC0033.#CC0066.#CC0099.#CC00CC.#CC00FF.#CC3300.#CC3333.#CC3366.#CC3399.#CC33CC.#CC33FF.#CC6600.#CC6633.#CC9900.#CC9933.#CCCC00.#CCCC33.#FF0000.#FF0033.#FF0066.#FF0099.#FF00CC.#FF00FF.#FF3300.#FF3333.#FF3366.#FF3399.#FF33CC.#FF33FF.#FF6600.#FF6633.#FF9900.#FF9933.#FFCC00.#FFCC33".split(".");
|
|
154
|
-
function n() {
|
|
155
|
-
if (typeof window < "u" && window.process && (window.process.type === "renderer" || window.process.__nwjs)) return !0;
|
|
156
|
-
if (typeof navigator < "u" && navigator.userAgent && navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)) return !1;
|
|
157
|
-
let e;
|
|
158
|
-
return typeof document < "u" && document.documentElement && document.documentElement.style && document.documentElement.style.WebkitAppearance || typeof window < "u" && window.console && (window.console.firebug || window.console.exception && window.console.table) || typeof navigator < "u" && navigator.userAgent && (e = navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)) && parseInt(e[1], 10) >= 31 || typeof navigator < "u" && navigator.userAgent && navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/);
|
|
159
|
-
}
|
|
160
|
-
function i(e) {
|
|
161
|
-
if (e[0] = (this.useColors ? "%c" : "") + this.namespace + (this.useColors ? " %c" : " ") + e[0] + (this.useColors ? "%c " : " ") + "+" + t.exports.humanize(this.diff), !this.useColors) return;
|
|
162
|
-
let n = "color: " + this.color;
|
|
163
|
-
e.splice(1, 0, n, "color: inherit");
|
|
164
|
-
let r = 0, i = 0;
|
|
165
|
-
e[0].replace(/%[a-zA-Z%]/g, (e) => {
|
|
166
|
-
e !== "%%" && (r++, e === "%c" && (i = r));
|
|
167
|
-
}), e.splice(i, 0, n);
|
|
168
|
-
}
|
|
169
|
-
e.log = console.debug || console.log || (() => {});
|
|
170
|
-
function a(t) {
|
|
171
|
-
try {
|
|
172
|
-
t ? e.storage.setItem("debug", t) : e.storage.removeItem("debug");
|
|
173
|
-
} catch {}
|
|
174
|
-
}
|
|
175
|
-
function o() {
|
|
176
|
-
let t;
|
|
177
|
-
try {
|
|
178
|
-
t = e.storage.getItem("debug") || e.storage.getItem("DEBUG");
|
|
179
|
-
} catch {}
|
|
180
|
-
return !t && typeof process < "u" && "env" in process && (t = process.env.DEBUG), t;
|
|
181
|
-
}
|
|
182
|
-
function s() {
|
|
183
|
-
try {
|
|
184
|
-
return localStorage;
|
|
185
|
-
} catch {}
|
|
186
|
-
}
|
|
187
|
-
t.exports = r()(e);
|
|
188
|
-
var { formatters: c } = t.exports;
|
|
189
|
-
c.j = function(e) {
|
|
190
|
-
try {
|
|
191
|
-
return JSON.stringify(e);
|
|
192
|
-
} catch (e) {
|
|
193
|
-
return "[UnexpectedJSONParseError]: " + e.message;
|
|
194
|
-
}
|
|
195
|
-
};
|
|
196
|
-
})), a = /* @__PURE__ */ e(i(), 1), o = class {
|
|
9
|
+
import { r as e, t } from "./rolldown-runtime-BDoRuuto.js";
|
|
10
|
+
import { t as n } from "./browser-CdveV-Ch.js";
|
|
11
|
+
//#region src/tools/logger.ts
|
|
12
|
+
var r = /* @__PURE__ */ e(n(), 1), i = class {
|
|
197
13
|
constructor() {
|
|
198
14
|
this.messages = [];
|
|
199
15
|
}
|
|
200
16
|
log(...e) {
|
|
201
|
-
this.push("DEBUG", e), (0,
|
|
17
|
+
this.push("DEBUG", e), (0, r.default)("efp:floorplan:debug")(...e);
|
|
202
18
|
}
|
|
203
19
|
error(...e) {
|
|
204
|
-
this.push("ERROR", e),
|
|
20
|
+
this.push("ERROR", e), a(console.error, e);
|
|
205
21
|
}
|
|
206
22
|
warn(...e) {
|
|
207
|
-
this.push("WARN", e),
|
|
23
|
+
this.push("WARN", e), a(console.warn, e);
|
|
208
24
|
}
|
|
209
25
|
info(...e) {
|
|
210
|
-
this.push("INFO", e), (0,
|
|
26
|
+
this.push("INFO", e), (0, r.default)("efp:floorplan:info")(...e);
|
|
211
27
|
}
|
|
212
28
|
push(e, t) {
|
|
213
29
|
let n = t.map((e) => {
|
|
@@ -223,36 +39,36 @@ var n = /* @__PURE__ */ t(((e, t) => {
|
|
|
223
39
|
this.messages.length > i && this.messages.splice(0, i / 2);
|
|
224
40
|
}
|
|
225
41
|
};
|
|
226
|
-
function
|
|
42
|
+
function a(e, t) {
|
|
227
43
|
try {
|
|
228
44
|
e.apply(e, t);
|
|
229
45
|
} catch {}
|
|
230
46
|
}
|
|
231
|
-
var
|
|
47
|
+
var o = new i(), s = "___visibility", c = "previewMode", l = "___preview_mode", u = "data-preview-mode", d = "booths", f = "kiosk", p = "setkiosk", m = "expofp-map-settings", h = "debug", g = "build-route", _ = "planner", v = "source", y = "from", b = "pathway", x = 1e3, ee = "lang", S = "language", te = "uiscale", ne = "resetuiscale", re = "___ui-scale", ie = "--expofp-font-face", ae = "--expofp-booth-main-weight", oe = "--expofp-booth-details-weight", se = "--expofp-exhibitor-main-weight", C = "--expofp-exhibitor-details-weight", ce = "--expofp-booth-special-weight", le = "efp-compass-permission-granted", ue = "viewermode", de = "___viewer_mode", fe = new URL(
|
|
232
48
|
/* @vite-ignore */
|
|
233
49
|
".",
|
|
234
50
|
import.meta.url
|
|
235
51
|
).href;
|
|
236
|
-
|
|
237
|
-
var
|
|
238
|
-
function
|
|
239
|
-
return new URLSearchParams(decodeURIComponent(window.location.search)).get(
|
|
52
|
+
fe.endsWith("/") || (fe += "/");
|
|
53
|
+
var pe = fe, me = "rt";
|
|
54
|
+
function he() {
|
|
55
|
+
return new URLSearchParams(decodeURIComponent(window.location.search)).get(me);
|
|
240
56
|
}
|
|
241
|
-
function
|
|
242
|
-
let e =
|
|
243
|
-
return e || (e = sessionStorage.getItem(
|
|
57
|
+
function ge() {
|
|
58
|
+
let e = he();
|
|
59
|
+
return e || (e = sessionStorage.getItem(me)), e;
|
|
244
60
|
}
|
|
245
|
-
function
|
|
246
|
-
sessionStorage.setItem(
|
|
61
|
+
function _e(e) {
|
|
62
|
+
sessionStorage.setItem(me, e);
|
|
247
63
|
}
|
|
248
|
-
function
|
|
64
|
+
function ve(e, t) {
|
|
249
65
|
let n = new URL(e, "https://app.expofp.com/");
|
|
250
66
|
for (let [e, r] of Object.entries(t)) n.searchParams.set(e, r);
|
|
251
67
|
return n.href;
|
|
252
68
|
}
|
|
253
69
|
//#endregion
|
|
254
70
|
//#region src/utils/browser.ts
|
|
255
|
-
var
|
|
71
|
+
var ye = /* @__PURE__ */ e((/* @__PURE__ */ t(((e, t) => {
|
|
256
72
|
(function(n, r) {
|
|
257
73
|
typeof e == "object" && typeof t == "object" ? t.exports = r() : typeof define == "function" && define.amd ? define([], r) : typeof e == "object" ? e.bowser = r() : n.bowser = r();
|
|
258
74
|
})(e, (function() {
|
|
@@ -1951,11 +1767,11 @@ var xe = /* @__PURE__ */ e((/* @__PURE__ */ t(((e, t) => {
|
|
|
1951
1767
|
}
|
|
1952
1768
|
});
|
|
1953
1769
|
}));
|
|
1954
|
-
})))(), 1),
|
|
1955
|
-
|
|
1770
|
+
})))(), 1), be, xe = window.navigator.userAgent, Se = ye.default.getParser(xe);
|
|
1771
|
+
o.log("Browser", Se.getBrowserName(), Se.getBrowserVersion(), Se.getOSName(), (be = Se.getEngine()) == null ? void 0 : be.name);
|
|
1956
1772
|
//#endregion
|
|
1957
1773
|
//#region src/utils/is-from-designer.ts
|
|
1958
|
-
var
|
|
1774
|
+
var Ce = document.referrer && (document.referrer.indexOf("app.expofp.com") > -1 || document.referrer.indexOf("app-show.expofp.com") > -1), we = /* @__PURE__ */ t(((e, t) => {
|
|
1959
1775
|
(function() {
|
|
1960
1776
|
function e(e, t) {
|
|
1961
1777
|
document.addEventListener ? e.addEventListener("scroll", t, !1) : e.attachEvent("scroll", t);
|
|
@@ -2055,49 +1871,49 @@ var Te = document.referrer && (document.referrer.indexOf("app.expofp.com") > -1
|
|
|
2055
1871
|
});
|
|
2056
1872
|
}, typeof t == "object" ? t.exports = s : (window.FontFaceObserver = s, window.FontFaceObserver.prototype.load = s.prototype.load);
|
|
2057
1873
|
})();
|
|
2058
|
-
})),
|
|
2059
|
-
function
|
|
2060
|
-
if (!
|
|
2061
|
-
return
|
|
1874
|
+
})), Te, Ee = new Uint8Array(16);
|
|
1875
|
+
function De() {
|
|
1876
|
+
if (!Te && (Te = typeof crypto < "u" && crypto.getRandomValues && crypto.getRandomValues.bind(crypto), !Te)) throw Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
|
|
1877
|
+
return Te(Ee);
|
|
2062
1878
|
}
|
|
2063
1879
|
//#endregion
|
|
2064
1880
|
//#region ../../node_modules/.pnpm/uuid@9.0.1/node_modules/uuid/dist/esm-browser/stringify.js
|
|
2065
1881
|
var w = [];
|
|
2066
1882
|
for (let e = 0; e < 256; ++e) w.push((e + 256).toString(16).slice(1));
|
|
2067
|
-
function
|
|
1883
|
+
function Oe(e, t = 0) {
|
|
2068
1884
|
return w[e[t + 0]] + w[e[t + 1]] + w[e[t + 2]] + w[e[t + 3]] + "-" + w[e[t + 4]] + w[e[t + 5]] + "-" + w[e[t + 6]] + w[e[t + 7]] + "-" + w[e[t + 8]] + w[e[t + 9]] + "-" + w[e[t + 10]] + w[e[t + 11]] + w[e[t + 12]] + w[e[t + 13]] + w[e[t + 14]] + w[e[t + 15]];
|
|
2069
1885
|
}
|
|
2070
|
-
var
|
|
1886
|
+
var ke = { randomUUID: typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto) };
|
|
2071
1887
|
//#endregion
|
|
2072
1888
|
//#region ../../node_modules/.pnpm/uuid@9.0.1/node_modules/uuid/dist/esm-browser/v4.js
|
|
2073
|
-
function
|
|
2074
|
-
if (
|
|
1889
|
+
function Ae(e, t, n) {
|
|
1890
|
+
if (ke.randomUUID && !t && !e) return ke.randomUUID();
|
|
2075
1891
|
e = e || {};
|
|
2076
|
-
let r = e.random || (e.rng ||
|
|
1892
|
+
let r = e.random || (e.rng || De)();
|
|
2077
1893
|
if (r[6] = r[6] & 15 | 64, r[8] = r[8] & 63 | 128, t) {
|
|
2078
1894
|
n = n || 0;
|
|
2079
1895
|
for (let e = 0; e < 16; ++e) t[n + e] = r[e];
|
|
2080
1896
|
return t;
|
|
2081
1897
|
}
|
|
2082
|
-
return
|
|
1898
|
+
return Oe(r);
|
|
2083
1899
|
}
|
|
2084
1900
|
//#endregion
|
|
2085
1901
|
//#region src/tools/loaders.ts
|
|
2086
|
-
var
|
|
2087
|
-
async function
|
|
1902
|
+
var je = /* @__PURE__ */ e(we(), 1);
|
|
1903
|
+
async function Me(e) {
|
|
2088
1904
|
return await (await fetch(e, { credentials: "same-origin" })).json();
|
|
2089
1905
|
}
|
|
2090
|
-
function
|
|
1906
|
+
function Ne(e, t) {
|
|
2091
1907
|
let n = document.createElement("link");
|
|
2092
1908
|
n.rel = "stylesheet", n.href = e, n.setAttribute("fetchpriority", "high"), t.appendChild(n);
|
|
2093
1909
|
}
|
|
2094
|
-
async function
|
|
2095
|
-
return e =
|
|
1910
|
+
async function Pe(e) {
|
|
1911
|
+
return e = Ce && e.indexOf("?") === -1 ? `${e}?v=${(/* @__PURE__ */ new Date()).getMilliseconds()}` : e, new Promise(function(t, n) {
|
|
2096
1912
|
let r = document.createElement("script");
|
|
2097
|
-
r.src =
|
|
1913
|
+
r.src = Re(e), r.setAttribute("fetchpriority", "high"), r.onload = t, r.onerror = t, o.log("Injecting script:", r.src), document.head.appendChild(r);
|
|
2098
1914
|
});
|
|
2099
1915
|
}
|
|
2100
|
-
async function
|
|
1916
|
+
async function Fe(e, t, n) {
|
|
2101
1917
|
var r;
|
|
2102
1918
|
n = {
|
|
2103
1919
|
style: "normal",
|
|
@@ -2105,8 +1921,8 @@ async function Le(e, t, n) {
|
|
|
2105
1921
|
...n || {}
|
|
2106
1922
|
};
|
|
2107
1923
|
let i = `url("${t}")`;
|
|
2108
|
-
if (!window.FontFace) return e.startsWith("Font Awesome") ||
|
|
2109
|
-
e.indexOf(" ") !== -1 && ((r =
|
|
1924
|
+
if (!window.FontFace) return e.startsWith("Font Awesome") || Ie(e, i, n), Promise.resolve();
|
|
1925
|
+
e.indexOf(" ") !== -1 && ((r = Se.getEngine()) == null ? void 0 : r.name) === "Gecko" && (e = `'${e}'`);
|
|
2110
1926
|
let a;
|
|
2111
1927
|
try {
|
|
2112
1928
|
a = new FontFace(e, i, n);
|
|
@@ -2115,23 +1931,23 @@ async function Le(e, t, n) {
|
|
|
2115
1931
|
}
|
|
2116
1932
|
return document.fonts.add(a), a.load();
|
|
2117
1933
|
}
|
|
2118
|
-
function
|
|
1934
|
+
function Ie(e, t, n) {
|
|
2119
1935
|
let r = document.createElement("style");
|
|
2120
1936
|
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);
|
|
2121
1937
|
let i = document.createElement("div");
|
|
2122
1938
|
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);
|
|
2123
1939
|
}
|
|
2124
|
-
async function
|
|
1940
|
+
async function Le(e) {
|
|
2125
1941
|
var t;
|
|
2126
1942
|
let n = getComputedStyle(document.documentElement).getPropertyValue("--expofp-font-face") || ((t = e.match(/--expofp-font-face:\s*([^;]*)/)) == null ? void 0 : t[1]);
|
|
2127
1943
|
if (!n) return;
|
|
2128
|
-
let r = n.replace(/"/g, "").split(", ").map((e) => e.trim()).map((e) => new
|
|
1944
|
+
let r = n.replace(/"/g, "").split(", ").map((e) => e.trim()).map((e) => new je.default(e).load());
|
|
2129
1945
|
return Promise.allSettled(r);
|
|
2130
1946
|
}
|
|
2131
|
-
function
|
|
1947
|
+
function Re(e) {
|
|
2132
1948
|
try {
|
|
2133
1949
|
let t = window.__fpDataVersion;
|
|
2134
|
-
t || (t =
|
|
1950
|
+
t || (t = Ae().replace(/\D/g, ""));
|
|
2135
1951
|
let [n, r = ""] = e.split("?"), i = new URLSearchParams(r);
|
|
2136
1952
|
if (i.has("v")) return e;
|
|
2137
1953
|
i.set("v", t);
|
|
@@ -2143,78 +1959,78 @@ function Be(e) {
|
|
|
2143
1959
|
}
|
|
2144
1960
|
//#endregion
|
|
2145
1961
|
//#region src/utils/urlEncoding.ts
|
|
2146
|
-
function
|
|
1962
|
+
function ze(e) {
|
|
2147
1963
|
if (!e || e.length === 0) return "";
|
|
2148
1964
|
let t = e.map((e) => encodeURIComponent(e.trim())).join(",");
|
|
2149
|
-
return
|
|
1965
|
+
return o.log("URLEncoding: encoding string array:", {
|
|
2150
1966
|
original: e,
|
|
2151
1967
|
encoded: t
|
|
2152
1968
|
}), t;
|
|
2153
1969
|
}
|
|
2154
|
-
function
|
|
1970
|
+
function Be(e) {
|
|
2155
1971
|
if (!e) return [];
|
|
2156
1972
|
try {
|
|
2157
1973
|
let t = e.split(",").map((e) => decodeURIComponent(e.trim())).filter(Boolean);
|
|
2158
|
-
return
|
|
1974
|
+
return o.log("URLEncoding: decoding string array:", {
|
|
2159
1975
|
encoded: e,
|
|
2160
1976
|
decoded: t
|
|
2161
1977
|
}), t;
|
|
2162
1978
|
} catch (t) {
|
|
2163
|
-
return
|
|
1979
|
+
return o.warn("URLEncoding: failed to decode string array:", e, t), [];
|
|
2164
1980
|
}
|
|
2165
1981
|
}
|
|
2166
|
-
function
|
|
1982
|
+
function Ve(e) {
|
|
2167
1983
|
if (!e) return null;
|
|
2168
1984
|
let t = encodeURIComponent(e.trim());
|
|
2169
|
-
return
|
|
1985
|
+
return o.log("URLEncoding: encoding string:", {
|
|
2170
1986
|
original: e,
|
|
2171
1987
|
encoded: t
|
|
2172
1988
|
}), t;
|
|
2173
1989
|
}
|
|
2174
|
-
function
|
|
1990
|
+
function He(e) {
|
|
2175
1991
|
if (!e) return null;
|
|
2176
1992
|
try {
|
|
2177
1993
|
let t = decodeURIComponent(e.trim());
|
|
2178
|
-
return
|
|
1994
|
+
return o.log("URLEncoding: decoding string:", {
|
|
2179
1995
|
encoded: e,
|
|
2180
1996
|
decoded: t
|
|
2181
1997
|
}), t;
|
|
2182
1998
|
} catch (t) {
|
|
2183
|
-
return
|
|
1999
|
+
return o.warn("URLEncoding: failed to decode string:", e, t), null;
|
|
2184
2000
|
}
|
|
2185
2001
|
}
|
|
2186
|
-
function
|
|
2002
|
+
function Ue(e) {
|
|
2187
2003
|
return e.map((e) => e.toLowerCase());
|
|
2188
2004
|
}
|
|
2189
|
-
function
|
|
2005
|
+
function We(e) {
|
|
2190
2006
|
return e ? e.toLowerCase() : null;
|
|
2191
2007
|
}
|
|
2192
2008
|
//#endregion
|
|
2193
2009
|
//#region src/utils/index.ts
|
|
2194
|
-
function
|
|
2010
|
+
function Ge(e) {
|
|
2195
2011
|
return e * parseFloat(getComputedStyle(document.documentElement).fontSize);
|
|
2196
2012
|
}
|
|
2197
|
-
function
|
|
2013
|
+
function Ke(e, t) {
|
|
2198
2014
|
let n = [];
|
|
2199
2015
|
for (let r = 0; r < e.length; r += t) n.push(e.slice(r, r + t));
|
|
2200
2016
|
return n;
|
|
2201
2017
|
}
|
|
2202
|
-
function
|
|
2018
|
+
function qe(e) {
|
|
2203
2019
|
e.sort(function(e, t) {
|
|
2204
2020
|
var n = e.name.toLowerCase(), r = t.name.toLowerCase();
|
|
2205
2021
|
return n < r ? -1 : +(n > r);
|
|
2206
2022
|
});
|
|
2207
2023
|
}
|
|
2208
|
-
var
|
|
2209
|
-
if (!
|
|
2024
|
+
var Je = document.createElement("canvas"), Ye = !!(Je.getContext("webgl") || Je.getContext("experimental-webgl"));
|
|
2025
|
+
if (!Ye) {
|
|
2210
2026
|
let e = document.createElement("div");
|
|
2211
2027
|
e.innerHTML = "<!--no webgl-->", document.body.appendChild(e);
|
|
2212
2028
|
}
|
|
2213
|
-
function
|
|
2029
|
+
function Xe(e) {
|
|
2214
2030
|
for (var t = e.length, n, r; t !== 0;) r = Math.floor(Math.random() * t), --t, n = e[t], e[t] = e[r], e[r] = n;
|
|
2215
2031
|
return e;
|
|
2216
2032
|
}
|
|
2217
|
-
function
|
|
2033
|
+
function Ze(e) {
|
|
2218
2034
|
return new Promise((t) => setTimeout(t, e));
|
|
2219
2035
|
}
|
|
2220
2036
|
//#endregion
|
|
@@ -2229,7 +2045,7 @@ function T(e) {
|
|
|
2229
2045
|
}
|
|
2230
2046
|
//#endregion
|
|
2231
2047
|
//#region ../../node_modules/.pnpm/@babel+runtime@7.28.6/node_modules/@babel/runtime/helpers/esm/toPrimitive.js
|
|
2232
|
-
function
|
|
2048
|
+
function Qe(e, t) {
|
|
2233
2049
|
if (T(e) != "object" || !e) return e;
|
|
2234
2050
|
var n = e[Symbol.toPrimitive];
|
|
2235
2051
|
if (n !== void 0) {
|
|
@@ -2241,14 +2057,14 @@ function et(e, t) {
|
|
|
2241
2057
|
}
|
|
2242
2058
|
//#endregion
|
|
2243
2059
|
//#region ../../node_modules/.pnpm/@babel+runtime@7.28.6/node_modules/@babel/runtime/helpers/esm/toPropertyKey.js
|
|
2244
|
-
function
|
|
2245
|
-
var t =
|
|
2060
|
+
function $e(e) {
|
|
2061
|
+
var t = Qe(e, "string");
|
|
2246
2062
|
return T(t) == "symbol" ? t : t + "";
|
|
2247
2063
|
}
|
|
2248
2064
|
//#endregion
|
|
2249
2065
|
//#region ../../node_modules/.pnpm/@babel+runtime@7.28.6/node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
|
2250
|
-
function
|
|
2251
|
-
return (t =
|
|
2066
|
+
function et(e, t, n) {
|
|
2067
|
+
return (t = $e(t)) in e ? Object.defineProperty(e, t, {
|
|
2252
2068
|
value: n,
|
|
2253
2069
|
enumerable: !0,
|
|
2254
2070
|
configurable: !0,
|
|
@@ -2263,7 +2079,7 @@ function E(e) {
|
|
|
2263
2079
|
typeof Object.getOwnPropertySymbols == "function" && r.push.apply(r, Object.getOwnPropertySymbols(n).filter(function(e) {
|
|
2264
2080
|
return Object.getOwnPropertyDescriptor(n, e).enumerable;
|
|
2265
2081
|
})), r.forEach(function(t) {
|
|
2266
|
-
|
|
2082
|
+
et(e, t, n[t]);
|
|
2267
2083
|
});
|
|
2268
2084
|
}
|
|
2269
2085
|
return e;
|
|
@@ -2275,14 +2091,14 @@ function D(e, t) {
|
|
|
2275
2091
|
}
|
|
2276
2092
|
//#endregion
|
|
2277
2093
|
//#region ../../node_modules/.pnpm/@babel+runtime@7.28.6/node_modules/@babel/runtime/helpers/esm/createClass.js
|
|
2278
|
-
function
|
|
2094
|
+
function tt(e, t) {
|
|
2279
2095
|
for (var n = 0; n < t.length; n++) {
|
|
2280
2096
|
var r = t[n];
|
|
2281
|
-
r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e,
|
|
2097
|
+
r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, $e(r.key), r);
|
|
2282
2098
|
}
|
|
2283
2099
|
}
|
|
2284
2100
|
function O(e, t, n) {
|
|
2285
|
-
return t &&
|
|
2101
|
+
return t && tt(e.prototype, t), n && tt(e, n), Object.defineProperty(e, "prototype", { writable: !1 }), e;
|
|
2286
2102
|
}
|
|
2287
2103
|
//#endregion
|
|
2288
2104
|
//#region ../../node_modules/.pnpm/@babel+runtime@7.28.6/node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js
|
|
@@ -2292,38 +2108,38 @@ function k(e) {
|
|
|
2292
2108
|
}
|
|
2293
2109
|
//#endregion
|
|
2294
2110
|
//#region ../../node_modules/.pnpm/@babel+runtime@7.28.6/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js
|
|
2295
|
-
function
|
|
2111
|
+
function nt(e, t) {
|
|
2296
2112
|
if (t && (T(t) == "object" || typeof t == "function")) return t;
|
|
2297
2113
|
if (t !== void 0) throw TypeError("Derived constructors may only return object or undefined");
|
|
2298
2114
|
return k(e);
|
|
2299
2115
|
}
|
|
2300
2116
|
//#endregion
|
|
2301
2117
|
//#region ../../node_modules/.pnpm/@babel+runtime@7.28.6/node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js
|
|
2302
|
-
function
|
|
2303
|
-
return
|
|
2118
|
+
function rt(e) {
|
|
2119
|
+
return rt = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(e) {
|
|
2304
2120
|
return e.__proto__ || Object.getPrototypeOf(e);
|
|
2305
|
-
},
|
|
2121
|
+
}, rt(e);
|
|
2306
2122
|
}
|
|
2307
2123
|
//#endregion
|
|
2308
2124
|
//#region ../../node_modules/.pnpm/@babel+runtime@7.28.6/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js
|
|
2309
|
-
function
|
|
2310
|
-
return
|
|
2125
|
+
function it(e, t) {
|
|
2126
|
+
return it = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(e, t) {
|
|
2311
2127
|
return e.__proto__ = t, e;
|
|
2312
|
-
},
|
|
2128
|
+
}, it(e, t);
|
|
2313
2129
|
}
|
|
2314
2130
|
//#endregion
|
|
2315
2131
|
//#region ../../node_modules/.pnpm/@babel+runtime@7.28.6/node_modules/@babel/runtime/helpers/esm/inherits.js
|
|
2316
|
-
function
|
|
2132
|
+
function at(e, t) {
|
|
2317
2133
|
if (typeof t != "function" && t !== null) throw TypeError("Super expression must either be null or a function");
|
|
2318
2134
|
e.prototype = Object.create(t && t.prototype, { constructor: {
|
|
2319
2135
|
value: e,
|
|
2320
2136
|
writable: !0,
|
|
2321
2137
|
configurable: !0
|
|
2322
|
-
} }), Object.defineProperty(e, "prototype", { writable: !1 }), t &&
|
|
2138
|
+
} }), Object.defineProperty(e, "prototype", { writable: !1 }), t && it(e, t);
|
|
2323
2139
|
}
|
|
2324
2140
|
//#endregion
|
|
2325
2141
|
//#region ../../node_modules/.pnpm/i18next@19.9.2/node_modules/i18next/dist/esm/i18next.js
|
|
2326
|
-
var
|
|
2142
|
+
var ot = {
|
|
2327
2143
|
type: "logger",
|
|
2328
2144
|
log: function(e) {
|
|
2329
2145
|
this.output("log", e);
|
|
@@ -2347,7 +2163,7 @@ var ct = {
|
|
|
2347
2163
|
key: "init",
|
|
2348
2164
|
value: function(e) {
|
|
2349
2165
|
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
2350
|
-
this.prefix = t.prefix || "i18next:", this.logger = e ||
|
|
2166
|
+
this.prefix = t.prefix || "i18next:", this.logger = e || ot, this.options = t, this.debug = t.debug;
|
|
2351
2167
|
}
|
|
2352
2168
|
},
|
|
2353
2169
|
{
|
|
@@ -2397,7 +2213,7 @@ var ct = {
|
|
|
2397
2213
|
}
|
|
2398
2214
|
}
|
|
2399
2215
|
]), e;
|
|
2400
|
-
}())(),
|
|
2216
|
+
}())(), st = function() {
|
|
2401
2217
|
function e() {
|
|
2402
2218
|
D(this, e), this.observers = {};
|
|
2403
2219
|
}
|
|
@@ -2438,21 +2254,21 @@ var ct = {
|
|
|
2438
2254
|
}
|
|
2439
2255
|
]), e;
|
|
2440
2256
|
}();
|
|
2441
|
-
function
|
|
2257
|
+
function ct() {
|
|
2442
2258
|
var e, t, n = new Promise(function(n, r) {
|
|
2443
2259
|
e = n, t = r;
|
|
2444
2260
|
});
|
|
2445
2261
|
return n.resolve = e, n.reject = t, n;
|
|
2446
2262
|
}
|
|
2447
|
-
function
|
|
2263
|
+
function lt(e) {
|
|
2448
2264
|
return e == null ? "" : "" + e;
|
|
2449
2265
|
}
|
|
2450
|
-
function
|
|
2266
|
+
function ut(e, t, n) {
|
|
2451
2267
|
e.forEach(function(e) {
|
|
2452
2268
|
t[e] && (n[e] = t[e]);
|
|
2453
2269
|
});
|
|
2454
2270
|
}
|
|
2455
|
-
function
|
|
2271
|
+
function dt(e, t, n) {
|
|
2456
2272
|
function r(e) {
|
|
2457
2273
|
return e && e.indexOf("###") > -1 ? e.replace(/###/g, ".") : e;
|
|
2458
2274
|
}
|
|
@@ -2469,30 +2285,30 @@ function pt(e, t, n) {
|
|
|
2469
2285
|
k: r(a.shift())
|
|
2470
2286
|
};
|
|
2471
2287
|
}
|
|
2472
|
-
function
|
|
2473
|
-
var r =
|
|
2288
|
+
function ft(e, t, n) {
|
|
2289
|
+
var r = dt(e, t, Object), i = r.obj, a = r.k;
|
|
2474
2290
|
i[a] = n;
|
|
2475
2291
|
}
|
|
2476
|
-
function
|
|
2477
|
-
var i =
|
|
2292
|
+
function pt(e, t, n, r) {
|
|
2293
|
+
var i = dt(e, t, Object), a = i.obj, o = i.k;
|
|
2478
2294
|
a[o] = a[o] || [], r && (a[o] = a[o].concat(n)), r || a[o].push(n);
|
|
2479
2295
|
}
|
|
2480
|
-
function
|
|
2481
|
-
var n =
|
|
2296
|
+
function mt(e, t) {
|
|
2297
|
+
var n = dt(e, t), r = n.obj, i = n.k;
|
|
2482
2298
|
if (r) return r[i];
|
|
2483
2299
|
}
|
|
2484
|
-
function
|
|
2485
|
-
var r =
|
|
2486
|
-
return r === void 0 ?
|
|
2300
|
+
function ht(e, t, n) {
|
|
2301
|
+
var r = mt(e, n);
|
|
2302
|
+
return r === void 0 ? mt(t, n) : r;
|
|
2487
2303
|
}
|
|
2488
|
-
function
|
|
2489
|
-
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]) :
|
|
2304
|
+
function gt(e, t, n) {
|
|
2305
|
+
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]) : gt(e[r], t[r], n) : e[r] = t[r]);
|
|
2490
2306
|
return e;
|
|
2491
2307
|
}
|
|
2492
|
-
function
|
|
2308
|
+
function _t(e) {
|
|
2493
2309
|
return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, "\\$&");
|
|
2494
2310
|
}
|
|
2495
|
-
var
|
|
2311
|
+
var vt = {
|
|
2496
2312
|
"&": "&",
|
|
2497
2313
|
"<": "<",
|
|
2498
2314
|
">": ">",
|
|
@@ -2500,19 +2316,19 @@ var bt = {
|
|
|
2500
2316
|
"'": "'",
|
|
2501
2317
|
"/": "/"
|
|
2502
2318
|
};
|
|
2503
|
-
function
|
|
2319
|
+
function yt(e) {
|
|
2504
2320
|
return typeof e == "string" ? e.replace(/[&<>"'\/]/g, function(e) {
|
|
2505
|
-
return
|
|
2321
|
+
return vt[e];
|
|
2506
2322
|
}) : e;
|
|
2507
2323
|
}
|
|
2508
|
-
var
|
|
2509
|
-
|
|
2324
|
+
var bt = typeof window < "u" && window.navigator && window.navigator.userAgent && window.navigator.userAgent.indexOf("MSIE") > -1, xt = function(e) {
|
|
2325
|
+
at(t, e);
|
|
2510
2326
|
function t(e) {
|
|
2511
2327
|
var n, r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {
|
|
2512
2328
|
ns: ["translation"],
|
|
2513
2329
|
defaultNS: "translation"
|
|
2514
2330
|
};
|
|
2515
|
-
return D(this, t), n =
|
|
2331
|
+
return D(this, t), n = nt(this, rt(t).call(this)), bt && st.call(k(n)), n.data = e || {}, n.options = r, n.options.keySeparator === void 0 && (n.options.keySeparator = "."), n;
|
|
2516
2332
|
}
|
|
2517
2333
|
return O(t, [
|
|
2518
2334
|
{
|
|
@@ -2532,7 +2348,7 @@ var St = typeof window < "u" && window.navigator && window.navigator.userAgent &
|
|
|
2532
2348
|
key: "getResource",
|
|
2533
2349
|
value: function(e, t, n) {
|
|
2534
2350
|
var r = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {}, i = r.keySeparator === void 0 ? this.options.keySeparator : r.keySeparator, a = [e, t];
|
|
2535
|
-
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(".")),
|
|
2351
|
+
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(".")), mt(this.data, a);
|
|
2536
2352
|
}
|
|
2537
2353
|
},
|
|
2538
2354
|
{
|
|
@@ -2541,7 +2357,7 @@ var St = typeof window < "u" && window.navigator && window.navigator.userAgent &
|
|
|
2541
2357
|
var i = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : { silent: !1 }, a = this.options.keySeparator;
|
|
2542
2358
|
a === void 0 && (a = ".");
|
|
2543
2359
|
var o = [e, t];
|
|
2544
|
-
n && (o = o.concat(a ? n.split(a) : n)), e.indexOf(".") > -1 && (o = e.split("."), r = t, t = o[1]), this.addNamespaces(t),
|
|
2360
|
+
n && (o = o.concat(a ? n.split(a) : n)), e.indexOf(".") > -1 && (o = e.split("."), r = t, t = o[1]), this.addNamespaces(t), ft(this.data, o, r), i.silent || this.emit("added", e, t, n, r);
|
|
2545
2361
|
}
|
|
2546
2362
|
},
|
|
2547
2363
|
{
|
|
@@ -2557,8 +2373,8 @@ var St = typeof window < "u" && window.navigator && window.navigator.userAgent &
|
|
|
2557
2373
|
value: function(e, t, n, r, i) {
|
|
2558
2374
|
var a = arguments.length > 5 && arguments[5] !== void 0 ? arguments[5] : { silent: !1 }, o = [e, t];
|
|
2559
2375
|
e.indexOf(".") > -1 && (o = e.split("."), r = n, n = t, t = o[1]), this.addNamespaces(t);
|
|
2560
|
-
var s =
|
|
2561
|
-
r ?
|
|
2376
|
+
var s = mt(this.data, o) || {};
|
|
2377
|
+
r ? gt(s, n, i) : s = E({}, s, n), ft(this.data, o, s), a.silent || this.emit("added", e, t, n);
|
|
2562
2378
|
}
|
|
2563
2379
|
},
|
|
2564
2380
|
{
|
|
@@ -2592,7 +2408,7 @@ var St = typeof window < "u" && window.navigator && window.navigator.userAgent &
|
|
|
2592
2408
|
}
|
|
2593
2409
|
}
|
|
2594
2410
|
]), t;
|
|
2595
|
-
}(
|
|
2411
|
+
}(st), St = {
|
|
2596
2412
|
processors: {},
|
|
2597
2413
|
addPostProcessor: function(e) {
|
|
2598
2414
|
this.processors[e.name] = e;
|
|
@@ -2603,11 +2419,11 @@ var St = typeof window < "u" && window.navigator && window.navigator.userAgent &
|
|
|
2603
2419
|
a.processors[e] && (t = a.processors[e].process(t, n, r, i));
|
|
2604
2420
|
}), t;
|
|
2605
2421
|
}
|
|
2606
|
-
},
|
|
2607
|
-
|
|
2422
|
+
}, Ct = {}, wt = function(e) {
|
|
2423
|
+
at(t, e);
|
|
2608
2424
|
function t(e) {
|
|
2609
2425
|
var n, r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
2610
|
-
return D(this, t), n =
|
|
2426
|
+
return D(this, t), n = nt(this, rt(t).call(this)), bt && st.call(k(n)), ut([
|
|
2611
2427
|
"resourceStore",
|
|
2612
2428
|
"languageUtils",
|
|
2613
2429
|
"pluralResolver",
|
|
@@ -2728,7 +2544,7 @@ var St = typeof window < "u" && window.navigator && window.navigator.userAgent &
|
|
|
2728
2544
|
}, n)), n.interpolation && this.interpolator.reset();
|
|
2729
2545
|
}
|
|
2730
2546
|
var f = n.postProcess || this.options.postProcess, p = typeof f == "string" ? [f] : f;
|
|
2731
|
-
return e != null && p && p.length && n.applyPostProcessor !== !1 && (e =
|
|
2547
|
+
return e != null && p && p.length && n.applyPostProcessor !== !1 && (e = St.handle(p, e, t, this.options && this.options.postProcessPassResolved ? E({ i18nResolved: r }, n) : n, this)), e;
|
|
2732
2548
|
}
|
|
2733
2549
|
},
|
|
2734
2550
|
{
|
|
@@ -2743,7 +2559,7 @@ var St = typeof window < "u" && window.navigator && window.navigator.userAgent &
|
|
|
2743
2559
|
t.options.fallbackNS && (u = u.concat(t.options.fallbackNS));
|
|
2744
2560
|
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);
|
|
2745
2561
|
u.forEach(function(e) {
|
|
2746
|
-
t.isValidLookup(r) || (s = e, !
|
|
2562
|
+
t.isValidLookup(r) || (s = e, !Ct[`${p[0]}-${e}`] && t.utils && t.utils.hasLoadedNamespace && !t.utils.hasLoadedNamespace(s) && (Ct[`${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) {
|
|
2747
2563
|
if (!t.isValidLookup(r)) {
|
|
2748
2564
|
o = i;
|
|
2749
2565
|
var s = l, c = [s];
|
|
@@ -2787,11 +2603,11 @@ var St = typeof window < "u" && window.navigator && window.navigator.userAgent &
|
|
|
2787
2603
|
return !1;
|
|
2788
2604
|
}
|
|
2789
2605
|
}]), t;
|
|
2790
|
-
}(
|
|
2791
|
-
function
|
|
2606
|
+
}(st);
|
|
2607
|
+
function Tt(e) {
|
|
2792
2608
|
return e.charAt(0).toUpperCase() + e.slice(1);
|
|
2793
2609
|
}
|
|
2794
|
-
var
|
|
2610
|
+
var Et = function() {
|
|
2795
2611
|
function e(t) {
|
|
2796
2612
|
D(this, e), this.options = t, this.whitelist = this.options.supportedLngs || !1, this.supportedLngs = this.options.supportedLngs || !1, this.logger = A.create("languageUtils");
|
|
2797
2613
|
}
|
|
@@ -2827,7 +2643,7 @@ var Ot = function() {
|
|
|
2827
2643
|
], n = e.split("-");
|
|
2828
2644
|
return this.options.lowerCaseLng ? n = n.map(function(e) {
|
|
2829
2645
|
return e.toLowerCase();
|
|
2830
|
-
}) : n.length === 2 ? (n[0] = n[0].toLowerCase(), n[1] = n[1].toUpperCase(), t.indexOf(n[1].toLowerCase()) > -1 && (n[1] =
|
|
2646
|
+
}) : n.length === 2 ? (n[0] = n[0].toLowerCase(), n[1] = n[1].toUpperCase(), t.indexOf(n[1].toLowerCase()) > -1 && (n[1] = Tt(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] = Tt(n[1].toLowerCase())), t.indexOf(n[2].toLowerCase()) > -1 && (n[2] = Tt(n[2].toLowerCase()))), n.join("-");
|
|
2831
2647
|
}
|
|
2832
2648
|
return this.options.cleanCode || this.options.lowerCaseLng ? e.toLowerCase() : e;
|
|
2833
2649
|
}
|
|
@@ -2888,7 +2704,7 @@ var Ot = function() {
|
|
|
2888
2704
|
}
|
|
2889
2705
|
}
|
|
2890
2706
|
]), e;
|
|
2891
|
-
}(),
|
|
2707
|
+
}(), Dt = [
|
|
2892
2708
|
{
|
|
2893
2709
|
lngs: [
|
|
2894
2710
|
"ach",
|
|
@@ -3129,7 +2945,7 @@ var Ot = function() {
|
|
|
3129
2945
|
],
|
|
3130
2946
|
fc: 22
|
|
3131
2947
|
}
|
|
3132
|
-
],
|
|
2948
|
+
], Ot = {
|
|
3133
2949
|
1: function(e) {
|
|
3134
2950
|
return Number(e > 1);
|
|
3135
2951
|
},
|
|
@@ -3197,21 +3013,21 @@ var Ot = function() {
|
|
|
3197
3013
|
return Number(e == 1 ? 0 : e == 2 ? 1 : (e < 0 || e > 10) && e % 10 == 0 ? 2 : 3);
|
|
3198
3014
|
}
|
|
3199
3015
|
};
|
|
3200
|
-
function
|
|
3016
|
+
function kt() {
|
|
3201
3017
|
var e = {};
|
|
3202
|
-
return
|
|
3018
|
+
return Dt.forEach(function(t) {
|
|
3203
3019
|
t.lngs.forEach(function(n) {
|
|
3204
3020
|
e[n] = {
|
|
3205
3021
|
numbers: t.nr,
|
|
3206
|
-
plurals:
|
|
3022
|
+
plurals: Ot[t.fc]
|
|
3207
3023
|
};
|
|
3208
3024
|
});
|
|
3209
3025
|
}), e;
|
|
3210
3026
|
}
|
|
3211
|
-
var
|
|
3027
|
+
var At = function() {
|
|
3212
3028
|
function e(t) {
|
|
3213
3029
|
var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
3214
|
-
D(this, e), this.languageUtils = t, this.options = n, this.logger = A.create("pluralResolver"), this.rules =
|
|
3030
|
+
D(this, e), this.languageUtils = t, this.options = n, this.logger = A.create("pluralResolver"), this.rules = kt();
|
|
3215
3031
|
}
|
|
3216
3032
|
return O(e, [
|
|
3217
3033
|
{
|
|
@@ -3266,7 +3082,7 @@ var Mt = function() {
|
|
|
3266
3082
|
}
|
|
3267
3083
|
}
|
|
3268
3084
|
]), e;
|
|
3269
|
-
}(),
|
|
3085
|
+
}(), jt = function() {
|
|
3270
3086
|
function e() {
|
|
3271
3087
|
var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
3272
3088
|
D(this, e), this.logger = A.create("interpolator"), this.options = t, this.format = t.interpolation && t.interpolation.format || function(e) {
|
|
@@ -3280,7 +3096,7 @@ var Mt = function() {
|
|
|
3280
3096
|
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
3281
3097
|
e.interpolation || (e.interpolation = { escapeValue: !0 });
|
|
3282
3098
|
var t = e.interpolation;
|
|
3283
|
-
this.escape = t.escape === void 0 ?
|
|
3099
|
+
this.escape = t.escape === void 0 ? yt : t.escape, this.escapeValue = t.escapeValue === void 0 ? !0 : t.escapeValue, this.useRawValueToEscape = t.useRawValueToEscape === void 0 ? !1 : t.useRawValueToEscape, this.prefix = t.prefix ? _t(t.prefix) : t.prefixEscaped || "{{", this.suffix = t.suffix ? _t(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 ? _t(t.nestingPrefix) : t.nestingPrefixEscaped || _t("$t("), this.nestingSuffix = t.nestingSuffix ? _t(t.nestingSuffix) : t.nestingSuffixEscaped || _t(")"), this.nestingOptionsSeparator = t.nestingOptionsSeparator ? t.nestingOptionsSeparator : t.nestingOptionsSeparator || ",", this.maxReplaces = t.maxReplaces ? t.maxReplaces : 1e3, this.alwaysFormat = t.alwaysFormat === void 0 ? !1 : t.alwaysFormat, this.resetRegExp();
|
|
3284
3100
|
}
|
|
3285
3101
|
},
|
|
3286
3102
|
{
|
|
@@ -3309,11 +3125,11 @@ var Mt = function() {
|
|
|
3309
3125
|
}
|
|
3310
3126
|
var u = function(e) {
|
|
3311
3127
|
if (e.indexOf(i.formatSeparator) < 0) {
|
|
3312
|
-
var a =
|
|
3128
|
+
var a = ht(t, c, e);
|
|
3313
3129
|
return i.alwaysFormat ? i.format(a, void 0, n) : a;
|
|
3314
3130
|
}
|
|
3315
3131
|
var o = e.split(i.formatSeparator), s = o.shift().trim(), l = o.join(i.formatSeparator).trim();
|
|
3316
|
-
return i.format(
|
|
3132
|
+
return i.format(ht(t, c, s), l, n, r);
|
|
3317
3133
|
};
|
|
3318
3134
|
this.resetRegExp();
|
|
3319
3135
|
var d = r && r.missingInterpolationHandler || this.options.missingInterpolationHandler, f = r && r.interpolation && r.interpolation.skipOnVariables || this.options.interpolation.skipOnVariables;
|
|
@@ -3336,7 +3152,7 @@ var Mt = function() {
|
|
|
3336
3152
|
o = a[0];
|
|
3337
3153
|
continue;
|
|
3338
3154
|
} else i.logger.warn(`missed to pass in variable ${a[1]} for interpolating ${e}`), o = "";
|
|
3339
|
-
else typeof o != "string" && !i.useRawValueToEscape && (o =
|
|
3155
|
+
else typeof o != "string" && !i.useRawValueToEscape && (o = lt(o));
|
|
3340
3156
|
if (e = e.replace(a[0], t.safeValue(o)), t.regex.lastIndex = 0, s++, s >= i.maxReplaces) break;
|
|
3341
3157
|
}
|
|
3342
3158
|
}), e;
|
|
@@ -3368,7 +3184,7 @@ var Mt = function() {
|
|
|
3368
3184
|
i[1] = u.shift(), c = u, l = !0;
|
|
3369
3185
|
}
|
|
3370
3186
|
if (a = t(s.call(this, i[1].trim(), o), o), a && i[0] === e && typeof a != "string") return a;
|
|
3371
|
-
typeof a != "string" && (a =
|
|
3187
|
+
typeof a != "string" && (a = lt(a)), a || (this.logger.warn(`missed to resolve ${i[1]} for nesting ${e}`), a = ""), l && (a = c.reduce(function(e, t) {
|
|
3372
3188
|
return n.format(e, t, r.lng, r);
|
|
3373
3189
|
}, a.trim())), e = e.replace(i[0], a), this.regexp.lastIndex = 0;
|
|
3374
3190
|
}
|
|
@@ -3377,14 +3193,14 @@ var Mt = function() {
|
|
|
3377
3193
|
}
|
|
3378
3194
|
]), e;
|
|
3379
3195
|
}();
|
|
3380
|
-
function
|
|
3196
|
+
function Mt(e, t) {
|
|
3381
3197
|
for (var n = e.indexOf(t); n !== -1;) e.splice(n, 1), n = e.indexOf(t);
|
|
3382
3198
|
}
|
|
3383
|
-
var
|
|
3384
|
-
|
|
3199
|
+
var Nt = function(e) {
|
|
3200
|
+
at(t, e);
|
|
3385
3201
|
function t(e, n, r) {
|
|
3386
3202
|
var i, a = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {};
|
|
3387
|
-
return D(this, t), i =
|
|
3203
|
+
return D(this, t), i = nt(this, rt(t).call(this)), bt && st.call(k(i)), i.backend = e, i.store = n, i.services = r, i.languageUtils = r.languageUtils, i.options = a, i.logger = A.create("backendConnector"), i.state = {}, i.queue = [], i.backend && i.backend.init && i.backend.init(r, a.backend, a), i;
|
|
3388
3204
|
}
|
|
3389
3205
|
return O(t, [
|
|
3390
3206
|
{
|
|
@@ -3417,7 +3233,7 @@ var Ft = function(e) {
|
|
|
3417
3233
|
t && this.emit("failedLoading", i, a, t), n && this.store.addResourceBundle(i, a, n), this.state[e] = t ? -1 : 2;
|
|
3418
3234
|
var o = {};
|
|
3419
3235
|
this.queue.forEach(function(n) {
|
|
3420
|
-
|
|
3236
|
+
pt(n.loaded, [i], a), Mt(n.pending, e), t && n.errors.push(t), n.pending.length === 0 && !n.done && (Object.keys(n.loaded).forEach(function(e) {
|
|
3421
3237
|
o[e] || (o[e] = []), n.loaded[e].length && n.loaded[e].forEach(function(t) {
|
|
3422
3238
|
o[e].indexOf(t) < 0 && o[e].push(t);
|
|
3423
3239
|
});
|
|
@@ -3488,8 +3304,8 @@ var Ft = function(e) {
|
|
|
3488
3304
|
}
|
|
3489
3305
|
}
|
|
3490
3306
|
]), t;
|
|
3491
|
-
}(
|
|
3492
|
-
function
|
|
3307
|
+
}(st);
|
|
3308
|
+
function Pt() {
|
|
3493
3309
|
return {
|
|
3494
3310
|
debug: !1,
|
|
3495
3311
|
initImmediate: !0,
|
|
@@ -3552,16 +3368,16 @@ function It() {
|
|
|
3552
3368
|
}
|
|
3553
3369
|
};
|
|
3554
3370
|
}
|
|
3555
|
-
function
|
|
3371
|
+
function Ft(e) {
|
|
3556
3372
|
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;
|
|
3557
3373
|
}
|
|
3558
|
-
function
|
|
3559
|
-
var
|
|
3560
|
-
|
|
3374
|
+
function It() {}
|
|
3375
|
+
var Lt = new (function(e) {
|
|
3376
|
+
at(t, e);
|
|
3561
3377
|
function t() {
|
|
3562
3378
|
var e, n = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, r = arguments.length > 1 ? arguments[1] : void 0;
|
|
3563
|
-
if (D(this, t), e =
|
|
3564
|
-
if (!e.options.initImmediate) return e.init(n, r),
|
|
3379
|
+
if (D(this, t), e = nt(this, rt(t).call(this)), bt && st.call(k(e)), e.options = Ft(n), e.services = {}, e.logger = A, e.modules = { external: [] }, r && !e.isInitialized && !n.isClone) {
|
|
3380
|
+
if (!e.options.initImmediate) return e.init(n, r), nt(e, k(e));
|
|
3565
3381
|
setTimeout(function() {
|
|
3566
3382
|
e.init(n, r);
|
|
3567
3383
|
}, 0);
|
|
@@ -3573,23 +3389,23 @@ var zt = new (function(e) {
|
|
|
3573
3389
|
key: "init",
|
|
3574
3390
|
value: function() {
|
|
3575
3391
|
var e = this, t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, n = arguments.length > 1 ? arguments[1] : void 0;
|
|
3576
|
-
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 = E({},
|
|
3392
|
+
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 = E({}, Pt(), this.options, Ft(t)), this.format = this.options.interpolation.format, n || (n = It);
|
|
3577
3393
|
function r(e) {
|
|
3578
3394
|
return e ? typeof e == "function" ? new e() : e : null;
|
|
3579
3395
|
}
|
|
3580
3396
|
if (!this.options.isClone) {
|
|
3581
3397
|
this.modules.logger ? A.init(r(this.modules.logger), this.options) : A.init(null, this.options);
|
|
3582
|
-
var i = new
|
|
3583
|
-
this.store = new
|
|
3398
|
+
var i = new Et(this.options);
|
|
3399
|
+
this.store = new xt(this.options.resources, this.options);
|
|
3584
3400
|
var a = this.services;
|
|
3585
|
-
a.logger = A, a.resourceStore = this.store, a.languageUtils = i, a.pluralResolver = new
|
|
3401
|
+
a.logger = A, a.resourceStore = this.store, a.languageUtils = i, a.pluralResolver = new At(i, {
|
|
3586
3402
|
prepend: this.options.pluralSeparator,
|
|
3587
3403
|
compatibilityJSON: this.options.compatibilityJSON,
|
|
3588
3404
|
simplifyPluralSuffix: this.options.simplifyPluralSuffix
|
|
3589
|
-
}), a.interpolator = new
|
|
3405
|
+
}), a.interpolator = new jt(this.options), a.utils = { hasLoadedNamespace: this.hasLoadedNamespace.bind(this) }, a.backendConnector = new Nt(r(this.modules.backend), a.resourceStore, a, this.options), a.backendConnector.on("*", function(t) {
|
|
3590
3406
|
var n = [...arguments].slice(1);
|
|
3591
3407
|
e.emit.apply(e, [t].concat(n));
|
|
3592
|
-
}), 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
|
|
3408
|
+
}), 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 wt(this.services, this.options), this.translator.on("*", function(t) {
|
|
3593
3409
|
var n = [...arguments].slice(1);
|
|
3594
3410
|
e.emit.apply(e, [t].concat(n));
|
|
3595
3411
|
}), this.modules.external.forEach(function(t) {
|
|
@@ -3621,7 +3437,7 @@ var zt = new (function(e) {
|
|
|
3621
3437
|
return (n = e.store)[t].apply(n, arguments), e;
|
|
3622
3438
|
};
|
|
3623
3439
|
});
|
|
3624
|
-
var s =
|
|
3440
|
+
var s = ct(), c = function() {
|
|
3625
3441
|
var t = function(t, r) {
|
|
3626
3442
|
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);
|
|
3627
3443
|
};
|
|
@@ -3634,7 +3450,7 @@ var zt = new (function(e) {
|
|
|
3634
3450
|
{
|
|
3635
3451
|
key: "loadResources",
|
|
3636
3452
|
value: function(e) {
|
|
3637
|
-
var t = this, n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] :
|
|
3453
|
+
var t = this, n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : It, r = typeof e == "string" ? e : this.language;
|
|
3638
3454
|
if (typeof e == "function" && (n = e), !this.options.resources || this.options.partialBundledLanguages) {
|
|
3639
3455
|
if (r && r.toLowerCase() === "cimode") return n();
|
|
3640
3456
|
var i = [], a = function(e) {
|
|
@@ -3653,8 +3469,8 @@ var zt = new (function(e) {
|
|
|
3653
3469
|
{
|
|
3654
3470
|
key: "reloadResources",
|
|
3655
3471
|
value: function(e, t, n) {
|
|
3656
|
-
var r =
|
|
3657
|
-
return e || (e = this.languages), t || (t = this.options.ns), n || (n =
|
|
3472
|
+
var r = ct();
|
|
3473
|
+
return e || (e = this.languages), t || (t = this.options.ns), n || (n = It), this.services.backendConnector.reload(e, t, function(e) {
|
|
3658
3474
|
r.resolve(), n(e);
|
|
3659
3475
|
}), r;
|
|
3660
3476
|
}
|
|
@@ -3664,7 +3480,7 @@ var zt = new (function(e) {
|
|
|
3664
3480
|
value: function(e) {
|
|
3665
3481
|
if (!e) throw Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");
|
|
3666
3482
|
if (!e.type) throw Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");
|
|
3667
|
-
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" &&
|
|
3483
|
+
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" && St.addPostProcessor(e), e.type === "3rdParty" && this.modules.external.push(e), this;
|
|
3668
3484
|
}
|
|
3669
3485
|
},
|
|
3670
3486
|
{
|
|
@@ -3672,7 +3488,7 @@ var zt = new (function(e) {
|
|
|
3672
3488
|
value: function(e, t) {
|
|
3673
3489
|
var n = this;
|
|
3674
3490
|
this.isLanguageChangingTo = e;
|
|
3675
|
-
var r =
|
|
3491
|
+
var r = ct();
|
|
3676
3492
|
this.emit("languageChanging", e);
|
|
3677
3493
|
var i = function(e, i) {
|
|
3678
3494
|
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() {
|
|
@@ -3745,7 +3561,7 @@ var zt = new (function(e) {
|
|
|
3745
3561
|
{
|
|
3746
3562
|
key: "loadNamespaces",
|
|
3747
3563
|
value: function(e, t) {
|
|
3748
|
-
var n = this, r =
|
|
3564
|
+
var n = this, r = ct();
|
|
3749
3565
|
return this.options.ns ? (typeof e == "string" && (e = [e]), e.forEach(function(e) {
|
|
3750
3566
|
n.options.ns.indexOf(e) < 0 && n.options.ns.push(e);
|
|
3751
3567
|
}), this.loadResources(function(e) {
|
|
@@ -3756,7 +3572,7 @@ var zt = new (function(e) {
|
|
|
3756
3572
|
{
|
|
3757
3573
|
key: "loadLanguages",
|
|
3758
3574
|
value: function(e, t) {
|
|
3759
|
-
var n =
|
|
3575
|
+
var n = ct();
|
|
3760
3576
|
typeof e == "string" && (e = [e]);
|
|
3761
3577
|
var r = this.options.preload || [], i = e.filter(function(e) {
|
|
3762
3578
|
return r.indexOf(e) < 0;
|
|
@@ -3781,64 +3597,64 @@ var zt = new (function(e) {
|
|
|
3781
3597
|
{
|
|
3782
3598
|
key: "cloneInstance",
|
|
3783
3599
|
value: function() {
|
|
3784
|
-
var e = this, n = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] :
|
|
3600
|
+
var e = this, n = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : It, i = E({}, this.options, n, { isClone: !0 }), a = new t(i);
|
|
3785
3601
|
return [
|
|
3786
3602
|
"store",
|
|
3787
3603
|
"services",
|
|
3788
3604
|
"language"
|
|
3789
3605
|
].forEach(function(t) {
|
|
3790
3606
|
a[t] = e[t];
|
|
3791
|
-
}), a.services = E({}, this.services), a.services.utils = { hasLoadedNamespace: a.hasLoadedNamespace.bind(a) }, a.translator = new
|
|
3607
|
+
}), a.services = E({}, this.services), a.services.utils = { hasLoadedNamespace: a.hasLoadedNamespace.bind(a) }, a.translator = new wt(a.services, a.options), a.translator.on("*", function(e) {
|
|
3792
3608
|
var t = [...arguments].slice(1);
|
|
3793
3609
|
a.emit.apply(a, [e].concat(t));
|
|
3794
3610
|
}), a.init(i, r), a.translator.options = a.options, a.translator.backendConnector.services.utils = { hasLoadedNamespace: a.hasLoadedNamespace.bind(a) }, a;
|
|
3795
3611
|
}
|
|
3796
3612
|
}
|
|
3797
3613
|
]), t;
|
|
3798
|
-
}(
|
|
3799
|
-
Object.freeze(
|
|
3800
|
-
var
|
|
3801
|
-
Object.freeze(
|
|
3614
|
+
}(st))(), Rt = "An invariant failed, however the error is obfuscated because this is a production build.", zt = [];
|
|
3615
|
+
Object.freeze(zt);
|
|
3616
|
+
var Bt = {};
|
|
3617
|
+
Object.freeze(Bt);
|
|
3802
3618
|
function j() {
|
|
3803
3619
|
return ++V.mobxGuid;
|
|
3804
3620
|
}
|
|
3805
3621
|
function M(e) {
|
|
3806
|
-
throw
|
|
3622
|
+
throw Vt(!1, e), "X";
|
|
3807
3623
|
}
|
|
3808
|
-
function
|
|
3809
|
-
if (!e) throw Error("[mobx] " + (t ||
|
|
3624
|
+
function Vt(e, t) {
|
|
3625
|
+
if (!e) throw Error("[mobx] " + (t || Rt));
|
|
3810
3626
|
}
|
|
3811
|
-
function
|
|
3627
|
+
function Ht(e) {
|
|
3812
3628
|
var t = !1;
|
|
3813
3629
|
return function() {
|
|
3814
3630
|
if (!t) return t = !0, e.apply(this, arguments);
|
|
3815
3631
|
};
|
|
3816
3632
|
}
|
|
3817
|
-
var
|
|
3818
|
-
function
|
|
3633
|
+
var Ut = function() {};
|
|
3634
|
+
function Wt(e) {
|
|
3819
3635
|
var t = [];
|
|
3820
3636
|
return e.forEach(function(e) {
|
|
3821
3637
|
t.indexOf(e) === -1 && t.push(e);
|
|
3822
3638
|
}), t;
|
|
3823
3639
|
}
|
|
3824
|
-
function
|
|
3640
|
+
function Gt(e) {
|
|
3825
3641
|
return typeof e == "object" && !!e;
|
|
3826
3642
|
}
|
|
3827
|
-
function
|
|
3643
|
+
function Kt(e) {
|
|
3828
3644
|
if (typeof e != "object" || !e) return !1;
|
|
3829
3645
|
var t = Object.getPrototypeOf(e);
|
|
3830
3646
|
return t === Object.prototype || t === null;
|
|
3831
3647
|
}
|
|
3832
|
-
function
|
|
3833
|
-
if (
|
|
3648
|
+
function qt(e) {
|
|
3649
|
+
if (Zt(e) || Q(e)) return e;
|
|
3834
3650
|
if (Array.isArray(e)) return new Map(e);
|
|
3835
|
-
if (
|
|
3651
|
+
if (Kt(e)) {
|
|
3836
3652
|
var t = /* @__PURE__ */ new Map();
|
|
3837
3653
|
for (var n in e) t.set(n, e[n]);
|
|
3838
3654
|
return t;
|
|
3839
3655
|
} else return M("Cannot convert to map from '" + e + "'");
|
|
3840
3656
|
}
|
|
3841
|
-
function
|
|
3657
|
+
function Jt(e, t, n) {
|
|
3842
3658
|
Object.defineProperty(e, t, {
|
|
3843
3659
|
enumerable: !1,
|
|
3844
3660
|
writable: !0,
|
|
@@ -3846,7 +3662,7 @@ function Xt(e, t, n) {
|
|
|
3846
3662
|
value: n
|
|
3847
3663
|
});
|
|
3848
3664
|
}
|
|
3849
|
-
function
|
|
3665
|
+
function Yt(e, t, n) {
|
|
3850
3666
|
Object.defineProperty(e, t, {
|
|
3851
3667
|
enumerable: !1,
|
|
3852
3668
|
writable: !1,
|
|
@@ -3854,23 +3670,23 @@ function Zt(e, t, n) {
|
|
|
3854
3670
|
value: n
|
|
3855
3671
|
});
|
|
3856
3672
|
}
|
|
3857
|
-
function
|
|
3673
|
+
function Xt(e, t) {
|
|
3858
3674
|
var n = Object.getOwnPropertyDescriptor(e, t);
|
|
3859
3675
|
return !n || n.configurable !== !1 && n.writable !== !1;
|
|
3860
3676
|
}
|
|
3861
3677
|
function N(e, t) {
|
|
3862
3678
|
var n = "isMobX" + e;
|
|
3863
3679
|
return t.prototype[n] = !0, function(e) {
|
|
3864
|
-
return
|
|
3680
|
+
return Gt(e) && e[n] === !0;
|
|
3865
3681
|
};
|
|
3866
3682
|
}
|
|
3867
|
-
function
|
|
3683
|
+
function Zt(e) {
|
|
3868
3684
|
return e instanceof Map;
|
|
3869
3685
|
}
|
|
3870
|
-
function
|
|
3686
|
+
function Qt(e) {
|
|
3871
3687
|
return e instanceof Set;
|
|
3872
3688
|
}
|
|
3873
|
-
function
|
|
3689
|
+
function $t(e) {
|
|
3874
3690
|
var t = /* @__PURE__ */ new Set();
|
|
3875
3691
|
for (var n in e) t.add(n);
|
|
3876
3692
|
return Object.getOwnPropertySymbols(e).forEach(function(n) {
|
|
@@ -3880,12 +3696,12 @@ function tn(e) {
|
|
|
3880
3696
|
function P(e) {
|
|
3881
3697
|
return e && e.toString ? e.toString() : new String(e).toString();
|
|
3882
3698
|
}
|
|
3883
|
-
function
|
|
3699
|
+
function en(e) {
|
|
3884
3700
|
return e === null ? null : typeof e == "object" ? "" + e : e;
|
|
3885
3701
|
}
|
|
3886
|
-
var
|
|
3702
|
+
var tn = typeof Reflect < "u" && Reflect.ownKeys ? Reflect.ownKeys : Object.getOwnPropertySymbols ? function(e) {
|
|
3887
3703
|
return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e));
|
|
3888
|
-
} : /* istanbul ignore next */ Object.getOwnPropertyNames, F = Symbol("mobx administration"),
|
|
3704
|
+
} : /* istanbul ignore next */ Object.getOwnPropertyNames, F = Symbol("mobx administration"), nn = function() {
|
|
3889
3705
|
function e(e) {
|
|
3890
3706
|
e === void 0 && (e = "Atom@" + j()), this.name = e, this.isPendingUnobservation = !1, this.isBeingObserved = !1, this.observers = /* @__PURE__ */ new Set(), this.diffValue = 0, this.lastAccessedBy = 0, this.lowestObserverState = R.NOT_TRACKING;
|
|
3891
3707
|
}
|
|
@@ -3898,54 +3714,54 @@ var rn = typeof Reflect < "u" && Reflect.ownKeys ? Reflect.ownKeys : Object.getO
|
|
|
3898
3714
|
return e();
|
|
3899
3715
|
});
|
|
3900
3716
|
}, e.prototype.reportObserved = function() {
|
|
3901
|
-
return
|
|
3717
|
+
return Sr(this);
|
|
3902
3718
|
}, e.prototype.reportChanged = function() {
|
|
3903
|
-
H(),
|
|
3719
|
+
H(), Cr(this), U();
|
|
3904
3720
|
}, e.prototype.toString = function() {
|
|
3905
3721
|
return this.name;
|
|
3906
3722
|
}, e;
|
|
3907
|
-
}(),
|
|
3908
|
-
function
|
|
3909
|
-
t === void 0 && (t =
|
|
3910
|
-
var r = new
|
|
3911
|
-
return t !==
|
|
3723
|
+
}(), rn = N("Atom", nn);
|
|
3724
|
+
function an(e, t, n) {
|
|
3725
|
+
t === void 0 && (t = Ut), n === void 0 && (n = Ut);
|
|
3726
|
+
var r = new nn(e);
|
|
3727
|
+
return t !== Ut && Jr(r, t), n !== Ut && Yr(r, n), r;
|
|
3912
3728
|
}
|
|
3913
|
-
function
|
|
3729
|
+
function on(e, t) {
|
|
3914
3730
|
return e === t;
|
|
3915
3731
|
}
|
|
3916
|
-
function
|
|
3917
|
-
return
|
|
3732
|
+
function sn(e, t) {
|
|
3733
|
+
return Wi(e, t);
|
|
3918
3734
|
}
|
|
3919
|
-
function
|
|
3920
|
-
return
|
|
3735
|
+
function cn(e, t) {
|
|
3736
|
+
return Wi(e, t, 1);
|
|
3921
3737
|
}
|
|
3922
|
-
function
|
|
3738
|
+
function ln(e, t) {
|
|
3923
3739
|
return Object.is(e, t);
|
|
3924
3740
|
}
|
|
3925
|
-
var
|
|
3926
|
-
identity:
|
|
3927
|
-
structural:
|
|
3928
|
-
default:
|
|
3929
|
-
shallow:
|
|
3930
|
-
},
|
|
3931
|
-
return
|
|
3741
|
+
var un = {
|
|
3742
|
+
identity: on,
|
|
3743
|
+
structural: sn,
|
|
3744
|
+
default: ln,
|
|
3745
|
+
shallow: cn
|
|
3746
|
+
}, dn = function(e, t) {
|
|
3747
|
+
return dn = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(e, t) {
|
|
3932
3748
|
e.__proto__ = t;
|
|
3933
3749
|
} || function(e, t) {
|
|
3934
3750
|
for (var n in t) t.hasOwnProperty(n) && (e[n] = t[n]);
|
|
3935
|
-
},
|
|
3751
|
+
}, dn(e, t);
|
|
3936
3752
|
};
|
|
3937
|
-
function
|
|
3938
|
-
|
|
3753
|
+
function fn(e, t) {
|
|
3754
|
+
dn(e, t);
|
|
3939
3755
|
function n() {
|
|
3940
3756
|
this.constructor = e;
|
|
3941
3757
|
}
|
|
3942
3758
|
e.prototype = t === null ? Object.create(t) : (n.prototype = t.prototype, new n());
|
|
3943
3759
|
}
|
|
3944
|
-
var
|
|
3945
|
-
return
|
|
3760
|
+
var pn = function() {
|
|
3761
|
+
return pn = Object.assign || function(e) {
|
|
3946
3762
|
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]);
|
|
3947
3763
|
return e;
|
|
3948
|
-
},
|
|
3764
|
+
}, pn.apply(this, arguments);
|
|
3949
3765
|
};
|
|
3950
3766
|
function I(e) {
|
|
3951
3767
|
var t = typeof Symbol == "function" && e[Symbol.iterator], n = 0;
|
|
@@ -3956,7 +3772,7 @@ function I(e) {
|
|
|
3956
3772
|
};
|
|
3957
3773
|
} };
|
|
3958
3774
|
}
|
|
3959
|
-
function
|
|
3775
|
+
function mn(e, t) {
|
|
3960
3776
|
var n = typeof Symbol == "function" && e[Symbol.iterator];
|
|
3961
3777
|
if (!n) return e;
|
|
3962
3778
|
var r = n.call(e), i, a = [], o;
|
|
@@ -3973,31 +3789,31 @@ function gn(e, t) {
|
|
|
3973
3789
|
}
|
|
3974
3790
|
return a;
|
|
3975
3791
|
}
|
|
3976
|
-
function
|
|
3977
|
-
for (var e = [], t = 0; t < arguments.length; t++) e = e.concat(
|
|
3792
|
+
function hn() {
|
|
3793
|
+
for (var e = [], t = 0; t < arguments.length; t++) e = e.concat(mn(arguments[t]));
|
|
3978
3794
|
return e;
|
|
3979
3795
|
}
|
|
3980
|
-
var
|
|
3981
|
-
function
|
|
3982
|
-
var n = t ?
|
|
3796
|
+
var gn = Symbol("mobx did run lazy initializers"), _n = Symbol("mobx pending decorators"), vn = {}, yn = {};
|
|
3797
|
+
function bn(e, t) {
|
|
3798
|
+
var n = t ? vn : yn;
|
|
3983
3799
|
return n[e] || (n[e] = {
|
|
3984
3800
|
configurable: !0,
|
|
3985
3801
|
enumerable: t,
|
|
3986
3802
|
get: function() {
|
|
3987
|
-
return
|
|
3803
|
+
return xn(this), this[e];
|
|
3988
3804
|
},
|
|
3989
3805
|
set: function(t) {
|
|
3990
|
-
|
|
3806
|
+
xn(this), this[e] = t;
|
|
3991
3807
|
}
|
|
3992
3808
|
});
|
|
3993
3809
|
}
|
|
3994
|
-
function
|
|
3810
|
+
function xn(e) {
|
|
3995
3811
|
var t, n;
|
|
3996
|
-
if (e[
|
|
3997
|
-
var r = e[
|
|
3812
|
+
if (e[gn] !== !0) {
|
|
3813
|
+
var r = e[_n];
|
|
3998
3814
|
if (r) {
|
|
3999
|
-
|
|
4000
|
-
var i =
|
|
3815
|
+
Jt(e, gn, !0);
|
|
3816
|
+
var i = hn(Object.getOwnPropertySymbols(r), Object.keys(r));
|
|
4001
3817
|
try {
|
|
4002
3818
|
for (var a = I(i), o = a.next(); !o.done; o = a.next()) {
|
|
4003
3819
|
var s = r[o.value];
|
|
@@ -4015,137 +3831,137 @@ function Cn(e) {
|
|
|
4015
3831
|
}
|
|
4016
3832
|
}
|
|
4017
3833
|
}
|
|
4018
|
-
function
|
|
3834
|
+
function Sn(e, t) {
|
|
4019
3835
|
return function() {
|
|
4020
3836
|
var n, r = function(r, i, a, o) {
|
|
4021
3837
|
if (o === !0) return t(r, i, a, r, n), null;
|
|
4022
|
-
if (!Object.prototype.hasOwnProperty.call(r,
|
|
4023
|
-
var s = r[
|
|
4024
|
-
|
|
3838
|
+
if (!Object.prototype.hasOwnProperty.call(r, _n)) {
|
|
3839
|
+
var s = r[_n];
|
|
3840
|
+
Jt(r, _n, pn({}, s));
|
|
4025
3841
|
}
|
|
4026
|
-
return r[
|
|
3842
|
+
return r[_n][i] = {
|
|
4027
3843
|
prop: i,
|
|
4028
3844
|
propertyCreator: t,
|
|
4029
3845
|
descriptor: a,
|
|
4030
3846
|
decoratorTarget: r,
|
|
4031
3847
|
decoratorArguments: n
|
|
4032
|
-
},
|
|
3848
|
+
}, bn(i, e);
|
|
4033
3849
|
};
|
|
4034
|
-
return
|
|
3850
|
+
return Cn(arguments) ? (n = zt, r.apply(null, arguments)) : (n = Array.prototype.slice.call(arguments), r);
|
|
4035
3851
|
};
|
|
4036
3852
|
}
|
|
4037
|
-
function
|
|
3853
|
+
function Cn(e) {
|
|
4038
3854
|
return (e.length === 2 || e.length === 3) && (typeof e[1] == "string" || typeof e[1] == "symbol") || e.length === 4 && e[3] === !0;
|
|
4039
3855
|
}
|
|
4040
|
-
function
|
|
4041
|
-
return
|
|
3856
|
+
function wn(e, t, n) {
|
|
3857
|
+
return ai(e) ? e : Array.isArray(e) ? L.array(e, { name: n }) : Kt(e) ? L.object(e, void 0, { name: n }) : Zt(e) ? L.map(e, { name: n }) : Qt(e) ? L.set(e, { name: n }) : e;
|
|
4042
3858
|
}
|
|
4043
|
-
function
|
|
4044
|
-
return e == null ||
|
|
3859
|
+
function Tn(e, t, n) {
|
|
3860
|
+
return e == null || zi(e) || wi(e) || Q(e) || $(e) ? e : Array.isArray(e) ? L.array(e, {
|
|
4045
3861
|
name: n,
|
|
4046
3862
|
deep: !1
|
|
4047
|
-
}) :
|
|
3863
|
+
}) : Kt(e) ? L.object(e, void 0, {
|
|
4048
3864
|
name: n,
|
|
4049
3865
|
deep: !1
|
|
4050
|
-
}) :
|
|
3866
|
+
}) : Zt(e) ? L.map(e, {
|
|
4051
3867
|
name: n,
|
|
4052
3868
|
deep: !1
|
|
4053
|
-
}) :
|
|
3869
|
+
}) : Qt(e) ? L.set(e, {
|
|
4054
3870
|
name: n,
|
|
4055
3871
|
deep: !1
|
|
4056
3872
|
}) : M(!1);
|
|
4057
3873
|
}
|
|
4058
|
-
function
|
|
3874
|
+
function En(e) {
|
|
4059
3875
|
return e;
|
|
4060
3876
|
}
|
|
4061
|
-
function
|
|
4062
|
-
return
|
|
3877
|
+
function Dn(e, t, n) {
|
|
3878
|
+
return Wi(e, t) ? t : e;
|
|
4063
3879
|
}
|
|
4064
|
-
function
|
|
4065
|
-
|
|
4066
|
-
var t =
|
|
3880
|
+
function On(e) {
|
|
3881
|
+
Vt(e);
|
|
3882
|
+
var t = Sn(!0, function(t, n, r, i, a) {
|
|
4067
3883
|
var o = r ? r.initializer ? r.initializer.call(t) : r.value : void 0;
|
|
4068
|
-
|
|
3884
|
+
Mi(t).addObservableProp(n, o, e);
|
|
4069
3885
|
}), n = (typeof process < "u" && process.env, t);
|
|
4070
3886
|
return n.enhancer = e, n;
|
|
4071
3887
|
}
|
|
4072
|
-
var
|
|
3888
|
+
var kn = {
|
|
4073
3889
|
deep: !0,
|
|
4074
3890
|
name: void 0,
|
|
4075
3891
|
defaultDecorator: void 0,
|
|
4076
3892
|
proxy: !0
|
|
4077
3893
|
};
|
|
4078
|
-
Object.freeze(
|
|
4079
|
-
function
|
|
4080
|
-
return e == null ?
|
|
3894
|
+
Object.freeze(kn);
|
|
3895
|
+
function An(e) {
|
|
3896
|
+
return e == null ? kn : typeof e == "string" ? {
|
|
4081
3897
|
name: e,
|
|
4082
3898
|
deep: !0,
|
|
4083
3899
|
proxy: !0
|
|
4084
3900
|
} : e;
|
|
4085
3901
|
}
|
|
4086
|
-
var
|
|
4087
|
-
function
|
|
4088
|
-
return e.defaultDecorator ? e.defaultDecorator.enhancer : e.deep === !1 ?
|
|
3902
|
+
var jn = On(wn), Mn = On(Tn), Nn = On(En), Pn = On(Dn);
|
|
3903
|
+
function Fn(e) {
|
|
3904
|
+
return e.defaultDecorator ? e.defaultDecorator.enhancer : e.deep === !1 ? En : wn;
|
|
4089
3905
|
}
|
|
4090
|
-
function
|
|
4091
|
-
if (typeof arguments[1] == "string" || typeof arguments[1] == "symbol") return
|
|
4092
|
-
if (
|
|
4093
|
-
var r =
|
|
3906
|
+
function In(e, t, n) {
|
|
3907
|
+
if (typeof arguments[1] == "string" || typeof arguments[1] == "symbol") return jn.apply(null, arguments);
|
|
3908
|
+
if (ai(e)) return e;
|
|
3909
|
+
var r = Kt(e) ? L.object(e, t, n) : Array.isArray(e) ? L.array(e, t) : Zt(e) ? L.map(e, t) : Qt(e) ? L.set(e, t) : e;
|
|
4094
3910
|
if (r !== e) return r;
|
|
4095
3911
|
M(!1);
|
|
4096
3912
|
}
|
|
4097
|
-
var
|
|
3913
|
+
var Ln = {
|
|
4098
3914
|
box: function(e, t) {
|
|
4099
|
-
arguments.length > 2 &&
|
|
4100
|
-
var n =
|
|
4101
|
-
return new
|
|
3915
|
+
arguments.length > 2 && Rn("box");
|
|
3916
|
+
var n = An(t);
|
|
3917
|
+
return new lr(e, Fn(n), n.name, !0, n.equals);
|
|
4102
3918
|
},
|
|
4103
3919
|
array: function(e, t) {
|
|
4104
|
-
arguments.length > 2 &&
|
|
4105
|
-
var n =
|
|
4106
|
-
return
|
|
3920
|
+
arguments.length > 2 && Rn("array");
|
|
3921
|
+
var n = An(t);
|
|
3922
|
+
return xi(e, Fn(n), n.name);
|
|
4107
3923
|
},
|
|
4108
3924
|
map: function(e, t) {
|
|
4109
|
-
arguments.length > 2 &&
|
|
4110
|
-
var n =
|
|
4111
|
-
return new
|
|
3925
|
+
arguments.length > 2 && Rn("map");
|
|
3926
|
+
var n = An(t);
|
|
3927
|
+
return new Di(e, Fn(n), n.name);
|
|
4112
3928
|
},
|
|
4113
3929
|
set: function(e, t) {
|
|
4114
|
-
arguments.length > 2 &&
|
|
4115
|
-
var n =
|
|
4116
|
-
return new
|
|
3930
|
+
arguments.length > 2 && Rn("set");
|
|
3931
|
+
var n = An(t);
|
|
3932
|
+
return new Ai(e, Fn(n), n.name);
|
|
4117
3933
|
},
|
|
4118
3934
|
object: function(e, t, n) {
|
|
4119
|
-
typeof arguments[1] == "string" &&
|
|
4120
|
-
var r =
|
|
4121
|
-
if (r.proxy === !1) return
|
|
4122
|
-
var i =
|
|
4123
|
-
return
|
|
3935
|
+
typeof arguments[1] == "string" && Rn("object");
|
|
3936
|
+
var r = An(n);
|
|
3937
|
+
if (r.proxy === !1) return Qr({}, e, t, r);
|
|
3938
|
+
var i = $r(r), a = gi(Qr({}, void 0, void 0, r));
|
|
3939
|
+
return ei(a, e, t, i), a;
|
|
4124
3940
|
},
|
|
4125
|
-
ref:
|
|
4126
|
-
shallow:
|
|
4127
|
-
deep:
|
|
4128
|
-
struct:
|
|
4129
|
-
}, L =
|
|
4130
|
-
Object.keys(
|
|
4131
|
-
return L[e] =
|
|
3941
|
+
ref: Nn,
|
|
3942
|
+
shallow: Mn,
|
|
3943
|
+
deep: jn,
|
|
3944
|
+
struct: Pn
|
|
3945
|
+
}, L = In;
|
|
3946
|
+
Object.keys(Ln).forEach(function(e) {
|
|
3947
|
+
return L[e] = Ln[e];
|
|
4132
3948
|
});
|
|
4133
|
-
function
|
|
3949
|
+
function Rn(e) {
|
|
4134
3950
|
M("Expected one or two arguments to observable." + e + ". Did you accidentally try to use observable." + e + " as decorator?");
|
|
4135
3951
|
}
|
|
4136
|
-
var
|
|
3952
|
+
var zn = Sn(!1, function(e, t, n, r, i) {
|
|
4137
3953
|
var a = n.get, o = n.set, s = i[0] || {};
|
|
4138
|
-
|
|
3954
|
+
Mi(e).addComputedProp(e, t, pn({
|
|
4139
3955
|
get: a,
|
|
4140
3956
|
set: o,
|
|
4141
3957
|
context: e
|
|
4142
3958
|
}, s));
|
|
4143
|
-
}),
|
|
4144
|
-
if (typeof t == "string" || typeof e == "object" && e && arguments.length === 1) return
|
|
3959
|
+
}), Bn = zn({ equals: un.structural }), Vn = function(e, t, n) {
|
|
3960
|
+
if (typeof t == "string" || typeof e == "object" && e && arguments.length === 1) return zn.apply(null, arguments);
|
|
4145
3961
|
var r = typeof t == "object" ? t : {};
|
|
4146
|
-
return r.get = e, r.set = typeof t == "function" ? t : r.set, r.name = r.name || e.name || "", new
|
|
3962
|
+
return r.get = e, r.set = typeof t == "function" ? t : r.set, r.name = r.name || e.name || "", new dr(r);
|
|
4147
3963
|
};
|
|
4148
|
-
|
|
3964
|
+
Vn.struct = Bn;
|
|
4149
3965
|
var R;
|
|
4150
3966
|
(function(e) {
|
|
4151
3967
|
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";
|
|
@@ -4154,43 +3970,43 @@ var z;
|
|
|
4154
3970
|
(function(e) {
|
|
4155
3971
|
e[e.NONE = 0] = "NONE", e[e.LOG = 1] = "LOG", e[e.BREAK = 2] = "BREAK";
|
|
4156
3972
|
})(z || (z = {}));
|
|
4157
|
-
var
|
|
3973
|
+
var Hn = function() {
|
|
4158
3974
|
function e(e) {
|
|
4159
3975
|
this.cause = e;
|
|
4160
3976
|
}
|
|
4161
3977
|
return e;
|
|
4162
3978
|
}();
|
|
4163
|
-
function
|
|
4164
|
-
return e instanceof
|
|
3979
|
+
function Un(e) {
|
|
3980
|
+
return e instanceof Hn;
|
|
4165
3981
|
}
|
|
4166
|
-
function
|
|
3982
|
+
function Wn(e) {
|
|
4167
3983
|
switch (e.dependenciesState) {
|
|
4168
3984
|
case R.UP_TO_DATE: return !1;
|
|
4169
3985
|
case R.NOT_TRACKING:
|
|
4170
3986
|
case R.STALE: return !0;
|
|
4171
3987
|
case R.POSSIBLY_STALE:
|
|
4172
|
-
for (var t =
|
|
3988
|
+
for (var t = Zn(!0), n = Xn(), r = e.observing, i = r.length, a = 0; a < i; a++) {
|
|
4173
3989
|
var o = r[a];
|
|
4174
|
-
if (
|
|
3990
|
+
if (fr(o)) {
|
|
4175
3991
|
if (V.disableErrorBoundaries) o.get();
|
|
4176
3992
|
else try {
|
|
4177
3993
|
o.get();
|
|
4178
3994
|
} catch {
|
|
4179
|
-
return B(n),
|
|
3995
|
+
return B(n), Qn(t), !0;
|
|
4180
3996
|
}
|
|
4181
|
-
if (e.dependenciesState === R.STALE) return B(n),
|
|
3997
|
+
if (e.dependenciesState === R.STALE) return B(n), Qn(t), !0;
|
|
4182
3998
|
}
|
|
4183
3999
|
}
|
|
4184
|
-
return
|
|
4000
|
+
return $n(e), B(n), Qn(t), !1;
|
|
4185
4001
|
}
|
|
4186
4002
|
}
|
|
4187
|
-
function
|
|
4003
|
+
function Gn(e) {
|
|
4188
4004
|
var t = e.observers.size > 0;
|
|
4189
4005
|
V.computationDepth > 0 && t && M(!1), !V.allowStateChanges && (t || V.enforceActions === "strict") && M(!1);
|
|
4190
4006
|
}
|
|
4191
|
-
function
|
|
4192
|
-
var r =
|
|
4193
|
-
|
|
4007
|
+
function Kn(e, t, n) {
|
|
4008
|
+
var r = Zn(!0);
|
|
4009
|
+
$n(e), e.newObserving = Array(e.observing.length + 100), e.unboundDepsCount = 0, e.runId = ++V.runId;
|
|
4194
4010
|
var i = V.trackingDerivation;
|
|
4195
4011
|
V.trackingDerivation = e;
|
|
4196
4012
|
var a;
|
|
@@ -4198,105 +4014,105 @@ function Jn(e, t, n) {
|
|
|
4198
4014
|
else try {
|
|
4199
4015
|
a = t.call(n);
|
|
4200
4016
|
} catch (e) {
|
|
4201
|
-
a = new
|
|
4017
|
+
a = new Hn(e);
|
|
4202
4018
|
}
|
|
4203
|
-
return V.trackingDerivation = i,
|
|
4019
|
+
return V.trackingDerivation = i, qn(e), Qn(r), a;
|
|
4204
4020
|
}
|
|
4205
|
-
function
|
|
4021
|
+
function qn(e) {
|
|
4206
4022
|
for (var t = e.observing, n = e.observing = e.newObserving, r = R.UP_TO_DATE, i = 0, a = e.unboundDepsCount, o = 0; o < a; o++) {
|
|
4207
4023
|
var s = n[o];
|
|
4208
4024
|
s.diffValue === 0 && (s.diffValue = 1, i !== o && (n[i] = s), i++), s.dependenciesState > r && (r = s.dependenciesState);
|
|
4209
4025
|
}
|
|
4210
4026
|
for (n.length = i, e.newObserving = null, a = t.length; a--;) {
|
|
4211
4027
|
var s = t[a];
|
|
4212
|
-
s.diffValue === 0 &&
|
|
4028
|
+
s.diffValue === 0 && br(s, e), s.diffValue = 0;
|
|
4213
4029
|
}
|
|
4214
4030
|
for (; i--;) {
|
|
4215
4031
|
var s = n[i];
|
|
4216
|
-
s.diffValue === 1 && (s.diffValue = 0,
|
|
4032
|
+
s.diffValue === 1 && (s.diffValue = 0, yr(s, e));
|
|
4217
4033
|
}
|
|
4218
4034
|
r !== R.UP_TO_DATE && (e.dependenciesState = r, e.onBecomeStale());
|
|
4219
4035
|
}
|
|
4220
|
-
function
|
|
4036
|
+
function Jn(e) {
|
|
4221
4037
|
var t = e.observing;
|
|
4222
4038
|
e.observing = [];
|
|
4223
|
-
for (var n = t.length; n--;)
|
|
4039
|
+
for (var n = t.length; n--;) br(t[n], e);
|
|
4224
4040
|
e.dependenciesState = R.NOT_TRACKING;
|
|
4225
4041
|
}
|
|
4226
|
-
function
|
|
4227
|
-
var t =
|
|
4042
|
+
function Yn(e) {
|
|
4043
|
+
var t = Xn();
|
|
4228
4044
|
try {
|
|
4229
4045
|
return e();
|
|
4230
4046
|
} finally {
|
|
4231
4047
|
B(t);
|
|
4232
4048
|
}
|
|
4233
4049
|
}
|
|
4234
|
-
function
|
|
4050
|
+
function Xn() {
|
|
4235
4051
|
var e = V.trackingDerivation;
|
|
4236
4052
|
return V.trackingDerivation = null, e;
|
|
4237
4053
|
}
|
|
4238
4054
|
function B(e) {
|
|
4239
4055
|
V.trackingDerivation = e;
|
|
4240
4056
|
}
|
|
4241
|
-
function
|
|
4057
|
+
function Zn(e) {
|
|
4242
4058
|
var t = V.allowStateReads;
|
|
4243
4059
|
return V.allowStateReads = e, t;
|
|
4244
4060
|
}
|
|
4245
|
-
function
|
|
4061
|
+
function Qn(e) {
|
|
4246
4062
|
V.allowStateReads = e;
|
|
4247
4063
|
}
|
|
4248
|
-
function
|
|
4064
|
+
function $n(e) {
|
|
4249
4065
|
if (e.dependenciesState !== R.UP_TO_DATE) {
|
|
4250
4066
|
e.dependenciesState = R.UP_TO_DATE;
|
|
4251
4067
|
for (var t = e.observing, n = t.length; n--;) t[n].lowestObserverState = R.UP_TO_DATE;
|
|
4252
4068
|
}
|
|
4253
4069
|
}
|
|
4254
|
-
var
|
|
4255
|
-
|
|
4256
|
-
function
|
|
4070
|
+
var er = 0, tr = 1, nr = Object.getOwnPropertyDescriptor(function() {}, "name");
|
|
4071
|
+
nr && nr.configurable;
|
|
4072
|
+
function rr(e, t, n) {
|
|
4257
4073
|
var r = function() {
|
|
4258
|
-
return
|
|
4074
|
+
return ir(e, t, n || this, arguments);
|
|
4259
4075
|
};
|
|
4260
4076
|
return r.isMobxAction = !0, r;
|
|
4261
4077
|
}
|
|
4262
|
-
function
|
|
4263
|
-
var i =
|
|
4078
|
+
function ir(e, t, n, r) {
|
|
4079
|
+
var i = ar(e, n, r);
|
|
4264
4080
|
try {
|
|
4265
4081
|
return t.apply(n, r);
|
|
4266
4082
|
} catch (e) {
|
|
4267
4083
|
throw i.error = e, e;
|
|
4268
4084
|
} finally {
|
|
4269
|
-
|
|
4085
|
+
or(i);
|
|
4270
4086
|
}
|
|
4271
4087
|
}
|
|
4272
|
-
function
|
|
4273
|
-
var r = W() && !!e, i = 0, a =
|
|
4088
|
+
function ar(e, t, n) {
|
|
4089
|
+
var r = W() && !!e, i = 0, a = Xn();
|
|
4274
4090
|
H();
|
|
4275
4091
|
var o = {
|
|
4276
4092
|
prevDerivation: a,
|
|
4277
|
-
prevAllowStateChanges:
|
|
4278
|
-
prevAllowStateReads:
|
|
4093
|
+
prevAllowStateChanges: sr(!0),
|
|
4094
|
+
prevAllowStateReads: Zn(!0),
|
|
4279
4095
|
notifySpy: r,
|
|
4280
4096
|
startTime: i,
|
|
4281
|
-
actionId:
|
|
4282
|
-
parentActionId:
|
|
4097
|
+
actionId: tr++,
|
|
4098
|
+
parentActionId: er
|
|
4283
4099
|
};
|
|
4284
|
-
return
|
|
4100
|
+
return er = o.actionId, o;
|
|
4285
4101
|
}
|
|
4286
|
-
function
|
|
4287
|
-
|
|
4102
|
+
function or(e) {
|
|
4103
|
+
er !== e.actionId && M("invalid action stack. did you forget to finish an action?"), er = e.parentActionId, e.error !== void 0 && (V.suppressReactionErrors = !0), cr(e.prevAllowStateChanges), Qn(e.prevAllowStateReads), U(), B(e.prevDerivation), e.notifySpy, V.suppressReactionErrors = !1;
|
|
4288
4104
|
}
|
|
4289
|
-
function
|
|
4105
|
+
function sr(e) {
|
|
4290
4106
|
var t = V.allowStateChanges;
|
|
4291
4107
|
return V.allowStateChanges = e, t;
|
|
4292
4108
|
}
|
|
4293
|
-
function
|
|
4109
|
+
function cr(e) {
|
|
4294
4110
|
V.allowStateChanges = e;
|
|
4295
4111
|
}
|
|
4296
|
-
var
|
|
4297
|
-
|
|
4112
|
+
var lr = function(e) {
|
|
4113
|
+
fn(t, e);
|
|
4298
4114
|
function t(t, n, r, i, a) {
|
|
4299
|
-
r === void 0 && (r = "ObservableValue@" + j()), i === void 0 && (i = !0), a === void 0 && (a =
|
|
4115
|
+
r === void 0 && (r = "ObservableValue@" + j()), i === void 0 && (i = !0), a === void 0 && (a = un.default);
|
|
4300
4116
|
var o = e.call(this, r) || this;
|
|
4301
4117
|
return o.enhancer = n, o.name = r, o.equals = a, o.hasUnreportedChange = !1, o.value = n(t, void 0, r), o;
|
|
4302
4118
|
}
|
|
@@ -4305,7 +4121,7 @@ var dr = function(e) {
|
|
|
4305
4121
|
}, t.prototype.set = function(e) {
|
|
4306
4122
|
this.value, e = this.prepareNewValue(e), e !== V.UNCHANGED && this.setNewValue(e);
|
|
4307
4123
|
}, t.prototype.prepareNewValue = function(e) {
|
|
4308
|
-
if (
|
|
4124
|
+
if (Gn(this), q(this)) {
|
|
4309
4125
|
var t = J(this, {
|
|
4310
4126
|
object: this,
|
|
4311
4127
|
type: "update",
|
|
@@ -4326,29 +4142,29 @@ var dr = function(e) {
|
|
|
4326
4142
|
}, t.prototype.get = function() {
|
|
4327
4143
|
return this.reportObserved(), this.dehanceValue(this.value);
|
|
4328
4144
|
}, t.prototype.intercept = function(e) {
|
|
4329
|
-
return
|
|
4145
|
+
return _i(this, e);
|
|
4330
4146
|
}, t.prototype.observe = function(e, t) {
|
|
4331
4147
|
return t && e({
|
|
4332
4148
|
object: this,
|
|
4333
4149
|
type: "update",
|
|
4334
4150
|
newValue: this.value,
|
|
4335
4151
|
oldValue: void 0
|
|
4336
|
-
}),
|
|
4152
|
+
}), vi(this, e);
|
|
4337
4153
|
}, t.prototype.toJSON = function() {
|
|
4338
4154
|
return this.get();
|
|
4339
4155
|
}, t.prototype.toString = function() {
|
|
4340
4156
|
return this.name + "[" + this.value + "]";
|
|
4341
4157
|
}, t.prototype.valueOf = function() {
|
|
4342
|
-
return
|
|
4158
|
+
return en(this.get());
|
|
4343
4159
|
}, t.prototype[Symbol.toPrimitive] = function() {
|
|
4344
4160
|
return this.valueOf();
|
|
4345
4161
|
}, t;
|
|
4346
|
-
}(
|
|
4162
|
+
}(nn), ur = N("ObservableValue", lr), dr = function() {
|
|
4347
4163
|
function e(e) {
|
|
4348
|
-
this.dependenciesState = R.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 = R.UP_TO_DATE, this.unboundDepsCount = 0, this.__mapid = "#" + j(), this.value = new
|
|
4164
|
+
this.dependenciesState = R.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 = R.UP_TO_DATE, this.unboundDepsCount = 0, this.__mapid = "#" + j(), this.value = new Hn(null), this.isComputing = !1, this.isRunningSetter = !1, this.isTracing = z.NONE, Vt(e.get, "missing option for computed: get"), this.derivation = e.get, this.name = e.name || "ComputedValue@" + j(), e.set && (this.setter = rr(this.name + "-setter", e.set)), this.equals = e.equals || (e.compareStructural || e.struct ? un.structural : un.default), this.scope = e.context, this.requiresReaction = !!e.requiresReaction, this.keepAlive = !!e.keepAlive;
|
|
4349
4165
|
}
|
|
4350
4166
|
return e.prototype.onBecomeStale = function() {
|
|
4351
|
-
|
|
4167
|
+
Tr(this);
|
|
4352
4168
|
}, e.prototype.onBecomeObserved = function() {
|
|
4353
4169
|
this.onBecomeObservedListeners && this.onBecomeObservedListeners.forEach(function(e) {
|
|
4354
4170
|
return e();
|
|
@@ -4358,45 +4174,45 @@ var dr = function(e) {
|
|
|
4358
4174
|
return e();
|
|
4359
4175
|
});
|
|
4360
4176
|
}, e.prototype.get = function() {
|
|
4361
|
-
this.isComputing && M("Cycle detected in computation " + this.name + ": " + this.derivation), V.inBatch === 0 && this.observers.size === 0 && !this.keepAlive ?
|
|
4177
|
+
this.isComputing && M("Cycle detected in computation " + this.name + ": " + this.derivation), V.inBatch === 0 && this.observers.size === 0 && !this.keepAlive ? Wn(this) && (this.warnAboutUntrackedRead(), H(), this.value = this.computeValue(!1), U()) : (Sr(this), Wn(this) && this.trackAndCompute() && wr(this));
|
|
4362
4178
|
var e = this.value;
|
|
4363
|
-
if (
|
|
4179
|
+
if (Un(e)) throw e.cause;
|
|
4364
4180
|
return e;
|
|
4365
4181
|
}, e.prototype.peek = function() {
|
|
4366
4182
|
var e = this.computeValue(!1);
|
|
4367
|
-
if (
|
|
4183
|
+
if (Un(e)) throw e.cause;
|
|
4368
4184
|
return e;
|
|
4369
4185
|
}, e.prototype.set = function(e) {
|
|
4370
4186
|
if (this.setter) {
|
|
4371
|
-
|
|
4187
|
+
Vt(!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;
|
|
4372
4188
|
try {
|
|
4373
4189
|
this.setter.call(this.scope, e);
|
|
4374
4190
|
} finally {
|
|
4375
4191
|
this.isRunningSetter = !1;
|
|
4376
4192
|
}
|
|
4377
|
-
} else
|
|
4193
|
+
} else Vt(!1, !1);
|
|
4378
4194
|
}, e.prototype.trackAndCompute = function() {
|
|
4379
|
-
var e = this.value, t = this.dependenciesState === R.NOT_TRACKING, n = this.computeValue(!0), r = t ||
|
|
4195
|
+
var e = this.value, t = this.dependenciesState === R.NOT_TRACKING, n = this.computeValue(!0), r = t || Un(e) || Un(n) || !this.equals(e, n);
|
|
4380
4196
|
return r && (this.value = n), r;
|
|
4381
4197
|
}, e.prototype.computeValue = function(e) {
|
|
4382
4198
|
this.isComputing = !0, V.computationDepth++;
|
|
4383
4199
|
var t;
|
|
4384
|
-
if (e) t =
|
|
4200
|
+
if (e) t = Kn(this, this.derivation, this.scope);
|
|
4385
4201
|
else if (V.disableErrorBoundaries === !0) t = this.derivation.call(this.scope);
|
|
4386
4202
|
else try {
|
|
4387
4203
|
t = this.derivation.call(this.scope);
|
|
4388
4204
|
} catch (e) {
|
|
4389
|
-
t = new
|
|
4205
|
+
t = new Hn(e);
|
|
4390
4206
|
}
|
|
4391
4207
|
return V.computationDepth--, this.isComputing = !1, t;
|
|
4392
4208
|
}, e.prototype.suspend = function() {
|
|
4393
|
-
this.keepAlive || (
|
|
4209
|
+
this.keepAlive || (Jn(this), this.value = void 0);
|
|
4394
4210
|
}, e.prototype.observe = function(e, t) {
|
|
4395
4211
|
var n = this, r = !0, i = void 0;
|
|
4396
|
-
return
|
|
4212
|
+
return Ur(function() {
|
|
4397
4213
|
var a = n.get();
|
|
4398
4214
|
if (!r || t) {
|
|
4399
|
-
var o =
|
|
4215
|
+
var o = Xn();
|
|
4400
4216
|
e({
|
|
4401
4217
|
type: "update",
|
|
4402
4218
|
object: n,
|
|
@@ -4411,35 +4227,35 @@ var dr = function(e) {
|
|
|
4411
4227
|
}, e.prototype.toString = function() {
|
|
4412
4228
|
return this.name + "[" + this.derivation.toString() + "]";
|
|
4413
4229
|
}, e.prototype.valueOf = function() {
|
|
4414
|
-
return
|
|
4230
|
+
return en(this.get());
|
|
4415
4231
|
}, e.prototype[Symbol.toPrimitive] = function() {
|
|
4416
4232
|
return this.valueOf();
|
|
4417
4233
|
}, e;
|
|
4418
|
-
}(),
|
|
4234
|
+
}(), fr = N("ComputedValue", dr), pr = function() {
|
|
4419
4235
|
function e() {
|
|
4420
4236
|
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;
|
|
4421
4237
|
}
|
|
4422
4238
|
return e;
|
|
4423
|
-
}(),
|
|
4424
|
-
function
|
|
4425
|
-
return typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self :
|
|
4426
|
-
}
|
|
4427
|
-
var
|
|
4428
|
-
var e =
|
|
4429
|
-
return e.__mobxInstanceCount > 0 && !e.__mobxGlobals && (
|
|
4430
|
-
|
|
4431
|
-
}, 1), new
|
|
4239
|
+
}(), mr = {};
|
|
4240
|
+
function hr() {
|
|
4241
|
+
return typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : mr;
|
|
4242
|
+
}
|
|
4243
|
+
var gr = !0, _r = !1, V = (function() {
|
|
4244
|
+
var e = hr();
|
|
4245
|
+
return e.__mobxInstanceCount > 0 && !e.__mobxGlobals && (gr = !1), e.__mobxGlobals && e.__mobxGlobals.version !== new pr().version && (gr = !1), gr ? e.__mobxGlobals ? (e.__mobxInstanceCount += 1, e.__mobxGlobals.UNCHANGED || (e.__mobxGlobals.UNCHANGED = {}), e.__mobxGlobals) : (e.__mobxInstanceCount = 1, e.__mobxGlobals = new pr()) : (setTimeout(function() {
|
|
4246
|
+
_r || M("There are multiple, different versions of MobX active. Make sure MobX is loaded only once or use `configure({ isolateGlobalState: true })`");
|
|
4247
|
+
}, 1), new pr());
|
|
4432
4248
|
})();
|
|
4433
|
-
function
|
|
4434
|
-
(V.pendingReactions.length || V.inBatch || V.isRunningReactions) && M("isolateGlobalState should be called before MobX is running any reactions"),
|
|
4249
|
+
function vr() {
|
|
4250
|
+
(V.pendingReactions.length || V.inBatch || V.isRunningReactions) && M("isolateGlobalState should be called before MobX is running any reactions"), _r = !0, gr && (--hr().__mobxInstanceCount === 0 && (hr().__mobxGlobals = void 0), V = new pr());
|
|
4435
4251
|
}
|
|
4436
|
-
function
|
|
4252
|
+
function yr(e, t) {
|
|
4437
4253
|
e.observers.add(t), e.lowestObserverState > t.dependenciesState && (e.lowestObserverState = t.dependenciesState);
|
|
4438
4254
|
}
|
|
4439
|
-
function
|
|
4440
|
-
e.observers.delete(t), e.observers.size === 0 &&
|
|
4255
|
+
function br(e, t) {
|
|
4256
|
+
e.observers.delete(t), e.observers.size === 0 && xr(e);
|
|
4441
4257
|
}
|
|
4442
|
-
function
|
|
4258
|
+
function xr(e) {
|
|
4443
4259
|
e.isPendingUnobservation === !1 && (e.isPendingUnobservation = !0, V.pendingUnobservations.push(e));
|
|
4444
4260
|
}
|
|
4445
4261
|
function H() {
|
|
@@ -4447,61 +4263,61 @@ function H() {
|
|
|
4447
4263
|
}
|
|
4448
4264
|
function U() {
|
|
4449
4265
|
if (--V.inBatch === 0) {
|
|
4450
|
-
|
|
4266
|
+
jr();
|
|
4451
4267
|
for (var e = V.pendingUnobservations, t = 0; t < e.length; t++) {
|
|
4452
4268
|
var n = e[t];
|
|
4453
|
-
n.isPendingUnobservation = !1, n.observers.size === 0 && (n.isBeingObserved && (n.isBeingObserved = !1, n.onBecomeUnobserved()), n instanceof
|
|
4269
|
+
n.isPendingUnobservation = !1, n.observers.size === 0 && (n.isBeingObserved && (n.isBeingObserved = !1, n.onBecomeUnobserved()), n instanceof dr && n.suspend());
|
|
4454
4270
|
}
|
|
4455
4271
|
V.pendingUnobservations = [];
|
|
4456
4272
|
}
|
|
4457
4273
|
}
|
|
4458
|
-
function
|
|
4274
|
+
function Sr(e) {
|
|
4459
4275
|
var t = V.trackingDerivation;
|
|
4460
|
-
return t === null ? (e.observers.size === 0 && V.inBatch > 0 &&
|
|
4276
|
+
return t === null ? (e.observers.size === 0 && V.inBatch > 0 && xr(e), !1) : (t.runId !== e.lastAccessedBy && (e.lastAccessedBy = t.runId, t.newObserving[t.unboundDepsCount++] = e, e.isBeingObserved || (e.isBeingObserved = !0, e.onBecomeObserved())), !0);
|
|
4461
4277
|
}
|
|
4462
|
-
function
|
|
4278
|
+
function Cr(e) {
|
|
4463
4279
|
e.lowestObserverState !== R.STALE && (e.lowestObserverState = R.STALE, e.observers.forEach(function(t) {
|
|
4464
|
-
t.dependenciesState === R.UP_TO_DATE && (t.isTracing !== z.NONE &&
|
|
4280
|
+
t.dependenciesState === R.UP_TO_DATE && (t.isTracing !== z.NONE && Er(t, e), t.onBecomeStale()), t.dependenciesState = R.STALE;
|
|
4465
4281
|
}));
|
|
4466
4282
|
}
|
|
4467
|
-
function
|
|
4283
|
+
function wr(e) {
|
|
4468
4284
|
e.lowestObserverState !== R.STALE && (e.lowestObserverState = R.STALE, e.observers.forEach(function(t) {
|
|
4469
4285
|
t.dependenciesState === R.POSSIBLY_STALE ? t.dependenciesState = R.STALE : t.dependenciesState === R.UP_TO_DATE && (e.lowestObserverState = R.UP_TO_DATE);
|
|
4470
4286
|
}));
|
|
4471
4287
|
}
|
|
4472
|
-
function
|
|
4288
|
+
function Tr(e) {
|
|
4473
4289
|
e.lowestObserverState === R.UP_TO_DATE && (e.lowestObserverState = R.POSSIBLY_STALE, e.observers.forEach(function(t) {
|
|
4474
|
-
t.dependenciesState === R.UP_TO_DATE && (t.dependenciesState = R.POSSIBLY_STALE, t.isTracing !== z.NONE &&
|
|
4290
|
+
t.dependenciesState === R.UP_TO_DATE && (t.dependenciesState = R.POSSIBLY_STALE, t.isTracing !== z.NONE && Er(t, e), t.onBecomeStale());
|
|
4475
4291
|
}));
|
|
4476
4292
|
}
|
|
4477
|
-
function
|
|
4293
|
+
function Er(e, t) {
|
|
4478
4294
|
if (console.log("[mobx.trace] '" + e.name + "' is invalidated due to a change in: '" + t.name + "'"), e.isTracing === z.BREAK) {
|
|
4479
4295
|
var n = [];
|
|
4480
|
-
|
|
4296
|
+
Dr(ti(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 dr ? e.derivation.toString().replace(/[*]\//g, "/") : "") + "\n\nThe dependencies for this derivation are:\n\n" + n.join("\n") + "\n*/\n ")();
|
|
4481
4297
|
}
|
|
4482
4298
|
}
|
|
4483
|
-
function
|
|
4299
|
+
function Dr(e, t, n) {
|
|
4484
4300
|
if (t.length >= 1e3) {
|
|
4485
4301
|
t.push("(and many more)");
|
|
4486
4302
|
return;
|
|
4487
4303
|
}
|
|
4488
4304
|
t.push("" + Array(n).join(" ") + e.name), e.dependencies && e.dependencies.forEach(function(e) {
|
|
4489
|
-
return
|
|
4305
|
+
return Dr(e, t, n + 1);
|
|
4490
4306
|
});
|
|
4491
4307
|
}
|
|
4492
|
-
var
|
|
4308
|
+
var Or = function() {
|
|
4493
4309
|
function e(e, t, n, r) {
|
|
4494
4310
|
e === void 0 && (e = "Reaction@" + j()), r === void 0 && (r = !1), this.name = e, this.onInvalidate = t, this.errorHandler = n, this.requiresObservable = r, this.observing = [], this.newObserving = [], this.dependenciesState = R.NOT_TRACKING, this.diffValue = 0, this.runId = 0, this.unboundDepsCount = 0, this.__mapid = "#" + j(), this.isDisposed = !1, this._isScheduled = !1, this._isTrackPending = !1, this._isRunning = !1, this.isTracing = z.NONE;
|
|
4495
4311
|
}
|
|
4496
4312
|
return e.prototype.onBecomeStale = function() {
|
|
4497
4313
|
this.schedule();
|
|
4498
4314
|
}, e.prototype.schedule = function() {
|
|
4499
|
-
this._isScheduled || (this._isScheduled = !0, V.pendingReactions.push(this),
|
|
4315
|
+
this._isScheduled || (this._isScheduled = !0, V.pendingReactions.push(this), jr());
|
|
4500
4316
|
}, e.prototype.isScheduled = function() {
|
|
4501
4317
|
return this._isScheduled;
|
|
4502
4318
|
}, e.prototype.runReaction = function() {
|
|
4503
4319
|
if (!this.isDisposed) {
|
|
4504
|
-
if (H(), this._isScheduled = !1,
|
|
4320
|
+
if (H(), this._isScheduled = !1, Wn(this)) {
|
|
4505
4321
|
this._isTrackPending = !0;
|
|
4506
4322
|
try {
|
|
4507
4323
|
this.onInvalidate(), this._isTrackPending;
|
|
@@ -4514,8 +4330,8 @@ var Ar = function() {
|
|
|
4514
4330
|
}, e.prototype.track = function(e) {
|
|
4515
4331
|
if (!this.isDisposed) {
|
|
4516
4332
|
H(), this._isRunning = !0;
|
|
4517
|
-
var t =
|
|
4518
|
-
this._isRunning = !1, this._isTrackPending = !1, this.isDisposed &&
|
|
4333
|
+
var t = Kn(this, e, void 0);
|
|
4334
|
+
this._isRunning = !1, this._isTrackPending = !1, this.isDisposed && Jn(this), Un(t) && this.reportExceptionInDerivation(t.cause), U();
|
|
4519
4335
|
}
|
|
4520
4336
|
}, e.prototype.reportExceptionInDerivation = function(e) {
|
|
4521
4337
|
var t = this;
|
|
@@ -4529,33 +4345,33 @@ var Ar = function() {
|
|
|
4529
4345
|
return n(e, t);
|
|
4530
4346
|
});
|
|
4531
4347
|
}, e.prototype.dispose = function() {
|
|
4532
|
-
this.isDisposed || (this.isDisposed = !0, this._isRunning || (H(),
|
|
4348
|
+
this.isDisposed || (this.isDisposed = !0, this._isRunning || (H(), Jn(this), U()));
|
|
4533
4349
|
}, e.prototype.getDisposer = function() {
|
|
4534
4350
|
var e = this.dispose.bind(this);
|
|
4535
4351
|
return e[F] = this, e;
|
|
4536
4352
|
}, e.prototype.toString = function() {
|
|
4537
4353
|
return "Reaction[" + this.name + "]";
|
|
4538
4354
|
}, e.prototype.trace = function(e) {
|
|
4539
|
-
e === void 0 && (e = !1),
|
|
4355
|
+
e === void 0 && (e = !1), di(this, e);
|
|
4540
4356
|
}, e;
|
|
4541
|
-
}(),
|
|
4357
|
+
}(), kr = 100, Ar = function(e) {
|
|
4542
4358
|
return e();
|
|
4543
4359
|
};
|
|
4544
|
-
function
|
|
4545
|
-
V.inBatch > 0 || V.isRunningReactions || Mr
|
|
4360
|
+
function jr() {
|
|
4361
|
+
V.inBatch > 0 || V.isRunningReactions || Ar(Mr);
|
|
4546
4362
|
}
|
|
4547
|
-
function
|
|
4363
|
+
function Mr() {
|
|
4548
4364
|
V.isRunningReactions = !0;
|
|
4549
4365
|
for (var e = V.pendingReactions, t = 0; e.length > 0;) {
|
|
4550
|
-
++t ===
|
|
4366
|
+
++t === kr && (console.error("Reaction doesn't converge to a stable state after " + kr + " iterations." + (" Probably there is a cycle in the reactive function: " + e[0])), e.splice(0));
|
|
4551
4367
|
for (var n = e.splice(0), r = 0, i = n.length; r < i; r++) n[r].runReaction();
|
|
4552
4368
|
}
|
|
4553
4369
|
V.isRunningReactions = !1;
|
|
4554
4370
|
}
|
|
4555
|
-
var
|
|
4556
|
-
function
|
|
4557
|
-
var t =
|
|
4558
|
-
|
|
4371
|
+
var Nr = N("Reaction", Or);
|
|
4372
|
+
function Pr(e) {
|
|
4373
|
+
var t = Ar;
|
|
4374
|
+
Ar = function(n) {
|
|
4559
4375
|
return e(function() {
|
|
4560
4376
|
return t(n);
|
|
4561
4377
|
});
|
|
@@ -4564,17 +4380,17 @@ function Ir(e) {
|
|
|
4564
4380
|
function W() {
|
|
4565
4381
|
return !1;
|
|
4566
4382
|
}
|
|
4567
|
-
function
|
|
4383
|
+
function Fr(e) {
|
|
4568
4384
|
return console.warn("[mobx.spy] Is a no-op in production builds"), function() {};
|
|
4569
4385
|
}
|
|
4570
|
-
function
|
|
4386
|
+
function Ir() {
|
|
4571
4387
|
M(!1);
|
|
4572
4388
|
}
|
|
4573
|
-
function
|
|
4389
|
+
function Lr(e) {
|
|
4574
4390
|
return function(t, n, r) {
|
|
4575
4391
|
if (r) {
|
|
4576
4392
|
if (r.value) return {
|
|
4577
|
-
value:
|
|
4393
|
+
value: rr(e, r.value),
|
|
4578
4394
|
enumerable: !1,
|
|
4579
4395
|
configurable: !0,
|
|
4580
4396
|
writable: !0
|
|
@@ -4585,65 +4401,65 @@ function zr(e) {
|
|
|
4585
4401
|
configurable: !0,
|
|
4586
4402
|
writable: !0,
|
|
4587
4403
|
initializer: function() {
|
|
4588
|
-
return
|
|
4404
|
+
return rr(e, i.call(this));
|
|
4589
4405
|
}
|
|
4590
4406
|
};
|
|
4591
4407
|
}
|
|
4592
|
-
return
|
|
4408
|
+
return Rr(e).apply(this, arguments);
|
|
4593
4409
|
};
|
|
4594
4410
|
}
|
|
4595
|
-
function
|
|
4411
|
+
function Rr(e) {
|
|
4596
4412
|
return function(t, n, r) {
|
|
4597
4413
|
Object.defineProperty(t, n, {
|
|
4598
4414
|
configurable: !0,
|
|
4599
4415
|
enumerable: !1,
|
|
4600
4416
|
get: function() {},
|
|
4601
4417
|
set: function(t) {
|
|
4602
|
-
|
|
4418
|
+
Jt(this, n, Br(e, t));
|
|
4603
4419
|
}
|
|
4604
4420
|
});
|
|
4605
4421
|
};
|
|
4606
4422
|
}
|
|
4607
|
-
function
|
|
4608
|
-
return r === !0 ? (
|
|
4423
|
+
function zr(e, t, n, r) {
|
|
4424
|
+
return r === !0 ? (Hr(e, t, n.value), null) : n ? {
|
|
4609
4425
|
configurable: !0,
|
|
4610
4426
|
enumerable: !1,
|
|
4611
4427
|
get: function() {
|
|
4612
|
-
return
|
|
4428
|
+
return Hr(this, t, n.value || n.initializer.call(this)), this[t];
|
|
4613
4429
|
},
|
|
4614
|
-
set:
|
|
4430
|
+
set: Ir
|
|
4615
4431
|
} : {
|
|
4616
4432
|
enumerable: !1,
|
|
4617
4433
|
configurable: !0,
|
|
4618
4434
|
set: function(e) {
|
|
4619
|
-
|
|
4435
|
+
Hr(this, t, e);
|
|
4620
4436
|
},
|
|
4621
4437
|
get: function() {}
|
|
4622
4438
|
};
|
|
4623
4439
|
}
|
|
4624
|
-
var
|
|
4625
|
-
if (arguments.length === 1 && typeof e == "function") return
|
|
4626
|
-
if (arguments.length === 2 && typeof t == "function") return
|
|
4627
|
-
if (arguments.length === 1 && typeof e == "string") return
|
|
4628
|
-
if (r === !0)
|
|
4629
|
-
else return
|
|
4440
|
+
var Br = function(e, t, n, r) {
|
|
4441
|
+
if (arguments.length === 1 && typeof e == "function") return rr(e.name || "<unnamed action>", e);
|
|
4442
|
+
if (arguments.length === 2 && typeof t == "function") return rr(e, t);
|
|
4443
|
+
if (arguments.length === 1 && typeof e == "string") return Lr(e);
|
|
4444
|
+
if (r === !0) Jt(e, t, rr(e.name || t, n.value, this));
|
|
4445
|
+
else return Lr(t).apply(null, arguments);
|
|
4630
4446
|
};
|
|
4631
|
-
|
|
4632
|
-
function
|
|
4633
|
-
return
|
|
4447
|
+
Br.bound = zr;
|
|
4448
|
+
function Vr(e, t) {
|
|
4449
|
+
return ir(typeof e == "string" ? e : e.name || "<unnamed action>", typeof e == "function" ? e : t, this, void 0);
|
|
4634
4450
|
}
|
|
4635
|
-
function
|
|
4636
|
-
|
|
4451
|
+
function Hr(e, t, n) {
|
|
4452
|
+
Jt(e, t, rr(t, n.bind(e)));
|
|
4637
4453
|
}
|
|
4638
|
-
function
|
|
4639
|
-
t === void 0 && (t =
|
|
4454
|
+
function Ur(e, t) {
|
|
4455
|
+
t === void 0 && (t = Bt);
|
|
4640
4456
|
var n = t && t.name || e.name || "Autorun@" + j(), r = !t.scheduler && !t.delay, i;
|
|
4641
|
-
if (r) i = new
|
|
4457
|
+
if (r) i = new Or(n, function() {
|
|
4642
4458
|
this.track(s);
|
|
4643
4459
|
}, t.onError, t.requiresObservable);
|
|
4644
4460
|
else {
|
|
4645
|
-
var a =
|
|
4646
|
-
i = new
|
|
4461
|
+
var a = Gr(t), o = !1;
|
|
4462
|
+
i = new Or(n, function() {
|
|
4647
4463
|
o || (o = !0, a(function() {
|
|
4648
4464
|
o = !1, i.isDisposed || i.track(s);
|
|
4649
4465
|
}));
|
|
@@ -4654,17 +4470,17 @@ function Gr(e, t) {
|
|
|
4654
4470
|
}
|
|
4655
4471
|
return i.schedule(), i.getDisposer();
|
|
4656
4472
|
}
|
|
4657
|
-
var
|
|
4473
|
+
var Wr = function(e) {
|
|
4658
4474
|
return e();
|
|
4659
4475
|
};
|
|
4660
|
-
function
|
|
4476
|
+
function Gr(e) {
|
|
4661
4477
|
return e.scheduler ? e.scheduler : e.delay ? function(t) {
|
|
4662
4478
|
return setTimeout(t, e.delay);
|
|
4663
|
-
} :
|
|
4479
|
+
} : Wr;
|
|
4664
4480
|
}
|
|
4665
|
-
function
|
|
4666
|
-
n === void 0 && (n =
|
|
4667
|
-
var r = n.name || "Reaction@" + j(), i =
|
|
4481
|
+
function Kr(e, t, n) {
|
|
4482
|
+
n === void 0 && (n = Bt);
|
|
4483
|
+
var r = n.name || "Reaction@" + j(), i = Br(r, n.onError ? qr(n.onError, t) : t), a = !n.scheduler && !n.delay, o = Gr(n), s = !0, c = !1, l, u = n.compareStructural ? un.structural : n.equals || un.default, d = new Or(r, function() {
|
|
4668
4484
|
s || a ? f() : c || (c = !0, o(f));
|
|
4669
4485
|
}, n.onError, n.requiresObservable);
|
|
4670
4486
|
function f() {
|
|
@@ -4678,7 +4494,7 @@ function Jr(e, t, n) {
|
|
|
4678
4494
|
}
|
|
4679
4495
|
return d.schedule(), d.getDisposer();
|
|
4680
4496
|
}
|
|
4681
|
-
function
|
|
4497
|
+
function qr(e, t) {
|
|
4682
4498
|
return function() {
|
|
4683
4499
|
try {
|
|
4684
4500
|
return t.apply(this, arguments);
|
|
@@ -4687,22 +4503,22 @@ function Yr(e, t) {
|
|
|
4687
4503
|
}
|
|
4688
4504
|
};
|
|
4689
4505
|
}
|
|
4690
|
-
function
|
|
4691
|
-
return
|
|
4506
|
+
function Jr(e, t, n) {
|
|
4507
|
+
return Xr("onBecomeObserved", e, t, n);
|
|
4692
4508
|
}
|
|
4693
|
-
function
|
|
4694
|
-
return
|
|
4509
|
+
function Yr(e, t, n) {
|
|
4510
|
+
return Xr("onBecomeUnobserved", e, t, n);
|
|
4695
4511
|
}
|
|
4696
|
-
function
|
|
4697
|
-
var i = typeof r == "function" ?
|
|
4512
|
+
function Xr(e, t, n, r) {
|
|
4513
|
+
var i = typeof r == "function" ? Bi(t, n) : Bi(t), a = typeof r == "function" ? r : n, o = e + "Listeners";
|
|
4698
4514
|
return i[o] ? i[o].add(a) : i[o] = new Set([a]), typeof i[e] == "function" ? function() {
|
|
4699
4515
|
var e = i[o];
|
|
4700
4516
|
e && (e.delete(a), e.size === 0 && delete i[o]);
|
|
4701
4517
|
} : M(!1);
|
|
4702
4518
|
}
|
|
4703
|
-
function
|
|
4519
|
+
function Zr(e) {
|
|
4704
4520
|
var t = e.enforceActions, n = e.computedRequiresReaction, r = e.computedConfigurable, i = e.disableErrorBoundaries, a = e.reactionScheduler, o = e.reactionRequiresObservable, s = e.observableRequiresReaction;
|
|
4705
|
-
if (e.isolateGlobalState === !0 &&
|
|
4521
|
+
if (e.isolateGlobalState === !0 && vr(), t !== void 0) {
|
|
4706
4522
|
var c = void 0;
|
|
4707
4523
|
switch (t) {
|
|
4708
4524
|
case !0:
|
|
@@ -4721,25 +4537,25 @@ function $r(e) {
|
|
|
4721
4537
|
}
|
|
4722
4538
|
V.enforceActions = c, V.allowStateChanges = !(c === !0 || c === "strict");
|
|
4723
4539
|
}
|
|
4724
|
-
n !== void 0 && (V.computedRequiresReaction = !!n), o !== void 0 && (V.reactionRequiresObservable = !!o), s !== void 0 && (V.observableRequiresReaction = !!s, V.allowStateReads = !V.observableRequiresReaction), r !== void 0 && (V.computedConfigurable = !!r), i !== void 0 && (i === !0 && console.warn("WARNING: Debug feature only. MobX will NOT recover from errors when `disableErrorBoundaries` is enabled."), V.disableErrorBoundaries = !!i), a &&
|
|
4540
|
+
n !== void 0 && (V.computedRequiresReaction = !!n), o !== void 0 && (V.reactionRequiresObservable = !!o), s !== void 0 && (V.observableRequiresReaction = !!s, V.allowStateReads = !V.observableRequiresReaction), r !== void 0 && (V.computedConfigurable = !!r), i !== void 0 && (i === !0 && console.warn("WARNING: Debug feature only. MobX will NOT recover from errors when `disableErrorBoundaries` is enabled."), V.disableErrorBoundaries = !!i), a && Pr(a);
|
|
4725
4541
|
}
|
|
4726
|
-
function
|
|
4727
|
-
r =
|
|
4728
|
-
var i =
|
|
4729
|
-
return
|
|
4542
|
+
function Qr(e, t, n, r) {
|
|
4543
|
+
r = An(r);
|
|
4544
|
+
var i = $r(r);
|
|
4545
|
+
return xn(e), Mi(e, r.name, i.enhancer), t && ei(e, t, n, i), e;
|
|
4730
4546
|
}
|
|
4731
|
-
function
|
|
4732
|
-
return e.defaultDecorator || (e.deep === !1 ?
|
|
4547
|
+
function $r(e) {
|
|
4548
|
+
return e.defaultDecorator || (e.deep === !1 ? Nn : jn);
|
|
4733
4549
|
}
|
|
4734
|
-
function
|
|
4550
|
+
function ei(e, t, n, r) {
|
|
4735
4551
|
var i, a;
|
|
4736
4552
|
if (0) var o, s;
|
|
4737
4553
|
H();
|
|
4738
4554
|
try {
|
|
4739
|
-
var o =
|
|
4555
|
+
var o = tn(t);
|
|
4740
4556
|
try {
|
|
4741
4557
|
for (var c = I(o), l = c.next(); !l.done; l = c.next()) {
|
|
4742
|
-
var s = l.value, u = Object.getOwnPropertyDescriptor(t, s), d = (n && s in n ? n[s] : u.get ?
|
|
4558
|
+
var s = l.value, u = Object.getOwnPropertyDescriptor(t, s), d = (n && s in n ? n[s] : u.get ? zn : r)(e, s, u, !0);
|
|
4743
4559
|
d && Object.defineProperty(e, s, d);
|
|
4744
4560
|
}
|
|
4745
4561
|
} catch (e) {
|
|
@@ -4755,63 +4571,63 @@ function ni(e, t, n, r) {
|
|
|
4755
4571
|
U();
|
|
4756
4572
|
}
|
|
4757
4573
|
}
|
|
4758
|
-
function
|
|
4759
|
-
return
|
|
4574
|
+
function ti(e, t) {
|
|
4575
|
+
return ni(Bi(e, t));
|
|
4760
4576
|
}
|
|
4761
|
-
function
|
|
4577
|
+
function ni(e) {
|
|
4762
4578
|
var t = { name: e.name };
|
|
4763
|
-
return e.observing && e.observing.length > 0 && (t.dependencies =
|
|
4579
|
+
return e.observing && e.observing.length > 0 && (t.dependencies = Wt(e.observing).map(ni)), t;
|
|
4764
4580
|
}
|
|
4765
|
-
function
|
|
4581
|
+
function ri() {
|
|
4766
4582
|
this.message = "FLOW_CANCELLED";
|
|
4767
4583
|
}
|
|
4768
|
-
|
|
4769
|
-
function
|
|
4770
|
-
return e == null ? !1 : t === void 0 ?
|
|
4584
|
+
ri.prototype = Object.create(Error.prototype);
|
|
4585
|
+
function ii(e, t) {
|
|
4586
|
+
return e == null ? !1 : t === void 0 ? zi(e) || !!e[F] || rn(e) || Nr(e) || fr(e) : zi(e) ? e[F].values.has(t) : !1;
|
|
4771
4587
|
}
|
|
4772
|
-
function
|
|
4773
|
-
return arguments.length !== 1 && M(!1),
|
|
4588
|
+
function ai(e) {
|
|
4589
|
+
return arguments.length !== 1 && M(!1), ii(e);
|
|
4774
4590
|
}
|
|
4775
|
-
function
|
|
4776
|
-
return
|
|
4591
|
+
function oi(e) {
|
|
4592
|
+
return zi(e) ? e[F].getKeys() : Q(e) || $(e) ? Array.from(e.keys()) : wi(e) ? e.map(function(e, t) {
|
|
4777
4593
|
return t;
|
|
4778
4594
|
}) : M(!1);
|
|
4779
4595
|
}
|
|
4780
|
-
function
|
|
4596
|
+
function si(e, t, n) {
|
|
4781
4597
|
if (arguments.length === 2 && !$(e)) {
|
|
4782
4598
|
H();
|
|
4783
4599
|
var r = t;
|
|
4784
4600
|
try {
|
|
4785
|
-
for (var i in r)
|
|
4601
|
+
for (var i in r) si(e, i, r[i]);
|
|
4786
4602
|
} finally {
|
|
4787
4603
|
U();
|
|
4788
4604
|
}
|
|
4789
4605
|
return;
|
|
4790
4606
|
}
|
|
4791
|
-
if (
|
|
4607
|
+
if (zi(e)) {
|
|
4792
4608
|
var a = e[F];
|
|
4793
4609
|
a.values.get(t) ? a.write(t, n) : a.addObservableProp(t, n, a.defaultEnhancer);
|
|
4794
4610
|
} else if (Q(e)) e.set(t, n);
|
|
4795
4611
|
else if ($(e)) e.add(t);
|
|
4796
|
-
else if (
|
|
4612
|
+
else if (wi(e)) typeof t != "number" && (t = parseInt(t, 10)), Vt(t >= 0, "Not a valid index: '" + t + "'"), H(), t >= e.length && (e.length = t + 1), e[t] = n, U();
|
|
4797
4613
|
else return M(!1);
|
|
4798
4614
|
}
|
|
4799
|
-
var
|
|
4615
|
+
var ci = {
|
|
4800
4616
|
detectCycles: !0,
|
|
4801
4617
|
exportMapsAsObjects: !0,
|
|
4802
4618
|
recurseEverything: !1
|
|
4803
4619
|
};
|
|
4804
|
-
function
|
|
4620
|
+
function li(e, t, n, r) {
|
|
4805
4621
|
return r.detectCycles && e.set(t, n), n;
|
|
4806
4622
|
}
|
|
4807
4623
|
function G(e, t, n) {
|
|
4808
|
-
if (!t.recurseEverything && !
|
|
4624
|
+
if (!t.recurseEverything && !ai(e) || typeof e != "object") return e;
|
|
4809
4625
|
if (e === null) return null;
|
|
4810
4626
|
if (e instanceof Date) return e;
|
|
4811
|
-
if (
|
|
4812
|
-
if (
|
|
4813
|
-
if (
|
|
4814
|
-
var r =
|
|
4627
|
+
if (ur(e)) return G(e.get(), t, n);
|
|
4628
|
+
if (ai(e) && oi(e), t.detectCycles === !0 && e !== null && n.has(e)) return n.get(e);
|
|
4629
|
+
if (wi(e) || Array.isArray(e)) {
|
|
4630
|
+
var r = li(n, e, [], t), i = e.map(function(e) {
|
|
4815
4631
|
return G(e, t, n);
|
|
4816
4632
|
});
|
|
4817
4633
|
r.length = i.length;
|
|
@@ -4819,49 +4635,49 @@ function G(e, t, n) {
|
|
|
4819
4635
|
return r;
|
|
4820
4636
|
}
|
|
4821
4637
|
if ($(e) || Object.getPrototypeOf(e) === Set.prototype) if (t.exportMapsAsObjects === !1) {
|
|
4822
|
-
var s =
|
|
4638
|
+
var s = li(n, e, /* @__PURE__ */ new Set(), t);
|
|
4823
4639
|
return e.forEach(function(e) {
|
|
4824
4640
|
s.add(G(e, t, n));
|
|
4825
4641
|
}), s;
|
|
4826
4642
|
} else {
|
|
4827
|
-
var c =
|
|
4643
|
+
var c = li(n, e, [], t);
|
|
4828
4644
|
return e.forEach(function(e) {
|
|
4829
4645
|
c.push(G(e, t, n));
|
|
4830
4646
|
}), c;
|
|
4831
4647
|
}
|
|
4832
4648
|
if (Q(e) || Object.getPrototypeOf(e) === Map.prototype) if (t.exportMapsAsObjects === !1) {
|
|
4833
|
-
var l =
|
|
4649
|
+
var l = li(n, e, /* @__PURE__ */ new Map(), t);
|
|
4834
4650
|
return e.forEach(function(e, r) {
|
|
4835
4651
|
l.set(r, G(e, t, n));
|
|
4836
4652
|
}), l;
|
|
4837
4653
|
} else {
|
|
4838
|
-
var u =
|
|
4654
|
+
var u = li(n, e, {}, t);
|
|
4839
4655
|
return e.forEach(function(e, r) {
|
|
4840
4656
|
u[r] = G(e, t, n);
|
|
4841
4657
|
}), u;
|
|
4842
4658
|
}
|
|
4843
|
-
var d =
|
|
4844
|
-
return
|
|
4659
|
+
var d = li(n, e, {}, t);
|
|
4660
|
+
return $t(e).forEach(function(r) {
|
|
4845
4661
|
d[r] = G(e[r], t, n);
|
|
4846
4662
|
}), d;
|
|
4847
4663
|
}
|
|
4848
|
-
function
|
|
4849
|
-
typeof t == "boolean" && (t = { detectCycles: t }), t || (t =
|
|
4664
|
+
function ui(e, t) {
|
|
4665
|
+
typeof t == "boolean" && (t = { detectCycles: t }), t || (t = ci), t.detectCycles = t.detectCycles === void 0 ? t.recurseEverything === !0 : t.detectCycles === !0;
|
|
4850
4666
|
var n;
|
|
4851
4667
|
return t.detectCycles && (n = /* @__PURE__ */ new Map()), G(e, t, n);
|
|
4852
4668
|
}
|
|
4853
|
-
function
|
|
4669
|
+
function di() {
|
|
4854
4670
|
var e = [...arguments], t = !1;
|
|
4855
4671
|
typeof e[e.length - 1] == "boolean" && (t = e.pop());
|
|
4856
|
-
var n =
|
|
4672
|
+
var n = fi(e);
|
|
4857
4673
|
if (!n) return M(!1);
|
|
4858
4674
|
n.isTracing === z.NONE && console.log("[mobx.trace] '" + n.name + "' tracing enabled"), n.isTracing = t ? z.BREAK : z.LOG;
|
|
4859
4675
|
}
|
|
4860
|
-
function
|
|
4676
|
+
function fi(e) {
|
|
4861
4677
|
switch (e.length) {
|
|
4862
4678
|
case 0: return V.trackingDerivation;
|
|
4863
|
-
case 1: return
|
|
4864
|
-
case 2: return
|
|
4679
|
+
case 1: return Bi(e[0]);
|
|
4680
|
+
case 2: return Bi(e[0], e[1]);
|
|
4865
4681
|
}
|
|
4866
4682
|
}
|
|
4867
4683
|
function K(e, t) {
|
|
@@ -4872,58 +4688,58 @@ function K(e, t) {
|
|
|
4872
4688
|
U();
|
|
4873
4689
|
}
|
|
4874
4690
|
}
|
|
4875
|
-
function
|
|
4691
|
+
function pi(e) {
|
|
4876
4692
|
return e[F];
|
|
4877
4693
|
}
|
|
4878
|
-
function
|
|
4694
|
+
function mi(e) {
|
|
4879
4695
|
return typeof e == "string" || typeof e == "number" || typeof e == "symbol";
|
|
4880
4696
|
}
|
|
4881
|
-
var
|
|
4697
|
+
var hi = {
|
|
4882
4698
|
has: function(e, t) {
|
|
4883
|
-
if (t === F || t === "constructor" || t ===
|
|
4884
|
-
var n =
|
|
4885
|
-
return
|
|
4699
|
+
if (t === F || t === "constructor" || t === gn) return !0;
|
|
4700
|
+
var n = pi(e);
|
|
4701
|
+
return mi(t) ? n.has(t) : t in e;
|
|
4886
4702
|
},
|
|
4887
4703
|
get: function(e, t) {
|
|
4888
|
-
if (t === F || t === "constructor" || t ===
|
|
4889
|
-
var n =
|
|
4890
|
-
if (r instanceof
|
|
4704
|
+
if (t === F || t === "constructor" || t === gn) return e[t];
|
|
4705
|
+
var n = pi(e), r = n.values.get(t);
|
|
4706
|
+
if (r instanceof nn) {
|
|
4891
4707
|
var i = r.get();
|
|
4892
4708
|
return i === void 0 && n.has(t), i;
|
|
4893
4709
|
}
|
|
4894
|
-
return
|
|
4710
|
+
return mi(t) && n.has(t), e[t];
|
|
4895
4711
|
},
|
|
4896
4712
|
set: function(e, t, n) {
|
|
4897
|
-
return
|
|
4713
|
+
return mi(t) ? (si(e, t, n), !0) : !1;
|
|
4898
4714
|
},
|
|
4899
4715
|
deleteProperty: function(e, t) {
|
|
4900
|
-
return
|
|
4716
|
+
return mi(t) ? (pi(e).remove(t), !0) : !1;
|
|
4901
4717
|
},
|
|
4902
4718
|
ownKeys: function(e) {
|
|
4903
|
-
return
|
|
4719
|
+
return pi(e).keysAtom.reportObserved(), Reflect.ownKeys(e);
|
|
4904
4720
|
},
|
|
4905
4721
|
preventExtensions: function(e) {
|
|
4906
4722
|
return M("Dynamic observable objects cannot be frozen"), !1;
|
|
4907
4723
|
}
|
|
4908
4724
|
};
|
|
4909
|
-
function
|
|
4910
|
-
var t = new Proxy(e,
|
|
4725
|
+
function gi(e) {
|
|
4726
|
+
var t = new Proxy(e, hi);
|
|
4911
4727
|
return e[F].proxy = t, t;
|
|
4912
4728
|
}
|
|
4913
4729
|
function q(e) {
|
|
4914
4730
|
return e.interceptors !== void 0 && e.interceptors.length > 0;
|
|
4915
4731
|
}
|
|
4916
|
-
function
|
|
4732
|
+
function _i(e, t) {
|
|
4917
4733
|
var n = e.interceptors || (e.interceptors = []);
|
|
4918
|
-
return n.push(t),
|
|
4734
|
+
return n.push(t), Ht(function() {
|
|
4919
4735
|
var e = n.indexOf(t);
|
|
4920
4736
|
e !== -1 && n.splice(e, 1);
|
|
4921
4737
|
});
|
|
4922
4738
|
}
|
|
4923
4739
|
function J(e, t) {
|
|
4924
|
-
var n =
|
|
4740
|
+
var n = Xn();
|
|
4925
4741
|
try {
|
|
4926
|
-
for (var r =
|
|
4742
|
+
for (var r = hn(e.interceptors || []), i = 0, a = r.length; i < a && (t = r[i](t), Vt(!t || t.type, "Intercept handlers should return nothing or a change object"), t); i++);
|
|
4927
4743
|
return t;
|
|
4928
4744
|
} finally {
|
|
4929
4745
|
B(n);
|
|
@@ -4932,22 +4748,22 @@ function J(e, t) {
|
|
|
4932
4748
|
function Y(e) {
|
|
4933
4749
|
return e.changeListeners !== void 0 && e.changeListeners.length > 0;
|
|
4934
4750
|
}
|
|
4935
|
-
function
|
|
4751
|
+
function vi(e, t) {
|
|
4936
4752
|
var n = e.changeListeners || (e.changeListeners = []);
|
|
4937
|
-
return n.push(t),
|
|
4753
|
+
return n.push(t), Ht(function() {
|
|
4938
4754
|
var e = n.indexOf(t);
|
|
4939
4755
|
e !== -1 && n.splice(e, 1);
|
|
4940
4756
|
});
|
|
4941
4757
|
}
|
|
4942
4758
|
function X(e, t) {
|
|
4943
|
-
var n =
|
|
4759
|
+
var n = Xn(), r = e.changeListeners;
|
|
4944
4760
|
if (r) {
|
|
4945
4761
|
r = r.slice();
|
|
4946
4762
|
for (var i = 0, a = r.length; i < a; i++) r[i](t);
|
|
4947
4763
|
B(n);
|
|
4948
4764
|
}
|
|
4949
4765
|
}
|
|
4950
|
-
var
|
|
4766
|
+
var yi = 1e4, bi = {
|
|
4951
4767
|
get: function(e, t) {
|
|
4952
4768
|
return t === F ? e[F] : t === "length" ? e[F].getArrayLength() : typeof t == "number" ? Z.get.call(e, t) : typeof t == "string" && !isNaN(t) ? Z.get.call(e, parseInt(t)) : Z.hasOwnProperty(t) ? Z[t] : e[t];
|
|
4953
4769
|
},
|
|
@@ -4958,20 +4774,20 @@ var xi = 1e4, Si = {
|
|
|
4958
4774
|
return M("Observable arrays cannot be frozen"), !1;
|
|
4959
4775
|
}
|
|
4960
4776
|
};
|
|
4961
|
-
function
|
|
4777
|
+
function xi(e, t, n, r) {
|
|
4962
4778
|
n === void 0 && (n = "ObservableArray@" + j()), r === void 0 && (r = !1);
|
|
4963
|
-
var i = new
|
|
4964
|
-
|
|
4965
|
-
var a = new Proxy(i.values,
|
|
4779
|
+
var i = new Si(n, t, r);
|
|
4780
|
+
Yt(i.values, F, i);
|
|
4781
|
+
var a = new Proxy(i.values, bi);
|
|
4966
4782
|
if (i.proxy = a, e && e.length) {
|
|
4967
|
-
var o =
|
|
4968
|
-
i.spliceWithArray(0, 0, e),
|
|
4783
|
+
var o = sr(!0);
|
|
4784
|
+
i.spliceWithArray(0, 0, e), cr(o);
|
|
4969
4785
|
}
|
|
4970
4786
|
return a;
|
|
4971
4787
|
}
|
|
4972
|
-
var
|
|
4788
|
+
var Si = function() {
|
|
4973
4789
|
function e(e, t, n) {
|
|
4974
|
-
this.owned = n, this.values = [], this.proxy = void 0, this.lastKnownLength = 0, this.atom = new
|
|
4790
|
+
this.owned = n, this.values = [], this.proxy = void 0, this.lastKnownLength = 0, this.atom = new nn(e || "ObservableArray@" + j()), this.enhancer = function(n, r) {
|
|
4975
4791
|
return t(n, r, e + "[..]");
|
|
4976
4792
|
};
|
|
4977
4793
|
}
|
|
@@ -4980,7 +4796,7 @@ var wi = function() {
|
|
|
4980
4796
|
}, e.prototype.dehanceValues = function(e) {
|
|
4981
4797
|
return this.dehancer !== void 0 && e.length > 0 ? e.map(this.dehancer) : e;
|
|
4982
4798
|
}, e.prototype.intercept = function(e) {
|
|
4983
|
-
return
|
|
4799
|
+
return _i(this, e);
|
|
4984
4800
|
}, e.prototype.observe = function(e, t) {
|
|
4985
4801
|
return t === void 0 && (t = !1), t && e({
|
|
4986
4802
|
object: this.proxy,
|
|
@@ -4990,7 +4806,7 @@ var wi = function() {
|
|
|
4990
4806
|
addedCount: this.values.length,
|
|
4991
4807
|
removed: [],
|
|
4992
4808
|
removedCount: 0
|
|
4993
|
-
}),
|
|
4809
|
+
}), vi(this, e);
|
|
4994
4810
|
}, e.prototype.getArrayLength = function() {
|
|
4995
4811
|
return this.atom.reportObserved(), this.values.length;
|
|
4996
4812
|
}, e.prototype.setArrayLength = function(e) {
|
|
@@ -5005,9 +4821,9 @@ var wi = function() {
|
|
|
5005
4821
|
this.lastKnownLength += t;
|
|
5006
4822
|
}, e.prototype.spliceWithArray = function(e, t, n) {
|
|
5007
4823
|
var r = this;
|
|
5008
|
-
|
|
4824
|
+
Gn(this.atom);
|
|
5009
4825
|
var i = this.values.length;
|
|
5010
|
-
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 =
|
|
4826
|
+
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 = zt), q(this)) {
|
|
5011
4827
|
var a = J(this, {
|
|
5012
4828
|
object: this.proxy,
|
|
5013
4829
|
type: "splice",
|
|
@@ -5015,7 +4831,7 @@ var wi = function() {
|
|
|
5015
4831
|
removedCount: t,
|
|
5016
4832
|
added: n
|
|
5017
4833
|
});
|
|
5018
|
-
if (!a) return
|
|
4834
|
+
if (!a) return zt;
|
|
5019
4835
|
t = a.removedCount, n = a.added;
|
|
5020
4836
|
}
|
|
5021
4837
|
n = n.length === 0 ? n : n.map(function(e) {
|
|
@@ -5025,7 +4841,7 @@ var wi = function() {
|
|
|
5025
4841
|
return (t !== 0 || n.length !== 0) && this.notifyArraySplice(e, n, o), this.dehanceValues(o);
|
|
5026
4842
|
}, e.prototype.spliceItemsIntoValues = function(e, t, n) {
|
|
5027
4843
|
var r;
|
|
5028
|
-
if (n.length <
|
|
4844
|
+
if (n.length < yi) return (r = this.values).splice.apply(r, hn([e, t], n));
|
|
5029
4845
|
var i = this.values.slice(e, e + t);
|
|
5030
4846
|
return this.values = this.values.slice(0, e).concat(n, this.values.slice(e + t)), i;
|
|
5031
4847
|
}, e.prototype.notifyArrayChildUpdate = function(e, t, n) {
|
|
@@ -5117,7 +4933,7 @@ var wi = function() {
|
|
|
5117
4933
|
set: function(e, t) {
|
|
5118
4934
|
var n = this[F], r = n.values;
|
|
5119
4935
|
if (e < r.length) {
|
|
5120
|
-
|
|
4936
|
+
Gn(n.atom);
|
|
5121
4937
|
var i = r[e];
|
|
5122
4938
|
if (q(n)) {
|
|
5123
4939
|
var a = J(n, {
|
|
@@ -5177,13 +4993,13 @@ var wi = function() {
|
|
|
5177
4993
|
}, n.values[e].apply(n.values, arguments);
|
|
5178
4994
|
};
|
|
5179
4995
|
});
|
|
5180
|
-
var
|
|
5181
|
-
function
|
|
5182
|
-
return
|
|
4996
|
+
var Ci = N("ObservableArrayAdministration", Si);
|
|
4997
|
+
function wi(e) {
|
|
4998
|
+
return Gt(e) && Ci(e[F]);
|
|
5183
4999
|
}
|
|
5184
|
-
var
|
|
5000
|
+
var Ti, Ei = {}, Di = function() {
|
|
5185
5001
|
function e(e, t, n) {
|
|
5186
|
-
if (t === void 0 && (t =
|
|
5002
|
+
if (t === void 0 && (t = wn), n === void 0 && (n = "ObservableMap@" + j()), this.enhancer = t, this.name = n, this[Ti] = Ei, this._keysAtom = an(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");
|
|
5187
5003
|
this._data = /* @__PURE__ */ new Map(), this._hasMap = /* @__PURE__ */ new Map(), this.merge(e);
|
|
5188
5004
|
}
|
|
5189
5005
|
return e.prototype._has = function(e) {
|
|
@@ -5193,8 +5009,8 @@ var Di, Oi = {}, ki = function() {
|
|
|
5193
5009
|
if (!V.trackingDerivation) return this._has(e);
|
|
5194
5010
|
var n = this._hasMap.get(e);
|
|
5195
5011
|
if (!n) {
|
|
5196
|
-
var r = n = new
|
|
5197
|
-
this._hasMap.set(e, r),
|
|
5012
|
+
var r = n = new lr(this._has(e), En, this.name + "." + P(e) + "?", !1);
|
|
5013
|
+
this._hasMap.set(e, r), Yr(r, function() {
|
|
5198
5014
|
return t._hasMap.delete(e);
|
|
5199
5015
|
});
|
|
5200
5016
|
}
|
|
@@ -5214,7 +5030,7 @@ var Di, Oi = {}, ki = function() {
|
|
|
5214
5030
|
return n ? this._updateValue(e, t) : this._addValue(e, t), this;
|
|
5215
5031
|
}, e.prototype.delete = function(e) {
|
|
5216
5032
|
var t = this;
|
|
5217
|
-
if (
|
|
5033
|
+
if (Gn(this._keysAtom), q(this)) {
|
|
5218
5034
|
var n = J(this, {
|
|
5219
5035
|
type: "delete",
|
|
5220
5036
|
object: this,
|
|
@@ -5251,8 +5067,8 @@ var Di, Oi = {}, ki = function() {
|
|
|
5251
5067
|
}
|
|
5252
5068
|
}, e.prototype._addValue = function(e, t) {
|
|
5253
5069
|
var n = this;
|
|
5254
|
-
|
|
5255
|
-
var r = new
|
|
5070
|
+
Gn(this._keysAtom), K(function() {
|
|
5071
|
+
var r = new lr(t, n.enhancer, n.name + "." + P(e), !1);
|
|
5256
5072
|
n._data.set(e, r), t = r.value, n._updateHasMapEntry(e, !0), n._keysAtom.reportChanged();
|
|
5257
5073
|
});
|
|
5258
5074
|
var r = W(), i = Y(this), a = i || r ? {
|
|
@@ -5270,7 +5086,7 @@ var Di, Oi = {}, ki = function() {
|
|
|
5270
5086
|
return this._keysAtom.reportObserved(), this._data.keys();
|
|
5271
5087
|
}, e.prototype.values = function() {
|
|
5272
5088
|
var e = this, t = this.keys();
|
|
5273
|
-
return
|
|
5089
|
+
return Ji({ next: function() {
|
|
5274
5090
|
var n = t.next(), r = n.done, i = n.value;
|
|
5275
5091
|
return {
|
|
5276
5092
|
done: r,
|
|
@@ -5279,20 +5095,20 @@ var Di, Oi = {}, ki = function() {
|
|
|
5279
5095
|
} });
|
|
5280
5096
|
}, e.prototype.entries = function() {
|
|
5281
5097
|
var e = this, t = this.keys();
|
|
5282
|
-
return
|
|
5098
|
+
return Ji({ next: function() {
|
|
5283
5099
|
var n = t.next(), r = n.done, i = n.value;
|
|
5284
5100
|
return {
|
|
5285
5101
|
done: r,
|
|
5286
5102
|
value: r ? void 0 : [i, e.get(i)]
|
|
5287
5103
|
};
|
|
5288
5104
|
} });
|
|
5289
|
-
}, e.prototype[
|
|
5105
|
+
}, e.prototype[Ti = F, Symbol.iterator] = function() {
|
|
5290
5106
|
return this.entries();
|
|
5291
5107
|
}, e.prototype.forEach = function(e, t) {
|
|
5292
5108
|
var n, r;
|
|
5293
5109
|
try {
|
|
5294
5110
|
for (var i = I(this), a = i.next(); !a.done; a = i.next()) {
|
|
5295
|
-
var o =
|
|
5111
|
+
var o = mn(a.value, 2), s = o[0], c = o[1];
|
|
5296
5112
|
e.call(t, c, s, this);
|
|
5297
5113
|
}
|
|
5298
5114
|
} catch (e) {
|
|
@@ -5307,24 +5123,24 @@ var Di, Oi = {}, ki = function() {
|
|
|
5307
5123
|
}, e.prototype.merge = function(e) {
|
|
5308
5124
|
var t = this;
|
|
5309
5125
|
return Q(e) && (e = e.toJS()), K(function() {
|
|
5310
|
-
var n =
|
|
5126
|
+
var n = sr(!0);
|
|
5311
5127
|
try {
|
|
5312
|
-
|
|
5128
|
+
Kt(e) ? $t(e).forEach(function(n) {
|
|
5313
5129
|
return t.set(n, e[n]);
|
|
5314
5130
|
}) : Array.isArray(e) ? e.forEach(function(e) {
|
|
5315
|
-
var n =
|
|
5131
|
+
var n = mn(e, 2), r = n[0], i = n[1];
|
|
5316
5132
|
return t.set(r, i);
|
|
5317
|
-
}) :
|
|
5133
|
+
}) : Zt(e) ? (e.constructor !== Map && M("Cannot initialize from classes that inherit from Map: " + e.constructor.name), e.forEach(function(e, n) {
|
|
5318
5134
|
return t.set(n, e);
|
|
5319
5135
|
})) : e != null && M("Cannot initialize map from " + e);
|
|
5320
5136
|
} finally {
|
|
5321
|
-
|
|
5137
|
+
cr(n);
|
|
5322
5138
|
}
|
|
5323
5139
|
}), this;
|
|
5324
5140
|
}, e.prototype.clear = function() {
|
|
5325
5141
|
var e = this;
|
|
5326
5142
|
K(function() {
|
|
5327
|
-
|
|
5143
|
+
Yn(function() {
|
|
5328
5144
|
var t, n;
|
|
5329
5145
|
try {
|
|
5330
5146
|
for (var r = I(e.keys()), i = r.next(); !i.done; i = r.next()) {
|
|
@@ -5345,7 +5161,7 @@ var Di, Oi = {}, ki = function() {
|
|
|
5345
5161
|
}, e.prototype.replace = function(e) {
|
|
5346
5162
|
var t = this;
|
|
5347
5163
|
return K(function() {
|
|
5348
|
-
var n, r, i, a, o =
|
|
5164
|
+
var n, r, i, a, o = qt(e), s = /* @__PURE__ */ new Map(), c = !1;
|
|
5349
5165
|
try {
|
|
5350
5166
|
for (var l = I(t._data.keys()), u = l.next(); !u.done; u = l.next()) {
|
|
5351
5167
|
var d = u.value;
|
|
@@ -5366,7 +5182,7 @@ var Di, Oi = {}, ki = function() {
|
|
|
5366
5182
|
}
|
|
5367
5183
|
try {
|
|
5368
5184
|
for (var p = I(o.entries()), m = p.next(); !m.done; m = p.next()) {
|
|
5369
|
-
var h =
|
|
5185
|
+
var h = mn(m.value, 2), d = h[0], f = h[1], g = t._data.has(d);
|
|
5370
5186
|
if (t.set(d, f), t._data.has(d)) {
|
|
5371
5187
|
var _ = t._data.get(d);
|
|
5372
5188
|
s.set(d, _), g || (c = !0);
|
|
@@ -5401,7 +5217,7 @@ var Di, Oi = {}, ki = function() {
|
|
|
5401
5217
|
var e, t, n = {};
|
|
5402
5218
|
try {
|
|
5403
5219
|
for (var r = I(this), i = r.next(); !i.done; i = r.next()) {
|
|
5404
|
-
var a =
|
|
5220
|
+
var a = mn(i.value, 2), o = a[0], s = a[1];
|
|
5405
5221
|
n[typeof o == "symbol" ? o : P(o)] = s;
|
|
5406
5222
|
}
|
|
5407
5223
|
} catch (t) {
|
|
@@ -5424,13 +5240,13 @@ var Di, Oi = {}, ki = function() {
|
|
|
5424
5240
|
return P(t) + ": " + ("" + e.get(t));
|
|
5425
5241
|
}).join(", ") + " }]";
|
|
5426
5242
|
}, e.prototype.observe = function(e, t) {
|
|
5427
|
-
return
|
|
5243
|
+
return vi(this, e);
|
|
5428
5244
|
}, e.prototype.intercept = function(e) {
|
|
5429
|
-
return
|
|
5245
|
+
return _i(this, e);
|
|
5430
5246
|
}, e;
|
|
5431
|
-
}(), Q = N("ObservableMap",
|
|
5247
|
+
}(), Q = N("ObservableMap", Di), Oi, ki = {}, Ai = function() {
|
|
5432
5248
|
function e(e, t, n) {
|
|
5433
|
-
if (t === void 0 && (t =
|
|
5249
|
+
if (t === void 0 && (t = wn), n === void 0 && (n = "ObservableSet@" + j()), this.name = n, this[Oi] = ki, this._data = /* @__PURE__ */ new Set(), this._atom = an(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");
|
|
5434
5250
|
this.enhancer = function(e, r) {
|
|
5435
5251
|
return t(e, r, n);
|
|
5436
5252
|
}, e && this.replace(e);
|
|
@@ -5440,7 +5256,7 @@ var Di, Oi = {}, ki = function() {
|
|
|
5440
5256
|
}, e.prototype.clear = function() {
|
|
5441
5257
|
var e = this;
|
|
5442
5258
|
K(function() {
|
|
5443
|
-
|
|
5259
|
+
Yn(function() {
|
|
5444
5260
|
var t, n;
|
|
5445
5261
|
try {
|
|
5446
5262
|
for (var r = I(e._data.values()), i = r.next(); !i.done; i = r.next()) {
|
|
@@ -5482,7 +5298,7 @@ var Di, Oi = {}, ki = function() {
|
|
|
5482
5298
|
configurable: !0
|
|
5483
5299
|
}), e.prototype.add = function(e) {
|
|
5484
5300
|
var t = this;
|
|
5485
|
-
if (
|
|
5301
|
+
if (Gn(this._atom), q(this)) {
|
|
5486
5302
|
var n = J(this, {
|
|
5487
5303
|
type: "add",
|
|
5488
5304
|
object: this,
|
|
@@ -5527,7 +5343,7 @@ var Di, Oi = {}, ki = function() {
|
|
|
5527
5343
|
return this._atom.reportObserved(), this._data.has(this.dehanceValue(e));
|
|
5528
5344
|
}, e.prototype.entries = function() {
|
|
5529
5345
|
var e = 0, t = Array.from(this.keys()), n = Array.from(this.values());
|
|
5530
|
-
return
|
|
5346
|
+
return Ji({ next: function() {
|
|
5531
5347
|
var r = e;
|
|
5532
5348
|
return e += 1, r < n.length ? {
|
|
5533
5349
|
value: [t[r], n[r]],
|
|
@@ -5539,7 +5355,7 @@ var Di, Oi = {}, ki = function() {
|
|
|
5539
5355
|
}, e.prototype.values = function() {
|
|
5540
5356
|
this._atom.reportObserved();
|
|
5541
5357
|
var e = this, t = 0, n = Array.from(this._data.values());
|
|
5542
|
-
return
|
|
5358
|
+
return Ji({ next: function() {
|
|
5543
5359
|
return t < n.length ? {
|
|
5544
5360
|
value: e.dehanceValue(n[t++]),
|
|
5545
5361
|
done: !1
|
|
@@ -5548,35 +5364,35 @@ var Di, Oi = {}, ki = function() {
|
|
|
5548
5364
|
}, e.prototype.replace = function(e) {
|
|
5549
5365
|
var t = this;
|
|
5550
5366
|
return $(e) && (e = e.toJS()), K(function() {
|
|
5551
|
-
var n =
|
|
5367
|
+
var n = sr(!0);
|
|
5552
5368
|
try {
|
|
5553
|
-
Array.isArray(e) ||
|
|
5369
|
+
Array.isArray(e) || Qt(e) ? (t.clear(), e.forEach(function(e) {
|
|
5554
5370
|
return t.add(e);
|
|
5555
5371
|
})) : e != null && M("Cannot initialize set from " + e);
|
|
5556
5372
|
} finally {
|
|
5557
|
-
|
|
5373
|
+
cr(n);
|
|
5558
5374
|
}
|
|
5559
5375
|
}), this;
|
|
5560
5376
|
}, e.prototype.observe = function(e, t) {
|
|
5561
|
-
return
|
|
5377
|
+
return vi(this, e);
|
|
5562
5378
|
}, e.prototype.intercept = function(e) {
|
|
5563
|
-
return
|
|
5379
|
+
return _i(this, e);
|
|
5564
5380
|
}, e.prototype.toJS = function() {
|
|
5565
5381
|
return new Set(this);
|
|
5566
5382
|
}, e.prototype.toString = function() {
|
|
5567
5383
|
return this.name + "[ " + Array.from(this).join(", ") + " ]";
|
|
5568
|
-
}, e.prototype[
|
|
5384
|
+
}, e.prototype[Oi = F, Symbol.iterator] = function() {
|
|
5569
5385
|
return this.values();
|
|
5570
5386
|
}, e;
|
|
5571
|
-
}(), $ = N("ObservableSet",
|
|
5387
|
+
}(), $ = N("ObservableSet", Ai), ji = function() {
|
|
5572
5388
|
function e(e, t, n, r) {
|
|
5573
|
-
t === void 0 && (t = /* @__PURE__ */ new Map()), this.target = e, this.values = t, this.name = n, this.defaultEnhancer = r, this.keysAtom = new
|
|
5389
|
+
t === void 0 && (t = /* @__PURE__ */ new Map()), this.target = e, this.values = t, this.name = n, this.defaultEnhancer = r, this.keysAtom = new nn(n + ".keys");
|
|
5574
5390
|
}
|
|
5575
5391
|
return e.prototype.read = function(e) {
|
|
5576
5392
|
return this.values.get(e).get();
|
|
5577
5393
|
}, e.prototype.write = function(e, t) {
|
|
5578
5394
|
var n = this.target, r = this.values.get(e);
|
|
5579
|
-
if (r instanceof
|
|
5395
|
+
if (r instanceof dr) {
|
|
5580
5396
|
r.set(t);
|
|
5581
5397
|
return;
|
|
5582
5398
|
}
|
|
@@ -5602,7 +5418,7 @@ var Di, Oi = {}, ki = function() {
|
|
|
5602
5418
|
}
|
|
5603
5419
|
}, e.prototype.has = function(e) {
|
|
5604
5420
|
var t = this.pendingKeys || (this.pendingKeys = /* @__PURE__ */ new Map()), n = t.get(e);
|
|
5605
|
-
return n ? n.get() : (n = new
|
|
5421
|
+
return n ? n.get() : (n = new lr(!!this.values.get(e), En, this.name + "." + P(e) + "?", !1), t.set(e, n), n.get());
|
|
5606
5422
|
}, e.prototype.addObservableProp = function(e, t, n) {
|
|
5607
5423
|
n === void 0 && (n = this.defaultEnhancer);
|
|
5608
5424
|
var r = this.target;
|
|
@@ -5616,11 +5432,11 @@ var Di, Oi = {}, ki = function() {
|
|
|
5616
5432
|
if (!i) return;
|
|
5617
5433
|
t = i.newValue;
|
|
5618
5434
|
}
|
|
5619
|
-
var a = new
|
|
5620
|
-
this.values.set(e, a), t = a.value, Object.defineProperty(r, e,
|
|
5435
|
+
var a = new lr(t, n, this.name + "." + P(e), !1);
|
|
5436
|
+
this.values.set(e, a), t = a.value, Object.defineProperty(r, e, Fi(e)), this.notifyPropertyAddition(e, t);
|
|
5621
5437
|
}, e.prototype.addComputedProp = function(e, t, n) {
|
|
5622
5438
|
var r = this.target;
|
|
5623
|
-
n.name = n.name || this.name + "." + P(t), this.values.set(t, new
|
|
5439
|
+
n.name = n.name || this.name + "." + P(t), this.values.set(t, new dr(n)), (e === r || Xt(e, t)) && Object.defineProperty(e, t, Li(t));
|
|
5624
5440
|
}, e.prototype.remove = function(e) {
|
|
5625
5441
|
if (this.values.has(e)) {
|
|
5626
5442
|
var t = this.target;
|
|
@@ -5654,9 +5470,9 @@ var Di, Oi = {}, ki = function() {
|
|
|
5654
5470
|
}, e.prototype.illegalAccess = function(e, t) {
|
|
5655
5471
|
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");
|
|
5656
5472
|
}, e.prototype.observe = function(e, t) {
|
|
5657
|
-
return
|
|
5473
|
+
return vi(this, e);
|
|
5658
5474
|
}, e.prototype.intercept = function(e) {
|
|
5659
|
-
return
|
|
5475
|
+
return _i(this, e);
|
|
5660
5476
|
}, e.prototype.notifyPropertyAddition = function(e, t) {
|
|
5661
5477
|
var n = Y(this), r = W(), i = n || r ? {
|
|
5662
5478
|
type: "add",
|
|
@@ -5675,8 +5491,8 @@ var Di, Oi = {}, ki = function() {
|
|
|
5675
5491
|
var n = [];
|
|
5676
5492
|
try {
|
|
5677
5493
|
for (var r = I(this.values), i = r.next(); !i.done; i = r.next()) {
|
|
5678
|
-
var a =
|
|
5679
|
-
a[1] instanceof
|
|
5494
|
+
var a = mn(i.value, 2), o = a[0];
|
|
5495
|
+
a[1] instanceof lr && n.push(o);
|
|
5680
5496
|
}
|
|
5681
5497
|
} catch (t) {
|
|
5682
5498
|
e = { error: t };
|
|
@@ -5690,15 +5506,15 @@ var Di, Oi = {}, ki = function() {
|
|
|
5690
5506
|
return n;
|
|
5691
5507
|
}, e;
|
|
5692
5508
|
}();
|
|
5693
|
-
function
|
|
5694
|
-
if (t === void 0 && (t = ""), n === void 0 && (n =
|
|
5695
|
-
|
|
5696
|
-
var r = new
|
|
5697
|
-
return
|
|
5698
|
-
}
|
|
5699
|
-
var
|
|
5700
|
-
function
|
|
5701
|
-
return
|
|
5509
|
+
function Mi(e, t, n) {
|
|
5510
|
+
if (t === void 0 && (t = ""), n === void 0 && (n = wn), Object.prototype.hasOwnProperty.call(e, F)) return e[F];
|
|
5511
|
+
Kt(e) || (t = (e.constructor.name || "ObservableObject") + "@" + j()), t || (t = "ObservableObject@" + j());
|
|
5512
|
+
var r = new ji(e, /* @__PURE__ */ new Map(), P(t), n);
|
|
5513
|
+
return Jt(e, F, r), r;
|
|
5514
|
+
}
|
|
5515
|
+
var Ni = Object.create(null), Pi = Object.create(null);
|
|
5516
|
+
function Fi(e) {
|
|
5517
|
+
return Ni[e] || (Ni[e] = {
|
|
5702
5518
|
configurable: !0,
|
|
5703
5519
|
enumerable: !0,
|
|
5704
5520
|
get: function() {
|
|
@@ -5709,28 +5525,28 @@ function Li(e) {
|
|
|
5709
5525
|
}
|
|
5710
5526
|
});
|
|
5711
5527
|
}
|
|
5712
|
-
function
|
|
5713
|
-
return e[F] || (
|
|
5528
|
+
function Ii(e) {
|
|
5529
|
+
return e[F] || (xn(e), e[F]);
|
|
5714
5530
|
}
|
|
5715
|
-
function
|
|
5716
|
-
return
|
|
5531
|
+
function Li(e) {
|
|
5532
|
+
return Pi[e] || (Pi[e] = {
|
|
5717
5533
|
configurable: V.computedConfigurable,
|
|
5718
5534
|
enumerable: !1,
|
|
5719
5535
|
get: function() {
|
|
5720
|
-
return
|
|
5536
|
+
return Ii(this).read(e);
|
|
5721
5537
|
},
|
|
5722
5538
|
set: function(t) {
|
|
5723
|
-
|
|
5539
|
+
Ii(this).write(e, t);
|
|
5724
5540
|
}
|
|
5725
5541
|
});
|
|
5726
5542
|
}
|
|
5727
|
-
var
|
|
5728
|
-
function
|
|
5729
|
-
return
|
|
5543
|
+
var Ri = N("ObservableObjectAdministration", ji);
|
|
5544
|
+
function zi(e) {
|
|
5545
|
+
return Gt(e) ? (xn(e), Ri(e[F])) : !1;
|
|
5730
5546
|
}
|
|
5731
|
-
function
|
|
5547
|
+
function Bi(e, t) {
|
|
5732
5548
|
if (typeof e == "object" && e) {
|
|
5733
|
-
if (
|
|
5549
|
+
if (wi(e)) return t !== void 0 && M(!1), e[F].atom;
|
|
5734
5550
|
if ($(e)) return e[F];
|
|
5735
5551
|
if (Q(e)) {
|
|
5736
5552
|
var n = e;
|
|
@@ -5738,36 +5554,36 @@ function Hi(e, t) {
|
|
|
5738
5554
|
var r = n._data.get(t) || n._hasMap.get(t);
|
|
5739
5555
|
return r || M(!1), r;
|
|
5740
5556
|
}
|
|
5741
|
-
if (
|
|
5557
|
+
if (xn(e), t && !e[F] && e[t], zi(e)) {
|
|
5742
5558
|
if (!t) return M(!1);
|
|
5743
5559
|
var r = e[F].values.get(t);
|
|
5744
5560
|
return r || M(!1), r;
|
|
5745
5561
|
}
|
|
5746
|
-
if (
|
|
5747
|
-
} else if (typeof e == "function" &&
|
|
5562
|
+
if (rn(e) || fr(e) || Nr(e)) return e;
|
|
5563
|
+
} else if (typeof e == "function" && Nr(e[F])) return e[F];
|
|
5748
5564
|
return M(!1);
|
|
5749
5565
|
}
|
|
5750
|
-
function
|
|
5751
|
-
if (e || M("Expecting some object"), t !== void 0) return
|
|
5752
|
-
if (
|
|
5753
|
-
if (
|
|
5566
|
+
function Vi(e, t) {
|
|
5567
|
+
if (e || M("Expecting some object"), t !== void 0) return Vi(Bi(e, t));
|
|
5568
|
+
if (rn(e) || fr(e) || Nr(e) || Q(e) || $(e)) return e;
|
|
5569
|
+
if (xn(e), e[F]) return e[F];
|
|
5754
5570
|
M(!1);
|
|
5755
5571
|
}
|
|
5756
|
-
function
|
|
5757
|
-
return (t === void 0 ?
|
|
5572
|
+
function Hi(e, t) {
|
|
5573
|
+
return (t === void 0 ? zi(e) || Q(e) || $(e) ? Vi(e) : Bi(e) : Bi(e, t)).name;
|
|
5758
5574
|
}
|
|
5759
|
-
var
|
|
5760
|
-
function
|
|
5761
|
-
return n === void 0 && (n = -1),
|
|
5575
|
+
var Ui = Object.prototype.toString;
|
|
5576
|
+
function Wi(e, t, n) {
|
|
5577
|
+
return n === void 0 && (n = -1), Gi(e, t, n);
|
|
5762
5578
|
}
|
|
5763
|
-
function
|
|
5579
|
+
function Gi(e, t, n, r, i) {
|
|
5764
5580
|
if (e === t) return e !== 0 || 1 / e == 1 / t;
|
|
5765
5581
|
if (e == null || t == null) return !1;
|
|
5766
5582
|
if (e !== e) return t !== t;
|
|
5767
5583
|
var a = typeof e;
|
|
5768
5584
|
if (a !== "function" && a !== "object" && typeof t != "object") return !1;
|
|
5769
|
-
var o =
|
|
5770
|
-
if (o !==
|
|
5585
|
+
var o = Ui.call(e);
|
|
5586
|
+
if (o !== Ui.call(t)) return !1;
|
|
5771
5587
|
switch (o) {
|
|
5772
5588
|
case "[object RegExp]":
|
|
5773
5589
|
case "[object String]": return "" + e == "" + t;
|
|
@@ -5780,7 +5596,7 @@ function qi(e, t, n, r, i) {
|
|
|
5780
5596
|
n >= 0 && n++;
|
|
5781
5597
|
break;
|
|
5782
5598
|
}
|
|
5783
|
-
e =
|
|
5599
|
+
e = Ki(e), t = Ki(t);
|
|
5784
5600
|
var s = o === "[object Array]";
|
|
5785
5601
|
if (!s) {
|
|
5786
5602
|
if (typeof e != "object" || typeof t != "object") return !1;
|
|
@@ -5792,24 +5608,24 @@ function qi(e, t, n, r, i) {
|
|
|
5792
5608
|
for (var u = r.length; u--;) if (r[u] === e) return i[u] === t;
|
|
5793
5609
|
if (r.push(e), i.push(t), s) {
|
|
5794
5610
|
if (u = e.length, u !== t.length) return !1;
|
|
5795
|
-
for (; u--;) if (!
|
|
5611
|
+
for (; u--;) if (!Gi(e[u], t[u], n - 1, r, i)) return !1;
|
|
5796
5612
|
} else {
|
|
5797
5613
|
var d = Object.keys(e), f = void 0;
|
|
5798
5614
|
if (u = d.length, Object.keys(t).length !== u) return !1;
|
|
5799
|
-
for (; u--;) if (f = d[u], !(
|
|
5615
|
+
for (; u--;) if (f = d[u], !(qi(t, f) && Gi(e[f], t[f], n - 1, r, i))) return !1;
|
|
5800
5616
|
}
|
|
5801
5617
|
return r.pop(), i.pop(), !0;
|
|
5802
5618
|
}
|
|
5803
|
-
function
|
|
5804
|
-
return
|
|
5619
|
+
function Ki(e) {
|
|
5620
|
+
return wi(e) ? e.slice() : Zt(e) || Q(e) || Qt(e) || $(e) ? Array.from(e.entries()) : e;
|
|
5805
5621
|
}
|
|
5806
|
-
function
|
|
5622
|
+
function qi(e, t) {
|
|
5807
5623
|
return Object.prototype.hasOwnProperty.call(e, t);
|
|
5808
5624
|
}
|
|
5809
|
-
function
|
|
5810
|
-
return e[Symbol.iterator] =
|
|
5625
|
+
function Ji(e) {
|
|
5626
|
+
return e[Symbol.iterator] = Yi, e;
|
|
5811
5627
|
}
|
|
5812
|
-
function
|
|
5628
|
+
function Yi() {
|
|
5813
5629
|
return this;
|
|
5814
5630
|
}
|
|
5815
5631
|
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.");
|
|
@@ -5817,20 +5633,20 @@ if (typeof Proxy > "u" || typeof Symbol > "u") throw Error("[mobx] MobX 5+ requi
|
|
|
5817
5633
|
function e() {}
|
|
5818
5634
|
e.name;
|
|
5819
5635
|
})(), typeof __MOBX_DEVTOOLS_GLOBAL_HOOK__ == "object" && __MOBX_DEVTOOLS_GLOBAL_HOOK__.injectMobx({
|
|
5820
|
-
spy:
|
|
5821
|
-
extras: { getDebugName:
|
|
5636
|
+
spy: Fr,
|
|
5637
|
+
extras: { getDebugName: Hi },
|
|
5822
5638
|
$mobx: F
|
|
5823
5639
|
});
|
|
5824
5640
|
//#endregion
|
|
5825
5641
|
//#region src/utils/localStorage.ts
|
|
5826
|
-
function
|
|
5642
|
+
function Xi() {
|
|
5827
5643
|
try {
|
|
5828
5644
|
return localStorage.setItem("test", "test"), localStorage.removeItem("test"), !0;
|
|
5829
5645
|
} catch {
|
|
5830
5646
|
return !1;
|
|
5831
5647
|
}
|
|
5832
5648
|
}
|
|
5833
|
-
var
|
|
5649
|
+
var Zi = Xi(), Qi = {
|
|
5834
5650
|
de: "Deutsch",
|
|
5835
5651
|
en: "English",
|
|
5836
5652
|
es: "Español",
|
|
@@ -5851,44 +5667,44 @@ var $i = Qi(), ea = {
|
|
|
5851
5667
|
kk: "Қазақша",
|
|
5852
5668
|
pl: "Polski",
|
|
5853
5669
|
mn: "Монгол"
|
|
5854
|
-
},
|
|
5855
|
-
if (
|
|
5856
|
-
let e = localStorage.getItem(
|
|
5857
|
-
return t && localStorage.removeItem(
|
|
5858
|
-
},
|
|
5670
|
+
}, $i = "en", ea = "efp-locale", ta = "language", na = L.box($i), ra = L.array([], { deep: !1 }), ia = (e) => Me(`${pe}locales/${e}.json`), aa = () => {
|
|
5671
|
+
if (!Zi) return null;
|
|
5672
|
+
let e = localStorage.getItem(ea), t = localStorage.getItem(ta);
|
|
5673
|
+
return t && localStorage.removeItem(ta), e || (t && localStorage.setItem(ea, t), t);
|
|
5674
|
+
}, oa = () => {
|
|
5859
5675
|
var e;
|
|
5860
|
-
let t = window.__data, n = ((e = navigator.languages) == null ? void 0 : e[0]) || navigator.language, r = Object.keys(
|
|
5861
|
-
return (
|
|
5862
|
-
},
|
|
5863
|
-
|
|
5676
|
+
let t = window.__data, n = ((e = navigator.languages) == null ? void 0 : e[0]) || navigator.language, r = Object.keys(Qi).find((e) => n.startsWith(e));
|
|
5677
|
+
return (aa() || (t == null ? void 0 : t.locale) || r || $i).toLowerCase();
|
|
5678
|
+
}, sa = () => na.get(), ca = () => ra, la = (e) => ra.some((t) => t.id === e), ua = (e, t) => (na.get(), Lt.t(e, t)), da = async () => {
|
|
5679
|
+
ra.replace(Object.entries(Qi).sort(([e], [t]) => e.localeCompare(t)).map(([e, t]) => ({
|
|
5864
5680
|
id: e,
|
|
5865
5681
|
name: t,
|
|
5866
|
-
entity: { type:
|
|
5682
|
+
entity: { type: S }
|
|
5867
5683
|
})));
|
|
5868
|
-
let e =
|
|
5869
|
-
if (e !==
|
|
5870
|
-
t[e] = { translation: await
|
|
5684
|
+
let e = oa(), t = {};
|
|
5685
|
+
if (e !== $i) try {
|
|
5686
|
+
t[e] = { translation: await ia(e) };
|
|
5871
5687
|
} catch (t) {
|
|
5872
|
-
console.error(`Unable to load "${e}" localization, falling back to "${
|
|
5688
|
+
console.error(`Unable to load "${e}" localization, falling back to "${$i}".`, t), e = $i;
|
|
5873
5689
|
}
|
|
5874
|
-
return
|
|
5690
|
+
return na.set(e), Lt.init({
|
|
5875
5691
|
resources: t,
|
|
5876
5692
|
lng: e,
|
|
5877
5693
|
keySeparator: !1,
|
|
5878
|
-
saveMissing: e !==
|
|
5694
|
+
saveMissing: e !== $i,
|
|
5879
5695
|
missingKeyHandler: (e, t, n, r) => console.debug(`i18n missing key: '${e[0]}:${t}:${n}', fallback: '${r}'`)
|
|
5880
5696
|
});
|
|
5881
|
-
},
|
|
5697
|
+
}, fa = async (e) => {
|
|
5882
5698
|
let t = e.toLowerCase();
|
|
5883
5699
|
try {
|
|
5884
|
-
t !==
|
|
5700
|
+
t !== $i && !Lt.hasResourceBundle(t, "translation") && Lt.addResourceBundle(t, "translation", await ia(t), !0, !0), await Lt.changeLanguage(t), na.set(t), Zi && localStorage.setItem(ea, t);
|
|
5885
5701
|
} catch (e) {
|
|
5886
5702
|
console.error(`Failed to switch language to "${t}":`, e);
|
|
5887
5703
|
}
|
|
5888
|
-
},
|
|
5704
|
+
}, pa = async () => (Zi && (localStorage.removeItem(ea), localStorage.removeItem(ta)), fa(oa())), ma = /webview|wv|ip((?!.*Safari)|(?=.*like Safari))|iosWebView|AndroidWebView/i.test(navigator.userAgent);
|
|
5889
5705
|
//#endregion
|
|
5890
5706
|
//#region src/utils/loadImage.ts
|
|
5891
|
-
function
|
|
5707
|
+
function ha(e) {
|
|
5892
5708
|
return new Promise((t) => {
|
|
5893
5709
|
var n = new Image();
|
|
5894
5710
|
n.onerror = () => t(null), n.onload = () => t(n), n.crossOrigin = "anonymous", n.src = e;
|
|
@@ -5896,6 +5712,6 @@ function _a(e) {
|
|
|
5896
5712
|
}
|
|
5897
5713
|
//#endregion
|
|
5898
5714
|
//#region src/utils/is-debug.ts
|
|
5899
|
-
var
|
|
5715
|
+
var ga = Zi && localStorage.getItem("debug") === "1";
|
|
5900
5716
|
//#endregion
|
|
5901
|
-
export {
|
|
5717
|
+
export { h as $, Ze as A, Le as B, K as C, de as Ct, Ye as D, Ke as E, ze as F, ve as G, Pe as H, Ue as I, _e as J, ge as K, We as L, He as M, Be as N, Ge as O, Ve as P, x as Q, Re as R, ui as S, ue as St, k as T, o as Tt, Ce as U, Fe as V, Se as W, d as X, pe as Y, g as Z, ti as _, l as _t, ca as a, C as at, Vr as b, ne as bt, pa as c, ee as ct, Zi as d, b as dt, ie as et, Or as f, y as ft, Zr as g, c as gt, Vn as h, u as ht, sa as i, oe as it, qe as j, Xe as k, fa as l, m as lt, Ur as m, v as mt, ha as n, se as nt, la as o, f as ot, Br as p, _ as pt, he as q, ma as r, ce as rt, da as s, S as st, ga as t, ae as tt, ua as u, le as ut, L as v, p as vt, it as w, s as wt, Fr as x, re as xt, Kr as y, te as yt, Ne as z };
|