@streamlayer/react 0.26.1 → 0.26.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/{app-215a7e7d.js → app-aa02d571.js} +1 -1
- package/lib/{app-037724c5.cjs → app-f09f4092.cjs} +1 -1
- package/lib/cjs/auth.js +1 -1
- package/lib/cjs/index.js +1 -1
- package/lib/cjs/masters.js +1 -1
- package/lib/cjs/points.js +1 -1
- package/lib/es/auth.js +2 -2
- package/lib/es/index.js +2 -2
- package/lib/es/masters.js +260 -212
- package/lib/es/points.js +2 -2
- package/lib/{index-98298310.js → index-72a4fe17.js} +872 -863
- package/lib/{index-e2714a2f.cjs → index-cd6e92ee.cjs} +4 -4
- package/lib/style.css +1 -1
- package/package.json +10 -10
|
@@ -1,92 +1,92 @@
|
|
|
1
1
|
import { jsx as p, jsxs as L, Fragment as Oe } from "react/jsx-runtime";
|
|
2
2
|
import * as M from "react";
|
|
3
|
-
import Ke, { createContext as
|
|
4
|
-
import { useStreamLayerApp as
|
|
3
|
+
import Ke, { createContext as Ri, useMemo as De, useCallback as He, useState as K, useEffect as bt, useRef as _i, Component as Oi, createElement as rt, PureComponent as fi } from "react";
|
|
4
|
+
import { useStreamLayerApp as Ui } from "./es/useStreamLayerApp.js";
|
|
5
5
|
import { FeatureStatus as Ve } from "@streamlayer/sdk-web-interfaces";
|
|
6
6
|
import { QuestionType as H, PickHistoryStatus as et, QuestionStatus as Rt, QuestionImages as Me, FeatureType as Yt } from "@streamlayer/sdk-web-types";
|
|
7
|
-
import { AvailableFeatures as
|
|
7
|
+
import { AvailableFeatures as $i } from "@streamlayer/sdk-web-features";
|
|
8
8
|
import "@streamlayer/sdk-web-api";
|
|
9
|
-
import { Storage as
|
|
9
|
+
import { Storage as Fi } from "@streamlayer/sdk-web-storage";
|
|
10
10
|
import { useStore as Z } from "@nanostores/react";
|
|
11
11
|
import { NotificationType as Vt } from "@streamlayer/sdk-web-notifications";
|
|
12
|
-
import { CountdownCircleTimer as
|
|
12
|
+
import { CountdownCircleTimer as Pi } from "react-countdown-circle-timer";
|
|
13
13
|
import "@streamlayer/sl-eslib/interactive/interactive.common_pb";
|
|
14
14
|
import "@streamlayer/sl-eslib/interactive/feed/interactive.feed_pb";
|
|
15
15
|
import { SdkOverlayType as tt } from "@streamlayer/sl-eslib/sdkSettings/sdkSettings.common_pb";
|
|
16
16
|
import "@streamlayer/sl-eslib/sports/events/events_connect";
|
|
17
17
|
import "@streamlayer/sl-eslib/sdkSettings/client/client_connect";
|
|
18
18
|
import { Users as _t } from "@streamlayer/sl-eslib/users/users_connect";
|
|
19
|
-
import
|
|
20
|
-
import
|
|
19
|
+
import Yi from "react-auth-code-input";
|
|
20
|
+
import Vi, { isValidPhoneNumber as Zi, formatPhoneNumberIntl as Qi } from "react-phone-number-input";
|
|
21
21
|
import { createPromiseClient as Ot } from "@connectrpc/connect";
|
|
22
22
|
import { createGrpcWebTransport as Ut } from "@connectrpc/connect-web";
|
|
23
|
-
var
|
|
24
|
-
const
|
|
23
|
+
var Hi = /* @__PURE__ */ ((r) => (r[r.UNSET = 0] = "UNSET", r[r.CONNECTED = 1] = "CONNECTED", r[r.READY = 2] = "READY", r))(Hi || {});
|
|
24
|
+
const Gi = Ri({
|
|
25
25
|
status: 0,
|
|
26
26
|
sdk: null
|
|
27
27
|
}), W0 = ({
|
|
28
28
|
sdkKey: r,
|
|
29
29
|
plugins: o,
|
|
30
30
|
children: l,
|
|
31
|
-
production:
|
|
31
|
+
production: u = !0,
|
|
32
32
|
autoEnable: d = !0
|
|
33
33
|
}) => {
|
|
34
|
-
const g =
|
|
34
|
+
const g = Ui(r, o, u, d), f = De(() => g ? {
|
|
35
35
|
sdk: g,
|
|
36
36
|
status: 2
|
|
37
37
|
/* READY */
|
|
38
38
|
} : { status: 1, sdk: null }, [g]);
|
|
39
|
-
return /* @__PURE__ */ p(
|
|
39
|
+
return /* @__PURE__ */ p(Gi.Provider, { value: f, children: l });
|
|
40
40
|
}, $t = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICA8cmVjdCB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHJ4PSIxMiIgZmlsbD0id2hpdGUiIGZpbGwtb3BhY2l0eT0iMC4xIi8+CiAgPHJlY3QgeD0iOC4yNSIgeT0iNyIgd2lkdGg9IjEyLjM3NDQiIGhlaWdodD0iMS43Njc3NyIgcng9IjAuODgzODg0IiB0cmFuc2Zvcm09InJvdGF0ZSg0NSA4LjI1IDcpIiBmaWxsPSJ3aGl0ZSIvPgogIDxyZWN0IHg9IjciIHk9IjE1Ljc1IiB3aWR0aD0iMTIuMzc0NCIgaGVpZ2h0PSIxLjc2Nzc3IiByeD0iMC44ODM4ODQiIHRyYW5zZm9ybT0icm90YXRlKC00NSA3IDE1Ljc1KSIgZmlsbD0id2hpdGUiLz4KPC9zdmc+Cg==";
|
|
41
|
-
function
|
|
41
|
+
function Wi(r) {
|
|
42
42
|
var o = /* @__PURE__ */ Object.create(null);
|
|
43
43
|
return function(l) {
|
|
44
44
|
return o[l] === void 0 && (o[l] = r(l)), o[l];
|
|
45
45
|
};
|
|
46
46
|
}
|
|
47
|
-
var
|
|
47
|
+
var qi = /^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/, mt = /* @__PURE__ */ Wi(
|
|
48
48
|
function(r) {
|
|
49
|
-
return
|
|
49
|
+
return qi.test(r) || r.charCodeAt(0) === 111 && r.charCodeAt(1) === 110 && r.charCodeAt(2) < 91;
|
|
50
50
|
}
|
|
51
51
|
/* Z+1 */
|
|
52
|
-
),
|
|
53
|
-
const o = Array.prototype.slice.call(arguments).filter(Boolean), l = {},
|
|
52
|
+
), Ji = function() {
|
|
53
|
+
const o = Array.prototype.slice.call(arguments).filter(Boolean), l = {}, u = [];
|
|
54
54
|
o.forEach((g) => {
|
|
55
55
|
(g ? g.split(" ") : []).forEach((s) => {
|
|
56
56
|
if (s.startsWith("atm_")) {
|
|
57
57
|
const [, I] = s.split("_");
|
|
58
58
|
l[I] = s;
|
|
59
59
|
} else
|
|
60
|
-
|
|
60
|
+
u.push(s);
|
|
61
61
|
});
|
|
62
62
|
});
|
|
63
63
|
const d = [];
|
|
64
64
|
for (const g in l)
|
|
65
65
|
Object.prototype.hasOwnProperty.call(l, g) && d.push(l[g]);
|
|
66
|
-
return d.push(...
|
|
67
|
-
}, Zt =
|
|
66
|
+
return d.push(...u), d.join(" ");
|
|
67
|
+
}, Zt = Ji, Xi = (r) => r.toUpperCase() === r, Ki = (r) => (o) => r.indexOf(o) === -1, gi = (r, o) => {
|
|
68
68
|
const l = {};
|
|
69
|
-
return Object.keys(r).filter(
|
|
70
|
-
l[
|
|
69
|
+
return Object.keys(r).filter(Ki(o)).forEach((u) => {
|
|
70
|
+
l[u] = r[u];
|
|
71
71
|
}), l;
|
|
72
72
|
};
|
|
73
|
-
function
|
|
74
|
-
const
|
|
73
|
+
function er(r, o, l) {
|
|
74
|
+
const u = gi(o, l);
|
|
75
75
|
if (!r) {
|
|
76
76
|
const d = typeof mt == "function" ? { default: mt } : mt;
|
|
77
|
-
Object.keys(
|
|
78
|
-
d.default(g) || delete
|
|
77
|
+
Object.keys(u).forEach((g) => {
|
|
78
|
+
d.default(g) || delete u[g];
|
|
79
79
|
});
|
|
80
80
|
}
|
|
81
|
-
return
|
|
81
|
+
return u;
|
|
82
82
|
}
|
|
83
|
-
var
|
|
83
|
+
var tr = (r, o) => {
|
|
84
84
|
};
|
|
85
|
-
function
|
|
85
|
+
function ir(r) {
|
|
86
86
|
let o = "";
|
|
87
87
|
return (l) => {
|
|
88
|
-
const
|
|
89
|
-
const { as: s = r, class: I = o } = g, N = l.propsAsIs === void 0 ? !(typeof s == "string" && s.indexOf("-") === -1 && !
|
|
88
|
+
const u = (g, f) => {
|
|
89
|
+
const { as: s = r, class: I = o } = g, N = l.propsAsIs === void 0 ? !(typeof s == "string" && s.indexOf("-") === -1 && !Xi(s[0])) : l.propsAsIs, E = er(N, g, [
|
|
90
90
|
"as",
|
|
91
91
|
"class"
|
|
92
92
|
]);
|
|
@@ -96,7 +96,7 @@ function tr(r) {
|
|
|
96
96
|
const C = {};
|
|
97
97
|
for (const y in x) {
|
|
98
98
|
const A = x[y], w = A[0], T = A[1] || "", S = typeof w == "function" ? w(g) : w;
|
|
99
|
-
|
|
99
|
+
tr(S, l.name), C[`--${y}`] = `${S}${T}`;
|
|
100
100
|
}
|
|
101
101
|
const v = E.style || {}, z = Object.keys(v);
|
|
102
102
|
z.length > 0 && z.forEach((y) => {
|
|
@@ -104,12 +104,12 @@ function tr(r) {
|
|
|
104
104
|
}), E.style = C;
|
|
105
105
|
}
|
|
106
106
|
return r.__linaria && r !== s ? (E.as = s, Ke.createElement(r, E)) : Ke.createElement(s, E);
|
|
107
|
-
}, d = Ke.forwardRef ? Ke.forwardRef(
|
|
107
|
+
}, d = Ke.forwardRef ? Ke.forwardRef(u) : (
|
|
108
108
|
// React.forwardRef won't available on older React versions and in Preact
|
|
109
109
|
// Fallback to a innerRef prop in that case
|
|
110
110
|
(g) => {
|
|
111
111
|
const f = gi(g, ["innerRef"]);
|
|
112
|
-
return
|
|
112
|
+
return u(f, g.innerRef);
|
|
113
113
|
}
|
|
114
114
|
);
|
|
115
115
|
return d.displayName = l.name, d.__linaria = {
|
|
@@ -118,58 +118,58 @@ function tr(r) {
|
|
|
118
118
|
}, d;
|
|
119
119
|
};
|
|
120
120
|
}
|
|
121
|
-
var m =
|
|
122
|
-
const
|
|
121
|
+
var m = ir;
|
|
122
|
+
const rr = /* @__PURE__ */ m("div")({
|
|
123
123
|
name: "o",
|
|
124
124
|
class: "o1gwxd13",
|
|
125
125
|
propsAsIs: !1
|
|
126
|
-
}),
|
|
126
|
+
}), nr = /* @__PURE__ */ m("div")({
|
|
127
127
|
name: "n",
|
|
128
128
|
class: "nsmzrlg",
|
|
129
129
|
propsAsIs: !1
|
|
130
|
-
}),
|
|
130
|
+
}), or = /* @__PURE__ */ m("img")({
|
|
131
131
|
name: "i",
|
|
132
132
|
class: "i81s9fc",
|
|
133
133
|
propsAsIs: !1
|
|
134
|
-
}),
|
|
134
|
+
}), sr = /* @__PURE__ */ m("div")({
|
|
135
135
|
name: "r",
|
|
136
136
|
class: "rlmx6cw",
|
|
137
137
|
propsAsIs: !1
|
|
138
|
-
}),
|
|
138
|
+
}), ar = /* @__PURE__ */ m("div")({
|
|
139
139
|
name: "d",
|
|
140
140
|
class: "dqb0kgq",
|
|
141
141
|
propsAsIs: !1
|
|
142
|
-
}),
|
|
142
|
+
}), lr = /* @__PURE__ */ m("div")({
|
|
143
143
|
name: "l",
|
|
144
144
|
class: "l1tjaqbq",
|
|
145
145
|
propsAsIs: !1
|
|
146
|
-
}),
|
|
146
|
+
}), cr = /* @__PURE__ */ m("div")({
|
|
147
147
|
name: "a",
|
|
148
148
|
class: "a1tb5jb7",
|
|
149
149
|
propsAsIs: !1
|
|
150
|
-
}),
|
|
150
|
+
}), ur = /* @__PURE__ */ m("button")({
|
|
151
151
|
name: "c",
|
|
152
152
|
class: "c11xpv3i",
|
|
153
153
|
propsAsIs: !1
|
|
154
|
-
}),
|
|
154
|
+
}), hr = /* @__PURE__ */ m("img")({
|
|
155
155
|
name: "s",
|
|
156
156
|
class: "s12ztjhk",
|
|
157
157
|
propsAsIs: !1
|
|
158
|
-
}), mi = ({ close: r, action: o, data: { color: l, icon:
|
|
158
|
+
}), mi = ({ close: r, action: o, data: { color: l, icon: u, title: d } }) => {
|
|
159
159
|
const g = He(
|
|
160
160
|
(f) => {
|
|
161
161
|
f.stopPropagation(), r == null || r();
|
|
162
162
|
},
|
|
163
163
|
[r]
|
|
164
164
|
);
|
|
165
|
-
return /* @__PURE__ */ L(
|
|
166
|
-
/* @__PURE__ */ p(
|
|
167
|
-
/* @__PURE__ */ L(
|
|
168
|
-
/* @__PURE__ */ p(
|
|
169
|
-
/* @__PURE__ */ p(
|
|
165
|
+
return /* @__PURE__ */ L(rr, { onClick: o, children: [
|
|
166
|
+
/* @__PURE__ */ p(nr, { style: l ? { backgroundColor: l } : {}, children: u && /* @__PURE__ */ p(or, { alt: "in-app-icon", src: u }) }),
|
|
167
|
+
/* @__PURE__ */ L(sr, { children: [
|
|
168
|
+
/* @__PURE__ */ p(ar, { children: /* @__PURE__ */ p(lr, { id: "in-app-title", children: d || "" }) }),
|
|
169
|
+
/* @__PURE__ */ p(cr, { children: /* @__PURE__ */ p(ur, { onClick: g, children: /* @__PURE__ */ p(hr, { alt: "close-in-app-icon", src: $t }) }) })
|
|
170
170
|
] })
|
|
171
171
|
] });
|
|
172
|
-
},
|
|
172
|
+
}, dr = {
|
|
173
173
|
BG_TRANSPARENT: "rgba(0,0,0, .8)",
|
|
174
174
|
BG_TRANSPARENT_VOTE_CONTAINER: "rgba(10, 14, 19, 0.8)",
|
|
175
175
|
BG_TRANSPARENT_ITEM: "rgba(0, 0, 0, 0.7)",
|
|
@@ -198,7 +198,7 @@ const ir = /* @__PURE__ */ m("div")({
|
|
|
198
198
|
GREY_PRIMARY: "#909395",
|
|
199
199
|
DIVIDER_COLOR_SECONDARY: "#53565a",
|
|
200
200
|
GREEN_PRIMARY_BTN: "#009B77"
|
|
201
|
-
},
|
|
201
|
+
}, pr = {
|
|
202
202
|
PRIMARY_GREEN1: "#107D57",
|
|
203
203
|
PRIMARY_GREEN2: "#006747",
|
|
204
204
|
PRIMARY_GREEN3: "#1C4932",
|
|
@@ -220,7 +220,7 @@ const ir = /* @__PURE__ */ m("div")({
|
|
|
220
220
|
NEUTRALS_GRAY8: "#53565A",
|
|
221
221
|
NEUTRALS_GRAY9: "#25282A",
|
|
222
222
|
NEUTRALS_BLACK: "#000000"
|
|
223
|
-
}, Le = Object.assign({},
|
|
223
|
+
}, Le = Object.assign({}, dr, pr);
|
|
224
224
|
Object.keys(Le).reduce((r, o) => {
|
|
225
225
|
const l = Le[o];
|
|
226
226
|
return `
|
|
@@ -228,55 +228,55 @@ Object.keys(Le).reduce((r, o) => {
|
|
|
228
228
|
--color-${o.toLowerCase().replaceAll("_", "-")}: ${l};
|
|
229
229
|
`;
|
|
230
230
|
}, "");
|
|
231
|
-
const
|
|
231
|
+
const fr = [Le.PRIMARY_GREEN1, Le.SECONDARY_RED1, Le.SECONDARY_RED1], gr = [10, 10, 0], mr = /* @__PURE__ */ m("div")({
|
|
232
232
|
name: "A",
|
|
233
233
|
class: "a1f928zy",
|
|
234
234
|
propsAsIs: !1
|
|
235
|
-
}),
|
|
235
|
+
}), Ir = Le.SECONDARY_GREEN6, Qt = Le.SECONDARY_RED3, yr = Le.NEUTRALS_GRAY3, Ii = ({
|
|
236
236
|
isPlaying: r = !0,
|
|
237
237
|
duration: o = 30,
|
|
238
238
|
onTimerExpired: l
|
|
239
239
|
}) => {
|
|
240
|
-
const [
|
|
240
|
+
const [u, d] = K(o > 10 ? Ir : Qt), g = ({
|
|
241
241
|
remainingTime: I
|
|
242
|
-
}) => /* @__PURE__ */ p(
|
|
242
|
+
}) => /* @__PURE__ */ p(mr, {
|
|
243
243
|
children: I
|
|
244
244
|
}), f = He(() => {
|
|
245
|
-
l == null || l(), d(
|
|
245
|
+
l == null || l(), d(yr);
|
|
246
246
|
}, [l, d]), s = He((I) => {
|
|
247
247
|
I === 10 && d(Qt);
|
|
248
248
|
}, [d]);
|
|
249
|
-
return /* @__PURE__ */ p(
|
|
249
|
+
return /* @__PURE__ */ p(Pi, {
|
|
250
250
|
isPlaying: r,
|
|
251
251
|
duration: o,
|
|
252
|
-
colors:
|
|
253
|
-
colorsTime:
|
|
252
|
+
colors: fr,
|
|
253
|
+
colorsTime: gr,
|
|
254
254
|
size: 32,
|
|
255
255
|
strokeWidth: 2,
|
|
256
256
|
trailStrokeWidth: 2,
|
|
257
|
-
trailColor:
|
|
257
|
+
trailColor: u,
|
|
258
258
|
onComplete: f,
|
|
259
259
|
onUpdate: s,
|
|
260
260
|
children: g
|
|
261
261
|
});
|
|
262
|
-
},
|
|
262
|
+
}, Mr = async (r, o) => {
|
|
263
263
|
const l = Ut({
|
|
264
264
|
baseUrl: r
|
|
265
265
|
});
|
|
266
266
|
return await Ot(_t, l).requestPassword({ id: o }), !0;
|
|
267
|
-
},
|
|
267
|
+
}, Cr = async (r, o) => {
|
|
268
268
|
const l = Ut({
|
|
269
269
|
baseUrl: r
|
|
270
270
|
});
|
|
271
271
|
return await Ot(_t, l).register({ id: o }), !0;
|
|
272
|
-
},
|
|
273
|
-
var
|
|
272
|
+
}, wr = async (r, o, l) => {
|
|
273
|
+
var u;
|
|
274
274
|
const d = Ut({
|
|
275
275
|
baseUrl: r
|
|
276
276
|
}), g = await Ot(_t, d).login({ id: o, password: l });
|
|
277
|
-
return (
|
|
277
|
+
return (u = g == null ? void 0 : g.meta) == null ? void 0 : u.jwt;
|
|
278
278
|
};
|
|
279
|
-
const
|
|
279
|
+
const Er = /* @__PURE__ */ m("div")({
|
|
280
280
|
name: "n",
|
|
281
281
|
class: "nhpumh7",
|
|
282
282
|
propsAsIs: !1
|
|
@@ -296,23 +296,23 @@ const wr = /* @__PURE__ */ m("div")({
|
|
|
296
296
|
name: "a",
|
|
297
297
|
class: "a1ifs31v",
|
|
298
298
|
propsAsIs: !1
|
|
299
|
-
}),
|
|
299
|
+
}), Ar = /* @__PURE__ */ m("div")({
|
|
300
300
|
name: "p",
|
|
301
301
|
class: "p10d4aqp",
|
|
302
302
|
propsAsIs: !1
|
|
303
|
-
}),
|
|
303
|
+
}), Nr = /* @__PURE__ */ m("div")({
|
|
304
304
|
name: "d",
|
|
305
305
|
class: "dje8inq",
|
|
306
306
|
propsAsIs: !1
|
|
307
|
-
}),
|
|
308
|
-
const [
|
|
307
|
+
}), xr = ({ login: r, anonymousLogin: o, host: l }) => {
|
|
308
|
+
const [u, d] = K(""), [g, f] = K(""), [s, I] = K(""), N = async (x) => {
|
|
309
309
|
x.preventDefault();
|
|
310
310
|
try {
|
|
311
|
-
const C =
|
|
311
|
+
const C = u.replaceAll("+", "");
|
|
312
312
|
try {
|
|
313
|
-
await yr(l, C);
|
|
314
|
-
} catch {
|
|
315
313
|
await Mr(l, C);
|
|
314
|
+
} catch {
|
|
315
|
+
await Cr(l, C);
|
|
316
316
|
}
|
|
317
317
|
f(C);
|
|
318
318
|
} catch (C) {
|
|
@@ -321,19 +321,19 @@ const wr = /* @__PURE__ */ m("div")({
|
|
|
321
321
|
}, E = async (x) => {
|
|
322
322
|
if (x.preventDefault(), g && s)
|
|
323
323
|
try {
|
|
324
|
-
const C = await
|
|
324
|
+
const C = await wr(l, g, s);
|
|
325
325
|
C && r ? await r(C) : console.log("token", C);
|
|
326
326
|
} catch (C) {
|
|
327
327
|
window.alert(C);
|
|
328
328
|
}
|
|
329
329
|
};
|
|
330
|
-
return /* @__PURE__ */ L(
|
|
330
|
+
return /* @__PURE__ */ L(Er, { children: [
|
|
331
331
|
!g && /* @__PURE__ */ L("div", { children: [
|
|
332
332
|
/* @__PURE__ */ L(Ht, { onSubmit: N, children: [
|
|
333
333
|
/* @__PURE__ */ p(Gt, { children: "Enter your phone number" }),
|
|
334
334
|
/* @__PURE__ */ p(It, { children: "Enter your phone up for number to log in or sign an account." }),
|
|
335
|
-
/* @__PURE__ */ p(
|
|
336
|
-
/* @__PURE__ */ p(yt, { disabled: !
|
|
335
|
+
/* @__PURE__ */ p(Ar, { children: /* @__PURE__ */ p(Vi, { value: u, onChange: (x) => d(`${x}`) }) }),
|
|
336
|
+
/* @__PURE__ */ p(yt, { disabled: !Zi(u), type: "submit", children: "request code" })
|
|
337
337
|
] }),
|
|
338
338
|
o && /* @__PURE__ */ p(yt, { style: { display: "block", margin: "auto" }, onClick: o, children: "anonymous login" })
|
|
339
339
|
] }),
|
|
@@ -343,9 +343,9 @@ const wr = /* @__PURE__ */ m("div")({
|
|
|
343
343
|
"Please enter the verification code ",
|
|
344
344
|
/* @__PURE__ */ p("br", {}),
|
|
345
345
|
"sent to ",
|
|
346
|
-
/* @__PURE__ */ p("b", { children:
|
|
346
|
+
/* @__PURE__ */ p("b", { children: Qi(u) })
|
|
347
347
|
] }),
|
|
348
|
-
/* @__PURE__ */ p(
|
|
348
|
+
/* @__PURE__ */ p(Nr, { children: /* @__PURE__ */ p(Yi, { autoFocus: !0, allowedCharacters: "numeric", length: 4, onChange: I }) }),
|
|
349
349
|
/* @__PURE__ */ p(yt, { disabled: s.length !== 4, type: "submit", children: "login" }),
|
|
350
350
|
/* @__PURE__ */ L(It, { children: [
|
|
351
351
|
"Didn't get 59 the code? ",
|
|
@@ -356,133 +356,133 @@ const wr = /* @__PURE__ */ m("div")({
|
|
|
356
356
|
] })
|
|
357
357
|
] });
|
|
358
358
|
};
|
|
359
|
-
const
|
|
359
|
+
const Tr = /* @__PURE__ */ m("div")({
|
|
360
360
|
name: "i",
|
|
361
361
|
class: "i1grt8h",
|
|
362
362
|
propsAsIs: !1
|
|
363
|
-
}),
|
|
363
|
+
}), vr = /* @__PURE__ */ m("div")({
|
|
364
364
|
name: "n",
|
|
365
365
|
class: "n1rozou",
|
|
366
366
|
propsAsIs: !1
|
|
367
|
-
}),
|
|
367
|
+
}), Dr = /* @__PURE__ */ m("img")({
|
|
368
368
|
name: "o",
|
|
369
369
|
class: "o81ls6z",
|
|
370
370
|
propsAsIs: !1
|
|
371
|
-
}),
|
|
371
|
+
}), Lr = /* @__PURE__ */ m("div")({
|
|
372
372
|
name: "d",
|
|
373
373
|
class: "d9l6z9i",
|
|
374
374
|
propsAsIs: !1
|
|
375
|
-
}),
|
|
376
|
-
/* @__PURE__ */ p(
|
|
377
|
-
/* @__PURE__ */ p(
|
|
375
|
+
}), zr = ({ graphic: r, headline: o }) => /* @__PURE__ */ p(Tr, { children: /* @__PURE__ */ L(vr, { children: [
|
|
376
|
+
/* @__PURE__ */ p(Dr, { alt: "graphic-img-instructions", src: r }),
|
|
377
|
+
/* @__PURE__ */ p(Lr, { children: o })
|
|
378
378
|
] }) });
|
|
379
|
-
const
|
|
379
|
+
const Sr = /* @__PURE__ */ m("div")({
|
|
380
380
|
name: "e",
|
|
381
381
|
class: "e1o3lzmc",
|
|
382
382
|
propsAsIs: !1
|
|
383
|
-
}),
|
|
383
|
+
}), jr = /* @__PURE__ */ m("div")({
|
|
384
384
|
name: "o",
|
|
385
385
|
class: "otjo97h",
|
|
386
386
|
propsAsIs: !1
|
|
387
|
-
}),
|
|
387
|
+
}), Br = /* @__PURE__ */ m("div")({
|
|
388
388
|
name: "i",
|
|
389
389
|
class: "ivk43vg",
|
|
390
390
|
propsAsIs: !1
|
|
391
|
-
}),
|
|
391
|
+
}), kr = /* @__PURE__ */ m("img")({
|
|
392
392
|
name: "r",
|
|
393
393
|
class: "r1w33akz",
|
|
394
394
|
propsAsIs: !1
|
|
395
|
-
}),
|
|
395
|
+
}), br = /* @__PURE__ */ m("div")({
|
|
396
396
|
name: "c",
|
|
397
397
|
class: "c1a3ssoy",
|
|
398
398
|
propsAsIs: !1
|
|
399
|
-
}),
|
|
399
|
+
}), Rr = /* @__PURE__ */ m("div")({
|
|
400
400
|
name: "a",
|
|
401
401
|
class: "ayzr5mb",
|
|
402
402
|
propsAsIs: !1
|
|
403
|
-
}),
|
|
403
|
+
}), _r = /* @__PURE__ */ m("button")({
|
|
404
404
|
name: "p",
|
|
405
405
|
class: "p30t8qv",
|
|
406
406
|
propsAsIs: !1
|
|
407
|
-
}),
|
|
407
|
+
}), Or = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjUiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNSAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGcgaWQ9IkZyaWVuZHMiPgo8cGF0aCBpZD0iVmVjdG9yIiBkPSJNNC4xOTIzMSA3LjAzMTI1QzIuNjYzNDYgNy4wMzEyNSAxLjQyMzA4IDguMTk5NzMgMS40MjMwOCA5LjYzOTk0QzEuNDIzMDggMTEuMDgwMiAyLjY2MzQ2IDEyLjI0ODYgNC4xOTIzMSAxMi4yNDg2QzUuNzIxMTUgMTIuMjQ4NiA2Ljk2MTU0IDExLjA4MDIgNi45NjE1NCA5LjYzOTk0QzYuOTYxNTQgOC4xOTk3MyA1LjcyMTE1IDcuMDMxMjUgNC4xOTIzMSA3LjAzMTI1Wk00LjE5MjMxIDEyLjI0ODZDMi4xNjIyNiAxMi4yNDg2IDAuNSAxMy44MTQ1IDAuNSAxNS43MjY5VjE3LjYyOUMwLjUgMTcuNjI5IDEuNDIzMDggMTguMzM1NiA0LjE5MjMxIDE4LjMzNTZDNi45NjE1NCAxOC4zMzU2IDcuODg0NjEgMTcuNjI5IDcuODg0NjEgMTcuNjI5VjE1LjcyNjlDNy44ODQ2MSAxMy44MTQ1IDYuMjIyMzYgMTIuMjQ4NiA0LjE5MjMxIDEyLjI0ODZaTTIwLjgwNzcgNy4wMzEyNUMxOS4yNzg4IDcuMDMxMjUgMTguMDM4NSA4LjE5OTczIDE4LjAzODUgOS42Mzk5NEMxOC4wMzg1IDExLjA4MDIgMTkuMjc4OCAxMi4yNDg2IDIwLjgwNzcgMTIuMjQ4NkMyMi4zMzY1IDEyLjI0ODYgMjMuNTc2OSAxMS4wODAyIDIzLjU3NjkgOS42Mzk5NEMyMy41NzY5IDguMTk5NzMgMjIuMzM2NSA3LjAzMTI1IDIwLjgwNzcgNy4wMzEyNVpNMjAuODA3NyAxMi4yNDg2QzE4Ljc3NzYgMTIuMjQ4NiAxNy4xMTU0IDEzLjgxNDUgMTcuMTE1NCAxNS43MjY5VjE3LjYyOUMxNy4xMTU0IDE3LjYyOSAxOC4wMzg1IDE4LjMzNTYgMjAuODA3NyAxOC4zMzU2QzIzLjU3NjkgMTguMzM1NiAyNC41IDE3LjYyOSAyNC41IDE3LjYyOVYxNS43MjY5QzI0LjUgMTMuODE0NSAyMi44Mzc3IDEyLjI0ODYgMjAuODA3NyAxMi4yNDg2Wk0xMi41IDEwLjUwOTVDMTAuOTcxMiAxMC41MDk1IDkuNzMwNzcgMTEuNjc4IDkuNzMwNzcgMTMuMTE4MkM5LjczMDc3IDE0LjU1ODQgMTAuOTcxMiAxNS43MjY5IDEyLjUgMTUuNzI2OUMxNC4wMjg4IDE1LjcyNjkgMTUuMjY5MiAxNC41NTg0IDE1LjI2OTIgMTMuMTE4MkMxNS4yNjkyIDExLjY3OCAxNC4wMjg4IDEwLjUwOTUgMTIuNSAxMC41MDk1Wk0xMi41IDE1LjcyNjlDMTAuNDcgMTUuNzI2OSA4LjgwNzY5IDE3LjI5MjggOC44MDc2OSAxOS4yMDUxVjIxLjEwNzNDOC44MDc2OSAyMS4xMDczIDkuNzMwNzcgMjEuODEzOCAxMi41IDIxLjgxMzhDMTUuMjY5MiAyMS44MTM4IDE2LjE5MjMgMjEuMTA3MyAxNi4xOTIzIDIxLjEwNzNWMTkuMjA1MUMxNi4xOTIzIDE3LjI5MjggMTQuNTMgMTUuNzI2OSAxMi41IDE1LjcyNjlaIiBmaWxsPSJ3aGl0ZSIvPgo8cGF0aCBpZD0iVmVjdG9yXzIiIGQ9Ik04LjU4NDczIDEuNUM2Ljk2MzkyIDEuNSA1LjY0ODkzIDIuNzM4NzYgNS42NDg5MyA0LjI2NTZDNS42NDg5MyA1Ljc5MjQ1IDYuOTYzOTIgNy4wMzEyMSA4LjU4NDczIDcuMDMxMjFDMTAuMjA1NSA3LjAzMTIxIDExLjUyMDUgNS43OTI0NSAxMS41MjA1IDQuMjY1NkMxMS41MjA1IDIuNzM4NzYgMTAuMjA1NSAxLjUgOC41ODQ3MyAxLjVaTTguNTg0NzMgNy4wMzEyMUM4LjI5MDM4IDcuMDMxMjEgNy45OTIyMSA3LjAyNCA3LjY5Nzg3IDcuMTE3NjNDOC4yODY1NiA3Ljg1NTg0IDguNTg0NzMgOC43ODEzMSA4LjU4NDczIDkuNzk2ODFDOC41ODQ3MyAxMC4xNjQxIDguNDkyOTggMTAuNTI0MiA4LjQ5Mjk4IDEwLjg5MTVDOS4yNzY2MyA5Ljc4NjAxIDEwLjU0MTkgOS4wNTg1OSAxMi4wMDk4IDguODc0OTRDMTEuMzI1NiA3Ljc2OTQyIDEwLjA1MjYgNy4wMzEyMSA4LjU4NDczIDcuMDMxMjFaTTE2LjQxMzUgMS41QzE0Ljc5MjcgMS41IDEzLjQ3NzcgMi43Mzg3NiAxMy40Nzc3IDQuMjY1NkMxMy40Nzc3IDUuNzkyNDUgMTQuNzkyNyA3LjAzMTIxIDE2LjQxMzUgNy4wMzEyMUMxOC4wMzQzIDcuMDMxMjEgMTkuMzQ5MyA1Ljc5MjQ1IDE5LjM0OTMgNC4yNjU2QzE5LjM0OTMgMi43Mzg3NiAxOC4wMzQzIDEuNSAxNi40MTM1IDEuNVpNMTYuNDEzNSA3LjAzMTIxQzE0Ljk0NTYgNy4wMzEyMSAxMy42NzI3IDcuNzY5NDIgMTIuOTg4NCA4Ljg3NDk0QzE0LjQ1NjMgOS4wNTg1OSAxNS43MjE2IDkuNzg2MDEgMTYuNTA1MyAxMC44OTE1QzE2LjUwNTMgMTAuNTI0MiAxNi40MTM1IDEwLjE2NDEgMTYuNDEzNSA5Ljc5NjgxQzE2LjQxMzUgOC43ODEzMSAxNi43MTE3IDcuODU1ODQgMTcuMzAwNCA3LjExNzYzQzE3LjAwNiA3LjAyNCAxNi43MDc5IDcuMDMxMjEgMTYuNDEzNSA3LjAzMTIxWiIgZmlsbD0id2hpdGUiIGZpbGwtb3BhY2l0eT0iMC40Ii8+CjwvZz4KPC9zdmc+Cg==", Ur = ({
|
|
408
408
|
inviteCardTitle: r,
|
|
409
409
|
inviteCardSubtext: o,
|
|
410
410
|
primaryColor: l
|
|
411
|
-
}) => /* @__PURE__ */ p(
|
|
412
|
-
/* @__PURE__ */ p(
|
|
413
|
-
/* @__PURE__ */ p(
|
|
414
|
-
/* @__PURE__ */ p(
|
|
415
|
-
/* @__PURE__ */ p(
|
|
411
|
+
}) => /* @__PURE__ */ p(Sr, { children: /* @__PURE__ */ L(jr, { children: [
|
|
412
|
+
/* @__PURE__ */ p(Br, { style: { backgroundColor: l }, children: /* @__PURE__ */ p(kr, { alt: "invite-game-icon", src: Or }) }),
|
|
413
|
+
/* @__PURE__ */ p(br, { children: r || "" }),
|
|
414
|
+
/* @__PURE__ */ p(Rr, { children: o || "" }),
|
|
415
|
+
/* @__PURE__ */ p(_r, { onClick: () => {
|
|
416
416
|
}, style: { backgroundColor: l }, children: "Invite friends!" })
|
|
417
417
|
] }) });
|
|
418
|
-
const
|
|
418
|
+
const $r = /* @__PURE__ */ m("div")({
|
|
419
419
|
name: "t",
|
|
420
420
|
class: "ty54o42",
|
|
421
421
|
propsAsIs: !1
|
|
422
|
-
}),
|
|
422
|
+
}), Fr = /* @__PURE__ */ m("div")({
|
|
423
423
|
name: "o",
|
|
424
424
|
class: "oqyp1qa",
|
|
425
425
|
propsAsIs: !1
|
|
426
|
-
}),
|
|
426
|
+
}), Pr = /* @__PURE__ */ m("div")({
|
|
427
427
|
name: "r",
|
|
428
428
|
class: "rf1d3db",
|
|
429
429
|
propsAsIs: !1
|
|
430
|
-
}),
|
|
430
|
+
}), Yr = /* @__PURE__ */ m("div")({
|
|
431
431
|
name: "n",
|
|
432
432
|
class: "n187jgct",
|
|
433
433
|
propsAsIs: !1
|
|
434
|
-
}),
|
|
434
|
+
}), Vr = /* @__PURE__ */ m("div")({
|
|
435
435
|
name: "d",
|
|
436
436
|
class: "d1i3t4lw",
|
|
437
437
|
propsAsIs: !1
|
|
438
|
-
}),
|
|
438
|
+
}), Zr = /* @__PURE__ */ m("div")({
|
|
439
439
|
name: "l",
|
|
440
440
|
class: "l1heulx5",
|
|
441
441
|
propsAsIs: !1
|
|
442
|
-
}),
|
|
443
|
-
/* @__PURE__ */ p(
|
|
444
|
-
/* @__PURE__ */ p(
|
|
445
|
-
/* @__PURE__ */ p(
|
|
446
|
-
/* @__PURE__ */ p(
|
|
442
|
+
}), Qr = ({ rules: r, rulesTitle: o, primaryColor: l }) => /* @__PURE__ */ L($r, { children: [
|
|
443
|
+
/* @__PURE__ */ p(Fr, { children: o }),
|
|
444
|
+
/* @__PURE__ */ p(Pr, { children: r == null ? void 0 : r.map((u, d) => /* @__PURE__ */ L(Yr, { children: [
|
|
445
|
+
/* @__PURE__ */ p(Vr, { style: { backgroundColor: l }, children: d + 1 }),
|
|
446
|
+
/* @__PURE__ */ p(Zr, { children: u })
|
|
447
447
|
] }, d)) })
|
|
448
448
|
] });
|
|
449
|
-
const
|
|
449
|
+
const Hr = /* @__PURE__ */ m("div")({
|
|
450
450
|
name: "n",
|
|
451
451
|
class: "n1cm2rh8",
|
|
452
452
|
propsAsIs: !1
|
|
453
|
-
}),
|
|
453
|
+
}), Gr = /* @__PURE__ */ m("div")({
|
|
454
454
|
name: "e",
|
|
455
455
|
class: "e9j28tc",
|
|
456
456
|
propsAsIs: !1
|
|
457
|
-
}),
|
|
457
|
+
}), Wr = /* @__PURE__ */ m("div")({
|
|
458
458
|
name: "i",
|
|
459
459
|
class: "iu1o1a8",
|
|
460
460
|
propsAsIs: !1
|
|
461
|
-
}),
|
|
461
|
+
}), qr = /* @__PURE__ */ m("div")({
|
|
462
462
|
name: "r",
|
|
463
463
|
class: "r14ailyk",
|
|
464
464
|
propsAsIs: !1
|
|
465
|
-
}),
|
|
465
|
+
}), Jr = /* @__PURE__ */ m("div")({
|
|
466
466
|
name: "c",
|
|
467
467
|
class: "c11ybl5c",
|
|
468
468
|
propsAsIs: !1
|
|
469
|
-
}),
|
|
469
|
+
}), Xr = /* @__PURE__ */ m("img")({
|
|
470
470
|
name: "s",
|
|
471
471
|
class: "sd9s97",
|
|
472
472
|
propsAsIs: !1
|
|
473
|
-
}),
|
|
473
|
+
}), Kr = /* @__PURE__ */ m("img")({
|
|
474
474
|
name: "l",
|
|
475
475
|
class: "l1ddowgh",
|
|
476
476
|
propsAsIs: !1
|
|
477
|
-
}),
|
|
477
|
+
}), en = /* @__PURE__ */ m("button")({
|
|
478
478
|
name: "d",
|
|
479
479
|
class: "d1s3ug7g",
|
|
480
480
|
propsAsIs: !1
|
|
481
|
-
}),
|
|
481
|
+
}), tn = /* @__PURE__ */ m("img")({
|
|
482
482
|
name: "p",
|
|
483
483
|
class: "p17kmhv2",
|
|
484
484
|
propsAsIs: !1
|
|
485
|
-
}),
|
|
485
|
+
}), rn = /* @__PURE__ */ m("button")({
|
|
486
486
|
name: "a",
|
|
487
487
|
class: "a1qucmt7",
|
|
488
488
|
propsAsIs: !1
|
|
@@ -490,11 +490,11 @@ const Qr = /* @__PURE__ */ m("div")({
|
|
|
490
490
|
steps: !1,
|
|
491
491
|
rules: !1,
|
|
492
492
|
inviteCard: !1
|
|
493
|
-
},
|
|
493
|
+
}, nn = ({
|
|
494
494
|
gamification: r,
|
|
495
495
|
closeFeature: o,
|
|
496
496
|
steps: l,
|
|
497
|
-
gameIcon:
|
|
497
|
+
gameIcon: u,
|
|
498
498
|
sponsorLogo: d,
|
|
499
499
|
rules: g,
|
|
500
500
|
rulesBtnLabel: f,
|
|
@@ -515,19 +515,19 @@ const Qr = /* @__PURE__ */ m("div")({
|
|
|
515
515
|
const T = He(() => {
|
|
516
516
|
l != null && l.length && z < l.length - 1 ? y((S) => ++S) : g != null && g.length && A.steps ? w({ ...$e, rules: !0 }) : A.rules && w({ ...$e, inviteCard: !0 });
|
|
517
517
|
}, [z, l == null ? void 0 : l.length, g == null ? void 0 : g.length, A, y, w]);
|
|
518
|
-
return /* @__PURE__ */ L(
|
|
519
|
-
/* @__PURE__ */ L(
|
|
520
|
-
/* @__PURE__ */ p(
|
|
521
|
-
/* @__PURE__ */ L(
|
|
522
|
-
d && /* @__PURE__ */ p(
|
|
523
|
-
/* @__PURE__ */ p(
|
|
518
|
+
return /* @__PURE__ */ L(Hr, { children: [
|
|
519
|
+
/* @__PURE__ */ L(Wr, { children: [
|
|
520
|
+
/* @__PURE__ */ p(qr, { children: u && /* @__PURE__ */ p(Xr, { alt: "sponsor-one-onboarding-icon", src: u }) }),
|
|
521
|
+
/* @__PURE__ */ L(Jr, { children: [
|
|
522
|
+
d && /* @__PURE__ */ p(Kr, { alt: "sponsor-two-onboarding-icon", src: d }),
|
|
523
|
+
/* @__PURE__ */ p(en, { onClick: v, children: /* @__PURE__ */ p(tn, { alt: "icon-close-onboarding", src: $t }) })
|
|
524
524
|
] })
|
|
525
525
|
] }),
|
|
526
|
-
/* @__PURE__ */ L(
|
|
527
|
-
A.steps && (l == null ? void 0 : l.length) && /* @__PURE__ */ p(
|
|
528
|
-
A.rules && /* @__PURE__ */ p(
|
|
526
|
+
/* @__PURE__ */ L(Gr, { children: [
|
|
527
|
+
A.steps && (l == null ? void 0 : l.length) && /* @__PURE__ */ p(zr, { graphic: l[z].graphic, headline: l[z].headline }),
|
|
528
|
+
A.rules && /* @__PURE__ */ p(Qr, { rules: g, rulesTitle: s, primaryColor: I }),
|
|
529
529
|
A.inviteCard && /* @__PURE__ */ p(
|
|
530
|
-
|
|
530
|
+
Ur,
|
|
531
531
|
{
|
|
532
532
|
inviteCardTitle: N,
|
|
533
533
|
inviteCardSubtext: E,
|
|
@@ -535,28 +535,28 @@ const Qr = /* @__PURE__ */ m("div")({
|
|
|
535
535
|
}
|
|
536
536
|
)
|
|
537
537
|
] }),
|
|
538
|
-
/* @__PURE__ */ p(
|
|
538
|
+
/* @__PURE__ */ p(rn, { onClick: A.inviteCard ? C : T, children: A.rules ? f || "Got it!" : A.inviteCard ? x || "Play now!" : "Next" })
|
|
539
539
|
] });
|
|
540
540
|
};
|
|
541
|
-
const
|
|
541
|
+
const on = /* @__PURE__ */ m("div")({
|
|
542
542
|
name: "t",
|
|
543
543
|
class: "tcim9sm",
|
|
544
544
|
propsAsIs: !1
|
|
545
|
-
}),
|
|
545
|
+
}), sn = /* @__PURE__ */ m("div")({
|
|
546
546
|
name: "e",
|
|
547
547
|
class: "e8wco6o",
|
|
548
548
|
propsAsIs: !1
|
|
549
|
-
}),
|
|
549
|
+
}), an = /* @__PURE__ */ m("button")({
|
|
550
550
|
name: "n",
|
|
551
551
|
class: "n1ardwzl",
|
|
552
552
|
propsAsIs: !1
|
|
553
|
-
}),
|
|
553
|
+
}), ln = /* @__PURE__ */ m("span")({
|
|
554
554
|
name: "i",
|
|
555
555
|
class: "i1vk8ojx",
|
|
556
556
|
propsAsIs: !1
|
|
557
557
|
});
|
|
558
558
|
var nt = /* @__PURE__ */ ((r) => (r.HOME = "home", r.LEADERBOARD = "leaderboard", r))(nt || {});
|
|
559
|
-
const Wt = ({ title: r, active: o, onClick: l }) => /* @__PURE__ */ p(
|
|
559
|
+
const Wt = ({ title: r, active: o, onClick: l }) => /* @__PURE__ */ p(an, { onClick: l, "data-selected": o, children: /* @__PURE__ */ p(ln, { children: r }) }), cn = ({ activePage: r = "home", toggleActivePage: o }) => /* @__PURE__ */ p(on, { children: /* @__PURE__ */ L(sn, { "data-position": r === "home" ? "left" : "right", children: [
|
|
560
560
|
/* @__PURE__ */ p(Wt, { title: "Home", active: r === "home", onClick: () => o(
|
|
561
561
|
"home"
|
|
562
562
|
/* HOME */
|
|
@@ -573,7 +573,7 @@ const Wt = ({ title: r, active: o, onClick: l }) => /* @__PURE__ */ p(sn, { onCl
|
|
|
573
573
|
}
|
|
574
574
|
)
|
|
575
575
|
] }) });
|
|
576
|
-
const
|
|
576
|
+
const un = /* @__PURE__ */ m("div")({
|
|
577
577
|
name: "o",
|
|
578
578
|
class: "oa5apdf",
|
|
579
579
|
propsAsIs: !1
|
|
@@ -581,31 +581,31 @@ const cn = /* @__PURE__ */ m("div")({
|
|
|
581
581
|
name: "n",
|
|
582
582
|
class: "n1wh5guy",
|
|
583
583
|
propsAsIs: !1
|
|
584
|
-
}),
|
|
584
|
+
}), hn = /* @__PURE__ */ m("img")({
|
|
585
585
|
name: "r",
|
|
586
586
|
class: "ro3ktps",
|
|
587
587
|
propsAsIs: !1
|
|
588
|
-
}),
|
|
588
|
+
}), dn = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGcgaWQ9IkNoZXZyb24iPgo8cGF0aCBpZD0iQ2hldnJvbl8yIiBkPSJNNiAxMS45OTlDNiAxMi4xNzI1IDYuMDMxMzQgMTIuMzM0IDYuMDk0MDEgMTIuNDgzN0M2LjE1NjY5IDEyLjYzMzQgNi4yNTQyOCAxMi43NzU2IDYuMzg2OCAxMi45MTAzTDE0LjA0MzYgMjAuNjU2NUMxNC4yNjQ4IDIwLjg4NTUgMTQuNTMyMyAyMSAxNC44NDU5IDIxQzE1LjA2MDcgMjEgMTUuMjU0NCAyMC45NDc1IDE1LjQyNzEgMjAuODQyNkMxNS41OTk4IDIwLjczNzcgMTUuNzM4NCAyMC41OTY1IDE1Ljg0MzEgMjAuNDE5MUMxNS45NDc3IDIwLjI0MTYgMTYgMjAuMDQyNSAxNiAxOS44MjE3QzE2IDE5LjQ5ODkgMTUuODgxNiAxOS4yMTM0IDE1LjY0NDggMTguOTY1NEw4Ljc0MTgzIDExLjk5NzFMMTUuNjQ0OCA1LjAzMjcxQzE1Ljg4MTYgNC43ODcwOSAxNiA0LjUwMjMgMTYgNC4xNzgzNEMxNiAzLjk1NzQ5IDE1Ljk0NzcgMy43NTgzNSAxNS44NDMxIDMuNTgwOTFDMTUuNzM4NCAzLjQwMzQ3IDE1LjU5OTggMy4yNjIyOSAxNS40MjcxIDMuMTU3MzhDMTUuMjU0NCAzLjA1MjQ2IDE1LjA2MDcgMyAxNC44NDU5IDNDMTQuNTMyMyAzIDE0LjI2NDggMy4xMTE2OSAxNC4wNDM2IDMuMzM1MDhMNi4zODY4IDExLjA4NzhDNi4yNTU1MSAxMS4yMjI1IDYuMTU4NTMgMTEuMzY0NCA2LjA5NTg2IDExLjUxMzRDNi4wMzMxOCAxMS42NjI1IDYuMDAxMjMgMTEuODI0NCA2IDExLjk5OVoiIGZpbGw9IndoaXRlIi8+CjwvZz4KPC9zdmc+Cg==", yi = ({ icon: r, comeBack: o, close: l }) => /* @__PURE__ */ L(un, { children: [
|
|
589
589
|
/* @__PURE__ */ L("div", { children: [
|
|
590
|
-
o && /* @__PURE__ */ p(qt, { onClick: o, children: /* @__PURE__ */ p("img", { alt: "header-back-icon", src:
|
|
591
|
-
r && /* @__PURE__ */ p(
|
|
590
|
+
o && /* @__PURE__ */ p(qt, { onClick: o, children: /* @__PURE__ */ p("img", { alt: "header-back-icon", src: dn }) }),
|
|
591
|
+
r && /* @__PURE__ */ p(hn, { alt: "header-icon", src: r })
|
|
592
592
|
] }),
|
|
593
593
|
/* @__PURE__ */ p("div", { children: l && /* @__PURE__ */ p(qt, { onClick: l, children: /* @__PURE__ */ p("img", { alt: "header-close-icon", src: $t }) }) })
|
|
594
594
|
] });
|
|
595
|
-
const
|
|
595
|
+
const pn = /* @__PURE__ */ m("div")({
|
|
596
596
|
name: "i",
|
|
597
597
|
class: "iqbegjm",
|
|
598
598
|
propsAsIs: !1
|
|
599
|
-
}),
|
|
600
|
-
const
|
|
599
|
+
}), fn = ({ comeBack: r }) => /* @__PURE__ */ p(pn, { children: /* @__PURE__ */ p(yi, { comeBack: r }) });
|
|
600
|
+
const gn = /* @__PURE__ */ m("button")({
|
|
601
601
|
name: "a",
|
|
602
602
|
class: "akly9h2",
|
|
603
603
|
propsAsIs: !1
|
|
604
|
-
}),
|
|
604
|
+
}), mn = /* @__PURE__ */ m("span")({
|
|
605
605
|
name: "e",
|
|
606
606
|
class: "eptoiz9",
|
|
607
607
|
propsAsIs: !1
|
|
608
|
-
}),
|
|
608
|
+
}), In = ({ disabled: r, variant: o = "primary", onClick: l, children: u }) => /* @__PURE__ */ p(gn, { onClick: l, disabled: r, "data-variant": o, children: /* @__PURE__ */ p(mn, { children: u }) }), yn = {
|
|
609
609
|
[H.TWEET]: { label: "Insight", iconName: "icon-insight" },
|
|
610
610
|
[H.PROMOTION]: { label: "Insight", iconName: "icon-insight" },
|
|
611
611
|
[H.UNSET]: void 0,
|
|
@@ -614,7 +614,7 @@ const fn = /* @__PURE__ */ m("button")({
|
|
|
614
614
|
[H.TRIVIA]: { label: "Trivia", iconName: "icon-trivia" },
|
|
615
615
|
[H.PREDICTION]: { label: "Prediction", iconName: "icon-prediction" }
|
|
616
616
|
};
|
|
617
|
-
const
|
|
617
|
+
const Mn = (r) => /* @__PURE__ */ M.createElement("svg", {
|
|
618
618
|
width: 24,
|
|
619
619
|
height: 24,
|
|
620
620
|
viewBox: "0 0 24 24",
|
|
@@ -627,7 +627,7 @@ const yn = (r) => /* @__PURE__ */ M.createElement("svg", {
|
|
|
627
627
|
strokeWidth: 1.5,
|
|
628
628
|
strokeLinecap: "round",
|
|
629
629
|
strokeLinejoin: "round"
|
|
630
|
-
})),
|
|
630
|
+
})), Cn = (r) => /* @__PURE__ */ M.createElement("svg", {
|
|
631
631
|
width: 24,
|
|
632
632
|
height: 24,
|
|
633
633
|
viewBox: "0 0 24 24",
|
|
@@ -643,7 +643,7 @@ const yn = (r) => /* @__PURE__ */ M.createElement("svg", {
|
|
|
643
643
|
strokeWidth: 1.5,
|
|
644
644
|
strokeLinecap: "round",
|
|
645
645
|
strokeLinejoin: "round"
|
|
646
|
-
}))),
|
|
646
|
+
}))), wn = (r) => /* @__PURE__ */ M.createElement("svg", {
|
|
647
647
|
width: 24,
|
|
648
648
|
height: 24,
|
|
649
649
|
viewBox: "0 0 24 24",
|
|
@@ -659,7 +659,7 @@ const yn = (r) => /* @__PURE__ */ M.createElement("svg", {
|
|
|
659
659
|
strokeWidth: 1.5,
|
|
660
660
|
strokeLinecap: "round",
|
|
661
661
|
strokeLinejoin: "round"
|
|
662
|
-
}))),
|
|
662
|
+
}))), En = (r) => /* @__PURE__ */ M.createElement("svg", {
|
|
663
663
|
width: 16,
|
|
664
664
|
height: 16,
|
|
665
665
|
viewBox: "0 0 16 16",
|
|
@@ -672,7 +672,7 @@ const yn = (r) => /* @__PURE__ */ M.createElement("svg", {
|
|
|
672
672
|
clipRule: "evenodd",
|
|
673
673
|
d: "M16 8C16 12.4183 12.4183 16 8 16C3.58172 16 0 12.4183 0 8C0 3.58172 3.58172 0 8 0C12.4183 0 16 3.58172 16 8ZM11.6057 5.43441C11.2933 5.12199 10.7868 5.12199 10.4744 5.43441L6.93812 9.97066L5.08382 8.73446C4.7162 8.48938 4.2195 8.58871 3.97442 8.95634C3.72934 9.32396 3.82868 9.82065 4.1963 10.0657L6.5963 11.6657C6.9136 11.8773 7.33609 11.8354 7.60574 11.5658L11.6057 6.56578C11.9182 6.25336 11.9182 5.74683 11.6057 5.43441Z",
|
|
674
674
|
fill: "#107D57"
|
|
675
|
-
})),
|
|
675
|
+
})), An = (r) => /* @__PURE__ */ M.createElement("svg", {
|
|
676
676
|
width: 24,
|
|
677
677
|
height: 24,
|
|
678
678
|
viewBox: "0 0 24 24",
|
|
@@ -687,7 +687,7 @@ const yn = (r) => /* @__PURE__ */ M.createElement("svg", {
|
|
|
687
687
|
clipRule: "evenodd",
|
|
688
688
|
d: "M24 12.002C24 18.6294 18.6274 24.002 12 24.002C5.37258 24.002 0 18.6294 0 12.002C0 5.37454 5.37258 0.00195312 12 0.00195312C18.6274 0.00195312 24 5.37454 24 12.002ZM17.4086 8.15357C16.94 7.68494 16.1802 7.68494 15.7116 8.15357L10.4072 14.9579L7.62573 13.1036C7.07429 12.736 6.32925 12.885 5.96163 13.4365C5.59401 13.9879 5.74301 14.7329 6.29445 15.1006L9.89445 17.5006C10.3704 17.8179 11.0041 17.7551 11.4086 17.3506L17.4086 9.85063C17.8772 9.382 17.8772 8.6222 17.4086 8.15357Z",
|
|
689
689
|
fill: "#FFFFFF"
|
|
690
|
-
}))),
|
|
690
|
+
}))), Nn = (r) => /* @__PURE__ */ M.createElement("svg", {
|
|
691
691
|
width: 12,
|
|
692
692
|
height: 20,
|
|
693
693
|
viewBox: "0 0 12 20",
|
|
@@ -699,7 +699,7 @@ const yn = (r) => /* @__PURE__ */ M.createElement("svg", {
|
|
|
699
699
|
d: "M0 10C0 10.3818 0.145996 10.7075 0.449219 10.9995L9.20898 19.5684C9.44482 19.8154 9.75928 19.939 10.1187 19.939C10.8486 19.939 11.4214 19.3774 11.4214 18.6362C11.4214 18.2769 11.2754 17.9512 11.0283 17.7041L3.1333 10L11.0283 2.2959C11.2754 2.0376 11.4214 1.71191 11.4214 1.35254C11.4214 0.622559 10.8486 0.0610352 10.1187 0.0610352C9.75928 0.0610352 9.44482 0.18457 9.20898 0.431641L0.449219 9.00049C0.145996 9.29248 0.0112305 9.61816 0 10Z",
|
|
700
700
|
fill: "white",
|
|
701
701
|
fillOpacity: 0.6
|
|
702
|
-
})),
|
|
702
|
+
})), xn = (r) => /* @__PURE__ */ M.createElement("svg", {
|
|
703
703
|
width: 24,
|
|
704
704
|
height: 24,
|
|
705
705
|
viewBox: "0 0 24 24",
|
|
@@ -712,7 +712,7 @@ const yn = (r) => /* @__PURE__ */ M.createElement("svg", {
|
|
|
712
712
|
id: "Chevron_2",
|
|
713
713
|
d: "M6 11.999C6 12.1725 6.03134 12.334 6.09401 12.4837C6.15669 12.6334 6.25428 12.7756 6.3868 12.9103L14.0436 20.6565C14.2648 20.8855 14.5323 21 14.8459 21C15.0607 21 15.2544 20.9475 15.4271 20.8426C15.5998 20.7377 15.7384 20.5965 15.8431 20.4191C15.9477 20.2416 16 20.0425 16 19.8217C16 19.4989 15.8816 19.2134 15.6448 18.9654L8.74183 11.9971L15.6448 5.03271C15.8816 4.78709 16 4.5023 16 4.17834C16 3.95749 15.9477 3.75835 15.8431 3.58091C15.7384 3.40347 15.5998 3.26229 15.4271 3.15738C15.2544 3.05246 15.0607 3 14.8459 3C14.5323 3 14.2648 3.11169 14.0436 3.33508L6.3868 11.0878C6.25551 11.2225 6.15853 11.3644 6.09586 11.5134C6.03318 11.6625 6.00123 11.8244 6 11.999Z",
|
|
714
714
|
fill: "white"
|
|
715
|
-
}))),
|
|
715
|
+
}))), Tn = (r) => /* @__PURE__ */ M.createElement("svg", {
|
|
716
716
|
width: 16,
|
|
717
717
|
height: 17,
|
|
718
718
|
viewBox: "0 0 16 17",
|
|
@@ -725,7 +725,7 @@ const yn = (r) => /* @__PURE__ */ M.createElement("svg", {
|
|
|
725
725
|
id: "Chevron_2",
|
|
726
726
|
d: "M12 8.17222C12 8.28783 11.9781 8.39553 11.9342 8.49533C11.8903 8.59513 11.822 8.68992 11.7292 8.7797L6.36949 13.9439C6.21462 14.0965 6.02742 14.1729 5.80787 14.1729C5.65752 14.1729 5.52191 14.1379 5.40104 14.0679C5.28016 13.998 5.1831 13.9039 5.10986 13.7856C5.03662 13.6673 5 13.5345 5 13.3873C5 13.1721 5.08288 12.9818 5.24863 12.8164L10.0807 8.17095L5.24863 3.52799C5.08288 3.36425 5 3.17439 5 2.95841C5 2.81118 5.03662 2.67842 5.10986 2.56013C5.1831 2.44183 5.28016 2.34771 5.40104 2.27777C5.52191 2.20782 5.65752 2.17285 5.80787 2.17285C6.02742 2.17285 6.21462 2.24731 6.36949 2.39624L11.7292 7.56473C11.8211 7.65451 11.889 7.74909 11.9329 7.84846C11.9768 7.94784 11.9991 8.05576 12 8.17222Z",
|
|
727
727
|
fill: "#FFFFFF"
|
|
728
|
-
}))),
|
|
728
|
+
}))), vn = (r) => /* @__PURE__ */ M.createElement("svg", {
|
|
729
729
|
width: 24,
|
|
730
730
|
height: 24,
|
|
731
731
|
viewBox: "0 0 24 24",
|
|
@@ -740,7 +740,7 @@ const yn = (r) => /* @__PURE__ */ M.createElement("svg", {
|
|
|
740
740
|
}), /* @__PURE__ */ M.createElement("path", {
|
|
741
741
|
d: "M10.8547 7.5429C10.524 7.23657 10.0131 7.23657 9.68243 7.5429C9.31416 7.88401 9.31384 8.46633 9.68174 8.80784L13.1206 12L9.68175 15.1922C9.31384 15.5337 9.31416 16.116 9.68243 16.4571C10.0131 16.7634 10.524 16.7634 10.8547 16.4571L14.9802 12.6358C15.3505 12.2928 15.3505 11.7072 14.9802 11.3642L10.8547 7.5429Z",
|
|
742
742
|
fill: "white"
|
|
743
|
-
})),
|
|
743
|
+
})), Dn = (r) => /* @__PURE__ */ M.createElement("svg", {
|
|
744
744
|
width: 10,
|
|
745
745
|
height: 10,
|
|
746
746
|
viewBox: "0 0 10 10",
|
|
@@ -765,7 +765,7 @@ const yn = (r) => /* @__PURE__ */ M.createElement("svg", {
|
|
|
765
765
|
rx: 0.883884,
|
|
766
766
|
transform: "rotate(-45 0 8.75)",
|
|
767
767
|
fill: "white"
|
|
768
|
-
}))),
|
|
768
|
+
}))), Ln = (r) => /* @__PURE__ */ M.createElement("svg", {
|
|
769
769
|
width: 24,
|
|
770
770
|
height: 24,
|
|
771
771
|
viewBox: "0 0 24 24",
|
|
@@ -794,7 +794,7 @@ const yn = (r) => /* @__PURE__ */ M.createElement("svg", {
|
|
|
794
794
|
rx: 0.883884,
|
|
795
795
|
transform: "rotate(-45 7 15.752)",
|
|
796
796
|
fill: "white"
|
|
797
|
-
})),
|
|
797
|
+
})), zn = (r) => /* @__PURE__ */ M.createElement("svg", {
|
|
798
798
|
width: 40,
|
|
799
799
|
height: 40,
|
|
800
800
|
viewBox: "0 0 40 40",
|
|
@@ -813,7 +813,7 @@ const yn = (r) => /* @__PURE__ */ M.createElement("svg", {
|
|
|
813
813
|
id: "Vector_2",
|
|
814
814
|
d: "M20 10C18.0222 10 16.0888 10.5865 14.4443 11.6853C12.7998 12.7841 11.5181 14.3459 10.7612 16.1732C10.0043 18.0004 9.8063 20.0111 10.1922 21.9509C10.578 23.8907 11.5304 25.6725 12.9289 27.0711C14.3275 28.4696 16.1093 29.422 18.0491 29.8078C19.9889 30.1937 21.9996 29.9957 23.8268 29.2388C25.6541 28.4819 27.2159 27.2002 28.3147 25.5557C29.4135 23.9112 30 21.9778 30 20C29.997 17.3488 28.9424 14.807 27.0677 12.9323C25.193 11.0576 22.6512 10.003 20 10ZM15.7143 27.4121V26.4286C15.7149 25.8604 15.9408 25.3157 16.3425 24.914C16.7443 24.5122 17.289 24.2863 17.8571 24.2857H22.1429C22.711 24.2863 23.2557 24.5122 23.6575 24.914C24.0592 25.3157 24.2851 25.8604 24.2857 26.4286V27.4121C22.9851 28.1716 21.5061 28.5718 20 28.5718C18.4939 28.5718 17.0149 28.1716 15.7143 27.4121ZM25.7086 26.3757C25.6943 25.4388 25.3126 24.545 24.6457 23.8868C23.9787 23.2287 23.0799 22.8589 22.1429 22.8571H17.8571C16.9201 22.8589 16.0213 23.2287 15.3544 23.8868C14.6874 24.545 14.3057 25.4388 14.2914 26.3757C12.9961 25.2191 12.0827 23.6963 11.672 22.009C11.2614 20.3218 11.3729 18.5495 11.9919 16.927C12.6108 15.3046 13.708 13.9083 15.1381 12.9233C16.5682 11.9382 18.2638 11.4107 20.0004 11.4107C21.7369 11.4107 23.4325 11.9382 24.8626 12.9233C26.2927 13.9083 27.3899 15.3046 28.0088 16.927C28.6278 18.5495 28.7393 20.3218 28.3287 22.009C27.9181 23.6963 27.0039 25.2191 25.7086 26.3757Z",
|
|
815
815
|
fill: "white"
|
|
816
|
-
})))),
|
|
816
|
+
})))), Sn = (r) => /* @__PURE__ */ M.createElement("svg", {
|
|
817
817
|
width: 24,
|
|
818
818
|
height: 24,
|
|
819
819
|
viewBox: "0 0 24 24",
|
|
@@ -842,7 +842,7 @@ const yn = (r) => /* @__PURE__ */ M.createElement("svg", {
|
|
|
842
842
|
rx: 0.883884,
|
|
843
843
|
transform: "rotate(-45 7 15.75)",
|
|
844
844
|
fill: "white"
|
|
845
|
-
})),
|
|
845
|
+
})), jn = (r) => /* @__PURE__ */ M.createElement("svg", {
|
|
846
846
|
width: 17,
|
|
847
847
|
height: 17,
|
|
848
848
|
viewBox: "0 0 17 17",
|
|
@@ -854,7 +854,7 @@ const yn = (r) => /* @__PURE__ */ M.createElement("svg", {
|
|
|
854
854
|
stroke: "#107D57",
|
|
855
855
|
strokeLinecap: "round",
|
|
856
856
|
strokeLinejoin: "round"
|
|
857
|
-
})),
|
|
857
|
+
})), Bn = (r) => /* @__PURE__ */ M.createElement("svg", {
|
|
858
858
|
width: 32,
|
|
859
859
|
height: 32,
|
|
860
860
|
viewBox: "0 0 32 32",
|
|
@@ -873,7 +873,7 @@ const yn = (r) => /* @__PURE__ */ M.createElement("svg", {
|
|
|
873
873
|
opacity: 0.5,
|
|
874
874
|
d: "M13.3908 9C12.3103 9 11.4336 9.82584 11.4336 10.8437C11.4336 11.8616 12.3103 12.6875 13.3908 12.6875C14.4713 12.6875 15.348 11.8616 15.348 10.8437C15.348 9.82584 14.4713 9 13.3908 9ZM13.3908 12.6875C13.1946 12.6875 12.9958 12.6827 12.7996 12.7451C13.192 13.2372 13.3908 13.8542 13.3908 14.5312C13.3908 14.7761 13.3296 15.0161 13.3296 15.261C13.8521 14.524 14.6956 14.0391 15.6742 13.9166C15.218 13.1796 14.3694 12.6875 13.3908 12.6875ZM18.61 9C17.5295 9 16.6528 9.82584 16.6528 10.8437C16.6528 11.8616 17.5295 12.6875 18.61 12.6875C19.6905 12.6875 20.5672 11.8616 20.5672 10.8437C20.5672 9.82584 19.6905 9 18.61 9ZM18.61 12.6875C17.6314 12.6875 16.7828 13.1796 16.3266 13.9166C17.3052 14.0391 18.1487 14.524 18.6712 15.261C18.6712 15.0161 18.61 14.7761 18.61 14.5312C18.61 13.8542 18.8088 13.2372 19.2012 12.7451C19.005 12.6827 18.8062 12.6875 18.61 12.6875Z",
|
|
875
875
|
fill: "#107D57"
|
|
876
|
-
})),
|
|
876
|
+
})), kn = (r) => /* @__PURE__ */ M.createElement("svg", {
|
|
877
877
|
width: 18,
|
|
878
878
|
height: 18,
|
|
879
879
|
viewBox: "0 0 18 18",
|
|
@@ -886,7 +886,7 @@ const yn = (r) => /* @__PURE__ */ M.createElement("svg", {
|
|
|
886
886
|
id: "Vector",
|
|
887
887
|
d: "M11 4.965V1.125L18 7.845L11 14.565V10.629C6 10.629 2.5 12.165 0 15.525C1 10.725 4 5.925 11 4.965Z",
|
|
888
888
|
fill: "white"
|
|
889
|
-
}))),
|
|
889
|
+
}))), bn = (r) => /* @__PURE__ */ M.createElement("svg", {
|
|
890
890
|
width: 17,
|
|
891
891
|
height: 16,
|
|
892
892
|
viewBox: "0 0 17 16",
|
|
@@ -912,7 +912,7 @@ const yn = (r) => /* @__PURE__ */ M.createElement("svg", {
|
|
|
912
912
|
strokeWidth: 1.5,
|
|
913
913
|
strokeLinecap: "round",
|
|
914
914
|
strokeLinejoin: "round"
|
|
915
|
-
})),
|
|
915
|
+
})), Rn = (r) => /* @__PURE__ */ M.createElement("svg", {
|
|
916
916
|
width: 17,
|
|
917
917
|
height: 18,
|
|
918
918
|
viewBox: "0 0 17 18",
|
|
@@ -942,7 +942,7 @@ const yn = (r) => /* @__PURE__ */ M.createElement("svg", {
|
|
|
942
942
|
strokeWidth: 1.5,
|
|
943
943
|
strokeLinecap: "round",
|
|
944
944
|
strokeLinejoin: "round"
|
|
945
|
-
}))),
|
|
945
|
+
}))), _n = (r) => /* @__PURE__ */ M.createElement("svg", {
|
|
946
946
|
width: 99,
|
|
947
947
|
height: 96,
|
|
948
948
|
viewBox: "0 0 99 96",
|
|
@@ -959,7 +959,7 @@ const yn = (r) => /* @__PURE__ */ M.createElement("svg", {
|
|
|
959
959
|
id: "Vector_2",
|
|
960
960
|
d: "M98.1678 34.7754C97.6547 34.4147 97.3429 33.8272 97.3429 33.1882V31.4051C97.3429 29.8075 96.0752 28.5089 94.5159 28.5089H93.3891C92.041 28.5089 90.8035 29.1994 90.0691 30.3538L86.4272 36.1153C86.065 36.6822 85.4514 37.0223 84.7974 37.0223H82.3427C81.1253 37.0223 80.0086 37.7026 79.4251 38.8054C78.8215 39.9392 77.7752 40.7225 76.5679 40.9905V0.917313C76.5679 0.412276 76.1756 0 75.6726 0C75.1796 0 74.7772 0.412276 74.7772 0.917313V2.15414V13.4196V41.0111C73.5699 40.7431 72.5236 39.9598 71.92 38.8261C71.3465 37.7232 70.2298 37.043 69.0125 37.043H67.3626C66.0547 37.043 64.8676 37.8366 64.3344 39.0528L62.9661 42.2067C62.7448 42.7014 62.2619 43.0313 61.7287 43.0313C61.1955 43.0313 60.7126 42.7118 60.4913 42.2067L59.123 39.0528C58.5898 37.8263 57.4027 37.0327 56.0948 37.0327H9.52479C9.14249 37.0327 8.84068 37.3419 8.84068 37.7335C8.84068 38.5478 8.18674 39.2177 7.39196 39.2177H5.37986C4.99757 39.2177 4.69575 39.5269 4.69575 39.9186V42.3098C4.69575 44.5567 4.26315 46.7624 3.42813 48.834L2.20075 51.8643C1.05385 54.6884 0.510584 57.5846 0.520645 60.4396V67.4071C0.520645 69.2932 0.782218 71.1897 1.31542 73.0449C2.81444 78.2396 6.20483 82.4963 10.893 85.0215L18.3378 89.0412C18.4384 89.0928 18.539 89.1237 18.6497 89.1237L24.1528 89.1649C25.4405 89.1752 26.7081 89.5153 27.8248 90.1544L30.7826 91.8447C30.8832 91.9065 30.9939 91.9375 31.1146 91.9375H35.0684C36.4567 91.9375 37.825 92.3291 39.0121 93.0609C39.0121 93.0609 40.9437 94.2668 41.5977 94.6585C42.6439 95.2872 43.9116 95.885 46.1148 95.9984C46.6178 96.019 47.1108 95.8438 47.483 95.483C47.8553 95.1223 48.0666 94.6172 48.0666 94.0916V91.3809C48.0666 89.4123 49.2034 87.6292 50.964 86.8355L57.0003 84.1145C57.8252 83.7435 58.7508 83.6816 59.6059 83.9496L61.8595 84.6402C62.8152 84.9288 63.8313 84.9391 64.7972 84.6402L70.1493 83.0117C70.8636 82.7952 71.6081 82.7952 72.3325 83.022L74.5055 83.6507C75.5216 83.9496 76.2259 84.8979 76.2259 85.9801V91.4118C76.2259 93.937 78.238 95.9984 80.7028 95.9984C82.5439 95.9984 84.1636 94.7822 84.7169 92.9888C85.723 89.7421 86.2361 86.3614 86.2361 82.9499V80.6411C86.2361 79.0023 86.9001 77.415 88.0671 76.2916L90.2905 74.1375C91.7895 72.6739 92.6547 70.6228 92.6547 68.4996V55.616C92.6547 53.6164 93.2382 51.6994 94.3549 50.0606C94.4354 49.9472 94.4756 49.8029 94.4756 49.6586V46.6284C94.4756 44.6494 95.0591 42.7324 96.1557 41.1039L98.359 37.8263C98.4395 37.7129 98.4797 37.5686 98.4797 37.4346V35.3732C98.4797 34.9713 98.2584 34.8373 98.1678 34.7754ZM74.7872 69.2211C73.2882 68.9943 72.1816 68.2007 72.1816 67.2628C72.1816 66.3248 73.2882 65.5312 74.7872 65.3045V69.2211ZM76.5679 65.2941C78.0669 65.5209 79.1736 66.3145 79.1736 67.2525C79.1736 68.1904 78.0669 68.984 76.5679 69.2108V65.2941ZM12.6637 84.3928L11.5268 83.7847C8.45838 82.1356 6.00362 79.6619 4.32351 76.673V72.9109C6.24507 75.7556 8.85074 78.1881 12.05 79.9093L12.6637 80.2391V84.3928ZM18.3478 87.4643L15.3398 85.8461V81.6924L18.3378 83.3106H18.3478V87.4643ZM30.8832 90.2987L28.4989 88.9382C27.2011 88.1961 25.7322 87.7941 24.2534 87.7735V83.4343C25.5009 83.4652 26.7383 83.795 27.8349 84.4237L30.7927 86.1141C30.8229 86.1347 30.853 86.1244 30.8832 86.1347V90.2987ZM46.6983 91.3706V93.4835V94.0813C46.6983 94.2256 46.638 94.3596 46.5474 94.4523C46.4468 94.5451 46.3261 94.5966 46.1953 94.5863C44.2939 94.4833 43.1973 93.9782 42.3019 93.432C41.658 93.0403 39.7365 91.8447 39.7264 91.8447C38.5191 91.1026 37.161 90.68 35.7626 90.577V86.2377C36.9095 86.3408 38.0262 86.7016 39.0222 87.3097L40.6821 88.33C42.5031 89.4535 44.5756 90.0925 46.6983 90.2059V91.3706ZM63.1372 83.4446C62.8354 83.424 62.5436 83.3827 62.2519 83.3003L59.9983 82.6097C59.5154 82.4654 59.0124 82.4036 58.5194 82.4036V78.0644C58.8816 78.0644 59.2538 78.1056 59.6059 78.2087L61.8595 78.8992C62.272 79.0229 62.7046 79.0848 63.1372 79.1054V83.4446ZM77.2923 84.4959C76.8597 83.4549 75.9945 82.62 74.8878 82.3005L72.7248 81.6718C72.2117 81.5069 71.6785 81.445 71.1453 81.4554V77.1265C71.5578 77.1161 71.9703 77.1677 72.3727 77.3017L74.1534 77.8789C76.0347 78.487 77.3024 80.2494 77.3024 82.2696V84.4959H77.2923ZM83.5197 92.1848C83.4795 92.3085 83.4594 92.4322 83.4191 92.5559C83.0368 93.7721 81.9503 94.5863 80.7028 94.5863C80.5921 94.5863 80.4815 94.5657 80.3708 94.5554V90.2265C80.4513 90.2368 80.5318 90.2471 80.6223 90.2471C81.8396 90.2471 82.9362 89.5463 83.5197 88.495V92.1848ZM95.1799 38.0118C93.8217 40.032 93.1074 42.4025 93.1074 44.8556V46.9994L92.051 48.5661C90.6828 50.5965 89.9484 52.9774 89.9484 55.4408V66.2218C89.9484 67.9739 89.2442 69.6643 88.0067 70.8702L85.7834 73.0346C84.2944 74.4879 83.4694 76.539 83.5298 78.6519L83.5399 79.1363C83.6203 81.9398 83.2682 84.7226 82.5137 87.4127C82.2722 88.2682 81.4976 88.866 80.6223 88.866C79.5358 88.866 78.6605 87.959 78.6605 86.8562V82.2696C78.6605 79.631 77.0106 77.3326 74.5558 76.539L72.7751 75.9618C71.7892 75.6423 70.753 75.6423 69.767 75.9412L64.4149 77.5697C63.7106 77.7861 62.9661 77.7861 62.2519 77.5697L59.9983 76.8791C58.8313 76.5183 57.5637 76.6008 56.4469 77.1058L51.6883 79.2497C48.6501 80.6102 46.6883 83.6919 46.6883 87.0932V88.8454C44.817 88.732 42.986 88.1548 41.3763 87.1654L39.7163 86.145C38.3079 85.2792 36.7083 84.8257 35.0684 84.8257H31.3058L28.5089 83.2281C27.191 82.4757 25.692 82.0635 24.1729 82.0532L18.8307 82.0119L12.6938 78.7034C3.38789 73.653 -0.58601 62.367 3.45831 52.4208L4.68569 49.3906C5.6012 47.1437 6.06398 44.7628 6.06398 42.3304V40.6401H7.39196C8.70989 40.6401 9.81654 39.7021 10.1284 38.455H56.0948C56.8594 38.455 57.5637 38.9188 57.8755 39.6403L59.2438 42.7942C59.6764 43.8043 60.6522 44.4536 61.7287 44.4536C62.8052 44.4536 63.781 43.8043 64.2136 42.8045L65.5819 39.6506C65.8938 38.9291 66.5879 38.4653 67.3626 38.4653H69.0125C69.7268 38.4653 70.3807 38.8673 70.7228 39.5063C71.5679 41.1039 73.0769 42.1758 74.7872 42.4541V62.2639C72.0307 62.5731 69.918 64.2532 69.918 66.3042C69.918 68.5614 72.4934 70.3961 75.6726 70.3961C78.8517 70.3961 81.4272 68.5614 81.4272 66.3042C81.4272 64.2635 79.3145 62.5731 76.5579 62.2639V42.4438C78.2682 42.1655 79.7772 41.0936 80.6223 39.496C80.9644 38.857 81.6183 38.455 82.3326 38.455H84.7874C85.9141 38.455 86.9504 37.8778 87.5641 36.909L91.206 31.1371C91.6889 30.3847 92.4937 29.9312 93.379 29.9312H94.5058C95.3106 29.9312 95.9646 30.6012 95.9646 31.4257V33.2088C95.9646 34.0746 96.2865 34.8888 96.86 35.4969L95.1799 38.0118Z",
|
|
961
961
|
fill: "white"
|
|
962
|
-
}))),
|
|
962
|
+
}))), On = (r) => /* @__PURE__ */ M.createElement("svg", {
|
|
963
963
|
width: 48,
|
|
964
964
|
height: 48,
|
|
965
965
|
viewBox: "0 0 48 48",
|
|
@@ -977,7 +977,7 @@ const yn = (r) => /* @__PURE__ */ M.createElement("svg", {
|
|
|
977
977
|
clipRule: "evenodd",
|
|
978
978
|
d: "M32.5432 24.7938C33.215 24.3331 33.2822 23.5173 32.5432 23.0567C23.7807 17.6245 19.6442 14.918 19.1356 14.5917C18.3486 14.083 17.6 14.6973 17.6 15.2059V32.7501C17.6 33.3259 18.5309 33.8442 19.1356 33.4795C20.2201 32.8172 31.8714 25.2641 32.5336 24.8034L32.5432 24.7938Z",
|
|
979
979
|
fill: "white"
|
|
980
|
-
})),
|
|
980
|
+
})), Un = (r) => /* @__PURE__ */ M.createElement("svg", {
|
|
981
981
|
width: 16,
|
|
982
982
|
height: 15,
|
|
983
983
|
viewBox: "0 0 16 15",
|
|
@@ -988,7 +988,7 @@ const yn = (r) => /* @__PURE__ */ M.createElement("svg", {
|
|
|
988
988
|
id: "Start - You",
|
|
989
989
|
d: "M8 0L9.79611 5.52786H15.6085L10.9062 8.94427L12.7023 14.4721L8 11.0557L3.29772 14.4721L5.09383 8.94427L0.391548 5.52786H6.20389L8 0Z",
|
|
990
990
|
fill: "#F4D22A"
|
|
991
|
-
})),
|
|
991
|
+
})), $n = (r) => /* @__PURE__ */ M.createElement("svg", {
|
|
992
992
|
xmlns: "http://www.w3.org/2000/svg",
|
|
993
993
|
width: 22,
|
|
994
994
|
height: 22,
|
|
@@ -998,7 +998,7 @@ const yn = (r) => /* @__PURE__ */ M.createElement("svg", {
|
|
|
998
998
|
}, /* @__PURE__ */ M.createElement("path", {
|
|
999
999
|
d: "M5.5 2.78867V12.4137C5.5 13.1729 4.88426 13.75 4.125 13.75H1.375C0.615742 13.75 0 13.1343 0 12.4137V2.82734C0 2.06808 0.615742 1.49102 1.375 1.49102H4.125C4.88555 1.41367 5.5 1.99375 5.5 2.78867ZM22 12.3707C22 13.5094 21.077 14.4323 19.9375 14.4323H13.6426C14.621 16.0613 15.1259 17.9077 15.1259 18.5582C15.125 19.5714 14.3301 20.625 12.998 20.625C10.2854 20.625 11.8654 17.3529 8.34883 14.5406L7.64844 13.982C7.14141 13.5738 6.88359 12.9766 6.8793 12.375C6.87829 12.374 6.8793 12.375 6.8793 12.375L6.875 5.5C6.875 4.85117 7.18064 4.23973 7.7 3.85043L9.16695 2.75086C10.3555 1.85625 11.8035 1.375 13.2902 1.375H15.8125C16.952 1.375 17.875 2.29754 17.875 3.43664C17.875 3.59283 17.8544 3.74357 17.8215 3.88996C18.6484 4.15937 19.25 4.92422 19.25 5.84375C19.25 6.23683 19.1341 6.60043 18.9432 6.91281C19.8988 7.08984 20.625 7.92773 20.625 8.9332C20.625 9.47031 20.4148 9.955 20.0784 10.322C21.1492 10.3941 22 11.2793 22 12.3707Z",
|
|
1000
1000
|
fill: "white"
|
|
1001
|
-
})),
|
|
1001
|
+
})), Fn = (r) => /* @__PURE__ */ M.createElement("svg", {
|
|
1002
1002
|
width: 12,
|
|
1003
1003
|
height: 12,
|
|
1004
1004
|
viewBox: "0 0 12 12",
|
|
@@ -1013,7 +1013,7 @@ const yn = (r) => /* @__PURE__ */ M.createElement("svg", {
|
|
|
1013
1013
|
clipRule: "evenodd",
|
|
1014
1014
|
d: "M2.76916 3.50002C2.76916 4.49786 2.94705 5.38348 3.30282 6.15692C2.62493 6.01847 2.05883 5.74872 1.6045 5.34768C1.15017 4.94663 0.923008 4.55992 0.923008 4.18752V3.50002H2.76916ZM11.0768 3.50002V4.18752C11.0768 4.55992 10.8497 4.94663 10.3953 5.34768C9.941 5.74872 9.3749 6.01847 8.69701 6.15692C9.05278 5.38348 9.23066 4.49786 9.23066 3.50002H11.0768ZM12 4.1875V3.27083C12 3.07986 11.9327 2.91754 11.7981 2.78385C11.6635 2.65017 11.5 2.58333 11.3077 2.58333H9.23077V1.89583C9.23077 1.58073 9.11779 1.31098 8.89183 1.08659C8.66586 0.862195 8.39423 0.75 8.07692 0.75H3.92308C3.60577 0.75 3.33414 0.862195 3.10817 1.08659C2.88221 1.31098 2.76923 1.58073 2.76923 1.89583V2.58333H0.692308C0.499999 2.58333 0.336539 2.65017 0.201923 2.78385C0.067307 2.91754 0 3.07986 0 3.27083V4.1875C0 4.52648 0.0997586 4.86784 0.299279 5.21159C0.498799 5.55534 0.768027 5.86567 1.10697 6.14258C1.44592 6.41949 1.86178 6.65223 2.35457 6.84082C2.84736 7.02941 3.36538 7.13563 3.90865 7.15951C4.11058 7.41732 4.33894 7.6441 4.59375 7.83984C4.77644 8.00217 4.90264 8.17524 4.97236 8.35905C5.04207 8.54286 5.07692 8.75651 5.07692 9C5.07692 9.25781 5.00361 9.47504 4.85697 9.65169C4.71034 9.82834 4.47596 9.91667 4.15385 9.91667C3.79327 9.91667 3.47236 10.0253 3.19111 10.2425C2.90985 10.4597 2.76923 10.7331 2.76923 11.0625V11.5208C2.76923 11.5877 2.79087 11.6426 2.83413 11.6855C2.8774 11.7285 2.93269 11.75 3 11.75H9C9.06731 11.75 9.1226 11.7285 9.16586 11.6855C9.20913 11.6426 9.23077 11.5877 9.23077 11.5208V11.0625C9.23077 10.7331 9.09015 10.4597 8.80889 10.2425C8.52764 10.0253 8.20673 9.91667 7.84615 9.91667C7.52404 9.91667 7.28966 9.82834 7.14303 9.65169C6.99639 9.47504 6.92308 9.25781 6.92308 9C6.92308 8.75651 6.95793 8.54286 7.02764 8.35905C7.09736 8.17524 7.22356 8.00217 7.40625 7.83984C7.66106 7.6441 7.88942 7.41732 8.09135 7.15951C8.63462 7.13563 9.15264 7.02941 9.64543 6.84082C10.1382 6.65223 10.5541 6.41949 10.893 6.14258C11.232 5.86567 11.5012 5.55534 11.7007 5.21159C11.9002 4.86784 12 4.52648 12 4.1875ZM5.07033 5.38491L6.0383 4.87503L7.00627 5.38491L6.8214 4.30497L7.60451 3.54016L6.52228 3.3826L6.0383 2.40003L5.55431 3.3826L4.47209 3.54016L5.25519 4.30497L5.07033 5.38491Z",
|
|
1015
1015
|
fill: "white"
|
|
1016
|
-
}))),
|
|
1016
|
+
}))), Pn = (r) => /* @__PURE__ */ M.createElement("svg", {
|
|
1017
1017
|
width: 16,
|
|
1018
1018
|
height: 16,
|
|
1019
1019
|
viewBox: "0 0 16 16",
|
|
@@ -1028,7 +1028,7 @@ const yn = (r) => /* @__PURE__ */ M.createElement("svg", {
|
|
|
1028
1028
|
clipRule: "evenodd",
|
|
1029
1029
|
d: "M3.69197 4.66662C3.69197 5.99705 3.92914 7.17787 4.4035 8.20912C3.49966 8.02451 2.74487 7.66486 2.1391 7.13014C1.53333 6.59542 1.23046 6.0798 1.23046 5.58328V4.66662H3.69197ZM14.7686 4.66662V5.58328C14.7686 6.0798 14.4658 6.59542 13.86 7.13014C13.2542 7.66486 12.4994 8.02451 11.5956 8.20912C12.0699 7.17787 12.3071 5.99705 12.3071 4.66662H14.7686ZM15.9998 5.58329V4.36108C15.9998 4.10645 15.9101 3.89002 15.7306 3.71178C15.5511 3.53354 15.3332 3.44442 15.0768 3.44442H12.3076V2.52776C12.3076 2.10763 12.1569 1.74797 11.8556 1.44878C11.5544 1.14959 11.1922 1 10.7691 1H5.23072C4.80764 1 4.44547 1.14959 4.14419 1.44878C3.84291 1.74797 3.69227 2.10763 3.69227 2.52776V3.44442H0.923068C0.666659 3.44442 0.448714 3.53354 0.269228 3.71178C0.0897418 3.89002 0 4.10645 0 4.36108V5.58329C0 6.03525 0.13301 6.49039 0.399034 6.94872C0.665059 7.40705 1.02403 7.82082 1.47595 8.19003C1.92787 8.55924 2.48234 8.86957 3.13939 9.12101C3.79644 9.37246 4.48713 9.51409 5.21149 9.54592C5.48071 9.88967 5.7852 10.192 6.12494 10.453C6.36853 10.6695 6.53679 10.9002 6.62974 11.1453C6.72269 11.3904 6.76916 11.6752 6.76916 11.9999C6.76916 12.3436 6.67141 12.6333 6.4759 12.8688C6.28038 13.1043 5.96789 13.2221 5.53841 13.2221C5.05764 13.2221 4.62976 13.3669 4.25476 13.6566C3.87977 13.9462 3.69227 14.3106 3.69227 14.7499V15.361C3.69227 15.4501 3.72112 15.5233 3.77881 15.5806C3.8365 15.6379 3.91022 15.6665 3.99996 15.6665H11.9999C12.0896 15.6665 12.1633 15.6379 12.221 15.5806C12.2787 15.5233 12.3076 15.4501 12.3076 15.361V14.7499C12.3076 14.3106 12.1201 13.9462 11.7451 13.6566C11.3701 13.3669 10.9422 13.2221 10.4614 13.2221C10.0319 13.2221 9.71945 13.1043 9.52394 12.8688C9.32843 12.6333 9.23068 12.3436 9.23068 11.9999C9.23068 11.6752 9.27715 11.3904 9.3701 11.1453C9.46305 10.9002 9.63131 10.6695 9.8749 10.453C10.2146 10.192 10.5191 9.88967 10.7884 9.54592C11.5127 9.51409 12.2034 9.37246 12.8604 9.12101C13.5175 8.86957 14.072 8.55924 14.5239 8.19003C14.9758 7.82082 15.3348 7.40705 15.6008 6.94872C15.8668 6.49039 15.9998 6.03525 15.9998 5.58329ZM6.76047 7.1798L8.05109 6.49997L9.3417 7.1798L9.09521 5.73989L10.1393 4.72015L8.69639 4.51007L8.05109 3.2L7.40578 4.51007L5.96283 4.72015L7.00696 5.73989L6.76047 7.1798Z",
|
|
1030
1030
|
fill: "#F2C94C"
|
|
1031
|
-
}))),
|
|
1031
|
+
}))), Yn = (r) => /* @__PURE__ */ M.createElement("svg", {
|
|
1032
1032
|
width: 25,
|
|
1033
1033
|
height: 24,
|
|
1034
1034
|
viewBox: "0 0 25 24",
|
|
@@ -1046,7 +1046,7 @@ const yn = (r) => /* @__PURE__ */ M.createElement("svg", {
|
|
|
1046
1046
|
d: "M8.58473 1.5C6.96392 1.5 5.64893 2.73876 5.64893 4.2656C5.64893 5.79245 6.96392 7.03121 8.58473 7.03121C10.2055 7.03121 11.5205 5.79245 11.5205 4.2656C11.5205 2.73876 10.2055 1.5 8.58473 1.5ZM8.58473 7.03121C8.29038 7.03121 7.99221 7.024 7.69787 7.11763C8.28656 7.85584 8.58473 8.78131 8.58473 9.79681C8.58473 10.1641 8.49298 10.5242 8.49298 10.8915C9.27663 9.78601 10.5419 9.05859 12.0098 8.87494C11.3256 7.76942 10.0526 7.03121 8.58473 7.03121ZM16.4135 1.5C14.7927 1.5 13.4777 2.73876 13.4777 4.2656C13.4777 5.79245 14.7927 7.03121 16.4135 7.03121C18.0343 7.03121 19.3493 5.79245 19.3493 4.2656C19.3493 2.73876 18.0343 1.5 16.4135 1.5ZM16.4135 7.03121C14.9456 7.03121 13.6727 7.76942 12.9884 8.87494C14.4563 9.05859 15.7216 9.78601 16.5053 10.8915C16.5053 10.5242 16.4135 10.1641 16.4135 9.79681C16.4135 8.78131 16.7117 7.85584 17.3004 7.11763C17.006 7.024 16.7079 7.03121 16.4135 7.03121Z",
|
|
1047
1047
|
fill: "white",
|
|
1048
1048
|
fillOpacity: 0.4
|
|
1049
|
-
}))),
|
|
1049
|
+
}))), Vn = (r) => /* @__PURE__ */ M.createElement("svg", {
|
|
1050
1050
|
width: 18,
|
|
1051
1051
|
height: 18,
|
|
1052
1052
|
viewBox: "0 0 18 18",
|
|
@@ -1069,7 +1069,7 @@ const yn = (r) => /* @__PURE__ */ M.createElement("svg", {
|
|
|
1069
1069
|
clipRule: "evenodd",
|
|
1070
1070
|
d: "M10.6432 6.12891C10.9551 6.12891 11.2103 6.37162 11.2302 6.67846L11.2315 6.71714V7.55879L13.3334 6.46776C13.6362 6.31058 13.9959 6.51777 14.0195 6.85057L14.0207 6.88543V11.1406C14.0207 11.4763 13.6813 11.7002 13.3764 11.578L13.345 11.5641L11.2315 10.54V11.2818C11.2315 11.5937 10.9887 11.8489 10.6819 11.8688L10.6432 11.8701H5.11851C4.80663 11.8701 4.55144 11.6274 4.53152 11.3205L4.53027 11.2818V6.71714C4.53027 6.40526 4.77299 6.15007 5.07983 6.13016L5.11851 6.12891H10.6432ZM10.2897 7.07007H5.4709V10.9289H10.2897V7.07007ZM13.0792 7.65972L11.2396 8.61454V9.49831L13.0792 10.3896V7.65972Z",
|
|
1071
1071
|
fill: "#107D57"
|
|
1072
|
-
})))),
|
|
1072
|
+
})))), Zn = (r) => /* @__PURE__ */ M.createElement("svg", {
|
|
1073
1073
|
width: 14,
|
|
1074
1074
|
height: 17,
|
|
1075
1075
|
viewBox: "0 0 14 17",
|
|
@@ -1087,7 +1087,7 @@ const yn = (r) => /* @__PURE__ */ M.createElement("svg", {
|
|
|
1087
1087
|
id: "Icon / Games_3",
|
|
1088
1088
|
d: "M7.74941 0.00278796L1.66605 0.487981C1.18503 0.526267 0.82584 0.949506 0.864126 1.42843L1.72313 12.2036C1.76142 12.6832 2.18327 13.0438 2.66359 13.0055L3.18754 12.9637L3.97219 3.12062C4.0418 2.24421 4.81101 1.58916 5.68742 1.65878L8.7776 1.90524L8.68986 0.804714C8.65157 0.32509 8.22973 -0.0354984 7.74941 0.00278796Z",
|
|
1089
1089
|
fill: "#107D57"
|
|
1090
|
-
}))),
|
|
1090
|
+
}))), Qn = (r) => /* @__PURE__ */ M.createElement("svg", {
|
|
1091
1091
|
width: 19,
|
|
1092
1092
|
height: 14,
|
|
1093
1093
|
viewBox: "0 0 19 14",
|
|
@@ -1102,7 +1102,7 @@ const yn = (r) => /* @__PURE__ */ M.createElement("svg", {
|
|
|
1102
1102
|
clipRule: "evenodd",
|
|
1103
1103
|
d: "M16.8236 2.46643C16.436 2.23624 16.1759 1.81093 16.1759 1.32432C16.1759 0.59292 16.7636 0 17.4885 0C18.2134 0 18.8011 0.59292 18.8011 1.32432C18.8011 1.81093 18.541 2.23624 18.1534 2.46643C18.5192 2.51678 18.8011 2.83327 18.8011 3.2162V10.7838C18.8011 11.2017 18.4653 11.5405 18.051 11.5405H16.926L16.9147 11.5404H10.9255V11.5406V13.2433C10.9255 13.6612 10.5897 14 10.1755 14H8.67539C8.26115 14 7.92534 13.6612 7.92534 13.2433V11.5406V11.5404H1.93622L1.92493 11.5405H0.799856C0.385614 11.5405 0.0498047 11.2017 0.0498047 10.7838V3.2162C0.0498047 2.83328 0.331692 2.51678 0.697521 2.46643C0.309923 2.23624 0.0498047 1.81093 0.0498047 1.32432C0.0498047 0.59292 0.637471 0 1.36239 0C2.08732 0 2.67498 0.59292 2.67498 1.32432C2.67498 1.81093 2.41487 2.23624 2.02727 2.46643C2.16328 2.48515 2.28769 2.54066 2.39032 2.62269C4.78264 1.62379 7.12768 1.12793 9.42545 1.13511C11.7225 1.14228 14.0669 1.63872 16.4584 2.62442C16.5615 2.54144 16.6867 2.48528 16.8236 2.46643ZM1.92494 10.7837L1.92493 3.21617H0.799862V10.7837H1.92494ZM16.1759 3.32547C13.8707 2.37522 11.6209 1.89875 9.42314 1.89189C7.2272 1.88503 4.97905 2.36051 2.675 3.32285V10.7837H16.1759V3.32547ZM17.4885 1.89189C17.7992 1.89189 18.0511 1.63779 18.0511 1.32433C18.0511 1.01087 17.7992 0.75676 17.4885 0.75676C17.1778 0.75676 16.926 1.01087 16.926 1.32433C16.926 1.63779 17.1778 1.89189 17.4885 1.89189ZM16.926 3.21617V10.7837H18.0511V3.21617H16.926ZM8.67538 13.2432V11.5405H10.1755V13.2432H8.67538ZM1.3624 1.89189C1.67308 1.89189 1.92494 1.63779 1.92494 1.32433C1.92494 1.01087 1.67308 0.75676 1.3624 0.75676C1.05172 0.75676 0.799862 1.01087 0.799862 1.32433C0.799862 1.63779 1.05172 1.89189 1.3624 1.89189Z",
|
|
1104
1104
|
fill: "#107D57"
|
|
1105
|
-
}))),
|
|
1105
|
+
}))), Hn = (r) => /* @__PURE__ */ M.createElement("svg", {
|
|
1106
1106
|
width: 20,
|
|
1107
1107
|
height: 20,
|
|
1108
1108
|
viewBox: "0 0 20 20",
|
|
@@ -1118,7 +1118,7 @@ const yn = (r) => /* @__PURE__ */ M.createElement("svg", {
|
|
|
1118
1118
|
strokeWidth: 1.2,
|
|
1119
1119
|
strokeLinecap: "round",
|
|
1120
1120
|
strokeLinejoin: "round"
|
|
1121
|
-
}))),
|
|
1121
|
+
}))), Gn = (r) => /* @__PURE__ */ M.createElement("svg", {
|
|
1122
1122
|
width: 20,
|
|
1123
1123
|
height: 20,
|
|
1124
1124
|
viewBox: "0 0 20 20",
|
|
@@ -1134,7 +1134,7 @@ const yn = (r) => /* @__PURE__ */ M.createElement("svg", {
|
|
|
1134
1134
|
strokeWidth: 1.2,
|
|
1135
1135
|
strokeLinecap: "round",
|
|
1136
1136
|
strokeLinejoin: "round"
|
|
1137
|
-
}))),
|
|
1137
|
+
}))), Wn = (r) => /* @__PURE__ */ M.createElement("svg", {
|
|
1138
1138
|
width: 16,
|
|
1139
1139
|
height: 16,
|
|
1140
1140
|
viewBox: "0 0 16 16",
|
|
@@ -1201,7 +1201,7 @@ const yn = (r) => /* @__PURE__ */ M.createElement("svg", {
|
|
|
1201
1201
|
clipRule: "evenodd",
|
|
1202
1202
|
d: "M2.00033 8.66676C1.6316 9.03545 1.03484 9.03478 0.666788 8.66676C0.298732 8.29873 0.298065 7.70203 0.666788 7.33334C1.03551 6.96465 1.63227 6.96531 2.00033 7.33334C2.36838 7.70136 2.36905 8.29806 2.00033 8.66676Z",
|
|
1203
1203
|
fill: "#107D57"
|
|
1204
|
-
}))),
|
|
1204
|
+
}))), qn = (r) => /* @__PURE__ */ M.createElement("svg", {
|
|
1205
1205
|
width: 16,
|
|
1206
1206
|
height: 16,
|
|
1207
1207
|
viewBox: "0 0 16 16",
|
|
@@ -1217,7 +1217,7 @@ const yn = (r) => /* @__PURE__ */ M.createElement("svg", {
|
|
|
1217
1217
|
d: "M9.7778 1.68421V5.05263H13.3333C13.8243 5.05263 14.2222 4.67561 14.2222 4.21053V2.52632C14.2222 2.06123 13.8243 1.68421 13.3333 1.68421H9.7778ZM2.66667 0C1.19391 0 0 1.13107 0 2.52632V4.21053C0 5.60577 1.19391 6.73684 2.66667 6.73684H13.3333C14.8061 6.73684 16 5.60577 16 4.21053V2.52632C16 1.13107 14.8061 0 13.3333 0H2.66667ZM4.44446 10.9473H13.3333C13.8243 10.9473 14.2222 11.3243 14.2222 11.7894V13.4736C14.2222 13.9387 13.8243 14.3157 13.3333 14.3157H4.44446V10.9473ZM0 11.7894C0 10.3942 1.19391 9.2631 2.66667 9.2631H13.3333C14.8061 9.2631 16 10.3942 16 11.7894V13.4736C16 14.8689 14.8061 15.9999 13.3333 15.9999H2.66667C1.19391 15.9999 0 14.8689 0 13.4736V11.7894Z",
|
|
1218
1218
|
fill: "white",
|
|
1219
1219
|
fillOpacity: 0.5
|
|
1220
|
-
}))),
|
|
1220
|
+
}))), Jn = (r) => /* @__PURE__ */ M.createElement("svg", {
|
|
1221
1221
|
width: 16,
|
|
1222
1222
|
height: 16,
|
|
1223
1223
|
viewBox: "0 0 16 16",
|
|
@@ -1233,7 +1233,7 @@ const yn = (r) => /* @__PURE__ */ M.createElement("svg", {
|
|
|
1233
1233
|
d: "M16 7.00522C16 7.00522 9.20048 6.81607 9.20048 0C9.20048 6.36168 3.27729 6.95056 2.48756 7.00078L2.40094 7.00522C2.40094 7.00522 9.20048 7.19435 9.20048 14.0104C9.20048 7.64877 15.1234 7.05989 15.9131 7.00964L16 7.00522ZM6.97382 12.5652C6.97382 12.5652 3.48691 12.4724 3.48691 9.13033C3.48691 12.2496 0.449402 12.5384 0.0444186 12.563L0 12.5652C0 12.5652 3.48691 12.6579 3.48691 16C3.48691 12.8807 6.52429 12.592 6.92927 12.5673L6.97382 12.5652Z",
|
|
1234
1234
|
fill: "white",
|
|
1235
1235
|
fillOpacity: 0.5
|
|
1236
|
-
}))),
|
|
1236
|
+
}))), Xn = (r) => /* @__PURE__ */ M.createElement("svg", {
|
|
1237
1237
|
width: 16,
|
|
1238
1238
|
height: 16,
|
|
1239
1239
|
viewBox: "0 0 16 16",
|
|
@@ -1249,7 +1249,7 @@ const yn = (r) => /* @__PURE__ */ M.createElement("svg", {
|
|
|
1249
1249
|
d: "M2.01663 1.3808C0.739913 1.55586 -0.153153 2.73276 0.021912 4.00948L1.3808 13.9196C1.55586 15.1963 2.73276 16.0894 4.00948 15.9143L13.9196 14.5554C15.1963 14.3803 16.0894 13.2034 15.9143 11.9267L14.5554 2.01663C14.3803 0.739913 13.2034 -0.153153 11.9267 0.021912L2.01663 1.3808ZM9.59613 3.788C9.11431 3.46991 8.47813 3.30151 7.7566 3.30151C7.54377 3.30151 7.32625 3.31671 7.10872 3.34478C6.38836 3.44067 5.68901 3.79034 5.18965 4.30138C4.68445 4.82062 4.4377 5.45563 4.51722 6.04151C4.57452 6.4742 4.90078 6.7537 5.34635 6.7537C5.39429 6.7537 5.44341 6.7502 5.49136 6.74435C6.08778 6.66483 6.21642 6.25436 6.34036 5.85675L6.34045 5.85648C6.48192 5.40401 6.61534 4.97731 7.38585 4.87444C7.46537 4.86391 7.54138 4.85806 7.61506 4.85806C8.16939 4.85806 8.51436 5.15042 8.58454 5.68252C8.65353 6.20293 8.24307 6.61807 7.80684 7.0566L7.80393 7.05954C7.31582 7.55231 6.7639 8.1095 6.86895 8.90083C6.89585 9.10548 6.9859 9.29493 7.12272 9.43644C7.27826 9.599 7.4829 9.68436 7.71331 9.68436C7.75541 9.68436 7.79868 9.68203 7.84311 9.67618C8.46691 9.59324 8.55162 9.23139 8.63338 8.8821L8.63365 8.88097L8.63661 8.86859C8.66723 8.7403 8.69877 8.60813 8.75995 8.48804C8.84649 8.31613 9.06283 8.11265 9.31428 7.87875C9.9142 7.31858 10.734 6.55143 10.582 5.41589C10.4872 4.70603 10.1551 4.15757 9.59611 3.78802L9.59613 3.788ZM8.11605 10.28C8.06927 10.28 8.02132 10.2836 7.97454 10.2894C7.38396 10.3689 6.96765 10.9127 7.04599 11.5033C7.11733 12.0377 7.57808 12.4412 8.1172 12.4412C8.16397 12.4412 8.21192 12.4377 8.25987 12.4318C8.85045 12.3523 9.2656 11.8085 9.18842 11.2179C9.11591 10.6823 8.65517 10.28 8.11605 10.28Z",
|
|
1250
1250
|
fill: "white",
|
|
1251
1251
|
fillOpacity: 0.5
|
|
1252
|
-
}))),
|
|
1252
|
+
}))), Kn = (r) => /* @__PURE__ */ M.createElement("svg", {
|
|
1253
1253
|
width: 16,
|
|
1254
1254
|
height: 16,
|
|
1255
1255
|
viewBox: "0 0 16 16",
|
|
@@ -1263,46 +1263,46 @@ const yn = (r) => /* @__PURE__ */ M.createElement("svg", {
|
|
|
1263
1263
|
d: "M16 8C16 12.4183 12.4183 16 8 16C3.58172 16 0 12.4183 0 8C0 3.58172 3.58172 0 8 0C12.4183 0 16 3.58172 16 8ZM11.6057 5.43441C11.2933 5.12199 10.7868 5.12199 10.4744 5.43441L6.93812 9.97066L5.08382 8.73446C4.7162 8.48938 4.2195 8.58871 3.97442 8.95634C3.72934 9.32396 3.82868 9.82065 4.1963 10.0657L6.5963 11.6657C6.9136 11.8773 7.33609 11.8354 7.60574 11.5658L11.6057 6.56578C11.9182 6.25336 11.9182 5.74683 11.6057 5.43441Z",
|
|
1264
1264
|
fill: "#107D57"
|
|
1265
1265
|
})), Jt = {
|
|
1266
|
-
"invite-game-icon":
|
|
1267
|
-
"icon-trophy":
|
|
1268
|
-
"icon-play":
|
|
1269
|
-
"icon-trophy-green":
|
|
1270
|
-
"icon-trivia":
|
|
1271
|
-
"icon-thumb-down":
|
|
1272
|
-
"icon-star":
|
|
1273
|
-
"icon-prediction":
|
|
1274
|
-
"icon-insight":
|
|
1275
|
-
"icon-poll":
|
|
1276
|
-
"icon-masters-logo":
|
|
1277
|
-
"icon-logout":
|
|
1278
|
-
"icon-link":
|
|
1279
|
-
"icon-external-link":
|
|
1280
|
-
"icon-invite-arrow":
|
|
1281
|
-
"icon-friends":
|
|
1282
|
-
"icon-exit":
|
|
1283
|
-
"icon-default-user-avatar":
|
|
1284
|
-
"icon-cross":
|
|
1285
|
-
"icon-close":
|
|
1286
|
-
"icon-close-btn-white":
|
|
1287
|
-
"icon-circle-arrow-right":
|
|
1288
|
-
"icon-chevron":
|
|
1289
|
-
"icon-chevron-white-left":
|
|
1290
|
-
"icon-chevron-left":
|
|
1291
|
-
"icon-check-white":
|
|
1292
|
-
"icon-check-green":
|
|
1293
|
-
"icon-btn-channels":
|
|
1294
|
-
"icon-btn-feature-groups":
|
|
1295
|
-
"icon-btn-leaderboard":
|
|
1296
|
-
"icon-check":
|
|
1297
|
-
"icon-arrow":
|
|
1298
|
-
correct:
|
|
1299
|
-
incorrect:
|
|
1300
|
-
selected:
|
|
1266
|
+
"invite-game-icon": Yn,
|
|
1267
|
+
"icon-trophy": Pn,
|
|
1268
|
+
"icon-play": On,
|
|
1269
|
+
"icon-trophy-green": Fn,
|
|
1270
|
+
"icon-trivia": Xn,
|
|
1271
|
+
"icon-thumb-down": $n,
|
|
1272
|
+
"icon-star": Un,
|
|
1273
|
+
"icon-prediction": Jn,
|
|
1274
|
+
"icon-insight": Wn,
|
|
1275
|
+
"icon-poll": qn,
|
|
1276
|
+
"icon-masters-logo": _n,
|
|
1277
|
+
"icon-logout": Rn,
|
|
1278
|
+
"icon-link": bn,
|
|
1279
|
+
"icon-external-link": jn,
|
|
1280
|
+
"icon-invite-arrow": kn,
|
|
1281
|
+
"icon-friends": Bn,
|
|
1282
|
+
"icon-exit": Sn,
|
|
1283
|
+
"icon-default-user-avatar": zn,
|
|
1284
|
+
"icon-cross": wn,
|
|
1285
|
+
"icon-close": Ln,
|
|
1286
|
+
"icon-close-btn-white": Dn,
|
|
1287
|
+
"icon-circle-arrow-right": vn,
|
|
1288
|
+
"icon-chevron": Tn,
|
|
1289
|
+
"icon-chevron-white-left": xn,
|
|
1290
|
+
"icon-chevron-left": Nn,
|
|
1291
|
+
"icon-check-white": An,
|
|
1292
|
+
"icon-check-green": En,
|
|
1293
|
+
"icon-btn-channels": Vn,
|
|
1294
|
+
"icon-btn-feature-groups": Zn,
|
|
1295
|
+
"icon-btn-leaderboard": Qn,
|
|
1296
|
+
"icon-check": Cn,
|
|
1297
|
+
"icon-arrow": Mn,
|
|
1298
|
+
correct: Hn,
|
|
1299
|
+
incorrect: Gn,
|
|
1300
|
+
selected: Kn
|
|
1301
1301
|
}, Ue = ({
|
|
1302
1302
|
name: r,
|
|
1303
1303
|
style: o,
|
|
1304
1304
|
className: l,
|
|
1305
|
-
...
|
|
1305
|
+
...u
|
|
1306
1306
|
}) => {
|
|
1307
1307
|
if (!Jt[r])
|
|
1308
1308
|
return /* @__PURE__ */ p("span", {
|
|
@@ -1312,203 +1312,264 @@ const yn = (r) => /* @__PURE__ */ M.createElement("svg", {
|
|
|
1312
1312
|
return /* @__PURE__ */ p(d, {
|
|
1313
1313
|
style: o,
|
|
1314
1314
|
className: l,
|
|
1315
|
-
...
|
|
1315
|
+
...u
|
|
1316
1316
|
});
|
|
1317
1317
|
};
|
|
1318
|
-
const
|
|
1318
|
+
const e1 = () => Ue, t1 = () => Ue, i1 = /* @__PURE__ */ m("div")({
|
|
1319
1319
|
name: "s",
|
|
1320
1320
|
class: "s1lblda3",
|
|
1321
1321
|
propsAsIs: !1
|
|
1322
|
-
}),
|
|
1322
|
+
}), r1 = /* @__PURE__ */ m("div")({
|
|
1323
1323
|
name: "a",
|
|
1324
1324
|
class: "ascvb2g",
|
|
1325
1325
|
propsAsIs: !1
|
|
1326
|
-
}),
|
|
1326
|
+
}), n1 = /* @__PURE__ */ m("div")({
|
|
1327
1327
|
name: "p",
|
|
1328
1328
|
class: "p17rl8zy",
|
|
1329
1329
|
propsAsIs: !1
|
|
1330
|
-
}),
|
|
1330
|
+
}), o1 = /* @__PURE__ */ m("div")({
|
|
1331
1331
|
name: "l",
|
|
1332
1332
|
class: "l1vvttbn",
|
|
1333
1333
|
propsAsIs: !1
|
|
1334
|
-
}), Mt = /* @__PURE__ */ m(
|
|
1334
|
+
}), Mt = /* @__PURE__ */ m(e1())({
|
|
1335
1335
|
name: "c",
|
|
1336
1336
|
class: "c6fk2ph",
|
|
1337
1337
|
propsAsIs: !0
|
|
1338
|
-
}),
|
|
1338
|
+
}), s1 = /* @__PURE__ */ m(t1())({
|
|
1339
1339
|
name: "d",
|
|
1340
1340
|
class: "d1rdm136",
|
|
1341
1341
|
propsAsIs: !0
|
|
1342
|
-
}),
|
|
1342
|
+
}), a1 = /* @__PURE__ */ m("div")({
|
|
1343
1343
|
name: "f",
|
|
1344
1344
|
class: "fwqnnel",
|
|
1345
1345
|
propsAsIs: !1
|
|
1346
|
-
}),
|
|
1346
|
+
}), l1 = /* @__PURE__ */ m("div")({
|
|
1347
1347
|
name: "u",
|
|
1348
1348
|
class: "ucyxnlg",
|
|
1349
1349
|
propsAsIs: !1
|
|
1350
|
-
}),
|
|
1350
|
+
}), c1 = {
|
|
1351
1351
|
[et.LOST]: /* @__PURE__ */ p(Mt, { name: "icon-cross" }),
|
|
1352
1352
|
[et.WON]: /* @__PURE__ */ p(Mt, { name: "icon-check" }),
|
|
1353
1353
|
[et.UNSET]: void 0,
|
|
1354
1354
|
[et.DNP]: /* @__PURE__ */ p(Mt, { name: "icon-arrow" })
|
|
1355
|
-
},
|
|
1355
|
+
}, u1 = ({
|
|
1356
1356
|
questionId: r,
|
|
1357
1357
|
questionType: o,
|
|
1358
1358
|
questionStatus: l,
|
|
1359
|
-
subject:
|
|
1359
|
+
subject: u,
|
|
1360
1360
|
openForVoting: d,
|
|
1361
1361
|
openQuestion: g,
|
|
1362
1362
|
status: f
|
|
1363
1363
|
}) => {
|
|
1364
|
-
const s =
|
|
1365
|
-
return s ? /* @__PURE__ */ L(
|
|
1366
|
-
/* @__PURE__ */ L(
|
|
1367
|
-
/* @__PURE__ */ L(
|
|
1368
|
-
/* @__PURE__ */ p(
|
|
1369
|
-
/* @__PURE__ */ L(
|
|
1364
|
+
const s = yn[o], I = c1[f];
|
|
1365
|
+
return s ? /* @__PURE__ */ L(i1, { onClick: () => g == null ? void 0 : g(r), children: [
|
|
1366
|
+
/* @__PURE__ */ L(l1, { children: [
|
|
1367
|
+
/* @__PURE__ */ L(r1, { children: [
|
|
1368
|
+
/* @__PURE__ */ p(s1, { name: s.iconName }),
|
|
1369
|
+
/* @__PURE__ */ L(a1, { children: [
|
|
1370
1370
|
s.label,
|
|
1371
1371
|
o === H.TRIVIA && l === Rt.RESOLVED && " • Expired"
|
|
1372
1372
|
] })
|
|
1373
1373
|
] }),
|
|
1374
|
-
/* @__PURE__ */ p(
|
|
1374
|
+
/* @__PURE__ */ p(n1, { children: u || "" })
|
|
1375
1375
|
] }),
|
|
1376
|
-
/* @__PURE__ */ p(
|
|
1376
|
+
/* @__PURE__ */ p(o1, { children: I || (d ? /* @__PURE__ */ p(In, { children: "Play" }) : null) })
|
|
1377
1377
|
] }) : null;
|
|
1378
1378
|
};
|
|
1379
|
-
const
|
|
1379
|
+
const h1 = /* @__PURE__ */ m("div")({
|
|
1380
|
+
name: "e",
|
|
1381
|
+
class: "e1q4ysxt",
|
|
1382
|
+
propsAsIs: !1
|
|
1383
|
+
}), d1 = /* @__PURE__ */ m("div")({
|
|
1384
|
+
name: "o",
|
|
1385
|
+
class: "ouyy0pt",
|
|
1386
|
+
propsAsIs: !1
|
|
1387
|
+
}), p1 = /* @__PURE__ */ m("div")({
|
|
1388
|
+
name: "n",
|
|
1389
|
+
class: "n19nxf9u",
|
|
1390
|
+
propsAsIs: !1
|
|
1391
|
+
}), f1 = /* @__PURE__ */ m("img")({
|
|
1392
|
+
name: "r",
|
|
1393
|
+
class: "r1k9ayhp",
|
|
1394
|
+
propsAsIs: !1
|
|
1395
|
+
}), g1 = /* @__PURE__ */ m("img")({
|
|
1396
|
+
name: "l",
|
|
1397
|
+
class: "l5j3lzi",
|
|
1398
|
+
propsAsIs: !1
|
|
1399
|
+
}), m1 = /* @__PURE__ */ m("img")({
|
|
1400
|
+
name: "s",
|
|
1401
|
+
class: "sm6ggfo",
|
|
1402
|
+
propsAsIs: !1
|
|
1403
|
+
}), I1 = /* @__PURE__ */ m("div")({
|
|
1404
|
+
name: "p",
|
|
1405
|
+
class: "p1dhscaj",
|
|
1406
|
+
propsAsIs: !1
|
|
1407
|
+
}), y1 = /* @__PURE__ */ m("img")({
|
|
1408
|
+
name: "a",
|
|
1409
|
+
class: "a1f5isrh",
|
|
1410
|
+
propsAsIs: !1
|
|
1411
|
+
}), M1 = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTciIHZpZXdCb3g9IjAgMCAxNiAxNyIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGcgaWQ9IkNoZXZyb24iPgo8cGF0aCBpZD0iQ2hldnJvbl8yIiBkPSJNMTIgOC4xNzIyMkMxMiA4LjI4NzgzIDExLjk3ODEgOC4zOTU1MyAxMS45MzQyIDguNDk1MzNDMTEuODkwMyA4LjU5NTEzIDExLjgyMiA4LjY4OTkyIDExLjcyOTIgOC43Nzk3TDYuMzY5NDkgMTMuOTQzOUM2LjIxNDYyIDE0LjA5NjUgNi4wMjc0MiAxNC4xNzI5IDUuODA3ODcgMTQuMTcyOUM1LjY1NzUyIDE0LjE3MjkgNS41MjE5MSAxNC4xMzc5IDUuNDAxMDQgMTQuMDY3OUM1LjI4MDE2IDEzLjk5OCA1LjE4MzEgMTMuOTAzOSA1LjEwOTg2IDEzLjc4NTZDNS4wMzY2MiAxMy42NjczIDUgMTMuNTM0NSA1IDEzLjM4NzNDNSAxMy4xNzIxIDUuMDgyODggMTIuOTgxOCA1LjI0ODYzIDEyLjgxNjRMMTAuMDgwNyA4LjE3MDk1TDUuMjQ4NjMgMy41Mjc5OUM1LjA4Mjg4IDMuMzY0MjUgNSAzLjE3NDM5IDUgMi45NTg0MUM1IDIuODExMTggNS4wMzY2MiAyLjY3ODQyIDUuMTA5ODYgMi41NjAxM0M1LjE4MzEgMi40NDE4MyA1LjI4MDE2IDIuMzQ3NzEgNS40MDEwNCAyLjI3Nzc3QzUuNTIxOTEgMi4yMDc4MiA1LjY1NzUyIDIuMTcyODUgNS44MDc4NyAyLjE3Mjg1QzYuMDI3NDIgMi4xNzI4NSA2LjIxNDYyIDIuMjQ3MzEgNi4zNjk0OSAyLjM5NjI0TDExLjcyOTIgNy41NjQ3M0MxMS44MjExIDcuNjU0NTEgMTEuODg5IDcuNzQ5MDkgMTEuOTMyOSA3Ljg0ODQ2QzExLjk3NjggNy45NDc4NCAxMS45OTkxIDguMDU1NzYgMTIgOC4xNzIyMloiIGZpbGw9IiNGRkZGRkYiLz4KPC9nPgo8L3N2Zz4K", C1 = (r, o) => {
|
|
1412
|
+
switch (r) {
|
|
1413
|
+
case Me.ROUNDED:
|
|
1414
|
+
return /* @__PURE__ */ p(g1, { alt: "insight-icon", src: o });
|
|
1415
|
+
case Me.TRANSPARENT:
|
|
1416
|
+
return /* @__PURE__ */ p(m1, { alt: "insight-icon", src: o });
|
|
1417
|
+
case Me.CENTERED:
|
|
1418
|
+
return /* @__PURE__ */ p(f1, { alt: "insight-icon", src: o });
|
|
1419
|
+
default:
|
|
1420
|
+
return null;
|
|
1421
|
+
}
|
|
1422
|
+
}, Mi = ({ title: r, image: o, questionId: l, imageMode: u, openInsight: d }) => /* @__PURE__ */ L(h1, { onClick: () => d(l), children: [
|
|
1423
|
+
/* @__PURE__ */ p(p1, { children: o && C1(u, o) }),
|
|
1424
|
+
/* @__PURE__ */ L(d1, { children: [
|
|
1425
|
+
/* @__PURE__ */ p(I1, { children: r || "" }),
|
|
1426
|
+
/* @__PURE__ */ p(y1, { alt: "next-icon", src: M1 })
|
|
1427
|
+
] })
|
|
1428
|
+
] });
|
|
1429
|
+
const w1 = /* @__PURE__ */ m("div")({
|
|
1380
1430
|
name: "t",
|
|
1381
1431
|
class: "t19vr3p1",
|
|
1382
1432
|
propsAsIs: !1
|
|
1383
|
-
}),
|
|
1384
|
-
|
|
1433
|
+
}), E1 = ({ questions: r, openQuestion: o }) => /* @__PURE__ */ p(w1, { children: r == null ? void 0 : r.map((l) => {
|
|
1434
|
+
var u, d;
|
|
1435
|
+
if (l.type === "question" && ((u = l.attributes) == null ? void 0 : u.attributes.case) === "question") {
|
|
1436
|
+
const g = l.attributes.attributes.value;
|
|
1437
|
+
return /* @__PURE__ */ p(u1, { openQuestion: o, ...g }, g.questionId);
|
|
1438
|
+
}
|
|
1439
|
+
if (l.type === "insight" && ((d = l.attributes) == null ? void 0 : d.attributes.case) === "insight") {
|
|
1440
|
+
const g = l.attributes.attributes.value;
|
|
1441
|
+
return /* @__PURE__ */ p(Mi, { ...g, openInsight: o }, g.questionId);
|
|
1442
|
+
}
|
|
1443
|
+
return null;
|
|
1444
|
+
}) }), Ci = (r) => r.split(/\s+/).map((o) => o[0]).join("").toUpperCase(), wi = (r) => r ? r.toLocaleString("en-US") : "0";
|
|
1445
|
+
const A1 = /* @__PURE__ */ m("div")({
|
|
1385
1446
|
name: "t",
|
|
1386
1447
|
class: "taj61ja",
|
|
1387
1448
|
propsAsIs: !1
|
|
1388
|
-
}),
|
|
1449
|
+
}), N1 = /* @__PURE__ */ m("div")({
|
|
1389
1450
|
name: "r",
|
|
1390
1451
|
class: "r19fxewd",
|
|
1391
1452
|
propsAsIs: !1
|
|
1392
|
-
}),
|
|
1453
|
+
}), x1 = /* @__PURE__ */ m("div")({
|
|
1393
1454
|
name: "i",
|
|
1394
1455
|
class: "i1whkbqh",
|
|
1395
1456
|
propsAsIs: !1
|
|
1396
|
-
}), Xt = ({ indicator: r, title: o }) => /* @__PURE__ */ L(
|
|
1397
|
-
/* @__PURE__ */ p(
|
|
1398
|
-
/* @__PURE__ */ p(
|
|
1457
|
+
}), Xt = ({ indicator: r, title: o }) => /* @__PURE__ */ L(A1, { children: [
|
|
1458
|
+
/* @__PURE__ */ p(N1, { children: o }),
|
|
1459
|
+
/* @__PURE__ */ p(x1, { children: r })
|
|
1399
1460
|
] });
|
|
1400
|
-
const
|
|
1461
|
+
const T1 = /* @__PURE__ */ m("div")({
|
|
1401
1462
|
name: "i",
|
|
1402
1463
|
class: "i4lbhzs",
|
|
1403
1464
|
propsAsIs: !1
|
|
1404
|
-
}),
|
|
1465
|
+
}), v1 = /* @__PURE__ */ m("div")({
|
|
1405
1466
|
name: "o",
|
|
1406
1467
|
class: "ordquhq",
|
|
1407
1468
|
propsAsIs: !1
|
|
1408
|
-
}),
|
|
1469
|
+
}), D1 = /* @__PURE__ */ m("div")({
|
|
1409
1470
|
name: "n",
|
|
1410
1471
|
class: "nwzed99",
|
|
1411
1472
|
propsAsIs: !1
|
|
1412
|
-
}), it = ({ indicator: r, title: o }) => /* @__PURE__ */ L(
|
|
1413
|
-
/* @__PURE__ */ p(
|
|
1414
|
-
/* @__PURE__ */ p(
|
|
1473
|
+
}), it = ({ indicator: r, title: o }) => /* @__PURE__ */ L(T1, { children: [
|
|
1474
|
+
/* @__PURE__ */ p(v1, { children: r }),
|
|
1475
|
+
/* @__PURE__ */ p(D1, { children: o })
|
|
1415
1476
|
] });
|
|
1416
|
-
const
|
|
1477
|
+
const L1 = /* @__PURE__ */ m("div")({
|
|
1417
1478
|
name: "o",
|
|
1418
1479
|
class: "o15y0waw",
|
|
1419
1480
|
propsAsIs: !1
|
|
1420
|
-
}),
|
|
1481
|
+
}), z1 = /* @__PURE__ */ m("div")({
|
|
1421
1482
|
name: "i",
|
|
1422
1483
|
class: "ihjewwf",
|
|
1423
1484
|
propsAsIs: !1
|
|
1424
|
-
}),
|
|
1485
|
+
}), S1 = /* @__PURE__ */ m("div")({
|
|
1425
1486
|
name: "n",
|
|
1426
1487
|
class: "n10e9lv8",
|
|
1427
1488
|
propsAsIs: !1
|
|
1428
|
-
}),
|
|
1489
|
+
}), j1 = /* @__PURE__ */ m("div")({
|
|
1429
1490
|
name: "r",
|
|
1430
1491
|
class: "r13bxv",
|
|
1431
1492
|
propsAsIs: !1
|
|
1432
|
-
}),
|
|
1493
|
+
}), B1 = /* @__PURE__ */ m("img")({
|
|
1433
1494
|
name: "a",
|
|
1434
1495
|
class: "a1fi59c9",
|
|
1435
1496
|
propsAsIs: !1
|
|
1436
|
-
}),
|
|
1497
|
+
}), k1 = /* @__PURE__ */ m("div")({
|
|
1437
1498
|
name: "s",
|
|
1438
1499
|
class: "s1kkihge",
|
|
1439
1500
|
propsAsIs: !1
|
|
1440
|
-
}),
|
|
1501
|
+
}), b1 = /* @__PURE__ */ m("div")({
|
|
1441
1502
|
name: "c",
|
|
1442
1503
|
class: "cy4f4t",
|
|
1443
1504
|
propsAsIs: !1
|
|
1444
|
-
}),
|
|
1505
|
+
}), R1 = /* @__PURE__ */ m("div")({
|
|
1445
1506
|
name: "p",
|
|
1446
1507
|
class: "p18cnlx1",
|
|
1447
1508
|
propsAsIs: !1
|
|
1448
|
-
}),
|
|
1509
|
+
}), _1 = /* @__PURE__ */ m("img")({
|
|
1449
1510
|
name: "l",
|
|
1450
1511
|
class: "lboqgs5",
|
|
1451
1512
|
propsAsIs: !1
|
|
1452
|
-
}),
|
|
1513
|
+
}), O1 = /* @__PURE__ */ m("div")({
|
|
1453
1514
|
name: "d",
|
|
1454
1515
|
class: "d1oaal4",
|
|
1455
1516
|
propsAsIs: !1
|
|
1456
|
-
}),
|
|
1517
|
+
}), U1 = /* @__PURE__ */ m("div")({
|
|
1457
1518
|
name: "x",
|
|
1458
1519
|
class: "x1yzgo0u",
|
|
1459
1520
|
propsAsIs: !1
|
|
1460
|
-
}),
|
|
1521
|
+
}), $1 = /* @__PURE__ */ m("div")({
|
|
1461
1522
|
name: "f",
|
|
1462
1523
|
class: "f1l9i8s8",
|
|
1463
1524
|
propsAsIs: !1
|
|
1464
|
-
}),
|
|
1525
|
+
}), F1 = /* @__PURE__ */ m("div")({
|
|
1465
1526
|
name: "g",
|
|
1466
1527
|
class: "g4cgl4u",
|
|
1467
1528
|
propsAsIs: !1
|
|
1468
|
-
}),
|
|
1529
|
+
}), P1 = /* @__PURE__ */ m("div")({
|
|
1469
1530
|
name: "h",
|
|
1470
1531
|
class: "h1qn1tmd",
|
|
1471
1532
|
propsAsIs: !1
|
|
1472
|
-
}),
|
|
1533
|
+
}), Y1 = /* @__PURE__ */ m("div")({
|
|
1473
1534
|
name: "u",
|
|
1474
1535
|
class: "u1gsbhq4",
|
|
1475
1536
|
propsAsIs: !1
|
|
1476
|
-
}),
|
|
1537
|
+
}), V1 = /* @__PURE__ */ m("div")({
|
|
1477
1538
|
name: "m",
|
|
1478
1539
|
class: "mvj8oco",
|
|
1479
1540
|
propsAsIs: !1
|
|
1480
|
-
}),
|
|
1541
|
+
}), Z1 = /* @__PURE__ */ m("button")({
|
|
1481
1542
|
name: "v",
|
|
1482
1543
|
class: "viqiaf2",
|
|
1483
1544
|
propsAsIs: !1
|
|
1484
|
-
}),
|
|
1545
|
+
}), Q1 = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGcgaWQ9IlRyb3BoeSI+CjxwYXRoIGlkPSJDb21iaW5lZCBTaGFwZSIgZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0zLjY5MTk3IDQuNjY2NjJDMy42OTE5NyA1Ljk5NzA1IDMuOTI5MTQgNy4xNzc4NyA0LjQwMzUgOC4yMDkxMkMzLjQ5OTY2IDguMDI0NTEgMi43NDQ4NyA3LjY2NDg2IDIuMTM5MSA3LjEzMDE0QzEuNTMzMzMgNi41OTU0MiAxLjIzMDQ2IDYuMDc5OCAxLjIzMDQ2IDUuNTgzMjhWNC42NjY2MkgzLjY5MTk3Wk0xNC43Njg2IDQuNjY2NjJWNS41ODMyOEMxNC43Njg2IDYuMDc5OCAxNC40NjU4IDYuNTk1NDIgMTMuODYgNy4xMzAxNEMxMy4yNTQyIDcuNjY0ODYgMTIuNDk5NCA4LjAyNDUxIDExLjU5NTYgOC4yMDkxMkMxMi4wNjk5IDcuMTc3ODcgMTIuMzA3MSA1Ljk5NzA1IDEyLjMwNzEgNC42NjY2MkgxNC43Njg2Wk0xNS45OTk4IDUuNTgzMjlWNC4zNjEwOEMxNS45OTk4IDQuMTA2NDUgMTUuOTEwMSAzLjg5MDAyIDE1LjczMDYgMy43MTE3OEMxNS41NTExIDMuNTMzNTQgMTUuMzMzMiAzLjQ0NDQyIDE1LjA3NjggMy40NDQ0MkgxMi4zMDc2VjIuNTI3NzZDMTIuMzA3NiAyLjEwNzYzIDEyLjE1NjkgMS43NDc5NyAxMS44NTU2IDEuNDQ4NzhDMTEuNTU0NCAxLjE0OTU5IDExLjE5MjIgMSAxMC43NjkxIDFINS4yMzA3MkM0LjgwNzY0IDEgNC40NDU0NyAxLjE0OTU5IDQuMTQ0MTkgMS40NDg3OEMzLjg0MjkxIDEuNzQ3OTcgMy42OTIyNyAyLjEwNzYzIDMuNjkyMjcgMi41Mjc3NlYzLjQ0NDQySDAuOTIzMDY4QzAuNjY2NjU5IDMuNDQ0NDIgMC40NDg3MTQgMy41MzM1NCAwLjI2OTIyOCAzLjcxMTc4QzAuMDg5NzQxOCAzLjg5MDAyIDAgNC4xMDY0NSAwIDQuMzYxMDhWNS41ODMyOUMwIDYuMDM1MjUgMC4xMzMwMSA2LjQ5MDM5IDAuMzk5MDM0IDYuOTQ4NzJDMC42NjUwNTkgNy40MDcwNSAxLjAyNDAzIDcuODIwODIgMS40NzU5NSA4LjE5MDAzQzEuOTI3ODcgOC41NTkyNCAyLjQ4MjM0IDguODY5NTcgMy4xMzkzOSA5LjEyMTAxQzMuNzk2NDQgOS4zNzI0NiA0LjQ4NzEzIDkuNTE0MDkgNS4yMTE0OSA5LjU0NTkyQzUuNDgwNzEgOS44ODk2NyA1Ljc4NTIgMTAuMTkyIDYuMTI0OTQgMTAuNDUzQzYuMzY4NTMgMTAuNjY5NSA2LjUzNjc5IDEwLjkwMDIgNi42Mjk3NCAxMS4xNDUzQzYuNzIyNjkgMTEuMzkwNCA2Ljc2OTE2IDExLjY3NTIgNi43NjkxNiAxMS45OTk5QzYuNzY5MTYgMTIuMzQzNiA2LjY3MTQxIDEyLjYzMzMgNi40NzU5IDEyLjg2ODhDNi4yODAzOCAxMy4xMDQzIDUuOTY3ODkgMTMuMjIyMSA1LjUzODQxIDEzLjIyMjFDNS4wNTc2NCAxMy4yMjIxIDQuNjI5NzYgMTMuMzY2OSA0LjI1NDc2IDEzLjY1NjZDMy44Nzk3NyAxMy45NDYyIDMuNjkyMjcgMTQuMzEwNiAzLjY5MjI3IDE0Ljc0OTlWMTUuMzYxQzMuNjkyMjcgMTUuNDUwMSAzLjcyMTEyIDE1LjUyMzMgMy43Nzg4MSAxNS41ODA2QzMuODM2NSAxNS42Mzc5IDMuOTEwMjIgMTUuNjY2NSAzLjk5OTk2IDE1LjY2NjVIMTEuOTk5OUMxMi4wODk2IDE1LjY2NjUgMTIuMTYzMyAxNS42Mzc5IDEyLjIyMSAxNS41ODA2QzEyLjI3ODcgMTUuNTIzMyAxMi4zMDc2IDE1LjQ1MDEgMTIuMzA3NiAxNS4zNjFWMTQuNzQ5OUMxMi4zMDc2IDE0LjMxMDYgMTIuMTIwMSAxMy45NDYyIDExLjc0NTEgMTMuNjU2NkMxMS4zNzAxIDEzLjM2NjkgMTAuOTQyMiAxMy4yMjIxIDEwLjQ2MTQgMTMuMjIyMUMxMC4wMzE5IDEzLjIyMjEgOS43MTk0NSAxMy4xMDQzIDkuNTIzOTQgMTIuODY4OEM5LjMyODQzIDEyLjYzMzMgOS4yMzA2OCAxMi4zNDM2IDkuMjMwNjggMTEuOTk5OUM5LjIzMDY4IDExLjY3NTIgOS4yNzcxNSAxMS4zOTA0IDkuMzcwMSAxMS4xNDUzQzkuNDYzMDUgMTAuOTAwMiA5LjYzMTMxIDEwLjY2OTUgOS44NzQ5IDEwLjQ1M0MxMC4yMTQ2IDEwLjE5MiAxMC41MTkxIDkuODg5NjcgMTAuNzg4NCA5LjU0NTkyQzExLjUxMjcgOS41MTQwOSAxMi4yMDM0IDkuMzcyNDYgMTIuODYwNCA5LjEyMTAxQzEzLjUxNzUgOC44Njk1NyAxNC4wNzIgOC41NTkyNCAxNC41MjM5IDguMTkwMDNDMTQuOTc1OCA3LjgyMDgyIDE1LjMzNDggNy40MDcwNSAxNS42MDA4IDYuOTQ4NzJDMTUuODY2OCA2LjQ5MDM5IDE1Ljk5OTggNi4wMzUyNSAxNS45OTk4IDUuNTgzMjlaTTYuNzYwNDcgNy4xNzk4TDguMDUxMDkgNi40OTk5N0w5LjM0MTcgNy4xNzk4TDkuMDk1MjEgNS43Mzk4OUwxMC4xMzkzIDQuNzIwMTVMOC42OTYzOSA0LjUxMDA3TDguMDUxMDkgMy4yTDcuNDA1NzggNC41MTAwN0w1Ljk2MjgzIDQuNzIwMTVMNy4wMDY5NiA1LjczOTg5TDYuNzYwNDcgNy4xNzk4WiIgZmlsbD0iI0YyQzk0QyIvPgo8L2c+Cjwvc3ZnPgo=", H1 = ({
|
|
1485
1546
|
avatar: r,
|
|
1486
1547
|
name: o,
|
|
1487
1548
|
points: l,
|
|
1488
|
-
friendsRank:
|
|
1549
|
+
friendsRank: u,
|
|
1489
1550
|
rank: d,
|
|
1490
1551
|
streak: g,
|
|
1491
1552
|
correct: f,
|
|
1492
1553
|
incorrect: s,
|
|
1493
1554
|
inTop: I,
|
|
1494
1555
|
average: N
|
|
1495
|
-
}) => /* @__PURE__ */ L(
|
|
1496
|
-
/* @__PURE__ */ p(
|
|
1497
|
-
/* @__PURE__ */ L(
|
|
1498
|
-
r && /* @__PURE__ */ p(
|
|
1499
|
-
!r && /* @__PURE__ */ p(
|
|
1556
|
+
}) => /* @__PURE__ */ L(L1, { children: [
|
|
1557
|
+
/* @__PURE__ */ p(z1, { children: /* @__PURE__ */ L(j1, { children: [
|
|
1558
|
+
/* @__PURE__ */ L(Z1, { children: [
|
|
1559
|
+
r && /* @__PURE__ */ p(B1, { alt: "avatar", src: r }),
|
|
1560
|
+
!r && /* @__PURE__ */ p(V1, { children: Ci(o || "") })
|
|
1500
1561
|
] }),
|
|
1501
|
-
/* @__PURE__ */ L(
|
|
1502
|
-
/* @__PURE__ */ p(
|
|
1503
|
-
/* @__PURE__ */ L(
|
|
1504
|
-
/* @__PURE__ */ L(
|
|
1505
|
-
/* @__PURE__ */ p(
|
|
1506
|
-
/* @__PURE__ */ L(
|
|
1507
|
-
|
|
1508
|
-
/* @__PURE__ */ p(
|
|
1562
|
+
/* @__PURE__ */ L(k1, { children: [
|
|
1563
|
+
/* @__PURE__ */ p(b1, { children: o }),
|
|
1564
|
+
/* @__PURE__ */ L(R1, { children: [
|
|
1565
|
+
/* @__PURE__ */ L(O1, { children: [
|
|
1566
|
+
/* @__PURE__ */ p(_1, { alt: "rank-icon", src: Q1 }),
|
|
1567
|
+
/* @__PURE__ */ L(U1, { children: [
|
|
1568
|
+
wi(l),
|
|
1569
|
+
/* @__PURE__ */ p($1, { children: "PTS" })
|
|
1509
1570
|
] })
|
|
1510
1571
|
] }),
|
|
1511
|
-
/* @__PURE__ */ p(
|
|
1572
|
+
/* @__PURE__ */ p(F1, {}),
|
|
1512
1573
|
/* @__PURE__ */ L("div", { children: [
|
|
1513
1574
|
"TOP ",
|
|
1514
1575
|
I || 0,
|
|
@@ -1517,12 +1578,12 @@ const y1 = /* @__PURE__ */ m("div")({
|
|
|
1517
1578
|
] })
|
|
1518
1579
|
] })
|
|
1519
1580
|
] }) }),
|
|
1520
|
-
/* @__PURE__ */ L(
|
|
1521
|
-
/* @__PURE__ */ L(
|
|
1522
|
-
/* @__PURE__ */ p(Xt, { indicator:
|
|
1581
|
+
/* @__PURE__ */ L(S1, { children: [
|
|
1582
|
+
/* @__PURE__ */ L(P1, { children: [
|
|
1583
|
+
/* @__PURE__ */ p(Xt, { indicator: u || 0, title: "Friends rank" }),
|
|
1523
1584
|
/* @__PURE__ */ p(Xt, { indicator: d || 0, title: "Global rank" })
|
|
1524
1585
|
] }),
|
|
1525
|
-
/* @__PURE__ */ L(
|
|
1586
|
+
/* @__PURE__ */ L(Y1, { children: [
|
|
1526
1587
|
/* @__PURE__ */ p(it, { indicator: g || 0, title: "Win streak" }),
|
|
1527
1588
|
/* @__PURE__ */ p(it, { indicator: f || 0, title: "Correct" }),
|
|
1528
1589
|
/* @__PURE__ */ p(it, { indicator: s || 0, title: "Incorrect" }),
|
|
@@ -1530,40 +1591,40 @@ const y1 = /* @__PURE__ */ m("div")({
|
|
|
1530
1591
|
] })
|
|
1531
1592
|
] })
|
|
1532
1593
|
] });
|
|
1533
|
-
const
|
|
1594
|
+
const G1 = () => q1, q0 = /* @__PURE__ */ m("div")({
|
|
1534
1595
|
name: "i",
|
|
1535
1596
|
class: "idhrx8x",
|
|
1536
1597
|
propsAsIs: !1
|
|
1537
|
-
}),
|
|
1598
|
+
}), W1 = /* @__PURE__ */ m("div")({
|
|
1538
1599
|
name: "r",
|
|
1539
1600
|
class: "r1k6v4ep",
|
|
1540
1601
|
propsAsIs: !1
|
|
1541
|
-
}),
|
|
1602
|
+
}), q1 = /* @__PURE__ */ m("div")({
|
|
1542
1603
|
name: "a",
|
|
1543
1604
|
class: "a1v8kucd",
|
|
1544
1605
|
propsAsIs: !1
|
|
1545
|
-
}), J0 = /* @__PURE__ */ m(
|
|
1606
|
+
}), J0 = /* @__PURE__ */ m(G1())({
|
|
1546
1607
|
name: "e",
|
|
1547
1608
|
class: "e16yw7z1",
|
|
1548
1609
|
propsAsIs: !0
|
|
1549
1610
|
});
|
|
1550
|
-
const
|
|
1611
|
+
const J1 = () => Ue, X1 = /* @__PURE__ */ m("div")({
|
|
1551
1612
|
name: "c",
|
|
1552
1613
|
class: "ciyeb68",
|
|
1553
1614
|
propsAsIs: !1
|
|
1554
|
-
}),
|
|
1615
|
+
}), K1 = /* @__PURE__ */ m(J1())({
|
|
1555
1616
|
name: "n",
|
|
1556
1617
|
class: "nfic4xc",
|
|
1557
1618
|
propsAsIs: !0
|
|
1558
|
-
}),
|
|
1619
|
+
}), eo = /* @__PURE__ */ m("div")({
|
|
1559
1620
|
name: "d",
|
|
1560
1621
|
class: "d1pd1p66",
|
|
1561
1622
|
propsAsIs: !1
|
|
1562
|
-
}),
|
|
1623
|
+
}), to = /* @__PURE__ */ m("div")({
|
|
1563
1624
|
name: "p",
|
|
1564
1625
|
class: "p132yxcv",
|
|
1565
1626
|
propsAsIs: !1
|
|
1566
|
-
}),
|
|
1627
|
+
}), io = /* @__PURE__ */ m("span")({
|
|
1567
1628
|
name: "l",
|
|
1568
1629
|
class: "l4a8aw",
|
|
1569
1630
|
propsAsIs: !1
|
|
@@ -1571,123 +1632,123 @@ const $1 = () => Ue, F1 = /* @__PURE__ */ m("div")({
|
|
|
1571
1632
|
name: "g",
|
|
1572
1633
|
class: "gzdx7pk",
|
|
1573
1634
|
propsAsIs: !1
|
|
1574
|
-
}),
|
|
1635
|
+
}), ro = ({
|
|
1575
1636
|
feedbackMessages: r,
|
|
1576
1637
|
questionVotedCorrectly: o,
|
|
1577
1638
|
questionVoted: l,
|
|
1578
|
-
questionType:
|
|
1639
|
+
questionType: u,
|
|
1579
1640
|
hasCorrectAnswer: d
|
|
1580
1641
|
}) => {
|
|
1581
|
-
if (!(l && (
|
|
1642
|
+
if (!(l && (u === H.TRIVIA || u === H.PREDICTION)))
|
|
1582
1643
|
return null;
|
|
1583
|
-
const g =
|
|
1584
|
-
return /* @__PURE__ */ L(
|
|
1644
|
+
const g = u === H.PREDICTION && !d, f = o ? "correct" : "incorrect", s = o ? r.correctFeedback : r.incorrectFeedback;
|
|
1645
|
+
return /* @__PURE__ */ L(X1, { "data-isPrediction": g, children: [
|
|
1585
1646
|
g && /* @__PURE__ */ L(Oe, { children: [
|
|
1586
|
-
/* @__PURE__ */ p(
|
|
1647
|
+
/* @__PURE__ */ p(K1, { name: "icon-prediction" }),
|
|
1587
1648
|
/* @__PURE__ */ p(Kt, { children: "Stay tuned to see if your prediction was correct." })
|
|
1588
1649
|
] }),
|
|
1589
1650
|
d && /* @__PURE__ */ L(Oe, { children: [
|
|
1590
|
-
/* @__PURE__ */ p(
|
|
1591
|
-
/* @__PURE__ */ p("div", { children: /* @__PURE__ */ L(
|
|
1592
|
-
/* @__PURE__ */ p(
|
|
1651
|
+
/* @__PURE__ */ p(eo, { "data-feedbackType": f, children: /* @__PURE__ */ p(Ue, { name: f }) }),
|
|
1652
|
+
/* @__PURE__ */ p("div", { children: /* @__PURE__ */ L(to, { children: [
|
|
1653
|
+
/* @__PURE__ */ p(io, { "data-feedbackType": f, children: s == null ? void 0 : s.title }),
|
|
1593
1654
|
/* @__PURE__ */ p(Kt, { children: s == null ? void 0 : s.description })
|
|
1594
1655
|
] }) })
|
|
1595
1656
|
] })
|
|
1596
1657
|
] });
|
|
1597
1658
|
};
|
|
1598
|
-
const
|
|
1659
|
+
const no = /* @__PURE__ */ m("div")({
|
|
1599
1660
|
name: "o",
|
|
1600
1661
|
class: "olc1eph",
|
|
1601
1662
|
propsAsIs: !1
|
|
1602
|
-
}),
|
|
1663
|
+
}), oo = /* @__PURE__ */ m("div")({
|
|
1603
1664
|
name: "n",
|
|
1604
1665
|
class: "n1yoh29a",
|
|
1605
1666
|
propsAsIs: !1
|
|
1606
|
-
}),
|
|
1667
|
+
}), so = /* @__PURE__ */ m("div")({
|
|
1607
1668
|
name: "p",
|
|
1608
1669
|
class: "pjkr5mb",
|
|
1609
1670
|
propsAsIs: !1
|
|
1610
|
-
}),
|
|
1671
|
+
}), ao = /* @__PURE__ */ m("div")({
|
|
1611
1672
|
name: "r",
|
|
1612
1673
|
class: "r82wnnx",
|
|
1613
1674
|
propsAsIs: !1
|
|
1614
1675
|
});
|
|
1615
|
-
const
|
|
1676
|
+
const lo = () => Ei, co = () => Ei, uo = () => Ue, ho = /* @__PURE__ */ m("button")({
|
|
1616
1677
|
name: "c",
|
|
1617
1678
|
class: "cpm4u8k",
|
|
1618
1679
|
propsAsIs: !1
|
|
1619
|
-
}),
|
|
1680
|
+
}), po = /* @__PURE__ */ m("div")({
|
|
1620
1681
|
name: "l",
|
|
1621
1682
|
class: "lwfomc3",
|
|
1622
1683
|
propsAsIs: !1
|
|
1623
|
-
}),
|
|
1684
|
+
}), fo = /* @__PURE__ */ m("span")({
|
|
1624
1685
|
name: "d",
|
|
1625
1686
|
class: "dmltvg2",
|
|
1626
1687
|
propsAsIs: !1
|
|
1627
|
-
}),
|
|
1688
|
+
}), go = /* @__PURE__ */ m("div")({
|
|
1628
1689
|
name: "s",
|
|
1629
1690
|
class: "stfjpqz",
|
|
1630
1691
|
propsAsIs: !1
|
|
1631
|
-
}),
|
|
1692
|
+
}), mo = /* @__PURE__ */ m("div")({
|
|
1632
1693
|
name: "p",
|
|
1633
1694
|
class: "p198m24r",
|
|
1634
1695
|
propsAsIs: !1
|
|
1635
|
-
}),
|
|
1696
|
+
}), Ei = /* @__PURE__ */ m("img")({
|
|
1636
1697
|
name: "r",
|
|
1637
1698
|
class: "rbq5eu7",
|
|
1638
1699
|
propsAsIs: !1
|
|
1639
|
-
}),
|
|
1700
|
+
}), Io = /* @__PURE__ */ m(lo())({
|
|
1640
1701
|
name: "g",
|
|
1641
1702
|
class: "g1iv6oeb",
|
|
1642
1703
|
propsAsIs: !0
|
|
1643
|
-
}),
|
|
1704
|
+
}), yo = /* @__PURE__ */ m(co())({
|
|
1644
1705
|
name: "h",
|
|
1645
1706
|
class: "h1qtxlqc",
|
|
1646
1707
|
propsAsIs: !0
|
|
1647
|
-
}),
|
|
1708
|
+
}), Mo = /* @__PURE__ */ m("span")({
|
|
1648
1709
|
name: "u",
|
|
1649
1710
|
class: "udm736q",
|
|
1650
1711
|
propsAsIs: !1
|
|
1651
|
-
}),
|
|
1712
|
+
}), Co = /* @__PURE__ */ m("span")({
|
|
1652
1713
|
name: "b",
|
|
1653
1714
|
class: "b1da34tx",
|
|
1654
1715
|
propsAsIs: !1
|
|
1655
|
-
}),
|
|
1716
|
+
}), wo = /* @__PURE__ */ m("span")({
|
|
1656
1717
|
name: "x",
|
|
1657
1718
|
class: "x1dqwq83",
|
|
1658
1719
|
propsAsIs: !1
|
|
1659
|
-
}),
|
|
1720
|
+
}), Eo = /* @__PURE__ */ m(uo())({
|
|
1660
1721
|
name: "v",
|
|
1661
1722
|
class: "v10s9my2",
|
|
1662
1723
|
propsAsIs: !0
|
|
1663
1724
|
}), ei = {
|
|
1664
|
-
[Me.CENTERED]: (r) => /* @__PURE__ */ p(
|
|
1665
|
-
[Me.TRANSPARENT]: (r) => /* @__PURE__ */ p(
|
|
1666
|
-
[Me.ROUNDED]: (r) => /* @__PURE__ */ p(
|
|
1725
|
+
[Me.CENTERED]: (r) => /* @__PURE__ */ p(Io, { alt: "option-icon", src: r }),
|
|
1726
|
+
[Me.TRANSPARENT]: (r) => /* @__PURE__ */ p(go, { children: /* @__PURE__ */ p(mo, { style: { backgroundImage: `url(${r})` } }) }),
|
|
1727
|
+
[Me.ROUNDED]: (r) => /* @__PURE__ */ p(yo, { alt: "option-icon", src: r }),
|
|
1667
1728
|
[Me.NONE]: () => null,
|
|
1668
1729
|
[Me.UNSET]: () => null
|
|
1669
|
-
},
|
|
1670
|
-
if (r === H.POLL &&
|
|
1730
|
+
}, Ao = ({ questionType: r, hasCorrectAnswer: o, correct: l, youVoted: u, questionVoted: d }) => {
|
|
1731
|
+
if (r === H.POLL && u)
|
|
1671
1732
|
return "correct";
|
|
1672
1733
|
if (r === H.PREDICTION) {
|
|
1673
1734
|
if (o && d)
|
|
1674
|
-
return
|
|
1675
|
-
if (
|
|
1735
|
+
return u ? l ? "correct" : "incorrect" : l ? "correct" : "unset";
|
|
1736
|
+
if (u)
|
|
1676
1737
|
return "correct";
|
|
1677
1738
|
}
|
|
1678
|
-
return r === H.TRIVIA && d ?
|
|
1679
|
-
},
|
|
1739
|
+
return r === H.TRIVIA && d ? u ? l ? "correct" : "incorrect" : l ? "correct" : "unset" : "unset";
|
|
1740
|
+
}, No = ({
|
|
1680
1741
|
questionType: r,
|
|
1681
1742
|
questionVoted: o,
|
|
1682
1743
|
correct: l,
|
|
1683
|
-
hasCorrectAnswer:
|
|
1744
|
+
hasCorrectAnswer: u,
|
|
1684
1745
|
questionStatus: d
|
|
1685
|
-
}) => r === H.TRIVIA ? o && l : r === H.PREDICTION ? o && l &&
|
|
1746
|
+
}) => r === H.TRIVIA ? o && l : r === H.PREDICTION ? o && l && u || d === Rt.RESOLVED && l : !1, xo = (r) => {
|
|
1686
1747
|
var o;
|
|
1687
1748
|
const {
|
|
1688
1749
|
// option props
|
|
1689
1750
|
id: l,
|
|
1690
|
-
icon:
|
|
1751
|
+
icon: u,
|
|
1691
1752
|
text: d,
|
|
1692
1753
|
percentageDecimal: g,
|
|
1693
1754
|
// extra props
|
|
@@ -1702,9 +1763,9 @@ const J1 = () => wi, X1 = () => wi, K1 = () => Ue, eo = /* @__PURE__ */ m("butto
|
|
|
1702
1763
|
questionType: v,
|
|
1703
1764
|
correct: z,
|
|
1704
1765
|
hasCorrectAnswer: y
|
|
1705
|
-
} = r, A =
|
|
1766
|
+
} = r, A = Ao(r), w = No({ questionType: v, questionVoted: I, correct: z, hasCorrectAnswer: y, questionStatus: x }), T = I || x === Rt.RESOLVED && v === H.PREDICTION;
|
|
1706
1767
|
return /* @__PURE__ */ L(
|
|
1707
|
-
|
|
1768
|
+
ho,
|
|
1708
1769
|
{
|
|
1709
1770
|
value: l,
|
|
1710
1771
|
"data-selected": s,
|
|
@@ -1712,13 +1773,13 @@ const J1 = () => wi, X1 = () => wi, K1 = () => Ue, eo = /* @__PURE__ */ m("butto
|
|
|
1712
1773
|
disabled: I || C || E,
|
|
1713
1774
|
onClick: f,
|
|
1714
1775
|
children: [
|
|
1715
|
-
T && /* @__PURE__ */ p(
|
|
1716
|
-
/* @__PURE__ */ L(
|
|
1717
|
-
|
|
1718
|
-
/* @__PURE__ */ p(
|
|
1719
|
-
T && /* @__PURE__ */ L(
|
|
1720
|
-
w && /* @__PURE__ */ p(
|
|
1721
|
-
/* @__PURE__ */ L(
|
|
1776
|
+
T && /* @__PURE__ */ p(po, { "data-answerState": A, style: { width: `${g}%` } }),
|
|
1777
|
+
/* @__PURE__ */ L(fo, { children: [
|
|
1778
|
+
u && ((o = ei[N]) == null ? void 0 : o.call(ei, u)),
|
|
1779
|
+
/* @__PURE__ */ p(Mo, { children: d }),
|
|
1780
|
+
T && /* @__PURE__ */ L(Co, { children: [
|
|
1781
|
+
w && /* @__PURE__ */ p(Eo, { name: "selected" }),
|
|
1782
|
+
/* @__PURE__ */ L(wo, { children: [
|
|
1722
1783
|
g,
|
|
1723
1784
|
"%"
|
|
1724
1785
|
] })
|
|
@@ -1728,49 +1789,49 @@ const J1 = () => wi, X1 = () => wi, K1 = () => Ue, eo = /* @__PURE__ */ m("butto
|
|
|
1728
1789
|
}
|
|
1729
1790
|
);
|
|
1730
1791
|
};
|
|
1731
|
-
const
|
|
1792
|
+
const To = () => Ue, vo = /* @__PURE__ */ m("div")({
|
|
1732
1793
|
name: "a",
|
|
1733
1794
|
class: "a1r7f3z4",
|
|
1734
1795
|
propsAsIs: !1
|
|
1735
|
-
}),
|
|
1796
|
+
}), Do = /* @__PURE__ */ m("div")({
|
|
1736
1797
|
name: "s",
|
|
1737
1798
|
class: "sblndl",
|
|
1738
1799
|
propsAsIs: !1
|
|
1739
|
-
}),
|
|
1800
|
+
}), Lo = /* @__PURE__ */ m("div")({
|
|
1740
1801
|
name: "l",
|
|
1741
1802
|
class: "l7ka1tv",
|
|
1742
1803
|
propsAsIs: !1
|
|
1743
|
-
}),
|
|
1804
|
+
}), zo = /* @__PURE__ */ m(To())({
|
|
1744
1805
|
name: "p",
|
|
1745
1806
|
class: "p1edlxt3",
|
|
1746
1807
|
propsAsIs: !0
|
|
1747
|
-
}),
|
|
1808
|
+
}), So = /* @__PURE__ */ m("div")({
|
|
1748
1809
|
name: "g",
|
|
1749
1810
|
class: "ghm08u2",
|
|
1750
1811
|
propsAsIs: !1
|
|
1751
|
-
}),
|
|
1812
|
+
}), jo = /* @__PURE__ */ m("span")({
|
|
1752
1813
|
name: "c",
|
|
1753
1814
|
class: "c12nsh46",
|
|
1754
1815
|
propsAsIs: !1
|
|
1755
|
-
}),
|
|
1816
|
+
}), Bo = /* @__PURE__ */ m("span")({
|
|
1756
1817
|
name: "d",
|
|
1757
1818
|
class: "dlr9eoc",
|
|
1758
1819
|
propsAsIs: !1
|
|
1759
|
-
}),
|
|
1760
|
-
/* @__PURE__ */ L(
|
|
1761
|
-
r && /* @__PURE__ */ p(
|
|
1820
|
+
}), ko = ({ title: r, points: o, isPlayingTimer: l, isTimer: u, onTimerExpired: d }) => /* @__PURE__ */ L(vo, { children: [
|
|
1821
|
+
/* @__PURE__ */ L(Do, { children: [
|
|
1822
|
+
r && /* @__PURE__ */ p(Lo, { children: r }),
|
|
1762
1823
|
o !== void 0 && /* @__PURE__ */ L(Oe, { children: [
|
|
1763
|
-
/* @__PURE__ */ p(
|
|
1764
|
-
/* @__PURE__ */ L(
|
|
1765
|
-
/* @__PURE__ */ p(
|
|
1766
|
-
/* @__PURE__ */ p(
|
|
1824
|
+
/* @__PURE__ */ p(zo, { name: "icon-trophy" }),
|
|
1825
|
+
/* @__PURE__ */ L(So, { children: [
|
|
1826
|
+
/* @__PURE__ */ p(jo, { children: o }),
|
|
1827
|
+
/* @__PURE__ */ p(Bo, { children: "PTS" })
|
|
1767
1828
|
] })
|
|
1768
1829
|
] })
|
|
1769
1830
|
] }),
|
|
1770
|
-
|
|
1771
|
-
] }),
|
|
1831
|
+
u && /* @__PURE__ */ p(Ii, { isPlaying: l, onTimerExpired: d })
|
|
1832
|
+
] }), bo = ({ openedQuestion: r, vote: o }) => {
|
|
1772
1833
|
var l;
|
|
1773
|
-
const
|
|
1834
|
+
const u = r.subject, d = r.type, g = (l = r.options) == null ? void 0 : l.options, [f, s] = K(!1), [I, N] = K(!1), [E, x] = K(""), C = r == null ? void 0 : r.id, v = He(
|
|
1774
1835
|
async (T) => {
|
|
1775
1836
|
if (C) {
|
|
1776
1837
|
const S = T.currentTarget.value;
|
|
@@ -1796,9 +1857,9 @@ const go = () => Ue, mo = /* @__PURE__ */ m("div")({
|
|
|
1796
1857
|
// ToDo: Figure out why imageMode is not in the response
|
|
1797
1858
|
onVote: v
|
|
1798
1859
|
})) : [], [y, f, I, r, z, v, E]), w = g && (g.case === "trivia" || g.case === "prediction") ? g.value : void 0;
|
|
1799
|
-
return /* @__PURE__ */ p(
|
|
1860
|
+
return /* @__PURE__ */ p(W1, { "data-question-header": "true", children: /* @__PURE__ */ p(no, { children: /* @__PURE__ */ L(oo, { children: [
|
|
1800
1861
|
w && /* @__PURE__ */ p(
|
|
1801
|
-
|
|
1862
|
+
ro,
|
|
1802
1863
|
{
|
|
1803
1864
|
feedbackMessages: w,
|
|
1804
1865
|
questionVoted: !!z,
|
|
@@ -1808,7 +1869,7 @@ const go = () => Ue, mo = /* @__PURE__ */ m("div")({
|
|
|
1808
1869
|
}
|
|
1809
1870
|
),
|
|
1810
1871
|
/* @__PURE__ */ p(
|
|
1811
|
-
|
|
1872
|
+
ko,
|
|
1812
1873
|
{
|
|
1813
1874
|
title: f ? "Expired" : "To win",
|
|
1814
1875
|
points: f ? void 0 : 100,
|
|
@@ -1816,143 +1877,143 @@ const go = () => Ue, mo = /* @__PURE__ */ m("div")({
|
|
|
1816
1877
|
isTimer: !0
|
|
1817
1878
|
}
|
|
1818
1879
|
),
|
|
1819
|
-
/* @__PURE__ */ p(
|
|
1820
|
-
/* @__PURE__ */ p(
|
|
1880
|
+
/* @__PURE__ */ p(so, { children: u }),
|
|
1881
|
+
/* @__PURE__ */ p(ao, { children: A.map((T) => /* @__PURE__ */ p(xo, { ...T }, T.id)) })
|
|
1821
1882
|
] }) }) });
|
|
1822
1883
|
};
|
|
1823
|
-
const
|
|
1884
|
+
const Ro = /* @__PURE__ */ m("div")({
|
|
1824
1885
|
name: "n",
|
|
1825
1886
|
class: "nyaglcf",
|
|
1826
1887
|
propsAsIs: !1
|
|
1827
|
-
}),
|
|
1888
|
+
}), _o = /* @__PURE__ */ m("div")({
|
|
1828
1889
|
name: "r",
|
|
1829
1890
|
class: "rn5nzbc",
|
|
1830
1891
|
propsAsIs: !1
|
|
1831
|
-
}),
|
|
1892
|
+
}), Oo = /* @__PURE__ */ m("img")({
|
|
1832
1893
|
name: "e",
|
|
1833
1894
|
class: "e6i73qc",
|
|
1834
1895
|
propsAsIs: !1
|
|
1835
|
-
}),
|
|
1896
|
+
}), Uo = /* @__PURE__ */ m("div")({
|
|
1836
1897
|
name: "i",
|
|
1837
1898
|
class: "iu0veuw",
|
|
1838
1899
|
propsAsIs: !1
|
|
1839
|
-
}),
|
|
1900
|
+
}), $o = /* @__PURE__ */ m("img")({
|
|
1840
1901
|
name: "p",
|
|
1841
1902
|
class: "ph41hsa",
|
|
1842
1903
|
propsAsIs: !1
|
|
1843
|
-
}),
|
|
1904
|
+
}), Fo = /* @__PURE__ */ m("span")({
|
|
1844
1905
|
name: "a",
|
|
1845
1906
|
class: "a1doo0j",
|
|
1846
1907
|
propsAsIs: !1
|
|
1847
|
-
}),
|
|
1908
|
+
}), Po = /* @__PURE__ */ m("div")({
|
|
1848
1909
|
name: "s",
|
|
1849
1910
|
class: "s1y6mmdj",
|
|
1850
1911
|
propsAsIs: !1
|
|
1851
|
-
}),
|
|
1912
|
+
}), Yo = /* @__PURE__ */ m("div")({
|
|
1852
1913
|
name: "c",
|
|
1853
1914
|
class: "cr7s6d2",
|
|
1854
1915
|
propsAsIs: !1
|
|
1855
|
-
}),
|
|
1916
|
+
}), Vo = /* @__PURE__ */ m("button")({
|
|
1856
1917
|
name: "d",
|
|
1857
1918
|
class: "dn2ogfd",
|
|
1858
1919
|
propsAsIs: !1
|
|
1859
|
-
}),
|
|
1920
|
+
}), Zo = /* @__PURE__ */ m("button")({
|
|
1860
1921
|
name: "x",
|
|
1861
1922
|
class: "xvt3fwn",
|
|
1862
1923
|
propsAsIs: !1
|
|
1863
|
-
}),
|
|
1924
|
+
}), Qo = /* @__PURE__ */ m("img")({
|
|
1864
1925
|
name: "g",
|
|
1865
1926
|
class: "g4rp2wp",
|
|
1866
1927
|
propsAsIs: !1
|
|
1867
|
-
}),
|
|
1928
|
+
}), Ho = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAiIGhlaWdodD0iMTAiIHZpZXdCb3g9IjAgMCAxMCAxMCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGcgaWQ9Ikdyb3VwIDQ2NSI+CjxyZWN0IGlkPSJSZWN0YW5nbGUgMzY4IiB4PSIxLjI1IiB3aWR0aD0iMTIuMzc0NCIgaGVpZ2h0PSIxLjc2Nzc3IiByeD0iMC44ODM4ODQiIHRyYW5zZm9ybT0icm90YXRlKDQ1IDEuMjUgMCkiIGZpbGw9IndoaXRlIi8+CjxyZWN0IGlkPSJSZWN0YW5nbGUgMzY5IiB5PSI4Ljc1IiB3aWR0aD0iMTIuMzc0NCIgaGVpZ2h0PSIxLjc2Nzc3IiByeD0iMC44ODM4ODQiIHRyYW5zZm9ybT0icm90YXRlKC00NSAwIDguNzUpIiBmaWxsPSJ3aGl0ZSIvPgo8L2c+Cjwvc3ZnPgo=", Go = ({
|
|
1868
1929
|
close: r,
|
|
1869
1930
|
action: o,
|
|
1870
|
-
data: { icon: l, header:
|
|
1871
|
-
}) => /* @__PURE__ */ L(
|
|
1872
|
-
/* @__PURE__ */ p(
|
|
1873
|
-
/* @__PURE__ */ p(
|
|
1874
|
-
/* @__PURE__ */ L(
|
|
1931
|
+
data: { icon: l, header: u, title: d, subtitle: g, graphicBg: f, sponsorLogo: s }
|
|
1932
|
+
}) => /* @__PURE__ */ L(Ro, { children: [
|
|
1933
|
+
/* @__PURE__ */ p(Zo, { onClick: r, children: /* @__PURE__ */ p(Qo, { alt: "icon-close-onboarding-inapp", src: Ho }) }),
|
|
1934
|
+
/* @__PURE__ */ p(_o, { style: { backgroundImage: `url(${f || ""})` }, children: l && /* @__PURE__ */ p(Oo, { alt: "onboarding-inapp-icon", src: l }) }),
|
|
1935
|
+
/* @__PURE__ */ L(Uo, { children: [
|
|
1875
1936
|
/* @__PURE__ */ L("div", { children: [
|
|
1876
1937
|
/* @__PURE__ */ p("div", { children: s ? /* @__PURE__ */ L(Oe, { children: [
|
|
1877
|
-
/* @__PURE__ */ p(
|
|
1878
|
-
/* @__PURE__ */ p(
|
|
1879
|
-
] }) :
|
|
1880
|
-
/* @__PURE__ */ p(
|
|
1881
|
-
/* @__PURE__ */ p(
|
|
1938
|
+
/* @__PURE__ */ p($o, { alt: "sponsor-logo", src: s }),
|
|
1939
|
+
/* @__PURE__ */ p(Fo, { children: "Presents" })
|
|
1940
|
+
] }) : u || "" }),
|
|
1941
|
+
/* @__PURE__ */ p(Po, { children: d || "" }),
|
|
1942
|
+
/* @__PURE__ */ p(Yo, { children: g || "" })
|
|
1882
1943
|
] }),
|
|
1883
|
-
/* @__PURE__ */ p(
|
|
1944
|
+
/* @__PURE__ */ p(Vo, { onClick: o, children: "Play" })
|
|
1884
1945
|
] })
|
|
1885
1946
|
] });
|
|
1886
|
-
const
|
|
1947
|
+
const Wo = /* @__PURE__ */ m("div")({
|
|
1887
1948
|
name: "r",
|
|
1888
1949
|
class: "r1li8aub",
|
|
1889
1950
|
propsAsIs: !1
|
|
1890
|
-
}),
|
|
1891
|
-
[Vt.ONBOARDING]:
|
|
1951
|
+
}), qo = {
|
|
1952
|
+
[Vt.ONBOARDING]: Go,
|
|
1892
1953
|
[Vt.QUESTION]: mi
|
|
1893
|
-
},
|
|
1954
|
+
}, Jo = ({
|
|
1894
1955
|
index: r,
|
|
1895
1956
|
total: o,
|
|
1896
1957
|
...l
|
|
1897
1958
|
}) => {
|
|
1898
|
-
const
|
|
1959
|
+
const u = _i(null), d = qo[l.type] || mi;
|
|
1899
1960
|
return bt(() => {
|
|
1900
|
-
|
|
1961
|
+
u.current !== null && l.hiding && u.current.animate([{ right: "0" }, { right: "-100%" }], {
|
|
1901
1962
|
duration: 300,
|
|
1902
1963
|
fill: "forwards"
|
|
1903
1964
|
});
|
|
1904
1965
|
}, [l.hiding]), /* @__PURE__ */ p(
|
|
1905
|
-
|
|
1966
|
+
Wo,
|
|
1906
1967
|
{
|
|
1907
|
-
ref:
|
|
1968
|
+
ref: u,
|
|
1908
1969
|
style: { zIndex: r + 1, transform: `translateY(${100 * (o - r - 1)}%)` },
|
|
1909
1970
|
children: /* @__PURE__ */ p(d, { ...l })
|
|
1910
1971
|
}
|
|
1911
1972
|
);
|
|
1912
1973
|
};
|
|
1913
|
-
const
|
|
1974
|
+
const Xo = /* @__PURE__ */ m("div")({
|
|
1914
1975
|
name: "o",
|
|
1915
1976
|
class: "oc6h1al",
|
|
1916
1977
|
propsAsIs: !1
|
|
1917
|
-
}),
|
|
1978
|
+
}), Ko = ({ notificationsStore: r }) => {
|
|
1918
1979
|
const o = Z(r);
|
|
1919
|
-
return /* @__PURE__ */ p(
|
|
1920
|
-
|
|
1980
|
+
return /* @__PURE__ */ p(Xo, { children: o == null ? void 0 : o.map((l, u) => /* @__PURE__ */ p(
|
|
1981
|
+
Jo,
|
|
1921
1982
|
{
|
|
1922
|
-
index:
|
|
1983
|
+
index: u,
|
|
1923
1984
|
total: o.length,
|
|
1924
1985
|
...l
|
|
1925
1986
|
},
|
|
1926
1987
|
l.id
|
|
1927
1988
|
)) });
|
|
1928
|
-
},
|
|
1989
|
+
}, es = ({ store: r }) => {
|
|
1929
1990
|
const { data: o } = Z(r);
|
|
1930
|
-
return o != null && o.summary ? /* @__PURE__ */ p(
|
|
1931
|
-
},
|
|
1991
|
+
return o != null && o.summary ? /* @__PURE__ */ p(H1, { ...o.summary, ...o.percentage }) : /* @__PURE__ */ p("div", { children: "wait user..." });
|
|
1992
|
+
}, ts = ({ store: r, openQuestion: o }) => {
|
|
1932
1993
|
const l = Z(r);
|
|
1933
|
-
return l != null && l.data ? /* @__PURE__ */ p(
|
|
1994
|
+
return l != null && l.data ? /* @__PURE__ */ p(E1, { openQuestion: o, questions: l.data }) : /* @__PURE__ */ p("div", { children: "wait questions..." });
|
|
1934
1995
|
};
|
|
1935
|
-
const
|
|
1996
|
+
const is = /* @__PURE__ */ m("div")({
|
|
1936
1997
|
name: "y",
|
|
1937
1998
|
class: "y1qd1atw",
|
|
1938
1999
|
propsAsIs: !1
|
|
1939
|
-
}),
|
|
2000
|
+
}), rs = ({
|
|
1940
2001
|
openedQuestion: r,
|
|
1941
2002
|
closeQuestion: o,
|
|
1942
2003
|
vote: l
|
|
1943
2004
|
}) => {
|
|
1944
|
-
var
|
|
2005
|
+
var u;
|
|
1945
2006
|
const [d, g] = K(!1);
|
|
1946
2007
|
He((I) => {
|
|
1947
2008
|
g(I);
|
|
1948
2009
|
}, [g]);
|
|
1949
2010
|
const f = De(() => r == null ? void 0 : r.answers.find((I) => I.youVoted === !0), [r]), s = De(() => !!(r != null && r.answers.find((I) => I.correct === !0)), [r]);
|
|
1950
|
-
return r ? /* @__PURE__ */ p(
|
|
2011
|
+
return r ? /* @__PURE__ */ p(is, {
|
|
1951
2012
|
children: /* @__PURE__ */ p("div", {
|
|
1952
2013
|
children: /* @__PURE__ */ p("div", {
|
|
1953
|
-
children: /* @__PURE__ */ p(
|
|
2014
|
+
children: /* @__PURE__ */ p(bo, {
|
|
1954
2015
|
title: r.subject,
|
|
1955
|
-
feedbackMessages: (
|
|
2016
|
+
feedbackMessages: (u = r.options) == null ? void 0 : u.options.value,
|
|
1956
2017
|
questionType: r.type,
|
|
1957
2018
|
questionId: r.id,
|
|
1958
2019
|
questionVoted: !!f,
|
|
@@ -1976,144 +2037,111 @@ const Zo = /* @__PURE__ */ m("div")({
|
|
|
1976
2037
|
})
|
|
1977
2038
|
}) : null;
|
|
1978
2039
|
};
|
|
1979
|
-
const
|
|
1980
|
-
name: "e",
|
|
1981
|
-
class: "e1q4ysxt",
|
|
1982
|
-
propsAsIs: !1
|
|
1983
|
-
}), Go = /* @__PURE__ */ m("div")({
|
|
1984
|
-
name: "o",
|
|
1985
|
-
class: "ouyy0pt",
|
|
1986
|
-
propsAsIs: !1
|
|
1987
|
-
}), Wo = /* @__PURE__ */ m("div")({
|
|
1988
|
-
name: "n",
|
|
1989
|
-
class: "n19nxf9u",
|
|
1990
|
-
propsAsIs: !1
|
|
1991
|
-
}), qo = /* @__PURE__ */ m("img")({
|
|
1992
|
-
name: "r",
|
|
1993
|
-
class: "r1k9ayhp",
|
|
1994
|
-
propsAsIs: !1
|
|
1995
|
-
}), Jo = /* @__PURE__ */ m("img")({
|
|
1996
|
-
name: "l",
|
|
1997
|
-
class: "l5j3lzi",
|
|
1998
|
-
propsAsIs: !1
|
|
1999
|
-
}), Xo = /* @__PURE__ */ m("img")({
|
|
2000
|
-
name: "s",
|
|
2001
|
-
class: "sm6ggfo",
|
|
2002
|
-
propsAsIs: !1
|
|
2003
|
-
}), Ko = /* @__PURE__ */ m("div")({
|
|
2004
|
-
name: "p",
|
|
2005
|
-
class: "p1dhscaj",
|
|
2006
|
-
propsAsIs: !1
|
|
2007
|
-
}), es = /* @__PURE__ */ m("img")({
|
|
2008
|
-
name: "a",
|
|
2009
|
-
class: "a1f5isrh",
|
|
2010
|
-
propsAsIs: !1
|
|
2011
|
-
});
|
|
2012
|
-
const ts = /* @__PURE__ */ m("div")({
|
|
2040
|
+
const ns = /* @__PURE__ */ m("div")({
|
|
2013
2041
|
name: "e",
|
|
2014
2042
|
class: "e1javwmj",
|
|
2015
2043
|
propsAsIs: !1
|
|
2016
|
-
}),
|
|
2044
|
+
}), os = /* @__PURE__ */ m("div")({
|
|
2017
2045
|
name: "t",
|
|
2018
2046
|
class: "t1qosv8q",
|
|
2019
2047
|
propsAsIs: !1
|
|
2020
2048
|
});
|
|
2021
|
-
const
|
|
2049
|
+
const ss = /* @__PURE__ */ m("div")({
|
|
2022
2050
|
name: "t",
|
|
2023
2051
|
class: "t16hl500",
|
|
2024
2052
|
propsAsIs: !1
|
|
2025
|
-
}),
|
|
2053
|
+
}), as = /* @__PURE__ */ m("img")({
|
|
2026
2054
|
name: "e",
|
|
2027
2055
|
class: "e18ymslp",
|
|
2028
2056
|
propsAsIs: !1
|
|
2029
|
-
}),
|
|
2057
|
+
}), ls = /* @__PURE__ */ m("div")({
|
|
2030
2058
|
name: "n",
|
|
2031
2059
|
class: "n1kdd00k",
|
|
2032
2060
|
propsAsIs: !1
|
|
2033
|
-
}),
|
|
2061
|
+
}), cs = /* @__PURE__ */ m("div")({
|
|
2034
2062
|
name: "r",
|
|
2035
2063
|
class: "rwwgdkm",
|
|
2036
2064
|
propsAsIs: !1
|
|
2037
|
-
}),
|
|
2065
|
+
}), us = /* @__PURE__ */ m("div")({
|
|
2038
2066
|
name: "d",
|
|
2039
2067
|
class: "dvazwa9",
|
|
2040
2068
|
propsAsIs: !1
|
|
2041
|
-
}),
|
|
2069
|
+
}), hs = /* @__PURE__ */ m("a")({
|
|
2042
2070
|
name: "c",
|
|
2043
2071
|
class: "cd3vh14",
|
|
2044
2072
|
propsAsIs: !1
|
|
2045
|
-
}),
|
|
2073
|
+
}), ds = /* @__PURE__ */ m("img")({
|
|
2046
2074
|
name: "l",
|
|
2047
2075
|
class: "l19zo16x",
|
|
2048
2076
|
propsAsIs: !1
|
|
2049
2077
|
});
|
|
2050
|
-
var
|
|
2051
|
-
at.byteLength =
|
|
2052
|
-
at.toByteArray =
|
|
2053
|
-
at.fromByteArray =
|
|
2054
|
-
var fe = [], ee = [],
|
|
2055
|
-
for (var Fe = 0,
|
|
2078
|
+
var Ai = {}, Ni = {}, at = {};
|
|
2079
|
+
at.byteLength = gs;
|
|
2080
|
+
at.toByteArray = Is;
|
|
2081
|
+
at.fromByteArray = Cs;
|
|
2082
|
+
var fe = [], ee = [], ps = typeof Uint8Array < "u" ? Uint8Array : Array, Ct = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
|
|
2083
|
+
for (var Fe = 0, fs = Ct.length; Fe < fs; ++Fe)
|
|
2056
2084
|
fe[Fe] = Ct[Fe], ee[Ct.charCodeAt(Fe)] = Fe;
|
|
2057
2085
|
ee["-".charCodeAt(0)] = 62;
|
|
2058
2086
|
ee["_".charCodeAt(0)] = 63;
|
|
2059
|
-
function
|
|
2087
|
+
function xi(r) {
|
|
2060
2088
|
var o = r.length;
|
|
2061
2089
|
if (o % 4 > 0)
|
|
2062
2090
|
throw new Error("Invalid string. Length must be a multiple of 4");
|
|
2063
2091
|
var l = r.indexOf("=");
|
|
2064
2092
|
l === -1 && (l = o);
|
|
2065
|
-
var
|
|
2066
|
-
return [l,
|
|
2093
|
+
var u = l === o ? 0 : 4 - l % 4;
|
|
2094
|
+
return [l, u];
|
|
2067
2095
|
}
|
|
2068
|
-
function
|
|
2069
|
-
var o =
|
|
2070
|
-
return (l +
|
|
2096
|
+
function gs(r) {
|
|
2097
|
+
var o = xi(r), l = o[0], u = o[1];
|
|
2098
|
+
return (l + u) * 3 / 4 - u;
|
|
2071
2099
|
}
|
|
2072
|
-
function
|
|
2100
|
+
function ms(r, o, l) {
|
|
2073
2101
|
return (o + l) * 3 / 4 - l;
|
|
2074
2102
|
}
|
|
2075
|
-
function
|
|
2076
|
-
var o, l =
|
|
2103
|
+
function Is(r) {
|
|
2104
|
+
var o, l = xi(r), u = l[0], d = l[1], g = new ps(ms(r, u, d)), f = 0, s = d > 0 ? u - 4 : u, I;
|
|
2077
2105
|
for (I = 0; I < s; I += 4)
|
|
2078
2106
|
o = ee[r.charCodeAt(I)] << 18 | ee[r.charCodeAt(I + 1)] << 12 | ee[r.charCodeAt(I + 2)] << 6 | ee[r.charCodeAt(I + 3)], g[f++] = o >> 16 & 255, g[f++] = o >> 8 & 255, g[f++] = o & 255;
|
|
2079
2107
|
return d === 2 && (o = ee[r.charCodeAt(I)] << 2 | ee[r.charCodeAt(I + 1)] >> 4, g[f++] = o & 255), d === 1 && (o = ee[r.charCodeAt(I)] << 10 | ee[r.charCodeAt(I + 1)] << 4 | ee[r.charCodeAt(I + 2)] >> 2, g[f++] = o >> 8 & 255, g[f++] = o & 255), g;
|
|
2080
2108
|
}
|
|
2081
|
-
function
|
|
2109
|
+
function ys(r) {
|
|
2082
2110
|
return fe[r >> 18 & 63] + fe[r >> 12 & 63] + fe[r >> 6 & 63] + fe[r & 63];
|
|
2083
2111
|
}
|
|
2084
|
-
function
|
|
2085
|
-
for (var
|
|
2086
|
-
|
|
2112
|
+
function Ms(r, o, l) {
|
|
2113
|
+
for (var u, d = [], g = o; g < l; g += 3)
|
|
2114
|
+
u = (r[g] << 16 & 16711680) + (r[g + 1] << 8 & 65280) + (r[g + 2] & 255), d.push(ys(u));
|
|
2087
2115
|
return d.join("");
|
|
2088
2116
|
}
|
|
2089
|
-
function
|
|
2090
|
-
for (var o, l = r.length,
|
|
2091
|
-
d.push(
|
|
2092
|
-
return
|
|
2117
|
+
function Cs(r) {
|
|
2118
|
+
for (var o, l = r.length, u = l % 3, d = [], g = 16383, f = 0, s = l - u; f < s; f += g)
|
|
2119
|
+
d.push(Ms(r, f, f + g > s ? s : f + g));
|
|
2120
|
+
return u === 1 ? (o = r[l - 1], d.push(
|
|
2093
2121
|
fe[o >> 2] + fe[o << 4 & 63] + "=="
|
|
2094
|
-
)) :
|
|
2122
|
+
)) : u === 2 && (o = (r[l - 2] << 8) + r[l - 1], d.push(
|
|
2095
2123
|
fe[o >> 10] + fe[o >> 4 & 63] + fe[o << 2 & 63] + "="
|
|
2096
2124
|
)), d.join("");
|
|
2097
2125
|
}
|
|
2098
2126
|
var Ft = {};
|
|
2099
2127
|
/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
|
|
2100
|
-
Ft.read = function(r, o, l,
|
|
2101
|
-
var g, f, s = d * 8 -
|
|
2128
|
+
Ft.read = function(r, o, l, u, d) {
|
|
2129
|
+
var g, f, s = d * 8 - u - 1, I = (1 << s) - 1, N = I >> 1, E = -7, x = l ? d - 1 : 0, C = l ? -1 : 1, v = r[o + x];
|
|
2102
2130
|
for (x += C, g = v & (1 << -E) - 1, v >>= -E, E += s; E > 0; g = g * 256 + r[o + x], x += C, E -= 8)
|
|
2103
2131
|
;
|
|
2104
|
-
for (f = g & (1 << -E) - 1, g >>= -E, E +=
|
|
2132
|
+
for (f = g & (1 << -E) - 1, g >>= -E, E += u; E > 0; f = f * 256 + r[o + x], x += C, E -= 8)
|
|
2105
2133
|
;
|
|
2106
2134
|
if (g === 0)
|
|
2107
2135
|
g = 1 - N;
|
|
2108
2136
|
else {
|
|
2109
2137
|
if (g === I)
|
|
2110
2138
|
return f ? NaN : (v ? -1 : 1) * (1 / 0);
|
|
2111
|
-
f = f + Math.pow(2,
|
|
2139
|
+
f = f + Math.pow(2, u), g = g - N;
|
|
2112
2140
|
}
|
|
2113
|
-
return (v ? -1 : 1) * f * Math.pow(2, g -
|
|
2141
|
+
return (v ? -1 : 1) * f * Math.pow(2, g - u);
|
|
2114
2142
|
};
|
|
2115
|
-
Ft.write = function(r, o, l,
|
|
2116
|
-
var f, s, I, N = g * 8 - d - 1, E = (1 << N) - 1, x = E >> 1, C = d === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0, v =
|
|
2143
|
+
Ft.write = function(r, o, l, u, d, g) {
|
|
2144
|
+
var f, s, I, N = g * 8 - d - 1, E = (1 << N) - 1, x = E >> 1, C = d === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0, v = u ? 0 : g - 1, z = u ? 1 : -1, y = o < 0 || o === 0 && 1 / o < 0 ? 1 : 0;
|
|
2117
2145
|
for (o = Math.abs(o), isNaN(o) || o === 1 / 0 ? (s = isNaN(o) ? 1 : 0, f = E) : (f = Math.floor(Math.log(o) / Math.LN2), o * (I = Math.pow(2, -f)) < 1 && (f--, I *= 2), f + x >= 1 ? o += C / I : o += C * Math.pow(2, 1 - x), o * I >= 2 && (f++, I /= 2), f + x >= E ? (s = 0, f = E) : f + x >= 1 ? (s = (o * I - 1) * Math.pow(2, d), f = f + x) : (s = o * Math.pow(2, x - 1) * Math.pow(2, d), f = 0)); d >= 8; r[l + v] = s & 255, v += z, s /= 256, d -= 8)
|
|
2118
2146
|
;
|
|
2119
2147
|
for (f = f << d | s, N += d; N > 0; r[l + v] = f & 255, v += z, f /= 256, N -= 8)
|
|
@@ -2127,7 +2155,7 @@ Ft.write = function(r, o, l, h, d, g) {
|
|
|
2127
2155
|
* @license MIT
|
|
2128
2156
|
*/
|
|
2129
2157
|
(function(r) {
|
|
2130
|
-
const o = at, l = Ft,
|
|
2158
|
+
const o = at, l = Ft, u = typeof Symbol == "function" && typeof Symbol.for == "function" ? Symbol.for("nodejs.util.inspect.custom") : null;
|
|
2131
2159
|
r.Buffer = s, r.SlowBuffer = T, r.INSPECT_MAX_BYTES = 50;
|
|
2132
2160
|
const d = 2147483647;
|
|
2133
2161
|
r.kMaxLength = d, s.TYPED_ARRAY_SUPPORT = g(), !s.TYPED_ARRAY_SUPPORT && typeof console < "u" && typeof console.error == "function" && console.error(
|
|
@@ -2280,7 +2308,7 @@ Ft.write = function(r, o, l, h, d, g) {
|
|
|
2280
2308
|
if (e === t)
|
|
2281
2309
|
return 0;
|
|
2282
2310
|
let n = e.length, a = t.length;
|
|
2283
|
-
for (let c = 0,
|
|
2311
|
+
for (let c = 0, h = Math.min(n, a); c < h; ++c)
|
|
2284
2312
|
if (e[c] !== t[c]) {
|
|
2285
2313
|
n = e[c], a = t[c];
|
|
2286
2314
|
break;
|
|
@@ -2315,18 +2343,18 @@ Ft.write = function(r, o, l, h, d, g) {
|
|
|
2315
2343
|
const a = s.allocUnsafe(t);
|
|
2316
2344
|
let c = 0;
|
|
2317
2345
|
for (n = 0; n < e.length; ++n) {
|
|
2318
|
-
let
|
|
2319
|
-
if (P(
|
|
2320
|
-
c +
|
|
2346
|
+
let h = e[n];
|
|
2347
|
+
if (P(h, Uint8Array))
|
|
2348
|
+
c + h.length > a.length ? (s.isBuffer(h) || (h = s.from(h)), h.copy(a, c)) : Uint8Array.prototype.set.call(
|
|
2321
2349
|
a,
|
|
2322
|
-
|
|
2350
|
+
h,
|
|
2323
2351
|
c
|
|
2324
2352
|
);
|
|
2325
|
-
else if (s.isBuffer(
|
|
2326
|
-
|
|
2353
|
+
else if (s.isBuffer(h))
|
|
2354
|
+
h.copy(a, c);
|
|
2327
2355
|
else
|
|
2328
2356
|
throw new TypeError('"list" argument must be an Array of Buffers');
|
|
2329
|
-
c +=
|
|
2357
|
+
c += h.length;
|
|
2330
2358
|
}
|
|
2331
2359
|
return a;
|
|
2332
2360
|
};
|
|
@@ -2434,7 +2462,7 @@ Ft.write = function(r, o, l, h, d, g) {
|
|
|
2434
2462
|
let e = "";
|
|
2435
2463
|
const t = r.INSPECT_MAX_BYTES;
|
|
2436
2464
|
return e = this.toString("hex", 0, t).replace(/(.{2})/g, "$1 ").trim(), this.length > t && (e += " ... "), "<Buffer " + e + ">";
|
|
2437
|
-
},
|
|
2465
|
+
}, u && (s.prototype[u] = s.prototype.inspect), s.prototype.compare = function(e, t, n, a, c) {
|
|
2438
2466
|
if (P(e, Uint8Array) && (e = s.from(e, e.offset, e.byteLength)), !s.isBuffer(e))
|
|
2439
2467
|
throw new TypeError(
|
|
2440
2468
|
'The "target" argument must be one of type Buffer or Uint8Array. Received type ' + typeof e
|
|
@@ -2449,14 +2477,14 @@ Ft.write = function(r, o, l, h, d, g) {
|
|
|
2449
2477
|
return 1;
|
|
2450
2478
|
if (t >>>= 0, n >>>= 0, a >>>= 0, c >>>= 0, this === e)
|
|
2451
2479
|
return 0;
|
|
2452
|
-
let
|
|
2453
|
-
const b = Math.min(
|
|
2480
|
+
let h = c - a, D = n - t;
|
|
2481
|
+
const b = Math.min(h, D), k = this.slice(a, c), R = e.slice(t, n);
|
|
2454
2482
|
for (let j = 0; j < b; ++j)
|
|
2455
2483
|
if (k[j] !== R[j]) {
|
|
2456
|
-
|
|
2484
|
+
h = k[j], D = R[j];
|
|
2457
2485
|
break;
|
|
2458
2486
|
}
|
|
2459
|
-
return
|
|
2487
|
+
return h < D ? -1 : D < h ? 1 : 0;
|
|
2460
2488
|
};
|
|
2461
2489
|
function U(i, e, t, n, a) {
|
|
2462
2490
|
if (i.length === 0)
|
|
@@ -2477,11 +2505,11 @@ Ft.write = function(r, o, l, h, d, g) {
|
|
|
2477
2505
|
throw new TypeError("val must be string, number or Buffer");
|
|
2478
2506
|
}
|
|
2479
2507
|
function F(i, e, t, n, a) {
|
|
2480
|
-
let c = 1,
|
|
2508
|
+
let c = 1, h = i.length, D = e.length;
|
|
2481
2509
|
if (n !== void 0 && (n = String(n).toLowerCase(), n === "ucs2" || n === "ucs-2" || n === "utf16le" || n === "utf-16le")) {
|
|
2482
2510
|
if (i.length < 2 || e.length < 2)
|
|
2483
2511
|
return -1;
|
|
2484
|
-
c = 2,
|
|
2512
|
+
c = 2, h /= 2, D /= 2, t /= 2;
|
|
2485
2513
|
}
|
|
2486
2514
|
function b(R, j) {
|
|
2487
2515
|
return c === 1 ? R[j] : R.readUInt16BE(j * c);
|
|
@@ -2489,14 +2517,14 @@ Ft.write = function(r, o, l, h, d, g) {
|
|
|
2489
2517
|
let k;
|
|
2490
2518
|
if (a) {
|
|
2491
2519
|
let R = -1;
|
|
2492
|
-
for (k = t; k <
|
|
2520
|
+
for (k = t; k < h; k++)
|
|
2493
2521
|
if (b(i, k) === b(e, R === -1 ? 0 : k - R)) {
|
|
2494
2522
|
if (R === -1 && (R = k), k - R + 1 === D)
|
|
2495
2523
|
return R * c;
|
|
2496
2524
|
} else
|
|
2497
2525
|
R !== -1 && (k -= k - R), R = -1;
|
|
2498
2526
|
} else
|
|
2499
|
-
for (t + D >
|
|
2527
|
+
for (t + D > h && (t = h - D), k = t; k >= 0; k--) {
|
|
2500
2528
|
let R = !0;
|
|
2501
2529
|
for (let j = 0; j < D; j++)
|
|
2502
2530
|
if (b(i, k + j) !== b(e, j)) {
|
|
@@ -2521,14 +2549,14 @@ Ft.write = function(r, o, l, h, d, g) {
|
|
|
2521
2549
|
n ? (n = Number(n), n > a && (n = a)) : n = a;
|
|
2522
2550
|
const c = e.length;
|
|
2523
2551
|
n > c / 2 && (n = c / 2);
|
|
2524
|
-
let
|
|
2525
|
-
for (
|
|
2526
|
-
const D = parseInt(e.substr(
|
|
2552
|
+
let h;
|
|
2553
|
+
for (h = 0; h < n; ++h) {
|
|
2554
|
+
const D = parseInt(e.substr(h * 2, 2), 16);
|
|
2527
2555
|
if (Be(D))
|
|
2528
|
-
return
|
|
2529
|
-
i[t +
|
|
2556
|
+
return h;
|
|
2557
|
+
i[t + h] = D;
|
|
2530
2558
|
}
|
|
2531
|
-
return
|
|
2559
|
+
return h;
|
|
2532
2560
|
}
|
|
2533
2561
|
function q(i, e, t, n) {
|
|
2534
2562
|
return ye(je(e, i.length - t), i, t, n);
|
|
@@ -2557,7 +2585,7 @@ Ft.write = function(r, o, l, h, d, g) {
|
|
|
2557
2585
|
if ((n === void 0 || n > c) && (n = c), e.length > 0 && (n < 0 || t < 0) || t > this.length)
|
|
2558
2586
|
throw new RangeError("Attempt to write outside buffer bounds");
|
|
2559
2587
|
a || (a = "utf8");
|
|
2560
|
-
let
|
|
2588
|
+
let h = !1;
|
|
2561
2589
|
for (; ; )
|
|
2562
2590
|
switch (a) {
|
|
2563
2591
|
case "hex":
|
|
@@ -2577,9 +2605,9 @@ Ft.write = function(r, o, l, h, d, g) {
|
|
|
2577
2605
|
case "utf-16le":
|
|
2578
2606
|
return ce(this, e, t, n);
|
|
2579
2607
|
default:
|
|
2580
|
-
if (
|
|
2608
|
+
if (h)
|
|
2581
2609
|
throw new TypeError("Unknown encoding: " + a);
|
|
2582
|
-
a = ("" + a).toLowerCase(),
|
|
2610
|
+
a = ("" + a).toLowerCase(), h = !0;
|
|
2583
2611
|
}
|
|
2584
2612
|
}, s.prototype.toJSON = function() {
|
|
2585
2613
|
return {
|
|
@@ -2596,24 +2624,24 @@ Ft.write = function(r, o, l, h, d, g) {
|
|
|
2596
2624
|
let a = e;
|
|
2597
2625
|
for (; a < t; ) {
|
|
2598
2626
|
const c = i[a];
|
|
2599
|
-
let
|
|
2627
|
+
let h = null, D = c > 239 ? 4 : c > 223 ? 3 : c > 191 ? 2 : 1;
|
|
2600
2628
|
if (a + D <= t) {
|
|
2601
2629
|
let b, k, R, j;
|
|
2602
2630
|
switch (D) {
|
|
2603
2631
|
case 1:
|
|
2604
|
-
c < 128 && (
|
|
2632
|
+
c < 128 && (h = c);
|
|
2605
2633
|
break;
|
|
2606
2634
|
case 2:
|
|
2607
|
-
b = i[a + 1], (b & 192) === 128 && (j = (c & 31) << 6 | b & 63, j > 127 && (
|
|
2635
|
+
b = i[a + 1], (b & 192) === 128 && (j = (c & 31) << 6 | b & 63, j > 127 && (h = j));
|
|
2608
2636
|
break;
|
|
2609
2637
|
case 3:
|
|
2610
|
-
b = i[a + 1], k = i[a + 2], (b & 192) === 128 && (k & 192) === 128 && (j = (c & 15) << 12 | (b & 63) << 6 | k & 63, j > 2047 && (j < 55296 || j > 57343) && (
|
|
2638
|
+
b = i[a + 1], k = i[a + 2], (b & 192) === 128 && (k & 192) === 128 && (j = (c & 15) << 12 | (b & 63) << 6 | k & 63, j > 2047 && (j < 55296 || j > 57343) && (h = j));
|
|
2611
2639
|
break;
|
|
2612
2640
|
case 4:
|
|
2613
|
-
b = i[a + 1], k = i[a + 2], R = i[a + 3], (b & 192) === 128 && (k & 192) === 128 && (R & 192) === 128 && (j = (c & 15) << 18 | (b & 63) << 12 | (k & 63) << 6 | R & 63, j > 65535 && j < 1114112 && (
|
|
2641
|
+
b = i[a + 1], k = i[a + 2], R = i[a + 3], (b & 192) === 128 && (k & 192) === 128 && (R & 192) === 128 && (j = (c & 15) << 18 | (b & 63) << 12 | (k & 63) << 6 | R & 63, j > 65535 && j < 1114112 && (h = j));
|
|
2614
2642
|
}
|
|
2615
2643
|
}
|
|
2616
|
-
|
|
2644
|
+
h === null ? (h = 65533, D = 1) : h > 65535 && (h -= 65536, n.push(h >>> 10 & 1023 | 55296), h = 56320 | h & 1023), n.push(h), a += D;
|
|
2617
2645
|
}
|
|
2618
2646
|
return ze(n);
|
|
2619
2647
|
}
|
|
@@ -2673,9 +2701,9 @@ Ft.write = function(r, o, l, h, d, g) {
|
|
|
2673
2701
|
}
|
|
2674
2702
|
s.prototype.readUintLE = s.prototype.readUIntLE = function(e, t, n) {
|
|
2675
2703
|
e = e >>> 0, t = t >>> 0, n || _(e, t, this.length);
|
|
2676
|
-
let a = this[e], c = 1,
|
|
2677
|
-
for (; ++
|
|
2678
|
-
a += this[e +
|
|
2704
|
+
let a = this[e], c = 1, h = 0;
|
|
2705
|
+
for (; ++h < t && (c *= 256); )
|
|
2706
|
+
a += this[e + h] * c;
|
|
2679
2707
|
return a;
|
|
2680
2708
|
}, s.prototype.readUintBE = s.prototype.readUIntBE = function(e, t, n) {
|
|
2681
2709
|
e = e >>> 0, t = t >>> 0, n || _(e, t, this.length);
|
|
@@ -2707,16 +2735,16 @@ Ft.write = function(r, o, l, h, d, g) {
|
|
|
2707
2735
|
return (BigInt(a) << BigInt(32)) + BigInt(c);
|
|
2708
2736
|
}), s.prototype.readIntLE = function(e, t, n) {
|
|
2709
2737
|
e = e >>> 0, t = t >>> 0, n || _(e, t, this.length);
|
|
2710
|
-
let a = this[e], c = 1,
|
|
2711
|
-
for (; ++
|
|
2712
|
-
a += this[e +
|
|
2738
|
+
let a = this[e], c = 1, h = 0;
|
|
2739
|
+
for (; ++h < t && (c *= 256); )
|
|
2740
|
+
a += this[e + h] * c;
|
|
2713
2741
|
return c *= 128, a >= c && (a -= Math.pow(2, 8 * t)), a;
|
|
2714
2742
|
}, s.prototype.readIntBE = function(e, t, n) {
|
|
2715
2743
|
e = e >>> 0, t = t >>> 0, n || _(e, t, this.length);
|
|
2716
|
-
let a = t, c = 1,
|
|
2744
|
+
let a = t, c = 1, h = this[e + --a];
|
|
2717
2745
|
for (; a > 0 && (c *= 256); )
|
|
2718
|
-
|
|
2719
|
-
return c *= 128,
|
|
2746
|
+
h += this[e + --a] * c;
|
|
2747
|
+
return c *= 128, h >= c && (h -= Math.pow(2, 8 * t)), h;
|
|
2720
2748
|
}, s.prototype.readInt8 = function(e, t) {
|
|
2721
2749
|
return e = e >>> 0, t || _(e, 1, this.length), this[e] & 128 ? (255 - this[e] + 1) * -1 : this[e];
|
|
2722
2750
|
}, s.prototype.readInt16LE = function(e, t) {
|
|
@@ -2766,18 +2794,18 @@ Ft.write = function(r, o, l, h, d, g) {
|
|
|
2766
2794
|
const D = Math.pow(2, 8 * n) - 1;
|
|
2767
2795
|
$(this, e, t, n, D, 0);
|
|
2768
2796
|
}
|
|
2769
|
-
let c = 1,
|
|
2770
|
-
for (this[t] = e & 255; ++
|
|
2771
|
-
this[t +
|
|
2797
|
+
let c = 1, h = 0;
|
|
2798
|
+
for (this[t] = e & 255; ++h < n && (c *= 256); )
|
|
2799
|
+
this[t + h] = e / c & 255;
|
|
2772
2800
|
return t + n;
|
|
2773
2801
|
}, s.prototype.writeUintBE = s.prototype.writeUIntBE = function(e, t, n, a) {
|
|
2774
2802
|
if (e = +e, t = t >>> 0, n = n >>> 0, !a) {
|
|
2775
2803
|
const D = Math.pow(2, 8 * n) - 1;
|
|
2776
2804
|
$(this, e, t, n, D, 0);
|
|
2777
2805
|
}
|
|
2778
|
-
let c = n - 1,
|
|
2779
|
-
for (this[t + c] = e & 255; --c >= 0 && (
|
|
2780
|
-
this[t + c] = e /
|
|
2806
|
+
let c = n - 1, h = 1;
|
|
2807
|
+
for (this[t + c] = e & 255; --c >= 0 && (h *= 256); )
|
|
2808
|
+
this[t + c] = e / h & 255;
|
|
2781
2809
|
return t + n;
|
|
2782
2810
|
}, s.prototype.writeUint8 = s.prototype.writeUInt8 = function(e, t, n) {
|
|
2783
2811
|
return e = +e, t = t >>> 0, n || $(this, e, t, 1, 255, 0), this[t] = e & 255, t + 1;
|
|
@@ -2794,15 +2822,15 @@ Ft.write = function(r, o, l, h, d, g) {
|
|
|
2794
2822
|
Je(e, n, a, i, t, 7);
|
|
2795
2823
|
let c = Number(e & BigInt(4294967295));
|
|
2796
2824
|
i[t++] = c, c = c >> 8, i[t++] = c, c = c >> 8, i[t++] = c, c = c >> 8, i[t++] = c;
|
|
2797
|
-
let
|
|
2798
|
-
return i[t++] =
|
|
2825
|
+
let h = Number(e >> BigInt(32) & BigInt(4294967295));
|
|
2826
|
+
return i[t++] = h, h = h >> 8, i[t++] = h, h = h >> 8, i[t++] = h, h = h >> 8, i[t++] = h, t;
|
|
2799
2827
|
}
|
|
2800
2828
|
function se(i, e, t, n, a) {
|
|
2801
2829
|
Je(e, n, a, i, t, 7);
|
|
2802
2830
|
let c = Number(e & BigInt(4294967295));
|
|
2803
2831
|
i[t + 7] = c, c = c >> 8, i[t + 6] = c, c = c >> 8, i[t + 5] = c, c = c >> 8, i[t + 4] = c;
|
|
2804
|
-
let
|
|
2805
|
-
return i[t + 3] =
|
|
2832
|
+
let h = Number(e >> BigInt(32) & BigInt(4294967295));
|
|
2833
|
+
return i[t + 3] = h, h = h >> 8, i[t + 2] = h, h = h >> 8, i[t + 1] = h, h = h >> 8, i[t] = h, t + 8;
|
|
2806
2834
|
}
|
|
2807
2835
|
s.prototype.writeBigUInt64LE = Q(function(e, t = 0) {
|
|
2808
2836
|
return Te(this, e, t, BigInt(0), BigInt("0xffffffffffffffff"));
|
|
@@ -2813,18 +2841,18 @@ Ft.write = function(r, o, l, h, d, g) {
|
|
|
2813
2841
|
const b = Math.pow(2, 8 * n - 1);
|
|
2814
2842
|
$(this, e, t, n, b - 1, -b);
|
|
2815
2843
|
}
|
|
2816
|
-
let c = 0,
|
|
2817
|
-
for (this[t] = e & 255; ++c < n && (
|
|
2818
|
-
e < 0 && D === 0 && this[t + c - 1] !== 0 && (D = 1), this[t + c] = (e /
|
|
2844
|
+
let c = 0, h = 1, D = 0;
|
|
2845
|
+
for (this[t] = e & 255; ++c < n && (h *= 256); )
|
|
2846
|
+
e < 0 && D === 0 && this[t + c - 1] !== 0 && (D = 1), this[t + c] = (e / h >> 0) - D & 255;
|
|
2819
2847
|
return t + n;
|
|
2820
2848
|
}, s.prototype.writeIntBE = function(e, t, n, a) {
|
|
2821
2849
|
if (e = +e, t = t >>> 0, !a) {
|
|
2822
2850
|
const b = Math.pow(2, 8 * n - 1);
|
|
2823
2851
|
$(this, e, t, n, b - 1, -b);
|
|
2824
2852
|
}
|
|
2825
|
-
let c = n - 1,
|
|
2826
|
-
for (this[t + c] = e & 255; --c >= 0 && (
|
|
2827
|
-
e < 0 && D === 0 && this[t + c + 1] !== 0 && (D = 1), this[t + c] = (e /
|
|
2853
|
+
let c = n - 1, h = 1, D = 0;
|
|
2854
|
+
for (this[t + c] = e & 255; --c >= 0 && (h *= 256); )
|
|
2855
|
+
e < 0 && D === 0 && this[t + c + 1] !== 0 && (D = 1), this[t + c] = (e / h >> 0) - D & 255;
|
|
2828
2856
|
return t + n;
|
|
2829
2857
|
}, s.prototype.writeInt8 = function(e, t, n) {
|
|
2830
2858
|
return e = +e, t = t >>> 0, n || $(this, e, t, 1, 127, -128), e < 0 && (e = 255 + e + 1), this[t] = e & 255, t + 1;
|
|
@@ -2887,8 +2915,8 @@ Ft.write = function(r, o, l, h, d, g) {
|
|
|
2887
2915
|
if (typeof a == "string" && !s.isEncoding(a))
|
|
2888
2916
|
throw new TypeError("Unknown encoding: " + a);
|
|
2889
2917
|
if (e.length === 1) {
|
|
2890
|
-
const
|
|
2891
|
-
(a === "utf8" &&
|
|
2918
|
+
const h = e.charCodeAt(0);
|
|
2919
|
+
(a === "utf8" && h < 128 || a === "latin1") && (e = h);
|
|
2892
2920
|
}
|
|
2893
2921
|
} else
|
|
2894
2922
|
typeof e == "number" ? e = e & 255 : typeof e == "boolean" && (e = Number(e));
|
|
@@ -2902,11 +2930,11 @@ Ft.write = function(r, o, l, h, d, g) {
|
|
|
2902
2930
|
for (c = t; c < n; ++c)
|
|
2903
2931
|
this[c] = e;
|
|
2904
2932
|
else {
|
|
2905
|
-
const
|
|
2933
|
+
const h = s.isBuffer(e) ? e : s.from(e, a), D = h.length;
|
|
2906
2934
|
if (D === 0)
|
|
2907
2935
|
throw new TypeError('The value "' + e + '" is invalid for argument "value"');
|
|
2908
2936
|
for (c = 0; c < n - t; ++c)
|
|
2909
|
-
this[c + t] =
|
|
2937
|
+
this[c + t] = h[c % D];
|
|
2910
2938
|
}
|
|
2911
2939
|
return this;
|
|
2912
2940
|
};
|
|
@@ -2968,9 +2996,9 @@ Ft.write = function(r, o, l, h, d, g) {
|
|
|
2968
2996
|
}
|
|
2969
2997
|
function Je(i, e, t, n, a, c) {
|
|
2970
2998
|
if (i > t || i < e) {
|
|
2971
|
-
const
|
|
2999
|
+
const h = typeof e == "bigint" ? "n" : "";
|
|
2972
3000
|
let D;
|
|
2973
|
-
throw c > 3 ? e === 0 || e === BigInt(0) ? D = `>= 0${
|
|
3001
|
+
throw c > 3 ? e === 0 || e === BigInt(0) ? D = `>= 0${h} and < 2${h} ** ${(c + 1) * 8}${h}` : D = `>= -(2${h} ** ${(c + 1) * 8 - 1}${h}) and < 2 ** ${(c + 1) * 8 - 1}${h}` : D = `>= ${e}${h} and <= ${t}${h}`, new J.ERR_OUT_OF_RANGE("value", D, i);
|
|
2974
3002
|
}
|
|
2975
3003
|
ct(n, a, c);
|
|
2976
3004
|
}
|
|
@@ -2999,13 +3027,13 @@ Ft.write = function(r, o, l, h, d, g) {
|
|
|
2999
3027
|
const n = i.length;
|
|
3000
3028
|
let a = null;
|
|
3001
3029
|
const c = [];
|
|
3002
|
-
for (let
|
|
3003
|
-
if (t = i.charCodeAt(
|
|
3030
|
+
for (let h = 0; h < n; ++h) {
|
|
3031
|
+
if (t = i.charCodeAt(h), t > 55295 && t < 57344) {
|
|
3004
3032
|
if (!a) {
|
|
3005
3033
|
if (t > 56319) {
|
|
3006
3034
|
(e -= 3) > -1 && c.push(239, 191, 189);
|
|
3007
3035
|
continue;
|
|
3008
|
-
} else if (
|
|
3036
|
+
} else if (h + 1 === n) {
|
|
3009
3037
|
(e -= 3) > -1 && c.push(239, 191, 189);
|
|
3010
3038
|
continue;
|
|
3011
3039
|
}
|
|
@@ -3061,8 +3089,8 @@ Ft.write = function(r, o, l, h, d, g) {
|
|
|
3061
3089
|
function pt(i, e) {
|
|
3062
3090
|
let t, n, a;
|
|
3063
3091
|
const c = [];
|
|
3064
|
-
for (let
|
|
3065
|
-
t = i.charCodeAt(
|
|
3092
|
+
for (let h = 0; h < i.length && !((e -= 2) < 0); ++h)
|
|
3093
|
+
t = i.charCodeAt(h), n = t >> 8, a = t % 256, c.push(a), c.push(n);
|
|
3066
3094
|
return c;
|
|
3067
3095
|
}
|
|
3068
3096
|
function Xe(i) {
|
|
@@ -3095,8 +3123,8 @@ Ft.write = function(r, o, l, h, d, g) {
|
|
|
3095
3123
|
function gt() {
|
|
3096
3124
|
throw new Error("BigInt not supported");
|
|
3097
3125
|
}
|
|
3098
|
-
})(
|
|
3099
|
-
var
|
|
3126
|
+
})(Ni);
|
|
3127
|
+
var Ti = { exports: {} }, Y = Ti.exports = {}, ue, he;
|
|
3100
3128
|
function vt() {
|
|
3101
3129
|
throw new Error("setTimeout has not been defined");
|
|
3102
3130
|
}
|
|
@@ -3115,7 +3143,7 @@ function Dt() {
|
|
|
3115
3143
|
he = Dt;
|
|
3116
3144
|
}
|
|
3117
3145
|
})();
|
|
3118
|
-
function
|
|
3146
|
+
function vi(r) {
|
|
3119
3147
|
if (ue === setTimeout)
|
|
3120
3148
|
return setTimeout(r, 0);
|
|
3121
3149
|
if ((ue === vt || !ue) && setTimeout)
|
|
@@ -3130,7 +3158,7 @@ function Ti(r) {
|
|
|
3130
3158
|
}
|
|
3131
3159
|
}
|
|
3132
3160
|
}
|
|
3133
|
-
function
|
|
3161
|
+
function ws(r) {
|
|
3134
3162
|
if (he === clearTimeout)
|
|
3135
3163
|
return clearTimeout(r);
|
|
3136
3164
|
if ((he === Dt || !he) && clearTimeout)
|
|
@@ -3146,19 +3174,19 @@ function ys(r) {
|
|
|
3146
3174
|
}
|
|
3147
3175
|
}
|
|
3148
3176
|
var Ce = [], Ze = !1, be, ot = -1;
|
|
3149
|
-
function
|
|
3150
|
-
!Ze || !be || (Ze = !1, be.length ? Ce = be.concat(Ce) : ot = -1, Ce.length &&
|
|
3177
|
+
function Es() {
|
|
3178
|
+
!Ze || !be || (Ze = !1, be.length ? Ce = be.concat(Ce) : ot = -1, Ce.length && Di());
|
|
3151
3179
|
}
|
|
3152
|
-
function
|
|
3180
|
+
function Di() {
|
|
3153
3181
|
if (!Ze) {
|
|
3154
|
-
var r =
|
|
3182
|
+
var r = vi(Es);
|
|
3155
3183
|
Ze = !0;
|
|
3156
3184
|
for (var o = Ce.length; o; ) {
|
|
3157
3185
|
for (be = Ce, Ce = []; ++ot < o; )
|
|
3158
3186
|
be && be[ot].run();
|
|
3159
3187
|
ot = -1, o = Ce.length;
|
|
3160
3188
|
}
|
|
3161
|
-
be = null, Ze = !1,
|
|
3189
|
+
be = null, Ze = !1, ws(r);
|
|
3162
3190
|
}
|
|
3163
3191
|
}
|
|
3164
3192
|
Y.nextTick = function(r) {
|
|
@@ -3166,12 +3194,12 @@ Y.nextTick = function(r) {
|
|
|
3166
3194
|
if (arguments.length > 1)
|
|
3167
3195
|
for (var l = 1; l < arguments.length; l++)
|
|
3168
3196
|
o[l - 1] = arguments[l];
|
|
3169
|
-
Ce.push(new
|
|
3197
|
+
Ce.push(new Li(r, o)), Ce.length === 1 && !Ze && vi(Di);
|
|
3170
3198
|
};
|
|
3171
|
-
function
|
|
3199
|
+
function Li(r, o) {
|
|
3172
3200
|
this.fun = r, this.array = o;
|
|
3173
3201
|
}
|
|
3174
|
-
|
|
3202
|
+
Li.prototype.run = function() {
|
|
3175
3203
|
this.fun.apply(null, this.array);
|
|
3176
3204
|
};
|
|
3177
3205
|
Y.title = "browser";
|
|
@@ -3206,14 +3234,14 @@ Y.chdir = function(r) {
|
|
|
3206
3234
|
Y.umask = function() {
|
|
3207
3235
|
return 0;
|
|
3208
3236
|
};
|
|
3209
|
-
var
|
|
3237
|
+
var As = Ti.exports;
|
|
3210
3238
|
(function(r) {
|
|
3211
3239
|
Object.defineProperty(r, Symbol.toStringTag, { value: "Module" });
|
|
3212
|
-
const o =
|
|
3240
|
+
const o = Ni, l = As, u = (f) => f && f.__esModule ? f : { default: f }, d = u(l), g = globalThis || void 0 || self;
|
|
3213
3241
|
Object.defineProperty(r, "Buffer", { enumerable: !0, get: () => o.Buffer }), Object.defineProperty(r, "process", { enumerable: !0, get: () => d.default }), r.global = g;
|
|
3214
|
-
})(
|
|
3242
|
+
})(Ai);
|
|
3215
3243
|
let ie;
|
|
3216
|
-
typeof window < "u" ? ie = window : typeof self < "u" ? ie = self : ie =
|
|
3244
|
+
typeof window < "u" ? ie = window : typeof self < "u" ? ie = self : ie = Ai.global;
|
|
3217
3245
|
let Lt = null, zt = null;
|
|
3218
3246
|
const ti = 20, wt = ie.clearTimeout, ii = ie.setTimeout, Et = ie.cancelAnimationFrame || ie.mozCancelAnimationFrame || ie.webkitCancelAnimationFrame, ri = ie.requestAnimationFrame || ie.mozRequestAnimationFrame || ie.webkitRequestAnimationFrame;
|
|
3219
3247
|
Et == null || ri == null ? (Lt = wt, zt = function(o) {
|
|
@@ -3222,14 +3250,14 @@ Et == null || ri == null ? (Lt = wt, zt = function(o) {
|
|
|
3222
3250
|
Et(o), wt(l);
|
|
3223
3251
|
}, zt = function(o) {
|
|
3224
3252
|
const l = ri(function() {
|
|
3225
|
-
wt(
|
|
3226
|
-
}),
|
|
3253
|
+
wt(u), o();
|
|
3254
|
+
}), u = ii(function() {
|
|
3227
3255
|
Et(l), o();
|
|
3228
3256
|
}, ti);
|
|
3229
|
-
return [l,
|
|
3257
|
+
return [l, u];
|
|
3230
3258
|
});
|
|
3231
|
-
function
|
|
3232
|
-
let o, l,
|
|
3259
|
+
function Ns(r) {
|
|
3260
|
+
let o, l, u, d, g, f, s;
|
|
3233
3261
|
const I = typeof document < "u" && document.attachEvent;
|
|
3234
3262
|
if (!I) {
|
|
3235
3263
|
f = function(w) {
|
|
@@ -3248,7 +3276,7 @@ function ws(r) {
|
|
|
3248
3276
|
});
|
|
3249
3277
|
};
|
|
3250
3278
|
let C = !1, v = "";
|
|
3251
|
-
|
|
3279
|
+
u = "animationstart";
|
|
3252
3280
|
const z = "Webkit Moz O ms".split(" ");
|
|
3253
3281
|
let y = "webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" "), A = "";
|
|
3254
3282
|
{
|
|
@@ -3256,7 +3284,7 @@ function ws(r) {
|
|
|
3256
3284
|
if (w.style.animationName !== void 0 && (C = !0), C === !1) {
|
|
3257
3285
|
for (let T = 0; T < z.length; T++)
|
|
3258
3286
|
if (w.style[z[T] + "AnimationName"] !== void 0) {
|
|
3259
|
-
A = z[T], v = "-" + A.toLowerCase() + "-",
|
|
3287
|
+
A = z[T], v = "-" + A.toLowerCase() + "-", u = y[T], C = !0;
|
|
3260
3288
|
break;
|
|
3261
3289
|
}
|
|
3262
3290
|
}
|
|
@@ -3280,9 +3308,9 @@ function ws(r) {
|
|
|
3280
3308
|
const A = z.createElement("div");
|
|
3281
3309
|
A.className = "expand-trigger", A.appendChild(z.createElement("div"));
|
|
3282
3310
|
const w = z.createElement("div");
|
|
3283
|
-
w.className = "contract-trigger", C.__resizeTriggers__.appendChild(A), C.__resizeTriggers__.appendChild(w), C.appendChild(C.__resizeTriggers__), f(C), C.addEventListener("scroll", s, !0),
|
|
3311
|
+
w.className = "contract-trigger", C.__resizeTriggers__.appendChild(A), C.__resizeTriggers__.appendChild(w), C.appendChild(C.__resizeTriggers__), f(C), C.addEventListener("scroll", s, !0), u && (C.__resizeTriggers__.__animationListener__ = function(S) {
|
|
3284
3312
|
S.animationName === l && f(C);
|
|
3285
|
-
}, C.__resizeTriggers__.addEventListener(
|
|
3313
|
+
}, C.__resizeTriggers__.addEventListener(u, C.__resizeTriggers__.__animationListener__));
|
|
3286
3314
|
}
|
|
3287
3315
|
C.__resizeListeners__.push(v);
|
|
3288
3316
|
}
|
|
@@ -3291,7 +3319,7 @@ function ws(r) {
|
|
|
3291
3319
|
if (I)
|
|
3292
3320
|
C.detachEvent("onresize", v);
|
|
3293
3321
|
else if (C.__resizeListeners__.splice(C.__resizeListeners__.indexOf(v), 1), !C.__resizeListeners__.length) {
|
|
3294
|
-
C.removeEventListener("scroll", s, !0), C.__resizeTriggers__.__animationListener__ && (C.__resizeTriggers__.removeEventListener(
|
|
3322
|
+
C.removeEventListener("scroll", s, !0), C.__resizeTriggers__.__animationListener__ && (C.__resizeTriggers__.removeEventListener(u, C.__resizeTriggers__.__animationListener__), C.__resizeTriggers__.__animationListener__ = null);
|
|
3295
3323
|
try {
|
|
3296
3324
|
C.__resizeTriggers__ = !C.removeChild(C.__resizeTriggers__);
|
|
3297
3325
|
} catch {
|
|
@@ -3300,7 +3328,7 @@ function ws(r) {
|
|
|
3300
3328
|
}
|
|
3301
3329
|
};
|
|
3302
3330
|
}
|
|
3303
|
-
class
|
|
3331
|
+
class xs extends Oi {
|
|
3304
3332
|
constructor(...o) {
|
|
3305
3333
|
super(...o), this.state = {
|
|
3306
3334
|
height: this.props.defaultHeight || 0,
|
|
@@ -3311,13 +3339,13 @@ class Es extends _i {
|
|
|
3311
3339
|
this._timeoutId = null;
|
|
3312
3340
|
const {
|
|
3313
3341
|
disableHeight: l,
|
|
3314
|
-
disableWidth:
|
|
3342
|
+
disableWidth: u,
|
|
3315
3343
|
onResize: d
|
|
3316
3344
|
} = this.props;
|
|
3317
3345
|
if (this._parentNode) {
|
|
3318
3346
|
var g, f, s, I;
|
|
3319
3347
|
const N = window.getComputedStyle(this._parentNode) || {}, E = parseFloat((g = N.paddingLeft) !== null && g !== void 0 ? g : "0"), x = parseFloat((f = N.paddingRight) !== null && f !== void 0 ? f : "0"), C = parseFloat((s = N.paddingTop) !== null && s !== void 0 ? s : "0"), v = parseFloat((I = N.paddingBottom) !== null && I !== void 0 ? I : "0"), z = this._parentNode.getBoundingClientRect(), y = z.height - C - v, A = z.width - E - x, w = this._parentNode.offsetHeight - C - v, T = this._parentNode.offsetWidth - E - x;
|
|
3320
|
-
(!l && (this.state.height !== w || this.state.scaledHeight !== y) || !
|
|
3348
|
+
(!l && (this.state.height !== w || this.state.scaledHeight !== y) || !u && (this.state.width !== T || this.state.scaledWidth !== A)) && (this.setState({
|
|
3321
3349
|
height: w,
|
|
3322
3350
|
width: T,
|
|
3323
3351
|
scaledHeight: y,
|
|
@@ -3339,7 +3367,7 @@ class Es extends _i {
|
|
|
3339
3367
|
} = this.props;
|
|
3340
3368
|
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(() => {
|
|
3341
3369
|
this._timeoutId = setTimeout(this._onResize, 0);
|
|
3342
|
-
}), this._resizeObserver.observe(this._parentNode)) : (this._detectElementResize =
|
|
3370
|
+
}), this._resizeObserver.observe(this._parentNode)) : (this._detectElementResize = Ns(o), this._detectElementResize.addResizeListener(this._parentNode, this._onResize)), this._onResize()));
|
|
3343
3371
|
}
|
|
3344
3372
|
componentWillUnmount() {
|
|
3345
3373
|
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()));
|
|
@@ -3348,7 +3376,7 @@ class Es extends _i {
|
|
|
3348
3376
|
const {
|
|
3349
3377
|
children: o,
|
|
3350
3378
|
defaultHeight: l,
|
|
3351
|
-
defaultWidth:
|
|
3379
|
+
defaultWidth: u,
|
|
3352
3380
|
disableHeight: d = !1,
|
|
3353
3381
|
disableWidth: g = !1,
|
|
3354
3382
|
nonce: f,
|
|
@@ -3379,8 +3407,8 @@ function St() {
|
|
|
3379
3407
|
return St = Object.assign ? Object.assign.bind() : function(r) {
|
|
3380
3408
|
for (var o = 1; o < arguments.length; o++) {
|
|
3381
3409
|
var l = arguments[o];
|
|
3382
|
-
for (var
|
|
3383
|
-
Object.prototype.hasOwnProperty.call(l,
|
|
3410
|
+
for (var u in l)
|
|
3411
|
+
Object.prototype.hasOwnProperty.call(l, u) && (r[u] = l[u]);
|
|
3384
3412
|
}
|
|
3385
3413
|
return r;
|
|
3386
3414
|
}, St.apply(this, arguments);
|
|
@@ -3391,38 +3419,38 @@ function ni(r) {
|
|
|
3391
3419
|
return r;
|
|
3392
3420
|
}
|
|
3393
3421
|
function jt(r, o) {
|
|
3394
|
-
return jt = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(
|
|
3395
|
-
return
|
|
3422
|
+
return jt = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(u, d) {
|
|
3423
|
+
return u.__proto__ = d, u;
|
|
3396
3424
|
}, jt(r, o);
|
|
3397
3425
|
}
|
|
3398
|
-
function
|
|
3426
|
+
function Ts(r, o) {
|
|
3399
3427
|
r.prototype = Object.create(o.prototype), r.prototype.constructor = r, jt(r, o);
|
|
3400
3428
|
}
|
|
3401
3429
|
var oi = Number.isNaN || function(o) {
|
|
3402
3430
|
return typeof o == "number" && o !== o;
|
|
3403
3431
|
};
|
|
3404
|
-
function
|
|
3432
|
+
function vs(r, o) {
|
|
3405
3433
|
return !!(r === o || oi(r) && oi(o));
|
|
3406
3434
|
}
|
|
3407
|
-
function
|
|
3435
|
+
function Ds(r, o) {
|
|
3408
3436
|
if (r.length !== o.length)
|
|
3409
3437
|
return !1;
|
|
3410
3438
|
for (var l = 0; l < r.length; l++)
|
|
3411
|
-
if (!
|
|
3439
|
+
if (!vs(r[l], o[l]))
|
|
3412
3440
|
return !1;
|
|
3413
3441
|
return !0;
|
|
3414
3442
|
}
|
|
3415
3443
|
function At(r, o) {
|
|
3416
|
-
o === void 0 && (o =
|
|
3417
|
-
var l,
|
|
3444
|
+
o === void 0 && (o = Ds);
|
|
3445
|
+
var l, u = [], d, g = !1;
|
|
3418
3446
|
function f() {
|
|
3419
3447
|
for (var s = [], I = 0; I < arguments.length; I++)
|
|
3420
3448
|
s[I] = arguments[I];
|
|
3421
|
-
return g && l === this && o(s,
|
|
3449
|
+
return g && l === this && o(s, u) || (d = r.apply(this, s), g = !0, l = this, u = s), d;
|
|
3422
3450
|
}
|
|
3423
3451
|
return f;
|
|
3424
3452
|
}
|
|
3425
|
-
var
|
|
3453
|
+
var Ls = typeof performance == "object" && typeof performance.now == "function", si = Ls ? function() {
|
|
3426
3454
|
return performance.now();
|
|
3427
3455
|
} : function() {
|
|
3428
3456
|
return Date.now();
|
|
@@ -3430,13 +3458,13 @@ var Ts = typeof performance == "object" && typeof performance.now == "function",
|
|
|
3430
3458
|
function ai(r) {
|
|
3431
3459
|
cancelAnimationFrame(r.id);
|
|
3432
3460
|
}
|
|
3433
|
-
function
|
|
3461
|
+
function zs(r, o) {
|
|
3434
3462
|
var l = si();
|
|
3435
|
-
function
|
|
3436
|
-
si() - l >= o ? r.call(null) : d.id = requestAnimationFrame(
|
|
3463
|
+
function u() {
|
|
3464
|
+
si() - l >= o ? r.call(null) : d.id = requestAnimationFrame(u);
|
|
3437
3465
|
}
|
|
3438
3466
|
var d = {
|
|
3439
|
-
id: requestAnimationFrame(
|
|
3467
|
+
id: requestAnimationFrame(u)
|
|
3440
3468
|
};
|
|
3441
3469
|
return d;
|
|
3442
3470
|
}
|
|
@@ -3453,18 +3481,18 @@ function ci(r) {
|
|
|
3453
3481
|
if (r === void 0 && (r = !1), Pe === null || r) {
|
|
3454
3482
|
var o = document.createElement("div"), l = o.style;
|
|
3455
3483
|
l.width = "50px", l.height = "50px", l.overflow = "scroll", l.direction = "rtl";
|
|
3456
|
-
var
|
|
3457
|
-
return d.width = "100px", d.height = "100px", o.appendChild(
|
|
3484
|
+
var u = document.createElement("div"), d = u.style;
|
|
3485
|
+
return d.width = "100px", d.height = "100px", o.appendChild(u), document.body.appendChild(o), o.scrollLeft > 0 ? Pe = "positive-descending" : (o.scrollLeft = 1, o.scrollLeft === 0 ? Pe = "negative" : Pe = "positive-ascending"), document.body.removeChild(o), Pe;
|
|
3458
3486
|
}
|
|
3459
3487
|
return Pe;
|
|
3460
3488
|
}
|
|
3461
|
-
var
|
|
3489
|
+
var Ss = 150, js = function(o, l) {
|
|
3462
3490
|
return o;
|
|
3463
3491
|
};
|
|
3464
|
-
function
|
|
3465
|
-
var o, l = r.getItemOffset,
|
|
3492
|
+
function Bs(r) {
|
|
3493
|
+
var o, l = r.getItemOffset, u = r.getEstimatedTotalSize, d = r.getItemSize, g = r.getOffsetForIndexAndAlignment, f = r.getStartIndexForOffset, s = r.getStopIndexForStartIndex, I = r.initInstanceProps, N = r.shouldResetStyleCacheOnItemSizeChange, E = r.validateProps;
|
|
3466
3494
|
return o = /* @__PURE__ */ function(x) {
|
|
3467
|
-
|
|
3495
|
+
Ts(C, x);
|
|
3468
3496
|
function C(z) {
|
|
3469
3497
|
var y;
|
|
3470
3498
|
return y = x.call(this, z) || this, y._instanceProps = I(y.props, ni(y)), y._outerRef = void 0, y._resetIsScrollingTimeoutId = null, y.state = {
|
|
@@ -3543,7 +3571,7 @@ function zs(r) {
|
|
|
3543
3571
|
var w = y.props.outerRef;
|
|
3544
3572
|
y._outerRef = A, typeof w == "function" ? w(A) : w != null && typeof w == "object" && w.hasOwnProperty("current") && (w.current = A);
|
|
3545
3573
|
}, y._resetIsScrollingDebounced = function() {
|
|
3546
|
-
y._resetIsScrollingTimeoutId !== null && ai(y._resetIsScrollingTimeoutId), y._resetIsScrollingTimeoutId =
|
|
3574
|
+
y._resetIsScrollingTimeoutId !== null && ai(y._resetIsScrollingTimeoutId), y._resetIsScrollingTimeoutId = zs(y._resetIsScrolling, Ss);
|
|
3547
3575
|
}, y._resetIsScrolling = function() {
|
|
3548
3576
|
y._resetIsScrollingTimeoutId = null, y.setState({
|
|
3549
3577
|
isScrolling: !1
|
|
@@ -3553,7 +3581,7 @@ function zs(r) {
|
|
|
3553
3581
|
}, y;
|
|
3554
3582
|
}
|
|
3555
3583
|
C.getDerivedStateFromProps = function(y, A) {
|
|
3556
|
-
return
|
|
3584
|
+
return ks(y, A), E(y), null;
|
|
3557
3585
|
};
|
|
3558
3586
|
var v = C.prototype;
|
|
3559
3587
|
return v.scrollTo = function(y) {
|
|
@@ -3608,7 +3636,7 @@ function zs(r) {
|
|
|
3608
3636
|
}, v.componentWillUnmount = function() {
|
|
3609
3637
|
this._resetIsScrollingTimeoutId !== null && ai(this._resetIsScrollingTimeoutId);
|
|
3610
3638
|
}, v.render = function() {
|
|
3611
|
-
var y = this.props, A = y.children, w = y.className, T = y.direction, S = y.height, O = y.innerRef, B = y.innerElementType, U = y.innerTagName, F = y.itemCount, G = y.itemData, q = y.itemKey, le = q === void 0 ?
|
|
3639
|
+
var y = this.props, A = y.children, w = y.className, T = y.direction, S = y.height, O = y.innerRef, B = y.innerElementType, U = y.innerTagName, F = y.itemCount, G = y.itemData, q = y.itemKey, le = q === void 0 ? js : q, re = y.layout, ce = y.outerElementType, W = y.outerTagName, ne = y.style, me = y.useIsScrolling, ze = y.width, Ne = this.state.isScrolling, Ie = T === "horizontal" || re === "horizontal", oe = Ie ? this._onScrollHorizontal : this._onScrollVertical, xe = this._getRangeToRender(), _ = xe[0], $ = xe[1], Te = [];
|
|
3612
3640
|
if (F > 0)
|
|
3613
3641
|
for (var se = _; se <= $; se++)
|
|
3614
3642
|
Te.push(rt(A, {
|
|
@@ -3618,7 +3646,7 @@ function zs(r) {
|
|
|
3618
3646
|
isScrolling: me ? Ne : void 0,
|
|
3619
3647
|
style: this._getItemStyle(se)
|
|
3620
3648
|
}));
|
|
3621
|
-
var ve =
|
|
3649
|
+
var ve = u(this.props, this._instanceProps);
|
|
3622
3650
|
return rt(ce || W || "div", {
|
|
3623
3651
|
className: w,
|
|
3624
3652
|
onScroll: oe,
|
|
@@ -3668,24 +3696,24 @@ function zs(r) {
|
|
|
3668
3696
|
useIsScrolling: !1
|
|
3669
3697
|
}, o;
|
|
3670
3698
|
}
|
|
3671
|
-
var
|
|
3699
|
+
var ks = function(o, l) {
|
|
3672
3700
|
o.children, o.direction, o.height, o.layout, o.innerTagName, o.outerTagName, o.width, l.instance;
|
|
3673
|
-
},
|
|
3701
|
+
}, bs = /* @__PURE__ */ Bs({
|
|
3674
3702
|
getItemOffset: function(o, l) {
|
|
3675
|
-
var
|
|
3676
|
-
return l *
|
|
3703
|
+
var u = o.itemSize;
|
|
3704
|
+
return l * u;
|
|
3677
3705
|
},
|
|
3678
3706
|
getItemSize: function(o, l) {
|
|
3679
|
-
var
|
|
3680
|
-
return
|
|
3707
|
+
var u = o.itemSize;
|
|
3708
|
+
return u;
|
|
3681
3709
|
},
|
|
3682
3710
|
getEstimatedTotalSize: function(o) {
|
|
3683
|
-
var l = o.itemCount,
|
|
3684
|
-
return
|
|
3711
|
+
var l = o.itemCount, u = o.itemSize;
|
|
3712
|
+
return u * l;
|
|
3685
3713
|
},
|
|
3686
|
-
getOffsetForIndexAndAlignment: function(o, l,
|
|
3714
|
+
getOffsetForIndexAndAlignment: function(o, l, u, d, g, f) {
|
|
3687
3715
|
var s = o.direction, I = o.height, N = o.itemCount, E = o.itemSize, x = o.layout, C = o.width, v = s === "horizontal" || x === "horizontal", z = v ? C : I, y = Math.max(0, N * E - z), A = Math.min(y, l * E), w = Math.max(0, l * E - z + E + f);
|
|
3688
|
-
switch (
|
|
3716
|
+
switch (u === "smart" && (d >= w - z && d <= A + z ? u = "auto" : u = "center"), u) {
|
|
3689
3717
|
case "start":
|
|
3690
3718
|
return A;
|
|
3691
3719
|
case "end":
|
|
@@ -3700,11 +3728,11 @@ var Ss = function(o, l) {
|
|
|
3700
3728
|
}
|
|
3701
3729
|
},
|
|
3702
3730
|
getStartIndexForOffset: function(o, l) {
|
|
3703
|
-
var
|
|
3704
|
-
return Math.max(0, Math.min(
|
|
3731
|
+
var u = o.itemCount, d = o.itemSize;
|
|
3732
|
+
return Math.max(0, Math.min(u - 1, Math.floor(l / d)));
|
|
3705
3733
|
},
|
|
3706
|
-
getStopIndexForStartIndex: function(o, l,
|
|
3707
|
-
var d = o.direction, g = o.height, f = o.itemCount, s = o.itemSize, I = o.layout, N = o.width, E = d === "horizontal" || I === "horizontal", x = l * s, C = E ? N : g, v = Math.ceil((C +
|
|
3734
|
+
getStopIndexForStartIndex: function(o, l, u) {
|
|
3735
|
+
var d = o.direction, g = o.height, f = o.itemCount, s = o.itemSize, I = o.layout, N = o.width, E = d === "horizontal" || I === "horizontal", x = l * s, C = E ? N : g, v = Math.ceil((C + u - x) / s);
|
|
3708
3736
|
return Math.max(0, Math.min(
|
|
3709
3737
|
f - 1,
|
|
3710
3738
|
l + v - 1
|
|
@@ -3718,22 +3746,22 @@ var Ss = function(o, l) {
|
|
|
3718
3746
|
o.itemSize;
|
|
3719
3747
|
}
|
|
3720
3748
|
});
|
|
3721
|
-
function
|
|
3722
|
-
var o = r.lastRenderedStartIndex, l = r.lastRenderedStopIndex,
|
|
3723
|
-
return !(
|
|
3749
|
+
function Rs(r) {
|
|
3750
|
+
var o = r.lastRenderedStartIndex, l = r.lastRenderedStopIndex, u = r.startIndex, d = r.stopIndex;
|
|
3751
|
+
return !(u > l || d < o);
|
|
3724
3752
|
}
|
|
3725
|
-
function
|
|
3726
|
-
for (var o = r.isItemLoaded, l = r.itemCount,
|
|
3753
|
+
function _s(r) {
|
|
3754
|
+
for (var o = r.isItemLoaded, l = r.itemCount, u = r.minimumBatchSize, d = r.startIndex, g = r.stopIndex, f = [], s = null, I = null, N = d; N <= g; N++) {
|
|
3727
3755
|
var E = o(N);
|
|
3728
3756
|
E ? I !== null && (f.push(s, I), s = I = null) : (I = N, s === null && (s = N));
|
|
3729
3757
|
}
|
|
3730
3758
|
if (I !== null) {
|
|
3731
|
-
for (var x = Math.min(Math.max(I, s +
|
|
3759
|
+
for (var x = Math.min(Math.max(I, s + u - 1), l - 1), C = I + 1; C <= x && !o(C); C++)
|
|
3732
3760
|
I = C;
|
|
3733
3761
|
f.push(s, I);
|
|
3734
3762
|
}
|
|
3735
3763
|
if (f.length)
|
|
3736
|
-
for (; f[1] - f[0] + 1 <
|
|
3764
|
+
for (; f[1] - f[0] + 1 < u && f[0] > 0; ) {
|
|
3737
3765
|
var v = f[0] - 1;
|
|
3738
3766
|
if (!o(v))
|
|
3739
3767
|
f[0] = v;
|
|
@@ -3742,20 +3770,20 @@ function ks(r) {
|
|
|
3742
3770
|
}
|
|
3743
3771
|
return f;
|
|
3744
3772
|
}
|
|
3745
|
-
var
|
|
3773
|
+
var Os = function(r, o) {
|
|
3746
3774
|
if (!(r instanceof o))
|
|
3747
3775
|
throw new TypeError("Cannot call a class as a function");
|
|
3748
|
-
},
|
|
3776
|
+
}, Us = function() {
|
|
3749
3777
|
function r(o, l) {
|
|
3750
|
-
for (var
|
|
3751
|
-
var d = l[
|
|
3778
|
+
for (var u = 0; u < l.length; u++) {
|
|
3779
|
+
var d = l[u];
|
|
3752
3780
|
d.enumerable = d.enumerable || !1, d.configurable = !0, "value" in d && (d.writable = !0), Object.defineProperty(o, d.key, d);
|
|
3753
3781
|
}
|
|
3754
3782
|
}
|
|
3755
|
-
return function(o, l,
|
|
3756
|
-
return l && r(o.prototype, l),
|
|
3783
|
+
return function(o, l, u) {
|
|
3784
|
+
return l && r(o.prototype, l), u && r(o, u), o;
|
|
3757
3785
|
};
|
|
3758
|
-
}(),
|
|
3786
|
+
}(), $s = function(r, o) {
|
|
3759
3787
|
if (typeof o != "function" && o !== null)
|
|
3760
3788
|
throw new TypeError("Super expression must either be null or a function, not " + typeof o);
|
|
3761
3789
|
r.prototype = Object.create(o && o.prototype, {
|
|
@@ -3770,25 +3798,25 @@ var bs = function(r, o) {
|
|
|
3770
3798
|
if (!r)
|
|
3771
3799
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
3772
3800
|
return o && (typeof o == "object" || typeof o == "function") ? o : r;
|
|
3773
|
-
},
|
|
3774
|
-
|
|
3801
|
+
}, Fs = function(r) {
|
|
3802
|
+
$s(o, r);
|
|
3775
3803
|
function o() {
|
|
3776
|
-
var l,
|
|
3777
|
-
|
|
3804
|
+
var l, u, d, g;
|
|
3805
|
+
Os(this, o);
|
|
3778
3806
|
for (var f = arguments.length, s = Array(f), I = 0; I < f; I++)
|
|
3779
3807
|
s[I] = arguments[I];
|
|
3780
|
-
return g = (
|
|
3808
|
+
return g = (u = (d = ui(this, (l = o.__proto__ || Object.getPrototypeOf(o)).call.apply(l, [this].concat(s))), d), d._lastRenderedStartIndex = -1, d._lastRenderedStopIndex = -1, d._memoizedUnloadedRanges = [], d._onItemsRendered = function(N) {
|
|
3781
3809
|
var E = N.visibleStartIndex, x = N.visibleStopIndex;
|
|
3782
3810
|
d._lastRenderedStartIndex = E, d._lastRenderedStopIndex = x, d._ensureRowsLoaded(E, x);
|
|
3783
3811
|
}, d._setRef = function(N) {
|
|
3784
3812
|
d._listRef = N;
|
|
3785
|
-
},
|
|
3813
|
+
}, u), ui(d, g);
|
|
3786
3814
|
}
|
|
3787
|
-
return
|
|
3815
|
+
return Us(o, [{
|
|
3788
3816
|
key: "resetloadMoreItemsCache",
|
|
3789
3817
|
value: function() {
|
|
3790
|
-
var
|
|
3791
|
-
this._memoizedUnloadedRanges = [],
|
|
3818
|
+
var u = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !1;
|
|
3819
|
+
this._memoizedUnloadedRanges = [], u && this._ensureRowsLoaded(this._lastRenderedStartIndex, this._lastRenderedStopIndex);
|
|
3792
3820
|
}
|
|
3793
3821
|
}, {
|
|
3794
3822
|
key: "componentDidMount",
|
|
@@ -3797,20 +3825,20 @@ var bs = function(r, o) {
|
|
|
3797
3825
|
}, {
|
|
3798
3826
|
key: "render",
|
|
3799
3827
|
value: function() {
|
|
3800
|
-
var
|
|
3801
|
-
return
|
|
3828
|
+
var u = this.props.children;
|
|
3829
|
+
return u({
|
|
3802
3830
|
onItemsRendered: this._onItemsRendered,
|
|
3803
3831
|
ref: this._setRef
|
|
3804
3832
|
});
|
|
3805
3833
|
}
|
|
3806
3834
|
}, {
|
|
3807
3835
|
key: "_ensureRowsLoaded",
|
|
3808
|
-
value: function(
|
|
3809
|
-
var g = this.props, f = g.isItemLoaded, s = g.itemCount, I = g.minimumBatchSize, N = I === void 0 ? 10 : I, E = g.threshold, x = E === void 0 ? 15 : E, C =
|
|
3836
|
+
value: function(u, d) {
|
|
3837
|
+
var g = this.props, f = g.isItemLoaded, s = g.itemCount, I = g.minimumBatchSize, N = I === void 0 ? 10 : I, E = g.threshold, x = E === void 0 ? 15 : E, C = _s({
|
|
3810
3838
|
isItemLoaded: f,
|
|
3811
3839
|
itemCount: s,
|
|
3812
3840
|
minimumBatchSize: N,
|
|
3813
|
-
startIndex: Math.max(0,
|
|
3841
|
+
startIndex: Math.max(0, u - x),
|
|
3814
3842
|
stopIndex: Math.min(s - 1, d + x)
|
|
3815
3843
|
});
|
|
3816
3844
|
(this._memoizedUnloadedRanges.length !== C.length || this._memoizedUnloadedRanges.some(function(v, z) {
|
|
@@ -3819,11 +3847,11 @@ var bs = function(r, o) {
|
|
|
3819
3847
|
}
|
|
3820
3848
|
}, {
|
|
3821
3849
|
key: "_loadUnloadedRanges",
|
|
3822
|
-
value: function(
|
|
3850
|
+
value: function(u) {
|
|
3823
3851
|
for (var d = this, g = this.props.loadMoreItems || this.props.loadMoreRows, f = function(N) {
|
|
3824
|
-
var E =
|
|
3852
|
+
var E = u[N], x = u[N + 1], C = g(E, x);
|
|
3825
3853
|
C != null && C.then(function() {
|
|
3826
|
-
if (
|
|
3854
|
+
if (Rs({
|
|
3827
3855
|
lastRenderedStartIndex: d._lastRenderedStartIndex,
|
|
3828
3856
|
lastRenderedStopIndex: d._lastRenderedStopIndex,
|
|
3829
3857
|
startIndex: E,
|
|
@@ -3834,80 +3862,80 @@ var bs = function(r, o) {
|
|
|
3834
3862
|
typeof d._listRef.resetAfterIndex == "function" ? d._listRef.resetAfterIndex(E, !0) : (typeof d._listRef._getItemStyleCache == "function" && d._listRef._getItemStyleCache(-1), d._listRef.forceUpdate());
|
|
3835
3863
|
}
|
|
3836
3864
|
});
|
|
3837
|
-
}, s = 0; s <
|
|
3865
|
+
}, s = 0; s < u.length; s += 2)
|
|
3838
3866
|
f(s);
|
|
3839
3867
|
}
|
|
3840
3868
|
}]), o;
|
|
3841
3869
|
}(fi);
|
|
3842
|
-
const
|
|
3870
|
+
const Ps = () => Ue, Ys = /* @__PURE__ */ m("div")({
|
|
3843
3871
|
name: "a",
|
|
3844
3872
|
class: "a1lvbkps",
|
|
3845
3873
|
propsAsIs: !1
|
|
3846
|
-
}),
|
|
3874
|
+
}), Vs = /* @__PURE__ */ m("div")({
|
|
3847
3875
|
name: "l",
|
|
3848
3876
|
class: "l2xe6fm",
|
|
3849
3877
|
propsAsIs: !1
|
|
3850
|
-
}),
|
|
3878
|
+
}), Zs = /* @__PURE__ */ m("img")({
|
|
3851
3879
|
name: "p",
|
|
3852
3880
|
class: "p1yk5k0z",
|
|
3853
3881
|
propsAsIs: !1
|
|
3854
|
-
}),
|
|
3882
|
+
}), Qs = /* @__PURE__ */ m("div")({
|
|
3855
3883
|
name: "s",
|
|
3856
3884
|
class: "s13yur3w",
|
|
3857
3885
|
propsAsIs: !1
|
|
3858
|
-
}),
|
|
3886
|
+
}), Hs = /* @__PURE__ */ m("div")({
|
|
3859
3887
|
name: "c",
|
|
3860
3888
|
class: "c1h2npcq",
|
|
3861
3889
|
propsAsIs: !1
|
|
3862
|
-
}),
|
|
3890
|
+
}), Gs = /* @__PURE__ */ m("div")({
|
|
3863
3891
|
name: "d",
|
|
3864
3892
|
class: "d1kxek13",
|
|
3865
3893
|
propsAsIs: !1
|
|
3866
|
-
}),
|
|
3894
|
+
}), Ws = /* @__PURE__ */ m("span")({
|
|
3867
3895
|
name: "g",
|
|
3868
3896
|
class: "glf08ok",
|
|
3869
3897
|
propsAsIs: !1
|
|
3870
|
-
}),
|
|
3898
|
+
}), qs = /* @__PURE__ */ m(Ps())({
|
|
3871
3899
|
name: "x",
|
|
3872
3900
|
class: "x1hkuau3",
|
|
3873
3901
|
propsAsIs: !0
|
|
3874
|
-
}),
|
|
3902
|
+
}), Js = ({
|
|
3875
3903
|
rank: r,
|
|
3876
3904
|
avatar: o,
|
|
3877
3905
|
name: l,
|
|
3878
|
-
points:
|
|
3906
|
+
points: u,
|
|
3879
3907
|
isCurrentUser: d,
|
|
3880
3908
|
openItemDetail: g,
|
|
3881
3909
|
style: f
|
|
3882
|
-
}) => /* @__PURE__ */ L(
|
|
3883
|
-
/* @__PURE__ */ p(
|
|
3884
|
-
/* @__PURE__ */ L(
|
|
3885
|
-
o ? /* @__PURE__ */ p(
|
|
3886
|
-
/* @__PURE__ */ L(
|
|
3887
|
-
/* @__PURE__ */ p(
|
|
3888
|
-
d && /* @__PURE__ */ p(
|
|
3910
|
+
}) => /* @__PURE__ */ L(Ys, { onClick: g, style: f, children: [
|
|
3911
|
+
/* @__PURE__ */ p(Vs, { children: r || 0 }),
|
|
3912
|
+
/* @__PURE__ */ L(Hs, { children: [
|
|
3913
|
+
o ? /* @__PURE__ */ p(Zs, { alt: "leaderboard-item-avatar", src: o }) : /* @__PURE__ */ p(Qs, { children: Ci(l || "") }),
|
|
3914
|
+
/* @__PURE__ */ L(Gs, { children: [
|
|
3915
|
+
/* @__PURE__ */ p(Ws, { children: l || "" }),
|
|
3916
|
+
d && /* @__PURE__ */ p(qs, { name: "icon-star" })
|
|
3889
3917
|
] })
|
|
3890
3918
|
] }),
|
|
3891
|
-
/* @__PURE__ */ p("div", { children:
|
|
3892
|
-
] }),
|
|
3893
|
-
|
|
3919
|
+
/* @__PURE__ */ p("div", { children: wi(u) })
|
|
3920
|
+
] }), Xs = ({ items: r, openItemDetail: o, fetchMore: l }) => /* @__PURE__ */ p(xs, { children: ({ width: u, height: d }) => /* @__PURE__ */ p(
|
|
3921
|
+
Fs,
|
|
3894
3922
|
{
|
|
3895
3923
|
isItemLoaded: (g) => g < r.length,
|
|
3896
3924
|
itemCount: r.length + 1,
|
|
3897
3925
|
loadMoreItems: l,
|
|
3898
3926
|
children: ({ onItemsRendered: g, ref: f }) => /* @__PURE__ */ p(
|
|
3899
|
-
|
|
3927
|
+
bs,
|
|
3900
3928
|
{
|
|
3901
|
-
itemSize:
|
|
3929
|
+
itemSize: 56,
|
|
3902
3930
|
onItemsRendered: g,
|
|
3903
3931
|
ref: f,
|
|
3904
3932
|
itemCount: r.length,
|
|
3905
|
-
width:
|
|
3933
|
+
width: u,
|
|
3906
3934
|
height: d,
|
|
3907
3935
|
children: ({ index: s, style: I }) => /* @__PURE__ */ p(
|
|
3908
|
-
|
|
3936
|
+
Js,
|
|
3909
3937
|
{
|
|
3910
|
-
style: I,
|
|
3938
|
+
style: { ...I, maxHeight: 48 },
|
|
3911
3939
|
...r[s],
|
|
3912
3940
|
openItemDetail: () => o(r[s].userId)
|
|
3913
3941
|
},
|
|
@@ -3916,8 +3944,8 @@ const Us = () => Ue, $s = /* @__PURE__ */ m("div")({
|
|
|
3916
3944
|
}
|
|
3917
3945
|
)
|
|
3918
3946
|
}
|
|
3919
|
-
) }),
|
|
3920
|
-
const { data: o } = Z(r), [l,
|
|
3947
|
+
) }), Ks = ({ store: r }) => {
|
|
3948
|
+
const { data: o } = Z(r), [l, u] = K(void 0);
|
|
3921
3949
|
if (!o)
|
|
3922
3950
|
return /* @__PURE__ */ p("div", { children: "wait leader board..." });
|
|
3923
3951
|
const d = (g) => {
|
|
@@ -3926,12 +3954,12 @@ const Us = () => Ue, $s = /* @__PURE__ */ m("div")({
|
|
|
3926
3954
|
var N;
|
|
3927
3955
|
return ((N = I.attributes) == null ? void 0 : N.userId) === g;
|
|
3928
3956
|
})) == null ? void 0 : f.attributes;
|
|
3929
|
-
|
|
3957
|
+
u(s);
|
|
3930
3958
|
};
|
|
3931
3959
|
return /* @__PURE__ */ L(Oe, { children: [
|
|
3932
|
-
l && /* @__PURE__ */ p(
|
|
3960
|
+
l && /* @__PURE__ */ p(fn, { comeBack: () => d(null), ...l }),
|
|
3933
3961
|
!l && /* @__PURE__ */ p(
|
|
3934
|
-
|
|
3962
|
+
Xs,
|
|
3935
3963
|
{
|
|
3936
3964
|
items: o.filter((g) => g.attributes).map((g) => g.attributes),
|
|
3937
3965
|
openItemDetail: d
|
|
@@ -3943,15 +3971,15 @@ const Re = /* @__PURE__ */ m("div")({
|
|
|
3943
3971
|
name: "e",
|
|
3944
3972
|
class: "e6qv3to",
|
|
3945
3973
|
propsAsIs: !1
|
|
3946
|
-
}),
|
|
3974
|
+
}), e0 = /* @__PURE__ */ m("div")({
|
|
3947
3975
|
name: "i",
|
|
3948
3976
|
class: "i1jak95i",
|
|
3949
3977
|
propsAsIs: !1
|
|
3950
|
-
}),
|
|
3978
|
+
}), t0 = /* @__PURE__ */ m("div")({
|
|
3951
3979
|
name: "r",
|
|
3952
3980
|
class: "r1qp3jjx",
|
|
3953
3981
|
propsAsIs: !1
|
|
3954
|
-
}),
|
|
3982
|
+
}), i0 = /* @__PURE__ */ m("div")({
|
|
3955
3983
|
name: "n",
|
|
3956
3984
|
class: "naeizu7",
|
|
3957
3985
|
propsAsIs: !1
|
|
@@ -3959,11 +3987,11 @@ const Re = /* @__PURE__ */ m("div")({
|
|
|
3959
3987
|
name: "a",
|
|
3960
3988
|
class: "a4zecne",
|
|
3961
3989
|
propsAsIs: !1
|
|
3962
|
-
}),
|
|
3990
|
+
}), r0 = ({
|
|
3963
3991
|
gamification: r,
|
|
3964
3992
|
sdk: o
|
|
3965
3993
|
}) => {
|
|
3966
|
-
var l,
|
|
3994
|
+
var l, u, d, g, f, s, I, N, E, x, C, v, z, y, A, w, T, S, O, B, U, F, G;
|
|
3967
3995
|
const q = Z(r.status), le = Z(r.onboardingStatus), re = Z(r.openedQuestion), { slStreamId: ce } = Z(o.sdkStore), W = Z(r.featureSettings), [ne, me] = K(nt.HOME);
|
|
3968
3996
|
if (q !== Ve.Ready)
|
|
3969
3997
|
return /* @__PURE__ */ p("div", { children: "wait..." });
|
|
@@ -3973,11 +4001,11 @@ const Re = /* @__PURE__ */ m("div")({
|
|
|
3973
4001
|
return /* @__PURE__ */ p(Re, { children: /* @__PURE__ */ p("div", { children: "Event is forbidden" }) });
|
|
3974
4002
|
if (!le)
|
|
3975
4003
|
return /* @__PURE__ */ p(Re, { children: /* @__PURE__ */ p(
|
|
3976
|
-
|
|
4004
|
+
nn,
|
|
3977
4005
|
{
|
|
3978
4006
|
closeFeature: o.closeFeature,
|
|
3979
4007
|
gamification: r,
|
|
3980
|
-
steps: (
|
|
4008
|
+
steps: (u = (l = W.inplayGame) == null ? void 0 : l.onboarding) == null ? void 0 : u.steps,
|
|
3981
4009
|
gameIcon: (f = (g = (d = W.inplayGame) == null ? void 0 : d.overview) == null ? void 0 : g.media) == null ? void 0 : f.gameIcon,
|
|
3982
4010
|
sponsorLogo: (N = (I = (s = W.inplayGame) == null ? void 0 : s.overview) == null ? void 0 : I.media) == null ? void 0 : N.sponsorLogo,
|
|
3983
4011
|
rules: (x = (E = W.inplayGame) == null ? void 0 : E.rules) == null ? void 0 : x.rules,
|
|
@@ -3997,59 +4025,42 @@ const Re = /* @__PURE__ */ m("div")({
|
|
|
3997
4025
|
r.submitAnswer(oe, xe);
|
|
3998
4026
|
};
|
|
3999
4027
|
return /* @__PURE__ */ L(Re, { children: [
|
|
4000
|
-
/* @__PURE__ */ p(
|
|
4028
|
+
/* @__PURE__ */ p(cn, { activePage: ne, toggleActivePage: (oe) => {
|
|
4001
4029
|
me(oe);
|
|
4002
4030
|
} }),
|
|
4003
4031
|
ne === nt.HOME && /* @__PURE__ */ L(Oe, { children: [
|
|
4004
|
-
/* @__PURE__ */ p(
|
|
4005
|
-
/* @__PURE__ */ L(
|
|
4006
|
-
r.questions && /* @__PURE__ */ p(
|
|
4007
|
-
re && /* @__PURE__ */ p(
|
|
4032
|
+
/* @__PURE__ */ p(e0, { children: r.userSummary && /* @__PURE__ */ p(es, { store: r.userSummary.getStore() }) }),
|
|
4033
|
+
/* @__PURE__ */ L(t0, { children: [
|
|
4034
|
+
r.questions && /* @__PURE__ */ p(ts, { openQuestion: ze, store: r.questions.getStore() }),
|
|
4035
|
+
re && /* @__PURE__ */ p(rs, { closeQuestion: Ne, vote: Ie, openedQuestion: re })
|
|
4008
4036
|
] })
|
|
4009
4037
|
] }),
|
|
4010
|
-
ne === nt.LEADERBOARD && r.leaderboardList && /* @__PURE__ */ p(
|
|
4038
|
+
ne === nt.LEADERBOARD && r.leaderboardList && /* @__PURE__ */ p(Ks, { store: r.leaderboardList.getStore() })
|
|
4011
4039
|
] });
|
|
4012
|
-
},
|
|
4013
|
-
|
|
4014
|
-
|
|
4015
|
-
return /* @__PURE__ */ p(Jo, { alt: "insight-icon", src: o });
|
|
4016
|
-
case Me.TRANSPARENT:
|
|
4017
|
-
return /* @__PURE__ */ p(Xo, { alt: "insight-icon", src: o });
|
|
4018
|
-
case Me.CENTERED:
|
|
4019
|
-
return /* @__PURE__ */ p(qo, { alt: "insight-icon", src: o });
|
|
4020
|
-
default:
|
|
4021
|
-
return null;
|
|
4022
|
-
}
|
|
4023
|
-
}, r0 = ({ title: r, image: o, questionId: l, imageMode: h, openInsight: d }) => /* @__PURE__ */ L(Ho, { onClick: () => d(l), children: [
|
|
4024
|
-
/* @__PURE__ */ p(Wo, { children: o && i0(h, o) }),
|
|
4025
|
-
/* @__PURE__ */ L(Go, { children: [
|
|
4026
|
-
/* @__PURE__ */ p(Ko, { children: r || "" }),
|
|
4027
|
-
/* @__PURE__ */ p(es, { alt: "next-icon", src: t0 })
|
|
4028
|
-
] })
|
|
4029
|
-
] }), n0 = ({ insights: r, openInsight: o, className: l }) => /* @__PURE__ */ p(ts, { className: l, children: /* @__PURE__ */ p(is, { children: r == null ? void 0 : r.map((h) => /* @__PURE__ */ p(r0, { openInsight: o, ...h }, h.questionId)) }) }), o0 = ({ highlights: r, store: o, className: l }) => {
|
|
4030
|
-
const { data: h } = Z(o);
|
|
4031
|
-
return h ? /* @__PURE__ */ p(n0, { className: l, insights: h, openInsight: r.openHighlight }) : /* @__PURE__ */ p("div", { className: l, children: "wait insights..." });
|
|
4040
|
+
}, n0 = ({ insights: r, openInsight: o, className: l }) => /* @__PURE__ */ p(ns, { className: l, children: /* @__PURE__ */ p(os, { children: r == null ? void 0 : r.map((u) => /* @__PURE__ */ p(Mi, { openInsight: o, ...u }, u.questionId)) }) }), o0 = ({ highlights: r, store: o, className: l }) => {
|
|
4041
|
+
const { data: u } = Z(o);
|
|
4042
|
+
return u ? /* @__PURE__ */ p(n0, { className: l, insights: u, openInsight: r.openHighlight }) : /* @__PURE__ */ p("div", { className: l, children: "wait insights..." });
|
|
4032
4043
|
}, s0 = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTciIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNyAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiBjbGFzcz0ic2MtQU5kc04ga1RWV0pFIj48cGF0aCBkPSJNNi42NjY1IDMuMTY2NjlINC45OTk4NEM0LjI2MzQ2IDMuMTY2NjkgMy42NjY1IDMuNzYzNjQgMy42NjY1IDQuNTAwMDJWMTEuNUMzLjY2NjUgMTIuMjM2NCA0LjI2MzQ2IDEyLjgzMzQgNC45OTk4NCAxMi44MzM0SDExLjk5OThDMTIuNzM2MiAxMi44MzM0IDEzLjMzMzIgMTIuMjM2NCAxMy4zMzMyIDExLjVWOS44MzMzNSIgc3Ryb2tlPSIjZmZmZmZmIiBzdHJva2Utd2lkdGg9IjEuNSIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIj48L3BhdGg+PHBhdGggZD0iTTEzLjMzMzUgNi4xNjY2OVYzLjE2NjY5SDEwLjMzMzUiIHN0cm9rZT0iI2ZmZmZmZiIgc3Ryb2tlLXdpZHRoPSIxLjUiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCI+PC9wYXRoPjxwYXRoIGQ9Ik0xMy4xNjY4IDMuMzMzMzFMOC4zMzM1IDguMTY2NjUiIHN0cm9rZT0iI2ZmZmZmZiIgc3Ryb2tlLXdpZHRoPSIxLjUiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCI+PC9wYXRoPjwvc3ZnPgo=", a0 = ({
|
|
4033
4044
|
image: r,
|
|
4034
4045
|
title: o,
|
|
4035
4046
|
description: l,
|
|
4036
|
-
webLinkLabel:
|
|
4047
|
+
webLinkLabel: u,
|
|
4037
4048
|
webLink: d,
|
|
4038
4049
|
closeHighlights: g,
|
|
4039
4050
|
closeInsight: f,
|
|
4040
4051
|
className: s
|
|
4041
|
-
}) => /* @__PURE__ */ L(
|
|
4052
|
+
}) => /* @__PURE__ */ L(ss, { className: s, children: [
|
|
4042
4053
|
/* @__PURE__ */ p(yi, { close: g, comeBack: f }),
|
|
4043
|
-
r && /* @__PURE__ */ p(
|
|
4044
|
-
/* @__PURE__ */ L(
|
|
4045
|
-
o && /* @__PURE__ */ p(
|
|
4046
|
-
l && /* @__PURE__ */ p(
|
|
4054
|
+
r && /* @__PURE__ */ p(as, { alt: "detail-insight-image", src: r }),
|
|
4055
|
+
/* @__PURE__ */ L(ls, { children: [
|
|
4056
|
+
o && /* @__PURE__ */ p(cs, { children: o }),
|
|
4057
|
+
l && /* @__PURE__ */ p(us, { children: l })
|
|
4047
4058
|
] }),
|
|
4048
|
-
d &&
|
|
4049
|
-
|
|
4050
|
-
/* @__PURE__ */ p(
|
|
4059
|
+
d && u && /* @__PURE__ */ L(hs, { href: d, target: "_blank", children: [
|
|
4060
|
+
u,
|
|
4061
|
+
/* @__PURE__ */ p(ds, { alt: "link-icon", src: s0 })
|
|
4051
4062
|
] })
|
|
4052
|
-
] }), l0 = ({ openedInsight: r, closeHighlights: o, closeInsight: l, className:
|
|
4063
|
+
] }), l0 = ({ openedInsight: r, closeHighlights: o, closeInsight: l, className: u }) => {
|
|
4053
4064
|
var d, g, f, s, I;
|
|
4054
4065
|
const N = ((d = r.options) == null ? void 0 : d.options.case) === "factoid" ? {
|
|
4055
4066
|
image: r.options.options.value.image,
|
|
@@ -4060,7 +4071,7 @@ const Re = /* @__PURE__ */ m("div")({
|
|
|
4060
4071
|
return /* @__PURE__ */ p(
|
|
4061
4072
|
a0,
|
|
4062
4073
|
{
|
|
4063
|
-
className:
|
|
4074
|
+
className: u,
|
|
4064
4075
|
image: N.image,
|
|
4065
4076
|
title: E,
|
|
4066
4077
|
description: x,
|
|
@@ -4071,20 +4082,20 @@ const Re = /* @__PURE__ */ m("div")({
|
|
|
4071
4082
|
}
|
|
4072
4083
|
);
|
|
4073
4084
|
}, c0 = ({ highlights: r, sdk: o }) => {
|
|
4074
|
-
const l = Z(r.status),
|
|
4085
|
+
const l = Z(r.status), u = Z(r.openedInsight), { slStreamId: d } = Z(o.sdkStore);
|
|
4075
4086
|
return l !== Ve.Ready ? /* @__PURE__ */ p("div", { children: "wait..." }) : d != null && d.loading ? /* @__PURE__ */ p(Re, { children: /* @__PURE__ */ p("div", { children: "Event is loading" }) }) : d != null && d.data ? r.insights === void 0 ? /* @__PURE__ */ p("div", { children: "wait insights..." }) : /* @__PURE__ */ L(Re, { children: [
|
|
4076
|
-
!
|
|
4077
|
-
|
|
4087
|
+
!u && /* @__PURE__ */ p(o0, { highlights: r, store: r.insights.getStore() }),
|
|
4088
|
+
u && /* @__PURE__ */ p(
|
|
4078
4089
|
l0,
|
|
4079
4090
|
{
|
|
4080
|
-
openedInsight:
|
|
4091
|
+
openedInsight: u,
|
|
4081
4092
|
closeHighlights: r.closeFeature,
|
|
4082
4093
|
closeInsight: r.closeHighlight
|
|
4083
4094
|
}
|
|
4084
4095
|
)
|
|
4085
4096
|
] }) : /* @__PURE__ */ p(Re, { children: /* @__PURE__ */ p("div", { children: "Event is forbidden" }) });
|
|
4086
4097
|
};
|
|
4087
|
-
var u0 = {},
|
|
4098
|
+
var u0 = {}, zi = {}, lt = {};
|
|
4088
4099
|
lt.byteLength = p0;
|
|
4089
4100
|
lt.toByteArray = g0;
|
|
4090
4101
|
lt.fromByteArray = y0;
|
|
@@ -4093,24 +4104,24 @@ for (var Ye = 0, d0 = Tt.length; Ye < d0; ++Ye)
|
|
|
4093
4104
|
ge[Ye] = Tt[Ye], te[Tt.charCodeAt(Ye)] = Ye;
|
|
4094
4105
|
te["-".charCodeAt(0)] = 62;
|
|
4095
4106
|
te["_".charCodeAt(0)] = 63;
|
|
4096
|
-
function
|
|
4107
|
+
function Si(r) {
|
|
4097
4108
|
var o = r.length;
|
|
4098
4109
|
if (o % 4 > 0)
|
|
4099
4110
|
throw new Error("Invalid string. Length must be a multiple of 4");
|
|
4100
4111
|
var l = r.indexOf("=");
|
|
4101
4112
|
l === -1 && (l = o);
|
|
4102
|
-
var
|
|
4103
|
-
return [l,
|
|
4113
|
+
var u = l === o ? 0 : 4 - l % 4;
|
|
4114
|
+
return [l, u];
|
|
4104
4115
|
}
|
|
4105
4116
|
function p0(r) {
|
|
4106
|
-
var o =
|
|
4107
|
-
return (l +
|
|
4117
|
+
var o = Si(r), l = o[0], u = o[1];
|
|
4118
|
+
return (l + u) * 3 / 4 - u;
|
|
4108
4119
|
}
|
|
4109
4120
|
function f0(r, o, l) {
|
|
4110
4121
|
return (o + l) * 3 / 4 - l;
|
|
4111
4122
|
}
|
|
4112
4123
|
function g0(r) {
|
|
4113
|
-
var o, l =
|
|
4124
|
+
var o, l = Si(r), u = l[0], d = l[1], g = new h0(f0(r, u, d)), f = 0, s = d > 0 ? u - 4 : u, I;
|
|
4114
4125
|
for (I = 0; I < s; I += 4)
|
|
4115
4126
|
o = te[r.charCodeAt(I)] << 18 | te[r.charCodeAt(I + 1)] << 12 | te[r.charCodeAt(I + 2)] << 6 | te[r.charCodeAt(I + 3)], g[f++] = o >> 16 & 255, g[f++] = o >> 8 & 255, g[f++] = o & 255;
|
|
4116
4127
|
return d === 2 && (o = te[r.charCodeAt(I)] << 2 | te[r.charCodeAt(I + 1)] >> 4, g[f++] = o & 255), d === 1 && (o = te[r.charCodeAt(I)] << 10 | te[r.charCodeAt(I + 1)] << 4 | te[r.charCodeAt(I + 2)] >> 2, g[f++] = o >> 8 & 255, g[f++] = o & 255), g;
|
|
@@ -4119,38 +4130,38 @@ function m0(r) {
|
|
|
4119
4130
|
return ge[r >> 18 & 63] + ge[r >> 12 & 63] + ge[r >> 6 & 63] + ge[r & 63];
|
|
4120
4131
|
}
|
|
4121
4132
|
function I0(r, o, l) {
|
|
4122
|
-
for (var
|
|
4123
|
-
|
|
4133
|
+
for (var u, d = [], g = o; g < l; g += 3)
|
|
4134
|
+
u = (r[g] << 16 & 16711680) + (r[g + 1] << 8 & 65280) + (r[g + 2] & 255), d.push(m0(u));
|
|
4124
4135
|
return d.join("");
|
|
4125
4136
|
}
|
|
4126
4137
|
function y0(r) {
|
|
4127
|
-
for (var o, l = r.length,
|
|
4138
|
+
for (var o, l = r.length, u = l % 3, d = [], g = 16383, f = 0, s = l - u; f < s; f += g)
|
|
4128
4139
|
d.push(I0(r, f, f + g > s ? s : f + g));
|
|
4129
|
-
return
|
|
4140
|
+
return u === 1 ? (o = r[l - 1], d.push(
|
|
4130
4141
|
ge[o >> 2] + ge[o << 4 & 63] + "=="
|
|
4131
|
-
)) :
|
|
4142
|
+
)) : u === 2 && (o = (r[l - 2] << 8) + r[l - 1], d.push(
|
|
4132
4143
|
ge[o >> 10] + ge[o >> 4 & 63] + ge[o << 2 & 63] + "="
|
|
4133
4144
|
)), d.join("");
|
|
4134
4145
|
}
|
|
4135
4146
|
var Pt = {};
|
|
4136
4147
|
/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
|
|
4137
|
-
Pt.read = function(r, o, l,
|
|
4138
|
-
var g, f, s = d * 8 -
|
|
4148
|
+
Pt.read = function(r, o, l, u, d) {
|
|
4149
|
+
var g, f, s = d * 8 - u - 1, I = (1 << s) - 1, N = I >> 1, E = -7, x = l ? d - 1 : 0, C = l ? -1 : 1, v = r[o + x];
|
|
4139
4150
|
for (x += C, g = v & (1 << -E) - 1, v >>= -E, E += s; E > 0; g = g * 256 + r[o + x], x += C, E -= 8)
|
|
4140
4151
|
;
|
|
4141
|
-
for (f = g & (1 << -E) - 1, g >>= -E, E +=
|
|
4152
|
+
for (f = g & (1 << -E) - 1, g >>= -E, E += u; E > 0; f = f * 256 + r[o + x], x += C, E -= 8)
|
|
4142
4153
|
;
|
|
4143
4154
|
if (g === 0)
|
|
4144
4155
|
g = 1 - N;
|
|
4145
4156
|
else {
|
|
4146
4157
|
if (g === I)
|
|
4147
4158
|
return f ? NaN : (v ? -1 : 1) * (1 / 0);
|
|
4148
|
-
f = f + Math.pow(2,
|
|
4159
|
+
f = f + Math.pow(2, u), g = g - N;
|
|
4149
4160
|
}
|
|
4150
|
-
return (v ? -1 : 1) * f * Math.pow(2, g -
|
|
4161
|
+
return (v ? -1 : 1) * f * Math.pow(2, g - u);
|
|
4151
4162
|
};
|
|
4152
|
-
Pt.write = function(r, o, l,
|
|
4153
|
-
var f, s, I, N = g * 8 - d - 1, E = (1 << N) - 1, x = E >> 1, C = d === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0, v =
|
|
4163
|
+
Pt.write = function(r, o, l, u, d, g) {
|
|
4164
|
+
var f, s, I, N = g * 8 - d - 1, E = (1 << N) - 1, x = E >> 1, C = d === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0, v = u ? 0 : g - 1, z = u ? 1 : -1, y = o < 0 || o === 0 && 1 / o < 0 ? 1 : 0;
|
|
4154
4165
|
for (o = Math.abs(o), isNaN(o) || o === 1 / 0 ? (s = isNaN(o) ? 1 : 0, f = E) : (f = Math.floor(Math.log(o) / Math.LN2), o * (I = Math.pow(2, -f)) < 1 && (f--, I *= 2), f + x >= 1 ? o += C / I : o += C * Math.pow(2, 1 - x), o * I >= 2 && (f++, I /= 2), f + x >= E ? (s = 0, f = E) : f + x >= 1 ? (s = (o * I - 1) * Math.pow(2, d), f = f + x) : (s = o * Math.pow(2, x - 1) * Math.pow(2, d), f = 0)); d >= 8; r[l + v] = s & 255, v += z, s /= 256, d -= 8)
|
|
4155
4166
|
;
|
|
4156
4167
|
for (f = f << d | s, N += d; N > 0; r[l + v] = f & 255, v += z, f /= 256, N -= 8)
|
|
@@ -4164,7 +4175,7 @@ Pt.write = function(r, o, l, h, d, g) {
|
|
|
4164
4175
|
* @license MIT
|
|
4165
4176
|
*/
|
|
4166
4177
|
(function(r) {
|
|
4167
|
-
const o = lt, l = Pt,
|
|
4178
|
+
const o = lt, l = Pt, u = typeof Symbol == "function" && typeof Symbol.for == "function" ? Symbol.for("nodejs.util.inspect.custom") : null;
|
|
4168
4179
|
r.Buffer = s, r.SlowBuffer = T, r.INSPECT_MAX_BYTES = 50;
|
|
4169
4180
|
const d = 2147483647;
|
|
4170
4181
|
r.kMaxLength = d, s.TYPED_ARRAY_SUPPORT = g(), !s.TYPED_ARRAY_SUPPORT && typeof console < "u" && typeof console.error == "function" && console.error(
|
|
@@ -4317,7 +4328,7 @@ Pt.write = function(r, o, l, h, d, g) {
|
|
|
4317
4328
|
if (e === t)
|
|
4318
4329
|
return 0;
|
|
4319
4330
|
let n = e.length, a = t.length;
|
|
4320
|
-
for (let c = 0,
|
|
4331
|
+
for (let c = 0, h = Math.min(n, a); c < h; ++c)
|
|
4321
4332
|
if (e[c] !== t[c]) {
|
|
4322
4333
|
n = e[c], a = t[c];
|
|
4323
4334
|
break;
|
|
@@ -4352,18 +4363,18 @@ Pt.write = function(r, o, l, h, d, g) {
|
|
|
4352
4363
|
const a = s.allocUnsafe(t);
|
|
4353
4364
|
let c = 0;
|
|
4354
4365
|
for (n = 0; n < e.length; ++n) {
|
|
4355
|
-
let
|
|
4356
|
-
if (P(
|
|
4357
|
-
c +
|
|
4366
|
+
let h = e[n];
|
|
4367
|
+
if (P(h, Uint8Array))
|
|
4368
|
+
c + h.length > a.length ? (s.isBuffer(h) || (h = s.from(h)), h.copy(a, c)) : Uint8Array.prototype.set.call(
|
|
4358
4369
|
a,
|
|
4359
|
-
|
|
4370
|
+
h,
|
|
4360
4371
|
c
|
|
4361
4372
|
);
|
|
4362
|
-
else if (s.isBuffer(
|
|
4363
|
-
|
|
4373
|
+
else if (s.isBuffer(h))
|
|
4374
|
+
h.copy(a, c);
|
|
4364
4375
|
else
|
|
4365
4376
|
throw new TypeError('"list" argument must be an Array of Buffers');
|
|
4366
|
-
c +=
|
|
4377
|
+
c += h.length;
|
|
4367
4378
|
}
|
|
4368
4379
|
return a;
|
|
4369
4380
|
};
|
|
@@ -4471,7 +4482,7 @@ Pt.write = function(r, o, l, h, d, g) {
|
|
|
4471
4482
|
let e = "";
|
|
4472
4483
|
const t = r.INSPECT_MAX_BYTES;
|
|
4473
4484
|
return e = this.toString("hex", 0, t).replace(/(.{2})/g, "$1 ").trim(), this.length > t && (e += " ... "), "<Buffer " + e + ">";
|
|
4474
|
-
},
|
|
4485
|
+
}, u && (s.prototype[u] = s.prototype.inspect), s.prototype.compare = function(e, t, n, a, c) {
|
|
4475
4486
|
if (P(e, Uint8Array) && (e = s.from(e, e.offset, e.byteLength)), !s.isBuffer(e))
|
|
4476
4487
|
throw new TypeError(
|
|
4477
4488
|
'The "target" argument must be one of type Buffer or Uint8Array. Received type ' + typeof e
|
|
@@ -4486,14 +4497,14 @@ Pt.write = function(r, o, l, h, d, g) {
|
|
|
4486
4497
|
return 1;
|
|
4487
4498
|
if (t >>>= 0, n >>>= 0, a >>>= 0, c >>>= 0, this === e)
|
|
4488
4499
|
return 0;
|
|
4489
|
-
let
|
|
4490
|
-
const b = Math.min(
|
|
4500
|
+
let h = c - a, D = n - t;
|
|
4501
|
+
const b = Math.min(h, D), k = this.slice(a, c), R = e.slice(t, n);
|
|
4491
4502
|
for (let j = 0; j < b; ++j)
|
|
4492
4503
|
if (k[j] !== R[j]) {
|
|
4493
|
-
|
|
4504
|
+
h = k[j], D = R[j];
|
|
4494
4505
|
break;
|
|
4495
4506
|
}
|
|
4496
|
-
return
|
|
4507
|
+
return h < D ? -1 : D < h ? 1 : 0;
|
|
4497
4508
|
};
|
|
4498
4509
|
function U(i, e, t, n, a) {
|
|
4499
4510
|
if (i.length === 0)
|
|
@@ -4514,11 +4525,11 @@ Pt.write = function(r, o, l, h, d, g) {
|
|
|
4514
4525
|
throw new TypeError("val must be string, number or Buffer");
|
|
4515
4526
|
}
|
|
4516
4527
|
function F(i, e, t, n, a) {
|
|
4517
|
-
let c = 1,
|
|
4528
|
+
let c = 1, h = i.length, D = e.length;
|
|
4518
4529
|
if (n !== void 0 && (n = String(n).toLowerCase(), n === "ucs2" || n === "ucs-2" || n === "utf16le" || n === "utf-16le")) {
|
|
4519
4530
|
if (i.length < 2 || e.length < 2)
|
|
4520
4531
|
return -1;
|
|
4521
|
-
c = 2,
|
|
4532
|
+
c = 2, h /= 2, D /= 2, t /= 2;
|
|
4522
4533
|
}
|
|
4523
4534
|
function b(R, j) {
|
|
4524
4535
|
return c === 1 ? R[j] : R.readUInt16BE(j * c);
|
|
@@ -4526,14 +4537,14 @@ Pt.write = function(r, o, l, h, d, g) {
|
|
|
4526
4537
|
let k;
|
|
4527
4538
|
if (a) {
|
|
4528
4539
|
let R = -1;
|
|
4529
|
-
for (k = t; k <
|
|
4540
|
+
for (k = t; k < h; k++)
|
|
4530
4541
|
if (b(i, k) === b(e, R === -1 ? 0 : k - R)) {
|
|
4531
4542
|
if (R === -1 && (R = k), k - R + 1 === D)
|
|
4532
4543
|
return R * c;
|
|
4533
4544
|
} else
|
|
4534
4545
|
R !== -1 && (k -= k - R), R = -1;
|
|
4535
4546
|
} else
|
|
4536
|
-
for (t + D >
|
|
4547
|
+
for (t + D > h && (t = h - D), k = t; k >= 0; k--) {
|
|
4537
4548
|
let R = !0;
|
|
4538
4549
|
for (let j = 0; j < D; j++)
|
|
4539
4550
|
if (b(i, k + j) !== b(e, j)) {
|
|
@@ -4558,14 +4569,14 @@ Pt.write = function(r, o, l, h, d, g) {
|
|
|
4558
4569
|
n ? (n = Number(n), n > a && (n = a)) : n = a;
|
|
4559
4570
|
const c = e.length;
|
|
4560
4571
|
n > c / 2 && (n = c / 2);
|
|
4561
|
-
let
|
|
4562
|
-
for (
|
|
4563
|
-
const D = parseInt(e.substr(
|
|
4572
|
+
let h;
|
|
4573
|
+
for (h = 0; h < n; ++h) {
|
|
4574
|
+
const D = parseInt(e.substr(h * 2, 2), 16);
|
|
4564
4575
|
if (Be(D))
|
|
4565
|
-
return
|
|
4566
|
-
i[t +
|
|
4576
|
+
return h;
|
|
4577
|
+
i[t + h] = D;
|
|
4567
4578
|
}
|
|
4568
|
-
return
|
|
4579
|
+
return h;
|
|
4569
4580
|
}
|
|
4570
4581
|
function q(i, e, t, n) {
|
|
4571
4582
|
return ye(je(e, i.length - t), i, t, n);
|
|
@@ -4594,7 +4605,7 @@ Pt.write = function(r, o, l, h, d, g) {
|
|
|
4594
4605
|
if ((n === void 0 || n > c) && (n = c), e.length > 0 && (n < 0 || t < 0) || t > this.length)
|
|
4595
4606
|
throw new RangeError("Attempt to write outside buffer bounds");
|
|
4596
4607
|
a || (a = "utf8");
|
|
4597
|
-
let
|
|
4608
|
+
let h = !1;
|
|
4598
4609
|
for (; ; )
|
|
4599
4610
|
switch (a) {
|
|
4600
4611
|
case "hex":
|
|
@@ -4614,9 +4625,9 @@ Pt.write = function(r, o, l, h, d, g) {
|
|
|
4614
4625
|
case "utf-16le":
|
|
4615
4626
|
return ce(this, e, t, n);
|
|
4616
4627
|
default:
|
|
4617
|
-
if (
|
|
4628
|
+
if (h)
|
|
4618
4629
|
throw new TypeError("Unknown encoding: " + a);
|
|
4619
|
-
a = ("" + a).toLowerCase(),
|
|
4630
|
+
a = ("" + a).toLowerCase(), h = !0;
|
|
4620
4631
|
}
|
|
4621
4632
|
}, s.prototype.toJSON = function() {
|
|
4622
4633
|
return {
|
|
@@ -4633,24 +4644,24 @@ Pt.write = function(r, o, l, h, d, g) {
|
|
|
4633
4644
|
let a = e;
|
|
4634
4645
|
for (; a < t; ) {
|
|
4635
4646
|
const c = i[a];
|
|
4636
|
-
let
|
|
4647
|
+
let h = null, D = c > 239 ? 4 : c > 223 ? 3 : c > 191 ? 2 : 1;
|
|
4637
4648
|
if (a + D <= t) {
|
|
4638
4649
|
let b, k, R, j;
|
|
4639
4650
|
switch (D) {
|
|
4640
4651
|
case 1:
|
|
4641
|
-
c < 128 && (
|
|
4652
|
+
c < 128 && (h = c);
|
|
4642
4653
|
break;
|
|
4643
4654
|
case 2:
|
|
4644
|
-
b = i[a + 1], (b & 192) === 128 && (j = (c & 31) << 6 | b & 63, j > 127 && (
|
|
4655
|
+
b = i[a + 1], (b & 192) === 128 && (j = (c & 31) << 6 | b & 63, j > 127 && (h = j));
|
|
4645
4656
|
break;
|
|
4646
4657
|
case 3:
|
|
4647
|
-
b = i[a + 1], k = i[a + 2], (b & 192) === 128 && (k & 192) === 128 && (j = (c & 15) << 12 | (b & 63) << 6 | k & 63, j > 2047 && (j < 55296 || j > 57343) && (
|
|
4658
|
+
b = i[a + 1], k = i[a + 2], (b & 192) === 128 && (k & 192) === 128 && (j = (c & 15) << 12 | (b & 63) << 6 | k & 63, j > 2047 && (j < 55296 || j > 57343) && (h = j));
|
|
4648
4659
|
break;
|
|
4649
4660
|
case 4:
|
|
4650
|
-
b = i[a + 1], k = i[a + 2], R = i[a + 3], (b & 192) === 128 && (k & 192) === 128 && (R & 192) === 128 && (j = (c & 15) << 18 | (b & 63) << 12 | (k & 63) << 6 | R & 63, j > 65535 && j < 1114112 && (
|
|
4661
|
+
b = i[a + 1], k = i[a + 2], R = i[a + 3], (b & 192) === 128 && (k & 192) === 128 && (R & 192) === 128 && (j = (c & 15) << 18 | (b & 63) << 12 | (k & 63) << 6 | R & 63, j > 65535 && j < 1114112 && (h = j));
|
|
4651
4662
|
}
|
|
4652
4663
|
}
|
|
4653
|
-
|
|
4664
|
+
h === null ? (h = 65533, D = 1) : h > 65535 && (h -= 65536, n.push(h >>> 10 & 1023 | 55296), h = 56320 | h & 1023), n.push(h), a += D;
|
|
4654
4665
|
}
|
|
4655
4666
|
return ze(n);
|
|
4656
4667
|
}
|
|
@@ -4710,9 +4721,9 @@ Pt.write = function(r, o, l, h, d, g) {
|
|
|
4710
4721
|
}
|
|
4711
4722
|
s.prototype.readUintLE = s.prototype.readUIntLE = function(e, t, n) {
|
|
4712
4723
|
e = e >>> 0, t = t >>> 0, n || _(e, t, this.length);
|
|
4713
|
-
let a = this[e], c = 1,
|
|
4714
|
-
for (; ++
|
|
4715
|
-
a += this[e +
|
|
4724
|
+
let a = this[e], c = 1, h = 0;
|
|
4725
|
+
for (; ++h < t && (c *= 256); )
|
|
4726
|
+
a += this[e + h] * c;
|
|
4716
4727
|
return a;
|
|
4717
4728
|
}, s.prototype.readUintBE = s.prototype.readUIntBE = function(e, t, n) {
|
|
4718
4729
|
e = e >>> 0, t = t >>> 0, n || _(e, t, this.length);
|
|
@@ -4744,16 +4755,16 @@ Pt.write = function(r, o, l, h, d, g) {
|
|
|
4744
4755
|
return (BigInt(a) << BigInt(32)) + BigInt(c);
|
|
4745
4756
|
}), s.prototype.readIntLE = function(e, t, n) {
|
|
4746
4757
|
e = e >>> 0, t = t >>> 0, n || _(e, t, this.length);
|
|
4747
|
-
let a = this[e], c = 1,
|
|
4748
|
-
for (; ++
|
|
4749
|
-
a += this[e +
|
|
4758
|
+
let a = this[e], c = 1, h = 0;
|
|
4759
|
+
for (; ++h < t && (c *= 256); )
|
|
4760
|
+
a += this[e + h] * c;
|
|
4750
4761
|
return c *= 128, a >= c && (a -= Math.pow(2, 8 * t)), a;
|
|
4751
4762
|
}, s.prototype.readIntBE = function(e, t, n) {
|
|
4752
4763
|
e = e >>> 0, t = t >>> 0, n || _(e, t, this.length);
|
|
4753
|
-
let a = t, c = 1,
|
|
4764
|
+
let a = t, c = 1, h = this[e + --a];
|
|
4754
4765
|
for (; a > 0 && (c *= 256); )
|
|
4755
|
-
|
|
4756
|
-
return c *= 128,
|
|
4766
|
+
h += this[e + --a] * c;
|
|
4767
|
+
return c *= 128, h >= c && (h -= Math.pow(2, 8 * t)), h;
|
|
4757
4768
|
}, s.prototype.readInt8 = function(e, t) {
|
|
4758
4769
|
return e = e >>> 0, t || _(e, 1, this.length), this[e] & 128 ? (255 - this[e] + 1) * -1 : this[e];
|
|
4759
4770
|
}, s.prototype.readInt16LE = function(e, t) {
|
|
@@ -4803,18 +4814,18 @@ Pt.write = function(r, o, l, h, d, g) {
|
|
|
4803
4814
|
const D = Math.pow(2, 8 * n) - 1;
|
|
4804
4815
|
$(this, e, t, n, D, 0);
|
|
4805
4816
|
}
|
|
4806
|
-
let c = 1,
|
|
4807
|
-
for (this[t] = e & 255; ++
|
|
4808
|
-
this[t +
|
|
4817
|
+
let c = 1, h = 0;
|
|
4818
|
+
for (this[t] = e & 255; ++h < n && (c *= 256); )
|
|
4819
|
+
this[t + h] = e / c & 255;
|
|
4809
4820
|
return t + n;
|
|
4810
4821
|
}, s.prototype.writeUintBE = s.prototype.writeUIntBE = function(e, t, n, a) {
|
|
4811
4822
|
if (e = +e, t = t >>> 0, n = n >>> 0, !a) {
|
|
4812
4823
|
const D = Math.pow(2, 8 * n) - 1;
|
|
4813
4824
|
$(this, e, t, n, D, 0);
|
|
4814
4825
|
}
|
|
4815
|
-
let c = n - 1,
|
|
4816
|
-
for (this[t + c] = e & 255; --c >= 0 && (
|
|
4817
|
-
this[t + c] = e /
|
|
4826
|
+
let c = n - 1, h = 1;
|
|
4827
|
+
for (this[t + c] = e & 255; --c >= 0 && (h *= 256); )
|
|
4828
|
+
this[t + c] = e / h & 255;
|
|
4818
4829
|
return t + n;
|
|
4819
4830
|
}, s.prototype.writeUint8 = s.prototype.writeUInt8 = function(e, t, n) {
|
|
4820
4831
|
return e = +e, t = t >>> 0, n || $(this, e, t, 1, 255, 0), this[t] = e & 255, t + 1;
|
|
@@ -4831,15 +4842,15 @@ Pt.write = function(r, o, l, h, d, g) {
|
|
|
4831
4842
|
Je(e, n, a, i, t, 7);
|
|
4832
4843
|
let c = Number(e & BigInt(4294967295));
|
|
4833
4844
|
i[t++] = c, c = c >> 8, i[t++] = c, c = c >> 8, i[t++] = c, c = c >> 8, i[t++] = c;
|
|
4834
|
-
let
|
|
4835
|
-
return i[t++] =
|
|
4845
|
+
let h = Number(e >> BigInt(32) & BigInt(4294967295));
|
|
4846
|
+
return i[t++] = h, h = h >> 8, i[t++] = h, h = h >> 8, i[t++] = h, h = h >> 8, i[t++] = h, t;
|
|
4836
4847
|
}
|
|
4837
4848
|
function se(i, e, t, n, a) {
|
|
4838
4849
|
Je(e, n, a, i, t, 7);
|
|
4839
4850
|
let c = Number(e & BigInt(4294967295));
|
|
4840
4851
|
i[t + 7] = c, c = c >> 8, i[t + 6] = c, c = c >> 8, i[t + 5] = c, c = c >> 8, i[t + 4] = c;
|
|
4841
|
-
let
|
|
4842
|
-
return i[t + 3] =
|
|
4852
|
+
let h = Number(e >> BigInt(32) & BigInt(4294967295));
|
|
4853
|
+
return i[t + 3] = h, h = h >> 8, i[t + 2] = h, h = h >> 8, i[t + 1] = h, h = h >> 8, i[t] = h, t + 8;
|
|
4843
4854
|
}
|
|
4844
4855
|
s.prototype.writeBigUInt64LE = Q(function(e, t = 0) {
|
|
4845
4856
|
return Te(this, e, t, BigInt(0), BigInt("0xffffffffffffffff"));
|
|
@@ -4850,18 +4861,18 @@ Pt.write = function(r, o, l, h, d, g) {
|
|
|
4850
4861
|
const b = Math.pow(2, 8 * n - 1);
|
|
4851
4862
|
$(this, e, t, n, b - 1, -b);
|
|
4852
4863
|
}
|
|
4853
|
-
let c = 0,
|
|
4854
|
-
for (this[t] = e & 255; ++c < n && (
|
|
4855
|
-
e < 0 && D === 0 && this[t + c - 1] !== 0 && (D = 1), this[t + c] = (e /
|
|
4864
|
+
let c = 0, h = 1, D = 0;
|
|
4865
|
+
for (this[t] = e & 255; ++c < n && (h *= 256); )
|
|
4866
|
+
e < 0 && D === 0 && this[t + c - 1] !== 0 && (D = 1), this[t + c] = (e / h >> 0) - D & 255;
|
|
4856
4867
|
return t + n;
|
|
4857
4868
|
}, s.prototype.writeIntBE = function(e, t, n, a) {
|
|
4858
4869
|
if (e = +e, t = t >>> 0, !a) {
|
|
4859
4870
|
const b = Math.pow(2, 8 * n - 1);
|
|
4860
4871
|
$(this, e, t, n, b - 1, -b);
|
|
4861
4872
|
}
|
|
4862
|
-
let c = n - 1,
|
|
4863
|
-
for (this[t + c] = e & 255; --c >= 0 && (
|
|
4864
|
-
e < 0 && D === 0 && this[t + c + 1] !== 0 && (D = 1), this[t + c] = (e /
|
|
4873
|
+
let c = n - 1, h = 1, D = 0;
|
|
4874
|
+
for (this[t + c] = e & 255; --c >= 0 && (h *= 256); )
|
|
4875
|
+
e < 0 && D === 0 && this[t + c + 1] !== 0 && (D = 1), this[t + c] = (e / h >> 0) - D & 255;
|
|
4865
4876
|
return t + n;
|
|
4866
4877
|
}, s.prototype.writeInt8 = function(e, t, n) {
|
|
4867
4878
|
return e = +e, t = t >>> 0, n || $(this, e, t, 1, 127, -128), e < 0 && (e = 255 + e + 1), this[t] = e & 255, t + 1;
|
|
@@ -4924,8 +4935,8 @@ Pt.write = function(r, o, l, h, d, g) {
|
|
|
4924
4935
|
if (typeof a == "string" && !s.isEncoding(a))
|
|
4925
4936
|
throw new TypeError("Unknown encoding: " + a);
|
|
4926
4937
|
if (e.length === 1) {
|
|
4927
|
-
const
|
|
4928
|
-
(a === "utf8" &&
|
|
4938
|
+
const h = e.charCodeAt(0);
|
|
4939
|
+
(a === "utf8" && h < 128 || a === "latin1") && (e = h);
|
|
4929
4940
|
}
|
|
4930
4941
|
} else
|
|
4931
4942
|
typeof e == "number" ? e = e & 255 : typeof e == "boolean" && (e = Number(e));
|
|
@@ -4939,11 +4950,11 @@ Pt.write = function(r, o, l, h, d, g) {
|
|
|
4939
4950
|
for (c = t; c < n; ++c)
|
|
4940
4951
|
this[c] = e;
|
|
4941
4952
|
else {
|
|
4942
|
-
const
|
|
4953
|
+
const h = s.isBuffer(e) ? e : s.from(e, a), D = h.length;
|
|
4943
4954
|
if (D === 0)
|
|
4944
4955
|
throw new TypeError('The value "' + e + '" is invalid for argument "value"');
|
|
4945
4956
|
for (c = 0; c < n - t; ++c)
|
|
4946
|
-
this[c + t] =
|
|
4957
|
+
this[c + t] = h[c % D];
|
|
4947
4958
|
}
|
|
4948
4959
|
return this;
|
|
4949
4960
|
};
|
|
@@ -5005,9 +5016,9 @@ Pt.write = function(r, o, l, h, d, g) {
|
|
|
5005
5016
|
}
|
|
5006
5017
|
function Je(i, e, t, n, a, c) {
|
|
5007
5018
|
if (i > t || i < e) {
|
|
5008
|
-
const
|
|
5019
|
+
const h = typeof e == "bigint" ? "n" : "";
|
|
5009
5020
|
let D;
|
|
5010
|
-
throw c > 3 ? e === 0 || e === BigInt(0) ? D = `>= 0${
|
|
5021
|
+
throw c > 3 ? e === 0 || e === BigInt(0) ? D = `>= 0${h} and < 2${h} ** ${(c + 1) * 8}${h}` : D = `>= -(2${h} ** ${(c + 1) * 8 - 1}${h}) and < 2 ** ${(c + 1) * 8 - 1}${h}` : D = `>= ${e}${h} and <= ${t}${h}`, new J.ERR_OUT_OF_RANGE("value", D, i);
|
|
5011
5022
|
}
|
|
5012
5023
|
ct(n, a, c);
|
|
5013
5024
|
}
|
|
@@ -5036,13 +5047,13 @@ Pt.write = function(r, o, l, h, d, g) {
|
|
|
5036
5047
|
const n = i.length;
|
|
5037
5048
|
let a = null;
|
|
5038
5049
|
const c = [];
|
|
5039
|
-
for (let
|
|
5040
|
-
if (t = i.charCodeAt(
|
|
5050
|
+
for (let h = 0; h < n; ++h) {
|
|
5051
|
+
if (t = i.charCodeAt(h), t > 55295 && t < 57344) {
|
|
5041
5052
|
if (!a) {
|
|
5042
5053
|
if (t > 56319) {
|
|
5043
5054
|
(e -= 3) > -1 && c.push(239, 191, 189);
|
|
5044
5055
|
continue;
|
|
5045
|
-
} else if (
|
|
5056
|
+
} else if (h + 1 === n) {
|
|
5046
5057
|
(e -= 3) > -1 && c.push(239, 191, 189);
|
|
5047
5058
|
continue;
|
|
5048
5059
|
}
|
|
@@ -5098,8 +5109,8 @@ Pt.write = function(r, o, l, h, d, g) {
|
|
|
5098
5109
|
function pt(i, e) {
|
|
5099
5110
|
let t, n, a;
|
|
5100
5111
|
const c = [];
|
|
5101
|
-
for (let
|
|
5102
|
-
t = i.charCodeAt(
|
|
5112
|
+
for (let h = 0; h < i.length && !((e -= 2) < 0); ++h)
|
|
5113
|
+
t = i.charCodeAt(h), n = t >> 8, a = t % 256, c.push(a), c.push(n);
|
|
5103
5114
|
return c;
|
|
5104
5115
|
}
|
|
5105
5116
|
function Xe(i) {
|
|
@@ -5132,8 +5143,8 @@ Pt.write = function(r, o, l, h, d, g) {
|
|
|
5132
5143
|
function gt() {
|
|
5133
5144
|
throw new Error("BigInt not supported");
|
|
5134
5145
|
}
|
|
5135
|
-
})(
|
|
5136
|
-
var
|
|
5146
|
+
})(zi);
|
|
5147
|
+
var ji = { exports: {} }, V = ji.exports = {}, de, pe;
|
|
5137
5148
|
function Bt() {
|
|
5138
5149
|
throw new Error("setTimeout has not been defined");
|
|
5139
5150
|
}
|
|
@@ -5152,7 +5163,7 @@ function kt() {
|
|
|
5152
5163
|
pe = kt;
|
|
5153
5164
|
}
|
|
5154
5165
|
})();
|
|
5155
|
-
function
|
|
5166
|
+
function Bi(r) {
|
|
5156
5167
|
if (de === setTimeout)
|
|
5157
5168
|
return setTimeout(r, 0);
|
|
5158
5169
|
if ((de === Bt || !de) && setTimeout)
|
|
@@ -5184,11 +5195,11 @@ function M0(r) {
|
|
|
5184
5195
|
}
|
|
5185
5196
|
var we = [], Qe = !1, _e, st = -1;
|
|
5186
5197
|
function C0() {
|
|
5187
|
-
!Qe || !_e || (Qe = !1, _e.length ? we = _e.concat(we) : st = -1, we.length &&
|
|
5198
|
+
!Qe || !_e || (Qe = !1, _e.length ? we = _e.concat(we) : st = -1, we.length && ki());
|
|
5188
5199
|
}
|
|
5189
|
-
function
|
|
5200
|
+
function ki() {
|
|
5190
5201
|
if (!Qe) {
|
|
5191
|
-
var r =
|
|
5202
|
+
var r = Bi(C0);
|
|
5192
5203
|
Qe = !0;
|
|
5193
5204
|
for (var o = we.length; o; ) {
|
|
5194
5205
|
for (_e = we, we = []; ++st < o; )
|
|
@@ -5203,12 +5214,12 @@ V.nextTick = function(r) {
|
|
|
5203
5214
|
if (arguments.length > 1)
|
|
5204
5215
|
for (var l = 1; l < arguments.length; l++)
|
|
5205
5216
|
o[l - 1] = arguments[l];
|
|
5206
|
-
we.push(new
|
|
5217
|
+
we.push(new bi(r, o)), we.length === 1 && !Qe && Bi(ki);
|
|
5207
5218
|
};
|
|
5208
|
-
function
|
|
5219
|
+
function bi(r, o) {
|
|
5209
5220
|
this.fun = r, this.array = o;
|
|
5210
5221
|
}
|
|
5211
|
-
|
|
5222
|
+
bi.prototype.run = function() {
|
|
5212
5223
|
this.fun.apply(null, this.array);
|
|
5213
5224
|
};
|
|
5214
5225
|
V.title = "browser";
|
|
@@ -5243,10 +5254,10 @@ V.chdir = function(r) {
|
|
|
5243
5254
|
V.umask = function() {
|
|
5244
5255
|
return 0;
|
|
5245
5256
|
};
|
|
5246
|
-
var w0 =
|
|
5257
|
+
var w0 = ji.exports;
|
|
5247
5258
|
(function(r) {
|
|
5248
5259
|
Object.defineProperty(r, Symbol.toStringTag, { value: "Module" });
|
|
5249
|
-
const o =
|
|
5260
|
+
const o = zi, l = w0, u = (f) => f && f.__esModule ? f : { default: f }, d = u(l), g = globalThis || void 0 || self;
|
|
5250
5261
|
Object.defineProperty(r, "Buffer", { enumerable: !0, get: () => o.Buffer }), Object.defineProperty(r, "process", { enumerable: !0, get: () => d.default }), r.global = g;
|
|
5251
5262
|
})(u0);
|
|
5252
5263
|
window.slStore = /* @__PURE__ */ Object.create(null);
|
|
@@ -5264,7 +5275,7 @@ var pi;
|
|
|
5264
5275
|
(function(r) {
|
|
5265
5276
|
r.Init = "init", r.Ready = "ready", r.Connecting = "connecting", r.Connected = "connected", r.Disconnected = "disconnected", r.Failed = "failed", r.Reconnecting = "reconnecting";
|
|
5266
5277
|
})(pi || (pi = {}));
|
|
5267
|
-
const E0 = ({ sdk: r }) => Z(r.getUserStore()).data ? /* @__PURE__ */ p("button", { onClick: r.logout, children: "logout" }) : /* @__PURE__ */ p(
|
|
5278
|
+
const E0 = ({ sdk: r }) => Z(r.getUserStore()).data ? /* @__PURE__ */ p("button", { onClick: r.logout, children: "logout" }) : /* @__PURE__ */ p(xr, { login: async (o) => {
|
|
5268
5279
|
try {
|
|
5269
5280
|
await r.authorizationBypass("streamlayer:streamlayer", o);
|
|
5270
5281
|
} catch (l) {
|
|
@@ -5272,7 +5283,7 @@ const E0 = ({ sdk: r }) => Z(r.getUserStore()).data ? /* @__PURE__ */ p("button"
|
|
|
5272
5283
|
}
|
|
5273
5284
|
}, anonymousLogin: r.anonymousAuthorization, host: r.host });
|
|
5274
5285
|
var A0 = Object.defineProperty, N0 = (r, o, l) => o in r ? A0(r, o, { enumerable: !0, configurable: !0, writable: !0, value: l }) : r[o] = l, ke = (r, o, l) => (N0(r, typeof o != "symbol" ? o + "" : o, l), l);
|
|
5275
|
-
class x0 extends
|
|
5286
|
+
class x0 extends Fi {
|
|
5276
5287
|
constructor() {
|
|
5277
5288
|
super("user"), ke(this, "setSchema", (o) => {
|
|
5278
5289
|
this.write("schema", o);
|
|
@@ -5299,7 +5310,7 @@ class x0 extends $i {
|
|
|
5299
5310
|
}
|
|
5300
5311
|
new x0();
|
|
5301
5312
|
const T0 = ({ activeFeature: r, sdk: o }) => {
|
|
5302
|
-
const [l,
|
|
5313
|
+
const [l, u] = K(null), { organizationSettings: d, streamSettings: g } = Z(o.sdkStore), f = De(() => {
|
|
5303
5314
|
const I = (g == null ? void 0 : g.data) || (d == null ? void 0 : d.data);
|
|
5304
5315
|
return I != null && I.overlays ? I.overlays : [];
|
|
5305
5316
|
}, [d, g]);
|
|
@@ -5307,27 +5318,27 @@ const T0 = ({ activeFeature: r, sdk: o }) => {
|
|
|
5307
5318
|
const I = o.getFeatures();
|
|
5308
5319
|
if (r)
|
|
5309
5320
|
for (const [N, E] of I)
|
|
5310
|
-
N === r ? E.status.get() === Ve.Suspended && (E.enable(),
|
|
5321
|
+
N === r ? E.status.get() === Ve.Suspended && (E.enable(), u(E)) : E.status.get() === Ve.Ready && E.disable();
|
|
5311
5322
|
else {
|
|
5312
5323
|
for (const [, N] of I)
|
|
5313
5324
|
N.status.get() === Ve.Ready && N.disable();
|
|
5314
|
-
|
|
5325
|
+
u(null);
|
|
5315
5326
|
}
|
|
5316
5327
|
return () => {
|
|
5317
5328
|
for (const [, N] of I)
|
|
5318
5329
|
N.status.get() === Ve.Ready && N.disable();
|
|
5319
5330
|
};
|
|
5320
5331
|
}, [r, o]);
|
|
5321
|
-
const s = De(() => l ? l.featureConfig.get().type === Yt.GAMES ? l ? /* @__PURE__ */ p("div", { children: /* @__PURE__ */ p(
|
|
5332
|
+
const s = De(() => l ? l.featureConfig.get().type === Yt.GAMES ? l ? /* @__PURE__ */ p("div", { children: /* @__PURE__ */ p(r0, { gamification: l, sdk: o }) }) : /* @__PURE__ */ p("div", { children: "wait gamification..." }) : l.featureConfig.get().type === Yt.HIGHLIGHTS ? l ? /* @__PURE__ */ p("div", { children: /* @__PURE__ */ p(c0, { highlights: l, sdk: o }) }) : /* @__PURE__ */ p("div", { children: "wait highlights..." }) : /* @__PURE__ */ p("div", { children: "unknown feature" }) : null, [o, l]);
|
|
5322
5333
|
return /* @__PURE__ */ L("div", { children: [
|
|
5323
|
-
/* @__PURE__ */ L(
|
|
5334
|
+
/* @__PURE__ */ L(i0, { children: [
|
|
5324
5335
|
/* @__PURE__ */ p(xt, { onClick: () => o.closeFeature(), disabled: !s, children: "close" }),
|
|
5325
5336
|
/* @__PURE__ */ p(xt, { onClick: () => o.logout(), children: "logout" }),
|
|
5326
5337
|
f.map((I) => /* @__PURE__ */ L(
|
|
5327
5338
|
xt,
|
|
5328
5339
|
{
|
|
5329
5340
|
onClick: () => o.openFeature(I.type),
|
|
5330
|
-
disabled: !(I.type in
|
|
5341
|
+
disabled: !(I.type in $i),
|
|
5331
5342
|
"data-enable_sdk_button": I.enableSdkButton.toString(),
|
|
5332
5343
|
"data-selected": I.type === r,
|
|
5333
5344
|
children: [
|
|
@@ -5341,36 +5352,34 @@ const T0 = ({ activeFeature: r, sdk: o }) => {
|
|
|
5341
5352
|
s
|
|
5342
5353
|
] });
|
|
5343
5354
|
}, e2 = ({ sdk: r }) => {
|
|
5344
|
-
const o = Z(r.organizationStore()), l = Z(r.getUserStore()),
|
|
5355
|
+
const o = Z(r.organizationStore()), l = Z(r.getUserStore()), u = Z(r.getActiveFeature());
|
|
5345
5356
|
return o.loading ? /* @__PURE__ */ p("div", { children: "authentication..." }) : o.data ? l.loading ? /* @__PURE__ */ p("div", { children: "authentication..." }) : l.data ? /* @__PURE__ */ L(Oe, { children: [
|
|
5346
|
-
/* @__PURE__ */ p(
|
|
5347
|
-
/* @__PURE__ */ p(T0, { sdk: r, activeFeature:
|
|
5357
|
+
/* @__PURE__ */ p(Ko, { notificationsStore: r.getNotificationsStore() }),
|
|
5358
|
+
/* @__PURE__ */ p(T0, { sdk: r, activeFeature: u })
|
|
5348
5359
|
] }) : /* @__PURE__ */ p(E0, { sdk: r }) : /* @__PURE__ */ p("div", { children: "wrong sdk key..." });
|
|
5349
5360
|
};
|
|
5350
5361
|
const t2 = "StreamLayerCSSReset", v0 = "pedqibx";
|
|
5351
5362
|
const i2 = ({ children: r, style: o }) => /* @__PURE__ */ p("div", { className: "StreamLayerSDKTheme", children: /* @__PURE__ */ p("div", { className: v0, style: o, children: r }) });
|
|
5352
5363
|
export {
|
|
5353
5364
|
W0 as S,
|
|
5354
|
-
|
|
5355
|
-
|
|
5356
|
-
|
|
5365
|
+
bo as Y,
|
|
5366
|
+
Gi as a,
|
|
5367
|
+
Hi as b,
|
|
5357
5368
|
e2 as c,
|
|
5358
|
-
|
|
5359
|
-
|
|
5369
|
+
wi as d,
|
|
5370
|
+
fn as e,
|
|
5360
5371
|
t2 as f,
|
|
5361
|
-
|
|
5372
|
+
E1 as g,
|
|
5362
5373
|
nt as h,
|
|
5363
|
-
|
|
5364
|
-
|
|
5365
|
-
|
|
5366
|
-
|
|
5374
|
+
J0 as i,
|
|
5375
|
+
Xs as j,
|
|
5376
|
+
cn as k,
|
|
5377
|
+
q1 as l,
|
|
5367
5378
|
q0 as m,
|
|
5368
|
-
|
|
5379
|
+
yn as o,
|
|
5369
5380
|
i2 as p,
|
|
5370
5381
|
Ue as q,
|
|
5371
|
-
|
|
5382
|
+
W1 as r,
|
|
5372
5383
|
m as s,
|
|
5373
|
-
|
|
5374
|
-
R1 as v,
|
|
5375
|
-
Ws as x
|
|
5384
|
+
H1 as v
|
|
5376
5385
|
};
|