@streamlayer/react 1.21.4 → 1.22.2
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/lib/app/masters.d.ts +2 -5
- package/lib/app/pause-ad.d.ts +1 -10
- package/lib/app/useStreamLayerApp.d.ts +1 -23
- package/lib/cjs/Question.js +1 -0
- package/lib/cjs/advertisement.js +40 -40
- package/lib/cjs/analytics.js +1 -0
- package/lib/cjs/auth.js +1 -1
- package/lib/cjs/bet-pack.js +1 -1
- package/lib/cjs/gamification-feature.js +1 -1
- package/lib/cjs/hooks-B0Qttldg.js +1 -0
- package/lib/cjs/index-DSi8Qgfs.js +1 -0
- package/lib/cjs/index.js +1 -1
- package/lib/cjs/index10.js +1 -0
- package/lib/cjs/index11.js +4 -0
- package/lib/cjs/index12.js +1 -0
- package/lib/cjs/index13.js +1 -0
- package/lib/cjs/index14.js +1 -0
- package/lib/cjs/index15.js +1 -0
- package/lib/cjs/index16.js +5 -0
- package/lib/cjs/index2.js +1 -5
- package/lib/cjs/index3.js +1 -0
- package/lib/cjs/index4.js +5 -0
- package/lib/cjs/index5.js +1 -0
- package/lib/cjs/index6.js +1 -0
- package/lib/cjs/index7.js +5 -0
- package/lib/cjs/index8.js +1 -0
- package/lib/cjs/index9.js +1 -0
- package/lib/cjs/insight.js +1 -1
- package/lib/cjs/masters.js +1 -1
- package/lib/cjs/masters2.js +6 -6
- package/lib/cjs/notification.js +1 -1
- package/lib/cjs/pause-ad.js +1 -1
- package/lib/cjs/points.js +1 -1
- package/lib/cjs/sl-types.js +15 -0
- package/lib/cjs/storage.js +1 -0
- package/lib/cjs/theme.js +17 -0
- package/lib/cjs/useStreamLayerApp.js +1 -1
- package/lib/cjs/useStreamLayerApp2.js +9 -9
- package/lib/cjs/utils.js +47 -0
- package/lib/cjs/vast-client.min.js +1 -0
- package/lib/classic/app/masters.d.ts +2 -5
- package/lib/classic/app/pause-ad.d.ts +1 -10
- package/lib/classic/app/useStreamLayerApp.d.ts +1 -23
- package/lib/classic/cjs/Question.js +1 -0
- package/lib/classic/cjs/advertisement.js +40 -40
- package/lib/classic/cjs/analytics.js +1 -0
- package/lib/classic/cjs/auth.js +1 -1
- package/lib/classic/cjs/bet-pack.js +4 -4
- package/lib/classic/cjs/gamification-feature.js +1 -1
- package/lib/classic/cjs/hooks-B0Qttldg.js +1 -0
- package/lib/classic/cjs/index-DSi8Qgfs.js +1 -0
- package/lib/classic/cjs/index.js +1 -1
- package/lib/classic/cjs/index10.js +1 -0
- package/lib/classic/cjs/index11.js +1 -0
- package/lib/classic/cjs/index12.js +1 -0
- package/lib/classic/cjs/index13.js +4 -0
- package/lib/classic/cjs/index2.js +5 -0
- package/lib/classic/cjs/index3.js +1 -0
- package/lib/classic/cjs/index4.js +1 -0
- package/lib/classic/cjs/index5.js +1 -0
- package/lib/classic/cjs/index6.js +5 -0
- package/lib/classic/cjs/index7.js +1 -0
- package/lib/classic/cjs/index8.js +1 -0
- package/lib/classic/cjs/index9.js +1 -0
- package/lib/classic/cjs/insight.js +1 -1
- package/lib/classic/cjs/notification.js +1 -1
- package/lib/classic/cjs/notification2.js +1 -0
- package/lib/classic/cjs/pause-ad.js +1 -1
- package/lib/classic/cjs/points.js +1 -1
- package/lib/classic/cjs/sl-types.js +15 -0
- package/lib/classic/cjs/useStreamLayerApp.js +1 -1
- package/lib/classic/cjs/useStreamLayerApp2.js +9 -9
- package/lib/classic/cjs/utils.js +47 -0
- package/lib/classic/cjs/vast-client.min.js +1 -0
- package/lib/classic/es/Question.js +392 -0
- package/lib/classic/es/advertisement.js +10375 -10374
- package/lib/classic/es/analytics.js +28 -0
- package/lib/classic/es/auth.js +4 -4
- package/lib/classic/es/bet-pack.js +56 -51
- package/lib/classic/es/gamification-feature.js +1 -1
- package/lib/classic/es/hooks-B0Qttldg.js +98 -0
- package/lib/classic/es/index-DSi8Qgfs.js +65 -0
- package/lib/classic/es/index.js +14 -15
- package/lib/classic/es/index10.js +87 -0
- package/lib/classic/es/index11.js +2361 -0
- package/lib/classic/es/index12.js +183 -0
- package/lib/classic/es/index13.js +835 -0
- package/lib/classic/es/index2.js +2621 -0
- package/lib/classic/es/index3.js +64 -0
- package/lib/classic/es/index4.js +19 -0
- package/lib/classic/es/index5.js +285 -0
- package/lib/classic/es/{index-l-eyvmpL.js → index6.js} +937 -937
- package/lib/classic/es/index7.js +7 -0
- package/lib/classic/es/index8.js +11 -0
- package/lib/classic/es/index9.js +319 -0
- package/lib/classic/es/insight.js +31 -32
- package/lib/classic/es/notification.js +7 -1006
- package/lib/classic/es/notification2.js +1117 -0
- package/lib/classic/es/pause-ad.js +139 -138
- package/lib/classic/es/points.js +39 -38
- package/lib/classic/es/sl-types.js +258 -0
- package/lib/classic/es/useStreamLayerApp.js +1 -2
- package/lib/classic/es/useStreamLayerApp2.js +2400 -2283
- package/lib/classic/es/utils.js +76 -0
- package/lib/{es/vast-client.min-B0NUra1B.js → classic/es/vast-client.min.js} +338 -338
- package/lib/classic/index.d.ts +5 -13
- package/lib/classic/masters.d.ts +1 -1
- package/lib/dist/cjs/index.js +1 -1
- package/lib/dist/cjs/masters.js +30 -30
- package/lib/dist/es/index.js +2 -2
- package/lib/dist/es/masters.js +5813 -6063
- package/lib/dist/index.d.ts +1332 -0
- package/lib/dist/style.css +1 -1
- package/lib/es/Question.js +136 -0
- package/lib/es/advertisement.js +10375 -10374
- package/lib/es/analytics.js +28 -0
- package/lib/es/auth.js +4 -4
- package/lib/es/bet-pack.js +7 -6
- package/lib/es/gamification-feature.js +1 -1
- package/lib/es/hooks-B0Qttldg.js +98 -0
- package/lib/es/index-DSi8Qgfs.js +65 -0
- package/lib/es/index.js +13 -14
- package/lib/es/index10.js +267 -0
- package/lib/es/index11.js +835 -0
- package/lib/es/index12.js +183 -0
- package/lib/es/index13.js +319 -0
- package/lib/es/index14.js +87 -0
- package/lib/es/index15.js +2355 -0
- package/lib/es/index16.js +1254 -0
- package/lib/es/index2.js +1349 -3363
- package/lib/es/index3.js +64 -0
- package/lib/es/index4.js +3418 -0
- package/lib/es/index5.js +19 -0
- package/lib/es/index6.js +285 -0
- package/lib/es/{index-l-eyvmpL.js → index7.js} +937 -937
- package/lib/es/index8.js +7 -0
- package/lib/es/index9.js +11 -0
- package/lib/es/insight.js +31 -32
- package/lib/es/masters.js +6 -5
- package/lib/es/masters2.js +189 -176
- package/lib/es/notification.js +124 -119
- package/lib/es/pause-ad.js +140 -139
- package/lib/es/points.js +40 -38
- package/lib/es/sl-types.js +277 -0
- package/lib/es/storage.js +113 -0
- package/lib/es/theme.js +47 -0
- package/lib/es/useStreamLayerApp.js +1 -2
- package/lib/es/useStreamLayerApp2.js +2399 -2282
- package/lib/es/utils.js +76 -0
- package/lib/{classic/es/vast-client.min-B0NUra1B.js → es/vast-client.min.js} +338 -338
- package/lib/index.d.ts +5 -13
- package/lib/masters.d.ts +1 -1
- package/lib/style.css +1 -1
- package/package.json +13 -48
- package/lib/app/event.d.ts +0 -6
- package/lib/app/provider.d.ts +0 -49
- package/lib/cjs/index-l-eyvmpL.js +0 -5
- package/lib/cjs/provider.js +0 -84
- package/lib/cjs/vast-client.min-B0NUra1B.js +0 -1
- package/lib/classic/app/event.d.ts +0 -6
- package/lib/classic/app/provider.d.ts +0 -49
- package/lib/classic/cjs/index-l-eyvmpL.js +0 -5
- package/lib/classic/cjs/provider.js +0 -68
- package/lib/classic/cjs/vast-client.min-B0NUra1B.js +0 -1
- package/lib/classic/es/provider.js +0 -7617
- package/lib/dist/cjs/gamification-feature2.js +0 -1
- package/lib/dist/es/gamification-feature2.js +0 -285
- package/lib/es/provider.js +0 -7693
|
@@ -0,0 +1,2355 @@
|
|
|
1
|
+
import bs from "react";
|
|
2
|
+
var Re = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
3
|
+
function Sf(e) {
|
|
4
|
+
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
5
|
+
}
|
|
6
|
+
function Ef(e) {
|
|
7
|
+
if (e.__esModule) return e;
|
|
8
|
+
var r = e.default;
|
|
9
|
+
if (typeof r == "function") {
|
|
10
|
+
var t = function n() {
|
|
11
|
+
return this instanceof n ? Reflect.construct(r, arguments, this.constructor) : r.apply(this, arguments);
|
|
12
|
+
};
|
|
13
|
+
t.prototype = r.prototype;
|
|
14
|
+
} else t = {};
|
|
15
|
+
return Object.defineProperty(t, "__esModule", { value: !0 }), Object.keys(e).forEach(function(n) {
|
|
16
|
+
var a = Object.getOwnPropertyDescriptor(e, n);
|
|
17
|
+
Object.defineProperty(t, n, a.get ? a : {
|
|
18
|
+
enumerable: !0,
|
|
19
|
+
get: function() {
|
|
20
|
+
return e[n];
|
|
21
|
+
}
|
|
22
|
+
});
|
|
23
|
+
}), t;
|
|
24
|
+
}
|
|
25
|
+
var Wi = { exports: {} }, He, Tn;
|
|
26
|
+
function de() {
|
|
27
|
+
if (Tn) return He;
|
|
28
|
+
Tn = 1;
|
|
29
|
+
function e(r) {
|
|
30
|
+
var t = typeof r;
|
|
31
|
+
return r != null && (t == "object" || t == "function");
|
|
32
|
+
}
|
|
33
|
+
return He = e, He;
|
|
34
|
+
}
|
|
35
|
+
var $e, An;
|
|
36
|
+
function Yi() {
|
|
37
|
+
if (An) return $e;
|
|
38
|
+
An = 1;
|
|
39
|
+
var e = typeof Re == "object" && Re && Re.Object === Object && Re;
|
|
40
|
+
return $e = e, $e;
|
|
41
|
+
}
|
|
42
|
+
var Ge, On;
|
|
43
|
+
function ie() {
|
|
44
|
+
if (On) return Ge;
|
|
45
|
+
On = 1;
|
|
46
|
+
var e = Yi(), r = typeof self == "object" && self && self.Object === Object && self, t = e || r || Function("return this")();
|
|
47
|
+
return Ge = t, Ge;
|
|
48
|
+
}
|
|
49
|
+
var ke, xn;
|
|
50
|
+
function _s() {
|
|
51
|
+
if (xn) return ke;
|
|
52
|
+
xn = 1;
|
|
53
|
+
var e = ie(), r = function() {
|
|
54
|
+
return e.Date.now();
|
|
55
|
+
};
|
|
56
|
+
return ke = r, ke;
|
|
57
|
+
}
|
|
58
|
+
var Ue, Kn;
|
|
59
|
+
function ms() {
|
|
60
|
+
if (Kn) return Ue;
|
|
61
|
+
Kn = 1;
|
|
62
|
+
var e = /\s/;
|
|
63
|
+
function r(t) {
|
|
64
|
+
for (var n = t.length; n-- && e.test(t.charAt(n)); )
|
|
65
|
+
;
|
|
66
|
+
return n;
|
|
67
|
+
}
|
|
68
|
+
return Ue = r, Ue;
|
|
69
|
+
}
|
|
70
|
+
var ze, Sn;
|
|
71
|
+
function Cs() {
|
|
72
|
+
if (Sn) return ze;
|
|
73
|
+
Sn = 1;
|
|
74
|
+
var e = ms(), r = /^\s+/;
|
|
75
|
+
function t(n) {
|
|
76
|
+
return n && n.slice(0, e(n) + 1).replace(r, "");
|
|
77
|
+
}
|
|
78
|
+
return ze = t, ze;
|
|
79
|
+
}
|
|
80
|
+
var We, En;
|
|
81
|
+
function we() {
|
|
82
|
+
if (En) return We;
|
|
83
|
+
En = 1;
|
|
84
|
+
var e = ie(), r = e.Symbol;
|
|
85
|
+
return We = r, We;
|
|
86
|
+
}
|
|
87
|
+
var Ye, Pn;
|
|
88
|
+
function Fs() {
|
|
89
|
+
if (Pn) return Ye;
|
|
90
|
+
Pn = 1;
|
|
91
|
+
var e = we(), r = Object.prototype, t = r.hasOwnProperty, n = r.toString, a = e ? e.toStringTag : void 0;
|
|
92
|
+
function i(o) {
|
|
93
|
+
var u = t.call(o, a), v = o[a];
|
|
94
|
+
try {
|
|
95
|
+
o[a] = void 0;
|
|
96
|
+
var h = !0;
|
|
97
|
+
} catch {
|
|
98
|
+
}
|
|
99
|
+
var m = n.call(o);
|
|
100
|
+
return h && (u ? o[a] = v : delete o[a]), m;
|
|
101
|
+
}
|
|
102
|
+
return Ye = i, Ye;
|
|
103
|
+
}
|
|
104
|
+
var Xe, Mn;
|
|
105
|
+
function qs() {
|
|
106
|
+
if (Mn) return Xe;
|
|
107
|
+
Mn = 1;
|
|
108
|
+
var e = Object.prototype, r = e.toString;
|
|
109
|
+
function t(n) {
|
|
110
|
+
return r.call(n);
|
|
111
|
+
}
|
|
112
|
+
return Xe = t, Xe;
|
|
113
|
+
}
|
|
114
|
+
var Je, In;
|
|
115
|
+
function Te() {
|
|
116
|
+
if (In) return Je;
|
|
117
|
+
In = 1;
|
|
118
|
+
var e = we(), r = Fs(), t = qs(), n = "[object Null]", a = "[object Undefined]", i = e ? e.toStringTag : void 0;
|
|
119
|
+
function o(u) {
|
|
120
|
+
return u == null ? u === void 0 ? a : n : i && i in Object(u) ? r(u) : t(u);
|
|
121
|
+
}
|
|
122
|
+
return Je = o, Je;
|
|
123
|
+
}
|
|
124
|
+
var Ze, Dn;
|
|
125
|
+
function ve() {
|
|
126
|
+
if (Dn) return Ze;
|
|
127
|
+
Dn = 1;
|
|
128
|
+
function e(r) {
|
|
129
|
+
return r != null && typeof r == "object";
|
|
130
|
+
}
|
|
131
|
+
return Ze = e, Ze;
|
|
132
|
+
}
|
|
133
|
+
var Qe, Ln;
|
|
134
|
+
function Ae() {
|
|
135
|
+
if (Ln) return Qe;
|
|
136
|
+
Ln = 1;
|
|
137
|
+
var e = Te(), r = ve(), t = "[object Symbol]";
|
|
138
|
+
function n(a) {
|
|
139
|
+
return typeof a == "symbol" || r(a) && e(a) == t;
|
|
140
|
+
}
|
|
141
|
+
return Qe = n, Qe;
|
|
142
|
+
}
|
|
143
|
+
var Ve, Nn;
|
|
144
|
+
function Rs() {
|
|
145
|
+
if (Nn) return Ve;
|
|
146
|
+
Nn = 1;
|
|
147
|
+
var e = Cs(), r = de(), t = Ae(), n = NaN, a = /^[-+]0x[0-9a-f]+$/i, i = /^0b[01]+$/i, o = /^0o[0-7]+$/i, u = parseInt;
|
|
148
|
+
function v(h) {
|
|
149
|
+
if (typeof h == "number")
|
|
150
|
+
return h;
|
|
151
|
+
if (t(h))
|
|
152
|
+
return n;
|
|
153
|
+
if (r(h)) {
|
|
154
|
+
var m = typeof h.valueOf == "function" ? h.valueOf() : h;
|
|
155
|
+
h = r(m) ? m + "" : m;
|
|
156
|
+
}
|
|
157
|
+
if (typeof h != "string")
|
|
158
|
+
return h === 0 ? h : +h;
|
|
159
|
+
h = e(h);
|
|
160
|
+
var _ = i.test(h);
|
|
161
|
+
return _ || o.test(h) ? u(h.slice(2), _ ? 2 : 8) : a.test(h) ? n : +h;
|
|
162
|
+
}
|
|
163
|
+
return Ve = v, Ve;
|
|
164
|
+
}
|
|
165
|
+
var er, Bn;
|
|
166
|
+
function Xi() {
|
|
167
|
+
if (Bn) return er;
|
|
168
|
+
Bn = 1;
|
|
169
|
+
var e = de(), r = _s(), t = Rs(), n = "Expected a function", a = Math.max, i = Math.min;
|
|
170
|
+
function o(u, v, h) {
|
|
171
|
+
var m, _, I, P, N, K, b = 0, l = !1, g = !1, C = !0;
|
|
172
|
+
if (typeof u != "function")
|
|
173
|
+
throw new TypeError(n);
|
|
174
|
+
v = t(v) || 0, e(h) && (l = !!h.leading, g = "maxWait" in h, I = g ? a(t(h.maxWait) || 0, v) : I, C = "trailing" in h ? !!h.trailing : C);
|
|
175
|
+
function y(T) {
|
|
176
|
+
var k = m, X = _;
|
|
177
|
+
return m = _ = void 0, b = T, P = u.apply(X, k), P;
|
|
178
|
+
}
|
|
179
|
+
function S(T) {
|
|
180
|
+
return b = T, N = setTimeout(L, v), l ? y(T) : P;
|
|
181
|
+
}
|
|
182
|
+
function O(T) {
|
|
183
|
+
var k = T - K, X = T - b, te = v - k;
|
|
184
|
+
return g ? i(te, I - X) : te;
|
|
185
|
+
}
|
|
186
|
+
function q(T) {
|
|
187
|
+
var k = T - K, X = T - b;
|
|
188
|
+
return K === void 0 || k >= v || k < 0 || g && X >= I;
|
|
189
|
+
}
|
|
190
|
+
function L() {
|
|
191
|
+
var T = r();
|
|
192
|
+
if (q(T))
|
|
193
|
+
return R(T);
|
|
194
|
+
N = setTimeout(L, O(T));
|
|
195
|
+
}
|
|
196
|
+
function R(T) {
|
|
197
|
+
return N = void 0, C && m ? y(T) : (m = _ = void 0, P);
|
|
198
|
+
}
|
|
199
|
+
function x() {
|
|
200
|
+
N !== void 0 && clearTimeout(N), b = 0, m = K = _ = N = void 0;
|
|
201
|
+
}
|
|
202
|
+
function E() {
|
|
203
|
+
return N === void 0 ? P : R(r());
|
|
204
|
+
}
|
|
205
|
+
function $() {
|
|
206
|
+
var T = r(), k = q(T);
|
|
207
|
+
if (m = arguments, _ = this, K = T, k) {
|
|
208
|
+
if (N === void 0)
|
|
209
|
+
return S(K);
|
|
210
|
+
if (g)
|
|
211
|
+
return clearTimeout(N), N = setTimeout(L, v), y(K);
|
|
212
|
+
}
|
|
213
|
+
return N === void 0 && (N = setTimeout(L, v)), P;
|
|
214
|
+
}
|
|
215
|
+
return $.cancel = x, $.flush = E, $;
|
|
216
|
+
}
|
|
217
|
+
return er = o, er;
|
|
218
|
+
}
|
|
219
|
+
var rr, jn;
|
|
220
|
+
function Ji() {
|
|
221
|
+
if (jn) return rr;
|
|
222
|
+
jn = 1;
|
|
223
|
+
var e = Te(), r = de(), t = "[object AsyncFunction]", n = "[object Function]", a = "[object GeneratorFunction]", i = "[object Proxy]";
|
|
224
|
+
function o(u) {
|
|
225
|
+
if (!r(u))
|
|
226
|
+
return !1;
|
|
227
|
+
var v = e(u);
|
|
228
|
+
return v == n || v == a || v == t || v == i;
|
|
229
|
+
}
|
|
230
|
+
return rr = o, rr;
|
|
231
|
+
}
|
|
232
|
+
var ws = ie(), Ts = ws["__core-js_shared__"], As = Ts, tr = As, Hn = function() {
|
|
233
|
+
var e = /[^.]+$/.exec(tr && tr.keys && tr.keys.IE_PROTO || "");
|
|
234
|
+
return e ? "Symbol(src)_1." + e : "";
|
|
235
|
+
}();
|
|
236
|
+
function Os(e) {
|
|
237
|
+
return !!Hn && Hn in e;
|
|
238
|
+
}
|
|
239
|
+
var xs = Os, Ks = Function.prototype, Ss = Ks.toString;
|
|
240
|
+
function Es(e) {
|
|
241
|
+
if (e != null) {
|
|
242
|
+
try {
|
|
243
|
+
return Ss.call(e);
|
|
244
|
+
} catch {
|
|
245
|
+
}
|
|
246
|
+
try {
|
|
247
|
+
return e + "";
|
|
248
|
+
} catch {
|
|
249
|
+
}
|
|
250
|
+
}
|
|
251
|
+
return "";
|
|
252
|
+
}
|
|
253
|
+
var Zi = Es, Ps = Ji(), Ms = xs, Is = de(), Ds = Zi, Ls = /[\\^$.*+?()[\]{}|]/g, Ns = /^\[object .+?Constructor\]$/, Bs = Function.prototype, js = Object.prototype, Hs = Bs.toString, $s = js.hasOwnProperty, Gs = RegExp(
|
|
254
|
+
"^" + Hs.call($s).replace(Ls, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
255
|
+
);
|
|
256
|
+
function ks(e) {
|
|
257
|
+
if (!Is(e) || Ms(e))
|
|
258
|
+
return !1;
|
|
259
|
+
var r = Ps(e) ? Gs : Ns;
|
|
260
|
+
return r.test(Ds(e));
|
|
261
|
+
}
|
|
262
|
+
var Us = ks;
|
|
263
|
+
function zs(e, r) {
|
|
264
|
+
return e == null ? void 0 : e[r];
|
|
265
|
+
}
|
|
266
|
+
var Ws = zs, Ys = Us, Xs = Ws;
|
|
267
|
+
function Js(e, r) {
|
|
268
|
+
var t = Xs(e, r);
|
|
269
|
+
return Ys(t) ? t : void 0;
|
|
270
|
+
}
|
|
271
|
+
var he = Js, nr, $n;
|
|
272
|
+
function Ie() {
|
|
273
|
+
if ($n) return nr;
|
|
274
|
+
$n = 1;
|
|
275
|
+
var e = he, r = e(Object, "create");
|
|
276
|
+
return nr = r, nr;
|
|
277
|
+
}
|
|
278
|
+
var ar, Gn;
|
|
279
|
+
function Zs() {
|
|
280
|
+
if (Gn) return ar;
|
|
281
|
+
Gn = 1;
|
|
282
|
+
var e = Ie();
|
|
283
|
+
function r() {
|
|
284
|
+
this.__data__ = e ? e(null) : {}, this.size = 0;
|
|
285
|
+
}
|
|
286
|
+
return ar = r, ar;
|
|
287
|
+
}
|
|
288
|
+
var ir, kn;
|
|
289
|
+
function Qs() {
|
|
290
|
+
if (kn) return ir;
|
|
291
|
+
kn = 1;
|
|
292
|
+
function e(r) {
|
|
293
|
+
var t = this.has(r) && delete this.__data__[r];
|
|
294
|
+
return this.size -= t ? 1 : 0, t;
|
|
295
|
+
}
|
|
296
|
+
return ir = e, ir;
|
|
297
|
+
}
|
|
298
|
+
var sr, Un;
|
|
299
|
+
function Vs() {
|
|
300
|
+
if (Un) return sr;
|
|
301
|
+
Un = 1;
|
|
302
|
+
var e = Ie(), r = "__lodash_hash_undefined__", t = Object.prototype, n = t.hasOwnProperty;
|
|
303
|
+
function a(i) {
|
|
304
|
+
var o = this.__data__;
|
|
305
|
+
if (e) {
|
|
306
|
+
var u = o[i];
|
|
307
|
+
return u === r ? void 0 : u;
|
|
308
|
+
}
|
|
309
|
+
return n.call(o, i) ? o[i] : void 0;
|
|
310
|
+
}
|
|
311
|
+
return sr = a, sr;
|
|
312
|
+
}
|
|
313
|
+
var or, zn;
|
|
314
|
+
function eo() {
|
|
315
|
+
if (zn) return or;
|
|
316
|
+
zn = 1;
|
|
317
|
+
var e = Ie(), r = Object.prototype, t = r.hasOwnProperty;
|
|
318
|
+
function n(a) {
|
|
319
|
+
var i = this.__data__;
|
|
320
|
+
return e ? i[a] !== void 0 : t.call(i, a);
|
|
321
|
+
}
|
|
322
|
+
return or = n, or;
|
|
323
|
+
}
|
|
324
|
+
var ur, Wn;
|
|
325
|
+
function ro() {
|
|
326
|
+
if (Wn) return ur;
|
|
327
|
+
Wn = 1;
|
|
328
|
+
var e = Ie(), r = "__lodash_hash_undefined__";
|
|
329
|
+
function t(n, a) {
|
|
330
|
+
var i = this.__data__;
|
|
331
|
+
return this.size += this.has(n) ? 0 : 1, i[n] = e && a === void 0 ? r : a, this;
|
|
332
|
+
}
|
|
333
|
+
return ur = t, ur;
|
|
334
|
+
}
|
|
335
|
+
var cr, Yn;
|
|
336
|
+
function to() {
|
|
337
|
+
if (Yn) return cr;
|
|
338
|
+
Yn = 1;
|
|
339
|
+
var e = Zs(), r = Qs(), t = Vs(), n = eo(), a = ro();
|
|
340
|
+
function i(o) {
|
|
341
|
+
var u = -1, v = o == null ? 0 : o.length;
|
|
342
|
+
for (this.clear(); ++u < v; ) {
|
|
343
|
+
var h = o[u];
|
|
344
|
+
this.set(h[0], h[1]);
|
|
345
|
+
}
|
|
346
|
+
}
|
|
347
|
+
return i.prototype.clear = e, i.prototype.delete = r, i.prototype.get = t, i.prototype.has = n, i.prototype.set = a, cr = i, cr;
|
|
348
|
+
}
|
|
349
|
+
function no() {
|
|
350
|
+
this.__data__ = [], this.size = 0;
|
|
351
|
+
}
|
|
352
|
+
var ao = no, fr, Xn;
|
|
353
|
+
function un() {
|
|
354
|
+
if (Xn) return fr;
|
|
355
|
+
Xn = 1;
|
|
356
|
+
function e(r, t) {
|
|
357
|
+
return r === t || r !== r && t !== t;
|
|
358
|
+
}
|
|
359
|
+
return fr = e, fr;
|
|
360
|
+
}
|
|
361
|
+
var io = un();
|
|
362
|
+
function so(e, r) {
|
|
363
|
+
for (var t = e.length; t--; )
|
|
364
|
+
if (io(e[t][0], r))
|
|
365
|
+
return t;
|
|
366
|
+
return -1;
|
|
367
|
+
}
|
|
368
|
+
var De = so, oo = De, uo = Array.prototype, co = uo.splice;
|
|
369
|
+
function fo(e) {
|
|
370
|
+
var r = this.__data__, t = oo(r, e);
|
|
371
|
+
if (t < 0)
|
|
372
|
+
return !1;
|
|
373
|
+
var n = r.length - 1;
|
|
374
|
+
return t == n ? r.pop() : co.call(r, t, 1), --this.size, !0;
|
|
375
|
+
}
|
|
376
|
+
var lo = fo, ho = De;
|
|
377
|
+
function vo(e) {
|
|
378
|
+
var r = this.__data__, t = ho(r, e);
|
|
379
|
+
return t < 0 ? void 0 : r[t][1];
|
|
380
|
+
}
|
|
381
|
+
var po = vo, yo = De;
|
|
382
|
+
function go(e) {
|
|
383
|
+
return yo(this.__data__, e) > -1;
|
|
384
|
+
}
|
|
385
|
+
var bo = go, _o = De;
|
|
386
|
+
function mo(e, r) {
|
|
387
|
+
var t = this.__data__, n = _o(t, e);
|
|
388
|
+
return n < 0 ? (++this.size, t.push([e, r])) : t[n][1] = r, this;
|
|
389
|
+
}
|
|
390
|
+
var Co = mo, Fo = ao, qo = lo, Ro = po, wo = bo, To = Co;
|
|
391
|
+
function pe(e) {
|
|
392
|
+
var r = -1, t = e == null ? 0 : e.length;
|
|
393
|
+
for (this.clear(); ++r < t; ) {
|
|
394
|
+
var n = e[r];
|
|
395
|
+
this.set(n[0], n[1]);
|
|
396
|
+
}
|
|
397
|
+
}
|
|
398
|
+
pe.prototype.clear = Fo;
|
|
399
|
+
pe.prototype.delete = qo;
|
|
400
|
+
pe.prototype.get = Ro;
|
|
401
|
+
pe.prototype.has = wo;
|
|
402
|
+
pe.prototype.set = To;
|
|
403
|
+
var Le = pe, Ao = he, Oo = ie(), xo = Ao(Oo, "Map"), cn = xo, lr, Jn;
|
|
404
|
+
function Ko() {
|
|
405
|
+
if (Jn) return lr;
|
|
406
|
+
Jn = 1;
|
|
407
|
+
var e = to(), r = Le, t = cn;
|
|
408
|
+
function n() {
|
|
409
|
+
this.size = 0, this.__data__ = {
|
|
410
|
+
hash: new e(),
|
|
411
|
+
map: new (t || r)(),
|
|
412
|
+
string: new e()
|
|
413
|
+
};
|
|
414
|
+
}
|
|
415
|
+
return lr = n, lr;
|
|
416
|
+
}
|
|
417
|
+
var dr, Zn;
|
|
418
|
+
function So() {
|
|
419
|
+
if (Zn) return dr;
|
|
420
|
+
Zn = 1;
|
|
421
|
+
function e(r) {
|
|
422
|
+
var t = typeof r;
|
|
423
|
+
return t == "string" || t == "number" || t == "symbol" || t == "boolean" ? r !== "__proto__" : r === null;
|
|
424
|
+
}
|
|
425
|
+
return dr = e, dr;
|
|
426
|
+
}
|
|
427
|
+
var hr, Qn;
|
|
428
|
+
function Ne() {
|
|
429
|
+
if (Qn) return hr;
|
|
430
|
+
Qn = 1;
|
|
431
|
+
var e = So();
|
|
432
|
+
function r(t, n) {
|
|
433
|
+
var a = t.__data__;
|
|
434
|
+
return e(n) ? a[typeof n == "string" ? "string" : "hash"] : a.map;
|
|
435
|
+
}
|
|
436
|
+
return hr = r, hr;
|
|
437
|
+
}
|
|
438
|
+
var vr, Vn;
|
|
439
|
+
function Eo() {
|
|
440
|
+
if (Vn) return vr;
|
|
441
|
+
Vn = 1;
|
|
442
|
+
var e = Ne();
|
|
443
|
+
function r(t) {
|
|
444
|
+
var n = e(this, t).delete(t);
|
|
445
|
+
return this.size -= n ? 1 : 0, n;
|
|
446
|
+
}
|
|
447
|
+
return vr = r, vr;
|
|
448
|
+
}
|
|
449
|
+
var pr, ea;
|
|
450
|
+
function Po() {
|
|
451
|
+
if (ea) return pr;
|
|
452
|
+
ea = 1;
|
|
453
|
+
var e = Ne();
|
|
454
|
+
function r(t) {
|
|
455
|
+
return e(this, t).get(t);
|
|
456
|
+
}
|
|
457
|
+
return pr = r, pr;
|
|
458
|
+
}
|
|
459
|
+
var yr, ra;
|
|
460
|
+
function Mo() {
|
|
461
|
+
if (ra) return yr;
|
|
462
|
+
ra = 1;
|
|
463
|
+
var e = Ne();
|
|
464
|
+
function r(t) {
|
|
465
|
+
return e(this, t).has(t);
|
|
466
|
+
}
|
|
467
|
+
return yr = r, yr;
|
|
468
|
+
}
|
|
469
|
+
var gr, ta;
|
|
470
|
+
function Io() {
|
|
471
|
+
if (ta) return gr;
|
|
472
|
+
ta = 1;
|
|
473
|
+
var e = Ne();
|
|
474
|
+
function r(t, n) {
|
|
475
|
+
var a = e(this, t), i = a.size;
|
|
476
|
+
return a.set(t, n), this.size += a.size == i ? 0 : 1, this;
|
|
477
|
+
}
|
|
478
|
+
return gr = r, gr;
|
|
479
|
+
}
|
|
480
|
+
var br, na;
|
|
481
|
+
function fn() {
|
|
482
|
+
if (na) return br;
|
|
483
|
+
na = 1;
|
|
484
|
+
var e = Ko(), r = Eo(), t = Po(), n = Mo(), a = Io();
|
|
485
|
+
function i(o) {
|
|
486
|
+
var u = -1, v = o == null ? 0 : o.length;
|
|
487
|
+
for (this.clear(); ++u < v; ) {
|
|
488
|
+
var h = o[u];
|
|
489
|
+
this.set(h[0], h[1]);
|
|
490
|
+
}
|
|
491
|
+
}
|
|
492
|
+
return i.prototype.clear = e, i.prototype.delete = r, i.prototype.get = t, i.prototype.has = n, i.prototype.set = a, br = i, br;
|
|
493
|
+
}
|
|
494
|
+
var _r, aa;
|
|
495
|
+
function Do() {
|
|
496
|
+
if (aa) return _r;
|
|
497
|
+
aa = 1;
|
|
498
|
+
var e = "__lodash_hash_undefined__";
|
|
499
|
+
function r(t) {
|
|
500
|
+
return this.__data__.set(t, e), this;
|
|
501
|
+
}
|
|
502
|
+
return _r = r, _r;
|
|
503
|
+
}
|
|
504
|
+
var mr, ia;
|
|
505
|
+
function Lo() {
|
|
506
|
+
if (ia) return mr;
|
|
507
|
+
ia = 1;
|
|
508
|
+
function e(r) {
|
|
509
|
+
return this.__data__.has(r);
|
|
510
|
+
}
|
|
511
|
+
return mr = e, mr;
|
|
512
|
+
}
|
|
513
|
+
var Cr, sa;
|
|
514
|
+
function Qi() {
|
|
515
|
+
if (sa) return Cr;
|
|
516
|
+
sa = 1;
|
|
517
|
+
var e = fn(), r = Do(), t = Lo();
|
|
518
|
+
function n(a) {
|
|
519
|
+
var i = -1, o = a == null ? 0 : a.length;
|
|
520
|
+
for (this.__data__ = new e(); ++i < o; )
|
|
521
|
+
this.add(a[i]);
|
|
522
|
+
}
|
|
523
|
+
return n.prototype.add = n.prototype.push = r, n.prototype.has = t, Cr = n, Cr;
|
|
524
|
+
}
|
|
525
|
+
var Fr, oa;
|
|
526
|
+
function No() {
|
|
527
|
+
if (oa) return Fr;
|
|
528
|
+
oa = 1;
|
|
529
|
+
function e(r, t, n, a) {
|
|
530
|
+
for (var i = r.length, o = n + (a ? 1 : -1); a ? o-- : ++o < i; )
|
|
531
|
+
if (t(r[o], o, r))
|
|
532
|
+
return o;
|
|
533
|
+
return -1;
|
|
534
|
+
}
|
|
535
|
+
return Fr = e, Fr;
|
|
536
|
+
}
|
|
537
|
+
var qr, ua;
|
|
538
|
+
function Bo() {
|
|
539
|
+
if (ua) return qr;
|
|
540
|
+
ua = 1;
|
|
541
|
+
function e(r) {
|
|
542
|
+
return r !== r;
|
|
543
|
+
}
|
|
544
|
+
return qr = e, qr;
|
|
545
|
+
}
|
|
546
|
+
var Rr, ca;
|
|
547
|
+
function jo() {
|
|
548
|
+
if (ca) return Rr;
|
|
549
|
+
ca = 1;
|
|
550
|
+
function e(r, t, n) {
|
|
551
|
+
for (var a = n - 1, i = r.length; ++a < i; )
|
|
552
|
+
if (r[a] === t)
|
|
553
|
+
return a;
|
|
554
|
+
return -1;
|
|
555
|
+
}
|
|
556
|
+
return Rr = e, Rr;
|
|
557
|
+
}
|
|
558
|
+
var wr, fa;
|
|
559
|
+
function Ho() {
|
|
560
|
+
if (fa) return wr;
|
|
561
|
+
fa = 1;
|
|
562
|
+
var e = No(), r = Bo(), t = jo();
|
|
563
|
+
function n(a, i, o) {
|
|
564
|
+
return i === i ? t(a, i, o) : e(a, r, o);
|
|
565
|
+
}
|
|
566
|
+
return wr = n, wr;
|
|
567
|
+
}
|
|
568
|
+
var Tr, la;
|
|
569
|
+
function $o() {
|
|
570
|
+
if (la) return Tr;
|
|
571
|
+
la = 1;
|
|
572
|
+
var e = Ho();
|
|
573
|
+
function r(t, n) {
|
|
574
|
+
var a = t == null ? 0 : t.length;
|
|
575
|
+
return !!a && e(t, n, 0) > -1;
|
|
576
|
+
}
|
|
577
|
+
return Tr = r, Tr;
|
|
578
|
+
}
|
|
579
|
+
var Ar, da;
|
|
580
|
+
function Go() {
|
|
581
|
+
if (da) return Ar;
|
|
582
|
+
da = 1;
|
|
583
|
+
function e(r, t, n) {
|
|
584
|
+
for (var a = -1, i = r == null ? 0 : r.length; ++a < i; )
|
|
585
|
+
if (n(t, r[a]))
|
|
586
|
+
return !0;
|
|
587
|
+
return !1;
|
|
588
|
+
}
|
|
589
|
+
return Ar = e, Ar;
|
|
590
|
+
}
|
|
591
|
+
function ko(e, r) {
|
|
592
|
+
for (var t = -1, n = e == null ? 0 : e.length, a = Array(n); ++t < n; )
|
|
593
|
+
a[t] = r(e[t], t, e);
|
|
594
|
+
return a;
|
|
595
|
+
}
|
|
596
|
+
var ln = ko, Or, ha;
|
|
597
|
+
function dn() {
|
|
598
|
+
if (ha) return Or;
|
|
599
|
+
ha = 1;
|
|
600
|
+
function e(r) {
|
|
601
|
+
return function(t) {
|
|
602
|
+
return r(t);
|
|
603
|
+
};
|
|
604
|
+
}
|
|
605
|
+
return Or = e, Or;
|
|
606
|
+
}
|
|
607
|
+
var xr, va;
|
|
608
|
+
function Vi() {
|
|
609
|
+
if (va) return xr;
|
|
610
|
+
va = 1;
|
|
611
|
+
function e(r, t) {
|
|
612
|
+
return r.has(t);
|
|
613
|
+
}
|
|
614
|
+
return xr = e, xr;
|
|
615
|
+
}
|
|
616
|
+
var Kr, pa;
|
|
617
|
+
function Uo() {
|
|
618
|
+
if (pa) return Kr;
|
|
619
|
+
pa = 1;
|
|
620
|
+
var e = Qi(), r = $o(), t = Go(), n = ln, a = dn(), i = Vi(), o = 200;
|
|
621
|
+
function u(v, h, m, _) {
|
|
622
|
+
var I = -1, P = r, N = !0, K = v.length, b = [], l = h.length;
|
|
623
|
+
if (!K)
|
|
624
|
+
return b;
|
|
625
|
+
m && (h = n(h, a(m))), _ ? (P = t, N = !1) : h.length >= o && (P = i, N = !1, h = new e(h));
|
|
626
|
+
e:
|
|
627
|
+
for (; ++I < K; ) {
|
|
628
|
+
var g = v[I], C = m == null ? g : m(g);
|
|
629
|
+
if (g = _ || g !== 0 ? g : 0, N && C === C) {
|
|
630
|
+
for (var y = l; y--; )
|
|
631
|
+
if (h[y] === C)
|
|
632
|
+
continue e;
|
|
633
|
+
b.push(g);
|
|
634
|
+
} else P(h, C, _) || b.push(g);
|
|
635
|
+
}
|
|
636
|
+
return b;
|
|
637
|
+
}
|
|
638
|
+
return Kr = u, Kr;
|
|
639
|
+
}
|
|
640
|
+
var Sr, ya;
|
|
641
|
+
function es() {
|
|
642
|
+
if (ya) return Sr;
|
|
643
|
+
ya = 1;
|
|
644
|
+
function e(r, t) {
|
|
645
|
+
for (var n = -1, a = t.length, i = r.length; ++n < a; )
|
|
646
|
+
r[i + n] = t[n];
|
|
647
|
+
return r;
|
|
648
|
+
}
|
|
649
|
+
return Sr = e, Sr;
|
|
650
|
+
}
|
|
651
|
+
var Er, ga;
|
|
652
|
+
function zo() {
|
|
653
|
+
if (ga) return Er;
|
|
654
|
+
ga = 1;
|
|
655
|
+
var e = Te(), r = ve(), t = "[object Arguments]";
|
|
656
|
+
function n(a) {
|
|
657
|
+
return r(a) && e(a) == t;
|
|
658
|
+
}
|
|
659
|
+
return Er = n, Er;
|
|
660
|
+
}
|
|
661
|
+
var Pr, ba;
|
|
662
|
+
function hn() {
|
|
663
|
+
if (ba) return Pr;
|
|
664
|
+
ba = 1;
|
|
665
|
+
var e = zo(), r = ve(), t = Object.prototype, n = t.hasOwnProperty, a = t.propertyIsEnumerable, i = e(/* @__PURE__ */ function() {
|
|
666
|
+
return arguments;
|
|
667
|
+
}()) ? e : function(o) {
|
|
668
|
+
return r(o) && n.call(o, "callee") && !a.call(o, "callee");
|
|
669
|
+
};
|
|
670
|
+
return Pr = i, Pr;
|
|
671
|
+
}
|
|
672
|
+
var Mr, _a;
|
|
673
|
+
function re() {
|
|
674
|
+
if (_a) return Mr;
|
|
675
|
+
_a = 1;
|
|
676
|
+
var e = Array.isArray;
|
|
677
|
+
return Mr = e, Mr;
|
|
678
|
+
}
|
|
679
|
+
var Ir, ma;
|
|
680
|
+
function Wo() {
|
|
681
|
+
if (ma) return Ir;
|
|
682
|
+
ma = 1;
|
|
683
|
+
var e = we(), r = hn(), t = re(), n = e ? e.isConcatSpreadable : void 0;
|
|
684
|
+
function a(i) {
|
|
685
|
+
return t(i) || r(i) || !!(n && i && i[n]);
|
|
686
|
+
}
|
|
687
|
+
return Ir = a, Ir;
|
|
688
|
+
}
|
|
689
|
+
var Dr, Ca;
|
|
690
|
+
function rs() {
|
|
691
|
+
if (Ca) return Dr;
|
|
692
|
+
Ca = 1;
|
|
693
|
+
var e = es(), r = Wo();
|
|
694
|
+
function t(n, a, i, o, u) {
|
|
695
|
+
var v = -1, h = n.length;
|
|
696
|
+
for (i || (i = r), u || (u = []); ++v < h; ) {
|
|
697
|
+
var m = n[v];
|
|
698
|
+
a > 0 && i(m) ? a > 1 ? t(m, a - 1, i, o, u) : e(u, m) : o || (u[u.length] = m);
|
|
699
|
+
}
|
|
700
|
+
return u;
|
|
701
|
+
}
|
|
702
|
+
return Dr = t, Dr;
|
|
703
|
+
}
|
|
704
|
+
var Lr, Fa;
|
|
705
|
+
function Oe() {
|
|
706
|
+
if (Fa) return Lr;
|
|
707
|
+
Fa = 1;
|
|
708
|
+
function e(r) {
|
|
709
|
+
return r;
|
|
710
|
+
}
|
|
711
|
+
return Lr = e, Lr;
|
|
712
|
+
}
|
|
713
|
+
var Nr, qa;
|
|
714
|
+
function Yo() {
|
|
715
|
+
if (qa) return Nr;
|
|
716
|
+
qa = 1;
|
|
717
|
+
function e(r, t, n) {
|
|
718
|
+
switch (n.length) {
|
|
719
|
+
case 0:
|
|
720
|
+
return r.call(t);
|
|
721
|
+
case 1:
|
|
722
|
+
return r.call(t, n[0]);
|
|
723
|
+
case 2:
|
|
724
|
+
return r.call(t, n[0], n[1]);
|
|
725
|
+
case 3:
|
|
726
|
+
return r.call(t, n[0], n[1], n[2]);
|
|
727
|
+
}
|
|
728
|
+
return r.apply(t, n);
|
|
729
|
+
}
|
|
730
|
+
return Nr = e, Nr;
|
|
731
|
+
}
|
|
732
|
+
var Br, Ra;
|
|
733
|
+
function Xo() {
|
|
734
|
+
if (Ra) return Br;
|
|
735
|
+
Ra = 1;
|
|
736
|
+
var e = Yo(), r = Math.max;
|
|
737
|
+
function t(n, a, i) {
|
|
738
|
+
return a = r(a === void 0 ? n.length - 1 : a, 0), function() {
|
|
739
|
+
for (var o = arguments, u = -1, v = r(o.length - a, 0), h = Array(v); ++u < v; )
|
|
740
|
+
h[u] = o[a + u];
|
|
741
|
+
u = -1;
|
|
742
|
+
for (var m = Array(a + 1); ++u < a; )
|
|
743
|
+
m[u] = o[u];
|
|
744
|
+
return m[a] = i(h), e(n, this, m);
|
|
745
|
+
};
|
|
746
|
+
}
|
|
747
|
+
return Br = t, Br;
|
|
748
|
+
}
|
|
749
|
+
var jr, wa;
|
|
750
|
+
function Jo() {
|
|
751
|
+
if (wa) return jr;
|
|
752
|
+
wa = 1;
|
|
753
|
+
function e(r) {
|
|
754
|
+
return function() {
|
|
755
|
+
return r;
|
|
756
|
+
};
|
|
757
|
+
}
|
|
758
|
+
return jr = e, jr;
|
|
759
|
+
}
|
|
760
|
+
var Hr, Ta;
|
|
761
|
+
function Zo() {
|
|
762
|
+
if (Ta) return Hr;
|
|
763
|
+
Ta = 1;
|
|
764
|
+
var e = he, r = function() {
|
|
765
|
+
try {
|
|
766
|
+
var t = e(Object, "defineProperty");
|
|
767
|
+
return t({}, "", {}), t;
|
|
768
|
+
} catch {
|
|
769
|
+
}
|
|
770
|
+
}();
|
|
771
|
+
return Hr = r, Hr;
|
|
772
|
+
}
|
|
773
|
+
var $r, Aa;
|
|
774
|
+
function Qo() {
|
|
775
|
+
if (Aa) return $r;
|
|
776
|
+
Aa = 1;
|
|
777
|
+
var e = Jo(), r = Zo(), t = Oe(), n = r ? function(a, i) {
|
|
778
|
+
return r(a, "toString", {
|
|
779
|
+
configurable: !0,
|
|
780
|
+
enumerable: !1,
|
|
781
|
+
value: e(i),
|
|
782
|
+
writable: !0
|
|
783
|
+
});
|
|
784
|
+
} : t;
|
|
785
|
+
return $r = n, $r;
|
|
786
|
+
}
|
|
787
|
+
var Gr, Oa;
|
|
788
|
+
function Vo() {
|
|
789
|
+
if (Oa) return Gr;
|
|
790
|
+
Oa = 1;
|
|
791
|
+
var e = 800, r = 16, t = Date.now;
|
|
792
|
+
function n(a) {
|
|
793
|
+
var i = 0, o = 0;
|
|
794
|
+
return function() {
|
|
795
|
+
var u = t(), v = r - (u - o);
|
|
796
|
+
if (o = u, v > 0) {
|
|
797
|
+
if (++i >= e)
|
|
798
|
+
return arguments[0];
|
|
799
|
+
} else
|
|
800
|
+
i = 0;
|
|
801
|
+
return a.apply(void 0, arguments);
|
|
802
|
+
};
|
|
803
|
+
}
|
|
804
|
+
return Gr = n, Gr;
|
|
805
|
+
}
|
|
806
|
+
var kr, xa;
|
|
807
|
+
function eu() {
|
|
808
|
+
if (xa) return kr;
|
|
809
|
+
xa = 1;
|
|
810
|
+
var e = Qo(), r = Vo(), t = r(e);
|
|
811
|
+
return kr = t, kr;
|
|
812
|
+
}
|
|
813
|
+
var Ur, Ka;
|
|
814
|
+
function ts() {
|
|
815
|
+
if (Ka) return Ur;
|
|
816
|
+
Ka = 1;
|
|
817
|
+
var e = Oe(), r = Xo(), t = eu();
|
|
818
|
+
function n(a, i) {
|
|
819
|
+
return t(r(a, i, e), a + "");
|
|
820
|
+
}
|
|
821
|
+
return Ur = n, Ur;
|
|
822
|
+
}
|
|
823
|
+
var zr, Sa;
|
|
824
|
+
function vn() {
|
|
825
|
+
if (Sa) return zr;
|
|
826
|
+
Sa = 1;
|
|
827
|
+
var e = 9007199254740991;
|
|
828
|
+
function r(t) {
|
|
829
|
+
return typeof t == "number" && t > -1 && t % 1 == 0 && t <= e;
|
|
830
|
+
}
|
|
831
|
+
return zr = r, zr;
|
|
832
|
+
}
|
|
833
|
+
var Wr, Ea;
|
|
834
|
+
function xe() {
|
|
835
|
+
if (Ea) return Wr;
|
|
836
|
+
Ea = 1;
|
|
837
|
+
var e = Ji(), r = vn();
|
|
838
|
+
function t(n) {
|
|
839
|
+
return n != null && r(n.length) && !e(n);
|
|
840
|
+
}
|
|
841
|
+
return Wr = t, Wr;
|
|
842
|
+
}
|
|
843
|
+
var Yr, Pa;
|
|
844
|
+
function ru() {
|
|
845
|
+
if (Pa) return Yr;
|
|
846
|
+
Pa = 1;
|
|
847
|
+
var e = xe(), r = ve();
|
|
848
|
+
function t(n) {
|
|
849
|
+
return r(n) && e(n);
|
|
850
|
+
}
|
|
851
|
+
return Yr = t, Yr;
|
|
852
|
+
}
|
|
853
|
+
var Xr, Ma;
|
|
854
|
+
function tu() {
|
|
855
|
+
if (Ma) return Xr;
|
|
856
|
+
Ma = 1;
|
|
857
|
+
var e = Uo(), r = rs(), t = ts(), n = ru(), a = t(function(i, o) {
|
|
858
|
+
return n(i) ? e(i, r(o, 1, n, !0)) : [];
|
|
859
|
+
});
|
|
860
|
+
return Xr = a, Xr;
|
|
861
|
+
}
|
|
862
|
+
var Jr, Ia;
|
|
863
|
+
function ns() {
|
|
864
|
+
if (Ia) return Jr;
|
|
865
|
+
Ia = 1;
|
|
866
|
+
function e(r, t) {
|
|
867
|
+
for (var n = -1, a = r == null ? 0 : r.length, i = 0, o = []; ++n < a; ) {
|
|
868
|
+
var u = r[n];
|
|
869
|
+
t(u, n, r) && (o[i++] = u);
|
|
870
|
+
}
|
|
871
|
+
return o;
|
|
872
|
+
}
|
|
873
|
+
return Jr = e, Jr;
|
|
874
|
+
}
|
|
875
|
+
var Zr, Da;
|
|
876
|
+
function nu() {
|
|
877
|
+
if (Da) return Zr;
|
|
878
|
+
Da = 1;
|
|
879
|
+
function e(r) {
|
|
880
|
+
return function(t, n, a) {
|
|
881
|
+
for (var i = -1, o = Object(t), u = a(t), v = u.length; v--; ) {
|
|
882
|
+
var h = u[r ? v : ++i];
|
|
883
|
+
if (n(o[h], h, o) === !1)
|
|
884
|
+
break;
|
|
885
|
+
}
|
|
886
|
+
return t;
|
|
887
|
+
};
|
|
888
|
+
}
|
|
889
|
+
return Zr = e, Zr;
|
|
890
|
+
}
|
|
891
|
+
var Qr, La;
|
|
892
|
+
function au() {
|
|
893
|
+
if (La) return Qr;
|
|
894
|
+
La = 1;
|
|
895
|
+
var e = nu(), r = e();
|
|
896
|
+
return Qr = r, Qr;
|
|
897
|
+
}
|
|
898
|
+
var Vr, Na;
|
|
899
|
+
function iu() {
|
|
900
|
+
if (Na) return Vr;
|
|
901
|
+
Na = 1;
|
|
902
|
+
function e(r, t) {
|
|
903
|
+
for (var n = -1, a = Array(r); ++n < r; )
|
|
904
|
+
a[n] = t(n);
|
|
905
|
+
return a;
|
|
906
|
+
}
|
|
907
|
+
return Vr = e, Vr;
|
|
908
|
+
}
|
|
909
|
+
var Pe = { exports: {} };
|
|
910
|
+
function su() {
|
|
911
|
+
return !1;
|
|
912
|
+
}
|
|
913
|
+
var ou = su;
|
|
914
|
+
Pe.exports;
|
|
915
|
+
(function(e, r) {
|
|
916
|
+
var t = ie(), n = ou, a = r && !r.nodeType && r, i = a && !0 && e && !e.nodeType && e, o = i && i.exports === a, u = o ? t.Buffer : void 0, v = u ? u.isBuffer : void 0, h = v || n;
|
|
917
|
+
e.exports = h;
|
|
918
|
+
})(Pe, Pe.exports);
|
|
919
|
+
var as = Pe.exports, et, Ba;
|
|
920
|
+
function pn() {
|
|
921
|
+
if (Ba) return et;
|
|
922
|
+
Ba = 1;
|
|
923
|
+
var e = 9007199254740991, r = /^(?:0|[1-9]\d*)$/;
|
|
924
|
+
function t(n, a) {
|
|
925
|
+
var i = typeof n;
|
|
926
|
+
return a = a ?? e, !!a && (i == "number" || i != "symbol" && r.test(n)) && n > -1 && n % 1 == 0 && n < a;
|
|
927
|
+
}
|
|
928
|
+
return et = t, et;
|
|
929
|
+
}
|
|
930
|
+
var rt, ja;
|
|
931
|
+
function uu() {
|
|
932
|
+
if (ja) return rt;
|
|
933
|
+
ja = 1;
|
|
934
|
+
var e = Te(), r = vn(), t = ve(), n = "[object Arguments]", a = "[object Array]", i = "[object Boolean]", o = "[object Date]", u = "[object Error]", v = "[object Function]", h = "[object Map]", m = "[object Number]", _ = "[object Object]", I = "[object RegExp]", P = "[object Set]", N = "[object String]", K = "[object WeakMap]", b = "[object ArrayBuffer]", l = "[object DataView]", g = "[object Float32Array]", C = "[object Float64Array]", y = "[object Int8Array]", S = "[object Int16Array]", O = "[object Int32Array]", q = "[object Uint8Array]", L = "[object Uint8ClampedArray]", R = "[object Uint16Array]", x = "[object Uint32Array]", E = {};
|
|
935
|
+
E[g] = E[C] = E[y] = E[S] = E[O] = E[q] = E[L] = E[R] = E[x] = !0, E[n] = E[a] = E[b] = E[i] = E[l] = E[o] = E[u] = E[v] = E[h] = E[m] = E[_] = E[I] = E[P] = E[N] = E[K] = !1;
|
|
936
|
+
function $(T) {
|
|
937
|
+
return t(T) && r(T.length) && !!E[e(T)];
|
|
938
|
+
}
|
|
939
|
+
return rt = $, rt;
|
|
940
|
+
}
|
|
941
|
+
var Me = { exports: {} };
|
|
942
|
+
Me.exports;
|
|
943
|
+
(function(e, r) {
|
|
944
|
+
var t = Yi(), n = r && !r.nodeType && r, a = n && !0 && e && !e.nodeType && e, i = a && a.exports === n, o = i && t.process, u = function() {
|
|
945
|
+
try {
|
|
946
|
+
var v = a && a.require && a.require("util").types;
|
|
947
|
+
return v || o && o.binding && o.binding("util");
|
|
948
|
+
} catch {
|
|
949
|
+
}
|
|
950
|
+
}();
|
|
951
|
+
e.exports = u;
|
|
952
|
+
})(Me, Me.exports);
|
|
953
|
+
var cu = Me.exports, tt, Ha;
|
|
954
|
+
function is() {
|
|
955
|
+
if (Ha) return tt;
|
|
956
|
+
Ha = 1;
|
|
957
|
+
var e = uu(), r = dn(), t = cu, n = t && t.isTypedArray, a = n ? r(n) : e;
|
|
958
|
+
return tt = a, tt;
|
|
959
|
+
}
|
|
960
|
+
var nt, $a;
|
|
961
|
+
function fu() {
|
|
962
|
+
if ($a) return nt;
|
|
963
|
+
$a = 1;
|
|
964
|
+
var e = iu(), r = hn(), t = re(), n = as, a = pn(), i = is(), o = Object.prototype, u = o.hasOwnProperty;
|
|
965
|
+
function v(h, m) {
|
|
966
|
+
var _ = t(h), I = !_ && r(h), P = !_ && !I && n(h), N = !_ && !I && !P && i(h), K = _ || I || P || N, b = K ? e(h.length, String) : [], l = b.length;
|
|
967
|
+
for (var g in h)
|
|
968
|
+
(m || u.call(h, g)) && !(K && // Safari 9 has enumerable `arguments.length` in strict mode.
|
|
969
|
+
(g == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
|
|
970
|
+
P && (g == "offset" || g == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
|
|
971
|
+
N && (g == "buffer" || g == "byteLength" || g == "byteOffset") || // Skip index properties.
|
|
972
|
+
a(g, l))) && b.push(g);
|
|
973
|
+
return b;
|
|
974
|
+
}
|
|
975
|
+
return nt = v, nt;
|
|
976
|
+
}
|
|
977
|
+
var lu = Object.prototype;
|
|
978
|
+
function du(e) {
|
|
979
|
+
var r = e && e.constructor, t = typeof r == "function" && r.prototype || lu;
|
|
980
|
+
return e === t;
|
|
981
|
+
}
|
|
982
|
+
var hu = du;
|
|
983
|
+
function vu(e, r) {
|
|
984
|
+
return function(t) {
|
|
985
|
+
return e(r(t));
|
|
986
|
+
};
|
|
987
|
+
}
|
|
988
|
+
var pu = vu, at, Ga;
|
|
989
|
+
function yu() {
|
|
990
|
+
if (Ga) return at;
|
|
991
|
+
Ga = 1;
|
|
992
|
+
var e = pu, r = e(Object.keys, Object);
|
|
993
|
+
return at = r, at;
|
|
994
|
+
}
|
|
995
|
+
var it, ka;
|
|
996
|
+
function gu() {
|
|
997
|
+
if (ka) return it;
|
|
998
|
+
ka = 1;
|
|
999
|
+
var e = hu, r = yu(), t = Object.prototype, n = t.hasOwnProperty;
|
|
1000
|
+
function a(i) {
|
|
1001
|
+
if (!e(i))
|
|
1002
|
+
return r(i);
|
|
1003
|
+
var o = [];
|
|
1004
|
+
for (var u in Object(i))
|
|
1005
|
+
n.call(i, u) && u != "constructor" && o.push(u);
|
|
1006
|
+
return o;
|
|
1007
|
+
}
|
|
1008
|
+
return it = a, it;
|
|
1009
|
+
}
|
|
1010
|
+
var st, Ua;
|
|
1011
|
+
function yn() {
|
|
1012
|
+
if (Ua) return st;
|
|
1013
|
+
Ua = 1;
|
|
1014
|
+
var e = fu(), r = gu(), t = xe();
|
|
1015
|
+
function n(a) {
|
|
1016
|
+
return t(a) ? e(a) : r(a);
|
|
1017
|
+
}
|
|
1018
|
+
return st = n, st;
|
|
1019
|
+
}
|
|
1020
|
+
var ot, za;
|
|
1021
|
+
function gn() {
|
|
1022
|
+
if (za) return ot;
|
|
1023
|
+
za = 1;
|
|
1024
|
+
var e = au(), r = yn();
|
|
1025
|
+
function t(n, a) {
|
|
1026
|
+
return n && e(n, a, r);
|
|
1027
|
+
}
|
|
1028
|
+
return ot = t, ot;
|
|
1029
|
+
}
|
|
1030
|
+
var ut, Wa;
|
|
1031
|
+
function bu() {
|
|
1032
|
+
if (Wa) return ut;
|
|
1033
|
+
Wa = 1;
|
|
1034
|
+
var e = xe();
|
|
1035
|
+
function r(t, n) {
|
|
1036
|
+
return function(a, i) {
|
|
1037
|
+
if (a == null)
|
|
1038
|
+
return a;
|
|
1039
|
+
if (!e(a))
|
|
1040
|
+
return t(a, i);
|
|
1041
|
+
for (var o = a.length, u = n ? o : -1, v = Object(a); (n ? u-- : ++u < o) && i(v[u], u, v) !== !1; )
|
|
1042
|
+
;
|
|
1043
|
+
return a;
|
|
1044
|
+
};
|
|
1045
|
+
}
|
|
1046
|
+
return ut = r, ut;
|
|
1047
|
+
}
|
|
1048
|
+
var ct, Ya;
|
|
1049
|
+
function bn() {
|
|
1050
|
+
if (Ya) return ct;
|
|
1051
|
+
Ya = 1;
|
|
1052
|
+
var e = gn(), r = bu(), t = r(e);
|
|
1053
|
+
return ct = t, ct;
|
|
1054
|
+
}
|
|
1055
|
+
var ft, Xa;
|
|
1056
|
+
function _u() {
|
|
1057
|
+
if (Xa) return ft;
|
|
1058
|
+
Xa = 1;
|
|
1059
|
+
var e = bn();
|
|
1060
|
+
function r(t, n) {
|
|
1061
|
+
var a = [];
|
|
1062
|
+
return e(t, function(i, o, u) {
|
|
1063
|
+
n(i, o, u) && a.push(i);
|
|
1064
|
+
}), a;
|
|
1065
|
+
}
|
|
1066
|
+
return ft = r, ft;
|
|
1067
|
+
}
|
|
1068
|
+
var mu = Le;
|
|
1069
|
+
function Cu() {
|
|
1070
|
+
this.__data__ = new mu(), this.size = 0;
|
|
1071
|
+
}
|
|
1072
|
+
var Fu = Cu;
|
|
1073
|
+
function qu(e) {
|
|
1074
|
+
var r = this.__data__, t = r.delete(e);
|
|
1075
|
+
return this.size = r.size, t;
|
|
1076
|
+
}
|
|
1077
|
+
var Ru = qu;
|
|
1078
|
+
function wu(e) {
|
|
1079
|
+
return this.__data__.get(e);
|
|
1080
|
+
}
|
|
1081
|
+
var Tu = wu;
|
|
1082
|
+
function Au(e) {
|
|
1083
|
+
return this.__data__.has(e);
|
|
1084
|
+
}
|
|
1085
|
+
var Ou = Au, xu = Le, Ku = cn, Su = fn(), Eu = 200;
|
|
1086
|
+
function Pu(e, r) {
|
|
1087
|
+
var t = this.__data__;
|
|
1088
|
+
if (t instanceof xu) {
|
|
1089
|
+
var n = t.__data__;
|
|
1090
|
+
if (!Ku || n.length < Eu - 1)
|
|
1091
|
+
return n.push([e, r]), this.size = ++t.size, this;
|
|
1092
|
+
t = this.__data__ = new Su(n);
|
|
1093
|
+
}
|
|
1094
|
+
return t.set(e, r), this.size = t.size, this;
|
|
1095
|
+
}
|
|
1096
|
+
var Mu = Pu, Iu = Le, Du = Fu, Lu = Ru, Nu = Tu, Bu = Ou, ju = Mu;
|
|
1097
|
+
function ye(e) {
|
|
1098
|
+
var r = this.__data__ = new Iu(e);
|
|
1099
|
+
this.size = r.size;
|
|
1100
|
+
}
|
|
1101
|
+
ye.prototype.clear = Du;
|
|
1102
|
+
ye.prototype.delete = Lu;
|
|
1103
|
+
ye.prototype.get = Nu;
|
|
1104
|
+
ye.prototype.has = Bu;
|
|
1105
|
+
ye.prototype.set = ju;
|
|
1106
|
+
var ss = ye, lt, Ja;
|
|
1107
|
+
function Hu() {
|
|
1108
|
+
if (Ja) return lt;
|
|
1109
|
+
Ja = 1;
|
|
1110
|
+
function e(r, t) {
|
|
1111
|
+
for (var n = -1, a = r == null ? 0 : r.length; ++n < a; )
|
|
1112
|
+
if (t(r[n], n, r))
|
|
1113
|
+
return !0;
|
|
1114
|
+
return !1;
|
|
1115
|
+
}
|
|
1116
|
+
return lt = e, lt;
|
|
1117
|
+
}
|
|
1118
|
+
var dt, Za;
|
|
1119
|
+
function os() {
|
|
1120
|
+
if (Za) return dt;
|
|
1121
|
+
Za = 1;
|
|
1122
|
+
var e = Qi(), r = Hu(), t = Vi(), n = 1, a = 2;
|
|
1123
|
+
function i(o, u, v, h, m, _) {
|
|
1124
|
+
var I = v & n, P = o.length, N = u.length;
|
|
1125
|
+
if (P != N && !(I && N > P))
|
|
1126
|
+
return !1;
|
|
1127
|
+
var K = _.get(o), b = _.get(u);
|
|
1128
|
+
if (K && b)
|
|
1129
|
+
return K == u && b == o;
|
|
1130
|
+
var l = -1, g = !0, C = v & a ? new e() : void 0;
|
|
1131
|
+
for (_.set(o, u), _.set(u, o); ++l < P; ) {
|
|
1132
|
+
var y = o[l], S = u[l];
|
|
1133
|
+
if (h)
|
|
1134
|
+
var O = I ? h(S, y, l, u, o, _) : h(y, S, l, o, u, _);
|
|
1135
|
+
if (O !== void 0) {
|
|
1136
|
+
if (O)
|
|
1137
|
+
continue;
|
|
1138
|
+
g = !1;
|
|
1139
|
+
break;
|
|
1140
|
+
}
|
|
1141
|
+
if (C) {
|
|
1142
|
+
if (!r(u, function(q, L) {
|
|
1143
|
+
if (!t(C, L) && (y === q || m(y, q, v, h, _)))
|
|
1144
|
+
return C.push(L);
|
|
1145
|
+
})) {
|
|
1146
|
+
g = !1;
|
|
1147
|
+
break;
|
|
1148
|
+
}
|
|
1149
|
+
} else if (!(y === S || m(y, S, v, h, _))) {
|
|
1150
|
+
g = !1;
|
|
1151
|
+
break;
|
|
1152
|
+
}
|
|
1153
|
+
}
|
|
1154
|
+
return _.delete(o), _.delete(u), g;
|
|
1155
|
+
}
|
|
1156
|
+
return dt = i, dt;
|
|
1157
|
+
}
|
|
1158
|
+
var $u = ie(), Gu = $u.Uint8Array, ku = Gu, ht, Qa;
|
|
1159
|
+
function Uu() {
|
|
1160
|
+
if (Qa) return ht;
|
|
1161
|
+
Qa = 1;
|
|
1162
|
+
function e(r) {
|
|
1163
|
+
var t = -1, n = Array(r.size);
|
|
1164
|
+
return r.forEach(function(a, i) {
|
|
1165
|
+
n[++t] = [i, a];
|
|
1166
|
+
}), n;
|
|
1167
|
+
}
|
|
1168
|
+
return ht = e, ht;
|
|
1169
|
+
}
|
|
1170
|
+
function zu(e) {
|
|
1171
|
+
var r = -1, t = Array(e.size);
|
|
1172
|
+
return e.forEach(function(n) {
|
|
1173
|
+
t[++r] = n;
|
|
1174
|
+
}), t;
|
|
1175
|
+
}
|
|
1176
|
+
var Wu = zu, vt, Va;
|
|
1177
|
+
function Yu() {
|
|
1178
|
+
if (Va) return vt;
|
|
1179
|
+
Va = 1;
|
|
1180
|
+
var e = we(), r = ku, t = un(), n = os(), a = Uu(), i = Wu, o = 1, u = 2, v = "[object Boolean]", h = "[object Date]", m = "[object Error]", _ = "[object Map]", I = "[object Number]", P = "[object RegExp]", N = "[object Set]", K = "[object String]", b = "[object Symbol]", l = "[object ArrayBuffer]", g = "[object DataView]", C = e ? e.prototype : void 0, y = C ? C.valueOf : void 0;
|
|
1181
|
+
function S(O, q, L, R, x, E, $) {
|
|
1182
|
+
switch (L) {
|
|
1183
|
+
case g:
|
|
1184
|
+
if (O.byteLength != q.byteLength || O.byteOffset != q.byteOffset)
|
|
1185
|
+
return !1;
|
|
1186
|
+
O = O.buffer, q = q.buffer;
|
|
1187
|
+
case l:
|
|
1188
|
+
return !(O.byteLength != q.byteLength || !E(new r(O), new r(q)));
|
|
1189
|
+
case v:
|
|
1190
|
+
case h:
|
|
1191
|
+
case I:
|
|
1192
|
+
return t(+O, +q);
|
|
1193
|
+
case m:
|
|
1194
|
+
return O.name == q.name && O.message == q.message;
|
|
1195
|
+
case P:
|
|
1196
|
+
case K:
|
|
1197
|
+
return O == q + "";
|
|
1198
|
+
case _:
|
|
1199
|
+
var T = a;
|
|
1200
|
+
case N:
|
|
1201
|
+
var k = R & o;
|
|
1202
|
+
if (T || (T = i), O.size != q.size && !k)
|
|
1203
|
+
return !1;
|
|
1204
|
+
var X = $.get(O);
|
|
1205
|
+
if (X)
|
|
1206
|
+
return X == q;
|
|
1207
|
+
R |= u, $.set(O, q);
|
|
1208
|
+
var te = n(T(O), T(q), R, x, E, $);
|
|
1209
|
+
return $.delete(O), te;
|
|
1210
|
+
case b:
|
|
1211
|
+
if (y)
|
|
1212
|
+
return y.call(O) == y.call(q);
|
|
1213
|
+
}
|
|
1214
|
+
return !1;
|
|
1215
|
+
}
|
|
1216
|
+
return vt = S, vt;
|
|
1217
|
+
}
|
|
1218
|
+
var Xu = es(), Ju = re();
|
|
1219
|
+
function Zu(e, r, t) {
|
|
1220
|
+
var n = r(e);
|
|
1221
|
+
return Ju(e) ? n : Xu(n, t(e));
|
|
1222
|
+
}
|
|
1223
|
+
var Qu = Zu;
|
|
1224
|
+
function Vu() {
|
|
1225
|
+
return [];
|
|
1226
|
+
}
|
|
1227
|
+
var ec = Vu, rc = ns(), tc = ec, nc = Object.prototype, ac = nc.propertyIsEnumerable, ei = Object.getOwnPropertySymbols, ic = ei ? function(e) {
|
|
1228
|
+
return e == null ? [] : (e = Object(e), rc(ei(e), function(r) {
|
|
1229
|
+
return ac.call(e, r);
|
|
1230
|
+
}));
|
|
1231
|
+
} : tc, sc = ic, oc = Qu, uc = sc, cc = yn();
|
|
1232
|
+
function fc(e) {
|
|
1233
|
+
return oc(e, cc, uc);
|
|
1234
|
+
}
|
|
1235
|
+
var lc = fc, pt, ri;
|
|
1236
|
+
function dc() {
|
|
1237
|
+
if (ri) return pt;
|
|
1238
|
+
ri = 1;
|
|
1239
|
+
var e = lc, r = 1, t = Object.prototype, n = t.hasOwnProperty;
|
|
1240
|
+
function a(i, o, u, v, h, m) {
|
|
1241
|
+
var _ = u & r, I = e(i), P = I.length, N = e(o), K = N.length;
|
|
1242
|
+
if (P != K && !_)
|
|
1243
|
+
return !1;
|
|
1244
|
+
for (var b = P; b--; ) {
|
|
1245
|
+
var l = I[b];
|
|
1246
|
+
if (!(_ ? l in o : n.call(o, l)))
|
|
1247
|
+
return !1;
|
|
1248
|
+
}
|
|
1249
|
+
var g = m.get(i), C = m.get(o);
|
|
1250
|
+
if (g && C)
|
|
1251
|
+
return g == o && C == i;
|
|
1252
|
+
var y = !0;
|
|
1253
|
+
m.set(i, o), m.set(o, i);
|
|
1254
|
+
for (var S = _; ++b < P; ) {
|
|
1255
|
+
l = I[b];
|
|
1256
|
+
var O = i[l], q = o[l];
|
|
1257
|
+
if (v)
|
|
1258
|
+
var L = _ ? v(q, O, l, o, i, m) : v(O, q, l, i, o, m);
|
|
1259
|
+
if (!(L === void 0 ? O === q || h(O, q, u, v, m) : L)) {
|
|
1260
|
+
y = !1;
|
|
1261
|
+
break;
|
|
1262
|
+
}
|
|
1263
|
+
S || (S = l == "constructor");
|
|
1264
|
+
}
|
|
1265
|
+
if (y && !S) {
|
|
1266
|
+
var R = i.constructor, x = o.constructor;
|
|
1267
|
+
R != x && "constructor" in i && "constructor" in o && !(typeof R == "function" && R instanceof R && typeof x == "function" && x instanceof x) && (y = !1);
|
|
1268
|
+
}
|
|
1269
|
+
return m.delete(i), m.delete(o), y;
|
|
1270
|
+
}
|
|
1271
|
+
return pt = a, pt;
|
|
1272
|
+
}
|
|
1273
|
+
var hc = he, vc = ie(), pc = hc(vc, "DataView"), yc = pc, gc = he, bc = ie(), _c = gc(bc, "Promise"), mc = _c, Cc = he, Fc = ie(), qc = Cc(Fc, "Set"), Rc = qc, wc = he, Tc = ie(), Ac = wc(Tc, "WeakMap"), Oc = Ac, tn = yc, nn = cn, an = mc, sn = Rc, on = Oc, us = Te(), ge = Zi, ti = "[object Map]", xc = "[object Object]", ni = "[object Promise]", ai = "[object Set]", ii = "[object WeakMap]", si = "[object DataView]", Kc = ge(tn), Sc = ge(nn), Ec = ge(an), Pc = ge(sn), Mc = ge(on), le = us;
|
|
1274
|
+
(tn && le(new tn(new ArrayBuffer(1))) != si || nn && le(new nn()) != ti || an && le(an.resolve()) != ni || sn && le(new sn()) != ai || on && le(new on()) != ii) && (le = function(e) {
|
|
1275
|
+
var r = us(e), t = r == xc ? e.constructor : void 0, n = t ? ge(t) : "";
|
|
1276
|
+
if (n)
|
|
1277
|
+
switch (n) {
|
|
1278
|
+
case Kc:
|
|
1279
|
+
return si;
|
|
1280
|
+
case Sc:
|
|
1281
|
+
return ti;
|
|
1282
|
+
case Ec:
|
|
1283
|
+
return ni;
|
|
1284
|
+
case Pc:
|
|
1285
|
+
return ai;
|
|
1286
|
+
case Mc:
|
|
1287
|
+
return ii;
|
|
1288
|
+
}
|
|
1289
|
+
return r;
|
|
1290
|
+
});
|
|
1291
|
+
var Ic = le, yt, oi;
|
|
1292
|
+
function Dc() {
|
|
1293
|
+
if (oi) return yt;
|
|
1294
|
+
oi = 1;
|
|
1295
|
+
var e = ss, r = os(), t = Yu(), n = dc(), a = Ic, i = re(), o = as, u = is(), v = 1, h = "[object Arguments]", m = "[object Array]", _ = "[object Object]", I = Object.prototype, P = I.hasOwnProperty;
|
|
1296
|
+
function N(K, b, l, g, C, y) {
|
|
1297
|
+
var S = i(K), O = i(b), q = S ? m : a(K), L = O ? m : a(b);
|
|
1298
|
+
q = q == h ? _ : q, L = L == h ? _ : L;
|
|
1299
|
+
var R = q == _, x = L == _, E = q == L;
|
|
1300
|
+
if (E && o(K)) {
|
|
1301
|
+
if (!o(b))
|
|
1302
|
+
return !1;
|
|
1303
|
+
S = !0, R = !1;
|
|
1304
|
+
}
|
|
1305
|
+
if (E && !R)
|
|
1306
|
+
return y || (y = new e()), S || u(K) ? r(K, b, l, g, C, y) : t(K, b, q, l, g, C, y);
|
|
1307
|
+
if (!(l & v)) {
|
|
1308
|
+
var $ = R && P.call(K, "__wrapped__"), T = x && P.call(b, "__wrapped__");
|
|
1309
|
+
if ($ || T) {
|
|
1310
|
+
var k = $ ? K.value() : K, X = T ? b.value() : b;
|
|
1311
|
+
return y || (y = new e()), C(k, X, l, g, y);
|
|
1312
|
+
}
|
|
1313
|
+
}
|
|
1314
|
+
return E ? (y || (y = new e()), n(K, b, l, g, C, y)) : !1;
|
|
1315
|
+
}
|
|
1316
|
+
return yt = N, yt;
|
|
1317
|
+
}
|
|
1318
|
+
var gt, ui;
|
|
1319
|
+
function cs() {
|
|
1320
|
+
if (ui) return gt;
|
|
1321
|
+
ui = 1;
|
|
1322
|
+
var e = Dc(), r = ve();
|
|
1323
|
+
function t(n, a, i, o, u) {
|
|
1324
|
+
return n === a ? !0 : n == null || a == null || !r(n) && !r(a) ? n !== n && a !== a : e(n, a, i, o, t, u);
|
|
1325
|
+
}
|
|
1326
|
+
return gt = t, gt;
|
|
1327
|
+
}
|
|
1328
|
+
var bt, ci;
|
|
1329
|
+
function Lc() {
|
|
1330
|
+
if (ci) return bt;
|
|
1331
|
+
ci = 1;
|
|
1332
|
+
var e = ss, r = cs(), t = 1, n = 2;
|
|
1333
|
+
function a(i, o, u, v) {
|
|
1334
|
+
var h = u.length, m = h, _ = !v;
|
|
1335
|
+
if (i == null)
|
|
1336
|
+
return !m;
|
|
1337
|
+
for (i = Object(i); h--; ) {
|
|
1338
|
+
var I = u[h];
|
|
1339
|
+
if (_ && I[2] ? I[1] !== i[I[0]] : !(I[0] in i))
|
|
1340
|
+
return !1;
|
|
1341
|
+
}
|
|
1342
|
+
for (; ++h < m; ) {
|
|
1343
|
+
I = u[h];
|
|
1344
|
+
var P = I[0], N = i[P], K = I[1];
|
|
1345
|
+
if (_ && I[2]) {
|
|
1346
|
+
if (N === void 0 && !(P in i))
|
|
1347
|
+
return !1;
|
|
1348
|
+
} else {
|
|
1349
|
+
var b = new e();
|
|
1350
|
+
if (v)
|
|
1351
|
+
var l = v(N, K, P, i, o, b);
|
|
1352
|
+
if (!(l === void 0 ? r(K, N, t | n, v, b) : l))
|
|
1353
|
+
return !1;
|
|
1354
|
+
}
|
|
1355
|
+
}
|
|
1356
|
+
return !0;
|
|
1357
|
+
}
|
|
1358
|
+
return bt = a, bt;
|
|
1359
|
+
}
|
|
1360
|
+
var _t, fi;
|
|
1361
|
+
function fs() {
|
|
1362
|
+
if (fi) return _t;
|
|
1363
|
+
fi = 1;
|
|
1364
|
+
var e = de();
|
|
1365
|
+
function r(t) {
|
|
1366
|
+
return t === t && !e(t);
|
|
1367
|
+
}
|
|
1368
|
+
return _t = r, _t;
|
|
1369
|
+
}
|
|
1370
|
+
var mt, li;
|
|
1371
|
+
function Nc() {
|
|
1372
|
+
if (li) return mt;
|
|
1373
|
+
li = 1;
|
|
1374
|
+
var e = fs(), r = yn();
|
|
1375
|
+
function t(n) {
|
|
1376
|
+
for (var a = r(n), i = a.length; i--; ) {
|
|
1377
|
+
var o = a[i], u = n[o];
|
|
1378
|
+
a[i] = [o, u, e(u)];
|
|
1379
|
+
}
|
|
1380
|
+
return a;
|
|
1381
|
+
}
|
|
1382
|
+
return mt = t, mt;
|
|
1383
|
+
}
|
|
1384
|
+
var Ct, di;
|
|
1385
|
+
function ls() {
|
|
1386
|
+
if (di) return Ct;
|
|
1387
|
+
di = 1;
|
|
1388
|
+
function e(r, t) {
|
|
1389
|
+
return function(n) {
|
|
1390
|
+
return n == null ? !1 : n[r] === t && (t !== void 0 || r in Object(n));
|
|
1391
|
+
};
|
|
1392
|
+
}
|
|
1393
|
+
return Ct = e, Ct;
|
|
1394
|
+
}
|
|
1395
|
+
var Ft, hi;
|
|
1396
|
+
function Bc() {
|
|
1397
|
+
if (hi) return Ft;
|
|
1398
|
+
hi = 1;
|
|
1399
|
+
var e = Lc(), r = Nc(), t = ls();
|
|
1400
|
+
function n(a) {
|
|
1401
|
+
var i = r(a);
|
|
1402
|
+
return i.length == 1 && i[0][2] ? t(i[0][0], i[0][1]) : function(o) {
|
|
1403
|
+
return o === a || e(o, a, i);
|
|
1404
|
+
};
|
|
1405
|
+
}
|
|
1406
|
+
return Ft = n, Ft;
|
|
1407
|
+
}
|
|
1408
|
+
var qt, vi;
|
|
1409
|
+
function _n() {
|
|
1410
|
+
if (vi) return qt;
|
|
1411
|
+
vi = 1;
|
|
1412
|
+
var e = re(), r = Ae(), t = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, n = /^\w*$/;
|
|
1413
|
+
function a(i, o) {
|
|
1414
|
+
if (e(i))
|
|
1415
|
+
return !1;
|
|
1416
|
+
var u = typeof i;
|
|
1417
|
+
return u == "number" || u == "symbol" || u == "boolean" || i == null || r(i) ? !0 : n.test(i) || !t.test(i) || o != null && i in Object(o);
|
|
1418
|
+
}
|
|
1419
|
+
return qt = a, qt;
|
|
1420
|
+
}
|
|
1421
|
+
var ds = fn(), jc = "Expected a function";
|
|
1422
|
+
function mn(e, r) {
|
|
1423
|
+
if (typeof e != "function" || r != null && typeof r != "function")
|
|
1424
|
+
throw new TypeError(jc);
|
|
1425
|
+
var t = function() {
|
|
1426
|
+
var n = arguments, a = r ? r.apply(this, n) : n[0], i = t.cache;
|
|
1427
|
+
if (i.has(a))
|
|
1428
|
+
return i.get(a);
|
|
1429
|
+
var o = e.apply(this, n);
|
|
1430
|
+
return t.cache = i.set(a, o) || i, o;
|
|
1431
|
+
};
|
|
1432
|
+
return t.cache = new (mn.Cache || ds)(), t;
|
|
1433
|
+
}
|
|
1434
|
+
mn.Cache = ds;
|
|
1435
|
+
var Hc = mn, $c = Hc, Gc = 500;
|
|
1436
|
+
function kc(e) {
|
|
1437
|
+
var r = $c(e, function(n) {
|
|
1438
|
+
return t.size === Gc && t.clear(), n;
|
|
1439
|
+
}), t = r.cache;
|
|
1440
|
+
return r;
|
|
1441
|
+
}
|
|
1442
|
+
var Uc = kc, zc = Uc, Wc = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, Yc = /\\(\\)?/g, Xc = zc(function(e) {
|
|
1443
|
+
var r = [];
|
|
1444
|
+
return e.charCodeAt(0) === 46 && r.push(""), e.replace(Wc, function(t, n, a, i) {
|
|
1445
|
+
r.push(a ? i.replace(Yc, "$1") : n || t);
|
|
1446
|
+
}), r;
|
|
1447
|
+
}), Jc = Xc, Rt, pi;
|
|
1448
|
+
function Zc() {
|
|
1449
|
+
if (pi) return Rt;
|
|
1450
|
+
pi = 1;
|
|
1451
|
+
var e = we(), r = ln, t = re(), n = Ae(), a = 1 / 0, i = e ? e.prototype : void 0, o = i ? i.toString : void 0;
|
|
1452
|
+
function u(v) {
|
|
1453
|
+
if (typeof v == "string")
|
|
1454
|
+
return v;
|
|
1455
|
+
if (t(v))
|
|
1456
|
+
return r(v, u) + "";
|
|
1457
|
+
if (n(v))
|
|
1458
|
+
return o ? o.call(v) : "";
|
|
1459
|
+
var h = v + "";
|
|
1460
|
+
return h == "0" && 1 / v == -a ? "-0" : h;
|
|
1461
|
+
}
|
|
1462
|
+
return Rt = u, Rt;
|
|
1463
|
+
}
|
|
1464
|
+
var wt, yi;
|
|
1465
|
+
function hs() {
|
|
1466
|
+
if (yi) return wt;
|
|
1467
|
+
yi = 1;
|
|
1468
|
+
var e = Zc();
|
|
1469
|
+
function r(t) {
|
|
1470
|
+
return t == null ? "" : e(t);
|
|
1471
|
+
}
|
|
1472
|
+
return wt = r, wt;
|
|
1473
|
+
}
|
|
1474
|
+
var Qc = re(), Vc = _n(), ef = Jc, rf = hs();
|
|
1475
|
+
function tf(e, r) {
|
|
1476
|
+
return Qc(e) ? e : Vc(e, r) ? [e] : ef(rf(e));
|
|
1477
|
+
}
|
|
1478
|
+
var vs = tf, Tt, gi;
|
|
1479
|
+
function Be() {
|
|
1480
|
+
if (gi) return Tt;
|
|
1481
|
+
gi = 1;
|
|
1482
|
+
var e = Ae(), r = 1 / 0;
|
|
1483
|
+
function t(n) {
|
|
1484
|
+
if (typeof n == "string" || e(n))
|
|
1485
|
+
return n;
|
|
1486
|
+
var a = n + "";
|
|
1487
|
+
return a == "0" && 1 / n == -r ? "-0" : a;
|
|
1488
|
+
}
|
|
1489
|
+
return Tt = t, Tt;
|
|
1490
|
+
}
|
|
1491
|
+
var At, bi;
|
|
1492
|
+
function Cn() {
|
|
1493
|
+
if (bi) return At;
|
|
1494
|
+
bi = 1;
|
|
1495
|
+
var e = vs, r = Be();
|
|
1496
|
+
function t(n, a) {
|
|
1497
|
+
a = e(a, n);
|
|
1498
|
+
for (var i = 0, o = a.length; n != null && i < o; )
|
|
1499
|
+
n = n[r(a[i++])];
|
|
1500
|
+
return i && i == o ? n : void 0;
|
|
1501
|
+
}
|
|
1502
|
+
return At = t, At;
|
|
1503
|
+
}
|
|
1504
|
+
var Ot, _i;
|
|
1505
|
+
function nf() {
|
|
1506
|
+
if (_i) return Ot;
|
|
1507
|
+
_i = 1;
|
|
1508
|
+
var e = Cn();
|
|
1509
|
+
function r(t, n, a) {
|
|
1510
|
+
var i = t == null ? void 0 : e(t, n);
|
|
1511
|
+
return i === void 0 ? a : i;
|
|
1512
|
+
}
|
|
1513
|
+
return Ot = r, Ot;
|
|
1514
|
+
}
|
|
1515
|
+
var xt, mi;
|
|
1516
|
+
function af() {
|
|
1517
|
+
if (mi) return xt;
|
|
1518
|
+
mi = 1;
|
|
1519
|
+
function e(r, t) {
|
|
1520
|
+
return r != null && t in Object(r);
|
|
1521
|
+
}
|
|
1522
|
+
return xt = e, xt;
|
|
1523
|
+
}
|
|
1524
|
+
var Kt, Ci;
|
|
1525
|
+
function sf() {
|
|
1526
|
+
if (Ci) return Kt;
|
|
1527
|
+
Ci = 1;
|
|
1528
|
+
var e = vs, r = hn(), t = re(), n = pn(), a = vn(), i = Be();
|
|
1529
|
+
function o(u, v, h) {
|
|
1530
|
+
v = e(v, u);
|
|
1531
|
+
for (var m = -1, _ = v.length, I = !1; ++m < _; ) {
|
|
1532
|
+
var P = i(v[m]);
|
|
1533
|
+
if (!(I = u != null && h(u, P)))
|
|
1534
|
+
break;
|
|
1535
|
+
u = u[P];
|
|
1536
|
+
}
|
|
1537
|
+
return I || ++m != _ ? I : (_ = u == null ? 0 : u.length, !!_ && a(_) && n(P, _) && (t(u) || r(u)));
|
|
1538
|
+
}
|
|
1539
|
+
return Kt = o, Kt;
|
|
1540
|
+
}
|
|
1541
|
+
var St, Fi;
|
|
1542
|
+
function of() {
|
|
1543
|
+
if (Fi) return St;
|
|
1544
|
+
Fi = 1;
|
|
1545
|
+
var e = af(), r = sf();
|
|
1546
|
+
function t(n, a) {
|
|
1547
|
+
return n != null && r(n, a, e);
|
|
1548
|
+
}
|
|
1549
|
+
return St = t, St;
|
|
1550
|
+
}
|
|
1551
|
+
var Et, qi;
|
|
1552
|
+
function uf() {
|
|
1553
|
+
if (qi) return Et;
|
|
1554
|
+
qi = 1;
|
|
1555
|
+
var e = cs(), r = nf(), t = of(), n = _n(), a = fs(), i = ls(), o = Be(), u = 1, v = 2;
|
|
1556
|
+
function h(m, _) {
|
|
1557
|
+
return n(m) && a(_) ? i(o(m), _) : function(I) {
|
|
1558
|
+
var P = r(I, m);
|
|
1559
|
+
return P === void 0 && P === _ ? t(I, m) : e(_, P, u | v);
|
|
1560
|
+
};
|
|
1561
|
+
}
|
|
1562
|
+
return Et = h, Et;
|
|
1563
|
+
}
|
|
1564
|
+
var Pt, Ri;
|
|
1565
|
+
function cf() {
|
|
1566
|
+
if (Ri) return Pt;
|
|
1567
|
+
Ri = 1;
|
|
1568
|
+
function e(r) {
|
|
1569
|
+
return function(t) {
|
|
1570
|
+
return t == null ? void 0 : t[r];
|
|
1571
|
+
};
|
|
1572
|
+
}
|
|
1573
|
+
return Pt = e, Pt;
|
|
1574
|
+
}
|
|
1575
|
+
var Mt, wi;
|
|
1576
|
+
function ff() {
|
|
1577
|
+
if (wi) return Mt;
|
|
1578
|
+
wi = 1;
|
|
1579
|
+
var e = Cn();
|
|
1580
|
+
function r(t) {
|
|
1581
|
+
return function(n) {
|
|
1582
|
+
return e(n, t);
|
|
1583
|
+
};
|
|
1584
|
+
}
|
|
1585
|
+
return Mt = r, Mt;
|
|
1586
|
+
}
|
|
1587
|
+
var It, Ti;
|
|
1588
|
+
function lf() {
|
|
1589
|
+
if (Ti) return It;
|
|
1590
|
+
Ti = 1;
|
|
1591
|
+
var e = cf(), r = ff(), t = _n(), n = Be();
|
|
1592
|
+
function a(i) {
|
|
1593
|
+
return t(i) ? e(n(i)) : r(i);
|
|
1594
|
+
}
|
|
1595
|
+
return It = a, It;
|
|
1596
|
+
}
|
|
1597
|
+
var Dt, Ai;
|
|
1598
|
+
function Fn() {
|
|
1599
|
+
if (Ai) return Dt;
|
|
1600
|
+
Ai = 1;
|
|
1601
|
+
var e = Bc(), r = uf(), t = Oe(), n = re(), a = lf();
|
|
1602
|
+
function i(o) {
|
|
1603
|
+
return typeof o == "function" ? o : o == null ? t : typeof o == "object" ? n(o) ? r(o[0], o[1]) : e(o) : a(o);
|
|
1604
|
+
}
|
|
1605
|
+
return Dt = i, Dt;
|
|
1606
|
+
}
|
|
1607
|
+
var Lt, Oi;
|
|
1608
|
+
function df() {
|
|
1609
|
+
if (Oi) return Lt;
|
|
1610
|
+
Oi = 1;
|
|
1611
|
+
var e = ns(), r = _u(), t = Fn(), n = re();
|
|
1612
|
+
function a(i, o) {
|
|
1613
|
+
var u = n(i) ? e : r;
|
|
1614
|
+
return u(i, t(o, 3));
|
|
1615
|
+
}
|
|
1616
|
+
return Lt = a, Lt;
|
|
1617
|
+
}
|
|
1618
|
+
var Nt, xi;
|
|
1619
|
+
function hf() {
|
|
1620
|
+
if (xi) return Nt;
|
|
1621
|
+
xi = 1;
|
|
1622
|
+
function e(r, t, n) {
|
|
1623
|
+
var a;
|
|
1624
|
+
return n(r, function(i, o, u) {
|
|
1625
|
+
if (t(i, o, u))
|
|
1626
|
+
return a = o, !1;
|
|
1627
|
+
}), a;
|
|
1628
|
+
}
|
|
1629
|
+
return Nt = e, Nt;
|
|
1630
|
+
}
|
|
1631
|
+
var Bt, Ki;
|
|
1632
|
+
function vf() {
|
|
1633
|
+
if (Ki) return Bt;
|
|
1634
|
+
Ki = 1;
|
|
1635
|
+
var e = hf(), r = gn(), t = Fn();
|
|
1636
|
+
function n(a, i) {
|
|
1637
|
+
return e(a, t(i, 3), r);
|
|
1638
|
+
}
|
|
1639
|
+
return Bt = n, Bt;
|
|
1640
|
+
}
|
|
1641
|
+
var jt, Si;
|
|
1642
|
+
function pf() {
|
|
1643
|
+
if (Si) return jt;
|
|
1644
|
+
Si = 1;
|
|
1645
|
+
function e(r) {
|
|
1646
|
+
return r && r.length ? r[0] : void 0;
|
|
1647
|
+
}
|
|
1648
|
+
return jt = e, jt;
|
|
1649
|
+
}
|
|
1650
|
+
var Ht, Ei;
|
|
1651
|
+
function yf() {
|
|
1652
|
+
return Ei || (Ei = 1, Ht = pf()), Ht;
|
|
1653
|
+
}
|
|
1654
|
+
var $t, Pi;
|
|
1655
|
+
function gf() {
|
|
1656
|
+
if (Pi) return $t;
|
|
1657
|
+
Pi = 1;
|
|
1658
|
+
function e(r, t) {
|
|
1659
|
+
for (var n = -1, a = r == null ? 0 : r.length; ++n < a && t(r[n], n, r) !== !1; )
|
|
1660
|
+
;
|
|
1661
|
+
return r;
|
|
1662
|
+
}
|
|
1663
|
+
return $t = e, $t;
|
|
1664
|
+
}
|
|
1665
|
+
var Gt, Mi;
|
|
1666
|
+
function ps() {
|
|
1667
|
+
if (Mi) return Gt;
|
|
1668
|
+
Mi = 1;
|
|
1669
|
+
var e = Oe();
|
|
1670
|
+
function r(t) {
|
|
1671
|
+
return typeof t == "function" ? t : e;
|
|
1672
|
+
}
|
|
1673
|
+
return Gt = r, Gt;
|
|
1674
|
+
}
|
|
1675
|
+
var kt, Ii;
|
|
1676
|
+
function bf() {
|
|
1677
|
+
if (Ii) return kt;
|
|
1678
|
+
Ii = 1;
|
|
1679
|
+
var e = gf(), r = bn(), t = ps(), n = re();
|
|
1680
|
+
function a(i, o) {
|
|
1681
|
+
var u = n(i) ? e : r;
|
|
1682
|
+
return u(i, t(o));
|
|
1683
|
+
}
|
|
1684
|
+
return kt = a, kt;
|
|
1685
|
+
}
|
|
1686
|
+
var Ut, Di;
|
|
1687
|
+
function _f() {
|
|
1688
|
+
if (Di) return Ut;
|
|
1689
|
+
Di = 1;
|
|
1690
|
+
var e = gn(), r = ps();
|
|
1691
|
+
function t(n, a) {
|
|
1692
|
+
return n && e(n, r(a));
|
|
1693
|
+
}
|
|
1694
|
+
return Ut = t, Ut;
|
|
1695
|
+
}
|
|
1696
|
+
var zt, Li;
|
|
1697
|
+
function mf() {
|
|
1698
|
+
if (Li) return zt;
|
|
1699
|
+
Li = 1;
|
|
1700
|
+
function e() {
|
|
1701
|
+
}
|
|
1702
|
+
return zt = e, zt;
|
|
1703
|
+
}
|
|
1704
|
+
var Wt, Ni;
|
|
1705
|
+
function Cf() {
|
|
1706
|
+
if (Ni) return Wt;
|
|
1707
|
+
Ni = 1;
|
|
1708
|
+
var e = bn(), r = xe();
|
|
1709
|
+
function t(n, a) {
|
|
1710
|
+
var i = -1, o = r(n) ? Array(n.length) : [];
|
|
1711
|
+
return e(n, function(u, v, h) {
|
|
1712
|
+
o[++i] = a(u, v, h);
|
|
1713
|
+
}), o;
|
|
1714
|
+
}
|
|
1715
|
+
return Wt = t, Wt;
|
|
1716
|
+
}
|
|
1717
|
+
var Yt, Bi;
|
|
1718
|
+
function Ff() {
|
|
1719
|
+
if (Bi) return Yt;
|
|
1720
|
+
Bi = 1;
|
|
1721
|
+
function e(r, t) {
|
|
1722
|
+
var n = r.length;
|
|
1723
|
+
for (r.sort(t); n--; )
|
|
1724
|
+
r[n] = r[n].value;
|
|
1725
|
+
return r;
|
|
1726
|
+
}
|
|
1727
|
+
return Yt = e, Yt;
|
|
1728
|
+
}
|
|
1729
|
+
var Xt, ji;
|
|
1730
|
+
function qf() {
|
|
1731
|
+
if (ji) return Xt;
|
|
1732
|
+
ji = 1;
|
|
1733
|
+
var e = Ae();
|
|
1734
|
+
function r(t, n) {
|
|
1735
|
+
if (t !== n) {
|
|
1736
|
+
var a = t !== void 0, i = t === null, o = t === t, u = e(t), v = n !== void 0, h = n === null, m = n === n, _ = e(n);
|
|
1737
|
+
if (!h && !_ && !u && t > n || u && v && m && !h && !_ || i && v && m || !a && m || !o)
|
|
1738
|
+
return 1;
|
|
1739
|
+
if (!i && !u && !_ && t < n || _ && a && o && !i && !u || h && a && o || !v && o || !m)
|
|
1740
|
+
return -1;
|
|
1741
|
+
}
|
|
1742
|
+
return 0;
|
|
1743
|
+
}
|
|
1744
|
+
return Xt = r, Xt;
|
|
1745
|
+
}
|
|
1746
|
+
var Jt, Hi;
|
|
1747
|
+
function Rf() {
|
|
1748
|
+
if (Hi) return Jt;
|
|
1749
|
+
Hi = 1;
|
|
1750
|
+
var e = qf();
|
|
1751
|
+
function r(t, n, a) {
|
|
1752
|
+
for (var i = -1, o = t.criteria, u = n.criteria, v = o.length, h = a.length; ++i < v; ) {
|
|
1753
|
+
var m = e(o[i], u[i]);
|
|
1754
|
+
if (m) {
|
|
1755
|
+
if (i >= h)
|
|
1756
|
+
return m;
|
|
1757
|
+
var _ = a[i];
|
|
1758
|
+
return m * (_ == "desc" ? -1 : 1);
|
|
1759
|
+
}
|
|
1760
|
+
}
|
|
1761
|
+
return t.index - n.index;
|
|
1762
|
+
}
|
|
1763
|
+
return Jt = r, Jt;
|
|
1764
|
+
}
|
|
1765
|
+
var Zt, $i;
|
|
1766
|
+
function wf() {
|
|
1767
|
+
if ($i) return Zt;
|
|
1768
|
+
$i = 1;
|
|
1769
|
+
var e = ln, r = Cn(), t = Fn(), n = Cf(), a = Ff(), i = dn(), o = Rf(), u = Oe(), v = re();
|
|
1770
|
+
function h(m, _, I) {
|
|
1771
|
+
_.length ? _ = e(_, function(K) {
|
|
1772
|
+
return v(K) ? function(b) {
|
|
1773
|
+
return r(b, K.length === 1 ? K[0] : K);
|
|
1774
|
+
} : K;
|
|
1775
|
+
}) : _ = [u];
|
|
1776
|
+
var P = -1;
|
|
1777
|
+
_ = e(_, i(t));
|
|
1778
|
+
var N = n(m, function(K, b, l) {
|
|
1779
|
+
var g = e(_, function(C) {
|
|
1780
|
+
return C(K);
|
|
1781
|
+
});
|
|
1782
|
+
return { criteria: g, index: ++P, value: K };
|
|
1783
|
+
});
|
|
1784
|
+
return a(N, function(K, b) {
|
|
1785
|
+
return o(K, b, I);
|
|
1786
|
+
});
|
|
1787
|
+
}
|
|
1788
|
+
return Zt = h, Zt;
|
|
1789
|
+
}
|
|
1790
|
+
var Qt, Gi;
|
|
1791
|
+
function Tf() {
|
|
1792
|
+
if (Gi) return Qt;
|
|
1793
|
+
Gi = 1;
|
|
1794
|
+
var e = un(), r = xe(), t = pn(), n = de();
|
|
1795
|
+
function a(i, o, u) {
|
|
1796
|
+
if (!n(u))
|
|
1797
|
+
return !1;
|
|
1798
|
+
var v = typeof o;
|
|
1799
|
+
return (v == "number" ? r(u) && t(o, u.length) : v == "string" && o in u) ? e(u[o], i) : !1;
|
|
1800
|
+
}
|
|
1801
|
+
return Qt = a, Qt;
|
|
1802
|
+
}
|
|
1803
|
+
var Vt, ki;
|
|
1804
|
+
function Af() {
|
|
1805
|
+
if (ki) return Vt;
|
|
1806
|
+
ki = 1;
|
|
1807
|
+
var e = rs(), r = wf(), t = ts(), n = Tf(), a = t(function(i, o) {
|
|
1808
|
+
if (i == null)
|
|
1809
|
+
return [];
|
|
1810
|
+
var u = o.length;
|
|
1811
|
+
return u > 1 && n(i, o[0], o[1]) ? o = [] : u > 2 && n(o[0], o[1], o[2]) && (o = [o[0]]), r(i, e(o, 1), []);
|
|
1812
|
+
});
|
|
1813
|
+
return Vt = a, Vt;
|
|
1814
|
+
}
|
|
1815
|
+
var en, Ui;
|
|
1816
|
+
function Of() {
|
|
1817
|
+
if (Ui) return en;
|
|
1818
|
+
Ui = 1;
|
|
1819
|
+
var e = Xi(), r = de(), t = "Expected a function";
|
|
1820
|
+
function n(a, i, o) {
|
|
1821
|
+
var u = !0, v = !0;
|
|
1822
|
+
if (typeof a != "function")
|
|
1823
|
+
throw new TypeError(t);
|
|
1824
|
+
return r(o) && (u = "leading" in o ? !!o.leading : u, v = "trailing" in o ? !!o.trailing : v), e(a, i, {
|
|
1825
|
+
leading: u,
|
|
1826
|
+
maxWait: i,
|
|
1827
|
+
trailing: v
|
|
1828
|
+
});
|
|
1829
|
+
}
|
|
1830
|
+
return en = n, en;
|
|
1831
|
+
}
|
|
1832
|
+
var rn, zi;
|
|
1833
|
+
function xf() {
|
|
1834
|
+
if (zi) return rn;
|
|
1835
|
+
zi = 1;
|
|
1836
|
+
var e = hs(), r = 0;
|
|
1837
|
+
function t(n) {
|
|
1838
|
+
var a = ++r;
|
|
1839
|
+
return e(n) + a;
|
|
1840
|
+
}
|
|
1841
|
+
return rn = t, rn;
|
|
1842
|
+
}
|
|
1843
|
+
(function(e, r) {
|
|
1844
|
+
(function(t, n) {
|
|
1845
|
+
e.exports = n(Xi(), tu(), df(), vf(), yf(), bf(), _f(), mf(), Af(), Of(), xf(), bs);
|
|
1846
|
+
})(Re, function(t, n, a, i, o, u, v, h, m, _, I, P) {
|
|
1847
|
+
return function() {
|
|
1848
|
+
var N = { 654: function(b, l, g) {
|
|
1849
|
+
var C, y = this && this.__assign || function() {
|
|
1850
|
+
return y = Object.assign || function(p) {
|
|
1851
|
+
for (var s, c = 1, f = arguments.length; c < f; c++) for (var d in s = arguments[c]) Object.prototype.hasOwnProperty.call(s, d) && (p[d] = s[d]);
|
|
1852
|
+
return p;
|
|
1853
|
+
}, y.apply(this, arguments);
|
|
1854
|
+
}, S = this && this.__createBinding || (Object.create ? function(p, s, c, f) {
|
|
1855
|
+
f === void 0 && (f = c);
|
|
1856
|
+
var d = Object.getOwnPropertyDescriptor(s, c);
|
|
1857
|
+
d && !("get" in d ? !s.__esModule : d.writable || d.configurable) || (d = { enumerable: !0, get: function() {
|
|
1858
|
+
return s[c];
|
|
1859
|
+
} }), Object.defineProperty(p, f, d);
|
|
1860
|
+
} : function(p, s, c, f) {
|
|
1861
|
+
f === void 0 && (f = c), p[f] = s[c];
|
|
1862
|
+
}), O = this && this.__setModuleDefault || (Object.create ? function(p, s) {
|
|
1863
|
+
Object.defineProperty(p, "default", { enumerable: !0, value: s });
|
|
1864
|
+
} : function(p, s) {
|
|
1865
|
+
p.default = s;
|
|
1866
|
+
}), q = this && this.__importStar || function(p) {
|
|
1867
|
+
if (p && p.__esModule) return p;
|
|
1868
|
+
var s = {};
|
|
1869
|
+
if (p != null) for (var c in p) c !== "default" && Object.prototype.hasOwnProperty.call(p, c) && S(s, p, c);
|
|
1870
|
+
return O(s, p), s;
|
|
1871
|
+
}, L = this && this.__spreadArray || function(p, s, c) {
|
|
1872
|
+
if (c || arguments.length === 2) for (var f, d = 0, F = s.length; d < F; d++) !f && d in s || (f || (f = Array.prototype.slice.call(s, 0, d)), f[d] = s[d]);
|
|
1873
|
+
return p.concat(f || Array.prototype.slice.call(s));
|
|
1874
|
+
}, R = this && this.__importDefault || function(p) {
|
|
1875
|
+
return p && p.__esModule ? p : { default: p };
|
|
1876
|
+
};
|
|
1877
|
+
Object.defineProperty(l, "__esModule", { value: !0 }), l.updateRtl = l.doesFocusableExist = l.getCurrentFocusKey = l.updateAllLayouts = l.resume = l.pause = l.navigateByDirection = l.setFocus = l.setKeyMap = l.destroy = l.setThrottle = l.init = l.SpatialNavigation = l.ROOT_FOCUS_KEY = void 0;
|
|
1878
|
+
var x = R(g(150)), E = R(g(117)), $ = R(g(747)), T = R(g(23)), k = R(g(842)), X = R(g(682)), te = R(g(784)), be = R(g(432)), je = R(g(67)), Ke = R(g(35)), Q = R(g(119)), _e = q(g(964)), oe = "left", ue = "right", ce = "up", ne = "down", me = "enter", Ce = ((C = {}).left = [37, "ArrowLeft"], C.up = [38, "ArrowUp"], C.right = [39, "ArrowRight"], C.down = [40, "ArrowDown"], C.enter = [13, "Enter"], C);
|
|
1879
|
+
l.ROOT_FOCUS_KEY = "SN:ROOT";
|
|
1880
|
+
var Fe = ["#0FF", "#FF0", "#F0F"], Se = { leading: !0, trailing: !1 }, Ee = function() {
|
|
1881
|
+
function p() {
|
|
1882
|
+
this.focusableComponents = {}, this.focusKey = null, this.parentsHavingFocusedChild = [], this.domNodeFocusOptions = {}, this.enabled = !1, this.nativeMode = !1, this.throttle = 0, this.throttleKeypresses = !1, this.useGetBoundingClientRect = !1, this.shouldFocusDOMNode = !1, this.shouldUseNativeEvents = !1, this.writingDirection = Q.default.LTR, this.pressedKeys = {}, this.paused = !1, this.keyDownEventListener = null, this.keyUpEventListener = null, this.keyMap = Ce, this.pause = this.pause.bind(this), this.resume = this.resume.bind(this), this.setFocus = this.setFocus.bind(this), this.updateAllLayouts = this.updateAllLayouts.bind(this), this.navigateByDirection = this.navigateByDirection.bind(this), this.init = this.init.bind(this), this.setThrottle = this.setThrottle.bind(this), this.destroy = this.destroy.bind(this), this.setKeyMap = this.setKeyMap.bind(this), this.getCurrentFocusKey = this.getCurrentFocusKey.bind(this), this.doesFocusableExist = this.doesFocusableExist.bind(this), this.updateRtl = this.updateRtl.bind(this), this.setFocusDebounced = (0, x.default)(this.setFocus, 300, { leading: !1, trailing: !0 }), this.debug = !1, this.visualDebugger = null, this.logIndex = 0, this.distanceCalculationMethod = "corners";
|
|
1883
|
+
}
|
|
1884
|
+
return p.getCutoffCoordinate = function(s, c, f, d, F) {
|
|
1885
|
+
var w = s ? d.top : F === Q.default.LTR ? d.left : d.right, A = s ? d.bottom : F === Q.default.LTR ? d.right : d.left;
|
|
1886
|
+
return c ? f ? w : A : f ? A : w;
|
|
1887
|
+
}, p.getRefCorners = function(s, c, f) {
|
|
1888
|
+
var d = { a: { x: 0, y: 0 }, b: { x: 0, y: 0 } };
|
|
1889
|
+
switch (s) {
|
|
1890
|
+
case ce:
|
|
1891
|
+
var F = c ? f.bottom : f.top;
|
|
1892
|
+
d.a = { x: f.left, y: F }, d.b = { x: f.right, y: F };
|
|
1893
|
+
break;
|
|
1894
|
+
case ne:
|
|
1895
|
+
F = c ? f.top : f.bottom, d.a = { x: f.left, y: F }, d.b = { x: f.right, y: F };
|
|
1896
|
+
break;
|
|
1897
|
+
case oe:
|
|
1898
|
+
var w = c ? f.right : f.left;
|
|
1899
|
+
d.a = { x: w, y: f.top }, d.b = { x: w, y: f.bottom };
|
|
1900
|
+
break;
|
|
1901
|
+
case ue:
|
|
1902
|
+
w = c ? f.left : f.right, d.a = { x: w, y: f.top }, d.b = { x: w, y: f.bottom };
|
|
1903
|
+
}
|
|
1904
|
+
return d;
|
|
1905
|
+
}, p.isAdjacentSlice = function(s, c, f) {
|
|
1906
|
+
var d = s.a, F = s.b, w = c.a, A = c.b, M = f ? "x" : "y", G = d[M], H = F[M], j = w[M], B = A[M], D = 0.2 * (H - G);
|
|
1907
|
+
return Math.max(0, Math.min(H, B) - Math.max(G, j)) >= D;
|
|
1908
|
+
}, p.getPrimaryAxisDistance = function(s, c, f) {
|
|
1909
|
+
var d = s.a, F = c.a, w = f ? "y" : "x";
|
|
1910
|
+
return Math.abs(F[w] - d[w]);
|
|
1911
|
+
}, p.getSecondaryAxisDistance = function(s, c, f, d, F) {
|
|
1912
|
+
if (F) return F(s, c, f, d);
|
|
1913
|
+
var w = s.a, A = s.b, M = c.a, G = c.b, H = f ? "x" : "y", j = w[H], B = A[H], D = M[H], Y = G[H];
|
|
1914
|
+
if (d === "center") {
|
|
1915
|
+
var z = (j + B) / 2, J = (D + Y) / 2;
|
|
1916
|
+
return Math.abs(z - J);
|
|
1917
|
+
}
|
|
1918
|
+
if (d === "edges") {
|
|
1919
|
+
var se = Math.min(j, B), U = Math.min(D, Y), V = Math.max(j, B), fe = Math.max(D, Y), ae = Math.abs(se - U), ee = Math.abs(V - fe);
|
|
1920
|
+
return Math.min(ae, ee);
|
|
1921
|
+
}
|
|
1922
|
+
var qe = [Math.abs(D - j), Math.abs(D - B), Math.abs(Y - j), Math.abs(Y - B)];
|
|
1923
|
+
return Math.min.apply(Math, qe);
|
|
1924
|
+
}, p.prototype.sortSiblingsByPriority = function(s, c, f, d) {
|
|
1925
|
+
var F = this, w = f === ne || f === ce, A = p.getRefCorners(f, !1, c);
|
|
1926
|
+
return (0, be.default)(s, function(M) {
|
|
1927
|
+
var G = p.getRefCorners(f, !0, M.layout), H = p.isAdjacentSlice(A, G, w), j = H ? p.getPrimaryAxisDistance : p.getSecondaryAxisDistance, B = H ? p.getSecondaryAxisDistance : p.getPrimaryAxisDistance, D = j(A, G, w, F.distanceCalculationMethod, F.customDistanceCalculationFunction), Y = B(A, G, w, F.distanceCalculationMethod, F.customDistanceCalculationFunction), z = 5 * D + Y, J = (z + 1) / (H ? 5 : 1);
|
|
1928
|
+
return F.log("smartNavigate", "distance (primary, secondary, total weighted) for ".concat(M.focusKey, " relative to ").concat(d, " is"), D, Y, z), F.log("smartNavigate", "priority for ".concat(M.focusKey, " relative to ").concat(d, " is"), J), F.visualDebugger && (F.visualDebugger.drawPoint(G.a.x, G.a.y, "yellow", 6), F.visualDebugger.drawPoint(G.b.x, G.b.y, "yellow", 6)), J;
|
|
1929
|
+
});
|
|
1930
|
+
}, p.prototype.init = function(s) {
|
|
1931
|
+
var c = this, f = s === void 0 ? {} : s, d = f.debug, F = d !== void 0 && d, w = f.visualDebug, A = w !== void 0 && w, M = f.nativeMode, G = M !== void 0 && M, H = f.throttle, j = H === void 0 ? 0 : H, B = f.throttleKeypresses, D = B !== void 0 && B, Y = f.useGetBoundingClientRect, z = Y !== void 0 && Y, J = f.shouldFocusDOMNode, se = J !== void 0 && J, U = f.domNodeFocusOptions, V = U === void 0 ? {} : U, fe = f.shouldUseNativeEvents, ae = fe !== void 0 && fe, ee = f.rtl, qe = ee !== void 0 && ee, W = f.distanceCalculationMethod, Z = W === void 0 ? "corners" : W, qn = f.customDistanceCalculationFunction, ys = qn === void 0 ? void 0 : qn;
|
|
1932
|
+
if (!this.enabled && (this.domNodeFocusOptions = V, this.enabled = !0, this.nativeMode = G, this.throttleKeypresses = D, this.useGetBoundingClientRect = z, this.shouldFocusDOMNode = se && !G, this.shouldUseNativeEvents = ae, this.writingDirection = qe ? Q.default.RTL : Q.default.LTR, this.distanceCalculationMethod = Z, this.customDistanceCalculationFunction = ys, this.debug = F, !this.nativeMode && (Number.isInteger(j) && j > 0 && (this.throttle = j), this.bindEventHandlers(), A))) {
|
|
1933
|
+
this.visualDebugger = new Ke.default(this.writingDirection);
|
|
1934
|
+
var Rn = function() {
|
|
1935
|
+
requestAnimationFrame(function() {
|
|
1936
|
+
c.visualDebugger.clearLayouts(), (0, te.default)(c.focusableComponents, function(wn, gs) {
|
|
1937
|
+
c.visualDebugger.drawLayout(wn.layout, gs, wn.parentFocusKey);
|
|
1938
|
+
}), Rn();
|
|
1939
|
+
});
|
|
1940
|
+
};
|
|
1941
|
+
Rn();
|
|
1942
|
+
}
|
|
1943
|
+
}, p.prototype.setThrottle = function(s) {
|
|
1944
|
+
var c = s === void 0 ? {} : s, f = c.throttle, d = f === void 0 ? 0 : f, F = c.throttleKeypresses, w = F !== void 0 && F;
|
|
1945
|
+
this.throttleKeypresses = w, this.nativeMode || (this.unbindEventHandlers(), Number.isInteger(d) && (this.throttle = d), this.bindEventHandlers());
|
|
1946
|
+
}, p.prototype.destroy = function() {
|
|
1947
|
+
this.enabled && (this.enabled = !1, this.nativeMode = !1, this.throttle = 0, this.throttleKeypresses = !1, this.focusKey = null, this.parentsHavingFocusedChild = [], this.focusableComponents = {}, this.paused = !1, this.keyMap = Ce, this.unbindEventHandlers());
|
|
1948
|
+
}, p.prototype.getEventType = function(s) {
|
|
1949
|
+
return (0, T.default)(this.getKeyMap(), function(c) {
|
|
1950
|
+
return c.includes(s);
|
|
1951
|
+
});
|
|
1952
|
+
}, p.getKeyCode = function(s) {
|
|
1953
|
+
return s.keyCode || s.code || s.key;
|
|
1954
|
+
}, p.prototype.bindEventHandlers = function() {
|
|
1955
|
+
var s = this;
|
|
1956
|
+
typeof window < "u" && window.addEventListener && (this.keyDownEventListener = function(c) {
|
|
1957
|
+
if (s.paused !== !0) {
|
|
1958
|
+
s.debug && (s.logIndex += 1);
|
|
1959
|
+
var f = p.getKeyCode(c), d = s.getEventType(f);
|
|
1960
|
+
if (d) {
|
|
1961
|
+
s.pressedKeys[d] = s.pressedKeys[d] ? s.pressedKeys[d] + 1 : 1, s.shouldUseNativeEvents || (c.preventDefault(), c.stopPropagation());
|
|
1962
|
+
var F = { pressedKeys: s.pressedKeys };
|
|
1963
|
+
if (d === me && s.focusKey) s.onEnterPress(F);
|
|
1964
|
+
else {
|
|
1965
|
+
var w = s.onArrowPress(d, F) === !1;
|
|
1966
|
+
if (s.visualDebugger && s.visualDebugger.clear(), w) s.log("keyDownEventListener", "default navigation prevented");
|
|
1967
|
+
else {
|
|
1968
|
+
var A = (0, T.default)(s.getKeyMap(), function(M) {
|
|
1969
|
+
return M.includes(f);
|
|
1970
|
+
});
|
|
1971
|
+
s.smartNavigate(A, null, { event: c });
|
|
1972
|
+
}
|
|
1973
|
+
}
|
|
1974
|
+
}
|
|
1975
|
+
}
|
|
1976
|
+
}, this.throttle && (this.keyDownEventListenerThrottled = (0, je.default)(this.keyDownEventListener.bind(this), this.throttle, Se)), this.keyUpEventListener = function(c) {
|
|
1977
|
+
var f = p.getKeyCode(c), d = s.getEventType(f);
|
|
1978
|
+
delete s.pressedKeys[d], s.throttle && !s.throttleKeypresses && s.keyDownEventListenerThrottled.cancel(), d === me && s.focusKey && s.onEnterRelease(), !s.focusKey || d !== oe && d !== ue && d !== ce && d !== ne || s.onArrowRelease(d);
|
|
1979
|
+
}, window.addEventListener("keyup", this.keyUpEventListener), window.addEventListener("keydown", this.throttle ? this.keyDownEventListenerThrottled : this.keyDownEventListener));
|
|
1980
|
+
}, p.prototype.unbindEventHandlers = function() {
|
|
1981
|
+
if (typeof window < "u" && window.removeEventListener) {
|
|
1982
|
+
window.removeEventListener("keyup", this.keyUpEventListener), this.keyUpEventListener = null;
|
|
1983
|
+
var s = this.throttle ? this.keyDownEventListenerThrottled : this.keyDownEventListener;
|
|
1984
|
+
window.removeEventListener("keydown", s), this.keyDownEventListener = null;
|
|
1985
|
+
}
|
|
1986
|
+
}, p.prototype.onEnterPress = function(s) {
|
|
1987
|
+
var c = this.focusableComponents[this.focusKey];
|
|
1988
|
+
c ? c.focusable ? c.onEnterPress && c.onEnterPress(s) : this.log("onEnterPress", "componentNotFocusable") : this.log("onEnterPress", "noComponent");
|
|
1989
|
+
}, p.prototype.onEnterRelease = function() {
|
|
1990
|
+
var s = this.focusableComponents[this.focusKey];
|
|
1991
|
+
s ? s.focusable ? s.onEnterRelease && s.onEnterRelease() : this.log("onEnterRelease", "componentNotFocusable") : this.log("onEnterRelease", "noComponent");
|
|
1992
|
+
}, p.prototype.onArrowPress = function(s, c) {
|
|
1993
|
+
var f = this.focusableComponents[this.focusKey];
|
|
1994
|
+
if (f) return f && f.onArrowPress && f.onArrowPress(s, c);
|
|
1995
|
+
this.log("onArrowPress", "noComponent");
|
|
1996
|
+
}, p.prototype.onArrowRelease = function(s) {
|
|
1997
|
+
var c = this.focusableComponents[this.focusKey];
|
|
1998
|
+
c ? c.focusable ? c.onArrowRelease && c.onArrowRelease(s) : this.log("onArrowRelease", "componentNotFocusable") : this.log("onArrowRelease", "noComponent");
|
|
1999
|
+
}, p.prototype.navigateByDirection = function(s, c) {
|
|
2000
|
+
if (this.paused !== !0 && this.enabled && !this.nativeMode) {
|
|
2001
|
+
var f = [ne, ce, oe, ue];
|
|
2002
|
+
f.includes(s) ? (this.log("navigateByDirection", "direction", s), this.smartNavigate(s, null, c)) : this.log("navigateByDirection", "Invalid direction. You passed: `".concat(s, "`, but you can use only these: "), f);
|
|
2003
|
+
}
|
|
2004
|
+
}, p.prototype.smartNavigate = function(s, c, f) {
|
|
2005
|
+
var d = this;
|
|
2006
|
+
if (!this.nativeMode) {
|
|
2007
|
+
var F = s === ne || s === ce, w = s === ne || (this.writingDirection === Q.default.LTR ? s === ue : s === oe);
|
|
2008
|
+
this.log("smartNavigate", "direction", s), this.log("smartNavigate", "fromParentFocusKey", c), this.log("smartNavigate", "this.focusKey", this.focusKey), c || (0, te.default)(this.focusableComponents, function(U) {
|
|
2009
|
+
U.layoutUpdated = !1;
|
|
2010
|
+
});
|
|
2011
|
+
var A = this.focusableComponents[c || this.focusKey];
|
|
2012
|
+
if (c || A) {
|
|
2013
|
+
if (this.log("smartNavigate", "currentComponent", A ? A.focusKey : void 0, A ? A.node : void 0, A), A) {
|
|
2014
|
+
this.updateLayout(A.focusKey);
|
|
2015
|
+
var M = A.parentFocusKey, G = A.focusKey, H = A.layout, j = p.getCutoffCoordinate(F, w, !1, H, this.writingDirection), B = (0, $.default)(this.focusableComponents, function(U) {
|
|
2016
|
+
if (U.parentFocusKey === M && U.focusable) {
|
|
2017
|
+
d.updateLayout(U.focusKey);
|
|
2018
|
+
var V = p.getCutoffCoordinate(F, w, !0, U.layout, d.writingDirection);
|
|
2019
|
+
return F || d.writingDirection === Q.default.LTR ? w ? V >= j : V <= j : w ? V <= j : V >= j;
|
|
2020
|
+
}
|
|
2021
|
+
return !1;
|
|
2022
|
+
});
|
|
2023
|
+
if (this.debug && (this.log("smartNavigate", "currentCutoffCoordinate", j), this.log("smartNavigate", "siblings", "".concat(B.length, " elements:"), B.map(function(U) {
|
|
2024
|
+
return U.focusKey;
|
|
2025
|
+
}).join(", "), B.map(function(U) {
|
|
2026
|
+
return U.node;
|
|
2027
|
+
}), B.map(function(U) {
|
|
2028
|
+
return U;
|
|
2029
|
+
}))), this.visualDebugger) {
|
|
2030
|
+
var D = p.getRefCorners(s, !1, H);
|
|
2031
|
+
this.visualDebugger.drawPoint(D.a.x, D.a.y), this.visualDebugger.drawPoint(D.b.x, D.b.y);
|
|
2032
|
+
}
|
|
2033
|
+
var Y = this.sortSiblingsByPriority(B, H, s, G), z = (0, k.default)(Y);
|
|
2034
|
+
if (this.log("smartNavigate", "nextComponent", z ? z.focusKey : void 0, z ? z.node : void 0, z), z) this.setFocus(z.focusKey, f);
|
|
2035
|
+
else {
|
|
2036
|
+
var J = this.focusableComponents[M], se = J != null && J.isFocusBoundary ? J.focusBoundaryDirections || [s] : [];
|
|
2037
|
+
J && se.includes(s) || this.smartNavigate(s, M, f);
|
|
2038
|
+
}
|
|
2039
|
+
}
|
|
2040
|
+
} else this.setFocus(this.getForcedFocusKey());
|
|
2041
|
+
}
|
|
2042
|
+
}, p.prototype.saveLastFocusedChildKey = function(s, c) {
|
|
2043
|
+
s && (this.log("saveLastFocusedChildKey", "".concat(s.focusKey, " lastFocusedChildKey set"), c), s.lastFocusedChildKey = c);
|
|
2044
|
+
}, p.prototype.log = function(s, c) {
|
|
2045
|
+
for (var f = [], d = 2; d < arguments.length; d++) f[d - 2] = arguments[d];
|
|
2046
|
+
this.debug && console.log.apply(console, L(["%c".concat(s, "%c").concat(c), "background: ".concat(Fe[this.logIndex % Fe.length], "; color: black; padding: 1px 5px;"), "background: #333; color: #BADA55; padding: 1px 5px;"], f, !1));
|
|
2047
|
+
}, p.prototype.getCurrentFocusKey = function() {
|
|
2048
|
+
return this.focusKey;
|
|
2049
|
+
}, p.prototype.getForcedFocusKey = function() {
|
|
2050
|
+
var s, c = (0, $.default)(this.focusableComponents, function(d) {
|
|
2051
|
+
return d.focusable && d.forceFocus;
|
|
2052
|
+
}), f = this.sortSiblingsByPriority(c, { x: 0, y: 0, width: 0, height: 0, left: 0, top: 0, right: 0, bottom: 0, node: null }, "down", l.ROOT_FOCUS_KEY);
|
|
2053
|
+
return (s = (0, k.default)(f)) === null || s === void 0 ? void 0 : s.focusKey;
|
|
2054
|
+
}, p.prototype.getNextFocusKey = function(s) {
|
|
2055
|
+
var c = this, f = this.focusableComponents[s];
|
|
2056
|
+
if (!f || this.nativeMode) return s;
|
|
2057
|
+
var d = (0, $.default)(this.focusableComponents, function(M) {
|
|
2058
|
+
return M.parentFocusKey === s && M.focusable;
|
|
2059
|
+
});
|
|
2060
|
+
if (d.length > 0) {
|
|
2061
|
+
var F = f.lastFocusedChildKey, w = f.preferredChildFocusKey;
|
|
2062
|
+
if (this.log("getNextFocusKey", "lastFocusedChildKey is", F), this.log("getNextFocusKey", "preferredChildFocusKey is", w), F && f.saveLastFocusedChild && this.isParticipatingFocusableComponent(F)) return this.log("getNextFocusKey", "lastFocusedChildKey will be focused", F), this.getNextFocusKey(F);
|
|
2063
|
+
if (w && this.isParticipatingFocusableComponent(w)) return this.log("getNextFocusKey", "preferredChildFocusKey will be focused", w), this.getNextFocusKey(w);
|
|
2064
|
+
d.forEach(function(M) {
|
|
2065
|
+
return c.updateLayout(M.focusKey);
|
|
2066
|
+
});
|
|
2067
|
+
var A = function(M, G) {
|
|
2068
|
+
var H = G === Q.default.LTR ? function(B) {
|
|
2069
|
+
var D = B.layout;
|
|
2070
|
+
return Math.abs(D.left) + Math.abs(D.top);
|
|
2071
|
+
} : function(B) {
|
|
2072
|
+
var D = B.layout;
|
|
2073
|
+
return Math.abs(window.innerWidth - D.right) + Math.abs(D.top);
|
|
2074
|
+
}, j = (0, be.default)(M, H);
|
|
2075
|
+
return (0, k.default)(j);
|
|
2076
|
+
}(d, this.writingDirection).focusKey;
|
|
2077
|
+
return this.log("getNextFocusKey", "childKey will be focused", A), this.getNextFocusKey(A);
|
|
2078
|
+
}
|
|
2079
|
+
return this.log("getNextFocusKey", "targetFocusKey", s), s;
|
|
2080
|
+
}, p.prototype.addFocusable = function(s) {
|
|
2081
|
+
var c = s.focusKey, f = s.node, d = s.parentFocusKey, F = s.onEnterPress, w = s.onEnterRelease, A = s.onArrowPress, M = s.onArrowRelease, G = s.onFocus, H = s.onBlur, j = s.saveLastFocusedChild, B = s.trackChildren, D = s.onUpdateFocus, Y = s.onUpdateHasFocusedChild, z = s.preferredChildFocusKey, J = s.autoRestoreFocus, se = s.forceFocus, U = s.focusable, V = s.isFocusBoundary, fe = s.focusBoundaryDirections;
|
|
2082
|
+
if (this.focusableComponents[c] = { focusKey: c, node: f, parentFocusKey: d, onEnterPress: F, onEnterRelease: w, onArrowPress: A, onArrowRelease: M, onFocus: G, onBlur: H, onUpdateFocus: D, onUpdateHasFocusedChild: Y, saveLastFocusedChild: j, trackChildren: B, preferredChildFocusKey: z, focusable: U, isFocusBoundary: V, focusBoundaryDirections: fe, autoRestoreFocus: J, forceFocus: se, lastFocusedChildKey: null, layout: { x: 0, y: 0, width: 0, height: 0, left: 0, top: 0, right: 0, bottom: 0, node: f }, layoutUpdated: !1 }, f || console.warn('Component added without a node reference. This will result in its coordinates being empty and may cause lost focus. Check the "ref" passed to "useFocusable": ', this.focusableComponents[c]), !this.nativeMode) {
|
|
2083
|
+
this.updateLayout(c), this.log("addFocusable", "Component added: ", this.focusableComponents[c]), c === this.focusKey && this.setFocus(z || c);
|
|
2084
|
+
for (var ae = this.focusableComponents[this.focusKey]; ae; ) {
|
|
2085
|
+
if (ae.parentFocusKey === c) {
|
|
2086
|
+
this.updateParentsHasFocusedChild(this.focusKey, {}), this.updateParentsLastFocusedChild(this.focusKey);
|
|
2087
|
+
break;
|
|
2088
|
+
}
|
|
2089
|
+
ae = this.focusableComponents[ae.parentFocusKey];
|
|
2090
|
+
}
|
|
2091
|
+
}
|
|
2092
|
+
}, p.prototype.removeFocusable = function(s) {
|
|
2093
|
+
var c = s.focusKey, f = this.focusableComponents[c];
|
|
2094
|
+
if (f) {
|
|
2095
|
+
var d = f.parentFocusKey;
|
|
2096
|
+
(0, f.onUpdateFocus)(!1), this.log("removeFocusable", "Component removed: ", f), delete this.focusableComponents[c];
|
|
2097
|
+
var F = this.parentsHavingFocusedChild.includes(c);
|
|
2098
|
+
this.parentsHavingFocusedChild = this.parentsHavingFocusedChild.filter(function(M) {
|
|
2099
|
+
return M !== c;
|
|
2100
|
+
});
|
|
2101
|
+
var w = this.focusableComponents[d], A = c === this.focusKey;
|
|
2102
|
+
if (w && w.lastFocusedChildKey === c && (w.lastFocusedChildKey = null), this.nativeMode) return;
|
|
2103
|
+
(A || F) && w && w.autoRestoreFocus && (this.log("removeFocusable", "Component removed: ", A ? "Leaf component" : "Container component", "Auto restoring focus to: ", d), this.setFocusDebounced(d));
|
|
2104
|
+
}
|
|
2105
|
+
}, p.prototype.getNodeLayoutByFocusKey = function(s) {
|
|
2106
|
+
var c = this.focusableComponents[s];
|
|
2107
|
+
return c ? (this.updateLayout(c.focusKey), c.layout) : null;
|
|
2108
|
+
}, p.prototype.setCurrentFocusedKey = function(s, c) {
|
|
2109
|
+
var f, d, F, w;
|
|
2110
|
+
if (this.isFocusableComponent(this.focusKey) && s !== this.focusKey) {
|
|
2111
|
+
var A = this.focusableComponents[this.focusKey];
|
|
2112
|
+
A.onUpdateFocus(!1), A.onBlur(this.getNodeLayoutByFocusKey(this.focusKey), c), (d = (f = A.node) === null || f === void 0 ? void 0 : f.removeAttribute) === null || d === void 0 || d.call(f, "data-focused"), this.log("setCurrentFocusedKey", "onBlur", A);
|
|
2113
|
+
}
|
|
2114
|
+
if (this.focusKey = s, this.isFocusableComponent(this.focusKey)) {
|
|
2115
|
+
var M = this.focusableComponents[this.focusKey];
|
|
2116
|
+
this.shouldFocusDOMNode && M.node && M.node.focus(this.domNodeFocusOptions), (w = (F = M.node) === null || F === void 0 ? void 0 : F.setAttribute) === null || w === void 0 || w.call(F, "data-focused", "true"), M.onUpdateFocus(!0), M.onFocus(this.getNodeLayoutByFocusKey(this.focusKey), c), this.log("setCurrentFocusedKey", "onFocus", M);
|
|
2117
|
+
}
|
|
2118
|
+
}, p.prototype.updateParentsHasFocusedChild = function(s, c) {
|
|
2119
|
+
for (var f = this, d = [], F = this.focusableComponents[s]; F; ) {
|
|
2120
|
+
var w = F.parentFocusKey, A = this.focusableComponents[w];
|
|
2121
|
+
if (A) {
|
|
2122
|
+
var M = A.focusKey;
|
|
2123
|
+
d.push(M);
|
|
2124
|
+
}
|
|
2125
|
+
F = A;
|
|
2126
|
+
}
|
|
2127
|
+
var G = (0, E.default)(this.parentsHavingFocusedChild, d), H = (0, E.default)(d, this.parentsHavingFocusedChild);
|
|
2128
|
+
(0, X.default)(G, function(j) {
|
|
2129
|
+
var B = f.focusableComponents[j];
|
|
2130
|
+
B && B.trackChildren && B.onUpdateHasFocusedChild(!1), f.onIntermediateNodeBecameBlurred(j, c);
|
|
2131
|
+
}), (0, X.default)(H, function(j) {
|
|
2132
|
+
var B = f.focusableComponents[j];
|
|
2133
|
+
B && B.trackChildren && B.onUpdateHasFocusedChild(!0), f.onIntermediateNodeBecameFocused(j, c);
|
|
2134
|
+
}), this.parentsHavingFocusedChild = d;
|
|
2135
|
+
}, p.prototype.updateParentsLastFocusedChild = function(s) {
|
|
2136
|
+
for (var c = this.focusableComponents[s]; c; ) {
|
|
2137
|
+
var f = c.parentFocusKey, d = this.focusableComponents[f];
|
|
2138
|
+
d && this.saveLastFocusedChildKey(d, c.focusKey), c = d;
|
|
2139
|
+
}
|
|
2140
|
+
}, p.prototype.getKeyMap = function() {
|
|
2141
|
+
return this.keyMap;
|
|
2142
|
+
}, p.prototype.setKeyMap = function(s) {
|
|
2143
|
+
this.keyMap = y(y({}, this.getKeyMap()), function(c) {
|
|
2144
|
+
var f = {};
|
|
2145
|
+
return Object.entries(c).forEach(function(d) {
|
|
2146
|
+
var F = d[0], w = d[1];
|
|
2147
|
+
f[F] = Array.isArray(w) ? w : [w];
|
|
2148
|
+
}), f;
|
|
2149
|
+
}(s));
|
|
2150
|
+
}, p.prototype.isFocusableComponent = function(s) {
|
|
2151
|
+
return !!this.focusableComponents[s];
|
|
2152
|
+
}, p.prototype.isParticipatingFocusableComponent = function(s) {
|
|
2153
|
+
return this.isFocusableComponent(s) && this.focusableComponents[s].focusable;
|
|
2154
|
+
}, p.prototype.onIntermediateNodeBecameFocused = function(s, c) {
|
|
2155
|
+
this.isParticipatingFocusableComponent(s) && this.focusableComponents[s].onFocus(this.getNodeLayoutByFocusKey(s), c);
|
|
2156
|
+
}, p.prototype.onIntermediateNodeBecameBlurred = function(s, c) {
|
|
2157
|
+
this.isParticipatingFocusableComponent(s) && this.focusableComponents[s].onBlur(this.getNodeLayoutByFocusKey(s), c);
|
|
2158
|
+
}, p.prototype.pause = function() {
|
|
2159
|
+
this.paused = !0;
|
|
2160
|
+
}, p.prototype.resume = function() {
|
|
2161
|
+
this.paused = !1;
|
|
2162
|
+
}, p.prototype.setFocus = function(s, c) {
|
|
2163
|
+
if (c === void 0 && (c = {}), this.setFocusDebounced.cancel(), this.enabled) {
|
|
2164
|
+
this.log("setFocus", "focusKey", s), s && s !== l.ROOT_FOCUS_KEY || (s = this.getForcedFocusKey());
|
|
2165
|
+
var f = this.getNextFocusKey(s);
|
|
2166
|
+
this.log("setFocus", "newFocusKey", f), this.setCurrentFocusedKey(f, c), this.updateParentsHasFocusedChild(f, c), this.updateParentsLastFocusedChild(f);
|
|
2167
|
+
}
|
|
2168
|
+
}, p.prototype.updateAllLayouts = function() {
|
|
2169
|
+
var s = this;
|
|
2170
|
+
this.enabled && !this.nativeMode && (0, te.default)(this.focusableComponents, function(c, f) {
|
|
2171
|
+
s.updateLayout(f);
|
|
2172
|
+
});
|
|
2173
|
+
}, p.prototype.updateLayout = function(s) {
|
|
2174
|
+
var c = this.focusableComponents[s];
|
|
2175
|
+
if (c && !this.nativeMode && !c.layoutUpdated) {
|
|
2176
|
+
var f = c.node, d = this.useGetBoundingClientRect ? (0, _e.getBoundingClientRect)(f) : (0, _e.default)(f);
|
|
2177
|
+
c.layout = y(y({}, d), { node: f });
|
|
2178
|
+
}
|
|
2179
|
+
}, p.prototype.updateFocusable = function(s, c) {
|
|
2180
|
+
var f = c.node, d = c.preferredChildFocusKey, F = c.focusable, w = c.isFocusBoundary, A = c.focusBoundaryDirections, M = c.onEnterPress, G = c.onEnterRelease, H = c.onArrowPress, j = c.onFocus, B = c.onBlur;
|
|
2181
|
+
if (!this.nativeMode) {
|
|
2182
|
+
var D = this.focusableComponents[s];
|
|
2183
|
+
D && (D.preferredChildFocusKey = d, D.focusable = F, D.isFocusBoundary = w, D.focusBoundaryDirections = A, D.onEnterPress = M, D.onEnterRelease = G, D.onArrowPress = H, D.onFocus = j, D.onBlur = B, f && (D.node = f));
|
|
2184
|
+
}
|
|
2185
|
+
}, p.prototype.isNativeMode = function() {
|
|
2186
|
+
return this.nativeMode;
|
|
2187
|
+
}, p.prototype.doesFocusableExist = function(s) {
|
|
2188
|
+
return !!this.focusableComponents[s];
|
|
2189
|
+
}, p.prototype.updateRtl = function(s) {
|
|
2190
|
+
this.writingDirection = s ? Q.default.RTL : Q.default.LTR;
|
|
2191
|
+
}, p;
|
|
2192
|
+
}();
|
|
2193
|
+
l.SpatialNavigation = new Ee(), l.init = l.SpatialNavigation.init, l.setThrottle = l.SpatialNavigation.setThrottle, l.destroy = l.SpatialNavigation.destroy, l.setKeyMap = l.SpatialNavigation.setKeyMap, l.setFocus = l.SpatialNavigation.setFocus, l.navigateByDirection = l.SpatialNavigation.navigateByDirection, l.pause = l.SpatialNavigation.pause, l.resume = l.SpatialNavigation.resume, l.updateAllLayouts = l.SpatialNavigation.updateAllLayouts, l.getCurrentFocusKey = l.SpatialNavigation.getCurrentFocusKey, l.doesFocusableExist = l.SpatialNavigation.doesFocusableExist, l.updateRtl = l.SpatialNavigation.updateRtl;
|
|
2194
|
+
}, 35: function(b, l, g) {
|
|
2195
|
+
var C = this && this.__importDefault || function(R) {
|
|
2196
|
+
return R && R.__esModule ? R : { default: R };
|
|
2197
|
+
};
|
|
2198
|
+
Object.defineProperty(l, "__esModule", { value: !0 });
|
|
2199
|
+
var y = C(g(119)), S = typeof window < "u" && window.document, O = S ? window.innerWidth : 0, q = S ? window.innerHeight : 0, L = function() {
|
|
2200
|
+
function R(x) {
|
|
2201
|
+
S && (this.debugCtx = R.createCanvas("sn-debug", "1010", x), this.layoutsCtx = R.createCanvas("sn-layouts", "1000", x), this.writingDirection = x);
|
|
2202
|
+
}
|
|
2203
|
+
return R.createCanvas = function(x, E, $) {
|
|
2204
|
+
var T = document.querySelector("#".concat(x)) || document.createElement("canvas");
|
|
2205
|
+
T.setAttribute("id", x), T.setAttribute("dir", $ === y.default.LTR ? "ltr" : "rtl");
|
|
2206
|
+
var k = T.getContext("2d");
|
|
2207
|
+
return T.style.zIndex = E, T.style.position = "fixed", T.style.top = "0", T.style.left = "0", document.body.appendChild(T), T.width = O, T.height = q, k;
|
|
2208
|
+
}, R.prototype.clear = function() {
|
|
2209
|
+
S && this.debugCtx.clearRect(0, 0, O, q);
|
|
2210
|
+
}, R.prototype.clearLayouts = function() {
|
|
2211
|
+
S && this.layoutsCtx.clearRect(0, 0, O, q);
|
|
2212
|
+
}, R.prototype.drawLayout = function(x, E, $) {
|
|
2213
|
+
if (S) {
|
|
2214
|
+
this.layoutsCtx.strokeStyle = "green", this.layoutsCtx.strokeRect(x.left, x.top, x.width, x.height), this.layoutsCtx.font = "8px monospace", this.layoutsCtx.fillStyle = "red";
|
|
2215
|
+
var T = this.writingDirection === y.default.LTR ? "left" : "right", k = x[T];
|
|
2216
|
+
this.layoutsCtx.fillText(E, k, x.top + 10), this.layoutsCtx.fillText($, k, x.top + 25), this.layoutsCtx.fillText("".concat(T, ": ").concat(k), k, x.top + 40), this.layoutsCtx.fillText("top: ".concat(x.top), k, x.top + 55);
|
|
2217
|
+
}
|
|
2218
|
+
}, R.prototype.drawPoint = function(x, E, $, T) {
|
|
2219
|
+
$ === void 0 && ($ = "blue"), T === void 0 && (T = 10), S && (this.debugCtx.strokeStyle = $, this.debugCtx.lineWidth = 3, this.debugCtx.strokeRect(x - T / 2, E - T / 2, T, T));
|
|
2220
|
+
}, R;
|
|
2221
|
+
}();
|
|
2222
|
+
l.default = L;
|
|
2223
|
+
}, 119: function(b, l) {
|
|
2224
|
+
var g;
|
|
2225
|
+
Object.defineProperty(l, "__esModule", { value: !0 }), function(C) {
|
|
2226
|
+
C[C.LTR = 0] = "LTR", C[C.RTL = 1] = "RTL";
|
|
2227
|
+
}(g || (g = {})), l.default = g;
|
|
2228
|
+
}, 607: function(b, l, g) {
|
|
2229
|
+
var C = this && this.__createBinding || (Object.create ? function(S, O, q, L) {
|
|
2230
|
+
L === void 0 && (L = q);
|
|
2231
|
+
var R = Object.getOwnPropertyDescriptor(O, q);
|
|
2232
|
+
R && !("get" in R ? !O.__esModule : R.writable || R.configurable) || (R = { enumerable: !0, get: function() {
|
|
2233
|
+
return O[q];
|
|
2234
|
+
} }), Object.defineProperty(S, L, R);
|
|
2235
|
+
} : function(S, O, q, L) {
|
|
2236
|
+
L === void 0 && (L = q), S[L] = O[q];
|
|
2237
|
+
}), y = this && this.__exportStar || function(S, O) {
|
|
2238
|
+
for (var q in S) q === "default" || Object.prototype.hasOwnProperty.call(O, q) || C(O, S, q);
|
|
2239
|
+
};
|
|
2240
|
+
Object.defineProperty(l, "__esModule", { value: !0 }), y(g(79), l), y(g(445), l), y(g(654), l);
|
|
2241
|
+
}, 964: function(b, l) {
|
|
2242
|
+
Object.defineProperty(l, "__esModule", { value: !0 }), l.getBoundingClientRect = void 0;
|
|
2243
|
+
var g = function(C) {
|
|
2244
|
+
for (var y = C.offsetParent, S = C.offsetHeight, O = C.offsetWidth, q = C.offsetLeft, L = C.offsetTop; y && y.nodeType === 1; ) q += y.offsetLeft - y.scrollLeft, L += y.offsetTop - y.scrollTop, y = y.offsetParent;
|
|
2245
|
+
return { height: S, left: q, top: L, width: O };
|
|
2246
|
+
};
|
|
2247
|
+
l.default = function(C) {
|
|
2248
|
+
var y = C && C.parentElement;
|
|
2249
|
+
if (C && y) {
|
|
2250
|
+
var S = g(y), O = g(C), q = O.height, L = O.left, R = O.top, x = O.width;
|
|
2251
|
+
return { x: L - S.left, y: R - S.top, width: x, height: q, left: L, top: R, get right() {
|
|
2252
|
+
return this.left + this.width;
|
|
2253
|
+
}, get bottom() {
|
|
2254
|
+
return this.top + this.height;
|
|
2255
|
+
} };
|
|
2256
|
+
}
|
|
2257
|
+
return { x: 0, y: 0, width: 0, height: 0, left: 0, top: 0, right: 0, bottom: 0 };
|
|
2258
|
+
}, l.getBoundingClientRect = function(C) {
|
|
2259
|
+
if (C && C.getBoundingClientRect) {
|
|
2260
|
+
var y = C.getBoundingClientRect();
|
|
2261
|
+
return { x: y.x, y: y.y, width: y.width, height: y.height, left: y.left, top: y.top, get right() {
|
|
2262
|
+
return this.left + this.width;
|
|
2263
|
+
}, get bottom() {
|
|
2264
|
+
return this.top + this.height;
|
|
2265
|
+
} };
|
|
2266
|
+
}
|
|
2267
|
+
return { x: 0, y: 0, width: 0, height: 0, left: 0, top: 0, right: 0, bottom: 0 };
|
|
2268
|
+
};
|
|
2269
|
+
}, 445: function(b, l, g) {
|
|
2270
|
+
Object.defineProperty(l, "__esModule", { value: !0 }), l.useFocusContext = l.FocusContext = void 0;
|
|
2271
|
+
var C = g(156), y = g(654);
|
|
2272
|
+
l.FocusContext = (0, C.createContext)(y.ROOT_FOCUS_KEY), l.FocusContext.displayName = "FocusContext", l.useFocusContext = function() {
|
|
2273
|
+
return (0, C.useContext)(l.FocusContext);
|
|
2274
|
+
};
|
|
2275
|
+
}, 79: function(b, l, g) {
|
|
2276
|
+
var C = this && this.__importDefault || function(R) {
|
|
2277
|
+
return R && R.__esModule ? R : { default: R };
|
|
2278
|
+
};
|
|
2279
|
+
Object.defineProperty(l, "__esModule", { value: !0 }), l.useFocusable = void 0;
|
|
2280
|
+
var y = g(156), S = C(g(604)), O = C(g(461)), q = g(654), L = g(445);
|
|
2281
|
+
l.useFocusable = function(R) {
|
|
2282
|
+
var x = R === void 0 ? {} : R, E = x.focusable, $ = E === void 0 || E, T = x.saveLastFocusedChild, k = T === void 0 || T, X = x.trackChildren, te = X !== void 0 && X, be = x.autoRestoreFocus, je = be === void 0 || be, Ke = x.forceFocus, Q = Ke !== void 0 && Ke, _e = x.isFocusBoundary, oe = _e !== void 0 && _e, ue = x.focusBoundaryDirections, ce = x.focusKey, ne = x.preferredChildFocusKey, me = x.onEnterPress, Ce = me === void 0 ? S.default : me, Fe = x.onEnterRelease, Se = Fe === void 0 ? S.default : Fe, Ee = x.onArrowPress, p = Ee === void 0 ? function() {
|
|
2283
|
+
return !0;
|
|
2284
|
+
} : Ee, s = x.onArrowRelease, c = s === void 0 ? S.default : s, f = x.onFocus, d = f === void 0 ? S.default : f, F = x.onBlur, w = F === void 0 ? S.default : F, A = x.extraProps, M = (0, y.useCallback)(function(W) {
|
|
2285
|
+
Ce(A, W);
|
|
2286
|
+
}, [Ce, A]), G = (0, y.useCallback)(function() {
|
|
2287
|
+
Se(A);
|
|
2288
|
+
}, [Se, A]), H = (0, y.useCallback)(function(W, Z) {
|
|
2289
|
+
return p(W, A, Z);
|
|
2290
|
+
}, [A, p]), j = (0, y.useCallback)(function(W) {
|
|
2291
|
+
c(W, A);
|
|
2292
|
+
}, [c, A]), B = (0, y.useCallback)(function(W, Z) {
|
|
2293
|
+
d(W, A, Z);
|
|
2294
|
+
}, [A, d]), D = (0, y.useCallback)(function(W, Z) {
|
|
2295
|
+
w(W, A, Z);
|
|
2296
|
+
}, [A, w]), Y = (0, y.useRef)(null), z = (0, y.useState)(!1), J = z[0], se = z[1], U = (0, y.useState)(!1), V = U[0], fe = U[1], ae = (0, L.useFocusContext)(), ee = (0, y.useMemo)(function() {
|
|
2297
|
+
return ce || (0, O.default)("sn:focusable-item-");
|
|
2298
|
+
}, [ce]), qe = (0, y.useCallback)(function(W) {
|
|
2299
|
+
W === void 0 && (W = {}), q.SpatialNavigation.setFocus(ee, W);
|
|
2300
|
+
}, [ee]);
|
|
2301
|
+
return (0, y.useEffect)(function() {
|
|
2302
|
+
var W = Y.current;
|
|
2303
|
+
return q.SpatialNavigation.addFocusable({ focusKey: ee, node: W, parentFocusKey: ae, preferredChildFocusKey: ne, onEnterPress: M, onEnterRelease: G, onArrowPress: H, onArrowRelease: j, onFocus: B, onBlur: D, onUpdateFocus: function(Z) {
|
|
2304
|
+
return Z === void 0 && (Z = !1), se(Z);
|
|
2305
|
+
}, onUpdateHasFocusedChild: function(Z) {
|
|
2306
|
+
return Z === void 0 && (Z = !1), fe(Z);
|
|
2307
|
+
}, saveLastFocusedChild: k, trackChildren: te, isFocusBoundary: oe, focusBoundaryDirections: ue, autoRestoreFocus: je, forceFocus: Q, focusable: $ }), function() {
|
|
2308
|
+
q.SpatialNavigation.removeFocusable({ focusKey: ee });
|
|
2309
|
+
};
|
|
2310
|
+
}, []), (0, y.useEffect)(function() {
|
|
2311
|
+
var W = Y.current;
|
|
2312
|
+
q.SpatialNavigation.updateFocusable(ee, { node: W, preferredChildFocusKey: ne, focusable: $, isFocusBoundary: oe, focusBoundaryDirections: ue, onEnterPress: M, onEnterRelease: G, onArrowPress: H, onArrowRelease: j, onFocus: B, onBlur: D });
|
|
2313
|
+
}, [ee, ne, $, oe, ue, M, G, H, j, B, D]), { ref: Y, focusSelf: qe, focused: J, hasFocusedChild: V, focusKey: ee };
|
|
2314
|
+
};
|
|
2315
|
+
}, 150: function(b) {
|
|
2316
|
+
b.exports = t;
|
|
2317
|
+
}, 117: function(b) {
|
|
2318
|
+
b.exports = n;
|
|
2319
|
+
}, 747: function(b) {
|
|
2320
|
+
b.exports = a;
|
|
2321
|
+
}, 23: function(b) {
|
|
2322
|
+
b.exports = i;
|
|
2323
|
+
}, 842: function(b) {
|
|
2324
|
+
b.exports = o;
|
|
2325
|
+
}, 682: function(b) {
|
|
2326
|
+
b.exports = u;
|
|
2327
|
+
}, 784: function(b) {
|
|
2328
|
+
b.exports = v;
|
|
2329
|
+
}, 604: function(b) {
|
|
2330
|
+
b.exports = h;
|
|
2331
|
+
}, 432: function(b) {
|
|
2332
|
+
b.exports = m;
|
|
2333
|
+
}, 67: function(b) {
|
|
2334
|
+
b.exports = _;
|
|
2335
|
+
}, 461: function(b) {
|
|
2336
|
+
b.exports = I;
|
|
2337
|
+
}, 156: function(b) {
|
|
2338
|
+
b.exports = P;
|
|
2339
|
+
} }, K = {};
|
|
2340
|
+
return function b(l) {
|
|
2341
|
+
var g = K[l];
|
|
2342
|
+
if (g !== void 0) return g.exports;
|
|
2343
|
+
var C = K[l] = { exports: {} };
|
|
2344
|
+
return N[l].call(C.exports, C, C.exports, b), C.exports;
|
|
2345
|
+
}(607);
|
|
2346
|
+
}();
|
|
2347
|
+
});
|
|
2348
|
+
})(Wi);
|
|
2349
|
+
var Pf = Wi.exports;
|
|
2350
|
+
export {
|
|
2351
|
+
Ef as a,
|
|
2352
|
+
Re as c,
|
|
2353
|
+
Pf as d,
|
|
2354
|
+
Sf as g
|
|
2355
|
+
};
|