@streamlayer/react 0.32.10 → 0.33.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/gamification-feature.js +1 -1
- package/lib/cjs/index4.js +1 -1
- package/lib/cjs/masters2.js +2 -2
- package/lib/cjs/points.js +1 -1
- package/lib/dist/cjs/gamification-feature.js +1 -1
- package/lib/dist/cjs/masters.js +17 -17
- package/lib/dist/es/gamification-feature.js +801 -677
- package/lib/dist/es/index.js +1 -1
- package/lib/dist/es/masters.js +6846 -6911
- package/lib/dist/index.d.ts +47 -50
- package/lib/dist/style.css +1 -1
- package/lib/es/gamification-feature.js +744 -706
- package/lib/es/index4.js +30 -29
- package/lib/es/masters2.js +1371 -1363
- package/lib/es/points.js +1 -1
- package/lib/style.css +1 -1
- package/package.json +9 -7
package/lib/es/masters2.js
CHANGED
|
@@ -1,545 +1,545 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { d as
|
|
3
|
-
import { lazy as
|
|
4
|
-
import { FeatureType as
|
|
1
|
+
import { jsx as u, jsxs as d, Fragment as te } from "react/jsx-runtime";
|
|
2
|
+
import { d as Ke, S as Wi, a as Gi, b as Pi, s as Zi } from "./index2.js";
|
|
3
|
+
import { lazy as Vi, useMemo as Qe, Suspense as qi, useRef as je, useState as W, useEffect as J, Component as Hi, createElement as Ji, useCallback as Ae, useLayoutEffect as Xi, useContext as Ki } from "react";
|
|
4
|
+
import { FeatureType as be, QuestionType as B } from "@streamlayer/sdk-web-types";
|
|
5
5
|
import { useStore as re } from "@nanostores/react";
|
|
6
|
-
import { FeatureStatus as
|
|
7
|
-
import { s as
|
|
8
|
-
import { NotificationType as
|
|
9
|
-
const
|
|
10
|
-
const
|
|
11
|
-
return
|
|
12
|
-
},
|
|
6
|
+
import { FeatureStatus as De } from "@streamlayer/sdk-web-interfaces";
|
|
7
|
+
import { s as l, r as b, c as hi } from "./index4.js";
|
|
8
|
+
import { NotificationType as pe } from "@streamlayer/sdk-web-notifications";
|
|
9
|
+
const et = ({ feature: s, sdk: n, children: c, className: I }) => {
|
|
10
|
+
const T = re(s.status), D = re(n.sdkStore.slStreamId);
|
|
11
|
+
return D != null && D.loading ? /* @__PURE__ */ u("div", { className: I, children: "event is loading..." }) : D != null && D.data ? T !== De.Ready ? /* @__PURE__ */ u("div", { className: I, children: "wait feature..." }) : c : /* @__PURE__ */ u("div", { className: I, children: "event is forbidden..." });
|
|
12
|
+
}, it = Vi(() => import("./gamification-feature.js")), tt = ({
|
|
13
13
|
sdk: s,
|
|
14
14
|
feature: n,
|
|
15
|
-
className:
|
|
15
|
+
className: c
|
|
16
16
|
}) => {
|
|
17
|
-
const
|
|
18
|
-
return /* @__PURE__ */
|
|
19
|
-
|
|
17
|
+
const I = Qe(() => n && n.featureConfig.get().type === be.GAMES ? /* @__PURE__ */ u(et, { className: c, sdk: s, feature: n, children: /* @__PURE__ */ u(it, { className: c, gamification: n, sdk: s }) }) : null, [s, n, c]);
|
|
18
|
+
return /* @__PURE__ */ u(
|
|
19
|
+
qi,
|
|
20
20
|
{
|
|
21
|
-
fallback: /* @__PURE__ */
|
|
22
|
-
children:
|
|
21
|
+
fallback: /* @__PURE__ */ u("div", { style: { display: "flex", alignItems: "center", justifyContent: "center", width: "100%", height: "100%" }, children: "page loading..." }),
|
|
22
|
+
children: I
|
|
23
23
|
}
|
|
24
24
|
);
|
|
25
|
-
},
|
|
25
|
+
}, rt = /* @__PURE__ */ l("button")({
|
|
26
26
|
name: "SButton",
|
|
27
27
|
class: "sxxa0c",
|
|
28
28
|
propsAsIs: !1
|
|
29
|
-
}),
|
|
29
|
+
}), nt = /* @__PURE__ */ l("span")({
|
|
30
30
|
name: "ButtonIcon",
|
|
31
31
|
class: "b193dcyu",
|
|
32
32
|
propsAsIs: !1
|
|
33
|
-
}),
|
|
33
|
+
}), st = /* @__PURE__ */ l("span")({
|
|
34
34
|
name: "ButtonLabel",
|
|
35
35
|
class: "b40tuix",
|
|
36
36
|
propsAsIs: !1
|
|
37
|
-
}),
|
|
38
|
-
|
|
39
|
-
/* @__PURE__ */
|
|
40
|
-
] }) }),
|
|
37
|
+
}), ve = ({ disabled: s, active: n, onClick: c, label: I, icon: T }) => /* @__PURE__ */ u(rt, { onClick: c, disabled: s, "data-selected": n, children: /* @__PURE__ */ d(te, { children: [
|
|
38
|
+
T && /* @__PURE__ */ u(nt, { children: T }),
|
|
39
|
+
/* @__PURE__ */ u(st, { children: I })
|
|
40
|
+
] }) }), ot = () => b, Mt = /* @__PURE__ */ l(ot())({
|
|
41
41
|
name: "ButtonIcon",
|
|
42
42
|
class: "b1whzxvd",
|
|
43
43
|
propsAsIs: !0
|
|
44
|
-
}),
|
|
44
|
+
}), Ne = "channels", ct = (s) => {
|
|
45
45
|
var n;
|
|
46
|
-
return /* @__PURE__ */
|
|
46
|
+
return /* @__PURE__ */ u(ve, {
|
|
47
47
|
...s,
|
|
48
48
|
id: "channels",
|
|
49
49
|
label: "Channels",
|
|
50
|
-
icon: /* @__PURE__ */
|
|
50
|
+
icon: /* @__PURE__ */ u(Mt, {
|
|
51
51
|
name: "icon-btn-channels",
|
|
52
52
|
"data-selected": (n = s.active) == null ? void 0 : n.toString()
|
|
53
53
|
})
|
|
54
54
|
});
|
|
55
|
-
},
|
|
55
|
+
}, ut = () => b, at = /* @__PURE__ */ l(ut())({
|
|
56
56
|
name: "ButtonIcon",
|
|
57
57
|
class: "b11des7c",
|
|
58
58
|
propsAsIs: !0
|
|
59
|
-
}), ee = "featuredGroups",
|
|
59
|
+
}), ee = "featuredGroups", lt = (s) => {
|
|
60
60
|
var n;
|
|
61
|
-
return /* @__PURE__ */
|
|
61
|
+
return /* @__PURE__ */ u(ve, {
|
|
62
62
|
...s,
|
|
63
63
|
label: "FG+",
|
|
64
64
|
id: "featuredGroups",
|
|
65
|
-
icon: /* @__PURE__ */
|
|
65
|
+
icon: /* @__PURE__ */ u(at, {
|
|
66
66
|
name: "icon-btn-feature-groups",
|
|
67
67
|
"data-selected": (n = s.active) == null ? void 0 : n.toString()
|
|
68
68
|
})
|
|
69
69
|
});
|
|
70
|
-
},
|
|
70
|
+
}, Nt = () => b, gt = /* @__PURE__ */ l(Nt())({
|
|
71
71
|
name: "ButtonIcon",
|
|
72
72
|
class: "b180jd7l",
|
|
73
73
|
propsAsIs: !0
|
|
74
|
-
}),
|
|
74
|
+
}), ze = "leaderboard", It = (s) => {
|
|
75
75
|
var n;
|
|
76
|
-
return /* @__PURE__ */
|
|
76
|
+
return /* @__PURE__ */ u(ve, {
|
|
77
77
|
...s,
|
|
78
78
|
label: "Leader Board",
|
|
79
79
|
id: "leaderboard",
|
|
80
|
-
icon: /* @__PURE__ */
|
|
80
|
+
icon: /* @__PURE__ */ u(gt, {
|
|
81
81
|
name: "icon-btn-leaderboard",
|
|
82
82
|
"data-selected": (n = s.active) == null ? void 0 : n.toString()
|
|
83
83
|
})
|
|
84
84
|
});
|
|
85
|
-
},
|
|
85
|
+
}, Dt = /* @__PURE__ */ l("div")({
|
|
86
86
|
name: "Buttons",
|
|
87
87
|
class: "b6tbwuy",
|
|
88
88
|
propsAsIs: !1
|
|
89
|
-
}),
|
|
89
|
+
}), Tt = ({
|
|
90
90
|
children: s,
|
|
91
91
|
className: n
|
|
92
|
-
}) => /* @__PURE__ */
|
|
92
|
+
}) => /* @__PURE__ */ u(Dt, {
|
|
93
93
|
className: n,
|
|
94
94
|
children: s
|
|
95
|
-
}),
|
|
95
|
+
}), jt = () => Tt, ht = /* @__PURE__ */ l(jt())({
|
|
96
96
|
name: "Navigation",
|
|
97
97
|
class: "n19lpak2",
|
|
98
98
|
propsAsIs: !0
|
|
99
|
-
}),
|
|
100
|
-
/* @__PURE__ */
|
|
101
|
-
/* @__PURE__ */
|
|
102
|
-
|
|
99
|
+
}), dt = ({ activeOverlay: s, setActiveOverlay: n, sdkReady: c, className: I }) => /* @__PURE__ */ d(ht, { className: I, children: [
|
|
100
|
+
/* @__PURE__ */ u(ct, { active: s === Ne, onClick: () => n(Ne) }),
|
|
101
|
+
/* @__PURE__ */ u(
|
|
102
|
+
lt,
|
|
103
103
|
{
|
|
104
104
|
active: s === ee,
|
|
105
|
-
disabled: !
|
|
105
|
+
disabled: !c,
|
|
106
106
|
onClick: () => {
|
|
107
107
|
n(ee);
|
|
108
108
|
}
|
|
109
109
|
}
|
|
110
110
|
),
|
|
111
|
-
/* @__PURE__ */
|
|
112
|
-
|
|
111
|
+
/* @__PURE__ */ u(
|
|
112
|
+
It,
|
|
113
113
|
{
|
|
114
|
-
active: s ===
|
|
115
|
-
onClick: () => n(
|
|
114
|
+
active: s === ze,
|
|
115
|
+
onClick: () => n(ze)
|
|
116
116
|
}
|
|
117
117
|
)
|
|
118
|
-
] }),
|
|
119
|
-
[
|
|
120
|
-
[
|
|
121
|
-
[
|
|
122
|
-
[
|
|
123
|
-
[
|
|
124
|
-
[
|
|
125
|
-
[
|
|
126
|
-
},
|
|
118
|
+
] }), pt = {
|
|
119
|
+
[B.TWEET]: { label: "Insight", iconName: "icon-insight" },
|
|
120
|
+
[B.PROMOTION]: { label: "Insight", iconName: "icon-insight" },
|
|
121
|
+
[B.UNSET]: void 0,
|
|
122
|
+
[B.FACTOID]: { label: "Insight", iconName: "icon-insight" },
|
|
123
|
+
[B.POLL]: { label: "Poll", iconName: "icon-poll" },
|
|
124
|
+
[B.TRIVIA]: { label: "Trivia", iconName: "icon-trivia" },
|
|
125
|
+
[B.PREDICTION]: { label: "Prediction", iconName: "icon-prediction" }
|
|
126
|
+
}, yt = /* @__PURE__ */ l("div")({
|
|
127
127
|
name: "Container",
|
|
128
128
|
class: "c1bgb86j",
|
|
129
129
|
propsAsIs: !1
|
|
130
|
-
}),
|
|
130
|
+
}), At = /* @__PURE__ */ l("video")({
|
|
131
131
|
name: "Player",
|
|
132
132
|
class: "p6703cq",
|
|
133
133
|
propsAsIs: !1
|
|
134
|
-
}),
|
|
134
|
+
}), zt = /* @__PURE__ */ l("img")({
|
|
135
135
|
name: "Poster",
|
|
136
136
|
class: "p12ow7zo",
|
|
137
137
|
propsAsIs: !1
|
|
138
|
-
}),
|
|
138
|
+
}), xt = /* @__PURE__ */ l("div")({
|
|
139
139
|
name: "Control",
|
|
140
140
|
class: "cdpal9o",
|
|
141
141
|
propsAsIs: !1
|
|
142
|
-
}),
|
|
143
|
-
const
|
|
144
|
-
return /* @__PURE__ */
|
|
145
|
-
const o =
|
|
146
|
-
o &&
|
|
142
|
+
}), Et = ({ poster: s, source: n }) => {
|
|
143
|
+
const c = je(null), [I, T] = W(!1), [D, N] = W(!0);
|
|
144
|
+
return /* @__PURE__ */ d(yt, { onClick: () => {
|
|
145
|
+
const o = c == null ? void 0 : c.current;
|
|
146
|
+
o && T((h) => h ? (o.pause(), !1) : (o.play(), N(!1), !0));
|
|
147
147
|
}, children: [
|
|
148
|
-
/* @__PURE__ */
|
|
149
|
-
|
|
148
|
+
/* @__PURE__ */ u(
|
|
149
|
+
At,
|
|
150
150
|
{
|
|
151
|
-
ref:
|
|
151
|
+
ref: c,
|
|
152
152
|
src: n,
|
|
153
153
|
onEnded: () => {
|
|
154
154
|
var o;
|
|
155
|
-
(o =
|
|
155
|
+
(o = c == null ? void 0 : c.current) == null || o.load(), T(!1), N(!0);
|
|
156
156
|
},
|
|
157
|
-
style: { visibility:
|
|
157
|
+
style: { visibility: D ? "hidden" : "visible" }
|
|
158
158
|
}
|
|
159
159
|
),
|
|
160
|
-
/* @__PURE__ */
|
|
161
|
-
/* @__PURE__ */
|
|
160
|
+
/* @__PURE__ */ u(zt, { src: s, style: { visibility: D ? "visible" : "hidden" } }),
|
|
161
|
+
/* @__PURE__ */ u(xt, { children: !I && /* @__PURE__ */ u(b, { name: "icon-play" }) })
|
|
162
162
|
] });
|
|
163
|
-
},
|
|
163
|
+
}, ft = /* @__PURE__ */ l("div")({
|
|
164
164
|
name: "InsightContainer",
|
|
165
165
|
class: "i1pqqgpo",
|
|
166
166
|
propsAsIs: !1
|
|
167
|
-
}),
|
|
167
|
+
}), Ot = /* @__PURE__ */ l("img")({
|
|
168
168
|
name: "Image",
|
|
169
169
|
class: "igj7luu",
|
|
170
170
|
propsAsIs: !1
|
|
171
|
-
}),
|
|
171
|
+
}), Lt = /* @__PURE__ */ l("div")({
|
|
172
172
|
name: "InsightContent",
|
|
173
173
|
class: "i1qne9g6",
|
|
174
174
|
propsAsIs: !1
|
|
175
|
-
}),
|
|
175
|
+
}), wt = /* @__PURE__ */ l("h3")({
|
|
176
176
|
name: "Title",
|
|
177
177
|
class: "ttpr98r",
|
|
178
178
|
propsAsIs: !1
|
|
179
|
-
}),
|
|
179
|
+
}), mt = /* @__PURE__ */ l("div")({
|
|
180
180
|
name: "Description",
|
|
181
181
|
class: "d17iaqp8",
|
|
182
182
|
propsAsIs: !1
|
|
183
|
-
}),
|
|
183
|
+
}), kt = /* @__PURE__ */ l("button")({
|
|
184
184
|
name: "ActionBtn",
|
|
185
185
|
class: "a16t3y7s",
|
|
186
186
|
propsAsIs: !1
|
|
187
|
-
}),
|
|
187
|
+
}), Ct = ({
|
|
188
188
|
video: s,
|
|
189
189
|
image: n,
|
|
190
|
-
heading:
|
|
191
|
-
body:
|
|
192
|
-
action:
|
|
193
|
-
}) => /* @__PURE__ */
|
|
194
|
-
(s == null ? void 0 : s.url) && /* @__PURE__ */
|
|
195
|
-
n && !(s != null && s.url) && /* @__PURE__ */
|
|
196
|
-
/* @__PURE__ */
|
|
197
|
-
/* @__PURE__ */
|
|
198
|
-
/* @__PURE__ */
|
|
199
|
-
|
|
190
|
+
heading: c,
|
|
191
|
+
body: I,
|
|
192
|
+
action: T
|
|
193
|
+
}) => /* @__PURE__ */ d(ft, { children: [
|
|
194
|
+
(s == null ? void 0 : s.url) && /* @__PURE__ */ u(Et, { source: s.url, poster: s.thumbnailUrl }),
|
|
195
|
+
n && !(s != null && s.url) && /* @__PURE__ */ u(Ot, { src: n }),
|
|
196
|
+
/* @__PURE__ */ d(Lt, { children: [
|
|
197
|
+
/* @__PURE__ */ u(wt, { children: c }),
|
|
198
|
+
/* @__PURE__ */ u(mt, { children: I }),
|
|
199
|
+
T && /* @__PURE__ */ u(kt, { onClick: T, children: "View Insight" })
|
|
200
200
|
] })
|
|
201
|
-
] }),
|
|
201
|
+
] }), St = /* @__PURE__ */ l("div")({
|
|
202
202
|
name: "Container",
|
|
203
203
|
class: "c1eptrjd",
|
|
204
204
|
propsAsIs: !1
|
|
205
|
-
}),
|
|
205
|
+
}), Ut = /* @__PURE__ */ l("div")({
|
|
206
206
|
name: "CloseIconWrap",
|
|
207
207
|
class: "crylm65",
|
|
208
208
|
propsAsIs: !1
|
|
209
|
-
}),
|
|
209
|
+
}), Yt = () => b, Qt = /* @__PURE__ */ l(Yt())({
|
|
210
210
|
name: "CloseIcon",
|
|
211
211
|
class: "c9mrcz7",
|
|
212
212
|
propsAsIs: !0
|
|
213
|
-
}),
|
|
213
|
+
}), bt = /* @__PURE__ */ l("div")({
|
|
214
214
|
name: "Header",
|
|
215
215
|
class: "hw3lzv4",
|
|
216
216
|
propsAsIs: !1
|
|
217
|
-
}),
|
|
217
|
+
}), vt = () => b, Bt = /* @__PURE__ */ l(vt())({
|
|
218
218
|
name: "TypeIcon",
|
|
219
219
|
class: "t1rrb3kf",
|
|
220
220
|
propsAsIs: !0
|
|
221
|
-
}),
|
|
221
|
+
}), _t = /* @__PURE__ */ l("span")({
|
|
222
222
|
name: "TypeName",
|
|
223
223
|
class: "t1ydnjov",
|
|
224
224
|
propsAsIs: !1
|
|
225
|
-
}),
|
|
225
|
+
}), Ft = /* @__PURE__ */ l("div")({
|
|
226
226
|
name: "Question",
|
|
227
227
|
class: "qlf90cl",
|
|
228
228
|
propsAsIs: !1
|
|
229
|
-
}),
|
|
229
|
+
}), $t = /* @__PURE__ */ l("button")({
|
|
230
230
|
name: "AnswerButton",
|
|
231
231
|
class: "a1e0nhcl",
|
|
232
232
|
propsAsIs: !1
|
|
233
|
-
}),
|
|
233
|
+
}), Rt = /* @__PURE__ */ l("div")({
|
|
234
234
|
name: "Container",
|
|
235
235
|
class: "cjq447q",
|
|
236
236
|
propsAsIs: !1
|
|
237
|
-
}),
|
|
237
|
+
}), Wt = /* @__PURE__ */ l("div")({
|
|
238
238
|
name: "ImageContainer",
|
|
239
239
|
class: "i14egogb",
|
|
240
240
|
propsAsIs: !1
|
|
241
|
-
}),
|
|
241
|
+
}), Gt = /* @__PURE__ */ l("img")({
|
|
242
242
|
name: "Image",
|
|
243
243
|
class: "i2g9g4l",
|
|
244
244
|
propsAsIs: !1
|
|
245
|
-
}),
|
|
245
|
+
}), Pt = () => b, Zt = /* @__PURE__ */ l(Pt())({
|
|
246
246
|
name: "TwitterIcon",
|
|
247
247
|
class: "t1c454nm",
|
|
248
248
|
propsAsIs: !0
|
|
249
|
-
}),
|
|
249
|
+
}), Vt = /* @__PURE__ */ l("div")({
|
|
250
250
|
name: "Details",
|
|
251
251
|
class: "d11nigc3",
|
|
252
252
|
propsAsIs: !1
|
|
253
|
-
}),
|
|
253
|
+
}), qt = /* @__PURE__ */ l("div")({
|
|
254
254
|
name: "Name",
|
|
255
255
|
class: "nrxa4k8",
|
|
256
256
|
propsAsIs: !1
|
|
257
|
-
}),
|
|
257
|
+
}), Ht = /* @__PURE__ */ l("div")({
|
|
258
258
|
name: "UserName",
|
|
259
259
|
class: "u1p051g3",
|
|
260
260
|
propsAsIs: !1
|
|
261
|
-
}),
|
|
262
|
-
s && /* @__PURE__ */
|
|
263
|
-
/* @__PURE__ */
|
|
264
|
-
/* @__PURE__ */
|
|
261
|
+
}), Jt = ({ image: s, name: n, userName: c, verified: I }) => /* @__PURE__ */ d(Rt, { children: [
|
|
262
|
+
s && /* @__PURE__ */ d(Wt, { children: [
|
|
263
|
+
/* @__PURE__ */ u(Gt, { src: s }),
|
|
264
|
+
/* @__PURE__ */ u(Zt, { name: "twitter" })
|
|
265
265
|
] }),
|
|
266
|
-
/* @__PURE__ */
|
|
267
|
-
/* @__PURE__ */
|
|
266
|
+
/* @__PURE__ */ d(Vt, { children: [
|
|
267
|
+
/* @__PURE__ */ d(qt, { children: [
|
|
268
268
|
n,
|
|
269
269
|
" ",
|
|
270
|
-
|
|
270
|
+
I && /* @__PURE__ */ u(b, { name: "icon-twitter-verified" })
|
|
271
271
|
] }),
|
|
272
|
-
|
|
272
|
+
c && /* @__PURE__ */ d(Ht, { children: [
|
|
273
273
|
"@",
|
|
274
|
-
|
|
274
|
+
c
|
|
275
275
|
] })
|
|
276
276
|
] })
|
|
277
|
-
] }),
|
|
277
|
+
] }), Xt = /* @__PURE__ */ l("div")({
|
|
278
278
|
name: "Container",
|
|
279
279
|
class: "c1kzqw87",
|
|
280
280
|
propsAsIs: !1
|
|
281
|
-
}),
|
|
281
|
+
}), Kt = /* @__PURE__ */ l("div")({
|
|
282
282
|
name: "Details",
|
|
283
283
|
class: "d9r1hf9",
|
|
284
284
|
propsAsIs: !1
|
|
285
|
-
}), er = /* @__PURE__ */
|
|
285
|
+
}), er = /* @__PURE__ */ l("div")({
|
|
286
286
|
name: "Body",
|
|
287
287
|
class: "bezygt5",
|
|
288
288
|
propsAsIs: !1
|
|
289
|
-
}),
|
|
290
|
-
/* @__PURE__ */
|
|
291
|
-
/* @__PURE__ */
|
|
292
|
-
] }) }),
|
|
289
|
+
}), ir = ({ image: s, body: n, account: c, accountVerified: I }) => /* @__PURE__ */ u(Xt, { children: /* @__PURE__ */ d(Kt, { children: [
|
|
290
|
+
/* @__PURE__ */ u(Jt, { image: s, name: c, userName: c, verified: I }),
|
|
291
|
+
/* @__PURE__ */ u(er, { children: n })
|
|
292
|
+
] }) }), tr = /* @__PURE__ */ l("div")({
|
|
293
293
|
name: "Container",
|
|
294
294
|
class: "c1t4f0x4",
|
|
295
295
|
propsAsIs: !1
|
|
296
|
-
}), rr = /* @__PURE__ */
|
|
296
|
+
}), rr = /* @__PURE__ */ l("button")({
|
|
297
297
|
name: "ActionBtn",
|
|
298
298
|
class: "a16w1nl6",
|
|
299
299
|
propsAsIs: !1
|
|
300
|
-
}), nr = /* @__PURE__ */
|
|
300
|
+
}), nr = /* @__PURE__ */ l("div")({
|
|
301
301
|
name: "QuoteWrap",
|
|
302
302
|
class: "q14u54rf",
|
|
303
303
|
propsAsIs: !1
|
|
304
|
-
}), sr = /* @__PURE__ */
|
|
304
|
+
}), sr = /* @__PURE__ */ l("blockquote")({
|
|
305
305
|
name: "Quote",
|
|
306
306
|
class: "q1hxm6zo",
|
|
307
307
|
propsAsIs: !1
|
|
308
|
-
}), or = ({ action: s, ...n }) => /* @__PURE__ */
|
|
309
|
-
n.title && /* @__PURE__ */
|
|
310
|
-
/* @__PURE__ */
|
|
311
|
-
s && /* @__PURE__ */
|
|
312
|
-
] }),
|
|
308
|
+
}), or = ({ action: s, ...n }) => /* @__PURE__ */ d(tr, { children: [
|
|
309
|
+
n.title && /* @__PURE__ */ u(nr, { children: /* @__PURE__ */ u(sr, { children: n.title }) }),
|
|
310
|
+
/* @__PURE__ */ u(ir, { ...n }),
|
|
311
|
+
s && /* @__PURE__ */ u(rr, { onClick: s, children: "View Insight" })
|
|
312
|
+
] }), ei = ({
|
|
313
313
|
close: s,
|
|
314
314
|
action: n,
|
|
315
|
-
data: { questionType:
|
|
315
|
+
data: { questionType: c, question: I, insight: T, tweet: D }
|
|
316
316
|
}) => {
|
|
317
|
-
const
|
|
318
|
-
return
|
|
319
|
-
/* @__PURE__ */
|
|
320
|
-
|
|
321
|
-
/* @__PURE__ */
|
|
322
|
-
|
|
317
|
+
const N = pt[c];
|
|
318
|
+
return N ? /* @__PURE__ */ d(St, { children: [
|
|
319
|
+
/* @__PURE__ */ u(Ut, { onClick: s, children: /* @__PURE__ */ u(Qt, { name: "icon-cross" }) }),
|
|
320
|
+
c !== B.TWEET && /* @__PURE__ */ d(bt, { children: [
|
|
321
|
+
/* @__PURE__ */ u(
|
|
322
|
+
Bt,
|
|
323
323
|
{
|
|
324
|
-
"data-type-trivia":
|
|
325
|
-
"data-type-poll":
|
|
326
|
-
name:
|
|
324
|
+
"data-type-trivia": c === B.TRIVIA,
|
|
325
|
+
"data-type-poll": c === B.POLL,
|
|
326
|
+
name: N.iconName
|
|
327
327
|
}
|
|
328
328
|
),
|
|
329
|
-
/* @__PURE__ */
|
|
329
|
+
/* @__PURE__ */ u(_t, { children: N.label })
|
|
330
330
|
] }),
|
|
331
|
-
|
|
332
|
-
|
|
331
|
+
c === B.FACTOID && /* @__PURE__ */ u(Ct, { ...T, action: n }),
|
|
332
|
+
c === B.TWEET && // ToDo: connect with real Api data
|
|
333
333
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
334
334
|
// @ts-ignore
|
|
335
|
-
/* @__PURE__ */
|
|
336
|
-
|
|
337
|
-
/* @__PURE__ */
|
|
338
|
-
/* @__PURE__ */
|
|
335
|
+
/* @__PURE__ */ u(or, { ...D, action: n }),
|
|
336
|
+
c !== B.FACTOID && c !== B.TWEET && /* @__PURE__ */ d(te, { children: [
|
|
337
|
+
/* @__PURE__ */ u(Ft, { children: I == null ? void 0 : I.title }),
|
|
338
|
+
/* @__PURE__ */ u($t, { onClick: n, children: "Answer" })
|
|
339
339
|
] })
|
|
340
340
|
] }) : null;
|
|
341
|
-
}, oe = /* @__PURE__ */
|
|
341
|
+
}, oe = /* @__PURE__ */ l("div")({
|
|
342
342
|
name: "BGWrap",
|
|
343
343
|
class: "b1dqe0sz",
|
|
344
344
|
propsAsIs: !1
|
|
345
|
-
}),
|
|
345
|
+
}), _ = /* @__PURE__ */ l("div")({
|
|
346
346
|
name: "BGLineBase",
|
|
347
347
|
class: "b1v6w7ni",
|
|
348
348
|
propsAsIs: !1
|
|
349
|
-
}),
|
|
349
|
+
}), Mr = () => _, cr = /* @__PURE__ */ l(Mr())({
|
|
350
350
|
name: "BGOneLineOne",
|
|
351
351
|
class: "b2nqb1p",
|
|
352
352
|
propsAsIs: !0
|
|
353
|
-
}),
|
|
353
|
+
}), ur = () => _, ar = /* @__PURE__ */ l(ur())({
|
|
354
354
|
name: "BGOneLineTwo",
|
|
355
355
|
class: "b1xxgmbk",
|
|
356
356
|
propsAsIs: !0
|
|
357
|
-
}),
|
|
357
|
+
}), lr = () => _, Nr = /* @__PURE__ */ l(lr())({
|
|
358
358
|
name: "BGOneLineThree",
|
|
359
359
|
class: "b63lwcb",
|
|
360
360
|
propsAsIs: !0
|
|
361
|
-
}),
|
|
361
|
+
}), gr = () => _, ii = /* @__PURE__ */ l(gr())({
|
|
362
362
|
name: "BGTwoLineOne",
|
|
363
363
|
class: "b2iah4",
|
|
364
364
|
propsAsIs: !0
|
|
365
|
-
}),
|
|
365
|
+
}), Ir = () => _, ti = /* @__PURE__ */ l(Ir())({
|
|
366
366
|
name: "BGTwoLineTwo",
|
|
367
367
|
class: "b1xezvf6",
|
|
368
368
|
propsAsIs: !0
|
|
369
|
-
}),
|
|
369
|
+
}), Dr = () => _, ri = /* @__PURE__ */ l(Dr())({
|
|
370
370
|
name: "BGTwoLineThree",
|
|
371
371
|
class: "b1jz1hg0",
|
|
372
372
|
propsAsIs: !0
|
|
373
|
-
}),
|
|
373
|
+
}), Tr = () => _, ni = /* @__PURE__ */ l(Tr())({
|
|
374
374
|
name: "BGThreeLineOne",
|
|
375
375
|
class: "b18ho1tk",
|
|
376
376
|
propsAsIs: !0
|
|
377
|
-
}),
|
|
377
|
+
}), jr = () => _, si = /* @__PURE__ */ l(jr())({
|
|
378
378
|
name: "BGThreeLineTwo",
|
|
379
379
|
class: "b14uvjfm",
|
|
380
380
|
propsAsIs: !0
|
|
381
|
-
}),
|
|
381
|
+
}), hr = () => _, oi = /* @__PURE__ */ l(hr())({
|
|
382
382
|
name: "BGThreeLineThree",
|
|
383
383
|
class: "b11c3ns7",
|
|
384
384
|
propsAsIs: !0
|
|
385
|
-
}),
|
|
385
|
+
}), dr = () => _, Mi = /* @__PURE__ */ l(dr())({
|
|
386
386
|
name: "BGThreeLineFour",
|
|
387
387
|
class: "b1bqhhet",
|
|
388
388
|
propsAsIs: !0
|
|
389
|
-
}),
|
|
389
|
+
}), pr = () => _, yr = /* @__PURE__ */ l(pr())({
|
|
390
390
|
name: "BGFourLineOne",
|
|
391
391
|
class: "b1xyzi7o",
|
|
392
392
|
propsAsIs: !0
|
|
393
|
-
}),
|
|
393
|
+
}), Ar = () => _, zr = /* @__PURE__ */ l(Ar())({
|
|
394
394
|
name: "BGFourLineTwo",
|
|
395
395
|
class: "byo0rup",
|
|
396
396
|
propsAsIs: !0
|
|
397
|
-
}),
|
|
397
|
+
}), xr = () => _, Er = /* @__PURE__ */ l(xr())({
|
|
398
398
|
name: "BGFourLineThree",
|
|
399
399
|
class: "b1oyiqgv",
|
|
400
400
|
propsAsIs: !0
|
|
401
|
-
}),
|
|
401
|
+
}), fr = () => _, Or = /* @__PURE__ */ l(fr())({
|
|
402
402
|
name: "BGFourLineFour",
|
|
403
403
|
class: "bx3ddqw",
|
|
404
404
|
propsAsIs: !0
|
|
405
|
-
}),
|
|
406
|
-
/* @__PURE__ */
|
|
407
|
-
/* @__PURE__ */
|
|
408
|
-
/* @__PURE__ */
|
|
409
|
-
/* @__PURE__ */
|
|
405
|
+
}), Lr = ({ step: s, correct: n }) => /* @__PURE__ */ d(te, { children: [
|
|
406
|
+
/* @__PURE__ */ d(oe, { "data-active": s === 1, "data-first-screen": "true", children: [
|
|
407
|
+
/* @__PURE__ */ u(cr, {}),
|
|
408
|
+
/* @__PURE__ */ u(ar, {}),
|
|
409
|
+
/* @__PURE__ */ u(Nr, {})
|
|
410
410
|
] }),
|
|
411
|
-
/* @__PURE__ */
|
|
412
|
-
/* @__PURE__ */
|
|
413
|
-
/* @__PURE__ */
|
|
414
|
-
/* @__PURE__ */
|
|
411
|
+
/* @__PURE__ */ d(oe, { "data-active": s === 2, children: [
|
|
412
|
+
/* @__PURE__ */ u(ii, {}),
|
|
413
|
+
/* @__PURE__ */ u(ti, {}),
|
|
414
|
+
/* @__PURE__ */ u(ri, {})
|
|
415
415
|
] }),
|
|
416
|
-
/* @__PURE__ */
|
|
417
|
-
/* @__PURE__ */
|
|
418
|
-
/* @__PURE__ */
|
|
419
|
-
/* @__PURE__ */
|
|
416
|
+
/* @__PURE__ */ d(oe, { "data-active": s === 3, children: [
|
|
417
|
+
/* @__PURE__ */ u(ii, {}),
|
|
418
|
+
/* @__PURE__ */ u(ti, {}),
|
|
419
|
+
/* @__PURE__ */ u(ri, {})
|
|
420
420
|
] }),
|
|
421
|
-
n ? /* @__PURE__ */
|
|
422
|
-
/* @__PURE__ */
|
|
423
|
-
/* @__PURE__ */
|
|
424
|
-
/* @__PURE__ */
|
|
425
|
-
/* @__PURE__ */
|
|
426
|
-
/* @__PURE__ */
|
|
421
|
+
n ? /* @__PURE__ */ d(te, { children: [
|
|
422
|
+
/* @__PURE__ */ d(oe, { "data-active": s === 4, "data-correct": "false", children: [
|
|
423
|
+
/* @__PURE__ */ u(ni, {}),
|
|
424
|
+
/* @__PURE__ */ u(si, {}),
|
|
425
|
+
/* @__PURE__ */ u(oi, {}),
|
|
426
|
+
/* @__PURE__ */ u(Mi, {})
|
|
427
427
|
] }),
|
|
428
|
-
/* @__PURE__ */
|
|
429
|
-
/* @__PURE__ */
|
|
430
|
-
/* @__PURE__ */
|
|
431
|
-
/* @__PURE__ */
|
|
432
|
-
/* @__PURE__ */
|
|
428
|
+
/* @__PURE__ */ d(oe, { "data-active": s === 5, "data-correct": "false", "data-last-screen": "true", children: [
|
|
429
|
+
/* @__PURE__ */ u(ni, {}),
|
|
430
|
+
/* @__PURE__ */ u(si, {}),
|
|
431
|
+
/* @__PURE__ */ u(oi, {}),
|
|
432
|
+
/* @__PURE__ */ u(Mi, {})
|
|
433
433
|
] })
|
|
434
|
-
] }) : /* @__PURE__ */
|
|
435
|
-
/* @__PURE__ */
|
|
436
|
-
/* @__PURE__ */
|
|
437
|
-
/* @__PURE__ */
|
|
438
|
-
/* @__PURE__ */
|
|
434
|
+
] }) : /* @__PURE__ */ d(oe, { "data-active": s === 4, "data-correct": "false", "data-last-screen": "true", children: [
|
|
435
|
+
/* @__PURE__ */ u(yr, {}),
|
|
436
|
+
/* @__PURE__ */ u(zr, {}),
|
|
437
|
+
/* @__PURE__ */ u(Er, {}),
|
|
438
|
+
/* @__PURE__ */ u(Or, {})
|
|
439
439
|
] })
|
|
440
|
-
] }),
|
|
440
|
+
] }), wr = /* @__PURE__ */ l("div")({
|
|
441
441
|
name: "Container",
|
|
442
442
|
class: "c1pgyo67",
|
|
443
443
|
propsAsIs: !1
|
|
444
|
-
}),
|
|
444
|
+
}), mr = "hx17qu6", Be = ({
|
|
445
445
|
children: s,
|
|
446
446
|
style: n,
|
|
447
|
-
className:
|
|
448
|
-
hiding:
|
|
449
|
-
}) => /* @__PURE__ */
|
|
447
|
+
className: c,
|
|
448
|
+
hiding: I
|
|
449
|
+
}) => /* @__PURE__ */ u(wr, {
|
|
450
450
|
style: n,
|
|
451
|
-
className:
|
|
451
|
+
className: hi(c, I && mr),
|
|
452
452
|
children: s
|
|
453
|
-
}), kr = 118,
|
|
453
|
+
}), kr = 118, Cr = () => Be, Sr = /* @__PURE__ */ l(Cr())({
|
|
454
454
|
name: "Container",
|
|
455
455
|
class: "c10131zw",
|
|
456
456
|
propsAsIs: !0
|
|
457
|
-
}),
|
|
457
|
+
}), Ur = /* @__PURE__ */ l("div")({
|
|
458
458
|
name: "InnerContainer",
|
|
459
459
|
class: "ir6k2eo",
|
|
460
460
|
propsAsIs: !1
|
|
461
|
-
}),
|
|
461
|
+
}), Me = /* @__PURE__ */ l("div")({
|
|
462
462
|
name: "Content",
|
|
463
463
|
class: "c1hwoq9l",
|
|
464
464
|
propsAsIs: !1
|
|
465
|
-
}),
|
|
465
|
+
}), ce = /* @__PURE__ */ l("div")({
|
|
466
466
|
name: "Title",
|
|
467
467
|
class: "t4ujo4g",
|
|
468
468
|
propsAsIs: !1
|
|
469
|
-
}),
|
|
469
|
+
}), Te = /* @__PURE__ */ l("div")({
|
|
470
470
|
name: "Subtitle",
|
|
471
471
|
class: "s1pjil1h",
|
|
472
472
|
propsAsIs: !1
|
|
473
|
-
}),
|
|
473
|
+
}), Yr = () => Te, ci = /* @__PURE__ */ l(Yr())({
|
|
474
474
|
name: "SubtitleFG",
|
|
475
475
|
class: "s1iorwr9",
|
|
476
476
|
propsAsIs: !0
|
|
477
|
-
}),
|
|
477
|
+
}), de = /* @__PURE__ */ l("div")({
|
|
478
478
|
name: "AnswerText",
|
|
479
479
|
class: "a51sv9d",
|
|
480
480
|
propsAsIs: !1
|
|
481
|
-
}),
|
|
481
|
+
}), Qr = () => b, Le = /* @__PURE__ */ l(Qr())({
|
|
482
482
|
name: "FeedbackIcon",
|
|
483
483
|
class: "f1lbk2ye",
|
|
484
484
|
propsAsIs: !0
|
|
485
|
-
}),
|
|
485
|
+
}), ui = /* @__PURE__ */ l("button")({
|
|
486
486
|
name: "CloseButton",
|
|
487
487
|
class: "crcvk3t",
|
|
488
488
|
propsAsIs: !1
|
|
489
|
-
}),
|
|
489
|
+
}), br = () => b, ai = /* @__PURE__ */ l(br())({
|
|
490
490
|
name: "CloseIcon",
|
|
491
491
|
class: "c33p82r",
|
|
492
492
|
propsAsIs: !0
|
|
493
|
-
}),
|
|
494
|
-
const [
|
|
495
|
-
|
|
496
|
-
const
|
|
497
|
-
|
|
493
|
+
}), ue = (s, n) => s === n ? "translateY(0px)" : s > n ? "translateY(100%)" : "translateY(-100%)", vr = ({ close: s, votedAnswer: n, correct: c, correctAnswerTitle: I, questionTitle: T, saveHeight: D, style: N, hiding: o }) => {
|
|
494
|
+
const [h, A] = W(1), y = je({});
|
|
495
|
+
J(() => {
|
|
496
|
+
const j = setInterval(() => {
|
|
497
|
+
A((p) => c && p > 4 || !c && p > 3 ? p : ++p);
|
|
498
498
|
}, 6e3);
|
|
499
|
-
return () => clearInterval(
|
|
500
|
-
}, [
|
|
501
|
-
var
|
|
502
|
-
|
|
503
|
-
}, [
|
|
504
|
-
const
|
|
505
|
-
|
|
499
|
+
return () => clearInterval(j);
|
|
500
|
+
}, [c]), J(() => {
|
|
501
|
+
var j, p;
|
|
502
|
+
y.current[h] && D(((p = (j = y.current[h]) == null ? void 0 : j.getBoundingClientRect()) == null ? void 0 : p.height) || kr);
|
|
503
|
+
}, [h, D]);
|
|
504
|
+
const E = (j) => (p) => {
|
|
505
|
+
y.current && (y.current[j] = p);
|
|
506
506
|
};
|
|
507
|
-
return /* @__PURE__ */
|
|
508
|
-
|
|
507
|
+
return /* @__PURE__ */ u(Sr, { style: N.height ? N : { ...N, paddingTop: 0, paddingBottom: 0 }, hiding: o, children: /* @__PURE__ */ d(
|
|
508
|
+
Ur,
|
|
509
509
|
{
|
|
510
510
|
style: {
|
|
511
|
-
height:
|
|
512
|
-
minHeight:
|
|
513
|
-
backgroundColor:
|
|
511
|
+
height: N.height,
|
|
512
|
+
minHeight: N.height,
|
|
513
|
+
backgroundColor: h > 3 ? "var(--color-white)" : "var(--color-primary-green2)"
|
|
514
514
|
},
|
|
515
515
|
children: [
|
|
516
|
-
/* @__PURE__ */
|
|
517
|
-
/* @__PURE__ */
|
|
518
|
-
/* @__PURE__ */
|
|
519
|
-
/* @__PURE__ */
|
|
516
|
+
/* @__PURE__ */ u(Lr, { step: h, correct: c }),
|
|
517
|
+
/* @__PURE__ */ d(Me, { ref: E(1), style: { transform: ue(1, h) }, children: [
|
|
518
|
+
/* @__PURE__ */ u(ce, { children: "Master" }),
|
|
519
|
+
/* @__PURE__ */ u(ci, { children: "FEATURED GROUPS +" })
|
|
520
520
|
] }),
|
|
521
|
-
/* @__PURE__ */
|
|
522
|
-
/* @__PURE__ */
|
|
523
|
-
/* @__PURE__ */
|
|
521
|
+
/* @__PURE__ */ d(Me, { ref: E(2), style: { transform: ue(2, h) }, children: [
|
|
522
|
+
/* @__PURE__ */ u(ce, { children: "Prediction results are in!" }),
|
|
523
|
+
/* @__PURE__ */ u(ci, { children: "FEATURED GROUPS +" })
|
|
524
524
|
] }),
|
|
525
|
-
/* @__PURE__ */
|
|
526
|
-
/* @__PURE__ */
|
|
527
|
-
/* @__PURE__ */
|
|
525
|
+
/* @__PURE__ */ d(Me, { ref: E(3), style: { transform: ue(3, h) }, children: [
|
|
526
|
+
/* @__PURE__ */ u(ce, { children: T }),
|
|
527
|
+
/* @__PURE__ */ u(Te, { children: /* @__PURE__ */ d(de, { children: [
|
|
528
528
|
"Your Pick: ",
|
|
529
529
|
n == null ? void 0 : n.title
|
|
530
530
|
] }) })
|
|
531
531
|
] }),
|
|
532
|
-
|
|
533
|
-
/* @__PURE__ */
|
|
534
|
-
|
|
532
|
+
c ? /* @__PURE__ */ d(te, { children: [
|
|
533
|
+
/* @__PURE__ */ d(
|
|
534
|
+
Me,
|
|
535
535
|
{
|
|
536
|
-
ref:
|
|
537
|
-
style: { transform:
|
|
536
|
+
ref: E(4),
|
|
537
|
+
style: { transform: ue(4, h), color: "var(--color-primary-green1)" },
|
|
538
538
|
children: [
|
|
539
|
-
/* @__PURE__ */
|
|
540
|
-
/* @__PURE__ */
|
|
541
|
-
/* @__PURE__ */
|
|
542
|
-
/* @__PURE__ */
|
|
539
|
+
/* @__PURE__ */ u(ce, { children: "Congratulations! You answered correctly." }),
|
|
540
|
+
/* @__PURE__ */ d(Te, { children: [
|
|
541
|
+
/* @__PURE__ */ u(Le, { name: "selected" }),
|
|
542
|
+
/* @__PURE__ */ d(de, { children: [
|
|
543
543
|
"Your Pick: ",
|
|
544
544
|
n == null ? void 0 : n.title
|
|
545
545
|
] })
|
|
@@ -547,119 +547,119 @@ const ei = ({ feature: s, sdk: n, children: l, className: f }) => {
|
|
|
547
547
|
]
|
|
548
548
|
}
|
|
549
549
|
),
|
|
550
|
-
/* @__PURE__ */
|
|
551
|
-
|
|
550
|
+
/* @__PURE__ */ d(
|
|
551
|
+
Me,
|
|
552
552
|
{
|
|
553
|
-
ref:
|
|
554
|
-
style: { transform:
|
|
553
|
+
ref: E(5),
|
|
554
|
+
style: { transform: ue(5, h), color: "var(--color-primary-green1)" },
|
|
555
555
|
children: [
|
|
556
|
-
/* @__PURE__ */
|
|
556
|
+
/* @__PURE__ */ d(ce, { children: [
|
|
557
557
|
"+",
|
|
558
558
|
n == null ? void 0 : n.points,
|
|
559
559
|
" points"
|
|
560
560
|
] }),
|
|
561
|
-
/* @__PURE__ */
|
|
562
|
-
/* @__PURE__ */
|
|
563
|
-
/* @__PURE__ */
|
|
561
|
+
/* @__PURE__ */ d(Te, { children: [
|
|
562
|
+
/* @__PURE__ */ u(Le, { name: "selected" }),
|
|
563
|
+
/* @__PURE__ */ d(de, { children: [
|
|
564
564
|
"Your Pick: ",
|
|
565
565
|
n == null ? void 0 : n.title
|
|
566
566
|
] })
|
|
567
567
|
] }),
|
|
568
|
-
/* @__PURE__ */
|
|
568
|
+
/* @__PURE__ */ u(ui, { onClick: s, children: /* @__PURE__ */ u(ai, { name: "icon-cross" }) })
|
|
569
569
|
]
|
|
570
570
|
}
|
|
571
571
|
)
|
|
572
|
-
] }) : /* @__PURE__ */
|
|
573
|
-
/* @__PURE__ */
|
|
572
|
+
] }) : /* @__PURE__ */ d(Me, { ref: E(4), style: { transform: ue(4, h) }, children: [
|
|
573
|
+
/* @__PURE__ */ d(ce, { style: { color: "var(--color-neutrals-gray9)" }, children: [
|
|
574
574
|
"Better luck next time! Correct: ",
|
|
575
|
-
|
|
575
|
+
I,
|
|
576
576
|
"."
|
|
577
577
|
] }),
|
|
578
|
-
/* @__PURE__ */
|
|
579
|
-
/* @__PURE__ */
|
|
580
|
-
/* @__PURE__ */
|
|
578
|
+
/* @__PURE__ */ d(Te, { style: { color: "var(--color-secondary-red1)" }, children: [
|
|
579
|
+
/* @__PURE__ */ u(Le, { name: "circleClose" }),
|
|
580
|
+
/* @__PURE__ */ d(de, { children: [
|
|
581
581
|
"Your Pick: ",
|
|
582
582
|
n == null ? void 0 : n.title
|
|
583
583
|
] })
|
|
584
584
|
] }),
|
|
585
|
-
/* @__PURE__ */
|
|
585
|
+
/* @__PURE__ */ u(ui, { onClick: s, children: /* @__PURE__ */ u(ai, { name: "icon-cross" }) })
|
|
586
586
|
] })
|
|
587
587
|
]
|
|
588
588
|
}
|
|
589
589
|
) });
|
|
590
590
|
};
|
|
591
|
-
var
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
var V = [],
|
|
596
|
-
for (var
|
|
597
|
-
V[
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
function
|
|
591
|
+
var di = {}, pi = {}, xe = {};
|
|
592
|
+
xe.byteLength = Fr;
|
|
593
|
+
xe.toByteArray = Rr;
|
|
594
|
+
xe.fromByteArray = Pr;
|
|
595
|
+
var V = [], $ = [], Br = typeof Uint8Array < "u" ? Uint8Array : Array, we = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
|
|
596
|
+
for (var ae = 0, _r = we.length; ae < _r; ++ae)
|
|
597
|
+
V[ae] = we[ae], $[we.charCodeAt(ae)] = ae;
|
|
598
|
+
$["-".charCodeAt(0)] = 62;
|
|
599
|
+
$["_".charCodeAt(0)] = 63;
|
|
600
|
+
function yi(s) {
|
|
601
601
|
var n = s.length;
|
|
602
602
|
if (n % 4 > 0)
|
|
603
603
|
throw new Error("Invalid string. Length must be a multiple of 4");
|
|
604
|
-
var
|
|
605
|
-
|
|
606
|
-
var
|
|
607
|
-
return [
|
|
604
|
+
var c = s.indexOf("=");
|
|
605
|
+
c === -1 && (c = n);
|
|
606
|
+
var I = c === n ? 0 : 4 - c % 4;
|
|
607
|
+
return [c, I];
|
|
608
608
|
}
|
|
609
|
-
function
|
|
610
|
-
var n =
|
|
611
|
-
return (
|
|
609
|
+
function Fr(s) {
|
|
610
|
+
var n = yi(s), c = n[0], I = n[1];
|
|
611
|
+
return (c + I) * 3 / 4 - I;
|
|
612
612
|
}
|
|
613
|
-
function
|
|
614
|
-
return (n +
|
|
613
|
+
function $r(s, n, c) {
|
|
614
|
+
return (n + c) * 3 / 4 - c;
|
|
615
615
|
}
|
|
616
|
-
function
|
|
617
|
-
var n,
|
|
618
|
-
for (
|
|
619
|
-
n =
|
|
620
|
-
return
|
|
616
|
+
function Rr(s) {
|
|
617
|
+
var n, c = yi(s), I = c[0], T = c[1], D = new Br($r(s, I, T)), N = 0, o = T > 0 ? I - 4 : I, h;
|
|
618
|
+
for (h = 0; h < o; h += 4)
|
|
619
|
+
n = $[s.charCodeAt(h)] << 18 | $[s.charCodeAt(h + 1)] << 12 | $[s.charCodeAt(h + 2)] << 6 | $[s.charCodeAt(h + 3)], D[N++] = n >> 16 & 255, D[N++] = n >> 8 & 255, D[N++] = n & 255;
|
|
620
|
+
return T === 2 && (n = $[s.charCodeAt(h)] << 2 | $[s.charCodeAt(h + 1)] >> 4, D[N++] = n & 255), T === 1 && (n = $[s.charCodeAt(h)] << 10 | $[s.charCodeAt(h + 1)] << 4 | $[s.charCodeAt(h + 2)] >> 2, D[N++] = n >> 8 & 255, D[N++] = n & 255), D;
|
|
621
621
|
}
|
|
622
622
|
function Wr(s) {
|
|
623
623
|
return V[s >> 18 & 63] + V[s >> 12 & 63] + V[s >> 6 & 63] + V[s & 63];
|
|
624
624
|
}
|
|
625
|
-
function
|
|
626
|
-
for (var
|
|
627
|
-
|
|
628
|
-
return
|
|
625
|
+
function Gr(s, n, c) {
|
|
626
|
+
for (var I, T = [], D = n; D < c; D += 3)
|
|
627
|
+
I = (s[D] << 16 & 16711680) + (s[D + 1] << 8 & 65280) + (s[D + 2] & 255), T.push(Wr(I));
|
|
628
|
+
return T.join("");
|
|
629
629
|
}
|
|
630
|
-
function
|
|
631
|
-
for (var n,
|
|
632
|
-
|
|
633
|
-
return
|
|
630
|
+
function Pr(s) {
|
|
631
|
+
for (var n, c = s.length, I = c % 3, T = [], D = 16383, N = 0, o = c - I; N < o; N += D)
|
|
632
|
+
T.push(Gr(s, N, N + D > o ? o : N + D));
|
|
633
|
+
return I === 1 ? (n = s[c - 1], T.push(
|
|
634
634
|
V[n >> 2] + V[n << 4 & 63] + "=="
|
|
635
|
-
)) :
|
|
635
|
+
)) : I === 2 && (n = (s[c - 2] << 8) + s[c - 1], T.push(
|
|
636
636
|
V[n >> 10] + V[n >> 4 & 63] + V[n << 2 & 63] + "="
|
|
637
|
-
)),
|
|
637
|
+
)), T.join("");
|
|
638
638
|
}
|
|
639
|
-
var
|
|
639
|
+
var _e = {};
|
|
640
640
|
/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
|
|
641
|
-
|
|
642
|
-
var
|
|
643
|
-
for (
|
|
641
|
+
_e.read = function(s, n, c, I, T) {
|
|
642
|
+
var D, N, o = T * 8 - I - 1, h = (1 << o) - 1, A = h >> 1, y = -7, E = c ? T - 1 : 0, j = c ? -1 : 1, p = s[n + E];
|
|
643
|
+
for (E += j, D = p & (1 << -y) - 1, p >>= -y, y += o; y > 0; D = D * 256 + s[n + E], E += j, y -= 8)
|
|
644
644
|
;
|
|
645
|
-
for (
|
|
645
|
+
for (N = D & (1 << -y) - 1, D >>= -y, y += I; y > 0; N = N * 256 + s[n + E], E += j, y -= 8)
|
|
646
646
|
;
|
|
647
|
-
if (
|
|
648
|
-
|
|
647
|
+
if (D === 0)
|
|
648
|
+
D = 1 - A;
|
|
649
649
|
else {
|
|
650
|
-
if (
|
|
651
|
-
return
|
|
652
|
-
|
|
650
|
+
if (D === h)
|
|
651
|
+
return N ? NaN : (p ? -1 : 1) * (1 / 0);
|
|
652
|
+
N = N + Math.pow(2, I), D = D - A;
|
|
653
653
|
}
|
|
654
|
-
return (
|
|
654
|
+
return (p ? -1 : 1) * N * Math.pow(2, D - I);
|
|
655
655
|
};
|
|
656
|
-
|
|
657
|
-
var
|
|
658
|
-
for (n = Math.abs(n), isNaN(n) || n === 1 / 0 ? (o = isNaN(n) ? 1 : 0,
|
|
656
|
+
_e.write = function(s, n, c, I, T, D) {
|
|
657
|
+
var N, o, h, A = D * 8 - T - 1, y = (1 << A) - 1, E = y >> 1, j = T === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0, p = I ? 0 : D - 1, z = I ? 1 : -1, f = n < 0 || n === 0 && 1 / n < 0 ? 1 : 0;
|
|
658
|
+
for (n = Math.abs(n), isNaN(n) || n === 1 / 0 ? (o = isNaN(n) ? 1 : 0, N = y) : (N = Math.floor(Math.log(n) / Math.LN2), n * (h = Math.pow(2, -N)) < 1 && (N--, h *= 2), N + E >= 1 ? n += j / h : n += j * Math.pow(2, 1 - E), n * h >= 2 && (N++, h /= 2), N + E >= y ? (o = 0, N = y) : N + E >= 1 ? (o = (n * h - 1) * Math.pow(2, T), N = N + E) : (o = n * Math.pow(2, E - 1) * Math.pow(2, T), N = 0)); T >= 8; s[c + p] = o & 255, p += z, o /= 256, T -= 8)
|
|
659
659
|
;
|
|
660
|
-
for (
|
|
660
|
+
for (N = N << T | o, A += T; A > 0; s[c + p] = N & 255, p += z, N /= 256, A -= 8)
|
|
661
661
|
;
|
|
662
|
-
s[
|
|
662
|
+
s[c + p - z] |= f * 128;
|
|
663
663
|
};
|
|
664
664
|
/*!
|
|
665
665
|
* The buffer module from node.js, for the browser.
|
|
@@ -668,18 +668,18 @@ Pe.write = function(s, n, l, f, g, m) {
|
|
|
668
668
|
* @license MIT
|
|
669
669
|
*/
|
|
670
670
|
(function(s) {
|
|
671
|
-
const n =
|
|
672
|
-
s.Buffer = o, s.SlowBuffer =
|
|
673
|
-
const
|
|
674
|
-
s.kMaxLength =
|
|
671
|
+
const n = xe, c = _e, I = typeof Symbol == "function" && typeof Symbol.for == "function" ? Symbol.for("nodejs.util.inspect.custom") : null;
|
|
672
|
+
s.Buffer = o, s.SlowBuffer = w, s.INSPECT_MAX_BYTES = 50;
|
|
673
|
+
const T = 2147483647;
|
|
674
|
+
s.kMaxLength = T, o.TYPED_ARRAY_SUPPORT = D(), !o.TYPED_ARRAY_SUPPORT && typeof console < "u" && typeof console.error == "function" && console.error(
|
|
675
675
|
"This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."
|
|
676
676
|
);
|
|
677
|
-
function
|
|
677
|
+
function D() {
|
|
678
678
|
try {
|
|
679
|
-
const
|
|
679
|
+
const t = new Uint8Array(1), e = { foo: function() {
|
|
680
680
|
return 42;
|
|
681
681
|
} };
|
|
682
|
-
return Object.setPrototypeOf(e, Uint8Array.prototype), Object.setPrototypeOf(
|
|
682
|
+
return Object.setPrototypeOf(e, Uint8Array.prototype), Object.setPrototypeOf(t, e), t.foo() === 42;
|
|
683
683
|
} catch {
|
|
684
684
|
return !1;
|
|
685
685
|
}
|
|
@@ -697,136 +697,136 @@ Pe.write = function(s, n, l, f, g, m) {
|
|
|
697
697
|
return this.byteOffset;
|
|
698
698
|
}
|
|
699
699
|
});
|
|
700
|
-
function
|
|
701
|
-
if (
|
|
702
|
-
throw new RangeError('The value "' +
|
|
703
|
-
const e = new Uint8Array(
|
|
700
|
+
function N(t) {
|
|
701
|
+
if (t > T)
|
|
702
|
+
throw new RangeError('The value "' + t + '" is invalid for option "size"');
|
|
703
|
+
const e = new Uint8Array(t);
|
|
704
704
|
return Object.setPrototypeOf(e, o.prototype), e;
|
|
705
705
|
}
|
|
706
|
-
function o(
|
|
707
|
-
if (typeof
|
|
706
|
+
function o(t, e, i) {
|
|
707
|
+
if (typeof t == "number") {
|
|
708
708
|
if (typeof e == "string")
|
|
709
709
|
throw new TypeError(
|
|
710
710
|
'The "string" argument must be of type string. Received type number'
|
|
711
711
|
);
|
|
712
|
-
return
|
|
712
|
+
return E(t);
|
|
713
713
|
}
|
|
714
|
-
return
|
|
714
|
+
return h(t, e, i);
|
|
715
715
|
}
|
|
716
716
|
o.poolSize = 8192;
|
|
717
|
-
function
|
|
718
|
-
if (typeof
|
|
719
|
-
return
|
|
720
|
-
if (ArrayBuffer.isView(
|
|
721
|
-
return
|
|
722
|
-
if (
|
|
717
|
+
function h(t, e, i) {
|
|
718
|
+
if (typeof t == "string")
|
|
719
|
+
return j(t, e);
|
|
720
|
+
if (ArrayBuffer.isView(t))
|
|
721
|
+
return z(t);
|
|
722
|
+
if (t == null)
|
|
723
723
|
throw new TypeError(
|
|
724
|
-
"The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type " + typeof
|
|
724
|
+
"The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type " + typeof t
|
|
725
725
|
);
|
|
726
|
-
if (
|
|
727
|
-
return
|
|
728
|
-
if (typeof
|
|
726
|
+
if (G(t, ArrayBuffer) || t && G(t.buffer, ArrayBuffer) || typeof SharedArrayBuffer < "u" && (G(t, SharedArrayBuffer) || t && G(t.buffer, SharedArrayBuffer)))
|
|
727
|
+
return f(t, e, i);
|
|
728
|
+
if (typeof t == "number")
|
|
729
729
|
throw new TypeError(
|
|
730
730
|
'The "value" argument must not be of type number. Received type number'
|
|
731
731
|
);
|
|
732
|
-
const r =
|
|
733
|
-
if (r != null && r !==
|
|
734
|
-
return o.from(r, e,
|
|
735
|
-
const
|
|
736
|
-
if (
|
|
737
|
-
return
|
|
738
|
-
if (typeof Symbol < "u" && Symbol.toPrimitive != null && typeof
|
|
739
|
-
return o.from(
|
|
732
|
+
const r = t.valueOf && t.valueOf();
|
|
733
|
+
if (r != null && r !== t)
|
|
734
|
+
return o.from(r, e, i);
|
|
735
|
+
const M = U(t);
|
|
736
|
+
if (M)
|
|
737
|
+
return M;
|
|
738
|
+
if (typeof Symbol < "u" && Symbol.toPrimitive != null && typeof t[Symbol.toPrimitive] == "function")
|
|
739
|
+
return o.from(t[Symbol.toPrimitive]("string"), e, i);
|
|
740
740
|
throw new TypeError(
|
|
741
|
-
"The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type " + typeof
|
|
741
|
+
"The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type " + typeof t
|
|
742
742
|
);
|
|
743
743
|
}
|
|
744
|
-
o.from = function(
|
|
745
|
-
return
|
|
744
|
+
o.from = function(t, e, i) {
|
|
745
|
+
return h(t, e, i);
|
|
746
746
|
}, Object.setPrototypeOf(o.prototype, Uint8Array.prototype), Object.setPrototypeOf(o, Uint8Array);
|
|
747
|
-
function
|
|
748
|
-
if (typeof
|
|
747
|
+
function A(t) {
|
|
748
|
+
if (typeof t != "number")
|
|
749
749
|
throw new TypeError('"size" argument must be of type number');
|
|
750
|
-
if (
|
|
751
|
-
throw new RangeError('The value "' +
|
|
750
|
+
if (t < 0)
|
|
751
|
+
throw new RangeError('The value "' + t + '" is invalid for option "size"');
|
|
752
752
|
}
|
|
753
|
-
function
|
|
754
|
-
return
|
|
753
|
+
function y(t, e, i) {
|
|
754
|
+
return A(t), t <= 0 ? N(t) : e !== void 0 ? typeof i == "string" ? N(t).fill(e, i) : N(t).fill(e) : N(t);
|
|
755
755
|
}
|
|
756
|
-
o.alloc = function(
|
|
757
|
-
return
|
|
756
|
+
o.alloc = function(t, e, i) {
|
|
757
|
+
return y(t, e, i);
|
|
758
758
|
};
|
|
759
|
-
function
|
|
760
|
-
return
|
|
759
|
+
function E(t) {
|
|
760
|
+
return A(t), N(t < 0 ? 0 : O(t) | 0);
|
|
761
761
|
}
|
|
762
|
-
o.allocUnsafe = function(
|
|
763
|
-
return
|
|
764
|
-
}, o.allocUnsafeSlow = function(
|
|
765
|
-
return
|
|
762
|
+
o.allocUnsafe = function(t) {
|
|
763
|
+
return E(t);
|
|
764
|
+
}, o.allocUnsafeSlow = function(t) {
|
|
765
|
+
return E(t);
|
|
766
766
|
};
|
|
767
|
-
function
|
|
767
|
+
function j(t, e) {
|
|
768
768
|
if ((typeof e != "string" || e === "") && (e = "utf8"), !o.isEncoding(e))
|
|
769
769
|
throw new TypeError("Unknown encoding: " + e);
|
|
770
|
-
const
|
|
771
|
-
let r =
|
|
772
|
-
const
|
|
773
|
-
return
|
|
770
|
+
const i = Q(t, e) | 0;
|
|
771
|
+
let r = N(i);
|
|
772
|
+
const M = r.write(t, e);
|
|
773
|
+
return M !== i && (r = r.slice(0, M)), r;
|
|
774
774
|
}
|
|
775
|
-
function
|
|
776
|
-
const e =
|
|
775
|
+
function p(t) {
|
|
776
|
+
const e = t.length < 0 ? 0 : O(t.length) | 0, i = N(e);
|
|
777
777
|
for (let r = 0; r < e; r += 1)
|
|
778
|
-
|
|
779
|
-
return
|
|
778
|
+
i[r] = t[r] & 255;
|
|
779
|
+
return i;
|
|
780
780
|
}
|
|
781
|
-
function
|
|
782
|
-
if (
|
|
783
|
-
const e = new Uint8Array(
|
|
784
|
-
return
|
|
781
|
+
function z(t) {
|
|
782
|
+
if (G(t, Uint8Array)) {
|
|
783
|
+
const e = new Uint8Array(t);
|
|
784
|
+
return f(e.buffer, e.byteOffset, e.byteLength);
|
|
785
785
|
}
|
|
786
|
-
return
|
|
786
|
+
return p(t);
|
|
787
787
|
}
|
|
788
|
-
function
|
|
789
|
-
if (e < 0 ||
|
|
788
|
+
function f(t, e, i) {
|
|
789
|
+
if (e < 0 || t.byteLength < e)
|
|
790
790
|
throw new RangeError('"offset" is outside of buffer bounds');
|
|
791
|
-
if (
|
|
791
|
+
if (t.byteLength < e + (i || 0))
|
|
792
792
|
throw new RangeError('"length" is outside of buffer bounds');
|
|
793
793
|
let r;
|
|
794
|
-
return e === void 0 &&
|
|
794
|
+
return e === void 0 && i === void 0 ? r = new Uint8Array(t) : i === void 0 ? r = new Uint8Array(t, e) : r = new Uint8Array(t, e, i), Object.setPrototypeOf(r, o.prototype), r;
|
|
795
795
|
}
|
|
796
|
-
function
|
|
797
|
-
if (o.isBuffer(
|
|
798
|
-
const e =
|
|
799
|
-
return
|
|
796
|
+
function U(t) {
|
|
797
|
+
if (o.isBuffer(t)) {
|
|
798
|
+
const e = O(t.length) | 0, i = N(e);
|
|
799
|
+
return i.length === 0 || t.copy(i, 0, 0, e), i;
|
|
800
800
|
}
|
|
801
|
-
if (
|
|
802
|
-
return typeof
|
|
803
|
-
if (
|
|
804
|
-
return
|
|
801
|
+
if (t.length !== void 0)
|
|
802
|
+
return typeof t.length != "number" || Oe(t.length) ? N(0) : p(t);
|
|
803
|
+
if (t.type === "Buffer" && Array.isArray(t.data))
|
|
804
|
+
return p(t.data);
|
|
805
805
|
}
|
|
806
|
-
function
|
|
807
|
-
if (
|
|
808
|
-
throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x" +
|
|
809
|
-
return
|
|
806
|
+
function O(t) {
|
|
807
|
+
if (t >= T)
|
|
808
|
+
throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x" + T.toString(16) + " bytes");
|
|
809
|
+
return t | 0;
|
|
810
810
|
}
|
|
811
|
-
function
|
|
812
|
-
return +
|
|
811
|
+
function w(t) {
|
|
812
|
+
return +t != t && (t = 0), o.alloc(+t);
|
|
813
813
|
}
|
|
814
814
|
o.isBuffer = function(e) {
|
|
815
815
|
return e != null && e._isBuffer === !0 && e !== o.prototype;
|
|
816
|
-
}, o.compare = function(e,
|
|
817
|
-
if (
|
|
816
|
+
}, o.compare = function(e, i) {
|
|
817
|
+
if (G(e, Uint8Array) && (e = o.from(e, e.offset, e.byteLength)), G(i, Uint8Array) && (i = o.from(i, i.offset, i.byteLength)), !o.isBuffer(e) || !o.isBuffer(i))
|
|
818
818
|
throw new TypeError(
|
|
819
819
|
'The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array'
|
|
820
820
|
);
|
|
821
|
-
if (e ===
|
|
821
|
+
if (e === i)
|
|
822
822
|
return 0;
|
|
823
|
-
let r = e.length,
|
|
824
|
-
for (let
|
|
825
|
-
if (e[
|
|
826
|
-
r = e[
|
|
823
|
+
let r = e.length, M = i.length;
|
|
824
|
+
for (let a = 0, g = Math.min(r, M); a < g; ++a)
|
|
825
|
+
if (e[a] !== i[a]) {
|
|
826
|
+
r = e[a], M = i[a];
|
|
827
827
|
break;
|
|
828
828
|
}
|
|
829
|
-
return r <
|
|
829
|
+
return r < M ? -1 : M < r ? 1 : 0;
|
|
830
830
|
}, o.isEncoding = function(e) {
|
|
831
831
|
switch (String(e).toLowerCase()) {
|
|
832
832
|
case "hex":
|
|
@@ -844,283 +844,283 @@ Pe.write = function(s, n, l, f, g, m) {
|
|
|
844
844
|
default:
|
|
845
845
|
return !1;
|
|
846
846
|
}
|
|
847
|
-
}, o.concat = function(e,
|
|
847
|
+
}, o.concat = function(e, i) {
|
|
848
848
|
if (!Array.isArray(e))
|
|
849
849
|
throw new TypeError('"list" argument must be an Array of Buffers');
|
|
850
850
|
if (e.length === 0)
|
|
851
851
|
return o.alloc(0);
|
|
852
852
|
let r;
|
|
853
|
-
if (
|
|
854
|
-
for (
|
|
855
|
-
|
|
856
|
-
const
|
|
857
|
-
let
|
|
853
|
+
if (i === void 0)
|
|
854
|
+
for (i = 0, r = 0; r < e.length; ++r)
|
|
855
|
+
i += e[r].length;
|
|
856
|
+
const M = o.allocUnsafe(i);
|
|
857
|
+
let a = 0;
|
|
858
858
|
for (r = 0; r < e.length; ++r) {
|
|
859
|
-
let
|
|
860
|
-
if (
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
859
|
+
let g = e[r];
|
|
860
|
+
if (G(g, Uint8Array))
|
|
861
|
+
a + g.length > M.length ? (o.isBuffer(g) || (g = o.from(g)), g.copy(M, a)) : Uint8Array.prototype.set.call(
|
|
862
|
+
M,
|
|
863
|
+
g,
|
|
864
|
+
a
|
|
865
865
|
);
|
|
866
|
-
else if (o.isBuffer(
|
|
867
|
-
|
|
866
|
+
else if (o.isBuffer(g))
|
|
867
|
+
g.copy(M, a);
|
|
868
868
|
else
|
|
869
869
|
throw new TypeError('"list" argument must be an Array of Buffers');
|
|
870
|
-
|
|
870
|
+
a += g.length;
|
|
871
871
|
}
|
|
872
|
-
return
|
|
872
|
+
return M;
|
|
873
873
|
};
|
|
874
|
-
function
|
|
875
|
-
if (o.isBuffer(
|
|
876
|
-
return
|
|
877
|
-
if (ArrayBuffer.isView(
|
|
878
|
-
return
|
|
879
|
-
if (typeof
|
|
874
|
+
function Q(t, e) {
|
|
875
|
+
if (o.isBuffer(t))
|
|
876
|
+
return t.length;
|
|
877
|
+
if (ArrayBuffer.isView(t) || G(t, ArrayBuffer))
|
|
878
|
+
return t.byteLength;
|
|
879
|
+
if (typeof t != "string")
|
|
880
880
|
throw new TypeError(
|
|
881
|
-
'The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type ' + typeof
|
|
881
|
+
'The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type ' + typeof t
|
|
882
882
|
);
|
|
883
|
-
const
|
|
884
|
-
if (!r &&
|
|
883
|
+
const i = t.length, r = arguments.length > 2 && arguments[2] === !0;
|
|
884
|
+
if (!r && i === 0)
|
|
885
885
|
return 0;
|
|
886
|
-
let
|
|
886
|
+
let M = !1;
|
|
887
887
|
for (; ; )
|
|
888
888
|
switch (e) {
|
|
889
889
|
case "ascii":
|
|
890
890
|
case "latin1":
|
|
891
891
|
case "binary":
|
|
892
|
-
return
|
|
892
|
+
return i;
|
|
893
893
|
case "utf8":
|
|
894
894
|
case "utf-8":
|
|
895
|
-
return
|
|
895
|
+
return fe(t).length;
|
|
896
896
|
case "ucs2":
|
|
897
897
|
case "ucs-2":
|
|
898
898
|
case "utf16le":
|
|
899
899
|
case "utf-16le":
|
|
900
|
-
return
|
|
900
|
+
return i * 2;
|
|
901
901
|
case "hex":
|
|
902
|
-
return
|
|
902
|
+
return i >>> 1;
|
|
903
903
|
case "base64":
|
|
904
|
-
return
|
|
904
|
+
return Xe(t).length;
|
|
905
905
|
default:
|
|
906
|
-
if (
|
|
907
|
-
return r ? -1 :
|
|
908
|
-
e = ("" + e).toLowerCase(),
|
|
906
|
+
if (M)
|
|
907
|
+
return r ? -1 : fe(t).length;
|
|
908
|
+
e = ("" + e).toLowerCase(), M = !0;
|
|
909
909
|
}
|
|
910
910
|
}
|
|
911
|
-
o.byteLength =
|
|
912
|
-
function
|
|
911
|
+
o.byteLength = Q;
|
|
912
|
+
function q(t, e, i) {
|
|
913
913
|
let r = !1;
|
|
914
|
-
if ((e === void 0 || e < 0) && (e = 0), e > this.length || ((
|
|
914
|
+
if ((e === void 0 || e < 0) && (e = 0), e > this.length || ((i === void 0 || i > this.length) && (i = this.length), i <= 0) || (i >>>= 0, e >>>= 0, i <= e))
|
|
915
915
|
return "";
|
|
916
|
-
for (
|
|
917
|
-
switch (
|
|
916
|
+
for (t || (t = "utf8"); ; )
|
|
917
|
+
switch (t) {
|
|
918
918
|
case "hex":
|
|
919
|
-
return
|
|
919
|
+
return Yi(this, e, i);
|
|
920
920
|
case "utf8":
|
|
921
921
|
case "utf-8":
|
|
922
|
-
return
|
|
922
|
+
return Re(this, e, i);
|
|
923
923
|
case "ascii":
|
|
924
|
-
return
|
|
924
|
+
return Si(this, e, i);
|
|
925
925
|
case "latin1":
|
|
926
926
|
case "binary":
|
|
927
|
-
return
|
|
927
|
+
return Ui(this, e, i);
|
|
928
928
|
case "base64":
|
|
929
|
-
return
|
|
929
|
+
return ki(this, e, i);
|
|
930
930
|
case "ucs2":
|
|
931
931
|
case "ucs-2":
|
|
932
932
|
case "utf16le":
|
|
933
933
|
case "utf-16le":
|
|
934
|
-
return
|
|
934
|
+
return Qi(this, e, i);
|
|
935
935
|
default:
|
|
936
936
|
if (r)
|
|
937
|
-
throw new TypeError("Unknown encoding: " +
|
|
938
|
-
|
|
937
|
+
throw new TypeError("Unknown encoding: " + t);
|
|
938
|
+
t = (t + "").toLowerCase(), r = !0;
|
|
939
939
|
}
|
|
940
940
|
}
|
|
941
941
|
o.prototype._isBuffer = !0;
|
|
942
|
-
function
|
|
943
|
-
const r =
|
|
944
|
-
|
|
942
|
+
function F(t, e, i) {
|
|
943
|
+
const r = t[e];
|
|
944
|
+
t[e] = t[i], t[i] = r;
|
|
945
945
|
}
|
|
946
946
|
o.prototype.swap16 = function() {
|
|
947
947
|
const e = this.length;
|
|
948
948
|
if (e % 2 !== 0)
|
|
949
949
|
throw new RangeError("Buffer size must be a multiple of 16-bits");
|
|
950
|
-
for (let
|
|
951
|
-
|
|
950
|
+
for (let i = 0; i < e; i += 2)
|
|
951
|
+
F(this, i, i + 1);
|
|
952
952
|
return this;
|
|
953
953
|
}, o.prototype.swap32 = function() {
|
|
954
954
|
const e = this.length;
|
|
955
955
|
if (e % 4 !== 0)
|
|
956
956
|
throw new RangeError("Buffer size must be a multiple of 32-bits");
|
|
957
|
-
for (let
|
|
958
|
-
|
|
957
|
+
for (let i = 0; i < e; i += 4)
|
|
958
|
+
F(this, i, i + 3), F(this, i + 1, i + 2);
|
|
959
959
|
return this;
|
|
960
960
|
}, o.prototype.swap64 = function() {
|
|
961
961
|
const e = this.length;
|
|
962
962
|
if (e % 8 !== 0)
|
|
963
963
|
throw new RangeError("Buffer size must be a multiple of 64-bits");
|
|
964
|
-
for (let
|
|
965
|
-
|
|
964
|
+
for (let i = 0; i < e; i += 8)
|
|
965
|
+
F(this, i, i + 7), F(this, i + 1, i + 6), F(this, i + 2, i + 5), F(this, i + 3, i + 4);
|
|
966
966
|
return this;
|
|
967
967
|
}, o.prototype.toString = function() {
|
|
968
968
|
const e = this.length;
|
|
969
|
-
return e === 0 ? "" : arguments.length === 0 ?
|
|
969
|
+
return e === 0 ? "" : arguments.length === 0 ? Re(this, 0, e) : q.apply(this, arguments);
|
|
970
970
|
}, o.prototype.toLocaleString = o.prototype.toString, o.prototype.equals = function(e) {
|
|
971
971
|
if (!o.isBuffer(e))
|
|
972
972
|
throw new TypeError("Argument must be a Buffer");
|
|
973
973
|
return this === e ? !0 : o.compare(this, e) === 0;
|
|
974
974
|
}, o.prototype.inspect = function() {
|
|
975
975
|
let e = "";
|
|
976
|
-
const
|
|
977
|
-
return e = this.toString("hex", 0,
|
|
978
|
-
},
|
|
979
|
-
if (
|
|
976
|
+
const i = s.INSPECT_MAX_BYTES;
|
|
977
|
+
return e = this.toString("hex", 0, i).replace(/(.{2})/g, "$1 ").trim(), this.length > i && (e += " ... "), "<Buffer " + e + ">";
|
|
978
|
+
}, I && (o.prototype[I] = o.prototype.inspect), o.prototype.compare = function(e, i, r, M, a) {
|
|
979
|
+
if (G(e, Uint8Array) && (e = o.from(e, e.offset, e.byteLength)), !o.isBuffer(e))
|
|
980
980
|
throw new TypeError(
|
|
981
981
|
'The "target" argument must be one of type Buffer or Uint8Array. Received type ' + typeof e
|
|
982
982
|
);
|
|
983
|
-
if (
|
|
983
|
+
if (i === void 0 && (i = 0), r === void 0 && (r = e ? e.length : 0), M === void 0 && (M = 0), a === void 0 && (a = this.length), i < 0 || r > e.length || M < 0 || a > this.length)
|
|
984
984
|
throw new RangeError("out of range index");
|
|
985
|
-
if (
|
|
985
|
+
if (M >= a && i >= r)
|
|
986
986
|
return 0;
|
|
987
|
-
if (
|
|
987
|
+
if (M >= a)
|
|
988
988
|
return -1;
|
|
989
|
-
if (
|
|
989
|
+
if (i >= r)
|
|
990
990
|
return 1;
|
|
991
|
-
if (
|
|
991
|
+
if (i >>>= 0, r >>>= 0, M >>>= 0, a >>>= 0, this === e)
|
|
992
992
|
return 0;
|
|
993
|
-
let
|
|
994
|
-
const k = Math.min(
|
|
995
|
-
for (let
|
|
996
|
-
if (
|
|
997
|
-
|
|
993
|
+
let g = a - M, x = r - i;
|
|
994
|
+
const k = Math.min(g, x), m = this.slice(M, a), C = e.slice(i, r);
|
|
995
|
+
for (let L = 0; L < k; ++L)
|
|
996
|
+
if (m[L] !== C[L]) {
|
|
997
|
+
g = m[L], x = C[L];
|
|
998
998
|
break;
|
|
999
999
|
}
|
|
1000
|
-
return
|
|
1000
|
+
return g < x ? -1 : x < g ? 1 : 0;
|
|
1001
1001
|
};
|
|
1002
|
-
function
|
|
1003
|
-
if (
|
|
1002
|
+
function Fe(t, e, i, r, M) {
|
|
1003
|
+
if (t.length === 0)
|
|
1004
1004
|
return -1;
|
|
1005
|
-
if (typeof
|
|
1006
|
-
if (
|
|
1005
|
+
if (typeof i == "string" ? (r = i, i = 0) : i > 2147483647 ? i = 2147483647 : i < -2147483648 && (i = -2147483648), i = +i, Oe(i) && (i = M ? 0 : t.length - 1), i < 0 && (i = t.length + i), i >= t.length) {
|
|
1006
|
+
if (M)
|
|
1007
1007
|
return -1;
|
|
1008
|
-
|
|
1009
|
-
} else if (
|
|
1010
|
-
if (
|
|
1011
|
-
|
|
1008
|
+
i = t.length - 1;
|
|
1009
|
+
} else if (i < 0)
|
|
1010
|
+
if (M)
|
|
1011
|
+
i = 0;
|
|
1012
1012
|
else
|
|
1013
1013
|
return -1;
|
|
1014
1014
|
if (typeof e == "string" && (e = o.from(e, r)), o.isBuffer(e))
|
|
1015
|
-
return e.length === 0 ? -1 :
|
|
1015
|
+
return e.length === 0 ? -1 : $e(t, e, i, r, M);
|
|
1016
1016
|
if (typeof e == "number")
|
|
1017
|
-
return e = e & 255, typeof Uint8Array.prototype.indexOf == "function" ?
|
|
1017
|
+
return e = e & 255, typeof Uint8Array.prototype.indexOf == "function" ? M ? Uint8Array.prototype.indexOf.call(t, e, i) : Uint8Array.prototype.lastIndexOf.call(t, e, i) : $e(t, [e], i, r, M);
|
|
1018
1018
|
throw new TypeError("val must be string, number or Buffer");
|
|
1019
1019
|
}
|
|
1020
|
-
function
|
|
1021
|
-
let
|
|
1020
|
+
function $e(t, e, i, r, M) {
|
|
1021
|
+
let a = 1, g = t.length, x = e.length;
|
|
1022
1022
|
if (r !== void 0 && (r = String(r).toLowerCase(), r === "ucs2" || r === "ucs-2" || r === "utf16le" || r === "utf-16le")) {
|
|
1023
|
-
if (
|
|
1023
|
+
if (t.length < 2 || e.length < 2)
|
|
1024
1024
|
return -1;
|
|
1025
|
-
|
|
1025
|
+
a = 2, g /= 2, x /= 2, i /= 2;
|
|
1026
1026
|
}
|
|
1027
|
-
function k(
|
|
1028
|
-
return
|
|
1027
|
+
function k(C, L) {
|
|
1028
|
+
return a === 1 ? C[L] : C.readUInt16BE(L * a);
|
|
1029
1029
|
}
|
|
1030
|
-
let
|
|
1031
|
-
if (
|
|
1032
|
-
let
|
|
1033
|
-
for (
|
|
1034
|
-
if (k(
|
|
1035
|
-
if (
|
|
1036
|
-
return
|
|
1030
|
+
let m;
|
|
1031
|
+
if (M) {
|
|
1032
|
+
let C = -1;
|
|
1033
|
+
for (m = i; m < g; m++)
|
|
1034
|
+
if (k(t, m) === k(e, C === -1 ? 0 : m - C)) {
|
|
1035
|
+
if (C === -1 && (C = m), m - C + 1 === x)
|
|
1036
|
+
return C * a;
|
|
1037
1037
|
} else
|
|
1038
|
-
|
|
1038
|
+
C !== -1 && (m -= m - C), C = -1;
|
|
1039
1039
|
} else
|
|
1040
|
-
for (
|
|
1041
|
-
let
|
|
1042
|
-
for (let
|
|
1043
|
-
if (k(
|
|
1044
|
-
|
|
1040
|
+
for (i + x > g && (i = g - x), m = i; m >= 0; m--) {
|
|
1041
|
+
let C = !0;
|
|
1042
|
+
for (let L = 0; L < x; L++)
|
|
1043
|
+
if (k(t, m + L) !== k(e, L)) {
|
|
1044
|
+
C = !1;
|
|
1045
1045
|
break;
|
|
1046
1046
|
}
|
|
1047
|
-
if (
|
|
1048
|
-
return
|
|
1047
|
+
if (C)
|
|
1048
|
+
return m;
|
|
1049
1049
|
}
|
|
1050
1050
|
return -1;
|
|
1051
1051
|
}
|
|
1052
|
-
o.prototype.includes = function(e,
|
|
1053
|
-
return this.indexOf(e,
|
|
1054
|
-
}, o.prototype.indexOf = function(e,
|
|
1055
|
-
return
|
|
1056
|
-
}, o.prototype.lastIndexOf = function(e,
|
|
1057
|
-
return
|
|
1052
|
+
o.prototype.includes = function(e, i, r) {
|
|
1053
|
+
return this.indexOf(e, i, r) !== -1;
|
|
1054
|
+
}, o.prototype.indexOf = function(e, i, r) {
|
|
1055
|
+
return Fe(this, e, i, r, !0);
|
|
1056
|
+
}, o.prototype.lastIndexOf = function(e, i, r) {
|
|
1057
|
+
return Fe(this, e, i, r, !1);
|
|
1058
1058
|
};
|
|
1059
|
-
function
|
|
1060
|
-
|
|
1061
|
-
const
|
|
1062
|
-
r ? (r = Number(r), r >
|
|
1063
|
-
const
|
|
1064
|
-
r >
|
|
1065
|
-
let
|
|
1066
|
-
for (
|
|
1067
|
-
const
|
|
1068
|
-
if (
|
|
1069
|
-
return
|
|
1070
|
-
i
|
|
1059
|
+
function fi(t, e, i, r) {
|
|
1060
|
+
i = Number(i) || 0;
|
|
1061
|
+
const M = t.length - i;
|
|
1062
|
+
r ? (r = Number(r), r > M && (r = M)) : r = M;
|
|
1063
|
+
const a = e.length;
|
|
1064
|
+
r > a / 2 && (r = a / 2);
|
|
1065
|
+
let g;
|
|
1066
|
+
for (g = 0; g < r; ++g) {
|
|
1067
|
+
const x = parseInt(e.substr(g * 2, 2), 16);
|
|
1068
|
+
if (Oe(x))
|
|
1069
|
+
return g;
|
|
1070
|
+
t[i + g] = x;
|
|
1071
1071
|
}
|
|
1072
|
-
return
|
|
1072
|
+
return g;
|
|
1073
1073
|
}
|
|
1074
|
-
function
|
|
1075
|
-
return
|
|
1074
|
+
function Oi(t, e, i, r) {
|
|
1075
|
+
return he(fe(e, t.length - i), t, i, r);
|
|
1076
1076
|
}
|
|
1077
|
-
function
|
|
1078
|
-
return
|
|
1077
|
+
function Li(t, e, i, r) {
|
|
1078
|
+
return he(_i(e), t, i, r);
|
|
1079
1079
|
}
|
|
1080
|
-
function
|
|
1081
|
-
return
|
|
1080
|
+
function wi(t, e, i, r) {
|
|
1081
|
+
return he(Xe(e), t, i, r);
|
|
1082
1082
|
}
|
|
1083
|
-
function
|
|
1084
|
-
return
|
|
1083
|
+
function mi(t, e, i, r) {
|
|
1084
|
+
return he(Fi(e, t.length - i), t, i, r);
|
|
1085
1085
|
}
|
|
1086
|
-
o.prototype.write = function(e,
|
|
1087
|
-
if (
|
|
1088
|
-
|
|
1089
|
-
else if (r === void 0 && typeof
|
|
1090
|
-
|
|
1091
|
-
else if (isFinite(
|
|
1092
|
-
|
|
1086
|
+
o.prototype.write = function(e, i, r, M) {
|
|
1087
|
+
if (i === void 0)
|
|
1088
|
+
M = "utf8", r = this.length, i = 0;
|
|
1089
|
+
else if (r === void 0 && typeof i == "string")
|
|
1090
|
+
M = i, r = this.length, i = 0;
|
|
1091
|
+
else if (isFinite(i))
|
|
1092
|
+
i = i >>> 0, isFinite(r) ? (r = r >>> 0, M === void 0 && (M = "utf8")) : (M = r, r = void 0);
|
|
1093
1093
|
else
|
|
1094
1094
|
throw new Error(
|
|
1095
1095
|
"Buffer.write(string, encoding, offset[, length]) is no longer supported"
|
|
1096
1096
|
);
|
|
1097
|
-
const
|
|
1098
|
-
if ((r === void 0 || r >
|
|
1097
|
+
const a = this.length - i;
|
|
1098
|
+
if ((r === void 0 || r > a) && (r = a), e.length > 0 && (r < 0 || i < 0) || i > this.length)
|
|
1099
1099
|
throw new RangeError("Attempt to write outside buffer bounds");
|
|
1100
|
-
|
|
1101
|
-
let
|
|
1100
|
+
M || (M = "utf8");
|
|
1101
|
+
let g = !1;
|
|
1102
1102
|
for (; ; )
|
|
1103
|
-
switch (
|
|
1103
|
+
switch (M) {
|
|
1104
1104
|
case "hex":
|
|
1105
|
-
return
|
|
1105
|
+
return fi(this, e, i, r);
|
|
1106
1106
|
case "utf8":
|
|
1107
1107
|
case "utf-8":
|
|
1108
|
-
return
|
|
1108
|
+
return Oi(this, e, i, r);
|
|
1109
1109
|
case "ascii":
|
|
1110
1110
|
case "latin1":
|
|
1111
1111
|
case "binary":
|
|
1112
|
-
return
|
|
1112
|
+
return Li(this, e, i, r);
|
|
1113
1113
|
case "base64":
|
|
1114
|
-
return
|
|
1114
|
+
return wi(this, e, i, r);
|
|
1115
1115
|
case "ucs2":
|
|
1116
1116
|
case "ucs-2":
|
|
1117
1117
|
case "utf16le":
|
|
1118
1118
|
case "utf-16le":
|
|
1119
|
-
return
|
|
1119
|
+
return mi(this, e, i, r);
|
|
1120
1120
|
default:
|
|
1121
|
-
if (
|
|
1122
|
-
throw new TypeError("Unknown encoding: " +
|
|
1123
|
-
|
|
1121
|
+
if (g)
|
|
1122
|
+
throw new TypeError("Unknown encoding: " + M);
|
|
1123
|
+
M = ("" + M).toLowerCase(), g = !0;
|
|
1124
1124
|
}
|
|
1125
1125
|
}, o.prototype.toJSON = function() {
|
|
1126
1126
|
return {
|
|
@@ -1128,720 +1128,720 @@ Pe.write = function(s, n, l, f, g, m) {
|
|
|
1128
1128
|
data: Array.prototype.slice.call(this._arr || this, 0)
|
|
1129
1129
|
};
|
|
1130
1130
|
};
|
|
1131
|
-
function
|
|
1132
|
-
return e === 0 &&
|
|
1131
|
+
function ki(t, e, i) {
|
|
1132
|
+
return e === 0 && i === t.length ? n.fromByteArray(t) : n.fromByteArray(t.slice(e, i));
|
|
1133
1133
|
}
|
|
1134
|
-
function
|
|
1135
|
-
|
|
1134
|
+
function Re(t, e, i) {
|
|
1135
|
+
i = Math.min(t.length, i);
|
|
1136
1136
|
const r = [];
|
|
1137
|
-
let
|
|
1138
|
-
for (;
|
|
1139
|
-
const
|
|
1140
|
-
let
|
|
1141
|
-
if (
|
|
1142
|
-
let k,
|
|
1143
|
-
switch (
|
|
1137
|
+
let M = e;
|
|
1138
|
+
for (; M < i; ) {
|
|
1139
|
+
const a = t[M];
|
|
1140
|
+
let g = null, x = a > 239 ? 4 : a > 223 ? 3 : a > 191 ? 2 : 1;
|
|
1141
|
+
if (M + x <= i) {
|
|
1142
|
+
let k, m, C, L;
|
|
1143
|
+
switch (x) {
|
|
1144
1144
|
case 1:
|
|
1145
|
-
|
|
1145
|
+
a < 128 && (g = a);
|
|
1146
1146
|
break;
|
|
1147
1147
|
case 2:
|
|
1148
|
-
k =
|
|
1148
|
+
k = t[M + 1], (k & 192) === 128 && (L = (a & 31) << 6 | k & 63, L > 127 && (g = L));
|
|
1149
1149
|
break;
|
|
1150
1150
|
case 3:
|
|
1151
|
-
k =
|
|
1151
|
+
k = t[M + 1], m = t[M + 2], (k & 192) === 128 && (m & 192) === 128 && (L = (a & 15) << 12 | (k & 63) << 6 | m & 63, L > 2047 && (L < 55296 || L > 57343) && (g = L));
|
|
1152
1152
|
break;
|
|
1153
1153
|
case 4:
|
|
1154
|
-
k =
|
|
1154
|
+
k = t[M + 1], m = t[M + 2], C = t[M + 3], (k & 192) === 128 && (m & 192) === 128 && (C & 192) === 128 && (L = (a & 15) << 18 | (k & 63) << 12 | (m & 63) << 6 | C & 63, L > 65535 && L < 1114112 && (g = L));
|
|
1155
1155
|
}
|
|
1156
1156
|
}
|
|
1157
|
-
|
|
1157
|
+
g === null ? (g = 65533, x = 1) : g > 65535 && (g -= 65536, r.push(g >>> 10 & 1023 | 55296), g = 56320 | g & 1023), r.push(g), M += x;
|
|
1158
1158
|
}
|
|
1159
|
-
return
|
|
1159
|
+
return Ci(r);
|
|
1160
1160
|
}
|
|
1161
1161
|
const We = 4096;
|
|
1162
|
-
function
|
|
1163
|
-
const e =
|
|
1162
|
+
function Ci(t) {
|
|
1163
|
+
const e = t.length;
|
|
1164
1164
|
if (e <= We)
|
|
1165
|
-
return String.fromCharCode.apply(String,
|
|
1166
|
-
let
|
|
1165
|
+
return String.fromCharCode.apply(String, t);
|
|
1166
|
+
let i = "", r = 0;
|
|
1167
1167
|
for (; r < e; )
|
|
1168
|
-
|
|
1168
|
+
i += String.fromCharCode.apply(
|
|
1169
1169
|
String,
|
|
1170
|
-
|
|
1170
|
+
t.slice(r, r += We)
|
|
1171
1171
|
);
|
|
1172
|
-
return
|
|
1172
|
+
return i;
|
|
1173
1173
|
}
|
|
1174
|
-
function
|
|
1174
|
+
function Si(t, e, i) {
|
|
1175
1175
|
let r = "";
|
|
1176
|
-
|
|
1177
|
-
for (let
|
|
1178
|
-
r += String.fromCharCode(
|
|
1176
|
+
i = Math.min(t.length, i);
|
|
1177
|
+
for (let M = e; M < i; ++M)
|
|
1178
|
+
r += String.fromCharCode(t[M] & 127);
|
|
1179
1179
|
return r;
|
|
1180
1180
|
}
|
|
1181
|
-
function
|
|
1181
|
+
function Ui(t, e, i) {
|
|
1182
1182
|
let r = "";
|
|
1183
|
-
|
|
1184
|
-
for (let
|
|
1185
|
-
r += String.fromCharCode(
|
|
1183
|
+
i = Math.min(t.length, i);
|
|
1184
|
+
for (let M = e; M < i; ++M)
|
|
1185
|
+
r += String.fromCharCode(t[M]);
|
|
1186
1186
|
return r;
|
|
1187
1187
|
}
|
|
1188
|
-
function
|
|
1189
|
-
const r =
|
|
1190
|
-
(!e || e < 0) && (e = 0), (!
|
|
1191
|
-
let
|
|
1192
|
-
for (let
|
|
1193
|
-
|
|
1194
|
-
return
|
|
1195
|
-
}
|
|
1196
|
-
function
|
|
1197
|
-
const r =
|
|
1198
|
-
let
|
|
1199
|
-
for (let
|
|
1200
|
-
|
|
1201
|
-
return
|
|
1202
|
-
}
|
|
1203
|
-
o.prototype.slice = function(e,
|
|
1188
|
+
function Yi(t, e, i) {
|
|
1189
|
+
const r = t.length;
|
|
1190
|
+
(!e || e < 0) && (e = 0), (!i || i < 0 || i > r) && (i = r);
|
|
1191
|
+
let M = "";
|
|
1192
|
+
for (let a = e; a < i; ++a)
|
|
1193
|
+
M += $i[t[a]];
|
|
1194
|
+
return M;
|
|
1195
|
+
}
|
|
1196
|
+
function Qi(t, e, i) {
|
|
1197
|
+
const r = t.slice(e, i);
|
|
1198
|
+
let M = "";
|
|
1199
|
+
for (let a = 0; a < r.length - 1; a += 2)
|
|
1200
|
+
M += String.fromCharCode(r[a] + r[a + 1] * 256);
|
|
1201
|
+
return M;
|
|
1202
|
+
}
|
|
1203
|
+
o.prototype.slice = function(e, i) {
|
|
1204
1204
|
const r = this.length;
|
|
1205
|
-
e = ~~e,
|
|
1206
|
-
const
|
|
1207
|
-
return Object.setPrototypeOf(
|
|
1205
|
+
e = ~~e, i = i === void 0 ? r : ~~i, e < 0 ? (e += r, e < 0 && (e = 0)) : e > r && (e = r), i < 0 ? (i += r, i < 0 && (i = 0)) : i > r && (i = r), i < e && (i = e);
|
|
1206
|
+
const M = this.subarray(e, i);
|
|
1207
|
+
return Object.setPrototypeOf(M, o.prototype), M;
|
|
1208
1208
|
};
|
|
1209
|
-
function
|
|
1210
|
-
if (
|
|
1209
|
+
function Y(t, e, i) {
|
|
1210
|
+
if (t % 1 !== 0 || t < 0)
|
|
1211
1211
|
throw new RangeError("offset is not uint");
|
|
1212
|
-
if (
|
|
1212
|
+
if (t + e > i)
|
|
1213
1213
|
throw new RangeError("Trying to access beyond buffer length");
|
|
1214
1214
|
}
|
|
1215
|
-
o.prototype.readUintLE = o.prototype.readUIntLE = function(e,
|
|
1216
|
-
e = e >>> 0,
|
|
1217
|
-
let
|
|
1218
|
-
for (; ++
|
|
1219
|
-
|
|
1220
|
-
return
|
|
1221
|
-
}, o.prototype.readUintBE = o.prototype.readUIntBE = function(e,
|
|
1222
|
-
e = e >>> 0,
|
|
1223
|
-
let
|
|
1224
|
-
for (;
|
|
1225
|
-
|
|
1226
|
-
return
|
|
1227
|
-
}, o.prototype.readUint8 = o.prototype.readUInt8 = function(e,
|
|
1228
|
-
return e = e >>> 0,
|
|
1229
|
-
}, o.prototype.readUint16LE = o.prototype.readUInt16LE = function(e,
|
|
1230
|
-
return e = e >>> 0,
|
|
1231
|
-
}, o.prototype.readUint16BE = o.prototype.readUInt16BE = function(e,
|
|
1232
|
-
return e = e >>> 0,
|
|
1233
|
-
}, o.prototype.readUint32LE = o.prototype.readUInt32LE = function(e,
|
|
1234
|
-
return e = e >>> 0,
|
|
1235
|
-
}, o.prototype.readUint32BE = o.prototype.readUInt32BE = function(e,
|
|
1236
|
-
return e = e >>> 0,
|
|
1237
|
-
}, o.prototype.readBigUInt64LE =
|
|
1215
|
+
o.prototype.readUintLE = o.prototype.readUIntLE = function(e, i, r) {
|
|
1216
|
+
e = e >>> 0, i = i >>> 0, r || Y(e, i, this.length);
|
|
1217
|
+
let M = this[e], a = 1, g = 0;
|
|
1218
|
+
for (; ++g < i && (a *= 256); )
|
|
1219
|
+
M += this[e + g] * a;
|
|
1220
|
+
return M;
|
|
1221
|
+
}, o.prototype.readUintBE = o.prototype.readUIntBE = function(e, i, r) {
|
|
1222
|
+
e = e >>> 0, i = i >>> 0, r || Y(e, i, this.length);
|
|
1223
|
+
let M = this[e + --i], a = 1;
|
|
1224
|
+
for (; i > 0 && (a *= 256); )
|
|
1225
|
+
M += this[e + --i] * a;
|
|
1226
|
+
return M;
|
|
1227
|
+
}, o.prototype.readUint8 = o.prototype.readUInt8 = function(e, i) {
|
|
1228
|
+
return e = e >>> 0, i || Y(e, 1, this.length), this[e];
|
|
1229
|
+
}, o.prototype.readUint16LE = o.prototype.readUInt16LE = function(e, i) {
|
|
1230
|
+
return e = e >>> 0, i || Y(e, 2, this.length), this[e] | this[e + 1] << 8;
|
|
1231
|
+
}, o.prototype.readUint16BE = o.prototype.readUInt16BE = function(e, i) {
|
|
1232
|
+
return e = e >>> 0, i || Y(e, 2, this.length), this[e] << 8 | this[e + 1];
|
|
1233
|
+
}, o.prototype.readUint32LE = o.prototype.readUInt32LE = function(e, i) {
|
|
1234
|
+
return e = e >>> 0, i || Y(e, 4, this.length), (this[e] | this[e + 1] << 8 | this[e + 2] << 16) + this[e + 3] * 16777216;
|
|
1235
|
+
}, o.prototype.readUint32BE = o.prototype.readUInt32BE = function(e, i) {
|
|
1236
|
+
return e = e >>> 0, i || Y(e, 4, this.length), this[e] * 16777216 + (this[e + 1] << 16 | this[e + 2] << 8 | this[e + 3]);
|
|
1237
|
+
}, o.prototype.readBigUInt64LE = K(function(e) {
|
|
1238
1238
|
e = e >>> 0, se(e, "offset");
|
|
1239
|
-
const
|
|
1240
|
-
(
|
|
1241
|
-
const
|
|
1242
|
-
return BigInt(
|
|
1243
|
-
}), o.prototype.readBigUInt64BE =
|
|
1239
|
+
const i = this[e], r = this[e + 7];
|
|
1240
|
+
(i === void 0 || r === void 0) && Ie(e, this.length - 8);
|
|
1241
|
+
const M = i + this[++e] * 2 ** 8 + this[++e] * 2 ** 16 + this[++e] * 2 ** 24, a = this[++e] + this[++e] * 2 ** 8 + this[++e] * 2 ** 16 + r * 2 ** 24;
|
|
1242
|
+
return BigInt(M) + (BigInt(a) << BigInt(32));
|
|
1243
|
+
}), o.prototype.readBigUInt64BE = K(function(e) {
|
|
1244
1244
|
e = e >>> 0, se(e, "offset");
|
|
1245
|
-
const
|
|
1246
|
-
(
|
|
1247
|
-
const
|
|
1248
|
-
return (BigInt(
|
|
1249
|
-
}), o.prototype.readIntLE = function(e,
|
|
1250
|
-
e = e >>> 0,
|
|
1251
|
-
let
|
|
1252
|
-
for (; ++
|
|
1253
|
-
|
|
1254
|
-
return
|
|
1255
|
-
}, o.prototype.readIntBE = function(e,
|
|
1256
|
-
e = e >>> 0,
|
|
1257
|
-
let
|
|
1258
|
-
for (;
|
|
1259
|
-
|
|
1260
|
-
return
|
|
1261
|
-
}, o.prototype.readInt8 = function(e,
|
|
1262
|
-
return e = e >>> 0,
|
|
1263
|
-
}, o.prototype.readInt16LE = function(e,
|
|
1264
|
-
e = e >>> 0,
|
|
1245
|
+
const i = this[e], r = this[e + 7];
|
|
1246
|
+
(i === void 0 || r === void 0) && Ie(e, this.length - 8);
|
|
1247
|
+
const M = i * 2 ** 24 + this[++e] * 2 ** 16 + this[++e] * 2 ** 8 + this[++e], a = this[++e] * 2 ** 24 + this[++e] * 2 ** 16 + this[++e] * 2 ** 8 + r;
|
|
1248
|
+
return (BigInt(M) << BigInt(32)) + BigInt(a);
|
|
1249
|
+
}), o.prototype.readIntLE = function(e, i, r) {
|
|
1250
|
+
e = e >>> 0, i = i >>> 0, r || Y(e, i, this.length);
|
|
1251
|
+
let M = this[e], a = 1, g = 0;
|
|
1252
|
+
for (; ++g < i && (a *= 256); )
|
|
1253
|
+
M += this[e + g] * a;
|
|
1254
|
+
return a *= 128, M >= a && (M -= Math.pow(2, 8 * i)), M;
|
|
1255
|
+
}, o.prototype.readIntBE = function(e, i, r) {
|
|
1256
|
+
e = e >>> 0, i = i >>> 0, r || Y(e, i, this.length);
|
|
1257
|
+
let M = i, a = 1, g = this[e + --M];
|
|
1258
|
+
for (; M > 0 && (a *= 256); )
|
|
1259
|
+
g += this[e + --M] * a;
|
|
1260
|
+
return a *= 128, g >= a && (g -= Math.pow(2, 8 * i)), g;
|
|
1261
|
+
}, o.prototype.readInt8 = function(e, i) {
|
|
1262
|
+
return e = e >>> 0, i || Y(e, 1, this.length), this[e] & 128 ? (255 - this[e] + 1) * -1 : this[e];
|
|
1263
|
+
}, o.prototype.readInt16LE = function(e, i) {
|
|
1264
|
+
e = e >>> 0, i || Y(e, 2, this.length);
|
|
1265
1265
|
const r = this[e] | this[e + 1] << 8;
|
|
1266
1266
|
return r & 32768 ? r | 4294901760 : r;
|
|
1267
|
-
}, o.prototype.readInt16BE = function(e,
|
|
1268
|
-
e = e >>> 0,
|
|
1267
|
+
}, o.prototype.readInt16BE = function(e, i) {
|
|
1268
|
+
e = e >>> 0, i || Y(e, 2, this.length);
|
|
1269
1269
|
const r = this[e + 1] | this[e] << 8;
|
|
1270
1270
|
return r & 32768 ? r | 4294901760 : r;
|
|
1271
|
-
}, o.prototype.readInt32LE = function(e,
|
|
1272
|
-
return e = e >>> 0,
|
|
1273
|
-
}, o.prototype.readInt32BE = function(e,
|
|
1274
|
-
return e = e >>> 0,
|
|
1275
|
-
}, o.prototype.readBigInt64LE =
|
|
1271
|
+
}, o.prototype.readInt32LE = function(e, i) {
|
|
1272
|
+
return e = e >>> 0, i || Y(e, 4, this.length), this[e] | this[e + 1] << 8 | this[e + 2] << 16 | this[e + 3] << 24;
|
|
1273
|
+
}, o.prototype.readInt32BE = function(e, i) {
|
|
1274
|
+
return e = e >>> 0, i || Y(e, 4, this.length), this[e] << 24 | this[e + 1] << 16 | this[e + 2] << 8 | this[e + 3];
|
|
1275
|
+
}, o.prototype.readBigInt64LE = K(function(e) {
|
|
1276
1276
|
e = e >>> 0, se(e, "offset");
|
|
1277
|
-
const
|
|
1278
|
-
(
|
|
1279
|
-
const
|
|
1280
|
-
return (BigInt(
|
|
1281
|
-
}), o.prototype.readBigInt64BE =
|
|
1277
|
+
const i = this[e], r = this[e + 7];
|
|
1278
|
+
(i === void 0 || r === void 0) && Ie(e, this.length - 8);
|
|
1279
|
+
const M = this[e + 4] + this[e + 5] * 2 ** 8 + this[e + 6] * 2 ** 16 + (r << 24);
|
|
1280
|
+
return (BigInt(M) << BigInt(32)) + BigInt(i + this[++e] * 2 ** 8 + this[++e] * 2 ** 16 + this[++e] * 2 ** 24);
|
|
1281
|
+
}), o.prototype.readBigInt64BE = K(function(e) {
|
|
1282
1282
|
e = e >>> 0, se(e, "offset");
|
|
1283
|
-
const
|
|
1284
|
-
(
|
|
1285
|
-
const
|
|
1283
|
+
const i = this[e], r = this[e + 7];
|
|
1284
|
+
(i === void 0 || r === void 0) && Ie(e, this.length - 8);
|
|
1285
|
+
const M = (i << 24) + // Overflow
|
|
1286
1286
|
this[++e] * 2 ** 16 + this[++e] * 2 ** 8 + this[++e];
|
|
1287
|
-
return (BigInt(
|
|
1288
|
-
}), o.prototype.readFloatLE = function(e,
|
|
1289
|
-
return e = e >>> 0,
|
|
1290
|
-
}, o.prototype.readFloatBE = function(e,
|
|
1291
|
-
return e = e >>> 0,
|
|
1292
|
-
}, o.prototype.readDoubleLE = function(e,
|
|
1293
|
-
return e = e >>> 0,
|
|
1294
|
-
}, o.prototype.readDoubleBE = function(e,
|
|
1295
|
-
return e = e >>> 0,
|
|
1287
|
+
return (BigInt(M) << BigInt(32)) + BigInt(this[++e] * 2 ** 24 + this[++e] * 2 ** 16 + this[++e] * 2 ** 8 + r);
|
|
1288
|
+
}), o.prototype.readFloatLE = function(e, i) {
|
|
1289
|
+
return e = e >>> 0, i || Y(e, 4, this.length), c.read(this, e, !0, 23, 4);
|
|
1290
|
+
}, o.prototype.readFloatBE = function(e, i) {
|
|
1291
|
+
return e = e >>> 0, i || Y(e, 4, this.length), c.read(this, e, !1, 23, 4);
|
|
1292
|
+
}, o.prototype.readDoubleLE = function(e, i) {
|
|
1293
|
+
return e = e >>> 0, i || Y(e, 8, this.length), c.read(this, e, !0, 52, 8);
|
|
1294
|
+
}, o.prototype.readDoubleBE = function(e, i) {
|
|
1295
|
+
return e = e >>> 0, i || Y(e, 8, this.length), c.read(this, e, !1, 52, 8);
|
|
1296
1296
|
};
|
|
1297
|
-
function
|
|
1298
|
-
if (!o.isBuffer(
|
|
1297
|
+
function v(t, e, i, r, M, a) {
|
|
1298
|
+
if (!o.isBuffer(t))
|
|
1299
1299
|
throw new TypeError('"buffer" argument must be a Buffer instance');
|
|
1300
|
-
if (e >
|
|
1300
|
+
if (e > M || e < a)
|
|
1301
1301
|
throw new RangeError('"value" argument is out of bounds');
|
|
1302
|
-
if (
|
|
1302
|
+
if (i + r > t.length)
|
|
1303
1303
|
throw new RangeError("Index out of range");
|
|
1304
1304
|
}
|
|
1305
|
-
o.prototype.writeUintLE = o.prototype.writeUIntLE = function(e,
|
|
1306
|
-
if (e = +e,
|
|
1307
|
-
const
|
|
1308
|
-
|
|
1305
|
+
o.prototype.writeUintLE = o.prototype.writeUIntLE = function(e, i, r, M) {
|
|
1306
|
+
if (e = +e, i = i >>> 0, r = r >>> 0, !M) {
|
|
1307
|
+
const x = Math.pow(2, 8 * r) - 1;
|
|
1308
|
+
v(this, e, i, r, x, 0);
|
|
1309
1309
|
}
|
|
1310
|
-
let
|
|
1311
|
-
for (this[
|
|
1312
|
-
this[
|
|
1313
|
-
return
|
|
1314
|
-
}, o.prototype.writeUintBE = o.prototype.writeUIntBE = function(e,
|
|
1315
|
-
if (e = +e,
|
|
1316
|
-
const
|
|
1317
|
-
|
|
1310
|
+
let a = 1, g = 0;
|
|
1311
|
+
for (this[i] = e & 255; ++g < r && (a *= 256); )
|
|
1312
|
+
this[i + g] = e / a & 255;
|
|
1313
|
+
return i + r;
|
|
1314
|
+
}, o.prototype.writeUintBE = o.prototype.writeUIntBE = function(e, i, r, M) {
|
|
1315
|
+
if (e = +e, i = i >>> 0, r = r >>> 0, !M) {
|
|
1316
|
+
const x = Math.pow(2, 8 * r) - 1;
|
|
1317
|
+
v(this, e, i, r, x, 0);
|
|
1318
1318
|
}
|
|
1319
|
-
let
|
|
1320
|
-
for (this[
|
|
1321
|
-
this[
|
|
1322
|
-
return
|
|
1323
|
-
}, o.prototype.writeUint8 = o.prototype.writeUInt8 = function(e,
|
|
1324
|
-
return e = +e,
|
|
1325
|
-
}, o.prototype.writeUint16LE = o.prototype.writeUInt16LE = function(e,
|
|
1326
|
-
return e = +e,
|
|
1327
|
-
}, o.prototype.writeUint16BE = o.prototype.writeUInt16BE = function(e,
|
|
1328
|
-
return e = +e,
|
|
1329
|
-
}, o.prototype.writeUint32LE = o.prototype.writeUInt32LE = function(e,
|
|
1330
|
-
return e = +e,
|
|
1331
|
-
}, o.prototype.writeUint32BE = o.prototype.writeUInt32BE = function(e,
|
|
1332
|
-
return e = +e,
|
|
1319
|
+
let a = r - 1, g = 1;
|
|
1320
|
+
for (this[i + a] = e & 255; --a >= 0 && (g *= 256); )
|
|
1321
|
+
this[i + a] = e / g & 255;
|
|
1322
|
+
return i + r;
|
|
1323
|
+
}, o.prototype.writeUint8 = o.prototype.writeUInt8 = function(e, i, r) {
|
|
1324
|
+
return e = +e, i = i >>> 0, r || v(this, e, i, 1, 255, 0), this[i] = e & 255, i + 1;
|
|
1325
|
+
}, o.prototype.writeUint16LE = o.prototype.writeUInt16LE = function(e, i, r) {
|
|
1326
|
+
return e = +e, i = i >>> 0, r || v(this, e, i, 2, 65535, 0), this[i] = e & 255, this[i + 1] = e >>> 8, i + 2;
|
|
1327
|
+
}, o.prototype.writeUint16BE = o.prototype.writeUInt16BE = function(e, i, r) {
|
|
1328
|
+
return e = +e, i = i >>> 0, r || v(this, e, i, 2, 65535, 0), this[i] = e >>> 8, this[i + 1] = e & 255, i + 2;
|
|
1329
|
+
}, o.prototype.writeUint32LE = o.prototype.writeUInt32LE = function(e, i, r) {
|
|
1330
|
+
return e = +e, i = i >>> 0, r || v(this, e, i, 4, 4294967295, 0), this[i + 3] = e >>> 24, this[i + 2] = e >>> 16, this[i + 1] = e >>> 8, this[i] = e & 255, i + 4;
|
|
1331
|
+
}, o.prototype.writeUint32BE = o.prototype.writeUInt32BE = function(e, i, r) {
|
|
1332
|
+
return e = +e, i = i >>> 0, r || v(this, e, i, 4, 4294967295, 0), this[i] = e >>> 24, this[i + 1] = e >>> 16, this[i + 2] = e >>> 8, this[i + 3] = e & 255, i + 4;
|
|
1333
1333
|
};
|
|
1334
|
-
function
|
|
1335
|
-
|
|
1336
|
-
let
|
|
1337
|
-
i
|
|
1338
|
-
let
|
|
1339
|
-
return i
|
|
1340
|
-
}
|
|
1341
|
-
function
|
|
1342
|
-
|
|
1343
|
-
let
|
|
1344
|
-
i
|
|
1345
|
-
let
|
|
1346
|
-
return i
|
|
1347
|
-
}
|
|
1348
|
-
o.prototype.writeBigUInt64LE =
|
|
1349
|
-
return
|
|
1350
|
-
}), o.prototype.writeBigUInt64BE =
|
|
1351
|
-
return
|
|
1352
|
-
}), o.prototype.writeIntLE = function(e,
|
|
1353
|
-
if (e = +e,
|
|
1334
|
+
function Ge(t, e, i, r, M) {
|
|
1335
|
+
Je(e, r, M, t, i, 7);
|
|
1336
|
+
let a = Number(e & BigInt(4294967295));
|
|
1337
|
+
t[i++] = a, a = a >> 8, t[i++] = a, a = a >> 8, t[i++] = a, a = a >> 8, t[i++] = a;
|
|
1338
|
+
let g = Number(e >> BigInt(32) & BigInt(4294967295));
|
|
1339
|
+
return t[i++] = g, g = g >> 8, t[i++] = g, g = g >> 8, t[i++] = g, g = g >> 8, t[i++] = g, i;
|
|
1340
|
+
}
|
|
1341
|
+
function Pe(t, e, i, r, M) {
|
|
1342
|
+
Je(e, r, M, t, i, 7);
|
|
1343
|
+
let a = Number(e & BigInt(4294967295));
|
|
1344
|
+
t[i + 7] = a, a = a >> 8, t[i + 6] = a, a = a >> 8, t[i + 5] = a, a = a >> 8, t[i + 4] = a;
|
|
1345
|
+
let g = Number(e >> BigInt(32) & BigInt(4294967295));
|
|
1346
|
+
return t[i + 3] = g, g = g >> 8, t[i + 2] = g, g = g >> 8, t[i + 1] = g, g = g >> 8, t[i] = g, i + 8;
|
|
1347
|
+
}
|
|
1348
|
+
o.prototype.writeBigUInt64LE = K(function(e, i = 0) {
|
|
1349
|
+
return Ge(this, e, i, BigInt(0), BigInt("0xffffffffffffffff"));
|
|
1350
|
+
}), o.prototype.writeBigUInt64BE = K(function(e, i = 0) {
|
|
1351
|
+
return Pe(this, e, i, BigInt(0), BigInt("0xffffffffffffffff"));
|
|
1352
|
+
}), o.prototype.writeIntLE = function(e, i, r, M) {
|
|
1353
|
+
if (e = +e, i = i >>> 0, !M) {
|
|
1354
1354
|
const k = Math.pow(2, 8 * r - 1);
|
|
1355
|
-
|
|
1355
|
+
v(this, e, i, r, k - 1, -k);
|
|
1356
1356
|
}
|
|
1357
|
-
let
|
|
1358
|
-
for (this[
|
|
1359
|
-
e < 0 &&
|
|
1360
|
-
return
|
|
1361
|
-
}, o.prototype.writeIntBE = function(e,
|
|
1362
|
-
if (e = +e,
|
|
1357
|
+
let a = 0, g = 1, x = 0;
|
|
1358
|
+
for (this[i] = e & 255; ++a < r && (g *= 256); )
|
|
1359
|
+
e < 0 && x === 0 && this[i + a - 1] !== 0 && (x = 1), this[i + a] = (e / g >> 0) - x & 255;
|
|
1360
|
+
return i + r;
|
|
1361
|
+
}, o.prototype.writeIntBE = function(e, i, r, M) {
|
|
1362
|
+
if (e = +e, i = i >>> 0, !M) {
|
|
1363
1363
|
const k = Math.pow(2, 8 * r - 1);
|
|
1364
|
-
|
|
1364
|
+
v(this, e, i, r, k - 1, -k);
|
|
1365
1365
|
}
|
|
1366
|
-
let
|
|
1367
|
-
for (this[
|
|
1368
|
-
e < 0 &&
|
|
1369
|
-
return
|
|
1370
|
-
}, o.prototype.writeInt8 = function(e,
|
|
1371
|
-
return e = +e,
|
|
1372
|
-
}, o.prototype.writeInt16LE = function(e,
|
|
1373
|
-
return e = +e,
|
|
1374
|
-
}, o.prototype.writeInt16BE = function(e,
|
|
1375
|
-
return e = +e,
|
|
1376
|
-
}, o.prototype.writeInt32LE = function(e,
|
|
1377
|
-
return e = +e,
|
|
1378
|
-
}, o.prototype.writeInt32BE = function(e,
|
|
1379
|
-
return e = +e,
|
|
1380
|
-
}, o.prototype.writeBigInt64LE =
|
|
1381
|
-
return
|
|
1382
|
-
}), o.prototype.writeBigInt64BE =
|
|
1383
|
-
return
|
|
1366
|
+
let a = r - 1, g = 1, x = 0;
|
|
1367
|
+
for (this[i + a] = e & 255; --a >= 0 && (g *= 256); )
|
|
1368
|
+
e < 0 && x === 0 && this[i + a + 1] !== 0 && (x = 1), this[i + a] = (e / g >> 0) - x & 255;
|
|
1369
|
+
return i + r;
|
|
1370
|
+
}, o.prototype.writeInt8 = function(e, i, r) {
|
|
1371
|
+
return e = +e, i = i >>> 0, r || v(this, e, i, 1, 127, -128), e < 0 && (e = 255 + e + 1), this[i] = e & 255, i + 1;
|
|
1372
|
+
}, o.prototype.writeInt16LE = function(e, i, r) {
|
|
1373
|
+
return e = +e, i = i >>> 0, r || v(this, e, i, 2, 32767, -32768), this[i] = e & 255, this[i + 1] = e >>> 8, i + 2;
|
|
1374
|
+
}, o.prototype.writeInt16BE = function(e, i, r) {
|
|
1375
|
+
return e = +e, i = i >>> 0, r || v(this, e, i, 2, 32767, -32768), this[i] = e >>> 8, this[i + 1] = e & 255, i + 2;
|
|
1376
|
+
}, o.prototype.writeInt32LE = function(e, i, r) {
|
|
1377
|
+
return e = +e, i = i >>> 0, r || v(this, e, i, 4, 2147483647, -2147483648), this[i] = e & 255, this[i + 1] = e >>> 8, this[i + 2] = e >>> 16, this[i + 3] = e >>> 24, i + 4;
|
|
1378
|
+
}, o.prototype.writeInt32BE = function(e, i, r) {
|
|
1379
|
+
return e = +e, i = i >>> 0, r || v(this, e, i, 4, 2147483647, -2147483648), e < 0 && (e = 4294967295 + e + 1), this[i] = e >>> 24, this[i + 1] = e >>> 16, this[i + 2] = e >>> 8, this[i + 3] = e & 255, i + 4;
|
|
1380
|
+
}, o.prototype.writeBigInt64LE = K(function(e, i = 0) {
|
|
1381
|
+
return Ge(this, e, i, -BigInt("0x8000000000000000"), BigInt("0x7fffffffffffffff"));
|
|
1382
|
+
}), o.prototype.writeBigInt64BE = K(function(e, i = 0) {
|
|
1383
|
+
return Pe(this, e, i, -BigInt("0x8000000000000000"), BigInt("0x7fffffffffffffff"));
|
|
1384
1384
|
});
|
|
1385
|
-
function
|
|
1386
|
-
if (
|
|
1385
|
+
function Ze(t, e, i, r, M, a) {
|
|
1386
|
+
if (i + r > t.length)
|
|
1387
1387
|
throw new RangeError("Index out of range");
|
|
1388
|
-
if (
|
|
1388
|
+
if (i < 0)
|
|
1389
1389
|
throw new RangeError("Index out of range");
|
|
1390
1390
|
}
|
|
1391
|
-
function Ve(
|
|
1392
|
-
return e = +e,
|
|
1391
|
+
function Ve(t, e, i, r, M) {
|
|
1392
|
+
return e = +e, i = i >>> 0, M || Ze(t, e, i, 4), c.write(t, e, i, r, 23, 4), i + 4;
|
|
1393
1393
|
}
|
|
1394
|
-
o.prototype.writeFloatLE = function(e,
|
|
1395
|
-
return Ve(this, e,
|
|
1396
|
-
}, o.prototype.writeFloatBE = function(e,
|
|
1397
|
-
return Ve(this, e,
|
|
1394
|
+
o.prototype.writeFloatLE = function(e, i, r) {
|
|
1395
|
+
return Ve(this, e, i, !0, r);
|
|
1396
|
+
}, o.prototype.writeFloatBE = function(e, i, r) {
|
|
1397
|
+
return Ve(this, e, i, !1, r);
|
|
1398
1398
|
};
|
|
1399
|
-
function
|
|
1400
|
-
return e = +e,
|
|
1401
|
-
}
|
|
1402
|
-
o.prototype.writeDoubleLE = function(e,
|
|
1403
|
-
return
|
|
1404
|
-
}, o.prototype.writeDoubleBE = function(e,
|
|
1405
|
-
return
|
|
1406
|
-
}, o.prototype.copy = function(e,
|
|
1399
|
+
function qe(t, e, i, r, M) {
|
|
1400
|
+
return e = +e, i = i >>> 0, M || Ze(t, e, i, 8), c.write(t, e, i, r, 52, 8), i + 8;
|
|
1401
|
+
}
|
|
1402
|
+
o.prototype.writeDoubleLE = function(e, i, r) {
|
|
1403
|
+
return qe(this, e, i, !0, r);
|
|
1404
|
+
}, o.prototype.writeDoubleBE = function(e, i, r) {
|
|
1405
|
+
return qe(this, e, i, !1, r);
|
|
1406
|
+
}, o.prototype.copy = function(e, i, r, M) {
|
|
1407
1407
|
if (!o.isBuffer(e))
|
|
1408
1408
|
throw new TypeError("argument should be a Buffer");
|
|
1409
|
-
if (r || (r = 0), !
|
|
1409
|
+
if (r || (r = 0), !M && M !== 0 && (M = this.length), i >= e.length && (i = e.length), i || (i = 0), M > 0 && M < r && (M = r), M === r || e.length === 0 || this.length === 0)
|
|
1410
1410
|
return 0;
|
|
1411
|
-
if (
|
|
1411
|
+
if (i < 0)
|
|
1412
1412
|
throw new RangeError("targetStart out of bounds");
|
|
1413
1413
|
if (r < 0 || r >= this.length)
|
|
1414
1414
|
throw new RangeError("Index out of range");
|
|
1415
|
-
if (
|
|
1415
|
+
if (M < 0)
|
|
1416
1416
|
throw new RangeError("sourceEnd out of bounds");
|
|
1417
|
-
|
|
1418
|
-
const
|
|
1419
|
-
return this === e && typeof Uint8Array.prototype.copyWithin == "function" ? this.copyWithin(
|
|
1417
|
+
M > this.length && (M = this.length), e.length - i < M - r && (M = e.length - i + r);
|
|
1418
|
+
const a = M - r;
|
|
1419
|
+
return this === e && typeof Uint8Array.prototype.copyWithin == "function" ? this.copyWithin(i, r, M) : Uint8Array.prototype.set.call(
|
|
1420
1420
|
e,
|
|
1421
|
-
this.subarray(r,
|
|
1422
|
-
|
|
1423
|
-
),
|
|
1424
|
-
}, o.prototype.fill = function(e,
|
|
1421
|
+
this.subarray(r, M),
|
|
1422
|
+
i
|
|
1423
|
+
), a;
|
|
1424
|
+
}, o.prototype.fill = function(e, i, r, M) {
|
|
1425
1425
|
if (typeof e == "string") {
|
|
1426
|
-
if (typeof
|
|
1426
|
+
if (typeof i == "string" ? (M = i, i = 0, r = this.length) : typeof r == "string" && (M = r, r = this.length), M !== void 0 && typeof M != "string")
|
|
1427
1427
|
throw new TypeError("encoding must be a string");
|
|
1428
|
-
if (typeof
|
|
1429
|
-
throw new TypeError("Unknown encoding: " +
|
|
1428
|
+
if (typeof M == "string" && !o.isEncoding(M))
|
|
1429
|
+
throw new TypeError("Unknown encoding: " + M);
|
|
1430
1430
|
if (e.length === 1) {
|
|
1431
|
-
const
|
|
1432
|
-
(
|
|
1431
|
+
const g = e.charCodeAt(0);
|
|
1432
|
+
(M === "utf8" && g < 128 || M === "latin1") && (e = g);
|
|
1433
1433
|
}
|
|
1434
1434
|
} else
|
|
1435
1435
|
typeof e == "number" ? e = e & 255 : typeof e == "boolean" && (e = Number(e));
|
|
1436
|
-
if (
|
|
1436
|
+
if (i < 0 || this.length < i || this.length < r)
|
|
1437
1437
|
throw new RangeError("Out of range index");
|
|
1438
|
-
if (r <=
|
|
1438
|
+
if (r <= i)
|
|
1439
1439
|
return this;
|
|
1440
|
-
|
|
1441
|
-
let
|
|
1440
|
+
i = i >>> 0, r = r === void 0 ? this.length : r >>> 0, e || (e = 0);
|
|
1441
|
+
let a;
|
|
1442
1442
|
if (typeof e == "number")
|
|
1443
|
-
for (
|
|
1444
|
-
this[
|
|
1443
|
+
for (a = i; a < r; ++a)
|
|
1444
|
+
this[a] = e;
|
|
1445
1445
|
else {
|
|
1446
|
-
const
|
|
1447
|
-
if (
|
|
1446
|
+
const g = o.isBuffer(e) ? e : o.from(e, M), x = g.length;
|
|
1447
|
+
if (x === 0)
|
|
1448
1448
|
throw new TypeError('The value "' + e + '" is invalid for argument "value"');
|
|
1449
|
-
for (
|
|
1450
|
-
this[
|
|
1449
|
+
for (a = 0; a < r - i; ++a)
|
|
1450
|
+
this[a + i] = g[a % x];
|
|
1451
1451
|
}
|
|
1452
1452
|
return this;
|
|
1453
1453
|
};
|
|
1454
1454
|
const ne = {};
|
|
1455
|
-
function
|
|
1456
|
-
ne[
|
|
1455
|
+
function Ee(t, e, i) {
|
|
1456
|
+
ne[t] = class extends i {
|
|
1457
1457
|
constructor() {
|
|
1458
1458
|
super(), Object.defineProperty(this, "message", {
|
|
1459
1459
|
value: e.apply(this, arguments),
|
|
1460
1460
|
writable: !0,
|
|
1461
1461
|
configurable: !0
|
|
1462
|
-
}), this.name = `${this.name} [${
|
|
1462
|
+
}), this.name = `${this.name} [${t}]`, this.stack, delete this.name;
|
|
1463
1463
|
}
|
|
1464
1464
|
get code() {
|
|
1465
|
-
return
|
|
1465
|
+
return t;
|
|
1466
1466
|
}
|
|
1467
|
-
set code(
|
|
1467
|
+
set code(M) {
|
|
1468
1468
|
Object.defineProperty(this, "code", {
|
|
1469
1469
|
configurable: !0,
|
|
1470
1470
|
enumerable: !0,
|
|
1471
|
-
value:
|
|
1471
|
+
value: M,
|
|
1472
1472
|
writable: !0
|
|
1473
1473
|
});
|
|
1474
1474
|
}
|
|
1475
1475
|
toString() {
|
|
1476
|
-
return `${this.name} [${
|
|
1476
|
+
return `${this.name} [${t}]: ${this.message}`;
|
|
1477
1477
|
}
|
|
1478
1478
|
};
|
|
1479
1479
|
}
|
|
1480
|
-
|
|
1480
|
+
Ee(
|
|
1481
1481
|
"ERR_BUFFER_OUT_OF_BOUNDS",
|
|
1482
|
-
function(
|
|
1483
|
-
return
|
|
1482
|
+
function(t) {
|
|
1483
|
+
return t ? `${t} is outside of buffer bounds` : "Attempt to access memory outside buffer bounds";
|
|
1484
1484
|
},
|
|
1485
1485
|
RangeError
|
|
1486
|
-
),
|
|
1486
|
+
), Ee(
|
|
1487
1487
|
"ERR_INVALID_ARG_TYPE",
|
|
1488
|
-
function(
|
|
1489
|
-
return `The "${
|
|
1488
|
+
function(t, e) {
|
|
1489
|
+
return `The "${t}" argument must be of type number. Received type ${typeof e}`;
|
|
1490
1490
|
},
|
|
1491
1491
|
TypeError
|
|
1492
|
-
),
|
|
1492
|
+
), Ee(
|
|
1493
1493
|
"ERR_OUT_OF_RANGE",
|
|
1494
|
-
function(
|
|
1495
|
-
let r = `The value of "${
|
|
1496
|
-
return Number.isInteger(
|
|
1494
|
+
function(t, e, i) {
|
|
1495
|
+
let r = `The value of "${t}" is out of range.`, M = i;
|
|
1496
|
+
return Number.isInteger(i) && Math.abs(i) > 2 ** 32 ? M = He(String(i)) : typeof i == "bigint" && (M = String(i), (i > BigInt(2) ** BigInt(32) || i < -(BigInt(2) ** BigInt(32))) && (M = He(M)), M += "n"), r += ` It must be ${e}. Received ${M}`, r;
|
|
1497
1497
|
},
|
|
1498
1498
|
RangeError
|
|
1499
1499
|
);
|
|
1500
|
-
function
|
|
1501
|
-
let e = "",
|
|
1502
|
-
const r =
|
|
1503
|
-
for (;
|
|
1504
|
-
e = `_${
|
|
1505
|
-
return `${
|
|
1506
|
-
}
|
|
1507
|
-
function
|
|
1508
|
-
se(e, "offset"), (
|
|
1509
|
-
}
|
|
1510
|
-
function
|
|
1511
|
-
if (
|
|
1512
|
-
const
|
|
1513
|
-
let
|
|
1514
|
-
throw
|
|
1500
|
+
function He(t) {
|
|
1501
|
+
let e = "", i = t.length;
|
|
1502
|
+
const r = t[0] === "-" ? 1 : 0;
|
|
1503
|
+
for (; i >= r + 4; i -= 3)
|
|
1504
|
+
e = `_${t.slice(i - 3, i)}${e}`;
|
|
1505
|
+
return `${t.slice(0, i)}${e}`;
|
|
1506
|
+
}
|
|
1507
|
+
function bi(t, e, i) {
|
|
1508
|
+
se(e, "offset"), (t[e] === void 0 || t[e + i] === void 0) && Ie(e, t.length - (i + 1));
|
|
1509
|
+
}
|
|
1510
|
+
function Je(t, e, i, r, M, a) {
|
|
1511
|
+
if (t > i || t < e) {
|
|
1512
|
+
const g = typeof e == "bigint" ? "n" : "";
|
|
1513
|
+
let x;
|
|
1514
|
+
throw a > 3 ? e === 0 || e === BigInt(0) ? x = `>= 0${g} and < 2${g} ** ${(a + 1) * 8}${g}` : x = `>= -(2${g} ** ${(a + 1) * 8 - 1}${g}) and < 2 ** ${(a + 1) * 8 - 1}${g}` : x = `>= ${e}${g} and <= ${i}${g}`, new ne.ERR_OUT_OF_RANGE("value", x, t);
|
|
1515
1515
|
}
|
|
1516
|
-
|
|
1516
|
+
bi(r, M, a);
|
|
1517
1517
|
}
|
|
1518
|
-
function se(
|
|
1519
|
-
if (typeof
|
|
1520
|
-
throw new ne.ERR_INVALID_ARG_TYPE(e, "number",
|
|
1518
|
+
function se(t, e) {
|
|
1519
|
+
if (typeof t != "number")
|
|
1520
|
+
throw new ne.ERR_INVALID_ARG_TYPE(e, "number", t);
|
|
1521
1521
|
}
|
|
1522
|
-
function
|
|
1523
|
-
throw Math.floor(
|
|
1524
|
-
|
|
1525
|
-
`>= ${
|
|
1526
|
-
|
|
1522
|
+
function Ie(t, e, i) {
|
|
1523
|
+
throw Math.floor(t) !== t ? (se(t, i), new ne.ERR_OUT_OF_RANGE(i || "offset", "an integer", t)) : e < 0 ? new ne.ERR_BUFFER_OUT_OF_BOUNDS() : new ne.ERR_OUT_OF_RANGE(
|
|
1524
|
+
i || "offset",
|
|
1525
|
+
`>= ${i ? 1 : 0} and <= ${e}`,
|
|
1526
|
+
t
|
|
1527
1527
|
);
|
|
1528
1528
|
}
|
|
1529
|
-
const
|
|
1530
|
-
function
|
|
1531
|
-
if (
|
|
1529
|
+
const vi = /[^+/0-9A-Za-z-_]/g;
|
|
1530
|
+
function Bi(t) {
|
|
1531
|
+
if (t = t.split("=")[0], t = t.trim().replace(vi, ""), t.length < 2)
|
|
1532
1532
|
return "";
|
|
1533
|
-
for (;
|
|
1534
|
-
|
|
1535
|
-
return
|
|
1533
|
+
for (; t.length % 4 !== 0; )
|
|
1534
|
+
t = t + "=";
|
|
1535
|
+
return t;
|
|
1536
1536
|
}
|
|
1537
|
-
function
|
|
1537
|
+
function fe(t, e) {
|
|
1538
1538
|
e = e || 1 / 0;
|
|
1539
|
-
let
|
|
1540
|
-
const r =
|
|
1541
|
-
let
|
|
1542
|
-
const
|
|
1543
|
-
for (let
|
|
1544
|
-
if (
|
|
1545
|
-
if (!
|
|
1546
|
-
if (
|
|
1547
|
-
(e -= 3) > -1 &&
|
|
1539
|
+
let i;
|
|
1540
|
+
const r = t.length;
|
|
1541
|
+
let M = null;
|
|
1542
|
+
const a = [];
|
|
1543
|
+
for (let g = 0; g < r; ++g) {
|
|
1544
|
+
if (i = t.charCodeAt(g), i > 55295 && i < 57344) {
|
|
1545
|
+
if (!M) {
|
|
1546
|
+
if (i > 56319) {
|
|
1547
|
+
(e -= 3) > -1 && a.push(239, 191, 189);
|
|
1548
1548
|
continue;
|
|
1549
|
-
} else if (
|
|
1550
|
-
(e -= 3) > -1 &&
|
|
1549
|
+
} else if (g + 1 === r) {
|
|
1550
|
+
(e -= 3) > -1 && a.push(239, 191, 189);
|
|
1551
1551
|
continue;
|
|
1552
1552
|
}
|
|
1553
|
-
|
|
1553
|
+
M = i;
|
|
1554
1554
|
continue;
|
|
1555
1555
|
}
|
|
1556
|
-
if (
|
|
1557
|
-
(e -= 3) > -1 &&
|
|
1556
|
+
if (i < 56320) {
|
|
1557
|
+
(e -= 3) > -1 && a.push(239, 191, 189), M = i;
|
|
1558
1558
|
continue;
|
|
1559
1559
|
}
|
|
1560
|
-
|
|
1560
|
+
i = (M - 55296 << 10 | i - 56320) + 65536;
|
|
1561
1561
|
} else
|
|
1562
|
-
|
|
1563
|
-
if (
|
|
1562
|
+
M && (e -= 3) > -1 && a.push(239, 191, 189);
|
|
1563
|
+
if (M = null, i < 128) {
|
|
1564
1564
|
if ((e -= 1) < 0)
|
|
1565
1565
|
break;
|
|
1566
|
-
|
|
1567
|
-
} else if (
|
|
1566
|
+
a.push(i);
|
|
1567
|
+
} else if (i < 2048) {
|
|
1568
1568
|
if ((e -= 2) < 0)
|
|
1569
1569
|
break;
|
|
1570
|
-
|
|
1571
|
-
|
|
1572
|
-
|
|
1570
|
+
a.push(
|
|
1571
|
+
i >> 6 | 192,
|
|
1572
|
+
i & 63 | 128
|
|
1573
1573
|
);
|
|
1574
|
-
} else if (
|
|
1574
|
+
} else if (i < 65536) {
|
|
1575
1575
|
if ((e -= 3) < 0)
|
|
1576
1576
|
break;
|
|
1577
|
-
|
|
1578
|
-
|
|
1579
|
-
|
|
1580
|
-
|
|
1577
|
+
a.push(
|
|
1578
|
+
i >> 12 | 224,
|
|
1579
|
+
i >> 6 & 63 | 128,
|
|
1580
|
+
i & 63 | 128
|
|
1581
1581
|
);
|
|
1582
|
-
} else if (
|
|
1582
|
+
} else if (i < 1114112) {
|
|
1583
1583
|
if ((e -= 4) < 0)
|
|
1584
1584
|
break;
|
|
1585
|
-
|
|
1586
|
-
|
|
1587
|
-
|
|
1588
|
-
|
|
1589
|
-
|
|
1585
|
+
a.push(
|
|
1586
|
+
i >> 18 | 240,
|
|
1587
|
+
i >> 12 & 63 | 128,
|
|
1588
|
+
i >> 6 & 63 | 128,
|
|
1589
|
+
i & 63 | 128
|
|
1590
1590
|
);
|
|
1591
1591
|
} else
|
|
1592
1592
|
throw new Error("Invalid code point");
|
|
1593
1593
|
}
|
|
1594
|
-
return
|
|
1594
|
+
return a;
|
|
1595
1595
|
}
|
|
1596
|
-
function
|
|
1596
|
+
function _i(t) {
|
|
1597
1597
|
const e = [];
|
|
1598
|
-
for (let
|
|
1599
|
-
e.push(
|
|
1598
|
+
for (let i = 0; i < t.length; ++i)
|
|
1599
|
+
e.push(t.charCodeAt(i) & 255);
|
|
1600
1600
|
return e;
|
|
1601
1601
|
}
|
|
1602
|
-
function
|
|
1603
|
-
let
|
|
1604
|
-
const
|
|
1605
|
-
for (let
|
|
1606
|
-
|
|
1607
|
-
return
|
|
1602
|
+
function Fi(t, e) {
|
|
1603
|
+
let i, r, M;
|
|
1604
|
+
const a = [];
|
|
1605
|
+
for (let g = 0; g < t.length && !((e -= 2) < 0); ++g)
|
|
1606
|
+
i = t.charCodeAt(g), r = i >> 8, M = i % 256, a.push(M), a.push(r);
|
|
1607
|
+
return a;
|
|
1608
1608
|
}
|
|
1609
|
-
function
|
|
1610
|
-
return n.toByteArray(
|
|
1609
|
+
function Xe(t) {
|
|
1610
|
+
return n.toByteArray(Bi(t));
|
|
1611
1611
|
}
|
|
1612
|
-
function
|
|
1613
|
-
let
|
|
1614
|
-
for (
|
|
1615
|
-
e[
|
|
1616
|
-
return
|
|
1612
|
+
function he(t, e, i, r) {
|
|
1613
|
+
let M;
|
|
1614
|
+
for (M = 0; M < r && !(M + i >= e.length || M >= t.length); ++M)
|
|
1615
|
+
e[M + i] = t[M];
|
|
1616
|
+
return M;
|
|
1617
1617
|
}
|
|
1618
|
-
function
|
|
1619
|
-
return
|
|
1618
|
+
function G(t, e) {
|
|
1619
|
+
return t instanceof e || t != null && t.constructor != null && t.constructor.name != null && t.constructor.name === e.name;
|
|
1620
1620
|
}
|
|
1621
|
-
function
|
|
1622
|
-
return
|
|
1621
|
+
function Oe(t) {
|
|
1622
|
+
return t !== t;
|
|
1623
1623
|
}
|
|
1624
|
-
const
|
|
1625
|
-
const
|
|
1626
|
-
for (let
|
|
1627
|
-
const r =
|
|
1628
|
-
for (let
|
|
1629
|
-
e[r +
|
|
1624
|
+
const $i = function() {
|
|
1625
|
+
const t = "0123456789abcdef", e = new Array(256);
|
|
1626
|
+
for (let i = 0; i < 16; ++i) {
|
|
1627
|
+
const r = i * 16;
|
|
1628
|
+
for (let M = 0; M < 16; ++M)
|
|
1629
|
+
e[r + M] = t[i] + t[M];
|
|
1630
1630
|
}
|
|
1631
1631
|
return e;
|
|
1632
1632
|
}();
|
|
1633
|
-
function
|
|
1634
|
-
return typeof BigInt > "u" ?
|
|
1633
|
+
function K(t) {
|
|
1634
|
+
return typeof BigInt > "u" ? Ri : t;
|
|
1635
1635
|
}
|
|
1636
|
-
function
|
|
1636
|
+
function Ri() {
|
|
1637
1637
|
throw new Error("BigInt not supported");
|
|
1638
1638
|
}
|
|
1639
|
-
})(
|
|
1640
|
-
var
|
|
1641
|
-
function
|
|
1639
|
+
})(pi);
|
|
1640
|
+
var Ai = { exports: {} }, S = Ai.exports = {}, P, Z;
|
|
1641
|
+
function Ce() {
|
|
1642
1642
|
throw new Error("setTimeout has not been defined");
|
|
1643
1643
|
}
|
|
1644
|
-
function
|
|
1644
|
+
function Se() {
|
|
1645
1645
|
throw new Error("clearTimeout has not been defined");
|
|
1646
1646
|
}
|
|
1647
1647
|
(function() {
|
|
1648
1648
|
try {
|
|
1649
|
-
typeof setTimeout == "function" ?
|
|
1649
|
+
typeof setTimeout == "function" ? P = setTimeout : P = Ce;
|
|
1650
1650
|
} catch {
|
|
1651
|
-
|
|
1651
|
+
P = Ce;
|
|
1652
1652
|
}
|
|
1653
1653
|
try {
|
|
1654
|
-
typeof clearTimeout == "function" ?
|
|
1654
|
+
typeof clearTimeout == "function" ? Z = clearTimeout : Z = Se;
|
|
1655
1655
|
} catch {
|
|
1656
|
-
|
|
1656
|
+
Z = Se;
|
|
1657
1657
|
}
|
|
1658
1658
|
})();
|
|
1659
|
-
function
|
|
1660
|
-
if (
|
|
1659
|
+
function zi(s) {
|
|
1660
|
+
if (P === setTimeout)
|
|
1661
1661
|
return setTimeout(s, 0);
|
|
1662
|
-
if ((
|
|
1663
|
-
return
|
|
1662
|
+
if ((P === Ce || !P) && setTimeout)
|
|
1663
|
+
return P = setTimeout, setTimeout(s, 0);
|
|
1664
1664
|
try {
|
|
1665
|
-
return
|
|
1665
|
+
return P(s, 0);
|
|
1666
1666
|
} catch {
|
|
1667
1667
|
try {
|
|
1668
|
-
return
|
|
1668
|
+
return P.call(null, s, 0);
|
|
1669
1669
|
} catch {
|
|
1670
|
-
return
|
|
1670
|
+
return P.call(this, s, 0);
|
|
1671
1671
|
}
|
|
1672
1672
|
}
|
|
1673
1673
|
}
|
|
1674
|
-
function
|
|
1675
|
-
if (
|
|
1674
|
+
function Zr(s) {
|
|
1675
|
+
if (Z === clearTimeout)
|
|
1676
1676
|
return clearTimeout(s);
|
|
1677
|
-
if ((
|
|
1678
|
-
return
|
|
1677
|
+
if ((Z === Se || !Z) && clearTimeout)
|
|
1678
|
+
return Z = clearTimeout, clearTimeout(s);
|
|
1679
1679
|
try {
|
|
1680
|
-
return
|
|
1680
|
+
return Z(s);
|
|
1681
1681
|
} catch {
|
|
1682
1682
|
try {
|
|
1683
|
-
return
|
|
1683
|
+
return Z.call(null, s);
|
|
1684
1684
|
} catch {
|
|
1685
|
-
return
|
|
1685
|
+
return Z.call(this, s);
|
|
1686
1686
|
}
|
|
1687
1687
|
}
|
|
1688
1688
|
}
|
|
1689
|
-
var
|
|
1689
|
+
var H = [], ge = !1, ie, ye = -1;
|
|
1690
1690
|
function Vr() {
|
|
1691
|
-
!
|
|
1691
|
+
!ge || !ie || (ge = !1, ie.length ? H = ie.concat(H) : ye = -1, H.length && xi());
|
|
1692
1692
|
}
|
|
1693
|
-
function
|
|
1694
|
-
if (!
|
|
1695
|
-
var s =
|
|
1696
|
-
|
|
1697
|
-
for (var n =
|
|
1698
|
-
for (
|
|
1699
|
-
|
|
1700
|
-
|
|
1693
|
+
function xi() {
|
|
1694
|
+
if (!ge) {
|
|
1695
|
+
var s = zi(Vr);
|
|
1696
|
+
ge = !0;
|
|
1697
|
+
for (var n = H.length; n; ) {
|
|
1698
|
+
for (ie = H, H = []; ++ye < n; )
|
|
1699
|
+
ie && ie[ye].run();
|
|
1700
|
+
ye = -1, n = H.length;
|
|
1701
1701
|
}
|
|
1702
|
-
|
|
1702
|
+
ie = null, ge = !1, Zr(s);
|
|
1703
1703
|
}
|
|
1704
1704
|
}
|
|
1705
|
-
|
|
1705
|
+
S.nextTick = function(s) {
|
|
1706
1706
|
var n = new Array(arguments.length - 1);
|
|
1707
1707
|
if (arguments.length > 1)
|
|
1708
|
-
for (var
|
|
1709
|
-
n[
|
|
1710
|
-
|
|
1708
|
+
for (var c = 1; c < arguments.length; c++)
|
|
1709
|
+
n[c - 1] = arguments[c];
|
|
1710
|
+
H.push(new Ei(s, n)), H.length === 1 && !ge && zi(xi);
|
|
1711
1711
|
};
|
|
1712
|
-
function
|
|
1712
|
+
function Ei(s, n) {
|
|
1713
1713
|
this.fun = s, this.array = n;
|
|
1714
1714
|
}
|
|
1715
|
-
|
|
1715
|
+
Ei.prototype.run = function() {
|
|
1716
1716
|
this.fun.apply(null, this.array);
|
|
1717
1717
|
};
|
|
1718
|
-
|
|
1719
|
-
|
|
1720
|
-
|
|
1721
|
-
|
|
1722
|
-
|
|
1723
|
-
|
|
1724
|
-
function
|
|
1718
|
+
S.title = "browser";
|
|
1719
|
+
S.browser = !0;
|
|
1720
|
+
S.env = {};
|
|
1721
|
+
S.argv = [];
|
|
1722
|
+
S.version = "";
|
|
1723
|
+
S.versions = {};
|
|
1724
|
+
function X() {
|
|
1725
1725
|
}
|
|
1726
|
-
|
|
1727
|
-
|
|
1728
|
-
|
|
1729
|
-
|
|
1730
|
-
|
|
1731
|
-
|
|
1732
|
-
|
|
1733
|
-
|
|
1734
|
-
|
|
1735
|
-
|
|
1726
|
+
S.on = X;
|
|
1727
|
+
S.addListener = X;
|
|
1728
|
+
S.once = X;
|
|
1729
|
+
S.off = X;
|
|
1730
|
+
S.removeListener = X;
|
|
1731
|
+
S.removeAllListeners = X;
|
|
1732
|
+
S.emit = X;
|
|
1733
|
+
S.prependListener = X;
|
|
1734
|
+
S.prependOnceListener = X;
|
|
1735
|
+
S.listeners = function(s) {
|
|
1736
1736
|
return [];
|
|
1737
1737
|
};
|
|
1738
|
-
|
|
1738
|
+
S.binding = function(s) {
|
|
1739
1739
|
throw new Error("process.binding is not supported");
|
|
1740
1740
|
};
|
|
1741
|
-
|
|
1741
|
+
S.cwd = function() {
|
|
1742
1742
|
return "/";
|
|
1743
1743
|
};
|
|
1744
|
-
|
|
1744
|
+
S.chdir = function(s) {
|
|
1745
1745
|
throw new Error("process.chdir is not supported");
|
|
1746
1746
|
};
|
|
1747
|
-
|
|
1747
|
+
S.umask = function() {
|
|
1748
1748
|
return 0;
|
|
1749
1749
|
};
|
|
1750
|
-
var
|
|
1750
|
+
var qr = Ai.exports;
|
|
1751
1751
|
(function(s) {
|
|
1752
1752
|
Object.defineProperty(s, Symbol.toStringTag, { value: "Module" });
|
|
1753
|
-
const n =
|
|
1754
|
-
Object.defineProperty(s, "Buffer", { enumerable: !0, get: () => n.Buffer }), Object.defineProperty(s, "process", { enumerable: !0, get: () =>
|
|
1755
|
-
})(
|
|
1756
|
-
let
|
|
1757
|
-
typeof window < "u" ?
|
|
1758
|
-
let
|
|
1759
|
-
const
|
|
1760
|
-
ke == null ||
|
|
1761
|
-
return
|
|
1762
|
-
}) : (
|
|
1763
|
-
ke(n),
|
|
1764
|
-
},
|
|
1765
|
-
const
|
|
1766
|
-
|
|
1767
|
-
}),
|
|
1768
|
-
ke(
|
|
1769
|
-
},
|
|
1770
|
-
return [
|
|
1753
|
+
const n = pi, c = qr, I = (N) => N && N.__esModule ? N : { default: N }, T = I(c), D = globalThis || void 0 || self;
|
|
1754
|
+
Object.defineProperty(s, "Buffer", { enumerable: !0, get: () => n.Buffer }), Object.defineProperty(s, "process", { enumerable: !0, get: () => T.default }), s.global = D;
|
|
1755
|
+
})(di);
|
|
1756
|
+
let R;
|
|
1757
|
+
typeof window < "u" ? R = window : typeof self < "u" ? R = self : R = di.global;
|
|
1758
|
+
let Ue = null, Ye = null;
|
|
1759
|
+
const li = 20, me = R.clearTimeout, Ni = R.setTimeout, ke = R.cancelAnimationFrame || R.mozCancelAnimationFrame || R.webkitCancelAnimationFrame, gi = R.requestAnimationFrame || R.mozRequestAnimationFrame || R.webkitRequestAnimationFrame;
|
|
1760
|
+
ke == null || gi == null ? (Ue = me, Ye = function(n) {
|
|
1761
|
+
return Ni(n, li);
|
|
1762
|
+
}) : (Ue = function([n, c]) {
|
|
1763
|
+
ke(n), me(c);
|
|
1764
|
+
}, Ye = function(n) {
|
|
1765
|
+
const c = gi(function() {
|
|
1766
|
+
me(I), n();
|
|
1767
|
+
}), I = Ni(function() {
|
|
1768
|
+
ke(c), n();
|
|
1769
|
+
}, li);
|
|
1770
|
+
return [c, I];
|
|
1771
1771
|
});
|
|
1772
|
-
function
|
|
1773
|
-
let n,
|
|
1774
|
-
const
|
|
1775
|
-
if (!
|
|
1776
|
-
|
|
1777
|
-
const
|
|
1778
|
-
|
|
1779
|
-
},
|
|
1780
|
-
return
|
|
1781
|
-
}, o = function(
|
|
1782
|
-
if (
|
|
1772
|
+
function Hr(s) {
|
|
1773
|
+
let n, c, I, T, D, N, o;
|
|
1774
|
+
const h = typeof document < "u" && document.attachEvent;
|
|
1775
|
+
if (!h) {
|
|
1776
|
+
N = function(O) {
|
|
1777
|
+
const w = O.__resizeTriggers__, Q = w.firstElementChild, q = w.lastElementChild, F = Q.firstElementChild;
|
|
1778
|
+
q.scrollLeft = q.scrollWidth, q.scrollTop = q.scrollHeight, F.style.width = Q.offsetWidth + 1 + "px", F.style.height = Q.offsetHeight + 1 + "px", Q.scrollLeft = Q.scrollWidth, Q.scrollTop = Q.scrollHeight;
|
|
1779
|
+
}, D = function(O) {
|
|
1780
|
+
return O.offsetWidth !== O.__resizeLast__.width || O.offsetHeight !== O.__resizeLast__.height;
|
|
1781
|
+
}, o = function(O) {
|
|
1782
|
+
if (O.target.className && typeof O.target.className.indexOf == "function" && O.target.className.indexOf("contract-trigger") < 0 && O.target.className.indexOf("expand-trigger") < 0)
|
|
1783
1783
|
return;
|
|
1784
|
-
const
|
|
1785
|
-
|
|
1786
|
-
|
|
1787
|
-
|
|
1784
|
+
const w = this;
|
|
1785
|
+
N(this), this.__resizeRAF__ && Ue(this.__resizeRAF__), this.__resizeRAF__ = Ye(function() {
|
|
1786
|
+
D(w) && (w.__resizeLast__.width = w.offsetWidth, w.__resizeLast__.height = w.offsetHeight, w.__resizeListeners__.forEach(function(F) {
|
|
1787
|
+
F.call(w, O);
|
|
1788
1788
|
}));
|
|
1789
1789
|
});
|
|
1790
1790
|
};
|
|
1791
|
-
let
|
|
1792
|
-
|
|
1793
|
-
const
|
|
1794
|
-
let
|
|
1791
|
+
let j = !1, p = "";
|
|
1792
|
+
I = "animationstart";
|
|
1793
|
+
const z = "Webkit Moz O ms".split(" ");
|
|
1794
|
+
let f = "webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" "), U = "";
|
|
1795
1795
|
{
|
|
1796
|
-
const
|
|
1797
|
-
if (
|
|
1798
|
-
for (let
|
|
1799
|
-
if (
|
|
1800
|
-
|
|
1796
|
+
const O = document.createElement("fakeelement");
|
|
1797
|
+
if (O.style.animationName !== void 0 && (j = !0), j === !1) {
|
|
1798
|
+
for (let w = 0; w < z.length; w++)
|
|
1799
|
+
if (O.style[z[w] + "AnimationName"] !== void 0) {
|
|
1800
|
+
U = z[w], p = "-" + U.toLowerCase() + "-", I = f[w], j = !0;
|
|
1801
1801
|
break;
|
|
1802
1802
|
}
|
|
1803
1803
|
}
|
|
1804
1804
|
}
|
|
1805
|
-
|
|
1805
|
+
c = "resizeanim", n = "@" + p + "keyframes " + c + " { from { opacity: 0; } to { opacity: 0; } } ", T = p + "animation: 1ms " + c + "; ";
|
|
1806
1806
|
}
|
|
1807
|
-
const
|
|
1808
|
-
if (!
|
|
1809
|
-
const
|
|
1810
|
-
|
|
1807
|
+
const A = function(j) {
|
|
1808
|
+
if (!j.getElementById("detectElementResize")) {
|
|
1809
|
+
const p = (n || "") + ".resize-triggers { " + (T || "") + 'visibility: hidden; opacity: 0; } .resize-triggers, .resize-triggers > div, .contract-trigger:before { content: " "; display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; z-index: -1; } .resize-triggers > div { background: #eee; overflow: auto; } .contract-trigger:before { width: 200%; height: 200%; }', z = j.head || j.getElementsByTagName("head")[0], f = j.createElement("style");
|
|
1810
|
+
f.id = "detectElementResize", f.type = "text/css", s != null && f.setAttribute("nonce", s), f.styleSheet ? f.styleSheet.cssText = p : f.appendChild(j.createTextNode(p)), z.appendChild(f);
|
|
1811
1811
|
}
|
|
1812
1812
|
};
|
|
1813
1813
|
return {
|
|
1814
|
-
addResizeListener: function(
|
|
1815
|
-
if (
|
|
1816
|
-
|
|
1814
|
+
addResizeListener: function(j, p) {
|
|
1815
|
+
if (h)
|
|
1816
|
+
j.attachEvent("onresize", p);
|
|
1817
1817
|
else {
|
|
1818
|
-
if (!
|
|
1819
|
-
const
|
|
1820
|
-
|
|
1821
|
-
const
|
|
1822
|
-
|
|
1823
|
-
const
|
|
1824
|
-
|
|
1825
|
-
|
|
1826
|
-
},
|
|
1818
|
+
if (!j.__resizeTriggers__) {
|
|
1819
|
+
const z = j.ownerDocument, f = R.getComputedStyle(j);
|
|
1820
|
+
f && f.position === "static" && (j.style.position = "relative"), A(z), j.__resizeLast__ = {}, j.__resizeListeners__ = [], (j.__resizeTriggers__ = z.createElement("div")).className = "resize-triggers";
|
|
1821
|
+
const U = z.createElement("div");
|
|
1822
|
+
U.className = "expand-trigger", U.appendChild(z.createElement("div"));
|
|
1823
|
+
const O = z.createElement("div");
|
|
1824
|
+
O.className = "contract-trigger", j.__resizeTriggers__.appendChild(U), j.__resizeTriggers__.appendChild(O), j.appendChild(j.__resizeTriggers__), N(j), j.addEventListener("scroll", o, !0), I && (j.__resizeTriggers__.__animationListener__ = function(Q) {
|
|
1825
|
+
Q.animationName === c && N(j);
|
|
1826
|
+
}, j.__resizeTriggers__.addEventListener(I, j.__resizeTriggers__.__animationListener__));
|
|
1827
1827
|
}
|
|
1828
|
-
|
|
1828
|
+
j.__resizeListeners__.push(p);
|
|
1829
1829
|
}
|
|
1830
1830
|
},
|
|
1831
|
-
removeResizeListener: function(
|
|
1832
|
-
if (
|
|
1833
|
-
|
|
1834
|
-
else if (
|
|
1835
|
-
|
|
1831
|
+
removeResizeListener: function(j, p) {
|
|
1832
|
+
if (h)
|
|
1833
|
+
j.detachEvent("onresize", p);
|
|
1834
|
+
else if (j.__resizeListeners__.splice(j.__resizeListeners__.indexOf(p), 1), !j.__resizeListeners__.length) {
|
|
1835
|
+
j.removeEventListener("scroll", o, !0), j.__resizeTriggers__.__animationListener__ && (j.__resizeTriggers__.removeEventListener(I, j.__resizeTriggers__.__animationListener__), j.__resizeTriggers__.__animationListener__ = null);
|
|
1836
1836
|
try {
|
|
1837
|
-
|
|
1837
|
+
j.__resizeTriggers__ = !j.removeChild(j.__resizeTriggers__);
|
|
1838
1838
|
} catch {
|
|
1839
1839
|
}
|
|
1840
1840
|
}
|
|
1841
1841
|
}
|
|
1842
1842
|
};
|
|
1843
1843
|
}
|
|
1844
|
-
class
|
|
1844
|
+
class Jr extends Hi {
|
|
1845
1845
|
constructor(...n) {
|
|
1846
1846
|
super(...n), this.state = {
|
|
1847
1847
|
height: this.props.defaultHeight || 0,
|
|
@@ -1851,27 +1851,27 @@ class Xr extends Qt {
|
|
|
1851
1851
|
}, this._autoSizer = null, this._detectElementResize = null, this._parentNode = null, this._resizeObserver = null, this._timeoutId = null, this._onResize = () => {
|
|
1852
1852
|
this._timeoutId = null;
|
|
1853
1853
|
const {
|
|
1854
|
-
disableHeight:
|
|
1855
|
-
disableWidth:
|
|
1856
|
-
onResize:
|
|
1854
|
+
disableHeight: c,
|
|
1855
|
+
disableWidth: I,
|
|
1856
|
+
onResize: T
|
|
1857
1857
|
} = this.props;
|
|
1858
1858
|
if (this._parentNode) {
|
|
1859
|
-
var
|
|
1860
|
-
const
|
|
1861
|
-
(!
|
|
1862
|
-
height:
|
|
1863
|
-
width:
|
|
1864
|
-
scaledHeight:
|
|
1865
|
-
scaledWidth:
|
|
1866
|
-
}), typeof
|
|
1867
|
-
height:
|
|
1868
|
-
scaledHeight:
|
|
1869
|
-
scaledWidth:
|
|
1870
|
-
width:
|
|
1859
|
+
var D, N, o, h;
|
|
1860
|
+
const A = window.getComputedStyle(this._parentNode) || {}, y = parseFloat((D = A.paddingLeft) !== null && D !== void 0 ? D : "0"), E = parseFloat((N = A.paddingRight) !== null && N !== void 0 ? N : "0"), j = parseFloat((o = A.paddingTop) !== null && o !== void 0 ? o : "0"), p = parseFloat((h = A.paddingBottom) !== null && h !== void 0 ? h : "0"), z = this._parentNode.getBoundingClientRect(), f = z.height - j - p, U = z.width - y - E, O = this._parentNode.offsetHeight - j - p, w = this._parentNode.offsetWidth - y - E;
|
|
1861
|
+
(!c && (this.state.height !== O || this.state.scaledHeight !== f) || !I && (this.state.width !== w || this.state.scaledWidth !== U)) && (this.setState({
|
|
1862
|
+
height: O,
|
|
1863
|
+
width: w,
|
|
1864
|
+
scaledHeight: f,
|
|
1865
|
+
scaledWidth: U
|
|
1866
|
+
}), typeof T == "function" && T({
|
|
1867
|
+
height: O,
|
|
1868
|
+
scaledHeight: f,
|
|
1869
|
+
scaledWidth: U,
|
|
1870
|
+
width: w
|
|
1871
1871
|
}));
|
|
1872
1872
|
}
|
|
1873
|
-
}, this._setRef = (
|
|
1874
|
-
this._autoSizer =
|
|
1873
|
+
}, this._setRef = (c) => {
|
|
1874
|
+
this._autoSizer = c;
|
|
1875
1875
|
};
|
|
1876
1876
|
}
|
|
1877
1877
|
componentDidMount() {
|
|
@@ -1880,7 +1880,7 @@ class Xr extends Qt {
|
|
|
1880
1880
|
} = this.props;
|
|
1881
1881
|
this._autoSizer && this._autoSizer.parentNode && this._autoSizer.parentNode.ownerDocument && this._autoSizer.parentNode.ownerDocument.defaultView && this._autoSizer.parentNode instanceof this._autoSizer.parentNode.ownerDocument.defaultView.HTMLElement && (this._parentNode = this._autoSizer.parentNode, this._parentNode != null && (typeof ResizeObserver < "u" ? (this._resizeObserver = new ResizeObserver(() => {
|
|
1882
1882
|
this._timeoutId = setTimeout(this._onResize, 0);
|
|
1883
|
-
}), this._resizeObserver.observe(this._parentNode)) : (this._detectElementResize =
|
|
1883
|
+
}), this._resizeObserver.observe(this._parentNode)) : (this._detectElementResize = Hr(n), this._detectElementResize.addResizeListener(this._parentNode, this._onResize)), this._onResize()));
|
|
1884
1884
|
}
|
|
1885
1885
|
componentWillUnmount() {
|
|
1886
1886
|
this._parentNode && (this._detectElementResize && this._detectElementResize.removeResizeListener(this._parentNode, this._onResize), this._timeoutId !== null && clearTimeout(this._timeoutId), this._resizeObserver && (this._resizeObserver.observe(this._parentNode), this._resizeObserver.disconnect()));
|
|
@@ -1888,357 +1888,357 @@ class Xr extends Qt {
|
|
|
1888
1888
|
render() {
|
|
1889
1889
|
const {
|
|
1890
1890
|
children: n,
|
|
1891
|
-
defaultHeight:
|
|
1892
|
-
defaultWidth:
|
|
1893
|
-
disableHeight:
|
|
1894
|
-
disableWidth:
|
|
1895
|
-
nonce:
|
|
1891
|
+
defaultHeight: c,
|
|
1892
|
+
defaultWidth: I,
|
|
1893
|
+
disableHeight: T = !1,
|
|
1894
|
+
disableWidth: D = !1,
|
|
1895
|
+
nonce: N,
|
|
1896
1896
|
onResize: o,
|
|
1897
|
-
style:
|
|
1898
|
-
tagName:
|
|
1899
|
-
...
|
|
1897
|
+
style: h = {},
|
|
1898
|
+
tagName: A = "div",
|
|
1899
|
+
...y
|
|
1900
1900
|
} = this.props, {
|
|
1901
|
-
height:
|
|
1902
|
-
scaledHeight:
|
|
1903
|
-
scaledWidth:
|
|
1904
|
-
width:
|
|
1905
|
-
} = this.state,
|
|
1901
|
+
height: E,
|
|
1902
|
+
scaledHeight: j,
|
|
1903
|
+
scaledWidth: p,
|
|
1904
|
+
width: z
|
|
1905
|
+
} = this.state, f = {
|
|
1906
1906
|
overflow: "visible"
|
|
1907
|
-
},
|
|
1908
|
-
let
|
|
1909
|
-
return
|
|
1907
|
+
}, U = {};
|
|
1908
|
+
let O = !1;
|
|
1909
|
+
return T || (E === 0 && (O = !0), f.height = 0, U.height = E, U.scaledHeight = j), D || (z === 0 && (O = !0), f.width = 0, U.width = z, U.scaledWidth = p), Ji(A, {
|
|
1910
1910
|
ref: this._setRef,
|
|
1911
1911
|
style: {
|
|
1912
|
-
...
|
|
1913
|
-
...
|
|
1912
|
+
...f,
|
|
1913
|
+
...h
|
|
1914
1914
|
},
|
|
1915
|
-
...
|
|
1916
|
-
}, !
|
|
1915
|
+
...y
|
|
1916
|
+
}, !O && n(U));
|
|
1917
1917
|
}
|
|
1918
1918
|
}
|
|
1919
|
-
const
|
|
1919
|
+
const Xr = /* @__PURE__ */ l("div")({
|
|
1920
1920
|
name: "Container",
|
|
1921
1921
|
class: "c1htq1lb",
|
|
1922
1922
|
propsAsIs: !1
|
|
1923
|
-
}),
|
|
1923
|
+
}), Kr = /* @__PURE__ */ l("div")({
|
|
1924
1924
|
name: "Content",
|
|
1925
1925
|
class: "cjyzpp7",
|
|
1926
1926
|
propsAsIs: !1
|
|
1927
|
-
}), en = /* @__PURE__ */
|
|
1927
|
+
}), en = /* @__PURE__ */ l("div")({
|
|
1928
1928
|
name: "Graphic",
|
|
1929
1929
|
class: "g16mldgz",
|
|
1930
1930
|
propsAsIs: !1
|
|
1931
|
-
}), tn = /* @__PURE__ */
|
|
1931
|
+
}), tn = /* @__PURE__ */ l("div")({
|
|
1932
1932
|
name: "Headline",
|
|
1933
1933
|
class: "h69js65",
|
|
1934
1934
|
propsAsIs: !1
|
|
1935
|
-
}), rn = /* @__PURE__ */
|
|
1935
|
+
}), rn = /* @__PURE__ */ l("div")({
|
|
1936
1936
|
name: "StepsContainer",
|
|
1937
1937
|
class: "smm7qmo",
|
|
1938
1938
|
propsAsIs: !1
|
|
1939
|
-
}), nn = /* @__PURE__ */
|
|
1939
|
+
}), nn = /* @__PURE__ */ l("span")({
|
|
1940
1940
|
name: "StepIndicator",
|
|
1941
1941
|
class: "s17knuw2",
|
|
1942
1942
|
propsAsIs: !1
|
|
1943
1943
|
}), sn = ({
|
|
1944
1944
|
width: s,
|
|
1945
1945
|
graphicSrc: n,
|
|
1946
|
-
headline:
|
|
1947
|
-
stepsCount:
|
|
1948
|
-
currentStep:
|
|
1949
|
-
}) => /* @__PURE__ */
|
|
1950
|
-
/* @__PURE__ */
|
|
1951
|
-
/* @__PURE__ */
|
|
1952
|
-
|
|
1946
|
+
headline: c,
|
|
1947
|
+
stepsCount: I,
|
|
1948
|
+
currentStep: T
|
|
1949
|
+
}) => /* @__PURE__ */ d(Xr, { children: [
|
|
1950
|
+
/* @__PURE__ */ d(Kr, { children: [
|
|
1951
|
+
/* @__PURE__ */ u(en, { "data-centered": T === 0, children: /* @__PURE__ */ u("img", { src: n, alt: c, width: s || 300 }) }),
|
|
1952
|
+
c && /* @__PURE__ */ u(tn, { children: c })
|
|
1953
1953
|
] }),
|
|
1954
|
-
/* @__PURE__ */
|
|
1955
|
-
] }), on = /* @__PURE__ */
|
|
1954
|
+
/* @__PURE__ */ u(rn, { children: Array.from({ length: I }).map((D, N) => /* @__PURE__ */ u(nn, { "data-active": T === N }, N)) })
|
|
1955
|
+
] }), on = /* @__PURE__ */ l("div")({
|
|
1956
1956
|
name: "Container",
|
|
1957
1957
|
class: "c1itm4k7",
|
|
1958
1958
|
propsAsIs: !1
|
|
1959
|
-
}),
|
|
1959
|
+
}), Mn = /* @__PURE__ */ l("div")({
|
|
1960
1960
|
name: "IconContainer",
|
|
1961
1961
|
class: "i1w4fsni",
|
|
1962
1962
|
propsAsIs: !1
|
|
1963
|
-
}),
|
|
1963
|
+
}), cn = () => b, un = /* @__PURE__ */ l(cn())({
|
|
1964
1964
|
name: "InviteGameIcon",
|
|
1965
1965
|
class: "i19m85r1",
|
|
1966
1966
|
propsAsIs: !0
|
|
1967
|
-
}),
|
|
1967
|
+
}), an = /* @__PURE__ */ l("div")({
|
|
1968
1968
|
name: "Content",
|
|
1969
1969
|
class: "c1mbu204",
|
|
1970
1970
|
propsAsIs: !1
|
|
1971
|
-
}),
|
|
1971
|
+
}), ln = /* @__PURE__ */ l("div")({
|
|
1972
1972
|
name: "Heading",
|
|
1973
1973
|
class: "h1amdqtv",
|
|
1974
1974
|
propsAsIs: !1
|
|
1975
|
-
}),
|
|
1975
|
+
}), Nn = /* @__PURE__ */ l("div")({
|
|
1976
1976
|
name: "Subtext",
|
|
1977
1977
|
class: "s1lhlj9j",
|
|
1978
1978
|
propsAsIs: !1
|
|
1979
|
-
}),
|
|
1979
|
+
}), gn = /* @__PURE__ */ l("div")({
|
|
1980
1980
|
name: "LinkContainer",
|
|
1981
1981
|
class: "l1wot35e",
|
|
1982
1982
|
propsAsIs: !1
|
|
1983
|
-
}),
|
|
1983
|
+
}), In = /* @__PURE__ */ l("div")({
|
|
1984
1984
|
name: "LinkInfo",
|
|
1985
1985
|
class: "l1jdw39q",
|
|
1986
1986
|
propsAsIs: !1
|
|
1987
|
-
}),
|
|
1987
|
+
}), Dn = /* @__PURE__ */ l("span")({
|
|
1988
1988
|
name: "LinkTitle",
|
|
1989
1989
|
class: "l1cr5mk",
|
|
1990
1990
|
propsAsIs: !1
|
|
1991
|
-
}),
|
|
1991
|
+
}), Tn = /* @__PURE__ */ l("span")({
|
|
1992
1992
|
name: "LinkAddress",
|
|
1993
1993
|
class: "lvi87q4",
|
|
1994
1994
|
propsAsIs: !1
|
|
1995
|
-
}),
|
|
1995
|
+
}), jn = () => b, hn = /* @__PURE__ */ l(jn())({
|
|
1996
1996
|
name: "LinkIcon",
|
|
1997
1997
|
class: "l1pqlvw3",
|
|
1998
1998
|
propsAsIs: !0
|
|
1999
|
-
}),
|
|
1999
|
+
}), dn = /* @__PURE__ */ l("div")({
|
|
2000
2000
|
name: "SocialLinksContainer",
|
|
2001
2001
|
class: "s1n7kzeh",
|
|
2002
2002
|
propsAsIs: !1
|
|
2003
|
-
}),
|
|
2003
|
+
}), pn = /* @__PURE__ */ l("a")({
|
|
2004
2004
|
name: "SocialLink",
|
|
2005
2005
|
class: "s2m9o9y",
|
|
2006
2006
|
propsAsIs: !1
|
|
2007
|
-
}),
|
|
2007
|
+
}), yn = /* @__PURE__ */ l("span")({
|
|
2008
2008
|
name: "SocialLinkLabel",
|
|
2009
2009
|
class: "sewjbbn",
|
|
2010
2010
|
propsAsIs: !1
|
|
2011
|
-
}),
|
|
2011
|
+
}), An = ({
|
|
2012
2012
|
inviteLink: s,
|
|
2013
2013
|
socialLinks: n,
|
|
2014
|
-
inviteCardTitle:
|
|
2015
|
-
inviteCardSubtext:
|
|
2016
|
-
primaryColor:
|
|
2017
|
-
className:
|
|
2018
|
-
}) => /* @__PURE__ */
|
|
2019
|
-
/* @__PURE__ */
|
|
2020
|
-
/* @__PURE__ */
|
|
2021
|
-
/* @__PURE__ */
|
|
2022
|
-
/* @__PURE__ */
|
|
2014
|
+
inviteCardTitle: c,
|
|
2015
|
+
inviteCardSubtext: I,
|
|
2016
|
+
primaryColor: T,
|
|
2017
|
+
className: D
|
|
2018
|
+
}) => /* @__PURE__ */ d(on, { className: D, children: [
|
|
2019
|
+
/* @__PURE__ */ u(Mn, { style: { backgroundColor: T }, children: /* @__PURE__ */ u(un, { name: "invite-game-icon" }) }),
|
|
2020
|
+
/* @__PURE__ */ d(an, { children: [
|
|
2021
|
+
/* @__PURE__ */ u(ln, { children: c || "" }),
|
|
2022
|
+
/* @__PURE__ */ u(Nn, { children: I || "" })
|
|
2023
2023
|
] }),
|
|
2024
|
-
s && /* @__PURE__ */
|
|
2024
|
+
s && /* @__PURE__ */ d(gn, { onClick: async () => {
|
|
2025
2025
|
if (s)
|
|
2026
2026
|
try {
|
|
2027
2027
|
await navigator.clipboard.writeText(s);
|
|
2028
|
-
} catch (
|
|
2029
|
-
console.error("Unable to copy to clipboard",
|
|
2028
|
+
} catch (N) {
|
|
2029
|
+
console.error("Unable to copy to clipboard", N);
|
|
2030
2030
|
}
|
|
2031
2031
|
}, children: [
|
|
2032
|
-
/* @__PURE__ */
|
|
2033
|
-
/* @__PURE__ */
|
|
2034
|
-
/* @__PURE__ */
|
|
2032
|
+
/* @__PURE__ */ d(In, { children: [
|
|
2033
|
+
/* @__PURE__ */ u(Dn, { children: "Invite link" }),
|
|
2034
|
+
/* @__PURE__ */ u(Tn, { children: s })
|
|
2035
2035
|
] }),
|
|
2036
|
-
/* @__PURE__ */
|
|
2036
|
+
/* @__PURE__ */ u(hn, { name: "icon-copy" })
|
|
2037
2037
|
] }),
|
|
2038
|
-
n && n.length > 0 && /* @__PURE__ */
|
|
2039
|
-
/* @__PURE__ */
|
|
2040
|
-
/* @__PURE__ */
|
|
2038
|
+
n && n.length > 0 && /* @__PURE__ */ u(dn, { children: n.map(({ icon: N, link: o, label: h }) => /* @__PURE__ */ d(pn, { href: o, target: "_blank", children: [
|
|
2039
|
+
/* @__PURE__ */ u(b, { name: N }),
|
|
2040
|
+
/* @__PURE__ */ u(yn, { children: h })
|
|
2041
2041
|
] }, o)) })
|
|
2042
|
-
] }),
|
|
2042
|
+
] }), zn = /* @__PURE__ */ l("div")({
|
|
2043
2043
|
name: "Container",
|
|
2044
2044
|
class: "cm0bev",
|
|
2045
2045
|
propsAsIs: !1
|
|
2046
|
-
}),
|
|
2046
|
+
}), xn = /* @__PURE__ */ l("div")({
|
|
2047
2047
|
name: "Content",
|
|
2048
2048
|
class: "ce7x737",
|
|
2049
2049
|
propsAsIs: !1
|
|
2050
|
-
}),
|
|
2050
|
+
}), En = /* @__PURE__ */ l("div")({
|
|
2051
2051
|
name: "Title",
|
|
2052
2052
|
class: "tc2tor6",
|
|
2053
2053
|
propsAsIs: !1
|
|
2054
|
-
}),
|
|
2054
|
+
}), fn = /* @__PURE__ */ l("div")({
|
|
2055
2055
|
name: "RulesList",
|
|
2056
2056
|
class: "r1k5klql",
|
|
2057
2057
|
propsAsIs: !1
|
|
2058
|
-
}),
|
|
2058
|
+
}), On = /* @__PURE__ */ l("div")({
|
|
2059
2059
|
name: "RulesItem",
|
|
2060
2060
|
class: "r1tf3ft2",
|
|
2061
2061
|
propsAsIs: !1
|
|
2062
|
-
}),
|
|
2062
|
+
}), Ln = /* @__PURE__ */ l("div")({
|
|
2063
2063
|
name: "RuleIcon",
|
|
2064
2064
|
class: "rwpvg1k",
|
|
2065
2065
|
propsAsIs: !1
|
|
2066
|
-
}),
|
|
2066
|
+
}), wn = /* @__PURE__ */ l("div")({
|
|
2067
2067
|
name: "RuleText",
|
|
2068
2068
|
class: "rbxiag0",
|
|
2069
2069
|
propsAsIs: !1
|
|
2070
|
-
}),
|
|
2070
|
+
}), mn = /* @__PURE__ */ l("button")({
|
|
2071
2071
|
name: "TermsButton",
|
|
2072
2072
|
class: "t6cyrry",
|
|
2073
2073
|
propsAsIs: !1
|
|
2074
|
-
}), kn = ({ rules: s, rulesTitle: n, primaryColor:
|
|
2075
|
-
/* @__PURE__ */
|
|
2076
|
-
/* @__PURE__ */
|
|
2077
|
-
/* @__PURE__ */
|
|
2078
|
-
|
|
2079
|
-
/* @__PURE__ */
|
|
2080
|
-
] },
|
|
2074
|
+
}), kn = ({ rules: s, rulesTitle: n, primaryColor: c }) => /* @__PURE__ */ d(zn, { children: [
|
|
2075
|
+
/* @__PURE__ */ d(xn, { children: [
|
|
2076
|
+
/* @__PURE__ */ u(En, { children: n }),
|
|
2077
|
+
/* @__PURE__ */ u(fn, { children: s == null ? void 0 : s.map(({ label: I, icon: T }, D) => /* @__PURE__ */ d(On, { children: [
|
|
2078
|
+
T && /* @__PURE__ */ u(Ln, { style: { backgroundColor: c }, children: /* @__PURE__ */ u(b, { name: T, "data-icon": T }) }),
|
|
2079
|
+
/* @__PURE__ */ u(wn, { children: I })
|
|
2080
|
+
] }, D)) })
|
|
2081
2081
|
] }),
|
|
2082
|
-
/* @__PURE__ */
|
|
2083
|
-
] }),
|
|
2082
|
+
/* @__PURE__ */ u(mn, { children: "See Terms and Conditions" })
|
|
2083
|
+
] }), Cn = /* @__PURE__ */ l("button")({
|
|
2084
2084
|
name: "SButton",
|
|
2085
2085
|
class: "s1nve60q",
|
|
2086
2086
|
propsAsIs: !1
|
|
2087
|
-
}),
|
|
2087
|
+
}), Sn = /* @__PURE__ */ l("span")({
|
|
2088
2088
|
name: "ButtonLabel",
|
|
2089
2089
|
class: "b1xoswwx",
|
|
2090
2090
|
propsAsIs: !1
|
|
2091
|
-
}),
|
|
2091
|
+
}), Un = ({ disabled: s, variant: n = "primary", onClick: c, children: I, ...T }) => /* @__PURE__ */ u(Cn, { onClick: c, disabled: s, "data-variant": n, ...T, children: /* @__PURE__ */ u(Sn, { children: I }) }), Yn = /* @__PURE__ */ l("div")({
|
|
2092
2092
|
name: "Container",
|
|
2093
2093
|
class: "c18uddbs",
|
|
2094
2094
|
propsAsIs: !1
|
|
2095
|
-
}),
|
|
2095
|
+
}), Qn = /* @__PURE__ */ l("div")({
|
|
2096
2096
|
name: "Content",
|
|
2097
2097
|
class: "cvcfjf6",
|
|
2098
2098
|
propsAsIs: !1
|
|
2099
|
-
}),
|
|
2099
|
+
}), bn = /* @__PURE__ */ l("div")({
|
|
2100
2100
|
name: "OnboardingHeader",
|
|
2101
2101
|
class: "o1ie27lw",
|
|
2102
2102
|
propsAsIs: !1
|
|
2103
|
-
}),
|
|
2103
|
+
}), vn = /* @__PURE__ */ l("button")({
|
|
2104
2104
|
name: "CloseBtn",
|
|
2105
2105
|
class: "c15cjkwi",
|
|
2106
2106
|
propsAsIs: !1
|
|
2107
|
-
}),
|
|
2107
|
+
}), Bn = () => b, _n = /* @__PURE__ */ l(Bn())({
|
|
2108
2108
|
name: "IconClose",
|
|
2109
2109
|
class: "i1mavjt2",
|
|
2110
2110
|
propsAsIs: !0
|
|
2111
|
-
}),
|
|
2111
|
+
}), Fn = /* @__PURE__ */ l("div")({
|
|
2112
2112
|
name: "OnboardingFooter",
|
|
2113
2113
|
class: "o1x0dyzv",
|
|
2114
2114
|
propsAsIs: !1
|
|
2115
|
-
}),
|
|
2115
|
+
}), $n = () => Un, Rn = /* @__PURE__ */ l($n())({
|
|
2116
2116
|
name: "OnboardingActionBtn",
|
|
2117
2117
|
class: "o1jfi9c3",
|
|
2118
2118
|
propsAsIs: !0
|
|
2119
|
-
}),
|
|
2119
|
+
}), le = {
|
|
2120
2120
|
steps: !1,
|
|
2121
2121
|
rules: !1,
|
|
2122
2122
|
inviteCard: !1
|
|
2123
2123
|
}, Wn = ({
|
|
2124
2124
|
gamification: s,
|
|
2125
2125
|
steps: n,
|
|
2126
|
-
rules:
|
|
2127
|
-
rulesBtnLabel:
|
|
2128
|
-
rulesTitle:
|
|
2129
|
-
primaryColor:
|
|
2130
|
-
inviteLink:
|
|
2126
|
+
rules: c,
|
|
2127
|
+
rulesBtnLabel: I,
|
|
2128
|
+
rulesTitle: T,
|
|
2129
|
+
primaryColor: D,
|
|
2130
|
+
inviteLink: N,
|
|
2131
2131
|
socialLinks: o,
|
|
2132
|
-
inviteCardTitle:
|
|
2133
|
-
inviteCardSubtext:
|
|
2134
|
-
inviteCardBtnLabel:
|
|
2135
|
-
onClose:
|
|
2132
|
+
inviteCardTitle: h,
|
|
2133
|
+
inviteCardSubtext: A,
|
|
2134
|
+
inviteCardBtnLabel: y,
|
|
2135
|
+
onClose: E
|
|
2136
2136
|
}) => {
|
|
2137
|
-
const [
|
|
2138
|
-
|
|
2139
|
-
n != null && n.length ?
|
|
2137
|
+
const [j, p] = W(0), [z, f] = W(le);
|
|
2138
|
+
J(() => {
|
|
2139
|
+
n != null && n.length ? f({ ...le, steps: !0 }) : c != null && c.length ? f({ ...le, rules: !0 }) : f({ ...le, inviteCard: !0 });
|
|
2140
2140
|
}, []);
|
|
2141
|
-
const
|
|
2142
|
-
n != null && n.length &&
|
|
2143
|
-
}, [
|
|
2141
|
+
const U = Qe(() => z.steps && j === 0 ? "Continue" : z.rules ? I || "Got it" : z.inviteCard ? y || "Play Now" : "Next", [z, j, I, y]), O = Ae(() => {
|
|
2142
|
+
n != null && n.length && j < n.length - 1 ? p((Q) => ++Q) : c != null && c.length && z.steps ? f({ ...le, rules: !0 }) : z.rules && f({ ...le, inviteCard: !0 });
|
|
2143
|
+
}, [j, n == null ? void 0 : n.length, c == null ? void 0 : c.length, z, p, f]), w = async () => {
|
|
2144
2144
|
await s.onboardingStatus.submitInplay();
|
|
2145
2145
|
};
|
|
2146
|
-
return /* @__PURE__ */
|
|
2147
|
-
/* @__PURE__ */
|
|
2148
|
-
/* @__PURE__ */
|
|
2149
|
-
|
|
2150
|
-
|
|
2151
|
-
|
|
2152
|
-
|
|
2146
|
+
return /* @__PURE__ */ u(Jr, { children: ({ width: Q, height: q }) => /* @__PURE__ */ d(Yn, { style: { width: Q, height: q }, children: [
|
|
2147
|
+
/* @__PURE__ */ u(bn, { children: /* @__PURE__ */ u(vn, { onClick: E, children: /* @__PURE__ */ u(_n, { name: "icon-close-btn-gray" }) }) }),
|
|
2148
|
+
/* @__PURE__ */ d(Qn, { children: [
|
|
2149
|
+
z.steps && (n == null ? void 0 : n.length) && /* @__PURE__ */ u(sn, { stepsCount: n.length, currentStep: j, ...n[j] }),
|
|
2150
|
+
z.rules && /* @__PURE__ */ u(kn, { rules: c, rulesTitle: T, primaryColor: D }),
|
|
2151
|
+
z.inviteCard && /* @__PURE__ */ u(
|
|
2152
|
+
An,
|
|
2153
2153
|
{
|
|
2154
|
-
inviteLink:
|
|
2155
|
-
inviteCardTitle:
|
|
2156
|
-
inviteCardSubtext:
|
|
2157
|
-
primaryColor:
|
|
2154
|
+
inviteLink: N,
|
|
2155
|
+
inviteCardTitle: h,
|
|
2156
|
+
inviteCardSubtext: A,
|
|
2157
|
+
primaryColor: D,
|
|
2158
2158
|
socialLinks: o
|
|
2159
2159
|
}
|
|
2160
2160
|
)
|
|
2161
2161
|
] }),
|
|
2162
|
-
/* @__PURE__ */
|
|
2162
|
+
/* @__PURE__ */ u(Fn, { children: /* @__PURE__ */ u(Rn, { onClick: z.inviteCard ? w : O, children: U }) })
|
|
2163
2163
|
] }) });
|
|
2164
|
-
},
|
|
2164
|
+
}, Gn = /* @__PURE__ */ l("div")({
|
|
2165
2165
|
name: "Container",
|
|
2166
2166
|
class: "cocfo2g",
|
|
2167
2167
|
propsAsIs: !1
|
|
2168
|
-
}),
|
|
2168
|
+
}), Pn = /* @__PURE__ */ l("div")({
|
|
2169
2169
|
name: "CloseIconWrap",
|
|
2170
2170
|
class: "c1pdhxdk",
|
|
2171
2171
|
propsAsIs: !1
|
|
2172
|
-
}),
|
|
2172
|
+
}), Zn = () => b, Vn = /* @__PURE__ */ l(Zn())({
|
|
2173
2173
|
name: "CloseIcon",
|
|
2174
2174
|
class: "c1funj3r",
|
|
2175
2175
|
propsAsIs: !0
|
|
2176
|
-
}),
|
|
2176
|
+
}), qn = /* @__PURE__ */ l("div")({
|
|
2177
2177
|
name: "Title",
|
|
2178
2178
|
class: "t1okg06y",
|
|
2179
2179
|
propsAsIs: !1
|
|
2180
|
-
}),
|
|
2180
|
+
}), Hn = /* @__PURE__ */ l("img")({
|
|
2181
2181
|
name: "SponsorLogo",
|
|
2182
2182
|
class: "sb1n923",
|
|
2183
2183
|
propsAsIs: !1
|
|
2184
|
-
}),
|
|
2184
|
+
}), Jn = /* @__PURE__ */ l("div")({
|
|
2185
2185
|
name: "PresentsTitle",
|
|
2186
2186
|
class: "p1stllxd",
|
|
2187
2187
|
propsAsIs: !1
|
|
2188
|
-
}),
|
|
2188
|
+
}), Xn = /* @__PURE__ */ l("div")({
|
|
2189
2189
|
name: "Subtitle",
|
|
2190
2190
|
class: "s13kvdzw",
|
|
2191
2191
|
propsAsIs: !1
|
|
2192
|
-
}),
|
|
2192
|
+
}), Kn = /* @__PURE__ */ l("div")({
|
|
2193
2193
|
name: "Description",
|
|
2194
2194
|
class: "dfvmv3t",
|
|
2195
2195
|
propsAsIs: !1
|
|
2196
|
-
}), es = /* @__PURE__ */
|
|
2196
|
+
}), es = /* @__PURE__ */ l("button")({
|
|
2197
2197
|
name: "ActionButton",
|
|
2198
2198
|
class: "ay8e3j9",
|
|
2199
2199
|
propsAsIs: !1
|
|
2200
|
-
}),
|
|
2201
|
-
var
|
|
2202
|
-
return /* @__PURE__ */
|
|
2203
|
-
/* @__PURE__ */
|
|
2204
|
-
((
|
|
2205
|
-
/* @__PURE__ */
|
|
2206
|
-
/* @__PURE__ */
|
|
2200
|
+
}), Ii = ({ close: s, action: n, onboarding: c }) => {
|
|
2201
|
+
var I, T, D, N, o, h, A, y;
|
|
2202
|
+
return /* @__PURE__ */ d(Gn, { children: [
|
|
2203
|
+
/* @__PURE__ */ u(Pn, { onClick: s, children: /* @__PURE__ */ u(Vn, { name: "icon-cross" }) }),
|
|
2204
|
+
((T = (I = c == null ? void 0 : c.titleCard) == null ? void 0 : I.media) == null ? void 0 : T.sponsorLogo) && /* @__PURE__ */ d(qn, { children: [
|
|
2205
|
+
/* @__PURE__ */ u(Hn, { alt: "sponsor-logo", src: (N = (D = c == null ? void 0 : c.titleCard) == null ? void 0 : D.media) == null ? void 0 : N.sponsorLogo }),
|
|
2206
|
+
/* @__PURE__ */ u(Jn, { children: "PRESENTS" })
|
|
2207
2207
|
] }),
|
|
2208
|
-
((o =
|
|
2209
|
-
((
|
|
2210
|
-
/* @__PURE__ */
|
|
2208
|
+
((o = c == null ? void 0 : c.titleCard) == null ? void 0 : o.title) && /* @__PURE__ */ u(Xn, { children: (h = c == null ? void 0 : c.titleCard) == null ? void 0 : h.title }),
|
|
2209
|
+
((A = c == null ? void 0 : c.titleCard) == null ? void 0 : A.subtitle) && /* @__PURE__ */ u(Kn, { children: (y = c == null ? void 0 : c.titleCard) == null ? void 0 : y.subtitle }),
|
|
2210
|
+
/* @__PURE__ */ u(es, { onClick: n, children: "Play Now" })
|
|
2211
2211
|
] });
|
|
2212
|
-
}, ts = /* @__PURE__ */ h("div")({
|
|
2212
|
+
}, is = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iOTIiIGhlaWdodD0iMTkiIHZpZXdCb3g9IjAgMCA5MiAxOSIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTE0LjE3MDEgMC45NTM5OTZDMTMuOTA0NyAwLjg3MzE0NSAxMy42MzkzIDEuMDE3NyAxMy4zNzM5IDEuMTY0N0MxMy4yNzk3IDEuMjE2MTUgMTMuMjEyNyAxLjMwNjggMTMuMTkwNCAxLjQwOTdMMTIuNzczNiAzLjMzMjk4QzEyLjc1ODggMy40MDQwNCAxMi44MjMzIDMuNDY3NzQgMTIuODk1MiAzLjQ1MzA0QzEzLjMzNDIgMy4zNTUwNCAxMy43NTA5IDIuOTc1MjggMTQuMTkgMy4xMDc1OEMxNC42ODExIDMuMjU3MDMgMTUuMTcyMiAyLjY0MjA3IDE1LjY2MzQgMi42NDk0MlYwLjQyOTY4OEMxNS4xNjk4IDAuNDMyMTM4IDE0LjY2MTMgMS4xMDM0NSAxNC4xNzAxIDAuOTUzOTk2WiIgZmlsbD0iIzAwNjc0NyIvPgo8cGF0aCBkPSJNMjAuNDQwNCA2Ljg0Nzg2QzIwLjMzNjIgNi43NzY4MSAyMC4yNzE3IDYuNjYxNjYgMjAuMjcxNyA2LjUzNjcxVjYuMTg2MzVDMjAuMjcxNyA1Ljg3Mjc1IDIwLjAxMzggNS42MTU0OSAxOS42OTM4IDUu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NzIgMTQuNDk5MSA5MC45MTcyIDEzLjk1MzhDOTAuOTE3MiAxMy40NDk0IDkwLjYwNDEgMTIuODYxMyA5MC4wNTc0IDEyLjQzNzVDODkuNTg3NyAxMi4wNzM4IDg5LjA4NTMgMTEuNzQ5MyA4OC41OTk2IDExLjM5NDVDODguMDcyOSAxMC45OTkzIDg3LjgwOTcgMTAuNjYzMiA4Ny44MDk3IDEwLjI5NUM4Ny44MDk3IDEwLjA5MDkgODcuOTExIDkuODg2MjMgODguMTEzNCA5LjY4MTg1Qzg4LjM2OTcgOS40MjI5NyA4OC43MTI4IDkuMzY1NjkgODkuMTcxNyA5LjM2NTY5WiIgZmlsbD0iIzAwNjc0NyIvPgo8L3N2Zz4K", ts = /* @__PURE__ */ l("div")({
|
|
2213
2213
|
name: "OnboardingContainer",
|
|
2214
2214
|
class: "o9squag",
|
|
2215
2215
|
propsAsIs: !1
|
|
2216
|
-
}),
|
|
2216
|
+
}), rs = () => Be, ns = /* @__PURE__ */ l(rs())({
|
|
2217
2217
|
name: "OnboardingNotificationContainer",
|
|
2218
2218
|
class: "o1c8wcli",
|
|
2219
2219
|
propsAsIs: !0
|
|
2220
|
-
}),
|
|
2220
|
+
}), Di = /* @__PURE__ */ l("div")({
|
|
2221
2221
|
name: "InnerContainer",
|
|
2222
2222
|
class: "i18oyadd",
|
|
2223
2223
|
propsAsIs: !1
|
|
2224
|
-
}),
|
|
2224
|
+
}), ss = "cebdc0u", os = ({
|
|
2225
2225
|
deepLink: s,
|
|
2226
2226
|
onboardingOpts: n,
|
|
2227
|
-
notification:
|
|
2228
|
-
gamification:
|
|
2227
|
+
notification: c,
|
|
2228
|
+
gamification: I
|
|
2229
2229
|
}) => {
|
|
2230
|
-
var
|
|
2231
|
-
const [
|
|
2232
|
-
return
|
|
2233
|
-
const
|
|
2234
|
-
|
|
2230
|
+
var T, D, N, o, h, A;
|
|
2231
|
+
const [y, E] = W(void 0);
|
|
2232
|
+
return J(() => {
|
|
2233
|
+
const j = s.$store.subscribe((p) => {
|
|
2234
|
+
p && E(p.data);
|
|
2235
2235
|
});
|
|
2236
2236
|
return () => {
|
|
2237
|
-
|
|
2237
|
+
j();
|
|
2238
2238
|
};
|
|
2239
|
-
}, [s.$store]), /* @__PURE__ */
|
|
2240
|
-
className:
|
|
2241
|
-
children: /* @__PURE__ */
|
|
2239
|
+
}, [s.$store]), /* @__PURE__ */ u(ts, {
|
|
2240
|
+
className: hi(c.hiding && ss),
|
|
2241
|
+
children: /* @__PURE__ */ u(Wn, {
|
|
2242
2242
|
rules: [{
|
|
2243
2243
|
label: "Answer as many questions as you like.",
|
|
2244
2244
|
icon: "icon-btn-feature-groups"
|
|
@@ -2249,8 +2249,8 @@ const Jr = /* @__PURE__ */ h("div")({
|
|
|
2249
2249
|
label: "Top the leader board and best your friends.",
|
|
2250
2250
|
icon: "icon-trophy"
|
|
2251
2251
|
}],
|
|
2252
|
-
rulesBtnLabel: (
|
|
2253
|
-
rulesTitle: (
|
|
2252
|
+
rulesBtnLabel: (T = n.rules) == null ? void 0 : T.buttonLabel,
|
|
2253
|
+
rulesTitle: (D = n.rules) == null ? void 0 : D.heading,
|
|
2254
2254
|
steps: [{
|
|
2255
2255
|
graphicSrc: "https://cdn.streamlayer.io/assets/sdk-web/onboarding-steps/step_1.png",
|
|
2256
2256
|
headline: "Welcome to the Featured Groups +",
|
|
@@ -2269,14 +2269,14 @@ const Jr = /* @__PURE__ */ h("div")({
|
|
|
2269
2269
|
graphicSrc: "https://cdn.streamlayer.io/assets/sdk-web/onboarding-steps/step_5.png",
|
|
2270
2270
|
headline: "Compete against friends on the leaderboard"
|
|
2271
2271
|
}],
|
|
2272
|
-
primaryColor: (
|
|
2273
|
-
inviteLink:
|
|
2272
|
+
primaryColor: (N = n.inviteCard) == null ? void 0 : N.iconColor,
|
|
2273
|
+
inviteLink: y == null ? void 0 : y.url,
|
|
2274
2274
|
inviteCardTitle: (o = n.inviteCard) == null ? void 0 : o.heading,
|
|
2275
|
-
inviteCardSubtext: (
|
|
2276
|
-
inviteCardBtnLabel: (
|
|
2275
|
+
inviteCardSubtext: (h = n.inviteCard) == null ? void 0 : h.subtext,
|
|
2276
|
+
inviteCardBtnLabel: (A = n.inviteCard) == null ? void 0 : A.buttonLabel,
|
|
2277
2277
|
onClose: () => {
|
|
2278
|
-
var
|
|
2279
|
-
(
|
|
2278
|
+
var j;
|
|
2279
|
+
(j = c.close) == null || j.call(c);
|
|
2280
2280
|
},
|
|
2281
2281
|
socialLinks: [{
|
|
2282
2282
|
icon: "icon-facebook",
|
|
@@ -2287,146 +2287,154 @@ const Jr = /* @__PURE__ */ h("div")({
|
|
|
2287
2287
|
link: "https://twitter.com/@TheMasters",
|
|
2288
2288
|
label: "X"
|
|
2289
2289
|
}],
|
|
2290
|
-
gamification:
|
|
2290
|
+
gamification: I
|
|
2291
2291
|
})
|
|
2292
2292
|
});
|
|
2293
|
-
},
|
|
2293
|
+
}, Ms = ({
|
|
2294
2294
|
sdk: s,
|
|
2295
2295
|
notification: n,
|
|
2296
|
-
saveHeight:
|
|
2297
|
-
style:
|
|
2296
|
+
saveHeight: c,
|
|
2297
|
+
style: I
|
|
2298
2298
|
}) => {
|
|
2299
|
-
|
|
2300
|
-
|
|
2301
|
-
|
|
2302
|
-
|
|
2303
|
-
|
|
2299
|
+
var T;
|
|
2300
|
+
const D = je(null), [N, o] = W(!1), h = s.getFeature(be.GAMES), A = n.data.onboarding;
|
|
2301
|
+
return (T = A == null ? void 0 : A.titleCard) != null && T.media && (A.titleCard.media.sponsorLogo = is), Xi(() => {
|
|
2302
|
+
var y;
|
|
2303
|
+
c(((y = D.current) == null ? void 0 : y.getBoundingClientRect().height) || 0);
|
|
2304
|
+
}, [c]), N && h && A ? /* @__PURE__ */ u(os, {
|
|
2304
2305
|
notification: n,
|
|
2305
|
-
setOpened:
|
|
2306
|
-
gamification:
|
|
2307
|
-
onboardingOpts:
|
|
2308
|
-
deepLink:
|
|
2309
|
-
}) : /* @__PURE__ */
|
|
2310
|
-
children: [/* @__PURE__ */
|
|
2311
|
-
ref: (
|
|
2312
|
-
|
|
2306
|
+
setOpened: o,
|
|
2307
|
+
gamification: h,
|
|
2308
|
+
onboardingOpts: A,
|
|
2309
|
+
deepLink: h.deepLink
|
|
2310
|
+
}) : /* @__PURE__ */ d(te, {
|
|
2311
|
+
children: [/* @__PURE__ */ u(Di, {
|
|
2312
|
+
ref: (y) => {
|
|
2313
|
+
D.current = y;
|
|
2313
2314
|
},
|
|
2314
2315
|
style: {
|
|
2315
2316
|
position: "absolute",
|
|
2316
2317
|
visibility: "hidden"
|
|
2317
2318
|
},
|
|
2318
|
-
children: /* @__PURE__ */
|
|
2319
|
+
children: /* @__PURE__ */ u(Ii, {
|
|
2319
2320
|
close: () => {
|
|
2320
2321
|
},
|
|
2321
2322
|
action: () => {
|
|
2322
2323
|
},
|
|
2323
|
-
onboarding:
|
|
2324
|
+
onboarding: A
|
|
2324
2325
|
})
|
|
2325
|
-
}), /* @__PURE__ */
|
|
2326
|
-
style:
|
|
2326
|
+
}), /* @__PURE__ */ u(ns, {
|
|
2327
|
+
style: I,
|
|
2327
2328
|
hiding: n.hiding,
|
|
2328
|
-
children: /* @__PURE__ */
|
|
2329
|
-
children: /* @__PURE__ */
|
|
2329
|
+
children: /* @__PURE__ */ u(Di, {
|
|
2330
|
+
children: /* @__PURE__ */ u(Ii, {
|
|
2330
2331
|
close: n.close,
|
|
2331
|
-
action: () =>
|
|
2332
|
-
onboarding:
|
|
2332
|
+
action: () => o(!0),
|
|
2333
|
+
onboarding: A
|
|
2333
2334
|
})
|
|
2334
2335
|
})
|
|
2335
2336
|
})]
|
|
2336
2337
|
});
|
|
2337
|
-
},
|
|
2338
|
+
}, cs = () => Be, us = /* @__PURE__ */ l(cs())({
|
|
2338
2339
|
name: "Container",
|
|
2339
2340
|
class: "ctckejh",
|
|
2340
2341
|
propsAsIs: !0
|
|
2341
|
-
}),
|
|
2342
|
+
}), Ti = /* @__PURE__ */ l("div")({
|
|
2342
2343
|
name: "InnerContainer",
|
|
2343
2344
|
class: "i1ri7tzr",
|
|
2344
2345
|
propsAsIs: !1
|
|
2345
|
-
}),
|
|
2346
|
-
|
|
2347
|
-
|
|
2346
|
+
}), as = /* @__PURE__ */ l("div")({
|
|
2347
|
+
name: "NotificationRefreshing",
|
|
2348
|
+
class: "n1ng1qh5",
|
|
2349
|
+
propsAsIs: !1
|
|
2350
|
+
}), ls = (s) => {
|
|
2351
|
+
const [n, c] = W(0), I = je(null), T = Ae((N) => {
|
|
2352
|
+
I.current = N;
|
|
2348
2353
|
}, []);
|
|
2349
|
-
|
|
2350
|
-
var
|
|
2351
|
-
const o = (
|
|
2352
|
-
o &&
|
|
2354
|
+
J(() => {
|
|
2355
|
+
var N;
|
|
2356
|
+
const o = (N = I.current) == null ? void 0 : N.getBoundingClientRect();
|
|
2357
|
+
o && c(o.height);
|
|
2353
2358
|
}, [s]);
|
|
2354
|
-
const
|
|
2355
|
-
|
|
2359
|
+
const D = Ae((N) => {
|
|
2360
|
+
c(N);
|
|
2356
2361
|
}, []);
|
|
2357
|
-
return [
|
|
2358
|
-
},
|
|
2359
|
-
var
|
|
2360
|
-
const [
|
|
2361
|
-
return n.type ===
|
|
2362
|
-
/* @__PURE__ */
|
|
2363
|
-
/* @__PURE__ */
|
|
2364
|
-
|
|
2365
|
-
|
|
2362
|
+
return [T, n, D];
|
|
2363
|
+
}, Ns = ({ sdk: s, notification: n }) => {
|
|
2364
|
+
var c, I;
|
|
2365
|
+
const [T, D, N] = ls(n.id);
|
|
2366
|
+
return n.type === pe.QUESTION ? /* @__PURE__ */ d(te, { children: [
|
|
2367
|
+
/* @__PURE__ */ u(Ti, { ref: T, style: { position: "absolute", visibility: "hidden" }, children: /* @__PURE__ */ u(ei, { ...n }) }),
|
|
2368
|
+
/* @__PURE__ */ d(us, { style: { height: n.hiding ? 0 : D }, hiding: n.hiding, children: [
|
|
2369
|
+
/* @__PURE__ */ u(Ti, { style: { height: "100%" }, children: /* @__PURE__ */ u(ei, { ...n }) }),
|
|
2370
|
+
/* @__PURE__ */ u(as, {}, n.id)
|
|
2371
|
+
] })
|
|
2372
|
+
] }) : n.type === pe.QUESTION_RESOLVED && (I = (c = n.data) == null ? void 0 : c.question) != null && I.predictionResult ? /* @__PURE__ */ u(
|
|
2373
|
+
vr,
|
|
2366
2374
|
{
|
|
2367
|
-
style: { height: n.hiding ? 0 :
|
|
2368
|
-
saveHeight:
|
|
2375
|
+
style: { height: n.hiding ? 0 : D },
|
|
2376
|
+
saveHeight: N,
|
|
2369
2377
|
close: n.close,
|
|
2370
2378
|
hiding: n.hiding,
|
|
2371
2379
|
...n.data.question
|
|
2372
2380
|
}
|
|
2373
|
-
) : n.type ===
|
|
2374
|
-
|
|
2381
|
+
) : n.type === pe.ONBOARDING ? /* @__PURE__ */ u(
|
|
2382
|
+
Ms,
|
|
2375
2383
|
{
|
|
2376
|
-
style: { height: n.hiding ? 0 :
|
|
2377
|
-
saveHeight:
|
|
2384
|
+
style: { height: n.hiding ? 0 : D },
|
|
2385
|
+
saveHeight: N,
|
|
2378
2386
|
sdk: s,
|
|
2379
2387
|
notification: n
|
|
2380
2388
|
}
|
|
2381
2389
|
) : null;
|
|
2382
|
-
},
|
|
2383
|
-
const [n] = W(s.getNotificationsStore()),
|
|
2384
|
-
if (!(
|
|
2390
|
+
}, gs = ({ sdk: s }) => {
|
|
2391
|
+
const [n] = W(s.getNotificationsStore()), c = re(n), I = Qe(() => {
|
|
2392
|
+
if (!(c != null && c.size))
|
|
2385
2393
|
return null;
|
|
2386
|
-
for (const
|
|
2387
|
-
if (
|
|
2388
|
-
return
|
|
2389
|
-
return
|
|
2390
|
-
}, [
|
|
2391
|
-
return
|
|
2392
|
-
},
|
|
2394
|
+
for (const T of c.values())
|
|
2395
|
+
if (T.type === pe.ONBOARDING)
|
|
2396
|
+
return T;
|
|
2397
|
+
return c.values().next().value;
|
|
2398
|
+
}, [c]);
|
|
2399
|
+
return I ? /* @__PURE__ */ u(Ns, { sdk: s, notification: I }) : null;
|
|
2400
|
+
}, Is = /* @__PURE__ */ l("div")({
|
|
2393
2401
|
name: "SDKContainer",
|
|
2394
2402
|
class: "stu11h7",
|
|
2395
2403
|
propsAsIs: !1
|
|
2396
|
-
}),
|
|
2404
|
+
}), ji = /* @__PURE__ */ l("div")({
|
|
2397
2405
|
name: "SDKScrollContainer",
|
|
2398
2406
|
class: "s1ucohr1",
|
|
2399
2407
|
propsAsIs: !1
|
|
2400
|
-
}),
|
|
2408
|
+
}), Ds = /* @__PURE__ */ l("div")({
|
|
2401
2409
|
name: "SDKContentContainer",
|
|
2402
2410
|
class: "s1el4wvm",
|
|
2403
2411
|
propsAsIs: !1
|
|
2404
|
-
}),
|
|
2412
|
+
}), Ts = () => Ds, ms = /* @__PURE__ */ l(Ts())({
|
|
2405
2413
|
name: "SDKWhiteContainer",
|
|
2406
2414
|
class: "s1oe3036",
|
|
2407
2415
|
propsAsIs: !0
|
|
2408
|
-
}),
|
|
2409
|
-
const n =
|
|
2410
|
-
(
|
|
2411
|
-
|
|
2412
|
-
s.openFeature(
|
|
2413
|
-
})) : s.closeFeature();
|
|
2416
|
+
}), js = (s) => {
|
|
2417
|
+
const n = je(""), [c, I] = W(!1), T = re(s.status), D = re(s.userId()), N = T === "ready", [o, h] = W(ee), A = Ae(
|
|
2418
|
+
(j, p) => {
|
|
2419
|
+
h(p), p === ee ? (j && s.createEventSession(j), window.requestAnimationFrame(() => {
|
|
2420
|
+
s.openFeature(be.GAMES);
|
|
2421
|
+
})) : s.closeFeature(!1);
|
|
2414
2422
|
},
|
|
2415
2423
|
[s]
|
|
2416
2424
|
);
|
|
2417
|
-
|
|
2418
|
-
!
|
|
2419
|
-
}, [
|
|
2420
|
-
const
|
|
2421
|
-
n.current =
|
|
2422
|
-
if (
|
|
2423
|
-
|
|
2425
|
+
J(() => {
|
|
2426
|
+
!N && o === ee && (h(Ne), s.closeFeature(!0));
|
|
2427
|
+
}, [N, o, s]);
|
|
2428
|
+
const y = (j) => {
|
|
2429
|
+
n.current = j, I(!0), s.initializeApp({ skipOrganizationSettings: !0 }).then(({ enabled: p, err: z }) => {
|
|
2430
|
+
if (z) {
|
|
2431
|
+
A(j, Ne);
|
|
2424
2432
|
return;
|
|
2425
2433
|
}
|
|
2426
|
-
if (
|
|
2427
|
-
s.isUserAuthorized().then((
|
|
2428
|
-
if (
|
|
2429
|
-
|
|
2434
|
+
if (p) {
|
|
2435
|
+
s.isUserAuthorized().then((f) => {
|
|
2436
|
+
if (f) {
|
|
2437
|
+
A(j, ee);
|
|
2430
2438
|
return;
|
|
2431
2439
|
} else
|
|
2432
2440
|
s.disableApp();
|
|
@@ -2434,103 +2442,103 @@ const Jr = /* @__PURE__ */ h("div")({
|
|
|
2434
2442
|
return;
|
|
2435
2443
|
}
|
|
2436
2444
|
});
|
|
2437
|
-
},
|
|
2438
|
-
|
|
2445
|
+
}, E = () => {
|
|
2446
|
+
I(!1), s.disableApp();
|
|
2439
2447
|
};
|
|
2440
|
-
return
|
|
2441
|
-
if (!
|
|
2442
|
-
|
|
2448
|
+
return J(() => {
|
|
2449
|
+
if (!D) {
|
|
2450
|
+
N && (h(Ne), s.disableApp());
|
|
2443
2451
|
return;
|
|
2444
2452
|
}
|
|
2445
|
-
|
|
2453
|
+
D && n.current && c && s.initializeApp({ skipOrganizationSettings: !0 }).then(() => {
|
|
2446
2454
|
s.createEventSession(n.current);
|
|
2447
2455
|
});
|
|
2448
|
-
}, [
|
|
2449
|
-
sdkEnabled:
|
|
2450
|
-
sdkReady:
|
|
2456
|
+
}, [D]), {
|
|
2457
|
+
sdkEnabled: c,
|
|
2458
|
+
sdkReady: N,
|
|
2451
2459
|
activeOverlay: o,
|
|
2452
|
-
activateAndLoadOverlay:
|
|
2453
|
-
activateEventWithId:
|
|
2454
|
-
deactivate:
|
|
2455
|
-
isLogged: !!
|
|
2460
|
+
activateAndLoadOverlay: A,
|
|
2461
|
+
activateEventWithId: y,
|
|
2462
|
+
deactivate: E,
|
|
2463
|
+
isLogged: !!D
|
|
2456
2464
|
};
|
|
2457
|
-
},
|
|
2458
|
-
const n = re(s.getActiveFeature()),
|
|
2459
|
-
return
|
|
2460
|
-
const
|
|
2465
|
+
}, hs = (s) => {
|
|
2466
|
+
const n = re(s.getActiveFeature()), c = re(s.streamStore()), [I, T] = W(null);
|
|
2467
|
+
return J(() => {
|
|
2468
|
+
const D = s.getFeatures();
|
|
2461
2469
|
if (n)
|
|
2462
|
-
for (const [
|
|
2463
|
-
|
|
2470
|
+
for (const [N, o] of D)
|
|
2471
|
+
N === n ? o.status.get() === De.Suspended && (o.enable(), T(o)) : o.status.get() === De.Ready && o.disable();
|
|
2464
2472
|
else {
|
|
2465
|
-
for (const [,
|
|
2466
|
-
|
|
2467
|
-
|
|
2473
|
+
for (const [, N] of D)
|
|
2474
|
+
N.status.get() === De.Ready && N.disable();
|
|
2475
|
+
T(null);
|
|
2468
2476
|
}
|
|
2469
2477
|
return () => {
|
|
2470
|
-
for (const [,
|
|
2471
|
-
|
|
2478
|
+
for (const [, N] of D)
|
|
2479
|
+
N.status.get() === De.Ready && N.disable();
|
|
2472
2480
|
};
|
|
2473
|
-
}, [n, s,
|
|
2474
|
-
},
|
|
2475
|
-
const [,
|
|
2476
|
-
return /* @__PURE__ */
|
|
2477
|
-
},
|
|
2478
|
-
const { sdkEnabled:
|
|
2479
|
-
return
|
|
2481
|
+
}, [n, s, c]), [n, I];
|
|
2482
|
+
}, ds = ({ sdk: s, className: n }) => {
|
|
2483
|
+
const [, c] = hs(s);
|
|
2484
|
+
return /* @__PURE__ */ u(tt, { className: n, feature: c, sdk: s });
|
|
2485
|
+
}, ps = ({ sdk: s, overlays: n, children: c }) => {
|
|
2486
|
+
const { sdkEnabled: I, sdkReady: T, activeOverlay: D, activateAndLoadOverlay: N, activateEventWithId: o, deactivate: h, isLogged: A } = js(s);
|
|
2487
|
+
return J(() => {
|
|
2480
2488
|
import("./gamification-feature.js");
|
|
2481
|
-
}, []), /* @__PURE__ */
|
|
2482
|
-
|
|
2483
|
-
|
|
2489
|
+
}, []), /* @__PURE__ */ d(Is, { children: [
|
|
2490
|
+
I && /* @__PURE__ */ u(
|
|
2491
|
+
dt,
|
|
2484
2492
|
{
|
|
2485
|
-
sdkReady:
|
|
2486
|
-
activeOverlay:
|
|
2487
|
-
className:
|
|
2488
|
-
setActiveOverlay: (
|
|
2493
|
+
sdkReady: T,
|
|
2494
|
+
activeOverlay: D,
|
|
2495
|
+
className: Ke,
|
|
2496
|
+
setActiveOverlay: (y) => N("", y)
|
|
2489
2497
|
}
|
|
2490
2498
|
),
|
|
2491
|
-
|
|
2492
|
-
/* @__PURE__ */
|
|
2493
|
-
|
|
2499
|
+
T && /* @__PURE__ */ u(gs, { sdk: s }),
|
|
2500
|
+
/* @__PURE__ */ u(
|
|
2501
|
+
ji,
|
|
2494
2502
|
{
|
|
2495
|
-
"data-nav":
|
|
2496
|
-
style: { display: !
|
|
2497
|
-
children:
|
|
2503
|
+
"data-nav": I.toString(),
|
|
2504
|
+
style: { display: !I || D === Ne ? "block" : "none" },
|
|
2505
|
+
children: c && c({ activateEventWithId: o, deactivate: h })
|
|
2498
2506
|
}
|
|
2499
2507
|
),
|
|
2500
|
-
/* @__PURE__ */
|
|
2501
|
-
|
|
2508
|
+
/* @__PURE__ */ u(
|
|
2509
|
+
ji,
|
|
2502
2510
|
{
|
|
2503
|
-
"data-nav":
|
|
2504
|
-
style: { display:
|
|
2505
|
-
children: n &&
|
|
2511
|
+
"data-nav": I.toString(),
|
|
2512
|
+
style: { display: D === ze ? "block" : "none" },
|
|
2513
|
+
children: n && D === ze && n[D]
|
|
2506
2514
|
}
|
|
2507
2515
|
),
|
|
2508
|
-
|
|
2509
|
-
!
|
|
2516
|
+
T && D === ee && /* @__PURE__ */ u(ds, { className: Ke, sdk: s }),
|
|
2517
|
+
!A && /* @__PURE__ */ u("div", { style: { display: "flex", alignItems: "center", justifyContent: "center", width: "100%", height: "100%" }, children: "You are not logged in." })
|
|
2510
2518
|
] });
|
|
2511
2519
|
};
|
|
2512
|
-
const
|
|
2520
|
+
const ks = ({
|
|
2513
2521
|
sdkKey: s,
|
|
2514
2522
|
plugins: n,
|
|
2515
|
-
children:
|
|
2516
|
-
production:
|
|
2517
|
-
}) => /* @__PURE__ */
|
|
2518
|
-
const { sdk:
|
|
2519
|
-
if (
|
|
2523
|
+
children: c,
|
|
2524
|
+
production: I = !0
|
|
2525
|
+
}) => /* @__PURE__ */ u(Wi, { sdkKey: s, plugins: n, production: I, autoEnable: !1, children: c }), Cs = ({ children: s, overlays: n }) => {
|
|
2526
|
+
const { sdk: c, status: I } = Ki(Gi);
|
|
2527
|
+
if (I === Pi.UNSET)
|
|
2520
2528
|
throw new Error("Wrap app in `StreamLayerProvider`");
|
|
2521
|
-
return
|
|
2529
|
+
return c ? /* @__PURE__ */ u("div", { className: "StreamLayerSDK", children: /* @__PURE__ */ u(Zi, { style: { height: "100%" }, children: /* @__PURE__ */ u(ps, { sdk: c, overlays: n, children: s }) }) }) : s({});
|
|
2522
2530
|
};
|
|
2523
2531
|
export {
|
|
2524
|
-
|
|
2525
|
-
|
|
2526
|
-
|
|
2527
|
-
|
|
2528
|
-
|
|
2529
|
-
|
|
2530
|
-
|
|
2531
|
-
|
|
2532
|
-
|
|
2533
|
-
|
|
2534
|
-
|
|
2535
|
-
|
|
2532
|
+
Jr as A,
|
|
2533
|
+
ks as M,
|
|
2534
|
+
An as O,
|
|
2535
|
+
ms as a,
|
|
2536
|
+
Cs as b,
|
|
2537
|
+
Un as c,
|
|
2538
|
+
Be as f,
|
|
2539
|
+
Ds as n,
|
|
2540
|
+
pt as o,
|
|
2541
|
+
ji as r,
|
|
2542
|
+
ir as u,
|
|
2543
|
+
Et as w
|
|
2536
2544
|
};
|