@maestro_io/maestro-web-sdk 1.0.0 → 2.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/MaestroEventDelegate.d.ts +9 -0
- package/dist/components/atoms/BaseButton/BaseButton.d.ts +9 -0
- package/dist/components/atoms/BaseButton/index.d.ts +2 -0
- package/dist/components/atoms/Image/index.d.ts +9 -0
- package/dist/components/atoms/SvgIcon/BetsIcon.d.ts +7 -0
- package/dist/components/atoms/SvgIcon/FantasyIcon.d.ts +6 -0
- package/dist/components/atoms/SvgIcon/Icon.d.ts +28 -0
- package/dist/components/atoms/SvgIcon/KeyPlaysIcon.d.ts +6 -0
- package/dist/components/atoms/SvgIcon/PlayIcon.d.ts +6 -0
- package/dist/components/atoms/SvgIcon/StatsIcon.d.ts +6 -0
- package/dist/components/atoms/SvgIcon/WarningIcon.d.ts +6 -0
- package/dist/components/atoms/SvgIcon/index.d.ts +2 -0
- package/dist/components/core/App/App.d.ts +10 -0
- package/dist/components/core/App/index.d.ts +2 -0
- package/dist/components/core/PanelManager/PanelManager.d.ts +14 -0
- package/dist/components/core/PanelManager/index.d.ts +2 -0
- package/dist/components/molecules/ActionButton/ActionButton.d.ts +50 -0
- package/dist/components/molecules/ActionButton/index.d.ts +2 -0
- package/dist/components/molecules/PanelNavButton/PanelNavButton.d.ts +107 -0
- package/dist/components/molecules/PanelNavButton/index.d.ts +2 -0
- package/dist/components/molecules/ScrollableGradient/ScrollableGradient.d.ts +11 -0
- package/dist/components/molecules/ScrollableGradient/index.d.ts +2 -0
- package/dist/components/molecules/SegmentButton/SegmentButton.d.ts +10 -0
- package/dist/components/molecules/SegmentButton/index.d.ts +2 -0
- package/dist/components/molecules/WatchButton/WatchButton.d.ts +10 -0
- package/dist/components/molecules/WatchButton/index.d.ts +2 -0
- package/dist/components/organisms/PanelNavigation/PanelNavigation.d.ts +15 -0
- package/dist/components/organisms/PanelNavigation/index.d.ts +2 -0
- package/dist/components/organisms/SegmentController/SegmentController.d.ts +14 -0
- package/dist/components/organisms/SegmentController/index.d.ts +2 -0
- package/dist/external/AxiosNetworkClient.d.ts +15 -0
- package/dist/external/LocalStorageCacheManager.d.ts +10 -0
- package/dist/external/ReactRenderer.d.ts +26 -0
- package/dist/external/ports/cacheManager.d.ts +15 -0
- package/dist/external/ports/networkClient.d.ts +5 -0
- package/dist/external/ports/renderer.d.ts +9 -0
- package/dist/external/spatial-navigation/index.d.ts +5 -0
- package/dist/external/spatial-navigation/measureLayout.d.ts +2 -0
- package/dist/external/spatial-navigation/spatialNavigation.d.ts +166 -0
- package/dist/external/spatial-navigation/utils.d.ts +15 -0
- package/dist/external/spatial-navigation/visualDebugger.d.ts +17 -0
- package/dist/external/spatial-navigation/withFocusable.d.ts +81 -0
- package/dist/helpers/Observable.d.ts +12 -0
- package/dist/helpers/deliver-focus.d.ts +5 -0
- package/dist/helpers/withRemoteControl.d.ts +47 -0
- package/dist/index.d.ts +60 -382
- package/dist/interfaces/IMaestroEvent.d.ts +62 -0
- package/dist/interfaces/IMaestroEventDelegate.d.ts +18 -0
- package/dist/interfaces/IMaestroManager.d.ts +82 -0
- package/dist/maestro-web-sdk.umd.js +2 -3
- package/dist/maestro-web-sdk.umd.js.map +1 -1
- package/dist/models/IModel.d.ts +7 -0
- package/dist/models/IPanel.d.ts +20 -0
- package/dist/models/ITheme.d.ts +77 -0
- package/dist/modules/key-plays/constants.d.ts +3 -0
- package/dist/modules/key-plays/interfaces/IKeyPlays.d.ts +31 -0
- package/dist/modules/key-plays/interfaces/IKeyPlaysResponse.d.ts +44 -0
- package/dist/modules/key-plays/view/KeyPlayCardScoreTagView.d.ts +9 -0
- package/dist/modules/key-plays/view/KeyPlayCardView.d.ts +115 -0
- package/dist/modules/key-plays/view/KeyPlayErrorStateView.d.ts +11 -0
- package/dist/modules/key-plays/view/KeyPlaysView.d.ts +53 -0
- package/dist/modules/key-plays/view-model/KeyPlaysViewModel.d.ts +29 -0
- package/dist/services/NetworkManager.d.ts +13 -0
- package/dist/services/ThemeManager/constants.d.ts +2 -0
- package/dist/view-models/MaestroEventViewModel.d.ts +37 -0
- package/dist/view-models/PanelManagerViewModel.d.ts +18 -0
- package/dist/view-models/ViewModel.d.ts +12 -0
- package/dist/view-models/index.d.ts +17 -0
- package/package.json +64 -36
- package/dist/BetsIcon-UrnN4lvP.js +0 -22
- package/dist/BetsIcon-UrnN4lvP.js.map +0 -1
- package/dist/FantasyIcon-DmloKsq_.js +0 -24
- package/dist/FantasyIcon-DmloKsq_.js.map +0 -1
- package/dist/KeyPlayErrorStateView-Dk89rtUq.js +0 -112
- package/dist/KeyPlayErrorStateView-Dk89rtUq.js.map +0 -1
- package/dist/KeyPlaysIcon-Br9gu_Zu.js +0 -24
- package/dist/KeyPlaysIcon-Br9gu_Zu.js.map +0 -1
- package/dist/KeyPlaysView-Br-88ytG.js +0 -174
- package/dist/KeyPlaysView-Br-88ytG.js.map +0 -1
- package/dist/PlayIcon-CNKWNaLP.js +0 -24
- package/dist/PlayIcon-CNKWNaLP.js.map +0 -1
- package/dist/StatsIcon-Ds4hriWX.js +0 -25
- package/dist/StatsIcon-Ds4hriWX.js.map +0 -1
- package/dist/WarningIcon-BuzZKL26.js +0 -24
- package/dist/WarningIcon-BuzZKL26.js.map +0 -1
- package/dist/index-BaSckwps.js +0 -2998
- package/dist/index-BaSckwps.js.map +0 -1
- package/dist/index-DXErYNZH.js +0 -151
- package/dist/index-DXErYNZH.js.map +0 -1
- package/dist/index-q5GKgbOd.js +0 -56
- package/dist/index-q5GKgbOd.js.map +0 -1
- package/dist/maestro-web-sdk.esm.js +0 -6
- package/dist/maestro-web-sdk.esm.js.map +0 -1
- package/dist/tsconfig.tsbuildinfo +0 -1
package/dist/index-BaSckwps.js
DELETED
|
@@ -1,2998 +0,0 @@
|
|
|
1
|
-
var Du = Object.defineProperty;
|
|
2
|
-
var Lu = (t, e, r) => e in t ? Du(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r;
|
|
3
|
-
var H = (t, e, r) => Lu(t, typeof e != "symbol" ? e + "" : e, r);
|
|
4
|
-
import Un from "react";
|
|
5
|
-
class Q {
|
|
6
|
-
constructor(e) {
|
|
7
|
-
H(this, "listeners", []);
|
|
8
|
-
H(this, "_value");
|
|
9
|
-
this._value = e;
|
|
10
|
-
}
|
|
11
|
-
get value() {
|
|
12
|
-
return this._value;
|
|
13
|
-
}
|
|
14
|
-
set value(e) {
|
|
15
|
-
this._value = e, this.notify();
|
|
16
|
-
}
|
|
17
|
-
subscribe(e) {
|
|
18
|
-
return this.listeners.push(e), () => {
|
|
19
|
-
this.listeners = this.listeners.filter((r) => r !== e);
|
|
20
|
-
};
|
|
21
|
-
}
|
|
22
|
-
notify() {
|
|
23
|
-
this.listeners.forEach((e) => e(this._value));
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
class Nu {
|
|
27
|
-
constructor() {
|
|
28
|
-
H(this, "_isLoading", new Q(!1));
|
|
29
|
-
H(this, "_error", new Q(null));
|
|
30
|
-
}
|
|
31
|
-
get isLoading() {
|
|
32
|
-
return this._isLoading;
|
|
33
|
-
}
|
|
34
|
-
get error() {
|
|
35
|
-
return this._error;
|
|
36
|
-
}
|
|
37
|
-
setLoading(e) {
|
|
38
|
-
this._isLoading.value = e;
|
|
39
|
-
}
|
|
40
|
-
setError(e) {
|
|
41
|
-
this._error.value = e;
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
class du {
|
|
45
|
-
constructor() {
|
|
46
|
-
H(this, "currentlyPlayingClipIndex", new Q(null));
|
|
47
|
-
H(this, "lastPlayedClipIndex", new Q(null));
|
|
48
|
-
H(this, "currentClipPlaybackProgress", new Q(null));
|
|
49
|
-
H(this, "errorState", new Q("unpopulatedEvent"));
|
|
50
|
-
H(this, "failedClips", new Q({}));
|
|
51
|
-
H(this, "items", new Q([]));
|
|
52
|
-
}
|
|
53
|
-
isCurrentlyPlaying(e) {
|
|
54
|
-
return e === this.currentlyPlayingClipIndex.value;
|
|
55
|
-
}
|
|
56
|
-
async setKeyPlays(e) {
|
|
57
|
-
if (e === null) {
|
|
58
|
-
this.errorState.value = "tabLoadFailure";
|
|
59
|
-
return;
|
|
60
|
-
}
|
|
61
|
-
this.items.value = this.parseNetworkResponse(e), this.cleanErrors();
|
|
62
|
-
}
|
|
63
|
-
cleanErrors() {
|
|
64
|
-
this.errorState.value === "tabLoadFailure" && (this.errorState.value = null), this.errorState.value === "unpopulatedEvent" && this.allItems.length && (this.errorState.value = null);
|
|
65
|
-
}
|
|
66
|
-
async playKeyPlay(e) {
|
|
67
|
-
fu.getMaestroEventViewModel().delegate.playClip(e);
|
|
68
|
-
}
|
|
69
|
-
parseNetworkResponse(e) {
|
|
70
|
-
const r = Object.values(e.entities.team), n = Object.values(e.entities.athlete), a = r.find((d) => d.homeAway === "home"), i = r.find((d) => d.homeAway === "away");
|
|
71
|
-
if (!a || !i)
|
|
72
|
-
return console.log("Could not find home or away team"), [];
|
|
73
|
-
const s = [], o = [];
|
|
74
|
-
for (const d of e.sections) {
|
|
75
|
-
for (const f of d.items ?? []) {
|
|
76
|
-
const b = f.team ? r.find((C) => C.id === f.team) : void 0, _ = f.athlete ? n.find((C) => C.id === f.athlete) : void 0, S = b == null ? void 0 : b.logoRef, x = _ == null ? void 0 : _.headshot, D = f.thumbnailType !== "headshot" ? f.thumbnail : void 0, M = f.scoringPlay ? parseInt(f.homeScore ?? "0") : void 0, m = f.scoringPlay ? parseInt(f.awayScore ?? "0") : void 0, p = {
|
|
77
|
-
id: Math.random().toString(36).substring(2, 15),
|
|
78
|
-
description: f.description ?? "",
|
|
79
|
-
homeTeamName: a == null ? void 0 : a.shortName,
|
|
80
|
-
awayTeamName: i == null ? void 0 : i.shortName,
|
|
81
|
-
homeTeamScore: M,
|
|
82
|
-
awayTeamScore: m,
|
|
83
|
-
clipID: f.clipID,
|
|
84
|
-
teamImageUrl: S,
|
|
85
|
-
playerImageUrl: x,
|
|
86
|
-
thumbnailImageUrl: D,
|
|
87
|
-
section: d.title
|
|
88
|
-
};
|
|
89
|
-
s.push(p);
|
|
90
|
-
}
|
|
91
|
-
if (s.length) {
|
|
92
|
-
const f = d.title, b = o.find(
|
|
93
|
-
(_) => _.title === f
|
|
94
|
-
);
|
|
95
|
-
b ? b.items.push(...s) : o.push({
|
|
96
|
-
title: f,
|
|
97
|
-
items: [...s]
|
|
98
|
-
}), s.length = 0;
|
|
99
|
-
}
|
|
100
|
-
}
|
|
101
|
-
return o;
|
|
102
|
-
}
|
|
103
|
-
get allItems() {
|
|
104
|
-
return this.items.value.reduce((e, r) => e.concat(r.items), []);
|
|
105
|
-
}
|
|
106
|
-
clipID(e) {
|
|
107
|
-
var r;
|
|
108
|
-
return (r = this.allItems[e]) == null ? void 0 : r.clipID;
|
|
109
|
-
}
|
|
110
|
-
handleKeyPlayLoadFailure(e) {
|
|
111
|
-
const r = this.clipID(e);
|
|
112
|
-
if (r) {
|
|
113
|
-
const n = this.failedClips.value;
|
|
114
|
-
n[r] = "recentFailure", this.failedClips.value = n, setTimeout(() => {
|
|
115
|
-
if (this.loadFailureStatus(e) === "recentFailure") {
|
|
116
|
-
const a = this.failedClips.value;
|
|
117
|
-
a[r] = "nonRecentFailure", this.failedClips.value = a;
|
|
118
|
-
}
|
|
119
|
-
}, 5e3);
|
|
120
|
-
}
|
|
121
|
-
}
|
|
122
|
-
loadFailureStatus(e) {
|
|
123
|
-
const r = this.clipID(e);
|
|
124
|
-
return this.failedClips.value && r ? this.failedClips.value[r] : "noFailure";
|
|
125
|
-
}
|
|
126
|
-
clearLoadFailureStatus(e) {
|
|
127
|
-
const r = this.clipID(e);
|
|
128
|
-
r && this.failedClips && delete this.failedClips.value[r];
|
|
129
|
-
}
|
|
130
|
-
async userRequestedNewKeyPlaysData() {
|
|
131
|
-
await fu.getMaestroEventViewModel().delegate.userRequestedNewKeyPlaysData();
|
|
132
|
-
}
|
|
133
|
-
}
|
|
134
|
-
var Oe = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, De = { exports: {} }, Ue, ca;
|
|
135
|
-
function ve() {
|
|
136
|
-
if (ca) return Ue;
|
|
137
|
-
ca = 1;
|
|
138
|
-
function t(e) {
|
|
139
|
-
var r = typeof e;
|
|
140
|
-
return e != null && (r == "object" || r == "function");
|
|
141
|
-
}
|
|
142
|
-
return Ue = t, Ue;
|
|
143
|
-
}
|
|
144
|
-
var Ge, la;
|
|
145
|
-
function hu() {
|
|
146
|
-
if (la) return Ge;
|
|
147
|
-
la = 1;
|
|
148
|
-
var t = typeof Oe == "object" && Oe && Oe.Object === Object && Oe;
|
|
149
|
-
return Ge = t, Ge;
|
|
150
|
-
}
|
|
151
|
-
var Ve, fa;
|
|
152
|
-
function ue() {
|
|
153
|
-
if (fa) return Ve;
|
|
154
|
-
fa = 1;
|
|
155
|
-
var t = hu(), e = typeof self == "object" && self && self.Object === Object && self, r = t || e || Function("return this")();
|
|
156
|
-
return Ve = r, Ve;
|
|
157
|
-
}
|
|
158
|
-
var ze, da;
|
|
159
|
-
function Bu() {
|
|
160
|
-
if (da) return ze;
|
|
161
|
-
da = 1;
|
|
162
|
-
var t = ue(), e = function() {
|
|
163
|
-
return t.Date.now();
|
|
164
|
-
};
|
|
165
|
-
return ze = e, ze;
|
|
166
|
-
}
|
|
167
|
-
var We, ha;
|
|
168
|
-
function ku() {
|
|
169
|
-
if (ha) return We;
|
|
170
|
-
ha = 1;
|
|
171
|
-
var t = /\s/;
|
|
172
|
-
function e(r) {
|
|
173
|
-
for (var n = r.length; n-- && t.test(r.charAt(n)); )
|
|
174
|
-
;
|
|
175
|
-
return n;
|
|
176
|
-
}
|
|
177
|
-
return We = e, We;
|
|
178
|
-
}
|
|
179
|
-
var Ye, va;
|
|
180
|
-
function ju() {
|
|
181
|
-
if (va) return Ye;
|
|
182
|
-
va = 1;
|
|
183
|
-
var t = ku(), e = /^\s+/;
|
|
184
|
-
function r(n) {
|
|
185
|
-
return n && n.slice(0, t(n) + 1).replace(e, "");
|
|
186
|
-
}
|
|
187
|
-
return Ye = r, Ye;
|
|
188
|
-
}
|
|
189
|
-
var $e, pa;
|
|
190
|
-
function Te() {
|
|
191
|
-
if (pa) return $e;
|
|
192
|
-
pa = 1;
|
|
193
|
-
var t = ue(), e = t.Symbol;
|
|
194
|
-
return $e = e, $e;
|
|
195
|
-
}
|
|
196
|
-
var Je, ya;
|
|
197
|
-
function Hu() {
|
|
198
|
-
if (ya) return Je;
|
|
199
|
-
ya = 1;
|
|
200
|
-
var t = Te(), e = Object.prototype, r = e.hasOwnProperty, n = e.toString, a = t ? t.toStringTag : void 0;
|
|
201
|
-
function i(s) {
|
|
202
|
-
var o = r.call(s, a), d = s[a];
|
|
203
|
-
try {
|
|
204
|
-
s[a] = void 0;
|
|
205
|
-
var f = !0;
|
|
206
|
-
} catch {
|
|
207
|
-
}
|
|
208
|
-
var b = n.call(s);
|
|
209
|
-
return f && (o ? s[a] = d : delete s[a]), b;
|
|
210
|
-
}
|
|
211
|
-
return Je = i, Je;
|
|
212
|
-
}
|
|
213
|
-
var Xe, ga;
|
|
214
|
-
function Uu() {
|
|
215
|
-
if (ga) return Xe;
|
|
216
|
-
ga = 1;
|
|
217
|
-
var t = Object.prototype, e = t.toString;
|
|
218
|
-
function r(n) {
|
|
219
|
-
return e.call(n);
|
|
220
|
-
}
|
|
221
|
-
return Xe = r, Xe;
|
|
222
|
-
}
|
|
223
|
-
var Ze, _a;
|
|
224
|
-
function Ae() {
|
|
225
|
-
if (_a) return Ze;
|
|
226
|
-
_a = 1;
|
|
227
|
-
var t = Te(), e = Hu(), r = Uu(), n = "[object Null]", a = "[object Undefined]", i = t ? t.toStringTag : void 0;
|
|
228
|
-
function s(o) {
|
|
229
|
-
return o == null ? o === void 0 ? a : n : i && i in Object(o) ? e(o) : r(o);
|
|
230
|
-
}
|
|
231
|
-
return Ze = s, Ze;
|
|
232
|
-
}
|
|
233
|
-
var Qe, ba;
|
|
234
|
-
function ye() {
|
|
235
|
-
if (ba) return Qe;
|
|
236
|
-
ba = 1;
|
|
237
|
-
function t(e) {
|
|
238
|
-
return e != null && typeof e == "object";
|
|
239
|
-
}
|
|
240
|
-
return Qe = t, Qe;
|
|
241
|
-
}
|
|
242
|
-
var er, ma;
|
|
243
|
-
function Se() {
|
|
244
|
-
if (ma) return er;
|
|
245
|
-
ma = 1;
|
|
246
|
-
var t = Ae(), e = ye(), r = "[object Symbol]";
|
|
247
|
-
function n(a) {
|
|
248
|
-
return typeof a == "symbol" || e(a) && t(a) == r;
|
|
249
|
-
}
|
|
250
|
-
return er = n, er;
|
|
251
|
-
}
|
|
252
|
-
var rr, Ca;
|
|
253
|
-
function Gu() {
|
|
254
|
-
if (Ca) return rr;
|
|
255
|
-
Ca = 1;
|
|
256
|
-
var t = ju(), e = ve(), r = Se(), n = NaN, a = /^[-+]0x[0-9a-f]+$/i, i = /^0b[01]+$/i, s = /^0o[0-7]+$/i, o = parseInt;
|
|
257
|
-
function d(f) {
|
|
258
|
-
if (typeof f == "number")
|
|
259
|
-
return f;
|
|
260
|
-
if (r(f))
|
|
261
|
-
return n;
|
|
262
|
-
if (e(f)) {
|
|
263
|
-
var b = typeof f.valueOf == "function" ? f.valueOf() : f;
|
|
264
|
-
f = e(b) ? b + "" : b;
|
|
265
|
-
}
|
|
266
|
-
if (typeof f != "string")
|
|
267
|
-
return f === 0 ? f : +f;
|
|
268
|
-
f = t(f);
|
|
269
|
-
var _ = i.test(f);
|
|
270
|
-
return _ || s.test(f) ? o(f.slice(2), _ ? 2 : 8) : a.test(f) ? n : +f;
|
|
271
|
-
}
|
|
272
|
-
return rr = d, rr;
|
|
273
|
-
}
|
|
274
|
-
var tr, wa;
|
|
275
|
-
function vu() {
|
|
276
|
-
if (wa) return tr;
|
|
277
|
-
wa = 1;
|
|
278
|
-
var t = ve(), e = Bu(), r = Gu(), n = "Expected a function", a = Math.max, i = Math.min;
|
|
279
|
-
function s(o, d, f) {
|
|
280
|
-
var b, _, S, x, D, M, m = 0, h = !1, p = !1, C = !0;
|
|
281
|
-
if (typeof o != "function")
|
|
282
|
-
throw new TypeError(n);
|
|
283
|
-
d = r(d) || 0, t(f) && (h = !!f.leading, p = "maxWait" in f, S = p ? a(r(f.maxWait) || 0, d) : S, C = "trailing" in f ? !!f.trailing : C);
|
|
284
|
-
function g(P) {
|
|
285
|
-
var V = b, J = _;
|
|
286
|
-
return b = _ = void 0, m = P, x = o.apply(J, V), x;
|
|
287
|
-
}
|
|
288
|
-
function I(P) {
|
|
289
|
-
return m = P, D = setTimeout(N, d), h ? g(P) : x;
|
|
290
|
-
}
|
|
291
|
-
function A(P) {
|
|
292
|
-
var V = P - M, J = P - m, ae = d - V;
|
|
293
|
-
return p ? i(ae, S - J) : ae;
|
|
294
|
-
}
|
|
295
|
-
function q(P) {
|
|
296
|
-
var V = P - M, J = P - m;
|
|
297
|
-
return M === void 0 || V >= d || V < 0 || p && J >= S;
|
|
298
|
-
}
|
|
299
|
-
function N() {
|
|
300
|
-
var P = e();
|
|
301
|
-
if (q(P))
|
|
302
|
-
return F(P);
|
|
303
|
-
D = setTimeout(N, A(P));
|
|
304
|
-
}
|
|
305
|
-
function F(P) {
|
|
306
|
-
return D = void 0, C && b ? g(P) : (b = _ = void 0, x);
|
|
307
|
-
}
|
|
308
|
-
function E() {
|
|
309
|
-
D !== void 0 && clearTimeout(D), m = 0, b = M = _ = D = void 0;
|
|
310
|
-
}
|
|
311
|
-
function K() {
|
|
312
|
-
return D === void 0 ? x : F(e());
|
|
313
|
-
}
|
|
314
|
-
function U() {
|
|
315
|
-
var P = e(), V = q(P);
|
|
316
|
-
if (b = arguments, _ = this, M = P, V) {
|
|
317
|
-
if (D === void 0)
|
|
318
|
-
return I(M);
|
|
319
|
-
if (p)
|
|
320
|
-
return clearTimeout(D), D = setTimeout(N, d), g(M);
|
|
321
|
-
}
|
|
322
|
-
return D === void 0 && (D = setTimeout(N, d)), x;
|
|
323
|
-
}
|
|
324
|
-
return U.cancel = E, U.flush = K, U;
|
|
325
|
-
}
|
|
326
|
-
return tr = s, tr;
|
|
327
|
-
}
|
|
328
|
-
var nr, qa;
|
|
329
|
-
function pu() {
|
|
330
|
-
if (qa) return nr;
|
|
331
|
-
qa = 1;
|
|
332
|
-
var t = Ae(), e = ve(), r = "[object AsyncFunction]", n = "[object Function]", a = "[object GeneratorFunction]", i = "[object Proxy]";
|
|
333
|
-
function s(o) {
|
|
334
|
-
if (!e(o))
|
|
335
|
-
return !1;
|
|
336
|
-
var d = t(o);
|
|
337
|
-
return d == n || d == a || d == r || d == i;
|
|
338
|
-
}
|
|
339
|
-
return nr = s, nr;
|
|
340
|
-
}
|
|
341
|
-
var ar, Fa;
|
|
342
|
-
function Vu() {
|
|
343
|
-
if (Fa) return ar;
|
|
344
|
-
Fa = 1;
|
|
345
|
-
var t = ue(), e = t["__core-js_shared__"];
|
|
346
|
-
return ar = e, ar;
|
|
347
|
-
}
|
|
348
|
-
var ir, Ra;
|
|
349
|
-
function zu() {
|
|
350
|
-
if (Ra) return ir;
|
|
351
|
-
Ra = 1;
|
|
352
|
-
var t = Vu(), e = function() {
|
|
353
|
-
var n = /[^.]+$/.exec(t && t.keys && t.keys.IE_PROTO || "");
|
|
354
|
-
return n ? "Symbol(src)_1." + n : "";
|
|
355
|
-
}();
|
|
356
|
-
function r(n) {
|
|
357
|
-
return !!e && e in n;
|
|
358
|
-
}
|
|
359
|
-
return ir = r, ir;
|
|
360
|
-
}
|
|
361
|
-
var sr, Pa;
|
|
362
|
-
function yu() {
|
|
363
|
-
if (Pa) return sr;
|
|
364
|
-
Pa = 1;
|
|
365
|
-
var t = Function.prototype, e = t.toString;
|
|
366
|
-
function r(n) {
|
|
367
|
-
if (n != null) {
|
|
368
|
-
try {
|
|
369
|
-
return e.call(n);
|
|
370
|
-
} catch {
|
|
371
|
-
}
|
|
372
|
-
try {
|
|
373
|
-
return n + "";
|
|
374
|
-
} catch {
|
|
375
|
-
}
|
|
376
|
-
}
|
|
377
|
-
return "";
|
|
378
|
-
}
|
|
379
|
-
return sr = r, sr;
|
|
380
|
-
}
|
|
381
|
-
var ur, Ta;
|
|
382
|
-
function Wu() {
|
|
383
|
-
if (Ta) return ur;
|
|
384
|
-
Ta = 1;
|
|
385
|
-
var t = pu(), e = zu(), r = ve(), n = yu(), a = /[\\^$.*+?()[\]{}|]/g, i = /^\[object .+?Constructor\]$/, s = Function.prototype, o = Object.prototype, d = s.toString, f = o.hasOwnProperty, b = RegExp(
|
|
386
|
-
"^" + d.call(f).replace(a, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
387
|
-
);
|
|
388
|
-
function _(S) {
|
|
389
|
-
if (!r(S) || e(S))
|
|
390
|
-
return !1;
|
|
391
|
-
var x = t(S) ? b : i;
|
|
392
|
-
return x.test(n(S));
|
|
393
|
-
}
|
|
394
|
-
return ur = _, ur;
|
|
395
|
-
}
|
|
396
|
-
var or, Aa;
|
|
397
|
-
function Yu() {
|
|
398
|
-
if (Aa) return or;
|
|
399
|
-
Aa = 1;
|
|
400
|
-
function t(e, r) {
|
|
401
|
-
return e == null ? void 0 : e[r];
|
|
402
|
-
}
|
|
403
|
-
return or = t, or;
|
|
404
|
-
}
|
|
405
|
-
var cr, Sa;
|
|
406
|
-
function pe() {
|
|
407
|
-
if (Sa) return cr;
|
|
408
|
-
Sa = 1;
|
|
409
|
-
var t = Wu(), e = Yu();
|
|
410
|
-
function r(n, a) {
|
|
411
|
-
var i = e(n, a);
|
|
412
|
-
return t(i) ? i : void 0;
|
|
413
|
-
}
|
|
414
|
-
return cr = r, cr;
|
|
415
|
-
}
|
|
416
|
-
var lr, Ma;
|
|
417
|
-
function Le() {
|
|
418
|
-
if (Ma) return lr;
|
|
419
|
-
Ma = 1;
|
|
420
|
-
var t = pe(), e = t(Object, "create");
|
|
421
|
-
return lr = e, lr;
|
|
422
|
-
}
|
|
423
|
-
var fr, Ea;
|
|
424
|
-
function $u() {
|
|
425
|
-
if (Ea) return fr;
|
|
426
|
-
Ea = 1;
|
|
427
|
-
var t = Le();
|
|
428
|
-
function e() {
|
|
429
|
-
this.__data__ = t ? t(null) : {}, this.size = 0;
|
|
430
|
-
}
|
|
431
|
-
return fr = e, fr;
|
|
432
|
-
}
|
|
433
|
-
var dr, xa;
|
|
434
|
-
function Ju() {
|
|
435
|
-
if (xa) return dr;
|
|
436
|
-
xa = 1;
|
|
437
|
-
function t(e) {
|
|
438
|
-
var r = this.has(e) && delete this.__data__[e];
|
|
439
|
-
return this.size -= r ? 1 : 0, r;
|
|
440
|
-
}
|
|
441
|
-
return dr = t, dr;
|
|
442
|
-
}
|
|
443
|
-
var hr, Ia;
|
|
444
|
-
function Xu() {
|
|
445
|
-
if (Ia) return hr;
|
|
446
|
-
Ia = 1;
|
|
447
|
-
var t = Le(), e = "__lodash_hash_undefined__", r = Object.prototype, n = r.hasOwnProperty;
|
|
448
|
-
function a(i) {
|
|
449
|
-
var s = this.__data__;
|
|
450
|
-
if (t) {
|
|
451
|
-
var o = s[i];
|
|
452
|
-
return o === e ? void 0 : o;
|
|
453
|
-
}
|
|
454
|
-
return n.call(s, i) ? s[i] : void 0;
|
|
455
|
-
}
|
|
456
|
-
return hr = a, hr;
|
|
457
|
-
}
|
|
458
|
-
var vr, Ka;
|
|
459
|
-
function Zu() {
|
|
460
|
-
if (Ka) return vr;
|
|
461
|
-
Ka = 1;
|
|
462
|
-
var t = Le(), e = Object.prototype, r = e.hasOwnProperty;
|
|
463
|
-
function n(a) {
|
|
464
|
-
var i = this.__data__;
|
|
465
|
-
return t ? i[a] !== void 0 : r.call(i, a);
|
|
466
|
-
}
|
|
467
|
-
return vr = n, vr;
|
|
468
|
-
}
|
|
469
|
-
var pr, Oa;
|
|
470
|
-
function Qu() {
|
|
471
|
-
if (Oa) return pr;
|
|
472
|
-
Oa = 1;
|
|
473
|
-
var t = Le(), e = "__lodash_hash_undefined__";
|
|
474
|
-
function r(n, a) {
|
|
475
|
-
var i = this.__data__;
|
|
476
|
-
return this.size += this.has(n) ? 0 : 1, i[n] = t && a === void 0 ? e : a, this;
|
|
477
|
-
}
|
|
478
|
-
return pr = r, pr;
|
|
479
|
-
}
|
|
480
|
-
var yr, Da;
|
|
481
|
-
function eo() {
|
|
482
|
-
if (Da) return yr;
|
|
483
|
-
Da = 1;
|
|
484
|
-
var t = $u(), e = Ju(), r = Xu(), n = Zu(), a = Qu();
|
|
485
|
-
function i(s) {
|
|
486
|
-
var o = -1, d = s == null ? 0 : s.length;
|
|
487
|
-
for (this.clear(); ++o < d; ) {
|
|
488
|
-
var f = s[o];
|
|
489
|
-
this.set(f[0], f[1]);
|
|
490
|
-
}
|
|
491
|
-
}
|
|
492
|
-
return i.prototype.clear = t, i.prototype.delete = e, i.prototype.get = r, i.prototype.has = n, i.prototype.set = a, yr = i, yr;
|
|
493
|
-
}
|
|
494
|
-
var gr, La;
|
|
495
|
-
function ro() {
|
|
496
|
-
if (La) return gr;
|
|
497
|
-
La = 1;
|
|
498
|
-
function t() {
|
|
499
|
-
this.__data__ = [], this.size = 0;
|
|
500
|
-
}
|
|
501
|
-
return gr = t, gr;
|
|
502
|
-
}
|
|
503
|
-
var _r, Na;
|
|
504
|
-
function Vn() {
|
|
505
|
-
if (Na) return _r;
|
|
506
|
-
Na = 1;
|
|
507
|
-
function t(e, r) {
|
|
508
|
-
return e === r || e !== e && r !== r;
|
|
509
|
-
}
|
|
510
|
-
return _r = t, _r;
|
|
511
|
-
}
|
|
512
|
-
var br, Ba;
|
|
513
|
-
function Ne() {
|
|
514
|
-
if (Ba) return br;
|
|
515
|
-
Ba = 1;
|
|
516
|
-
var t = Vn();
|
|
517
|
-
function e(r, n) {
|
|
518
|
-
for (var a = r.length; a--; )
|
|
519
|
-
if (t(r[a][0], n))
|
|
520
|
-
return a;
|
|
521
|
-
return -1;
|
|
522
|
-
}
|
|
523
|
-
return br = e, br;
|
|
524
|
-
}
|
|
525
|
-
var mr, ka;
|
|
526
|
-
function to() {
|
|
527
|
-
if (ka) return mr;
|
|
528
|
-
ka = 1;
|
|
529
|
-
var t = Ne(), e = Array.prototype, r = e.splice;
|
|
530
|
-
function n(a) {
|
|
531
|
-
var i = this.__data__, s = t(i, a);
|
|
532
|
-
if (s < 0)
|
|
533
|
-
return !1;
|
|
534
|
-
var o = i.length - 1;
|
|
535
|
-
return s == o ? i.pop() : r.call(i, s, 1), --this.size, !0;
|
|
536
|
-
}
|
|
537
|
-
return mr = n, mr;
|
|
538
|
-
}
|
|
539
|
-
var Cr, ja;
|
|
540
|
-
function no() {
|
|
541
|
-
if (ja) return Cr;
|
|
542
|
-
ja = 1;
|
|
543
|
-
var t = Ne();
|
|
544
|
-
function e(r) {
|
|
545
|
-
var n = this.__data__, a = t(n, r);
|
|
546
|
-
return a < 0 ? void 0 : n[a][1];
|
|
547
|
-
}
|
|
548
|
-
return Cr = e, Cr;
|
|
549
|
-
}
|
|
550
|
-
var wr, Ha;
|
|
551
|
-
function ao() {
|
|
552
|
-
if (Ha) return wr;
|
|
553
|
-
Ha = 1;
|
|
554
|
-
var t = Ne();
|
|
555
|
-
function e(r) {
|
|
556
|
-
return t(this.__data__, r) > -1;
|
|
557
|
-
}
|
|
558
|
-
return wr = e, wr;
|
|
559
|
-
}
|
|
560
|
-
var qr, Ua;
|
|
561
|
-
function io() {
|
|
562
|
-
if (Ua) return qr;
|
|
563
|
-
Ua = 1;
|
|
564
|
-
var t = Ne();
|
|
565
|
-
function e(r, n) {
|
|
566
|
-
var a = this.__data__, i = t(a, r);
|
|
567
|
-
return i < 0 ? (++this.size, a.push([r, n])) : a[i][1] = n, this;
|
|
568
|
-
}
|
|
569
|
-
return qr = e, qr;
|
|
570
|
-
}
|
|
571
|
-
var Fr, Ga;
|
|
572
|
-
function Be() {
|
|
573
|
-
if (Ga) return Fr;
|
|
574
|
-
Ga = 1;
|
|
575
|
-
var t = ro(), e = to(), r = no(), n = ao(), a = io();
|
|
576
|
-
function i(s) {
|
|
577
|
-
var o = -1, d = s == null ? 0 : s.length;
|
|
578
|
-
for (this.clear(); ++o < d; ) {
|
|
579
|
-
var f = s[o];
|
|
580
|
-
this.set(f[0], f[1]);
|
|
581
|
-
}
|
|
582
|
-
}
|
|
583
|
-
return i.prototype.clear = t, i.prototype.delete = e, i.prototype.get = r, i.prototype.has = n, i.prototype.set = a, Fr = i, Fr;
|
|
584
|
-
}
|
|
585
|
-
var Rr, Va;
|
|
586
|
-
function zn() {
|
|
587
|
-
if (Va) return Rr;
|
|
588
|
-
Va = 1;
|
|
589
|
-
var t = pe(), e = ue(), r = t(e, "Map");
|
|
590
|
-
return Rr = r, Rr;
|
|
591
|
-
}
|
|
592
|
-
var Pr, za;
|
|
593
|
-
function so() {
|
|
594
|
-
if (za) return Pr;
|
|
595
|
-
za = 1;
|
|
596
|
-
var t = eo(), e = Be(), r = zn();
|
|
597
|
-
function n() {
|
|
598
|
-
this.size = 0, this.__data__ = {
|
|
599
|
-
hash: new t(),
|
|
600
|
-
map: new (r || e)(),
|
|
601
|
-
string: new t()
|
|
602
|
-
};
|
|
603
|
-
}
|
|
604
|
-
return Pr = n, Pr;
|
|
605
|
-
}
|
|
606
|
-
var Tr, Wa;
|
|
607
|
-
function uo() {
|
|
608
|
-
if (Wa) return Tr;
|
|
609
|
-
Wa = 1;
|
|
610
|
-
function t(e) {
|
|
611
|
-
var r = typeof e;
|
|
612
|
-
return r == "string" || r == "number" || r == "symbol" || r == "boolean" ? e !== "__proto__" : e === null;
|
|
613
|
-
}
|
|
614
|
-
return Tr = t, Tr;
|
|
615
|
-
}
|
|
616
|
-
var Ar, Ya;
|
|
617
|
-
function ke() {
|
|
618
|
-
if (Ya) return Ar;
|
|
619
|
-
Ya = 1;
|
|
620
|
-
var t = uo();
|
|
621
|
-
function e(r, n) {
|
|
622
|
-
var a = r.__data__;
|
|
623
|
-
return t(n) ? a[typeof n == "string" ? "string" : "hash"] : a.map;
|
|
624
|
-
}
|
|
625
|
-
return Ar = e, Ar;
|
|
626
|
-
}
|
|
627
|
-
var Sr, $a;
|
|
628
|
-
function oo() {
|
|
629
|
-
if ($a) return Sr;
|
|
630
|
-
$a = 1;
|
|
631
|
-
var t = ke();
|
|
632
|
-
function e(r) {
|
|
633
|
-
var n = t(this, r).delete(r);
|
|
634
|
-
return this.size -= n ? 1 : 0, n;
|
|
635
|
-
}
|
|
636
|
-
return Sr = e, Sr;
|
|
637
|
-
}
|
|
638
|
-
var Mr, Ja;
|
|
639
|
-
function co() {
|
|
640
|
-
if (Ja) return Mr;
|
|
641
|
-
Ja = 1;
|
|
642
|
-
var t = ke();
|
|
643
|
-
function e(r) {
|
|
644
|
-
return t(this, r).get(r);
|
|
645
|
-
}
|
|
646
|
-
return Mr = e, Mr;
|
|
647
|
-
}
|
|
648
|
-
var Er, Xa;
|
|
649
|
-
function lo() {
|
|
650
|
-
if (Xa) return Er;
|
|
651
|
-
Xa = 1;
|
|
652
|
-
var t = ke();
|
|
653
|
-
function e(r) {
|
|
654
|
-
return t(this, r).has(r);
|
|
655
|
-
}
|
|
656
|
-
return Er = e, Er;
|
|
657
|
-
}
|
|
658
|
-
var xr, Za;
|
|
659
|
-
function fo() {
|
|
660
|
-
if (Za) return xr;
|
|
661
|
-
Za = 1;
|
|
662
|
-
var t = ke();
|
|
663
|
-
function e(r, n) {
|
|
664
|
-
var a = t(this, r), i = a.size;
|
|
665
|
-
return a.set(r, n), this.size += a.size == i ? 0 : 1, this;
|
|
666
|
-
}
|
|
667
|
-
return xr = e, xr;
|
|
668
|
-
}
|
|
669
|
-
var Ir, Qa;
|
|
670
|
-
function Wn() {
|
|
671
|
-
if (Qa) return Ir;
|
|
672
|
-
Qa = 1;
|
|
673
|
-
var t = so(), e = oo(), r = co(), n = lo(), a = fo();
|
|
674
|
-
function i(s) {
|
|
675
|
-
var o = -1, d = s == null ? 0 : s.length;
|
|
676
|
-
for (this.clear(); ++o < d; ) {
|
|
677
|
-
var f = s[o];
|
|
678
|
-
this.set(f[0], f[1]);
|
|
679
|
-
}
|
|
680
|
-
}
|
|
681
|
-
return i.prototype.clear = t, i.prototype.delete = e, i.prototype.get = r, i.prototype.has = n, i.prototype.set = a, Ir = i, Ir;
|
|
682
|
-
}
|
|
683
|
-
var Kr, ei;
|
|
684
|
-
function ho() {
|
|
685
|
-
if (ei) return Kr;
|
|
686
|
-
ei = 1;
|
|
687
|
-
var t = "__lodash_hash_undefined__";
|
|
688
|
-
function e(r) {
|
|
689
|
-
return this.__data__.set(r, t), this;
|
|
690
|
-
}
|
|
691
|
-
return Kr = e, Kr;
|
|
692
|
-
}
|
|
693
|
-
var Or, ri;
|
|
694
|
-
function vo() {
|
|
695
|
-
if (ri) return Or;
|
|
696
|
-
ri = 1;
|
|
697
|
-
function t(e) {
|
|
698
|
-
return this.__data__.has(e);
|
|
699
|
-
}
|
|
700
|
-
return Or = t, Or;
|
|
701
|
-
}
|
|
702
|
-
var Dr, ti;
|
|
703
|
-
function gu() {
|
|
704
|
-
if (ti) return Dr;
|
|
705
|
-
ti = 1;
|
|
706
|
-
var t = Wn(), e = ho(), r = vo();
|
|
707
|
-
function n(a) {
|
|
708
|
-
var i = -1, s = a == null ? 0 : a.length;
|
|
709
|
-
for (this.__data__ = new t(); ++i < s; )
|
|
710
|
-
this.add(a[i]);
|
|
711
|
-
}
|
|
712
|
-
return n.prototype.add = n.prototype.push = e, n.prototype.has = r, Dr = n, Dr;
|
|
713
|
-
}
|
|
714
|
-
var Lr, ni;
|
|
715
|
-
function po() {
|
|
716
|
-
if (ni) return Lr;
|
|
717
|
-
ni = 1;
|
|
718
|
-
function t(e, r, n, a) {
|
|
719
|
-
for (var i = e.length, s = n + (a ? 1 : -1); a ? s-- : ++s < i; )
|
|
720
|
-
if (r(e[s], s, e))
|
|
721
|
-
return s;
|
|
722
|
-
return -1;
|
|
723
|
-
}
|
|
724
|
-
return Lr = t, Lr;
|
|
725
|
-
}
|
|
726
|
-
var Nr, ai;
|
|
727
|
-
function yo() {
|
|
728
|
-
if (ai) return Nr;
|
|
729
|
-
ai = 1;
|
|
730
|
-
function t(e) {
|
|
731
|
-
return e !== e;
|
|
732
|
-
}
|
|
733
|
-
return Nr = t, Nr;
|
|
734
|
-
}
|
|
735
|
-
var Br, ii;
|
|
736
|
-
function go() {
|
|
737
|
-
if (ii) return Br;
|
|
738
|
-
ii = 1;
|
|
739
|
-
function t(e, r, n) {
|
|
740
|
-
for (var a = n - 1, i = e.length; ++a < i; )
|
|
741
|
-
if (e[a] === r)
|
|
742
|
-
return a;
|
|
743
|
-
return -1;
|
|
744
|
-
}
|
|
745
|
-
return Br = t, Br;
|
|
746
|
-
}
|
|
747
|
-
var kr, si;
|
|
748
|
-
function _o() {
|
|
749
|
-
if (si) return kr;
|
|
750
|
-
si = 1;
|
|
751
|
-
var t = po(), e = yo(), r = go();
|
|
752
|
-
function n(a, i, s) {
|
|
753
|
-
return i === i ? r(a, i, s) : t(a, e, s);
|
|
754
|
-
}
|
|
755
|
-
return kr = n, kr;
|
|
756
|
-
}
|
|
757
|
-
var jr, ui;
|
|
758
|
-
function bo() {
|
|
759
|
-
if (ui) return jr;
|
|
760
|
-
ui = 1;
|
|
761
|
-
var t = _o();
|
|
762
|
-
function e(r, n) {
|
|
763
|
-
var a = r == null ? 0 : r.length;
|
|
764
|
-
return !!a && t(r, n, 0) > -1;
|
|
765
|
-
}
|
|
766
|
-
return jr = e, jr;
|
|
767
|
-
}
|
|
768
|
-
var Hr, oi;
|
|
769
|
-
function mo() {
|
|
770
|
-
if (oi) return Hr;
|
|
771
|
-
oi = 1;
|
|
772
|
-
function t(e, r, n) {
|
|
773
|
-
for (var a = -1, i = e == null ? 0 : e.length; ++a < i; )
|
|
774
|
-
if (n(r, e[a]))
|
|
775
|
-
return !0;
|
|
776
|
-
return !1;
|
|
777
|
-
}
|
|
778
|
-
return Hr = t, Hr;
|
|
779
|
-
}
|
|
780
|
-
var Ur, ci;
|
|
781
|
-
function Yn() {
|
|
782
|
-
if (ci) return Ur;
|
|
783
|
-
ci = 1;
|
|
784
|
-
function t(e, r) {
|
|
785
|
-
for (var n = -1, a = e == null ? 0 : e.length, i = Array(a); ++n < a; )
|
|
786
|
-
i[n] = r(e[n], n, e);
|
|
787
|
-
return i;
|
|
788
|
-
}
|
|
789
|
-
return Ur = t, Ur;
|
|
790
|
-
}
|
|
791
|
-
var Gr, li;
|
|
792
|
-
function $n() {
|
|
793
|
-
if (li) return Gr;
|
|
794
|
-
li = 1;
|
|
795
|
-
function t(e) {
|
|
796
|
-
return function(r) {
|
|
797
|
-
return e(r);
|
|
798
|
-
};
|
|
799
|
-
}
|
|
800
|
-
return Gr = t, Gr;
|
|
801
|
-
}
|
|
802
|
-
var Vr, fi;
|
|
803
|
-
function _u() {
|
|
804
|
-
if (fi) return Vr;
|
|
805
|
-
fi = 1;
|
|
806
|
-
function t(e, r) {
|
|
807
|
-
return e.has(r);
|
|
808
|
-
}
|
|
809
|
-
return Vr = t, Vr;
|
|
810
|
-
}
|
|
811
|
-
var zr, di;
|
|
812
|
-
function Co() {
|
|
813
|
-
if (di) return zr;
|
|
814
|
-
di = 1;
|
|
815
|
-
var t = gu(), e = bo(), r = mo(), n = Yn(), a = $n(), i = _u(), s = 200;
|
|
816
|
-
function o(d, f, b, _) {
|
|
817
|
-
var S = -1, x = e, D = !0, M = d.length, m = [], h = f.length;
|
|
818
|
-
if (!M)
|
|
819
|
-
return m;
|
|
820
|
-
b && (f = n(f, a(b))), _ ? (x = r, D = !1) : f.length >= s && (x = i, D = !1, f = new t(f));
|
|
821
|
-
e:
|
|
822
|
-
for (; ++S < M; ) {
|
|
823
|
-
var p = d[S], C = b == null ? p : b(p);
|
|
824
|
-
if (p = _ || p !== 0 ? p : 0, D && C === C) {
|
|
825
|
-
for (var g = h; g--; )
|
|
826
|
-
if (f[g] === C)
|
|
827
|
-
continue e;
|
|
828
|
-
m.push(p);
|
|
829
|
-
} else x(f, C, _) || m.push(p);
|
|
830
|
-
}
|
|
831
|
-
return m;
|
|
832
|
-
}
|
|
833
|
-
return zr = o, zr;
|
|
834
|
-
}
|
|
835
|
-
var Wr, hi;
|
|
836
|
-
function bu() {
|
|
837
|
-
if (hi) return Wr;
|
|
838
|
-
hi = 1;
|
|
839
|
-
function t(e, r) {
|
|
840
|
-
for (var n = -1, a = r.length, i = e.length; ++n < a; )
|
|
841
|
-
e[i + n] = r[n];
|
|
842
|
-
return e;
|
|
843
|
-
}
|
|
844
|
-
return Wr = t, Wr;
|
|
845
|
-
}
|
|
846
|
-
var Yr, vi;
|
|
847
|
-
function wo() {
|
|
848
|
-
if (vi) return Yr;
|
|
849
|
-
vi = 1;
|
|
850
|
-
var t = Ae(), e = ye(), r = "[object Arguments]";
|
|
851
|
-
function n(a) {
|
|
852
|
-
return e(a) && t(a) == r;
|
|
853
|
-
}
|
|
854
|
-
return Yr = n, Yr;
|
|
855
|
-
}
|
|
856
|
-
var $r, pi;
|
|
857
|
-
function Jn() {
|
|
858
|
-
if (pi) return $r;
|
|
859
|
-
pi = 1;
|
|
860
|
-
var t = wo(), e = ye(), r = Object.prototype, n = r.hasOwnProperty, a = r.propertyIsEnumerable, i = t(/* @__PURE__ */ function() {
|
|
861
|
-
return arguments;
|
|
862
|
-
}()) ? t : function(s) {
|
|
863
|
-
return e(s) && n.call(s, "callee") && !a.call(s, "callee");
|
|
864
|
-
};
|
|
865
|
-
return $r = i, $r;
|
|
866
|
-
}
|
|
867
|
-
var Jr, yi;
|
|
868
|
-
function ne() {
|
|
869
|
-
if (yi) return Jr;
|
|
870
|
-
yi = 1;
|
|
871
|
-
var t = Array.isArray;
|
|
872
|
-
return Jr = t, Jr;
|
|
873
|
-
}
|
|
874
|
-
var Xr, gi;
|
|
875
|
-
function qo() {
|
|
876
|
-
if (gi) return Xr;
|
|
877
|
-
gi = 1;
|
|
878
|
-
var t = Te(), e = Jn(), r = ne(), n = t ? t.isConcatSpreadable : void 0;
|
|
879
|
-
function a(i) {
|
|
880
|
-
return r(i) || e(i) || !!(n && i && i[n]);
|
|
881
|
-
}
|
|
882
|
-
return Xr = a, Xr;
|
|
883
|
-
}
|
|
884
|
-
var Zr, _i;
|
|
885
|
-
function mu() {
|
|
886
|
-
if (_i) return Zr;
|
|
887
|
-
_i = 1;
|
|
888
|
-
var t = bu(), e = qo();
|
|
889
|
-
function r(n, a, i, s, o) {
|
|
890
|
-
var d = -1, f = n.length;
|
|
891
|
-
for (i || (i = e), o || (o = []); ++d < f; ) {
|
|
892
|
-
var b = n[d];
|
|
893
|
-
a > 0 && i(b) ? a > 1 ? r(b, a - 1, i, s, o) : t(o, b) : s || (o[o.length] = b);
|
|
894
|
-
}
|
|
895
|
-
return o;
|
|
896
|
-
}
|
|
897
|
-
return Zr = r, Zr;
|
|
898
|
-
}
|
|
899
|
-
var Qr, bi;
|
|
900
|
-
function Me() {
|
|
901
|
-
if (bi) return Qr;
|
|
902
|
-
bi = 1;
|
|
903
|
-
function t(e) {
|
|
904
|
-
return e;
|
|
905
|
-
}
|
|
906
|
-
return Qr = t, Qr;
|
|
907
|
-
}
|
|
908
|
-
var et, mi;
|
|
909
|
-
function Fo() {
|
|
910
|
-
if (mi) return et;
|
|
911
|
-
mi = 1;
|
|
912
|
-
function t(e, r, n) {
|
|
913
|
-
switch (n.length) {
|
|
914
|
-
case 0:
|
|
915
|
-
return e.call(r);
|
|
916
|
-
case 1:
|
|
917
|
-
return e.call(r, n[0]);
|
|
918
|
-
case 2:
|
|
919
|
-
return e.call(r, n[0], n[1]);
|
|
920
|
-
case 3:
|
|
921
|
-
return e.call(r, n[0], n[1], n[2]);
|
|
922
|
-
}
|
|
923
|
-
return e.apply(r, n);
|
|
924
|
-
}
|
|
925
|
-
return et = t, et;
|
|
926
|
-
}
|
|
927
|
-
var rt, Ci;
|
|
928
|
-
function Ro() {
|
|
929
|
-
if (Ci) return rt;
|
|
930
|
-
Ci = 1;
|
|
931
|
-
var t = Fo(), e = Math.max;
|
|
932
|
-
function r(n, a, i) {
|
|
933
|
-
return a = e(a === void 0 ? n.length - 1 : a, 0), function() {
|
|
934
|
-
for (var s = arguments, o = -1, d = e(s.length - a, 0), f = Array(d); ++o < d; )
|
|
935
|
-
f[o] = s[a + o];
|
|
936
|
-
o = -1;
|
|
937
|
-
for (var b = Array(a + 1); ++o < a; )
|
|
938
|
-
b[o] = s[o];
|
|
939
|
-
return b[a] = i(f), t(n, this, b);
|
|
940
|
-
};
|
|
941
|
-
}
|
|
942
|
-
return rt = r, rt;
|
|
943
|
-
}
|
|
944
|
-
var tt, wi;
|
|
945
|
-
function Po() {
|
|
946
|
-
if (wi) return tt;
|
|
947
|
-
wi = 1;
|
|
948
|
-
function t(e) {
|
|
949
|
-
return function() {
|
|
950
|
-
return e;
|
|
951
|
-
};
|
|
952
|
-
}
|
|
953
|
-
return tt = t, tt;
|
|
954
|
-
}
|
|
955
|
-
var nt, qi;
|
|
956
|
-
function To() {
|
|
957
|
-
if (qi) return nt;
|
|
958
|
-
qi = 1;
|
|
959
|
-
var t = pe(), e = function() {
|
|
960
|
-
try {
|
|
961
|
-
var r = t(Object, "defineProperty");
|
|
962
|
-
return r({}, "", {}), r;
|
|
963
|
-
} catch {
|
|
964
|
-
}
|
|
965
|
-
}();
|
|
966
|
-
return nt = e, nt;
|
|
967
|
-
}
|
|
968
|
-
var at, Fi;
|
|
969
|
-
function Ao() {
|
|
970
|
-
if (Fi) return at;
|
|
971
|
-
Fi = 1;
|
|
972
|
-
var t = Po(), e = To(), r = Me(), n = e ? function(a, i) {
|
|
973
|
-
return e(a, "toString", {
|
|
974
|
-
configurable: !0,
|
|
975
|
-
enumerable: !1,
|
|
976
|
-
value: t(i),
|
|
977
|
-
writable: !0
|
|
978
|
-
});
|
|
979
|
-
} : r;
|
|
980
|
-
return at = n, at;
|
|
981
|
-
}
|
|
982
|
-
var it, Ri;
|
|
983
|
-
function So() {
|
|
984
|
-
if (Ri) return it;
|
|
985
|
-
Ri = 1;
|
|
986
|
-
var t = 800, e = 16, r = Date.now;
|
|
987
|
-
function n(a) {
|
|
988
|
-
var i = 0, s = 0;
|
|
989
|
-
return function() {
|
|
990
|
-
var o = r(), d = e - (o - s);
|
|
991
|
-
if (s = o, d > 0) {
|
|
992
|
-
if (++i >= t)
|
|
993
|
-
return arguments[0];
|
|
994
|
-
} else
|
|
995
|
-
i = 0;
|
|
996
|
-
return a.apply(void 0, arguments);
|
|
997
|
-
};
|
|
998
|
-
}
|
|
999
|
-
return it = n, it;
|
|
1000
|
-
}
|
|
1001
|
-
var st, Pi;
|
|
1002
|
-
function Mo() {
|
|
1003
|
-
if (Pi) return st;
|
|
1004
|
-
Pi = 1;
|
|
1005
|
-
var t = Ao(), e = So(), r = e(t);
|
|
1006
|
-
return st = r, st;
|
|
1007
|
-
}
|
|
1008
|
-
var ut, Ti;
|
|
1009
|
-
function Cu() {
|
|
1010
|
-
if (Ti) return ut;
|
|
1011
|
-
Ti = 1;
|
|
1012
|
-
var t = Me(), e = Ro(), r = Mo();
|
|
1013
|
-
function n(a, i) {
|
|
1014
|
-
return r(e(a, i, t), a + "");
|
|
1015
|
-
}
|
|
1016
|
-
return ut = n, ut;
|
|
1017
|
-
}
|
|
1018
|
-
var ot, Ai;
|
|
1019
|
-
function Xn() {
|
|
1020
|
-
if (Ai) return ot;
|
|
1021
|
-
Ai = 1;
|
|
1022
|
-
var t = 9007199254740991;
|
|
1023
|
-
function e(r) {
|
|
1024
|
-
return typeof r == "number" && r > -1 && r % 1 == 0 && r <= t;
|
|
1025
|
-
}
|
|
1026
|
-
return ot = e, ot;
|
|
1027
|
-
}
|
|
1028
|
-
var ct, Si;
|
|
1029
|
-
function Ee() {
|
|
1030
|
-
if (Si) return ct;
|
|
1031
|
-
Si = 1;
|
|
1032
|
-
var t = pu(), e = Xn();
|
|
1033
|
-
function r(n) {
|
|
1034
|
-
return n != null && e(n.length) && !t(n);
|
|
1035
|
-
}
|
|
1036
|
-
return ct = r, ct;
|
|
1037
|
-
}
|
|
1038
|
-
var lt, Mi;
|
|
1039
|
-
function Eo() {
|
|
1040
|
-
if (Mi) return lt;
|
|
1041
|
-
Mi = 1;
|
|
1042
|
-
var t = Ee(), e = ye();
|
|
1043
|
-
function r(n) {
|
|
1044
|
-
return e(n) && t(n);
|
|
1045
|
-
}
|
|
1046
|
-
return lt = r, lt;
|
|
1047
|
-
}
|
|
1048
|
-
var ft, Ei;
|
|
1049
|
-
function xo() {
|
|
1050
|
-
if (Ei) return ft;
|
|
1051
|
-
Ei = 1;
|
|
1052
|
-
var t = Co(), e = mu(), r = Cu(), n = Eo(), a = r(function(i, s) {
|
|
1053
|
-
return n(i) ? t(i, e(s, 1, n, !0)) : [];
|
|
1054
|
-
});
|
|
1055
|
-
return ft = a, ft;
|
|
1056
|
-
}
|
|
1057
|
-
var dt, xi;
|
|
1058
|
-
function wu() {
|
|
1059
|
-
if (xi) return dt;
|
|
1060
|
-
xi = 1;
|
|
1061
|
-
function t(e, r) {
|
|
1062
|
-
for (var n = -1, a = e == null ? 0 : e.length, i = 0, s = []; ++n < a; ) {
|
|
1063
|
-
var o = e[n];
|
|
1064
|
-
r(o, n, e) && (s[i++] = o);
|
|
1065
|
-
}
|
|
1066
|
-
return s;
|
|
1067
|
-
}
|
|
1068
|
-
return dt = t, dt;
|
|
1069
|
-
}
|
|
1070
|
-
var ht, Ii;
|
|
1071
|
-
function Io() {
|
|
1072
|
-
if (Ii) return ht;
|
|
1073
|
-
Ii = 1;
|
|
1074
|
-
function t(e) {
|
|
1075
|
-
return function(r, n, a) {
|
|
1076
|
-
for (var i = -1, s = Object(r), o = a(r), d = o.length; d--; ) {
|
|
1077
|
-
var f = o[e ? d : ++i];
|
|
1078
|
-
if (n(s[f], f, s) === !1)
|
|
1079
|
-
break;
|
|
1080
|
-
}
|
|
1081
|
-
return r;
|
|
1082
|
-
};
|
|
1083
|
-
}
|
|
1084
|
-
return ht = t, ht;
|
|
1085
|
-
}
|
|
1086
|
-
var vt, Ki;
|
|
1087
|
-
function Ko() {
|
|
1088
|
-
if (Ki) return vt;
|
|
1089
|
-
Ki = 1;
|
|
1090
|
-
var t = Io(), e = t();
|
|
1091
|
-
return vt = e, vt;
|
|
1092
|
-
}
|
|
1093
|
-
var pt, Oi;
|
|
1094
|
-
function Oo() {
|
|
1095
|
-
if (Oi) return pt;
|
|
1096
|
-
Oi = 1;
|
|
1097
|
-
function t(e, r) {
|
|
1098
|
-
for (var n = -1, a = Array(e); ++n < e; )
|
|
1099
|
-
a[n] = r(n);
|
|
1100
|
-
return a;
|
|
1101
|
-
}
|
|
1102
|
-
return pt = t, pt;
|
|
1103
|
-
}
|
|
1104
|
-
var Re = { exports: {} }, yt, Di;
|
|
1105
|
-
function Do() {
|
|
1106
|
-
if (Di) return yt;
|
|
1107
|
-
Di = 1;
|
|
1108
|
-
function t() {
|
|
1109
|
-
return !1;
|
|
1110
|
-
}
|
|
1111
|
-
return yt = t, yt;
|
|
1112
|
-
}
|
|
1113
|
-
Re.exports;
|
|
1114
|
-
var Li;
|
|
1115
|
-
function qu() {
|
|
1116
|
-
return Li || (Li = 1, function(t, e) {
|
|
1117
|
-
var r = ue(), n = Do(), a = e && !e.nodeType && e, i = a && !0 && t && !t.nodeType && t, s = i && i.exports === a, o = s ? r.Buffer : void 0, d = o ? o.isBuffer : void 0, f = d || n;
|
|
1118
|
-
t.exports = f;
|
|
1119
|
-
}(Re, Re.exports)), Re.exports;
|
|
1120
|
-
}
|
|
1121
|
-
var gt, Ni;
|
|
1122
|
-
function Zn() {
|
|
1123
|
-
if (Ni) return gt;
|
|
1124
|
-
Ni = 1;
|
|
1125
|
-
var t = 9007199254740991, e = /^(?:0|[1-9]\d*)$/;
|
|
1126
|
-
function r(n, a) {
|
|
1127
|
-
var i = typeof n;
|
|
1128
|
-
return a = a ?? t, !!a && (i == "number" || i != "symbol" && e.test(n)) && n > -1 && n % 1 == 0 && n < a;
|
|
1129
|
-
}
|
|
1130
|
-
return gt = r, gt;
|
|
1131
|
-
}
|
|
1132
|
-
var _t, Bi;
|
|
1133
|
-
function Lo() {
|
|
1134
|
-
if (Bi) return _t;
|
|
1135
|
-
Bi = 1;
|
|
1136
|
-
var t = Ae(), e = Xn(), r = ye(), n = "[object Arguments]", a = "[object Array]", i = "[object Boolean]", s = "[object Date]", o = "[object Error]", d = "[object Function]", f = "[object Map]", b = "[object Number]", _ = "[object Object]", S = "[object RegExp]", x = "[object Set]", D = "[object String]", M = "[object WeakMap]", m = "[object ArrayBuffer]", h = "[object DataView]", p = "[object Float32Array]", C = "[object Float64Array]", g = "[object Int8Array]", I = "[object Int16Array]", A = "[object Int32Array]", q = "[object Uint8Array]", N = "[object Uint8ClampedArray]", F = "[object Uint16Array]", E = "[object Uint32Array]", K = {};
|
|
1137
|
-
K[p] = K[C] = K[g] = K[I] = K[A] = K[q] = K[N] = K[F] = K[E] = !0, K[n] = K[a] = K[m] = K[i] = K[h] = K[s] = K[o] = K[d] = K[f] = K[b] = K[_] = K[S] = K[x] = K[D] = K[M] = !1;
|
|
1138
|
-
function U(P) {
|
|
1139
|
-
return r(P) && e(P.length) && !!K[t(P)];
|
|
1140
|
-
}
|
|
1141
|
-
return _t = U, _t;
|
|
1142
|
-
}
|
|
1143
|
-
var Pe = { exports: {} };
|
|
1144
|
-
Pe.exports;
|
|
1145
|
-
var ki;
|
|
1146
|
-
function No() {
|
|
1147
|
-
return ki || (ki = 1, function(t, e) {
|
|
1148
|
-
var r = hu(), n = e && !e.nodeType && e, a = n && !0 && t && !t.nodeType && t, i = a && a.exports === n, s = i && r.process, o = function() {
|
|
1149
|
-
try {
|
|
1150
|
-
var d = a && a.require && a.require("util").types;
|
|
1151
|
-
return d || s && s.binding && s.binding("util");
|
|
1152
|
-
} catch {
|
|
1153
|
-
}
|
|
1154
|
-
}();
|
|
1155
|
-
t.exports = o;
|
|
1156
|
-
}(Pe, Pe.exports)), Pe.exports;
|
|
1157
|
-
}
|
|
1158
|
-
var bt, ji;
|
|
1159
|
-
function Fu() {
|
|
1160
|
-
if (ji) return bt;
|
|
1161
|
-
ji = 1;
|
|
1162
|
-
var t = Lo(), e = $n(), r = No(), n = r && r.isTypedArray, a = n ? e(n) : t;
|
|
1163
|
-
return bt = a, bt;
|
|
1164
|
-
}
|
|
1165
|
-
var mt, Hi;
|
|
1166
|
-
function Bo() {
|
|
1167
|
-
if (Hi) return mt;
|
|
1168
|
-
Hi = 1;
|
|
1169
|
-
var t = Oo(), e = Jn(), r = ne(), n = qu(), a = Zn(), i = Fu(), s = Object.prototype, o = s.hasOwnProperty;
|
|
1170
|
-
function d(f, b) {
|
|
1171
|
-
var _ = r(f), S = !_ && e(f), x = !_ && !S && n(f), D = !_ && !S && !x && i(f), M = _ || S || x || D, m = M ? t(f.length, String) : [], h = m.length;
|
|
1172
|
-
for (var p in f)
|
|
1173
|
-
(b || o.call(f, p)) && !(M && // Safari 9 has enumerable `arguments.length` in strict mode.
|
|
1174
|
-
(p == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
|
|
1175
|
-
x && (p == "offset" || p == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
|
|
1176
|
-
D && (p == "buffer" || p == "byteLength" || p == "byteOffset") || // Skip index properties.
|
|
1177
|
-
a(p, h))) && m.push(p);
|
|
1178
|
-
return m;
|
|
1179
|
-
}
|
|
1180
|
-
return mt = d, mt;
|
|
1181
|
-
}
|
|
1182
|
-
var Ct, Ui;
|
|
1183
|
-
function ko() {
|
|
1184
|
-
if (Ui) return Ct;
|
|
1185
|
-
Ui = 1;
|
|
1186
|
-
var t = Object.prototype;
|
|
1187
|
-
function e(r) {
|
|
1188
|
-
var n = r && r.constructor, a = typeof n == "function" && n.prototype || t;
|
|
1189
|
-
return r === a;
|
|
1190
|
-
}
|
|
1191
|
-
return Ct = e, Ct;
|
|
1192
|
-
}
|
|
1193
|
-
var wt, Gi;
|
|
1194
|
-
function jo() {
|
|
1195
|
-
if (Gi) return wt;
|
|
1196
|
-
Gi = 1;
|
|
1197
|
-
function t(e, r) {
|
|
1198
|
-
return function(n) {
|
|
1199
|
-
return e(r(n));
|
|
1200
|
-
};
|
|
1201
|
-
}
|
|
1202
|
-
return wt = t, wt;
|
|
1203
|
-
}
|
|
1204
|
-
var qt, Vi;
|
|
1205
|
-
function Ho() {
|
|
1206
|
-
if (Vi) return qt;
|
|
1207
|
-
Vi = 1;
|
|
1208
|
-
var t = jo(), e = t(Object.keys, Object);
|
|
1209
|
-
return qt = e, qt;
|
|
1210
|
-
}
|
|
1211
|
-
var Ft, zi;
|
|
1212
|
-
function Uo() {
|
|
1213
|
-
if (zi) return Ft;
|
|
1214
|
-
zi = 1;
|
|
1215
|
-
var t = ko(), e = Ho(), r = Object.prototype, n = r.hasOwnProperty;
|
|
1216
|
-
function a(i) {
|
|
1217
|
-
if (!t(i))
|
|
1218
|
-
return e(i);
|
|
1219
|
-
var s = [];
|
|
1220
|
-
for (var o in Object(i))
|
|
1221
|
-
n.call(i, o) && o != "constructor" && s.push(o);
|
|
1222
|
-
return s;
|
|
1223
|
-
}
|
|
1224
|
-
return Ft = a, Ft;
|
|
1225
|
-
}
|
|
1226
|
-
var Rt, Wi;
|
|
1227
|
-
function Qn() {
|
|
1228
|
-
if (Wi) return Rt;
|
|
1229
|
-
Wi = 1;
|
|
1230
|
-
var t = Bo(), e = Uo(), r = Ee();
|
|
1231
|
-
function n(a) {
|
|
1232
|
-
return r(a) ? t(a) : e(a);
|
|
1233
|
-
}
|
|
1234
|
-
return Rt = n, Rt;
|
|
1235
|
-
}
|
|
1236
|
-
var Pt, Yi;
|
|
1237
|
-
function ea() {
|
|
1238
|
-
if (Yi) return Pt;
|
|
1239
|
-
Yi = 1;
|
|
1240
|
-
var t = Ko(), e = Qn();
|
|
1241
|
-
function r(n, a) {
|
|
1242
|
-
return n && t(n, a, e);
|
|
1243
|
-
}
|
|
1244
|
-
return Pt = r, Pt;
|
|
1245
|
-
}
|
|
1246
|
-
var Tt, $i;
|
|
1247
|
-
function Go() {
|
|
1248
|
-
if ($i) return Tt;
|
|
1249
|
-
$i = 1;
|
|
1250
|
-
var t = Ee();
|
|
1251
|
-
function e(r, n) {
|
|
1252
|
-
return function(a, i) {
|
|
1253
|
-
if (a == null)
|
|
1254
|
-
return a;
|
|
1255
|
-
if (!t(a))
|
|
1256
|
-
return r(a, i);
|
|
1257
|
-
for (var s = a.length, o = n ? s : -1, d = Object(a); (n ? o-- : ++o < s) && i(d[o], o, d) !== !1; )
|
|
1258
|
-
;
|
|
1259
|
-
return a;
|
|
1260
|
-
};
|
|
1261
|
-
}
|
|
1262
|
-
return Tt = e, Tt;
|
|
1263
|
-
}
|
|
1264
|
-
var At, Ji;
|
|
1265
|
-
function ra() {
|
|
1266
|
-
if (Ji) return At;
|
|
1267
|
-
Ji = 1;
|
|
1268
|
-
var t = ea(), e = Go(), r = e(t);
|
|
1269
|
-
return At = r, At;
|
|
1270
|
-
}
|
|
1271
|
-
var St, Xi;
|
|
1272
|
-
function Vo() {
|
|
1273
|
-
if (Xi) return St;
|
|
1274
|
-
Xi = 1;
|
|
1275
|
-
var t = ra();
|
|
1276
|
-
function e(r, n) {
|
|
1277
|
-
var a = [];
|
|
1278
|
-
return t(r, function(i, s, o) {
|
|
1279
|
-
n(i, s, o) && a.push(i);
|
|
1280
|
-
}), a;
|
|
1281
|
-
}
|
|
1282
|
-
return St = e, St;
|
|
1283
|
-
}
|
|
1284
|
-
var Mt, Zi;
|
|
1285
|
-
function zo() {
|
|
1286
|
-
if (Zi) return Mt;
|
|
1287
|
-
Zi = 1;
|
|
1288
|
-
var t = Be();
|
|
1289
|
-
function e() {
|
|
1290
|
-
this.__data__ = new t(), this.size = 0;
|
|
1291
|
-
}
|
|
1292
|
-
return Mt = e, Mt;
|
|
1293
|
-
}
|
|
1294
|
-
var Et, Qi;
|
|
1295
|
-
function Wo() {
|
|
1296
|
-
if (Qi) return Et;
|
|
1297
|
-
Qi = 1;
|
|
1298
|
-
function t(e) {
|
|
1299
|
-
var r = this.__data__, n = r.delete(e);
|
|
1300
|
-
return this.size = r.size, n;
|
|
1301
|
-
}
|
|
1302
|
-
return Et = t, Et;
|
|
1303
|
-
}
|
|
1304
|
-
var xt, es;
|
|
1305
|
-
function Yo() {
|
|
1306
|
-
if (es) return xt;
|
|
1307
|
-
es = 1;
|
|
1308
|
-
function t(e) {
|
|
1309
|
-
return this.__data__.get(e);
|
|
1310
|
-
}
|
|
1311
|
-
return xt = t, xt;
|
|
1312
|
-
}
|
|
1313
|
-
var It, rs;
|
|
1314
|
-
function $o() {
|
|
1315
|
-
if (rs) return It;
|
|
1316
|
-
rs = 1;
|
|
1317
|
-
function t(e) {
|
|
1318
|
-
return this.__data__.has(e);
|
|
1319
|
-
}
|
|
1320
|
-
return It = t, It;
|
|
1321
|
-
}
|
|
1322
|
-
var Kt, ts;
|
|
1323
|
-
function Jo() {
|
|
1324
|
-
if (ts) return Kt;
|
|
1325
|
-
ts = 1;
|
|
1326
|
-
var t = Be(), e = zn(), r = Wn(), n = 200;
|
|
1327
|
-
function a(i, s) {
|
|
1328
|
-
var o = this.__data__;
|
|
1329
|
-
if (o instanceof t) {
|
|
1330
|
-
var d = o.__data__;
|
|
1331
|
-
if (!e || d.length < n - 1)
|
|
1332
|
-
return d.push([i, s]), this.size = ++o.size, this;
|
|
1333
|
-
o = this.__data__ = new r(d);
|
|
1334
|
-
}
|
|
1335
|
-
return o.set(i, s), this.size = o.size, this;
|
|
1336
|
-
}
|
|
1337
|
-
return Kt = a, Kt;
|
|
1338
|
-
}
|
|
1339
|
-
var Ot, ns;
|
|
1340
|
-
function Ru() {
|
|
1341
|
-
if (ns) return Ot;
|
|
1342
|
-
ns = 1;
|
|
1343
|
-
var t = Be(), e = zo(), r = Wo(), n = Yo(), a = $o(), i = Jo();
|
|
1344
|
-
function s(o) {
|
|
1345
|
-
var d = this.__data__ = new t(o);
|
|
1346
|
-
this.size = d.size;
|
|
1347
|
-
}
|
|
1348
|
-
return s.prototype.clear = e, s.prototype.delete = r, s.prototype.get = n, s.prototype.has = a, s.prototype.set = i, Ot = s, Ot;
|
|
1349
|
-
}
|
|
1350
|
-
var Dt, as;
|
|
1351
|
-
function Xo() {
|
|
1352
|
-
if (as) return Dt;
|
|
1353
|
-
as = 1;
|
|
1354
|
-
function t(e, r) {
|
|
1355
|
-
for (var n = -1, a = e == null ? 0 : e.length; ++n < a; )
|
|
1356
|
-
if (r(e[n], n, e))
|
|
1357
|
-
return !0;
|
|
1358
|
-
return !1;
|
|
1359
|
-
}
|
|
1360
|
-
return Dt = t, Dt;
|
|
1361
|
-
}
|
|
1362
|
-
var Lt, is;
|
|
1363
|
-
function Pu() {
|
|
1364
|
-
if (is) return Lt;
|
|
1365
|
-
is = 1;
|
|
1366
|
-
var t = gu(), e = Xo(), r = _u(), n = 1, a = 2;
|
|
1367
|
-
function i(s, o, d, f, b, _) {
|
|
1368
|
-
var S = d & n, x = s.length, D = o.length;
|
|
1369
|
-
if (x != D && !(S && D > x))
|
|
1370
|
-
return !1;
|
|
1371
|
-
var M = _.get(s), m = _.get(o);
|
|
1372
|
-
if (M && m)
|
|
1373
|
-
return M == o && m == s;
|
|
1374
|
-
var h = -1, p = !0, C = d & a ? new t() : void 0;
|
|
1375
|
-
for (_.set(s, o), _.set(o, s); ++h < x; ) {
|
|
1376
|
-
var g = s[h], I = o[h];
|
|
1377
|
-
if (f)
|
|
1378
|
-
var A = S ? f(I, g, h, o, s, _) : f(g, I, h, s, o, _);
|
|
1379
|
-
if (A !== void 0) {
|
|
1380
|
-
if (A)
|
|
1381
|
-
continue;
|
|
1382
|
-
p = !1;
|
|
1383
|
-
break;
|
|
1384
|
-
}
|
|
1385
|
-
if (C) {
|
|
1386
|
-
if (!e(o, function(q, N) {
|
|
1387
|
-
if (!r(C, N) && (g === q || b(g, q, d, f, _)))
|
|
1388
|
-
return C.push(N);
|
|
1389
|
-
})) {
|
|
1390
|
-
p = !1;
|
|
1391
|
-
break;
|
|
1392
|
-
}
|
|
1393
|
-
} else if (!(g === I || b(g, I, d, f, _))) {
|
|
1394
|
-
p = !1;
|
|
1395
|
-
break;
|
|
1396
|
-
}
|
|
1397
|
-
}
|
|
1398
|
-
return _.delete(s), _.delete(o), p;
|
|
1399
|
-
}
|
|
1400
|
-
return Lt = i, Lt;
|
|
1401
|
-
}
|
|
1402
|
-
var Nt, ss;
|
|
1403
|
-
function Zo() {
|
|
1404
|
-
if (ss) return Nt;
|
|
1405
|
-
ss = 1;
|
|
1406
|
-
var t = ue(), e = t.Uint8Array;
|
|
1407
|
-
return Nt = e, Nt;
|
|
1408
|
-
}
|
|
1409
|
-
var Bt, us;
|
|
1410
|
-
function Qo() {
|
|
1411
|
-
if (us) return Bt;
|
|
1412
|
-
us = 1;
|
|
1413
|
-
function t(e) {
|
|
1414
|
-
var r = -1, n = Array(e.size);
|
|
1415
|
-
return e.forEach(function(a, i) {
|
|
1416
|
-
n[++r] = [i, a];
|
|
1417
|
-
}), n;
|
|
1418
|
-
}
|
|
1419
|
-
return Bt = t, Bt;
|
|
1420
|
-
}
|
|
1421
|
-
var kt, os;
|
|
1422
|
-
function ec() {
|
|
1423
|
-
if (os) return kt;
|
|
1424
|
-
os = 1;
|
|
1425
|
-
function t(e) {
|
|
1426
|
-
var r = -1, n = Array(e.size);
|
|
1427
|
-
return e.forEach(function(a) {
|
|
1428
|
-
n[++r] = a;
|
|
1429
|
-
}), n;
|
|
1430
|
-
}
|
|
1431
|
-
return kt = t, kt;
|
|
1432
|
-
}
|
|
1433
|
-
var jt, cs;
|
|
1434
|
-
function rc() {
|
|
1435
|
-
if (cs) return jt;
|
|
1436
|
-
cs = 1;
|
|
1437
|
-
var t = Te(), e = Zo(), r = Vn(), n = Pu(), a = Qo(), i = ec(), s = 1, o = 2, d = "[object Boolean]", f = "[object Date]", b = "[object Error]", _ = "[object Map]", S = "[object Number]", x = "[object RegExp]", D = "[object Set]", M = "[object String]", m = "[object Symbol]", h = "[object ArrayBuffer]", p = "[object DataView]", C = t ? t.prototype : void 0, g = C ? C.valueOf : void 0;
|
|
1438
|
-
function I(A, q, N, F, E, K, U) {
|
|
1439
|
-
switch (N) {
|
|
1440
|
-
case p:
|
|
1441
|
-
if (A.byteLength != q.byteLength || A.byteOffset != q.byteOffset)
|
|
1442
|
-
return !1;
|
|
1443
|
-
A = A.buffer, q = q.buffer;
|
|
1444
|
-
case h:
|
|
1445
|
-
return !(A.byteLength != q.byteLength || !K(new e(A), new e(q)));
|
|
1446
|
-
case d:
|
|
1447
|
-
case f:
|
|
1448
|
-
case S:
|
|
1449
|
-
return r(+A, +q);
|
|
1450
|
-
case b:
|
|
1451
|
-
return A.name == q.name && A.message == q.message;
|
|
1452
|
-
case x:
|
|
1453
|
-
case M:
|
|
1454
|
-
return A == q + "";
|
|
1455
|
-
case _:
|
|
1456
|
-
var P = a;
|
|
1457
|
-
case D:
|
|
1458
|
-
var V = F & s;
|
|
1459
|
-
if (P || (P = i), A.size != q.size && !V)
|
|
1460
|
-
return !1;
|
|
1461
|
-
var J = U.get(A);
|
|
1462
|
-
if (J)
|
|
1463
|
-
return J == q;
|
|
1464
|
-
F |= o, U.set(A, q);
|
|
1465
|
-
var ae = n(P(A), P(q), F, E, K, U);
|
|
1466
|
-
return U.delete(A), ae;
|
|
1467
|
-
case m:
|
|
1468
|
-
if (g)
|
|
1469
|
-
return g.call(A) == g.call(q);
|
|
1470
|
-
}
|
|
1471
|
-
return !1;
|
|
1472
|
-
}
|
|
1473
|
-
return jt = I, jt;
|
|
1474
|
-
}
|
|
1475
|
-
var Ht, ls;
|
|
1476
|
-
function tc() {
|
|
1477
|
-
if (ls) return Ht;
|
|
1478
|
-
ls = 1;
|
|
1479
|
-
var t = bu(), e = ne();
|
|
1480
|
-
function r(n, a, i) {
|
|
1481
|
-
var s = a(n);
|
|
1482
|
-
return e(n) ? s : t(s, i(n));
|
|
1483
|
-
}
|
|
1484
|
-
return Ht = r, Ht;
|
|
1485
|
-
}
|
|
1486
|
-
var Ut, fs;
|
|
1487
|
-
function nc() {
|
|
1488
|
-
if (fs) return Ut;
|
|
1489
|
-
fs = 1;
|
|
1490
|
-
function t() {
|
|
1491
|
-
return [];
|
|
1492
|
-
}
|
|
1493
|
-
return Ut = t, Ut;
|
|
1494
|
-
}
|
|
1495
|
-
var Gt, ds;
|
|
1496
|
-
function ac() {
|
|
1497
|
-
if (ds) return Gt;
|
|
1498
|
-
ds = 1;
|
|
1499
|
-
var t = wu(), e = nc(), r = Object.prototype, n = r.propertyIsEnumerable, a = Object.getOwnPropertySymbols, i = a ? function(s) {
|
|
1500
|
-
return s == null ? [] : (s = Object(s), t(a(s), function(o) {
|
|
1501
|
-
return n.call(s, o);
|
|
1502
|
-
}));
|
|
1503
|
-
} : e;
|
|
1504
|
-
return Gt = i, Gt;
|
|
1505
|
-
}
|
|
1506
|
-
var Vt, hs;
|
|
1507
|
-
function ic() {
|
|
1508
|
-
if (hs) return Vt;
|
|
1509
|
-
hs = 1;
|
|
1510
|
-
var t = tc(), e = ac(), r = Qn();
|
|
1511
|
-
function n(a) {
|
|
1512
|
-
return t(a, r, e);
|
|
1513
|
-
}
|
|
1514
|
-
return Vt = n, Vt;
|
|
1515
|
-
}
|
|
1516
|
-
var zt, vs;
|
|
1517
|
-
function sc() {
|
|
1518
|
-
if (vs) return zt;
|
|
1519
|
-
vs = 1;
|
|
1520
|
-
var t = ic(), e = 1, r = Object.prototype, n = r.hasOwnProperty;
|
|
1521
|
-
function a(i, s, o, d, f, b) {
|
|
1522
|
-
var _ = o & e, S = t(i), x = S.length, D = t(s), M = D.length;
|
|
1523
|
-
if (x != M && !_)
|
|
1524
|
-
return !1;
|
|
1525
|
-
for (var m = x; m--; ) {
|
|
1526
|
-
var h = S[m];
|
|
1527
|
-
if (!(_ ? h in s : n.call(s, h)))
|
|
1528
|
-
return !1;
|
|
1529
|
-
}
|
|
1530
|
-
var p = b.get(i), C = b.get(s);
|
|
1531
|
-
if (p && C)
|
|
1532
|
-
return p == s && C == i;
|
|
1533
|
-
var g = !0;
|
|
1534
|
-
b.set(i, s), b.set(s, i);
|
|
1535
|
-
for (var I = _; ++m < x; ) {
|
|
1536
|
-
h = S[m];
|
|
1537
|
-
var A = i[h], q = s[h];
|
|
1538
|
-
if (d)
|
|
1539
|
-
var N = _ ? d(q, A, h, s, i, b) : d(A, q, h, i, s, b);
|
|
1540
|
-
if (!(N === void 0 ? A === q || f(A, q, o, d, b) : N)) {
|
|
1541
|
-
g = !1;
|
|
1542
|
-
break;
|
|
1543
|
-
}
|
|
1544
|
-
I || (I = h == "constructor");
|
|
1545
|
-
}
|
|
1546
|
-
if (g && !I) {
|
|
1547
|
-
var F = i.constructor, E = s.constructor;
|
|
1548
|
-
F != E && "constructor" in i && "constructor" in s && !(typeof F == "function" && F instanceof F && typeof E == "function" && E instanceof E) && (g = !1);
|
|
1549
|
-
}
|
|
1550
|
-
return b.delete(i), b.delete(s), g;
|
|
1551
|
-
}
|
|
1552
|
-
return zt = a, zt;
|
|
1553
|
-
}
|
|
1554
|
-
var Wt, ps;
|
|
1555
|
-
function uc() {
|
|
1556
|
-
if (ps) return Wt;
|
|
1557
|
-
ps = 1;
|
|
1558
|
-
var t = pe(), e = ue(), r = t(e, "DataView");
|
|
1559
|
-
return Wt = r, Wt;
|
|
1560
|
-
}
|
|
1561
|
-
var Yt, ys;
|
|
1562
|
-
function oc() {
|
|
1563
|
-
if (ys) return Yt;
|
|
1564
|
-
ys = 1;
|
|
1565
|
-
var t = pe(), e = ue(), r = t(e, "Promise");
|
|
1566
|
-
return Yt = r, Yt;
|
|
1567
|
-
}
|
|
1568
|
-
var $t, gs;
|
|
1569
|
-
function cc() {
|
|
1570
|
-
if (gs) return $t;
|
|
1571
|
-
gs = 1;
|
|
1572
|
-
var t = pe(), e = ue(), r = t(e, "Set");
|
|
1573
|
-
return $t = r, $t;
|
|
1574
|
-
}
|
|
1575
|
-
var Jt, _s;
|
|
1576
|
-
function lc() {
|
|
1577
|
-
if (_s) return Jt;
|
|
1578
|
-
_s = 1;
|
|
1579
|
-
var t = pe(), e = ue(), r = t(e, "WeakMap");
|
|
1580
|
-
return Jt = r, Jt;
|
|
1581
|
-
}
|
|
1582
|
-
var Xt, bs;
|
|
1583
|
-
function fc() {
|
|
1584
|
-
if (bs) return Xt;
|
|
1585
|
-
bs = 1;
|
|
1586
|
-
var t = uc(), e = zn(), r = oc(), n = cc(), a = lc(), i = Ae(), s = yu(), o = "[object Map]", d = "[object Object]", f = "[object Promise]", b = "[object Set]", _ = "[object WeakMap]", S = "[object DataView]", x = s(t), D = s(e), M = s(r), m = s(n), h = s(a), p = i;
|
|
1587
|
-
return (t && p(new t(new ArrayBuffer(1))) != S || e && p(new e()) != o || r && p(r.resolve()) != f || n && p(new n()) != b || a && p(new a()) != _) && (p = function(C) {
|
|
1588
|
-
var g = i(C), I = g == d ? C.constructor : void 0, A = I ? s(I) : "";
|
|
1589
|
-
if (A)
|
|
1590
|
-
switch (A) {
|
|
1591
|
-
case x:
|
|
1592
|
-
return S;
|
|
1593
|
-
case D:
|
|
1594
|
-
return o;
|
|
1595
|
-
case M:
|
|
1596
|
-
return f;
|
|
1597
|
-
case m:
|
|
1598
|
-
return b;
|
|
1599
|
-
case h:
|
|
1600
|
-
return _;
|
|
1601
|
-
}
|
|
1602
|
-
return g;
|
|
1603
|
-
}), Xt = p, Xt;
|
|
1604
|
-
}
|
|
1605
|
-
var Zt, ms;
|
|
1606
|
-
function dc() {
|
|
1607
|
-
if (ms) return Zt;
|
|
1608
|
-
ms = 1;
|
|
1609
|
-
var t = Ru(), e = Pu(), r = rc(), n = sc(), a = fc(), i = ne(), s = qu(), o = Fu(), d = 1, f = "[object Arguments]", b = "[object Array]", _ = "[object Object]", S = Object.prototype, x = S.hasOwnProperty;
|
|
1610
|
-
function D(M, m, h, p, C, g) {
|
|
1611
|
-
var I = i(M), A = i(m), q = I ? b : a(M), N = A ? b : a(m);
|
|
1612
|
-
q = q == f ? _ : q, N = N == f ? _ : N;
|
|
1613
|
-
var F = q == _, E = N == _, K = q == N;
|
|
1614
|
-
if (K && s(M)) {
|
|
1615
|
-
if (!s(m))
|
|
1616
|
-
return !1;
|
|
1617
|
-
I = !0, F = !1;
|
|
1618
|
-
}
|
|
1619
|
-
if (K && !F)
|
|
1620
|
-
return g || (g = new t()), I || o(M) ? e(M, m, h, p, C, g) : r(M, m, q, h, p, C, g);
|
|
1621
|
-
if (!(h & d)) {
|
|
1622
|
-
var U = F && x.call(M, "__wrapped__"), P = E && x.call(m, "__wrapped__");
|
|
1623
|
-
if (U || P) {
|
|
1624
|
-
var V = U ? M.value() : M, J = P ? m.value() : m;
|
|
1625
|
-
return g || (g = new t()), C(V, J, h, p, g);
|
|
1626
|
-
}
|
|
1627
|
-
}
|
|
1628
|
-
return K ? (g || (g = new t()), n(M, m, h, p, C, g)) : !1;
|
|
1629
|
-
}
|
|
1630
|
-
return Zt = D, Zt;
|
|
1631
|
-
}
|
|
1632
|
-
var Qt, Cs;
|
|
1633
|
-
function Tu() {
|
|
1634
|
-
if (Cs) return Qt;
|
|
1635
|
-
Cs = 1;
|
|
1636
|
-
var t = dc(), e = ye();
|
|
1637
|
-
function r(n, a, i, s, o) {
|
|
1638
|
-
return n === a ? !0 : n == null || a == null || !e(n) && !e(a) ? n !== n && a !== a : t(n, a, i, s, r, o);
|
|
1639
|
-
}
|
|
1640
|
-
return Qt = r, Qt;
|
|
1641
|
-
}
|
|
1642
|
-
var en, ws;
|
|
1643
|
-
function hc() {
|
|
1644
|
-
if (ws) return en;
|
|
1645
|
-
ws = 1;
|
|
1646
|
-
var t = Ru(), e = Tu(), r = 1, n = 2;
|
|
1647
|
-
function a(i, s, o, d) {
|
|
1648
|
-
var f = o.length, b = f, _ = !d;
|
|
1649
|
-
if (i == null)
|
|
1650
|
-
return !b;
|
|
1651
|
-
for (i = Object(i); f--; ) {
|
|
1652
|
-
var S = o[f];
|
|
1653
|
-
if (_ && S[2] ? S[1] !== i[S[0]] : !(S[0] in i))
|
|
1654
|
-
return !1;
|
|
1655
|
-
}
|
|
1656
|
-
for (; ++f < b; ) {
|
|
1657
|
-
S = o[f];
|
|
1658
|
-
var x = S[0], D = i[x], M = S[1];
|
|
1659
|
-
if (_ && S[2]) {
|
|
1660
|
-
if (D === void 0 && !(x in i))
|
|
1661
|
-
return !1;
|
|
1662
|
-
} else {
|
|
1663
|
-
var m = new t();
|
|
1664
|
-
if (d)
|
|
1665
|
-
var h = d(D, M, x, i, s, m);
|
|
1666
|
-
if (!(h === void 0 ? e(M, D, r | n, d, m) : h))
|
|
1667
|
-
return !1;
|
|
1668
|
-
}
|
|
1669
|
-
}
|
|
1670
|
-
return !0;
|
|
1671
|
-
}
|
|
1672
|
-
return en = a, en;
|
|
1673
|
-
}
|
|
1674
|
-
var rn, qs;
|
|
1675
|
-
function Au() {
|
|
1676
|
-
if (qs) return rn;
|
|
1677
|
-
qs = 1;
|
|
1678
|
-
var t = ve();
|
|
1679
|
-
function e(r) {
|
|
1680
|
-
return r === r && !t(r);
|
|
1681
|
-
}
|
|
1682
|
-
return rn = e, rn;
|
|
1683
|
-
}
|
|
1684
|
-
var tn, Fs;
|
|
1685
|
-
function vc() {
|
|
1686
|
-
if (Fs) return tn;
|
|
1687
|
-
Fs = 1;
|
|
1688
|
-
var t = Au(), e = Qn();
|
|
1689
|
-
function r(n) {
|
|
1690
|
-
for (var a = e(n), i = a.length; i--; ) {
|
|
1691
|
-
var s = a[i], o = n[s];
|
|
1692
|
-
a[i] = [s, o, t(o)];
|
|
1693
|
-
}
|
|
1694
|
-
return a;
|
|
1695
|
-
}
|
|
1696
|
-
return tn = r, tn;
|
|
1697
|
-
}
|
|
1698
|
-
var nn, Rs;
|
|
1699
|
-
function Su() {
|
|
1700
|
-
if (Rs) return nn;
|
|
1701
|
-
Rs = 1;
|
|
1702
|
-
function t(e, r) {
|
|
1703
|
-
return function(n) {
|
|
1704
|
-
return n == null ? !1 : n[e] === r && (r !== void 0 || e in Object(n));
|
|
1705
|
-
};
|
|
1706
|
-
}
|
|
1707
|
-
return nn = t, nn;
|
|
1708
|
-
}
|
|
1709
|
-
var an, Ps;
|
|
1710
|
-
function pc() {
|
|
1711
|
-
if (Ps) return an;
|
|
1712
|
-
Ps = 1;
|
|
1713
|
-
var t = hc(), e = vc(), r = Su();
|
|
1714
|
-
function n(a) {
|
|
1715
|
-
var i = e(a);
|
|
1716
|
-
return i.length == 1 && i[0][2] ? r(i[0][0], i[0][1]) : function(s) {
|
|
1717
|
-
return s === a || t(s, a, i);
|
|
1718
|
-
};
|
|
1719
|
-
}
|
|
1720
|
-
return an = n, an;
|
|
1721
|
-
}
|
|
1722
|
-
var sn, Ts;
|
|
1723
|
-
function ta() {
|
|
1724
|
-
if (Ts) return sn;
|
|
1725
|
-
Ts = 1;
|
|
1726
|
-
var t = ne(), e = Se(), r = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, n = /^\w*$/;
|
|
1727
|
-
function a(i, s) {
|
|
1728
|
-
if (t(i))
|
|
1729
|
-
return !1;
|
|
1730
|
-
var o = typeof i;
|
|
1731
|
-
return o == "number" || o == "symbol" || o == "boolean" || i == null || e(i) ? !0 : n.test(i) || !r.test(i) || s != null && i in Object(s);
|
|
1732
|
-
}
|
|
1733
|
-
return sn = a, sn;
|
|
1734
|
-
}
|
|
1735
|
-
var un, As;
|
|
1736
|
-
function yc() {
|
|
1737
|
-
if (As) return un;
|
|
1738
|
-
As = 1;
|
|
1739
|
-
var t = Wn(), e = "Expected a function";
|
|
1740
|
-
function r(n, a) {
|
|
1741
|
-
if (typeof n != "function" || a != null && typeof a != "function")
|
|
1742
|
-
throw new TypeError(e);
|
|
1743
|
-
var i = function() {
|
|
1744
|
-
var s = arguments, o = a ? a.apply(this, s) : s[0], d = i.cache;
|
|
1745
|
-
if (d.has(o))
|
|
1746
|
-
return d.get(o);
|
|
1747
|
-
var f = n.apply(this, s);
|
|
1748
|
-
return i.cache = d.set(o, f) || d, f;
|
|
1749
|
-
};
|
|
1750
|
-
return i.cache = new (r.Cache || t)(), i;
|
|
1751
|
-
}
|
|
1752
|
-
return r.Cache = t, un = r, un;
|
|
1753
|
-
}
|
|
1754
|
-
var on, Ss;
|
|
1755
|
-
function gc() {
|
|
1756
|
-
if (Ss) return on;
|
|
1757
|
-
Ss = 1;
|
|
1758
|
-
var t = yc(), e = 500;
|
|
1759
|
-
function r(n) {
|
|
1760
|
-
var a = t(n, function(s) {
|
|
1761
|
-
return i.size === e && i.clear(), s;
|
|
1762
|
-
}), i = a.cache;
|
|
1763
|
-
return a;
|
|
1764
|
-
}
|
|
1765
|
-
return on = r, on;
|
|
1766
|
-
}
|
|
1767
|
-
var cn, Ms;
|
|
1768
|
-
function _c() {
|
|
1769
|
-
if (Ms) return cn;
|
|
1770
|
-
Ms = 1;
|
|
1771
|
-
var t = gc(), e = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, r = /\\(\\)?/g, n = t(function(a) {
|
|
1772
|
-
var i = [];
|
|
1773
|
-
return a.charCodeAt(0) === 46 && i.push(""), a.replace(e, function(s, o, d, f) {
|
|
1774
|
-
i.push(d ? f.replace(r, "$1") : o || s);
|
|
1775
|
-
}), i;
|
|
1776
|
-
});
|
|
1777
|
-
return cn = n, cn;
|
|
1778
|
-
}
|
|
1779
|
-
var ln, Es;
|
|
1780
|
-
function bc() {
|
|
1781
|
-
if (Es) return ln;
|
|
1782
|
-
Es = 1;
|
|
1783
|
-
var t = Te(), e = Yn(), r = ne(), n = Se(), a = t ? t.prototype : void 0, i = a ? a.toString : void 0;
|
|
1784
|
-
function s(o) {
|
|
1785
|
-
if (typeof o == "string")
|
|
1786
|
-
return o;
|
|
1787
|
-
if (r(o))
|
|
1788
|
-
return e(o, s) + "";
|
|
1789
|
-
if (n(o))
|
|
1790
|
-
return i ? i.call(o) : "";
|
|
1791
|
-
var d = o + "";
|
|
1792
|
-
return d == "0" && 1 / o == -1 / 0 ? "-0" : d;
|
|
1793
|
-
}
|
|
1794
|
-
return ln = s, ln;
|
|
1795
|
-
}
|
|
1796
|
-
var fn, xs;
|
|
1797
|
-
function Mu() {
|
|
1798
|
-
if (xs) return fn;
|
|
1799
|
-
xs = 1;
|
|
1800
|
-
var t = bc();
|
|
1801
|
-
function e(r) {
|
|
1802
|
-
return r == null ? "" : t(r);
|
|
1803
|
-
}
|
|
1804
|
-
return fn = e, fn;
|
|
1805
|
-
}
|
|
1806
|
-
var dn, Is;
|
|
1807
|
-
function Eu() {
|
|
1808
|
-
if (Is) return dn;
|
|
1809
|
-
Is = 1;
|
|
1810
|
-
var t = ne(), e = ta(), r = _c(), n = Mu();
|
|
1811
|
-
function a(i, s) {
|
|
1812
|
-
return t(i) ? i : e(i, s) ? [i] : r(n(i));
|
|
1813
|
-
}
|
|
1814
|
-
return dn = a, dn;
|
|
1815
|
-
}
|
|
1816
|
-
var hn, Ks;
|
|
1817
|
-
function je() {
|
|
1818
|
-
if (Ks) return hn;
|
|
1819
|
-
Ks = 1;
|
|
1820
|
-
var t = Se();
|
|
1821
|
-
function e(r) {
|
|
1822
|
-
if (typeof r == "string" || t(r))
|
|
1823
|
-
return r;
|
|
1824
|
-
var n = r + "";
|
|
1825
|
-
return n == "0" && 1 / r == -1 / 0 ? "-0" : n;
|
|
1826
|
-
}
|
|
1827
|
-
return hn = e, hn;
|
|
1828
|
-
}
|
|
1829
|
-
var vn, Os;
|
|
1830
|
-
function na() {
|
|
1831
|
-
if (Os) return vn;
|
|
1832
|
-
Os = 1;
|
|
1833
|
-
var t = Eu(), e = je();
|
|
1834
|
-
function r(n, a) {
|
|
1835
|
-
a = t(a, n);
|
|
1836
|
-
for (var i = 0, s = a.length; n != null && i < s; )
|
|
1837
|
-
n = n[e(a[i++])];
|
|
1838
|
-
return i && i == s ? n : void 0;
|
|
1839
|
-
}
|
|
1840
|
-
return vn = r, vn;
|
|
1841
|
-
}
|
|
1842
|
-
var pn, Ds;
|
|
1843
|
-
function mc() {
|
|
1844
|
-
if (Ds) return pn;
|
|
1845
|
-
Ds = 1;
|
|
1846
|
-
var t = na();
|
|
1847
|
-
function e(r, n, a) {
|
|
1848
|
-
var i = r == null ? void 0 : t(r, n);
|
|
1849
|
-
return i === void 0 ? a : i;
|
|
1850
|
-
}
|
|
1851
|
-
return pn = e, pn;
|
|
1852
|
-
}
|
|
1853
|
-
var yn, Ls;
|
|
1854
|
-
function Cc() {
|
|
1855
|
-
if (Ls) return yn;
|
|
1856
|
-
Ls = 1;
|
|
1857
|
-
function t(e, r) {
|
|
1858
|
-
return e != null && r in Object(e);
|
|
1859
|
-
}
|
|
1860
|
-
return yn = t, yn;
|
|
1861
|
-
}
|
|
1862
|
-
var gn, Ns;
|
|
1863
|
-
function wc() {
|
|
1864
|
-
if (Ns) return gn;
|
|
1865
|
-
Ns = 1;
|
|
1866
|
-
var t = Eu(), e = Jn(), r = ne(), n = Zn(), a = Xn(), i = je();
|
|
1867
|
-
function s(o, d, f) {
|
|
1868
|
-
d = t(d, o);
|
|
1869
|
-
for (var b = -1, _ = d.length, S = !1; ++b < _; ) {
|
|
1870
|
-
var x = i(d[b]);
|
|
1871
|
-
if (!(S = o != null && f(o, x)))
|
|
1872
|
-
break;
|
|
1873
|
-
o = o[x];
|
|
1874
|
-
}
|
|
1875
|
-
return S || ++b != _ ? S : (_ = o == null ? 0 : o.length, !!_ && a(_) && n(x, _) && (r(o) || e(o)));
|
|
1876
|
-
}
|
|
1877
|
-
return gn = s, gn;
|
|
1878
|
-
}
|
|
1879
|
-
var _n, Bs;
|
|
1880
|
-
function qc() {
|
|
1881
|
-
if (Bs) return _n;
|
|
1882
|
-
Bs = 1;
|
|
1883
|
-
var t = Cc(), e = wc();
|
|
1884
|
-
function r(n, a) {
|
|
1885
|
-
return n != null && e(n, a, t);
|
|
1886
|
-
}
|
|
1887
|
-
return _n = r, _n;
|
|
1888
|
-
}
|
|
1889
|
-
var bn, ks;
|
|
1890
|
-
function Fc() {
|
|
1891
|
-
if (ks) return bn;
|
|
1892
|
-
ks = 1;
|
|
1893
|
-
var t = Tu(), e = mc(), r = qc(), n = ta(), a = Au(), i = Su(), s = je(), o = 1, d = 2;
|
|
1894
|
-
function f(b, _) {
|
|
1895
|
-
return n(b) && a(_) ? i(s(b), _) : function(S) {
|
|
1896
|
-
var x = e(S, b);
|
|
1897
|
-
return x === void 0 && x === _ ? r(S, b) : t(_, x, o | d);
|
|
1898
|
-
};
|
|
1899
|
-
}
|
|
1900
|
-
return bn = f, bn;
|
|
1901
|
-
}
|
|
1902
|
-
var mn, js;
|
|
1903
|
-
function Rc() {
|
|
1904
|
-
if (js) return mn;
|
|
1905
|
-
js = 1;
|
|
1906
|
-
function t(e) {
|
|
1907
|
-
return function(r) {
|
|
1908
|
-
return r == null ? void 0 : r[e];
|
|
1909
|
-
};
|
|
1910
|
-
}
|
|
1911
|
-
return mn = t, mn;
|
|
1912
|
-
}
|
|
1913
|
-
var Cn, Hs;
|
|
1914
|
-
function Pc() {
|
|
1915
|
-
if (Hs) return Cn;
|
|
1916
|
-
Hs = 1;
|
|
1917
|
-
var t = na();
|
|
1918
|
-
function e(r) {
|
|
1919
|
-
return function(n) {
|
|
1920
|
-
return t(n, r);
|
|
1921
|
-
};
|
|
1922
|
-
}
|
|
1923
|
-
return Cn = e, Cn;
|
|
1924
|
-
}
|
|
1925
|
-
var wn, Us;
|
|
1926
|
-
function Tc() {
|
|
1927
|
-
if (Us) return wn;
|
|
1928
|
-
Us = 1;
|
|
1929
|
-
var t = Rc(), e = Pc(), r = ta(), n = je();
|
|
1930
|
-
function a(i) {
|
|
1931
|
-
return r(i) ? t(n(i)) : e(i);
|
|
1932
|
-
}
|
|
1933
|
-
return wn = a, wn;
|
|
1934
|
-
}
|
|
1935
|
-
var qn, Gs;
|
|
1936
|
-
function aa() {
|
|
1937
|
-
if (Gs) return qn;
|
|
1938
|
-
Gs = 1;
|
|
1939
|
-
var t = pc(), e = Fc(), r = Me(), n = ne(), a = Tc();
|
|
1940
|
-
function i(s) {
|
|
1941
|
-
return typeof s == "function" ? s : s == null ? r : typeof s == "object" ? n(s) ? e(s[0], s[1]) : t(s) : a(s);
|
|
1942
|
-
}
|
|
1943
|
-
return qn = i, qn;
|
|
1944
|
-
}
|
|
1945
|
-
var Fn, Vs;
|
|
1946
|
-
function Ac() {
|
|
1947
|
-
if (Vs) return Fn;
|
|
1948
|
-
Vs = 1;
|
|
1949
|
-
var t = wu(), e = Vo(), r = aa(), n = ne();
|
|
1950
|
-
function a(i, s) {
|
|
1951
|
-
var o = n(i) ? t : e;
|
|
1952
|
-
return o(i, r(s, 3));
|
|
1953
|
-
}
|
|
1954
|
-
return Fn = a, Fn;
|
|
1955
|
-
}
|
|
1956
|
-
var Rn, zs;
|
|
1957
|
-
function Sc() {
|
|
1958
|
-
if (zs) return Rn;
|
|
1959
|
-
zs = 1;
|
|
1960
|
-
function t(e, r, n) {
|
|
1961
|
-
var a;
|
|
1962
|
-
return n(e, function(i, s, o) {
|
|
1963
|
-
if (r(i, s, o))
|
|
1964
|
-
return a = s, !1;
|
|
1965
|
-
}), a;
|
|
1966
|
-
}
|
|
1967
|
-
return Rn = t, Rn;
|
|
1968
|
-
}
|
|
1969
|
-
var Pn, Ws;
|
|
1970
|
-
function Mc() {
|
|
1971
|
-
if (Ws) return Pn;
|
|
1972
|
-
Ws = 1;
|
|
1973
|
-
var t = Sc(), e = ea(), r = aa();
|
|
1974
|
-
function n(a, i) {
|
|
1975
|
-
return t(a, r(i, 3), e);
|
|
1976
|
-
}
|
|
1977
|
-
return Pn = n, Pn;
|
|
1978
|
-
}
|
|
1979
|
-
var Tn, Ys;
|
|
1980
|
-
function Ec() {
|
|
1981
|
-
if (Ys) return Tn;
|
|
1982
|
-
Ys = 1;
|
|
1983
|
-
function t(e) {
|
|
1984
|
-
return e && e.length ? e[0] : void 0;
|
|
1985
|
-
}
|
|
1986
|
-
return Tn = t, Tn;
|
|
1987
|
-
}
|
|
1988
|
-
var An, $s;
|
|
1989
|
-
function xc() {
|
|
1990
|
-
return $s || ($s = 1, An = Ec()), An;
|
|
1991
|
-
}
|
|
1992
|
-
var Sn, Js;
|
|
1993
|
-
function Ic() {
|
|
1994
|
-
if (Js) return Sn;
|
|
1995
|
-
Js = 1;
|
|
1996
|
-
function t(e, r) {
|
|
1997
|
-
for (var n = -1, a = e == null ? 0 : e.length; ++n < a && r(e[n], n, e) !== !1; )
|
|
1998
|
-
;
|
|
1999
|
-
return e;
|
|
2000
|
-
}
|
|
2001
|
-
return Sn = t, Sn;
|
|
2002
|
-
}
|
|
2003
|
-
var Mn, Xs;
|
|
2004
|
-
function xu() {
|
|
2005
|
-
if (Xs) return Mn;
|
|
2006
|
-
Xs = 1;
|
|
2007
|
-
var t = Me();
|
|
2008
|
-
function e(r) {
|
|
2009
|
-
return typeof r == "function" ? r : t;
|
|
2010
|
-
}
|
|
2011
|
-
return Mn = e, Mn;
|
|
2012
|
-
}
|
|
2013
|
-
var En, Zs;
|
|
2014
|
-
function Kc() {
|
|
2015
|
-
if (Zs) return En;
|
|
2016
|
-
Zs = 1;
|
|
2017
|
-
var t = Ic(), e = ra(), r = xu(), n = ne();
|
|
2018
|
-
function a(i, s) {
|
|
2019
|
-
var o = n(i) ? t : e;
|
|
2020
|
-
return o(i, r(s));
|
|
2021
|
-
}
|
|
2022
|
-
return En = a, En;
|
|
2023
|
-
}
|
|
2024
|
-
var xn, Qs;
|
|
2025
|
-
function Oc() {
|
|
2026
|
-
if (Qs) return xn;
|
|
2027
|
-
Qs = 1;
|
|
2028
|
-
var t = ea(), e = xu();
|
|
2029
|
-
function r(n, a) {
|
|
2030
|
-
return n && t(n, e(a));
|
|
2031
|
-
}
|
|
2032
|
-
return xn = r, xn;
|
|
2033
|
-
}
|
|
2034
|
-
var In, eu;
|
|
2035
|
-
function Dc() {
|
|
2036
|
-
if (eu) return In;
|
|
2037
|
-
eu = 1;
|
|
2038
|
-
function t() {
|
|
2039
|
-
}
|
|
2040
|
-
return In = t, In;
|
|
2041
|
-
}
|
|
2042
|
-
var Kn, ru;
|
|
2043
|
-
function Lc() {
|
|
2044
|
-
if (ru) return Kn;
|
|
2045
|
-
ru = 1;
|
|
2046
|
-
var t = ra(), e = Ee();
|
|
2047
|
-
function r(n, a) {
|
|
2048
|
-
var i = -1, s = e(n) ? Array(n.length) : [];
|
|
2049
|
-
return t(n, function(o, d, f) {
|
|
2050
|
-
s[++i] = a(o, d, f);
|
|
2051
|
-
}), s;
|
|
2052
|
-
}
|
|
2053
|
-
return Kn = r, Kn;
|
|
2054
|
-
}
|
|
2055
|
-
var On, tu;
|
|
2056
|
-
function Nc() {
|
|
2057
|
-
if (tu) return On;
|
|
2058
|
-
tu = 1;
|
|
2059
|
-
function t(e, r) {
|
|
2060
|
-
var n = e.length;
|
|
2061
|
-
for (e.sort(r); n--; )
|
|
2062
|
-
e[n] = e[n].value;
|
|
2063
|
-
return e;
|
|
2064
|
-
}
|
|
2065
|
-
return On = t, On;
|
|
2066
|
-
}
|
|
2067
|
-
var Dn, nu;
|
|
2068
|
-
function Bc() {
|
|
2069
|
-
if (nu) return Dn;
|
|
2070
|
-
nu = 1;
|
|
2071
|
-
var t = Se();
|
|
2072
|
-
function e(r, n) {
|
|
2073
|
-
if (r !== n) {
|
|
2074
|
-
var a = r !== void 0, i = r === null, s = r === r, o = t(r), d = n !== void 0, f = n === null, b = n === n, _ = t(n);
|
|
2075
|
-
if (!f && !_ && !o && r > n || o && d && b && !f && !_ || i && d && b || !a && b || !s)
|
|
2076
|
-
return 1;
|
|
2077
|
-
if (!i && !o && !_ && r < n || _ && a && s && !i && !o || f && a && s || !d && s || !b)
|
|
2078
|
-
return -1;
|
|
2079
|
-
}
|
|
2080
|
-
return 0;
|
|
2081
|
-
}
|
|
2082
|
-
return Dn = e, Dn;
|
|
2083
|
-
}
|
|
2084
|
-
var Ln, au;
|
|
2085
|
-
function kc() {
|
|
2086
|
-
if (au) return Ln;
|
|
2087
|
-
au = 1;
|
|
2088
|
-
var t = Bc();
|
|
2089
|
-
function e(r, n, a) {
|
|
2090
|
-
for (var i = -1, s = r.criteria, o = n.criteria, d = s.length, f = a.length; ++i < d; ) {
|
|
2091
|
-
var b = t(s[i], o[i]);
|
|
2092
|
-
if (b) {
|
|
2093
|
-
if (i >= f)
|
|
2094
|
-
return b;
|
|
2095
|
-
var _ = a[i];
|
|
2096
|
-
return b * (_ == "desc" ? -1 : 1);
|
|
2097
|
-
}
|
|
2098
|
-
}
|
|
2099
|
-
return r.index - n.index;
|
|
2100
|
-
}
|
|
2101
|
-
return Ln = e, Ln;
|
|
2102
|
-
}
|
|
2103
|
-
var Nn, iu;
|
|
2104
|
-
function jc() {
|
|
2105
|
-
if (iu) return Nn;
|
|
2106
|
-
iu = 1;
|
|
2107
|
-
var t = Yn(), e = na(), r = aa(), n = Lc(), a = Nc(), i = $n(), s = kc(), o = Me(), d = ne();
|
|
2108
|
-
function f(b, _, S) {
|
|
2109
|
-
_.length ? _ = t(_, function(M) {
|
|
2110
|
-
return d(M) ? function(m) {
|
|
2111
|
-
return e(m, M.length === 1 ? M[0] : M);
|
|
2112
|
-
} : M;
|
|
2113
|
-
}) : _ = [o];
|
|
2114
|
-
var x = -1;
|
|
2115
|
-
_ = t(_, i(r));
|
|
2116
|
-
var D = n(b, function(M, m, h) {
|
|
2117
|
-
var p = t(_, function(C) {
|
|
2118
|
-
return C(M);
|
|
2119
|
-
});
|
|
2120
|
-
return { criteria: p, index: ++x, value: M };
|
|
2121
|
-
});
|
|
2122
|
-
return a(D, function(M, m) {
|
|
2123
|
-
return s(M, m, S);
|
|
2124
|
-
});
|
|
2125
|
-
}
|
|
2126
|
-
return Nn = f, Nn;
|
|
2127
|
-
}
|
|
2128
|
-
var Bn, su;
|
|
2129
|
-
function Hc() {
|
|
2130
|
-
if (su) return Bn;
|
|
2131
|
-
su = 1;
|
|
2132
|
-
var t = Vn(), e = Ee(), r = Zn(), n = ve();
|
|
2133
|
-
function a(i, s, o) {
|
|
2134
|
-
if (!n(o))
|
|
2135
|
-
return !1;
|
|
2136
|
-
var d = typeof s;
|
|
2137
|
-
return (d == "number" ? e(o) && r(s, o.length) : d == "string" && s in o) ? t(o[s], i) : !1;
|
|
2138
|
-
}
|
|
2139
|
-
return Bn = a, Bn;
|
|
2140
|
-
}
|
|
2141
|
-
var kn, uu;
|
|
2142
|
-
function Uc() {
|
|
2143
|
-
if (uu) return kn;
|
|
2144
|
-
uu = 1;
|
|
2145
|
-
var t = mu(), e = jc(), r = Cu(), n = Hc(), a = r(function(i, s) {
|
|
2146
|
-
if (i == null)
|
|
2147
|
-
return [];
|
|
2148
|
-
var o = s.length;
|
|
2149
|
-
return o > 1 && n(i, s[0], s[1]) ? s = [] : o > 2 && n(s[0], s[1], s[2]) && (s = [s[0]]), e(i, t(s, 1), []);
|
|
2150
|
-
});
|
|
2151
|
-
return kn = a, kn;
|
|
2152
|
-
}
|
|
2153
|
-
var jn, ou;
|
|
2154
|
-
function Gc() {
|
|
2155
|
-
if (ou) return jn;
|
|
2156
|
-
ou = 1;
|
|
2157
|
-
var t = vu(), e = ve(), r = "Expected a function";
|
|
2158
|
-
function n(a, i, s) {
|
|
2159
|
-
var o = !0, d = !0;
|
|
2160
|
-
if (typeof a != "function")
|
|
2161
|
-
throw new TypeError(r);
|
|
2162
|
-
return e(s) && (o = "leading" in s ? !!s.leading : o, d = "trailing" in s ? !!s.trailing : d), t(a, i, {
|
|
2163
|
-
leading: o,
|
|
2164
|
-
maxWait: i,
|
|
2165
|
-
trailing: d
|
|
2166
|
-
});
|
|
2167
|
-
}
|
|
2168
|
-
return jn = n, jn;
|
|
2169
|
-
}
|
|
2170
|
-
var Hn, cu;
|
|
2171
|
-
function Vc() {
|
|
2172
|
-
if (cu) return Hn;
|
|
2173
|
-
cu = 1;
|
|
2174
|
-
var t = Mu(), e = 0;
|
|
2175
|
-
function r(n) {
|
|
2176
|
-
var a = ++e;
|
|
2177
|
-
return t(n) + a;
|
|
2178
|
-
}
|
|
2179
|
-
return Hn = r, Hn;
|
|
2180
|
-
}
|
|
2181
|
-
var zc = De.exports, lu;
|
|
2182
|
-
function Wc() {
|
|
2183
|
-
return lu || (lu = 1, function(t, e) {
|
|
2184
|
-
(function(r, n) {
|
|
2185
|
-
t.exports = n(vu(), xo(), Ac(), Mc(), xc(), Kc(), Oc(), Dc(), Uc(), Gc(), Vc(), Un);
|
|
2186
|
-
})(zc, function(r, n, a, i, s, o, d, f, b, _, S, x) {
|
|
2187
|
-
return function() {
|
|
2188
|
-
var D = { 654: function(m, h, p) {
|
|
2189
|
-
var C, g = this && this.__assign || function() {
|
|
2190
|
-
return g = Object.assign || function(y) {
|
|
2191
|
-
for (var u, c = 1, l = arguments.length; c < l; c++) for (var v in u = arguments[c]) Object.prototype.hasOwnProperty.call(u, v) && (y[v] = u[v]);
|
|
2192
|
-
return y;
|
|
2193
|
-
}, g.apply(this, arguments);
|
|
2194
|
-
}, I = this && this.__createBinding || (Object.create ? function(y, u, c, l) {
|
|
2195
|
-
l === void 0 && (l = c);
|
|
2196
|
-
var v = Object.getOwnPropertyDescriptor(u, c);
|
|
2197
|
-
v && !("get" in v ? !u.__esModule : v.writable || v.configurable) || (v = { enumerable: !0, get: function() {
|
|
2198
|
-
return u[c];
|
|
2199
|
-
} }), Object.defineProperty(y, l, v);
|
|
2200
|
-
} : function(y, u, c, l) {
|
|
2201
|
-
l === void 0 && (l = c), y[l] = u[c];
|
|
2202
|
-
}), A = this && this.__setModuleDefault || (Object.create ? function(y, u) {
|
|
2203
|
-
Object.defineProperty(y, "default", { enumerable: !0, value: u });
|
|
2204
|
-
} : function(y, u) {
|
|
2205
|
-
y.default = u;
|
|
2206
|
-
}), q = this && this.__importStar || function(y) {
|
|
2207
|
-
if (y && y.__esModule) return y;
|
|
2208
|
-
var u = {};
|
|
2209
|
-
if (y != null) for (var c in y) c !== "default" && Object.prototype.hasOwnProperty.call(y, c) && I(u, y, c);
|
|
2210
|
-
return A(u, y), u;
|
|
2211
|
-
}, N = this && this.__spreadArray || function(y, u, c) {
|
|
2212
|
-
if (c || arguments.length === 2) for (var l, v = 0, w = u.length; v < w; v++) !l && v in u || (l || (l = Array.prototype.slice.call(u, 0, v)), l[v] = u[v]);
|
|
2213
|
-
return y.concat(l || Array.prototype.slice.call(u));
|
|
2214
|
-
}, F = this && this.__importDefault || function(y) {
|
|
2215
|
-
return y && y.__esModule ? y : { default: y };
|
|
2216
|
-
};
|
|
2217
|
-
Object.defineProperty(h, "__esModule", { value: !0 }), h.updateRtl = h.doesFocusableExist = h.getCurrentFocusKey = h.updateAllLayouts = h.resume = h.pause = h.navigateByDirection = h.setFocus = h.setKeyMap = h.destroy = h.setThrottle = h.init = h.SpatialNavigation = h.ROOT_FOCUS_KEY = void 0;
|
|
2218
|
-
var E = F(p(150)), K = F(p(117)), U = F(p(747)), P = F(p(23)), V = F(p(842)), J = F(p(682)), ae = F(p(784)), ge = F(p(432)), He = F(p(67)), xe = F(p(35)), ee = F(p(119)), _e = q(p(964)), ce = "left", le = "right", fe = "up", ie = "down", be = "enter", me = ((C = {}).left = [37, "ArrowLeft"], C.up = [38, "ArrowUp"], C.right = [39, "ArrowRight"], C.down = [40, "ArrowDown"], C.enter = [13, "Enter"], C);
|
|
2219
|
-
h.ROOT_FOCUS_KEY = "SN:ROOT";
|
|
2220
|
-
var Ce = ["#0FF", "#FF0", "#F0F"], Ie = { leading: !0, trailing: !1 }, Ke = function() {
|
|
2221
|
-
function y() {
|
|
2222
|
-
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 = ee.default.LTR, this.pressedKeys = {}, this.paused = !1, this.keyDownEventListener = null, this.keyUpEventListener = null, this.keyMap = me, 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, E.default)(this.setFocus, 300, { leading: !1, trailing: !0 }), this.debug = !1, this.visualDebugger = null, this.logIndex = 0, this.distanceCalculationMethod = "corners";
|
|
2223
|
-
}
|
|
2224
|
-
return y.getCutoffCoordinate = function(u, c, l, v, w) {
|
|
2225
|
-
var R = u ? v.top : w === ee.default.LTR ? v.left : v.right, T = u ? v.bottom : w === ee.default.LTR ? v.right : v.left;
|
|
2226
|
-
return c ? l ? R : T : l ? T : R;
|
|
2227
|
-
}, y.getRefCorners = function(u, c, l) {
|
|
2228
|
-
var v = { a: { x: 0, y: 0 }, b: { x: 0, y: 0 } };
|
|
2229
|
-
switch (u) {
|
|
2230
|
-
case fe:
|
|
2231
|
-
var w = c ? l.bottom : l.top;
|
|
2232
|
-
v.a = { x: l.left, y: w }, v.b = { x: l.right, y: w };
|
|
2233
|
-
break;
|
|
2234
|
-
case ie:
|
|
2235
|
-
w = c ? l.top : l.bottom, v.a = { x: l.left, y: w }, v.b = { x: l.right, y: w };
|
|
2236
|
-
break;
|
|
2237
|
-
case ce:
|
|
2238
|
-
var R = c ? l.right : l.left;
|
|
2239
|
-
v.a = { x: R, y: l.top }, v.b = { x: R, y: l.bottom };
|
|
2240
|
-
break;
|
|
2241
|
-
case le:
|
|
2242
|
-
R = c ? l.left : l.right, v.a = { x: R, y: l.top }, v.b = { x: R, y: l.bottom };
|
|
2243
|
-
}
|
|
2244
|
-
return v;
|
|
2245
|
-
}, y.isAdjacentSlice = function(u, c, l) {
|
|
2246
|
-
var v = u.a, w = u.b, R = c.a, T = c.b, O = l ? "x" : "y", G = v[O], j = w[O], k = R[O], B = T[O], L = 0.2 * (j - G);
|
|
2247
|
-
return Math.max(0, Math.min(j, B) - Math.max(G, k)) >= L;
|
|
2248
|
-
}, y.getPrimaryAxisDistance = function(u, c, l) {
|
|
2249
|
-
var v = u.a, w = c.a, R = l ? "y" : "x";
|
|
2250
|
-
return Math.abs(w[R] - v[R]);
|
|
2251
|
-
}, y.getSecondaryAxisDistance = function(u, c, l, v, w) {
|
|
2252
|
-
if (w) return w(u, c, l, v);
|
|
2253
|
-
var R = u.a, T = u.b, O = c.a, G = c.b, j = l ? "x" : "y", k = R[j], B = T[j], L = O[j], $ = G[j];
|
|
2254
|
-
if (v === "center") {
|
|
2255
|
-
var W = (k + B) / 2, X = (L + $) / 2;
|
|
2256
|
-
return Math.abs(W - X);
|
|
2257
|
-
}
|
|
2258
|
-
if (v === "edges") {
|
|
2259
|
-
var oe = Math.min(k, B), z = Math.min(L, $), re = Math.max(k, B), de = Math.max(L, $), se = Math.abs(oe - z), te = Math.abs(re - de);
|
|
2260
|
-
return Math.min(se, te);
|
|
2261
|
-
}
|
|
2262
|
-
var we = [Math.abs(L - k), Math.abs(L - B), Math.abs($ - k), Math.abs($ - B)];
|
|
2263
|
-
return Math.min.apply(Math, we);
|
|
2264
|
-
}, y.prototype.sortSiblingsByPriority = function(u, c, l, v) {
|
|
2265
|
-
var w = this, R = l === ie || l === fe, T = y.getRefCorners(l, !1, c);
|
|
2266
|
-
return (0, ge.default)(u, function(O) {
|
|
2267
|
-
var G = y.getRefCorners(l, !0, O.layout), j = y.isAdjacentSlice(T, G, R), k = j ? y.getPrimaryAxisDistance : y.getSecondaryAxisDistance, B = j ? y.getSecondaryAxisDistance : y.getPrimaryAxisDistance, L = k(T, G, R, w.distanceCalculationMethod, w.customDistanceCalculationFunction), $ = B(T, G, R, w.distanceCalculationMethod, w.customDistanceCalculationFunction), W = 5 * L + $, X = (W + 1) / (j ? 5 : 1);
|
|
2268
|
-
return w.log("smartNavigate", "distance (primary, secondary, total weighted) for ".concat(O.focusKey, " relative to ").concat(v, " is"), L, $, W), w.log("smartNavigate", "priority for ".concat(O.focusKey, " relative to ").concat(v, " is"), X), w.visualDebugger && (w.visualDebugger.drawPoint(G.a.x, G.a.y, "yellow", 6), w.visualDebugger.drawPoint(G.b.x, G.b.y, "yellow", 6)), X;
|
|
2269
|
-
});
|
|
2270
|
-
}, y.prototype.init = function(u) {
|
|
2271
|
-
var c = this, l = u === void 0 ? {} : u, v = l.debug, w = v !== void 0 && v, R = l.visualDebug, T = R !== void 0 && R, O = l.nativeMode, G = O !== void 0 && O, j = l.throttle, k = j === void 0 ? 0 : j, B = l.throttleKeypresses, L = B !== void 0 && B, $ = l.useGetBoundingClientRect, W = $ !== void 0 && $, X = l.shouldFocusDOMNode, oe = X !== void 0 && X, z = l.domNodeFocusOptions, re = z === void 0 ? {} : z, de = l.shouldUseNativeEvents, se = de !== void 0 && de, te = l.rtl, we = te !== void 0 && te, Y = l.distanceCalculationMethod, Z = Y === void 0 ? "corners" : Y, sa = l.customDistanceCalculationFunction, Ku = sa === void 0 ? void 0 : sa;
|
|
2272
|
-
if (!this.enabled && (this.domNodeFocusOptions = re, this.enabled = !0, this.nativeMode = G, this.throttleKeypresses = L, this.useGetBoundingClientRect = W, this.shouldFocusDOMNode = oe && !G, this.shouldUseNativeEvents = se, this.writingDirection = we ? ee.default.RTL : ee.default.LTR, this.distanceCalculationMethod = Z, this.customDistanceCalculationFunction = Ku, this.debug = w, !this.nativeMode && (Number.isInteger(k) && k > 0 && (this.throttle = k), this.bindEventHandlers(), T))) {
|
|
2273
|
-
this.visualDebugger = new xe.default(this.writingDirection);
|
|
2274
|
-
var ua = function() {
|
|
2275
|
-
requestAnimationFrame(function() {
|
|
2276
|
-
c.visualDebugger.clearLayouts(), (0, ae.default)(c.focusableComponents, function(oa, Ou) {
|
|
2277
|
-
c.visualDebugger.drawLayout(oa.layout, Ou, oa.parentFocusKey);
|
|
2278
|
-
}), ua();
|
|
2279
|
-
});
|
|
2280
|
-
};
|
|
2281
|
-
ua();
|
|
2282
|
-
}
|
|
2283
|
-
}, y.prototype.setThrottle = function(u) {
|
|
2284
|
-
var c = u === void 0 ? {} : u, l = c.throttle, v = l === void 0 ? 0 : l, w = c.throttleKeypresses, R = w !== void 0 && w;
|
|
2285
|
-
this.throttleKeypresses = R, this.nativeMode || (this.unbindEventHandlers(), Number.isInteger(v) && (this.throttle = v), this.bindEventHandlers());
|
|
2286
|
-
}, y.prototype.destroy = function() {
|
|
2287
|
-
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 = me, this.unbindEventHandlers());
|
|
2288
|
-
}, y.prototype.getEventType = function(u) {
|
|
2289
|
-
return (0, P.default)(this.getKeyMap(), function(c) {
|
|
2290
|
-
return c.includes(u);
|
|
2291
|
-
});
|
|
2292
|
-
}, y.getKeyCode = function(u) {
|
|
2293
|
-
return u.keyCode || u.code || u.key;
|
|
2294
|
-
}, y.prototype.bindEventHandlers = function() {
|
|
2295
|
-
var u = this;
|
|
2296
|
-
typeof window < "u" && window.addEventListener && (this.keyDownEventListener = function(c) {
|
|
2297
|
-
if (u.paused !== !0) {
|
|
2298
|
-
u.debug && (u.logIndex += 1);
|
|
2299
|
-
var l = y.getKeyCode(c), v = u.getEventType(l);
|
|
2300
|
-
if (v) {
|
|
2301
|
-
u.pressedKeys[v] = u.pressedKeys[v] ? u.pressedKeys[v] + 1 : 1, u.shouldUseNativeEvents || (c.preventDefault(), c.stopPropagation());
|
|
2302
|
-
var w = { pressedKeys: u.pressedKeys };
|
|
2303
|
-
if (v === be && u.focusKey) u.onEnterPress(w);
|
|
2304
|
-
else {
|
|
2305
|
-
var R = u.onArrowPress(v, w) === !1;
|
|
2306
|
-
if (u.visualDebugger && u.visualDebugger.clear(), R) u.log("keyDownEventListener", "default navigation prevented");
|
|
2307
|
-
else {
|
|
2308
|
-
var T = (0, P.default)(u.getKeyMap(), function(O) {
|
|
2309
|
-
return O.includes(l);
|
|
2310
|
-
});
|
|
2311
|
-
u.smartNavigate(T, null, { event: c });
|
|
2312
|
-
}
|
|
2313
|
-
}
|
|
2314
|
-
}
|
|
2315
|
-
}
|
|
2316
|
-
}, this.throttle && (this.keyDownEventListenerThrottled = (0, He.default)(this.keyDownEventListener.bind(this), this.throttle, Ie)), this.keyUpEventListener = function(c) {
|
|
2317
|
-
var l = y.getKeyCode(c), v = u.getEventType(l);
|
|
2318
|
-
delete u.pressedKeys[v], u.throttle && !u.throttleKeypresses && u.keyDownEventListenerThrottled.cancel(), v === be && u.focusKey && u.onEnterRelease(), !u.focusKey || v !== ce && v !== le && v !== fe && v !== ie || u.onArrowRelease(v);
|
|
2319
|
-
}, window.addEventListener("keyup", this.keyUpEventListener), window.addEventListener("keydown", this.throttle ? this.keyDownEventListenerThrottled : this.keyDownEventListener));
|
|
2320
|
-
}, y.prototype.unbindEventHandlers = function() {
|
|
2321
|
-
if (typeof window < "u" && window.removeEventListener) {
|
|
2322
|
-
window.removeEventListener("keyup", this.keyUpEventListener), this.keyUpEventListener = null;
|
|
2323
|
-
var u = this.throttle ? this.keyDownEventListenerThrottled : this.keyDownEventListener;
|
|
2324
|
-
window.removeEventListener("keydown", u), this.keyDownEventListener = null;
|
|
2325
|
-
}
|
|
2326
|
-
}, y.prototype.onEnterPress = function(u) {
|
|
2327
|
-
var c = this.focusableComponents[this.focusKey];
|
|
2328
|
-
c ? c.focusable ? c.onEnterPress && c.onEnterPress(u) : this.log("onEnterPress", "componentNotFocusable") : this.log("onEnterPress", "noComponent");
|
|
2329
|
-
}, y.prototype.onEnterRelease = function() {
|
|
2330
|
-
var u = this.focusableComponents[this.focusKey];
|
|
2331
|
-
u ? u.focusable ? u.onEnterRelease && u.onEnterRelease() : this.log("onEnterRelease", "componentNotFocusable") : this.log("onEnterRelease", "noComponent");
|
|
2332
|
-
}, y.prototype.onArrowPress = function(u, c) {
|
|
2333
|
-
var l = this.focusableComponents[this.focusKey];
|
|
2334
|
-
if (l) return l && l.onArrowPress && l.onArrowPress(u, c);
|
|
2335
|
-
this.log("onArrowPress", "noComponent");
|
|
2336
|
-
}, y.prototype.onArrowRelease = function(u) {
|
|
2337
|
-
var c = this.focusableComponents[this.focusKey];
|
|
2338
|
-
c ? c.focusable ? c.onArrowRelease && c.onArrowRelease(u) : this.log("onArrowRelease", "componentNotFocusable") : this.log("onArrowRelease", "noComponent");
|
|
2339
|
-
}, y.prototype.navigateByDirection = function(u, c) {
|
|
2340
|
-
if (this.paused !== !0 && this.enabled && !this.nativeMode) {
|
|
2341
|
-
var l = [ie, fe, ce, le];
|
|
2342
|
-
l.includes(u) ? (this.log("navigateByDirection", "direction", u), this.smartNavigate(u, null, c)) : this.log("navigateByDirection", "Invalid direction. You passed: `".concat(u, "`, but you can use only these: "), l);
|
|
2343
|
-
}
|
|
2344
|
-
}, y.prototype.smartNavigate = function(u, c, l) {
|
|
2345
|
-
var v = this;
|
|
2346
|
-
if (!this.nativeMode) {
|
|
2347
|
-
var w = u === ie || u === fe, R = u === ie || (this.writingDirection === ee.default.LTR ? u === le : u === ce);
|
|
2348
|
-
this.log("smartNavigate", "direction", u), this.log("smartNavigate", "fromParentFocusKey", c), this.log("smartNavigate", "this.focusKey", this.focusKey), c || (0, ae.default)(this.focusableComponents, function(z) {
|
|
2349
|
-
z.layoutUpdated = !1;
|
|
2350
|
-
});
|
|
2351
|
-
var T = this.focusableComponents[c || this.focusKey];
|
|
2352
|
-
if (c || T) {
|
|
2353
|
-
if (this.log("smartNavigate", "currentComponent", T ? T.focusKey : void 0, T ? T.node : void 0, T), T) {
|
|
2354
|
-
this.updateLayout(T.focusKey);
|
|
2355
|
-
var O = T.parentFocusKey, G = T.focusKey, j = T.layout, k = y.getCutoffCoordinate(w, R, !1, j, this.writingDirection), B = (0, U.default)(this.focusableComponents, function(z) {
|
|
2356
|
-
if (z.parentFocusKey === O && z.focusable) {
|
|
2357
|
-
v.updateLayout(z.focusKey);
|
|
2358
|
-
var re = y.getCutoffCoordinate(w, R, !0, z.layout, v.writingDirection);
|
|
2359
|
-
return w || v.writingDirection === ee.default.LTR ? R ? re >= k : re <= k : R ? re <= k : re >= k;
|
|
2360
|
-
}
|
|
2361
|
-
return !1;
|
|
2362
|
-
});
|
|
2363
|
-
if (this.debug && (this.log("smartNavigate", "currentCutoffCoordinate", k), this.log("smartNavigate", "siblings", "".concat(B.length, " elements:"), B.map(function(z) {
|
|
2364
|
-
return z.focusKey;
|
|
2365
|
-
}).join(", "), B.map(function(z) {
|
|
2366
|
-
return z.node;
|
|
2367
|
-
}), B.map(function(z) {
|
|
2368
|
-
return z;
|
|
2369
|
-
}))), this.visualDebugger) {
|
|
2370
|
-
var L = y.getRefCorners(u, !1, j);
|
|
2371
|
-
this.visualDebugger.drawPoint(L.a.x, L.a.y), this.visualDebugger.drawPoint(L.b.x, L.b.y);
|
|
2372
|
-
}
|
|
2373
|
-
var $ = this.sortSiblingsByPriority(B, j, u, G), W = (0, V.default)($);
|
|
2374
|
-
if (this.log("smartNavigate", "nextComponent", W ? W.focusKey : void 0, W ? W.node : void 0, W), W) this.setFocus(W.focusKey, l);
|
|
2375
|
-
else {
|
|
2376
|
-
var X = this.focusableComponents[O], oe = X != null && X.isFocusBoundary ? X.focusBoundaryDirections || [u] : [];
|
|
2377
|
-
X && oe.includes(u) || this.smartNavigate(u, O, l);
|
|
2378
|
-
}
|
|
2379
|
-
}
|
|
2380
|
-
} else this.setFocus(this.getForcedFocusKey());
|
|
2381
|
-
}
|
|
2382
|
-
}, y.prototype.saveLastFocusedChildKey = function(u, c) {
|
|
2383
|
-
u && (this.log("saveLastFocusedChildKey", "".concat(u.focusKey, " lastFocusedChildKey set"), c), u.lastFocusedChildKey = c);
|
|
2384
|
-
}, y.prototype.log = function(u, c) {
|
|
2385
|
-
for (var l = [], v = 2; v < arguments.length; v++) l[v - 2] = arguments[v];
|
|
2386
|
-
this.debug && console.log.apply(console, N(["%c".concat(u, "%c").concat(c), "background: ".concat(Ce[this.logIndex % Ce.length], "; color: black; padding: 1px 5px;"), "background: #333; color: #BADA55; padding: 1px 5px;"], l, !1));
|
|
2387
|
-
}, y.prototype.getCurrentFocusKey = function() {
|
|
2388
|
-
return this.focusKey;
|
|
2389
|
-
}, y.prototype.getForcedFocusKey = function() {
|
|
2390
|
-
var u, c = (0, U.default)(this.focusableComponents, function(v) {
|
|
2391
|
-
return v.focusable && v.forceFocus;
|
|
2392
|
-
}), l = this.sortSiblingsByPriority(c, { x: 0, y: 0, width: 0, height: 0, left: 0, top: 0, right: 0, bottom: 0, node: null }, "down", h.ROOT_FOCUS_KEY);
|
|
2393
|
-
return (u = (0, V.default)(l)) === null || u === void 0 ? void 0 : u.focusKey;
|
|
2394
|
-
}, y.prototype.getNextFocusKey = function(u) {
|
|
2395
|
-
var c = this, l = this.focusableComponents[u];
|
|
2396
|
-
if (!l || this.nativeMode) return u;
|
|
2397
|
-
var v = (0, U.default)(this.focusableComponents, function(O) {
|
|
2398
|
-
return O.parentFocusKey === u && O.focusable;
|
|
2399
|
-
});
|
|
2400
|
-
if (v.length > 0) {
|
|
2401
|
-
var w = l.lastFocusedChildKey, R = l.preferredChildFocusKey;
|
|
2402
|
-
if (this.log("getNextFocusKey", "lastFocusedChildKey is", w), this.log("getNextFocusKey", "preferredChildFocusKey is", R), w && l.saveLastFocusedChild && this.isParticipatingFocusableComponent(w)) return this.log("getNextFocusKey", "lastFocusedChildKey will be focused", w), this.getNextFocusKey(w);
|
|
2403
|
-
if (R && this.isParticipatingFocusableComponent(R)) return this.log("getNextFocusKey", "preferredChildFocusKey will be focused", R), this.getNextFocusKey(R);
|
|
2404
|
-
v.forEach(function(O) {
|
|
2405
|
-
return c.updateLayout(O.focusKey);
|
|
2406
|
-
});
|
|
2407
|
-
var T = function(O, G) {
|
|
2408
|
-
var j = G === ee.default.LTR ? function(B) {
|
|
2409
|
-
var L = B.layout;
|
|
2410
|
-
return Math.abs(L.left) + Math.abs(L.top);
|
|
2411
|
-
} : function(B) {
|
|
2412
|
-
var L = B.layout;
|
|
2413
|
-
return Math.abs(window.innerWidth - L.right) + Math.abs(L.top);
|
|
2414
|
-
}, k = (0, ge.default)(O, j);
|
|
2415
|
-
return (0, V.default)(k);
|
|
2416
|
-
}(v, this.writingDirection).focusKey;
|
|
2417
|
-
return this.log("getNextFocusKey", "childKey will be focused", T), this.getNextFocusKey(T);
|
|
2418
|
-
}
|
|
2419
|
-
return this.log("getNextFocusKey", "targetFocusKey", u), u;
|
|
2420
|
-
}, y.prototype.addFocusable = function(u) {
|
|
2421
|
-
var c = u.focusKey, l = u.node, v = u.parentFocusKey, w = u.onEnterPress, R = u.onEnterRelease, T = u.onArrowPress, O = u.onArrowRelease, G = u.onFocus, j = u.onBlur, k = u.saveLastFocusedChild, B = u.trackChildren, L = u.onUpdateFocus, $ = u.onUpdateHasFocusedChild, W = u.preferredChildFocusKey, X = u.autoRestoreFocus, oe = u.forceFocus, z = u.focusable, re = u.isFocusBoundary, de = u.focusBoundaryDirections;
|
|
2422
|
-
if (this.focusableComponents[c] = { focusKey: c, node: l, parentFocusKey: v, onEnterPress: w, onEnterRelease: R, onArrowPress: T, onArrowRelease: O, onFocus: G, onBlur: j, onUpdateFocus: L, onUpdateHasFocusedChild: $, saveLastFocusedChild: k, trackChildren: B, preferredChildFocusKey: W, focusable: z, isFocusBoundary: re, focusBoundaryDirections: de, autoRestoreFocus: X, forceFocus: oe, lastFocusedChildKey: null, layout: { x: 0, y: 0, width: 0, height: 0, left: 0, top: 0, right: 0, bottom: 0, node: l }, layoutUpdated: !1 }, l || 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) {
|
|
2423
|
-
this.updateLayout(c), this.log("addFocusable", "Component added: ", this.focusableComponents[c]), c === this.focusKey && this.setFocus(W || c);
|
|
2424
|
-
for (var se = this.focusableComponents[this.focusKey]; se; ) {
|
|
2425
|
-
if (se.parentFocusKey === c) {
|
|
2426
|
-
this.updateParentsHasFocusedChild(this.focusKey, {}), this.updateParentsLastFocusedChild(this.focusKey);
|
|
2427
|
-
break;
|
|
2428
|
-
}
|
|
2429
|
-
se = this.focusableComponents[se.parentFocusKey];
|
|
2430
|
-
}
|
|
2431
|
-
}
|
|
2432
|
-
}, y.prototype.removeFocusable = function(u) {
|
|
2433
|
-
var c = u.focusKey, l = this.focusableComponents[c];
|
|
2434
|
-
if (l) {
|
|
2435
|
-
var v = l.parentFocusKey;
|
|
2436
|
-
(0, l.onUpdateFocus)(!1), this.log("removeFocusable", "Component removed: ", l), delete this.focusableComponents[c];
|
|
2437
|
-
var w = this.parentsHavingFocusedChild.includes(c);
|
|
2438
|
-
this.parentsHavingFocusedChild = this.parentsHavingFocusedChild.filter(function(O) {
|
|
2439
|
-
return O !== c;
|
|
2440
|
-
});
|
|
2441
|
-
var R = this.focusableComponents[v], T = c === this.focusKey;
|
|
2442
|
-
if (R && R.lastFocusedChildKey === c && (R.lastFocusedChildKey = null), this.nativeMode) return;
|
|
2443
|
-
(T || w) && R && R.autoRestoreFocus && (this.log("removeFocusable", "Component removed: ", T ? "Leaf component" : "Container component", "Auto restoring focus to: ", v), this.setFocusDebounced(v));
|
|
2444
|
-
}
|
|
2445
|
-
}, y.prototype.getNodeLayoutByFocusKey = function(u) {
|
|
2446
|
-
var c = this.focusableComponents[u];
|
|
2447
|
-
return c ? (this.updateLayout(c.focusKey), c.layout) : null;
|
|
2448
|
-
}, y.prototype.setCurrentFocusedKey = function(u, c) {
|
|
2449
|
-
var l, v, w, R;
|
|
2450
|
-
if (this.isFocusableComponent(this.focusKey) && u !== this.focusKey) {
|
|
2451
|
-
var T = this.focusableComponents[this.focusKey];
|
|
2452
|
-
T.onUpdateFocus(!1), T.onBlur(this.getNodeLayoutByFocusKey(this.focusKey), c), (v = (l = T.node) === null || l === void 0 ? void 0 : l.removeAttribute) === null || v === void 0 || v.call(l, "data-focused"), this.log("setCurrentFocusedKey", "onBlur", T);
|
|
2453
|
-
}
|
|
2454
|
-
if (this.focusKey = u, this.isFocusableComponent(this.focusKey)) {
|
|
2455
|
-
var O = this.focusableComponents[this.focusKey];
|
|
2456
|
-
this.shouldFocusDOMNode && O.node && O.node.focus(this.domNodeFocusOptions), (R = (w = O.node) === null || w === void 0 ? void 0 : w.setAttribute) === null || R === void 0 || R.call(w, "data-focused", "true"), O.onUpdateFocus(!0), O.onFocus(this.getNodeLayoutByFocusKey(this.focusKey), c), this.log("setCurrentFocusedKey", "onFocus", O);
|
|
2457
|
-
}
|
|
2458
|
-
}, y.prototype.updateParentsHasFocusedChild = function(u, c) {
|
|
2459
|
-
for (var l = this, v = [], w = this.focusableComponents[u]; w; ) {
|
|
2460
|
-
var R = w.parentFocusKey, T = this.focusableComponents[R];
|
|
2461
|
-
if (T) {
|
|
2462
|
-
var O = T.focusKey;
|
|
2463
|
-
v.push(O);
|
|
2464
|
-
}
|
|
2465
|
-
w = T;
|
|
2466
|
-
}
|
|
2467
|
-
var G = (0, K.default)(this.parentsHavingFocusedChild, v), j = (0, K.default)(v, this.parentsHavingFocusedChild);
|
|
2468
|
-
(0, J.default)(G, function(k) {
|
|
2469
|
-
var B = l.focusableComponents[k];
|
|
2470
|
-
B && B.trackChildren && B.onUpdateHasFocusedChild(!1), l.onIntermediateNodeBecameBlurred(k, c);
|
|
2471
|
-
}), (0, J.default)(j, function(k) {
|
|
2472
|
-
var B = l.focusableComponents[k];
|
|
2473
|
-
B && B.trackChildren && B.onUpdateHasFocusedChild(!0), l.onIntermediateNodeBecameFocused(k, c);
|
|
2474
|
-
}), this.parentsHavingFocusedChild = v;
|
|
2475
|
-
}, y.prototype.updateParentsLastFocusedChild = function(u) {
|
|
2476
|
-
for (var c = this.focusableComponents[u]; c; ) {
|
|
2477
|
-
var l = c.parentFocusKey, v = this.focusableComponents[l];
|
|
2478
|
-
v && this.saveLastFocusedChildKey(v, c.focusKey), c = v;
|
|
2479
|
-
}
|
|
2480
|
-
}, y.prototype.getKeyMap = function() {
|
|
2481
|
-
return this.keyMap;
|
|
2482
|
-
}, y.prototype.setKeyMap = function(u) {
|
|
2483
|
-
this.keyMap = g(g({}, this.getKeyMap()), function(c) {
|
|
2484
|
-
var l = {};
|
|
2485
|
-
return Object.entries(c).forEach(function(v) {
|
|
2486
|
-
var w = v[0], R = v[1];
|
|
2487
|
-
l[w] = Array.isArray(R) ? R : [R];
|
|
2488
|
-
}), l;
|
|
2489
|
-
}(u));
|
|
2490
|
-
}, y.prototype.isFocusableComponent = function(u) {
|
|
2491
|
-
return !!this.focusableComponents[u];
|
|
2492
|
-
}, y.prototype.isParticipatingFocusableComponent = function(u) {
|
|
2493
|
-
return this.isFocusableComponent(u) && this.focusableComponents[u].focusable;
|
|
2494
|
-
}, y.prototype.onIntermediateNodeBecameFocused = function(u, c) {
|
|
2495
|
-
this.isParticipatingFocusableComponent(u) && this.focusableComponents[u].onFocus(this.getNodeLayoutByFocusKey(u), c);
|
|
2496
|
-
}, y.prototype.onIntermediateNodeBecameBlurred = function(u, c) {
|
|
2497
|
-
this.isParticipatingFocusableComponent(u) && this.focusableComponents[u].onBlur(this.getNodeLayoutByFocusKey(u), c);
|
|
2498
|
-
}, y.prototype.pause = function() {
|
|
2499
|
-
this.paused = !0;
|
|
2500
|
-
}, y.prototype.resume = function() {
|
|
2501
|
-
this.paused = !1;
|
|
2502
|
-
}, y.prototype.setFocus = function(u, c) {
|
|
2503
|
-
if (c === void 0 && (c = {}), this.setFocusDebounced.cancel(), this.enabled) {
|
|
2504
|
-
this.log("setFocus", "focusKey", u), u && u !== h.ROOT_FOCUS_KEY || (u = this.getForcedFocusKey());
|
|
2505
|
-
var l = this.getNextFocusKey(u);
|
|
2506
|
-
this.log("setFocus", "newFocusKey", l), this.setCurrentFocusedKey(l, c), this.updateParentsHasFocusedChild(l, c), this.updateParentsLastFocusedChild(l);
|
|
2507
|
-
}
|
|
2508
|
-
}, y.prototype.updateAllLayouts = function() {
|
|
2509
|
-
var u = this;
|
|
2510
|
-
this.enabled && !this.nativeMode && (0, ae.default)(this.focusableComponents, function(c, l) {
|
|
2511
|
-
u.updateLayout(l);
|
|
2512
|
-
});
|
|
2513
|
-
}, y.prototype.updateLayout = function(u) {
|
|
2514
|
-
var c = this.focusableComponents[u];
|
|
2515
|
-
if (c && !this.nativeMode && !c.layoutUpdated) {
|
|
2516
|
-
var l = c.node, v = this.useGetBoundingClientRect ? (0, _e.getBoundingClientRect)(l) : (0, _e.default)(l);
|
|
2517
|
-
c.layout = g(g({}, v), { node: l });
|
|
2518
|
-
}
|
|
2519
|
-
}, y.prototype.updateFocusable = function(u, c) {
|
|
2520
|
-
var l = c.node, v = c.preferredChildFocusKey, w = c.focusable, R = c.isFocusBoundary, T = c.focusBoundaryDirections, O = c.onEnterPress, G = c.onEnterRelease, j = c.onArrowPress, k = c.onFocus, B = c.onBlur;
|
|
2521
|
-
if (!this.nativeMode) {
|
|
2522
|
-
var L = this.focusableComponents[u];
|
|
2523
|
-
L && (L.preferredChildFocusKey = v, L.focusable = w, L.isFocusBoundary = R, L.focusBoundaryDirections = T, L.onEnterPress = O, L.onEnterRelease = G, L.onArrowPress = j, L.onFocus = k, L.onBlur = B, l && (L.node = l));
|
|
2524
|
-
}
|
|
2525
|
-
}, y.prototype.isNativeMode = function() {
|
|
2526
|
-
return this.nativeMode;
|
|
2527
|
-
}, y.prototype.doesFocusableExist = function(u) {
|
|
2528
|
-
return !!this.focusableComponents[u];
|
|
2529
|
-
}, y.prototype.updateRtl = function(u) {
|
|
2530
|
-
this.writingDirection = u ? ee.default.RTL : ee.default.LTR;
|
|
2531
|
-
}, y;
|
|
2532
|
-
}();
|
|
2533
|
-
h.SpatialNavigation = new Ke(), h.init = h.SpatialNavigation.init, h.setThrottle = h.SpatialNavigation.setThrottle, h.destroy = h.SpatialNavigation.destroy, h.setKeyMap = h.SpatialNavigation.setKeyMap, h.setFocus = h.SpatialNavigation.setFocus, h.navigateByDirection = h.SpatialNavigation.navigateByDirection, h.pause = h.SpatialNavigation.pause, h.resume = h.SpatialNavigation.resume, h.updateAllLayouts = h.SpatialNavigation.updateAllLayouts, h.getCurrentFocusKey = h.SpatialNavigation.getCurrentFocusKey, h.doesFocusableExist = h.SpatialNavigation.doesFocusableExist, h.updateRtl = h.SpatialNavigation.updateRtl;
|
|
2534
|
-
}, 35: function(m, h, p) {
|
|
2535
|
-
var C = this && this.__importDefault || function(F) {
|
|
2536
|
-
return F && F.__esModule ? F : { default: F };
|
|
2537
|
-
};
|
|
2538
|
-
Object.defineProperty(h, "__esModule", { value: !0 });
|
|
2539
|
-
var g = C(p(119)), I = typeof window < "u" && window.document, A = I ? window.innerWidth : 0, q = I ? window.innerHeight : 0, N = function() {
|
|
2540
|
-
function F(E) {
|
|
2541
|
-
I && (this.debugCtx = F.createCanvas("sn-debug", "1010", E), this.layoutsCtx = F.createCanvas("sn-layouts", "1000", E), this.writingDirection = E);
|
|
2542
|
-
}
|
|
2543
|
-
return F.createCanvas = function(E, K, U) {
|
|
2544
|
-
var P = document.querySelector("#".concat(E)) || document.createElement("canvas");
|
|
2545
|
-
P.setAttribute("id", E), P.setAttribute("dir", U === g.default.LTR ? "ltr" : "rtl");
|
|
2546
|
-
var V = P.getContext("2d");
|
|
2547
|
-
return P.style.zIndex = K, P.style.position = "fixed", P.style.top = "0", P.style.left = "0", document.body.appendChild(P), P.width = A, P.height = q, V;
|
|
2548
|
-
}, F.prototype.clear = function() {
|
|
2549
|
-
I && this.debugCtx.clearRect(0, 0, A, q);
|
|
2550
|
-
}, F.prototype.clearLayouts = function() {
|
|
2551
|
-
I && this.layoutsCtx.clearRect(0, 0, A, q);
|
|
2552
|
-
}, F.prototype.drawLayout = function(E, K, U) {
|
|
2553
|
-
if (I) {
|
|
2554
|
-
this.layoutsCtx.strokeStyle = "green", this.layoutsCtx.strokeRect(E.left, E.top, E.width, E.height), this.layoutsCtx.font = "8px monospace", this.layoutsCtx.fillStyle = "red";
|
|
2555
|
-
var P = this.writingDirection === g.default.LTR ? "left" : "right", V = E[P];
|
|
2556
|
-
this.layoutsCtx.fillText(K, V, E.top + 10), this.layoutsCtx.fillText(U, V, E.top + 25), this.layoutsCtx.fillText("".concat(P, ": ").concat(V), V, E.top + 40), this.layoutsCtx.fillText("top: ".concat(E.top), V, E.top + 55);
|
|
2557
|
-
}
|
|
2558
|
-
}, F.prototype.drawPoint = function(E, K, U, P) {
|
|
2559
|
-
U === void 0 && (U = "blue"), P === void 0 && (P = 10), I && (this.debugCtx.strokeStyle = U, this.debugCtx.lineWidth = 3, this.debugCtx.strokeRect(E - P / 2, K - P / 2, P, P));
|
|
2560
|
-
}, F;
|
|
2561
|
-
}();
|
|
2562
|
-
h.default = N;
|
|
2563
|
-
}, 119: function(m, h) {
|
|
2564
|
-
var p;
|
|
2565
|
-
Object.defineProperty(h, "__esModule", { value: !0 }), function(C) {
|
|
2566
|
-
C[C.LTR = 0] = "LTR", C[C.RTL = 1] = "RTL";
|
|
2567
|
-
}(p || (p = {})), h.default = p;
|
|
2568
|
-
}, 607: function(m, h, p) {
|
|
2569
|
-
var C = this && this.__createBinding || (Object.create ? function(I, A, q, N) {
|
|
2570
|
-
N === void 0 && (N = q);
|
|
2571
|
-
var F = Object.getOwnPropertyDescriptor(A, q);
|
|
2572
|
-
F && !("get" in F ? !A.__esModule : F.writable || F.configurable) || (F = { enumerable: !0, get: function() {
|
|
2573
|
-
return A[q];
|
|
2574
|
-
} }), Object.defineProperty(I, N, F);
|
|
2575
|
-
} : function(I, A, q, N) {
|
|
2576
|
-
N === void 0 && (N = q), I[N] = A[q];
|
|
2577
|
-
}), g = this && this.__exportStar || function(I, A) {
|
|
2578
|
-
for (var q in I) q === "default" || Object.prototype.hasOwnProperty.call(A, q) || C(A, I, q);
|
|
2579
|
-
};
|
|
2580
|
-
Object.defineProperty(h, "__esModule", { value: !0 }), g(p(79), h), g(p(445), h), g(p(654), h);
|
|
2581
|
-
}, 964: function(m, h) {
|
|
2582
|
-
Object.defineProperty(h, "__esModule", { value: !0 }), h.getBoundingClientRect = void 0;
|
|
2583
|
-
var p = function(C) {
|
|
2584
|
-
for (var g = C.offsetParent, I = C.offsetHeight, A = C.offsetWidth, q = C.offsetLeft, N = C.offsetTop; g && g.nodeType === 1; ) q += g.offsetLeft - g.scrollLeft, N += g.offsetTop - g.scrollTop, g = g.offsetParent;
|
|
2585
|
-
return { height: I, left: q, top: N, width: A };
|
|
2586
|
-
};
|
|
2587
|
-
h.default = function(C) {
|
|
2588
|
-
var g = C && C.parentElement;
|
|
2589
|
-
if (C && g) {
|
|
2590
|
-
var I = p(g), A = p(C), q = A.height, N = A.left, F = A.top, E = A.width;
|
|
2591
|
-
return { x: N - I.left, y: F - I.top, width: E, height: q, left: N, top: F, get right() {
|
|
2592
|
-
return this.left + this.width;
|
|
2593
|
-
}, get bottom() {
|
|
2594
|
-
return this.top + this.height;
|
|
2595
|
-
} };
|
|
2596
|
-
}
|
|
2597
|
-
return { x: 0, y: 0, width: 0, height: 0, left: 0, top: 0, right: 0, bottom: 0 };
|
|
2598
|
-
}, h.getBoundingClientRect = function(C) {
|
|
2599
|
-
if (C && C.getBoundingClientRect) {
|
|
2600
|
-
var g = C.getBoundingClientRect();
|
|
2601
|
-
return { x: g.x, y: g.y, width: g.width, height: g.height, left: g.left, top: g.top, get right() {
|
|
2602
|
-
return this.left + this.width;
|
|
2603
|
-
}, get bottom() {
|
|
2604
|
-
return this.top + this.height;
|
|
2605
|
-
} };
|
|
2606
|
-
}
|
|
2607
|
-
return { x: 0, y: 0, width: 0, height: 0, left: 0, top: 0, right: 0, bottom: 0 };
|
|
2608
|
-
};
|
|
2609
|
-
}, 445: function(m, h, p) {
|
|
2610
|
-
Object.defineProperty(h, "__esModule", { value: !0 }), h.useFocusContext = h.FocusContext = void 0;
|
|
2611
|
-
var C = p(156), g = p(654);
|
|
2612
|
-
h.FocusContext = (0, C.createContext)(g.ROOT_FOCUS_KEY), h.FocusContext.displayName = "FocusContext", h.useFocusContext = function() {
|
|
2613
|
-
return (0, C.useContext)(h.FocusContext);
|
|
2614
|
-
};
|
|
2615
|
-
}, 79: function(m, h, p) {
|
|
2616
|
-
var C = this && this.__importDefault || function(F) {
|
|
2617
|
-
return F && F.__esModule ? F : { default: F };
|
|
2618
|
-
};
|
|
2619
|
-
Object.defineProperty(h, "__esModule", { value: !0 }), h.useFocusable = void 0;
|
|
2620
|
-
var g = p(156), I = C(p(604)), A = C(p(461)), q = p(654), N = p(445);
|
|
2621
|
-
h.useFocusable = function(F) {
|
|
2622
|
-
var E = F === void 0 ? {} : F, K = E.focusable, U = K === void 0 || K, P = E.saveLastFocusedChild, V = P === void 0 || P, J = E.trackChildren, ae = J !== void 0 && J, ge = E.autoRestoreFocus, He = ge === void 0 || ge, xe = E.forceFocus, ee = xe !== void 0 && xe, _e = E.isFocusBoundary, ce = _e !== void 0 && _e, le = E.focusBoundaryDirections, fe = E.focusKey, ie = E.preferredChildFocusKey, be = E.onEnterPress, me = be === void 0 ? I.default : be, Ce = E.onEnterRelease, Ie = Ce === void 0 ? I.default : Ce, Ke = E.onArrowPress, y = Ke === void 0 ? function() {
|
|
2623
|
-
return !0;
|
|
2624
|
-
} : Ke, u = E.onArrowRelease, c = u === void 0 ? I.default : u, l = E.onFocus, v = l === void 0 ? I.default : l, w = E.onBlur, R = w === void 0 ? I.default : w, T = E.extraProps, O = (0, g.useCallback)(function(Y) {
|
|
2625
|
-
me(T, Y);
|
|
2626
|
-
}, [me, T]), G = (0, g.useCallback)(function() {
|
|
2627
|
-
Ie(T);
|
|
2628
|
-
}, [Ie, T]), j = (0, g.useCallback)(function(Y, Z) {
|
|
2629
|
-
return y(Y, T, Z);
|
|
2630
|
-
}, [T, y]), k = (0, g.useCallback)(function(Y) {
|
|
2631
|
-
c(Y, T);
|
|
2632
|
-
}, [c, T]), B = (0, g.useCallback)(function(Y, Z) {
|
|
2633
|
-
v(Y, T, Z);
|
|
2634
|
-
}, [T, v]), L = (0, g.useCallback)(function(Y, Z) {
|
|
2635
|
-
R(Y, T, Z);
|
|
2636
|
-
}, [T, R]), $ = (0, g.useRef)(null), W = (0, g.useState)(!1), X = W[0], oe = W[1], z = (0, g.useState)(!1), re = z[0], de = z[1], se = (0, N.useFocusContext)(), te = (0, g.useMemo)(function() {
|
|
2637
|
-
return fe || (0, A.default)("sn:focusable-item-");
|
|
2638
|
-
}, [fe]), we = (0, g.useCallback)(function(Y) {
|
|
2639
|
-
Y === void 0 && (Y = {}), q.SpatialNavigation.setFocus(te, Y);
|
|
2640
|
-
}, [te]);
|
|
2641
|
-
return (0, g.useEffect)(function() {
|
|
2642
|
-
var Y = $.current;
|
|
2643
|
-
return q.SpatialNavigation.addFocusable({ focusKey: te, node: Y, parentFocusKey: se, preferredChildFocusKey: ie, onEnterPress: O, onEnterRelease: G, onArrowPress: j, onArrowRelease: k, onFocus: B, onBlur: L, onUpdateFocus: function(Z) {
|
|
2644
|
-
return Z === void 0 && (Z = !1), oe(Z);
|
|
2645
|
-
}, onUpdateHasFocusedChild: function(Z) {
|
|
2646
|
-
return Z === void 0 && (Z = !1), de(Z);
|
|
2647
|
-
}, saveLastFocusedChild: V, trackChildren: ae, isFocusBoundary: ce, focusBoundaryDirections: le, autoRestoreFocus: He, forceFocus: ee, focusable: U }), function() {
|
|
2648
|
-
q.SpatialNavigation.removeFocusable({ focusKey: te });
|
|
2649
|
-
};
|
|
2650
|
-
}, []), (0, g.useEffect)(function() {
|
|
2651
|
-
var Y = $.current;
|
|
2652
|
-
q.SpatialNavigation.updateFocusable(te, { node: Y, preferredChildFocusKey: ie, focusable: U, isFocusBoundary: ce, focusBoundaryDirections: le, onEnterPress: O, onEnterRelease: G, onArrowPress: j, onArrowRelease: k, onFocus: B, onBlur: L });
|
|
2653
|
-
}, [te, ie, U, ce, le, O, G, j, k, B, L]), { ref: $, focusSelf: we, focused: X, hasFocusedChild: re, focusKey: te };
|
|
2654
|
-
};
|
|
2655
|
-
}, 150: function(m) {
|
|
2656
|
-
m.exports = r;
|
|
2657
|
-
}, 117: function(m) {
|
|
2658
|
-
m.exports = n;
|
|
2659
|
-
}, 747: function(m) {
|
|
2660
|
-
m.exports = a;
|
|
2661
|
-
}, 23: function(m) {
|
|
2662
|
-
m.exports = i;
|
|
2663
|
-
}, 842: function(m) {
|
|
2664
|
-
m.exports = s;
|
|
2665
|
-
}, 682: function(m) {
|
|
2666
|
-
m.exports = o;
|
|
2667
|
-
}, 784: function(m) {
|
|
2668
|
-
m.exports = d;
|
|
2669
|
-
}, 604: function(m) {
|
|
2670
|
-
m.exports = f;
|
|
2671
|
-
}, 432: function(m) {
|
|
2672
|
-
m.exports = b;
|
|
2673
|
-
}, 67: function(m) {
|
|
2674
|
-
m.exports = _;
|
|
2675
|
-
}, 461: function(m) {
|
|
2676
|
-
m.exports = S;
|
|
2677
|
-
}, 156: function(m) {
|
|
2678
|
-
m.exports = x;
|
|
2679
|
-
} }, M = {};
|
|
2680
|
-
return function m(h) {
|
|
2681
|
-
var p = M[h];
|
|
2682
|
-
if (p !== void 0) return p.exports;
|
|
2683
|
-
var C = M[h] = { exports: {} };
|
|
2684
|
-
return D[h].call(C.exports, C, C.exports, m), C.exports;
|
|
2685
|
-
}(607);
|
|
2686
|
-
}();
|
|
2687
|
-
});
|
|
2688
|
-
}(De)), De.exports;
|
|
2689
|
-
}
|
|
2690
|
-
var qe = Wc();
|
|
2691
|
-
class Iu extends Nu {
|
|
2692
|
-
constructor(r = "", n) {
|
|
2693
|
-
super();
|
|
2694
|
-
H(this, "_eventId", new Q(""));
|
|
2695
|
-
H(this, "_title", new Q(""));
|
|
2696
|
-
H(this, "_isLive", new Q(!1));
|
|
2697
|
-
H(this, "delegate");
|
|
2698
|
-
H(this, "keyPlaysViewModel", new du());
|
|
2699
|
-
this._eventId.value = r, this.delegate = n, qe.init();
|
|
2700
|
-
}
|
|
2701
|
-
deinit() {
|
|
2702
|
-
qe.destroy();
|
|
2703
|
-
}
|
|
2704
|
-
updateKeyPlaysData(r) {
|
|
2705
|
-
return this.keyPlaysViewModel.setKeyPlays(r);
|
|
2706
|
-
}
|
|
2707
|
-
startFocusManagement() {
|
|
2708
|
-
return setTimeout(() => {
|
|
2709
|
-
qe.resume(), qe.setFocus("PANEL_NAV_BUTTON_0");
|
|
2710
|
-
}, 0), Promise.resolve();
|
|
2711
|
-
}
|
|
2712
|
-
didStartPlayingClip(r) {
|
|
2713
|
-
this.keyPlaysViewModel.lastPlayedClipIndex.value = r, this.keyPlaysViewModel.currentClipPlaybackProgress.value = 0, this.keyPlaysViewModel.currentlyPlayingClipIndex.value = r, this.keyPlaysViewModel.clearLoadFailureStatus(r);
|
|
2714
|
-
}
|
|
2715
|
-
didStopPlayingClip(r) {
|
|
2716
|
-
this.keyPlaysViewModel.lastPlayedClipIndex.value = r, this.keyPlaysViewModel.currentlyPlayingClipIndex.value = null, this.keyPlaysViewModel.currentClipPlaybackProgress.value = null;
|
|
2717
|
-
}
|
|
2718
|
-
didFailToPlayClip(r) {
|
|
2719
|
-
this.keyPlaysViewModel.handleKeyPlayLoadFailure(r);
|
|
2720
|
-
}
|
|
2721
|
-
didUpdatePlaybackProgressOfClip(r, n) {
|
|
2722
|
-
this.keyPlaysViewModel.currentClipPlaybackProgress.value = n, this.keyPlaysViewModel.clearLoadFailureStatus(r);
|
|
2723
|
-
}
|
|
2724
|
-
didShowPanel() {
|
|
2725
|
-
return Promise.resolve();
|
|
2726
|
-
}
|
|
2727
|
-
async didHidePanel() {
|
|
2728
|
-
qe.pause();
|
|
2729
|
-
}
|
|
2730
|
-
didShowOverlay() {
|
|
2731
|
-
throw new Error("Method not implemented.");
|
|
2732
|
-
}
|
|
2733
|
-
didHideOverlay() {
|
|
2734
|
-
throw new Error("Method not implemented.");
|
|
2735
|
-
}
|
|
2736
|
-
currentEventDoesNotSupportKeyPlays() {
|
|
2737
|
-
this.keyPlaysViewModel.errorState.value = "unsupportedEvent";
|
|
2738
|
-
}
|
|
2739
|
-
getCurrentEventID() {
|
|
2740
|
-
return this.eventId.value;
|
|
2741
|
-
}
|
|
2742
|
-
getCurrentlyPlayingClipIndex() {
|
|
2743
|
-
return this.keyPlaysViewModel.currentlyPlayingClipIndex.value;
|
|
2744
|
-
}
|
|
2745
|
-
getLastPlayedClipIndex() {
|
|
2746
|
-
return this.keyPlaysViewModel.lastPlayedClipIndex.value;
|
|
2747
|
-
}
|
|
2748
|
-
getCurrentClipPlaybackProgress() {
|
|
2749
|
-
return this.keyPlaysViewModel.currentClipPlaybackProgress.value;
|
|
2750
|
-
}
|
|
2751
|
-
getKeyPlaysCount() {
|
|
2752
|
-
return this.keyPlaysViewModel.items.value.length;
|
|
2753
|
-
}
|
|
2754
|
-
get eventId() {
|
|
2755
|
-
return this._eventId;
|
|
2756
|
-
}
|
|
2757
|
-
get title() {
|
|
2758
|
-
return this._title;
|
|
2759
|
-
}
|
|
2760
|
-
get isLive() {
|
|
2761
|
-
return this._isLive;
|
|
2762
|
-
}
|
|
2763
|
-
}
|
|
2764
|
-
const Fe = {
|
|
2765
|
-
KEY_PLAYS: "keyPlays",
|
|
2766
|
-
STATS: "stats",
|
|
2767
|
-
FANTASY: "fantasy",
|
|
2768
|
-
BETS: "bets"
|
|
2769
|
-
};
|
|
2770
|
-
class Yc {
|
|
2771
|
-
constructor() {
|
|
2772
|
-
H(this, "_panels", new Q([
|
|
2773
|
-
Fe.KEY_PLAYS,
|
|
2774
|
-
Fe.STATS,
|
|
2775
|
-
Fe.FANTASY,
|
|
2776
|
-
Fe.BETS
|
|
2777
|
-
]));
|
|
2778
|
-
H(this, "_currentPanel", new Q(
|
|
2779
|
-
Fe.KEY_PLAYS
|
|
2780
|
-
));
|
|
2781
|
-
H(this, "_newlyFocusedPanel", new Q(null));
|
|
2782
|
-
}
|
|
2783
|
-
// Getter for panels
|
|
2784
|
-
get panels() {
|
|
2785
|
-
return this._panels.value;
|
|
2786
|
-
}
|
|
2787
|
-
// Getter for panels observable
|
|
2788
|
-
get panelsObservable() {
|
|
2789
|
-
return this._panels;
|
|
2790
|
-
}
|
|
2791
|
-
// Getter for currentPanel
|
|
2792
|
-
get currentPanel() {
|
|
2793
|
-
return this._currentPanel.value;
|
|
2794
|
-
}
|
|
2795
|
-
// Setter for currentPanel
|
|
2796
|
-
set currentPanel(e) {
|
|
2797
|
-
this._currentPanel.value = e;
|
|
2798
|
-
}
|
|
2799
|
-
// Getter for currentPanel as Observable
|
|
2800
|
-
get currentPanelObservable() {
|
|
2801
|
-
return this._currentPanel;
|
|
2802
|
-
}
|
|
2803
|
-
// Getter for newlyFocusedPanel
|
|
2804
|
-
get newlyFocusedPanel() {
|
|
2805
|
-
return this._newlyFocusedPanel.value;
|
|
2806
|
-
}
|
|
2807
|
-
// Setter for newlyFocusedPanel
|
|
2808
|
-
set newlyFocusedPanel(e) {
|
|
2809
|
-
this._newlyFocusedPanel.value = e;
|
|
2810
|
-
}
|
|
2811
|
-
// Get the index of a specific panel type
|
|
2812
|
-
getIndex(e) {
|
|
2813
|
-
const r = this.panels.findIndex((n) => n === e);
|
|
2814
|
-
return r !== -1 ? r : null;
|
|
2815
|
-
}
|
|
2816
|
-
// Get the panel type at a specific index
|
|
2817
|
-
getPanelType(e) {
|
|
2818
|
-
return this.panels[e] || null;
|
|
2819
|
-
}
|
|
2820
|
-
// Computed property for panel to the left
|
|
2821
|
-
get panelTypeToLeft() {
|
|
2822
|
-
const e = this.getIndex(this.currentPanel);
|
|
2823
|
-
return e === null || e === 0 ? null : this.getPanelType(e - 1);
|
|
2824
|
-
}
|
|
2825
|
-
// Computed property for panel to the right
|
|
2826
|
-
get panelTypeToRight() {
|
|
2827
|
-
const e = this.getIndex(this.currentPanel);
|
|
2828
|
-
return e === null || e === this.panels.length - 1 ? null : this.getPanelType(e + 1);
|
|
2829
|
-
}
|
|
2830
|
-
}
|
|
2831
|
-
class ia {
|
|
2832
|
-
constructor(e) {
|
|
2833
|
-
H(this, "eventViewModel");
|
|
2834
|
-
H(this, "panelManagerViewModel");
|
|
2835
|
-
H(this, "keyPlaysViewModel");
|
|
2836
|
-
this.eventViewModel = e, this.panelManagerViewModel = new Yc(), this.keyPlaysViewModel = new du();
|
|
2837
|
-
}
|
|
2838
|
-
/**
|
|
2839
|
-
* Creates view models from an event ID
|
|
2840
|
-
*/
|
|
2841
|
-
static async fromEventId(e, r) {
|
|
2842
|
-
try {
|
|
2843
|
-
const n = new Iu(e, r);
|
|
2844
|
-
return new ia(n);
|
|
2845
|
-
} catch (n) {
|
|
2846
|
-
return console.error("Error creating view models from event ID", n), null;
|
|
2847
|
-
}
|
|
2848
|
-
}
|
|
2849
|
-
}
|
|
2850
|
-
class $c {
|
|
2851
|
-
constructor() {
|
|
2852
|
-
H(this, "renderersMap", /* @__PURE__ */ new Map());
|
|
2853
|
-
H(this, "viewModels", null);
|
|
2854
|
-
}
|
|
2855
|
-
/**
|
|
2856
|
-
* Sets the view models for the renderer
|
|
2857
|
-
* @param eventId The event ID to create view models for
|
|
2858
|
-
* @param delegate The event delegate to use
|
|
2859
|
-
*/
|
|
2860
|
-
async setViewModels(e, r) {
|
|
2861
|
-
try {
|
|
2862
|
-
return r ? (this.viewModels = await ia.fromEventId(e, r), this.viewModels) : (console.error("No event delegate provided"), null);
|
|
2863
|
-
} catch (n) {
|
|
2864
|
-
return console.error("Error creating view models from event ID", n), null;
|
|
2865
|
-
}
|
|
2866
|
-
}
|
|
2867
|
-
/**
|
|
2868
|
-
* Renders the panel manager
|
|
2869
|
-
* @param id The element ID to render in
|
|
2870
|
-
* @param options Options for rendering including height and width
|
|
2871
|
-
*/
|
|
2872
|
-
async renderPanel(e) {
|
|
2873
|
-
const r = await this.getRenderer(e);
|
|
2874
|
-
if (!this.viewModels)
|
|
2875
|
-
throw new Error("Cannot render panel manager: No view models set");
|
|
2876
|
-
const n = (await import("./index-q5GKgbOd.js")).default, a = (await import("./index-DXErYNZH.js").then((i) => i.i)).default;
|
|
2877
|
-
return r.render(
|
|
2878
|
-
/* @__PURE__ */ Un.createElement(n, null, /* @__PURE__ */ Un.createElement(a, null))
|
|
2879
|
-
), () => {
|
|
2880
|
-
r.unmount(), this.renderersMap.delete(e);
|
|
2881
|
-
};
|
|
2882
|
-
}
|
|
2883
|
-
/**
|
|
2884
|
-
* @description Get the render function and renderer for the MaestroWebSDK. Useful to configure the renderer and fonts before rendering the component.
|
|
2885
|
-
* @param {string} id - The id of the element to render the component in.
|
|
2886
|
-
* @param {{ height: number; width: number }} options - The height and width of the component.
|
|
2887
|
-
*/
|
|
2888
|
-
async getRenderer(e) {
|
|
2889
|
-
if (this.renderersMap.has(e))
|
|
2890
|
-
return this.renderersMap.get(e);
|
|
2891
|
-
const r = (await import("react-dom/client")).createRoot, n = r(document.getElementById(e));
|
|
2892
|
-
return this.renderersMap.set(e, n), n;
|
|
2893
|
-
}
|
|
2894
|
-
}
|
|
2895
|
-
const Jc = ["664b9c57d59a7a431542d814"], he = class he {
|
|
2896
|
-
constructor(e) {
|
|
2897
|
-
H(this, "renderer");
|
|
2898
|
-
H(this, "siteID");
|
|
2899
|
-
H(this, "jwt");
|
|
2900
|
-
H(this, "userID");
|
|
2901
|
-
H(this, "maestroEventViewModel", null);
|
|
2902
|
-
this.renderer = e;
|
|
2903
|
-
}
|
|
2904
|
-
async userDidStartWatchingEvent(e, r) {
|
|
2905
|
-
if (!this.isAuthorizedClient)
|
|
2906
|
-
throw new Error("Unauthorized use of SDK");
|
|
2907
|
-
return this.maestroEventViewModel = new Iu(e, r), this.maestroEventViewModel;
|
|
2908
|
-
}
|
|
2909
|
-
userDidStopWatchingEvent(e) {
|
|
2910
|
-
console.log("stop watching event"), this.maestroEventViewModel && (this.maestroEventViewModel.deinit(), this.maestroEventViewModel = null);
|
|
2911
|
-
}
|
|
2912
|
-
authenticateUser(e, r) {
|
|
2913
|
-
throw new Error("Method not implemented.");
|
|
2914
|
-
}
|
|
2915
|
-
deauthenticateUser() {
|
|
2916
|
-
throw new Error("Method not implemented.");
|
|
2917
|
-
}
|
|
2918
|
-
/**
|
|
2919
|
-
* @description Returns the MaestroWebSDK instance
|
|
2920
|
-
* @returns {MaestroWebSDK} - The MaestroWebSDK instance
|
|
2921
|
-
*/
|
|
2922
|
-
static getInstance() {
|
|
2923
|
-
if (!he.instance) {
|
|
2924
|
-
const e = new $c();
|
|
2925
|
-
he.instance = new he(e);
|
|
2926
|
-
}
|
|
2927
|
-
return he.instance;
|
|
2928
|
-
}
|
|
2929
|
-
configure(e) {
|
|
2930
|
-
e.siteID && this.setSiteID(e.siteID), e.jwt && this.setJwt(e.jwt), console.info("MaestroWebSDK configured", e);
|
|
2931
|
-
}
|
|
2932
|
-
/**
|
|
2933
|
-
* Checks if this is an authorized client based on siteID
|
|
2934
|
-
*/
|
|
2935
|
-
get isAuthorizedClient() {
|
|
2936
|
-
const e = this.getSiteID();
|
|
2937
|
-
return !!(e && Jc.includes(e));
|
|
2938
|
-
}
|
|
2939
|
-
/**
|
|
2940
|
-
* Sets the site ID for the SDK
|
|
2941
|
-
* @param siteID The site ID to set
|
|
2942
|
-
*/
|
|
2943
|
-
setSiteID(e) {
|
|
2944
|
-
this.siteID = e;
|
|
2945
|
-
}
|
|
2946
|
-
getSiteID() {
|
|
2947
|
-
return this.siteID;
|
|
2948
|
-
}
|
|
2949
|
-
/**
|
|
2950
|
-
* Sets the JWT token for authentication
|
|
2951
|
-
* @param jwt The JWT token to set
|
|
2952
|
-
*/
|
|
2953
|
-
setJwt(e) {
|
|
2954
|
-
this.jwt = e;
|
|
2955
|
-
}
|
|
2956
|
-
getJwt() {
|
|
2957
|
-
return this.jwt;
|
|
2958
|
-
}
|
|
2959
|
-
/**
|
|
2960
|
-
* Sets the user ID for the SDK
|
|
2961
|
-
* @param userID The user ID to set
|
|
2962
|
-
*/
|
|
2963
|
-
setUserID(e) {
|
|
2964
|
-
this.userID = e;
|
|
2965
|
-
}
|
|
2966
|
-
getUserID() {
|
|
2967
|
-
return this.userID;
|
|
2968
|
-
}
|
|
2969
|
-
/**
|
|
2970
|
-
* Gets the event view model
|
|
2971
|
-
* @returns The current event view model
|
|
2972
|
-
*/
|
|
2973
|
-
getMaestroEventViewModel() {
|
|
2974
|
-
if (!this.maestroEventViewModel)
|
|
2975
|
-
throw new Error("No Maestro Event View Model set");
|
|
2976
|
-
return this.maestroEventViewModel;
|
|
2977
|
-
}
|
|
2978
|
-
async renderPanel(e) {
|
|
2979
|
-
if (!this.renderer.viewModels) {
|
|
2980
|
-
if (!this.maestroEventViewModel)
|
|
2981
|
-
throw new Error("No Maestro Event View Model set.");
|
|
2982
|
-
await this.renderer.setViewModels(
|
|
2983
|
-
e ?? "default-event-id",
|
|
2984
|
-
this.maestroEventViewModel.delegate
|
|
2985
|
-
);
|
|
2986
|
-
}
|
|
2987
|
-
return this.renderer.renderPanel(e);
|
|
2988
|
-
}
|
|
2989
|
-
};
|
|
2990
|
-
H(he, "instance");
|
|
2991
|
-
let Gn = he;
|
|
2992
|
-
const fu = Gn.getInstance();
|
|
2993
|
-
export {
|
|
2994
|
-
Yc as P,
|
|
2995
|
-
fu as S,
|
|
2996
|
-
qe as d
|
|
2997
|
-
};
|
|
2998
|
-
//# sourceMappingURL=index-BaSckwps.js.map
|