oiu-core 0.0.25 → 0.0.26
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.
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as he } from "react/jsx-runtime";
|
|
2
2
|
import * as fe from "react";
|
|
3
|
-
import Ft, { createElement as Ni, PureComponent as
|
|
3
|
+
import Ft, { createElement as Ni, PureComponent as fl, createContext as Ds, memo as xs, useContext as dl, useCallback as Fs, useMemo as qe, useRef as hl, useEffect as zt, useState as lo, useLayoutEffect as pl } from "react";
|
|
4
4
|
var $s = /* @__PURE__ */ ((e) => (e[e.Redirect = 0] = "Redirect", e[e.Success = 1] = "Success", e[e.Fail = 2] = "Fail", e))($s || {});
|
|
5
5
|
class Ls {
|
|
6
6
|
constructor() {
|
|
@@ -28,7 +28,7 @@ class Ls {
|
|
|
28
28
|
}
|
|
29
29
|
}
|
|
30
30
|
}
|
|
31
|
-
class
|
|
31
|
+
class yl extends Ls {
|
|
32
32
|
constructor(t) {
|
|
33
33
|
super(), this._identity = t;
|
|
34
34
|
}
|
|
@@ -84,10 +84,10 @@ class pl extends Ls {
|
|
|
84
84
|
}
|
|
85
85
|
}
|
|
86
86
|
var Ri = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
87
|
-
function
|
|
87
|
+
function ml(e) {
|
|
88
88
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
89
89
|
}
|
|
90
|
-
function
|
|
90
|
+
function gl(e) {
|
|
91
91
|
if (Object.prototype.hasOwnProperty.call(e, "__esModule")) return e;
|
|
92
92
|
var t = e.default;
|
|
93
93
|
if (typeof t == "function") {
|
|
@@ -113,7 +113,7 @@ function ml(e) {
|
|
|
113
113
|
}
|
|
114
114
|
var lr = { exports: {} }, an = {};
|
|
115
115
|
var Ii;
|
|
116
|
-
function
|
|
116
|
+
function vl() {
|
|
117
117
|
if (Ii) return an;
|
|
118
118
|
Ii = 1;
|
|
119
119
|
var e = Ft;
|
|
@@ -165,7 +165,7 @@ function gl() {
|
|
|
165
165
|
}
|
|
166
166
|
var sn = {};
|
|
167
167
|
var Ci;
|
|
168
|
-
function
|
|
168
|
+
function bl() {
|
|
169
169
|
return Ci || (Ci = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
170
170
|
function e(u, c) {
|
|
171
171
|
return u === c && (u !== 0 || 1 / u === 1 / c) || u !== u && c !== c;
|
|
@@ -217,22 +217,22 @@ function vl() {
|
|
|
217
217
|
})()), sn;
|
|
218
218
|
}
|
|
219
219
|
var Mi;
|
|
220
|
-
function
|
|
221
|
-
return Mi || (Mi = 1, process.env.NODE_ENV === "production" ? lr.exports =
|
|
220
|
+
function El() {
|
|
221
|
+
return Mi || (Mi = 1, process.env.NODE_ENV === "production" ? lr.exports = vl() : lr.exports = bl()), lr.exports;
|
|
222
222
|
}
|
|
223
|
-
var
|
|
223
|
+
var Sl = El(), wl = /* @__PURE__ */ Symbol.for("react-redux-context"), _l = typeof globalThis < "u" ? globalThis : (
|
|
224
224
|
/* fall back to a per-module scope (pre-8.1 behaviour) if `globalThis` is not available */
|
|
225
225
|
{}
|
|
226
226
|
);
|
|
227
|
-
function
|
|
227
|
+
function Ol() {
|
|
228
228
|
if (!fe.createContext) return {};
|
|
229
|
-
const e = wl
|
|
229
|
+
const e = _l[wl] ??= /* @__PURE__ */ new Map();
|
|
230
230
|
let t = e.get(fe.createContext);
|
|
231
231
|
return t || (t = fe.createContext(
|
|
232
232
|
null
|
|
233
233
|
), process.env.NODE_ENV !== "production" && (t.displayName = "ReactRedux"), e.set(fe.createContext, t)), t;
|
|
234
234
|
}
|
|
235
|
-
var st = /* @__PURE__ */
|
|
235
|
+
var st = /* @__PURE__ */ Ol();
|
|
236
236
|
function Lo(e = st) {
|
|
237
237
|
return function() {
|
|
238
238
|
const r = fe.useContext(e);
|
|
@@ -256,17 +256,17 @@ function Hs(e = st) {
|
|
|
256
256
|
withTypes: () => r
|
|
257
257
|
}), r;
|
|
258
258
|
}
|
|
259
|
-
var
|
|
260
|
-
function
|
|
261
|
-
const t = e === st ?
|
|
259
|
+
var Al = /* @__PURE__ */ Hs();
|
|
260
|
+
function Tl(e = st) {
|
|
261
|
+
const t = e === st ? Al : Hs(e), r = () => t().dispatch;
|
|
262
262
|
return Object.assign(r, {
|
|
263
263
|
withTypes: () => r
|
|
264
264
|
}), r;
|
|
265
265
|
}
|
|
266
|
-
var Fr = /* @__PURE__ */
|
|
267
|
-
function
|
|
266
|
+
var Fr = /* @__PURE__ */ Tl(), Pl = (e, t) => e === t;
|
|
267
|
+
function Nl(e = st) {
|
|
268
268
|
const t = e === st ? Bs : Lo(e), r = (n, o = {}) => {
|
|
269
|
-
const { equalityFn: i =
|
|
269
|
+
const { equalityFn: i = Pl } = typeof o == "function" ? { equalityFn: o } : o;
|
|
270
270
|
if (process.env.NODE_ENV !== "production") {
|
|
271
271
|
if (!n)
|
|
272
272
|
throw new Error("You must pass a selector to useSelector");
|
|
@@ -330,7 +330,7 @@ Selectors that return the entire state are almost certainly a mistake, as they w
|
|
|
330
330
|
}
|
|
331
331
|
}[n.name],
|
|
332
332
|
[n]
|
|
333
|
-
), v =
|
|
333
|
+
), v = Sl.useSyncExternalStoreWithSelector(
|
|
334
334
|
u.addNestedSub,
|
|
335
335
|
s.getState,
|
|
336
336
|
c || s.getState,
|
|
@@ -343,12 +343,12 @@ Selectors that return the entire state are almost certainly a mistake, as they w
|
|
|
343
343
|
withTypes: () => r
|
|
344
344
|
}), r;
|
|
345
345
|
}
|
|
346
|
-
var Re = /* @__PURE__ */
|
|
347
|
-
const
|
|
346
|
+
var Re = /* @__PURE__ */ Nl();
|
|
347
|
+
const Rl = () => {
|
|
348
348
|
};
|
|
349
|
-
let
|
|
349
|
+
let Il = class extends fl {
|
|
350
350
|
constructor(...t) {
|
|
351
|
-
super(...t), this.i = !1, this.h = null, this.o =
|
|
351
|
+
super(...t), this.i = !1, this.h = null, this.o = Rl, this.state = { t: !0 };
|
|
352
352
|
}
|
|
353
353
|
componentWillUnmount() {
|
|
354
354
|
this.o();
|
|
@@ -371,10 +371,10 @@ let Rl = class extends ll {
|
|
|
371
371
|
return typeof t == "function" ? t(this.i, r) : t;
|
|
372
372
|
}
|
|
373
373
|
};
|
|
374
|
-
function Il(e) {
|
|
375
|
-
return (t) => Ni(e, { children: (r) => Ni(Rl, Object.assign({}, t, { ability: t.ability || r })) });
|
|
376
|
-
}
|
|
377
374
|
function Cl(e) {
|
|
375
|
+
return (t) => Ni(e, { children: (r) => Ni(Il, Object.assign({}, t, { ability: t.ability || r })) });
|
|
376
|
+
}
|
|
377
|
+
function Ml(e) {
|
|
378
378
|
const t = Ft.useContext(e), [r, n] = Ft.useState();
|
|
379
379
|
return Ft.useEffect((() => t.on("updated", ((o) => {
|
|
380
380
|
o.rules !== r && n(o.rules);
|
|
@@ -384,11 +384,11 @@ const ks = Ds(void 0), Bo = Ds(void 0);
|
|
|
384
384
|
function ve(e) {
|
|
385
385
|
return `Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `;
|
|
386
386
|
}
|
|
387
|
-
var
|
|
387
|
+
var Dl = typeof Symbol == "function" && Symbol.observable || "@@observable", Di = Dl, un = () => Math.random().toString(36).substring(7).split("").join("."), xl = {
|
|
388
388
|
INIT: `@@redux/INIT${/* @__PURE__ */ un()}`,
|
|
389
389
|
REPLACE: `@@redux/REPLACE${/* @__PURE__ */ un()}`,
|
|
390
390
|
PROBE_UNKNOWN_ACTION: () => `@@redux/PROBE_UNKNOWN_ACTION${un()}`
|
|
391
|
-
}, at =
|
|
391
|
+
}, at = xl;
|
|
392
392
|
function Fe(e) {
|
|
393
393
|
if (typeof e != "object" || e === null)
|
|
394
394
|
return !1;
|
|
@@ -397,7 +397,7 @@ function Fe(e) {
|
|
|
397
397
|
t = Object.getPrototypeOf(t);
|
|
398
398
|
return Object.getPrototypeOf(e) === t || Object.getPrototypeOf(e) === null;
|
|
399
399
|
}
|
|
400
|
-
function
|
|
400
|
+
function Fl(e) {
|
|
401
401
|
if (e === void 0)
|
|
402
402
|
return "undefined";
|
|
403
403
|
if (e === null)
|
|
@@ -413,11 +413,11 @@ function xl(e) {
|
|
|
413
413
|
}
|
|
414
414
|
if (Array.isArray(e))
|
|
415
415
|
return "array";
|
|
416
|
-
if (
|
|
416
|
+
if (Bl(e))
|
|
417
417
|
return "date";
|
|
418
|
-
if (
|
|
418
|
+
if (Ll(e))
|
|
419
419
|
return "error";
|
|
420
|
-
const r =
|
|
420
|
+
const r = $l(e);
|
|
421
421
|
switch (r) {
|
|
422
422
|
case "Symbol":
|
|
423
423
|
case "Promise":
|
|
@@ -429,18 +429,18 @@ function xl(e) {
|
|
|
429
429
|
}
|
|
430
430
|
return Object.prototype.toString.call(e).slice(8, -1).toLowerCase().replace(/\s/g, "");
|
|
431
431
|
}
|
|
432
|
-
function
|
|
432
|
+
function $l(e) {
|
|
433
433
|
return typeof e.constructor == "function" ? e.constructor.name : null;
|
|
434
434
|
}
|
|
435
|
-
function
|
|
435
|
+
function Ll(e) {
|
|
436
436
|
return e instanceof Error || typeof e.message == "string" && e.constructor && typeof e.constructor.stackTraceLimit == "number";
|
|
437
437
|
}
|
|
438
|
-
function
|
|
438
|
+
function Bl(e) {
|
|
439
439
|
return e instanceof Date ? !0 : typeof e.toDateString == "function" && typeof e.getDate == "function" && typeof e.setDate == "function";
|
|
440
440
|
}
|
|
441
441
|
function Xe(e) {
|
|
442
442
|
let t = typeof e;
|
|
443
|
-
return process.env.NODE_ENV !== "production" && (t =
|
|
443
|
+
return process.env.NODE_ENV !== "production" && (t = Fl(e)), t;
|
|
444
444
|
}
|
|
445
445
|
function Us(e, t, r) {
|
|
446
446
|
if (typeof e != "function")
|
|
@@ -548,7 +548,7 @@ function xi(e) {
|
|
|
548
548
|
} catch {
|
|
549
549
|
}
|
|
550
550
|
}
|
|
551
|
-
function
|
|
551
|
+
function Hl(e, t, r, n) {
|
|
552
552
|
const o = Object.keys(t), i = r && r.type === at.INIT ? "preloadedState argument passed to createStore" : "previous state received by the reducer";
|
|
553
553
|
if (o.length === 0)
|
|
554
554
|
return "Store does not have a valid reducer. Make sure the argument passed to combineReducers is an object whose values are reducers.";
|
|
@@ -560,7 +560,7 @@ function Bl(e, t, r, n) {
|
|
|
560
560
|
}), !(r && r.type === at.REPLACE) && a.length > 0)
|
|
561
561
|
return `Unexpected ${a.length > 1 ? "keys" : "key"} "${a.join('", "')}" found in ${i}. Expected to find one of the known reducer keys instead: "${o.join('", "')}". Unexpected keys will be ignored.`;
|
|
562
562
|
}
|
|
563
|
-
function
|
|
563
|
+
function kl(e) {
|
|
564
564
|
Object.keys(e).forEach((t) => {
|
|
565
565
|
const r = e[t];
|
|
566
566
|
if (typeof r(void 0, {
|
|
@@ -584,7 +584,7 @@ function js(e) {
|
|
|
584
584
|
process.env.NODE_ENV !== "production" && (o = {});
|
|
585
585
|
let i;
|
|
586
586
|
try {
|
|
587
|
-
|
|
587
|
+
kl(r);
|
|
588
588
|
} catch (a) {
|
|
589
589
|
i = a;
|
|
590
590
|
}
|
|
@@ -592,7 +592,7 @@ function js(e) {
|
|
|
592
592
|
if (i)
|
|
593
593
|
throw i;
|
|
594
594
|
if (process.env.NODE_ENV !== "production") {
|
|
595
|
-
const y =
|
|
595
|
+
const y = Hl(s, r, u, o);
|
|
596
596
|
y && xi(y);
|
|
597
597
|
}
|
|
598
598
|
let c = !1;
|
|
@@ -611,7 +611,7 @@ function js(e) {
|
|
|
611
611
|
function Tr(...e) {
|
|
612
612
|
return e.length === 0 ? (t) => t : e.length === 1 ? e[0] : e.reduce((t, r) => (...n) => t(r(...n)));
|
|
613
613
|
}
|
|
614
|
-
function
|
|
614
|
+
function Ul(...e) {
|
|
615
615
|
return (t) => (r, n) => {
|
|
616
616
|
const o = t(r, n);
|
|
617
617
|
let i = () => {
|
|
@@ -674,7 +674,7 @@ var _e = Object, ut = _e.getPrototypeOf, Ht = "constructor", Wt = "prototype", f
|
|
|
674
674
|
function Ae(e) {
|
|
675
675
|
return e ? Vs(e) || Qt(e) || !!e[$t] || !!e[Ht]?.[$t] || Kt(e) || Xt(e) : !1;
|
|
676
676
|
}
|
|
677
|
-
var
|
|
677
|
+
var jl = _e[Wt][Ht].toString(), Fi = /* @__PURE__ */ new WeakMap();
|
|
678
678
|
function Vs(e) {
|
|
679
679
|
if (!e || !vt(e))
|
|
680
680
|
return !1;
|
|
@@ -687,9 +687,9 @@ function Vs(e) {
|
|
|
687
687
|
if (!Ye(r))
|
|
688
688
|
return !1;
|
|
689
689
|
let n = Fi.get(r);
|
|
690
|
-
return n === void 0 && (n = Function.toString.call(r), Fi.set(r, n)), n ===
|
|
690
|
+
return n === void 0 && (n = Function.toString.call(r), Fi.set(r, n)), n === jl;
|
|
691
691
|
}
|
|
692
|
-
function
|
|
692
|
+
function ql(e) {
|
|
693
693
|
return Oe(e) || me(15, e), e[ge].base_;
|
|
694
694
|
}
|
|
695
695
|
function Ot(e, t, r = !0) {
|
|
@@ -707,15 +707,15 @@ var Lt = (e, t, r = ct(e)) => r === 2 ? e.has(t) : _e[Wt].hasOwnProperty.call(e,
|
|
|
707
707
|
), Nr = (e, t, r, n = ct(e)) => {
|
|
708
708
|
n === 2 ? e.set(t, r) : n === 3 ? e.add(r) : e[t] = r;
|
|
709
709
|
};
|
|
710
|
-
function
|
|
710
|
+
function Vl(e, t) {
|
|
711
711
|
return e === t ? e !== 0 || 1 / e === 1 / t : e !== e && t !== t;
|
|
712
712
|
}
|
|
713
713
|
var Qt = Array.isArray, Kt = (e) => e instanceof Map, Xt = (e) => e instanceof Set, vt = (e) => typeof e == "object", Ye = (e) => typeof e == "function", cn = (e) => typeof e == "boolean";
|
|
714
|
-
function
|
|
714
|
+
function Gl(e) {
|
|
715
715
|
const t = +e;
|
|
716
716
|
return Number.isInteger(t) && String(t) === e;
|
|
717
717
|
}
|
|
718
|
-
var
|
|
718
|
+
var zl = (e) => vt(e) ? e?.[ge] : null, He = (e) => e.copy_ || e.base_, Uo = (e) => e.modified_ ? e.copy_ : e.base_;
|
|
719
719
|
function ho(e, t) {
|
|
720
720
|
if (Kt(e))
|
|
721
721
|
return new Map(e);
|
|
@@ -761,11 +761,11 @@ function jo(e, t = !1) {
|
|
|
761
761
|
!1
|
|
762
762
|
)), e;
|
|
763
763
|
}
|
|
764
|
-
function
|
|
764
|
+
function Wl() {
|
|
765
765
|
me(2);
|
|
766
766
|
}
|
|
767
767
|
var fr = {
|
|
768
|
-
[kt]:
|
|
768
|
+
[kt]: Wl
|
|
769
769
|
};
|
|
770
770
|
function $r(e) {
|
|
771
771
|
return e === null || !vt(e) ? !0 : _e.isFrozen(e);
|
|
@@ -776,10 +776,10 @@ function lt(e) {
|
|
|
776
776
|
return t || me(0, e), t;
|
|
777
777
|
}
|
|
778
778
|
var Li = (e) => !!Cr[e];
|
|
779
|
-
function
|
|
779
|
+
function Ql(e, t) {
|
|
780
780
|
Cr[e] || (Cr[e] = t);
|
|
781
781
|
}
|
|
782
|
-
var Ut, Gs = () => Ut,
|
|
782
|
+
var Ut, Gs = () => Ut, Kl = (e, t) => ({
|
|
783
783
|
drafts_: [],
|
|
784
784
|
parent_: e,
|
|
785
785
|
immer_: t,
|
|
@@ -796,13 +796,13 @@ function Bi(e, t) {
|
|
|
796
796
|
t && (e.patchPlugin_ = lt(Ir), e.patches_ = [], e.inversePatches_ = [], e.patchListener_ = t);
|
|
797
797
|
}
|
|
798
798
|
function po(e) {
|
|
799
|
-
yo(e), e.drafts_.forEach(
|
|
799
|
+
yo(e), e.drafts_.forEach(Xl), e.drafts_ = null;
|
|
800
800
|
}
|
|
801
801
|
function yo(e) {
|
|
802
802
|
e === Ut && (Ut = e.parent_);
|
|
803
803
|
}
|
|
804
|
-
var Hi = (e) => Ut =
|
|
805
|
-
function
|
|
804
|
+
var Hi = (e) => Ut = Kl(Ut, e);
|
|
805
|
+
function Xl(e) {
|
|
806
806
|
const t = e[ge];
|
|
807
807
|
t.type_ === 0 || t.type_ === 1 ? t.revoke_() : t.revoked_ = !0;
|
|
808
808
|
}
|
|
@@ -819,7 +819,7 @@ function ki(e, t) {
|
|
|
819
819
|
);
|
|
820
820
|
} else
|
|
821
821
|
e = Ui(t, r);
|
|
822
|
-
return
|
|
822
|
+
return Yl(t, e, !0), po(t), t.patches_ && t.patchListener_(t.patches_, t.inversePatches_), e !== ko ? e : void 0;
|
|
823
823
|
}
|
|
824
824
|
function Ui(e, t) {
|
|
825
825
|
if ($r(t))
|
|
@@ -840,13 +840,13 @@ function Ui(e, t) {
|
|
|
840
840
|
}
|
|
841
841
|
return r.copy_;
|
|
842
842
|
}
|
|
843
|
-
function
|
|
843
|
+
function Yl(e, t, r = !1) {
|
|
844
844
|
!e.parent_ && e.immer_.autoFreeze_ && e.canAutoFreeze_ && jo(t, r);
|
|
845
845
|
}
|
|
846
846
|
function zs(e) {
|
|
847
847
|
e.finalized_ = !0, e.scope_.unfinalizedDrafts_--;
|
|
848
848
|
}
|
|
849
|
-
var Lr = (e, t) => e.scope_ === t,
|
|
849
|
+
var Lr = (e, t) => e.scope_ === t, Zl = [];
|
|
850
850
|
function Ws(e, t, r, n) {
|
|
851
851
|
const o = He(e), i = e.type_;
|
|
852
852
|
if (n !== void 0 && Be(o, n, i) === t) {
|
|
@@ -862,11 +862,11 @@ function Ws(e, t, r, n) {
|
|
|
862
862
|
}
|
|
863
863
|
});
|
|
864
864
|
}
|
|
865
|
-
const a = e.draftLocations_.get(t) ??
|
|
865
|
+
const a = e.draftLocations_.get(t) ?? Zl;
|
|
866
866
|
for (const s of a)
|
|
867
867
|
Nr(o, s, r, i);
|
|
868
868
|
}
|
|
869
|
-
function
|
|
869
|
+
function Jl(e, t, r) {
|
|
870
870
|
e.callbacks_.push(function(o) {
|
|
871
871
|
const i = t;
|
|
872
872
|
if (!i || !Lr(i, o))
|
|
@@ -886,7 +886,7 @@ function Qs(e, t) {
|
|
|
886
886
|
zs(e);
|
|
887
887
|
}
|
|
888
888
|
}
|
|
889
|
-
function
|
|
889
|
+
function ef(e, t, r) {
|
|
890
890
|
const { scope_: n } = e;
|
|
891
891
|
if (Oe(r)) {
|
|
892
892
|
const o = r[ge];
|
|
@@ -915,7 +915,7 @@ function qo(e, t, r) {
|
|
|
915
915
|
} else Ae(o) && qo(o, t, r);
|
|
916
916
|
})), e;
|
|
917
917
|
}
|
|
918
|
-
function
|
|
918
|
+
function tf(e, t) {
|
|
919
919
|
const r = Qt(e), n = {
|
|
920
920
|
type_: r ? 1 : 0,
|
|
921
921
|
// Track which produce call this is associated with.
|
|
@@ -957,11 +957,11 @@ var Vo = {
|
|
|
957
957
|
return r.createMethodInterceptor(e, t);
|
|
958
958
|
const o = He(e);
|
|
959
959
|
if (!Lt(o, t, e.type_))
|
|
960
|
-
return
|
|
960
|
+
return rf(e, o, t);
|
|
961
961
|
const i = o[t];
|
|
962
962
|
if (e.finalized_ || !Ae(i) || n && e.operationMethod && r?.isMutatingArrayMethod(
|
|
963
963
|
e.operationMethod
|
|
964
|
-
) &&
|
|
964
|
+
) && Gl(t))
|
|
965
965
|
return i;
|
|
966
966
|
if (i === ln(e.base_, t)) {
|
|
967
967
|
_r(e);
|
|
@@ -984,13 +984,13 @@ var Vo = {
|
|
|
984
984
|
const o = ln(He(e), t), i = o?.[ge];
|
|
985
985
|
if (i && i.base_ === r)
|
|
986
986
|
return e.copy_[t] = r, e.assigned_.set(t, !1), !0;
|
|
987
|
-
if (
|
|
987
|
+
if (Vl(r, o) && (r !== void 0 || Lt(e.base_, t, e.type_)))
|
|
988
988
|
return !0;
|
|
989
989
|
_r(e), mo(e);
|
|
990
990
|
}
|
|
991
991
|
return e.copy_[t] === r && // special case: handle new props with value 'undefined'
|
|
992
992
|
(r !== void 0 || t in e.copy_) || // special case: NaN
|
|
993
|
-
Number.isNaN(r) && Number.isNaN(e.copy_[t]) || (e.copy_[t] = r, e.assigned_.set(t, !0),
|
|
993
|
+
Number.isNaN(r) && Number.isNaN(e.copy_[t]) || (e.copy_[t] = r, e.assigned_.set(t, !0), ef(e, t, r)), !0;
|
|
994
994
|
},
|
|
995
995
|
deleteProperty(e, t) {
|
|
996
996
|
return _r(e), ln(e.base_, t) !== void 0 || t in e.base_ ? (e.assigned_.set(t, !1), mo(e)) : e.assigned_.delete(t), e.copy_ && delete e.copy_[t], !0;
|
|
@@ -1032,7 +1032,7 @@ function ln(e, t) {
|
|
|
1032
1032
|
const r = e[ge];
|
|
1033
1033
|
return (r ? He(r) : e)[t];
|
|
1034
1034
|
}
|
|
1035
|
-
function
|
|
1035
|
+
function rf(e, t, r) {
|
|
1036
1036
|
const n = Ks(t, r);
|
|
1037
1037
|
return n ? kt in n ? n[kt] : (
|
|
1038
1038
|
// This is a very special case, if the prop is a getter defined by the
|
|
@@ -1060,7 +1060,7 @@ function _r(e) {
|
|
|
1060
1060
|
e.scope_.immer_.useStrictShallowCopy_
|
|
1061
1061
|
));
|
|
1062
1062
|
}
|
|
1063
|
-
var
|
|
1063
|
+
var nf = class {
|
|
1064
1064
|
constructor(e) {
|
|
1065
1065
|
this.autoFreeze_ = !0, this.useStrictShallowCopy_ = !1, this.useStrictIteration_ = !1, this.produce = (t, r, n) => {
|
|
1066
1066
|
if (Ye(t) && !Ye(r)) {
|
|
@@ -1159,8 +1159,8 @@ var rf = class {
|
|
|
1159
1159
|
}
|
|
1160
1160
|
};
|
|
1161
1161
|
function go(e, t, r, n) {
|
|
1162
|
-
const [o, i] = Kt(t) ? lt(Rr).proxyMap_(t, r) : Xt(t) ? lt(Rr).proxySet_(t, r) :
|
|
1163
|
-
return (r?.scope_ ?? Gs()).drafts_.push(o), i.callbacks_ = r?.callbacks_ ?? [], i.key_ = n, r && n !== void 0 ?
|
|
1162
|
+
const [o, i] = Kt(t) ? lt(Rr).proxyMap_(t, r) : Xt(t) ? lt(Rr).proxySet_(t, r) : tf(t, r);
|
|
1163
|
+
return (r?.scope_ ?? Gs()).drafts_.push(o), i.callbacks_ = r?.callbacks_ ?? [], i.key_ = n, r && n !== void 0 ? Jl(r, i, n) : i.callbacks_.push(function(u) {
|
|
1164
1164
|
u.mapSetPlugin_?.fixSetContents(i);
|
|
1165
1165
|
const { patchPlugin_: c } = u;
|
|
1166
1166
|
i.modified_ && c && c.generatePatches_(i, [], u);
|
|
@@ -1188,7 +1188,7 @@ function Ys(e) {
|
|
|
1188
1188
|
n
|
|
1189
1189
|
), t && (t.finalized_ = !1), r;
|
|
1190
1190
|
}
|
|
1191
|
-
function
|
|
1191
|
+
function of() {
|
|
1192
1192
|
process.env.NODE_ENV !== "production" && qs.push(
|
|
1193
1193
|
'Sets cannot have "replace" patches.',
|
|
1194
1194
|
function(p) {
|
|
@@ -1201,7 +1201,7 @@ function nf() {
|
|
|
1201
1201
|
);
|
|
1202
1202
|
function t(p, S = []) {
|
|
1203
1203
|
if ("key_" in p && p.key_ !== void 0) {
|
|
1204
|
-
const d = p.parent_.copy_ ?? p.parent_.base_, g =
|
|
1204
|
+
const d = p.parent_.copy_ ?? p.parent_.base_, g = zl(Be(d, p.key_)), E = Be(d, p.key_);
|
|
1205
1205
|
if (E === void 0 || E !== p.draft_ && E !== p.base_ && E !== p.copy_ || g != null && g.base_ !== p.base_)
|
|
1206
1206
|
return null;
|
|
1207
1207
|
const m = p.parent_.type_ === 3;
|
|
@@ -1431,16 +1431,16 @@ function nf() {
|
|
|
1431
1431
|
function h(p) {
|
|
1432
1432
|
return Oe(p) ? v(p) : p;
|
|
1433
1433
|
}
|
|
1434
|
-
|
|
1434
|
+
Ql(Ir, {
|
|
1435
1435
|
applyPatches_: y,
|
|
1436
1436
|
generatePatches_: a,
|
|
1437
1437
|
generateReplacementPatches_: l,
|
|
1438
1438
|
getPath: t
|
|
1439
1439
|
});
|
|
1440
1440
|
}
|
|
1441
|
-
var qt = new
|
|
1441
|
+
var qt = new nf(), Yt = qt.produce, Zs = /* @__PURE__ */ qt.produceWithPatches.bind(
|
|
1442
1442
|
qt
|
|
1443
|
-
), ji = /* @__PURE__ */ qt.applyPatches.bind(qt),
|
|
1443
|
+
), ji = /* @__PURE__ */ qt.applyPatches.bind(qt), af = (e, t, r) => {
|
|
1444
1444
|
if (t.length === 1 && t[0] === r) {
|
|
1445
1445
|
let n = !1;
|
|
1446
1446
|
try {
|
|
@@ -1464,7 +1464,7 @@ Ensure transformation logic is in the result function, and extraction logic is i
|
|
|
1464
1464
|
);
|
|
1465
1465
|
}
|
|
1466
1466
|
}
|
|
1467
|
-
},
|
|
1467
|
+
}, sf = (e, t, r) => {
|
|
1468
1468
|
const { memoize: n, memoizeOptions: o } = t, { inputSelectorResults: i, inputSelectorResultsCopy: a } = e, s = n(() => ({}), ...o);
|
|
1469
1469
|
if (!(s.apply(null, i) === s.apply(null, a))) {
|
|
1470
1470
|
let c;
|
|
@@ -1486,19 +1486,19 @@ Avoid returning a new reference inside your input selector, e.g.
|
|
|
1486
1486
|
}
|
|
1487
1487
|
);
|
|
1488
1488
|
}
|
|
1489
|
-
},
|
|
1489
|
+
}, uf = {
|
|
1490
1490
|
inputStabilityCheck: "once",
|
|
1491
1491
|
identityFunctionCheck: "once"
|
|
1492
1492
|
};
|
|
1493
|
-
function
|
|
1493
|
+
function cf(e, t = `expected a function, instead received ${typeof e}`) {
|
|
1494
1494
|
if (typeof e != "function")
|
|
1495
1495
|
throw new TypeError(t);
|
|
1496
1496
|
}
|
|
1497
|
-
function
|
|
1497
|
+
function lf(e, t = `expected an object, instead received ${typeof e}`) {
|
|
1498
1498
|
if (typeof e != "object")
|
|
1499
1499
|
throw new TypeError(t);
|
|
1500
1500
|
}
|
|
1501
|
-
function
|
|
1501
|
+
function ff(e, t = "expected all items to be functions, instead received the following types: ") {
|
|
1502
1502
|
if (!e.every((r) => typeof r == "function")) {
|
|
1503
1503
|
const r = e.map(
|
|
1504
1504
|
(n) => typeof n == "function" ? `function ${n.name || "unnamed"}()` : typeof n
|
|
@@ -1507,9 +1507,9 @@ function lf(e, t = "expected all items to be functions, instead received the fol
|
|
|
1507
1507
|
}
|
|
1508
1508
|
}
|
|
1509
1509
|
var qi = (e) => Array.isArray(e) ? e : [e];
|
|
1510
|
-
function
|
|
1510
|
+
function df(e) {
|
|
1511
1511
|
const t = Array.isArray(e[0]) ? e[0] : e;
|
|
1512
|
-
return
|
|
1512
|
+
return ff(
|
|
1513
1513
|
t,
|
|
1514
1514
|
"createSelector expects all input-selectors to be functions, but received the following types: "
|
|
1515
1515
|
), t;
|
|
@@ -1520,32 +1520,32 @@ function Vi(e, t) {
|
|
|
1520
1520
|
r.push(e[o].apply(null, t));
|
|
1521
1521
|
return r;
|
|
1522
1522
|
}
|
|
1523
|
-
var
|
|
1523
|
+
var hf = (e, t) => {
|
|
1524
1524
|
const { identityFunctionCheck: r, inputStabilityCheck: n } = {
|
|
1525
|
-
...
|
|
1525
|
+
...uf,
|
|
1526
1526
|
...t
|
|
1527
1527
|
};
|
|
1528
1528
|
return {
|
|
1529
1529
|
identityFunctionCheck: {
|
|
1530
1530
|
shouldRun: r === "always" || r === "once" && e,
|
|
1531
|
-
run:
|
|
1531
|
+
run: af
|
|
1532
1532
|
},
|
|
1533
1533
|
inputStabilityCheck: {
|
|
1534
1534
|
shouldRun: n === "always" || n === "once" && e,
|
|
1535
|
-
run:
|
|
1535
|
+
run: sf
|
|
1536
1536
|
}
|
|
1537
1537
|
};
|
|
1538
|
-
},
|
|
1538
|
+
}, pf = class {
|
|
1539
1539
|
constructor(e) {
|
|
1540
1540
|
this.value = e;
|
|
1541
1541
|
}
|
|
1542
1542
|
deref() {
|
|
1543
1543
|
return this.value;
|
|
1544
1544
|
}
|
|
1545
|
-
},
|
|
1545
|
+
}, yf = typeof WeakRef < "u" ? WeakRef : pf, mf = 0, Gi = 1;
|
|
1546
1546
|
function dr() {
|
|
1547
1547
|
return {
|
|
1548
|
-
s:
|
|
1548
|
+
s: mf,
|
|
1549
1549
|
v: void 0,
|
|
1550
1550
|
o: null,
|
|
1551
1551
|
p: null
|
|
@@ -1578,7 +1578,7 @@ function Mr(e, t = {}) {
|
|
|
1578
1578
|
l = s.v;
|
|
1579
1579
|
else if (l = e.apply(null, arguments), i++, n) {
|
|
1580
1580
|
const y = o?.deref?.() ?? o;
|
|
1581
|
-
y != null && n(y, l) && (l = y, i !== 0 && i--), o = typeof l == "object" && l !== null || typeof l == "function" ? new
|
|
1581
|
+
y != null && n(y, l) && (l = y, i !== 0 && i--), o = typeof l == "object" && l !== null || typeof l == "function" ? new yf(l) : l;
|
|
1582
1582
|
}
|
|
1583
1583
|
return c.s = Gi, c.v = l, l;
|
|
1584
1584
|
}
|
|
@@ -1588,13 +1588,13 @@ function Mr(e, t = {}) {
|
|
|
1588
1588
|
i = 0;
|
|
1589
1589
|
}, a;
|
|
1590
1590
|
}
|
|
1591
|
-
function
|
|
1591
|
+
function gf(e, ...t) {
|
|
1592
1592
|
const r = typeof e == "function" ? {
|
|
1593
1593
|
memoize: e,
|
|
1594
1594
|
memoizeOptions: t
|
|
1595
1595
|
} : e, n = (...o) => {
|
|
1596
1596
|
let i = 0, a = 0, s, u = {}, c = o.pop();
|
|
1597
|
-
typeof c == "object" && (u = c, c = o.pop()),
|
|
1597
|
+
typeof c == "object" && (u = c, c = o.pop()), cf(
|
|
1598
1598
|
c,
|
|
1599
1599
|
`createSelector expects an output function after the inputs, but received: [${typeof c}]`
|
|
1600
1600
|
);
|
|
@@ -1607,7 +1607,7 @@ function mf(e, ...t) {
|
|
|
1607
1607
|
argsMemoize: h = Mr,
|
|
1608
1608
|
argsMemoizeOptions: p = [],
|
|
1609
1609
|
devModeChecks: S = {}
|
|
1610
|
-
} = l, d = qi(v), g = qi(p), E =
|
|
1610
|
+
} = l, d = qi(v), g = qi(p), E = df(o), m = y(function() {
|
|
1611
1611
|
return i++, c.apply(
|
|
1612
1612
|
null,
|
|
1613
1613
|
arguments
|
|
@@ -1621,7 +1621,7 @@ function mf(e, ...t) {
|
|
|
1621
1621
|
arguments
|
|
1622
1622
|
);
|
|
1623
1623
|
if (s = m.apply(null, A), process.env.NODE_ENV !== "production") {
|
|
1624
|
-
const { identityFunctionCheck: P, inputStabilityCheck: R } =
|
|
1624
|
+
const { identityFunctionCheck: P, inputStabilityCheck: R } = hf(b, S);
|
|
1625
1625
|
if (P.shouldRun && P.run(
|
|
1626
1626
|
c,
|
|
1627
1627
|
A,
|
|
@@ -1662,9 +1662,9 @@ function mf(e, ...t) {
|
|
|
1662
1662
|
withTypes: () => n
|
|
1663
1663
|
}), n;
|
|
1664
1664
|
}
|
|
1665
|
-
var Go = /* @__PURE__ */
|
|
1665
|
+
var Go = /* @__PURE__ */ gf(Mr), vf = Object.assign(
|
|
1666
1666
|
(e, t = Go) => {
|
|
1667
|
-
|
|
1667
|
+
lf(
|
|
1668
1668
|
e,
|
|
1669
1669
|
`createStructuredSelector expects first argument to be an object where each property is a selector, instead received a ${typeof e}`
|
|
1670
1670
|
);
|
|
@@ -1676,12 +1676,12 @@ var Go = /* @__PURE__ */ mf(Mr), gf = Object.assign(
|
|
|
1676
1676
|
(...i) => i.reduce((a, s, u) => (a[r[u]] = s, a), {})
|
|
1677
1677
|
);
|
|
1678
1678
|
},
|
|
1679
|
-
{ withTypes: () =>
|
|
1679
|
+
{ withTypes: () => vf }
|
|
1680
1680
|
);
|
|
1681
1681
|
function Js(e) {
|
|
1682
1682
|
return ({ dispatch: r, getState: n }) => (o) => (i) => typeof i == "function" ? i(r, n, e) : o(i);
|
|
1683
1683
|
}
|
|
1684
|
-
var
|
|
1684
|
+
var bf = Js(), Ef = Js, Sf = typeof window < "u" && window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ ? window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ : function() {
|
|
1685
1685
|
if (arguments.length !== 0)
|
|
1686
1686
|
return typeof arguments[0] == "object" ? Tr : Tr.apply(null, arguments);
|
|
1687
1687
|
}, eu = (e) => e && typeof e.match == "function";
|
|
@@ -1709,22 +1709,22 @@ function Ie(e, t) {
|
|
|
1709
1709
|
}
|
|
1710
1710
|
return r.toString = () => `${e}`, r.type = e, r.match = (n) => Ho(n) && n.type === e, r;
|
|
1711
1711
|
}
|
|
1712
|
-
function
|
|
1712
|
+
function wf(e) {
|
|
1713
1713
|
return typeof e == "function" && "type" in e && // hasMatchFunction only wants Matchers but I don't see the point in rewriting it
|
|
1714
1714
|
eu(e);
|
|
1715
1715
|
}
|
|
1716
|
-
function
|
|
1716
|
+
function _f(e) {
|
|
1717
1717
|
const t = e ? `${e}`.split("/") : [], r = t[t.length - 1] || "actionCreator";
|
|
1718
1718
|
return `Detected an action creator with type "${e || "unknown"}" being dispatched.
|
|
1719
1719
|
Make sure you're calling the action creator before dispatching, i.e. \`dispatch(${r}())\` instead of \`dispatch(${r})\`. This is necessary even if the action has no payload.`;
|
|
1720
1720
|
}
|
|
1721
|
-
function
|
|
1721
|
+
function Of(e = {}) {
|
|
1722
1722
|
if (process.env.NODE_ENV === "production")
|
|
1723
1723
|
return () => (r) => (n) => r(n);
|
|
1724
1724
|
const {
|
|
1725
|
-
isActionCreator: t =
|
|
1725
|
+
isActionCreator: t = wf
|
|
1726
1726
|
} = e;
|
|
1727
|
-
return () => (r) => (n) => (t(n) && console.warn(
|
|
1727
|
+
return () => (r) => (n) => (t(n) && console.warn(_f(n.type)), r(n));
|
|
1728
1728
|
}
|
|
1729
1729
|
function tu(e, t) {
|
|
1730
1730
|
let r = 0;
|
|
@@ -1766,10 +1766,10 @@ function zi(e) {
|
|
|
1766
1766
|
function hr(e, t, r) {
|
|
1767
1767
|
return e.has(t) ? e.get(t) : e.set(t, r(t)).get(t);
|
|
1768
1768
|
}
|
|
1769
|
-
function
|
|
1769
|
+
function Af(e) {
|
|
1770
1770
|
return typeof e != "object" || e == null || Object.isFrozen(e);
|
|
1771
1771
|
}
|
|
1772
|
-
function
|
|
1772
|
+
function Tf(e, t, r) {
|
|
1773
1773
|
const n = nu(e, t, r);
|
|
1774
1774
|
return {
|
|
1775
1775
|
detectMutations() {
|
|
@@ -1820,7 +1820,7 @@ function ou(e, t = [], r, n, o = !1, i = "") {
|
|
|
1820
1820
|
wasMutated: !1
|
|
1821
1821
|
};
|
|
1822
1822
|
}
|
|
1823
|
-
function
|
|
1823
|
+
function Pf(e = {}) {
|
|
1824
1824
|
if (process.env.NODE_ENV === "production")
|
|
1825
1825
|
return () => (t) => (r) => t(r);
|
|
1826
1826
|
{
|
|
@@ -1838,11 +1838,11 @@ function Tf(e = {}) {
|
|
|
1838
1838
|
return s == null ? v : s.call(this, y, v);
|
|
1839
1839
|
};
|
|
1840
1840
|
}, {
|
|
1841
|
-
isImmutable: n =
|
|
1841
|
+
isImmutable: n = Af,
|
|
1842
1842
|
ignoredPaths: o,
|
|
1843
1843
|
warnAfter: i = 32
|
|
1844
1844
|
} = e;
|
|
1845
|
-
const a =
|
|
1845
|
+
const a = Tf.bind(null, n, o);
|
|
1846
1846
|
return ({
|
|
1847
1847
|
getState: s
|
|
1848
1848
|
}) => {
|
|
@@ -1896,7 +1896,7 @@ function au(e) {
|
|
|
1896
1896
|
return !1;
|
|
1897
1897
|
return !0;
|
|
1898
1898
|
}
|
|
1899
|
-
function
|
|
1899
|
+
function Nf(e = {}) {
|
|
1900
1900
|
if (process.env.NODE_ENV === "production")
|
|
1901
1901
|
return () => (t) => (r) => t(r);
|
|
1902
1902
|
{
|
|
@@ -1945,7 +1945,7 @@ Take a look at the reducer(s) handling this action type: ${h.type}.
|
|
|
1945
1945
|
function pr(e) {
|
|
1946
1946
|
return typeof e == "boolean";
|
|
1947
1947
|
}
|
|
1948
|
-
var
|
|
1948
|
+
var Rf = () => function(t) {
|
|
1949
1949
|
const {
|
|
1950
1950
|
thunk: r = !0,
|
|
1951
1951
|
immutableCheck: n = !0,
|
|
@@ -1953,18 +1953,18 @@ var Nf = () => function(t) {
|
|
|
1953
1953
|
actionCreatorCheck: i = !0
|
|
1954
1954
|
} = t ?? {};
|
|
1955
1955
|
let a = new ru();
|
|
1956
|
-
if (r && (pr(r) ? a.push(
|
|
1956
|
+
if (r && (pr(r) ? a.push(bf) : a.push(Ef(r.extraArgument))), process.env.NODE_ENV !== "production") {
|
|
1957
1957
|
if (n) {
|
|
1958
1958
|
let s = {};
|
|
1959
|
-
pr(n) || (s = n), a.unshift(
|
|
1959
|
+
pr(n) || (s = n), a.unshift(Pf(s));
|
|
1960
1960
|
}
|
|
1961
1961
|
if (o) {
|
|
1962
1962
|
let s = {};
|
|
1963
|
-
pr(o) || (s = o), a.push(
|
|
1963
|
+
pr(o) || (s = o), a.push(Nf(s));
|
|
1964
1964
|
}
|
|
1965
1965
|
if (i) {
|
|
1966
1966
|
let s = {};
|
|
1967
|
-
pr(i) || (s = i), a.unshift(
|
|
1967
|
+
pr(i) || (s = i), a.unshift(Of(s));
|
|
1968
1968
|
}
|
|
1969
1969
|
}
|
|
1970
1970
|
return a;
|
|
@@ -1975,7 +1975,7 @@ var Nf = () => function(t) {
|
|
|
1975
1975
|
}
|
|
1976
1976
|
}), Wi = (e) => (t) => {
|
|
1977
1977
|
setTimeout(t, e);
|
|
1978
|
-
},
|
|
1978
|
+
}, If = (e = {
|
|
1979
1979
|
type: "raf"
|
|
1980
1980
|
}) => (t) => (...r) => {
|
|
1981
1981
|
const n = t(...r);
|
|
@@ -2005,15 +2005,15 @@ var Nf = () => function(t) {
|
|
|
2005
2005
|
}
|
|
2006
2006
|
}
|
|
2007
2007
|
});
|
|
2008
|
-
},
|
|
2008
|
+
}, Cf = (e) => function(r) {
|
|
2009
2009
|
const {
|
|
2010
2010
|
autoBatch: n = !0
|
|
2011
2011
|
} = r ?? {};
|
|
2012
2012
|
let o = new ru(e);
|
|
2013
|
-
return n && o.push(
|
|
2013
|
+
return n && o.push(If(typeof n == "object" ? n : void 0)), o;
|
|
2014
2014
|
};
|
|
2015
|
-
function
|
|
2016
|
-
const t =
|
|
2015
|
+
function Mf(e) {
|
|
2016
|
+
const t = Rf(), {
|
|
2017
2017
|
reducer: r = void 0,
|
|
2018
2018
|
middleware: n,
|
|
2019
2019
|
devTools: o = !0,
|
|
@@ -2047,12 +2047,12 @@ function Cf(e) {
|
|
|
2047
2047
|
});
|
|
2048
2048
|
}
|
|
2049
2049
|
let l = Tr;
|
|
2050
|
-
o && (l =
|
|
2050
|
+
o && (l = Sf({
|
|
2051
2051
|
// Enable capture of stack traces for dispatched Redux actions
|
|
2052
2052
|
trace: process.env.NODE_ENV !== "production",
|
|
2053
2053
|
...typeof o == "object" && o
|
|
2054
2054
|
}));
|
|
2055
|
-
const y =
|
|
2055
|
+
const y = Ul(...c), v = Cf(y);
|
|
2056
2056
|
if (process.env.NODE_ENV !== "production" && s && typeof s != "function")
|
|
2057
2057
|
throw new Error(process.env.NODE_ENV === "production" ? ee(5) : "`enhancers` field must be a callback");
|
|
2058
2058
|
let h = typeof s == "function" ? s(v) : v();
|
|
@@ -2106,14 +2106,14 @@ function su(e) {
|
|
|
2106
2106
|
};
|
|
2107
2107
|
return e(o), [t, r, n];
|
|
2108
2108
|
}
|
|
2109
|
-
function
|
|
2109
|
+
function Df(e) {
|
|
2110
2110
|
return typeof e == "function";
|
|
2111
2111
|
}
|
|
2112
|
-
function
|
|
2112
|
+
function xf(e, t) {
|
|
2113
2113
|
if (process.env.NODE_ENV !== "production" && typeof t == "object")
|
|
2114
2114
|
throw new Error(process.env.NODE_ENV === "production" ? ee(8) : "The object notation for `createReducer` has been removed. Please use the 'builder callback' notation instead: https://redux-toolkit.js.org/api/createReducer");
|
|
2115
2115
|
let [r, n, o] = su(t), i;
|
|
2116
|
-
if (
|
|
2116
|
+
if (Df(e))
|
|
2117
2117
|
i = () => zi(e());
|
|
2118
2118
|
else {
|
|
2119
2119
|
const s = zi(e);
|
|
@@ -2179,12 +2179,12 @@ function Je(...e) {
|
|
|
2179
2179
|
function bo(...e) {
|
|
2180
2180
|
return e.length === 0 ? (t) => Hr(t, ["pending", "fulfilled", "rejected"]) : Zt(e) ? Ve(...e.flatMap((t) => [t.pending, t.rejected, t.fulfilled])) : bo()(e[0]);
|
|
2181
2181
|
}
|
|
2182
|
-
var
|
|
2182
|
+
var Ff = "ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW", Wo = (e = 21) => {
|
|
2183
2183
|
let t = "", r = e;
|
|
2184
2184
|
for (; r--; )
|
|
2185
|
-
t +=
|
|
2185
|
+
t += Ff[Math.random() * 64 | 0];
|
|
2186
2186
|
return t;
|
|
2187
|
-
},
|
|
2187
|
+
}, $f = ["name", "message", "stack", "code"], fn = class {
|
|
2188
2188
|
constructor(e, t) {
|
|
2189
2189
|
this.payload = e, this.meta = t;
|
|
2190
2190
|
}
|
|
@@ -2202,10 +2202,10 @@ var xf = "ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW", Wo
|
|
|
2202
2202
|
does not exist at runtime
|
|
2203
2203
|
*/
|
|
2204
2204
|
_type;
|
|
2205
|
-
},
|
|
2205
|
+
}, Lf = (e) => {
|
|
2206
2206
|
if (typeof e == "object" && e !== null) {
|
|
2207
2207
|
const t = {};
|
|
2208
|
-
for (const r of
|
|
2208
|
+
for (const r of $f)
|
|
2209
2209
|
typeof e[r] == "string" && (t[r] = e[r]);
|
|
2210
2210
|
return t;
|
|
2211
2211
|
}
|
|
@@ -2232,7 +2232,7 @@ var xf = "ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW", Wo
|
|
|
2232
2232
|
}
|
|
2233
2233
|
})), a = Ie(t + "/rejected", (u, c, l, y, v) => ({
|
|
2234
2234
|
payload: y,
|
|
2235
|
-
error: (n && n.serializeError ||
|
|
2235
|
+
error: (n && n.serializeError || Lf)(u || "Rejected"),
|
|
2236
2236
|
meta: {
|
|
2237
2237
|
...v || {},
|
|
2238
2238
|
arg: l,
|
|
@@ -2262,7 +2262,7 @@ var xf = "ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW", Wo
|
|
|
2262
2262
|
getState: y,
|
|
2263
2263
|
extra: v
|
|
2264
2264
|
});
|
|
2265
|
-
if (
|
|
2265
|
+
if (Hf(f) && (f = await f), f === !1 || p.signal.aborted)
|
|
2266
2266
|
throw {
|
|
2267
2267
|
name: "ConditionError",
|
|
2268
2268
|
message: "Aborted due to condition callback returning false."
|
|
@@ -2309,7 +2309,7 @@ var xf = "ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW", Wo
|
|
|
2309
2309
|
requestId: h,
|
|
2310
2310
|
arg: u,
|
|
2311
2311
|
unwrap() {
|
|
2312
|
-
return E.then(
|
|
2312
|
+
return E.then(Bf);
|
|
2313
2313
|
}
|
|
2314
2314
|
});
|
|
2315
2315
|
};
|
|
@@ -2324,24 +2324,24 @@ var xf = "ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW", Wo
|
|
|
2324
2324
|
}
|
|
2325
2325
|
return e.withTypes = () => e, e;
|
|
2326
2326
|
})();
|
|
2327
|
-
function
|
|
2327
|
+
function Bf(e) {
|
|
2328
2328
|
if (e.meta && e.meta.rejectedWithValue)
|
|
2329
2329
|
throw e.payload;
|
|
2330
2330
|
if (e.error)
|
|
2331
2331
|
throw e.error;
|
|
2332
2332
|
return e.payload;
|
|
2333
2333
|
}
|
|
2334
|
-
function
|
|
2334
|
+
function Hf(e) {
|
|
2335
2335
|
return e !== null && typeof e == "object" && typeof e.then == "function";
|
|
2336
2336
|
}
|
|
2337
|
-
var
|
|
2338
|
-
function
|
|
2337
|
+
var kf = /* @__PURE__ */ Symbol.for("rtk-slice-createasyncthunk");
|
|
2338
|
+
function Uf(e, t) {
|
|
2339
2339
|
return `${e}/${t}`;
|
|
2340
2340
|
}
|
|
2341
|
-
function
|
|
2341
|
+
function jf({
|
|
2342
2342
|
creators: e
|
|
2343
2343
|
} = {}) {
|
|
2344
|
-
const t = e?.asyncThunk?.[
|
|
2344
|
+
const t = e?.asyncThunk?.[kf];
|
|
2345
2345
|
return function(n) {
|
|
2346
2346
|
const {
|
|
2347
2347
|
name: o,
|
|
@@ -2350,7 +2350,7 @@ function Uf({
|
|
|
2350
2350
|
if (!o)
|
|
2351
2351
|
throw new Error(process.env.NODE_ENV === "production" ? ee(11) : "`name` is a required option for createSlice");
|
|
2352
2352
|
typeof process < "u" && process.env.NODE_ENV === "development" && n.initialState === void 0 && console.error("You must provide an `initialState` value that is not `undefined`. You may have misspelled `initialState`");
|
|
2353
|
-
const a = (typeof n.reducers == "function" ? n.reducers(
|
|
2353
|
+
const a = (typeof n.reducers == "function" ? n.reducers(Vf()) : n.reducers) || {}, s = Object.keys(a), u = {
|
|
2354
2354
|
sliceCaseReducersByName: {},
|
|
2355
2355
|
sliceCaseReducersByType: {},
|
|
2356
2356
|
actionCreators: {},
|
|
@@ -2380,10 +2380,10 @@ function Uf({
|
|
|
2380
2380
|
s.forEach((m) => {
|
|
2381
2381
|
const b = a[m], f = {
|
|
2382
2382
|
reducerName: m,
|
|
2383
|
-
type:
|
|
2383
|
+
type: Uf(o, m),
|
|
2384
2384
|
createNotation: typeof n.reducers == "function"
|
|
2385
2385
|
};
|
|
2386
|
-
|
|
2386
|
+
zf(b) ? Qf(f, b, c, t) : Gf(f, b, c);
|
|
2387
2387
|
});
|
|
2388
2388
|
function l() {
|
|
2389
2389
|
if (process.env.NODE_ENV !== "production" && typeof n.extraReducers == "object")
|
|
@@ -2392,7 +2392,7 @@ function Uf({
|
|
|
2392
2392
|
...m,
|
|
2393
2393
|
...u.sliceCaseReducersByType
|
|
2394
2394
|
};
|
|
2395
|
-
return
|
|
2395
|
+
return xf(n.initialState, (A) => {
|
|
2396
2396
|
for (let P in w)
|
|
2397
2397
|
A.addCase(P, w[P]);
|
|
2398
2398
|
for (let P of u.sliceMatchers)
|
|
@@ -2426,7 +2426,7 @@ function Uf({
|
|
|
2426
2426
|
return hr(P, A, () => {
|
|
2427
2427
|
const R = {};
|
|
2428
2428
|
for (const [T, O] of Object.entries(n.selectors ?? {}))
|
|
2429
|
-
R[T] =
|
|
2429
|
+
R[T] = qf(O, A, () => hr(h, A, d), b);
|
|
2430
2430
|
return R;
|
|
2431
2431
|
});
|
|
2432
2432
|
}
|
|
@@ -2463,7 +2463,7 @@ function Uf({
|
|
|
2463
2463
|
return E;
|
|
2464
2464
|
};
|
|
2465
2465
|
}
|
|
2466
|
-
function
|
|
2466
|
+
function qf(e, t, r, n) {
|
|
2467
2467
|
function o(i, ...a) {
|
|
2468
2468
|
let s = t(i);
|
|
2469
2469
|
if (typeof s > "u") {
|
|
@@ -2476,8 +2476,8 @@ function jf(e, t, r, n) {
|
|
|
2476
2476
|
}
|
|
2477
2477
|
return o.unwrapped = e, o;
|
|
2478
2478
|
}
|
|
2479
|
-
var ke = /* @__PURE__ */
|
|
2480
|
-
function
|
|
2479
|
+
var ke = /* @__PURE__ */ jf();
|
|
2480
|
+
function Vf() {
|
|
2481
2481
|
function e(t, r) {
|
|
2482
2482
|
return {
|
|
2483
2483
|
_reducerDefinitionType: "asyncThunk",
|
|
@@ -2508,27 +2508,27 @@ function qf() {
|
|
|
2508
2508
|
asyncThunk: e
|
|
2509
2509
|
};
|
|
2510
2510
|
}
|
|
2511
|
-
function
|
|
2511
|
+
function Gf({
|
|
2512
2512
|
type: e,
|
|
2513
2513
|
reducerName: t,
|
|
2514
2514
|
createNotation: r
|
|
2515
2515
|
}, n, o) {
|
|
2516
2516
|
let i, a;
|
|
2517
2517
|
if ("reducer" in n) {
|
|
2518
|
-
if (r && !
|
|
2518
|
+
if (r && !Wf(n))
|
|
2519
2519
|
throw new Error(process.env.NODE_ENV === "production" ? ee(17) : "Please use the `create.preparedReducer` notation for prepared action creators with the `create` notation.");
|
|
2520
2520
|
i = n.reducer, a = n.prepare;
|
|
2521
2521
|
} else
|
|
2522
2522
|
i = n;
|
|
2523
2523
|
o.addCase(e, i).exposeCaseReducer(t, i).exposeAction(t, a ? Ie(e, a) : Ie(e));
|
|
2524
2524
|
}
|
|
2525
|
-
function
|
|
2525
|
+
function zf(e) {
|
|
2526
2526
|
return e._reducerDefinitionType === "asyncThunk";
|
|
2527
2527
|
}
|
|
2528
|
-
function
|
|
2528
|
+
function Wf(e) {
|
|
2529
2529
|
return e._reducerDefinitionType === "reducerWithPrepare";
|
|
2530
2530
|
}
|
|
2531
|
-
function
|
|
2531
|
+
function Qf({
|
|
2532
2532
|
type: e,
|
|
2533
2533
|
reducerName: t
|
|
2534
2534
|
}, r, n, o) {
|
|
@@ -2554,14 +2554,14 @@ function yr() {
|
|
|
2554
2554
|
function ee(e) {
|
|
2555
2555
|
return `Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `;
|
|
2556
2556
|
}
|
|
2557
|
-
const
|
|
2557
|
+
const Kf = (e) => e, Eo = () => Math.random().toString(36);
|
|
2558
2558
|
function Qo(e, ...t) {
|
|
2559
2559
|
return e.replace(
|
|
2560
2560
|
/{(\d+)}/g,
|
|
2561
2561
|
(r, n) => typeof t[n] < "u" ? t[n] : r
|
|
2562
2562
|
);
|
|
2563
2563
|
}
|
|
2564
|
-
function
|
|
2564
|
+
function Xf(e) {
|
|
2565
2565
|
if (!e) return null;
|
|
2566
2566
|
const t = e.split(".");
|
|
2567
2567
|
if (t.length < 2) return null;
|
|
@@ -2572,7 +2572,7 @@ function Kf(e) {
|
|
|
2572
2572
|
return null;
|
|
2573
2573
|
}
|
|
2574
2574
|
}
|
|
2575
|
-
const
|
|
2575
|
+
const Yf = {
|
|
2576
2576
|
auth: {
|
|
2577
2577
|
reason: "default",
|
|
2578
2578
|
identity: void 0
|
|
@@ -2582,7 +2582,7 @@ const Xf = {
|
|
|
2582
2582
|
theme: "dark"
|
|
2583
2583
|
}, cu = "app", At = ke({
|
|
2584
2584
|
name: cu,
|
|
2585
|
-
initialState:
|
|
2585
|
+
initialState: Yf,
|
|
2586
2586
|
reducers: {
|
|
2587
2587
|
screenResize(e, t) {
|
|
2588
2588
|
e.screen = t.payload;
|
|
@@ -2601,27 +2601,27 @@ const Xf = {
|
|
|
2601
2601
|
}
|
|
2602
2602
|
}
|
|
2603
2603
|
}), et = (e) => e[cu];
|
|
2604
|
-
function
|
|
2605
|
-
const e =
|
|
2604
|
+
function Zf() {
|
|
2605
|
+
const e = dl(ks);
|
|
2606
2606
|
if (!e) throw new Error("AuthService not found");
|
|
2607
2607
|
return e;
|
|
2608
2608
|
}
|
|
2609
2609
|
function lu() {
|
|
2610
2610
|
return Re((e) => et(e).auth?.identity);
|
|
2611
2611
|
}
|
|
2612
|
-
const
|
|
2613
|
-
const e =
|
|
2612
|
+
const Jf = () => {
|
|
2613
|
+
const e = Ml(Bo), t = Fs(
|
|
2614
2614
|
(n) => e.can(n.I, n.a, n.f),
|
|
2615
2615
|
[e]
|
|
2616
2616
|
);
|
|
2617
2617
|
return qe(() => ({ can: e.can, allowed: t }), [t, e]);
|
|
2618
2618
|
};
|
|
2619
|
-
let
|
|
2620
|
-
function
|
|
2621
|
-
const t = (++
|
|
2619
|
+
let ed = 0;
|
|
2620
|
+
function td(e) {
|
|
2621
|
+
const t = (++ed).toString();
|
|
2622
2622
|
return { I: t, a: t, f: e };
|
|
2623
2623
|
}
|
|
2624
|
-
const
|
|
2624
|
+
const rd = Cl(Bo.Consumer), nd = xs(({ permission: e, children: t }) => /* @__PURE__ */ he(rd, { I: e.I, a: e.a, children: t }));
|
|
2625
2625
|
var So = function(e, t) {
|
|
2626
2626
|
return So = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
2627
2627
|
r.__proto__ = n;
|
|
@@ -2661,17 +2661,17 @@ function xe(e, t, r) {
|
|
|
2661
2661
|
return e.concat(i || Array.prototype.slice.call(t));
|
|
2662
2662
|
}
|
|
2663
2663
|
function Me(e, t) {
|
|
2664
|
-
var r = t && t.cache ? t.cache :
|
|
2664
|
+
var r = t && t.cache ? t.cache : ld, n = t && t.serializer ? t.serializer : ud, o = t && t.strategy ? t.strategy : ad;
|
|
2665
2665
|
return o(e, {
|
|
2666
2666
|
cache: r,
|
|
2667
2667
|
serializer: n
|
|
2668
2668
|
});
|
|
2669
2669
|
}
|
|
2670
|
-
function
|
|
2670
|
+
function od(e) {
|
|
2671
2671
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
2672
2672
|
}
|
|
2673
|
-
function
|
|
2674
|
-
var o =
|
|
2673
|
+
function id(e, t, r, n) {
|
|
2674
|
+
var o = od(n) ? n : r(n), i = t.get(o);
|
|
2675
2675
|
return typeof i > "u" && (i = e.call(this, n), t.set(o, i)), i;
|
|
2676
2676
|
}
|
|
2677
2677
|
function fu(e, t, r) {
|
|
@@ -2681,16 +2681,16 @@ function fu(e, t, r) {
|
|
|
2681
2681
|
function du(e, t, r, n, o) {
|
|
2682
2682
|
return r.bind(t, e, n, o);
|
|
2683
2683
|
}
|
|
2684
|
-
function
|
|
2685
|
-
var r = e.length === 1 ?
|
|
2684
|
+
function ad(e, t) {
|
|
2685
|
+
var r = e.length === 1 ? id : fu;
|
|
2686
2686
|
return du(e, this, r, t.cache.create(), t.serializer);
|
|
2687
2687
|
}
|
|
2688
|
-
function
|
|
2688
|
+
function sd(e, t) {
|
|
2689
2689
|
return du(e, this, fu, t.cache.create(), t.serializer);
|
|
2690
2690
|
}
|
|
2691
|
-
var
|
|
2691
|
+
var ud = function() {
|
|
2692
2692
|
return JSON.stringify(arguments);
|
|
2693
|
-
},
|
|
2693
|
+
}, cd = (
|
|
2694
2694
|
/** @class */
|
|
2695
2695
|
(function() {
|
|
2696
2696
|
function e() {
|
|
@@ -2702,12 +2702,12 @@ var sd = function() {
|
|
|
2702
2702
|
this.cache[t] = r;
|
|
2703
2703
|
}, e;
|
|
2704
2704
|
})()
|
|
2705
|
-
),
|
|
2705
|
+
), ld = {
|
|
2706
2706
|
create: function() {
|
|
2707
|
-
return new
|
|
2707
|
+
return new cd();
|
|
2708
2708
|
}
|
|
2709
2709
|
}, De = {
|
|
2710
|
-
variadic:
|
|
2710
|
+
variadic: sd
|
|
2711
2711
|
}, W;
|
|
2712
2712
|
(function(e) {
|
|
2713
2713
|
e[e.EXPECT_ARGUMENT_CLOSING_BRACE = 1] = "EXPECT_ARGUMENT_CLOSING_BRACE", e[e.EMPTY_ARGUMENT = 2] = "EMPTY_ARGUMENT", e[e.MALFORMED_ARGUMENT = 3] = "MALFORMED_ARGUMENT", e[e.EXPECT_ARGUMENT_TYPE = 4] = "EXPECT_ARGUMENT_TYPE", e[e.INVALID_ARGUMENT_TYPE = 5] = "INVALID_ARGUMENT_TYPE", e[e.EXPECT_ARGUMENT_STYLE = 6] = "EXPECT_ARGUMENT_STYLE", e[e.INVALID_NUMBER_SKELETON = 7] = "INVALID_NUMBER_SKELETON", e[e.INVALID_DATE_TIME_SKELETON = 8] = "INVALID_DATE_TIME_SKELETON", e[e.EXPECT_NUMBER_SKELETON = 9] = "EXPECT_NUMBER_SKELETON", e[e.EXPECT_DATE_TIME_SKELETON = 10] = "EXPECT_DATE_TIME_SKELETON", e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE = 11] = "UNCLOSED_QUOTE_IN_ARGUMENT_STYLE", e[e.EXPECT_SELECT_ARGUMENT_OPTIONS = 12] = "EXPECT_SELECT_ARGUMENT_OPTIONS", e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE = 13] = "EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE", e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE = 14] = "INVALID_PLURAL_ARGUMENT_OFFSET_VALUE", e[e.EXPECT_SELECT_ARGUMENT_SELECTOR = 15] = "EXPECT_SELECT_ARGUMENT_SELECTOR", e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR = 16] = "EXPECT_PLURAL_ARGUMENT_SELECTOR", e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT = 17] = "EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT", e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT = 18] = "EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT", e[e.INVALID_PLURAL_ARGUMENT_SELECTOR = 19] = "INVALID_PLURAL_ARGUMENT_SELECTOR", e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR = 20] = "DUPLICATE_PLURAL_ARGUMENT_SELECTOR", e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR = 21] = "DUPLICATE_SELECT_ARGUMENT_SELECTOR", e[e.MISSING_OTHER_CLAUSE = 22] = "MISSING_OTHER_CLAUSE", e[e.INVALID_TAG = 23] = "INVALID_TAG", e[e.INVALID_TAG_NAME = 25] = "INVALID_TAG_NAME", e[e.UNMATCHED_CLOSING_TAG = 26] = "UNMATCHED_CLOSING_TAG", e[e.UNCLOSED_TAG = 27] = "UNCLOSED_TAG";
|
|
@@ -2723,7 +2723,7 @@ var St;
|
|
|
2723
2723
|
function Yi(e) {
|
|
2724
2724
|
return e.type === le.literal;
|
|
2725
2725
|
}
|
|
2726
|
-
function
|
|
2726
|
+
function fd(e) {
|
|
2727
2727
|
return e.type === le.argument;
|
|
2728
2728
|
}
|
|
2729
2729
|
function hu(e) {
|
|
@@ -2741,7 +2741,7 @@ function mu(e) {
|
|
|
2741
2741
|
function gu(e) {
|
|
2742
2742
|
return e.type === le.plural;
|
|
2743
2743
|
}
|
|
2744
|
-
function
|
|
2744
|
+
function dd(e) {
|
|
2745
2745
|
return e.type === le.pound;
|
|
2746
2746
|
}
|
|
2747
2747
|
function vu(e) {
|
|
@@ -2753,10 +2753,10 @@ function bu(e) {
|
|
|
2753
2753
|
function wo(e) {
|
|
2754
2754
|
return !!(e && typeof e == "object" && e.type === St.dateTime);
|
|
2755
2755
|
}
|
|
2756
|
-
var Eu = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,
|
|
2757
|
-
function
|
|
2756
|
+
var Eu = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, hd = /(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;
|
|
2757
|
+
function pd(e) {
|
|
2758
2758
|
var t = {};
|
|
2759
|
-
return e.replace(
|
|
2759
|
+
return e.replace(hd, function(r) {
|
|
2760
2760
|
var n = r.length;
|
|
2761
2761
|
switch (r[0]) {
|
|
2762
2762
|
// Era
|
|
@@ -2862,11 +2862,11 @@ function hd(e) {
|
|
|
2862
2862
|
return "";
|
|
2863
2863
|
}), t;
|
|
2864
2864
|
}
|
|
2865
|
-
var
|
|
2866
|
-
function
|
|
2865
|
+
var yd = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
2866
|
+
function md(e) {
|
|
2867
2867
|
if (e.length === 0)
|
|
2868
2868
|
throw new Error("Number skeleton cannot be empty");
|
|
2869
|
-
for (var t = e.split(
|
|
2869
|
+
for (var t = e.split(yd).filter(function(v) {
|
|
2870
2870
|
return v.length > 0;
|
|
2871
2871
|
}), r = [], n = 0, o = t; n < o.length; n++) {
|
|
2872
2872
|
var i = o[n], a = i.split("/");
|
|
@@ -2881,10 +2881,10 @@ function yd(e) {
|
|
|
2881
2881
|
}
|
|
2882
2882
|
return r;
|
|
2883
2883
|
}
|
|
2884
|
-
function
|
|
2884
|
+
function gd(e) {
|
|
2885
2885
|
return e.replace(/^(.*?)-/, "");
|
|
2886
2886
|
}
|
|
2887
|
-
var Zi = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Su = /^(@+)?(\+|#+)?[rs]?$/g,
|
|
2887
|
+
var Zi = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Su = /^(@+)?(\+|#+)?[rs]?$/g, vd = /(\*)(0+)|(#+)(0+)|(0+)/g, wu = /^(0+)$/;
|
|
2888
2888
|
function Ji(e) {
|
|
2889
2889
|
var t = {};
|
|
2890
2890
|
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Su, function(r, n, o) {
|
|
@@ -2931,7 +2931,7 @@ function _u(e) {
|
|
|
2931
2931
|
};
|
|
2932
2932
|
}
|
|
2933
2933
|
}
|
|
2934
|
-
function
|
|
2934
|
+
function bd(e) {
|
|
2935
2935
|
var t;
|
|
2936
2936
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
2937
2937
|
notation: "engineering"
|
|
@@ -2949,7 +2949,7 @@ function ea(e) {
|
|
|
2949
2949
|
var t = {}, r = _u(e);
|
|
2950
2950
|
return r || t;
|
|
2951
2951
|
}
|
|
2952
|
-
function
|
|
2952
|
+
function Ed(e) {
|
|
2953
2953
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
|
2954
2954
|
var o = n[r];
|
|
2955
2955
|
switch (o.stem) {
|
|
@@ -2973,7 +2973,7 @@ function bd(e) {
|
|
|
2973
2973
|
continue;
|
|
2974
2974
|
case "measure-unit":
|
|
2975
2975
|
case "unit":
|
|
2976
|
-
t.style = "unit", t.unit =
|
|
2976
|
+
t.style = "unit", t.unit = gd(o.options[0]);
|
|
2977
2977
|
continue;
|
|
2978
2978
|
case "compact-short":
|
|
2979
2979
|
case "K":
|
|
@@ -3037,7 +3037,7 @@ function bd(e) {
|
|
|
3037
3037
|
case "integer-width":
|
|
3038
3038
|
if (o.options.length > 1)
|
|
3039
3039
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
3040
|
-
o.options[0].replace(
|
|
3040
|
+
o.options[0].replace(vd, function(u, c, l, y, v, h) {
|
|
3041
3041
|
if (c)
|
|
3042
3042
|
t.minimumIntegerDigits = l.length;
|
|
3043
3043
|
else {
|
|
@@ -3070,7 +3070,7 @@ function bd(e) {
|
|
|
3070
3070
|
}
|
|
3071
3071
|
var a = _u(o.stem);
|
|
3072
3072
|
a && (t = B(B({}, t), a));
|
|
3073
|
-
var s =
|
|
3073
|
+
var s = bd(o.stem);
|
|
3074
3074
|
s && (t = B(B({}, t), s));
|
|
3075
3075
|
}
|
|
3076
3076
|
return t;
|
|
@@ -4500,13 +4500,13 @@ var mr = {
|
|
|
4500
4500
|
"h"
|
|
4501
4501
|
]
|
|
4502
4502
|
};
|
|
4503
|
-
function
|
|
4503
|
+
function Sd(e, t) {
|
|
4504
4504
|
for (var r = "", n = 0; n < e.length; n++) {
|
|
4505
4505
|
var o = e.charAt(n);
|
|
4506
4506
|
if (o === "j") {
|
|
4507
4507
|
for (var i = 0; n + 1 < e.length && e.charAt(n + 1) === o; )
|
|
4508
4508
|
i++, n++;
|
|
4509
|
-
var a = 1 + (i & 1), s = i < 2 ? 1 : 3 + (i >> 1), u = "a", c =
|
|
4509
|
+
var a = 1 + (i & 1), s = i < 2 ? 1 : 3 + (i >> 1), u = "a", c = wd(t);
|
|
4510
4510
|
for ((c == "H" || c == "k") && (s = 0); s-- > 0; )
|
|
4511
4511
|
r += u;
|
|
4512
4512
|
for (; a-- > 0; )
|
|
@@ -4515,7 +4515,7 @@ function Ed(e, t) {
|
|
|
4515
4515
|
}
|
|
4516
4516
|
return r;
|
|
4517
4517
|
}
|
|
4518
|
-
function
|
|
4518
|
+
function wd(e) {
|
|
4519
4519
|
var t = e.hourCycle;
|
|
4520
4520
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
4521
4521
|
e.hourCycles && // @ts-ignore
|
|
@@ -4537,13 +4537,13 @@ function Sd(e) {
|
|
|
4537
4537
|
var o = mr[n || ""] || mr[r || ""] || mr["".concat(r, "-001")] || mr["001"];
|
|
4538
4538
|
return o[0];
|
|
4539
4539
|
}
|
|
4540
|
-
var
|
|
4540
|
+
var _d = new RegExp("^".concat(Eu.source, "*")), Od = new RegExp("".concat(Eu.source, "*$"));
|
|
4541
4541
|
function K(e, t) {
|
|
4542
4542
|
return { start: e, end: t };
|
|
4543
4543
|
}
|
|
4544
|
-
var
|
|
4544
|
+
var Ad = !!Object.fromEntries, Td = !!String.prototype.trimStart, Pd = !!String.prototype.trimEnd, ta = (
|
|
4545
4545
|
// native
|
|
4546
|
-
|
|
4546
|
+
Ad ? Object.fromEntries : (
|
|
4547
4547
|
// Ponyfill
|
|
4548
4548
|
function(t) {
|
|
4549
4549
|
for (var r = {}, n = 0, o = t; n < o.length; n++) {
|
|
@@ -4553,7 +4553,7 @@ var Od = !!Object.fromEntries, Ad = !!String.prototype.trimStart, Td = !!String.
|
|
|
4553
4553
|
return r;
|
|
4554
4554
|
}
|
|
4555
4555
|
)
|
|
4556
|
-
),
|
|
4556
|
+
), Nd = Td ? (
|
|
4557
4557
|
// Native
|
|
4558
4558
|
function(t) {
|
|
4559
4559
|
return t.trimStart();
|
|
@@ -4561,9 +4561,9 @@ var Od = !!Object.fromEntries, Ad = !!String.prototype.trimStart, Td = !!String.
|
|
|
4561
4561
|
) : (
|
|
4562
4562
|
// Ponyfill
|
|
4563
4563
|
function(t) {
|
|
4564
|
-
return t.replace(
|
|
4564
|
+
return t.replace(_d, "");
|
|
4565
4565
|
}
|
|
4566
|
-
),
|
|
4566
|
+
), Rd = Pd ? (
|
|
4567
4567
|
// Native
|
|
4568
4568
|
function(t) {
|
|
4569
4569
|
return t.trimEnd();
|
|
@@ -4571,16 +4571,16 @@ var Od = !!Object.fromEntries, Ad = !!String.prototype.trimStart, Td = !!String.
|
|
|
4571
4571
|
) : (
|
|
4572
4572
|
// Ponyfill
|
|
4573
4573
|
function(t) {
|
|
4574
|
-
return t.replace(
|
|
4574
|
+
return t.replace(Od, "");
|
|
4575
4575
|
}
|
|
4576
4576
|
), ra = new RegExp("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
4577
|
-
function
|
|
4577
|
+
function Id(e, t) {
|
|
4578
4578
|
var r;
|
|
4579
4579
|
ra.lastIndex = t;
|
|
4580
4580
|
var n = ra.exec(e);
|
|
4581
4581
|
return (r = n[1]) !== null && r !== void 0 ? r : "";
|
|
4582
4582
|
}
|
|
4583
|
-
var
|
|
4583
|
+
var Cd = (
|
|
4584
4584
|
/** @class */
|
|
4585
4585
|
(function() {
|
|
4586
4586
|
function e(t, r) {
|
|
@@ -4662,7 +4662,7 @@ var Id = (
|
|
|
4662
4662
|
return this.error(W.INVALID_TAG, K(n, this.clonePosition()));
|
|
4663
4663
|
}, e.prototype.parseTagName = function() {
|
|
4664
4664
|
var t = this.offset();
|
|
4665
|
-
for (this.bump(); !this.isEOF() &&
|
|
4665
|
+
for (this.bump(); !this.isEOF() && Dd(this.char()); )
|
|
4666
4666
|
this.bump();
|
|
4667
4667
|
return this.message.slice(t, this.offset());
|
|
4668
4668
|
}, e.prototype.parseLiteral = function(t, r) {
|
|
@@ -4691,7 +4691,7 @@ var Id = (
|
|
|
4691
4691
|
};
|
|
4692
4692
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
4693
4693
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
4694
|
-
!
|
|
4694
|
+
!Md(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
4695
4695
|
}, e.prototype.tryParseQuote = function(t) {
|
|
4696
4696
|
if (this.isEOF() || this.char() !== 39)
|
|
4697
4697
|
return null;
|
|
@@ -4762,7 +4762,7 @@ var Id = (
|
|
|
4762
4762
|
return this.error(W.MALFORMED_ARGUMENT, K(n, this.clonePosition()));
|
|
4763
4763
|
}
|
|
4764
4764
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
4765
|
-
var t = this.clonePosition(), r = this.offset(), n =
|
|
4765
|
+
var t = this.clonePosition(), r = this.offset(), n = Id(this.message, r), o = r + n.length;
|
|
4766
4766
|
this.bumpTo(o);
|
|
4767
4767
|
var i = this.clonePosition(), a = K(t, i);
|
|
4768
4768
|
return { value: n, location: a };
|
|
@@ -4781,7 +4781,7 @@ var Id = (
|
|
|
4781
4781
|
var l = this.clonePosition(), y = this.parseSimpleArgStyleIfPossible();
|
|
4782
4782
|
if (y.err)
|
|
4783
4783
|
return y;
|
|
4784
|
-
var v =
|
|
4784
|
+
var v = Rd(y.val);
|
|
4785
4785
|
if (v.length === 0)
|
|
4786
4786
|
return this.error(W.EXPECT_ARGUMENT_STYLE, K(this.clonePosition(), this.clonePosition()));
|
|
4787
4787
|
var h = K(l, this.clonePosition());
|
|
@@ -4792,7 +4792,7 @@ var Id = (
|
|
|
4792
4792
|
return p;
|
|
4793
4793
|
var S = K(o, this.clonePosition());
|
|
4794
4794
|
if (c && c.style.startsWith("::")) {
|
|
4795
|
-
var d =
|
|
4795
|
+
var d = Nd(c.style.slice(2));
|
|
4796
4796
|
if (s === "number") {
|
|
4797
4797
|
var y = this.parseNumberSkeletonFromString(d, c.styleLocation);
|
|
4798
4798
|
return y.err ? y : {
|
|
@@ -4803,12 +4803,12 @@ var Id = (
|
|
|
4803
4803
|
if (d.length === 0)
|
|
4804
4804
|
return this.error(W.EXPECT_DATE_TIME_SKELETON, S);
|
|
4805
4805
|
var g = d;
|
|
4806
|
-
this.locale && (g =
|
|
4806
|
+
this.locale && (g = Sd(d, this.locale));
|
|
4807
4807
|
var v = {
|
|
4808
4808
|
type: St.dateTime,
|
|
4809
4809
|
pattern: g,
|
|
4810
4810
|
location: c.styleLocation,
|
|
4811
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
4811
|
+
parsedOptions: this.shouldParseSkeletons ? pd(g) : {}
|
|
4812
4812
|
}, E = s === "date" ? le.date : le.time;
|
|
4813
4813
|
return {
|
|
4814
4814
|
val: { type: E, value: n, location: S, style: v },
|
|
@@ -4913,7 +4913,7 @@ var Id = (
|
|
|
4913
4913
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
4914
4914
|
var n = [];
|
|
4915
4915
|
try {
|
|
4916
|
-
n =
|
|
4916
|
+
n = md(t);
|
|
4917
4917
|
} catch {
|
|
4918
4918
|
return this.error(W.INVALID_NUMBER_SKELETON, r);
|
|
4919
4919
|
}
|
|
@@ -4922,7 +4922,7 @@ var Id = (
|
|
|
4922
4922
|
type: St.number,
|
|
4923
4923
|
tokens: n,
|
|
4924
4924
|
location: r,
|
|
4925
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
4925
|
+
parsedOptions: this.shouldParseSkeletons ? Ed(n) : {}
|
|
4926
4926
|
},
|
|
4927
4927
|
err: null
|
|
4928
4928
|
};
|
|
@@ -5026,7 +5026,7 @@ var Id = (
|
|
|
5026
5026
|
break;
|
|
5027
5027
|
}
|
|
5028
5028
|
}, e.prototype.bumpSpace = function() {
|
|
5029
|
-
for (; !this.isEOF() &&
|
|
5029
|
+
for (; !this.isEOF() && xd(this.char()); )
|
|
5030
5030
|
this.bump();
|
|
5031
5031
|
}, e.prototype.peek = function() {
|
|
5032
5032
|
if (this.isEOF())
|
|
@@ -5039,13 +5039,13 @@ var Id = (
|
|
|
5039
5039
|
function _o(e) {
|
|
5040
5040
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
5041
5041
|
}
|
|
5042
|
-
function
|
|
5042
|
+
function Md(e) {
|
|
5043
5043
|
return _o(e) || e === 47;
|
|
5044
5044
|
}
|
|
5045
|
-
function
|
|
5045
|
+
function Dd(e) {
|
|
5046
5046
|
return e === 45 || e === 46 || e >= 48 && e <= 57 || e === 95 || e >= 97 && e <= 122 || e >= 65 && e <= 90 || e == 183 || e >= 192 && e <= 214 || e >= 216 && e <= 246 || e >= 248 && e <= 893 || e >= 895 && e <= 8191 || e >= 8204 && e <= 8205 || e >= 8255 && e <= 8256 || e >= 8304 && e <= 8591 || e >= 11264 && e <= 12271 || e >= 12289 && e <= 55295 || e >= 63744 && e <= 64975 || e >= 65008 && e <= 65533 || e >= 65536 && e <= 983039;
|
|
5047
5047
|
}
|
|
5048
|
-
function
|
|
5048
|
+
function xd(e) {
|
|
5049
5049
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
5050
5050
|
}
|
|
5051
5051
|
function Oo(e) {
|
|
@@ -5056,9 +5056,9 @@ function Oo(e) {
|
|
|
5056
5056
|
else hu(t) && bu(t.style) || (pu(t) || yu(t)) && wo(t.style) ? delete t.style.location : vu(t) && Oo(t.children);
|
|
5057
5057
|
});
|
|
5058
5058
|
}
|
|
5059
|
-
function
|
|
5059
|
+
function Fd(e, t) {
|
|
5060
5060
|
t === void 0 && (t = {}), t = B({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
5061
|
-
var r = new
|
|
5061
|
+
var r = new Cd(e, t).parse();
|
|
5062
5062
|
if (r.err) {
|
|
5063
5063
|
var n = SyntaxError(W[r.err.kind]);
|
|
5064
5064
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
@@ -5090,7 +5090,7 @@ var tt = (
|
|
|
5090
5090
|
}
|
|
5091
5091
|
return t;
|
|
5092
5092
|
})(tt)
|
|
5093
|
-
),
|
|
5093
|
+
), $d = (
|
|
5094
5094
|
/** @class */
|
|
5095
5095
|
(function(e) {
|
|
5096
5096
|
Te(t, e);
|
|
@@ -5099,7 +5099,7 @@ var tt = (
|
|
|
5099
5099
|
}
|
|
5100
5100
|
return t;
|
|
5101
5101
|
})(tt)
|
|
5102
|
-
),
|
|
5102
|
+
), Ld = (
|
|
5103
5103
|
/** @class */
|
|
5104
5104
|
(function(e) {
|
|
5105
5105
|
Te(t, e);
|
|
@@ -5112,7 +5112,7 @@ var tt = (
|
|
|
5112
5112
|
(function(e) {
|
|
5113
5113
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
5114
5114
|
})(Ee || (Ee = {}));
|
|
5115
|
-
function
|
|
5115
|
+
function Bd(e) {
|
|
5116
5116
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
5117
5117
|
var n = t[t.length - 1];
|
|
5118
5118
|
return !n || n.type !== Ee.literal || r.type !== Ee.literal ? t.push(r) : n.value += r.value, t;
|
|
@@ -5138,7 +5138,7 @@ function Or(e, t, r, n, o, i, a) {
|
|
|
5138
5138
|
});
|
|
5139
5139
|
continue;
|
|
5140
5140
|
}
|
|
5141
|
-
if (
|
|
5141
|
+
if (dd(l)) {
|
|
5142
5142
|
typeof i == "number" && s.push({
|
|
5143
5143
|
type: Ee.literal,
|
|
5144
5144
|
value: r.getNumberFormat(t).format(i)
|
|
@@ -5147,9 +5147,9 @@ function Or(e, t, r, n, o, i, a) {
|
|
|
5147
5147
|
}
|
|
5148
5148
|
var y = l.value;
|
|
5149
5149
|
if (!(o && y in o))
|
|
5150
|
-
throw new
|
|
5150
|
+
throw new Ld(y, a);
|
|
5151
5151
|
var v = o[y];
|
|
5152
|
-
if (
|
|
5152
|
+
if (fd(l)) {
|
|
5153
5153
|
(!v || typeof v == "string" || typeof v == "number") && (v = typeof v == "string" || typeof v == "number" ? String(v) : ""), s.push({
|
|
5154
5154
|
type: typeof v == "string" ? Ee.literal : Ee.object,
|
|
5155
5155
|
value: v
|
|
@@ -5183,7 +5183,7 @@ function Or(e, t, r, n, o, i, a) {
|
|
|
5183
5183
|
if (vu(l)) {
|
|
5184
5184
|
var p = l.children, S = l.value, d = o[S];
|
|
5185
5185
|
if (!Ou(d))
|
|
5186
|
-
throw new
|
|
5186
|
+
throw new $d(S, "function", a);
|
|
5187
5187
|
var g = Or(p, t, r, n, o, i), E = d(g.map(function(f) {
|
|
5188
5188
|
return f.value;
|
|
5189
5189
|
}));
|
|
@@ -5217,16 +5217,16 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
|
5217
5217
|
continue;
|
|
5218
5218
|
}
|
|
5219
5219
|
}
|
|
5220
|
-
return
|
|
5220
|
+
return Bd(s);
|
|
5221
5221
|
}
|
|
5222
|
-
function
|
|
5222
|
+
function Hd(e, t) {
|
|
5223
5223
|
return t ? B(B(B({}, e), t), Object.keys(e).reduce(function(r, n) {
|
|
5224
5224
|
return r[n] = B(B({}, e[n]), t[n]), r;
|
|
5225
5225
|
}, {})) : e;
|
|
5226
5226
|
}
|
|
5227
|
-
function
|
|
5227
|
+
function kd(e, t) {
|
|
5228
5228
|
return t ? Object.keys(e).reduce(function(r, n) {
|
|
5229
|
-
return r[n] =
|
|
5229
|
+
return r[n] = Hd(e[n], t[n]), r;
|
|
5230
5230
|
}, B({}, e)) : e;
|
|
5231
5231
|
}
|
|
5232
5232
|
function dn(e) {
|
|
@@ -5243,7 +5243,7 @@ function dn(e) {
|
|
|
5243
5243
|
}
|
|
5244
5244
|
};
|
|
5245
5245
|
}
|
|
5246
|
-
function
|
|
5246
|
+
function Ud(e) {
|
|
5247
5247
|
return e === void 0 && (e = {
|
|
5248
5248
|
number: {},
|
|
5249
5249
|
dateTime: {},
|
|
@@ -5314,7 +5314,7 @@ var Au = (
|
|
|
5314
5314
|
this.ast = t;
|
|
5315
5315
|
if (!Array.isArray(this.ast))
|
|
5316
5316
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
5317
|
-
this.formats =
|
|
5317
|
+
this.formats = kd(e.formats, n), this.formatters = o && o.formatters || Ud(this.formatterCache);
|
|
5318
5318
|
}
|
|
5319
5319
|
return Object.defineProperty(e, "defaultLocale", {
|
|
5320
5320
|
get: function() {
|
|
@@ -5327,7 +5327,7 @@ var Au = (
|
|
|
5327
5327
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
5328
5328
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
5329
5329
|
}
|
|
5330
|
-
}, e.__parse =
|
|
5330
|
+
}, e.__parse = Fd, e.formats = {
|
|
5331
5331
|
number: {
|
|
5332
5332
|
integer: {
|
|
5333
5333
|
maximumFractionDigits: 0
|
|
@@ -5404,7 +5404,7 @@ var Jt = (
|
|
|
5404
5404
|
}
|
|
5405
5405
|
return t;
|
|
5406
5406
|
})(Error)
|
|
5407
|
-
),
|
|
5407
|
+
), jd = (
|
|
5408
5408
|
/** @class */
|
|
5409
5409
|
(function(e) {
|
|
5410
5410
|
Te(t, e);
|
|
@@ -5413,7 +5413,7 @@ var Jt = (
|
|
|
5413
5413
|
}
|
|
5414
5414
|
return t;
|
|
5415
5415
|
})(Jt)
|
|
5416
|
-
),
|
|
5416
|
+
), qd = (
|
|
5417
5417
|
/** @class */
|
|
5418
5418
|
(function(e) {
|
|
5419
5419
|
Te(t, e);
|
|
@@ -5457,7 +5457,7 @@ Description: `).concat(o?.description, `
|
|
|
5457
5457
|
}
|
|
5458
5458
|
return t;
|
|
5459
5459
|
})(Pe)
|
|
5460
|
-
),
|
|
5460
|
+
), Vd = (
|
|
5461
5461
|
/** @class */
|
|
5462
5462
|
(function(e) {
|
|
5463
5463
|
Te(t, e);
|
|
@@ -5471,7 +5471,7 @@ Description: `).concat(o?.description, `
|
|
|
5471
5471
|
return t;
|
|
5472
5472
|
})(Jt)
|
|
5473
5473
|
);
|
|
5474
|
-
function
|
|
5474
|
+
function Gd(e, t, r) {
|
|
5475
5475
|
if (r === void 0 && (r = Error), !e)
|
|
5476
5476
|
throw new r(t);
|
|
5477
5477
|
}
|
|
@@ -5480,9 +5480,9 @@ function Tt(e, t, r) {
|
|
|
5480
5480
|
return o in e ? n[o] = e[o] : o in r && (n[o] = r[o]), n;
|
|
5481
5481
|
}, {});
|
|
5482
5482
|
}
|
|
5483
|
-
var
|
|
5483
|
+
var zd = function(e) {
|
|
5484
5484
|
process.env.NODE_ENV !== "production" && console.error(e);
|
|
5485
|
-
},
|
|
5485
|
+
}, Wd = function(e) {
|
|
5486
5486
|
process.env.NODE_ENV !== "production" && console.warn(e);
|
|
5487
5487
|
}, Tu = {
|
|
5488
5488
|
formats: {},
|
|
@@ -5491,8 +5491,8 @@ var Gd = function(e) {
|
|
|
5491
5491
|
defaultLocale: "en",
|
|
5492
5492
|
defaultFormats: {},
|
|
5493
5493
|
fallbackOnEmptyString: !0,
|
|
5494
|
-
onError:
|
|
5495
|
-
onWarn:
|
|
5494
|
+
onError: zd,
|
|
5495
|
+
onWarn: Wd
|
|
5496
5496
|
};
|
|
5497
5497
|
function Pu() {
|
|
5498
5498
|
return {
|
|
@@ -5519,7 +5519,7 @@ function nt(e) {
|
|
|
5519
5519
|
}
|
|
5520
5520
|
};
|
|
5521
5521
|
}
|
|
5522
|
-
function
|
|
5522
|
+
function Qd(e) {
|
|
5523
5523
|
e === void 0 && (e = Pu());
|
|
5524
5524
|
var t = Intl.RelativeTimeFormat, r = Intl.ListFormat, n = Intl.DisplayNames, o = Me(function() {
|
|
5525
5525
|
for (var s, u = [], c = 0; c < arguments.length; c++)
|
|
@@ -5587,7 +5587,7 @@ function Ko(e, t, r, n) {
|
|
|
5587
5587
|
var o = e && e[t], i;
|
|
5588
5588
|
if (o && (i = o[r]), i)
|
|
5589
5589
|
return i;
|
|
5590
|
-
n(new
|
|
5590
|
+
n(new jd("No ".concat(t, " format named: ").concat(r)));
|
|
5591
5591
|
}
|
|
5592
5592
|
function gr(e, t) {
|
|
5593
5593
|
return Object.keys(e).reduce(function(r, n) {
|
|
@@ -5610,7 +5610,7 @@ var Ao = function(e, t, r, n, o) {
|
|
|
5610
5610
|
var i = e.locale, a = e.formats, s = e.messages, u = e.defaultLocale, c = e.defaultFormats, l = e.fallbackOnEmptyString, y = e.onError, v = e.timeZone, h = e.defaultRichTextElements;
|
|
5611
5611
|
r === void 0 && (r = { id: "" });
|
|
5612
5612
|
var p = r.id, S = r.defaultMessage;
|
|
5613
|
-
|
|
5613
|
+
Gd(!!p, "[@formatjs/intl] An `id` must be provided to format a message. You can either:\n1. Configure your build toolchain with [babel-plugin-formatjs](https://formatjs.github.io/docs/tooling/babel-plugin)\nor [@formatjs/ts-transformer](https://formatjs.github.io/docs/tooling/ts-transformer) OR\n2. Configure your `eslint` config to include [eslint-plugin-formatjs](https://formatjs.github.io/docs/tooling/linter#enforce-id)\nto autofix this issue");
|
|
5614
5614
|
var d = String(p), g = (
|
|
5615
5615
|
// In case messages is Object.create(null)
|
|
5616
5616
|
// e.g import('foo.json') from webpack)
|
|
@@ -5624,7 +5624,7 @@ var Ao = function(e, t, r, n, o) {
|
|
|
5624
5624
|
if (n = B(B({}, h), n), a = aa(a, v), c = aa(c, v), !g) {
|
|
5625
5625
|
if (l === !1 && g === "")
|
|
5626
5626
|
return g;
|
|
5627
|
-
if ((!S || i && i.toLowerCase() !== u.toLowerCase()) && y(new
|
|
5627
|
+
if ((!S || i && i.toLowerCase() !== u.toLowerCase()) && y(new Vd(r, i)), S)
|
|
5628
5628
|
try {
|
|
5629
5629
|
var E = t.getMessageFormat(S, u, c, o);
|
|
5630
5630
|
return E.format(n);
|
|
@@ -5647,7 +5647,7 @@ var Ao = function(e, t, r, n, o) {
|
|
|
5647
5647
|
y(new hn('Error formatting the default message for: "'.concat(d, '", rendering message verbatim'), i, r, m));
|
|
5648
5648
|
}
|
|
5649
5649
|
return typeof g == "string" ? g : typeof S == "string" ? S : d;
|
|
5650
|
-
},
|
|
5650
|
+
}, Kd = [
|
|
5651
5651
|
"formatMatcher",
|
|
5652
5652
|
"timeZone",
|
|
5653
5653
|
"hour12",
|
|
@@ -5671,10 +5671,10 @@ var Ao = function(e, t, r, n, o) {
|
|
|
5671
5671
|
function er(e, t, r, n) {
|
|
5672
5672
|
var o = e.locale, i = e.formats, a = e.onError, s = e.timeZone;
|
|
5673
5673
|
n === void 0 && (n = {});
|
|
5674
|
-
var u = n.format, c = B(B({}, s && { timeZone: s }), u && Ko(i, t, u, a)), l = Tt(n,
|
|
5674
|
+
var u = n.format, c = B(B({}, s && { timeZone: s }), u && Ko(i, t, u, a)), l = Tt(n, Kd, c);
|
|
5675
5675
|
return t === "time" && !l.hour && !l.minute && !l.second && !l.timeStyle && !l.dateStyle && (l = B(B({}, l), { hour: "numeric", minute: "numeric" })), r(o, l);
|
|
5676
5676
|
}
|
|
5677
|
-
function
|
|
5677
|
+
function Xd(e, t) {
|
|
5678
5678
|
for (var r = [], n = 2; n < arguments.length; n++)
|
|
5679
5679
|
r[n - 2] = arguments[n];
|
|
5680
5680
|
var o = r[0], i = r[1], a = i === void 0 ? {} : i, s = typeof o == "string" ? new Date(o || 0) : o;
|
|
@@ -5685,7 +5685,7 @@ function Kd(e, t) {
|
|
|
5685
5685
|
}
|
|
5686
5686
|
return String(s);
|
|
5687
5687
|
}
|
|
5688
|
-
function
|
|
5688
|
+
function Yd(e, t) {
|
|
5689
5689
|
for (var r = [], n = 2; n < arguments.length; n++)
|
|
5690
5690
|
r[n - 2] = arguments[n];
|
|
5691
5691
|
var o = r[0], i = r[1], a = i === void 0 ? {} : i, s = typeof o == "string" ? new Date(o || 0) : o;
|
|
@@ -5696,7 +5696,7 @@ function Xd(e, t) {
|
|
|
5696
5696
|
}
|
|
5697
5697
|
return String(s);
|
|
5698
5698
|
}
|
|
5699
|
-
function
|
|
5699
|
+
function Zd(e, t) {
|
|
5700
5700
|
for (var r = [], n = 2; n < arguments.length; n++)
|
|
5701
5701
|
r[n - 2] = arguments[n];
|
|
5702
5702
|
var o = r[0], i = r[1], a = r[2], s = a === void 0 ? {} : a, u = typeof o == "string" ? new Date(o || 0) : o, c = typeof i == "string" ? new Date(i || 0) : i;
|
|
@@ -5707,7 +5707,7 @@ function Yd(e, t) {
|
|
|
5707
5707
|
}
|
|
5708
5708
|
return String(u);
|
|
5709
5709
|
}
|
|
5710
|
-
function
|
|
5710
|
+
function Jd(e, t) {
|
|
5711
5711
|
for (var r = [], n = 2; n < arguments.length; n++)
|
|
5712
5712
|
r[n - 2] = arguments[n];
|
|
5713
5713
|
var o = r[0], i = r[1], a = i === void 0 ? {} : i, s = typeof o == "string" ? new Date(o || 0) : o;
|
|
@@ -5718,7 +5718,7 @@ function Zd(e, t) {
|
|
|
5718
5718
|
}
|
|
5719
5719
|
return [];
|
|
5720
5720
|
}
|
|
5721
|
-
function
|
|
5721
|
+
function eh(e, t) {
|
|
5722
5722
|
for (var r = [], n = 2; n < arguments.length; n++)
|
|
5723
5723
|
r[n - 2] = arguments[n];
|
|
5724
5724
|
var o = r[0], i = r[1], a = i === void 0 ? {} : i, s = typeof o == "string" ? new Date(o || 0) : o;
|
|
@@ -5729,32 +5729,32 @@ function Jd(e, t) {
|
|
|
5729
5729
|
}
|
|
5730
5730
|
return [];
|
|
5731
5731
|
}
|
|
5732
|
-
var
|
|
5732
|
+
var th = [
|
|
5733
5733
|
"style",
|
|
5734
5734
|
"type",
|
|
5735
5735
|
"fallback",
|
|
5736
5736
|
"languageDisplay"
|
|
5737
5737
|
];
|
|
5738
|
-
function
|
|
5738
|
+
function rh(e, t, r, n) {
|
|
5739
5739
|
var o = e.locale, i = e.onError, a = Intl.DisplayNames;
|
|
5740
5740
|
a || i(new tt(`Intl.DisplayNames is not available in this environment.
|
|
5741
5741
|
Try polyfilling it using "@formatjs/intl-displaynames"
|
|
5742
5742
|
`, $e.MISSING_INTL_API));
|
|
5743
|
-
var s = Tt(n,
|
|
5743
|
+
var s = Tt(n, th);
|
|
5744
5744
|
try {
|
|
5745
5745
|
return t(o, s).of(r);
|
|
5746
5746
|
} catch (u) {
|
|
5747
5747
|
i(new Pe("Error formatting display name.", o, u));
|
|
5748
5748
|
}
|
|
5749
5749
|
}
|
|
5750
|
-
var
|
|
5750
|
+
var nh = [
|
|
5751
5751
|
"type",
|
|
5752
5752
|
"style"
|
|
5753
5753
|
], sa = Date.now();
|
|
5754
|
-
function
|
|
5754
|
+
function oh(e) {
|
|
5755
5755
|
return "".concat(sa, "_").concat(e, "_").concat(sa);
|
|
5756
5756
|
}
|
|
5757
|
-
function
|
|
5757
|
+
function ih(e, t, r, n) {
|
|
5758
5758
|
n === void 0 && (n = {});
|
|
5759
5759
|
var o = Nu(e, t, r, n).reduce(function(i, a) {
|
|
5760
5760
|
var s = a.value;
|
|
@@ -5769,11 +5769,11 @@ function Nu(e, t, r, n) {
|
|
|
5769
5769
|
a || i(new tt(`Intl.ListFormat is not available in this environment.
|
|
5770
5770
|
Try polyfilling it using "@formatjs/intl-listformat"
|
|
5771
5771
|
`, $e.MISSING_INTL_API));
|
|
5772
|
-
var s = Tt(n,
|
|
5772
|
+
var s = Tt(n, nh);
|
|
5773
5773
|
try {
|
|
5774
5774
|
var u = {}, c = Array.from(r).map(function(l, y) {
|
|
5775
5775
|
if (typeof l == "object" && l !== null) {
|
|
5776
|
-
var v =
|
|
5776
|
+
var v = oh(y);
|
|
5777
5777
|
return u[v] = l, v;
|
|
5778
5778
|
}
|
|
5779
5779
|
return String(l);
|
|
@@ -5786,13 +5786,13 @@ Try polyfilling it using "@formatjs/intl-listformat"
|
|
|
5786
5786
|
}
|
|
5787
5787
|
return r;
|
|
5788
5788
|
}
|
|
5789
|
-
var
|
|
5790
|
-
function
|
|
5789
|
+
var ah = ["type"];
|
|
5790
|
+
function sh(e, t, r, n) {
|
|
5791
5791
|
var o = e.locale, i = e.onError;
|
|
5792
5792
|
n === void 0 && (n = {}), Intl.PluralRules || i(new tt(`Intl.PluralRules is not available in this environment.
|
|
5793
5793
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
5794
5794
|
`, $e.MISSING_INTL_API));
|
|
5795
|
-
var a = Tt(n,
|
|
5795
|
+
var a = Tt(n, ah);
|
|
5796
5796
|
try {
|
|
5797
5797
|
return t(o, a).select(r);
|
|
5798
5798
|
} catch (s) {
|
|
@@ -5800,27 +5800,27 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
|
5800
5800
|
}
|
|
5801
5801
|
return "other";
|
|
5802
5802
|
}
|
|
5803
|
-
var
|
|
5804
|
-
function
|
|
5803
|
+
var uh = ["numeric", "style"];
|
|
5804
|
+
function ch(e, t, r) {
|
|
5805
5805
|
var n = e.locale, o = e.formats, i = e.onError;
|
|
5806
5806
|
r === void 0 && (r = {});
|
|
5807
|
-
var a = r.format, s = !!a && Ko(o, "relative", a, i) || {}, u = Tt(r,
|
|
5807
|
+
var a = r.format, s = !!a && Ko(o, "relative", a, i) || {}, u = Tt(r, uh, s);
|
|
5808
5808
|
return t(n, u);
|
|
5809
5809
|
}
|
|
5810
|
-
function
|
|
5810
|
+
function lh(e, t, r, n, o) {
|
|
5811
5811
|
o === void 0 && (o = {}), n || (n = "second");
|
|
5812
5812
|
var i = Intl.RelativeTimeFormat;
|
|
5813
5813
|
i || e.onError(new tt(`Intl.RelativeTimeFormat is not available in this environment.
|
|
5814
5814
|
Try polyfilling it using "@formatjs/intl-relativetimeformat"
|
|
5815
5815
|
`, $e.MISSING_INTL_API));
|
|
5816
5816
|
try {
|
|
5817
|
-
return
|
|
5817
|
+
return ch(e, t, o).format(r, n);
|
|
5818
5818
|
} catch (a) {
|
|
5819
5819
|
e.onError(new Pe("Error formatting relative time.", e.locale, a));
|
|
5820
5820
|
}
|
|
5821
5821
|
return String(r);
|
|
5822
5822
|
}
|
|
5823
|
-
var
|
|
5823
|
+
var fh = [
|
|
5824
5824
|
"style",
|
|
5825
5825
|
"currency",
|
|
5826
5826
|
"unit",
|
|
@@ -5849,10 +5849,10 @@ var lh = [
|
|
|
5849
5849
|
function Ru(e, t, r) {
|
|
5850
5850
|
var n = e.locale, o = e.formats, i = e.onError;
|
|
5851
5851
|
r === void 0 && (r = {});
|
|
5852
|
-
var a = r.format, s = a && Ko(o, "number", a, i) || {}, u = Tt(r,
|
|
5852
|
+
var a = r.format, s = a && Ko(o, "number", a, i) || {}, u = Tt(r, fh, s);
|
|
5853
5853
|
return t(n, u);
|
|
5854
5854
|
}
|
|
5855
|
-
function
|
|
5855
|
+
function dh(e, t, r, n) {
|
|
5856
5856
|
n === void 0 && (n = {});
|
|
5857
5857
|
try {
|
|
5858
5858
|
return Ru(e, t, n).format(r);
|
|
@@ -5861,7 +5861,7 @@ function fh(e, t, r, n) {
|
|
|
5861
5861
|
}
|
|
5862
5862
|
return String(r);
|
|
5863
5863
|
}
|
|
5864
|
-
function
|
|
5864
|
+
function hh(e, t, r, n) {
|
|
5865
5865
|
n === void 0 && (n = {});
|
|
5866
5866
|
try {
|
|
5867
5867
|
return Ru(e, t, n).formatToParts(r);
|
|
@@ -5870,25 +5870,25 @@ function dh(e, t, r, n) {
|
|
|
5870
5870
|
}
|
|
5871
5871
|
return [];
|
|
5872
5872
|
}
|
|
5873
|
-
function
|
|
5873
|
+
function ph(e) {
|
|
5874
5874
|
var t = e ? e[Object.keys(e)[0]] : void 0;
|
|
5875
5875
|
return typeof t == "string";
|
|
5876
5876
|
}
|
|
5877
|
-
function
|
|
5878
|
-
e.onWarn && e.defaultRichTextElements &&
|
|
5877
|
+
function yh(e) {
|
|
5878
|
+
e.onWarn && e.defaultRichTextElements && ph(e.messages || {}) && e.onWarn(`[@formatjs/intl] "defaultRichTextElements" was specified but "message" was not pre-compiled.
|
|
5879
5879
|
Please consider using "@formatjs/cli" to pre-compile your messages for performance.
|
|
5880
5880
|
For more details see https://formatjs.github.io/docs/getting-started/message-distribution`);
|
|
5881
5881
|
}
|
|
5882
|
-
function
|
|
5883
|
-
var r =
|
|
5884
|
-
return o ? !Intl.NumberFormat.supportedLocalesOf(o).length && a ? a(new oa('Missing locale data for locale: "'.concat(o, '" in Intl.NumberFormat. Using default locale: "').concat(i, '" as fallback. See https://formatjs.github.io/docs/react-intl#runtime-requirements for more details'))) : !Intl.DateTimeFormat.supportedLocalesOf(o).length && a && a(new oa('Missing locale data for locale: "'.concat(o, '" in Intl.DateTimeFormat. Using default locale: "').concat(i, '" as fallback. See https://formatjs.github.io/docs/react-intl#runtime-requirements for more details'))) : (a && a(new
|
|
5882
|
+
function mh(e, t) {
|
|
5883
|
+
var r = Qd(t), n = B(B({}, Tu), e), o = n.locale, i = n.defaultLocale, a = n.onError;
|
|
5884
|
+
return o ? !Intl.NumberFormat.supportedLocalesOf(o).length && a ? a(new oa('Missing locale data for locale: "'.concat(o, '" in Intl.NumberFormat. Using default locale: "').concat(i, '" as fallback. See https://formatjs.github.io/docs/react-intl#runtime-requirements for more details'))) : !Intl.DateTimeFormat.supportedLocalesOf(o).length && a && a(new oa('Missing locale data for locale: "'.concat(o, '" in Intl.DateTimeFormat. Using default locale: "').concat(i, '" as fallback. See https://formatjs.github.io/docs/react-intl#runtime-requirements for more details'))) : (a && a(new qd('"locale" was not configured, using "'.concat(i, '" as fallback. See https://formatjs.github.io/docs/react-intl/api#intlshape for more details'))), n.locale = n.defaultLocale || "en"), yh(n), B(B({}, n), { formatters: r, formatNumber: dh.bind(null, n, r.getNumberFormat), formatNumberToParts: hh.bind(null, n, r.getNumberFormat), formatRelativeTime: lh.bind(null, n, r.getRelativeTimeFormat), formatDate: Xd.bind(null, n, r.getDateTimeFormat), formatDateToParts: Jd.bind(null, n, r.getDateTimeFormat), formatTime: Yd.bind(null, n, r.getDateTimeFormat), formatDateTimeRange: Zd.bind(null, n, r.getDateTimeFormat), formatTimeToParts: eh.bind(null, n, r.getDateTimeFormat), formatPlural: sh.bind(null, n, r.getPluralRules), formatMessage: Ao.bind(null, n, r), $t: Ao.bind(null, n, r), formatList: ih.bind(null, n, r.getListFormat), formatListToParts: Nu.bind(null, n, r.getListFormat), formatDisplayName: rh.bind(null, n, r.getDisplayNames) });
|
|
5885
5885
|
}
|
|
5886
|
-
function
|
|
5886
|
+
function gh(e, t, r) {
|
|
5887
5887
|
if (r === void 0 && (r = Error), !e)
|
|
5888
5888
|
throw new r(t);
|
|
5889
5889
|
}
|
|
5890
5890
|
function Iu(e) {
|
|
5891
|
-
|
|
5891
|
+
gh(e, "[React Intl] Could not find required `intl` object. <IntlProvider> needs to exist in the component ancestry.");
|
|
5892
5892
|
}
|
|
5893
5893
|
var Cu = B(B({}, Tu), { textComponent: fe.Fragment }), Mu = function(e) {
|
|
5894
5894
|
var t = fe.Children.toArray(e);
|
|
@@ -5896,7 +5896,7 @@ var Cu = B(B({}, Tu), { textComponent: fe.Fragment }), Mu = function(e) {
|
|
|
5896
5896
|
return fe.isValidElement(r) ? fe.createElement(fe.Fragment, { key: n }, r) : r;
|
|
5897
5897
|
});
|
|
5898
5898
|
};
|
|
5899
|
-
function
|
|
5899
|
+
function vh(e) {
|
|
5900
5900
|
return function(t) {
|
|
5901
5901
|
return e(Mu(t));
|
|
5902
5902
|
};
|
|
@@ -5918,7 +5918,7 @@ function To(e, t) {
|
|
|
5918
5918
|
}
|
|
5919
5919
|
var vr = { exports: {} }, re = {};
|
|
5920
5920
|
var ua;
|
|
5921
|
-
function
|
|
5921
|
+
function bh() {
|
|
5922
5922
|
if (ua) return re;
|
|
5923
5923
|
ua = 1;
|
|
5924
5924
|
var e = typeof Symbol == "function" && Symbol.for, t = e ? /* @__PURE__ */ Symbol.for("react.element") : 60103, r = e ? /* @__PURE__ */ Symbol.for("react.portal") : 60106, n = e ? /* @__PURE__ */ Symbol.for("react.fragment") : 60107, o = e ? /* @__PURE__ */ Symbol.for("react.strict_mode") : 60108, i = e ? /* @__PURE__ */ Symbol.for("react.profiler") : 60114, a = e ? /* @__PURE__ */ Symbol.for("react.provider") : 60109, s = e ? /* @__PURE__ */ Symbol.for("react.context") : 60110, u = e ? /* @__PURE__ */ Symbol.for("react.async_mode") : 60111, c = e ? /* @__PURE__ */ Symbol.for("react.concurrent_mode") : 60111, l = e ? /* @__PURE__ */ Symbol.for("react.forward_ref") : 60112, y = e ? /* @__PURE__ */ Symbol.for("react.suspense") : 60113, v = e ? /* @__PURE__ */ Symbol.for("react.suspense_list") : 60120, h = e ? /* @__PURE__ */ Symbol.for("react.memo") : 60115, p = e ? /* @__PURE__ */ Symbol.for("react.lazy") : 60116, S = e ? /* @__PURE__ */ Symbol.for("react.block") : 60121, d = e ? /* @__PURE__ */ Symbol.for("react.fundamental") : 60117, g = e ? /* @__PURE__ */ Symbol.for("react.responder") : 60118, E = e ? /* @__PURE__ */ Symbol.for("react.scope") : 60119;
|
|
@@ -5985,7 +5985,7 @@ function vh() {
|
|
|
5985
5985
|
}
|
|
5986
5986
|
var ne = {};
|
|
5987
5987
|
var ca;
|
|
5988
|
-
function
|
|
5988
|
+
function Eh() {
|
|
5989
5989
|
return ca || (ca = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
5990
5990
|
var e = typeof Symbol == "function" && Symbol.for, t = e ? /* @__PURE__ */ Symbol.for("react.element") : 60103, r = e ? /* @__PURE__ */ Symbol.for("react.portal") : 60106, n = e ? /* @__PURE__ */ Symbol.for("react.fragment") : 60107, o = e ? /* @__PURE__ */ Symbol.for("react.strict_mode") : 60108, i = e ? /* @__PURE__ */ Symbol.for("react.profiler") : 60114, a = e ? /* @__PURE__ */ Symbol.for("react.provider") : 60109, s = e ? /* @__PURE__ */ Symbol.for("react.context") : 60110, u = e ? /* @__PURE__ */ Symbol.for("react.async_mode") : 60111, c = e ? /* @__PURE__ */ Symbol.for("react.concurrent_mode") : 60111, l = e ? /* @__PURE__ */ Symbol.for("react.forward_ref") : 60112, y = e ? /* @__PURE__ */ Symbol.for("react.suspense") : 60113, v = e ? /* @__PURE__ */ Symbol.for("react.suspense_list") : 60120, h = e ? /* @__PURE__ */ Symbol.for("react.memo") : 60115, p = e ? /* @__PURE__ */ Symbol.for("react.lazy") : 60116, S = e ? /* @__PURE__ */ Symbol.for("react.block") : 60121, d = e ? /* @__PURE__ */ Symbol.for("react.fundamental") : 60117, g = e ? /* @__PURE__ */ Symbol.for("react.responder") : 60118, E = e ? /* @__PURE__ */ Symbol.for("react.scope") : 60119;
|
|
5991
5991
|
function m(D) {
|
|
@@ -6068,14 +6068,14 @@ function bh() {
|
|
|
6068
6068
|
})()), ne;
|
|
6069
6069
|
}
|
|
6070
6070
|
var la;
|
|
6071
|
-
function
|
|
6072
|
-
return la || (la = 1, process.env.NODE_ENV === "production" ? vr.exports =
|
|
6071
|
+
function Sh() {
|
|
6072
|
+
return la || (la = 1, process.env.NODE_ENV === "production" ? vr.exports = bh() : vr.exports = Eh()), vr.exports;
|
|
6073
6073
|
}
|
|
6074
6074
|
var pn, fa;
|
|
6075
|
-
function
|
|
6075
|
+
function wh() {
|
|
6076
6076
|
if (fa) return pn;
|
|
6077
6077
|
fa = 1;
|
|
6078
|
-
var e =
|
|
6078
|
+
var e = Sh(), t = {
|
|
6079
6079
|
childContextTypes: !0,
|
|
6080
6080
|
contextType: !0,
|
|
6081
6081
|
contextTypes: !0,
|
|
@@ -6137,12 +6137,12 @@ function Sh() {
|
|
|
6137
6137
|
}
|
|
6138
6138
|
return pn = h, pn;
|
|
6139
6139
|
}
|
|
6140
|
-
|
|
6140
|
+
wh();
|
|
6141
6141
|
var Xo = typeof window < "u" && !window.__REACT_INTL_BYPASS_GLOBAL_CONTEXT__ ? window.__REACT_INTL_CONTEXT__ || (window.__REACT_INTL_CONTEXT__ = fe.createContext(null)) : fe.createContext(null);
|
|
6142
6142
|
Xo.Consumer;
|
|
6143
|
-
var
|
|
6143
|
+
var _h = Xo.Provider, Oh = _h, Ah = Xo;
|
|
6144
6144
|
function tr() {
|
|
6145
|
-
var e = fe.useContext(
|
|
6145
|
+
var e = fe.useContext(Ah);
|
|
6146
6146
|
return Iu(e), e;
|
|
6147
6147
|
}
|
|
6148
6148
|
var Po;
|
|
@@ -6176,7 +6176,7 @@ function rr(e) {
|
|
|
6176
6176
|
function xu(e) {
|
|
6177
6177
|
return e && Object.keys(e).reduce(function(t, r) {
|
|
6178
6178
|
var n = e[r];
|
|
6179
|
-
return t[r] = Ou(n) ?
|
|
6179
|
+
return t[r] = Ou(n) ? vh(n) : n, t;
|
|
6180
6180
|
}, {});
|
|
6181
6181
|
}
|
|
6182
6182
|
var da = function(e, t, r, n) {
|
|
@@ -6190,7 +6190,7 @@ var da = function(e, t, r, n) {
|
|
|
6190
6190
|
], o, !1));
|
|
6191
6191
|
return Array.isArray(s) ? Mu(s) : s;
|
|
6192
6192
|
}, ha = function(e, t) {
|
|
6193
|
-
var r = e.defaultRichTextElements, n = Et(e, ["defaultRichTextElements"]), o = xu(r), i =
|
|
6193
|
+
var r = e.defaultRichTextElements, n = Et(e, ["defaultRichTextElements"]), o = xu(r), i = mh(B(B(B({}, Cu), n), { defaultRichTextElements: o }), t), a = {
|
|
6194
6194
|
locale: i.locale,
|
|
6195
6195
|
timeZone: i.timeZone,
|
|
6196
6196
|
fallbackOnEmptyString: i.fallbackOnEmptyString,
|
|
@@ -6203,7 +6203,7 @@ var da = function(e, t, r, n) {
|
|
|
6203
6203
|
};
|
|
6204
6204
|
return B(B({}, i), { formatMessage: da.bind(null, a, i.formatters), $t: da.bind(null, a, i.formatters) });
|
|
6205
6205
|
};
|
|
6206
|
-
function
|
|
6206
|
+
function Th(e, t) {
|
|
6207
6207
|
var r = e.values, n = Et(e, ["values"]), o = t.values, i = Et(t, ["values"]);
|
|
6208
6208
|
return To(o, r) && To(n, i);
|
|
6209
6209
|
}
|
|
@@ -6214,7 +6214,7 @@ function Fu(e) {
|
|
|
6214
6214
|
return typeof c == "function" ? c(Array.isArray(p) ? p : [p]) : y ? fe.createElement(y, null, p) : fe.createElement(fe.Fragment, null, p);
|
|
6215
6215
|
}
|
|
6216
6216
|
Fu.displayName = "FormattedMessage";
|
|
6217
|
-
var $u = fe.memo(Fu,
|
|
6217
|
+
var $u = fe.memo(Fu, Th);
|
|
6218
6218
|
$u.displayName = "MemoizedFormattedMessage";
|
|
6219
6219
|
function yn(e) {
|
|
6220
6220
|
return {
|
|
@@ -6232,7 +6232,7 @@ function yn(e) {
|
|
|
6232
6232
|
defaultRichTextElements: e.defaultRichTextElements
|
|
6233
6233
|
};
|
|
6234
6234
|
}
|
|
6235
|
-
var
|
|
6235
|
+
var Ph = (
|
|
6236
6236
|
/** @class */
|
|
6237
6237
|
(function(e) {
|
|
6238
6238
|
Te(t, e);
|
|
@@ -6251,7 +6251,7 @@ var Th = (
|
|
|
6251
6251
|
prevConfig: a
|
|
6252
6252
|
};
|
|
6253
6253
|
}, t.prototype.render = function() {
|
|
6254
|
-
return Iu(this.state.intl), fe.createElement(
|
|
6254
|
+
return Iu(this.state.intl), fe.createElement(Oh, { value: this.state.intl }, this.props.children);
|
|
6255
6255
|
}, t.displayName = "IntlProvider", t.defaultProps = Cu, t;
|
|
6256
6256
|
})(fe.PureComponent)
|
|
6257
6257
|
);
|
|
@@ -6271,10 +6271,10 @@ function Hu(e, t) {
|
|
|
6271
6271
|
Ue[r] = t[r];
|
|
6272
6272
|
Ue[gt] = e;
|
|
6273
6273
|
}
|
|
6274
|
-
function
|
|
6274
|
+
function Nh(e) {
|
|
6275
6275
|
return /* @__PURE__ */ he($u, { id: e, defaultMessage: e });
|
|
6276
6276
|
}
|
|
6277
|
-
function
|
|
6277
|
+
function Rh(e) {
|
|
6278
6278
|
return e;
|
|
6279
6279
|
}
|
|
6280
6280
|
function wt(e) {
|
|
@@ -6301,7 +6301,7 @@ function ju() {
|
|
|
6301
6301
|
if (!e) throw new Error(Lu);
|
|
6302
6302
|
return wt(e);
|
|
6303
6303
|
}
|
|
6304
|
-
const
|
|
6304
|
+
const bm = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
6305
6305
|
__proto__: null,
|
|
6306
6306
|
getBrowserLangInfo: ju,
|
|
6307
6307
|
getBrowserLocale: Uu,
|
|
@@ -6309,8 +6309,8 @@ const vm = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
6309
6309
|
getLangInfo: wt,
|
|
6310
6310
|
isValidLocale: Bu,
|
|
6311
6311
|
setDefaultTranslation: Hu,
|
|
6312
|
-
t:
|
|
6313
|
-
tt:
|
|
6312
|
+
t: Nh,
|
|
6313
|
+
tt: Rh
|
|
6314
6314
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
6315
6315
|
function qu(e) {
|
|
6316
6316
|
var t, r, n = "";
|
|
@@ -6321,13 +6321,13 @@ function qu(e) {
|
|
|
6321
6321
|
} else for (r in e) e[r] && (n && (n += " "), n += r);
|
|
6322
6322
|
return n;
|
|
6323
6323
|
}
|
|
6324
|
-
function
|
|
6324
|
+
function Ih() {
|
|
6325
6325
|
for (var e, t, r = 0, n = "", o = arguments.length; r < o; r++) (e = arguments[r]) && (t = qu(e)) && (n && (n += " "), n += t);
|
|
6326
6326
|
return n;
|
|
6327
6327
|
}
|
|
6328
|
-
const
|
|
6329
|
-
overlay:
|
|
6330
|
-
dummy:
|
|
6328
|
+
const Ch = "_overlay_1ol4o_1", Mh = "_dummy_1ol4o_7", pa = {
|
|
6329
|
+
overlay: Ch,
|
|
6330
|
+
dummy: Mh
|
|
6331
6331
|
}, ze = xs(function({
|
|
6332
6332
|
showChildren: e = !0,
|
|
6333
6333
|
useTranslation: t = !0,
|
|
@@ -6337,10 +6337,10 @@ const Ih = "_overlay_1ol4o_1", Ch = "_dummy_1ol4o_7", pa = {
|
|
|
6337
6337
|
children: i
|
|
6338
6338
|
}) {
|
|
6339
6339
|
const a = n ? n.spinning : !o.spinning;
|
|
6340
|
-
return a ? t ? /* @__PURE__ */ he(
|
|
6340
|
+
return a ? t ? /* @__PURE__ */ he(Dh, { spin: n, skeleton: o, className: r, children: e || !a ? i : void 0 }) : /* @__PURE__ */ he(Vu, { spin: n, skeleton: o, className: r, children: e || !a ? i : void 0 }) : i;
|
|
6341
6341
|
});
|
|
6342
6342
|
ze.displayName = "Wait";
|
|
6343
|
-
function
|
|
6343
|
+
function Dh({ className: e, spin: t, skeleton: r, children: n }) {
|
|
6344
6344
|
const o = tr();
|
|
6345
6345
|
if (t && t.spinning) {
|
|
6346
6346
|
if (t.tip && typeof t.tip != "string") throw new Error("Only string is allowed when using translation");
|
|
@@ -6354,7 +6354,7 @@ function Vu({ className: e, skeleton: t, spin: r, children: n }) {
|
|
|
6354
6354
|
const i = ze;
|
|
6355
6355
|
if (i.spin) {
|
|
6356
6356
|
const a = i.spin, { extraProps: s, ...u } = r ?? {};
|
|
6357
|
-
return /* @__PURE__ */ he(a, { className:
|
|
6357
|
+
return /* @__PURE__ */ he(a, { className: Ih(pa.overlay, e), ...u, extraProps: s ?? i.spinProps, children: n ?? /* @__PURE__ */ he("div", { className: pa.dummy, children: " " }) });
|
|
6358
6358
|
}
|
|
6359
6359
|
if (i.skeleton) {
|
|
6360
6360
|
const a = i.skeleton, { extraProps: s, ...u } = t ?? {};
|
|
@@ -6363,10 +6363,10 @@ function Vu({ className: e, skeleton: t, spin: r, children: n }) {
|
|
|
6363
6363
|
throw new Error("Wait component must have either spin or skeleton defined");
|
|
6364
6364
|
}, [e, n, t, r]);
|
|
6365
6365
|
}
|
|
6366
|
-
const { setIdentity:
|
|
6367
|
-
function
|
|
6368
|
-
const n = Fr(), o =
|
|
6369
|
-
(u, c) => n(
|
|
6366
|
+
const { setIdentity: xh } = At.actions;
|
|
6367
|
+
function Fh({ className: e, service: t, children: r }) {
|
|
6368
|
+
const n = Fr(), o = hl(!1), i = Re((u) => !et(u).auth.seed), a = qe(() => ({ spinning: i, tip: "spin.auth" }), [i]), s = Fs(
|
|
6369
|
+
(u, c) => n(xh({ reason: u, identity: c })),
|
|
6370
6370
|
[n]
|
|
6371
6371
|
);
|
|
6372
6372
|
return zt(() => {
|
|
@@ -6406,7 +6406,7 @@ let jr = class extends Gu {
|
|
|
6406
6406
|
}
|
|
6407
6407
|
};
|
|
6408
6408
|
const zu = new Yo("__null__", null), Ro = Object.prototype.hasOwnProperty.call.bind(Object.prototype.hasOwnProperty);
|
|
6409
|
-
function
|
|
6409
|
+
function $h(e, t) {
|
|
6410
6410
|
return t instanceof Ur && t.operator === e;
|
|
6411
6411
|
}
|
|
6412
6412
|
function Wu(e, t) {
|
|
@@ -6414,19 +6414,19 @@ function Wu(e, t) {
|
|
|
6414
6414
|
const a = i || [];
|
|
6415
6415
|
for (let s = 0, u = o.length; s < u; s++) {
|
|
6416
6416
|
const c = o[s];
|
|
6417
|
-
|
|
6417
|
+
$h(n, c) ? r(n, c.value, a) : a.push(c);
|
|
6418
6418
|
}
|
|
6419
6419
|
return a;
|
|
6420
6420
|
})(e, t));
|
|
6421
6421
|
}
|
|
6422
|
-
const
|
|
6423
|
-
function
|
|
6422
|
+
const Lh = (e) => e, Qu = () => /* @__PURE__ */ Object.create(null), Ku = Object.defineProperty(Qu(), "__@type@__", { value: "ignore value" });
|
|
6423
|
+
function Bh(e, t, r = !1) {
|
|
6424
6424
|
if (!e || e && e.constructor !== Object) return !1;
|
|
6425
6425
|
for (const n in e)
|
|
6426
6426
|
if (Ro(e, n) && Ro(t, n) && (!r || e[n] !== Ku)) return !0;
|
|
6427
6427
|
return !1;
|
|
6428
6428
|
}
|
|
6429
|
-
function
|
|
6429
|
+
function Hh(e) {
|
|
6430
6430
|
const t = [];
|
|
6431
6431
|
for (const r in e) Ro(e, r) && e[r] !== Ku && t.push(r);
|
|
6432
6432
|
return t;
|
|
@@ -6438,9 +6438,9 @@ const Xu = (e) => Wu("and", e), Yu = { compound(e, t, r) {
|
|
|
6438
6438
|
const n = (Array.isArray(t) ? t : [t]).map((o) => r.parse(o));
|
|
6439
6439
|
return new Ur(e.name, n);
|
|
6440
6440
|
}, field: (e, t, r) => new jr(e.name, r.field, t), document: (e, t) => new Yo(e.name, t) };
|
|
6441
|
-
let
|
|
6441
|
+
let kh = class {
|
|
6442
6442
|
constructor(t, r = Qu()) {
|
|
6443
|
-
this.o = void 0, this.s = void 0, this.i = void 0, this.u = void 0, this.h = void 0, this.parse = this.parse.bind(this), this.u = { operatorToConditionName: r.operatorToConditionName ||
|
|
6443
|
+
this.o = void 0, this.s = void 0, this.i = void 0, this.u = void 0, this.h = void 0, this.parse = this.parse.bind(this), this.u = { operatorToConditionName: r.operatorToConditionName || Lh, defaultOperatorName: r.defaultOperatorName || "eq", mergeFinalConditions: r.mergeFinalConditions || Xu }, this.o = Object.keys(t).reduce((n, o) => (n[o] = Object.assign({ name: this.u.operatorToConditionName(o) }, t[o]), n), {}), this.s = Object.assign({}, r.fieldContext, { field: "", query: {}, parse: this.parse, hasOperators: (n) => Bh(n, this.o, r.useIgnoreValue) }), this.i = Object.assign({}, r.documentContext, { parse: this.parse, query: {} }), this.h = r.useIgnoreValue ? Hh : Object.keys;
|
|
6444
6444
|
}
|
|
6445
6445
|
setParse(t) {
|
|
6446
6446
|
this.parse = t, this.s.parse = t, this.i.parse = t;
|
|
@@ -6481,11 +6481,11 @@ function gn(e, t) {
|
|
|
6481
6481
|
if (typeof r != "function") throw new Error(`Unable to interpret "${t}" condition. Did you forget to register interpreter for it?`);
|
|
6482
6482
|
return r;
|
|
6483
6483
|
}
|
|
6484
|
-
function
|
|
6484
|
+
function Uh(e) {
|
|
6485
6485
|
return e.operator;
|
|
6486
6486
|
}
|
|
6487
|
-
function
|
|
6488
|
-
const r = t, n = r && r.getInterpreterName ||
|
|
6487
|
+
function jh(e, t) {
|
|
6488
|
+
const r = t, n = r && r.getInterpreterName || Uh;
|
|
6489
6489
|
let o;
|
|
6490
6490
|
switch (r ? r.numberOfArguments : 0) {
|
|
6491
6491
|
case 1:
|
|
@@ -6509,7 +6509,7 @@ function Uh(e, t) {
|
|
|
6509
6509
|
const i = Object.assign({}, r, { interpret: o });
|
|
6510
6510
|
return i.interpret;
|
|
6511
6511
|
}
|
|
6512
|
-
function
|
|
6512
|
+
function qh(e, t) {
|
|
6513
6513
|
return (r, ...n) => {
|
|
6514
6514
|
const o = e(r, ...n), i = t.bind(null, o);
|
|
6515
6515
|
return i.ast = o, i;
|
|
@@ -6526,7 +6526,7 @@ const Zo = (e) => (t, r) => {
|
|
|
6526
6526
|
}, ec = { type: "compound", validate: Ju, parse(e, t, { parse: r }) {
|
|
6527
6527
|
const n = t.map((o) => r(o));
|
|
6528
6528
|
return Wu(e.name, n);
|
|
6529
|
-
} },
|
|
6529
|
+
} }, Vh = ec, Gh = { type: "compound", validate: Ju }, zh = { type: "field", validate(e, t) {
|
|
6530
6530
|
if (!(t && (t instanceof RegExp || t.constructor === Object))) throw new Error(`"${e.name}" expects to receive either regular expression or object of field operators`);
|
|
6531
6531
|
}, parse(e, t, r) {
|
|
6532
6532
|
const n = t instanceof RegExp ? new jr("regex", r.field, t) : r.parse(t, r);
|
|
@@ -6536,7 +6536,7 @@ const Zo = (e) => (t, r) => {
|
|
|
6536
6536
|
}, parse(e, t, { parse: r, field: n, hasOperators: o }) {
|
|
6537
6537
|
const i = o(t) ? r(t, { field: nr }) : r(t);
|
|
6538
6538
|
return new jr(e.name, n, i);
|
|
6539
|
-
} }, rc = { type: "field", validate: Zo("number") }, qr = { type: "field", validate: Zu }, nc = qr, oc = qr,
|
|
6539
|
+
} }, rc = { type: "field", validate: Zo("number") }, qr = { type: "field", validate: Zu }, nc = qr, oc = qr, Wh = { type: "field", validate(e, t) {
|
|
6540
6540
|
if (!Array.isArray(t) || t.length !== 2) throw new Error(`"${e.name}" expects an array with 2 numeric elements`);
|
|
6541
6541
|
} }, ic = { type: "field", validate: Zo("boolean") }, Jo = { type: "field", validate: function(e, t) {
|
|
6542
6542
|
if (!(typeof t == "string" || typeof t == "number" || t instanceof Date)) throw new Error(`"${e.name}" expects value to be comparable (i.e., string, number or date)`);
|
|
@@ -6545,9 +6545,9 @@ const Zo = (e) => (t, r) => {
|
|
|
6545
6545
|
}, parse(e, t, r) {
|
|
6546
6546
|
const n = typeof t == "string" ? new RegExp(t, r.query.$options || "") : t;
|
|
6547
6547
|
return new jr(e.name, r.field, n);
|
|
6548
|
-
} }, lc = { type: "field", parse: () => zu },
|
|
6549
|
-
var
|
|
6550
|
-
class
|
|
6548
|
+
} }, lc = { type: "field", parse: () => zu }, Qh = { type: "document", validate: Zo("function") };
|
|
6549
|
+
var Kh = Object.freeze({ __proto__: null, $and: ec, $or: Vh, $nor: Gh, $not: zh, $elemMatch: tc, $size: rc, $in: qr, $nin: nc, $all: oc, $mod: Wh, $exists: ic, $gte: Jo, $gt: Vr, $lt: ac, $lte: sc, $eq: ei, $ne: uc, $regex: cc, $options: lc, $where: Qh });
|
|
6550
|
+
class Xh extends kh {
|
|
6551
6551
|
constructor(t) {
|
|
6552
6552
|
super(t, { defaultOperatorName: "$eq", operatorToConditionName: (r) => r.slice(1) });
|
|
6553
6553
|
}
|
|
@@ -6555,7 +6555,7 @@ class Kh extends Hh {
|
|
|
6555
6555
|
return r && r.field ? Xu(this.parseFieldOperators(r.field, t)) : super.parse(t);
|
|
6556
6556
|
}
|
|
6557
6557
|
}
|
|
6558
|
-
const Io =
|
|
6558
|
+
const Io = Kh;
|
|
6559
6559
|
function ti(e, t, r) {
|
|
6560
6560
|
for (let n = 0, o = e.length; n < o; n++) if (r(e[n], t) === 0) return !0;
|
|
6561
6561
|
return !1;
|
|
@@ -6578,12 +6578,12 @@ function dt(e) {
|
|
|
6578
6578
|
return Array.isArray(o) ? o.some((i) => e(t, i, n)) : e(t, o, n);
|
|
6579
6579
|
};
|
|
6580
6580
|
}
|
|
6581
|
-
const
|
|
6581
|
+
const Yh = (e, t) => e[t];
|
|
6582
6582
|
function fc(e, t, r) {
|
|
6583
6583
|
const n = t.lastIndexOf(".");
|
|
6584
6584
|
return n === -1 ? [e, t] : [r(e, t.slice(0, n)), t.slice(n + 1)];
|
|
6585
6585
|
}
|
|
6586
|
-
function
|
|
6586
|
+
function Zh(e, t, r = Yh) {
|
|
6587
6587
|
if (t === nr) return e;
|
|
6588
6588
|
if (!e) throw new Error(`Unable to get field "${t}" out of ${String(e)}.`);
|
|
6589
6589
|
return (function(n, o, i) {
|
|
@@ -6598,9 +6598,9 @@ function dc(e, t) {
|
|
|
6598
6598
|
return e === t ? 0 : e > t ? 1 : -1;
|
|
6599
6599
|
}
|
|
6600
6600
|
function hc(e, t = {}) {
|
|
6601
|
-
return
|
|
6601
|
+
return jh(e, Object.assign({ get: Zh, compare: dc }, t));
|
|
6602
6602
|
}
|
|
6603
|
-
const pc = (e, t, { interpret: r }) => e.value.some((n) => r(n, t)),
|
|
6603
|
+
const pc = (e, t, { interpret: r }) => e.value.some((n) => r(n, t)), Jh = (e, t, r) => !pc(e, t, r), yc = (e, t, { interpret: r }) => e.value.every((n) => r(n, t)), ep = (e, t, { interpret: r }) => !r(e.value[0], t), ni = (e, t, { compare: r, get: n }) => {
|
|
6604
6604
|
const o = n(t, e.field);
|
|
6605
6605
|
return Array.isArray(o) && !Array.isArray(e.value) ? ti(o, e.value, r) : r(o, e.value) === 0;
|
|
6606
6606
|
}, mc = (e, t, r) => !ni(e, t, r), gc = dt((e, t, r) => {
|
|
@@ -6613,7 +6613,7 @@ const pc = (e, t, { interpret: r }) => e.value.some((n) => r(n, t)), Zh = (e, t,
|
|
|
6613
6613
|
if (e.field === nr) return t !== void 0;
|
|
6614
6614
|
const [n, o] = fc(t, e.field, r), i = (a) => a == null ? !!a === e.value : a.hasOwnProperty(o) === e.value;
|
|
6615
6615
|
return ri(n, o) ? n.some(i) : i(n);
|
|
6616
|
-
},
|
|
6616
|
+
}, tp = dt((e, t) => typeof t == "number" && t % e.value[0] === e.value[1]), wc = (e, t, { get: r }) => {
|
|
6617
6617
|
const [n, o] = fc(t, e.field, r), i = (a) => {
|
|
6618
6618
|
const s = r(a, o);
|
|
6619
6619
|
return Array.isArray(s) && s.length === e.value;
|
|
@@ -6625,34 +6625,34 @@ const pc = (e, t, { interpret: r }) => e.value.some((n) => r(n, t)), Zh = (e, t,
|
|
|
6625
6625
|
}, Tc = (e, t, { interpret: r, get: n }) => {
|
|
6626
6626
|
const o = n(t, e.field);
|
|
6627
6627
|
return Array.isArray(o) && o.some((i) => r(e.value, i));
|
|
6628
|
-
},
|
|
6629
|
-
var
|
|
6630
|
-
const oi = Object.assign({},
|
|
6628
|
+
}, rp = (e, t) => e.value.call(t);
|
|
6629
|
+
var np = Object.freeze({ __proto__: null, or: pc, nor: Jh, and: yc, not: ep, eq: ni, ne: mc, lte: gc, lt: vc, gt: bc, gte: Ec, exists: Sc, mod: tp, size: wc, regex: _c, within: Gr, nin: Oc, all: Ac, elemMatch: Tc, where: rp });
|
|
6630
|
+
const oi = Object.assign({}, np, { in: Gr });
|
|
6631
6631
|
hc(oi);
|
|
6632
6632
|
function ma(e) {
|
|
6633
6633
|
return e === null || typeof e != "object" ? e : e instanceof Date ? e.getTime() : e && typeof e.toJSON == "function" ? e.toJSON() : e;
|
|
6634
6634
|
}
|
|
6635
|
-
const
|
|
6635
|
+
const op = (e, t) => dc(ma(e), ma(t));
|
|
6636
6636
|
function ii(e, t, r) {
|
|
6637
|
-
const n = new
|
|
6637
|
+
const n = new Xh(e), o = hc(t, Object.assign({ compare: op }, r));
|
|
6638
6638
|
if (r && r.forPrimitives) {
|
|
6639
6639
|
const i = { field: nr }, a = n.parse;
|
|
6640
6640
|
n.setParse((s) => a(s, i));
|
|
6641
6641
|
}
|
|
6642
|
-
return
|
|
6642
|
+
return qh(n.parse, o);
|
|
6643
6643
|
}
|
|
6644
6644
|
ii(Io, oi);
|
|
6645
6645
|
ii(["$and", "$or"].reduce((e, t) => (e[t] = Object.assign({}, e[t], { type: "field" }), e), Object.assign({}, Io, { $nor: Object.assign({}, Io.$nor, { type: "field", parse: Yu.compound }) })), oi, { forPrimitives: !0 });
|
|
6646
|
-
const
|
|
6646
|
+
const ip = Object.hasOwn || ((e, t) => Object.prototype.hasOwnProperty.call(e, t));
|
|
6647
6647
|
function Co(e) {
|
|
6648
6648
|
return Array.isArray(e) ? e : [e];
|
|
6649
6649
|
}
|
|
6650
6650
|
const ga = "__caslSubjectType__", Ar = (e) => {
|
|
6651
6651
|
const t = typeof e;
|
|
6652
6652
|
return t === "string" || t === "function";
|
|
6653
|
-
},
|
|
6653
|
+
}, ap = (e) => e.modelName || e.name;
|
|
6654
6654
|
function Pc(e) {
|
|
6655
|
-
return
|
|
6655
|
+
return ip(e, ga) ? e[ga] : ap(e.constructor);
|
|
6656
6656
|
}
|
|
6657
6657
|
const va = { function: (e) => e.constructor, string: Pc };
|
|
6658
6658
|
function ba(e, t, r) {
|
|
@@ -6670,15 +6670,15 @@ function br(e, t, r) {
|
|
|
6670
6670
|
let n = e.get(t);
|
|
6671
6671
|
return n || (n = r(), e.set(t, n)), n;
|
|
6672
6672
|
}
|
|
6673
|
-
const
|
|
6674
|
-
function
|
|
6673
|
+
const sp = (e) => e;
|
|
6674
|
+
function up(e, t) {
|
|
6675
6675
|
if (Array.isArray(e.fields) && !e.fields.length) throw new Error("`rawRule.fields` cannot be an empty array. https://bit.ly/390miLa");
|
|
6676
6676
|
if (e.fields && !t.fieldMatcher) throw new Error('You need to pass "fieldMatcher" option in order to restrict access by fields');
|
|
6677
6677
|
if (e.conditions && !t.conditionsMatcher) throw new Error('You need to pass "conditionsMatcher" option in order to restrict access by conditions');
|
|
6678
6678
|
}
|
|
6679
|
-
class
|
|
6679
|
+
class cp {
|
|
6680
6680
|
constructor(t, r, n = 0) {
|
|
6681
|
-
|
|
6681
|
+
up(t, r), this.action = r.resolveAction(t.action), this.subject = t.subject, this.inverted = !!t.inverted, this.conditions = t.conditions, this.reason = t.reason, this.origin = t, this.fields = t.fields ? Co(t.fields) : void 0, this.priority = n, this.t = r;
|
|
6682
6682
|
}
|
|
6683
6683
|
i() {
|
|
6684
6684
|
return this.conditions && !this.o && (this.o = this.t.conditionsMatcher(this.conditions)), this.o;
|
|
@@ -6694,17 +6694,17 @@ class up {
|
|
|
6694
6694
|
return this.fields ? t ? (this.u || (this.u = this.t.fieldMatcher(this.fields)), this.u(t)) : !this.inverted : !0;
|
|
6695
6695
|
}
|
|
6696
6696
|
}
|
|
6697
|
-
function
|
|
6697
|
+
function lp(e, t) {
|
|
6698
6698
|
const r = { value: e, prev: t, next: null };
|
|
6699
6699
|
return t && (t.next = r), r;
|
|
6700
6700
|
}
|
|
6701
|
-
function
|
|
6701
|
+
function fp(e) {
|
|
6702
6702
|
e.next && (e.next.prev = e.prev), e.prev && (e.prev.next = e.next), e.next = e.prev = null;
|
|
6703
6703
|
}
|
|
6704
|
-
const
|
|
6705
|
-
class
|
|
6704
|
+
const dp = (e) => ({ value: e.value, prev: e.prev, next: e.next }), Sa = () => ({ rules: [], merged: !1 }), wa = () => /* @__PURE__ */ new Map();
|
|
6705
|
+
class hp {
|
|
6706
6706
|
constructor(t = [], r = {}) {
|
|
6707
|
-
this.h = !1, this.l = /* @__PURE__ */ new Map(), this.p = { conditionsMatcher: r.conditionsMatcher, fieldMatcher: r.fieldMatcher, resolveAction: r.resolveAction ||
|
|
6707
|
+
this.h = !1, this.l = /* @__PURE__ */ new Map(), this.p = { conditionsMatcher: r.conditionsMatcher, fieldMatcher: r.fieldMatcher, resolveAction: r.resolveAction || sp }, this.$ = r.anyAction || "manage", this.A = r.anySubjectType || "all", this.m = t, this.M = !!r.detectSubjectType, this.j = r.detectSubjectType || Pc, this.v(t);
|
|
6708
6708
|
}
|
|
6709
6709
|
get rules() {
|
|
6710
6710
|
return this.m;
|
|
@@ -6720,7 +6720,7 @@ class dp {
|
|
|
6720
6720
|
const r = /* @__PURE__ */ new Map();
|
|
6721
6721
|
let n;
|
|
6722
6722
|
for (let o = t.length - 1; o >= 0; o--) {
|
|
6723
|
-
const i = t.length - o - 1, a = new
|
|
6723
|
+
const i = t.length - o - 1, a = new cp(t[o], this.p, i), s = Co(a.action), u = Co(a.subject || this.A);
|
|
6724
6724
|
!this.h && a.fields && (this.h = !0);
|
|
6725
6725
|
for (let c = 0; c < u.length; c++) {
|
|
6726
6726
|
const l = br(r, u[c], wa);
|
|
@@ -6755,22 +6755,22 @@ class dp {
|
|
|
6755
6755
|
}
|
|
6756
6756
|
on(t, r) {
|
|
6757
6757
|
this.F = this.F || /* @__PURE__ */ new Map();
|
|
6758
|
-
const n = this.F, o = n.get(t) || null, i =
|
|
6758
|
+
const n = this.F, o = n.get(t) || null, i = lp(r, o);
|
|
6759
6759
|
return n.set(t, i), () => {
|
|
6760
6760
|
const a = n.get(t);
|
|
6761
|
-
!i.next && !i.prev && a === i ? n.delete(t) : i === a && n.set(t, i.prev),
|
|
6761
|
+
!i.next && !i.prev && a === i ? n.delete(t) : i === a && n.set(t, i.prev), fp(i);
|
|
6762
6762
|
};
|
|
6763
6763
|
}
|
|
6764
6764
|
_(t, r) {
|
|
6765
6765
|
if (!this.F) return;
|
|
6766
6766
|
let n = this.F.get(t) || null;
|
|
6767
6767
|
for (; n !== null; ) {
|
|
6768
|
-
const o = n.prev ?
|
|
6768
|
+
const o = n.prev ? dp(n.prev) : null;
|
|
6769
6769
|
n.value(r), n = o;
|
|
6770
6770
|
}
|
|
6771
6771
|
}
|
|
6772
6772
|
}
|
|
6773
|
-
class
|
|
6773
|
+
class pp extends hp {
|
|
6774
6774
|
can(t, r, n) {
|
|
6775
6775
|
const o = this.relevantRuleFor(t, r, n);
|
|
6776
6776
|
return !!o && !o.inverted;
|
|
@@ -6784,29 +6784,29 @@ class hp extends dp {
|
|
|
6784
6784
|
return !this.can(t, r, n);
|
|
6785
6785
|
}
|
|
6786
6786
|
}
|
|
6787
|
-
const
|
|
6788
|
-
function
|
|
6789
|
-
const n = r[0] === "*" || e[0] === "." && e[e.length - 1] === "." ? "+" : "*", o = e.indexOf("**") === -1 ? "[^.]" : ".", i = e.replace(
|
|
6787
|
+
const yp = { $eq: ei, $ne: uc, $lt: ac, $lte: sc, $gt: Vr, $gte: Jo, $in: qr, $nin: nc, $all: oc, $size: rc, $regex: cc, $options: lc, $elemMatch: tc, $exists: ic }, mp = { eq: ni, ne: mc, lt: vc, lte: gc, gt: bc, gte: Ec, in: Gr, nin: Oc, all: Ac, size: wc, regex: _c, elemMatch: Tc, exists: Sc, and: yc }, gp = ii(yp, mp), vp = /[-/\\^$+?.()|[\]{}]/g, bp = /\.?\*+\.?/g, Ep = /\*+/, Sp = /\./g;
|
|
6788
|
+
function wp(e, t, r) {
|
|
6789
|
+
const n = r[0] === "*" || e[0] === "." && e[e.length - 1] === "." ? "+" : "*", o = e.indexOf("**") === -1 ? "[^.]" : ".", i = e.replace(Sp, "\\$&").replace(Ep, o + n);
|
|
6790
6790
|
return t + e.length === r.length ? `(?:${i})?` : i;
|
|
6791
6791
|
}
|
|
6792
|
-
function
|
|
6792
|
+
function _p(e, t, r) {
|
|
6793
6793
|
return e === "." && (r[t - 1] === "*" || r[t + 1] === "*") ? e : `\\${e}`;
|
|
6794
6794
|
}
|
|
6795
|
-
function
|
|
6796
|
-
const t = e.map((n) => n.replace(
|
|
6795
|
+
function Op(e) {
|
|
6796
|
+
const t = e.map((n) => n.replace(vp, _p).replace(bp, wp)), r = t.length > 1 ? `(?:${t.join("|")})` : t[0];
|
|
6797
6797
|
return new RegExp(`^${r}$`);
|
|
6798
6798
|
}
|
|
6799
|
-
const
|
|
6799
|
+
const Ap = (e) => {
|
|
6800
6800
|
let t;
|
|
6801
|
-
return (r) => (typeof t > "u" && (t = e.every((n) => n.indexOf("*") === -1) ? null :
|
|
6801
|
+
return (r) => (typeof t > "u" && (t = e.every((n) => n.indexOf("*") === -1) ? null : Op(e)), t === null ? e.indexOf(r) !== -1 : t.test(r));
|
|
6802
6802
|
};
|
|
6803
6803
|
function Nc(e = [], t = {}) {
|
|
6804
|
-
return new
|
|
6804
|
+
return new pp(e, Object.assign({ conditionsMatcher: gp, fieldMatcher: Ap }, t));
|
|
6805
6805
|
}
|
|
6806
|
-
function
|
|
6806
|
+
function Tp(e) {
|
|
6807
6807
|
return e.prototype !== void 0 && typeof e.prototype.possibleRulesFor == "function";
|
|
6808
6808
|
}
|
|
6809
|
-
class
|
|
6809
|
+
class Pp {
|
|
6810
6810
|
constructor(t) {
|
|
6811
6811
|
this.O = t;
|
|
6812
6812
|
}
|
|
@@ -6816,25 +6816,25 @@ class Tp {
|
|
|
6816
6816
|
}
|
|
6817
6817
|
class Rc {
|
|
6818
6818
|
constructor(t) {
|
|
6819
|
-
this.rules = [], this.C = t, this.can = (r, n, o, i) => this.R(r, n, o, i, !1), this.cannot = (r, n, o, i) => this.R(r, n, o, i, !0), this.build = (r) =>
|
|
6819
|
+
this.rules = [], this.C = t, this.can = (r, n, o, i) => this.R(r, n, o, i, !1), this.cannot = (r, n, o, i) => this.R(r, n, o, i, !0), this.build = (r) => Tp(this.C) ? new this.C(this.rules, r) : this.C(this.rules, r);
|
|
6820
6820
|
}
|
|
6821
6821
|
R(t, r, n, o, i) {
|
|
6822
6822
|
const a = { action: t };
|
|
6823
|
-
return i && (a.inverted = i), r && (a.subject = r, Array.isArray(n) || typeof n == "string" ? a.fields = n : typeof n < "u" && (a.conditions = n), typeof o < "u" && (a.conditions = o)), this.rules.push(a), new
|
|
6823
|
+
return i && (a.inverted = i), r && (a.subject = r, Array.isArray(n) || typeof n == "string" ? a.fields = n : typeof n < "u" && (a.conditions = n), typeof o < "u" && (a.conditions = o)), this.rules.push(a), new Pp(a);
|
|
6824
6824
|
}
|
|
6825
6825
|
}
|
|
6826
|
-
function
|
|
6826
|
+
function Np(e) {
|
|
6827
6827
|
return e && e.constructor && typeof e.constructor.isBuffer == "function" && e.constructor.isBuffer(e);
|
|
6828
6828
|
}
|
|
6829
|
-
function
|
|
6829
|
+
function Rp(e) {
|
|
6830
6830
|
return e;
|
|
6831
6831
|
}
|
|
6832
|
-
function
|
|
6832
|
+
function Ip(e, t) {
|
|
6833
6833
|
t = t || {};
|
|
6834
|
-
const r = t.delimiter || ".", n = t.maxDepth, o = t.transformKey ||
|
|
6834
|
+
const r = t.delimiter || ".", n = t.maxDepth, o = t.transformKey || Rp, i = {};
|
|
6835
6835
|
function a(s, u, c) {
|
|
6836
6836
|
c = c || 1, Object.keys(s).forEach(function(l) {
|
|
6837
|
-
const y = s[l], v = t.safe && Array.isArray(y), h = Object.prototype.toString.call(y), p =
|
|
6837
|
+
const y = s[l], v = t.safe && Array.isArray(y), h = Object.prototype.toString.call(y), p = Np(y), S = h === "[object Object]" || h === "[object Array]", d = u ? u + r + o(l) : o(l);
|
|
6838
6838
|
if (!v && !p && S && Object.keys(y).length && (!t.maxDepth || c < n))
|
|
6839
6839
|
return a(y, d, c + 1);
|
|
6840
6840
|
i[d] = y;
|
|
@@ -6842,12 +6842,12 @@ function Rp(e, t) {
|
|
|
6842
6842
|
}
|
|
6843
6843
|
return a(e), i;
|
|
6844
6844
|
}
|
|
6845
|
-
const
|
|
6845
|
+
const Cp = {
|
|
6846
6846
|
lang: { code: "en", locale: "en-US" },
|
|
6847
6847
|
data: {}
|
|
6848
6848
|
}, Ic = "lang", or = ke({
|
|
6849
6849
|
name: Ic,
|
|
6850
|
-
initialState:
|
|
6850
|
+
initialState: Cp,
|
|
6851
6851
|
reducers: {
|
|
6852
6852
|
setLang(e, t) {
|
|
6853
6853
|
const { locale: r } = t.payload;
|
|
@@ -6859,13 +6859,13 @@ const Ip = {
|
|
|
6859
6859
|
const { files: i, messages: a } = e.data[r];
|
|
6860
6860
|
if (i[n]) return;
|
|
6861
6861
|
i[n] = !0;
|
|
6862
|
-
const s =
|
|
6862
|
+
const s = Ip(o);
|
|
6863
6863
|
for (const u in s)
|
|
6864
6864
|
a[`${u}`] = [{ type: 0, value: s[u] }];
|
|
6865
6865
|
e.lang?.locale !== r && (e.lang = wt(t.payload.locale));
|
|
6866
6866
|
}
|
|
6867
6867
|
}
|
|
6868
|
-
}), Ze = (e) => e[Ic], { pushLangMessage:
|
|
6868
|
+
}), Ze = (e) => e[Ic], { pushLangMessage: Mp } = or.actions, _a = "__global", Dp = {
|
|
6869
6869
|
en: {
|
|
6870
6870
|
loading: {
|
|
6871
6871
|
_: "Loading...",
|
|
@@ -6879,7 +6879,7 @@ const Ip = {
|
|
|
6879
6879
|
}
|
|
6880
6880
|
}
|
|
6881
6881
|
};
|
|
6882
|
-
function
|
|
6882
|
+
function xp({ children: e, className: t, lang: r, langFiles: n, defaultTexts: o = Dp }) {
|
|
6883
6883
|
const i = Fr(), { locale: a, code: s } = r, u = qe(() => Go(
|
|
6884
6884
|
[
|
|
6885
6885
|
(h) => Ze(h).data[a]?.files[_a],
|
|
@@ -6893,11 +6893,11 @@ function Dp({ children: e, className: t, lang: r, langFiles: n, defaultTexts: o
|
|
|
6893
6893
|
);
|
|
6894
6894
|
return zt(() => {
|
|
6895
6895
|
c || (async () => {
|
|
6896
|
-
const h = await ku(a, n), p =
|
|
6896
|
+
const h = await ku(a, n), p = Mp({ locale: a, file: _a, messages: h.default });
|
|
6897
6897
|
p && i(p);
|
|
6898
6898
|
})();
|
|
6899
6899
|
}, [c, y, a, i, n]), /* @__PURE__ */ he(ze, { useTranslation: !1, showChildren: !1, spin: v, className: t, children: /* @__PURE__ */ he(
|
|
6900
|
-
|
|
6900
|
+
Ph,
|
|
6901
6901
|
{
|
|
6902
6902
|
messages: l,
|
|
6903
6903
|
locale: a,
|
|
@@ -6964,7 +6964,7 @@ const Oa = "Init configuration first.", je = {
|
|
|
6964
6964
|
return je.getEndpoint(e);
|
|
6965
6965
|
}
|
|
6966
6966
|
};
|
|
6967
|
-
function
|
|
6967
|
+
function Fp({ className: e, getRef: t, fill: r, customLoad: n, children: o, onLoad: i }) {
|
|
6968
6968
|
const [a, s] = lo(!1);
|
|
6969
6969
|
return zt(() => {
|
|
6970
6970
|
(async () => {
|
|
@@ -6978,13 +6978,12 @@ function xp({ className: e, getRef: t, fill: r, customLoad: n, children: o, onLo
|
|
|
6978
6978
|
})();
|
|
6979
6979
|
}, [a, t, n, r, i]), /* @__PURE__ */ he(ze, { className: e, spin: { spinning: !a, tip: "spin.config" }, showChildren: !1, children: o });
|
|
6980
6980
|
}
|
|
6981
|
-
const
|
|
6981
|
+
const $p = {
|
|
6982
6982
|
loaded: {},
|
|
6983
6983
|
errors: {}
|
|
6984
|
-
}, Dc = "error"
|
|
6985
|
-
ke({
|
|
6984
|
+
}, Dc = "error", Lp = ke({
|
|
6986
6985
|
name: Dc,
|
|
6987
|
-
initialState:
|
|
6986
|
+
initialState: $p,
|
|
6988
6987
|
reducers: {
|
|
6989
6988
|
pushErrors(e, t) {
|
|
6990
6989
|
const { errors: r, service: n } = t.payload;
|
|
@@ -6995,30 +6994,29 @@ ke({
|
|
|
6995
6994
|
}
|
|
6996
6995
|
}
|
|
6997
6996
|
}
|
|
6998
|
-
});
|
|
6999
|
-
const $p = (e) => e[Dc];
|
|
6997
|
+
}), xc = (e) => e[Dc];
|
|
7000
6998
|
function ui({ code: e, args: t }) {
|
|
7001
|
-
const r = tr(), n = Re((i) =>
|
|
6999
|
+
const r = tr(), n = Re((i) => xc(i).errors), o = ui.text(r, e, n, t);
|
|
7002
7000
|
return t ? Qo(o, t) : o;
|
|
7003
7001
|
}
|
|
7004
7002
|
ui.text = (e, t, r, ...n) => {
|
|
7005
7003
|
const o = r[t];
|
|
7006
7004
|
return n && n.length !== 0 ? Qo(o, ...n) : o;
|
|
7007
7005
|
};
|
|
7008
|
-
const
|
|
7006
|
+
const _m = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
7009
7007
|
__proto__: null,
|
|
7010
|
-
ConfigLoader:
|
|
7008
|
+
ConfigLoader: Fp,
|
|
7011
7009
|
ErrorCode: ui,
|
|
7012
|
-
LangProvider:
|
|
7010
|
+
LangProvider: xp,
|
|
7013
7011
|
Wait: ze
|
|
7014
7012
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
7015
|
-
function
|
|
7013
|
+
function Bp(e) {
|
|
7016
7014
|
if (e) return e;
|
|
7017
7015
|
const { build: t } = new Rc(Nc);
|
|
7018
7016
|
return t();
|
|
7019
7017
|
}
|
|
7020
|
-
function
|
|
7021
|
-
const o = lu(), [i, a] = lo(), [s, u] = lo(() =>
|
|
7018
|
+
function Hp({ className: e, children: t, getPermissionFor: r, defaultAbility: n }) {
|
|
7019
|
+
const o = lu(), [i, a] = lo(), [s, u] = lo(() => Bp(n)), c = Re((y) => et(y).auth.seed);
|
|
7022
7020
|
zt(() => {
|
|
7023
7021
|
if (c === i) return;
|
|
7024
7022
|
const { can: y, cannot: v, build: h } = new Rc(Nc), { allowed: p, denied: S } = r(o);
|
|
@@ -7038,39 +7036,39 @@ function Bp({ className: e, children: t, getPermissionFor: r, defaultAbility: n
|
|
|
7038
7036
|
);
|
|
7039
7037
|
return /* @__PURE__ */ he(Bo.Provider, { value: s, children: /* @__PURE__ */ he(ze, { className: e, spin: l, showChildren: !1, children: t }) });
|
|
7040
7038
|
}
|
|
7041
|
-
var
|
|
7042
|
-
const
|
|
7039
|
+
var Fc = /* @__PURE__ */ ((e) => (e[e.Always = 1] = "Always", e[e.Never = 2] = "Never", e[e.RedirectIfFails = 3] = "RedirectIfFails", e))(Fc || {});
|
|
7040
|
+
const kp = () => import(
|
|
7043
7041
|
/* @vite-ignore */
|
|
7044
|
-
"./index-
|
|
7042
|
+
"./index-DsBrGEJj.js"
|
|
7045
7043
|
);
|
|
7046
|
-
async function
|
|
7047
|
-
return (await
|
|
7044
|
+
async function Up(e, t, r) {
|
|
7045
|
+
return (await kp()).default(e, t, r);
|
|
7048
7046
|
}
|
|
7049
|
-
const
|
|
7047
|
+
const Om = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
7050
7048
|
__proto__: null,
|
|
7051
|
-
Allowed:
|
|
7049
|
+
Allowed: nd,
|
|
7052
7050
|
AuthResultStatus: $s,
|
|
7053
7051
|
AuthService: Ls,
|
|
7054
|
-
AuthenticationProvider:
|
|
7055
|
-
AuthorizationProvider:
|
|
7056
|
-
CreateOAuthService:
|
|
7057
|
-
DummyAuthService:
|
|
7058
|
-
PopupPolicy:
|
|
7059
|
-
createPermission:
|
|
7060
|
-
useAuthentication:
|
|
7061
|
-
useAuthorization:
|
|
7052
|
+
AuthenticationProvider: Fh,
|
|
7053
|
+
AuthorizationProvider: Hp,
|
|
7054
|
+
CreateOAuthService: Up,
|
|
7055
|
+
DummyAuthService: yl,
|
|
7056
|
+
PopupPolicy: Fc,
|
|
7057
|
+
createPermission: td,
|
|
7058
|
+
useAuthentication: Zf,
|
|
7059
|
+
useAuthorization: Jf,
|
|
7062
7060
|
useIdentity: lu
|
|
7063
7061
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
7064
|
-
var
|
|
7062
|
+
var $c = /* @__PURE__ */ ((e) => (e[e.Info = 1] = "Info", e[e.Error = 2] = "Error", e[e.Warning = 3] = "Warning", e[e.Success = 4] = "Success", e))($c || {});
|
|
7065
7063
|
Promise.delay = (e) => new Promise((t) => setTimeout(t, e));
|
|
7066
7064
|
var vn, Aa;
|
|
7067
7065
|
function Pt() {
|
|
7068
7066
|
return Aa || (Aa = 1, vn = TypeError), vn;
|
|
7069
7067
|
}
|
|
7070
|
-
const
|
|
7068
|
+
const jp = {}, qp = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
7071
7069
|
__proto__: null,
|
|
7072
|
-
default:
|
|
7073
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
7070
|
+
default: jp
|
|
7071
|
+
}, Symbol.toStringTag, { value: "Module" })), Vp = /* @__PURE__ */ gl(qp);
|
|
7074
7072
|
var bn, Ta;
|
|
7075
7073
|
function zr() {
|
|
7076
7074
|
if (Ta) return bn;
|
|
@@ -7091,7 +7089,7 @@ function zr() {
|
|
|
7091
7089
|
}
|
|
7092
7090
|
return m.call(I, J, "$&_");
|
|
7093
7091
|
}
|
|
7094
|
-
var $ =
|
|
7092
|
+
var $ = Vp, k = $.custom, z = Z(k) ? k : null, se = {
|
|
7095
7093
|
__proto__: null,
|
|
7096
7094
|
double: '"',
|
|
7097
7095
|
single: "'"
|
|
@@ -7135,13 +7133,13 @@ function zr() {
|
|
|
7135
7133
|
var Zr = typeof G.depth > "u" ? 5 : G.depth;
|
|
7136
7134
|
if (typeof ae > "u" && (ae = 0), ae >= Zr && Zr > 0 && typeof I == "object")
|
|
7137
7135
|
return q(I) ? "[Array]" : "[Object]";
|
|
7138
|
-
var yt =
|
|
7136
|
+
var yt = ul(G, ae);
|
|
7139
7137
|
if (typeof ce > "u")
|
|
7140
7138
|
ce = [];
|
|
7141
7139
|
else if (Ce(ce, I) >= 0)
|
|
7142
7140
|
return "[Circular]";
|
|
7143
|
-
function Ne(mt, cr,
|
|
7144
|
-
if (cr && (ce = R.call(ce), ce.push(cr)),
|
|
7141
|
+
function Ne(mt, cr, ll) {
|
|
7142
|
+
if (cr && (ce = R.call(ce), ce.push(cr)), ll) {
|
|
7145
7143
|
var Pi = {
|
|
7146
7144
|
depth: G.depth
|
|
7147
7145
|
};
|
|
@@ -7157,7 +7155,7 @@ function zr() {
|
|
|
7157
7155
|
var wi = M ? m.call(String(I), /^(Symbol\(.*\))_[^)]*$/, "$1") : C.call(I);
|
|
7158
7156
|
return typeof I == "object" && !M ? Nt(wi) : wi;
|
|
7159
7157
|
}
|
|
7160
|
-
if (
|
|
7158
|
+
if (il(I)) {
|
|
7161
7159
|
for (var Rt = "<" + f.call(String(I.nodeName)), Jr = I.attributes || [], ur = 0; ur < Jr.length; ur++)
|
|
7162
7160
|
Rt += " " + Jr[ur].name + "=" + X(oe(Jr[ur].value), "double", G);
|
|
7163
7161
|
return Rt += ">", I.childNodes && I.childNodes.length && (Rt += "..."), Rt += "</" + f.call(String(I.nodeName)) + ">", Rt;
|
|
@@ -7166,7 +7164,7 @@ function zr() {
|
|
|
7166
7164
|
if (I.length === 0)
|
|
7167
7165
|
return "[]";
|
|
7168
7166
|
var en = sr(I, Ne);
|
|
7169
|
-
return yt && !
|
|
7167
|
+
return yt && !sl(en) ? "[" + Yr(en, yt) + "]" : "[ " + P.call(en, ", ") + " ]";
|
|
7170
7168
|
}
|
|
7171
7169
|
if (F(I)) {
|
|
7172
7170
|
var tn = sr(I, Ne);
|
|
@@ -7192,7 +7190,7 @@ function zr() {
|
|
|
7192
7190
|
}
|
|
7193
7191
|
if (We(I))
|
|
7194
7192
|
return Xr("WeakMap");
|
|
7195
|
-
if (
|
|
7193
|
+
if (ol(I))
|
|
7196
7194
|
return Xr("WeakSet");
|
|
7197
7195
|
if (ht(I))
|
|
7198
7196
|
return Xr("WeakRef");
|
|
@@ -7209,7 +7207,7 @@ function zr() {
|
|
|
7209
7207
|
if (typeof globalThis < "u" && I === globalThis || typeof Ri < "u" && I === Ri)
|
|
7210
7208
|
return "{ [object globalThis] }";
|
|
7211
7209
|
if (!V(I) && !U(I)) {
|
|
7212
|
-
var rn = sr(I, Ne), Ai = j ? j(I) === Object.prototype : I instanceof Object || I.constructor === Object, nn = I instanceof Object ? "" : "null prototype", Ti = !Ai && L && Object(I) === I && L in I ? E.call(de(I), 8, -1) : nn ? "Object" : "",
|
|
7210
|
+
var rn = sr(I, Ne), Ai = j ? j(I) === Object.prototype : I instanceof Object || I.constructor === Object, nn = I instanceof Object ? "" : "null prototype", Ti = !Ai && L && Object(I) === I && L in I ? E.call(de(I), 8, -1) : nn ? "Object" : "", cl = Ai || typeof I.constructor != "function" ? "" : I.constructor.name ? I.constructor.name + " " : "", on = cl + (Ti || nn ? "[" + P.call(A.call([], Ti || [], nn || []), ": ") + "] " : "");
|
|
7213
7211
|
return rn.length === 0 ? on + "{}" : yt ? on + "{" + Yr(rn, yt) + "}" : on + "{ " + P.call(rn, ", ") + " }";
|
|
7214
7212
|
}
|
|
7215
7213
|
return String(I);
|
|
@@ -7344,7 +7342,7 @@ function zr() {
|
|
|
7344
7342
|
}
|
|
7345
7343
|
return !1;
|
|
7346
7344
|
}
|
|
7347
|
-
function
|
|
7345
|
+
function ol(N) {
|
|
7348
7346
|
if (!y || !N || typeof N != "object")
|
|
7349
7347
|
return !1;
|
|
7350
7348
|
try {
|
|
@@ -7359,7 +7357,7 @@ function zr() {
|
|
|
7359
7357
|
}
|
|
7360
7358
|
return !1;
|
|
7361
7359
|
}
|
|
7362
|
-
function
|
|
7360
|
+
function il(N) {
|
|
7363
7361
|
return !N || typeof N != "object" ? !1 : typeof HTMLElement < "u" && N instanceof HTMLElement ? !0 : typeof N.nodeName == "string" && typeof N.getAttribute == "function";
|
|
7364
7362
|
}
|
|
7365
7363
|
function vi(N, I) {
|
|
@@ -7369,10 +7367,10 @@ function zr() {
|
|
|
7369
7367
|
}
|
|
7370
7368
|
var ce = ye[I.quoteStyle || "single"];
|
|
7371
7369
|
ce.lastIndex = 0;
|
|
7372
|
-
var G = m.call(m.call(N, ce, "\\$1"), /[\x00-\x1f]/g,
|
|
7370
|
+
var G = m.call(m.call(N, ce, "\\$1"), /[\x00-\x1f]/g, al);
|
|
7373
7371
|
return X(G, "single", I);
|
|
7374
7372
|
}
|
|
7375
|
-
function
|
|
7373
|
+
function al(N) {
|
|
7376
7374
|
var I = N.charCodeAt(0), J = {
|
|
7377
7375
|
8: "b",
|
|
7378
7376
|
9: "t",
|
|
@@ -7392,14 +7390,14 @@ function zr() {
|
|
|
7392
7390
|
var ce = ae ? Yr(J, ae) : P.call(J, ", ");
|
|
7393
7391
|
return N + " (" + I + ") {" + ce + "}";
|
|
7394
7392
|
}
|
|
7395
|
-
function
|
|
7393
|
+
function sl(N) {
|
|
7396
7394
|
for (var I = 0; I < N.length; I++)
|
|
7397
7395
|
if (Ce(N[I], `
|
|
7398
7396
|
`) >= 0)
|
|
7399
7397
|
return !1;
|
|
7400
7398
|
return !0;
|
|
7401
7399
|
}
|
|
7402
|
-
function
|
|
7400
|
+
function ul(N, I) {
|
|
7403
7401
|
var J;
|
|
7404
7402
|
if (N.indent === " ")
|
|
7405
7403
|
J = " ";
|
|
@@ -7443,7 +7441,7 @@ function zr() {
|
|
|
7443
7441
|
return bn;
|
|
7444
7442
|
}
|
|
7445
7443
|
var En, Pa;
|
|
7446
|
-
function
|
|
7444
|
+
function Gp() {
|
|
7447
7445
|
if (Pa) return En;
|
|
7448
7446
|
Pa = 1;
|
|
7449
7447
|
var e = /* @__PURE__ */ zr(), t = /* @__PURE__ */ Pt(), r = function(s, u, c) {
|
|
@@ -7502,81 +7500,81 @@ function Vp() {
|
|
|
7502
7500
|
}, En;
|
|
7503
7501
|
}
|
|
7504
7502
|
var Sn, Na;
|
|
7505
|
-
function
|
|
7503
|
+
function Lc() {
|
|
7506
7504
|
return Na || (Na = 1, Sn = Object), Sn;
|
|
7507
7505
|
}
|
|
7508
7506
|
var wn, Ra;
|
|
7509
|
-
function
|
|
7507
|
+
function zp() {
|
|
7510
7508
|
return Ra || (Ra = 1, wn = Error), wn;
|
|
7511
7509
|
}
|
|
7512
7510
|
var _n, Ia;
|
|
7513
|
-
function
|
|
7511
|
+
function Wp() {
|
|
7514
7512
|
return Ia || (Ia = 1, _n = EvalError), _n;
|
|
7515
7513
|
}
|
|
7516
7514
|
var On, Ca;
|
|
7517
|
-
function
|
|
7515
|
+
function Qp() {
|
|
7518
7516
|
return Ca || (Ca = 1, On = RangeError), On;
|
|
7519
7517
|
}
|
|
7520
7518
|
var An, Ma;
|
|
7521
|
-
function
|
|
7519
|
+
function Kp() {
|
|
7522
7520
|
return Ma || (Ma = 1, An = ReferenceError), An;
|
|
7523
7521
|
}
|
|
7524
7522
|
var Tn, Da;
|
|
7525
|
-
function
|
|
7523
|
+
function Xp() {
|
|
7526
7524
|
return Da || (Da = 1, Tn = SyntaxError), Tn;
|
|
7527
7525
|
}
|
|
7528
7526
|
var Pn, xa;
|
|
7529
|
-
function
|
|
7527
|
+
function Yp() {
|
|
7530
7528
|
return xa || (xa = 1, Pn = URIError), Pn;
|
|
7531
7529
|
}
|
|
7532
7530
|
var Nn, Fa;
|
|
7533
|
-
function
|
|
7531
|
+
function Zp() {
|
|
7534
7532
|
return Fa || (Fa = 1, Nn = Math.abs), Nn;
|
|
7535
7533
|
}
|
|
7536
7534
|
var Rn, $a;
|
|
7537
|
-
function
|
|
7535
|
+
function Jp() {
|
|
7538
7536
|
return $a || ($a = 1, Rn = Math.floor), Rn;
|
|
7539
7537
|
}
|
|
7540
7538
|
var In, La;
|
|
7541
|
-
function
|
|
7539
|
+
function ey() {
|
|
7542
7540
|
return La || (La = 1, In = Math.max), In;
|
|
7543
7541
|
}
|
|
7544
7542
|
var Cn, Ba;
|
|
7545
|
-
function
|
|
7543
|
+
function ty() {
|
|
7546
7544
|
return Ba || (Ba = 1, Cn = Math.min), Cn;
|
|
7547
7545
|
}
|
|
7548
7546
|
var Mn, Ha;
|
|
7549
|
-
function
|
|
7547
|
+
function ry() {
|
|
7550
7548
|
return Ha || (Ha = 1, Mn = Math.pow), Mn;
|
|
7551
7549
|
}
|
|
7552
7550
|
var Dn, ka;
|
|
7553
|
-
function
|
|
7551
|
+
function ny() {
|
|
7554
7552
|
return ka || (ka = 1, Dn = Math.round), Dn;
|
|
7555
7553
|
}
|
|
7556
7554
|
var xn, Ua;
|
|
7557
|
-
function
|
|
7555
|
+
function oy() {
|
|
7558
7556
|
return Ua || (Ua = 1, xn = Number.isNaN || function(t) {
|
|
7559
7557
|
return t !== t;
|
|
7560
7558
|
}), xn;
|
|
7561
7559
|
}
|
|
7562
7560
|
var Fn, ja;
|
|
7563
|
-
function
|
|
7561
|
+
function iy() {
|
|
7564
7562
|
if (ja) return Fn;
|
|
7565
7563
|
ja = 1;
|
|
7566
|
-
var e = /* @__PURE__ */
|
|
7564
|
+
var e = /* @__PURE__ */ oy();
|
|
7567
7565
|
return Fn = function(r) {
|
|
7568
7566
|
return e(r) || r === 0 ? r : r < 0 ? -1 : 1;
|
|
7569
7567
|
}, Fn;
|
|
7570
7568
|
}
|
|
7571
7569
|
var $n, qa;
|
|
7572
|
-
function
|
|
7570
|
+
function ay() {
|
|
7573
7571
|
return qa || (qa = 1, $n = Object.getOwnPropertyDescriptor), $n;
|
|
7574
7572
|
}
|
|
7575
7573
|
var Ln, Va;
|
|
7576
|
-
function
|
|
7574
|
+
function Bc() {
|
|
7577
7575
|
if (Va) return Ln;
|
|
7578
7576
|
Va = 1;
|
|
7579
|
-
var e = /* @__PURE__ */
|
|
7577
|
+
var e = /* @__PURE__ */ ay();
|
|
7580
7578
|
if (e)
|
|
7581
7579
|
try {
|
|
7582
7580
|
e([], "length");
|
|
@@ -7586,7 +7584,7 @@ function Lc() {
|
|
|
7586
7584
|
return Ln = e, Ln;
|
|
7587
7585
|
}
|
|
7588
7586
|
var Bn, Ga;
|
|
7589
|
-
function
|
|
7587
|
+
function sy() {
|
|
7590
7588
|
if (Ga) return Bn;
|
|
7591
7589
|
Ga = 1;
|
|
7592
7590
|
var e = Object.defineProperty || !1;
|
|
@@ -7599,7 +7597,7 @@ function ay() {
|
|
|
7599
7597
|
return Bn = e, Bn;
|
|
7600
7598
|
}
|
|
7601
7599
|
var Hn, za;
|
|
7602
|
-
function
|
|
7600
|
+
function uy() {
|
|
7603
7601
|
return za || (za = 1, Hn = function() {
|
|
7604
7602
|
if (typeof Symbol != "function" || typeof Object.getOwnPropertySymbols != "function")
|
|
7605
7603
|
return !1;
|
|
@@ -7629,27 +7627,27 @@ function sy() {
|
|
|
7629
7627
|
}), Hn;
|
|
7630
7628
|
}
|
|
7631
7629
|
var kn, Wa;
|
|
7632
|
-
function
|
|
7630
|
+
function cy() {
|
|
7633
7631
|
if (Wa) return kn;
|
|
7634
7632
|
Wa = 1;
|
|
7635
|
-
var e = typeof Symbol < "u" && Symbol, t =
|
|
7633
|
+
var e = typeof Symbol < "u" && Symbol, t = uy();
|
|
7636
7634
|
return kn = function() {
|
|
7637
7635
|
return typeof e != "function" || typeof Symbol != "function" || typeof e("foo") != "symbol" || typeof /* @__PURE__ */ Symbol("bar") != "symbol" ? !1 : t();
|
|
7638
7636
|
}, kn;
|
|
7639
7637
|
}
|
|
7640
7638
|
var Un, Qa;
|
|
7641
|
-
function
|
|
7639
|
+
function Hc() {
|
|
7642
7640
|
return Qa || (Qa = 1, Un = typeof Reflect < "u" && Reflect.getPrototypeOf || null), Un;
|
|
7643
7641
|
}
|
|
7644
7642
|
var jn, Ka;
|
|
7645
|
-
function
|
|
7643
|
+
function kc() {
|
|
7646
7644
|
if (Ka) return jn;
|
|
7647
7645
|
Ka = 1;
|
|
7648
|
-
var e = /* @__PURE__ */
|
|
7646
|
+
var e = /* @__PURE__ */ Lc();
|
|
7649
7647
|
return jn = e.getPrototypeOf || null, jn;
|
|
7650
7648
|
}
|
|
7651
7649
|
var qn, Xa;
|
|
7652
|
-
function
|
|
7650
|
+
function ly() {
|
|
7653
7651
|
if (Xa) return qn;
|
|
7654
7652
|
Xa = 1;
|
|
7655
7653
|
var e = "Function.prototype.bind called on incompatible ", t = Object.prototype.toString, r = Math.max, n = "[object Function]", o = function(u, c) {
|
|
@@ -7697,7 +7695,7 @@ var Vn, Ya;
|
|
|
7697
7695
|
function Wr() {
|
|
7698
7696
|
if (Ya) return Vn;
|
|
7699
7697
|
Ya = 1;
|
|
7700
|
-
var e =
|
|
7698
|
+
var e = ly();
|
|
7701
7699
|
return Vn = Function.prototype.bind || e, Vn;
|
|
7702
7700
|
}
|
|
7703
7701
|
var Gn, Za;
|
|
@@ -7705,25 +7703,25 @@ function ci() {
|
|
|
7705
7703
|
return Za || (Za = 1, Gn = Function.prototype.call), Gn;
|
|
7706
7704
|
}
|
|
7707
7705
|
var zn, Ja;
|
|
7708
|
-
function
|
|
7706
|
+
function Uc() {
|
|
7709
7707
|
return Ja || (Ja = 1, zn = Function.prototype.apply), zn;
|
|
7710
7708
|
}
|
|
7711
7709
|
var Wn, es;
|
|
7712
|
-
function
|
|
7710
|
+
function fy() {
|
|
7713
7711
|
return es || (es = 1, Wn = typeof Reflect < "u" && Reflect && Reflect.apply), Wn;
|
|
7714
7712
|
}
|
|
7715
7713
|
var Qn, ts;
|
|
7716
|
-
function
|
|
7714
|
+
function dy() {
|
|
7717
7715
|
if (ts) return Qn;
|
|
7718
7716
|
ts = 1;
|
|
7719
|
-
var e = Wr(), t =
|
|
7717
|
+
var e = Wr(), t = Uc(), r = ci(), n = fy();
|
|
7720
7718
|
return Qn = n || e.call(r, t), Qn;
|
|
7721
7719
|
}
|
|
7722
7720
|
var Kn, rs;
|
|
7723
|
-
function
|
|
7721
|
+
function jc() {
|
|
7724
7722
|
if (rs) return Kn;
|
|
7725
7723
|
rs = 1;
|
|
7726
|
-
var e = Wr(), t = /* @__PURE__ */ Pt(), r = ci(), n =
|
|
7724
|
+
var e = Wr(), t = /* @__PURE__ */ Pt(), r = ci(), n = dy();
|
|
7727
7725
|
return Kn = function(i) {
|
|
7728
7726
|
if (i.length < 1 || typeof i[0] != "function")
|
|
7729
7727
|
throw new t("a function is required");
|
|
@@ -7731,10 +7729,10 @@ function Uc() {
|
|
|
7731
7729
|
}, Kn;
|
|
7732
7730
|
}
|
|
7733
7731
|
var Xn, ns;
|
|
7734
|
-
function
|
|
7732
|
+
function hy() {
|
|
7735
7733
|
if (ns) return Xn;
|
|
7736
7734
|
ns = 1;
|
|
7737
|
-
var e =
|
|
7735
|
+
var e = jc(), t = /* @__PURE__ */ Bc(), r;
|
|
7738
7736
|
try {
|
|
7739
7737
|
r = /** @type {{ __proto__?: typeof Array.prototype }} */
|
|
7740
7738
|
[].__proto__ === Array.prototype;
|
|
@@ -7755,10 +7753,10 @@ function dy() {
|
|
|
7755
7753
|
) : !1, Xn;
|
|
7756
7754
|
}
|
|
7757
7755
|
var Yn, os;
|
|
7758
|
-
function
|
|
7756
|
+
function py() {
|
|
7759
7757
|
if (os) return Yn;
|
|
7760
7758
|
os = 1;
|
|
7761
|
-
var e =
|
|
7759
|
+
var e = Hc(), t = kc(), r = /* @__PURE__ */ hy();
|
|
7762
7760
|
return Yn = e ? function(o) {
|
|
7763
7761
|
return e(o);
|
|
7764
7762
|
} : t ? function(o) {
|
|
@@ -7770,7 +7768,7 @@ function hy() {
|
|
|
7770
7768
|
} : null, Yn;
|
|
7771
7769
|
}
|
|
7772
7770
|
var Zn, is;
|
|
7773
|
-
function
|
|
7771
|
+
function yy() {
|
|
7774
7772
|
if (is) return Zn;
|
|
7775
7773
|
is = 1;
|
|
7776
7774
|
var e = Function.prototype.call, t = Object.prototype.hasOwnProperty, r = Wr();
|
|
@@ -7780,12 +7778,12 @@ var Jn, as;
|
|
|
7780
7778
|
function li() {
|
|
7781
7779
|
if (as) return Jn;
|
|
7782
7780
|
as = 1;
|
|
7783
|
-
var e, t = /* @__PURE__ */
|
|
7781
|
+
var e, t = /* @__PURE__ */ Lc(), r = /* @__PURE__ */ zp(), n = /* @__PURE__ */ Wp(), o = /* @__PURE__ */ Qp(), i = /* @__PURE__ */ Kp(), a = /* @__PURE__ */ Xp(), s = /* @__PURE__ */ Pt(), u = /* @__PURE__ */ Yp(), c = /* @__PURE__ */ Zp(), l = /* @__PURE__ */ Jp(), y = /* @__PURE__ */ ey(), v = /* @__PURE__ */ ty(), h = /* @__PURE__ */ ry(), p = /* @__PURE__ */ ny(), S = /* @__PURE__ */ iy(), d = Function, g = function(U) {
|
|
7784
7782
|
try {
|
|
7785
7783
|
return d('"use strict"; return (' + U + ").constructor;")();
|
|
7786
7784
|
} catch {
|
|
7787
7785
|
}
|
|
7788
|
-
}, E = /* @__PURE__ */
|
|
7786
|
+
}, E = /* @__PURE__ */ Bc(), m = /* @__PURE__ */ sy(), b = function() {
|
|
7789
7787
|
throw new s();
|
|
7790
7788
|
}, f = E ? (function() {
|
|
7791
7789
|
try {
|
|
@@ -7797,7 +7795,7 @@ function li() {
|
|
|
7797
7795
|
return b;
|
|
7798
7796
|
}
|
|
7799
7797
|
}
|
|
7800
|
-
})() : b, w =
|
|
7798
|
+
})() : b, w = cy()(), A = py(), P = kc(), R = Hc(), T = Uc(), O = ci(), _ = {}, C = typeof Uint8Array > "u" || !A ? e : A(Uint8Array), M = {
|
|
7801
7799
|
__proto__: null,
|
|
7802
7800
|
"%AggregateError%": typeof AggregateError > "u" ? e : AggregateError,
|
|
7803
7801
|
"%Array%": Array,
|
|
@@ -7957,7 +7955,7 @@ function li() {
|
|
|
7957
7955
|
"%URIErrorPrototype%": ["URIError", "prototype"],
|
|
7958
7956
|
"%WeakMapPrototype%": ["WeakMap", "prototype"],
|
|
7959
7957
|
"%WeakSetPrototype%": ["WeakSet", "prototype"]
|
|
7960
|
-
}, x = Wr(), $ = /* @__PURE__ */
|
|
7958
|
+
}, x = Wr(), $ = /* @__PURE__ */ yy(), k = x.call(O, Array.prototype.concat), z = x.call(T, Array.prototype.splice), se = x.call(O, String.prototype.replace), ye = x.call(O, String.prototype.slice), X = x.call(O, RegExp.prototype.exec), oe = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, Q = /\\(\\)?/g, q = function(F) {
|
|
7961
7959
|
var Y = ye(F, 0, 1), D = ye(F, -1);
|
|
7962
7960
|
if (Y === "%" && D !== "%")
|
|
7963
7961
|
throw new a("invalid intrinsic syntax, expected closing `%`");
|
|
@@ -8014,10 +8012,10 @@ function li() {
|
|
|
8014
8012
|
}, Jn;
|
|
8015
8013
|
}
|
|
8016
8014
|
var eo, ss;
|
|
8017
|
-
function
|
|
8015
|
+
function qc() {
|
|
8018
8016
|
if (ss) return eo;
|
|
8019
8017
|
ss = 1;
|
|
8020
|
-
var e = /* @__PURE__ */ li(), t =
|
|
8018
|
+
var e = /* @__PURE__ */ li(), t = jc(), r = t([e("%String.prototype.indexOf%")]);
|
|
8021
8019
|
return eo = function(o, i) {
|
|
8022
8020
|
var a = (
|
|
8023
8021
|
/** @type {(this: unknown, ...args: unknown[]) => unknown} */
|
|
@@ -8030,10 +8028,10 @@ function jc() {
|
|
|
8030
8028
|
}, eo;
|
|
8031
8029
|
}
|
|
8032
8030
|
var to, us;
|
|
8033
|
-
function
|
|
8031
|
+
function Vc() {
|
|
8034
8032
|
if (us) return to;
|
|
8035
8033
|
us = 1;
|
|
8036
|
-
var e = /* @__PURE__ */ li(), t = /* @__PURE__ */
|
|
8034
|
+
var e = /* @__PURE__ */ li(), t = /* @__PURE__ */ qc(), r = /* @__PURE__ */ zr(), n = /* @__PURE__ */ Pt(), o = e("%Map%", !0), i = t("Map.prototype.get", !0), a = t("Map.prototype.set", !0), s = t("Map.prototype.has", !0), u = t("Map.prototype.delete", !0), c = t("Map.prototype.size", !0);
|
|
8037
8035
|
return to = !!o && /** @type {Exclude<import('.'), false>} */
|
|
8038
8036
|
function() {
|
|
8039
8037
|
var y, v = {
|
|
@@ -8063,10 +8061,10 @@ function qc() {
|
|
|
8063
8061
|
}, to;
|
|
8064
8062
|
}
|
|
8065
8063
|
var ro, cs;
|
|
8066
|
-
function
|
|
8064
|
+
function my() {
|
|
8067
8065
|
if (cs) return ro;
|
|
8068
8066
|
cs = 1;
|
|
8069
|
-
var e = /* @__PURE__ */ li(), t = /* @__PURE__ */
|
|
8067
|
+
var e = /* @__PURE__ */ li(), t = /* @__PURE__ */ qc(), r = /* @__PURE__ */ zr(), n = Vc(), o = /* @__PURE__ */ Pt(), i = e("%WeakMap%", !0), a = t("WeakMap.prototype.get", !0), s = t("WeakMap.prototype.set", !0), u = t("WeakMap.prototype.has", !0), c = t("WeakMap.prototype.delete", !0);
|
|
8070
8068
|
return ro = i ? (
|
|
8071
8069
|
/** @type {Exclude<import('.'), false>} */
|
|
8072
8070
|
function() {
|
|
@@ -8098,10 +8096,10 @@ function yy() {
|
|
|
8098
8096
|
) : n, ro;
|
|
8099
8097
|
}
|
|
8100
8098
|
var no, ls;
|
|
8101
|
-
function
|
|
8099
|
+
function gy() {
|
|
8102
8100
|
if (ls) return no;
|
|
8103
8101
|
ls = 1;
|
|
8104
|
-
var e = /* @__PURE__ */ Pt(), t = /* @__PURE__ */ zr(), r =
|
|
8102
|
+
var e = /* @__PURE__ */ Pt(), t = /* @__PURE__ */ zr(), r = Gp(), n = Vc(), o = my(), i = o || n || r;
|
|
8105
8103
|
return no = function() {
|
|
8106
8104
|
var s, u = {
|
|
8107
8105
|
assert: function(c) {
|
|
@@ -8147,7 +8145,7 @@ function fi() {
|
|
|
8147
8145
|
}, oo;
|
|
8148
8146
|
}
|
|
8149
8147
|
var io, ds;
|
|
8150
|
-
function
|
|
8148
|
+
function Gc() {
|
|
8151
8149
|
if (ds) return io;
|
|
8152
8150
|
ds = 1;
|
|
8153
8151
|
var e = /* @__PURE__ */ fi(), t = Object.prototype.hasOwnProperty, r = Array.isArray, n = (function() {
|
|
@@ -8272,10 +8270,10 @@ function Vc() {
|
|
|
8272
8270
|
}, io;
|
|
8273
8271
|
}
|
|
8274
8272
|
var ao, hs;
|
|
8275
|
-
function
|
|
8273
|
+
function vy() {
|
|
8276
8274
|
if (hs) return ao;
|
|
8277
8275
|
hs = 1;
|
|
8278
|
-
var e =
|
|
8276
|
+
var e = gy(), t = /* @__PURE__ */ Gc(), r = /* @__PURE__ */ fi(), n = Object.prototype.hasOwnProperty, o = {
|
|
8279
8277
|
brackets: function(d) {
|
|
8280
8278
|
return d + "[]";
|
|
8281
8279
|
},
|
|
@@ -8463,10 +8461,10 @@ function gy() {
|
|
|
8463
8461
|
}, ao;
|
|
8464
8462
|
}
|
|
8465
8463
|
var so, ps;
|
|
8466
|
-
function
|
|
8464
|
+
function by() {
|
|
8467
8465
|
if (ps) return so;
|
|
8468
8466
|
ps = 1;
|
|
8469
|
-
var e = /* @__PURE__ */
|
|
8467
|
+
var e = /* @__PURE__ */ Gc(), t = Object.prototype.hasOwnProperty, r = Array.isArray, n = {
|
|
8470
8468
|
allowDots: !1,
|
|
8471
8469
|
allowEmptyArrays: !1,
|
|
8472
8470
|
allowPrototypes: !1,
|
|
@@ -8620,24 +8618,24 @@ function vy() {
|
|
|
8620
8618
|
}, so;
|
|
8621
8619
|
}
|
|
8622
8620
|
var uo, ys;
|
|
8623
|
-
function
|
|
8621
|
+
function Ey() {
|
|
8624
8622
|
if (ys) return uo;
|
|
8625
8623
|
ys = 1;
|
|
8626
|
-
var e = /* @__PURE__ */
|
|
8624
|
+
var e = /* @__PURE__ */ vy(), t = /* @__PURE__ */ by(), r = /* @__PURE__ */ fi();
|
|
8627
8625
|
return uo = {
|
|
8628
8626
|
formats: r,
|
|
8629
8627
|
parse: t,
|
|
8630
8628
|
stringify: e
|
|
8631
8629
|
}, uo;
|
|
8632
8630
|
}
|
|
8633
|
-
var
|
|
8634
|
-
const
|
|
8635
|
-
function
|
|
8631
|
+
var Sy = /* @__PURE__ */ Ey();
|
|
8632
|
+
const wy = /* @__PURE__ */ ml(Sy);
|
|
8633
|
+
function _y(e, t, r = "/", n = !0) {
|
|
8636
8634
|
if (t && t.returnUrl) return t.returnUrl;
|
|
8637
8635
|
let o = e.get("returnUrl") || e.get("ReturnUrl");
|
|
8638
8636
|
return !o || (n && (o = decodeURIComponent(o)), !o.startsWith("/") && !o.startsWith(`${window.location.origin}/`)) ? r : o;
|
|
8639
8637
|
}
|
|
8640
|
-
function
|
|
8638
|
+
function Oy(e, t, r, n) {
|
|
8641
8639
|
if (!r || r === "/") {
|
|
8642
8640
|
e(n ?? "/");
|
|
8643
8641
|
return;
|
|
@@ -8652,10 +8650,10 @@ function di(e, t) {
|
|
|
8652
8650
|
r[n] === "" || r[n] === null || r[n] === void 0 || t && n === "_version" ? delete r[n] : typeof r[n] == "object" && (r[n] = di(r[n], t));
|
|
8653
8651
|
return r;
|
|
8654
8652
|
}
|
|
8655
|
-
function
|
|
8656
|
-
return e ? (t && (e = di(e, n), e.returnUrl === "/" && delete e.returnUrl),
|
|
8653
|
+
function Ay(e, t = !0, r = { addQueryPrefix: !0 }, n = !0) {
|
|
8654
|
+
return e ? (t && (e = di(e, n), e.returnUrl === "/" && delete e.returnUrl), wy.stringify(e, { allowDots: !0, ...r })) : "";
|
|
8657
8655
|
}
|
|
8658
|
-
function
|
|
8656
|
+
function Ty(e, t, r = {}) {
|
|
8659
8657
|
const n = {}, o = t.entries();
|
|
8660
8658
|
for (; ; ) {
|
|
8661
8659
|
const i = o.next();
|
|
@@ -8671,23 +8669,23 @@ function Ay(e, t, r = {}) {
|
|
|
8671
8669
|
delete n[i];
|
|
8672
8670
|
}), e(n);
|
|
8673
8671
|
}
|
|
8674
|
-
const
|
|
8672
|
+
const Am = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
8675
8673
|
__proto__: null,
|
|
8676
|
-
ErrType:
|
|
8677
|
-
buildQueryString:
|
|
8678
|
-
decodeJwt:
|
|
8674
|
+
ErrType: $c,
|
|
8675
|
+
buildQueryString: Ty,
|
|
8676
|
+
decodeJwt: Xf,
|
|
8679
8677
|
format: Qo,
|
|
8680
|
-
getReturnUrl:
|
|
8678
|
+
getReturnUrl: _y,
|
|
8681
8679
|
getWindow: ai,
|
|
8682
8680
|
loadConfig: Cc,
|
|
8683
|
-
nameof:
|
|
8681
|
+
nameof: Kf,
|
|
8684
8682
|
oiuConfig: si,
|
|
8685
|
-
qs:
|
|
8683
|
+
qs: Ay,
|
|
8686
8684
|
recursiveClean: di,
|
|
8687
|
-
redirectTo:
|
|
8685
|
+
redirectTo: Oy,
|
|
8688
8686
|
sig: Eo
|
|
8689
8687
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
8690
|
-
var
|
|
8688
|
+
var Py = class extends Error {
|
|
8691
8689
|
/**
|
|
8692
8690
|
* The schema issues.
|
|
8693
8691
|
*/
|
|
@@ -8711,23 +8709,23 @@ function ms(e) {
|
|
|
8711
8709
|
};
|
|
8712
8710
|
}
|
|
8713
8711
|
var gs = Fe;
|
|
8714
|
-
function
|
|
8712
|
+
function zc(e, t) {
|
|
8715
8713
|
if (e === t || !(gs(e) && gs(t) || Array.isArray(e) && Array.isArray(t)))
|
|
8716
8714
|
return t;
|
|
8717
8715
|
const r = Object.keys(t), n = Object.keys(e);
|
|
8718
8716
|
let o = r.length === n.length;
|
|
8719
8717
|
const i = Array.isArray(t) ? [] : {};
|
|
8720
8718
|
for (const a of r)
|
|
8721
|
-
i[a] =
|
|
8719
|
+
i[a] = zc(e[a], t[a]), o && (o = e[a] === i[a]);
|
|
8722
8720
|
return o ? e : i;
|
|
8723
8721
|
}
|
|
8724
8722
|
function Do(e, t, r) {
|
|
8725
8723
|
return e.reduce((n, o, i) => (t(o, i) && n.push(r(o, i)), n), []).flat();
|
|
8726
8724
|
}
|
|
8727
|
-
function
|
|
8725
|
+
function Ny(e) {
|
|
8728
8726
|
return new RegExp("(^|:)//").test(e);
|
|
8729
8727
|
}
|
|
8730
|
-
function
|
|
8728
|
+
function Ry() {
|
|
8731
8729
|
return typeof document > "u" ? !0 : document.visibilityState !== "hidden";
|
|
8732
8730
|
}
|
|
8733
8731
|
function hi(e) {
|
|
@@ -8736,24 +8734,24 @@ function hi(e) {
|
|
|
8736
8734
|
function vs(e) {
|
|
8737
8735
|
return [...e?.values() ?? []].filter(hi);
|
|
8738
8736
|
}
|
|
8739
|
-
function
|
|
8737
|
+
function Iy() {
|
|
8740
8738
|
return typeof navigator > "u" || navigator.onLine === void 0 ? !0 : navigator.onLine;
|
|
8741
8739
|
}
|
|
8742
|
-
var
|
|
8743
|
-
function
|
|
8740
|
+
var Cy = (e) => e.replace(/\/$/, ""), My = (e) => e.replace(/^\//, "");
|
|
8741
|
+
function Dy(e, t) {
|
|
8744
8742
|
if (!e)
|
|
8745
8743
|
return t;
|
|
8746
8744
|
if (!t)
|
|
8747
8745
|
return e;
|
|
8748
|
-
if (
|
|
8746
|
+
if (Ny(t))
|
|
8749
8747
|
return t;
|
|
8750
8748
|
const r = e.endsWith("/") || !t.startsWith("?") ? "/" : "";
|
|
8751
|
-
return e =
|
|
8749
|
+
return e = Cy(e), t = My(t), `${e}${r}${t}`;
|
|
8752
8750
|
}
|
|
8753
8751
|
function Dr(e, t, r) {
|
|
8754
8752
|
return e.has(t) ? e.get(t) : e.set(t, r(t)).get(t);
|
|
8755
8753
|
}
|
|
8756
|
-
var xo = () => /* @__PURE__ */ new Map(),
|
|
8754
|
+
var xo = () => /* @__PURE__ */ new Map(), xy = (e) => {
|
|
8757
8755
|
const t = new AbortController();
|
|
8758
8756
|
return setTimeout(() => {
|
|
8759
8757
|
const r = "signal timed out", n = "TimeoutError";
|
|
@@ -8764,7 +8762,7 @@ var xo = () => /* @__PURE__ */ new Map(), Dy = (e) => {
|
|
|
8764
8762
|
})
|
|
8765
8763
|
);
|
|
8766
8764
|
}, e), t.signal;
|
|
8767
|
-
},
|
|
8765
|
+
}, Fy = (...e) => {
|
|
8768
8766
|
for (const r of e) if (r.aborted) return AbortSignal.abort(r.reason);
|
|
8769
8767
|
const t = new AbortController();
|
|
8770
8768
|
for (const r of e)
|
|
@@ -8773,7 +8771,7 @@ var xo = () => /* @__PURE__ */ new Map(), Dy = (e) => {
|
|
|
8773
8771
|
once: !0
|
|
8774
8772
|
});
|
|
8775
8773
|
return t.signal;
|
|
8776
|
-
}, bs = (...e) => fetch(...e),
|
|
8774
|
+
}, bs = (...e) => fetch(...e), $y = (e) => e.status >= 200 && e.status <= 299, Ly = (e) => (
|
|
8777
8775
|
/*applicat*/
|
|
8778
8776
|
/ion\/(vnd\.api\+)?json/.test(e.get("content-type") || "")
|
|
8779
8777
|
);
|
|
@@ -8787,13 +8785,13 @@ function Es(e) {
|
|
|
8787
8785
|
n === void 0 && delete t[r];
|
|
8788
8786
|
return t;
|
|
8789
8787
|
}
|
|
8790
|
-
var
|
|
8791
|
-
function
|
|
8788
|
+
var By = (e) => typeof e == "object" && (Fe(e) || Array.isArray(e) || typeof e.toJSON == "function");
|
|
8789
|
+
function Hy({
|
|
8792
8790
|
baseUrl: e,
|
|
8793
8791
|
prepareHeaders: t = (y) => y,
|
|
8794
8792
|
fetchFn: r = bs,
|
|
8795
8793
|
paramsSerializer: n,
|
|
8796
|
-
isJsonContentType: o =
|
|
8794
|
+
isJsonContentType: o = Ly,
|
|
8797
8795
|
jsonContentType: i = "application/json",
|
|
8798
8796
|
jsonReplacer: a,
|
|
8799
8797
|
timeout: s,
|
|
@@ -8814,14 +8812,14 @@ function By({
|
|
|
8814
8812
|
headers: w = new Headers(l.headers),
|
|
8815
8813
|
params: A = void 0,
|
|
8816
8814
|
responseHandler: P = u ?? "json",
|
|
8817
|
-
validateStatus: R = c ??
|
|
8815
|
+
validateStatus: R = c ?? $y,
|
|
8818
8816
|
timeout: T = s,
|
|
8819
8817
|
...O
|
|
8820
8818
|
} = typeof v == "string" ? {
|
|
8821
8819
|
url: v
|
|
8822
8820
|
} : v, _ = {
|
|
8823
8821
|
...l,
|
|
8824
|
-
signal: T ?
|
|
8822
|
+
signal: T ? Fy(h.signal, xy(T)) : h.signal,
|
|
8825
8823
|
...O
|
|
8826
8824
|
};
|
|
8827
8825
|
w = new Headers(Es(w)), _.headers = await t(w, {
|
|
@@ -8833,12 +8831,12 @@ function By({
|
|
|
8833
8831
|
type: m,
|
|
8834
8832
|
extraOptions: p
|
|
8835
8833
|
}) || w;
|
|
8836
|
-
const C =
|
|
8834
|
+
const C = By(_.body);
|
|
8837
8835
|
if (_.body != null && !C && typeof _.body != "string" && _.headers.delete("content-type"), !_.headers.has("content-type") && C && _.headers.set("content-type", i), C && o(_.headers) && (_.body = JSON.stringify(_.body, a)), _.headers.has("accept") || (P === "json" ? _.headers.set("accept", "application/json") : P === "text" && _.headers.set("accept", "text/plain, text/html, */*")), A) {
|
|
8838
8836
|
const k = ~f.indexOf("?") ? "&" : "?", z = n ? n(A) : new URLSearchParams(Es(A));
|
|
8839
8837
|
f += k + z;
|
|
8840
8838
|
}
|
|
8841
|
-
f =
|
|
8839
|
+
f = Dy(e, f);
|
|
8842
8840
|
const M = new Request(f, _);
|
|
8843
8841
|
b = {
|
|
8844
8842
|
request: new Request(f, _)
|
|
@@ -8903,36 +8901,36 @@ var Ss = class {
|
|
|
8903
8901
|
constructor(e, t = void 0) {
|
|
8904
8902
|
this.value = e, this.meta = t;
|
|
8905
8903
|
}
|
|
8906
|
-
}, Qr = "__rtkq/",
|
|
8904
|
+
}, Qr = "__rtkq/", ky = "online", Uy = "offline", Wc = "focused", pi = /* @__PURE__ */ Ie(`${Qr}${Wc}`), Qc = /* @__PURE__ */ Ie(`${Qr}un${Wc}`), yi = /* @__PURE__ */ Ie(`${Qr}${ky}`), Kc = /* @__PURE__ */ Ie(`${Qr}${Uy}`), ir = "query", Xc = "mutation", Yc = "infinitequery";
|
|
8907
8905
|
function Kr(e) {
|
|
8908
8906
|
return e.type === ir;
|
|
8909
8907
|
}
|
|
8910
|
-
function
|
|
8911
|
-
return e.type ===
|
|
8908
|
+
function jy(e) {
|
|
8909
|
+
return e.type === Xc;
|
|
8912
8910
|
}
|
|
8913
8911
|
function ar(e) {
|
|
8914
|
-
return e.type ===
|
|
8912
|
+
return e.type === Yc;
|
|
8915
8913
|
}
|
|
8916
8914
|
function xr(e) {
|
|
8917
8915
|
return Kr(e) || ar(e);
|
|
8918
8916
|
}
|
|
8919
8917
|
function mi(e, t, r, n, o, i) {
|
|
8920
|
-
const a =
|
|
8921
|
-
return a ? Do(a, hi, (s) => i(
|
|
8918
|
+
const a = qy(e) ? e(t, r, n, o) : e;
|
|
8919
|
+
return a ? Do(a, hi, (s) => i(Zc(s))) : [];
|
|
8922
8920
|
}
|
|
8923
|
-
function
|
|
8921
|
+
function qy(e) {
|
|
8924
8922
|
return typeof e == "function";
|
|
8925
8923
|
}
|
|
8926
|
-
function
|
|
8924
|
+
function Zc(e) {
|
|
8927
8925
|
return typeof e == "string" ? {
|
|
8928
8926
|
type: e
|
|
8929
8927
|
} : e;
|
|
8930
8928
|
}
|
|
8931
|
-
function
|
|
8929
|
+
function Vy(e, t) {
|
|
8932
8930
|
return e.catch(t);
|
|
8933
8931
|
}
|
|
8934
8932
|
var _t = (e, t) => e.endpointDefinitions[t], Vt = /* @__PURE__ */ Symbol("forceQueryFn"), Fo = (e) => typeof e[Vt] == "function";
|
|
8935
|
-
function
|
|
8933
|
+
function Gy({
|
|
8936
8934
|
serializeQueryArgs: e,
|
|
8937
8935
|
queryThunk: t,
|
|
8938
8936
|
infiniteQueryThunk: r,
|
|
@@ -9107,7 +9105,7 @@ You must add the middleware for RTK-Query to function correctly!`);
|
|
|
9107
9105
|
requestId: C,
|
|
9108
9106
|
abort: M,
|
|
9109
9107
|
unwrap: L
|
|
9110
|
-
} = _, H =
|
|
9108
|
+
} = _, H = Vy(_.unwrap().then((k) => ({
|
|
9111
9109
|
data: k
|
|
9112
9110
|
})), (k) => ({
|
|
9113
9111
|
error: k
|
|
@@ -9131,7 +9129,7 @@ You must add the middleware for RTK-Query to function correctly!`);
|
|
|
9131
9129
|
};
|
|
9132
9130
|
}
|
|
9133
9131
|
}
|
|
9134
|
-
var
|
|
9132
|
+
var Jc = class extends Py {
|
|
9135
9133
|
constructor(e, t, r, n) {
|
|
9136
9134
|
super(e), this.value = t, this.schemaName = r, this._bqMeta = n;
|
|
9137
9135
|
}
|
|
@@ -9139,7 +9137,7 @@ var Zc = class extends Ty {
|
|
|
9139
9137
|
async function it(e, t, r, n) {
|
|
9140
9138
|
const o = await e["~standard"].validate(t);
|
|
9141
9139
|
if (o.issues)
|
|
9142
|
-
throw new
|
|
9140
|
+
throw new Jc(o.issues, t, r, n);
|
|
9143
9141
|
return o.value;
|
|
9144
9142
|
}
|
|
9145
9143
|
function ws(e) {
|
|
@@ -9149,7 +9147,7 @@ var Ct = (e = {}) => ({
|
|
|
9149
9147
|
...e,
|
|
9150
9148
|
[Br]: !0
|
|
9151
9149
|
});
|
|
9152
|
-
function
|
|
9150
|
+
function zy({
|
|
9153
9151
|
reducerPath: e,
|
|
9154
9152
|
baseQuery: t,
|
|
9155
9153
|
context: {
|
|
@@ -9327,7 +9325,7 @@ function Gy({
|
|
|
9327
9325
|
pageParams: []
|
|
9328
9326
|
}, Z = a.selectQueryEntry(j(), O.queryCacheKey)?.data, ue = /* arg.forceRefetch */ g(O, j()) && !O.direction || !Z ? te : Z;
|
|
9329
9327
|
if ("direction" in O && O.direction && ue.pages.length) {
|
|
9330
|
-
const ie = O.direction === "backward", be = (ie ?
|
|
9328
|
+
const ie = O.direction === "backward", be = (ie ? el : $o)(U, ue, O.originalArgs);
|
|
9331
9329
|
D = await q(ue, be, F, ie);
|
|
9332
9330
|
} else {
|
|
9333
9331
|
const {
|
|
@@ -9371,7 +9369,7 @@ function Gy({
|
|
|
9371
9369
|
}
|
|
9372
9370
|
}
|
|
9373
9371
|
try {
|
|
9374
|
-
if (X instanceof
|
|
9372
|
+
if (X instanceof Jc) {
|
|
9375
9373
|
const oe = {
|
|
9376
9374
|
endpoint: O.endpointName,
|
|
9377
9375
|
arg: O.originalArgs,
|
|
@@ -9476,13 +9474,13 @@ function $o(e, {
|
|
|
9476
9474
|
const o = t.length - 1;
|
|
9477
9475
|
return e.getNextPageParam(t[o], t, r[o], r, n);
|
|
9478
9476
|
}
|
|
9479
|
-
function
|
|
9477
|
+
function el(e, {
|
|
9480
9478
|
pages: t,
|
|
9481
9479
|
pageParams: r
|
|
9482
9480
|
}, n) {
|
|
9483
9481
|
return e.getPreviousPageParam?.(t[0], t, r[0], r, n);
|
|
9484
9482
|
}
|
|
9485
|
-
function
|
|
9483
|
+
function tl(e, t, r, n) {
|
|
9486
9484
|
return mi(r[e.meta.arg.endpointName][t], Je(e) ? e.payload : void 0, kr(e) ? e.payload : void 0, e.meta.arg.originalArgs, "baseQueryMeta" in e.meta ? e.meta.baseQueryMeta : void 0, n);
|
|
9487
9485
|
}
|
|
9488
9486
|
function _s(e) {
|
|
@@ -9500,7 +9498,7 @@ function Os(e, t, r) {
|
|
|
9500
9498
|
n && r(n);
|
|
9501
9499
|
}
|
|
9502
9500
|
var Sr = {};
|
|
9503
|
-
function
|
|
9501
|
+
function Wy({
|
|
9504
9502
|
reducerPath: e,
|
|
9505
9503
|
queryThunk: t,
|
|
9506
9504
|
mutationThunk: r,
|
|
@@ -9555,7 +9553,7 @@ function zy({
|
|
|
9555
9553
|
} else
|
|
9556
9554
|
C.data = O;
|
|
9557
9555
|
else
|
|
9558
|
-
C.data = o[T.arg.endpointName].structuralSharing ?? !0 ?
|
|
9556
|
+
C.data = o[T.arg.endpointName].structuralSharing ?? !0 ? zc(Oe(C.data) ? ql(C.data) : C.data, O) : O;
|
|
9559
9557
|
delete C.error, C.fulfilledTimeStamp = T.fulfilledTimeStamp;
|
|
9560
9558
|
});
|
|
9561
9559
|
}
|
|
@@ -9806,7 +9804,7 @@ function zy({
|
|
|
9806
9804
|
}
|
|
9807
9805
|
function E(R, T) {
|
|
9808
9806
|
const O = T.map((_) => {
|
|
9809
|
-
const C =
|
|
9807
|
+
const C = tl(_, "providesTags", o, u), {
|
|
9810
9808
|
queryCacheKey: M
|
|
9811
9809
|
} = _.meta.arg;
|
|
9812
9810
|
return {
|
|
@@ -9841,8 +9839,8 @@ function zy({
|
|
|
9841
9839
|
}), f = ke({
|
|
9842
9840
|
name: `${e}/config`,
|
|
9843
9841
|
initialState: {
|
|
9844
|
-
online:
|
|
9845
|
-
focused:
|
|
9842
|
+
online: Iy(),
|
|
9843
|
+
focused: Ry(),
|
|
9846
9844
|
middlewareRegistered: !1,
|
|
9847
9845
|
...c
|
|
9848
9846
|
},
|
|
@@ -9856,11 +9854,11 @@ function zy({
|
|
|
9856
9854
|
extraReducers: (R) => {
|
|
9857
9855
|
R.addCase(yi, (T) => {
|
|
9858
9856
|
T.online = !0;
|
|
9859
|
-
}).addCase(
|
|
9857
|
+
}).addCase(Kc, (T) => {
|
|
9860
9858
|
T.online = !1;
|
|
9861
9859
|
}).addCase(pi, (T) => {
|
|
9862
9860
|
T.focused = !0;
|
|
9863
|
-
}).addCase(
|
|
9861
|
+
}).addCase(Qc, (T) => {
|
|
9864
9862
|
T.focused = !1;
|
|
9865
9863
|
}).addMatcher(s, (T) => ({
|
|
9866
9864
|
...T
|
|
@@ -9886,12 +9884,12 @@ function zy({
|
|
|
9886
9884
|
actions: P
|
|
9887
9885
|
};
|
|
9888
9886
|
}
|
|
9889
|
-
var co = /* @__PURE__ */ Symbol.for("RTKQ/skipToken"),
|
|
9887
|
+
var co = /* @__PURE__ */ Symbol.for("RTKQ/skipToken"), rl = {
|
|
9890
9888
|
status: Ge
|
|
9891
|
-
}, As = /* @__PURE__ */ Yt(
|
|
9892
|
-
}), Ts = /* @__PURE__ */ Yt(
|
|
9889
|
+
}, As = /* @__PURE__ */ Yt(rl, () => {
|
|
9890
|
+
}), Ts = /* @__PURE__ */ Yt(rl, () => {
|
|
9893
9891
|
});
|
|
9894
|
-
function
|
|
9892
|
+
function Qy({
|
|
9895
9893
|
serializeQueryArgs: e,
|
|
9896
9894
|
reducerPath: t,
|
|
9897
9895
|
createSelector: r
|
|
@@ -9982,7 +9980,7 @@ function Wy({
|
|
|
9982
9980
|
};
|
|
9983
9981
|
}
|
|
9984
9982
|
function S(m, b) {
|
|
9985
|
-
const f = m[t], w = /* @__PURE__ */ new Set(), A = Do(b, hi,
|
|
9983
|
+
const f = m[t], w = /* @__PURE__ */ new Set(), A = Do(b, hi, Zc);
|
|
9986
9984
|
for (const P of A) {
|
|
9987
9985
|
const R = f.provided.tags[P.type];
|
|
9988
9986
|
if (!R)
|
|
@@ -10013,7 +10011,7 @@ function Wy({
|
|
|
10013
10011
|
return b ? $o(m, b, f) != null : !1;
|
|
10014
10012
|
}
|
|
10015
10013
|
function E(m, b, f) {
|
|
10016
|
-
return !b || !m.getPreviousPageParam ? !1 :
|
|
10014
|
+
return !b || !m.getPreviousPageParam ? !1 : el(m, b, f) != null;
|
|
10017
10015
|
}
|
|
10018
10016
|
}
|
|
10019
10017
|
var Ps = WeakMap ? /* @__PURE__ */ new WeakMap() : void 0, Ns = ({
|
|
@@ -10032,7 +10030,7 @@ var Ps = WeakMap ? /* @__PURE__ */ new WeakMap() : void 0, Ns = ({
|
|
|
10032
10030
|
}
|
|
10033
10031
|
return `${e}(${r})`;
|
|
10034
10032
|
};
|
|
10035
|
-
function
|
|
10033
|
+
function Ky(...e) {
|
|
10036
10034
|
return function(r) {
|
|
10037
10035
|
const n = Mr((c) => r.extractRehydrationInfo?.(c, {
|
|
10038
10036
|
reducerPath: r.reducerPath ?? "api"
|
|
@@ -10091,11 +10089,11 @@ function Qy(...e) {
|
|
|
10091
10089
|
}),
|
|
10092
10090
|
mutation: (y) => ({
|
|
10093
10091
|
...y,
|
|
10094
|
-
type:
|
|
10092
|
+
type: Xc
|
|
10095
10093
|
}),
|
|
10096
10094
|
infiniteQuery: (y) => ({
|
|
10097
10095
|
...y,
|
|
10098
|
-
type:
|
|
10096
|
+
type: Yc
|
|
10099
10097
|
})
|
|
10100
10098
|
});
|
|
10101
10099
|
for (const [y, v] of Object.entries(l)) {
|
|
@@ -10133,7 +10131,7 @@ function Qy(...e) {
|
|
|
10133
10131
|
function Le(e, ...t) {
|
|
10134
10132
|
return Object.assign(e, ...t);
|
|
10135
10133
|
}
|
|
10136
|
-
var
|
|
10134
|
+
var Xy = ({
|
|
10137
10135
|
api: e,
|
|
10138
10136
|
queryThunk: t,
|
|
10139
10137
|
internalState: r,
|
|
@@ -10213,7 +10211,7 @@ var Ky = ({
|
|
|
10213
10211
|
}
|
|
10214
10212
|
return [E, !1];
|
|
10215
10213
|
};
|
|
10216
|
-
},
|
|
10214
|
+
}, Yy = 2147483647 / 1e3 - 1, Zy = ({
|
|
10217
10215
|
reducerPath: e,
|
|
10218
10216
|
api: t,
|
|
10219
10217
|
queryThunk: r,
|
|
@@ -10277,7 +10275,7 @@ var Ky = ({
|
|
|
10277
10275
|
const P = _t(n, b)?.keepUnusedDataFor ?? w.keepUnusedDataFor;
|
|
10278
10276
|
if (P === 1 / 0)
|
|
10279
10277
|
return;
|
|
10280
|
-
const R = Math.max(0, Math.min(P,
|
|
10278
|
+
const R = Math.max(0, Math.min(P, Yy));
|
|
10281
10279
|
if (!h(m)) {
|
|
10282
10280
|
const T = p[m];
|
|
10283
10281
|
T && clearTimeout(T), p[m] = setTimeout(() => {
|
|
@@ -10292,7 +10290,7 @@ var Ky = ({
|
|
|
10292
10290
|
}
|
|
10293
10291
|
}
|
|
10294
10292
|
return d;
|
|
10295
|
-
}, Rs = new Error("Promise never resolved before cacheEntryRemoved."),
|
|
10293
|
+
}, Rs = new Error("Promise never resolved before cacheEntryRemoved."), Jy = ({
|
|
10296
10294
|
api: e,
|
|
10297
10295
|
reducerPath: t,
|
|
10298
10296
|
context: r,
|
|
@@ -10394,7 +10392,7 @@ var Ky = ({
|
|
|
10394
10392
|
});
|
|
10395
10393
|
}
|
|
10396
10394
|
return E;
|
|
10397
|
-
},
|
|
10395
|
+
}, em = ({
|
|
10398
10396
|
api: e,
|
|
10399
10397
|
context: {
|
|
10400
10398
|
apiUid: t
|
|
@@ -10404,7 +10402,7 @@ var Ky = ({
|
|
|
10404
10402
|
e.util.resetApiState.match(n) && o.dispatch(e.internalActions.middlewareRegistered(t)), typeof process < "u" && process.env.NODE_ENV === "development" && e.internalActions.middlewareRegistered.match(n) && n.payload === t && o.getState()[r]?.config?.middlewareRegistered === "conflict" && console.warn(`There is a mismatch between slice and middleware for the reducerPath "${r}".
|
|
10405
10403
|
You can only have one api per reducer path, this will lead to crashes in various situations!${r === "api" ? `
|
|
10406
10404
|
If you have multiple apis, you *have* to specify the reducerPath option when using createApi!` : ""}`);
|
|
10407
|
-
},
|
|
10405
|
+
}, tm = ({
|
|
10408
10406
|
reducerPath: e,
|
|
10409
10407
|
context: t,
|
|
10410
10408
|
context: {
|
|
@@ -10422,7 +10420,7 @@ If you have multiple apis, you *have* to specify the reducerPath option when usi
|
|
|
10422
10420
|
} = i.internalActions, l = Ve(Je(n), kr(n)), y = Ve(Je(o, n), bt(o, n));
|
|
10423
10421
|
let v = [], h = 0;
|
|
10424
10422
|
const p = (g, E) => {
|
|
10425
|
-
(o.pending.match(g) || n.pending.match(g)) && h++, y(g) && (h = Math.max(0, h - 1)), l(g) ? d(
|
|
10423
|
+
(o.pending.match(g) || n.pending.match(g)) && h++, y(g) && (h = Math.max(0, h - 1)), l(g) ? d(tl(g, "invalidatesTags", r, a), E) : y(g) ? d([], E) : i.util.invalidateTags.match(g) && d(mi(g.payload, void 0, void 0, void 0, void 0, a), E);
|
|
10426
10424
|
};
|
|
10427
10425
|
function S() {
|
|
10428
10426
|
return h > 0;
|
|
@@ -10447,7 +10445,7 @@ If you have multiple apis, you *have* to specify the reducerPath option when usi
|
|
|
10447
10445
|
});
|
|
10448
10446
|
}
|
|
10449
10447
|
return p;
|
|
10450
|
-
},
|
|
10448
|
+
}, rm = ({
|
|
10451
10449
|
reducerPath: e,
|
|
10452
10450
|
queryThunk: t,
|
|
10453
10451
|
api: r,
|
|
@@ -10534,7 +10532,7 @@ If you have multiple apis, you *have* to specify the reducerPath option when usi
|
|
|
10534
10532
|
};
|
|
10535
10533
|
}
|
|
10536
10534
|
return c;
|
|
10537
|
-
},
|
|
10535
|
+
}, nm = ({
|
|
10538
10536
|
api: e,
|
|
10539
10537
|
context: t,
|
|
10540
10538
|
queryThunk: r,
|
|
@@ -10588,7 +10586,7 @@ If you have multiple apis, you *have* to specify the reducerPath option when usi
|
|
|
10588
10586
|
}), delete s[y];
|
|
10589
10587
|
}
|
|
10590
10588
|
};
|
|
10591
|
-
},
|
|
10589
|
+
}, om = ({
|
|
10592
10590
|
reducerPath: e,
|
|
10593
10591
|
context: t,
|
|
10594
10592
|
api: r,
|
|
@@ -10615,7 +10613,7 @@ If you have multiple apis, you *have* to specify the reducerPath option when usi
|
|
|
10615
10613
|
}
|
|
10616
10614
|
return a;
|
|
10617
10615
|
};
|
|
10618
|
-
function
|
|
10616
|
+
function im(e) {
|
|
10619
10617
|
const {
|
|
10620
10618
|
reducerPath: t,
|
|
10621
10619
|
queryThunk: r,
|
|
@@ -10626,7 +10624,7 @@ function om(e) {
|
|
|
10626
10624
|
apiUid: a
|
|
10627
10625
|
} = o, s = {
|
|
10628
10626
|
invalidateTags: Ie(`${t}/invalidateTags`)
|
|
10629
|
-
}, u = (v) => v.type.startsWith(`${t}/`), c = [
|
|
10627
|
+
}, u = (v) => v.type.startsWith(`${t}/`), c = [em, Zy, tm, rm, Jy, nm];
|
|
10630
10628
|
return {
|
|
10631
10629
|
middleware: (v) => {
|
|
10632
10630
|
let h = !1;
|
|
@@ -10636,7 +10634,7 @@ function om(e) {
|
|
|
10636
10634
|
refetchQuery: y,
|
|
10637
10635
|
isThisApiSliceAction: u,
|
|
10638
10636
|
mwApi: v
|
|
10639
|
-
}, d = c.map((m) => m(S)), g =
|
|
10637
|
+
}, d = c.map((m) => m(S)), g = Xy(S), E = om(S);
|
|
10640
10638
|
return (m) => (b) => {
|
|
10641
10639
|
if (!Ho(b))
|
|
10642
10640
|
return m(b);
|
|
@@ -10661,7 +10659,7 @@ function om(e) {
|
|
|
10661
10659
|
});
|
|
10662
10660
|
}
|
|
10663
10661
|
}
|
|
10664
|
-
var Is = /* @__PURE__ */ Symbol(),
|
|
10662
|
+
var Is = /* @__PURE__ */ Symbol(), am = ({
|
|
10665
10663
|
createSelector: e = Go
|
|
10666
10664
|
} = {}) => ({
|
|
10667
10665
|
name: Is,
|
|
@@ -10679,20 +10677,20 @@ var Is = /* @__PURE__ */ Symbol(), im = ({
|
|
|
10679
10677
|
catchSchemaFailure: v,
|
|
10680
10678
|
skipSchemaValidation: h
|
|
10681
10679
|
}, p) {
|
|
10682
|
-
|
|
10680
|
+
of();
|
|
10683
10681
|
const S = (q) => (typeof process < "u" && process.env.NODE_ENV === "development" && (n.includes(q.type) || console.error(`Tag type '${q.type}' was used, but not specified in \`tagTypes\`!`)), q);
|
|
10684
10682
|
Object.assign(t, {
|
|
10685
10683
|
reducerPath: o,
|
|
10686
10684
|
endpoints: {},
|
|
10687
10685
|
internalActions: {
|
|
10688
10686
|
onOnline: yi,
|
|
10689
|
-
onOffline:
|
|
10687
|
+
onOffline: Kc,
|
|
10690
10688
|
onFocus: pi,
|
|
10691
|
-
onFocusLost:
|
|
10689
|
+
onFocusLost: Qc
|
|
10692
10690
|
},
|
|
10693
10691
|
util: {}
|
|
10694
10692
|
});
|
|
10695
|
-
const d =
|
|
10693
|
+
const d = Qy({
|
|
10696
10694
|
serializeQueryArgs: i,
|
|
10697
10695
|
reducerPath: o,
|
|
10698
10696
|
createSelector: e
|
|
@@ -10716,7 +10714,7 @@ var Is = /* @__PURE__ */ Symbol(), im = ({
|
|
|
10716
10714
|
upsertQueryData: O,
|
|
10717
10715
|
prefetch: _,
|
|
10718
10716
|
buildMatchThunkActions: C
|
|
10719
|
-
} =
|
|
10717
|
+
} = zy({
|
|
10720
10718
|
baseQuery: r,
|
|
10721
10719
|
reducerPath: o,
|
|
10722
10720
|
context: p,
|
|
@@ -10730,7 +10728,7 @@ var Is = /* @__PURE__ */ Symbol(), im = ({
|
|
|
10730
10728
|
}), {
|
|
10731
10729
|
reducer: M,
|
|
10732
10730
|
actions: L
|
|
10733
|
-
} =
|
|
10731
|
+
} = Wy({
|
|
10734
10732
|
context: p,
|
|
10735
10733
|
queryThunk: w,
|
|
10736
10734
|
mutationThunk: P,
|
|
@@ -10767,7 +10765,7 @@ var Is = /* @__PURE__ */ Symbol(), im = ({
|
|
|
10767
10765
|
getRunningMutationsThunk: se,
|
|
10768
10766
|
getRunningQueriesThunk: ye,
|
|
10769
10767
|
getRunningQueryThunk: X
|
|
10770
|
-
} =
|
|
10768
|
+
} = Gy({
|
|
10771
10769
|
queryThunk: w,
|
|
10772
10770
|
mutationThunk: P,
|
|
10773
10771
|
infiniteQueryThunk: A,
|
|
@@ -10785,7 +10783,7 @@ var Is = /* @__PURE__ */ Symbol(), im = ({
|
|
|
10785
10783
|
const {
|
|
10786
10784
|
middleware: oe,
|
|
10787
10785
|
actions: Q
|
|
10788
|
-
} =
|
|
10786
|
+
} = im({
|
|
10789
10787
|
reducerPath: o,
|
|
10790
10788
|
context: p,
|
|
10791
10789
|
queryThunk: w,
|
|
@@ -10808,7 +10806,7 @@ var Is = /* @__PURE__ */ Symbol(), im = ({
|
|
|
10808
10806
|
name: q,
|
|
10809
10807
|
select: m(q, V),
|
|
10810
10808
|
initiate: x(q, V)
|
|
10811
|
-
}, C(w, q)),
|
|
10809
|
+
}, C(w, q)), jy(V) && Le(F, {
|
|
10812
10810
|
name: q,
|
|
10813
10811
|
select: f(),
|
|
10814
10812
|
initiate: k(q)
|
|
@@ -10821,12 +10819,12 @@ var Is = /* @__PURE__ */ Symbol(), im = ({
|
|
|
10821
10819
|
};
|
|
10822
10820
|
}
|
|
10823
10821
|
});
|
|
10824
|
-
|
|
10822
|
+
am();
|
|
10825
10823
|
const { spinUpdate: Cs } = At.actions;
|
|
10826
|
-
function
|
|
10827
|
-
const { beforeFetch: r, afterFetch: n } = t, o =
|
|
10824
|
+
function sm(e, t) {
|
|
10825
|
+
const { beforeFetch: r, afterFetch: n } = t, o = um(t);
|
|
10828
10826
|
return async (i, a, s) => {
|
|
10829
|
-
const { dispatch: u, getState: c } = a, l = c(), { spin: y, auth: v } = et(l), h =
|
|
10827
|
+
const { dispatch: u, getState: c } = a, l = c(), { spin: y, auth: v } = et(l), h = Hy({
|
|
10830
10828
|
baseUrl: si.getEndpoint(e),
|
|
10831
10829
|
prepareHeaders: async (d) => {
|
|
10832
10830
|
if (d.get("Content-Type") || d.append("Content-Type", "application/json"), e !== 0) {
|
|
@@ -10852,11 +10850,11 @@ function am(e, t) {
|
|
|
10852
10850
|
}
|
|
10853
10851
|
};
|
|
10854
10852
|
}
|
|
10855
|
-
function
|
|
10853
|
+
function um(e) {
|
|
10856
10854
|
return e.getAccessToken ? e.getAccessToken : (t) => t.identity?.access_token ? Promise.resolve(`Bearer ${t.identity.access_token}`) : Promise.resolve(void 0);
|
|
10857
10855
|
}
|
|
10858
10856
|
const { screenResize: Ms } = At.actions;
|
|
10859
|
-
function
|
|
10857
|
+
function cm(e, t, r) {
|
|
10860
10858
|
const n = {};
|
|
10861
10859
|
if (e)
|
|
10862
10860
|
for (let s = 0; s < e.length; s++)
|
|
@@ -10881,7 +10879,7 @@ function um(e, t, r) {
|
|
|
10881
10879
|
}
|
|
10882
10880
|
};
|
|
10883
10881
|
r && r(o);
|
|
10884
|
-
const i =
|
|
10882
|
+
const i = Mf({
|
|
10885
10883
|
reducer: n,
|
|
10886
10884
|
middleware: (s) => {
|
|
10887
10885
|
const u = s({ serializableCheck: !1 });
|
|
@@ -10894,11 +10892,11 @@ function um(e, t, r) {
|
|
|
10894
10892
|
() => i.dispatch(Ms({ width: a.innerWidth, height: a.innerHeight }))
|
|
10895
10893
|
)), i;
|
|
10896
10894
|
}
|
|
10897
|
-
function
|
|
10898
|
-
const n =
|
|
10899
|
-
return
|
|
10895
|
+
function nl(e, t = [], r) {
|
|
10896
|
+
const n = lm(t);
|
|
10897
|
+
return cm([At, or, ...e], n, r);
|
|
10900
10898
|
}
|
|
10901
|
-
function
|
|
10899
|
+
function lm(e) {
|
|
10902
10900
|
const t = [];
|
|
10903
10901
|
for (let r = 0; r < e.length; r++) {
|
|
10904
10902
|
const n = e[r];
|
|
@@ -10909,16 +10907,18 @@ function cm(e) {
|
|
|
10909
10907
|
}
|
|
10910
10908
|
return t;
|
|
10911
10909
|
}
|
|
10912
|
-
const
|
|
10910
|
+
const Tm = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
10913
10911
|
__proto__: null,
|
|
10914
10912
|
appSlice: At,
|
|
10915
|
-
buildStorage:
|
|
10916
|
-
|
|
10913
|
+
buildStorage: nl,
|
|
10914
|
+
errorSlice: Lp,
|
|
10915
|
+
fetchBaseQueryX: sm,
|
|
10917
10916
|
getAppStore: et,
|
|
10917
|
+
getErrorStore: xc,
|
|
10918
10918
|
getLangStore: Ze,
|
|
10919
10919
|
langSlice: or
|
|
10920
|
-
}, Symbol.toStringTag, { value: "Module" })), { pushLangMessage:
|
|
10921
|
-
function
|
|
10920
|
+
}, Symbol.toStringTag, { value: "Module" })), { pushLangMessage: fm } = or.actions;
|
|
10921
|
+
function dm(e, { sig: t, loader: r, useSkeleton: n }) {
|
|
10922
10922
|
const o = (i) => {
|
|
10923
10923
|
if (!i) throw new Error("Props is required");
|
|
10924
10924
|
const a = Fr(), s = Re((y) => Ze(y).lang), u = Re((y) => Ze(y).data[s.locale].messages), c = Re((y) => Ze(y).data[s.locale].files[t] !== void 0), l = qe(() => {
|
|
@@ -10928,7 +10928,7 @@ function fm(e, { sig: t, loader: r, useSkeleton: n }) {
|
|
|
10928
10928
|
return zt(() => {
|
|
10929
10929
|
c || (async () => {
|
|
10930
10930
|
try {
|
|
10931
|
-
const y = await r(s.locale), v =
|
|
10931
|
+
const y = await r(s.locale), v = fm({ locale: s.locale, file: t, messages: y.default });
|
|
10932
10932
|
a(v);
|
|
10933
10933
|
} catch (y) {
|
|
10934
10934
|
console.error(`can't load lang file ${t}`, y);
|
|
@@ -10938,10 +10938,10 @@ function fm(e, { sig: t, loader: r, useSkeleton: n }) {
|
|
|
10938
10938
|
};
|
|
10939
10939
|
return o.displayName = `WL(${e.displayName || e.name})`, o;
|
|
10940
10940
|
}
|
|
10941
|
-
const
|
|
10941
|
+
const Pm = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
10942
10942
|
__proto__: null,
|
|
10943
|
-
wl:
|
|
10944
|
-
}, Symbol.toStringTag, { value: "Module" })), { changeTheme:
|
|
10943
|
+
wl: dm
|
|
10944
|
+
}, Symbol.toStringTag, { value: "Module" })), { changeTheme: hm } = At.actions;
|
|
10945
10945
|
function gi({
|
|
10946
10946
|
children: e,
|
|
10947
10947
|
genCSSVars: t,
|
|
@@ -10951,7 +10951,7 @@ function gi({
|
|
|
10951
10951
|
const o = gi;
|
|
10952
10952
|
if (!o.provider) throw new Error("UITheme.provider is not defined, please set it before using UITheme");
|
|
10953
10953
|
const i = Fr(), a = Re((l) => Ze(l).lang), s = Re((l) => typeof localStorage > "u" ? et(l).theme : localStorage.getItem("theme") ?? et(l).theme), u = qe(() => r(s), [r, s]);
|
|
10954
|
-
|
|
10954
|
+
pl(() => {
|
|
10955
10955
|
if (!t) return;
|
|
10956
10956
|
const { head: l } = document, y = t(s, u);
|
|
10957
10957
|
if (y) {
|
|
@@ -10960,31 +10960,31 @@ function gi({
|
|
|
10960
10960
|
}
|
|
10961
10961
|
if (typeof localStorage < "u") {
|
|
10962
10962
|
const v = localStorage.getItem("theme") ?? s;
|
|
10963
|
-
v !== s && i(
|
|
10963
|
+
v !== s && i(hm(v));
|
|
10964
10964
|
}
|
|
10965
10965
|
}, [i, t, n, s, u]);
|
|
10966
10966
|
const c = o.provider;
|
|
10967
10967
|
return /* @__PURE__ */ he(c, { lang: a, token: u, children: e });
|
|
10968
10968
|
}
|
|
10969
|
-
function
|
|
10969
|
+
function pm(e, t) {
|
|
10970
10970
|
return `/themes/${e}/${t}`;
|
|
10971
10971
|
}
|
|
10972
|
-
function
|
|
10972
|
+
function ym() {
|
|
10973
10973
|
return Re((e) => et(e).theme);
|
|
10974
10974
|
}
|
|
10975
|
-
const
|
|
10975
|
+
const Nm = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
10976
10976
|
__proto__: null,
|
|
10977
10977
|
UITheme: gi,
|
|
10978
|
-
getResByTheme:
|
|
10979
|
-
useThemeName:
|
|
10978
|
+
getResByTheme: pm,
|
|
10979
|
+
useThemeName: ym
|
|
10980
10980
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
10981
|
-
function
|
|
10981
|
+
function Rm(e) {
|
|
10982
10982
|
const { translation: t, wait: r, themeProvider: n } = e;
|
|
10983
10983
|
Hu(t.defaultLang, t.langs);
|
|
10984
10984
|
const o = ze;
|
|
10985
10985
|
o.spin = r.spin, o.spinProps = r.spinProps, r.skeleton && (o.skeleton = r.skeleton, o.skeletonProps = r.skeletonProps), n && (gi.provider = n);
|
|
10986
10986
|
}
|
|
10987
|
-
function
|
|
10987
|
+
function Im(e, t = {}, r) {
|
|
10988
10988
|
return qe(() => {
|
|
10989
10989
|
console.debug("useInitOIU called: ", e);
|
|
10990
10990
|
const { modules: n, slices: o = [] } = t, { setLang: i } = or.actions, a = ju();
|
|
@@ -10993,22 +10993,22 @@ function Rm(e, t = {}, r) {
|
|
|
10993
10993
|
const c = document.getElementsByTagName("html")[0];
|
|
10994
10994
|
c.lang !== a.locale && (c.lang = s = a.locale);
|
|
10995
10995
|
}
|
|
10996
|
-
const u =
|
|
10996
|
+
const u = nl(o, n, r);
|
|
10997
10997
|
return u.dispatch(i({ locale: Bu(s) ? s : e })), { store: u, langInfo: a };
|
|
10998
10998
|
}, [e, r, t]);
|
|
10999
10999
|
}
|
|
11000
11000
|
export {
|
|
11001
11001
|
Ls as A,
|
|
11002
|
-
|
|
11002
|
+
Fc as P,
|
|
11003
11003
|
$s as a,
|
|
11004
|
-
|
|
11005
|
-
|
|
11006
|
-
|
|
11007
|
-
|
|
11008
|
-
|
|
11009
|
-
|
|
11010
|
-
|
|
11011
|
-
|
|
11012
|
-
|
|
11013
|
-
|
|
11004
|
+
_m as b,
|
|
11005
|
+
bm as c,
|
|
11006
|
+
Xf as d,
|
|
11007
|
+
Tm as e,
|
|
11008
|
+
Nm as f,
|
|
11009
|
+
Am as g,
|
|
11010
|
+
Pm as h,
|
|
11011
|
+
Om as i,
|
|
11012
|
+
Rm as j,
|
|
11013
|
+
Im as u
|
|
11014
11014
|
};
|