accessibility-react-widget 2.0.9 → 2.0.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{index-CryM21Jb.js → index-D_YePdyz.js} +579 -577
- package/dist/main.min.js +1 -1
- package/dist/next.js +1 -1
- package/package.json +1 -1
|
@@ -5,9 +5,9 @@ import { createPortal as ds } from "react-dom";
|
|
|
5
5
|
function Vc(e) {
|
|
6
6
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
7
7
|
}
|
|
8
|
-
var mi, hi, sr = { exports: {} },
|
|
8
|
+
var mi, hi, sr = { exports: {} }, qt = {}, Sn = {};
|
|
9
9
|
process.env.NODE_ENV === "production" ? sr.exports = function() {
|
|
10
|
-
if (mi) return
|
|
10
|
+
if (mi) return qt;
|
|
11
11
|
mi = 1;
|
|
12
12
|
var e = Symbol.for("react.transitional.element"), t = Symbol.for("react.fragment");
|
|
13
13
|
function o(n, r, i) {
|
|
@@ -16,7 +16,7 @@ process.env.NODE_ENV === "production" ? sr.exports = function() {
|
|
|
16
16
|
else i = r;
|
|
17
17
|
return r = i.ref, { $$typeof: e, type: n, key: a, ref: r !== void 0 ? r : null, props: i };
|
|
18
18
|
}
|
|
19
|
-
return
|
|
19
|
+
return qt.Fragment = t, qt.jsx = o, qt.jsxs = o, qt;
|
|
20
20
|
}() : sr.exports = (hi || (hi = 1, process.env.NODE_ENV !== "production" && function() {
|
|
21
21
|
function e(G) {
|
|
22
22
|
if (G == null) return null;
|
|
@@ -31,7 +31,7 @@ process.env.NODE_ENV === "production" ? sr.exports = function() {
|
|
|
31
31
|
return "StrictMode";
|
|
32
32
|
case I:
|
|
33
33
|
return "Suspense";
|
|
34
|
-
case
|
|
34
|
+
case h:
|
|
35
35
|
return "SuspenseList";
|
|
36
36
|
case C:
|
|
37
37
|
return "Activity";
|
|
@@ -41,17 +41,17 @@ process.env.NODE_ENV === "production" ? sr.exports = function() {
|
|
|
41
41
|
return "Portal";
|
|
42
42
|
case v:
|
|
43
43
|
return (G.displayName || "Context") + ".Provider";
|
|
44
|
-
case
|
|
44
|
+
case f:
|
|
45
45
|
return (G._context.displayName || "Context") + ".Consumer";
|
|
46
46
|
case S:
|
|
47
|
-
var
|
|
48
|
-
return (G = G.displayName) || (G = (G =
|
|
47
|
+
var B = G.render;
|
|
48
|
+
return (G = G.displayName) || (G = (G = B.displayName || B.name || "") !== "" ? "ForwardRef(" + G + ")" : "ForwardRef"), G;
|
|
49
49
|
case y:
|
|
50
|
-
return (
|
|
50
|
+
return (B = G.displayName || null) !== null ? B : e(G.type) || "Memo";
|
|
51
51
|
case p:
|
|
52
|
-
|
|
52
|
+
B = G._payload, G = G._init;
|
|
53
53
|
try {
|
|
54
|
-
return e(G(
|
|
54
|
+
return e(G(B));
|
|
55
55
|
} catch {
|
|
56
56
|
}
|
|
57
57
|
}
|
|
@@ -63,21 +63,21 @@ process.env.NODE_ENV === "production" ? sr.exports = function() {
|
|
|
63
63
|
function o(G) {
|
|
64
64
|
try {
|
|
65
65
|
t(G);
|
|
66
|
-
var
|
|
66
|
+
var B = !1;
|
|
67
67
|
} catch {
|
|
68
|
-
|
|
68
|
+
B = !0;
|
|
69
69
|
}
|
|
70
|
-
if (
|
|
71
|
-
var E = (
|
|
72
|
-
return E.call(
|
|
70
|
+
if (B) {
|
|
71
|
+
var E = (B = console).error, k = typeof Symbol == "function" && Symbol.toStringTag && G[Symbol.toStringTag] || G.constructor.name || "Object";
|
|
72
|
+
return E.call(B, "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.", k), t(G);
|
|
73
73
|
}
|
|
74
74
|
}
|
|
75
75
|
function n(G) {
|
|
76
76
|
if (G === d) return "<>";
|
|
77
77
|
if (typeof G == "object" && G !== null && G.$$typeof === p) return "<...>";
|
|
78
78
|
try {
|
|
79
|
-
var
|
|
80
|
-
return
|
|
79
|
+
var B = e(G);
|
|
80
|
+
return B ? "<" + B + ">" : "<...>";
|
|
81
81
|
} catch {
|
|
82
82
|
return "<...>";
|
|
83
83
|
}
|
|
@@ -89,17 +89,17 @@ process.env.NODE_ENV === "production" ? sr.exports = function() {
|
|
|
89
89
|
var G = e(this.type);
|
|
90
90
|
return j[G] || (j[G] = !0), (G = this.props.ref) !== void 0 ? G : null;
|
|
91
91
|
}
|
|
92
|
-
function a(G,
|
|
93
|
-
var ge, U =
|
|
92
|
+
function a(G, B, E, k, z, _, se, re) {
|
|
93
|
+
var ge, U = B.children;
|
|
94
94
|
if (U !== void 0) if (k) {
|
|
95
95
|
if (V(U)) {
|
|
96
96
|
for (k = 0; k < U.length; k++) s(U[k]);
|
|
97
97
|
Object.freeze && Object.freeze(U);
|
|
98
98
|
}
|
|
99
99
|
} else s(U);
|
|
100
|
-
if (F.call(
|
|
100
|
+
if (F.call(B, "key")) {
|
|
101
101
|
U = e(G);
|
|
102
|
-
var ie = Object.keys(
|
|
102
|
+
var ie = Object.keys(B).filter(function($) {
|
|
103
103
|
return $ !== "key";
|
|
104
104
|
});
|
|
105
105
|
k = 0 < ie.length ? "{key: someKey, " + ie.join(": ..., ") + ": ...}" : "{key: someKey}", Z[U + k] || (ie = 0 < ie.length ? "{" + ie.join(": ..., ") + ": ...}" : "{}", Z[U + k] = !0);
|
|
@@ -110,8 +110,8 @@ process.env.NODE_ENV === "production" ? sr.exports = function() {
|
|
|
110
110
|
if (Ne && Ne.isReactWarning) return !1;
|
|
111
111
|
}
|
|
112
112
|
return $.key !== void 0;
|
|
113
|
-
}(
|
|
114
|
-
else E =
|
|
113
|
+
}(B) && (o(B.key), U = "" + B.key), "key" in B) for (var Me in E = {}, B) Me !== "key" && (E[Me] = B[Me]);
|
|
114
|
+
else E = B;
|
|
115
115
|
return U && function($) {
|
|
116
116
|
function Ne() {
|
|
117
117
|
c || (c = !0);
|
|
@@ -119,22 +119,22 @@ process.env.NODE_ENV === "production" ? sr.exports = function() {
|
|
|
119
119
|
Ne.isReactWarning = !0, Object.defineProperty($, "key", { get: Ne, configurable: !0 });
|
|
120
120
|
}(E, typeof G == "function" && (G.displayName || G.name)), function($, Ne, De, Ye, Ke, nt, ct, lt) {
|
|
121
121
|
return De = nt.ref, $ = { $$typeof: u, type: $, key: Ne, props: nt, _owner: Ke }, (De !== void 0 ? De : null) !== null ? Object.defineProperty($, "ref", { enumerable: !1, get: i }) : Object.defineProperty($, "ref", { enumerable: !1, value: null }), $._store = {}, Object.defineProperty($._store, "validated", { configurable: !1, enumerable: !1, writable: !0, value: 0 }), Object.defineProperty($, "_debugInfo", { configurable: !1, enumerable: !1, writable: !0, value: null }), Object.defineProperty($, "_debugStack", { configurable: !1, enumerable: !1, writable: !0, value: ct }), Object.defineProperty($, "_debugTask", { configurable: !1, enumerable: !1, writable: !0, value: lt }), Object.freeze && (Object.freeze($.props), Object.freeze($)), $;
|
|
122
|
-
}(G, U, _, 0, (ge =
|
|
122
|
+
}(G, U, _, 0, (ge = M.A) === null ? null : ge.getOwner(), E, se, re);
|
|
123
123
|
}
|
|
124
124
|
function s(G) {
|
|
125
125
|
typeof G == "object" && G !== null && G.$$typeof === u && G._store && (G._store.validated = 1);
|
|
126
126
|
}
|
|
127
|
-
var c, l = Be, u = Symbol.for("react.transitional.element"), g = Symbol.for("react.portal"), d = Symbol.for("react.fragment"), b = Symbol.for("react.strict_mode"), m = Symbol.for("react.profiler"),
|
|
127
|
+
var c, l = Be, u = Symbol.for("react.transitional.element"), g = Symbol.for("react.portal"), d = Symbol.for("react.fragment"), b = Symbol.for("react.strict_mode"), m = Symbol.for("react.profiler"), f = Symbol.for("react.consumer"), v = Symbol.for("react.context"), S = Symbol.for("react.forward_ref"), I = Symbol.for("react.suspense"), h = Symbol.for("react.suspense_list"), y = Symbol.for("react.memo"), p = Symbol.for("react.lazy"), C = Symbol.for("react.activity"), A = Symbol.for("react.client.reference"), M = l.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, F = Object.prototype.hasOwnProperty, V = Array.isArray, Y = console.createTask ? console.createTask : function() {
|
|
128
128
|
return null;
|
|
129
129
|
}, j = {}, J = (l = { react_stack_bottom_frame: function(G) {
|
|
130
130
|
return G();
|
|
131
131
|
} }).react_stack_bottom_frame.bind(l, r)(), N = Y(n(r)), Z = {};
|
|
132
|
-
Sn.Fragment = d, Sn.jsx = function(G,
|
|
133
|
-
var _ = 1e4 >
|
|
134
|
-
return a(G,
|
|
135
|
-
}, Sn.jsxs = function(G,
|
|
136
|
-
var _ = 1e4 >
|
|
137
|
-
return a(G,
|
|
132
|
+
Sn.Fragment = d, Sn.jsx = function(G, B, E, k, z) {
|
|
133
|
+
var _ = 1e4 > M.recentlyCreatedOwnerStacks++;
|
|
134
|
+
return a(G, B, E, !1, 0, z, _ ? Error("react-stack-top-frame") : J, _ ? Y(n(G)) : N);
|
|
135
|
+
}, Sn.jsxs = function(G, B, E, k, z) {
|
|
136
|
+
var _ = 1e4 > M.recentlyCreatedOwnerStacks++;
|
|
137
|
+
return a(G, B, E, !0, 0, z, _ ? Error("react-stack-top-frame") : J, _ ? Y(n(G)) : N);
|
|
138
138
|
};
|
|
139
139
|
}()), Sn);
|
|
140
140
|
var w = sr.exports, gs = Symbol.for("immer-nothing"), fi = Symbol.for("immer-draftable"), Qe = Symbol.for("immer-state"), Rc = process.env.NODE_ENV !== "production" ? [function(e) {
|
|
@@ -155,8 +155,8 @@ function Ze(e, ...t) {
|
|
|
155
155
|
}
|
|
156
156
|
throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`);
|
|
157
157
|
}
|
|
158
|
-
var
|
|
159
|
-
function
|
|
158
|
+
var Yt = Object.getPrototypeOf;
|
|
159
|
+
function Zt(e) {
|
|
160
160
|
return !!e && !!e[Qe];
|
|
161
161
|
}
|
|
162
162
|
function Et(e) {
|
|
@@ -166,7 +166,7 @@ function Et(e) {
|
|
|
166
166
|
var Tc = Object.prototype.constructor.toString();
|
|
167
167
|
function ps(e) {
|
|
168
168
|
if (!e || typeof e != "object") return !1;
|
|
169
|
-
const t =
|
|
169
|
+
const t = Yt(e);
|
|
170
170
|
if (t === null) return !0;
|
|
171
171
|
const o = Object.hasOwnProperty.call(t, "constructor") && t.constructor;
|
|
172
172
|
return o === Object || typeof o == "function" && Function.toString.call(o) === Tc;
|
|
@@ -209,17 +209,17 @@ function lr(e, t) {
|
|
|
209
209
|
const a = r[i], s = n[a];
|
|
210
210
|
s.writable === !1 && (s.writable = !0, s.configurable = !0), (s.get || s.set) && (n[a] = { configurable: !0, writable: !0, enumerable: s.enumerable, value: e[a] });
|
|
211
211
|
}
|
|
212
|
-
return Object.create(
|
|
212
|
+
return Object.create(Yt(e), n);
|
|
213
213
|
}
|
|
214
214
|
{
|
|
215
|
-
const n =
|
|
215
|
+
const n = Yt(e);
|
|
216
216
|
if (n !== null && o) return { ...e };
|
|
217
217
|
const r = Object.create(n);
|
|
218
218
|
return Object.assign(r, e);
|
|
219
219
|
}
|
|
220
220
|
}
|
|
221
221
|
function Xr(e, t = !1) {
|
|
222
|
-
return ao(e) ||
|
|
222
|
+
return ao(e) || Zt(e) || !Et(e) || (ro(e) > 1 && Object.defineProperties(e, { set: { value: An }, add: { value: An }, clear: { value: An }, delete: { value: An } }), Object.freeze(e), t && Object.values(e).forEach((o) => Xr(o, !0))), e;
|
|
223
223
|
}
|
|
224
224
|
function An() {
|
|
225
225
|
Ze(2);
|
|
@@ -271,9 +271,9 @@ function Yn(e, t, o) {
|
|
|
271
271
|
return n.copy_;
|
|
272
272
|
}
|
|
273
273
|
function Ci(e, t, o, n, r, i, a) {
|
|
274
|
-
if (process.env.NODE_ENV !== "production" && r === o && Ze(5),
|
|
274
|
+
if (process.env.NODE_ENV !== "production" && r === o && Ze(5), Zt(r)) {
|
|
275
275
|
const s = Yn(e, r, i && t && t.type_ !== 3 && !cr(t.assigned_, n) ? i.concat(n) : void 0);
|
|
276
|
-
if (ms(o, n, s), !
|
|
276
|
+
if (ms(o, n, s), !Zt(s)) return;
|
|
277
277
|
e.canAutoFreeze_ = !1;
|
|
278
278
|
} else a && o.add(r);
|
|
279
279
|
if (Et(r) && !ao(r)) {
|
|
@@ -310,20 +310,20 @@ var gr = { get(e, t) {
|
|
|
310
310
|
return n && { writable: !0, configurable: e.type_ !== 1 || t !== "length", enumerable: n.enumerable, value: o[t] };
|
|
311
311
|
}, defineProperty() {
|
|
312
312
|
Ze(11);
|
|
313
|
-
}, getPrototypeOf: (e) =>
|
|
313
|
+
}, getPrototypeOf: (e) => Yt(e.base_), setPrototypeOf() {
|
|
314
314
|
Ze(12);
|
|
315
|
-
} },
|
|
315
|
+
} }, sn = {};
|
|
316
316
|
function Io(e, t) {
|
|
317
317
|
const o = e[Qe];
|
|
318
318
|
return (o ? Lt(o) : e)[t];
|
|
319
319
|
}
|
|
320
320
|
function xi(e, t) {
|
|
321
321
|
if (!(t in e)) return;
|
|
322
|
-
let o =
|
|
322
|
+
let o = Yt(e);
|
|
323
323
|
for (; o; ) {
|
|
324
324
|
const n = Object.getOwnPropertyDescriptor(o, t);
|
|
325
325
|
if (n) return n;
|
|
326
|
-
o =
|
|
326
|
+
o = Yt(o);
|
|
327
327
|
}
|
|
328
328
|
}
|
|
329
329
|
function pr(e) {
|
|
@@ -336,7 +336,7 @@ function mr(e, t) {
|
|
|
336
336
|
const o = fn(e) ? Vt("MapSet").proxyMap_(e, t) : io(e) ? Vt("MapSet").proxySet_(e, t) : function(n, r) {
|
|
337
337
|
const i = Array.isArray(n), a = { type_: i ? 1 : 0, scope_: r ? r.scope_ : bi(), modified_: !1, finalized_: !1, assigned_: {}, parent_: r, base_: n, draft_: null, copy_: null, revoke_: null, isManual_: !1 };
|
|
338
338
|
let s = a, c = gr;
|
|
339
|
-
i && (s = [a], c =
|
|
339
|
+
i && (s = [a], c = sn);
|
|
340
340
|
const { revoke: l, proxy: u } = Proxy.revocable(s, c);
|
|
341
341
|
return a.draft_ = u, a.revoke_ = l, u;
|
|
342
342
|
}(e, t);
|
|
@@ -355,12 +355,12 @@ function hs(e) {
|
|
|
355
355
|
}), t && (t.finalized_ = !1), o;
|
|
356
356
|
}
|
|
357
357
|
Dn(gr, (e, t) => {
|
|
358
|
-
|
|
358
|
+
sn[e] = function() {
|
|
359
359
|
return arguments[0] = arguments[0][0], t.apply(this, arguments);
|
|
360
360
|
};
|
|
361
|
-
}),
|
|
362
|
-
return process.env.NODE_ENV !== "production" && isNaN(parseInt(t)) && Ze(13),
|
|
363
|
-
},
|
|
361
|
+
}), sn.deleteProperty = function(e, t) {
|
|
362
|
+
return process.env.NODE_ENV !== "production" && isNaN(parseInt(t)) && Ze(13), sn.set.call(this, e, t, void 0);
|
|
363
|
+
}, sn.set = function(e, t, o) {
|
|
364
364
|
return process.env.NODE_ENV !== "production" && t !== "length" && isNaN(parseInt(t)) && Ze(14), gr.set.call(this, e[0], t, o, e[0]);
|
|
365
365
|
};
|
|
366
366
|
var Xc = new class {
|
|
@@ -403,7 +403,7 @@ var Xc = new class {
|
|
|
403
403
|
}
|
|
404
404
|
createDraft(e) {
|
|
405
405
|
var t;
|
|
406
|
-
Et(e) || Ze(8),
|
|
406
|
+
Et(e) || Ze(8), Zt(e) && (Zt(t = e) || Ze(10, t), e = hs(t));
|
|
407
407
|
const o = yi(this), n = mr(e, void 0);
|
|
408
408
|
return n[Qe].isManual_ = !0, dr(o), n;
|
|
409
409
|
}
|
|
@@ -430,7 +430,7 @@ var Xc = new class {
|
|
|
430
430
|
}
|
|
431
431
|
o > -1 && (t = t.slice(o + 1));
|
|
432
432
|
const n = Vt("Patches").applyPatches_;
|
|
433
|
-
return
|
|
433
|
+
return Zt(e) ? n(e, t) : this.produce(e, (r) => n(r, t));
|
|
434
434
|
}
|
|
435
435
|
}(), hr = Xc.produce;
|
|
436
436
|
const Hc = {}, Pc = "_showSpinner_w7tb4_16", Fc = (e) => x.createElement("svg", { className: "MuiSvgIcon-root MuiSvgIcon-fontSizeLarge css-tzssek-MuiSvgIcon-root", focusable: "false", "aria-hidden": "true", viewBox: "0 0 24 24", "data-testid": "AccessibleIcon", ...e }, x.createElement("circle", { cx: 12, cy: 4, r: 2 }), x.createElement("path", { d: "M19 13v-2c-1.54.02-3.09-.75-4.07-1.83l-1.29-1.43c-.17-.19-.38-.34-.61-.45-.01 0-.01-.01-.02-.01H13c-.35-.2-.75-.3-1.19-.26C10.76 7.11 10 8.04 10 9.09V15c0 1.1.9 2 2 2h5v5h2v-5.5c0-1.1-.9-2-2-2h-3v-3.45c1.29 1.07 3.25 1.94 5 1.95zm-6.17 5c-.41 1.16-1.52 2-2.83 2-1.66 0-3-1.34-3-3 0-1.31.84-2.41 2-2.83V12.1c-2.28.46-4 2.48-4 4.9 0 2.76 2.24 5 5 5 2.42 0 4.44-1.72 4.9-4h-2.07z" }));
|
|
@@ -458,7 +458,7 @@ xo = fs, function() {
|
|
|
458
458
|
}
|
|
459
459
|
xo.exports ? (t.default = t, xo.exports = t) : window.classNames = t;
|
|
460
460
|
}();
|
|
461
|
-
const yt = Vc(fs.exports), Si = ({ onShow: e, showSpinner: t }) => w.jsx("a", { onClick: e, role: "button", title: "Open Accessibility Menu", className: yt("_AccessibilityIcon_w7tb4_1", { [Pc]: t }), children: w.jsx(Fc, { title: "AccessibleIcon" }) }), xt = ["h1", "h2", "h3", "h4", "h5", "h6", "span", "p", "a", "label", "i", "button", "img", "ol", "svg"],
|
|
461
|
+
const yt = Vc(fs.exports), Si = ({ onShow: e, showSpinner: t }) => w.jsx("a", { onClick: e, role: "button", title: "Open Accessibility Menu", className: yt("_AccessibilityIcon_w7tb4_1", { [Pc]: t }), children: w.jsx(Fc, { title: "AccessibleIcon" }) }), xt = ["h1", "h2", "h3", "h4", "h5", "h6", "span", "p", "a", "label", "i", "button", "img", "ol", "svg"], jt = "accessibilik", Se = `root-${jt}`, jc = (e) => x.createElement("svg", { className: "MuiSvgIcon-root MuiSvgIcon-fontSizeLarge css-tzssek-MuiSvgIcon-root", focusable: "false", "aria-hidden": "true", viewBox: "0 0 24 24", "data-testid": "CloseIcon", ...e }, x.createElement("path", { d: "M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z" })), bs = (e) => x.createElement("svg", { className: "MuiSvgIcon-root MuiSvgIcon-fontSizeLarge css-tzssek-MuiSvgIcon-root", focusable: "false", "aria-hidden": "true", viewBox: "0 0 24 24", "data-testid": "RestartAltIcon", ...e }, x.createElement("path", { d: "M12 5V2L8 6l4 4V7c3.31 0 6 2.69 6 6 0 2.97-2.17 5.43-5 5.91v2.02c3.95-.49 7-3.85 7-7.93 0-4.42-3.58-8-8-8zm-6 8c0-1.65.67-3.15 1.76-4.24L6.34 7.34C4.9 8.79 4 10.79 4 13c0 4.08 3.05 7.44 7 7.93v-2.02c-2.83-.48-5-2.94-5-5.91z" }));
|
|
462
462
|
function P() {
|
|
463
463
|
return P = Object.assign ? Object.assign.bind() : function(e) {
|
|
464
464
|
for (var t = 1; t < arguments.length; t++) {
|
|
@@ -525,42 +525,42 @@ function Hr(e) {
|
|
|
525
525
|
const { i18n: o } = t, { i18n: n, defaultNS: r } = zr(Yc) || {}, i = o || n || ys;
|
|
526
526
|
if (i && !i.reportNamespaces && (i.reportNamespaces = new _c()), !i) {
|
|
527
527
|
So("You will need to pass in an i18next instance by using initReactI18next");
|
|
528
|
-
const
|
|
529
|
-
return y.t =
|
|
528
|
+
const h = (p, C) => typeof C == "string" ? C : C && typeof C == "object" && typeof C.defaultValue == "string" ? C.defaultValue : Array.isArray(p) ? p[p.length - 1] : p, y = [h, {}, !1];
|
|
529
|
+
return y.t = h, y.i18n = {}, y.ready = !1, y;
|
|
530
530
|
}
|
|
531
531
|
i.options.react && i.options.react.wait !== void 0 && So("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");
|
|
532
532
|
const a = { ...fr, ...i.options.react, ...t }, { useSuspense: s, keyPrefix: c } = a;
|
|
533
533
|
let l = r || i.options && i.options.defaultNS;
|
|
534
534
|
l = typeof l == "string" ? [l] : l || ["translation"], i.reportNamespaces.addUsedNamespaces && i.reportNamespaces.addUsedNamespaces(l);
|
|
535
|
-
const u = (i.isInitialized || i.initializedStoreOnce) && l.every((
|
|
535
|
+
const u = (i.isInitialized || i.initializedStoreOnce) && l.every((h) => function(y, p) {
|
|
536
536
|
let C = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|
|
537
|
-
return p.languages && p.languages.length ? p.options.ignoreJSONStructure !== void 0 ? p.hasLoadedNamespace(y, { lng: C.lng, precheck: (A,
|
|
538
|
-
if (C.bindI18n && C.bindI18n.indexOf("languageChanging") > -1 && A.services.backendConnector.backend && A.isLanguageChangingTo && !
|
|
539
|
-
} }) : function(A,
|
|
537
|
+
return p.languages && p.languages.length ? p.options.ignoreJSONStructure !== void 0 ? p.hasLoadedNamespace(y, { lng: C.lng, precheck: (A, M) => {
|
|
538
|
+
if (C.bindI18n && C.bindI18n.indexOf("languageChanging") > -1 && A.services.backendConnector.backend && A.isLanguageChangingTo && !M(A.isLanguageChangingTo, y)) return !1;
|
|
539
|
+
} }) : function(A, M) {
|
|
540
540
|
let F = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|
|
541
|
-
const V =
|
|
541
|
+
const V = M.languages[0], Y = !!M.options && M.options.fallbackLng, j = M.languages[M.languages.length - 1];
|
|
542
542
|
if (V.toLowerCase() === "cimode") return !0;
|
|
543
543
|
const J = (N, Z) => {
|
|
544
|
-
const G =
|
|
544
|
+
const G = M.services.backendConnector.state[`${N}|${Z}`];
|
|
545
545
|
return G === -1 || G === 2;
|
|
546
546
|
};
|
|
547
|
-
return !(F.bindI18n && F.bindI18n.indexOf("languageChanging") > -1 &&
|
|
547
|
+
return !(F.bindI18n && F.bindI18n.indexOf("languageChanging") > -1 && M.services.backendConnector.backend && M.isLanguageChangingTo && !J(M.isLanguageChangingTo, A) || !M.hasResourceBundle(V, A) && M.services.backendConnector.backend && (!M.options.resources || M.options.partialBundledLanguages) && (!J(V, A) || Y && !J(j, A)));
|
|
548
548
|
}(y, p, C) : (So("i18n.languages were undefined or empty", p.languages), !0);
|
|
549
|
-
}(
|
|
549
|
+
}(h, i, a));
|
|
550
550
|
function g() {
|
|
551
551
|
return i.getFixedT(t.lng || null, a.nsMode === "fallback" ? l : l[0], c);
|
|
552
552
|
}
|
|
553
553
|
const [d, b] = Ie(g);
|
|
554
554
|
let m = l.join();
|
|
555
555
|
t.lng && (m = `${t.lng}${m}`);
|
|
556
|
-
const
|
|
556
|
+
const f = ((h) => {
|
|
557
557
|
const y = Ce();
|
|
558
558
|
return Pe(() => {
|
|
559
|
-
y.current =
|
|
560
|
-
}, [
|
|
559
|
+
y.current = h;
|
|
560
|
+
}, [h, void 0]), y.current;
|
|
561
561
|
})(m), v = Ce(!0);
|
|
562
562
|
Pe(() => {
|
|
563
|
-
const { bindI18n:
|
|
563
|
+
const { bindI18n: h, bindI18nStore: y } = a;
|
|
564
564
|
function p() {
|
|
565
565
|
v.current && b(g);
|
|
566
566
|
}
|
|
@@ -568,8 +568,8 @@ function Hr(e) {
|
|
|
568
568
|
v.current && b(g);
|
|
569
569
|
}) : wi(i, l, () => {
|
|
570
570
|
v.current && b(g);
|
|
571
|
-
})), u &&
|
|
572
|
-
v.current = !1,
|
|
571
|
+
})), u && f && f !== m && v.current && b(g), h && i && i.on(h, p), y && i && i.store.on(y, p), () => {
|
|
572
|
+
v.current = !1, h && i && h.split(" ").forEach((C) => i.off(C, p)), y && i && y.split(" ").forEach((C) => i.store.off(C, p));
|
|
573
573
|
};
|
|
574
574
|
}, [i, m]);
|
|
575
575
|
const S = Ce(!0);
|
|
@@ -578,8 +578,8 @@ function Hr(e) {
|
|
|
578
578
|
}, [i, c]);
|
|
579
579
|
const I = [d, i, u];
|
|
580
580
|
if (I.t = d, I.i18n = i, I.ready = u, u || !u && !s) return I;
|
|
581
|
-
throw new Promise((
|
|
582
|
-
t.lng ? Gi(i, t.lng, l, () =>
|
|
581
|
+
throw new Promise((h) => {
|
|
582
|
+
t.lng ? Gi(i, t.lng, l, () => h()) : wi(i, l, () => h());
|
|
583
583
|
});
|
|
584
584
|
}
|
|
585
585
|
const $c = ({ onInit: e, onShow: t }) => {
|
|
@@ -789,27 +789,27 @@ function jr(e) {
|
|
|
789
789
|
function wn(e, t) {
|
|
790
790
|
return t.push(e), e;
|
|
791
791
|
}
|
|
792
|
-
var co = 1,
|
|
792
|
+
var co = 1, _t = 1, ks = 0, Je = 0, Ge = 0, $t = "";
|
|
793
793
|
function lo(e, t, o, n, r, i, a) {
|
|
794
|
-
return { value: e, root: t, parent: o, type: n, props: r, children: i, line: co, column:
|
|
794
|
+
return { value: e, root: t, parent: o, type: n, props: r, children: i, line: co, column: _t, length: a, return: "" };
|
|
795
795
|
}
|
|
796
|
-
function
|
|
796
|
+
function en(e, t) {
|
|
797
797
|
return el(lo("", null, null, "", null, null, 0), e, { length: -e.length }, t);
|
|
798
798
|
}
|
|
799
799
|
function tl() {
|
|
800
|
-
return Ge = Je > 0 ? Re(
|
|
800
|
+
return Ge = Je > 0 ? Re($t, --Je) : 0, _t--, Ge === 10 && (_t = 1, co--), Ge;
|
|
801
801
|
}
|
|
802
802
|
function $e() {
|
|
803
|
-
return Ge = Je < ks ? Re(
|
|
803
|
+
return Ge = Je < ks ? Re($t, Je++) : 0, _t++, Ge === 10 && (_t = 1, co++), Ge;
|
|
804
804
|
}
|
|
805
805
|
function vt() {
|
|
806
|
-
return Re(
|
|
806
|
+
return Re($t, Je);
|
|
807
807
|
}
|
|
808
808
|
function Wn() {
|
|
809
809
|
return Je;
|
|
810
810
|
}
|
|
811
811
|
function bn(e, t) {
|
|
812
|
-
return gn(
|
|
812
|
+
return gn($t, e, t);
|
|
813
813
|
}
|
|
814
814
|
function pn(e) {
|
|
815
815
|
switch (e) {
|
|
@@ -844,10 +844,10 @@ function pn(e) {
|
|
|
844
844
|
return 0;
|
|
845
845
|
}
|
|
846
846
|
function Bs(e) {
|
|
847
|
-
return co =
|
|
847
|
+
return co = _t = 1, ks = mt($t = e), Je = 0, [];
|
|
848
848
|
}
|
|
849
849
|
function Ms(e) {
|
|
850
|
-
return
|
|
850
|
+
return $t = "", e;
|
|
851
851
|
}
|
|
852
852
|
function Zn(e) {
|
|
853
853
|
return Ns(bn(Je - 1, Ir(e === 91 ? e + 2 : e === 40 ? e + 1 : e)));
|
|
@@ -888,7 +888,7 @@ function al(e) {
|
|
|
888
888
|
return Ms(Jn("", null, null, null, [""], e = Bs(e), 0, [0], e));
|
|
889
889
|
}
|
|
890
890
|
function Jn(e, t, o, n, r, i, a, s, c) {
|
|
891
|
-
for (var l = 0, u = 0, g = a, d = 0, b = 0, m = 0,
|
|
891
|
+
for (var l = 0, u = 0, g = a, d = 0, b = 0, m = 0, f = 1, v = 1, S = 1, I = 0, h = "", y = r, p = i, C = n, A = h; v; ) switch (m = I, I = $e()) {
|
|
892
892
|
case 40:
|
|
893
893
|
if (m != 108 && Re(A, g - 1) == 58) {
|
|
894
894
|
yr(A += K(Zn(I), "&", "&\f"), "&\f") != -1 && (S = -1);
|
|
@@ -918,9 +918,9 @@ function Jn(e, t, o, n, r, i, a, s, c) {
|
|
|
918
918
|
A += "/";
|
|
919
919
|
}
|
|
920
920
|
break;
|
|
921
|
-
case 123 *
|
|
921
|
+
case 123 * f:
|
|
922
922
|
s[l++] = mt(A) * S;
|
|
923
|
-
case 125 *
|
|
923
|
+
case 125 * f:
|
|
924
924
|
case 59:
|
|
925
925
|
case 0:
|
|
926
926
|
switch (I) {
|
|
@@ -933,28 +933,28 @@ function Jn(e, t, o, n, r, i, a, s, c) {
|
|
|
933
933
|
case 59:
|
|
934
934
|
A += ";";
|
|
935
935
|
default:
|
|
936
|
-
if (wn(C = Mi(A, t, o, l, u, r, s,
|
|
936
|
+
if (wn(C = Mi(A, t, o, l, u, r, s, h, y = [], p = [], g), i), I === 123) if (u === 0) Jn(A, t, C, C, y, i, g, s, p);
|
|
937
937
|
else switch (d === 99 && Re(A, 3) === 110 ? 100 : d) {
|
|
938
938
|
case 100:
|
|
939
939
|
case 108:
|
|
940
940
|
case 109:
|
|
941
941
|
case 115:
|
|
942
|
-
Jn(e, C, C, n && wn(Mi(e, C, C, 0, 0, r, s,
|
|
942
|
+
Jn(e, C, C, n && wn(Mi(e, C, C, 0, 0, r, s, h, r, y = [], g), p), r, p, g, s, n ? y : p);
|
|
943
943
|
break;
|
|
944
944
|
default:
|
|
945
945
|
Jn(A, C, C, C, [""], p, 0, s, p);
|
|
946
946
|
}
|
|
947
947
|
}
|
|
948
|
-
l = u = b = 0,
|
|
948
|
+
l = u = b = 0, f = S = 1, h = A = "", g = a;
|
|
949
949
|
break;
|
|
950
950
|
case 58:
|
|
951
951
|
g = 1 + mt(A), b = m;
|
|
952
952
|
default:
|
|
953
|
-
if (
|
|
954
|
-
if (I == 123) --
|
|
955
|
-
else if (I == 125 &&
|
|
953
|
+
if (f < 1) {
|
|
954
|
+
if (I == 123) --f;
|
|
955
|
+
else if (I == 125 && f++ == 0 && tl() == 125) continue;
|
|
956
956
|
}
|
|
957
|
-
switch (A += so(I), I *
|
|
957
|
+
switch (A += so(I), I * f) {
|
|
958
958
|
case 38:
|
|
959
959
|
S = u > 0 ? 1 : (A += "\f", -1);
|
|
960
960
|
break;
|
|
@@ -962,16 +962,16 @@ function Jn(e, t, o, n, r, i, a, s, c) {
|
|
|
962
962
|
s[l++] = (mt(A) - 1) * S, S = 1;
|
|
963
963
|
break;
|
|
964
964
|
case 64:
|
|
965
|
-
vt() === 45 && (A += Zn($e())), d = vt(), u = g = mt(
|
|
965
|
+
vt() === 45 && (A += Zn($e())), d = vt(), u = g = mt(h = A += il(Wn())), I++;
|
|
966
966
|
break;
|
|
967
967
|
case 45:
|
|
968
|
-
m === 45 && mt(A) == 2 && (
|
|
968
|
+
m === 45 && mt(A) == 2 && (f = 0);
|
|
969
969
|
}
|
|
970
970
|
}
|
|
971
971
|
return i;
|
|
972
972
|
}
|
|
973
973
|
function Mi(e, t, o, n, r, i, a, s, c, l, u) {
|
|
974
|
-
for (var g = r - 1, d = r === 0 ? i : [""], b = jr(d), m = 0,
|
|
974
|
+
for (var g = r - 1, d = r === 0 ? i : [""], b = jr(d), m = 0, f = 0, v = 0; m < n; ++m) for (var S = 0, I = gn(e, g + 1, g = qc(f = a[m])), h = e; S < b; ++S) (h = Ns(f > 0 ? d[S] + " " + I : K(I, /&\f/g, d[S]))) && (c[v++] = h);
|
|
975
975
|
return lo(e, t, o, r === 0 ? Pr : s, c, l, u);
|
|
976
976
|
}
|
|
977
977
|
function sl(e, t, o) {
|
|
@@ -980,7 +980,7 @@ function sl(e, t, o) {
|
|
|
980
980
|
function Li(e, t, o, n) {
|
|
981
981
|
return lo(e, t, o, Fr, gn(e, 0, n), gn(e, n + 1, -1), n);
|
|
982
982
|
}
|
|
983
|
-
function
|
|
983
|
+
function Jt(e, t) {
|
|
984
984
|
for (var o = "", n = jr(e), r = 0; r < n; r++) o += t(e[r], r, e, t) || "";
|
|
985
985
|
return o;
|
|
986
986
|
}
|
|
@@ -994,11 +994,11 @@ function cl(e, t, o, n) {
|
|
|
994
994
|
case ws:
|
|
995
995
|
return "";
|
|
996
996
|
case Gs:
|
|
997
|
-
return e.return = e.value + "{" +
|
|
997
|
+
return e.return = e.value + "{" + Jt(e.children, n) + "}";
|
|
998
998
|
case Pr:
|
|
999
999
|
e.value = e.props.join(",");
|
|
1000
1000
|
}
|
|
1001
|
-
return mt(o =
|
|
1001
|
+
return mt(o = Jt(e.children, n)) ? e.return = e.value + "{" + o + "}" : "";
|
|
1002
1002
|
}
|
|
1003
1003
|
function ll(e) {
|
|
1004
1004
|
var t = /* @__PURE__ */ Object.create(null);
|
|
@@ -1016,24 +1016,24 @@ var ul = function(e, t, o) {
|
|
|
1016
1016
|
Ei.set(e, !0);
|
|
1017
1017
|
for (var r = [], i = function(u, g) {
|
|
1018
1018
|
return Ms(function(d, b) {
|
|
1019
|
-
var m = -1,
|
|
1019
|
+
var m = -1, f = 44;
|
|
1020
1020
|
do
|
|
1021
|
-
switch (pn(
|
|
1021
|
+
switch (pn(f)) {
|
|
1022
1022
|
case 0:
|
|
1023
|
-
|
|
1023
|
+
f === 38 && vt() === 12 && (b[m] = 1), d[m] += ul(Je - 1, b, m);
|
|
1024
1024
|
break;
|
|
1025
1025
|
case 2:
|
|
1026
|
-
d[m] += Zn(
|
|
1026
|
+
d[m] += Zn(f);
|
|
1027
1027
|
break;
|
|
1028
1028
|
case 4:
|
|
1029
|
-
if (
|
|
1029
|
+
if (f === 44) {
|
|
1030
1030
|
d[++m] = vt() === 58 ? "&\f" : "", b[m] = d[m].length;
|
|
1031
1031
|
break;
|
|
1032
1032
|
}
|
|
1033
1033
|
default:
|
|
1034
|
-
d[m] += so(
|
|
1034
|
+
d[m] += so(f);
|
|
1035
1035
|
}
|
|
1036
|
-
while (
|
|
1036
|
+
while (f = $e());
|
|
1037
1037
|
return d;
|
|
1038
1038
|
}(Bs(u), g));
|
|
1039
1039
|
}(t, r), a = o.props, s = 0, c = 0; s < i.length; s++) for (var l = 0; l < a.length; l++, c++) e.props[c] = r[s] ? i[s].replace(/&\f/g, a[l]) : a[l] + " " + i[s];
|
|
@@ -1164,7 +1164,7 @@ var Vi, Ri, pl = [function(e, t, o, n) {
|
|
|
1164
1164
|
e.return = Ls(e.value, e.length);
|
|
1165
1165
|
break;
|
|
1166
1166
|
case Gs:
|
|
1167
|
-
return
|
|
1167
|
+
return Jt([en(e, { value: K(e.value, "@", "@" + Q) })], n);
|
|
1168
1168
|
case Pr:
|
|
1169
1169
|
if (e.length) return function(r, i) {
|
|
1170
1170
|
return r.map(i).join("");
|
|
@@ -1174,9 +1174,9 @@ var Vi, Ri, pl = [function(e, t, o, n) {
|
|
|
1174
1174
|
}(r)) {
|
|
1175
1175
|
case ":read-only":
|
|
1176
1176
|
case ":read-write":
|
|
1177
|
-
return
|
|
1177
|
+
return Jt([en(e, { props: [K(r, /:(read-\w+)/, ":-moz-$1")] })], n);
|
|
1178
1178
|
case "::placeholder":
|
|
1179
|
-
return
|
|
1179
|
+
return Jt([en(e, { props: [K(r, /:(plac\w+)/, ":" + Q + "input-$1")] }), en(e, { props: [K(r, /:(plac\w+)/, ":-moz-$1")] }), en(e, { props: [K(r, /:(plac\w+)/, Xe + "input-$1")] })], n);
|
|
1180
1180
|
}
|
|
1181
1181
|
return "";
|
|
1182
1182
|
});
|
|
@@ -1191,7 +1191,7 @@ var Vi, Ri, pl = [function(e, t, o, n) {
|
|
|
1191
1191
|
}
|
|
1192
1192
|
var n, r, i = e.stylisPlugins || pl, a = {}, s = [];
|
|
1193
1193
|
n = e.container || document.head, Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="' + t + ' "]'), function(b) {
|
|
1194
|
-
for (var m = b.getAttribute("data-emotion").split(" "),
|
|
1194
|
+
for (var m = b.getAttribute("data-emotion").split(" "), f = 1; f < m.length; f++) a[m[f]] = !0;
|
|
1195
1195
|
s.push(b);
|
|
1196
1196
|
});
|
|
1197
1197
|
var c, l, u = [cl, (l = function(b) {
|
|
@@ -1200,13 +1200,13 @@ var Vi, Ri, pl = [function(e, t, o, n) {
|
|
|
1200
1200
|
b.root || (b = b.return) && l(b);
|
|
1201
1201
|
})], g = function(b) {
|
|
1202
1202
|
var m = jr(b);
|
|
1203
|
-
return function(
|
|
1204
|
-
for (var
|
|
1205
|
-
return
|
|
1203
|
+
return function(f, v, S, I) {
|
|
1204
|
+
for (var h = "", y = 0; y < m; y++) h += b[y](f, v, S, I) || "";
|
|
1205
|
+
return h;
|
|
1206
1206
|
};
|
|
1207
1207
|
}([dl, gl].concat(i, u));
|
|
1208
|
-
r = function(b, m,
|
|
1209
|
-
c =
|
|
1208
|
+
r = function(b, m, f, v) {
|
|
1209
|
+
c = f, Jt(al(b ? b + "{" + m.styles + "}" : m.styles), g), v && (d.inserted[m.name] = !0);
|
|
1210
1210
|
};
|
|
1211
1211
|
var d = { key: t, sheet: new Kc({ key: t, container: n, nonce: e.nonce, speedy: e.speedy, prepend: e.prepend, insertionPoint: e.insertionPoint }), nonce: e.nonce, inserted: a, registered: {}, insert: r };
|
|
1212
1212
|
return d.sheet.hydrate(s), d;
|
|
@@ -1214,8 +1214,8 @@ var Vi, Ri, pl = [function(e, t, o, n) {
|
|
|
1214
1214
|
process.env.NODE_ENV === "production" ? Cr.exports = function() {
|
|
1215
1215
|
if (Vi) return q;
|
|
1216
1216
|
Vi = 1;
|
|
1217
|
-
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, o = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, r = e ? Symbol.for("react.strict_mode") : 60108, i = e ? Symbol.for("react.profiler") : 60114, a = e ? Symbol.for("react.provider") : 60109, s = e ? Symbol.for("react.context") : 60110, c = e ? Symbol.for("react.async_mode") : 60111, l = e ? Symbol.for("react.concurrent_mode") : 60111, u = e ? Symbol.for("react.forward_ref") : 60112, g = e ? Symbol.for("react.suspense") : 60113, d = e ? Symbol.for("react.suspense_list") : 60120, b = e ? Symbol.for("react.memo") : 60115, m = e ? Symbol.for("react.lazy") : 60116,
|
|
1218
|
-
function
|
|
1217
|
+
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, o = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, r = e ? Symbol.for("react.strict_mode") : 60108, i = e ? Symbol.for("react.profiler") : 60114, a = e ? Symbol.for("react.provider") : 60109, s = e ? Symbol.for("react.context") : 60110, c = e ? Symbol.for("react.async_mode") : 60111, l = e ? Symbol.for("react.concurrent_mode") : 60111, u = e ? Symbol.for("react.forward_ref") : 60112, g = e ? Symbol.for("react.suspense") : 60113, d = e ? Symbol.for("react.suspense_list") : 60120, b = e ? Symbol.for("react.memo") : 60115, m = e ? Symbol.for("react.lazy") : 60116, f = e ? Symbol.for("react.block") : 60121, v = e ? Symbol.for("react.fundamental") : 60117, S = e ? Symbol.for("react.responder") : 60118, I = e ? Symbol.for("react.scope") : 60119;
|
|
1218
|
+
function h(p) {
|
|
1219
1219
|
if (typeof p == "object" && p !== null) {
|
|
1220
1220
|
var C = p.$$typeof;
|
|
1221
1221
|
switch (C) {
|
|
@@ -1246,38 +1246,38 @@ process.env.NODE_ENV === "production" ? Cr.exports = function() {
|
|
|
1246
1246
|
}
|
|
1247
1247
|
}
|
|
1248
1248
|
function y(p) {
|
|
1249
|
-
return
|
|
1249
|
+
return h(p) === l;
|
|
1250
1250
|
}
|
|
1251
1251
|
return q.AsyncMode = c, q.ConcurrentMode = l, q.ContextConsumer = s, q.ContextProvider = a, q.Element = t, q.ForwardRef = u, q.Fragment = n, q.Lazy = m, q.Memo = b, q.Portal = o, q.Profiler = i, q.StrictMode = r, q.Suspense = g, q.isAsyncMode = function(p) {
|
|
1252
|
-
return y(p) ||
|
|
1252
|
+
return y(p) || h(p) === c;
|
|
1253
1253
|
}, q.isConcurrentMode = y, q.isContextConsumer = function(p) {
|
|
1254
|
-
return
|
|
1254
|
+
return h(p) === s;
|
|
1255
1255
|
}, q.isContextProvider = function(p) {
|
|
1256
|
-
return
|
|
1256
|
+
return h(p) === a;
|
|
1257
1257
|
}, q.isElement = function(p) {
|
|
1258
1258
|
return typeof p == "object" && p !== null && p.$$typeof === t;
|
|
1259
1259
|
}, q.isForwardRef = function(p) {
|
|
1260
|
-
return
|
|
1260
|
+
return h(p) === u;
|
|
1261
1261
|
}, q.isFragment = function(p) {
|
|
1262
|
-
return
|
|
1262
|
+
return h(p) === n;
|
|
1263
1263
|
}, q.isLazy = function(p) {
|
|
1264
|
-
return
|
|
1264
|
+
return h(p) === m;
|
|
1265
1265
|
}, q.isMemo = function(p) {
|
|
1266
|
-
return
|
|
1266
|
+
return h(p) === b;
|
|
1267
1267
|
}, q.isPortal = function(p) {
|
|
1268
|
-
return
|
|
1268
|
+
return h(p) === o;
|
|
1269
1269
|
}, q.isProfiler = function(p) {
|
|
1270
|
-
return
|
|
1270
|
+
return h(p) === i;
|
|
1271
1271
|
}, q.isStrictMode = function(p) {
|
|
1272
|
-
return
|
|
1272
|
+
return h(p) === r;
|
|
1273
1273
|
}, q.isSuspense = function(p) {
|
|
1274
|
-
return
|
|
1274
|
+
return h(p) === g;
|
|
1275
1275
|
}, q.isValidElementType = function(p) {
|
|
1276
|
-
return typeof p == "string" || typeof p == "function" || p === n || p === l || p === i || p === r || p === g || p === d || typeof p == "object" && p !== null && (p.$$typeof === m || p.$$typeof === b || p.$$typeof === a || p.$$typeof === s || p.$$typeof === u || p.$$typeof === v || p.$$typeof === S || p.$$typeof === I || p.$$typeof ===
|
|
1277
|
-
}, q.typeOf =
|
|
1276
|
+
return typeof p == "string" || typeof p == "function" || p === n || p === l || p === i || p === r || p === g || p === d || typeof p == "object" && p !== null && (p.$$typeof === m || p.$$typeof === b || p.$$typeof === a || p.$$typeof === s || p.$$typeof === u || p.$$typeof === v || p.$$typeof === S || p.$$typeof === I || p.$$typeof === f);
|
|
1277
|
+
}, q.typeOf = h, q;
|
|
1278
1278
|
}() : Cr.exports = (Ri || (Ri = 1, process.env.NODE_ENV !== "production" && function() {
|
|
1279
|
-
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, o = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, r = e ? Symbol.for("react.strict_mode") : 60108, i = e ? Symbol.for("react.profiler") : 60114, a = e ? Symbol.for("react.provider") : 60109, s = e ? Symbol.for("react.context") : 60110, c = e ? Symbol.for("react.async_mode") : 60111, l = e ? Symbol.for("react.concurrent_mode") : 60111, u = e ? Symbol.for("react.forward_ref") : 60112, g = e ? Symbol.for("react.suspense") : 60113, d = e ? Symbol.for("react.suspense_list") : 60120, b = e ? Symbol.for("react.memo") : 60115, m = e ? Symbol.for("react.lazy") : 60116,
|
|
1280
|
-
function
|
|
1279
|
+
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, o = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, r = e ? Symbol.for("react.strict_mode") : 60108, i = e ? Symbol.for("react.profiler") : 60114, a = e ? Symbol.for("react.provider") : 60109, s = e ? Symbol.for("react.context") : 60110, c = e ? Symbol.for("react.async_mode") : 60111, l = e ? Symbol.for("react.concurrent_mode") : 60111, u = e ? Symbol.for("react.forward_ref") : 60112, g = e ? Symbol.for("react.suspense") : 60113, d = e ? Symbol.for("react.suspense_list") : 60120, b = e ? Symbol.for("react.memo") : 60115, m = e ? Symbol.for("react.lazy") : 60116, f = e ? Symbol.for("react.block") : 60121, v = e ? Symbol.for("react.fundamental") : 60117, S = e ? Symbol.for("react.responder") : 60118, I = e ? Symbol.for("react.scope") : 60119;
|
|
1280
|
+
function h(k) {
|
|
1281
1281
|
if (typeof k == "object" && k !== null) {
|
|
1282
1282
|
var z = k.$$typeof;
|
|
1283
1283
|
switch (z) {
|
|
@@ -1309,37 +1309,37 @@ process.env.NODE_ENV === "production" ? Cr.exports = function() {
|
|
|
1309
1309
|
}
|
|
1310
1310
|
}
|
|
1311
1311
|
}
|
|
1312
|
-
var y = c, p = l, C = s, A = a,
|
|
1312
|
+
var y = c, p = l, C = s, A = a, M = t, F = u, V = n, Y = m, j = b, J = o, N = i, Z = r, G = g, B = !1;
|
|
1313
1313
|
function E(k) {
|
|
1314
|
-
return
|
|
1314
|
+
return h(k) === l;
|
|
1315
1315
|
}
|
|
1316
|
-
ee.AsyncMode = y, ee.ConcurrentMode = p, ee.ContextConsumer = C, ee.ContextProvider = A, ee.Element =
|
|
1317
|
-
return
|
|
1316
|
+
ee.AsyncMode = y, ee.ConcurrentMode = p, ee.ContextConsumer = C, ee.ContextProvider = A, ee.Element = M, ee.ForwardRef = F, ee.Fragment = V, ee.Lazy = Y, ee.Memo = j, ee.Portal = J, ee.Profiler = N, ee.StrictMode = Z, ee.Suspense = G, ee.isAsyncMode = function(k) {
|
|
1317
|
+
return B || (B = !0), E(k) || h(k) === c;
|
|
1318
1318
|
}, ee.isConcurrentMode = E, ee.isContextConsumer = function(k) {
|
|
1319
|
-
return
|
|
1319
|
+
return h(k) === s;
|
|
1320
1320
|
}, ee.isContextProvider = function(k) {
|
|
1321
|
-
return
|
|
1321
|
+
return h(k) === a;
|
|
1322
1322
|
}, ee.isElement = function(k) {
|
|
1323
1323
|
return typeof k == "object" && k !== null && k.$$typeof === t;
|
|
1324
1324
|
}, ee.isForwardRef = function(k) {
|
|
1325
|
-
return
|
|
1325
|
+
return h(k) === u;
|
|
1326
1326
|
}, ee.isFragment = function(k) {
|
|
1327
|
-
return
|
|
1327
|
+
return h(k) === n;
|
|
1328
1328
|
}, ee.isLazy = function(k) {
|
|
1329
|
-
return
|
|
1329
|
+
return h(k) === m;
|
|
1330
1330
|
}, ee.isMemo = function(k) {
|
|
1331
|
-
return
|
|
1331
|
+
return h(k) === b;
|
|
1332
1332
|
}, ee.isPortal = function(k) {
|
|
1333
|
-
return
|
|
1333
|
+
return h(k) === o;
|
|
1334
1334
|
}, ee.isProfiler = function(k) {
|
|
1335
|
-
return
|
|
1335
|
+
return h(k) === i;
|
|
1336
1336
|
}, ee.isStrictMode = function(k) {
|
|
1337
|
-
return
|
|
1337
|
+
return h(k) === r;
|
|
1338
1338
|
}, ee.isSuspense = function(k) {
|
|
1339
|
-
return
|
|
1339
|
+
return h(k) === g;
|
|
1340
1340
|
}, ee.isValidElementType = function(k) {
|
|
1341
|
-
return typeof k == "string" || typeof k == "function" || k === n || k === l || k === i || k === r || k === g || k === d || typeof k == "object" && k !== null && (k.$$typeof === m || k.$$typeof === b || k.$$typeof === a || k.$$typeof === s || k.$$typeof === u || k.$$typeof === v || k.$$typeof === S || k.$$typeof === I || k.$$typeof ===
|
|
1342
|
-
}, ee.typeOf =
|
|
1341
|
+
return typeof k == "string" || typeof k == "function" || k === n || k === l || k === i || k === r || k === g || k === d || typeof k == "object" && k !== null && (k.$$typeof === m || k.$$typeof === b || k.$$typeof === a || k.$$typeof === s || k.$$typeof === u || k.$$typeof === v || k.$$typeof === S || k.$$typeof === I || k.$$typeof === f);
|
|
1342
|
+
}, ee.typeOf = h;
|
|
1343
1343
|
}()), ee);
|
|
1344
1344
|
var Ti = Cr.exports, Oi = {};
|
|
1345
1345
|
Oi[Ti.ForwardRef] = { $$typeof: !0, render: !0, defaultProps: !0, displayName: !0, propTypes: !0 }, Oi[Ti.Memo] = { $$typeof: !0, compare: !0, defaultProps: !0, displayName: !0, propTypes: !0, type: !0 };
|
|
@@ -1382,13 +1382,13 @@ function cn(e, t, o) {
|
|
|
1382
1382
|
var d = "";
|
|
1383
1383
|
if (Array.isArray(g)) for (var b = 0; b < g.length; b++) d += cn(l, u, g[b]) + ";";
|
|
1384
1384
|
else for (var m in g) {
|
|
1385
|
-
var
|
|
1386
|
-
if (typeof
|
|
1387
|
-
var v =
|
|
1385
|
+
var f = g[m];
|
|
1386
|
+
if (typeof f != "object") {
|
|
1387
|
+
var v = f;
|
|
1388
1388
|
Xi(v) && (d += Ao(m) + ":" + Hi(m, v) + ";");
|
|
1389
|
-
} else if (Array.isArray(
|
|
1389
|
+
} else if (Array.isArray(f) && typeof f[0] == "string" && u == null) for (var S = 0; S < f.length; S++) Xi(f[S]) && (d += Ao(m) + ":" + Hi(m, f[S]) + ";");
|
|
1390
1390
|
else {
|
|
1391
|
-
var I = cn(l, u,
|
|
1391
|
+
var I = cn(l, u, f);
|
|
1392
1392
|
switch (m) {
|
|
1393
1393
|
case "animation":
|
|
1394
1394
|
case "animationName":
|
|
@@ -1554,8 +1554,8 @@ function Zi(e) {
|
|
|
1554
1554
|
const o = t.getBoundingClientRect(), { width: n, height: r, $: i } = function(c) {
|
|
1555
1555
|
const l = Zr(c);
|
|
1556
1556
|
let u = parseFloat(l.width) || 0, g = parseFloat(l.height) || 0;
|
|
1557
|
-
const d = wr(c), b = d ? c.offsetWidth : u, m = d ? c.offsetHeight : g,
|
|
1558
|
-
return
|
|
1557
|
+
const d = wr(c), b = d ? c.offsetWidth : u, m = d ? c.offsetHeight : g, f = Gn(u) !== b || Gn(g) !== m;
|
|
1558
|
+
return f && (u = b, g = m), { width: u, height: g, $: f };
|
|
1559
1559
|
}(t);
|
|
1560
1560
|
let a = (i ? Gn(o.width) : o.width) / n, s = (i ? Gn(o.height) : o.height) / r;
|
|
1561
1561
|
return a && Number.isFinite(a) || (a = 1), s && Number.isFinite(s) || (s = 1), { x: a, y: s };
|
|
@@ -1571,13 +1571,13 @@ function Ji(e, t, o, n) {
|
|
|
1571
1571
|
const d = n;
|
|
1572
1572
|
let b = wt(i), m = Gr(b);
|
|
1573
1573
|
for (; m && n && d !== b; ) {
|
|
1574
|
-
const
|
|
1575
|
-
c *=
|
|
1574
|
+
const f = Zi(m), v = m.getBoundingClientRect(), S = Zr(m), I = v.left + (m.clientLeft + parseFloat(S.paddingLeft)) * f.x, h = v.top + (m.clientTop + parseFloat(S.paddingTop)) * f.y;
|
|
1575
|
+
c *= f.x, l *= f.y, u *= f.x, g *= f.y, c += I, l += h, b = wt(m), m = Gr(b);
|
|
1576
1576
|
}
|
|
1577
1577
|
}
|
|
1578
1578
|
return function(d) {
|
|
1579
|
-
const { x: b, y: m, width:
|
|
1580
|
-
return { width:
|
|
1579
|
+
const { x: b, y: m, width: f, height: v } = d;
|
|
1580
|
+
return { width: f, height: v, top: m, left: b, right: b + f, bottom: m + v, x: b, y: m };
|
|
1581
1581
|
}({ width: u, height: g, x: c, y: l });
|
|
1582
1582
|
}
|
|
1583
1583
|
function Di(e, t) {
|
|
@@ -1650,30 +1650,30 @@ function Mn(e, t, o) {
|
|
|
1650
1650
|
var Rl = ["children", "innerProps"], Tl = ["children", "innerProps"], Qi, Go, No, Fs = function(e) {
|
|
1651
1651
|
return e === "auto" ? "bottom" : e;
|
|
1652
1652
|
}, js = ls(null), Ol = function(e) {
|
|
1653
|
-
var t = e.children, o = e.minMenuHeight, n = e.maxMenuHeight, r = e.menuPlacement, i = e.menuPosition, a = e.menuShouldScrollIntoView, s = e.theme, c = (zr(js) || {}).setPortalPlacement, l = Ce(null), u = fe(Ie(n), 2), g = u[0], d = u[1], b = fe(Ie(null), 2), m = b[0],
|
|
1653
|
+
var t = e.children, o = e.minMenuHeight, n = e.maxMenuHeight, r = e.menuPlacement, i = e.menuPosition, a = e.menuShouldScrollIntoView, s = e.theme, c = (zr(js) || {}).setPortalPlacement, l = Ce(null), u = fe(Ie(n), 2), g = u[0], d = u[1], b = fe(Ie(null), 2), m = b[0], f = b[1], v = s.spacing.controlHeight;
|
|
1654
1654
|
return Nr(function() {
|
|
1655
1655
|
var S = l.current;
|
|
1656
1656
|
if (S) {
|
|
1657
|
-
var I = i === "fixed",
|
|
1658
|
-
var p = y.maxHeight, C = y.menuEl, A = y.minHeight,
|
|
1657
|
+
var I = i === "fixed", h = function(y) {
|
|
1658
|
+
var p = y.maxHeight, C = y.menuEl, A = y.minHeight, M = y.placement, F = y.shouldScroll, V = y.isFixedPosition, Y = y.controlHeight, j = function(lt) {
|
|
1659
1659
|
var _e = getComputedStyle(lt), ot = _e.position === "absolute", rt = /(auto|scroll)/;
|
|
1660
1660
|
if (_e.position === "fixed") return document.documentElement;
|
|
1661
1661
|
for (var It = lt; It = It.parentElement; ) if (_e = getComputedStyle(It), (!ot || _e.position !== "static") && rt.test(_e.overflow + _e.overflowY + _e.overflowX)) return It;
|
|
1662
1662
|
return document.documentElement;
|
|
1663
1663
|
}(C), J = { placement: "bottom", maxHeight: p };
|
|
1664
1664
|
if (!C || !C.offsetParent) return J;
|
|
1665
|
-
var N, Z = j.getBoundingClientRect().height, G = C.getBoundingClientRect(),
|
|
1666
|
-
switch (
|
|
1665
|
+
var N, Z = j.getBoundingClientRect().height, G = C.getBoundingClientRect(), B = G.bottom, E = G.height, k = G.top, z = C.offsetParent.getBoundingClientRect().top, _ = V || go(N = j) ? window.innerHeight : N.clientHeight, se = Hs(j), re = parseInt(getComputedStyle(C).marginBottom, 10), ge = parseInt(getComputedStyle(C).marginTop, 10), U = z - ge, ie = _ - k, Me = U + se, $ = Z - se - k, Ne = B - _ + se + re, De = se + k - ge, Ye = 160;
|
|
1666
|
+
switch (M) {
|
|
1667
1667
|
case "auto":
|
|
1668
1668
|
case "bottom":
|
|
1669
1669
|
if (ie >= E) return { placement: "bottom", maxHeight: p };
|
|
1670
1670
|
if ($ >= E && !V) return F && kn(j, Ne, Ye), { placement: "bottom", maxHeight: p };
|
|
1671
1671
|
if (!V && $ >= A || V && ie >= A) return F && kn(j, Ne, Ye), { placement: "bottom", maxHeight: V ? ie - re : $ - re };
|
|
1672
|
-
if (
|
|
1672
|
+
if (M === "auto" || V) {
|
|
1673
1673
|
var Ke = p, nt = V ? U : Me;
|
|
1674
1674
|
return nt >= A && (Ke = Math.min(nt - re - Y, p)), { placement: "top", maxHeight: Ke };
|
|
1675
1675
|
}
|
|
1676
|
-
if (
|
|
1676
|
+
if (M === "bottom") return F && Kn(j, Ne), { placement: "bottom", maxHeight: p };
|
|
1677
1677
|
break;
|
|
1678
1678
|
case "top":
|
|
1679
1679
|
if (U >= E) return { placement: "top", maxHeight: p };
|
|
@@ -1684,11 +1684,11 @@ var Rl = ["children", "innerProps"], Tl = ["children", "innerProps"], Qi, Go, No
|
|
|
1684
1684
|
}
|
|
1685
1685
|
return { placement: "bottom", maxHeight: p };
|
|
1686
1686
|
default:
|
|
1687
|
-
throw new Error('Invalid placement provided "'.concat(
|
|
1687
|
+
throw new Error('Invalid placement provided "'.concat(M, '".'));
|
|
1688
1688
|
}
|
|
1689
1689
|
return J;
|
|
1690
1690
|
}({ maxHeight: n, menuEl: S, minHeight: o, placement: r, shouldScroll: a && !I, isFixedPosition: I, controlHeight: v });
|
|
1691
|
-
d(
|
|
1691
|
+
d(h.maxHeight), f(h.placement), c == null || c(h.placement);
|
|
1692
1692
|
}
|
|
1693
1693
|
}, [n, r, i, a, o, c, v]), t({ ref: l, placerProps: L(L({}, e), {}, { placement: m || Fs(r), maxHeight: g }) });
|
|
1694
1694
|
}, Ws = function(e, t) {
|
|
@@ -1760,13 +1760,13 @@ var Rl = ["children", "innerProps"], Tl = ["children", "innerProps"], Qi, Go, No
|
|
|
1760
1760
|
}, MenuPortal: function(e) {
|
|
1761
1761
|
var t = e.appendTo, o = e.children, n = e.controlElement, r = e.innerProps, i = e.menuPlacement, a = e.menuPosition, s = Ce(null), c = Ce(null), l = fe(Ie(Fs(i)), 2), u = l[0], g = l[1], d = St(function() {
|
|
1762
1762
|
return { setPortalPlacement: g };
|
|
1763
|
-
}, []), b = fe(Ie(null), 2), m = b[0],
|
|
1763
|
+
}, []), b = fe(Ie(null), 2), m = b[0], f = b[1], v = He(function() {
|
|
1764
1764
|
if (n) {
|
|
1765
1765
|
var y = function(A) {
|
|
1766
|
-
var
|
|
1767
|
-
return { bottom:
|
|
1766
|
+
var M = A.getBoundingClientRect();
|
|
1767
|
+
return { bottom: M.bottom, height: M.height, left: M.left, right: M.right, top: M.top, width: M.width };
|
|
1768
1768
|
}(n), p = a === "fixed" ? 0 : window.pageYOffset, C = y[u] + p;
|
|
1769
|
-
C === (m == null ? void 0 : m.offset) && y.left === (m == null ? void 0 : m.rect.left) && y.width === (m == null ? void 0 : m.rect.width) ||
|
|
1769
|
+
C === (m == null ? void 0 : m.offset) && y.left === (m == null ? void 0 : m.rect.left) && y.width === (m == null ? void 0 : m.rect.width) || f({ offset: C, rect: y });
|
|
1770
1770
|
}
|
|
1771
1771
|
}, [n, a, u, m == null ? void 0 : m.offset, m == null ? void 0 : m.rect.left, m == null ? void 0 : m.rect.width]);
|
|
1772
1772
|
Nr(function() {
|
|
@@ -1775,9 +1775,9 @@ var Rl = ["children", "innerProps"], Tl = ["children", "innerProps"], Qi, Go, No
|
|
|
1775
1775
|
var S = He(function() {
|
|
1776
1776
|
typeof c.current == "function" && (c.current(), c.current = null), n && s.current && (c.current = function(y, p, C, A) {
|
|
1777
1777
|
A === void 0 && (A = {});
|
|
1778
|
-
const { ancestorScroll:
|
|
1778
|
+
const { ancestorScroll: M = !0, ancestorResize: F = !0, elementResize: V = typeof ResizeObserver == "function", layoutShift: Y = typeof IntersectionObserver == "function", animationFrame: j = !1 } = A, J = Jr(y), N = M || F ? [...J ? Un(J) : [], ...Un(p)] : [];
|
|
1779
1779
|
N.forEach((z) => {
|
|
1780
|
-
|
|
1780
|
+
M && z.addEventListener("scroll", C, { passive: !0 }), F && z.addEventListener("resize", C);
|
|
1781
1781
|
});
|
|
1782
1782
|
const Z = J && Y ? function(z, _) {
|
|
1783
1783
|
let se, re = null;
|
|
@@ -1810,10 +1810,10 @@ var Rl = ["children", "innerProps"], Tl = ["children", "innerProps"], Qi, Go, No
|
|
|
1810
1810
|
re.observe(z);
|
|
1811
1811
|
}(!0), U;
|
|
1812
1812
|
}(J, C) : null;
|
|
1813
|
-
let G,
|
|
1813
|
+
let G, B = -1, E = null;
|
|
1814
1814
|
V && (E = new ResizeObserver((z) => {
|
|
1815
1815
|
let [_] = z;
|
|
1816
|
-
_ && _.target === J && E && (E.unobserve(p), cancelAnimationFrame(
|
|
1816
|
+
_ && _.target === J && E && (E.unobserve(p), cancelAnimationFrame(B), B = requestAnimationFrame(() => {
|
|
1817
1817
|
var se;
|
|
1818
1818
|
(se = E) == null || se.observe(p);
|
|
1819
1819
|
})), C();
|
|
@@ -1825,7 +1825,7 @@ var Rl = ["children", "innerProps"], Tl = ["children", "innerProps"], Qi, Go, No
|
|
|
1825
1825
|
}(), C(), () => {
|
|
1826
1826
|
var z;
|
|
1827
1827
|
N.forEach((_) => {
|
|
1828
|
-
|
|
1828
|
+
M && _.removeEventListener("scroll", C), F && _.removeEventListener("resize", C);
|
|
1829
1829
|
}), Z == null || Z(), (z = E) == null || z.disconnect(), E = null, j && cancelAnimationFrame(G);
|
|
1830
1830
|
};
|
|
1831
1831
|
}(n, s.current, v, { elementResize: "ResizeObserver" in window }));
|
|
@@ -1837,8 +1837,8 @@ var Rl = ["children", "innerProps"], Tl = ["children", "innerProps"], Qi, Go, No
|
|
|
1837
1837
|
s.current = y, S();
|
|
1838
1838
|
}, [S]);
|
|
1839
1839
|
if (!t && a !== "fixed" || !m) return null;
|
|
1840
|
-
var
|
|
1841
|
-
return H(js.Provider, { value: d }, t ? ds(
|
|
1840
|
+
var h = H("div", P({ ref: I }, ve(L(L({}, e), {}, { offset: m.offset, position: a, rect: m.rect }), "menuPortal", { "menu-portal": !0 }), r), o);
|
|
1841
|
+
return H(js.Provider, { value: d }, t ? ds(h, t) : h);
|
|
1842
1842
|
}, LoadingMessage: function(e) {
|
|
1843
1843
|
var t = e.children, o = t === void 0 ? "Loading..." : t, n = e.innerProps, r = st(e, Tl);
|
|
1844
1844
|
return H("div", P({}, ve(L(L({}, r), {}, { children: o, innerProps: n }), "loadingMessage", { "menu-notice": !0, "menu-notice--loading": !0 }), n), o);
|
|
@@ -1923,20 +1923,20 @@ for (var Kl = process.env.NODE_ENV === "production" ? { name: "7pg0cj-a11yText",
|
|
|
1923
1923
|
var t = e.inputValue, o = e.resultsMessage;
|
|
1924
1924
|
return "".concat(o).concat(t ? " for search term " + t : "", ".");
|
|
1925
1925
|
} }, eu = function(e) {
|
|
1926
|
-
var t = e.ariaSelection, o = e.focusedOption, n = e.focusedValue, r = e.focusableOptions, i = e.isFocused, a = e.selectValue, s = e.selectProps, c = e.id, l = e.isAppleDevice, u = s.ariaLiveMessages, g = s.getOptionLabel, d = s.inputValue, b = s.isMulti, m = s.isOptionDisabled,
|
|
1926
|
+
var t = e.ariaSelection, o = e.focusedOption, n = e.focusedValue, r = e.focusableOptions, i = e.isFocused, a = e.selectValue, s = e.selectProps, c = e.id, l = e.isAppleDevice, u = s.ariaLiveMessages, g = s.getOptionLabel, d = s.inputValue, b = s.isMulti, m = s.isOptionDisabled, f = s.isSearchable, v = s.menuIsOpen, S = s.options, I = s.screenReaderStatus, h = s.tabSelectsValue, y = s.isLoading, p = s["aria-label"], C = s["aria-live"], A = St(function() {
|
|
1927
1927
|
return L(L({}, ql), u || {});
|
|
1928
|
-
}, [u]),
|
|
1928
|
+
}, [u]), M = St(function() {
|
|
1929
1929
|
var N, Z = "";
|
|
1930
1930
|
if (t && A.onChange) {
|
|
1931
|
-
var G = t.option,
|
|
1931
|
+
var G = t.option, B = t.options, E = t.removedValue, k = t.removedValues, z = t.value, _ = E || G || (N = z, Array.isArray(N) ? null : N), se = _ ? g(_) : "", re = B || k || void 0, ge = re ? re.map(g) : [], U = L({ isDisabled: _ && m(_, a), label: se, labels: ge }, t);
|
|
1932
1932
|
Z = A.onChange(U);
|
|
1933
1933
|
}
|
|
1934
1934
|
return Z;
|
|
1935
1935
|
}, [t, A, m, a, g]), F = St(function() {
|
|
1936
1936
|
var N = "", Z = o || n, G = !!(o && a && a.includes(o));
|
|
1937
1937
|
if (Z && A.onFocus) {
|
|
1938
|
-
var
|
|
1939
|
-
N = A.onFocus(
|
|
1938
|
+
var B = { focused: Z, label: g(Z), isDisabled: m(Z, a), isSelected: G, options: r, context: Z === o ? "menu" : "value", selectValue: a, isAppleDevice: l };
|
|
1939
|
+
N = A.onFocus(B);
|
|
1940
1940
|
}
|
|
1941
1941
|
return N;
|
|
1942
1942
|
}, [o, n, g, m, A, r, a, l]), V = St(function() {
|
|
@@ -1950,10 +1950,10 @@ for (var Kl = process.env.NODE_ENV === "production" ? { name: "7pg0cj-a11yText",
|
|
|
1950
1950
|
var N = "";
|
|
1951
1951
|
if (A.guidance) {
|
|
1952
1952
|
var Z = n ? "value" : v ? "menu" : "input";
|
|
1953
|
-
N = A.guidance({ "aria-label": p, context: Z, isDisabled: o && m(o, a), isMulti: b, isSearchable:
|
|
1953
|
+
N = A.guidance({ "aria-label": p, context: Z, isDisabled: o && m(o, a), isMulti: b, isSearchable: f, tabSelectsValue: h, isInitialFocus: Y });
|
|
1954
1954
|
}
|
|
1955
1955
|
return N;
|
|
1956
|
-
}, [p, o, n, b, m,
|
|
1956
|
+
}, [p, o, n, b, m, f, v, A, a, h, Y]), J = H(ar, null, H("span", { id: "aria-selection" }, M), H("span", { id: "aria-focused" }, F), H("span", { id: "aria-results" }, V), H("span", { id: "aria-guidance" }, j));
|
|
1957
1957
|
return H(ar, null, H(ta, { id: c }, Y && J), H(ta, { "aria-live": C, "aria-atomic": "false", "aria-relevant": "additions text", role: "log" }, i && !Y && J));
|
|
1958
1958
|
}, Mo = [{ base: "A", letters: "AⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ" }, { base: "AA", letters: "Ꜳ" }, { base: "AE", letters: "ÆǼǢ" }, { base: "AO", letters: "Ꜵ" }, { base: "AU", letters: "Ꜷ" }, { base: "AV", letters: "ꜸꜺ" }, { base: "AY", letters: "Ꜽ" }, { base: "B", letters: "BⒷBḂḄḆɃƂƁ" }, { base: "C", letters: "CⒸCĆĈĊČÇḈƇȻꜾ" }, { base: "D", letters: "DⒹDḊĎḌḐḒḎĐƋƊƉꝹ" }, { base: "DZ", letters: "DZDŽ" }, { base: "Dz", letters: "DzDž" }, { base: "E", letters: "EⒺEÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ" }, { base: "F", letters: "FⒻFḞƑꝻ" }, { base: "G", letters: "GⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾ" }, { base: "H", letters: "HⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ" }, { base: "I", letters: "IⒾIÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ" }, { base: "J", letters: "JⒿJĴɈ" }, { base: "K", letters: "KⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ" }, { base: "L", letters: "LⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ" }, { base: "LJ", letters: "LJ" }, { base: "Lj", letters: "Lj" }, { base: "M", letters: "MⓂMḾṀṂⱮƜ" }, { base: "N", letters: "NⓃNǸŃÑṄŇṆŅṊṈȠƝꞐꞤ" }, { base: "NJ", letters: "NJ" }, { base: "Nj", letters: "Nj" }, { base: "O", letters: "OⓄOÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ" }, { base: "OI", letters: "Ƣ" }, { base: "OO", letters: "Ꝏ" }, { base: "OU", letters: "Ȣ" }, { base: "P", letters: "PⓅPṔṖƤⱣꝐꝒꝔ" }, { base: "Q", letters: "QⓆQꝖꝘɊ" }, { base: "R", letters: "RⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ" }, { base: "S", letters: "SⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ" }, { base: "T", letters: "TⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ" }, { base: "TZ", letters: "Ꜩ" }, { base: "U", letters: "UⓊUÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ" }, { base: "V", letters: "VⓋVṼṾƲꝞɅ" }, { base: "VY", letters: "Ꝡ" }, { base: "W", letters: "WⓌWẀẂŴẆẄẈⱲ" }, { base: "X", letters: "XⓍXẊẌ" }, { base: "Y", letters: "YⓎYỲÝŶỸȲẎŸỶỴƳɎỾ" }, { base: "Z", letters: "ZⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ" }, { base: "a", letters: "aⓐaẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ" }, { base: "aa", letters: "ꜳ" }, { base: "ae", letters: "æǽǣ" }, { base: "ao", letters: "ꜵ" }, { base: "au", letters: "ꜷ" }, { base: "av", letters: "ꜹꜻ" }, { base: "ay", letters: "ꜽ" }, { base: "b", letters: "bⓑbḃḅḇƀƃɓ" }, { base: "c", letters: "cⓒcćĉċčçḉƈȼꜿↄ" }, { base: "d", letters: "dⓓdḋďḍḑḓḏđƌɖɗꝺ" }, { base: "dz", letters: "dzdž" }, { base: "e", letters: "eⓔeèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ" }, { base: "f", letters: "fⓕfḟƒꝼ" }, { base: "g", letters: "gⓖgǵĝḡğġǧģǥɠꞡᵹꝿ" }, { base: "h", letters: "hⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ" }, { base: "hv", letters: "ƕ" }, { base: "i", letters: "iⓘiìíîĩīĭïḯỉǐȉȋịįḭɨı" }, { base: "j", letters: "jⓙjĵǰɉ" }, { base: "k", letters: "kⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ" }, { base: "l", letters: "lⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ" }, { base: "lj", letters: "lj" }, { base: "m", letters: "mⓜmḿṁṃɱɯ" }, { base: "n", letters: "nⓝnǹńñṅňṇņṋṉƞɲʼnꞑꞥ" }, { base: "nj", letters: "nj" }, { base: "o", letters: "oⓞoòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ" }, { base: "oi", letters: "ƣ" }, { base: "ou", letters: "ȣ" }, { base: "oo", letters: "ꝏ" }, { base: "p", letters: "pⓟpṕṗƥᵽꝑꝓꝕ" }, { base: "q", letters: "qⓠqɋꝗꝙ" }, { base: "r", letters: "rⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ" }, { base: "s", letters: "sⓢsßśṥŝṡšṧṣṩșşȿꞩꞅẛ" }, { base: "t", letters: "tⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ" }, { base: "tz", letters: "ꜩ" }, { base: "u", letters: "uⓤuùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ" }, { base: "v", letters: "vⓥvṽṿʋꝟʌ" }, { base: "vy", letters: "ꝡ" }, { base: "w", letters: "wⓦwẁẃŵẇẅẘẉⱳ" }, { base: "x", letters: "xⓧxẋẍ" }, { base: "y", letters: "yⓨyỳýŷỹȳẏÿỷẙỵƴɏỿ" }, { base: "z", letters: "zⓩzźẑżžẓẕƶȥɀⱬꝣ" }], tu = new RegExp("[" + Mo.map(function(e) {
|
|
1959
1959
|
return e.letters;
|
|
@@ -2007,7 +2007,7 @@ function sa() {
|
|
|
2007
2007
|
function ca() {
|
|
2008
2008
|
return "ontouchstart" in window || navigator.maxTouchPoints;
|
|
2009
2009
|
}
|
|
2010
|
-
var la = !(typeof window > "u" || !window.document || !window.document.createElement),
|
|
2010
|
+
var la = !(typeof window > "u" || !window.document || !window.document.createElement), tn = 0, Xt = { capture: !1, passive: !1 }, au = function(e) {
|
|
2011
2011
|
var t = e.target;
|
|
2012
2012
|
return t.ownerDocument.activeElement && t.ownerDocument.activeElement.blur();
|
|
2013
2013
|
}, su = process.env.NODE_ENV === "production" ? { name: "1kfdb0e", styles: "position:fixed;left:0;bottom:0;right:0;top:0" } : { name: "bp8cua-ScrollManager", styles: "position:fixed;left:0;bottom:0;right:0;top:0;label:ScrollManager;", map: "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIlNjcm9sbE1hbmFnZXIudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQW9EVSIsImZpbGUiOiJTY3JvbGxNYW5hZ2VyLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsganN4IH0gZnJvbSAnQGVtb3Rpb24vcmVhY3QnO1xuaW1wb3J0IHsgRnJhZ21lbnQsIFJlYWN0RWxlbWVudCwgUmVmQ2FsbGJhY2ssIE1vdXNlRXZlbnQgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgdXNlU2Nyb2xsQ2FwdHVyZSBmcm9tICcuL3VzZVNjcm9sbENhcHR1cmUnO1xuaW1wb3J0IHVzZVNjcm9sbExvY2sgZnJvbSAnLi91c2VTY3JvbGxMb2NrJztcblxuaW50ZXJmYWNlIFByb3BzIHtcbiAgcmVhZG9ubHkgY2hpbGRyZW46IChyZWY6IFJlZkNhbGxiYWNrPEhUTUxFbGVtZW50PikgPT4gUmVhY3RFbGVtZW50O1xuICByZWFkb25seSBsb2NrRW5hYmxlZDogYm9vbGVhbjtcbiAgcmVhZG9ubHkgY2FwdHVyZUVuYWJsZWQ6IGJvb2xlYW47XG4gIHJlYWRvbmx5IG9uQm90dG9tQXJyaXZlPzogKGV2ZW50OiBXaGVlbEV2ZW50IHwgVG91Y2hFdmVudCkgPT4gdm9pZDtcbiAgcmVhZG9ubHkgb25Cb3R0b21MZWF2ZT86IChldmVudDogV2hlZWxFdmVudCB8IFRvdWNoRXZlbnQpID0+IHZvaWQ7XG4gIHJlYWRvbmx5IG9uVG9wQXJyaXZlPzogKGV2ZW50OiBXaGVlbEV2ZW50IHwgVG91Y2hFdmVudCkgPT4gdm9pZDtcbiAgcmVhZG9ubHkgb25Ub3BMZWF2ZT86IChldmVudDogV2hlZWxFdmVudCB8IFRvdWNoRXZlbnQpID0+IHZvaWQ7XG59XG5cbmNvbnN0IGJsdXJTZWxlY3RJbnB1dCA9IChldmVudDogTW91c2VFdmVudDxIVE1MRGl2RWxlbWVudD4pID0+IHtcbiAgY29uc3QgZWxlbWVudCA9IGV2ZW50LnRhcmdldCBhcyBIVE1MRGl2RWxlbWVudDtcbiAgcmV0dXJuIChcbiAgICBlbGVtZW50Lm93bmVyRG9jdW1lbnQuYWN0aXZlRWxlbWVudCAmJlxuICAgIChlbGVtZW50Lm93bmVyRG9jdW1lbnQuYWN0aXZlRWxlbWVudCBhcyBIVE1MRWxlbWVudCkuYmx1cigpXG4gICk7XG59O1xuXG5leHBvcnQgZGVmYXVsdCBmdW5jdGlvbiBTY3JvbGxNYW5hZ2VyKHtcbiAgY2hpbGRyZW4sXG4gIGxvY2tFbmFibGVkLFxuICBjYXB0dXJlRW5hYmxlZCA9IHRydWUsXG4gIG9uQm90dG9tQXJyaXZlLFxuICBvbkJvdHRvbUxlYXZlLFxuICBvblRvcEFycml2ZSxcbiAgb25Ub3BMZWF2ZSxcbn06IFByb3BzKSB7XG4gIGNvbnN0IHNldFNjcm9sbENhcHR1cmVUYXJnZXQgPSB1c2VTY3JvbGxDYXB0dXJlKHtcbiAgICBpc0VuYWJsZWQ6IGNhcHR1cmVFbmFibGVkLFxuICAgIG9uQm90dG9tQXJyaXZlLFxuICAgIG9uQm90dG9tTGVhdmUsXG4gICAgb25Ub3BBcnJpdmUsXG4gICAgb25Ub3BMZWF2ZSxcbiAgfSk7XG4gIGNvbnN0IHNldFNjcm9sbExvY2tUYXJnZXQgPSB1c2VTY3JvbGxMb2NrKHsgaXNFbmFibGVkOiBsb2NrRW5hYmxlZCB9KTtcblxuICBjb25zdCB0YXJnZXRSZWY6IFJlZkNhbGxiYWNrPEhUTUxFbGVtZW50PiA9IChlbGVtZW50KSA9PiB7XG4gICAgc2V0U2Nyb2xsQ2FwdHVyZVRhcmdldChlbGVtZW50KTtcbiAgICBzZXRTY3JvbGxMb2NrVGFyZ2V0KGVsZW1lbnQpO1xuICB9O1xuXG4gIHJldHVybiAoXG4gICAgPEZyYWdtZW50PlxuICAgICAge2xvY2tFbmFibGVkICYmIChcbiAgICAgICAgPGRpdlxuICAgICAgICAgIG9uQ2xpY2s9e2JsdXJTZWxlY3RJbnB1dH1cbiAgICAgICAgICBjc3M9e3sgcG9zaXRpb246ICdmaXhlZCcsIGxlZnQ6IDAsIGJvdHRvbTogMCwgcmlnaHQ6IDAsIHRvcDogMCB9fVxuICAgICAgICAvPlxuICAgICAgKX1cbiAgICAgIHtjaGlsZHJlbih0YXJnZXRSZWYpfVxuICAgIDwvRnJhZ21lbnQ+XG4gICk7XG59XG4iXX0= */", toString: function() {
|
|
@@ -2015,9 +2015,9 @@ var la = !(typeof window > "u" || !window.document || !window.document.createEle
|
|
|
2015
2015
|
} };
|
|
2016
2016
|
function cu(e) {
|
|
2017
2017
|
var t = e.children, o = e.lockEnabled, n = e.captureEnabled, r = function(a) {
|
|
2018
|
-
var s = a.isEnabled, c = a.onBottomArrive, l = a.onBottomLeave, u = a.onTopArrive, g = a.onTopLeave, d = Ce(!1), b = Ce(!1), m = Ce(0),
|
|
2019
|
-
if (
|
|
2020
|
-
var
|
|
2018
|
+
var s = a.isEnabled, c = a.onBottomArrive, l = a.onBottomLeave, u = a.onTopArrive, g = a.onTopLeave, d = Ce(!1), b = Ce(!1), m = Ce(0), f = Ce(null), v = He(function(C, A) {
|
|
2019
|
+
if (f.current !== null) {
|
|
2020
|
+
var M = f.current, F = M.scrollTop, V = M.scrollHeight, Y = M.clientHeight, j = f.current, J = A > 0, N = V - Y - F, Z = !1;
|
|
2021
2021
|
N > A && d.current && (l && l(C), d.current = !1), J && b.current && (g && g(C), b.current = !1), J && A > N ? (c && !d.current && c(C), j.scrollTop = V, Z = !0, d.current = !0) : !J && -A > F && (u && !b.current && u(C), j.scrollTop = 0, Z = !0, b.current = !0), Z && function(G) {
|
|
2022
2022
|
G.cancelable && G.preventDefault(), G.stopPropagation();
|
|
2023
2023
|
}(C);
|
|
@@ -2026,50 +2026,50 @@ function cu(e) {
|
|
|
2026
2026
|
v(C, C.deltaY);
|
|
2027
2027
|
}, [v]), I = He(function(C) {
|
|
2028
2028
|
m.current = C.changedTouches[0].clientY;
|
|
2029
|
-
}, []),
|
|
2029
|
+
}, []), h = He(function(C) {
|
|
2030
2030
|
var A = m.current - C.changedTouches[0].clientY;
|
|
2031
2031
|
v(C, A);
|
|
2032
2032
|
}, [v]), y = He(function(C) {
|
|
2033
2033
|
if (C) {
|
|
2034
2034
|
var A = !!El && { passive: !1 };
|
|
2035
|
-
C.addEventListener("wheel", S, A), C.addEventListener("touchstart", I, A), C.addEventListener("touchmove",
|
|
2035
|
+
C.addEventListener("wheel", S, A), C.addEventListener("touchstart", I, A), C.addEventListener("touchmove", h, A);
|
|
2036
2036
|
}
|
|
2037
|
-
}, [
|
|
2038
|
-
C && (C.removeEventListener("wheel", S, !1), C.removeEventListener("touchstart", I, !1), C.removeEventListener("touchmove",
|
|
2039
|
-
}, [
|
|
2037
|
+
}, [h, I, S]), p = He(function(C) {
|
|
2038
|
+
C && (C.removeEventListener("wheel", S, !1), C.removeEventListener("touchstart", I, !1), C.removeEventListener("touchmove", h, !1));
|
|
2039
|
+
}, [h, I, S]);
|
|
2040
2040
|
return Pe(function() {
|
|
2041
2041
|
if (s) {
|
|
2042
|
-
var C =
|
|
2042
|
+
var C = f.current;
|
|
2043
2043
|
return y(C), function() {
|
|
2044
2044
|
p(C);
|
|
2045
2045
|
};
|
|
2046
2046
|
}
|
|
2047
2047
|
}, [s, y, p]), function(C) {
|
|
2048
|
-
|
|
2048
|
+
f.current = C;
|
|
2049
2049
|
};
|
|
2050
2050
|
}({ isEnabled: n === void 0 || n, onBottomArrive: e.onBottomArrive, onBottomLeave: e.onBottomLeave, onTopArrive: e.onTopArrive, onTopLeave: e.onTopLeave }), i = function(a) {
|
|
2051
2051
|
var s = a.isEnabled, c = a.accountForScrollbars, l = c === void 0 || c, u = Ce({}), g = Ce(null), d = He(function(m) {
|
|
2052
2052
|
if (la) {
|
|
2053
|
-
var
|
|
2053
|
+
var f = document.body, v = f && f.style;
|
|
2054
2054
|
if (l && oa.forEach(function(y) {
|
|
2055
2055
|
var p = v && v[y];
|
|
2056
2056
|
u.current[y] = p;
|
|
2057
|
-
}), l &&
|
|
2058
|
-
var S = parseInt(u.current.paddingRight, 10) || 0, I = document.body ? document.body.clientWidth : 0,
|
|
2057
|
+
}), l && tn < 1) {
|
|
2058
|
+
var S = parseInt(u.current.paddingRight, 10) || 0, I = document.body ? document.body.clientWidth : 0, h = window.innerWidth - I + S || 0;
|
|
2059
2059
|
Object.keys(ra).forEach(function(y) {
|
|
2060
2060
|
var p = ra[y];
|
|
2061
2061
|
v && (v[y] = p);
|
|
2062
|
-
}), v && (v.paddingRight = "".concat(
|
|
2062
|
+
}), v && (v.paddingRight = "".concat(h, "px"));
|
|
2063
2063
|
}
|
|
2064
|
-
|
|
2064
|
+
f && ca() && (f.addEventListener("touchmove", ia, Xt), m && (m.addEventListener("touchstart", sa, Xt), m.addEventListener("touchmove", aa, Xt))), tn += 1;
|
|
2065
2065
|
}
|
|
2066
2066
|
}, [l]), b = He(function(m) {
|
|
2067
2067
|
if (la) {
|
|
2068
|
-
var
|
|
2069
|
-
|
|
2068
|
+
var f = document.body, v = f && f.style;
|
|
2069
|
+
tn = Math.max(tn - 1, 0), l && tn < 1 && oa.forEach(function(S) {
|
|
2070
2070
|
var I = u.current[S];
|
|
2071
2071
|
v && (v[S] = I);
|
|
2072
|
-
}),
|
|
2072
|
+
}), f && ca() && (f.removeEventListener("touchmove", ia, Xt), m && (m.removeEventListener("touchstart", sa, Xt), m.removeEventListener("touchmove", aa, Xt)));
|
|
2073
2073
|
}
|
|
2074
2074
|
}, [l]);
|
|
2075
2075
|
return Pe(function() {
|
|
@@ -2286,9 +2286,9 @@ var qs = function(e) {
|
|
|
2286
2286
|
}, n.selectOption = function(s) {
|
|
2287
2287
|
var c = n.props, l = c.blurInputOnSelect, u = c.isMulti, g = c.name, d = n.state.selectValue, b = u && n.isOptionSelected(s, d), m = n.isOptionDisabled(s, d);
|
|
2288
2288
|
if (b) {
|
|
2289
|
-
var
|
|
2289
|
+
var f = n.getOptionValue(s);
|
|
2290
2290
|
n.setValue(d.filter(function(v) {
|
|
2291
|
-
return n.getOptionValue(v) !==
|
|
2291
|
+
return n.getOptionValue(v) !== f;
|
|
2292
2292
|
}), "deselect-option", s);
|
|
2293
2293
|
} else {
|
|
2294
2294
|
if (m) return void n.ariaOnChange(s, { action: "select-option", option: s, name: g });
|
|
@@ -2401,7 +2401,7 @@ var qs = function(e) {
|
|
|
2401
2401
|
}, n.onValueInputFocus = function(s) {
|
|
2402
2402
|
s.preventDefault(), s.stopPropagation(), n.focus();
|
|
2403
2403
|
}, n.onKeyDown = function(s) {
|
|
2404
|
-
var c = n.props, l = c.isMulti, u = c.backspaceRemovesValue, g = c.escapeClearsValue, d = c.inputValue, b = c.isClearable, m = c.isDisabled,
|
|
2404
|
+
var c = n.props, l = c.isMulti, u = c.backspaceRemovesValue, g = c.escapeClearsValue, d = c.inputValue, b = c.isClearable, m = c.isDisabled, f = c.menuIsOpen, v = c.onKeyDown, S = c.tabSelectsValue, I = c.openMenuOnFocus, h = n.state, y = h.focusedOption, p = h.focusedValue, C = h.selectValue;
|
|
2405
2405
|
if (!(m || typeof v == "function" && (v(s), s.defaultPrevented))) {
|
|
2406
2406
|
switch (n.blockOptionHover = !0, s.key) {
|
|
2407
2407
|
case "ArrowLeft":
|
|
@@ -2422,23 +2422,23 @@ var qs = function(e) {
|
|
|
2422
2422
|
}
|
|
2423
2423
|
break;
|
|
2424
2424
|
case "Tab":
|
|
2425
|
-
if (n.isComposing || s.shiftKey || !
|
|
2425
|
+
if (n.isComposing || s.shiftKey || !f || !S || !y || I && n.isOptionSelected(y, C)) return;
|
|
2426
2426
|
n.selectOption(y);
|
|
2427
2427
|
break;
|
|
2428
2428
|
case "Enter":
|
|
2429
2429
|
if (s.keyCode === 229) break;
|
|
2430
|
-
if (
|
|
2430
|
+
if (f) {
|
|
2431
2431
|
if (!y || n.isComposing) return;
|
|
2432
2432
|
n.selectOption(y);
|
|
2433
2433
|
break;
|
|
2434
2434
|
}
|
|
2435
2435
|
return;
|
|
2436
2436
|
case "Escape":
|
|
2437
|
-
|
|
2437
|
+
f ? (n.setState({ inputIsHiddenAfterUpdate: !1 }), n.onInputChange("", { action: "menu-close", prevInputValue: d }), n.onMenuClose()) : b && g && n.clearValue();
|
|
2438
2438
|
break;
|
|
2439
2439
|
case " ":
|
|
2440
2440
|
if (d) return;
|
|
2441
|
-
if (!
|
|
2441
|
+
if (!f) {
|
|
2442
2442
|
n.openMenu("first");
|
|
2443
2443
|
break;
|
|
2444
2444
|
}
|
|
@@ -2446,25 +2446,25 @@ var qs = function(e) {
|
|
|
2446
2446
|
n.selectOption(y);
|
|
2447
2447
|
break;
|
|
2448
2448
|
case "ArrowUp":
|
|
2449
|
-
|
|
2449
|
+
f ? n.focusOption("up") : n.openMenu("last");
|
|
2450
2450
|
break;
|
|
2451
2451
|
case "ArrowDown":
|
|
2452
|
-
|
|
2452
|
+
f ? n.focusOption("down") : n.openMenu("first");
|
|
2453
2453
|
break;
|
|
2454
2454
|
case "PageUp":
|
|
2455
|
-
if (!
|
|
2455
|
+
if (!f) return;
|
|
2456
2456
|
n.focusOption("pageup");
|
|
2457
2457
|
break;
|
|
2458
2458
|
case "PageDown":
|
|
2459
|
-
if (!
|
|
2459
|
+
if (!f) return;
|
|
2460
2460
|
n.focusOption("pagedown");
|
|
2461
2461
|
break;
|
|
2462
2462
|
case "Home":
|
|
2463
|
-
if (!
|
|
2463
|
+
if (!f) return;
|
|
2464
2464
|
n.focusOption("first");
|
|
2465
2465
|
break;
|
|
2466
2466
|
case "End":
|
|
2467
|
-
if (!
|
|
2467
|
+
if (!f) return;
|
|
2468
2468
|
n.focusOption("last");
|
|
2469
2469
|
break;
|
|
2470
2470
|
default:
|
|
@@ -2563,14 +2563,14 @@ var qs = function(e) {
|
|
|
2563
2563
|
} }, { key: "stopListeningToTouch", value: function() {
|
|
2564
2564
|
document && document.removeEventListener && (document.removeEventListener("touchstart", this.onTouchStart), document.removeEventListener("touchmove", this.onTouchMove), document.removeEventListener("touchend", this.onTouchEnd));
|
|
2565
2565
|
} }, { key: "renderInput", value: function() {
|
|
2566
|
-
var o = this.props, n = o.isDisabled, r = o.isSearchable, i = o.inputId, a = o.inputValue, s = o.tabIndex, c = o.form, l = o.menuIsOpen, u = o.required, g = this.getComponents().Input, d = this.state, b = d.inputIsHidden, m = d.ariaSelection,
|
|
2567
|
-
return r ? x.createElement(g, P({},
|
|
2566
|
+
var o = this.props, n = o.isDisabled, r = o.isSearchable, i = o.inputId, a = o.inputValue, s = o.tabIndex, c = o.form, l = o.menuIsOpen, u = o.required, g = this.getComponents().Input, d = this.state, b = d.inputIsHidden, m = d.ariaSelection, f = this.commonProps, v = i || this.getElementId("input"), S = L(L(L({ "aria-autocomplete": "list", "aria-expanded": l, "aria-haspopup": !0, "aria-errormessage": this.props["aria-errormessage"], "aria-invalid": this.props["aria-invalid"], "aria-label": this.props["aria-label"], "aria-labelledby": this.props["aria-labelledby"], "aria-required": u, role: "combobox", "aria-activedescendant": this.state.isAppleDevice ? void 0 : this.state.focusedOptionId || "" }, l && { "aria-controls": this.getElementId("listbox") }), !r && { "aria-readonly": !0 }), this.hasValue() ? (m == null ? void 0 : m.action) === "initial-input-focus" && { "aria-describedby": this.getElementId("live-region") } : { "aria-describedby": this.getElementId("placeholder") });
|
|
2567
|
+
return r ? x.createElement(g, P({}, f, { autoCapitalize: "none", autoComplete: "off", autoCorrect: "off", id: v, innerRef: this.getInputRef, isDisabled: n, isHidden: b, onBlur: this.onInputBlur, onChange: this.handleInputChange, onFocus: this.onInputFocus, spellCheck: "false", tabIndex: s, form: c, type: "text", value: a }, S)) : x.createElement(iu, P({ id: v, innerRef: this.getInputRef, onBlur: this.onInputBlur, onChange: Qn, onFocus: this.onInputFocus, disabled: n, tabIndex: s, inputMode: "none", form: c, value: "" }, S));
|
|
2568
2568
|
} }, { key: "renderPlaceholderOrValue", value: function() {
|
|
2569
|
-
var o = this, n = this.getComponents(), r = n.MultiValue, i = n.MultiValueContainer, a = n.MultiValueLabel, s = n.MultiValueRemove, c = n.SingleValue, l = n.Placeholder, u = this.commonProps, g = this.props, d = g.controlShouldRenderValue, b = g.isDisabled, m = g.isMulti,
|
|
2570
|
-
if (!this.hasValue() || !d) return
|
|
2569
|
+
var o = this, n = this.getComponents(), r = n.MultiValue, i = n.MultiValueContainer, a = n.MultiValueLabel, s = n.MultiValueRemove, c = n.SingleValue, l = n.Placeholder, u = this.commonProps, g = this.props, d = g.controlShouldRenderValue, b = g.isDisabled, m = g.isMulti, f = g.inputValue, v = g.placeholder, S = this.state, I = S.selectValue, h = S.focusedValue, y = S.isFocused;
|
|
2570
|
+
if (!this.hasValue() || !d) return f ? null : x.createElement(l, P({}, u, { key: "placeholder", isDisabled: b, isFocused: y, innerProps: { id: this.getElementId("placeholder") } }), v);
|
|
2571
2571
|
if (m) return I.map(function(C, A) {
|
|
2572
|
-
var
|
|
2573
|
-
return x.createElement(r, P({}, u, { components: { Container: i, Label: a, Remove: s }, isFocused:
|
|
2572
|
+
var M = C === h, F = "".concat(o.getOptionLabel(C), "-").concat(o.getOptionValue(C));
|
|
2573
|
+
return x.createElement(r, P({}, u, { components: { Container: i, Label: a, Remove: s }, isFocused: M, isDisabled: b, key: F, index: A, removeProps: { onClick: function() {
|
|
2574
2574
|
return o.removeValue(C);
|
|
2575
2575
|
}, onTouchEnd: function() {
|
|
2576
2576
|
return o.removeValue(C);
|
|
@@ -2578,7 +2578,7 @@ var qs = function(e) {
|
|
|
2578
2578
|
V.preventDefault();
|
|
2579
2579
|
} }, data: C }), o.formatOptionLabel(C, "value"));
|
|
2580
2580
|
});
|
|
2581
|
-
if (
|
|
2581
|
+
if (f) return null;
|
|
2582
2582
|
var p = I[0];
|
|
2583
2583
|
return x.createElement(c, P({}, u, { data: p, isDisabled: b }), this.formatOptionLabel(p, "value"));
|
|
2584
2584
|
} }, { key: "renderClearIndicator", value: function() {
|
|
@@ -2600,7 +2600,7 @@ var qs = function(e) {
|
|
|
2600
2600
|
var n = this.commonProps, r = this.props.isDisabled, i = this.state.isFocused, a = { onMouseDown: this.onDropdownIndicatorMouseDown, onTouchEnd: this.onDropdownIndicatorTouchEnd, "aria-hidden": "true" };
|
|
2601
2601
|
return x.createElement(o, P({}, n, { innerProps: a, isDisabled: r, isFocused: i }));
|
|
2602
2602
|
} }, { key: "renderMenu", value: function() {
|
|
2603
|
-
var o = this, n = this.getComponents(), r = n.Group, i = n.GroupHeading, a = n.Menu, s = n.MenuList, c = n.MenuPortal, l = n.LoadingMessage, u = n.NoOptionsMessage, g = n.Option, d = this.commonProps, b = this.state.focusedOption, m = this.props,
|
|
2603
|
+
var o = this, n = this.getComponents(), r = n.Group, i = n.GroupHeading, a = n.Menu, s = n.MenuList, c = n.MenuPortal, l = n.LoadingMessage, u = n.NoOptionsMessage, g = n.Option, d = this.commonProps, b = this.state.focusedOption, m = this.props, f = m.captureMenuScroll, v = m.inputValue, S = m.isLoading, I = m.loadingMessage, h = m.minMenuHeight, y = m.maxMenuHeight, p = m.menuIsOpen, C = m.menuPlacement, A = m.menuPosition, M = m.menuPortalTarget, F = m.menuShouldBlockScroll, V = m.menuShouldScrollIntoView, Y = m.noOptionsMessage, j = m.onMenuScrollToTop, J = m.onMenuScrollToBottom;
|
|
2604
2604
|
if (!p) return null;
|
|
2605
2605
|
var N, Z = function(z, _) {
|
|
2606
2606
|
var se = z.type, re = z.data, ge = z.isDisabled, U = z.isSelected, ie = z.label, Me = z.value, $ = b === re, Ne = ge ? void 0 : function() {
|
|
@@ -2624,19 +2624,19 @@ var qs = function(e) {
|
|
|
2624
2624
|
if (G === null) return null;
|
|
2625
2625
|
N = x.createElement(l, d, G);
|
|
2626
2626
|
} else {
|
|
2627
|
-
var
|
|
2628
|
-
if (
|
|
2629
|
-
N = x.createElement(u, d,
|
|
2627
|
+
var B = Y({ inputValue: v });
|
|
2628
|
+
if (B === null) return null;
|
|
2629
|
+
N = x.createElement(u, d, B);
|
|
2630
2630
|
}
|
|
2631
|
-
var E = { minMenuHeight:
|
|
2631
|
+
var E = { minMenuHeight: h, maxMenuHeight: y, menuPlacement: C, menuPosition: A, menuShouldScrollIntoView: V }, k = x.createElement(Ol, P({}, d, E), function(z) {
|
|
2632
2632
|
var _ = z.ref, se = z.placerProps, re = se.placement, ge = se.maxHeight;
|
|
2633
|
-
return x.createElement(a, P({}, d, E, { innerRef: _, innerProps: { onMouseDown: o.onMenuMouseDown, onMouseMove: o.onMenuMouseMove }, isLoading: S, placement: re }), x.createElement(cu, { captureEnabled:
|
|
2633
|
+
return x.createElement(a, P({}, d, E, { innerRef: _, innerProps: { onMouseDown: o.onMenuMouseDown, onMouseMove: o.onMenuMouseMove }, isLoading: S, placement: re }), x.createElement(cu, { captureEnabled: f, onTopArrive: j, onBottomArrive: J, lockEnabled: F }, function(U) {
|
|
2634
2634
|
return x.createElement(s, P({}, d, { innerRef: function(ie) {
|
|
2635
2635
|
o.getMenuListRef(ie), U(ie);
|
|
2636
2636
|
}, innerProps: { role: "listbox", "aria-multiselectable": d.isMulti, id: o.getElementId("listbox") }, isLoading: S, maxHeight: ge, focusedOption: b }), N);
|
|
2637
2637
|
}));
|
|
2638
2638
|
});
|
|
2639
|
-
return
|
|
2639
|
+
return M || A === "fixed" ? x.createElement(c, P({}, d, { appendTo: M, controlElement: this.controlRef, menuPlacement: C, menuPosition: A }), k) : k;
|
|
2640
2640
|
} }, { key: "renderFormField", value: function() {
|
|
2641
2641
|
var o = this, n = this.props, r = n.delimiter, i = n.isDisabled, a = n.isMulti, s = n.name, c = n.required, l = this.state.selectValue;
|
|
2642
2642
|
if (c && !this.hasValue() && !i) return x.createElement(uu, { name: s, onFocus: this.onValueInputFocus });
|
|
@@ -2663,11 +2663,11 @@ var qs = function(e) {
|
|
|
2663
2663
|
var o = this.getComponents(), n = o.Control, r = o.IndicatorsContainer, i = o.SelectContainer, a = o.ValueContainer, s = this.props, c = s.className, l = s.id, u = s.isDisabled, g = s.menuIsOpen, d = this.state.isFocused, b = this.commonProps = this.getCommonProps();
|
|
2664
2664
|
return x.createElement(i, P({}, b, { className: c, innerProps: { id: l, onKeyDown: this.onKeyDown }, isDisabled: u, isFocused: d }), this.renderLiveRegion(), x.createElement(n, P({}, b, { innerRef: this.getControlRef, innerProps: { onMouseDown: this.onControlMouseDown, onTouchEnd: this.onControlTouchEnd }, isDisabled: u, isFocused: d, menuIsOpen: g }), x.createElement(a, P({}, b, { isDisabled: u }), this.renderPlaceholderOrValue(), this.renderInput()), x.createElement(r, P({}, b, { isDisabled: u }), this.renderClearIndicator(), this.renderLoadingIndicator(), this.renderIndicatorSeparator(), this.renderDropdownIndicator())), this.renderMenu(), this.renderFormField());
|
|
2665
2665
|
} }], [{ key: "getDerivedStateFromProps", value: function(o, n) {
|
|
2666
|
-
var r = n.prevProps, i = n.clearFocusValueOnUpdate, a = n.inputIsHiddenAfterUpdate, s = n.ariaSelection, c = n.isFocused, l = n.prevWasFocused, u = n.instancePrefix, g = o.options, d = o.value, b = o.menuIsOpen, m = o.inputValue,
|
|
2666
|
+
var r = n.prevProps, i = n.clearFocusValueOnUpdate, a = n.inputIsHiddenAfterUpdate, s = n.ariaSelection, c = n.isFocused, l = n.prevWasFocused, u = n.instancePrefix, g = o.options, d = o.value, b = o.menuIsOpen, m = o.inputValue, f = o.isMulti, v = Yi(d), S = {};
|
|
2667
2667
|
if (r && (d !== r.value || g !== r.options || b !== r.menuIsOpen || m !== r.inputValue)) {
|
|
2668
2668
|
var I = b ? function(F, V) {
|
|
2669
2669
|
return ga(Ln(F, V));
|
|
2670
|
-
}(o, v) : [],
|
|
2670
|
+
}(o, v) : [], h = b ? pa(Ln(o, v), "".concat(u, "-option")) : [], y = i ? function(F, V) {
|
|
2671
2671
|
var Y = F.focusedValue, j = F.selectValue.indexOf(Y);
|
|
2672
2672
|
if (j > -1) {
|
|
2673
2673
|
if (V.indexOf(Y) > -1) return Y;
|
|
@@ -2678,26 +2678,26 @@ var qs = function(e) {
|
|
|
2678
2678
|
var Y = F.focusedOption;
|
|
2679
2679
|
return Y && V.indexOf(Y) > -1 ? Y : V[0];
|
|
2680
2680
|
}(n, I);
|
|
2681
|
-
S = { selectValue: v, focusedOption: p, focusedOptionId: To(
|
|
2681
|
+
S = { selectValue: v, focusedOption: p, focusedOptionId: To(h, p), focusableOptionsWithIds: h, focusedValue: y, clearFocusValueOnUpdate: !1 };
|
|
2682
2682
|
}
|
|
2683
|
-
var C = a != null && o !== r ? { inputIsHidden: a, inputIsHiddenAfterUpdate: void 0 } : {}, A = s,
|
|
2684
|
-
return c && !
|
|
2683
|
+
var C = a != null && o !== r ? { inputIsHidden: a, inputIsHiddenAfterUpdate: void 0 } : {}, A = s, M = c && l;
|
|
2684
|
+
return c && !M && (A = { value: Mn(f, v, v[0] || null), options: v, action: "initial-input-focus" }, M = !l), (s == null ? void 0 : s.action) === "initial-input-focus" && (A = null), L(L(L({}, S), C), {}, { prevProps: o, ariaSelection: A, prevWasFocused: M });
|
|
2685
2685
|
} }]), t;
|
|
2686
2686
|
}();
|
|
2687
2687
|
ec.defaultProps = gu;
|
|
2688
2688
|
var mu = us(function(e, t) {
|
|
2689
2689
|
var o = function(n) {
|
|
2690
|
-
var r = n.defaultInputValue, i = r === void 0 ? "" : r, a = n.defaultMenuIsOpen, s = a !== void 0 && a, c = n.defaultValue, l = c === void 0 ? null : c, u = n.inputValue, g = n.menuIsOpen, d = n.onChange, b = n.onInputChange, m = n.onMenuClose,
|
|
2690
|
+
var r = n.defaultInputValue, i = r === void 0 ? "" : r, a = n.defaultMenuIsOpen, s = a !== void 0 && a, c = n.defaultValue, l = c === void 0 ? null : c, u = n.inputValue, g = n.menuIsOpen, d = n.onChange, b = n.onInputChange, m = n.onMenuClose, f = n.onMenuOpen, v = n.value, S = st(n, Qc), I = fe(Ie(u !== void 0 ? u : i), 2), h = I[0], y = I[1], p = fe(Ie(g !== void 0 ? g : s), 2), C = p[0], A = p[1], M = fe(Ie(v !== void 0 ? v : l), 2), F = M[0], V = M[1], Y = He(function(E, k) {
|
|
2691
2691
|
typeof d == "function" && d(E, k), V(E);
|
|
2692
2692
|
}, [d]), j = He(function(E, k) {
|
|
2693
2693
|
var z;
|
|
2694
2694
|
typeof b == "function" && (z = b(E, k)), y(z !== void 0 ? z : E);
|
|
2695
2695
|
}, [b]), J = He(function() {
|
|
2696
|
-
typeof
|
|
2697
|
-
}, [
|
|
2696
|
+
typeof f == "function" && f(), A(!0);
|
|
2697
|
+
}, [f]), N = He(function() {
|
|
2698
2698
|
typeof m == "function" && m(), A(!1);
|
|
2699
|
-
}, [m]), Z = u !== void 0 ? u :
|
|
2700
|
-
return L(L({}, S), {}, { inputValue: Z, menuIsOpen: G, onChange: Y, onInputChange: j, onMenuClose: N, onMenuOpen: J, value:
|
|
2699
|
+
}, [m]), Z = u !== void 0 ? u : h, G = g !== void 0 ? g : C, B = v !== void 0 ? v : F;
|
|
2700
|
+
return L(L({}, S), {}, { inputValue: Z, menuIsOpen: G, onChange: Y, onInputChange: j, onMenuClose: N, onMenuOpen: J, value: B });
|
|
2701
2701
|
}(e);
|
|
2702
2702
|
return x.createElement(ec, P({ ref: t }, o));
|
|
2703
2703
|
}), tc = mu;
|
|
@@ -2725,9 +2725,9 @@ const En = { accAccessibilityMenu__overlay: "_accAccessibilityMenu__overlay_1yac
|
|
|
2725
2725
|
n = bs;
|
|
2726
2726
|
}
|
|
2727
2727
|
return w.jsx("button", { style: o, onClick: t, className: "_accValueControlButton_1pw3b_1", children: w.jsx(n, {}) });
|
|
2728
|
-
},
|
|
2728
|
+
}, Ut = ({ onIncrease: e, onToggle: t, onDescrease: o }) => w.jsxs("div", { className: "_accValueControl_p53sg_1", children: [w.jsx(Ue, { onClick: e, controlType: "increase" }), w.jsx(Ue, { onClick: t, controlType: "init" }), w.jsx(Ue, { onClick: o, controlType: "decrease" })] }), wu = ({ accState: e, onChangeAccState: t }) => {
|
|
2729
2729
|
const { adjustFontSizePercentage: o } = e;
|
|
2730
|
-
return w.jsx(be, { elementType: "div", Icon: xu, titleTranslationKey: "content.adjustFontSize", title: "Adjust Font Size", stats: `${o}%`, children: w.jsx(
|
|
2730
|
+
return w.jsx(be, { elementType: "div", Icon: xu, titleTranslationKey: "content.adjustFontSize", title: "Adjust Font Size", stats: `${o}%`, children: w.jsx(Ut, { onIncrease: () => {
|
|
2731
2731
|
t((n) => {
|
|
2732
2732
|
const { adjustFontSizePercentage: r } = n;
|
|
2733
2733
|
r < 200 && (n.adjustFontSizePercentage += 10);
|
|
@@ -2855,7 +2855,7 @@ html.acc-font-weight{
|
|
|
2855
2855
|
i.letterSpacing = a ? 0 : 1;
|
|
2856
2856
|
});
|
|
2857
2857
|
};
|
|
2858
|
-
return w.jsx(be, { Icon: Tu, titleTranslationKey: "content.letterSpacing", title: "Letter Spacing", stats: o ? `${o}px` : void 0, elementType: n ? "div" : "button", isActive: n, onToggle: n ? void 0 : r, children: n ? w.jsx(
|
|
2858
|
+
return w.jsx(be, { Icon: Tu, titleTranslationKey: "content.letterSpacing", title: "Letter Spacing", stats: o ? `${o}px` : void 0, elementType: n ? "div" : "button", isActive: n, onToggle: n ? void 0 : r, children: n ? w.jsx(Ut, { onIncrease: () => {
|
|
2859
2859
|
t((i) => {
|
|
2860
2860
|
i.letterSpacing++;
|
|
2861
2861
|
});
|
|
@@ -2871,7 +2871,7 @@ html.acc-font-weight{
|
|
|
2871
2871
|
i.wordSpacing = a ? 0 : 1;
|
|
2872
2872
|
});
|
|
2873
2873
|
};
|
|
2874
|
-
return w.jsx(be, { Icon: zu, titleTranslationKey: "content.wordsSpacing", title: "Word Spacing", stats: o ? `${o}px` : void 0, elementType: n ? "div" : "button", isActive: n, onToggle: n ? void 0 : r, children: n ? w.jsx(
|
|
2874
|
+
return w.jsx(be, { Icon: zu, titleTranslationKey: "content.wordsSpacing", title: "Word Spacing", stats: o ? `${o}px` : void 0, elementType: n ? "div" : "button", isActive: n, onToggle: n ? void 0 : r, children: n ? w.jsx(Ut, { onIncrease: () => {
|
|
2875
2875
|
t((i) => {
|
|
2876
2876
|
i.wordSpacing++;
|
|
2877
2877
|
});
|
|
@@ -2969,7 +2969,7 @@ function _u(e, t) {
|
|
|
2969
2969
|
function oc(e, t, o) {
|
|
2970
2970
|
t || Br[o] || (e(!1, o), Br[o] = !0);
|
|
2971
2971
|
}
|
|
2972
|
-
function
|
|
2972
|
+
function Dt(e, t) {
|
|
2973
2973
|
oc(Yu, e, t);
|
|
2974
2974
|
}
|
|
2975
2975
|
function Mr(e, t, o) {
|
|
@@ -2992,28 +2992,28 @@ function Yr(e, t, o, n) {
|
|
|
2992
2992
|
}
|
|
2993
2993
|
return i;
|
|
2994
2994
|
}
|
|
2995
|
-
function
|
|
2995
|
+
function Wt(e, t) {
|
|
2996
2996
|
return Array.isArray(e) ? e[t] : e;
|
|
2997
2997
|
}
|
|
2998
|
-
|
|
2998
|
+
Dt.preMessage = function(e) {
|
|
2999
2999
|
Dr.push(e);
|
|
3000
|
-
},
|
|
3000
|
+
}, Dt.resetWarned = function() {
|
|
3001
3001
|
Br = {};
|
|
3002
|
-
},
|
|
3002
|
+
}, Dt.noteOnce = function(e, t) {
|
|
3003
3003
|
oc(_u, e, t);
|
|
3004
3004
|
};
|
|
3005
3005
|
var Rt = x.createContext({ min: 0, max: 0, direction: "ltr", step: 1, includedStart: 0, includedEnd: 0, tabIndex: 0, keyboard: !0, styles: {}, classNames: {} }), $u = ["prefixCls", "value", "valueIndex", "onStartMove", "style", "render", "dragging", "onOffsetChange", "onChangeComplete", "onFocus", "onMouseEnter"], Lr = x.forwardRef(function(e, t) {
|
|
3006
|
-
var o, n = e.prefixCls, r = e.value, i = e.valueIndex, a = e.onStartMove, s = e.style, c = e.render, l = e.dragging, u = e.onOffsetChange, g = e.onChangeComplete, d = e.onFocus, b = e.onMouseEnter, m = st(e, $u),
|
|
3007
|
-
|
|
3006
|
+
var o, n = e.prefixCls, r = e.value, i = e.valueIndex, a = e.onStartMove, s = e.style, c = e.render, l = e.dragging, u = e.onOffsetChange, g = e.onChangeComplete, d = e.onFocus, b = e.onMouseEnter, m = st(e, $u), f = x.useContext(Rt), v = f.min, S = f.max, I = f.direction, h = f.disabled, y = f.keyboard, p = f.range, C = f.tabIndex, A = f.ariaLabelForHandle, M = f.ariaLabelledByForHandle, F = f.ariaValueTextFormatterForHandle, V = f.styles, Y = f.classNames, j = "".concat(n, "-handle"), J = function(B) {
|
|
3007
|
+
h || a(B, i);
|
|
3008
3008
|
}, N = Yr(I, r, v, S), Z = {};
|
|
3009
|
-
i !== null && (Z = { tabIndex:
|
|
3010
|
-
d == null || d(
|
|
3011
|
-
}, onMouseEnter: function(
|
|
3012
|
-
b(
|
|
3013
|
-
}, onKeyDown: function(
|
|
3014
|
-
if (!
|
|
3009
|
+
i !== null && (Z = { tabIndex: h ? null : Wt(C, i), role: "slider", "aria-valuemin": v, "aria-valuemax": S, "aria-valuenow": r, "aria-disabled": h, "aria-label": Wt(A, i), "aria-labelledby": Wt(M, i), "aria-valuetext": (o = Wt(F, i)) === null || o === void 0 ? void 0 : o(r), "aria-orientation": I === "ltr" || I === "rtl" ? "horizontal" : "vertical", onMouseDown: J, onTouchStart: J, onFocus: function(B) {
|
|
3010
|
+
d == null || d(B, i);
|
|
3011
|
+
}, onMouseEnter: function(B) {
|
|
3012
|
+
b(B, i);
|
|
3013
|
+
}, onKeyDown: function(B) {
|
|
3014
|
+
if (!h && y) {
|
|
3015
3015
|
var E = null;
|
|
3016
|
-
switch (
|
|
3016
|
+
switch (B.which || B.keyCode) {
|
|
3017
3017
|
case 37:
|
|
3018
3018
|
E = I === "ltr" || I === "btt" ? -1 : 1;
|
|
3019
3019
|
break;
|
|
@@ -3038,10 +3038,10 @@ var Rt = x.createContext({ min: 0, max: 0, direction: "ltr", step: 1, includedSt
|
|
|
3038
3038
|
case 34:
|
|
3039
3039
|
E = -2;
|
|
3040
3040
|
}
|
|
3041
|
-
E !== null && (
|
|
3041
|
+
E !== null && (B.preventDefault(), u(E, i));
|
|
3042
3042
|
}
|
|
3043
|
-
}, onKeyUp: function(
|
|
3044
|
-
switch (
|
|
3043
|
+
}, onKeyUp: function(B) {
|
|
3044
|
+
switch (B.which || B.keyCode) {
|
|
3045
3045
|
case 37:
|
|
3046
3046
|
case 39:
|
|
3047
3047
|
case 38:
|
|
@@ -3065,22 +3065,22 @@ var Uu = ["prefixCls", "style", "onStartMove", "onOffsetChange", "values", "hand
|
|
|
3065
3065
|
(I = d.current[S]) === null || I === void 0 || I.focus();
|
|
3066
3066
|
} };
|
|
3067
3067
|
});
|
|
3068
|
-
var b = fe(x.useState(-1), 2), m = b[0],
|
|
3069
|
-
|
|
3068
|
+
var b = fe(x.useState(-1), 2), m = b[0], f = b[1], v = L({ prefixCls: o, onStartMove: r, onOffsetChange: i, render: s, onFocus: function(S, I) {
|
|
3069
|
+
f(I), u == null || u(S);
|
|
3070
3070
|
}, onMouseEnter: function(S, I) {
|
|
3071
|
-
|
|
3071
|
+
f(I);
|
|
3072
3072
|
} }, g);
|
|
3073
3073
|
return x.createElement(x.Fragment, null, a.map(function(S, I) {
|
|
3074
|
-
return x.createElement(Lr, P({ ref: function(
|
|
3075
|
-
|
|
3076
|
-
}, dragging: l === I, style:
|
|
3074
|
+
return x.createElement(Lr, P({ ref: function(h) {
|
|
3075
|
+
h ? d.current[I] = h : delete d.current[I];
|
|
3076
|
+
}, dragging: l === I, style: Wt(n, I), key: I, value: S, valueIndex: I }, v));
|
|
3077
3077
|
}), c && x.createElement(Lr, P({ key: "a11y" }, v, { value: a[m], valueIndex: null, dragging: l !== -1, render: c, style: { pointerEvents: "none" }, tabIndex: null, "aria-hidden": !0 })));
|
|
3078
3078
|
});
|
|
3079
3079
|
process.env.NODE_ENV !== "production" && (rc.displayName = "Handles");
|
|
3080
3080
|
var Ca, xa, Qu = function(e) {
|
|
3081
3081
|
var t = e.prefixCls, o = e.style, n = e.children, r = e.value, i = e.onClick, a = x.useContext(Rt), s = a.min, c = a.max, l = a.direction, u = a.includedStart, g = a.includedEnd, d = a.included, b = "".concat(t, "-text"), m = Yr(l, r, s, c);
|
|
3082
|
-
return x.createElement("span", { className: yt(b, je({}, "".concat(b, "-active"), d && u <= r && r <= g)), style: L(L({}, m), o), onMouseDown: function(
|
|
3083
|
-
|
|
3082
|
+
return x.createElement("span", { className: yt(b, je({}, "".concat(b, "-active"), d && u <= r && r <= g)), style: L(L({}, m), o), onMouseDown: function(f) {
|
|
3083
|
+
f.stopPropagation();
|
|
3084
3084
|
}, onClick: function() {
|
|
3085
3085
|
i(r);
|
|
3086
3086
|
} }, n);
|
|
@@ -3105,39 +3105,39 @@ var Ca, xa, Qu = function(e) {
|
|
|
3105
3105
|
return x.createElement(qu, { prefixCls: t, key: g, value: g, style: r, activeStyle: i });
|
|
3106
3106
|
}));
|
|
3107
3107
|
}, Sa = function(e) {
|
|
3108
|
-
var t = e.prefixCls, o = e.style, n = e.start, r = e.end, i = e.index, a = e.onStartMove, s = e.replaceCls, c = x.useContext(Rt), l = c.direction, u = c.min, g = c.max, d = c.disabled, b = c.range, m = c.classNames,
|
|
3108
|
+
var t = e.prefixCls, o = e.style, n = e.start, r = e.end, i = e.index, a = e.onStartMove, s = e.replaceCls, c = x.useContext(Rt), l = c.direction, u = c.min, g = c.max, d = c.disabled, b = c.range, m = c.classNames, f = "".concat(t, "-track"), v = Mr(n, u, g), S = Mr(r, u, g), I = function(p) {
|
|
3109
3109
|
!d && a && a(p, -1);
|
|
3110
|
-
},
|
|
3110
|
+
}, h = {};
|
|
3111
3111
|
switch (l) {
|
|
3112
3112
|
case "rtl":
|
|
3113
|
-
|
|
3113
|
+
h.right = "".concat(100 * v, "%"), h.width = "".concat(100 * S - 100 * v, "%");
|
|
3114
3114
|
break;
|
|
3115
3115
|
case "btt":
|
|
3116
|
-
|
|
3116
|
+
h.bottom = "".concat(100 * v, "%"), h.height = "".concat(100 * S - 100 * v, "%");
|
|
3117
3117
|
break;
|
|
3118
3118
|
case "ttb":
|
|
3119
|
-
|
|
3119
|
+
h.top = "".concat(100 * v, "%"), h.height = "".concat(100 * S - 100 * v, "%");
|
|
3120
3120
|
break;
|
|
3121
3121
|
default:
|
|
3122
|
-
|
|
3122
|
+
h.left = "".concat(100 * v, "%"), h.width = "".concat(100 * S - 100 * v, "%");
|
|
3123
3123
|
}
|
|
3124
|
-
var y = s || yt(
|
|
3125
|
-
return x.createElement("div", { className: y, style: L(L({},
|
|
3124
|
+
var y = s || yt(f, je(je({}, "".concat(f, "-").concat(i + 1), i !== null && b), "".concat(t, "-track-draggable"), a), m.track);
|
|
3125
|
+
return x.createElement("div", { className: y, style: L(L({}, h), o), onMouseDown: I, onTouchStart: I });
|
|
3126
3126
|
}, td = function(e) {
|
|
3127
3127
|
var t = e.prefixCls, o = e.style, n = e.values, r = e.startPoint, i = e.onStartMove, a = x.useContext(Rt), s = a.included, c = a.range, l = a.min, u = a.styles, g = a.classNames, d = x.useMemo(function() {
|
|
3128
3128
|
if (!c) {
|
|
3129
3129
|
if (n.length === 0) return [];
|
|
3130
|
-
var m = r ?? l,
|
|
3131
|
-
return [{ start: Math.min(m,
|
|
3130
|
+
var m = r ?? l, f = n[0];
|
|
3131
|
+
return [{ start: Math.min(m, f), end: Math.max(m, f) }];
|
|
3132
3132
|
}
|
|
3133
3133
|
for (var v = [], S = 0; S < n.length - 1; S += 1) v.push({ start: n[S], end: n[S + 1] });
|
|
3134
3134
|
return v;
|
|
3135
3135
|
}, [n, c, r, l]);
|
|
3136
3136
|
if (!s) return null;
|
|
3137
3137
|
var b = g.tracks || u.tracks ? x.createElement(Sa, { index: null, prefixCls: t, start: d[0].start, end: d[d.length - 1].end, replaceCls: yt(g.tracks, "".concat(t, "-tracks")), style: u.tracks }) : null;
|
|
3138
|
-
return x.createElement(x.Fragment, null, b, d.map(function(m,
|
|
3138
|
+
return x.createElement(x.Fragment, null, b, d.map(function(m, f) {
|
|
3139
3139
|
var v = m.start, S = m.end;
|
|
3140
|
-
return x.createElement(Sa, { index:
|
|
3140
|
+
return x.createElement(Sa, { index: f, prefixCls: t, style: L(L({}, Wt(o, f)), u.track), start: v, end: S, key: f, onStartMove: i });
|
|
3141
3141
|
}));
|
|
3142
3142
|
}, te = {}, oe = {};
|
|
3143
3143
|
function Aa(e) {
|
|
@@ -3148,7 +3148,7 @@ process.env.NODE_ENV === "production" ? function() {
|
|
|
3148
3148
|
if (Ca) return te;
|
|
3149
3149
|
Ca = 1;
|
|
3150
3150
|
var e, t = Symbol.for("react.element"), o = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), r = Symbol.for("react.strict_mode"), i = Symbol.for("react.profiler"), a = Symbol.for("react.provider"), s = Symbol.for("react.context"), c = Symbol.for("react.server_context"), l = Symbol.for("react.forward_ref"), u = Symbol.for("react.suspense"), g = Symbol.for("react.suspense_list"), d = Symbol.for("react.memo"), b = Symbol.for("react.lazy"), m = Symbol.for("react.offscreen");
|
|
3151
|
-
function
|
|
3151
|
+
function f(v) {
|
|
3152
3152
|
if (typeof v == "object" && v !== null) {
|
|
3153
3153
|
var S = v.$$typeof;
|
|
3154
3154
|
switch (S) {
|
|
@@ -3183,35 +3183,35 @@ process.env.NODE_ENV === "production" ? function() {
|
|
|
3183
3183
|
}, te.isConcurrentMode = function() {
|
|
3184
3184
|
return !1;
|
|
3185
3185
|
}, te.isContextConsumer = function(v) {
|
|
3186
|
-
return
|
|
3186
|
+
return f(v) === s;
|
|
3187
3187
|
}, te.isContextProvider = function(v) {
|
|
3188
|
-
return
|
|
3188
|
+
return f(v) === a;
|
|
3189
3189
|
}, te.isElement = function(v) {
|
|
3190
3190
|
return typeof v == "object" && v !== null && v.$$typeof === t;
|
|
3191
3191
|
}, te.isForwardRef = function(v) {
|
|
3192
|
-
return
|
|
3192
|
+
return f(v) === l;
|
|
3193
3193
|
}, te.isFragment = function(v) {
|
|
3194
|
-
return
|
|
3194
|
+
return f(v) === n;
|
|
3195
3195
|
}, te.isLazy = function(v) {
|
|
3196
|
-
return
|
|
3196
|
+
return f(v) === b;
|
|
3197
3197
|
}, te.isMemo = function(v) {
|
|
3198
|
-
return
|
|
3198
|
+
return f(v) === d;
|
|
3199
3199
|
}, te.isPortal = function(v) {
|
|
3200
|
-
return
|
|
3200
|
+
return f(v) === o;
|
|
3201
3201
|
}, te.isProfiler = function(v) {
|
|
3202
|
-
return
|
|
3202
|
+
return f(v) === i;
|
|
3203
3203
|
}, te.isStrictMode = function(v) {
|
|
3204
|
-
return
|
|
3204
|
+
return f(v) === r;
|
|
3205
3205
|
}, te.isSuspense = function(v) {
|
|
3206
|
-
return
|
|
3206
|
+
return f(v) === u;
|
|
3207
3207
|
}, te.isSuspenseList = function(v) {
|
|
3208
|
-
return
|
|
3208
|
+
return f(v) === g;
|
|
3209
3209
|
}, te.isValidElementType = function(v) {
|
|
3210
3210
|
return typeof v == "string" || typeof v == "function" || v === n || v === i || v === r || v === u || v === g || v === m || typeof v == "object" && v !== null && (v.$$typeof === b || v.$$typeof === d || v.$$typeof === a || v.$$typeof === s || v.$$typeof === l || v.$$typeof === e || v.getModuleId !== void 0);
|
|
3211
|
-
}, te.typeOf =
|
|
3211
|
+
}, te.typeOf = f;
|
|
3212
3212
|
}() : xa || (xa = 1, process.env.NODE_ENV !== "production" && function() {
|
|
3213
3213
|
var e, t = Symbol.for("react.element"), o = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), r = Symbol.for("react.strict_mode"), i = Symbol.for("react.profiler"), a = Symbol.for("react.provider"), s = Symbol.for("react.context"), c = Symbol.for("react.server_context"), l = Symbol.for("react.forward_ref"), u = Symbol.for("react.suspense"), g = Symbol.for("react.suspense_list"), d = Symbol.for("react.memo"), b = Symbol.for("react.lazy"), m = Symbol.for("react.offscreen");
|
|
3214
|
-
function
|
|
3214
|
+
function f(N) {
|
|
3215
3215
|
if (typeof N == "object" && N !== null) {
|
|
3216
3216
|
var Z = N.$$typeof;
|
|
3217
3217
|
switch (Z) {
|
|
@@ -3225,15 +3225,15 @@ process.env.NODE_ENV === "production" ? function() {
|
|
|
3225
3225
|
case g:
|
|
3226
3226
|
return G;
|
|
3227
3227
|
default:
|
|
3228
|
-
var
|
|
3229
|
-
switch (
|
|
3228
|
+
var B = G && G.$$typeof;
|
|
3229
|
+
switch (B) {
|
|
3230
3230
|
case c:
|
|
3231
3231
|
case s:
|
|
3232
3232
|
case l:
|
|
3233
3233
|
case b:
|
|
3234
3234
|
case d:
|
|
3235
3235
|
case a:
|
|
3236
|
-
return
|
|
3236
|
+
return B;
|
|
3237
3237
|
default:
|
|
3238
3238
|
return Z;
|
|
3239
3239
|
}
|
|
@@ -3244,41 +3244,41 @@ process.env.NODE_ENV === "production" ? function() {
|
|
|
3244
3244
|
}
|
|
3245
3245
|
}
|
|
3246
3246
|
e = Symbol.for("react.module.reference");
|
|
3247
|
-
var v = s, S = a, I = t,
|
|
3248
|
-
oe.ContextConsumer = v, oe.ContextProvider = S, oe.Element = I, oe.ForwardRef =
|
|
3247
|
+
var v = s, S = a, I = t, h = l, y = n, p = b, C = d, A = o, M = i, F = r, V = u, Y = g, j = !1, J = !1;
|
|
3248
|
+
oe.ContextConsumer = v, oe.ContextProvider = S, oe.Element = I, oe.ForwardRef = h, oe.Fragment = y, oe.Lazy = p, oe.Memo = C, oe.Portal = A, oe.Profiler = M, oe.StrictMode = F, oe.Suspense = V, oe.SuspenseList = Y, oe.isAsyncMode = function(N) {
|
|
3249
3249
|
return j || (j = !0), !1;
|
|
3250
3250
|
}, oe.isConcurrentMode = function(N) {
|
|
3251
3251
|
return J || (J = !0), !1;
|
|
3252
3252
|
}, oe.isContextConsumer = function(N) {
|
|
3253
|
-
return
|
|
3253
|
+
return f(N) === s;
|
|
3254
3254
|
}, oe.isContextProvider = function(N) {
|
|
3255
|
-
return
|
|
3255
|
+
return f(N) === a;
|
|
3256
3256
|
}, oe.isElement = function(N) {
|
|
3257
3257
|
return typeof N == "object" && N !== null && N.$$typeof === t;
|
|
3258
3258
|
}, oe.isForwardRef = function(N) {
|
|
3259
|
-
return
|
|
3259
|
+
return f(N) === l;
|
|
3260
3260
|
}, oe.isFragment = function(N) {
|
|
3261
|
-
return
|
|
3261
|
+
return f(N) === n;
|
|
3262
3262
|
}, oe.isLazy = function(N) {
|
|
3263
|
-
return
|
|
3263
|
+
return f(N) === b;
|
|
3264
3264
|
}, oe.isMemo = function(N) {
|
|
3265
|
-
return
|
|
3265
|
+
return f(N) === d;
|
|
3266
3266
|
}, oe.isPortal = function(N) {
|
|
3267
|
-
return
|
|
3267
|
+
return f(N) === o;
|
|
3268
3268
|
}, oe.isProfiler = function(N) {
|
|
3269
|
-
return
|
|
3269
|
+
return f(N) === i;
|
|
3270
3270
|
}, oe.isStrictMode = function(N) {
|
|
3271
|
-
return
|
|
3271
|
+
return f(N) === r;
|
|
3272
3272
|
}, oe.isSuspense = function(N) {
|
|
3273
|
-
return
|
|
3273
|
+
return f(N) === u;
|
|
3274
3274
|
}, oe.isSuspenseList = function(N) {
|
|
3275
|
-
return
|
|
3275
|
+
return f(N) === g;
|
|
3276
3276
|
}, oe.isValidElementType = function(N) {
|
|
3277
3277
|
return typeof N == "string" || typeof N == "function" || N === n || N === i || N === r || N === u || N === g || N === m || typeof N == "object" && N !== null && (N.$$typeof === b || N.$$typeof === d || N.$$typeof === a || N.$$typeof === s || N.$$typeof === l || N.$$typeof === e || N.getModuleId !== void 0);
|
|
3278
|
-
}, oe.typeOf =
|
|
3278
|
+
}, oe.typeOf = f;
|
|
3279
3279
|
}()), Number(Ec.split(".")[0]);
|
|
3280
3280
|
var ic = x.forwardRef(function(e, t) {
|
|
3281
|
-
var o = e.prefixCls, n = o === void 0 ? "rc-slider" : o, r = e.className, i = e.style, a = e.classNames, s = e.styles, c = e.disabled, l = c !== void 0 && c, u = e.keyboard, g = u === void 0 || u, d = e.autoFocus, b = e.onFocus, m = e.onBlur,
|
|
3281
|
+
var o = e.prefixCls, n = o === void 0 ? "rc-slider" : o, r = e.className, i = e.style, a = e.classNames, s = e.styles, c = e.disabled, l = c !== void 0 && c, u = e.keyboard, g = u === void 0 || u, d = e.autoFocus, b = e.onFocus, m = e.onBlur, f = e.min, v = f === void 0 ? 0 : f, S = e.max, I = S === void 0 ? 100 : S, h = e.step, y = h === void 0 ? 1 : h, p = e.value, C = e.defaultValue, A = e.range, M = e.count, F = e.onChange, V = e.onBeforeChange, Y = e.onAfterChange, j = e.onChangeComplete, J = e.allowCross, N = J === void 0 || J, Z = e.pushable, G = Z !== void 0 && Z, B = e.draggableTrack, E = e.reverse, k = e.vertical, z = e.included, _ = z === void 0 || z, se = e.startPoint, re = e.trackStyle, ge = e.handleStyle, U = e.railStyle, ie = e.dotStyle, Me = e.activeDotStyle, $ = e.marks, Ne = e.dots, De = e.handleRender, Ye = e.activeHandleRender, Ke = e.tabIndex, nt = Ke === void 0 ? 0 : Ke, ct = e.ariaLabelForHandle, lt = e.ariaLabelledByForHandle, _e = e.ariaValueTextFormatterForHandle, ot = x.useRef(null), rt = x.useRef(null), It = x.useMemo(function() {
|
|
3282
3282
|
return k ? E ? "ttb" : "btt" : E ? "rtl" : "ltr";
|
|
3283
3283
|
}, [E, k]), qe = x.useMemo(function() {
|
|
3284
3284
|
return isFinite(v) ? v : 0;
|
|
@@ -3303,67 +3303,67 @@ var ic = x.forwardRef(function(e, t) {
|
|
|
3303
3303
|
return Math.max(R, Math.min(X, le));
|
|
3304
3304
|
}, [R, X]), ce = x.useCallback(function(le) {
|
|
3305
3305
|
if (O !== null) {
|
|
3306
|
-
var
|
|
3306
|
+
var Ae = R + Math.round((pe(le) - R) / O) * O, W = function(ue) {
|
|
3307
3307
|
return (String(ue).split(".")[1] || "").length;
|
|
3308
|
-
}, Ve = Math.max(W(O), W(X), W(R)), T = Number(
|
|
3308
|
+
}, Ve = Math.max(W(O), W(X), W(R)), T = Number(Ae.toFixed(Ve));
|
|
3309
3309
|
return R <= T && T <= X ? T : null;
|
|
3310
3310
|
}
|
|
3311
3311
|
return null;
|
|
3312
3312
|
}, [O, R, X, pe]), xe = x.useCallback(function(le) {
|
|
3313
|
-
var
|
|
3313
|
+
var Ae = pe(le), W = de.map(function(ue) {
|
|
3314
3314
|
return ue.value;
|
|
3315
3315
|
});
|
|
3316
3316
|
O !== null && W.push(ce(le)), W.push(R, X);
|
|
3317
3317
|
var Ve = W[0], T = X - R;
|
|
3318
3318
|
return W.forEach(function(ue) {
|
|
3319
|
-
var Fe = Math.abs(
|
|
3319
|
+
var Fe = Math.abs(Ae - ue);
|
|
3320
3320
|
Fe <= T && (Ve = ue, T = Fe);
|
|
3321
3321
|
}), Ve;
|
|
3322
|
-
}, [R, X, de, O, pe, ce]), Le = function le(
|
|
3322
|
+
}, [R, X, de, O, pe, ce]), Le = function le(Ae, W, Ve) {
|
|
3323
3323
|
var T = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : "unit";
|
|
3324
3324
|
if (typeof W == "number") {
|
|
3325
|
-
var ue, Fe =
|
|
3325
|
+
var ue, Fe = Ae[Ve], it = Fe + W, we = [];
|
|
3326
3326
|
de.forEach(function(Oe) {
|
|
3327
|
-
|
|
3328
|
-
}),
|
|
3327
|
+
we.push(Oe.value);
|
|
3328
|
+
}), we.push(R, X), we.push(ce(Fe));
|
|
3329
3329
|
var dt = W > 0 ? 1 : -1;
|
|
3330
|
-
T === "unit" ?
|
|
3330
|
+
T === "unit" ? we.push(ce(Fe + dt * O)) : we.push(ce(it)), we = we.filter(function(Oe) {
|
|
3331
3331
|
return Oe !== null;
|
|
3332
3332
|
}).filter(function(Oe) {
|
|
3333
3333
|
return W < 0 ? Oe <= Fe : Oe >= Fe;
|
|
3334
|
-
}), T === "unit" && (
|
|
3334
|
+
}), T === "unit" && (we = we.filter(function(Oe) {
|
|
3335
3335
|
return Oe !== Fe;
|
|
3336
3336
|
}));
|
|
3337
3337
|
var gt = T === "unit" ? Fe : it;
|
|
3338
|
-
ue =
|
|
3338
|
+
ue = we[0];
|
|
3339
3339
|
var tt = Math.abs(ue - gt);
|
|
3340
|
-
if (
|
|
3340
|
+
if (we.forEach(function(Oe) {
|
|
3341
3341
|
var he = Math.abs(Oe - gt);
|
|
3342
3342
|
he < tt && (ue = Oe, tt = he);
|
|
3343
3343
|
}), ue === void 0) return W < 0 ? R : X;
|
|
3344
3344
|
if (T === "dist") return ue;
|
|
3345
3345
|
if (Math.abs(W) > 1) {
|
|
3346
|
-
var kt = at(
|
|
3346
|
+
var kt = at(Ae);
|
|
3347
3347
|
return kt[Ve] = ue, le(kt, W - dt, Ve, T);
|
|
3348
3348
|
}
|
|
3349
3349
|
return ue;
|
|
3350
3350
|
}
|
|
3351
3351
|
return W === "min" ? R : W === "max" ? X : void 0;
|
|
3352
|
-
}, Ee = function(le,
|
|
3353
|
-
var Ve = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : "unit", T = le[W], ue = Le(le,
|
|
3352
|
+
}, Ee = function(le, Ae, W) {
|
|
3353
|
+
var Ve = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : "unit", T = le[W], ue = Le(le, Ae, W, Ve);
|
|
3354
3354
|
return { value: ue, changed: ue !== T };
|
|
3355
3355
|
}, et = function(le) {
|
|
3356
3356
|
return me === null && le === 0 || typeof me == "number" && le < me;
|
|
3357
3357
|
};
|
|
3358
|
-
return [xe, function(le,
|
|
3359
|
-
var Ve = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : "unit", T = le.map(xe), ue = T[W], Fe = Le(T,
|
|
3358
|
+
return [xe, function(le, Ae, W) {
|
|
3359
|
+
var Ve = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : "unit", T = le.map(xe), ue = T[W], Fe = Le(T, Ae, W, Ve);
|
|
3360
3360
|
if (T[W] = Fe, ae === !1) {
|
|
3361
3361
|
var it = me || 0;
|
|
3362
3362
|
W > 0 && T[W - 1] !== ue && (T[W] = Math.max(T[W], T[W - 1] + it)), W < T.length - 1 && T[W + 1] !== ue && (T[W] = Math.min(T[W], T[W + 1] - it));
|
|
3363
3363
|
} else if (typeof me == "number" || me === null) {
|
|
3364
|
-
for (var
|
|
3365
|
-
var gt = Ee(T, 1,
|
|
3366
|
-
T[
|
|
3364
|
+
for (var we = W + 1; we < T.length; we += 1) for (var dt = !0; et(T[we] - T[we - 1]) && dt; ) {
|
|
3365
|
+
var gt = Ee(T, 1, we);
|
|
3366
|
+
T[we] = gt.value, dt = gt.changed;
|
|
3367
3367
|
}
|
|
3368
3368
|
for (var tt = W; tt > 0; tt -= 1) for (var kt = !0; et(T[tt] - T[tt - 1]) && kt; ) {
|
|
3369
3369
|
var Oe = Ee(T, -1, tt - 1);
|
|
@@ -3383,7 +3383,7 @@ var ic = x.forwardRef(function(e, t) {
|
|
|
3383
3383
|
}(qe, Tt, Gt, vn, N, Cc), $r = fe(xc, 2), yn = $r[0], Ur = $r[1], Sc = function(R, X) {
|
|
3384
3384
|
var O = X || {}, de = O.defaultValue, ae = O.value, me = O.onChange, pe = O.postState, ce = fe(Ia(function() {
|
|
3385
3385
|
return Ho(ae) ? ae : Ho(de) ? typeof de == "function" ? de() : de : typeof R == "function" ? R() : R;
|
|
3386
|
-
}), 2), xe = ce[0], Le = ce[1], Ee = ae !== void 0 ? ae : xe, et = pe ? pe(Ee) : Ee, le = Xo(me),
|
|
3386
|
+
}), 2), xe = ce[0], Le = ce[1], Ee = ae !== void 0 ? ae : xe, et = pe ? pe(Ee) : Ee, le = Xo(me), Ae = fe(Ia([Ee]), 2), W = Ae[0], Ve = Ae[1];
|
|
3387
3387
|
return ya(function() {
|
|
3388
3388
|
var T = W[0];
|
|
3389
3389
|
xe !== T && le(xe, T);
|
|
@@ -3395,8 +3395,8 @@ var ic = x.forwardRef(function(e, t) {
|
|
|
3395
3395
|
}(C, { value: p }), Qr = fe(Sc, 2), Nt = Qr[0], Ac = Qr[1], ut = x.useMemo(function() {
|
|
3396
3396
|
var R = Nt == null ? [] : Array.isArray(Nt) ? Nt : [Nt], X = fe(R, 1)[0], O = Nt === null ? [] : [X === void 0 ? qe : X];
|
|
3397
3397
|
if (A) {
|
|
3398
|
-
if (O = at(R),
|
|
3399
|
-
var de =
|
|
3398
|
+
if (O = at(R), M || Nt === void 0) {
|
|
3399
|
+
var de = M >= 0 ? M + 1 : 2;
|
|
3400
3400
|
for (O = O.slice(0, de); O.length < de; ) {
|
|
3401
3401
|
var ae;
|
|
3402
3402
|
O.push((ae = O[O.length - 1]) !== null && ae !== void 0 ? ae : qe);
|
|
@@ -3409,9 +3409,9 @@ var ic = x.forwardRef(function(e, t) {
|
|
|
3409
3409
|
return O.forEach(function(me, pe) {
|
|
3410
3410
|
O[pe] = yn(me);
|
|
3411
3411
|
}), O;
|
|
3412
|
-
}, [Nt, A, qe,
|
|
3412
|
+
}, [Nt, A, qe, M, yn]), In = x.useRef(ut);
|
|
3413
3413
|
In.current = ut;
|
|
3414
|
-
var
|
|
3414
|
+
var Qt = function(R) {
|
|
3415
3415
|
return A ? R : R[0];
|
|
3416
3416
|
}, fo = function(R) {
|
|
3417
3417
|
var X = at(R).sort(function(O, de) {
|
|
@@ -3421,7 +3421,7 @@ var ic = x.forwardRef(function(e, t) {
|
|
|
3421
3421
|
var ae = arguments.length > 2 && arguments[2] !== void 0 && arguments[2], me = /* @__PURE__ */ new Set();
|
|
3422
3422
|
return function pe(ce, xe) {
|
|
3423
3423
|
var Le = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : 1, Ee = me.has(ce);
|
|
3424
|
-
if (
|
|
3424
|
+
if (Dt(!Ee, "Warning: There may be circular references"), Ee) return !1;
|
|
3425
3425
|
if (ce === xe) return !0;
|
|
3426
3426
|
if (ae && Le > 1) return !1;
|
|
3427
3427
|
me.add(ce);
|
|
@@ -3432,22 +3432,22 @@ var ic = x.forwardRef(function(e, t) {
|
|
|
3432
3432
|
return !0;
|
|
3433
3433
|
}
|
|
3434
3434
|
if (ce && xe && bt(ce) === "object" && bt(xe) === "object") {
|
|
3435
|
-
var
|
|
3436
|
-
return
|
|
3435
|
+
var Ae = Object.keys(ce);
|
|
3436
|
+
return Ae.length === Object.keys(xe).length && Ae.every(function(W) {
|
|
3437
3437
|
return pe(ce[W], xe[W], et);
|
|
3438
3438
|
});
|
|
3439
3439
|
}
|
|
3440
3440
|
return !1;
|
|
3441
3441
|
}(O, de);
|
|
3442
|
-
}(X, In.current, !0) && F(
|
|
3442
|
+
}(X, In.current, !0) && F(Qt(X)), Ac(X);
|
|
3443
3443
|
}, Kr = function() {
|
|
3444
|
-
var R =
|
|
3445
|
-
Y == null || Y(R),
|
|
3444
|
+
var R = Qt(In.current);
|
|
3445
|
+
Y == null || Y(R), Dt(!Y, "[rc-slider] `onAfterChange` is deprecated. Please use `onChangeComplete` instead."), j == null || j(R);
|
|
3446
3446
|
}, wc = function(R, X, O, de, ae, me, pe, ce, xe) {
|
|
3447
|
-
var Le = fe(x.useState(null), 2), Ee = Le[0], et = Le[1], le = fe(x.useState(-1), 2),
|
|
3447
|
+
var Le = fe(x.useState(null), 2), Ee = Le[0], et = Le[1], le = fe(x.useState(-1), 2), Ae = le[0], W = le[1], Ve = fe(x.useState(O), 2), T = Ve[0], ue = Ve[1], Fe = fe(x.useState(O), 2), it = Fe[0], we = Fe[1], dt = x.useRef(null), gt = x.useRef(null);
|
|
3448
3448
|
x.useLayoutEffect(function() {
|
|
3449
|
-
|
|
3450
|
-
}, [O,
|
|
3449
|
+
Ae === -1 && ue(O);
|
|
3450
|
+
}, [O, Ae]), x.useEffect(function() {
|
|
3451
3451
|
return function() {
|
|
3452
3452
|
document.removeEventListener("mousemove", dt.current), document.removeEventListener("mouseup", gt.current), document.removeEventListener("touchmove", dt.current), document.removeEventListener("touchend", gt.current);
|
|
3453
3453
|
};
|
|
@@ -3467,9 +3467,9 @@ var ic = x.forwardRef(function(e, t) {
|
|
|
3467
3467
|
});
|
|
3468
3468
|
tt(Mt);
|
|
3469
3469
|
} else {
|
|
3470
|
-
var
|
|
3470
|
+
var Kt = (ae - de) * We, At = at(T);
|
|
3471
3471
|
At[he] = it[he];
|
|
3472
|
-
var pt = xe(At,
|
|
3472
|
+
var pt = xe(At, Kt, he, "dist");
|
|
3473
3473
|
tt(pt.values, pt.value);
|
|
3474
3474
|
}
|
|
3475
3475
|
}), Oe = x.useMemo(function() {
|
|
@@ -3482,10 +3482,10 @@ var ic = x.forwardRef(function(e, t) {
|
|
|
3482
3482
|
return ze === We[ke];
|
|
3483
3483
|
}) ? T : O;
|
|
3484
3484
|
}, [O, T]);
|
|
3485
|
-
return [
|
|
3485
|
+
return [Ae, Ee, Oe, function(he, We, ze) {
|
|
3486
3486
|
he.stopPropagation();
|
|
3487
3487
|
var ke = ze || O, zt = ke[We];
|
|
3488
|
-
W(We), et(zt),
|
|
3488
|
+
W(We), et(zt), we(ke);
|
|
3489
3489
|
var Bt = Aa(he), Ct = Bt.pageX, yo = Bt.pageY, Mt = function(At) {
|
|
3490
3490
|
At.preventDefault();
|
|
3491
3491
|
var pt, xn = Aa(At), Bc = xn.pageX, Mc = xn.pageY, li = Bc - Ct, ui = Mc - yo, di = R.current.getBoundingClientRect(), gi = di.width, pi = di.height;
|
|
@@ -3503,10 +3503,10 @@ var ic = x.forwardRef(function(e, t) {
|
|
|
3503
3503
|
pt = li / gi;
|
|
3504
3504
|
}
|
|
3505
3505
|
kt(We, pt);
|
|
3506
|
-
},
|
|
3506
|
+
}, Kt = function At(pt) {
|
|
3507
3507
|
pt.preventDefault(), document.removeEventListener("mouseup", At), document.removeEventListener("mousemove", Mt), document.removeEventListener("touchend", At), document.removeEventListener("touchmove", Mt), dt.current = null, gt.current = null, W(-1), ce();
|
|
3508
3508
|
};
|
|
3509
|
-
document.addEventListener("mouseup",
|
|
3509
|
+
document.addEventListener("mouseup", Kt), document.addEventListener("mousemove", Mt), document.addEventListener("touchend", Kt), document.addEventListener("touchmove", Mt), dt.current = Mt, gt.current = Kt;
|
|
3510
3510
|
}];
|
|
3511
3511
|
}(rt, It, ut, qe, Tt, yn, fo, Kr, Ur), Cn = fe(wc, 4), qr = Cn[0], Gc = Cn[1], bo = Cn[2], ei = Cn[3], ti = function(R, X) {
|
|
3512
3512
|
if (!l) {
|
|
@@ -3516,7 +3516,7 @@ var ic = x.forwardRef(function(e, t) {
|
|
|
3516
3516
|
Le <= de && (de = Le, O = xe);
|
|
3517
3517
|
});
|
|
3518
3518
|
var ae, me, pe = at(ut);
|
|
3519
|
-
pe[O] = R, A && !ut.length &&
|
|
3519
|
+
pe[O] = R, A && !ut.length && M === void 0 && pe.push(R), V == null || V(Qt(pe)), fo(pe), X && ((ae = document.activeElement) === null || ae === void 0 || (me = ae.blur) === null || me === void 0 || me.call(ae), ot.current.focus(O), ei(X, O, pe));
|
|
3520
3520
|
}
|
|
3521
3521
|
}, ni = fe(x.useState(null), 2), vo = ni[0], oi = ni[1];
|
|
3522
3522
|
x.useEffect(function() {
|
|
@@ -3527,9 +3527,9 @@ var ic = x.forwardRef(function(e, t) {
|
|
|
3527
3527
|
oi(null);
|
|
3528
3528
|
}, [vo]);
|
|
3529
3529
|
var Nc = x.useMemo(function() {
|
|
3530
|
-
return
|
|
3531
|
-
}, [
|
|
3532
|
-
ei(R, X), V == null || V(
|
|
3530
|
+
return B && Gt === null ? (process.env.NODE_ENV !== "production" && Dt(!1, "`draggableTrack` is not supported when `step` is `null`."), !1) : B;
|
|
3531
|
+
}, [B, Gt]), ri = function(R, X) {
|
|
3532
|
+
ei(R, X), V == null || V(Qt(In.current));
|
|
3533
3533
|
}, ii = qr !== -1;
|
|
3534
3534
|
x.useEffect(function() {
|
|
3535
3535
|
if (!ii) {
|
|
@@ -3577,7 +3577,7 @@ var ic = x.forwardRef(function(e, t) {
|
|
|
3577
3577
|
} }, x.createElement("div", { className: yt("".concat(n, "-rail"), a == null ? void 0 : a.rail), style: L(L({}, U), s == null ? void 0 : s.rail) }), x.createElement(td, { prefixCls: n, style: re, values: Ot, startPoint: se, onStartMove: Nc ? ri : void 0 }), x.createElement(ed, { prefixCls: n, marks: vn, dots: Ne, style: ie, activeStyle: Me }), x.createElement(rc, { ref: ot, prefixCls: n, style: ge, values: bo, draggingIndex: qr, onStartMove: ri, onOffsetChange: function(R, X) {
|
|
3578
3578
|
if (!l) {
|
|
3579
3579
|
var O = Ur(ut, R, X);
|
|
3580
|
-
V == null || V(
|
|
3580
|
+
V == null || V(Qt(ut)), fo(O.values), oi(O.value);
|
|
3581
3581
|
}
|
|
3582
3582
|
}, onFocus: b, onBlur: m, handleRender: De, activeHandleRender: Ye, onChangeComplete: Kr }), x.createElement(Ku, { prefixCls: n, marks: vn, onClick: ti })));
|
|
3583
3583
|
});
|
|
@@ -3615,7 +3615,7 @@ const po = ({ range: e, min: t, max: o, value: n, onChange: r, vertical: i }) =>
|
|
|
3615
3615
|
i.highContrast.isHighContrast = a, i.highContrast.contrast = a ? 125 : 0;
|
|
3616
3616
|
});
|
|
3617
3617
|
};
|
|
3618
|
-
return w.jsxs(be, { Icon: rd, titleTranslationKey: "colors.highContrast", title: "High Contrast", stats: o ? `${n}%` : void 0, elementType: o ? "div" : "button", isActive: o, onToggle: o ? void 0 : r, children: [o ? w.jsx(
|
|
3618
|
+
return w.jsxs(be, { Icon: rd, titleTranslationKey: "colors.highContrast", title: "High Contrast", stats: o ? `${n}%` : void 0, elementType: o ? "div" : "button", isActive: o, onToggle: o ? void 0 : r, children: [o ? w.jsx(Ut, { onIncrease: () => {
|
|
3619
3619
|
t((i) => {
|
|
3620
3620
|
const { highContrast: a } = i;
|
|
3621
3621
|
a.contrast < 200 && i.highContrast.contrast++;
|
|
@@ -3637,7 +3637,7 @@ const po = ({ range: e, min: t, max: o, value: n, onChange: r, vertical: i }) =>
|
|
|
3637
3637
|
i.highSaturation.isHighSaturation = a, i.highSaturation.saturation = a ? 200 : 0;
|
|
3638
3638
|
});
|
|
3639
3639
|
};
|
|
3640
|
-
return w.jsxs(be, { Icon: sc, titleTranslationKey: "colors.highSaturation", title: "High Saturation", stats: o ? `${n}%` : void 0, elementType: o ? "div" : "button", isActive: o, onToggle: o ? void 0 : r, children: [o ? w.jsx(
|
|
3640
|
+
return w.jsxs(be, { Icon: sc, titleTranslationKey: "colors.highSaturation", title: "High Saturation", stats: o ? `${n}%` : void 0, elementType: o ? "div" : "button", isActive: o, onToggle: o ? void 0 : r, children: [o ? w.jsx(Ut, { onIncrease: () => {
|
|
3641
3641
|
t((i) => {
|
|
3642
3642
|
const { highSaturation: a } = i;
|
|
3643
3643
|
a.saturation < 800 && i.highSaturation.saturation++;
|
|
@@ -3663,7 +3663,7 @@ const po = ({ range: e, min: t, max: o, value: n, onChange: r, vertical: i }) =>
|
|
|
3663
3663
|
i.lowSaturation.isLowSaturation = a, i.lowSaturation.saturation = a ? 50 : 0;
|
|
3664
3664
|
});
|
|
3665
3665
|
};
|
|
3666
|
-
return w.jsxs(be, { Icon: sc, titleTranslationKey: "colors.lowSaturation", title: "Low Saturation", stats: o ? `${n}%` : void 0, styleIcon: { transform: "rotate(180deg)" }, elementType: o ? "div" : "button", isActive: o, onToggle: o ? void 0 : r, children: [o ? w.jsx(
|
|
3666
|
+
return w.jsxs(be, { Icon: sc, titleTranslationKey: "colors.lowSaturation", title: "Low Saturation", stats: o ? `${n}%` : void 0, styleIcon: { transform: "rotate(180deg)" }, elementType: o ? "div" : "button", isActive: o, onToggle: o ? void 0 : r, children: [o ? w.jsx(Ut, { onIncrease: () => {
|
|
3667
3667
|
t((i) => {
|
|
3668
3668
|
const { lowSaturation: a } = i;
|
|
3669
3669
|
a.saturation < 199 && i.lowSaturation.saturation++;
|
|
@@ -3721,13 +3721,13 @@ var mn = function(e, t, o) {
|
|
|
3721
3721
|
}, lc = Be.memo(function(e) {
|
|
3722
3722
|
var t = e.onMove, o = e.onKey, n = cc(e, ["onMove", "onKey"]), r = Ce(null), i = Er(t), a = Er(o), s = Ce(null), c = Ce(!1), l = St(function() {
|
|
3723
3723
|
var b = function(v) {
|
|
3724
|
-
Ga(v), (ln(v) ? v.touches.length > 0 : v.buttons > 0) && r.current ? i(wa(r.current, v, s.current)) :
|
|
3724
|
+
Ga(v), (ln(v) ? v.touches.length > 0 : v.buttons > 0) && r.current ? i(wa(r.current, v, s.current)) : f(!1);
|
|
3725
3725
|
}, m = function() {
|
|
3726
|
-
return
|
|
3726
|
+
return f(!1);
|
|
3727
3727
|
};
|
|
3728
|
-
function
|
|
3729
|
-
var S = c.current, I = Vr(r.current),
|
|
3730
|
-
|
|
3728
|
+
function f(v) {
|
|
3729
|
+
var S = c.current, I = Vr(r.current), h = v ? I.addEventListener : I.removeEventListener;
|
|
3730
|
+
h(S ? "touchmove" : "mousemove", b), h(S ? "touchend" : "mouseup", m);
|
|
3731
3731
|
}
|
|
3732
3732
|
return [function(v) {
|
|
3733
3733
|
var S = v.nativeEvent, I = r.current;
|
|
@@ -3736,15 +3736,15 @@ var mn = function(e, t, o) {
|
|
|
3736
3736
|
}(S, c.current) && I)) {
|
|
3737
3737
|
if (ln(S)) {
|
|
3738
3738
|
c.current = !0;
|
|
3739
|
-
var
|
|
3740
|
-
|
|
3739
|
+
var h = S.changedTouches || [];
|
|
3740
|
+
h.length && (s.current = h[0].identifier);
|
|
3741
3741
|
}
|
|
3742
|
-
I.focus(), i(wa(I, S, s.current)),
|
|
3742
|
+
I.focus(), i(wa(I, S, s.current)), f(!0);
|
|
3743
3743
|
}
|
|
3744
3744
|
}, function(v) {
|
|
3745
3745
|
var S = v.which || v.keyCode;
|
|
3746
3746
|
S < 37 || S > 40 || (v.preventDefault(), a({ left: S === 39 ? 0.05 : S === 37 ? -0.05 : 0, top: S === 40 ? 0.05 : S === 38 ? -0.05 : 0 }));
|
|
3747
|
-
},
|
|
3747
|
+
}, f];
|
|
3748
3748
|
}, [a, i]), u = l[0], g = l[1], d = l[2];
|
|
3749
3749
|
return Pe(function() {
|
|
3750
3750
|
return d;
|
|
@@ -3814,8 +3814,8 @@ var md = typeof window < "u" ? ne : Pe, Na = /* @__PURE__ */ new Map(), hd = fun
|
|
|
3814
3814
|
if (b !== void 0 && !Na.has(b)) {
|
|
3815
3815
|
var m = b.createElement("style");
|
|
3816
3816
|
m.innerHTML = `.react-colorful{position:relative;display:flex;flex-direction:column;width:200px;height:200px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.react-colorful__saturation{position:relative;flex-grow:1;border-color:transparent;border-bottom:12px solid #000;border-radius:8px 8px 0 0;background-image:linear-gradient(0deg,#000,transparent),linear-gradient(90deg,#fff,hsla(0,0%,100%,0))}.react-colorful__alpha-gradient,.react-colorful__pointer-fill{content:"";position:absolute;left:0;top:0;right:0;bottom:0;pointer-events:none;border-radius:inherit}.react-colorful__alpha-gradient,.react-colorful__saturation{box-shadow:inset 0 0 0 1px rgba(0,0,0,.05)}.react-colorful__alpha,.react-colorful__hue{position:relative;height:24px}.react-colorful__hue{background:linear-gradient(90deg,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red)}.react-colorful__last-control{border-radius:0 0 8px 8px}.react-colorful__interactive{position:absolute;left:0;top:0;right:0;bottom:0;border-radius:inherit;outline:none;touch-action:none}.react-colorful__pointer{position:absolute;z-index:1;box-sizing:border-box;width:28px;height:28px;transform:translate(-50%,-50%);background-color:#fff;border:2px solid #fff;border-radius:50%;box-shadow:0 2px 4px rgba(0,0,0,.2)}.react-colorful__interactive:focus .react-colorful__pointer{transform:translate(-50%,-50%) scale(1.1)}.react-colorful__alpha,.react-colorful__alpha-pointer{background-color:#fff;background-image:url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill-opacity=".05"><path d="M8 0h8v8H8zM0 8h8v8H0z"/></svg>')}.react-colorful__saturation-pointer{z-index:3}.react-colorful__hue-pointer{z-index:2}`, Na.set(b, m);
|
|
3817
|
-
var
|
|
3818
|
-
|
|
3817
|
+
var f = typeof __webpack_nonce__ < "u" ? __webpack_nonce__ : void 0;
|
|
3818
|
+
f && m.setAttribute("nonce", f), b.head.appendChild(m);
|
|
3819
3819
|
}
|
|
3820
3820
|
}, []);
|
|
3821
3821
|
})(s);
|
|
@@ -3856,7 +3856,7 @@ const gc = (e) => x.createElement("svg", { className: "MuiSvgIcon-root MuiSvgIco
|
|
|
3856
3856
|
t((o) => {
|
|
3857
3857
|
o.isVisualImpairment = !o.isVisualImpairment;
|
|
3858
3858
|
});
|
|
3859
|
-
}, titleTranslationKey: "colors.visualImpairment", title: "Visual Impairment" }), Cd = ({ accState: e, onChangeAccState: t }) => w.jsxs(w.Fragment, { children: [w.jsx(Ju, { accState: e, onChangeAccState: t }), w.jsx(sd, { accState: e, onChangeAccState: t }), w.jsx(od, { accState: e, onChangeAccState: t }), w.jsx(id, { accState: e, onChangeAccState: t }), w.jsx(nd, { accState: e, onChangeAccState: t }), w.jsx(ad, { accState: e, onChangeAccState: t }), w.jsx(cd, { accState: e, onChangeAccState: t }), w.jsx(ud, { accState: e, onChangeAccState: t }), w.jsx(Id, { accState: e, onChangeAccState: t }), w.jsx(vd, { accState: e, onChangeAccState: t })] }), xd = (e) => x.createElement("svg", { className: "MuiSvgIcon-root MuiSvgIcon-fontSizeMedium css-i4bv87-MuiSvgIcon-root", focusable: "false", "aria-hidden": "true", viewBox: "0 0 24 24", "data-testid": "AdsClickIcon", ...e }, x.createElement("path", { d: "M11.71 17.99C8.53 17.84 6 15.22 6 12c0-3.31 2.69-6 6-6 3.22 0 5.84 2.53 5.99 5.71l-2.1-.63C15.48 9.31 13.89 8 12 8c-2.21 0-4 1.79-4 4 0 1.89 1.31 3.48 3.08 3.89l.63 2.1zM22 12c0 .3-.01.6-.04.9l-1.97-.59c.01-.1.01-.21.01-.31 0-4.42-3.58-8-8-8s-8 3.58-8 8 3.58 8 8 8c.1 0 .21 0 .31-.01l.59 1.97c-.3.03-.6.04-.9.04-5.52 0-10-4.48-10-10S6.48 2 12 2s10 4.48 10 10zm-3.77 4.26L22 15l-10-3 3 10 1.26-3.77 4.27 4.27 1.98-1.98-4.28-4.26z" })), D = (e) => typeof e == "string",
|
|
3859
|
+
}, titleTranslationKey: "colors.visualImpairment", title: "Visual Impairment" }), Cd = ({ accState: e, onChangeAccState: t }) => w.jsxs(w.Fragment, { children: [w.jsx(Ju, { accState: e, onChangeAccState: t }), w.jsx(sd, { accState: e, onChangeAccState: t }), w.jsx(od, { accState: e, onChangeAccState: t }), w.jsx(id, { accState: e, onChangeAccState: t }), w.jsx(nd, { accState: e, onChangeAccState: t }), w.jsx(ad, { accState: e, onChangeAccState: t }), w.jsx(cd, { accState: e, onChangeAccState: t }), w.jsx(ud, { accState: e, onChangeAccState: t }), w.jsx(Id, { accState: e, onChangeAccState: t }), w.jsx(vd, { accState: e, onChangeAccState: t })] }), xd = (e) => x.createElement("svg", { className: "MuiSvgIcon-root MuiSvgIcon-fontSizeMedium css-i4bv87-MuiSvgIcon-root", focusable: "false", "aria-hidden": "true", viewBox: "0 0 24 24", "data-testid": "AdsClickIcon", ...e }, x.createElement("path", { d: "M11.71 17.99C8.53 17.84 6 15.22 6 12c0-3.31 2.69-6 6-6 3.22 0 5.84 2.53 5.99 5.71l-2.1-.63C15.48 9.31 13.89 8 12 8c-2.21 0-4 1.79-4 4 0 1.89 1.31 3.48 3.08 3.89l.63 2.1zM22 12c0 .3-.01.6-.04.9l-1.97-.59c.01-.1.01-.21.01-.31 0-4.42-3.58-8-8-8s-8 3.58-8 8 3.58 8 8 8c.1 0 .21 0 .31-.01l.59 1.97c-.3.03-.6.04-.9.04-5.52 0-10-4.48-10-10S6.48 2 12 2s10 4.48 10 10zm-3.77 4.26L22 15l-10-3 3 10 1.26-3.77 4.27 4.27 1.98-1.98-4.28-4.26z" })), D = (e) => typeof e == "string", nn = () => {
|
|
3860
3860
|
let e, t;
|
|
3861
3861
|
const o = new Promise((n, r) => {
|
|
3862
3862
|
e = n, t = r;
|
|
@@ -4096,21 +4096,21 @@ class oo extends ho {
|
|
|
4096
4096
|
const r = o.returnDetails !== void 0 ? o.returnDetails : this.options.returnDetails, i = o.keySeparator !== void 0 ? o.keySeparator : this.options.keySeparator, { key: a, namespaces: s } = this.extractFromKey(t[t.length - 1], o), c = s[s.length - 1], l = o.lng || this.language, u = o.appendNamespaceToCIMode || this.options.appendNamespaceToCIMode;
|
|
4097
4097
|
if (l && l.toLowerCase() === "cimode") {
|
|
4098
4098
|
if (u) {
|
|
4099
|
-
const
|
|
4100
|
-
return r ? { res: `${c}${
|
|
4099
|
+
const h = o.nsSeparator || this.options.nsSeparator;
|
|
4100
|
+
return r ? { res: `${c}${h}${a}`, usedKey: a, exactUsedKey: a, usedLng: l, usedNS: c, usedParams: this.getUsedParamsDetails(o) } : `${c}${h}${a}`;
|
|
4101
4101
|
}
|
|
4102
4102
|
return r ? { res: a, usedKey: a, exactUsedKey: a, usedLng: l, usedNS: c, usedParams: this.getUsedParamsDetails(o) } : a;
|
|
4103
4103
|
}
|
|
4104
4104
|
const g = this.resolve(t, o);
|
|
4105
4105
|
let d = g && g.res;
|
|
4106
|
-
const b = g && g.usedKey || a, m = g && g.exactUsedKey || a,
|
|
4107
|
-
if (!(S && d && I && ["[object Number]", "[object Function]", "[object RegExp]"].indexOf(
|
|
4106
|
+
const b = g && g.usedKey || a, m = g && g.exactUsedKey || a, f = Object.prototype.toString.apply(d), v = o.joinArrays !== void 0 ? o.joinArrays : this.options.joinArrays, S = !this.i18nFormat || this.i18nFormat.handleAsObject, I = !D(d) && typeof d != "boolean" && typeof d != "number";
|
|
4107
|
+
if (!(S && d && I && ["[object Number]", "[object Function]", "[object RegExp]"].indexOf(f) < 0) || D(v) && Array.isArray(d)) if (S && D(v) && Array.isArray(d)) d = d.join(v), d && (d = this.extendTranslation(d, t, o, n));
|
|
4108
4108
|
else {
|
|
4109
|
-
let
|
|
4110
|
-
const p = o.count !== void 0 && !D(o.count), C = oo.hasDefaultValue(o), A = p ? this.pluralResolver.getSuffix(l, o.count, o) : "",
|
|
4111
|
-
!this.isValidLookup(d) && C && (
|
|
4109
|
+
let h = !1, y = !1;
|
|
4110
|
+
const p = o.count !== void 0 && !D(o.count), C = oo.hasDefaultValue(o), A = p ? this.pluralResolver.getSuffix(l, o.count, o) : "", M = o.ordinal && p ? this.pluralResolver.getSuffix(l, o.count, { ordinal: !1 }) : "", F = p && !o.ordinal && o.count === 0 && this.pluralResolver.shouldUseIntlApi(), V = F && o[`defaultValue${this.options.pluralSeparator}zero`] || o[`defaultValue${A}`] || o[`defaultValue${M}`] || o.defaultValue;
|
|
4111
|
+
!this.isValidLookup(d) && C && (h = !0, d = V), this.isValidLookup(d) || (y = !0, d = a);
|
|
4112
4112
|
const Y = (o.missingKeyNoValueFallbackToKey || this.options.missingKeyNoValueFallbackToKey) && y ? void 0 : d, j = C && V !== d && this.options.updateMissing;
|
|
4113
|
-
if (y ||
|
|
4113
|
+
if (y || h || j) {
|
|
4114
4114
|
if (this.logger.log(j ? "updateKey" : "missingKey", l, c, a, j ? V : d), i) {
|
|
4115
4115
|
const G = this.resolve(a, { ...o, keySeparator: !1 });
|
|
4116
4116
|
G && G.res && this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.");
|
|
@@ -4119,27 +4119,27 @@ class oo extends ho {
|
|
|
4119
4119
|
const N = this.languageUtils.getFallbackCodes(this.options.fallbackLng, o.lng || this.language);
|
|
4120
4120
|
if (this.options.saveMissingTo === "fallback" && N && N[0]) for (let G = 0; G < N.length; G++) J.push(N[G]);
|
|
4121
4121
|
else this.options.saveMissingTo === "all" ? J = this.languageUtils.toResolveHierarchy(o.lng || this.language) : J.push(o.lng || this.language);
|
|
4122
|
-
const Z = (G,
|
|
4122
|
+
const Z = (G, B, E) => {
|
|
4123
4123
|
const k = C && E !== d ? E : Y;
|
|
4124
|
-
this.options.missingKeyHandler ? this.options.missingKeyHandler(G, c,
|
|
4124
|
+
this.options.missingKeyHandler ? this.options.missingKeyHandler(G, c, B, k, j, o) : this.backendConnector && this.backendConnector.saveMissing && this.backendConnector.saveMissing(G, c, B, k, j, o), this.emit("missingKey", G, c, B, d);
|
|
4125
4125
|
};
|
|
4126
4126
|
this.options.saveMissing && (this.options.saveMissingPlurals && p ? J.forEach((G) => {
|
|
4127
|
-
const
|
|
4128
|
-
F && o[`defaultValue${this.options.pluralSeparator}zero`] &&
|
|
4127
|
+
const B = this.pluralResolver.getSuffixes(G, o);
|
|
4128
|
+
F && o[`defaultValue${this.options.pluralSeparator}zero`] && B.indexOf(`${this.options.pluralSeparator}zero`) < 0 && B.push(`${this.options.pluralSeparator}zero`), B.forEach((E) => {
|
|
4129
4129
|
Z([G], a + E, o[`defaultValue${E}`] || V);
|
|
4130
4130
|
});
|
|
4131
4131
|
}) : Z(J, a, V));
|
|
4132
4132
|
}
|
|
4133
|
-
d = this.extendTranslation(d, t, o, g, n), y && d === a && this.options.appendNamespaceToMissingKey && (d = `${c}:${a}`), (y ||
|
|
4133
|
+
d = this.extendTranslation(d, t, o, g, n), y && d === a && this.options.appendNamespaceToMissingKey && (d = `${c}:${a}`), (y || h) && this.options.parseMissingKeyHandler && (d = this.options.compatibilityAPI !== "v1" ? this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey ? `${c}:${a}` : a, h ? d : void 0) : this.options.parseMissingKeyHandler(d));
|
|
4134
4134
|
}
|
|
4135
4135
|
else {
|
|
4136
4136
|
if (!o.returnObjects && !this.options.returnObjects) {
|
|
4137
4137
|
this.options.returnedObjectHandler || this.logger.warn("accessing an object - but returnObjects options is not enabled!");
|
|
4138
|
-
const
|
|
4139
|
-
return r ? (g.res =
|
|
4138
|
+
const h = this.options.returnedObjectHandler ? this.options.returnedObjectHandler(b, d, { ...o, ns: s }) : `key '${a} (${this.language})' returned an object instead of string.`;
|
|
4139
|
+
return r ? (g.res = h, g.usedParams = this.getUsedParamsDetails(o), g) : h;
|
|
4140
4140
|
}
|
|
4141
4141
|
if (i) {
|
|
4142
|
-
const
|
|
4142
|
+
const h = Array.isArray(d), y = h ? [] : {}, p = h ? m : b;
|
|
4143
4143
|
for (const C in d) if (Object.prototype.hasOwnProperty.call(d, C)) {
|
|
4144
4144
|
const A = `${p}${i}${C}`;
|
|
4145
4145
|
y[C] = this.translate(A, { ...o, joinArrays: !1, ns: s }), y[C] === A && (y[C] = d[C]);
|
|
@@ -4181,9 +4181,9 @@ class oo extends ho {
|
|
|
4181
4181
|
n = u;
|
|
4182
4182
|
let g = l.namespaces;
|
|
4183
4183
|
this.options.fallbackNS && (g = g.concat(this.options.fallbackNS));
|
|
4184
|
-
const d = s.count !== void 0 && !D(s.count), b = d && !s.ordinal && s.count === 0 && this.pluralResolver.shouldUseIntlApi(), m = s.context !== void 0 && (D(s.context) || typeof s.context == "number") && s.context !== "",
|
|
4184
|
+
const d = s.count !== void 0 && !D(s.count), b = d && !s.ordinal && s.count === 0 && this.pluralResolver.shouldUseIntlApi(), m = s.context !== void 0 && (D(s.context) || typeof s.context == "number") && s.context !== "", f = s.lngs ? s.lngs : this.languageUtils.toResolveHierarchy(s.lng || this.language, s.fallbackLng);
|
|
4185
4185
|
g.forEach((v) => {
|
|
4186
|
-
this.isValidLookup(o) || (a = v, !Va[`${
|
|
4186
|
+
this.isValidLookup(o) || (a = v, !Va[`${f[0]}-${v}`] && this.utils && this.utils.hasLoadedNamespace && !this.utils.hasLoadedNamespace(a) && (Va[`${f[0]}-${v}`] = !0, this.logger.warn(`key "${n}" for languages "${f.join(", ")}" won't get resolved as namespace "${a}" was not yet loaded`, "This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")), f.forEach((S) => {
|
|
4187
4187
|
if (this.isValidLookup(o)) return;
|
|
4188
4188
|
i = S;
|
|
4189
4189
|
const I = [u];
|
|
@@ -4197,8 +4197,8 @@ class oo extends ho {
|
|
|
4197
4197
|
I.push(A), d && (I.push(A + y), s.ordinal && y.indexOf(C) === 0 && I.push(A + y.replace(C, this.options.pluralSeparator)), b && I.push(A + p));
|
|
4198
4198
|
}
|
|
4199
4199
|
}
|
|
4200
|
-
let
|
|
4201
|
-
for (;
|
|
4200
|
+
let h;
|
|
4201
|
+
for (; h = I.pop(); ) this.isValidLookup(o) || (r = h, o = this.getResource(S, v, h, s));
|
|
4202
4202
|
}));
|
|
4203
4203
|
});
|
|
4204
4204
|
}), { res: o, usedKey: n, exactUsedKey: r, usedLng: i, usedNS: a };
|
|
@@ -4368,8 +4368,8 @@ class Rd {
|
|
|
4368
4368
|
init() {
|
|
4369
4369
|
let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
4370
4370
|
t.interpolation || (t.interpolation = { escapeValue: !0 });
|
|
4371
|
-
const { escape: o, escapeValue: n, useRawValueToEscape: r, prefix: i, prefixEscaped: a, suffix: s, suffixEscaped: c, formatSeparator: l, unescapeSuffix: u, unescapePrefix: g, nestingPrefix: d, nestingPrefixEscaped: b, nestingSuffix: m, nestingSuffixEscaped:
|
|
4372
|
-
this.escape = o !== void 0 ? o : wd, this.escapeValue = n === void 0 || n, this.useRawValueToEscape = r !== void 0 && r, this.prefix = i ? Ht(i) : a || "{{", this.suffix = s ? Ht(s) : c || "}}", this.formatSeparator = l || ",", this.unescapePrefix = u ? "" : g || "-", this.unescapeSuffix = this.unescapePrefix ? "" : u || "", this.nestingPrefix = d ? Ht(d) : b || Ht("$t("), this.nestingSuffix = m ? Ht(m) :
|
|
4371
|
+
const { escape: o, escapeValue: n, useRawValueToEscape: r, prefix: i, prefixEscaped: a, suffix: s, suffixEscaped: c, formatSeparator: l, unescapeSuffix: u, unescapePrefix: g, nestingPrefix: d, nestingPrefixEscaped: b, nestingSuffix: m, nestingSuffixEscaped: f, nestingOptionsSeparator: v, maxReplaces: S, alwaysFormat: I } = t.interpolation;
|
|
4372
|
+
this.escape = o !== void 0 ? o : wd, this.escapeValue = n === void 0 || n, this.useRawValueToEscape = r !== void 0 && r, this.prefix = i ? Ht(i) : a || "{{", this.suffix = s ? Ht(s) : c || "}}", this.formatSeparator = l || ",", this.unescapePrefix = u ? "" : g || "-", this.unescapeSuffix = this.unescapePrefix ? "" : u || "", this.nestingPrefix = d ? Ht(d) : b || Ht("$t("), this.nestingSuffix = m ? Ht(m) : f || Ht(")"), this.nestingOptionsSeparator = v || ",", this.maxReplaces = S || 1e3, this.alwaysFormat = I !== void 0 && I, this.resetRegExp();
|
|
4373
4373
|
}
|
|
4374
4374
|
reset() {
|
|
4375
4375
|
this.options && this.init(this.options);
|
|
@@ -4385,8 +4385,8 @@ class Rd {
|
|
|
4385
4385
|
const v = Oa(o, c, d, this.options.keySeparator, this.options.ignoreJSONStructure);
|
|
4386
4386
|
return this.alwaysFormat ? this.format(v, void 0, n, { ...r, ...o, interpolationkey: d }) : v;
|
|
4387
4387
|
}
|
|
4388
|
-
const b = d.split(this.formatSeparator), m = b.shift().trim(),
|
|
4389
|
-
return this.format(Oa(o, c, m, this.options.keySeparator, this.options.ignoreJSONStructure),
|
|
4388
|
+
const b = d.split(this.formatSeparator), m = b.shift().trim(), f = b.join(this.formatSeparator).trim();
|
|
4389
|
+
return this.format(Oa(o, c, m, this.options.keySeparator, this.options.ignoreJSONStructure), f, n, { ...r, ...o, interpolationkey: m });
|
|
4390
4390
|
};
|
|
4391
4391
|
this.resetRegExp();
|
|
4392
4392
|
const u = r && r.missingInterpolationHandler || this.options.missingInterpolationHandler, g = r && r.interpolation && r.interpolation.skipOnVariables !== void 0 ? r.interpolation.skipOnVariables : this.options.interpolation.skipOnVariables;
|
|
@@ -4394,8 +4394,8 @@ class Rd {
|
|
|
4394
4394
|
for (s = 0; i = d.regex.exec(t); ) {
|
|
4395
4395
|
const b = i[1].trim();
|
|
4396
4396
|
if (a = l(b), a === void 0) if (typeof u == "function") {
|
|
4397
|
-
const
|
|
4398
|
-
a = D(
|
|
4397
|
+
const f = u(t, i, r);
|
|
4398
|
+
a = D(f) ? f : "";
|
|
4399
4399
|
} else if (r && Object.prototype.hasOwnProperty.call(r, b)) a = "";
|
|
4400
4400
|
else {
|
|
4401
4401
|
if (g) {
|
|
@@ -4422,8 +4422,8 @@ class Rd {
|
|
|
4422
4422
|
(b && b.length % 2 == 0 && !m || m.length % 2 != 0) && (d = d.replace(/'/g, '"'));
|
|
4423
4423
|
try {
|
|
4424
4424
|
i = JSON.parse(d), l && (i = { ...l, ...i });
|
|
4425
|
-
} catch (
|
|
4426
|
-
return this.logger.warn(`failed parsing options string in nesting for key ${c}`,
|
|
4425
|
+
} catch (f) {
|
|
4426
|
+
return this.logger.warn(`failed parsing options string in nesting for key ${c}`, f), `${c}${u}${d}`;
|
|
4427
4427
|
}
|
|
4428
4428
|
return i.defaultValue && i.defaultValue.indexOf(this.prefix) > -1 && delete i.defaultValue, c;
|
|
4429
4429
|
};
|
|
@@ -4495,11 +4495,11 @@ class Td {
|
|
|
4495
4495
|
if (g.indexOf("(") > -1) {
|
|
4496
4496
|
const m = g.split("(");
|
|
4497
4497
|
d = m[0].toLowerCase().trim();
|
|
4498
|
-
const
|
|
4499
|
-
d === "currency" &&
|
|
4498
|
+
const f = m[1].substring(0, m[1].length - 1);
|
|
4499
|
+
d === "currency" && f.indexOf(":") < 0 ? b.currency || (b.currency = f.trim()) : d === "relativetime" && f.indexOf(":") < 0 ? b.range || (b.range = f.trim()) : f.split(";").forEach((v) => {
|
|
4500
4500
|
if (v) {
|
|
4501
|
-
const [S, ...I] = v.split(":"),
|
|
4502
|
-
b[y] || (b[y] =
|
|
4501
|
+
const [S, ...I] = v.split(":"), h = I.join(":").trim().replace(/^'+|'+$/g, ""), y = S.trim();
|
|
4502
|
+
b[y] || (b[y] = h), h === "false" && (b[y] = !1), h === "true" && (b[y] = !0), isNaN(h) || (b[y] = parseInt(h, 10));
|
|
4503
4503
|
}
|
|
4504
4504
|
});
|
|
4505
4505
|
}
|
|
@@ -4677,7 +4677,7 @@ class hn extends ho {
|
|
|
4677
4677
|
return t.store[c](...arguments), t;
|
|
4678
4678
|
};
|
|
4679
4679
|
});
|
|
4680
|
-
const a =
|
|
4680
|
+
const a = nn(), s = () => {
|
|
4681
4681
|
const c = (l, u) => {
|
|
4682
4682
|
this.isInitializing = !1, this.isInitialized && !this.initializedStoreOnce && this.logger.warn("init: i18next is already initialized. You should call init just once!"), this.isInitialized = !0, this.options.isClone || this.logger.log("initialized", this.options), this.emit("initialized", this.options), a.resolve(u), n(l, u);
|
|
4683
4683
|
};
|
|
@@ -4702,7 +4702,7 @@ class hn extends ho {
|
|
|
4702
4702
|
} else o(null);
|
|
4703
4703
|
}
|
|
4704
4704
|
reloadResources(t, o, n) {
|
|
4705
|
-
const r =
|
|
4705
|
+
const r = nn();
|
|
4706
4706
|
return typeof t == "function" && (n = t, t = void 0), typeof o == "function" && (n = o, o = void 0), t || (t = this.languages), o || (o = this.options.ns), n || (n = Rn), this.services.backendConnector.reload(t, o, (i) => {
|
|
4707
4707
|
r.resolve(), n(i);
|
|
4708
4708
|
}), r;
|
|
@@ -4724,7 +4724,7 @@ class hn extends ho {
|
|
|
4724
4724
|
changeLanguage(t, o) {
|
|
4725
4725
|
var n = this;
|
|
4726
4726
|
this.isLanguageChangingTo = t;
|
|
4727
|
-
const r =
|
|
4727
|
+
const r = nn();
|
|
4728
4728
|
this.emit("languageChanging", t);
|
|
4729
4729
|
const i = (c) => {
|
|
4730
4730
|
this.language = c, this.languages = this.services.languageUtils.toResolveHierarchy(c), this.resolvedLanguage = void 0, this.setResolvedLanguage(c);
|
|
@@ -4784,7 +4784,7 @@ class hn extends ho {
|
|
|
4784
4784
|
return !(!this.hasResourceBundle(n, t) && this.services.backendConnector.backend && (!this.options.resources || this.options.partialBundledLanguages) && (!a(n, t) || r && !a(i, t)));
|
|
4785
4785
|
}
|
|
4786
4786
|
loadNamespaces(t, o) {
|
|
4787
|
-
const n =
|
|
4787
|
+
const n = nn();
|
|
4788
4788
|
return this.options.ns ? (D(t) && (t = [t]), t.forEach((r) => {
|
|
4789
4789
|
this.options.ns.indexOf(r) < 0 && this.options.ns.push(r);
|
|
4790
4790
|
}), this.loadResources((r) => {
|
|
@@ -4792,7 +4792,7 @@ class hn extends ho {
|
|
|
4792
4792
|
}), n) : (o && o(), Promise.resolve());
|
|
4793
4793
|
}
|
|
4794
4794
|
loadLanguages(t, o) {
|
|
4795
|
-
const n =
|
|
4795
|
+
const n = nn();
|
|
4796
4796
|
D(t) && (t = [t]);
|
|
4797
4797
|
const r = this.options.preload || [], i = t.filter((a) => r.indexOf(a) < 0 && this.services.languageUtils.isSupportedCode(a));
|
|
4798
4798
|
return i.length ? (this.options.preload = r.concat(i), this.loadResources((a) => {
|
|
@@ -4901,7 +4901,7 @@ const Ha = (e, t) => {
|
|
|
4901
4901
|
if (!window.speechSynthesis) return void alert(ja);
|
|
4902
4902
|
const g = setTimeout(() => {
|
|
4903
4903
|
if (!u.current) {
|
|
4904
|
-
const b = window.speechSynthesis.getVoices().reduce((m,
|
|
4904
|
+
const b = window.speechSynthesis.getVoices().reduce((m, f) => (m[f.lang] = f, m), {});
|
|
4905
4905
|
u.current = Object.values(b);
|
|
4906
4906
|
}
|
|
4907
4907
|
const d = u.current.find((b) => b.lang.includes(n)) ?? u.current[0];
|
|
@@ -4944,8 +4944,8 @@ const Ha = (e, t) => {
|
|
|
4944
4944
|
g.current && g.current.focus();
|
|
4945
4945
|
}, []), w.jsxs("div", { id: "acc-accessibility-menu", className: En.accAccessibilityMenu, children: [w.jsxs("div", { style: { display: t }, className: En.accMenu, children: [w.jsx($c, { onShow: i, onInit: o }), w.jsx(tc, { className: En["acc-lang-select-container"], options: s ? Or : [Or[0]], value: Zd[u], onChange: (d) => d && n(d.value), ref: g }), w.jsx(Wd, { onCollapse: (d) => {
|
|
4946
4946
|
l((b) => hr(Wa, (m) => {
|
|
4947
|
-
const
|
|
4948
|
-
m[d].isExpanded = !
|
|
4947
|
+
const f = b[d].isExpanded;
|
|
4948
|
+
m[d].isExpanded = !f;
|
|
4949
4949
|
}));
|
|
4950
4950
|
}, accState: e, onChangeAccState: r, collapsedState: c }), w.jsx(Uc, {})] }), a && w.jsx("div", { className: En.accAccessibilityMenu__overlay })] });
|
|
4951
4951
|
};
|
|
@@ -5016,16 +5016,16 @@ var bc = [], Dd = bc.forEach, Yd = bc.slice, Za = /^[\u0009\u0020-\u007e\u0080-\
|
|
|
5016
5016
|
}
|
|
5017
5017
|
}
|
|
5018
5018
|
return t;
|
|
5019
|
-
} },
|
|
5020
|
-
if (
|
|
5019
|
+
} }, on = null, Ja = function() {
|
|
5020
|
+
if (on !== null) return on;
|
|
5021
5021
|
try {
|
|
5022
|
-
|
|
5022
|
+
on = window !== "undefined" && window.localStorage !== null;
|
|
5023
5023
|
var e = "i18next.translate.boo";
|
|
5024
5024
|
window.localStorage.setItem(e, "foo"), window.localStorage.removeItem(e);
|
|
5025
5025
|
} catch {
|
|
5026
|
-
|
|
5026
|
+
on = !1;
|
|
5027
5027
|
}
|
|
5028
|
-
return
|
|
5028
|
+
return on;
|
|
5029
5029
|
}, Ud = { name: "localStorage", lookup: function(e) {
|
|
5030
5030
|
var t;
|
|
5031
5031
|
if (e.lookupLocalStorage && Ja()) {
|
|
@@ -5035,16 +5035,16 @@ var bc = [], Dd = bc.forEach, Yd = bc.slice, Za = /^[\u0009\u0020-\u007e\u0080-\
|
|
|
5035
5035
|
return t;
|
|
5036
5036
|
}, cacheUserLanguage: function(e, t) {
|
|
5037
5037
|
t.lookupLocalStorage && Ja() && window.localStorage.setItem(t.lookupLocalStorage, e);
|
|
5038
|
-
} },
|
|
5039
|
-
if (
|
|
5038
|
+
} }, rn = null, Da = function() {
|
|
5039
|
+
if (rn !== null) return rn;
|
|
5040
5040
|
try {
|
|
5041
|
-
|
|
5041
|
+
rn = window !== "undefined" && window.sessionStorage !== null;
|
|
5042
5042
|
var e = "i18next.translate.boo";
|
|
5043
5043
|
window.sessionStorage.setItem(e, "foo"), window.sessionStorage.removeItem(e);
|
|
5044
5044
|
} catch {
|
|
5045
|
-
|
|
5045
|
+
rn = !1;
|
|
5046
5046
|
}
|
|
5047
|
-
return
|
|
5047
|
+
return rn;
|
|
5048
5048
|
}, Qd = { name: "sessionStorage", lookup: function(e) {
|
|
5049
5049
|
var t;
|
|
5050
5050
|
if (e.lookupSessionStorage && Da()) {
|
|
@@ -5139,16 +5139,16 @@ const Ya = "portal", _a = ({ children: e, wrapperElementId: t }) => {
|
|
|
5139
5139
|
o.style.fontSize = `${n}px`;
|
|
5140
5140
|
}
|
|
5141
5141
|
});
|
|
5142
|
-
},
|
|
5142
|
+
}, an = "acc-align-text", Do = "acc-highlight-links-style", Yo = "acc-highlight-links", _o = "acc-highlight-titles-style", $o = "acc-highlight-titles", Uo = "acc-letter-spacing-style", Tn = "acc-letter-spacing", Qo = "acc-line-height-style", On = "acc-line-height", Ko = "acc-word-spacing-style", zn = "acc-word-spacing", qo = "acc-zoom-style", Xn = "acc-zoom", Ka = "acc-blueLight-filter-style", er = "acc-blue-light-filter", qa = "acc-dark-contrast-style", tr = "acc-dark-contrast", es = "acc-light-contrast-style", nr = "acc-light-contrast", ts = "acc-visual-impairment-style", or = "acc-visual-impairment", ns = "acc-monochrome-style", rr = "acc-monochrome", os = "acc-high-contrast-style", Hn = "acc-high-contrast", rs = "acc-brightness-control-style", Pn = "acc-brightness-control", is = "acc-high-saturation-style", Fn = "acc-high-saturation", as = "acc-low-saturation-style", jn = "acc-low-saturation", ss = "acc-text-color-picker-style", ir = "acc-text-color-picker", cs = "accessibilik";
|
|
5143
5143
|
ye.use(Ic).use(Dc);
|
|
5144
5144
|
const cg = () => {
|
|
5145
|
-
const [e, t] = Ie(!0), [o, n] = Ie(!1), [r, i] = Ie(!1), a = ((
|
|
5145
|
+
const [e, t] = Ie(!0), [o, n] = Ie(!1), [r, i] = Ie(!1), a = ((f) => {
|
|
5146
5146
|
const [v, S] = Ie(!0);
|
|
5147
5147
|
return ne(() => {
|
|
5148
|
-
if (!
|
|
5148
|
+
if (!f) return;
|
|
5149
5149
|
const I = requestAnimationFrame(() => {
|
|
5150
|
-
document.querySelectorAll("*").forEach((
|
|
5151
|
-
const y =
|
|
5150
|
+
document.querySelectorAll("*").forEach((h) => {
|
|
5151
|
+
const y = h;
|
|
5152
5152
|
if (y.style.fontSize && Ft(y), Array.from(document.styleSheets).forEach((p) => {
|
|
5153
5153
|
try {
|
|
5154
5154
|
Array.from(p.cssRules || []).forEach((C) => {
|
|
@@ -5164,47 +5164,49 @@ const cg = () => {
|
|
|
5164
5164
|
}), S(!1);
|
|
5165
5165
|
});
|
|
5166
5166
|
return () => cancelAnimationFrame(I);
|
|
5167
|
-
}, [
|
|
5168
|
-
})(r), s = ((
|
|
5167
|
+
}, [f]), v;
|
|
5168
|
+
})(r), s = ((f) => {
|
|
5169
5169
|
const [v, S] = Ie(0);
|
|
5170
5170
|
return ne(() => {
|
|
5171
|
-
if (!
|
|
5172
|
-
const I =
|
|
5173
|
-
|
|
5174
|
-
|
|
5175
|
-
|
|
5176
|
-
|
|
5177
|
-
|
|
5178
|
-
|
|
5179
|
-
|
|
5180
|
-
|
|
5181
|
-
|
|
5182
|
-
|
|
5183
|
-
|
|
5184
|
-
|
|
5185
|
-
|
|
5186
|
-
|
|
5187
|
-
|
|
5188
|
-
|
|
5171
|
+
if (!f) return;
|
|
5172
|
+
const I = (p) => {
|
|
5173
|
+
if (p.id === Se || p.id === jt) return;
|
|
5174
|
+
p.style.fontSize && (Ft(p), p.dataset.accMutation = "true", S((A) => ++A)), Array.from(document.styleSheets).forEach((A) => {
|
|
5175
|
+
try {
|
|
5176
|
+
Array.from(A.cssRules || []).forEach((M) => {
|
|
5177
|
+
const F = M;
|
|
5178
|
+
F.style.fontSize && Ha(p, F) && (Ft(p), p.dataset.accMutation = "true", S((V) => ++V));
|
|
5179
|
+
});
|
|
5180
|
+
} catch {
|
|
5181
|
+
}
|
|
5182
|
+
});
|
|
5183
|
+
const C = p.tagName.toLowerCase();
|
|
5184
|
+
xt.includes(C) && (Ft(p), p.dataset.accMutation = "true", S((A) => ++A));
|
|
5185
|
+
}, h = new MutationObserver((p) => {
|
|
5186
|
+
p.forEach((C) => {
|
|
5187
|
+
C.type === "childList" && C.addedNodes.length > 0 && C.addedNodes.forEach((A) => {
|
|
5188
|
+
if (A instanceof HTMLElement) {
|
|
5189
|
+
if (A.id === Se || A.id === jt) return;
|
|
5190
|
+
[A, ...Array.from(A.querySelectorAll("*"))].filter((M) => M instanceof HTMLElement).forEach(I);
|
|
5189
5191
|
}
|
|
5190
5192
|
});
|
|
5191
5193
|
});
|
|
5192
|
-
}),
|
|
5193
|
-
typeof document < "u" && document.body &&
|
|
5194
|
+
}), y = requestAnimationFrame(() => {
|
|
5195
|
+
typeof document < "u" && document.body && h.observe(document.body, { childList: !0, subtree: !0 });
|
|
5194
5196
|
});
|
|
5195
5197
|
return () => {
|
|
5196
|
-
cancelAnimationFrame(
|
|
5198
|
+
cancelAnimationFrame(y), S(0), h.disconnect();
|
|
5197
5199
|
};
|
|
5198
|
-
}, [
|
|
5200
|
+
}, [f]), v;
|
|
5199
5201
|
})(r), [c, l] = function() {
|
|
5200
|
-
const [
|
|
5202
|
+
const [f, v] = Ie(Pa), S = Ce(!1);
|
|
5201
5203
|
return ne(() => {
|
|
5202
5204
|
if (typeof window < "u") {
|
|
5203
5205
|
try {
|
|
5204
5206
|
const I = sessionStorage.getItem(cs);
|
|
5205
5207
|
if (I) {
|
|
5206
|
-
const
|
|
5207
|
-
v(
|
|
5208
|
+
const h = JSON.parse(I);
|
|
5209
|
+
v(h);
|
|
5208
5210
|
}
|
|
5209
5211
|
} catch {
|
|
5210
5212
|
}
|
|
@@ -5212,17 +5214,17 @@ const cg = () => {
|
|
|
5212
5214
|
}
|
|
5213
5215
|
}, []), Pe(() => {
|
|
5214
5216
|
if (typeof window < "u" && S.current) try {
|
|
5215
|
-
sessionStorage.setItem(cs, JSON.stringify(
|
|
5217
|
+
sessionStorage.setItem(cs, JSON.stringify(f));
|
|
5216
5218
|
} catch {
|
|
5217
5219
|
}
|
|
5218
|
-
}, [
|
|
5220
|
+
}, [f]), [f, v];
|
|
5219
5221
|
}(), [u, g] = Ie(!1), d = a || e || !r;
|
|
5220
5222
|
Pe(() => {
|
|
5221
5223
|
i(!0);
|
|
5222
|
-
}, []), (({ accState:
|
|
5223
|
-
((I,
|
|
5224
|
+
}, []), (({ accState: f, isGettingReady: v, nodeListUpdated: S }) => {
|
|
5225
|
+
((I, h) => {
|
|
5224
5226
|
ne(() => {
|
|
5225
|
-
if (!
|
|
5227
|
+
if (!h) {
|
|
5226
5228
|
const y = document.getElementById(Ua);
|
|
5227
5229
|
if (I && !y) {
|
|
5228
5230
|
document.documentElement.classList.add(Jo);
|
|
@@ -5234,44 +5236,44 @@ const cg = () => {
|
|
|
5234
5236
|
`, document.head.appendChild(p);
|
|
5235
5237
|
} else !I && y && (document.documentElement.classList.remove(Jo), y == null || y.remove());
|
|
5236
5238
|
}
|
|
5237
|
-
}, [I,
|
|
5238
|
-
})(
|
|
5239
|
+
}, [I, h]);
|
|
5240
|
+
})(f.isFontWeightBold, v), ((I, h, y) => {
|
|
5239
5241
|
ne(() => {
|
|
5240
|
-
y ||
|
|
5241
|
-
}, [I,
|
|
5242
|
+
y || h > 0 && Qa("data-acc-mutation", I);
|
|
5243
|
+
}, [I, h, y]), ne(() => {
|
|
5242
5244
|
y || Qa("data-acc-orgfontsize", I);
|
|
5243
5245
|
}, [I, y]);
|
|
5244
|
-
})(
|
|
5246
|
+
})(f.adjustFontSizePercentage, S, v), ((I, h) => {
|
|
5245
5247
|
const y = Object.values(I).find((p) => p);
|
|
5246
5248
|
ne(() => {
|
|
5247
|
-
if (!
|
|
5248
|
-
document.documentElement.classList.add(
|
|
5249
|
+
if (!h && y && !document.getElementById(`acc-align-text-style-${y}`)) {
|
|
5250
|
+
document.documentElement.classList.add(an);
|
|
5249
5251
|
const p = document.createElement("style");
|
|
5250
5252
|
p.id = `acc-align-text-style-${y}`, p.innerHTML = `
|
|
5251
|
-
html.${
|
|
5253
|
+
html.${an} *:not(#${Se} *), *:not(#${Se} *) {
|
|
5252
5254
|
text-align:${y} !important
|
|
5253
5255
|
}
|
|
5254
5256
|
`, document.head.appendChild(p);
|
|
5255
5257
|
}
|
|
5256
|
-
}, [y,
|
|
5257
|
-
if (!
|
|
5258
|
+
}, [y, h, I]), ne(() => {
|
|
5259
|
+
if (!h) {
|
|
5258
5260
|
if (!I.left) {
|
|
5259
5261
|
const p = document.getElementById("acc-align-text-style-left");
|
|
5260
|
-
p && (p.remove(), document.documentElement.classList.remove(
|
|
5262
|
+
p && (p.remove(), document.documentElement.classList.remove(an));
|
|
5261
5263
|
}
|
|
5262
5264
|
if (!I.right) {
|
|
5263
5265
|
const p = document.getElementById("acc-align-text-style-right");
|
|
5264
|
-
p && (p.remove(), document.documentElement.classList.remove(
|
|
5266
|
+
p && (p.remove(), document.documentElement.classList.remove(an));
|
|
5265
5267
|
}
|
|
5266
5268
|
if (!I.center) {
|
|
5267
5269
|
const p = document.getElementById("acc-align-text-style-center");
|
|
5268
|
-
p && (p.remove(), document.documentElement.classList.remove(
|
|
5270
|
+
p && (p.remove(), document.documentElement.classList.remove(an));
|
|
5269
5271
|
}
|
|
5270
5272
|
}
|
|
5271
5273
|
}, [I]);
|
|
5272
|
-
})(
|
|
5274
|
+
})(f.textAlign, v), nc(f.isDyslexiaFont, v), ((I, h) => {
|
|
5273
5275
|
ne(() => {
|
|
5274
|
-
if (
|
|
5276
|
+
if (h) return;
|
|
5275
5277
|
const y = document.getElementById(Do);
|
|
5276
5278
|
if (I && !y) {
|
|
5277
5279
|
document.documentElement.classList.add(Yo);
|
|
@@ -5286,10 +5288,10 @@ const cg = () => {
|
|
|
5286
5288
|
const p = document.getElementById(Do);
|
|
5287
5289
|
document.documentElement.classList.remove(Yo), p == null || p.remove();
|
|
5288
5290
|
}
|
|
5289
|
-
}, [I,
|
|
5290
|
-
})(
|
|
5291
|
+
}, [I, h]);
|
|
5292
|
+
})(f.highlightLinks, v), ((I, h) => {
|
|
5291
5293
|
ne(() => {
|
|
5292
|
-
if (
|
|
5294
|
+
if (h) return;
|
|
5293
5295
|
const y = document.getElementById(_o);
|
|
5294
5296
|
if (I && !y) {
|
|
5295
5297
|
document.documentElement.classList.add($o);
|
|
@@ -5304,22 +5306,22 @@ const cg = () => {
|
|
|
5304
5306
|
const p = document.getElementById(_o);
|
|
5305
5307
|
document.documentElement.classList.remove($o), p == null || p.remove();
|
|
5306
5308
|
}
|
|
5307
|
-
}, [I,
|
|
5308
|
-
})(
|
|
5309
|
+
}, [I, h]);
|
|
5310
|
+
})(f.highlightTitles, v), ((I, h) => {
|
|
5309
5311
|
const y = !!I;
|
|
5310
5312
|
ne(() => {
|
|
5311
|
-
if (
|
|
5313
|
+
if (h) return;
|
|
5312
5314
|
const p = document.getElementById(Uo);
|
|
5313
5315
|
if (y && !p) {
|
|
5314
5316
|
document.documentElement.classList.add(Tn);
|
|
5315
5317
|
const C = document.createElement("style");
|
|
5316
5318
|
C.id = Uo, C.innerHTML = `
|
|
5317
|
-
html.${Tn} *:not(#${
|
|
5319
|
+
html.${Tn} *:not(#${Se} *), *:not(#${Se} *) {
|
|
5318
5320
|
letter-spacing:${I}px !important;
|
|
5319
5321
|
}
|
|
5320
5322
|
`, document.head.appendChild(C);
|
|
5321
5323
|
} else if (y && p) p.innerHTML = `
|
|
5322
|
-
html.${Tn} *:not(#${
|
|
5324
|
+
html.${Tn} *:not(#${Se} *), *:not(#${Se} *) {
|
|
5323
5325
|
letter-spacing:${I}px !important;
|
|
5324
5326
|
}
|
|
5325
5327
|
`;
|
|
@@ -5327,22 +5329,22 @@ const cg = () => {
|
|
|
5327
5329
|
const C = document.getElementById(Uo);
|
|
5328
5330
|
document.documentElement.classList.remove(Tn), C == null || C.remove();
|
|
5329
5331
|
}
|
|
5330
|
-
}, [I, y,
|
|
5331
|
-
})(
|
|
5332
|
+
}, [I, y, h]);
|
|
5333
|
+
})(f.letterSpacing, v), ((I, h) => {
|
|
5332
5334
|
const { lineHeight: y, isLineHeight: p } = I;
|
|
5333
5335
|
ne(() => {
|
|
5334
|
-
if (
|
|
5336
|
+
if (h) return;
|
|
5335
5337
|
const C = document.getElementById(Qo);
|
|
5336
5338
|
if (p && !C) {
|
|
5337
5339
|
document.documentElement.classList.add(On);
|
|
5338
5340
|
const A = document.createElement("style");
|
|
5339
5341
|
A.id = Qo, A.innerHTML = `
|
|
5340
|
-
html.${On} *:not(#${
|
|
5342
|
+
html.${On} *:not(#${Se} *), *:not(#${Se} *) {
|
|
5341
5343
|
line-height:${y.toFixed(1)} !important
|
|
5342
5344
|
}
|
|
5343
5345
|
`, document.head.appendChild(A);
|
|
5344
5346
|
} else if (p && C) C.innerHTML = `
|
|
5345
|
-
html.${On} *:not(#${
|
|
5347
|
+
html.${On} *:not(#${Se} *), *:not(#${Se} *) {
|
|
5346
5348
|
line-height:${y.toFixed(1)} !important
|
|
5347
5349
|
}
|
|
5348
5350
|
`;
|
|
@@ -5350,22 +5352,22 @@ const cg = () => {
|
|
|
5350
5352
|
const A = document.getElementById(Qo);
|
|
5351
5353
|
document.documentElement.classList.remove(On), A == null || A.remove();
|
|
5352
5354
|
}
|
|
5353
|
-
}, [y, p,
|
|
5354
|
-
})(
|
|
5355
|
+
}, [y, p, h]);
|
|
5356
|
+
})(f.lineHeight, v), ((I, h) => {
|
|
5355
5357
|
const y = !!I;
|
|
5356
5358
|
ne(() => {
|
|
5357
|
-
if (
|
|
5359
|
+
if (h) return;
|
|
5358
5360
|
const p = document.getElementById(Ko);
|
|
5359
5361
|
if (y && !p) {
|
|
5360
5362
|
document.documentElement.classList.add(zn);
|
|
5361
5363
|
const C = document.createElement("style");
|
|
5362
5364
|
C.id = Ko, C.innerHTML = `
|
|
5363
|
-
html.${zn} *:not(#${
|
|
5365
|
+
html.${zn} *:not(#${Se} *), *:not(#${jt} *) {
|
|
5364
5366
|
word-spacing:${I}px !important;
|
|
5365
5367
|
}
|
|
5366
5368
|
`, document.head.appendChild(C);
|
|
5367
5369
|
} else if (y && p) p.innerHTML = `
|
|
5368
|
-
html.${zn} *:not(#${
|
|
5370
|
+
html.${zn} *:not(#${Se} *), *:not(#${jt} *) {
|
|
5369
5371
|
word-spacing:${I}px !important;
|
|
5370
5372
|
}
|
|
5371
5373
|
`;
|
|
@@ -5373,23 +5375,23 @@ const cg = () => {
|
|
|
5373
5375
|
const C = document.getElementById(Ko);
|
|
5374
5376
|
document.documentElement.classList.remove(zn), C == null || C.remove();
|
|
5375
5377
|
}
|
|
5376
|
-
}, [I, y,
|
|
5377
|
-
})(
|
|
5378
|
+
}, [I, y, h]);
|
|
5379
|
+
})(f.wordSpacing, v), ((I, h) => {
|
|
5378
5380
|
const { zoom: y, isZoom: p } = I;
|
|
5379
5381
|
ne(() => {
|
|
5380
|
-
if (
|
|
5382
|
+
if (h) return;
|
|
5381
5383
|
const C = document.getElementById(qo);
|
|
5382
5384
|
if (p && !C) {
|
|
5383
5385
|
document.documentElement.classList.add(Xn);
|
|
5384
5386
|
const A = document.createElement("style");
|
|
5385
5387
|
A.id = qo, A.innerHTML = `
|
|
5386
|
-
html.${Xn} body *:not(#${
|
|
5388
|
+
html.${Xn} body *:not(#${Se}, #${Se} *) {
|
|
5387
5389
|
zoom: ${y.toFixed(1)} !important;
|
|
5388
5390
|
}
|
|
5389
5391
|
}
|
|
5390
5392
|
`, document.head.appendChild(A);
|
|
5391
5393
|
} else if (p && C) C.innerHTML = `
|
|
5392
|
-
html.${Xn} body *:not(#${
|
|
5394
|
+
html.${Xn} body *:not(#${Se}, #${Se} *) {
|
|
5393
5395
|
zoom: ${y.toFixed(1)} !important;
|
|
5394
5396
|
}
|
|
5395
5397
|
}
|
|
@@ -5398,10 +5400,10 @@ const cg = () => {
|
|
|
5398
5400
|
const A = document.getElementById(qo);
|
|
5399
5401
|
document.documentElement.classList.remove(Xn), A == null || A.remove();
|
|
5400
5402
|
}
|
|
5401
|
-
}, [y, p,
|
|
5402
|
-
})(
|
|
5403
|
+
}, [y, p, h]);
|
|
5404
|
+
})(f.zoom, v), hc(f.isBigCursor, v), fc(f.showReadingGuide, 100, v), ((I, h) => {
|
|
5403
5405
|
ne(() => {
|
|
5404
|
-
if (!
|
|
5406
|
+
if (!h) {
|
|
5405
5407
|
const y = document.getElementById(Ka);
|
|
5406
5408
|
if (I && !y) {
|
|
5407
5409
|
document.documentElement.classList.add(er);
|
|
@@ -5417,10 +5419,10 @@ const cg = () => {
|
|
|
5417
5419
|
`, document.head.appendChild(p);
|
|
5418
5420
|
} else !I && y && (document.documentElement.classList.remove(er), y == null || y.remove());
|
|
5419
5421
|
}
|
|
5420
|
-
}, [I,
|
|
5421
|
-
})(
|
|
5422
|
+
}, [I, h]);
|
|
5423
|
+
})(f.isBlueLightFilter, v), ((I, h) => {
|
|
5422
5424
|
ne(() => {
|
|
5423
|
-
if (!
|
|
5425
|
+
if (!h) {
|
|
5424
5426
|
if (I) {
|
|
5425
5427
|
document.documentElement.classList.add(tr);
|
|
5426
5428
|
const y = document.createElement("style");
|
|
@@ -5439,10 +5441,10 @@ const cg = () => {
|
|
|
5439
5441
|
document.documentElement.classList.remove(tr), y == null || y.remove();
|
|
5440
5442
|
};
|
|
5441
5443
|
}
|
|
5442
|
-
}, [I,
|
|
5443
|
-
})(
|
|
5444
|
+
}, [I, h]);
|
|
5445
|
+
})(f.isDarkContrast, v), ((I, h) => {
|
|
5444
5446
|
ne(() => {
|
|
5445
|
-
if (!
|
|
5447
|
+
if (!h) {
|
|
5446
5448
|
if (I) {
|
|
5447
5449
|
document.documentElement.classList.add(nr);
|
|
5448
5450
|
const y = document.createElement("style");
|
|
@@ -5461,10 +5463,10 @@ const cg = () => {
|
|
|
5461
5463
|
document.documentElement.classList.remove(nr), y == null || y.remove();
|
|
5462
5464
|
};
|
|
5463
5465
|
}
|
|
5464
|
-
}, [I,
|
|
5465
|
-
})(
|
|
5466
|
+
}, [I, h]);
|
|
5467
|
+
})(f.isLightContrast, v), ((I, h) => {
|
|
5466
5468
|
ne(() => {
|
|
5467
|
-
if (!
|
|
5469
|
+
if (!h) {
|
|
5468
5470
|
if (I) {
|
|
5469
5471
|
document.documentElement.classList.add(or);
|
|
5470
5472
|
const y = document.createElement("style");
|
|
@@ -5483,10 +5485,10 @@ const cg = () => {
|
|
|
5483
5485
|
document.documentElement.classList.remove(or), y == null || y.remove();
|
|
5484
5486
|
};
|
|
5485
5487
|
}
|
|
5486
|
-
}, [I,
|
|
5487
|
-
})(
|
|
5488
|
+
}, [I, h]);
|
|
5489
|
+
})(f.isVisualImpairment, v), ((I, h) => {
|
|
5488
5490
|
ne(() => {
|
|
5489
|
-
if (!
|
|
5491
|
+
if (!h) {
|
|
5490
5492
|
if (I) {
|
|
5491
5493
|
document.documentElement.classList.add(rr);
|
|
5492
5494
|
const y = document.createElement("style");
|
|
@@ -5505,8 +5507,8 @@ const cg = () => {
|
|
|
5505
5507
|
document.documentElement.classList.remove(rr), y == null || y.remove();
|
|
5506
5508
|
};
|
|
5507
5509
|
}
|
|
5508
|
-
}, [I,
|
|
5509
|
-
})(
|
|
5510
|
+
}, [I, h]);
|
|
5511
|
+
})(f.isMonochrome, v), ((I, h, y) => {
|
|
5510
5512
|
ne(() => {
|
|
5511
5513
|
if (y) return;
|
|
5512
5514
|
const p = document.getElementById(os);
|
|
@@ -5515,24 +5517,24 @@ const cg = () => {
|
|
|
5515
5517
|
const C = document.createElement("style");
|
|
5516
5518
|
C.id = os, C.innerHTML = `
|
|
5517
5519
|
html.${Hn} {
|
|
5518
|
-
-o-filter: contrast(${
|
|
5519
|
-
-ms-filter: contrast(${
|
|
5520
|
-
-moz-filter: contrast(${
|
|
5521
|
-
-webkit-filter: contrast(${
|
|
5522
|
-
filter: contrast(${
|
|
5520
|
+
-o-filter: contrast(${h}%) !important;
|
|
5521
|
+
-ms-filter: contrast(${h}%) !important;
|
|
5522
|
+
-moz-filter: contrast(${h}%) !important;
|
|
5523
|
+
-webkit-filter: contrast(${h}%) !important;
|
|
5524
|
+
filter: contrast(${h}%) !important;
|
|
5523
5525
|
}
|
|
5524
5526
|
`, document.head.appendChild(C);
|
|
5525
5527
|
} else I && p ? p.innerHTML = `
|
|
5526
5528
|
html.${Hn} {
|
|
5527
|
-
-o-filter: contrast(${
|
|
5528
|
-
-ms-filter: contrast(${
|
|
5529
|
-
-moz-filter: contrast(${
|
|
5530
|
-
-webkit-filter: contrast(${
|
|
5531
|
-
filter: contrast(${
|
|
5529
|
+
-o-filter: contrast(${h}%) !important;
|
|
5530
|
+
-ms-filter: contrast(${h}%) !important;
|
|
5531
|
+
-moz-filter: contrast(${h}%) !important;
|
|
5532
|
+
-webkit-filter: contrast(${h}%) !important;
|
|
5533
|
+
filter: contrast(${h}%) !important;
|
|
5532
5534
|
}
|
|
5533
5535
|
` : !I && p && (document.documentElement.classList.remove(Hn), p == null || p.remove());
|
|
5534
|
-
}, [I,
|
|
5535
|
-
})(
|
|
5536
|
+
}, [I, h, y]);
|
|
5537
|
+
})(f.highContrast.isHighContrast, f.highContrast.contrast, v), ((I, h, y) => {
|
|
5536
5538
|
ne(() => {
|
|
5537
5539
|
if (y) return;
|
|
5538
5540
|
const p = document.getElementById(rs);
|
|
@@ -5541,24 +5543,24 @@ const cg = () => {
|
|
|
5541
5543
|
const C = document.createElement("style");
|
|
5542
5544
|
C.id = rs, C.innerHTML = `
|
|
5543
5545
|
html.${Pn} {
|
|
5544
|
-
-o-filter: brightness(${
|
|
5545
|
-
-ms-filter: brightness(${
|
|
5546
|
-
-moz-filter: brightness(${
|
|
5547
|
-
-webkit-filter: brightness(${
|
|
5548
|
-
filter: brightness(${
|
|
5546
|
+
-o-filter: brightness(${h}%) !important;
|
|
5547
|
+
-ms-filter: brightness(${h}%) !important;
|
|
5548
|
+
-moz-filter: brightness(${h}%) !important;
|
|
5549
|
+
-webkit-filter: brightness(${h}%) !important;
|
|
5550
|
+
filter: brightness(${h}%) !important;
|
|
5549
5551
|
}
|
|
5550
5552
|
`, document.head.appendChild(C);
|
|
5551
5553
|
} else I && p ? p.innerHTML = `
|
|
5552
5554
|
html.${Pn} {
|
|
5553
|
-
-o-filter: brightness(${
|
|
5554
|
-
-ms-filter: brightness(${
|
|
5555
|
-
-moz-filter: brightness(${
|
|
5556
|
-
-webkit-filter: brightness(${
|
|
5557
|
-
filter: brightness(${
|
|
5555
|
+
-o-filter: brightness(${h}%) !important;
|
|
5556
|
+
-ms-filter: brightness(${h}%) !important;
|
|
5557
|
+
-moz-filter: brightness(${h}%) !important;
|
|
5558
|
+
-webkit-filter: brightness(${h}%) !important;
|
|
5559
|
+
filter: brightness(${h}%) !important;
|
|
5558
5560
|
}
|
|
5559
5561
|
` : !I && p && (document.documentElement.classList.remove(Pn), p == null || p.remove());
|
|
5560
|
-
}, [I,
|
|
5561
|
-
})(
|
|
5562
|
+
}, [I, h, y]);
|
|
5563
|
+
})(f.brightness.isBrightness, f.brightness.brightness, v), ((I, h, y) => {
|
|
5562
5564
|
ne(() => {
|
|
5563
5565
|
if (y) return;
|
|
5564
5566
|
const p = document.getElementById(is);
|
|
@@ -5567,24 +5569,24 @@ const cg = () => {
|
|
|
5567
5569
|
const C = document.createElement("style");
|
|
5568
5570
|
C.id = is, C.innerHTML = `
|
|
5569
5571
|
html.${Fn} {
|
|
5570
|
-
-o-filter: saturate(${
|
|
5571
|
-
-ms-filter: saturate(${
|
|
5572
|
-
-moz-filter: saturate(${
|
|
5573
|
-
-webkit-filter: saturate(${
|
|
5574
|
-
filter: saturate(${
|
|
5572
|
+
-o-filter: saturate(${h}%) !important;
|
|
5573
|
+
-ms-filter: saturate(${h}%) !important;
|
|
5574
|
+
-moz-filter: saturate(${h}%) !important;
|
|
5575
|
+
-webkit-filter: saturate(${h}%) !important;
|
|
5576
|
+
filter: saturate(${h}%) !important;
|
|
5575
5577
|
}
|
|
5576
5578
|
`, document.head.appendChild(C);
|
|
5577
5579
|
} else I && p ? p.innerHTML = `
|
|
5578
5580
|
html.${Fn} {
|
|
5579
|
-
-o-filter: saturate(${
|
|
5580
|
-
-ms-filter: saturate(${
|
|
5581
|
-
-moz-filter: saturate(${
|
|
5582
|
-
-webkit-filter: saturate(${
|
|
5583
|
-
filter: saturate(${
|
|
5581
|
+
-o-filter: saturate(${h}%) !important;
|
|
5582
|
+
-ms-filter: saturate(${h}%) !important;
|
|
5583
|
+
-moz-filter: saturate(${h}%) !important;
|
|
5584
|
+
-webkit-filter: saturate(${h}%) !important;
|
|
5585
|
+
filter: saturate(${h}%) !important;
|
|
5584
5586
|
}
|
|
5585
5587
|
` : !I && p && (document.documentElement.classList.remove(Fn), p == null || p.remove());
|
|
5586
|
-
}, [I,
|
|
5587
|
-
})(
|
|
5588
|
+
}, [I, h, y]);
|
|
5589
|
+
})(f.highSaturation.isHighSaturation, f.highSaturation.saturation, v), ((I, h, y) => {
|
|
5588
5590
|
ne(() => {
|
|
5589
5591
|
if (y) return;
|
|
5590
5592
|
const p = document.getElementById(as);
|
|
@@ -5593,30 +5595,30 @@ const cg = () => {
|
|
|
5593
5595
|
const C = document.createElement("style");
|
|
5594
5596
|
C.id = as, C.innerHTML = `
|
|
5595
5597
|
html.${jn} {
|
|
5596
|
-
-o-filter: saturate(${
|
|
5597
|
-
-ms-filter: saturate(${
|
|
5598
|
-
-moz-filter: saturate(${
|
|
5599
|
-
-webkit-filter: saturate(${
|
|
5600
|
-
filter: saturate(${
|
|
5598
|
+
-o-filter: saturate(${h}%) !important;
|
|
5599
|
+
-ms-filter: saturate(${h}%) !important;
|
|
5600
|
+
-moz-filter: saturate(${h}%) !important;
|
|
5601
|
+
-webkit-filter: saturate(${h}%) !important;
|
|
5602
|
+
filter: saturate(${h}%) !important;
|
|
5601
5603
|
}
|
|
5602
5604
|
`, document.head.appendChild(C);
|
|
5603
5605
|
} else I && p ? p.innerHTML = `
|
|
5604
5606
|
html.${jn} {
|
|
5605
|
-
-o-filter: saturate(${
|
|
5606
|
-
-ms-filter: saturate(${
|
|
5607
|
-
-moz-filter: saturate(${
|
|
5608
|
-
-webkit-filter: saturate(${
|
|
5609
|
-
filter: saturate(${
|
|
5607
|
+
-o-filter: saturate(${h}%) !important;
|
|
5608
|
+
-ms-filter: saturate(${h}%) !important;
|
|
5609
|
+
-moz-filter: saturate(${h}%) !important;
|
|
5610
|
+
-webkit-filter: saturate(${h}%) !important;
|
|
5611
|
+
filter: saturate(${h}%) !important;
|
|
5610
5612
|
}
|
|
5611
5613
|
` : !I && p && (document.documentElement.classList.remove(jn), p == null || p.remove());
|
|
5612
|
-
}, [I,
|
|
5613
|
-
})(
|
|
5614
|
-
const y = St(() => xt.reduce((C, A,
|
|
5614
|
+
}, [I, h, y]);
|
|
5615
|
+
})(f.lowSaturation.isLowSaturation, f.lowSaturation.saturation, v), ((I, h) => {
|
|
5616
|
+
const y = St(() => xt.reduce((C, A, M) => {
|
|
5615
5617
|
const F = xt.length - 1;
|
|
5616
|
-
return C + `html.${ir} ${A}:not(#${
|
|
5617
|
-
}, ""), []), p = xt.map((C) => `${C}:not(#${
|
|
5618
|
+
return C + `html.${ir} ${A}:not(#${Se} *)${M === F ? "" : ","}`;
|
|
5619
|
+
}, ""), []), p = xt.map((C) => `${C}:not(#${Se} *)`).join(",");
|
|
5618
5620
|
ne(() => {
|
|
5619
|
-
if (
|
|
5621
|
+
if (h) return;
|
|
5620
5622
|
const C = document.getElementById(ss);
|
|
5621
5623
|
if (I && !C) {
|
|
5622
5624
|
document.documentElement.classList.add(ir);
|
|
@@ -5631,17 +5633,17 @@ const cg = () => {
|
|
|
5631
5633
|
color: ${I} !important;
|
|
5632
5634
|
}
|
|
5633
5635
|
` : !I && C && (document.documentElement.classList.remove(ir), C == null || C.remove());
|
|
5634
|
-
}, [I, p, y,
|
|
5635
|
-
})(
|
|
5636
|
+
}, [I, p, y, h]);
|
|
5637
|
+
})(f.color, v);
|
|
5636
5638
|
})({ accState: c, isGettingReady: d, nodeListUpdated: s });
|
|
5637
5639
|
const b = og.includes(c.language) ? "rtl" : "ltr", m = () => {
|
|
5638
|
-
g((
|
|
5640
|
+
g((f) => !f);
|
|
5639
5641
|
};
|
|
5640
5642
|
return Pe(() => {
|
|
5641
|
-
const
|
|
5642
|
-
Promise.all(
|
|
5643
|
-
$a.forEach((I,
|
|
5644
|
-
v[I.lang] = { translation: S[
|
|
5643
|
+
const f = $a.map((S) => (async (I) => (await fetch(I)).json())(`https://rosengray.github.io/static/locale/${S.name}.json`)), v = {};
|
|
5644
|
+
Promise.all(f).then((S) => {
|
|
5645
|
+
$a.forEach((I, h) => {
|
|
5646
|
+
v[I.lang] = { translation: S[h] };
|
|
5645
5647
|
}), ye.init({ fallbackLng: "he-IL", resources: v }), ye.languages = ng, n(!0);
|
|
5646
5648
|
}).catch(() => {
|
|
5647
5649
|
ye.init({ fallbackLng: "en", resources: { en: { translation: rg } } });
|
|
@@ -5654,14 +5656,14 @@ const cg = () => {
|
|
|
5654
5656
|
}
|
|
5655
5657
|
})();
|
|
5656
5658
|
});
|
|
5657
|
-
}, []), d ? w.jsx(Si, { showSpinner: d }) : w.jsxs(w.Fragment, { children: [w.jsx(_a, { wrapperElementId: "acc-portal-[readingGuide-container]", children: "." }), w.jsx(_a, { wrapperElementId:
|
|
5658
|
-
ye.changeLanguage(
|
|
5659
|
+
}, []), d ? w.jsx(Si, { showSpinner: d }) : w.jsxs(w.Fragment, { children: [w.jsx(_a, { wrapperElementId: "acc-portal-[readingGuide-container]", children: "." }), w.jsx(_a, { wrapperElementId: Se, children: w.jsxs("div", { id: jt, style: { direction: b, fontSize: 50 }, className: Hc.Accessibilik, "data-acc-language": c.language, children: [w.jsx(Si, { onShow: m }), w.jsx(Jd, { display: u ? "block" : "none", showAcc: u, accState: c, onLangChange: (f) => {
|
|
5660
|
+
ye.changeLanguage(f, () => {
|
|
5659
5661
|
l((v) => hr(v, (S) => {
|
|
5660
|
-
S.language =
|
|
5662
|
+
S.language = f;
|
|
5661
5663
|
}));
|
|
5662
5664
|
});
|
|
5663
|
-
}, onChangeAccState: (
|
|
5664
|
-
l((v) => hr(v,
|
|
5665
|
+
}, onChangeAccState: (f) => {
|
|
5666
|
+
l((v) => hr(v, f));
|
|
5665
5667
|
}, onInit: () => {
|
|
5666
5668
|
l(Pa());
|
|
5667
5669
|
}, onShow: m, hasLanguages: o })] }) })] });
|