@streamlayer/react 0.31.8 → 0.31.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,122 +1,121 @@
1
- import { jsx as c, jsxs as I, Fragment as me } from "react/jsx-runtime";
2
- import { d as Qe, S as Pt, a as Mt, b as qt, s as jt } from "./index2.js";
3
- import { lazy as Gt, useMemo as Le, Suspense as Wt, useRef as ht, useState as V, useEffect as he, Component as Ht, createElement as Yt, useCallback as pt, useContext as Vt } from "react";
4
- import { FeatureType as Ne, QuestionType as D } from "@streamlayer/sdk-web-types";
1
+ import { jsx as l, jsxs as I, Fragment as me } from "react/jsx-runtime";
2
+ import { d as Ke, S as Dt, a as Pt, b as Mt, s as qt } from "./index2.js";
3
+ import { lazy as Gt, useMemo as Le, Suspense as Wt, useRef as ht, useState as V, useEffect as he, Component as jt, createElement as Ht, useCallback as pt, useContext as Yt } from "react";
4
+ import { FeatureType as Re, QuestionType as D } from "@streamlayer/sdk-web-types";
5
5
  import { useStore as Z } from "@nanostores/react";
6
6
  import { FeatureStatus as de } from "@streamlayer/sdk-web-interfaces";
7
- import { s as h, n as z, c as Qt } from "./index4.js";
7
+ import { s as h, n as z, c as Vt } from "./index4.js";
8
8
  import { NotificationType as we } from "@streamlayer/sdk-web-notifications";
9
- import { Player as Kt } from "@lottiefiles/react-lottie-player";
10
- const Xt = ({ feature: s, sdk: n, children: l, className: d }) => {
9
+ const Kt = ({ feature: s, sdk: n, children: c, className: d }) => {
11
10
  const m = Z(s.status), g = Z(n.sdkStore.slStreamId);
12
- return g != null && g.loading ? /* @__PURE__ */ c("div", { className: d, children: "event is loading..." }) : g != null && g.data ? m !== de.Ready ? /* @__PURE__ */ c("div", { className: d, children: "wait feature..." }) : l : /* @__PURE__ */ c("div", { className: d, children: "event is forbidden..." });
13
- }, Jt = Gt(() => import("./gamification-feature.js")), Zt = ({
11
+ return g != null && g.loading ? /* @__PURE__ */ l("div", { className: d, children: "event is loading..." }) : g != null && g.data ? m !== de.Ready ? /* @__PURE__ */ l("div", { className: d, children: "wait feature..." }) : c : /* @__PURE__ */ l("div", { className: d, children: "event is forbidden..." });
12
+ }, Qt = Gt(() => import("./gamification-feature.js")), Xt = ({
14
13
  sdk: s,
15
14
  feature: n,
16
- className: l
15
+ className: c
17
16
  }) => {
18
- const d = Le(() => n && n.featureConfig.get().type === Ne.GAMES ? /* @__PURE__ */ c(Xt, { className: l, sdk: s, feature: n, children: /* @__PURE__ */ c(Jt, { className: l, gamification: n, sdk: s }) }) : null, [s, n, l]);
19
- return /* @__PURE__ */ c(
17
+ const d = Le(() => n && n.featureConfig.get().type === Re.GAMES ? /* @__PURE__ */ l(Kt, { className: c, sdk: s, feature: n, children: /* @__PURE__ */ l(Qt, { className: c, gamification: n, sdk: s }) }) : null, [s, n, c]);
18
+ return /* @__PURE__ */ l(
20
19
  Wt,
21
20
  {
22
- fallback: /* @__PURE__ */ c("div", { style: { display: "flex", alignItems: "center", justifyContent: "center", width: "100%", height: "100%" }, children: "page loading..." }),
21
+ fallback: /* @__PURE__ */ l("div", { style: { display: "flex", alignItems: "center", justifyContent: "center", width: "100%", height: "100%" }, children: "page loading..." }),
23
22
  children: d
24
23
  }
25
24
  );
26
- }, er = /* @__PURE__ */ h("button")({
25
+ }, Jt = /* @__PURE__ */ h("button")({
27
26
  name: "SButton",
28
27
  class: "sxxa0c",
29
28
  propsAsIs: !1
30
- }), tr = /* @__PURE__ */ h("span")({
29
+ }), Zt = /* @__PURE__ */ h("span")({
31
30
  name: "ButtonIcon",
32
31
  class: "b193dcyu",
33
32
  propsAsIs: !1
34
- }), rr = /* @__PURE__ */ h("span")({
33
+ }), er = /* @__PURE__ */ h("span")({
35
34
  name: "ButtonLabel",
36
35
  class: "b40tuix",
37
36
  propsAsIs: !1
38
- }), Re = ({ disabled: s, active: n, onClick: l, label: d, icon: m }) => /* @__PURE__ */ c(er, { onClick: l, disabled: s, "data-selected": n, children: /* @__PURE__ */ I(me, { children: [
39
- m && /* @__PURE__ */ c(tr, { children: m }),
40
- /* @__PURE__ */ c(rr, { children: d })
41
- ] }) }), ir = () => z, nr = /* @__PURE__ */ h(ir())({
37
+ }), Ne = ({ disabled: s, active: n, onClick: c, label: d, icon: m }) => /* @__PURE__ */ l(Jt, { onClick: c, disabled: s, "data-selected": n, children: /* @__PURE__ */ I(me, { children: [
38
+ m && /* @__PURE__ */ l(Zt, { children: m }),
39
+ /* @__PURE__ */ l(er, { children: d })
40
+ ] }) }), tr = () => z, rr = /* @__PURE__ */ h(tr())({
42
41
  name: "ButtonIcon",
43
42
  class: "b1whzxvd",
44
43
  propsAsIs: !0
45
- }), ce = "channels", sr = (s) => {
44
+ }), le = "channels", ir = (s) => {
46
45
  var n;
47
- return /* @__PURE__ */ c(Re, {
46
+ return /* @__PURE__ */ l(Ne, {
48
47
  ...s,
49
48
  id: "channels",
50
49
  label: "Channels",
51
- icon: /* @__PURE__ */ c(nr, {
50
+ icon: /* @__PURE__ */ l(rr, {
52
51
  name: "icon-btn-channels",
53
52
  "data-selected": (n = s.active) == null ? void 0 : n.toString()
54
53
  })
55
54
  });
56
- }, or = () => z, ar = /* @__PURE__ */ h(or())({
55
+ }, nr = () => z, sr = /* @__PURE__ */ h(nr())({
57
56
  name: "ButtonIcon",
58
57
  class: "b11des7c",
59
58
  propsAsIs: !0
60
- }), ee = "featuredGroups", lr = (s) => {
59
+ }), ee = "featuredGroups", or = (s) => {
61
60
  var n;
62
- return /* @__PURE__ */ c(Re, {
61
+ return /* @__PURE__ */ l(Ne, {
63
62
  ...s,
64
63
  label: "FG+",
65
64
  id: "featuredGroups",
66
- icon: /* @__PURE__ */ c(ar, {
65
+ icon: /* @__PURE__ */ l(sr, {
67
66
  name: "icon-btn-feature-groups",
68
67
  "data-selected": (n = s.active) == null ? void 0 : n.toString()
69
68
  })
70
69
  });
71
- }, cr = () => z, ur = /* @__PURE__ */ h(cr())({
70
+ }, ar = () => z, cr = /* @__PURE__ */ h(ar())({
72
71
  name: "ButtonIcon",
73
72
  class: "b180jd7l",
74
73
  propsAsIs: !0
75
- }), Ae = "leaderboard", hr = (s) => {
74
+ }), Ae = "leaderboard", lr = (s) => {
76
75
  var n;
77
- return /* @__PURE__ */ c(Re, {
76
+ return /* @__PURE__ */ l(Ne, {
78
77
  ...s,
79
78
  label: "Leader Board",
80
79
  id: "leaderboard",
81
- icon: /* @__PURE__ */ c(ur, {
80
+ icon: /* @__PURE__ */ l(cr, {
82
81
  name: "icon-btn-leaderboard",
83
82
  "data-selected": (n = s.active) == null ? void 0 : n.toString()
84
83
  })
85
84
  });
86
- }, pr = /* @__PURE__ */ h("div")({
85
+ }, ur = /* @__PURE__ */ h("div")({
87
86
  name: "Buttons",
88
87
  class: "b6tbwuy",
89
88
  propsAsIs: !1
90
- }), dr = ({
89
+ }), hr = ({
91
90
  children: s,
92
91
  className: n
93
- }) => /* @__PURE__ */ c(pr, {
92
+ }) => /* @__PURE__ */ l(ur, {
94
93
  className: n,
95
94
  children: s
96
- }), fr = () => dr, mr = /* @__PURE__ */ h(fr())({
95
+ }), pr = () => hr, dr = /* @__PURE__ */ h(pr())({
97
96
  name: "Navigation",
98
97
  class: "n19lpak2",
99
98
  propsAsIs: !0
100
- }), gr = ({ activeOverlay: s, setActiveOverlay: n, sdkReady: l, className: d }) => /* @__PURE__ */ I(mr, { className: d, children: [
101
- /* @__PURE__ */ c(sr, { active: s === ce, onClick: () => n(ce) }),
102
- /* @__PURE__ */ c(
103
- lr,
99
+ }), fr = ({ activeOverlay: s, setActiveOverlay: n, sdkReady: c, className: d }) => /* @__PURE__ */ I(dr, { className: d, children: [
100
+ /* @__PURE__ */ l(ir, { active: s === le, onClick: () => n(le) }),
101
+ /* @__PURE__ */ l(
102
+ or,
104
103
  {
105
104
  active: s === ee,
106
- disabled: !l,
105
+ disabled: !c,
107
106
  onClick: () => {
108
107
  n(ee);
109
108
  }
110
109
  }
111
110
  ),
112
- /* @__PURE__ */ c(
113
- hr,
111
+ /* @__PURE__ */ l(
112
+ lr,
114
113
  {
115
114
  active: s === Ae,
116
115
  onClick: () => n(Ae)
117
116
  }
118
117
  )
119
- ] }), yr = {
118
+ ] }), mr = {
120
119
  [D.TWEET]: { label: "Insight", iconName: "icon-insight" },
121
120
  [D.PROMOTION]: { label: "Insight", iconName: "icon-insight" },
122
121
  [D.UNSET]: void 0,
@@ -124,80 +123,80 @@ const Xt = ({ feature: s, sdk: n, children: l, className: d }) => {
124
123
  [D.POLL]: { label: "Poll", iconName: "icon-poll" },
125
124
  [D.TRIVIA]: { label: "Trivia", iconName: "icon-trivia" },
126
125
  [D.PREDICTION]: { label: "Prediction", iconName: "icon-prediction" }
127
- }, wr = /* @__PURE__ */ h("div")({
126
+ }, gr = /* @__PURE__ */ h("div")({
128
127
  name: "Container",
129
128
  class: "c1bgb86j",
130
129
  propsAsIs: !1
131
- }), Ir = /* @__PURE__ */ h("video")({
130
+ }), yr = /* @__PURE__ */ h("video")({
132
131
  name: "Player",
133
132
  class: "p6703cq",
134
133
  propsAsIs: !1
135
- }), Ar = /* @__PURE__ */ h("img")({
134
+ }), wr = /* @__PURE__ */ h("img")({
136
135
  name: "Poster",
137
136
  class: "p12ow7zo",
138
137
  propsAsIs: !1
139
- }), xr = /* @__PURE__ */ h("div")({
138
+ }), Ir = /* @__PURE__ */ h("div")({
140
139
  name: "Control",
141
140
  class: "cdpal9o",
142
141
  propsAsIs: !1
143
- }), br = ({ poster: s, source: n }) => {
144
- const l = ht(null), [d, m] = V(!1), [g, f] = V(!0);
145
- return /* @__PURE__ */ I(wr, { onClick: () => {
146
- const o = l == null ? void 0 : l.current;
142
+ }), Ar = ({ poster: s, source: n }) => {
143
+ const c = ht(null), [d, m] = V(!1), [g, f] = V(!0);
144
+ return /* @__PURE__ */ I(gr, { onClick: () => {
145
+ const o = c == null ? void 0 : c.current;
147
146
  o && m((w) => w ? (o.pause(), !1) : (o.play(), f(!1), !0));
148
147
  }, children: [
149
- /* @__PURE__ */ c(
150
- Ir,
148
+ /* @__PURE__ */ l(
149
+ yr,
151
150
  {
152
- ref: l,
151
+ ref: c,
153
152
  src: n,
154
153
  onEnded: () => {
155
154
  var o;
156
- (o = l == null ? void 0 : l.current) == null || o.load(), m(!1), f(!0);
155
+ (o = c == null ? void 0 : c.current) == null || o.load(), m(!1), f(!0);
157
156
  },
158
157
  style: { visibility: g ? "hidden" : "visible" }
159
158
  }
160
159
  ),
161
- /* @__PURE__ */ c(Ar, { src: s, style: { visibility: g ? "visible" : "hidden" } }),
162
- /* @__PURE__ */ c(xr, { children: !d && /* @__PURE__ */ c(z, { name: "icon-play" }) })
160
+ /* @__PURE__ */ l(wr, { src: s, style: { visibility: g ? "visible" : "hidden" } }),
161
+ /* @__PURE__ */ l(Ir, { children: !d && /* @__PURE__ */ l(z, { name: "icon-play" }) })
163
162
  ] });
164
- }, Er = /* @__PURE__ */ h("div")({
163
+ }, xr = /* @__PURE__ */ h("div")({
165
164
  name: "InsightContainer",
166
165
  class: "i1pqqgpo",
167
166
  propsAsIs: !1
168
- }), Br = /* @__PURE__ */ h("img")({
167
+ }), br = /* @__PURE__ */ h("img")({
169
168
  name: "Image",
170
169
  class: "igj7luu",
171
170
  propsAsIs: !1
172
- }), vr = /* @__PURE__ */ h("div")({
171
+ }), Er = /* @__PURE__ */ h("div")({
173
172
  name: "InsightContent",
174
173
  class: "i1qne9g6",
175
174
  propsAsIs: !1
176
- }), _r = /* @__PURE__ */ h("h3")({
175
+ }), Br = /* @__PURE__ */ h("h3")({
177
176
  name: "Title",
178
177
  class: "ttpr98r",
179
178
  propsAsIs: !1
180
- }), Cr = /* @__PURE__ */ h("div")({
179
+ }), vr = /* @__PURE__ */ h("div")({
181
180
  name: "Description",
182
181
  class: "d17iaqp8",
183
182
  propsAsIs: !1
184
- }), Tr = /* @__PURE__ */ h("button")({
183
+ }), _r = /* @__PURE__ */ h("button")({
185
184
  name: "ActionBtn",
186
185
  class: "a16t3y7s",
187
186
  propsAsIs: !1
188
- }), Fr = ({
187
+ }), Cr = ({
189
188
  video: s,
190
189
  image: n,
191
- heading: l,
190
+ heading: c,
192
191
  body: d,
193
192
  action: m
194
- }) => /* @__PURE__ */ I(Er, { children: [
195
- (s == null ? void 0 : s.url) && /* @__PURE__ */ c(br, { source: s.url, poster: s.thumbnailUrl }),
196
- n && /* @__PURE__ */ c(Br, { src: n }),
197
- /* @__PURE__ */ I(vr, { children: [
198
- /* @__PURE__ */ c(_r, { children: l }),
199
- /* @__PURE__ */ c(Cr, { children: d }),
200
- m && /* @__PURE__ */ c(Tr, { onClick: m, children: "View Insight" })
193
+ }) => /* @__PURE__ */ I(xr, { children: [
194
+ (s == null ? void 0 : s.url) && /* @__PURE__ */ l(Ar, { source: s.url, poster: s.thumbnailUrl }),
195
+ n && /* @__PURE__ */ l(br, { src: n }),
196
+ /* @__PURE__ */ I(Er, { children: [
197
+ /* @__PURE__ */ l(Br, { children: c }),
198
+ /* @__PURE__ */ l(vr, { children: d }),
199
+ m && /* @__PURE__ */ l(_r, { onClick: m, children: "View Insight" })
201
200
  ] })
202
201
  ] }), ne = /* @__PURE__ */ h("div")({
203
202
  name: "BGWrap",
@@ -207,102 +206,102 @@ const Xt = ({ feature: s, sdk: n, children: l, className: d }) => {
207
206
  name: "BGLineBase",
208
207
  class: "b1v6w7ni",
209
208
  propsAsIs: !1
210
- }), $r = () => P, kr = /* @__PURE__ */ h($r())({
209
+ }), Tr = () => P, Fr = /* @__PURE__ */ h(Tr())({
211
210
  name: "BGOneLineOne",
212
211
  class: "b2nqb1p",
213
212
  propsAsIs: !0
214
- }), Sr = () => P, Lr = /* @__PURE__ */ h(Sr())({
213
+ }), $r = () => P, kr = /* @__PURE__ */ h($r())({
215
214
  name: "BGOneLineTwo",
216
215
  class: "b1xxgmbk",
217
216
  propsAsIs: !0
218
- }), Nr = () => P, Rr = /* @__PURE__ */ h(Nr())({
217
+ }), Sr = () => P, Lr = /* @__PURE__ */ h(Sr())({
219
218
  name: "BGOneLineThree",
220
219
  class: "b63lwcb",
221
220
  propsAsIs: !0
222
- }), Ur = () => P, Ke = /* @__PURE__ */ h(Ur())({
221
+ }), Rr = () => P, Qe = /* @__PURE__ */ h(Rr())({
223
222
  name: "BGTwoLineOne",
224
223
  class: "b2iah4",
225
224
  propsAsIs: !0
226
- }), zr = () => P, Xe = /* @__PURE__ */ h(zr())({
225
+ }), Nr = () => P, Xe = /* @__PURE__ */ h(Nr())({
227
226
  name: "BGTwoLineTwo",
228
227
  class: "b1xezvf6",
229
228
  propsAsIs: !0
230
- }), Or = () => P, Je = /* @__PURE__ */ h(Or())({
229
+ }), Ur = () => P, Je = /* @__PURE__ */ h(Ur())({
231
230
  name: "BGTwoLineThree",
232
231
  class: "b1jz1hg0",
233
232
  propsAsIs: !0
234
- }), Dr = () => P, Ze = /* @__PURE__ */ h(Dr())({
233
+ }), zr = () => P, Ze = /* @__PURE__ */ h(zr())({
235
234
  name: "BGThreeLineOne",
236
235
  class: "b18ho1tk",
237
236
  propsAsIs: !0
238
- }), Pr = () => P, et = /* @__PURE__ */ h(Pr())({
237
+ }), Or = () => P, et = /* @__PURE__ */ h(Or())({
239
238
  name: "BGThreeLineTwo",
240
239
  class: "b14uvjfm",
241
240
  propsAsIs: !0
242
- }), Mr = () => P, tt = /* @__PURE__ */ h(Mr())({
241
+ }), Dr = () => P, tt = /* @__PURE__ */ h(Dr())({
243
242
  name: "BGThreeLineThree",
244
243
  class: "b11c3ns7",
245
244
  propsAsIs: !0
246
- }), qr = () => P, rt = /* @__PURE__ */ h(qr())({
245
+ }), Pr = () => P, rt = /* @__PURE__ */ h(Pr())({
247
246
  name: "BGThreeLineFour",
248
247
  class: "b1bqhhet",
249
248
  propsAsIs: !0
250
- }), jr = () => P, Gr = /* @__PURE__ */ h(jr())({
249
+ }), Mr = () => P, qr = /* @__PURE__ */ h(Mr())({
251
250
  name: "BGFourLineOne",
252
251
  class: "b1xyzi7o",
253
252
  propsAsIs: !0
254
- }), Wr = () => P, Hr = /* @__PURE__ */ h(Wr())({
253
+ }), Gr = () => P, Wr = /* @__PURE__ */ h(Gr())({
255
254
  name: "BGFourLineTwo",
256
255
  class: "byo0rup",
257
256
  propsAsIs: !0
258
- }), Yr = () => P, Vr = /* @__PURE__ */ h(Yr())({
257
+ }), jr = () => P, Hr = /* @__PURE__ */ h(jr())({
259
258
  name: "BGFourLineThree",
260
259
  class: "b1oyiqgv",
261
260
  propsAsIs: !0
262
- }), Qr = () => P, Kr = /* @__PURE__ */ h(Qr())({
261
+ }), Yr = () => P, Vr = /* @__PURE__ */ h(Yr())({
263
262
  name: "BGFourLineFour",
264
263
  class: "bx3ddqw",
265
264
  propsAsIs: !0
266
- }), Xr = ({ step: s, correct: n }) => /* @__PURE__ */ I(me, { children: [
265
+ }), Kr = ({ step: s, correct: n }) => /* @__PURE__ */ I(me, { children: [
267
266
  /* @__PURE__ */ I(ne, { "data-active": s === 1, "data-first-screen": "true", children: [
268
- /* @__PURE__ */ c(kr, {}),
269
- /* @__PURE__ */ c(Lr, {}),
270
- /* @__PURE__ */ c(Rr, {})
267
+ /* @__PURE__ */ l(Fr, {}),
268
+ /* @__PURE__ */ l(kr, {}),
269
+ /* @__PURE__ */ l(Lr, {})
271
270
  ] }),
272
271
  /* @__PURE__ */ I(ne, { "data-active": s === 2, children: [
273
- /* @__PURE__ */ c(Ke, {}),
274
- /* @__PURE__ */ c(Xe, {}),
275
- /* @__PURE__ */ c(Je, {})
272
+ /* @__PURE__ */ l(Qe, {}),
273
+ /* @__PURE__ */ l(Xe, {}),
274
+ /* @__PURE__ */ l(Je, {})
276
275
  ] }),
277
276
  /* @__PURE__ */ I(ne, { "data-active": s === 3, children: [
278
- /* @__PURE__ */ c(Ke, {}),
279
- /* @__PURE__ */ c(Xe, {}),
280
- /* @__PURE__ */ c(Je, {})
277
+ /* @__PURE__ */ l(Qe, {}),
278
+ /* @__PURE__ */ l(Xe, {}),
279
+ /* @__PURE__ */ l(Je, {})
281
280
  ] }),
282
281
  n ? /* @__PURE__ */ I(me, { children: [
283
282
  /* @__PURE__ */ I(ne, { "data-active": s === 4, "data-correct": "false", children: [
284
- /* @__PURE__ */ c(Ze, {}),
285
- /* @__PURE__ */ c(et, {}),
286
- /* @__PURE__ */ c(tt, {}),
287
- /* @__PURE__ */ c(rt, {})
283
+ /* @__PURE__ */ l(Ze, {}),
284
+ /* @__PURE__ */ l(et, {}),
285
+ /* @__PURE__ */ l(tt, {}),
286
+ /* @__PURE__ */ l(rt, {})
288
287
  ] }),
289
288
  /* @__PURE__ */ I(ne, { "data-active": s === 5, "data-correct": "false", "data-last-screen": "true", children: [
290
- /* @__PURE__ */ c(Ze, {}),
291
- /* @__PURE__ */ c(et, {}),
292
- /* @__PURE__ */ c(tt, {}),
293
- /* @__PURE__ */ c(rt, {})
289
+ /* @__PURE__ */ l(Ze, {}),
290
+ /* @__PURE__ */ l(et, {}),
291
+ /* @__PURE__ */ l(tt, {}),
292
+ /* @__PURE__ */ l(rt, {})
294
293
  ] })
295
294
  ] }) : /* @__PURE__ */ I(ne, { "data-active": s === 4, "data-correct": "false", "data-last-screen": "true", children: [
296
- /* @__PURE__ */ c(Gr, {}),
297
- /* @__PURE__ */ c(Hr, {}),
298
- /* @__PURE__ */ c(Vr, {}),
299
- /* @__PURE__ */ c(Kr, {})
295
+ /* @__PURE__ */ l(qr, {}),
296
+ /* @__PURE__ */ l(Wr, {}),
297
+ /* @__PURE__ */ l(Hr, {}),
298
+ /* @__PURE__ */ l(Vr, {})
300
299
  ] })
301
- ] }), Jr = /* @__PURE__ */ h("div")({
300
+ ] }), Qr = /* @__PURE__ */ h("div")({
302
301
  name: "Container",
303
302
  class: "c10131zw",
304
303
  propsAsIs: !1
305
- }), Zr = /* @__PURE__ */ h("div")({
304
+ }), Xr = /* @__PURE__ */ h("div")({
306
305
  name: "AnimateContent",
307
306
  class: "ar6k2eo",
308
307
  propsAsIs: !1
@@ -318,7 +317,7 @@ const Xt = ({ feature: s, sdk: n, children: l, className: d }) => {
318
317
  name: "Subtitle",
319
318
  class: "s1pjil1h",
320
319
  propsAsIs: !1
321
- }), ei = () => fe, it = /* @__PURE__ */ h(ei())({
320
+ }), Jr = () => fe, it = /* @__PURE__ */ h(Jr())({
322
321
  name: "SubtitleFG",
323
322
  class: "s1iorwr9",
324
323
  propsAsIs: !0
@@ -326,7 +325,7 @@ const Xt = ({ feature: s, sdk: n, children: l, className: d }) => {
326
325
  name: "AnswerText",
327
326
  class: "a51sv9d",
328
327
  propsAsIs: !1
329
- }), ti = () => z, ve = /* @__PURE__ */ h(ti())({
328
+ }), Zr = () => z, ve = /* @__PURE__ */ h(Zr())({
330
329
  name: "FeedbackIcon",
331
330
  class: "f1lbk2ye",
332
331
  propsAsIs: !0
@@ -334,221 +333,221 @@ const Xt = ({ feature: s, sdk: n, children: l, className: d }) => {
334
333
  name: "CloseButton",
335
334
  class: "crcvk3t",
336
335
  propsAsIs: !1
337
- }), ri = () => z, st = /* @__PURE__ */ h(ri())({
336
+ }), ei = () => z, st = /* @__PURE__ */ h(ei())({
338
337
  name: "CloseIcon",
339
338
  class: "c33p82r",
340
339
  propsAsIs: !0
341
- }), ii = ({
340
+ }), ti = ({
342
341
  close: s,
343
342
  votedAnswer: n,
344
- correct: l,
343
+ correct: c,
345
344
  correctAnswerTitle: d
346
345
  }) => {
347
346
  const [m, g] = V(1);
348
347
  return he(() => {
349
348
  const f = setInterval(() => {
350
- g((o) => l && o > 4 || !l && o > 3 ? o : ++o);
349
+ g((o) => c && o > 4 || !c && o > 3 ? o : ++o);
351
350
  }, 6e3);
352
351
  return () => clearInterval(f);
353
- }, [l]), /* @__PURE__ */ I(Jr, { "data-bg-color-white": m > 3, children: [
354
- /* @__PURE__ */ c(Xr, { step: m, correct: l }),
355
- /* @__PURE__ */ I(Zr, { "data-active-number": m, children: [
352
+ }, [c]), /* @__PURE__ */ I(Qr, { "data-bg-color-white": m > 3, children: [
353
+ /* @__PURE__ */ l(Kr, { step: m, correct: c }),
354
+ /* @__PURE__ */ I(Xr, { "data-active-number": m, children: [
356
355
  /* @__PURE__ */ I(se, { children: [
357
- /* @__PURE__ */ c(oe, { children: "Master" }),
358
- /* @__PURE__ */ c(it, { children: "FEATURED GROUPS +" })
356
+ /* @__PURE__ */ l(oe, { children: "Master" }),
357
+ /* @__PURE__ */ l(it, { children: "FEATURED GROUPS +" })
359
358
  ] }),
360
359
  /* @__PURE__ */ I(se, { children: [
361
- /* @__PURE__ */ c(oe, { children: "Prediction results are in!" }),
362
- /* @__PURE__ */ c(it, { children: "FEATURED GROUPS +" })
360
+ /* @__PURE__ */ l(oe, { children: "Prediction results are in!" }),
361
+ /* @__PURE__ */ l(it, { children: "FEATURED GROUPS +" })
363
362
  ] }),
364
363
  /* @__PURE__ */ I(se, { children: [
365
- /* @__PURE__ */ c(oe, { children: "Who holds the most birdies in golf?" }),
364
+ /* @__PURE__ */ l(oe, { children: "Who holds the most birdies in golf?" }),
366
365
  /* @__PURE__ */ I(fe, { children: [
367
366
  "Your Pick: ",
368
- /* @__PURE__ */ c(ye, { children: n == null ? void 0 : n.title })
367
+ /* @__PURE__ */ l(ye, { children: n == null ? void 0 : n.title })
369
368
  ] })
370
369
  ] }),
371
- l ? /* @__PURE__ */ I(me, { children: [
370
+ c ? /* @__PURE__ */ I(me, { children: [
372
371
  /* @__PURE__ */ I(se, { "data-color-green": "true", children: [
373
- /* @__PURE__ */ c(oe, { children: "Congratulations! You answered correctly." }),
372
+ /* @__PURE__ */ l(oe, { children: "Congratulations! You answered correctly." }),
374
373
  /* @__PURE__ */ I(fe, { children: [
375
- /* @__PURE__ */ c(ve, { name: "selected" }),
374
+ /* @__PURE__ */ l(ve, { name: "selected" }),
376
375
  "Your Pick: ",
377
- /* @__PURE__ */ c(ye, { children: n == null ? void 0 : n.title })
376
+ /* @__PURE__ */ l(ye, { children: n == null ? void 0 : n.title })
378
377
  ] })
379
378
  ] }),
380
379
  /* @__PURE__ */ I(se, { "data-color-green": "true", children: [
381
- /* @__PURE__ */ c(nt, { onClick: s, children: /* @__PURE__ */ c(st, { name: "icon-cross" }) }),
380
+ /* @__PURE__ */ l(nt, { onClick: s, children: /* @__PURE__ */ l(st, { name: "icon-cross" }) }),
382
381
  /* @__PURE__ */ I(oe, { children: [
383
382
  "+",
384
383
  n == null ? void 0 : n.points,
385
384
  " points"
386
385
  ] }),
387
386
  /* @__PURE__ */ I(fe, { children: [
388
- /* @__PURE__ */ c(ve, { name: "selected" }),
387
+ /* @__PURE__ */ l(ve, { name: "selected" }),
389
388
  "Your Pick: ",
390
- /* @__PURE__ */ c(ye, { children: n == null ? void 0 : n.title })
389
+ /* @__PURE__ */ l(ye, { children: n == null ? void 0 : n.title })
391
390
  ] })
392
391
  ] })
393
392
  ] }) : /* @__PURE__ */ I(se, { children: [
394
- /* @__PURE__ */ c(nt, { onClick: s, children: /* @__PURE__ */ c(st, { name: "icon-cross" }) }),
393
+ /* @__PURE__ */ l(nt, { onClick: s, children: /* @__PURE__ */ l(st, { name: "icon-cross" }) }),
395
394
  /* @__PURE__ */ I(oe, { "data-incorrect": "true", children: [
396
395
  "Better luck next time! Correct: ",
397
396
  d,
398
397
  "."
399
398
  ] }),
400
399
  /* @__PURE__ */ I(fe, { "data-incorrect": "true", children: [
401
- /* @__PURE__ */ c(ve, { name: "circleClose" }),
400
+ /* @__PURE__ */ l(ve, { name: "circleClose" }),
402
401
  "Your Pick: ",
403
- /* @__PURE__ */ c(ye, { children: n == null ? void 0 : n.title })
402
+ /* @__PURE__ */ l(ye, { children: n == null ? void 0 : n.title })
404
403
  ] })
405
404
  ] })
406
405
  ] })
407
406
  ] });
408
- }, ni = /* @__PURE__ */ h("div")({
407
+ }, ri = /* @__PURE__ */ h("div")({
409
408
  name: "Container",
410
409
  class: "c1eptrjd",
411
410
  propsAsIs: !1
412
- }), si = /* @__PURE__ */ h("div")({
411
+ }), ii = /* @__PURE__ */ h("div")({
413
412
  name: "CloseIconWrap",
414
413
  class: "crylm65",
415
414
  propsAsIs: !1
416
- }), oi = () => z, ai = /* @__PURE__ */ h(oi())({
415
+ }), ni = () => z, si = /* @__PURE__ */ h(ni())({
417
416
  name: "CloseIcon",
418
417
  class: "c9mrcz7",
419
418
  propsAsIs: !0
420
- }), li = /* @__PURE__ */ h("div")({
419
+ }), oi = /* @__PURE__ */ h("div")({
421
420
  name: "Header",
422
421
  class: "hw3lzv4",
423
422
  propsAsIs: !1
424
- }), ci = () => z, ui = /* @__PURE__ */ h(ci())({
423
+ }), ai = () => z, ci = /* @__PURE__ */ h(ai())({
425
424
  name: "TypeIcon",
426
425
  class: "t1rrb3kf",
427
426
  propsAsIs: !0
428
- }), hi = /* @__PURE__ */ h("span")({
427
+ }), li = /* @__PURE__ */ h("span")({
429
428
  name: "TypeName",
430
429
  class: "t1ydnjov",
431
430
  propsAsIs: !1
432
- }), pi = /* @__PURE__ */ h("div")({
431
+ }), ui = /* @__PURE__ */ h("div")({
433
432
  name: "Question",
434
433
  class: "qlf90cl",
435
434
  propsAsIs: !1
436
- }), di = /* @__PURE__ */ h("button")({
435
+ }), hi = /* @__PURE__ */ h("button")({
437
436
  name: "AnswerButton",
438
437
  class: "a1e0nhcl",
439
438
  propsAsIs: !1
440
- }), fi = /* @__PURE__ */ h("div")({
439
+ }), pi = /* @__PURE__ */ h("div")({
441
440
  name: "Container",
442
441
  class: "cjq447q",
443
442
  propsAsIs: !1
444
- }), mi = /* @__PURE__ */ h("div")({
443
+ }), di = /* @__PURE__ */ h("div")({
445
444
  name: "ImageContainer",
446
445
  class: "i14egogb",
447
446
  propsAsIs: !1
448
- }), gi = /* @__PURE__ */ h("img")({
447
+ }), fi = /* @__PURE__ */ h("img")({
449
448
  name: "Image",
450
449
  class: "i2g9g4l",
451
450
  propsAsIs: !1
452
- }), yi = /* @__PURE__ */ h("div")({
451
+ }), mi = /* @__PURE__ */ h("div")({
453
452
  name: "Details",
454
453
  class: "d1c454nm",
455
454
  propsAsIs: !1
456
- }), wi = /* @__PURE__ */ h("div")({
455
+ }), gi = /* @__PURE__ */ h("div")({
457
456
  name: "Name",
458
457
  class: "n11nigc3",
459
458
  propsAsIs: !1
460
- }), Ii = /* @__PURE__ */ h("div")({
459
+ }), yi = /* @__PURE__ */ h("div")({
461
460
  name: "UserName",
462
461
  class: "urxa4k8",
463
462
  propsAsIs: !1
464
- }), Ai = ({ image: s, name: n, userName: l, verified: d }) => /* @__PURE__ */ I(fi, { children: [
465
- /* @__PURE__ */ c(mi, { children: /* @__PURE__ */ c(gi, { src: s }) }),
466
- /* @__PURE__ */ I(yi, { children: [
467
- /* @__PURE__ */ I(wi, { children: [
463
+ }), wi = ({ image: s, name: n, userName: c, verified: d }) => /* @__PURE__ */ I(pi, { children: [
464
+ /* @__PURE__ */ l(di, { children: /* @__PURE__ */ l(fi, { src: s }) }),
465
+ /* @__PURE__ */ I(mi, { children: [
466
+ /* @__PURE__ */ I(gi, { children: [
468
467
  n,
469
468
  " ",
470
- d && /* @__PURE__ */ c(z, { name: "icon-twitter-verified" })
469
+ d && /* @__PURE__ */ l(z, { name: "icon-twitter-verified" })
471
470
  ] }),
472
- /* @__PURE__ */ c(Ii, { children: l })
471
+ /* @__PURE__ */ l(yi, { children: c })
473
472
  ] })
474
- ] }), xi = /* @__PURE__ */ h("div")({
473
+ ] }), Ii = /* @__PURE__ */ h("div")({
475
474
  name: "Container",
476
475
  class: "c1t4f0x4",
477
476
  propsAsIs: !1
478
- }), bi = /* @__PURE__ */ h("button")({
477
+ }), Ai = /* @__PURE__ */ h("button")({
479
478
  name: "ActionBtn",
480
479
  class: "a16w1nl6",
481
480
  propsAsIs: !1
482
- }), Ei = /* @__PURE__ */ h("div")({
481
+ }), xi = /* @__PURE__ */ h("div")({
483
482
  name: "Body",
484
483
  class: "b14u54rf",
485
484
  propsAsIs: !1
486
- }), Bi = /* @__PURE__ */ h("img")({
485
+ }), bi = /* @__PURE__ */ h("img")({
487
486
  name: "Image",
488
487
  class: "i1hxm6zo",
489
488
  propsAsIs: !1
490
- }), vi = /* @__PURE__ */ h("div")({
489
+ }), Ei = /* @__PURE__ */ h("div")({
491
490
  name: "Details",
492
491
  class: "d1s19yop",
493
492
  propsAsIs: !1
494
- }), _i = /* @__PURE__ */ h("div")({
493
+ }), Bi = /* @__PURE__ */ h("div")({
495
494
  name: "QuoteWrap",
496
495
  class: "q1qyx94r",
497
496
  propsAsIs: !1
498
- }), Ci = /* @__PURE__ */ h("blockquote")({
497
+ }), vi = /* @__PURE__ */ h("blockquote")({
499
498
  name: "Quote",
500
499
  class: "qs97clu",
501
500
  propsAsIs: !1
502
- }), Ti = ({
501
+ }), _i = ({
503
502
  account: s,
504
503
  body: n,
505
- image: l,
504
+ image: c,
506
505
  title: d,
507
506
  action: m
508
- }) => /* @__PURE__ */ I(xi, { children: [
509
- /* @__PURE__ */ c(_i, { children: /* @__PURE__ */ c(Ci, { children: d }) }),
510
- /* @__PURE__ */ I(vi, { children: [
511
- /* @__PURE__ */ c(Ai, { ...s }),
512
- /* @__PURE__ */ c(Ei, { children: n }),
513
- l && /* @__PURE__ */ c(Bi, { src: l })
507
+ }) => /* @__PURE__ */ I(Ii, { children: [
508
+ /* @__PURE__ */ l(Bi, { children: /* @__PURE__ */ l(vi, { children: d }) }),
509
+ /* @__PURE__ */ I(Ei, { children: [
510
+ /* @__PURE__ */ l(wi, { ...s }),
511
+ /* @__PURE__ */ l(xi, { children: n }),
512
+ c && /* @__PURE__ */ l(bi, { src: c })
514
513
  ] }),
515
- m && /* @__PURE__ */ c(bi, { onClick: m, children: "View Tweet" })
514
+ m && /* @__PURE__ */ l(Ai, { onClick: m, children: "View Tweet" })
516
515
  ] }), ot = ({
517
516
  close: s,
518
517
  action: n,
519
- data: { questionType: l, question: d, insight: m, tweet: g }
518
+ data: { questionType: c, question: d, insight: m, tweet: g }
520
519
  }) => {
521
- const f = yr[l];
522
- return f ? d != null && d.predictionResult ? /* @__PURE__ */ c(ii, { close: s, ...d }) : /* @__PURE__ */ I(ni, { children: [
523
- /* @__PURE__ */ c(si, { onClick: s, children: /* @__PURE__ */ c(ai, { name: "icon-cross" }) }),
524
- l !== D.TWEET && /* @__PURE__ */ I(li, { children: [
525
- /* @__PURE__ */ c(
526
- ui,
520
+ const f = mr[c];
521
+ return f ? d != null && d.predictionResult ? /* @__PURE__ */ l(ti, { close: s, ...d }) : /* @__PURE__ */ I(ri, { children: [
522
+ /* @__PURE__ */ l(ii, { onClick: s, children: /* @__PURE__ */ l(si, { name: "icon-cross" }) }),
523
+ c !== D.TWEET && /* @__PURE__ */ I(oi, { children: [
524
+ /* @__PURE__ */ l(
525
+ ci,
527
526
  {
528
- "data-type-trivia": l === D.TRIVIA,
529
- "data-type-poll": l === D.POLL,
527
+ "data-type-trivia": c === D.TRIVIA,
528
+ "data-type-poll": c === D.POLL,
530
529
  name: f.iconName
531
530
  }
532
531
  ),
533
- /* @__PURE__ */ c(hi, { children: f.label })
532
+ /* @__PURE__ */ l(li, { children: f.label })
534
533
  ] }),
535
- l === D.FACTOID && /* @__PURE__ */ c(Fr, { ...m, action: n }),
536
- l === D.TWEET && // ToDo: connect with real Api data
534
+ c === D.FACTOID && /* @__PURE__ */ l(Cr, { ...m, action: n }),
535
+ c === D.TWEET && // ToDo: connect with real Api data
537
536
  // eslint-disable-next-line @typescript-eslint/ban-ts-comment
538
537
  // @ts-ignore
539
- /* @__PURE__ */ c(Ti, { ...g, action: n }),
540
- l !== D.FACTOID && l !== D.TWEET && /* @__PURE__ */ I(me, { children: [
541
- /* @__PURE__ */ c(pi, { children: d == null ? void 0 : d.title }),
542
- /* @__PURE__ */ c(di, { onClick: n, children: "Answer" })
538
+ /* @__PURE__ */ l(_i, { ...g, action: n }),
539
+ c !== D.FACTOID && c !== D.TWEET && /* @__PURE__ */ I(me, { children: [
540
+ /* @__PURE__ */ l(ui, { children: d == null ? void 0 : d.title }),
541
+ /* @__PURE__ */ l(hi, { onClick: n, children: "Answer" })
543
542
  ] })
544
543
  ] }) : null;
545
544
  };
546
545
  var dt = {}, ft = {}, xe = {};
547
- xe.byteLength = ki;
548
- xe.toByteArray = Li;
549
- xe.fromByteArray = Ui;
550
- var Y = [], q = [], Fi = typeof Uint8Array < "u" ? Uint8Array : Array, _e = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
551
- for (var ae = 0, $i = _e.length; ae < $i; ++ae)
546
+ xe.byteLength = Fi;
547
+ xe.toByteArray = ki;
548
+ xe.fromByteArray = Ri;
549
+ var Y = [], q = [], Ci = typeof Uint8Array < "u" ? Uint8Array : Array, _e = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
550
+ for (var ae = 0, Ti = _e.length; ae < Ti; ++ae)
552
551
  Y[ae] = _e[ae], q[_e.charCodeAt(ae)] = ae;
553
552
  q["-".charCodeAt(0)] = 62;
554
553
  q["_".charCodeAt(0)] = 63;
@@ -556,45 +555,45 @@ function mt(s) {
556
555
  var n = s.length;
557
556
  if (n % 4 > 0)
558
557
  throw new Error("Invalid string. Length must be a multiple of 4");
559
- var l = s.indexOf("=");
560
- l === -1 && (l = n);
561
- var d = l === n ? 0 : 4 - l % 4;
562
- return [l, d];
558
+ var c = s.indexOf("=");
559
+ c === -1 && (c = n);
560
+ var d = c === n ? 0 : 4 - c % 4;
561
+ return [c, d];
563
562
  }
564
- function ki(s) {
565
- var n = mt(s), l = n[0], d = n[1];
566
- return (l + d) * 3 / 4 - d;
563
+ function Fi(s) {
564
+ var n = mt(s), c = n[0], d = n[1];
565
+ return (c + d) * 3 / 4 - d;
567
566
  }
568
- function Si(s, n, l) {
569
- return (n + l) * 3 / 4 - l;
567
+ function $i(s, n, c) {
568
+ return (n + c) * 3 / 4 - c;
570
569
  }
571
- function Li(s) {
572
- var n, l = mt(s), d = l[0], m = l[1], g = new Fi(Si(s, d, m)), f = 0, o = m > 0 ? d - 4 : d, w;
570
+ function ki(s) {
571
+ var n, c = mt(s), d = c[0], m = c[1], g = new Ci($i(s, d, m)), f = 0, o = m > 0 ? d - 4 : d, w;
573
572
  for (w = 0; w < o; w += 4)
574
573
  n = q[s.charCodeAt(w)] << 18 | q[s.charCodeAt(w + 1)] << 12 | q[s.charCodeAt(w + 2)] << 6 | q[s.charCodeAt(w + 3)], g[f++] = n >> 16 & 255, g[f++] = n >> 8 & 255, g[f++] = n & 255;
575
574
  return m === 2 && (n = q[s.charCodeAt(w)] << 2 | q[s.charCodeAt(w + 1)] >> 4, g[f++] = n & 255), m === 1 && (n = q[s.charCodeAt(w)] << 10 | q[s.charCodeAt(w + 1)] << 4 | q[s.charCodeAt(w + 2)] >> 2, g[f++] = n >> 8 & 255, g[f++] = n & 255), g;
576
575
  }
577
- function Ni(s) {
576
+ function Si(s) {
578
577
  return Y[s >> 18 & 63] + Y[s >> 12 & 63] + Y[s >> 6 & 63] + Y[s & 63];
579
578
  }
580
- function Ri(s, n, l) {
581
- for (var d, m = [], g = n; g < l; g += 3)
582
- d = (s[g] << 16 & 16711680) + (s[g + 1] << 8 & 65280) + (s[g + 2] & 255), m.push(Ni(d));
579
+ function Li(s, n, c) {
580
+ for (var d, m = [], g = n; g < c; g += 3)
581
+ d = (s[g] << 16 & 16711680) + (s[g + 1] << 8 & 65280) + (s[g + 2] & 255), m.push(Si(d));
583
582
  return m.join("");
584
583
  }
585
- function Ui(s) {
586
- for (var n, l = s.length, d = l % 3, m = [], g = 16383, f = 0, o = l - d; f < o; f += g)
587
- m.push(Ri(s, f, f + g > o ? o : f + g));
588
- return d === 1 ? (n = s[l - 1], m.push(
584
+ function Ri(s) {
585
+ for (var n, c = s.length, d = c % 3, m = [], g = 16383, f = 0, o = c - d; f < o; f += g)
586
+ m.push(Li(s, f, f + g > o ? o : f + g));
587
+ return d === 1 ? (n = s[c - 1], m.push(
589
588
  Y[n >> 2] + Y[n << 4 & 63] + "=="
590
- )) : d === 2 && (n = (s[l - 2] << 8) + s[l - 1], m.push(
589
+ )) : d === 2 && (n = (s[c - 2] << 8) + s[c - 1], m.push(
591
590
  Y[n >> 10] + Y[n >> 4 & 63] + Y[n << 2 & 63] + "="
592
591
  )), m.join("");
593
592
  }
594
593
  var Ue = {};
595
594
  /*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
596
- Ue.read = function(s, n, l, d, m) {
597
- var g, f, o = m * 8 - d - 1, w = (1 << o) - 1, v = w >> 1, E = -7, C = l ? m - 1 : 0, y = l ? -1 : 1, A = s[n + C];
595
+ Ue.read = function(s, n, c, d, m) {
596
+ var g, f, o = m * 8 - d - 1, w = (1 << o) - 1, v = w >> 1, E = -7, C = c ? m - 1 : 0, y = c ? -1 : 1, A = s[n + C];
598
597
  for (C += y, g = A & (1 << -E) - 1, A >>= -E, E += o; E > 0; g = g * 256 + s[n + C], C += y, E -= 8)
599
598
  ;
600
599
  for (f = g & (1 << -E) - 1, g >>= -E, E += d; E > 0; f = f * 256 + s[n + C], C += y, E -= 8)
@@ -608,13 +607,13 @@ Ue.read = function(s, n, l, d, m) {
608
607
  }
609
608
  return (A ? -1 : 1) * f * Math.pow(2, g - d);
610
609
  };
611
- Ue.write = function(s, n, l, d, m, g) {
610
+ Ue.write = function(s, n, c, d, m, g) {
612
611
  var f, o, w, v = g * 8 - m - 1, E = (1 << v) - 1, C = E >> 1, y = m === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0, A = d ? 0 : g - 1, x = d ? 1 : -1, B = n < 0 || n === 0 && 1 / n < 0 ? 1 : 0;
613
- for (n = Math.abs(n), isNaN(n) || n === 1 / 0 ? (o = isNaN(n) ? 1 : 0, f = E) : (f = Math.floor(Math.log(n) / Math.LN2), n * (w = Math.pow(2, -f)) < 1 && (f--, w *= 2), f + C >= 1 ? n += y / w : n += y * Math.pow(2, 1 - C), n * w >= 2 && (f++, w /= 2), f + C >= E ? (o = 0, f = E) : f + C >= 1 ? (o = (n * w - 1) * Math.pow(2, m), f = f + C) : (o = n * Math.pow(2, C - 1) * Math.pow(2, m), f = 0)); m >= 8; s[l + A] = o & 255, A += x, o /= 256, m -= 8)
612
+ for (n = Math.abs(n), isNaN(n) || n === 1 / 0 ? (o = isNaN(n) ? 1 : 0, f = E) : (f = Math.floor(Math.log(n) / Math.LN2), n * (w = Math.pow(2, -f)) < 1 && (f--, w *= 2), f + C >= 1 ? n += y / w : n += y * Math.pow(2, 1 - C), n * w >= 2 && (f++, w /= 2), f + C >= E ? (o = 0, f = E) : f + C >= 1 ? (o = (n * w - 1) * Math.pow(2, m), f = f + C) : (o = n * Math.pow(2, C - 1) * Math.pow(2, m), f = 0)); m >= 8; s[c + A] = o & 255, A += x, o /= 256, m -= 8)
614
613
  ;
615
- for (f = f << m | o, v += m; v > 0; s[l + A] = f & 255, A += x, f /= 256, v -= 8)
614
+ for (f = f << m | o, v += m; v > 0; s[c + A] = f & 255, A += x, f /= 256, v -= 8)
616
615
  ;
617
- s[l + A - x] |= B * 128;
616
+ s[c + A - x] |= B * 128;
618
617
  };
619
618
  /*!
620
619
  * The buffer module from node.js, for the browser.
@@ -623,7 +622,7 @@ Ue.write = function(s, n, l, d, m, g) {
623
622
  * @license MIT
624
623
  */
625
624
  (function(s) {
626
- const n = xe, l = Ue, d = typeof Symbol == "function" && typeof Symbol.for == "function" ? Symbol.for("nodejs.util.inspect.custom") : null;
625
+ const n = xe, c = Ue, d = typeof Symbol == "function" && typeof Symbol.for == "function" ? Symbol.for("nodejs.util.inspect.custom") : null;
627
626
  s.Buffer = o, s.SlowBuffer = F, s.INSPECT_MAX_BYTES = 50;
628
627
  const m = 2147483647;
629
628
  s.kMaxLength = m, o.TYPED_ARRAY_SUPPORT = g(), !o.TYPED_ARRAY_SUPPORT && typeof console < "u" && typeof console.error == "function" && console.error(
@@ -678,7 +677,7 @@ Ue.write = function(s, n, l, d, m, g) {
678
677
  throw new TypeError(
679
678
  "The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type " + typeof r
680
679
  );
681
- if (G(r, ArrayBuffer) || r && G(r.buffer, ArrayBuffer) || typeof SharedArrayBuffer < "u" && (G(r, SharedArrayBuffer) || r && G(r.buffer, SharedArrayBuffer)))
680
+ if (W(r, ArrayBuffer) || r && W(r.buffer, ArrayBuffer) || typeof SharedArrayBuffer < "u" && (W(r, SharedArrayBuffer) || r && W(r.buffer, SharedArrayBuffer)))
682
681
  return B(r, e, t);
683
682
  if (typeof r == "number")
684
683
  throw new TypeError(
@@ -687,7 +686,7 @@ Ue.write = function(s, n, l, d, m, g) {
687
686
  const i = r.valueOf && r.valueOf();
688
687
  if (i != null && i !== r)
689
688
  return o.from(i, e, t);
690
- const a = N(r);
689
+ const a = R(r);
691
690
  if (a)
692
691
  return a;
693
692
  if (typeof Symbol < "u" && Symbol.toPrimitive != null && typeof r[Symbol.toPrimitive] == "function")
@@ -734,7 +733,7 @@ Ue.write = function(s, n, l, d, m, g) {
734
733
  return t;
735
734
  }
736
735
  function x(r) {
737
- if (G(r, Uint8Array)) {
736
+ if (W(r, Uint8Array)) {
738
737
  const e = new Uint8Array(r);
739
738
  return B(e.buffer, e.byteOffset, e.byteLength);
740
739
  }
@@ -748,7 +747,7 @@ Ue.write = function(s, n, l, d, m, g) {
748
747
  let i;
749
748
  return e === void 0 && t === void 0 ? i = new Uint8Array(r) : t === void 0 ? i = new Uint8Array(r, e) : i = new Uint8Array(r, e, t), Object.setPrototypeOf(i, o.prototype), i;
750
749
  }
751
- function N(r) {
750
+ function R(r) {
752
751
  if (o.isBuffer(r)) {
753
752
  const e = _(r.length) | 0, t = f(e);
754
753
  return t.length === 0 || r.copy(t, 0, 0, e), t;
@@ -769,7 +768,7 @@ Ue.write = function(s, n, l, d, m, g) {
769
768
  o.isBuffer = function(e) {
770
769
  return e != null && e._isBuffer === !0 && e !== o.prototype;
771
770
  }, o.compare = function(e, t) {
772
- if (G(e, Uint8Array) && (e = o.from(e, e.offset, e.byteLength)), G(t, Uint8Array) && (t = o.from(t, t.offset, t.byteLength)), !o.isBuffer(e) || !o.isBuffer(t))
771
+ if (W(e, Uint8Array) && (e = o.from(e, e.offset, e.byteLength)), W(t, Uint8Array) && (t = o.from(t, t.offset, t.byteLength)), !o.isBuffer(e) || !o.isBuffer(t))
773
772
  throw new TypeError(
774
773
  'The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array'
775
774
  );
@@ -812,7 +811,7 @@ Ue.write = function(s, n, l, d, m, g) {
812
811
  let u = 0;
813
812
  for (i = 0; i < e.length; ++i) {
814
813
  let p = e[i];
815
- if (G(p, Uint8Array))
814
+ if (W(p, Uint8Array))
816
815
  u + p.length > a.length ? (o.isBuffer(p) || (p = o.from(p)), p.copy(a, u)) : Uint8Array.prototype.set.call(
817
816
  a,
818
817
  p,
@@ -829,7 +828,7 @@ Ue.write = function(s, n, l, d, m, g) {
829
828
  function U(r, e) {
830
829
  if (o.isBuffer(r))
831
830
  return r.length;
832
- if (ArrayBuffer.isView(r) || G(r, ArrayBuffer))
831
+ if (ArrayBuffer.isView(r) || W(r, ArrayBuffer))
833
832
  return r.byteLength;
834
833
  if (typeof r != "string")
835
834
  throw new TypeError(
@@ -864,29 +863,29 @@ Ue.write = function(s, n, l, d, m, g) {
864
863
  }
865
864
  }
866
865
  o.byteLength = U;
867
- function Q(r, e, t) {
866
+ function K(r, e, t) {
868
867
  let i = !1;
869
868
  if ((e === void 0 || e < 0) && (e = 0), e > this.length || ((t === void 0 || t > this.length) && (t = this.length), t <= 0) || (t >>>= 0, e >>>= 0, t <= e))
870
869
  return "";
871
870
  for (r || (r = "utf8"); ; )
872
871
  switch (r) {
873
872
  case "hex":
874
- return kt(this, e, t);
873
+ return $t(this, e, t);
875
874
  case "utf8":
876
875
  case "utf-8":
877
876
  return De(this, e, t);
878
877
  case "ascii":
879
- return Ft(this, e, t);
878
+ return Tt(this, e, t);
880
879
  case "latin1":
881
880
  case "binary":
882
- return $t(this, e, t);
881
+ return Ft(this, e, t);
883
882
  case "base64":
884
- return Ct(this, e, t);
883
+ return _t(this, e, t);
885
884
  case "ucs2":
886
885
  case "ucs-2":
887
886
  case "utf16le":
888
887
  case "utf-16le":
889
- return St(this, e, t);
888
+ return kt(this, e, t);
890
889
  default:
891
890
  if (i)
892
891
  throw new TypeError("Unknown encoding: " + r);
@@ -921,7 +920,7 @@ Ue.write = function(s, n, l, d, m, g) {
921
920
  return this;
922
921
  }, o.prototype.toString = function() {
923
922
  const e = this.length;
924
- return e === 0 ? "" : arguments.length === 0 ? De(this, 0, e) : Q.apply(this, arguments);
923
+ return e === 0 ? "" : arguments.length === 0 ? De(this, 0, e) : K.apply(this, arguments);
925
924
  }, o.prototype.toLocaleString = o.prototype.toString, o.prototype.equals = function(e) {
926
925
  if (!o.isBuffer(e))
927
926
  throw new TypeError("Argument must be a Buffer");
@@ -931,7 +930,7 @@ Ue.write = function(s, n, l, d, m, g) {
931
930
  const t = s.INSPECT_MAX_BYTES;
932
931
  return e = this.toString("hex", 0, t).replace(/(.{2})/g, "$1 ").trim(), this.length > t && (e += " ... "), "<Buffer " + e + ">";
933
932
  }, d && (o.prototype[d] = o.prototype.inspect), o.prototype.compare = function(e, t, i, a, u) {
934
- if (G(e, Uint8Array) && (e = o.from(e, e.offset, e.byteLength)), !o.isBuffer(e))
933
+ if (W(e, Uint8Array) && (e = o.from(e, e.offset, e.byteLength)), !o.isBuffer(e))
935
934
  throw new TypeError(
936
935
  'The "target" argument must be one of type Buffer or Uint8Array. Received type ' + typeof e
937
936
  );
@@ -1011,7 +1010,7 @@ Ue.write = function(s, n, l, d, m, g) {
1011
1010
  }, o.prototype.lastIndexOf = function(e, t, i) {
1012
1011
  return ze(this, e, t, i, !1);
1013
1012
  };
1014
- function bt(r, e, t, i) {
1013
+ function xt(r, e, t, i) {
1015
1014
  t = Number(t) || 0;
1016
1015
  const a = r.length - t;
1017
1016
  i ? (i = Number(i), i > a && (i = a)) : i = a;
@@ -1026,17 +1025,17 @@ Ue.write = function(s, n, l, d, m, g) {
1026
1025
  }
1027
1026
  return p;
1028
1027
  }
1029
- function Et(r, e, t, i) {
1028
+ function bt(r, e, t, i) {
1030
1029
  return ge(Ee(e, r.length - t), r, t, i);
1031
1030
  }
1032
- function Bt(r, e, t, i) {
1033
- return ge(Ut(e), r, t, i);
1031
+ function Et(r, e, t, i) {
1032
+ return ge(Nt(e), r, t, i);
1034
1033
  }
1035
- function vt(r, e, t, i) {
1034
+ function Bt(r, e, t, i) {
1036
1035
  return ge(Ve(e), r, t, i);
1037
1036
  }
1038
- function _t(r, e, t, i) {
1039
- return ge(zt(e, r.length - t), r, t, i);
1037
+ function vt(r, e, t, i) {
1038
+ return ge(Ut(e, r.length - t), r, t, i);
1040
1039
  }
1041
1040
  o.prototype.write = function(e, t, i, a) {
1042
1041
  if (t === void 0)
@@ -1057,21 +1056,21 @@ Ue.write = function(s, n, l, d, m, g) {
1057
1056
  for (; ; )
1058
1057
  switch (a) {
1059
1058
  case "hex":
1060
- return bt(this, e, t, i);
1059
+ return xt(this, e, t, i);
1061
1060
  case "utf8":
1062
1061
  case "utf-8":
1063
- return Et(this, e, t, i);
1062
+ return bt(this, e, t, i);
1064
1063
  case "ascii":
1065
1064
  case "latin1":
1066
1065
  case "binary":
1067
- return Bt(this, e, t, i);
1066
+ return Et(this, e, t, i);
1068
1067
  case "base64":
1069
- return vt(this, e, t, i);
1068
+ return Bt(this, e, t, i);
1070
1069
  case "ucs2":
1071
1070
  case "ucs-2":
1072
1071
  case "utf16le":
1073
1072
  case "utf-16le":
1074
- return _t(this, e, t, i);
1073
+ return vt(this, e, t, i);
1075
1074
  default:
1076
1075
  if (p)
1077
1076
  throw new TypeError("Unknown encoding: " + a);
@@ -1083,7 +1082,7 @@ Ue.write = function(s, n, l, d, m, g) {
1083
1082
  data: Array.prototype.slice.call(this._arr || this, 0)
1084
1083
  };
1085
1084
  };
1086
- function Ct(r, e, t) {
1085
+ function _t(r, e, t) {
1087
1086
  return e === 0 && t === r.length ? n.fromByteArray(r) : n.fromByteArray(r.slice(e, t));
1088
1087
  }
1089
1088
  function De(r, e, t) {
@@ -1111,10 +1110,10 @@ Ue.write = function(s, n, l, d, m, g) {
1111
1110
  }
1112
1111
  p === null ? (p = 65533, b = 1) : p > 65535 && (p -= 65536, i.push(p >>> 10 & 1023 | 55296), p = 56320 | p & 1023), i.push(p), a += b;
1113
1112
  }
1114
- return Tt(i);
1113
+ return Ct(i);
1115
1114
  }
1116
1115
  const Pe = 4096;
1117
- function Tt(r) {
1116
+ function Ct(r) {
1118
1117
  const e = r.length;
1119
1118
  if (e <= Pe)
1120
1119
  return String.fromCharCode.apply(String, r);
@@ -1126,29 +1125,29 @@ Ue.write = function(s, n, l, d, m, g) {
1126
1125
  );
1127
1126
  return t;
1128
1127
  }
1129
- function Ft(r, e, t) {
1128
+ function Tt(r, e, t) {
1130
1129
  let i = "";
1131
1130
  t = Math.min(r.length, t);
1132
1131
  for (let a = e; a < t; ++a)
1133
1132
  i += String.fromCharCode(r[a] & 127);
1134
1133
  return i;
1135
1134
  }
1136
- function $t(r, e, t) {
1135
+ function Ft(r, e, t) {
1137
1136
  let i = "";
1138
1137
  t = Math.min(r.length, t);
1139
1138
  for (let a = e; a < t; ++a)
1140
1139
  i += String.fromCharCode(r[a]);
1141
1140
  return i;
1142
1141
  }
1143
- function kt(r, e, t) {
1142
+ function $t(r, e, t) {
1144
1143
  const i = r.length;
1145
1144
  (!e || e < 0) && (e = 0), (!t || t < 0 || t > i) && (t = i);
1146
1145
  let a = "";
1147
1146
  for (let u = e; u < t; ++u)
1148
- a += Ot[r[u]];
1147
+ a += zt[r[u]];
1149
1148
  return a;
1150
1149
  }
1151
- function St(r, e, t) {
1150
+ function kt(r, e, t) {
1152
1151
  const i = r.slice(e, t);
1153
1152
  let a = "";
1154
1153
  for (let u = 0; u < i.length - 1; u += 2)
@@ -1161,34 +1160,34 @@ Ue.write = function(s, n, l, d, m, g) {
1161
1160
  const a = this.subarray(e, t);
1162
1161
  return Object.setPrototypeOf(a, o.prototype), a;
1163
1162
  };
1164
- function R(r, e, t) {
1163
+ function N(r, e, t) {
1165
1164
  if (r % 1 !== 0 || r < 0)
1166
1165
  throw new RangeError("offset is not uint");
1167
1166
  if (r + e > t)
1168
1167
  throw new RangeError("Trying to access beyond buffer length");
1169
1168
  }
1170
1169
  o.prototype.readUintLE = o.prototype.readUIntLE = function(e, t, i) {
1171
- e = e >>> 0, t = t >>> 0, i || R(e, t, this.length);
1170
+ e = e >>> 0, t = t >>> 0, i || N(e, t, this.length);
1172
1171
  let a = this[e], u = 1, p = 0;
1173
1172
  for (; ++p < t && (u *= 256); )
1174
1173
  a += this[e + p] * u;
1175
1174
  return a;
1176
1175
  }, o.prototype.readUintBE = o.prototype.readUIntBE = function(e, t, i) {
1177
- e = e >>> 0, t = t >>> 0, i || R(e, t, this.length);
1176
+ e = e >>> 0, t = t >>> 0, i || N(e, t, this.length);
1178
1177
  let a = this[e + --t], u = 1;
1179
1178
  for (; t > 0 && (u *= 256); )
1180
1179
  a += this[e + --t] * u;
1181
1180
  return a;
1182
1181
  }, o.prototype.readUint8 = o.prototype.readUInt8 = function(e, t) {
1183
- return e = e >>> 0, t || R(e, 1, this.length), this[e];
1182
+ return e = e >>> 0, t || N(e, 1, this.length), this[e];
1184
1183
  }, o.prototype.readUint16LE = o.prototype.readUInt16LE = function(e, t) {
1185
- return e = e >>> 0, t || R(e, 2, this.length), this[e] | this[e + 1] << 8;
1184
+ return e = e >>> 0, t || N(e, 2, this.length), this[e] | this[e + 1] << 8;
1186
1185
  }, o.prototype.readUint16BE = o.prototype.readUInt16BE = function(e, t) {
1187
- return e = e >>> 0, t || R(e, 2, this.length), this[e] << 8 | this[e + 1];
1186
+ return e = e >>> 0, t || N(e, 2, this.length), this[e] << 8 | this[e + 1];
1188
1187
  }, o.prototype.readUint32LE = o.prototype.readUInt32LE = function(e, t) {
1189
- return e = e >>> 0, t || R(e, 4, this.length), (this[e] | this[e + 1] << 8 | this[e + 2] << 16) + this[e + 3] * 16777216;
1188
+ return e = e >>> 0, t || N(e, 4, this.length), (this[e] | this[e + 1] << 8 | this[e + 2] << 16) + this[e + 3] * 16777216;
1190
1189
  }, o.prototype.readUint32BE = o.prototype.readUInt32BE = function(e, t) {
1191
- return e = e >>> 0, t || R(e, 4, this.length), this[e] * 16777216 + (this[e + 1] << 16 | this[e + 2] << 8 | this[e + 3]);
1190
+ return e = e >>> 0, t || N(e, 4, this.length), this[e] * 16777216 + (this[e + 1] << 16 | this[e + 2] << 8 | this[e + 3]);
1192
1191
  }, o.prototype.readBigUInt64LE = J(function(e) {
1193
1192
  e = e >>> 0, ie(e, "offset");
1194
1193
  const t = this[e], i = this[e + 7];
@@ -1202,31 +1201,31 @@ Ue.write = function(s, n, l, d, m, g) {
1202
1201
  const a = t * 2 ** 24 + this[++e] * 2 ** 16 + this[++e] * 2 ** 8 + this[++e], u = this[++e] * 2 ** 24 + this[++e] * 2 ** 16 + this[++e] * 2 ** 8 + i;
1203
1202
  return (BigInt(a) << BigInt(32)) + BigInt(u);
1204
1203
  }), o.prototype.readIntLE = function(e, t, i) {
1205
- e = e >>> 0, t = t >>> 0, i || R(e, t, this.length);
1204
+ e = e >>> 0, t = t >>> 0, i || N(e, t, this.length);
1206
1205
  let a = this[e], u = 1, p = 0;
1207
1206
  for (; ++p < t && (u *= 256); )
1208
1207
  a += this[e + p] * u;
1209
1208
  return u *= 128, a >= u && (a -= Math.pow(2, 8 * t)), a;
1210
1209
  }, o.prototype.readIntBE = function(e, t, i) {
1211
- e = e >>> 0, t = t >>> 0, i || R(e, t, this.length);
1210
+ e = e >>> 0, t = t >>> 0, i || N(e, t, this.length);
1212
1211
  let a = t, u = 1, p = this[e + --a];
1213
1212
  for (; a > 0 && (u *= 256); )
1214
1213
  p += this[e + --a] * u;
1215
1214
  return u *= 128, p >= u && (p -= Math.pow(2, 8 * t)), p;
1216
1215
  }, o.prototype.readInt8 = function(e, t) {
1217
- return e = e >>> 0, t || R(e, 1, this.length), this[e] & 128 ? (255 - this[e] + 1) * -1 : this[e];
1216
+ return e = e >>> 0, t || N(e, 1, this.length), this[e] & 128 ? (255 - this[e] + 1) * -1 : this[e];
1218
1217
  }, o.prototype.readInt16LE = function(e, t) {
1219
- e = e >>> 0, t || R(e, 2, this.length);
1218
+ e = e >>> 0, t || N(e, 2, this.length);
1220
1219
  const i = this[e] | this[e + 1] << 8;
1221
1220
  return i & 32768 ? i | 4294901760 : i;
1222
1221
  }, o.prototype.readInt16BE = function(e, t) {
1223
- e = e >>> 0, t || R(e, 2, this.length);
1222
+ e = e >>> 0, t || N(e, 2, this.length);
1224
1223
  const i = this[e + 1] | this[e] << 8;
1225
1224
  return i & 32768 ? i | 4294901760 : i;
1226
1225
  }, o.prototype.readInt32LE = function(e, t) {
1227
- return e = e >>> 0, t || R(e, 4, this.length), this[e] | this[e + 1] << 8 | this[e + 2] << 16 | this[e + 3] << 24;
1226
+ return e = e >>> 0, t || N(e, 4, this.length), this[e] | this[e + 1] << 8 | this[e + 2] << 16 | this[e + 3] << 24;
1228
1227
  }, o.prototype.readInt32BE = function(e, t) {
1229
- return e = e >>> 0, t || R(e, 4, this.length), this[e] << 24 | this[e + 1] << 16 | this[e + 2] << 8 | this[e + 3];
1228
+ return e = e >>> 0, t || N(e, 4, this.length), this[e] << 24 | this[e + 1] << 16 | this[e + 2] << 8 | this[e + 3];
1230
1229
  }, o.prototype.readBigInt64LE = J(function(e) {
1231
1230
  e = e >>> 0, ie(e, "offset");
1232
1231
  const t = this[e], i = this[e + 7];
@@ -1241,13 +1240,13 @@ Ue.write = function(s, n, l, d, m, g) {
1241
1240
  this[++e] * 2 ** 16 + this[++e] * 2 ** 8 + this[++e];
1242
1241
  return (BigInt(a) << BigInt(32)) + BigInt(this[++e] * 2 ** 24 + this[++e] * 2 ** 16 + this[++e] * 2 ** 8 + i);
1243
1242
  }), o.prototype.readFloatLE = function(e, t) {
1244
- return e = e >>> 0, t || R(e, 4, this.length), l.read(this, e, !0, 23, 4);
1243
+ return e = e >>> 0, t || N(e, 4, this.length), c.read(this, e, !0, 23, 4);
1245
1244
  }, o.prototype.readFloatBE = function(e, t) {
1246
- return e = e >>> 0, t || R(e, 4, this.length), l.read(this, e, !1, 23, 4);
1245
+ return e = e >>> 0, t || N(e, 4, this.length), c.read(this, e, !1, 23, 4);
1247
1246
  }, o.prototype.readDoubleLE = function(e, t) {
1248
- return e = e >>> 0, t || R(e, 8, this.length), l.read(this, e, !0, 52, 8);
1247
+ return e = e >>> 0, t || N(e, 8, this.length), c.read(this, e, !0, 52, 8);
1249
1248
  }, o.prototype.readDoubleBE = function(e, t) {
1250
- return e = e >>> 0, t || R(e, 8, this.length), l.read(this, e, !1, 52, 8);
1249
+ return e = e >>> 0, t || N(e, 8, this.length), c.read(this, e, !1, 52, 8);
1251
1250
  };
1252
1251
  function O(r, e, t, i, a, u) {
1253
1252
  if (!o.isBuffer(r))
@@ -1337,27 +1336,27 @@ Ue.write = function(s, n, l, d, m, g) {
1337
1336
  }), o.prototype.writeBigInt64BE = J(function(e, t = 0) {
1338
1337
  return qe(this, e, t, -BigInt("0x8000000000000000"), BigInt("0x7fffffffffffffff"));
1339
1338
  });
1340
- function je(r, e, t, i, a, u) {
1339
+ function Ge(r, e, t, i, a, u) {
1341
1340
  if (t + i > r.length)
1342
1341
  throw new RangeError("Index out of range");
1343
1342
  if (t < 0)
1344
1343
  throw new RangeError("Index out of range");
1345
1344
  }
1346
- function Ge(r, e, t, i, a) {
1347
- return e = +e, t = t >>> 0, a || je(r, e, t, 4), l.write(r, e, t, i, 23, 4), t + 4;
1345
+ function We(r, e, t, i, a) {
1346
+ return e = +e, t = t >>> 0, a || Ge(r, e, t, 4), c.write(r, e, t, i, 23, 4), t + 4;
1348
1347
  }
1349
1348
  o.prototype.writeFloatLE = function(e, t, i) {
1350
- return Ge(this, e, t, !0, i);
1349
+ return We(this, e, t, !0, i);
1351
1350
  }, o.prototype.writeFloatBE = function(e, t, i) {
1352
- return Ge(this, e, t, !1, i);
1351
+ return We(this, e, t, !1, i);
1353
1352
  };
1354
- function We(r, e, t, i, a) {
1355
- return e = +e, t = t >>> 0, a || je(r, e, t, 8), l.write(r, e, t, i, 52, 8), t + 8;
1353
+ function je(r, e, t, i, a) {
1354
+ return e = +e, t = t >>> 0, a || Ge(r, e, t, 8), c.write(r, e, t, i, 52, 8), t + 8;
1356
1355
  }
1357
1356
  o.prototype.writeDoubleLE = function(e, t, i) {
1358
- return We(this, e, t, !0, i);
1357
+ return je(this, e, t, !0, i);
1359
1358
  }, o.prototype.writeDoubleBE = function(e, t, i) {
1360
- return We(this, e, t, !1, i);
1359
+ return je(this, e, t, !1, i);
1361
1360
  }, o.prototype.copy = function(e, t, i, a) {
1362
1361
  if (!o.isBuffer(e))
1363
1362
  throw new TypeError("argument should be a Buffer");
@@ -1459,7 +1458,7 @@ Ue.write = function(s, n, l, d, m, g) {
1459
1458
  e = `_${r.slice(t - 3, t)}${e}`;
1460
1459
  return `${r.slice(0, t)}${e}`;
1461
1460
  }
1462
- function Lt(r, e, t) {
1461
+ function St(r, e, t) {
1463
1462
  ie(e, "offset"), (r[e] === void 0 || r[e + t] === void 0) && pe(e, r.length - (t + 1));
1464
1463
  }
1465
1464
  function Ye(r, e, t, i, a, u) {
@@ -1468,7 +1467,7 @@ Ue.write = function(s, n, l, d, m, g) {
1468
1467
  let b;
1469
1468
  throw u > 3 ? e === 0 || e === BigInt(0) ? b = `>= 0${p} and < 2${p} ** ${(u + 1) * 8}${p}` : b = `>= -(2${p} ** ${(u + 1) * 8 - 1}${p}) and < 2 ** ${(u + 1) * 8 - 1}${p}` : b = `>= ${e}${p} and <= ${t}${p}`, new re.ERR_OUT_OF_RANGE("value", b, r);
1470
1469
  }
1471
- Lt(i, a, u);
1470
+ St(i, a, u);
1472
1471
  }
1473
1472
  function ie(r, e) {
1474
1473
  if (typeof r != "number")
@@ -1481,9 +1480,9 @@ Ue.write = function(s, n, l, d, m, g) {
1481
1480
  r
1482
1481
  );
1483
1482
  }
1484
- const Nt = /[^+/0-9A-Za-z-_]/g;
1483
+ const Lt = /[^+/0-9A-Za-z-_]/g;
1485
1484
  function Rt(r) {
1486
- if (r = r.split("=")[0], r = r.trim().replace(Nt, ""), r.length < 2)
1485
+ if (r = r.split("=")[0], r = r.trim().replace(Lt, ""), r.length < 2)
1487
1486
  return "";
1488
1487
  for (; r.length % 4 !== 0; )
1489
1488
  r = r + "=";
@@ -1548,13 +1547,13 @@ Ue.write = function(s, n, l, d, m, g) {
1548
1547
  }
1549
1548
  return u;
1550
1549
  }
1551
- function Ut(r) {
1550
+ function Nt(r) {
1552
1551
  const e = [];
1553
1552
  for (let t = 0; t < r.length; ++t)
1554
1553
  e.push(r.charCodeAt(t) & 255);
1555
1554
  return e;
1556
1555
  }
1557
- function zt(r, e) {
1556
+ function Ut(r, e) {
1558
1557
  let t, i, a;
1559
1558
  const u = [];
1560
1559
  for (let p = 0; p < r.length && !((e -= 2) < 0); ++p)
@@ -1570,13 +1569,13 @@ Ue.write = function(s, n, l, d, m, g) {
1570
1569
  e[a + t] = r[a];
1571
1570
  return a;
1572
1571
  }
1573
- function G(r, e) {
1572
+ function W(r, e) {
1574
1573
  return r instanceof e || r != null && r.constructor != null && r.constructor.name != null && r.constructor.name === e.name;
1575
1574
  }
1576
1575
  function Be(r) {
1577
1576
  return r !== r;
1578
1577
  }
1579
- const Ot = function() {
1578
+ const zt = function() {
1580
1579
  const r = "0123456789abcdef", e = new Array(256);
1581
1580
  for (let t = 0; t < 16; ++t) {
1582
1581
  const i = t * 16;
@@ -1586,13 +1585,13 @@ Ue.write = function(s, n, l, d, m, g) {
1586
1585
  return e;
1587
1586
  }();
1588
1587
  function J(r) {
1589
- return typeof BigInt > "u" ? Dt : r;
1588
+ return typeof BigInt > "u" ? Ot : r;
1590
1589
  }
1591
- function Dt() {
1590
+ function Ot() {
1592
1591
  throw new Error("BigInt not supported");
1593
1592
  }
1594
1593
  })(ft);
1595
- var gt = { exports: {} }, L = gt.exports = {}, W, H;
1594
+ var gt = { exports: {} }, L = gt.exports = {}, j, H;
1596
1595
  function Fe() {
1597
1596
  throw new Error("setTimeout has not been defined");
1598
1597
  }
@@ -1601,9 +1600,9 @@ function $e() {
1601
1600
  }
1602
1601
  (function() {
1603
1602
  try {
1604
- typeof setTimeout == "function" ? W = setTimeout : W = Fe;
1603
+ typeof setTimeout == "function" ? j = setTimeout : j = Fe;
1605
1604
  } catch {
1606
- W = Fe;
1605
+ j = Fe;
1607
1606
  }
1608
1607
  try {
1609
1608
  typeof clearTimeout == "function" ? H = clearTimeout : H = $e;
@@ -1612,21 +1611,21 @@ function $e() {
1612
1611
  }
1613
1612
  })();
1614
1613
  function yt(s) {
1615
- if (W === setTimeout)
1614
+ if (j === setTimeout)
1616
1615
  return setTimeout(s, 0);
1617
- if ((W === Fe || !W) && setTimeout)
1618
- return W = setTimeout, setTimeout(s, 0);
1616
+ if ((j === Fe || !j) && setTimeout)
1617
+ return j = setTimeout, setTimeout(s, 0);
1619
1618
  try {
1620
- return W(s, 0);
1619
+ return j(s, 0);
1621
1620
  } catch {
1622
1621
  try {
1623
- return W.call(null, s, 0);
1622
+ return j.call(null, s, 0);
1624
1623
  } catch {
1625
- return W.call(this, s, 0);
1624
+ return j.call(this, s, 0);
1626
1625
  }
1627
1626
  }
1628
1627
  }
1629
- function zi(s) {
1628
+ function Ni(s) {
1630
1629
  if (H === clearTimeout)
1631
1630
  return clearTimeout(s);
1632
1631
  if ((H === $e || !H) && clearTimeout)
@@ -1641,28 +1640,28 @@ function zi(s) {
1641
1640
  }
1642
1641
  }
1643
1642
  }
1644
- var K = [], ue = !1, te, Ie = -1;
1645
- function Oi() {
1646
- !ue || !te || (ue = !1, te.length ? K = te.concat(K) : Ie = -1, K.length && wt());
1643
+ var Q = [], ue = !1, te, Ie = -1;
1644
+ function Ui() {
1645
+ !ue || !te || (ue = !1, te.length ? Q = te.concat(Q) : Ie = -1, Q.length && wt());
1647
1646
  }
1648
1647
  function wt() {
1649
1648
  if (!ue) {
1650
- var s = yt(Oi);
1649
+ var s = yt(Ui);
1651
1650
  ue = !0;
1652
- for (var n = K.length; n; ) {
1653
- for (te = K, K = []; ++Ie < n; )
1651
+ for (var n = Q.length; n; ) {
1652
+ for (te = Q, Q = []; ++Ie < n; )
1654
1653
  te && te[Ie].run();
1655
- Ie = -1, n = K.length;
1654
+ Ie = -1, n = Q.length;
1656
1655
  }
1657
- te = null, ue = !1, zi(s);
1656
+ te = null, ue = !1, Ni(s);
1658
1657
  }
1659
1658
  }
1660
1659
  L.nextTick = function(s) {
1661
1660
  var n = new Array(arguments.length - 1);
1662
1661
  if (arguments.length > 1)
1663
- for (var l = 1; l < arguments.length; l++)
1664
- n[l - 1] = arguments[l];
1665
- K.push(new It(s, n)), K.length === 1 && !ue && yt(wt);
1662
+ for (var c = 1; c < arguments.length; c++)
1663
+ n[c - 1] = arguments[c];
1664
+ Q.push(new It(s, n)), Q.length === 1 && !ue && yt(wt);
1666
1665
  };
1667
1666
  function It(s, n) {
1668
1667
  this.fun = s, this.array = n;
@@ -1702,35 +1701,35 @@ L.chdir = function(s) {
1702
1701
  L.umask = function() {
1703
1702
  return 0;
1704
1703
  };
1705
- var Di = gt.exports;
1704
+ var zi = gt.exports;
1706
1705
  (function(s) {
1707
1706
  Object.defineProperty(s, Symbol.toStringTag, { value: "Module" });
1708
- const n = ft, l = Di, d = (f) => f && f.__esModule ? f : { default: f }, m = d(l), g = globalThis || void 0 || self;
1707
+ const n = ft, c = zi, d = (f) => f && f.__esModule ? f : { default: f }, m = d(c), g = globalThis || void 0 || self;
1709
1708
  Object.defineProperty(s, "Buffer", { enumerable: !0, get: () => n.Buffer }), Object.defineProperty(s, "process", { enumerable: !0, get: () => m.default }), s.global = g;
1710
1709
  })(dt);
1711
- let j;
1712
- typeof window < "u" ? j = window : typeof self < "u" ? j = self : j = dt.global;
1710
+ let G;
1711
+ typeof window < "u" ? G = window : typeof self < "u" ? G = self : G = dt.global;
1713
1712
  let ke = null, Se = null;
1714
- const at = 20, Ce = j.clearTimeout, lt = j.setTimeout, Te = j.cancelAnimationFrame || j.mozCancelAnimationFrame || j.webkitCancelAnimationFrame, ct = j.requestAnimationFrame || j.mozRequestAnimationFrame || j.webkitRequestAnimationFrame;
1715
- Te == null || ct == null ? (ke = Ce, Se = function(n) {
1716
- return lt(n, at);
1717
- }) : (ke = function([n, l]) {
1718
- Te(n), Ce(l);
1713
+ const at = 20, Ce = G.clearTimeout, ct = G.setTimeout, Te = G.cancelAnimationFrame || G.mozCancelAnimationFrame || G.webkitCancelAnimationFrame, lt = G.requestAnimationFrame || G.mozRequestAnimationFrame || G.webkitRequestAnimationFrame;
1714
+ Te == null || lt == null ? (ke = Ce, Se = function(n) {
1715
+ return ct(n, at);
1716
+ }) : (ke = function([n, c]) {
1717
+ Te(n), Ce(c);
1719
1718
  }, Se = function(n) {
1720
- const l = ct(function() {
1719
+ const c = lt(function() {
1721
1720
  Ce(d), n();
1722
- }), d = lt(function() {
1723
- Te(l), n();
1721
+ }), d = ct(function() {
1722
+ Te(c), n();
1724
1723
  }, at);
1725
- return [l, d];
1724
+ return [c, d];
1726
1725
  });
1727
- function Pi(s) {
1728
- let n, l, d, m, g, f, o;
1726
+ function Oi(s) {
1727
+ let n, c, d, m, g, f, o;
1729
1728
  const w = typeof document < "u" && document.attachEvent;
1730
1729
  if (!w) {
1731
1730
  f = function(_) {
1732
- const F = _.__resizeTriggers__, U = F.firstElementChild, Q = F.lastElementChild, M = U.firstElementChild;
1733
- Q.scrollLeft = Q.scrollWidth, Q.scrollTop = Q.scrollHeight, M.style.width = U.offsetWidth + 1 + "px", M.style.height = U.offsetHeight + 1 + "px", U.scrollLeft = U.scrollWidth, U.scrollTop = U.scrollHeight;
1731
+ const F = _.__resizeTriggers__, U = F.firstElementChild, K = F.lastElementChild, M = U.firstElementChild;
1732
+ K.scrollLeft = K.scrollWidth, K.scrollTop = K.scrollHeight, M.style.width = U.offsetWidth + 1 + "px", M.style.height = U.offsetHeight + 1 + "px", U.scrollLeft = U.scrollWidth, U.scrollTop = U.scrollHeight;
1734
1733
  }, g = function(_) {
1735
1734
  return _.offsetWidth !== _.__resizeLast__.width || _.offsetHeight !== _.__resizeLast__.height;
1736
1735
  }, o = function(_) {
@@ -1746,18 +1745,18 @@ function Pi(s) {
1746
1745
  let y = !1, A = "";
1747
1746
  d = "animationstart";
1748
1747
  const x = "Webkit Moz O ms".split(" ");
1749
- let B = "webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" "), N = "";
1748
+ let B = "webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" "), R = "";
1750
1749
  {
1751
1750
  const _ = document.createElement("fakeelement");
1752
1751
  if (_.style.animationName !== void 0 && (y = !0), y === !1) {
1753
1752
  for (let F = 0; F < x.length; F++)
1754
1753
  if (_.style[x[F] + "AnimationName"] !== void 0) {
1755
- N = x[F], A = "-" + N.toLowerCase() + "-", d = B[F], y = !0;
1754
+ R = x[F], A = "-" + R.toLowerCase() + "-", d = B[F], y = !0;
1756
1755
  break;
1757
1756
  }
1758
1757
  }
1759
1758
  }
1760
- l = "resizeanim", n = "@" + A + "keyframes " + l + " { from { opacity: 0; } to { opacity: 0; } } ", m = A + "animation: 1ms " + l + "; ";
1759
+ c = "resizeanim", n = "@" + A + "keyframes " + c + " { from { opacity: 0; } to { opacity: 0; } } ", m = A + "animation: 1ms " + c + "; ";
1761
1760
  }
1762
1761
  const v = function(y) {
1763
1762
  if (!y.getElementById("detectElementResize")) {
@@ -1771,13 +1770,13 @@ function Pi(s) {
1771
1770
  y.attachEvent("onresize", A);
1772
1771
  else {
1773
1772
  if (!y.__resizeTriggers__) {
1774
- const x = y.ownerDocument, B = j.getComputedStyle(y);
1773
+ const x = y.ownerDocument, B = G.getComputedStyle(y);
1775
1774
  B && B.position === "static" && (y.style.position = "relative"), v(x), y.__resizeLast__ = {}, y.__resizeListeners__ = [], (y.__resizeTriggers__ = x.createElement("div")).className = "resize-triggers";
1776
- const N = x.createElement("div");
1777
- N.className = "expand-trigger", N.appendChild(x.createElement("div"));
1775
+ const R = x.createElement("div");
1776
+ R.className = "expand-trigger", R.appendChild(x.createElement("div"));
1778
1777
  const _ = x.createElement("div");
1779
- _.className = "contract-trigger", y.__resizeTriggers__.appendChild(N), y.__resizeTriggers__.appendChild(_), y.appendChild(y.__resizeTriggers__), f(y), y.addEventListener("scroll", o, !0), d && (y.__resizeTriggers__.__animationListener__ = function(U) {
1780
- U.animationName === l && f(y);
1778
+ _.className = "contract-trigger", y.__resizeTriggers__.appendChild(R), y.__resizeTriggers__.appendChild(_), y.appendChild(y.__resizeTriggers__), f(y), y.addEventListener("scroll", o, !0), d && (y.__resizeTriggers__.__animationListener__ = function(U) {
1779
+ U.animationName === c && f(y);
1781
1780
  }, y.__resizeTriggers__.addEventListener(d, y.__resizeTriggers__.__animationListener__));
1782
1781
  }
1783
1782
  y.__resizeListeners__.push(A);
@@ -1796,7 +1795,7 @@ function Pi(s) {
1796
1795
  }
1797
1796
  };
1798
1797
  }
1799
- class At extends Ht {
1798
+ class Di extends jt {
1800
1799
  constructor(...n) {
1801
1800
  super(...n), this.state = {
1802
1801
  height: this.props.defaultHeight || 0,
@@ -1806,27 +1805,27 @@ class At extends Ht {
1806
1805
  }, this._autoSizer = null, this._detectElementResize = null, this._parentNode = null, this._resizeObserver = null, this._timeoutId = null, this._onResize = () => {
1807
1806
  this._timeoutId = null;
1808
1807
  const {
1809
- disableHeight: l,
1808
+ disableHeight: c,
1810
1809
  disableWidth: d,
1811
1810
  onResize: m
1812
1811
  } = this.props;
1813
1812
  if (this._parentNode) {
1814
1813
  var g, f, o, w;
1815
- const v = window.getComputedStyle(this._parentNode) || {}, E = parseFloat((g = v.paddingLeft) !== null && g !== void 0 ? g : "0"), C = parseFloat((f = v.paddingRight) !== null && f !== void 0 ? f : "0"), y = parseFloat((o = v.paddingTop) !== null && o !== void 0 ? o : "0"), A = parseFloat((w = v.paddingBottom) !== null && w !== void 0 ? w : "0"), x = this._parentNode.getBoundingClientRect(), B = x.height - y - A, N = x.width - E - C, _ = this._parentNode.offsetHeight - y - A, F = this._parentNode.offsetWidth - E - C;
1816
- (!l && (this.state.height !== _ || this.state.scaledHeight !== B) || !d && (this.state.width !== F || this.state.scaledWidth !== N)) && (this.setState({
1814
+ const v = window.getComputedStyle(this._parentNode) || {}, E = parseFloat((g = v.paddingLeft) !== null && g !== void 0 ? g : "0"), C = parseFloat((f = v.paddingRight) !== null && f !== void 0 ? f : "0"), y = parseFloat((o = v.paddingTop) !== null && o !== void 0 ? o : "0"), A = parseFloat((w = v.paddingBottom) !== null && w !== void 0 ? w : "0"), x = this._parentNode.getBoundingClientRect(), B = x.height - y - A, R = x.width - E - C, _ = this._parentNode.offsetHeight - y - A, F = this._parentNode.offsetWidth - E - C;
1815
+ (!c && (this.state.height !== _ || this.state.scaledHeight !== B) || !d && (this.state.width !== F || this.state.scaledWidth !== R)) && (this.setState({
1817
1816
  height: _,
1818
1817
  width: F,
1819
1818
  scaledHeight: B,
1820
- scaledWidth: N
1819
+ scaledWidth: R
1821
1820
  }), typeof m == "function" && m({
1822
1821
  height: _,
1823
1822
  scaledHeight: B,
1824
- scaledWidth: N,
1823
+ scaledWidth: R,
1825
1824
  width: F
1826
1825
  }));
1827
1826
  }
1828
- }, this._setRef = (l) => {
1829
- this._autoSizer = l;
1827
+ }, this._setRef = (c) => {
1828
+ this._autoSizer = c;
1830
1829
  };
1831
1830
  }
1832
1831
  componentDidMount() {
@@ -1835,7 +1834,7 @@ class At extends Ht {
1835
1834
  } = this.props;
1836
1835
  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(() => {
1837
1836
  this._timeoutId = setTimeout(this._onResize, 0);
1838
- }), this._resizeObserver.observe(this._parentNode)) : (this._detectElementResize = Pi(n), this._detectElementResize.addResizeListener(this._parentNode, this._onResize)), this._onResize()));
1837
+ }), this._resizeObserver.observe(this._parentNode)) : (this._detectElementResize = Oi(n), this._detectElementResize.addResizeListener(this._parentNode, this._onResize)), this._onResize()));
1839
1838
  }
1840
1839
  componentWillUnmount() {
1841
1840
  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()));
@@ -1843,7 +1842,7 @@ class At extends Ht {
1843
1842
  render() {
1844
1843
  const {
1845
1844
  children: n,
1846
- defaultHeight: l,
1845
+ defaultHeight: c,
1847
1846
  defaultWidth: d,
1848
1847
  disableHeight: m = !1,
1849
1848
  disableWidth: g = !1,
@@ -1859,136 +1858,123 @@ class At extends Ht {
1859
1858
  width: x
1860
1859
  } = this.state, B = {
1861
1860
  overflow: "visible"
1862
- }, N = {};
1861
+ }, R = {};
1863
1862
  let _ = !1;
1864
- return m || (C === 0 && (_ = !0), B.height = 0, N.height = C, N.scaledHeight = y), g || (x === 0 && (_ = !0), B.width = 0, N.width = x, N.scaledWidth = A), Yt(v, {
1863
+ return m || (C === 0 && (_ = !0), B.height = 0, R.height = C, R.scaledHeight = y), g || (x === 0 && (_ = !0), B.width = 0, R.width = x, R.scaledWidth = A), Ht(v, {
1865
1864
  ref: this._setRef,
1866
1865
  style: {
1867
1866
  ...B,
1868
1867
  ...w
1869
1868
  },
1870
1869
  ...E
1871
- }, !_ && n(N));
1870
+ }, !_ && n(R));
1872
1871
  }
1873
1872
  }
1874
- const Mi = ({
1875
- src: s,
1876
- className: n,
1877
- style: l
1878
- }) => /* @__PURE__ */ c(At, { className: n, style: l, children: ({ height: d, width: m }) => /* @__PURE__ */ c(
1879
- Kt,
1880
- {
1881
- autoplay: !0,
1882
- loop: !1,
1883
- controls: !1,
1884
- src: `https://url-proxy.streamlayer.io?${s}`,
1885
- style: { height: d, width: m }
1886
- }
1887
- ) }), qi = /* @__PURE__ */ h("div")({
1873
+ const Pi = /* @__PURE__ */ h("div")({
1888
1874
  name: "Container",
1889
1875
  class: "c1htq1lb",
1890
1876
  propsAsIs: !1
1891
- }), ji = /* @__PURE__ */ h("div")({
1877
+ }), Mi = /* @__PURE__ */ h("div")({
1892
1878
  name: "Content",
1893
1879
  class: "cjyzpp7",
1894
1880
  propsAsIs: !1
1895
- }), Gi = /* @__PURE__ */ h("div")({
1881
+ }), qi = /* @__PURE__ */ h("div")({
1896
1882
  name: "Graphic",
1897
1883
  class: "g16mldgz",
1898
1884
  propsAsIs: !1
1899
- }), Wi = /* @__PURE__ */ h("div")({
1885
+ }), Gi = /* @__PURE__ */ h("div")({
1900
1886
  name: "Headline",
1901
1887
  class: "h69js65",
1902
1888
  propsAsIs: !1
1903
- }), Hi = /* @__PURE__ */ h("div")({
1889
+ }), Wi = /* @__PURE__ */ h("div")({
1904
1890
  name: "StepsContainer",
1905
1891
  class: "smm7qmo",
1906
1892
  propsAsIs: !1
1907
- }), Yi = /* @__PURE__ */ h("span")({
1893
+ }), ji = /* @__PURE__ */ h("span")({
1908
1894
  name: "StepIndicator",
1909
1895
  class: "s17knuw2",
1910
1896
  propsAsIs: !1
1911
- }), Vi = ({
1897
+ }), Hi = ({
1912
1898
  graphicSrc: s,
1913
1899
  headline: n,
1914
- stepsCount: l,
1900
+ stepsCount: c,
1915
1901
  currentStep: d
1916
- }) => /* @__PURE__ */ I(qi, { children: [
1917
- /* @__PURE__ */ I(ji, { children: [
1918
- /* @__PURE__ */ c(Gi, { children: /* @__PURE__ */ c(Mi, { src: s }) }),
1919
- n && /* @__PURE__ */ c(Wi, { children: n })
1902
+ }) => /* @__PURE__ */ I(Pi, { children: [
1903
+ /* @__PURE__ */ I(Mi, { children: [
1904
+ /* @__PURE__ */ l(qi, { children: /* @__PURE__ */ l("img", { src: s, alt: n }) }),
1905
+ n && /* @__PURE__ */ l(Gi, { children: n })
1920
1906
  ] }),
1921
- /* @__PURE__ */ c(Hi, { children: Array.from({ length: l }).map((m, g) => /* @__PURE__ */ c(Yi, { "data-active": d === g }, g)) })
1922
- ] }), Qi = /* @__PURE__ */ h("div")({
1907
+ /* @__PURE__ */ l(Wi, { children: Array.from({ length: c }).map((m, g) => /* @__PURE__ */ l(ji, { "data-active": d === g }, g)) })
1908
+ ] }), Yi = /* @__PURE__ */ h("div")({
1923
1909
  name: "Container",
1924
1910
  class: "c1itm4k7",
1925
1911
  propsAsIs: !1
1926
- }), Ki = /* @__PURE__ */ h("div")({
1912
+ }), Vi = /* @__PURE__ */ h("div")({
1927
1913
  name: "IconContainer",
1928
1914
  class: "i1w4fsni",
1929
1915
  propsAsIs: !1
1930
- }), Xi = () => z, Ji = /* @__PURE__ */ h(Xi())({
1916
+ }), Ki = () => z, Qi = /* @__PURE__ */ h(Ki())({
1931
1917
  name: "InviteGameIcon",
1932
1918
  class: "i19m85r1",
1933
1919
  propsAsIs: !0
1934
- }), Zi = /* @__PURE__ */ h("div")({
1920
+ }), Xi = /* @__PURE__ */ h("div")({
1935
1921
  name: "Content",
1936
1922
  class: "c1mbu204",
1937
1923
  propsAsIs: !1
1938
- }), en = /* @__PURE__ */ h("div")({
1924
+ }), Ji = /* @__PURE__ */ h("div")({
1939
1925
  name: "Heading",
1940
1926
  class: "h1amdqtv",
1941
1927
  propsAsIs: !1
1942
- }), tn = /* @__PURE__ */ h("div")({
1928
+ }), Zi = /* @__PURE__ */ h("div")({
1943
1929
  name: "Subtext",
1944
1930
  class: "s1lhlj9j",
1945
1931
  propsAsIs: !1
1946
- }), rn = /* @__PURE__ */ h("div")({
1932
+ }), en = /* @__PURE__ */ h("div")({
1947
1933
  name: "LinkContainer",
1948
1934
  class: "l1wot35e",
1949
1935
  propsAsIs: !1
1950
- }), nn = /* @__PURE__ */ h("div")({
1936
+ }), tn = /* @__PURE__ */ h("div")({
1951
1937
  name: "LinkInfo",
1952
1938
  class: "l1jdw39q",
1953
1939
  propsAsIs: !1
1954
- }), sn = /* @__PURE__ */ h("span")({
1940
+ }), rn = /* @__PURE__ */ h("span")({
1955
1941
  name: "LinkTitle",
1956
1942
  class: "l1cr5mk",
1957
1943
  propsAsIs: !1
1958
- }), on = /* @__PURE__ */ h("span")({
1944
+ }), nn = /* @__PURE__ */ h("span")({
1959
1945
  name: "LinkAddress",
1960
1946
  class: "lvi87q4",
1961
1947
  propsAsIs: !1
1962
- }), an = () => z, ln = /* @__PURE__ */ h(an())({
1948
+ }), sn = () => z, on = /* @__PURE__ */ h(sn())({
1963
1949
  name: "LinkIcon",
1964
1950
  class: "l1pqlvw3",
1965
1951
  propsAsIs: !0
1966
- }), cn = /* @__PURE__ */ h("div")({
1952
+ }), an = /* @__PURE__ */ h("div")({
1967
1953
  name: "SocialLinksContainer",
1968
1954
  class: "s1n7kzeh",
1969
1955
  propsAsIs: !1
1970
- }), un = /* @__PURE__ */ h("a")({
1956
+ }), cn = /* @__PURE__ */ h("a")({
1971
1957
  name: "SocialLink",
1972
1958
  class: "s2m9o9y",
1973
1959
  propsAsIs: !1
1974
- }), hn = /* @__PURE__ */ h("span")({
1960
+ }), ln = /* @__PURE__ */ h("span")({
1975
1961
  name: "SocialLinkLabel",
1976
1962
  class: "sewjbbn",
1977
1963
  propsAsIs: !1
1978
- }), pn = ({
1964
+ }), un = ({
1979
1965
  inviteLink: s,
1980
1966
  socialLinks: n,
1981
- inviteCardTitle: l,
1967
+ inviteCardTitle: c,
1982
1968
  inviteCardSubtext: d,
1983
1969
  primaryColor: m,
1984
1970
  className: g
1985
- }) => /* @__PURE__ */ I(Qi, { className: g, children: [
1986
- /* @__PURE__ */ c(Ki, { style: { backgroundColor: m }, children: /* @__PURE__ */ c(Ji, { name: "invite-game-icon" }) }),
1987
- /* @__PURE__ */ I(Zi, { children: [
1988
- /* @__PURE__ */ c(en, { children: l || "" }),
1989
- /* @__PURE__ */ c(tn, { children: d || "" })
1971
+ }) => /* @__PURE__ */ I(Yi, { className: g, children: [
1972
+ /* @__PURE__ */ l(Vi, { style: { backgroundColor: m }, children: /* @__PURE__ */ l(Qi, { name: "invite-game-icon" }) }),
1973
+ /* @__PURE__ */ I(Xi, { children: [
1974
+ /* @__PURE__ */ l(Ji, { children: c || "" }),
1975
+ /* @__PURE__ */ l(Zi, { children: d || "" })
1990
1976
  ] }),
1991
- s && /* @__PURE__ */ I(rn, { onClick: async () => {
1977
+ s && /* @__PURE__ */ I(en, { onClick: async () => {
1992
1978
  if (s)
1993
1979
  try {
1994
1980
  await navigator.clipboard.writeText(s);
@@ -1996,101 +1982,101 @@ const Mi = ({
1996
1982
  console.error("Unable to copy to clipboard", f);
1997
1983
  }
1998
1984
  }, children: [
1999
- /* @__PURE__ */ I(nn, { children: [
2000
- /* @__PURE__ */ c(sn, { children: "Invite link" }),
2001
- /* @__PURE__ */ c(on, { children: s })
1985
+ /* @__PURE__ */ I(tn, { children: [
1986
+ /* @__PURE__ */ l(rn, { children: "Invite link" }),
1987
+ /* @__PURE__ */ l(nn, { children: s })
2002
1988
  ] }),
2003
- /* @__PURE__ */ c(ln, { name: "icon-copy" })
1989
+ /* @__PURE__ */ l(on, { name: "icon-copy" })
2004
1990
  ] }),
2005
- n && n.length > 0 && /* @__PURE__ */ c(cn, { children: n.map(({ icon: f, link: o, label: w }) => /* @__PURE__ */ I(un, { href: o, target: "_blank", children: [
2006
- /* @__PURE__ */ c(z, { name: f }),
2007
- /* @__PURE__ */ c(hn, { children: w })
1991
+ n && n.length > 0 && /* @__PURE__ */ l(an, { children: n.map(({ icon: f, link: o, label: w }) => /* @__PURE__ */ I(cn, { href: o, target: "_blank", children: [
1992
+ /* @__PURE__ */ l(z, { name: f }),
1993
+ /* @__PURE__ */ l(ln, { children: w })
2008
1994
  ] }, o)) })
2009
- ] }), dn = /* @__PURE__ */ h("div")({
1995
+ ] }), hn = /* @__PURE__ */ h("div")({
2010
1996
  name: "Container",
2011
1997
  class: "cm0bev",
2012
1998
  propsAsIs: !1
2013
- }), fn = /* @__PURE__ */ h("div")({
1999
+ }), pn = /* @__PURE__ */ h("div")({
2014
2000
  name: "Content",
2015
2001
  class: "ce7x737",
2016
2002
  propsAsIs: !1
2017
- }), mn = /* @__PURE__ */ h("div")({
2003
+ }), dn = /* @__PURE__ */ h("div")({
2018
2004
  name: "Title",
2019
2005
  class: "tc2tor6",
2020
2006
  propsAsIs: !1
2021
- }), gn = /* @__PURE__ */ h("div")({
2007
+ }), fn = /* @__PURE__ */ h("div")({
2022
2008
  name: "RulesList",
2023
2009
  class: "r1k5klql",
2024
2010
  propsAsIs: !1
2025
- }), yn = /* @__PURE__ */ h("div")({
2011
+ }), mn = /* @__PURE__ */ h("div")({
2026
2012
  name: "RulesItem",
2027
2013
  class: "r1tf3ft2",
2028
2014
  propsAsIs: !1
2029
- }), wn = /* @__PURE__ */ h("div")({
2015
+ }), gn = /* @__PURE__ */ h("div")({
2030
2016
  name: "RuleIcon",
2031
2017
  class: "rwpvg1k",
2032
2018
  propsAsIs: !1
2033
- }), In = /* @__PURE__ */ h("div")({
2019
+ }), yn = /* @__PURE__ */ h("div")({
2034
2020
  name: "RuleText",
2035
2021
  class: "rbxiag0",
2036
2022
  propsAsIs: !1
2037
- }), An = /* @__PURE__ */ h("button")({
2023
+ }), wn = /* @__PURE__ */ h("button")({
2038
2024
  name: "TermsButton",
2039
2025
  class: "t6cyrry",
2040
2026
  propsAsIs: !1
2041
- }), xn = ({ rules: s, rulesTitle: n, primaryColor: l }) => /* @__PURE__ */ I(dn, { children: [
2042
- /* @__PURE__ */ I(fn, { children: [
2043
- /* @__PURE__ */ c(mn, { children: n }),
2044
- /* @__PURE__ */ c(gn, { children: s == null ? void 0 : s.map(({ label: d, icon: m }, g) => /* @__PURE__ */ I(yn, { children: [
2045
- m && /* @__PURE__ */ c(wn, { style: { backgroundColor: l }, children: /* @__PURE__ */ c(z, { name: m, "data-icon": m }) }),
2046
- /* @__PURE__ */ c(In, { children: d })
2027
+ }), In = ({ rules: s, rulesTitle: n, primaryColor: c }) => /* @__PURE__ */ I(hn, { children: [
2028
+ /* @__PURE__ */ I(pn, { children: [
2029
+ /* @__PURE__ */ l(dn, { children: n }),
2030
+ /* @__PURE__ */ l(fn, { children: s == null ? void 0 : s.map(({ label: d, icon: m }, g) => /* @__PURE__ */ I(mn, { children: [
2031
+ m && /* @__PURE__ */ l(gn, { style: { backgroundColor: c }, children: /* @__PURE__ */ l(z, { name: m, "data-icon": m }) }),
2032
+ /* @__PURE__ */ l(yn, { children: d })
2047
2033
  ] }, g)) })
2048
2034
  ] }),
2049
- /* @__PURE__ */ c(An, { children: "See Terms and Conditions" })
2050
- ] }), bn = /* @__PURE__ */ h("button")({
2035
+ /* @__PURE__ */ l(wn, { children: "See Terms and Conditions" })
2036
+ ] }), An = /* @__PURE__ */ h("button")({
2051
2037
  name: "SButton",
2052
2038
  class: "s1nve60q",
2053
2039
  propsAsIs: !1
2054
- }), En = /* @__PURE__ */ h("span")({
2040
+ }), xn = /* @__PURE__ */ h("span")({
2055
2041
  name: "ButtonLabel",
2056
2042
  class: "b1xoswwx",
2057
2043
  propsAsIs: !1
2058
- }), Bn = ({ disabled: s, variant: n = "primary", onClick: l, children: d, ...m }) => /* @__PURE__ */ c(bn, { onClick: l, disabled: s, "data-variant": n, ...m, children: /* @__PURE__ */ c(En, { children: d }) }), vn = /* @__PURE__ */ h("div")({
2044
+ }), bn = ({ disabled: s, variant: n = "primary", onClick: c, children: d, ...m }) => /* @__PURE__ */ l(An, { onClick: c, disabled: s, "data-variant": n, ...m, children: /* @__PURE__ */ l(xn, { children: d }) }), En = /* @__PURE__ */ h("div")({
2059
2045
  name: "Container",
2060
2046
  class: "c18uddbs",
2061
2047
  propsAsIs: !1
2062
- }), _n = /* @__PURE__ */ h("div")({
2048
+ }), Bn = /* @__PURE__ */ h("div")({
2063
2049
  name: "Content",
2064
2050
  class: "cvcfjf6",
2065
2051
  propsAsIs: !1
2066
- }), Cn = /* @__PURE__ */ h("div")({
2052
+ }), vn = /* @__PURE__ */ h("div")({
2067
2053
  name: "OnboardingHeader",
2068
2054
  class: "o1ie27lw",
2069
2055
  propsAsIs: !1
2070
- }), Tn = /* @__PURE__ */ h("button")({
2056
+ }), _n = /* @__PURE__ */ h("button")({
2071
2057
  name: "CloseBtn",
2072
2058
  class: "c15cjkwi",
2073
2059
  propsAsIs: !1
2074
- }), Fn = () => z, $n = /* @__PURE__ */ h(Fn())({
2060
+ }), Cn = () => z, Tn = /* @__PURE__ */ h(Cn())({
2075
2061
  name: "IconClose",
2076
2062
  class: "i1mavjt2",
2077
2063
  propsAsIs: !0
2078
- }), kn = /* @__PURE__ */ h("div")({
2064
+ }), Fn = /* @__PURE__ */ h("div")({
2079
2065
  name: "OnboardingFooter",
2080
2066
  class: "o1x0dyzv",
2081
2067
  propsAsIs: !1
2082
- }), Sn = () => Bn, Ln = /* @__PURE__ */ h(Sn())({
2068
+ }), $n = () => bn, kn = /* @__PURE__ */ h($n())({
2083
2069
  name: "OnboardingActionBtn",
2084
2070
  class: "o1jfi9c3",
2085
2071
  propsAsIs: !0
2086
- }), le = {
2072
+ }), ce = {
2087
2073
  steps: !1,
2088
2074
  rules: !1,
2089
2075
  inviteCard: !1
2090
- }, Nn = ({
2076
+ }, Sn = ({
2091
2077
  gamification: s,
2092
2078
  steps: n,
2093
- rules: l,
2079
+ rules: c,
2094
2080
  rulesBtnLabel: d,
2095
2081
  rulesTitle: m,
2096
2082
  primaryColor: g,
@@ -2101,22 +2087,22 @@ const Mi = ({
2101
2087
  inviteCardBtnLabel: E,
2102
2088
  onClose: C
2103
2089
  }) => {
2104
- const [y, A] = V(0), [x, B] = V(le);
2090
+ const [y, A] = V(0), [x, B] = V(ce);
2105
2091
  he(() => {
2106
- n != null && n.length ? B({ ...le, steps: !0 }) : l != null && l.length ? B({ ...le, rules: !0 }) : B({ ...le, inviteCard: !0 });
2092
+ n != null && n.length ? B({ ...ce, steps: !0 }) : c != null && c.length ? B({ ...ce, rules: !0 }) : B({ ...ce, inviteCard: !0 });
2107
2093
  }, []);
2108
- const N = Le(() => x.steps && y === 0 ? "Continue" : x.rules ? d || "Got it" : x.inviteCard ? E || "Play Now" : "Next", [x, y, d, E]), _ = pt(() => {
2109
- n != null && n.length && y < n.length - 1 ? A((U) => ++U) : l != null && l.length && x.steps ? B({ ...le, rules: !0 }) : x.rules && B({ ...le, inviteCard: !0 });
2110
- }, [y, n == null ? void 0 : n.length, l == null ? void 0 : l.length, x, A, B]), F = async () => {
2094
+ const R = Le(() => x.steps && y === 0 ? "Continue" : x.rules ? d || "Got it" : x.inviteCard ? E || "Play Now" : "Next", [x, y, d, E]), _ = pt(() => {
2095
+ n != null && n.length && y < n.length - 1 ? A((U) => ++U) : c != null && c.length && x.steps ? B({ ...ce, rules: !0 }) : x.rules && B({ ...ce, inviteCard: !0 });
2096
+ }, [y, n == null ? void 0 : n.length, c == null ? void 0 : c.length, x, A, B]), F = async () => {
2111
2097
  await s.onboardingStatus.submitInplay();
2112
2098
  };
2113
- return /* @__PURE__ */ c(At, { children: ({ width: U, height: Q }) => /* @__PURE__ */ I(vn, { style: { width: U, height: Q }, children: [
2114
- /* @__PURE__ */ c(Cn, { children: /* @__PURE__ */ c(Tn, { onClick: C, children: /* @__PURE__ */ c($n, { name: "icon-close-btn-gray" }) }) }),
2115
- /* @__PURE__ */ I(_n, { children: [
2116
- x.steps && (n == null ? void 0 : n.length) && /* @__PURE__ */ c(Vi, { stepsCount: n.length, currentStep: y, ...n[y] }),
2117
- x.rules && /* @__PURE__ */ c(xn, { rules: l, rulesTitle: m, primaryColor: g }),
2118
- x.inviteCard && /* @__PURE__ */ c(
2119
- pn,
2099
+ return /* @__PURE__ */ l(Di, { children: ({ width: U, height: K }) => /* @__PURE__ */ I(En, { style: { width: U, height: K }, children: [
2100
+ /* @__PURE__ */ l(vn, { children: /* @__PURE__ */ l(_n, { onClick: C, children: /* @__PURE__ */ l(Tn, { name: "icon-close-btn-gray" }) }) }),
2101
+ /* @__PURE__ */ I(Bn, { children: [
2102
+ x.steps && (n == null ? void 0 : n.length) && /* @__PURE__ */ l(Hi, { stepsCount: n.length, currentStep: y, ...n[y] }),
2103
+ x.rules && /* @__PURE__ */ l(In, { rules: c, rulesTitle: m, primaryColor: g }),
2104
+ x.inviteCard && /* @__PURE__ */ l(
2105
+ un,
2120
2106
  {
2121
2107
  inviteLink: f,
2122
2108
  inviteCardTitle: w,
@@ -2126,77 +2112,77 @@ const Mi = ({
2126
2112
  }
2127
2113
  )
2128
2114
  ] }),
2129
- /* @__PURE__ */ c(kn, { children: /* @__PURE__ */ c(Ln, { onClick: x.inviteCard ? F : _, children: N }) })
2115
+ /* @__PURE__ */ l(Fn, { children: /* @__PURE__ */ l(kn, { onClick: x.inviteCard ? F : _, children: R }) })
2130
2116
  ] }) });
2131
- }, Rn = /* @__PURE__ */ h("div")({
2117
+ }, Ln = /* @__PURE__ */ h("div")({
2132
2118
  name: "Container",
2133
2119
  class: "c1pgyo67",
2134
2120
  propsAsIs: !1
2135
- }), Un = "hx17qu6", xt = ({
2121
+ }), Rn = "hx17qu6", At = ({
2136
2122
  children: s,
2137
2123
  style: n,
2138
- className: l,
2124
+ className: c,
2139
2125
  hiding: d
2140
- }) => /* @__PURE__ */ c(Rn, {
2126
+ }) => /* @__PURE__ */ l(Ln, {
2141
2127
  style: n,
2142
- className: Qt(l, d && Un),
2128
+ className: Vt(c, d && Rn),
2143
2129
  children: s
2144
- }), zn = /* @__PURE__ */ h("div")({
2130
+ }), Nn = /* @__PURE__ */ h("div")({
2145
2131
  name: "Container",
2146
2132
  class: "cocfo2g",
2147
2133
  propsAsIs: !1
2148
- }), On = /* @__PURE__ */ h("div")({
2134
+ }), Un = /* @__PURE__ */ h("div")({
2149
2135
  name: "CloseIconWrap",
2150
2136
  class: "c1pdhxdk",
2151
2137
  propsAsIs: !1
2152
- }), Dn = () => z, Pn = /* @__PURE__ */ h(Dn())({
2138
+ }), zn = () => z, On = /* @__PURE__ */ h(zn())({
2153
2139
  name: "CloseIcon",
2154
2140
  class: "c1funj3r",
2155
2141
  propsAsIs: !0
2156
- }), Mn = /* @__PURE__ */ h("div")({
2142
+ }), Dn = /* @__PURE__ */ h("div")({
2157
2143
  name: "Title",
2158
2144
  class: "t1okg06y",
2159
2145
  propsAsIs: !1
2160
- }), qn = /* @__PURE__ */ h("img")({
2146
+ }), Pn = /* @__PURE__ */ h("img")({
2161
2147
  name: "SponsorLogo",
2162
2148
  class: "sb1n923",
2163
2149
  propsAsIs: !1
2164
- }), jn = /* @__PURE__ */ h("div")({
2150
+ }), Mn = /* @__PURE__ */ h("div")({
2165
2151
  name: "PresentsTitle",
2166
2152
  class: "p1stllxd",
2167
2153
  propsAsIs: !1
2168
- }), Gn = /* @__PURE__ */ h("div")({
2154
+ }), qn = /* @__PURE__ */ h("div")({
2169
2155
  name: "Subtitle",
2170
2156
  class: "s13kvdzw",
2171
2157
  propsAsIs: !1
2172
- }), Wn = /* @__PURE__ */ h("div")({
2158
+ }), Gn = /* @__PURE__ */ h("div")({
2173
2159
  name: "Description",
2174
2160
  class: "dfvmv3t",
2175
2161
  propsAsIs: !1
2176
- }), Hn = /* @__PURE__ */ h("button")({
2162
+ }), Wn = /* @__PURE__ */ h("button")({
2177
2163
  name: "ActionButton",
2178
2164
  class: "ay8e3j9",
2179
2165
  propsAsIs: !1
2180
- }), Yn = ({ close: s, action: n, onboarding: l }) => {
2166
+ }), jn = ({ close: s, action: n, onboarding: c }) => {
2181
2167
  var d, m, g, f, o, w, v, E;
2182
- return /* @__PURE__ */ I(zn, { children: [
2183
- /* @__PURE__ */ c(On, { onClick: s, children: /* @__PURE__ */ c(Pn, { name: "icon-cross" }) }),
2184
- ((m = (d = l == null ? void 0 : l.titleCard) == null ? void 0 : d.media) == null ? void 0 : m.sponsorLogo) && /* @__PURE__ */ I(Mn, { children: [
2185
- /* @__PURE__ */ c(qn, { alt: "sponsor-logo", src: (f = (g = l == null ? void 0 : l.titleCard) == null ? void 0 : g.media) == null ? void 0 : f.sponsorLogo }),
2186
- /* @__PURE__ */ c(jn, { children: "PRESENTS" })
2168
+ return /* @__PURE__ */ I(Nn, { children: [
2169
+ /* @__PURE__ */ l(Un, { onClick: s, children: /* @__PURE__ */ l(On, { name: "icon-cross" }) }),
2170
+ ((m = (d = c == null ? void 0 : c.titleCard) == null ? void 0 : d.media) == null ? void 0 : m.sponsorLogo) && /* @__PURE__ */ I(Dn, { children: [
2171
+ /* @__PURE__ */ l(Pn, { alt: "sponsor-logo", src: (f = (g = c == null ? void 0 : c.titleCard) == null ? void 0 : g.media) == null ? void 0 : f.sponsorLogo }),
2172
+ /* @__PURE__ */ l(Mn, { children: "PRESENTS" })
2187
2173
  ] }),
2188
- ((o = l == null ? void 0 : l.titleCard) == null ? void 0 : o.title) && /* @__PURE__ */ c(Gn, { children: (w = l == null ? void 0 : l.titleCard) == null ? void 0 : w.title }),
2189
- ((v = l == null ? void 0 : l.titleCard) == null ? void 0 : v.subtitle) && /* @__PURE__ */ c(Wn, { children: (E = l == null ? void 0 : l.titleCard) == null ? void 0 : E.subtitle }),
2190
- /* @__PURE__ */ c(Hn, { onClick: n, children: "Play Now" })
2174
+ ((o = c == null ? void 0 : c.titleCard) == null ? void 0 : o.title) && /* @__PURE__ */ l(qn, { children: (w = c == null ? void 0 : c.titleCard) == null ? void 0 : w.title }),
2175
+ ((v = c == null ? void 0 : c.titleCard) == null ? void 0 : v.subtitle) && /* @__PURE__ */ l(Gn, { children: (E = c == null ? void 0 : c.titleCard) == null ? void 0 : E.subtitle }),
2176
+ /* @__PURE__ */ l(Wn, { onClick: n, children: "Play Now" })
2191
2177
  ] });
2192
- }, Vn = () => xt, Qn = /* @__PURE__ */ h(Vn())({
2178
+ }, Hn = () => At, Yn = /* @__PURE__ */ h(Hn())({
2193
2179
  name: "OnboardingContainer",
2194
2180
  class: "o9squag",
2195
2181
  propsAsIs: !0
2196
- }), Kn = ({
2182
+ }), Vn = ({
2197
2183
  hiding: s,
2198
2184
  deepLink: n,
2199
- onboardingOpts: l,
2185
+ onboardingOpts: c,
2200
2186
  setOpened: d,
2201
2187
  notification: m,
2202
2188
  gamification: g
@@ -2205,9 +2191,9 @@ const Mi = ({
2205
2191
  const {
2206
2192
  data: y
2207
2193
  } = Z(n.$store);
2208
- return /* @__PURE__ */ c(Qn, {
2194
+ return /* @__PURE__ */ l(Yn, {
2209
2195
  hiding: s,
2210
- children: /* @__PURE__ */ c(Nn, {
2196
+ children: /* @__PURE__ */ l(Sn, {
2211
2197
  rules: [{
2212
2198
  label: "Answer as many questions as you like.",
2213
2199
  icon: "icon-btn-feature-groups"
@@ -2218,29 +2204,29 @@ const Mi = ({
2218
2204
  label: "Top the leader board and best your friends.",
2219
2205
  icon: "icon-trophy"
2220
2206
  }],
2221
- rulesBtnLabel: (f = l.rules) == null ? void 0 : f.buttonLabel,
2222
- rulesTitle: (o = l.rules) == null ? void 0 : o.heading,
2207
+ rulesBtnLabel: (f = c.rules) == null ? void 0 : f.buttonLabel,
2208
+ rulesTitle: (o = c.rules) == null ? void 0 : o.heading,
2223
2209
  steps: [{
2224
- graphicSrc: "https://cdn.streamlayer.io/assets/sdk-web/onboarding-steps/step_01.json",
2210
+ graphicSrc: "https://cdn.streamlayer.io/assets/sdk-web/onboarding-steps/step_1.png",
2225
2211
  headline: "Welcome to the Featured Groups +"
2226
2212
  }, {
2227
- graphicSrc: "https://cdn.streamlayer.io/assets/sdk-web/onboarding-steps/step_02.json",
2213
+ graphicSrc: "https://cdn.streamlayer.io/assets/sdk-web/onboarding-steps/step_2.png",
2228
2214
  headline: "Get real-time insights"
2229
2215
  }, {
2230
- graphicSrc: "https://cdn.streamlayer.io/assets/sdk-web/onboarding-steps/step_03.json",
2216
+ graphicSrc: "https://cdn.streamlayer.io/assets/sdk-web/onboarding-steps/step_3.png",
2231
2217
  headline: "Predictions, trivia & polls synced to match play"
2232
2218
  }, {
2233
- graphicSrc: "https://cdn.streamlayer.io/assets/sdk-web/onboarding-steps/step_04.json",
2219
+ graphicSrc: "https://cdn.streamlayer.io/assets/sdk-web/onboarding-steps/step_4.png",
2234
2220
  headline: "Win points for every answer you get right"
2235
2221
  }, {
2236
- graphicSrc: "https://cdn.streamlayer.io/assets/sdk-web/onboarding-steps/step_05.json",
2222
+ graphicSrc: "https://cdn.streamlayer.io/assets/sdk-web/onboarding-steps/step_5.png",
2237
2223
  headline: "Compete against friends on the leaderboard"
2238
2224
  }],
2239
- primaryColor: (w = l.inviteCard) == null ? void 0 : w.iconColor,
2225
+ primaryColor: (w = c.inviteCard) == null ? void 0 : w.iconColor,
2240
2226
  inviteLink: y == null ? void 0 : y.url,
2241
- inviteCardTitle: (v = l.inviteCard) == null ? void 0 : v.heading,
2242
- inviteCardSubtext: (E = l.inviteCard) == null ? void 0 : E.subtext,
2243
- inviteCardBtnLabel: (C = l.inviteCard) == null ? void 0 : C.buttonLabel,
2227
+ inviteCardTitle: (v = c.inviteCard) == null ? void 0 : v.heading,
2228
+ inviteCardSubtext: (E = c.inviteCard) == null ? void 0 : E.subtext,
2229
+ inviteCardBtnLabel: (C = c.inviteCard) == null ? void 0 : C.buttonLabel,
2244
2230
  onClose: () => {
2245
2231
  var A;
2246
2232
  d(!1), (A = m.close) == null || A.call(m);
@@ -2257,39 +2243,39 @@ const Mi = ({
2257
2243
  gamification: g
2258
2244
  })
2259
2245
  });
2260
- }, Xn = ({
2246
+ }, Kn = ({
2261
2247
  sdk: s,
2262
2248
  notification: n
2263
2249
  }) => {
2264
- const [l, d] = V(!1), m = s.getFeature(Ne.GAMES), g = n.data.onboarding;
2265
- return l && m && g ? /* @__PURE__ */ c(Kn, {
2250
+ const [c, d] = V(!1), m = s.getFeature(Re.GAMES), g = n.data.onboarding;
2251
+ return c && m && g ? /* @__PURE__ */ l(Vn, {
2266
2252
  notification: n,
2267
2253
  setOpened: d,
2268
2254
  gamification: m,
2269
2255
  onboardingOpts: g,
2270
2256
  deepLink: m.deepLink
2271
- }) : /* @__PURE__ */ c("div", {
2272
- children: /* @__PURE__ */ c(Yn, {
2257
+ }) : /* @__PURE__ */ l("div", {
2258
+ children: /* @__PURE__ */ l(jn, {
2273
2259
  close: n.close,
2274
2260
  action: () => d(!0),
2275
2261
  onboarding: g
2276
2262
  })
2277
2263
  });
2278
- }, Jn = () => xt, Zn = /* @__PURE__ */ h(Jn())({
2264
+ }, Qn = () => At, Xn = /* @__PURE__ */ h(Qn())({
2279
2265
  name: "Container",
2280
2266
  class: "ctckejh",
2281
2267
  propsAsIs: !0
2282
- }), es = ({ sdk: s, notification: n }) => n.type === we.QUESTION ? /* @__PURE__ */ c("div", { children: /* @__PURE__ */ c(ot, { ...n }) }) : n.type === we.QUESTION_RESOLVED ? /* @__PURE__ */ c("div", { children: /* @__PURE__ */ c(ot, { ...n }) }) : n.type === we.ONBOARDING ? /* @__PURE__ */ c(Xn, { sdk: s, notification: n, hiding: n.hiding }) : null, ts = ({ sdk: s }) => {
2283
- const [n] = V(s.getNotificationsStore()), l = Z(n), d = Le(() => {
2284
- if (!(l != null && l.size))
2268
+ }), Jn = ({ sdk: s, notification: n }) => n.type === we.QUESTION ? /* @__PURE__ */ l("div", { children: /* @__PURE__ */ l(ot, { ...n }) }) : n.type === we.QUESTION_RESOLVED ? /* @__PURE__ */ l("div", { children: /* @__PURE__ */ l(ot, { ...n }) }) : n.type === we.ONBOARDING ? /* @__PURE__ */ l(Kn, { sdk: s, notification: n, hiding: n.hiding }) : null, Zn = ({ sdk: s }) => {
2269
+ const [n] = V(s.getNotificationsStore()), c = Z(n), d = Le(() => {
2270
+ if (!(c != null && c.size))
2285
2271
  return null;
2286
- for (const m of l.values())
2272
+ for (const m of c.values())
2287
2273
  if (m.type === we.ONBOARDING)
2288
2274
  return m;
2289
- return l.values().next().value;
2290
- }, [l]);
2291
- return d ? /* @__PURE__ */ c(Zn, { hiding: d.hiding, children: /* @__PURE__ */ c(es, { sdk: s, notification: d }) }) : null;
2292
- }, rs = /* @__PURE__ */ h("div")({
2275
+ return c.values().next().value;
2276
+ }, [c]);
2277
+ return d ? /* @__PURE__ */ l(Xn, { hiding: d.hiding, children: /* @__PURE__ */ l(Jn, { sdk: s, notification: d }) }) : null;
2278
+ }, es = /* @__PURE__ */ h("div")({
2293
2279
  name: "SDKContainer",
2294
2280
  class: "stu11h7",
2295
2281
  propsAsIs: !1
@@ -2297,28 +2283,28 @@ const Mi = ({
2297
2283
  name: "SDKScrollContainer",
2298
2284
  class: "s1ucohr1",
2299
2285
  propsAsIs: !1
2300
- }), is = /* @__PURE__ */ h("div")({
2286
+ }), ts = /* @__PURE__ */ h("div")({
2301
2287
  name: "SDKContentContainer",
2302
2288
  class: "s1el4wvm",
2303
2289
  propsAsIs: !1
2304
- }), ns = () => is, Is = /* @__PURE__ */ h(ns())({
2290
+ }), rs = () => ts, gs = /* @__PURE__ */ h(rs())({
2305
2291
  name: "SDKWhiteContainer",
2306
2292
  class: "s1oe3036",
2307
2293
  propsAsIs: !0
2308
- }), ss = (s) => {
2309
- const n = ht(""), [l, d] = V(!1), m = Z(s.status), g = Z(s.userId()), f = m === "ready", [o, w] = V(ee), v = pt(
2294
+ }), is = (s) => {
2295
+ const n = ht(""), [c, d] = V(!1), m = Z(s.status), g = Z(s.userId()), f = m === "ready", [o, w] = V(ee), v = pt(
2310
2296
  (y, A) => {
2311
- w(A), A === ee ? (y && s.createEventSession(y), s.openFeature(Ne.GAMES)) : s.closeFeature();
2297
+ w(A), A === ee ? (y && s.createEventSession(y), s.openFeature(Re.GAMES)) : s.closeFeature();
2312
2298
  },
2313
2299
  [s]
2314
2300
  );
2315
2301
  he(() => {
2316
- !f && o === ee && (w(ce), s.closeFeature());
2302
+ !f && o === ee && (w(le), s.closeFeature());
2317
2303
  }, [f, o, s]);
2318
2304
  const E = (y) => {
2319
2305
  n.current = y, s.initializeApp().then(({ enabled: A, err: x }) => {
2320
2306
  if (d(!0), x) {
2321
- v(y, ce);
2307
+ v(y, le);
2322
2308
  return;
2323
2309
  }
2324
2310
  if (A) {
@@ -2337,14 +2323,14 @@ const Mi = ({
2337
2323
  };
2338
2324
  return he(() => {
2339
2325
  if (!g) {
2340
- f && (w(ce), s.disableApp());
2326
+ f && (w(le), s.disableApp());
2341
2327
  return;
2342
2328
  }
2343
- g && n.current && l && s.initializeApp().then(() => {
2329
+ g && n.current && c && s.initializeApp().then(() => {
2344
2330
  s.createEventSession(n.current);
2345
2331
  });
2346
2332
  }, [g]), {
2347
- sdkEnabled: l,
2333
+ sdkEnabled: c,
2348
2334
  sdkReady: f,
2349
2335
  activeOverlay: o,
2350
2336
  activateAndLoadOverlay: v,
@@ -2352,8 +2338,8 @@ const Mi = ({
2352
2338
  disableSdk: C,
2353
2339
  isLogged: !!g
2354
2340
  };
2355
- }, os = (s) => {
2356
- const n = Z(s.getActiveFeature()), l = Z(s.streamStore()), [d, m] = V(null);
2341
+ }, ns = (s) => {
2342
+ const n = Z(s.getActiveFeature()), c = Z(s.streamStore()), [d, m] = V(null);
2357
2343
  return he(() => {
2358
2344
  const g = s.getFeatures();
2359
2345
  if (n)
@@ -2368,34 +2354,34 @@ const Mi = ({
2368
2354
  for (const [, f] of g)
2369
2355
  f.status.get() === de.Ready && f.disable();
2370
2356
  };
2371
- }, [n, s, l]), [n, d];
2372
- }, as = ({ sdk: s, className: n }) => {
2373
- const [, l] = os(s);
2374
- return /* @__PURE__ */ c(Zt, { className: n, feature: l, sdk: s });
2375
- }, ls = ({ sdk: s, overlays: n, children: l }) => {
2376
- const { sdkEnabled: d, sdkReady: m, activeOverlay: g, activateAndLoadOverlay: f, enableSdk: o, disableSdk: w, isLogged: v } = ss(s);
2357
+ }, [n, s, c]), [n, d];
2358
+ }, ss = ({ sdk: s, className: n }) => {
2359
+ const [, c] = ns(s);
2360
+ return /* @__PURE__ */ l(Xt, { className: n, feature: c, sdk: s });
2361
+ }, os = ({ sdk: s, overlays: n, children: c }) => {
2362
+ const { sdkEnabled: d, sdkReady: m, activeOverlay: g, activateAndLoadOverlay: f, enableSdk: o, disableSdk: w, isLogged: v } = is(s);
2377
2363
  return he(() => {
2378
2364
  import("./gamification-feature.js");
2379
- }, []), /* @__PURE__ */ I(rs, { children: [
2380
- d && /* @__PURE__ */ c(
2381
- gr,
2365
+ }, []), /* @__PURE__ */ I(es, { children: [
2366
+ d && /* @__PURE__ */ l(
2367
+ fr,
2382
2368
  {
2383
2369
  sdkReady: m,
2384
2370
  activeOverlay: g,
2385
- className: Qe,
2371
+ className: Ke,
2386
2372
  setActiveOverlay: (E) => f("", E)
2387
2373
  }
2388
2374
  ),
2389
- m && /* @__PURE__ */ c(ts, { sdk: s }),
2390
- /* @__PURE__ */ c(
2375
+ m && /* @__PURE__ */ l(Zn, { sdk: s }),
2376
+ /* @__PURE__ */ l(
2391
2377
  ut,
2392
2378
  {
2393
2379
  "data-nav": d.toString(),
2394
- style: { display: !d || g === ce ? "block" : "none" },
2395
- children: l && l({ enableSdk: o, disableSdk: w })
2380
+ style: { display: !d || g === le ? "block" : "none" },
2381
+ children: c && c({ enableSdk: o, disableSdk: w })
2396
2382
  }
2397
2383
  ),
2398
- /* @__PURE__ */ c(
2384
+ /* @__PURE__ */ l(
2399
2385
  ut,
2400
2386
  {
2401
2387
  "data-nav": d.toString(),
@@ -2403,30 +2389,30 @@ const Mi = ({
2403
2389
  children: n && g === Ae && n[g]
2404
2390
  }
2405
2391
  ),
2406
- m && g === ee && /* @__PURE__ */ c(as, { className: Qe, sdk: s }),
2407
- !v && /* @__PURE__ */ c("div", { style: { display: "flex", alignItems: "center", justifyContent: "center", width: "100%", height: "100%" }, children: "You are not logged in." })
2392
+ m && g === ee && /* @__PURE__ */ l(ss, { className: Ke, sdk: s }),
2393
+ !v && /* @__PURE__ */ l("div", { style: { display: "flex", alignItems: "center", justifyContent: "center", width: "100%", height: "100%" }, children: "You are not logged in." })
2408
2394
  ] });
2409
2395
  };
2410
- const As = ({
2396
+ const ys = ({
2411
2397
  sdkKey: s,
2412
2398
  plugins: n,
2413
- children: l,
2399
+ children: c,
2414
2400
  production: d = !0
2415
- }) => /* @__PURE__ */ c(Pt, { sdkKey: s, plugins: n, production: d, autoEnable: !1, children: l }), xs = ({ children: s, overlays: n }) => {
2416
- const { sdk: l, status: d } = Vt(Mt);
2417
- if (d === qt.UNSET)
2401
+ }) => /* @__PURE__ */ l(Dt, { sdkKey: s, plugins: n, production: d, autoEnable: !1, children: c }), ws = ({ children: s, overlays: n }) => {
2402
+ const { sdk: c, status: d } = Yt(Pt);
2403
+ if (d === Mt.UNSET)
2418
2404
  throw new Error("Wrap app in `StreamLayerProvider`");
2419
- return l ? /* @__PURE__ */ c("div", { className: "StreamLayerSDK", children: /* @__PURE__ */ c(jt, { style: { height: "100%" }, children: /* @__PURE__ */ c(ls, { sdk: l, overlays: n, children: s }) }) }) : s({});
2405
+ return c ? /* @__PURE__ */ l("div", { className: "StreamLayerSDK", children: /* @__PURE__ */ l(qt, { style: { height: "100%" }, children: /* @__PURE__ */ l(os, { sdk: c, overlays: n, children: s }) }) }) : s({});
2420
2406
  };
2421
2407
  export {
2422
- At as A,
2423
- As as M,
2424
- pn as O,
2425
- Is as a,
2426
- xs as b,
2427
- xt as d,
2428
- is as n,
2429
- yr as o,
2408
+ Di as A,
2409
+ ys as M,
2410
+ un as O,
2411
+ gs as a,
2412
+ ws as b,
2413
+ At as d,
2414
+ ts as n,
2415
+ mr as o,
2430
2416
  ut as r,
2431
- br as w
2417
+ Ar as w
2432
2418
  };