@streamlayer/sdk-web 1.17.2 → 1.17.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/index.js +6 -6
- package/lib/es/index.js +177 -153
- package/package.json +13 -13
package/lib/es/index.js
CHANGED
|
@@ -2,8 +2,8 @@ import { pino as is } from "pino";
|
|
|
2
2
|
import { QuestionType as N, QuestionStatus as Z, AdUnit as oe, PromotionType as F, NotificationEnabled as Kr, SilenceSetting as ss, NotificationUseContentTexts as zr, UseAsNotification as os, FactoidMediaMode as as } from "@streamlayer/sl-eslib/interactive/interactive.common_pb";
|
|
3
3
|
import { Feed as re, PickHistoryStatus as vt } from "@streamlayer/sl-eslib/interactive/feed/interactive.feed_pb";
|
|
4
4
|
import { SdkOverlayType as q } from "@streamlayer/sl-eslib/sdkSettings/sdkSettings.common_pb";
|
|
5
|
-
import { InvitationCategory as Yr, InvitationFrom as
|
|
6
|
-
import { computed as us, map as cs, atom as pt, batched as
|
|
5
|
+
import { InvitationCategory as Yr, InvitationFrom as Xr } from "@streamlayer/sl-eslib/analytics/v1/invitations/invitations_pb";
|
|
6
|
+
import { computed as us, map as cs, atom as pt, batched as Jr, onMount as Cr, onStart as ls } from "nanostores";
|
|
7
7
|
import { v4 as Ke } from "uuid";
|
|
8
8
|
import { ConnectError as lt, Code as ue, createContextKey as Zr, createClient as en, createContextValues as ds } from "@connectrpc/connect";
|
|
9
9
|
import { createGrpcWebTransport as tn } from "@connectrpc/connect-web";
|
|
@@ -14,7 +14,7 @@ import { Users as Rr } from "@streamlayer/sl-eslib/users/users_pb";
|
|
|
14
14
|
import { Leaderboard as ti } from "@streamlayer/sl-eslib/interactive/leaderboard/interactive.leaderboard_pb";
|
|
15
15
|
import { LinksClient as ps } from "@streamlayer/sl-eslib/shortLinks/linksClient_pb";
|
|
16
16
|
import { PolymarketSportsClient as fs, Timeframe as hs } from "@streamlayer/sl-eslib/polymarket/sportsClient_pb";
|
|
17
|
-
import { Kind as _, TopicSubType as G, TopicType as
|
|
17
|
+
import { Kind as _, TopicSubType as G, TopicType as V, PollOpenedFrom as Q, Category as z, ScreenOrientation as nn } from "@streamlayer/sl-eslib/analytics/v1/common/analytics.common_pb";
|
|
18
18
|
import { AnalyticsService as ri } from "@streamlayer/sl-eslib/analytics/v2/streaming/streaming_pb";
|
|
19
19
|
import { InteractionActionType as sn } from "@streamlayer/sl-eslib/analytics/v1/interactions/interactions_pb";
|
|
20
20
|
import { NotificationKind as ve, NotificationType as on } from "@streamlayer/sl-eslib/analytics/v1/notifications/notifications_pb";
|
|
@@ -70,20 +70,20 @@ function gs(t) {
|
|
|
70
70
|
}
|
|
71
71
|
}
|
|
72
72
|
}
|
|
73
|
-
var Te = [],
|
|
73
|
+
var Te = [], Je = !1, _e, Et = -1;
|
|
74
74
|
function ys() {
|
|
75
|
-
!
|
|
75
|
+
!Je || !_e || (Je = !1, _e.length ? Te = _e.concat(Te) : Et = -1, Te.length && si());
|
|
76
76
|
}
|
|
77
77
|
function si() {
|
|
78
|
-
if (!
|
|
78
|
+
if (!Je) {
|
|
79
79
|
var t = ii(ys);
|
|
80
|
-
|
|
80
|
+
Je = !0;
|
|
81
81
|
for (var e = Te.length; e; ) {
|
|
82
82
|
for (_e = Te, Te = []; ++Et < e; )
|
|
83
83
|
_e && _e[Et].run();
|
|
84
84
|
Et = -1, e = Te.length;
|
|
85
85
|
}
|
|
86
|
-
_e = null,
|
|
86
|
+
_e = null, Je = !1, gs(t);
|
|
87
87
|
}
|
|
88
88
|
}
|
|
89
89
|
H.nextTick = function(t) {
|
|
@@ -91,7 +91,7 @@ H.nextTick = function(t) {
|
|
|
91
91
|
if (arguments.length > 1)
|
|
92
92
|
for (var r = 1; r < arguments.length; r++)
|
|
93
93
|
e[r - 1] = arguments[r];
|
|
94
|
-
Te.push(new oi(t, e)), Te.length === 1 && !
|
|
94
|
+
Te.push(new oi(t, e)), Te.length === 1 && !Je && ii(si);
|
|
95
95
|
};
|
|
96
96
|
function oi(t, e) {
|
|
97
97
|
this.fun = t, this.array = e;
|
|
@@ -961,7 +961,7 @@ const Ks = (t, e, r) => {
|
|
|
961
961
|
}
|
|
962
962
|
}
|
|
963
963
|
});
|
|
964
|
-
},
|
|
964
|
+
}, Xs = (t, e) => {
|
|
965
965
|
const { client: r, queryKey: n } = e.createPromiseClient(re, { method: "get", params: [t] });
|
|
966
966
|
return e.nanoquery.createFetcherStore(n, {
|
|
967
967
|
fetcher: async (i, s, o) => (await r.get({
|
|
@@ -970,7 +970,7 @@ const Ks = (t, e, r) => {
|
|
|
970
970
|
revalidateInterval: 0,
|
|
971
971
|
dedupeTime: 1e3 * 60 * 60
|
|
972
972
|
});
|
|
973
|
-
},
|
|
973
|
+
}, Js = (t, e, r) => {
|
|
974
974
|
const { client: n, queryKey: i } = r.createPromiseClient(re, {
|
|
975
975
|
method: "syncQuestion",
|
|
976
976
|
params: [t, e ? "true" : ""]
|
|
@@ -1148,13 +1148,13 @@ const Ks = (t, e, r) => {
|
|
|
1148
1148
|
revalidateInterval: 0
|
|
1149
1149
|
});
|
|
1150
1150
|
}, so = (t, e, r) => {
|
|
1151
|
-
const n =
|
|
1151
|
+
const n = Jr([e, r], () => {
|
|
1152
1152
|
const a = e.get();
|
|
1153
1153
|
if (!a)
|
|
1154
1154
|
return;
|
|
1155
1155
|
const u = r.get().data?.find((l) => l.id === a?.questionId), c = a?.question?.openedFrom;
|
|
1156
1156
|
return u ? (u.openedFrom = c, u) : a.question;
|
|
1157
|
-
}), i =
|
|
1157
|
+
}), i = Jr(n, (a) => a && a.type === "question" ? a.id : void 0), s = Tt(i, t);
|
|
1158
1158
|
return { $store: n, $extendedStore: s, updateExtendedQuestion: (a) => {
|
|
1159
1159
|
const u = s.get().data, c = (l, d) => {
|
|
1160
1160
|
if (!l || !d)
|
|
@@ -1425,9 +1425,9 @@ class fo {
|
|
|
1425
1425
|
transport;
|
|
1426
1426
|
cancels = /* @__PURE__ */ new Set();
|
|
1427
1427
|
constructor(e) {
|
|
1428
|
-
this.transport = e.transport, this.log = ne("gamification-background"), this.storage = new po(), this.slStreamId = e.stores.slStreamId.getAtomStore(), this.organizationId = e.stores.organizationSettings.getAtomStore(), this.userId = e.stores.user.getAtomStore(), this.moderationId = new se(K(void 0), "moderationId").getStore(), this.interactiveAllowed = new se(K(Ne.DISALLOWED), "interactiveAllowed").getStore(), this.openedQuestionId = new se(K(void 0), "openedQuestionId").getStore(), this.notifications = e.notifications, this.moderation = new ce(
|
|
1428
|
+
this.transport = e.transport, this.log = ne("gamification-background"), this.storage = new po(), this.slStreamId = e.stores.slStreamId.getAtomStore(), this.organizationId = e.stores.organizationSettings.getAtomStore(), this.userId = e.stores.user.getAtomStore(), this.moderationId = new se(K(void 0), "moderationId").getStore(), this.interactiveAllowed = new se(K(Ne.DISALLOWED), "interactiveAllowed").getStore(), this.openedQuestionId = new se(K(void 0), "openedQuestionId").getStore(), this.notifications = e.notifications, this.moderation = new ce(Xs(this.slStreamId, e.transport), "gamification:moderation");
|
|
1429
1429
|
const r = !!e.sdk.options.get().betPack;
|
|
1430
|
-
this.feedList = new ce(ro(this.slStreamId, this.interactiveAllowed, this.userId, this.organizationId, this.storage, r, e.transport), "gamification:feedList"), this.betPack = new ce(io(this.slStreamId, this.userId, this.organizationId, this.storage, e.transport), "gamification:betPack"), this.activeQuestionId =
|
|
1430
|
+
this.feedList = new ce(ro(this.slStreamId, this.interactiveAllowed, this.userId, this.organizationId, this.storage, r, e.transport), "gamification:feedList"), this.betPack = new ce(io(this.slStreamId, this.userId, this.organizationId, this.storage, e.transport), "gamification:betPack"), this.activeQuestionId = Js(this.slStreamId, r, e.transport), this.openedQuestion = so(e.transport, this.openedQuestionId, this.feedList.getStore()), this.cancels.add(this.openedQuestionId.listen((n) => {
|
|
1431
1431
|
this.log.debug({ item: n }, "received question"), n?.questionId ? (this.log.info("cleanup on close question"), this.questionSubscription !== void 0 && (e.transport.removeSubscription(this.questionSubscription), this.questionSubscription = void 0), this.questionSubscription = to(n.questionId, e.transport), this.questionSubscription.addListener("feed-subscription-opened-question", (i) => {
|
|
1432
1432
|
const s = i.data?.attributes?.question;
|
|
1433
1433
|
if (this.openedQuestion.updateExtendedQuestion(s), this.betPack && s?.type === N.PREDICTION && (s.status === Z.ACTIVE || s.status === Z.RESOLVED)) {
|
|
@@ -2024,6 +2024,12 @@ const at = new ze(), ko = (t, e, r) => {
|
|
|
2024
2024
|
disableOnboardingNotification: function() {
|
|
2025
2025
|
t.sdk.uiState.setKey("onboardingNotification", !1);
|
|
2026
2026
|
},
|
|
2027
|
+
enablePolymarket: function() {
|
|
2028
|
+
t.sdk.uiState.setKey("polymarket", !0);
|
|
2029
|
+
},
|
|
2030
|
+
disablePolymarket: function() {
|
|
2031
|
+
t.sdk.uiState.setKey("polymarket", !1);
|
|
2032
|
+
},
|
|
2027
2033
|
enableApp: function() {
|
|
2028
2034
|
t.sdk.uiState.set({
|
|
2029
2035
|
app: !0,
|
|
@@ -2052,6 +2058,9 @@ const at = new ze(), ko = (t, e, r) => {
|
|
|
2052
2058
|
exposedPauseAd: !1
|
|
2053
2059
|
});
|
|
2054
2060
|
}
|
|
2061
|
+
}, t.sdk.uiHandlers = {
|
|
2062
|
+
enablePolymarket: t.ui.enablePolymarket,
|
|
2063
|
+
disablePolymarket: t.ui.disablePolymarket
|
|
2055
2064
|
}, e.onContentActivate && (t.ui.onContentActivate = e.onContentActivate);
|
|
2056
2065
|
const n = (i) => {
|
|
2057
2066
|
t.ui.onContentActivate && t.ui.onContentActivate({ ...i, type: "advertisement" });
|
|
@@ -2203,17 +2212,16 @@ const at = new ze(), ko = (t, e, r) => {
|
|
|
2203
2212
|
t.stores.enabled.subscribe((o) => {
|
|
2204
2213
|
o === "on" && n.onMountedFired === !1 && (i.forEach(({ cb: a }, u) => s.set(u, a())), n.onMountedFired = !0), o !== "on" && n.onMountedFired === !0 && (s.forEach((a) => a()), s.clear(), i.forEach(({ clear: a }, u) => a && i.delete(u)), n.onMountedFired = !1);
|
|
2205
2214
|
});
|
|
2206
|
-
}, t.sdk.initializeApp =
|
|
2207
|
-
|
|
2208
|
-
|
|
2209
|
-
|
|
2210
|
-
|
|
2211
|
-
|
|
2212
|
-
|
|
2213
|
-
|
|
2214
|
-
|
|
2215
|
-
|
|
2216
|
-
}, t.sdk.disableApp = () => {
|
|
2215
|
+
}, t.sdk.initializeApp = (o) => (t.contextConfig = o, t.stores.enabled.get() === "on" ? Promise.resolve({ enabled: !0 }) : (t.storeSubscribe(), t.stores.enabled.setValue("on"), t.stores.status.setValue(we.INITIALIZATION), new Promise((a) => {
|
|
2216
|
+
window.requestAnimationFrame(async () => {
|
|
2217
|
+
try {
|
|
2218
|
+
const u = await t.stores.organizationSettings.getValue();
|
|
2219
|
+
return u ? (t.stores.status.setValue(we.READY), a({ enabled: !!u })) : (t.stores.status.setValue(we.FAILED), a({ err: "failed" }));
|
|
2220
|
+
} catch (u) {
|
|
2221
|
+
return t.stores.enabled.setValue(), t.stores.status.setValue(we.FAILED), a({ err: `${u}` });
|
|
2222
|
+
}
|
|
2223
|
+
});
|
|
2224
|
+
}))), t.sdk.disableApp = () => {
|
|
2217
2225
|
t.stores.enabled.get() === "on" && (t.stores.enabled.setValue(), t.stores.status.setValue(we.DISABLED), t.stores.slStreamId.setValue(), t.stores.providerStreamId.setValue(), t.sdk.closeFeature(!0), t.storeUnsubscribe(), t.transport.disconnect());
|
|
2218
2226
|
}, t.sdk.createEventSession = (o, a) => {
|
|
2219
2227
|
a ? t.stores.slStreamId.getStore().set({ loading: !1, data: o }) : t.stores.providerStreamId.setValue(o);
|
|
@@ -3285,7 +3293,7 @@ function Yo(t, e) {
|
|
|
3285
3293
|
}(u));
|
|
3286
3294
|
}), n;
|
|
3287
3295
|
}
|
|
3288
|
-
function
|
|
3296
|
+
function Xo(t, e) {
|
|
3289
3297
|
const r = function() {
|
|
3290
3298
|
let n = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
3291
3299
|
const { id: i, adId: s, sequence: o, apiFramework: a } = Pr(n);
|
|
@@ -3338,7 +3346,7 @@ function Si(t) {
|
|
|
3338
3346
|
return (i = e).value === null && Object.keys(i.attributes).length === 0 && i.children.length === 0 ? null : e;
|
|
3339
3347
|
var i;
|
|
3340
3348
|
}
|
|
3341
|
-
function
|
|
3349
|
+
function Jo(t) {
|
|
3342
3350
|
return t.getAttribute("AdID") || t.getAttribute("adID") || t.getAttribute("adId") || null;
|
|
3343
3351
|
}
|
|
3344
3352
|
const It = { Wrapper: { subElements: ["VASTAdTagURI", "Impression"] }, BlockedAdCategories: { attributes: ["authority"] }, InLine: { subElements: ["AdSystem", "AdTitle", "Impression", "AdServingId", "Creatives"] }, Category: { attributes: ["authority"] }, Pricing: { attributes: ["model", "currency"] }, Verification: { oneOfinLineResources: ["JavaScriptResource", "ExecutableResource"], attributes: ["vendor"] }, UniversalAdId: { attributes: ["idRegistry"] }, JavaScriptResource: { attributes: ["apiFramework", "browserOptional"] }, ExecutableResource: { attributes: ["apiFramework", "type"] }, Tracking: { attributes: ["event"] }, Creatives: { subElements: ["Creative"] }, Creative: { subElements: ["UniversalAdId"] }, Linear: { subElements: ["MediaFiles", "Duration"] }, MediaFiles: { subElements: ["MediaFile"] }, MediaFile: { attributes: ["delivery", "type", "width", "height"] }, Mezzanine: { attributes: ["delivery", "type", "width", "height"] }, NonLinear: { oneOfinLineResources: ["StaticResource", "IFrameResource", "HTMLResource"], attributes: ["width", "height"] }, Companion: { oneOfinLineResources: ["StaticResource", "IFrameResource", "HTMLResource"], attributes: ["width", "height"] }, StaticResource: { attributes: ["creativeType"] }, Icons: { subElements: ["Icon"] }, Icon: { oneOfinLineResources: ["StaticResource", "IFrameResource", "HTMLResource"] } };
|
|
@@ -3406,7 +3414,7 @@ function wi(t, e) {
|
|
|
3406
3414
|
i.creatives = function(o) {
|
|
3407
3415
|
const a = [];
|
|
3408
3416
|
return o.forEach((u) => {
|
|
3409
|
-
const c = { id: u.getAttribute("id") || null, adId:
|
|
3417
|
+
const c = { id: u.getAttribute("id") || null, adId: Jo(u), sequence: u.getAttribute("sequence") || null, apiFramework: u.getAttribute("apiFramework") || null }, l = [];
|
|
3410
3418
|
let d;
|
|
3411
3419
|
f.childrenByName(u, "UniversalAdId").forEach((m) => {
|
|
3412
3420
|
const b = { idRegistry: m.getAttribute("idRegistry") || "unknown", value: f.parseNodeText(m) };
|
|
@@ -3422,7 +3430,7 @@ function wi(t, e) {
|
|
|
3422
3430
|
g = Yo(b, c);
|
|
3423
3431
|
break;
|
|
3424
3432
|
case "NonLinearAds":
|
|
3425
|
-
g =
|
|
3433
|
+
g = Xo(b, c);
|
|
3426
3434
|
break;
|
|
3427
3435
|
case "CompanionAds":
|
|
3428
3436
|
g = zo(b, c);
|
|
@@ -3967,7 +3975,7 @@ class ma {
|
|
|
3967
3975
|
kind: _.INVITATION_ACCEPTED
|
|
3968
3976
|
},
|
|
3969
3977
|
category: Yr.GAMES,
|
|
3970
|
-
from:
|
|
3978
|
+
from: Xr.UNSET
|
|
3971
3979
|
});
|
|
3972
3980
|
};
|
|
3973
3981
|
sent = ({ from: e }) => {
|
|
@@ -3977,7 +3985,7 @@ class ma {
|
|
|
3977
3985
|
kind: _.INVITATION_SENT
|
|
3978
3986
|
},
|
|
3979
3987
|
category: Yr.GAMES,
|
|
3980
|
-
from: e ||
|
|
3988
|
+
from: e || Xr.UNSET
|
|
3981
3989
|
});
|
|
3982
3990
|
};
|
|
3983
3991
|
}
|
|
@@ -4074,6 +4082,9 @@ class va {
|
|
|
4074
4082
|
case "rendered":
|
|
4075
4083
|
this.exposedPauseAdOpened(i);
|
|
4076
4084
|
break;
|
|
4085
|
+
case "navigated":
|
|
4086
|
+
this.exposedPauseAdNavigated(i);
|
|
4087
|
+
break;
|
|
4077
4088
|
}
|
|
4078
4089
|
}
|
|
4079
4090
|
if (n.slEventBus?.type === "advertisement") {
|
|
@@ -4134,7 +4145,7 @@ class va {
|
|
|
4134
4145
|
kind: _.STREAM_PAUSED,
|
|
4135
4146
|
topicId: e,
|
|
4136
4147
|
parentTopicId: r,
|
|
4137
|
-
topicType:
|
|
4148
|
+
topicType: V.EXPOSED_PAUSED_AD
|
|
4138
4149
|
},
|
|
4139
4150
|
pollOpenedFrom: Q.UNSET
|
|
4140
4151
|
});
|
|
@@ -4147,7 +4158,7 @@ class va {
|
|
|
4147
4158
|
kind: _.EXTERNAL_AD_CLOSED,
|
|
4148
4159
|
topicId: e,
|
|
4149
4160
|
parentTopicId: r,
|
|
4150
|
-
topicType:
|
|
4161
|
+
topicType: V.EXPOSED_PAUSED_AD
|
|
4151
4162
|
},
|
|
4152
4163
|
pollOpenedFrom: Q.UNSET
|
|
4153
4164
|
});
|
|
@@ -4160,7 +4171,7 @@ class va {
|
|
|
4160
4171
|
kind: _.STREAM_RESUMED,
|
|
4161
4172
|
topicId: e,
|
|
4162
4173
|
parentTopicId: r,
|
|
4163
|
-
topicType:
|
|
4174
|
+
topicType: V.EXPOSED_PAUSED_AD
|
|
4164
4175
|
},
|
|
4165
4176
|
pollOpenedFrom: Q.UNSET
|
|
4166
4177
|
});
|
|
@@ -4173,7 +4184,20 @@ class va {
|
|
|
4173
4184
|
kind: _.EXTERNAL_AD_RENDERED,
|
|
4174
4185
|
topicId: e,
|
|
4175
4186
|
parentTopicId: r,
|
|
4176
|
-
topicType:
|
|
4187
|
+
topicType: V.EXPOSED_PAUSED_AD
|
|
4188
|
+
},
|
|
4189
|
+
pollOpenedFrom: Q.UNSET
|
|
4190
|
+
});
|
|
4191
|
+
};
|
|
4192
|
+
exposedPauseAdNavigated = ({ id: e, parentId: r }) => {
|
|
4193
|
+
const n = this.analytics.commonStore.getValues();
|
|
4194
|
+
this.analytics.write("games", {
|
|
4195
|
+
common: {
|
|
4196
|
+
...n,
|
|
4197
|
+
kind: _.AD_INTERACTION_BANNER_NAVIGATED,
|
|
4198
|
+
topicId: e,
|
|
4199
|
+
parentTopicId: r,
|
|
4200
|
+
topicType: V.EXPOSED_PAUSED_AD
|
|
4177
4201
|
},
|
|
4178
4202
|
pollOpenedFrom: Q.UNSET
|
|
4179
4203
|
});
|
|
@@ -4186,7 +4210,7 @@ class va {
|
|
|
4186
4210
|
kind: n ? _.EXTERNAL_AD_LOADED : _.EXTERNAL_AD_REQUESTED,
|
|
4187
4211
|
topicId: e,
|
|
4188
4212
|
parentTopicId: r,
|
|
4189
|
-
topicType:
|
|
4213
|
+
topicType: V.EXPOSED_PAUSED_AD
|
|
4190
4214
|
},
|
|
4191
4215
|
pollOpenedFrom: Q.UNSET
|
|
4192
4216
|
});
|
|
@@ -4197,7 +4221,7 @@ class va {
|
|
|
4197
4221
|
...this.analytics.commonStore.getValues(),
|
|
4198
4222
|
kind: _.POLLS_RECEIVED,
|
|
4199
4223
|
topicId: e,
|
|
4200
|
-
topicType:
|
|
4224
|
+
topicType: V.POLLS_PROMOTION,
|
|
4201
4225
|
topicSubType: r
|
|
4202
4226
|
},
|
|
4203
4227
|
pollOpenedFrom: Q.UNSET
|
|
@@ -4209,7 +4233,7 @@ class va {
|
|
|
4209
4233
|
...this.analytics.commonStore.getValues(),
|
|
4210
4234
|
kind: _.POLLS_OPENED,
|
|
4211
4235
|
topicId: e,
|
|
4212
|
-
topicType:
|
|
4236
|
+
topicType: V.POLLS_PROMOTION,
|
|
4213
4237
|
topicSubType: n
|
|
4214
4238
|
},
|
|
4215
4239
|
pollOpenedFrom: r === "notification" ? Q.IN_APP : Q.UNSET
|
|
@@ -4224,7 +4248,7 @@ class va {
|
|
|
4224
4248
|
...this.analytics.commonStore.getValues(),
|
|
4225
4249
|
topicId: e,
|
|
4226
4250
|
kind: n ? _.AD_VIDEO_MUTED : _.AD_VIDEO_UNMUTED,
|
|
4227
|
-
topicType:
|
|
4251
|
+
topicType: V.POLLS_PROMOTION,
|
|
4228
4252
|
topicSubType: r
|
|
4229
4253
|
},
|
|
4230
4254
|
pollOpenedFrom: Q.UNSET
|
|
@@ -4236,7 +4260,7 @@ class va {
|
|
|
4236
4260
|
...this.analytics.commonStore.getValues(),
|
|
4237
4261
|
topicId: e,
|
|
4238
4262
|
kind: ba[r],
|
|
4239
|
-
topicType:
|
|
4263
|
+
topicType: V.POLLS_PROMOTION,
|
|
4240
4264
|
topicSubType: n
|
|
4241
4265
|
},
|
|
4242
4266
|
pollOpenedFrom: Q.UNSET
|
|
@@ -4248,7 +4272,7 @@ class va {
|
|
|
4248
4272
|
...this.analytics.commonStore.getValues(),
|
|
4249
4273
|
topicId: e,
|
|
4250
4274
|
kind: _.AD_VIDEO_REPLAYED,
|
|
4251
|
-
topicType:
|
|
4275
|
+
topicType: V.POLLS_PROMOTION,
|
|
4252
4276
|
topicSubType: r
|
|
4253
4277
|
},
|
|
4254
4278
|
pollOpenedFrom: Q.UNSET
|
|
@@ -4260,7 +4284,7 @@ class va {
|
|
|
4260
4284
|
...this.analytics.commonStore.getValues(),
|
|
4261
4285
|
topicId: e,
|
|
4262
4286
|
kind: _.AD_VIDEO_PLAYED,
|
|
4263
|
-
topicType:
|
|
4287
|
+
topicType: V.POLLS_PROMOTION,
|
|
4264
4288
|
topicSubType: r
|
|
4265
4289
|
},
|
|
4266
4290
|
pollOpenedFrom: Q.UNSET
|
|
@@ -4272,7 +4296,7 @@ class va {
|
|
|
4272
4296
|
...this.analytics.commonStore.getValues(),
|
|
4273
4297
|
topicId: e,
|
|
4274
4298
|
kind: _.AD_VIDEO_COMPLETE,
|
|
4275
|
-
topicType:
|
|
4299
|
+
topicType: V.POLLS_PROMOTION,
|
|
4276
4300
|
topicSubType: r
|
|
4277
4301
|
},
|
|
4278
4302
|
pollOpenedFrom: Q.UNSET
|
|
@@ -4284,7 +4308,7 @@ class va {
|
|
|
4284
4308
|
...this.analytics.commonStore.getValues(),
|
|
4285
4309
|
topicId: e,
|
|
4286
4310
|
kind: _.AD_VIDEO_RENDERED,
|
|
4287
|
-
topicType:
|
|
4311
|
+
topicType: V.POLLS_PROMOTION,
|
|
4288
4312
|
topicSubType: r
|
|
4289
4313
|
},
|
|
4290
4314
|
pollOpenedFrom: Q.UNSET
|
|
@@ -4296,7 +4320,7 @@ class va {
|
|
|
4296
4320
|
...this.analytics.commonStore.getValues(),
|
|
4297
4321
|
topicId: e,
|
|
4298
4322
|
kind: _.AD_INTERACTION_BUTTON_NAVIGATED,
|
|
4299
|
-
topicType:
|
|
4323
|
+
topicType: V.POLLS_PROMOTION,
|
|
4300
4324
|
topicSubType: r
|
|
4301
4325
|
},
|
|
4302
4326
|
pollOpenedFrom: Q.UNSET
|
|
@@ -4308,7 +4332,7 @@ class va {
|
|
|
4308
4332
|
...this.analytics.commonStore.getValues(),
|
|
4309
4333
|
topicId: e,
|
|
4310
4334
|
kind: _.AD_INTERACTION_BANNER_NAVIGATED,
|
|
4311
|
-
topicType:
|
|
4335
|
+
topicType: V.POLLS_PROMOTION,
|
|
4312
4336
|
topicSubType: r
|
|
4313
4337
|
},
|
|
4314
4338
|
pollOpenedFrom: Q.UNSET
|
|
@@ -4320,7 +4344,7 @@ class va {
|
|
|
4320
4344
|
...this.analytics.commonStore.getValues(),
|
|
4321
4345
|
topicId: e,
|
|
4322
4346
|
kind: _.AD_BANNER_SHOWN,
|
|
4323
|
-
topicType:
|
|
4347
|
+
topicType: V.POLLS_PROMOTION,
|
|
4324
4348
|
topicSubType: r
|
|
4325
4349
|
},
|
|
4326
4350
|
pollOpenedFrom: Q.UNSET
|
|
@@ -4328,13 +4352,13 @@ class va {
|
|
|
4328
4352
|
};
|
|
4329
4353
|
}
|
|
4330
4354
|
const ut = {
|
|
4331
|
-
[N.UNSET]:
|
|
4332
|
-
[N.FACTOID]:
|
|
4333
|
-
[N.POLL]:
|
|
4334
|
-
[N.PREDICTION]:
|
|
4335
|
-
[N.PROMOTION]:
|
|
4336
|
-
[N.TRIVIA]:
|
|
4337
|
-
[N.TWEET]:
|
|
4355
|
+
[N.UNSET]: V.UNSET,
|
|
4356
|
+
[N.FACTOID]: V.POLLS_INSIGHT,
|
|
4357
|
+
[N.POLL]: V.POLLS_POLL,
|
|
4358
|
+
[N.PREDICTION]: V.POLLS_PREDICTION,
|
|
4359
|
+
[N.PROMOTION]: V.POLLS_PROMOTION,
|
|
4360
|
+
[N.TRIVIA]: V.POLLS_TRIVIA,
|
|
4361
|
+
[N.TWEET]: V.POLLS_TWITTER
|
|
4338
4362
|
};
|
|
4339
4363
|
N.UNSET + "", ve.UNSET, N.FACTOID + "", ve.POLLS, N.POLL + "", ve.POLLS, N.PREDICTION + "", ve.POLLS, N.PROMOTION + "", ve.POLLS, N.TRIVIA + "", ve.POLLS, N.TWEET + "", ve.POLLS;
|
|
4340
4364
|
const Aa = {
|
|
@@ -4398,7 +4422,7 @@ class Sa {
|
|
|
4398
4422
|
...this.analytics.commonStore.getValues(),
|
|
4399
4423
|
kind: _.NOTIFICATION_RECEIVED,
|
|
4400
4424
|
topicId: e,
|
|
4401
|
-
topicType: r ? ut[r] :
|
|
4425
|
+
topicType: r ? ut[r] : V.UNSET,
|
|
4402
4426
|
topicSubType: n
|
|
4403
4427
|
},
|
|
4404
4428
|
notificationKind: ve.POLLS,
|
|
@@ -4411,7 +4435,7 @@ class Sa {
|
|
|
4411
4435
|
...this.analytics.commonStore.getValues(),
|
|
4412
4436
|
kind: _.NOTIFICATION_OPENED,
|
|
4413
4437
|
topicId: e,
|
|
4414
|
-
topicType: r ? ut[r] :
|
|
4438
|
+
topicType: r ? ut[r] : V.UNSET,
|
|
4415
4439
|
topicSubType: n
|
|
4416
4440
|
},
|
|
4417
4441
|
notificationKind: ve.POLLS,
|
|
@@ -4453,7 +4477,7 @@ class wa {
|
|
|
4453
4477
|
...this.analytics.commonStore.getValues(),
|
|
4454
4478
|
kind: _.POLLS_RECEIVED,
|
|
4455
4479
|
topicId: e,
|
|
4456
|
-
topicType: r ? ut[r] :
|
|
4480
|
+
topicType: r ? ut[r] : V.UNSET
|
|
4457
4481
|
},
|
|
4458
4482
|
pollOpenedFrom: Q.UNSET
|
|
4459
4483
|
});
|
|
@@ -4465,7 +4489,7 @@ class wa {
|
|
|
4465
4489
|
...this.analytics.commonStore.getValues(),
|
|
4466
4490
|
kind: i ? _.POLLS_AD_OPENED : _.POLLS_OPENED,
|
|
4467
4491
|
topicId: e,
|
|
4468
|
-
topicType: r ? ut[r] :
|
|
4492
|
+
topicType: r ? ut[r] : V.UNSET
|
|
4469
4493
|
},
|
|
4470
4494
|
pollOpenedFrom: n === "list" ? Q.PICK_HISTORY : Q.IN_APP
|
|
4471
4495
|
});
|
|
@@ -4477,7 +4501,7 @@ class wa {
|
|
|
4477
4501
|
...this.analytics.commonStore.getValues(),
|
|
4478
4502
|
kind: n ? _.POLLS_AD_VOTE : _.POLLS_VOTE,
|
|
4479
4503
|
topicId: e,
|
|
4480
|
-
topicType: r ? ut[r] :
|
|
4504
|
+
topicType: r ? ut[r] : V.UNSET
|
|
4481
4505
|
},
|
|
4482
4506
|
pollOpenedFrom: Q.UNSET
|
|
4483
4507
|
});
|
|
@@ -4591,7 +4615,7 @@ class Ta {
|
|
|
4591
4615
|
return;
|
|
4592
4616
|
const i = n.slEventBus?.action;
|
|
4593
4617
|
n.slEventBus?.type === "exposedPauseAd" && ((i === "disabled" || i === "closed") && setTimeout(() => {
|
|
4594
|
-
this.writeCommon("overlaySessionId", ""), this.writeCommon("topicId", ""), this.writeCommon("parentTopicId", ""), this.writeCommon("topicType",
|
|
4618
|
+
this.writeCommon("overlaySessionId", ""), this.writeCommon("topicId", ""), this.writeCommon("parentTopicId", ""), this.writeCommon("topicType", V.UNSET), this.writeCommon("category", z.UNSET);
|
|
4595
4619
|
}, 200), i === "enabled" && (this.writeCommon("overlaySessionId", Ke()), this.writeCommon("category", z.EXPOSED_PAUSED_AD))), n.slEventBus?.type === "advertisement" && (i === "opened" && this.writeCommon("overlaySessionId", Ke()), i === "closed" && this.writeCommon("overlaySessionId", ""));
|
|
4596
4620
|
};
|
|
4597
4621
|
return B.listen(r);
|
|
@@ -5025,18 +5049,18 @@ var Di = Ur.exports, jt = {}, Fi = {}, Ui = function() {
|
|
|
5025
5049
|
return xa() && !!Symbol.toStringTag;
|
|
5026
5050
|
}, Ba = Error, Ma = EvalError, $a = RangeError, qa = ReferenceError, Vi = SyntaxError, Qt = TypeError, ja = URIError, _n = typeof Symbol < "u" && Symbol, Ga = Ui, Qa = function() {
|
|
5027
5051
|
return typeof _n != "function" || typeof Symbol != "function" || typeof _n("foo") != "symbol" || typeof Symbol("bar") != "symbol" ? !1 : Ga();
|
|
5028
|
-
},
|
|
5052
|
+
}, Xt = {
|
|
5029
5053
|
__proto__: null,
|
|
5030
5054
|
foo: {}
|
|
5031
5055
|
}, Wa = Object, Ha = function() {
|
|
5032
|
-
return { __proto__:
|
|
5033
|
-
}, Ka = "Function.prototype.bind called on incompatible ", za = Object.prototype.toString, Ya = Math.max,
|
|
5056
|
+
return { __proto__: Xt }.foo === Xt.foo && !(Xt instanceof Wa);
|
|
5057
|
+
}, Ka = "Function.prototype.bind called on incompatible ", za = Object.prototype.toString, Ya = Math.max, Xa = "[object Function]", Dn = function(e, r) {
|
|
5034
5058
|
for (var n = [], i = 0; i < e.length; i += 1)
|
|
5035
5059
|
n[i] = e[i];
|
|
5036
5060
|
for (var s = 0; s < r.length; s += 1)
|
|
5037
5061
|
n[s + e.length] = r[s];
|
|
5038
5062
|
return n;
|
|
5039
|
-
},
|
|
5063
|
+
}, Ja = function(e, r) {
|
|
5040
5064
|
for (var n = [], i = r, s = 0; i < e.length; i += 1, s += 1)
|
|
5041
5065
|
n[s] = e[i];
|
|
5042
5066
|
return n;
|
|
@@ -5046,9 +5070,9 @@ var Di = Ur.exports, jt = {}, Fi = {}, Ui = function() {
|
|
|
5046
5070
|
return r;
|
|
5047
5071
|
}, eu = function(e) {
|
|
5048
5072
|
var r = this;
|
|
5049
|
-
if (typeof r != "function" || za.apply(r) !==
|
|
5073
|
+
if (typeof r != "function" || za.apply(r) !== Xa)
|
|
5050
5074
|
throw new TypeError(Ka + r);
|
|
5051
|
-
for (var n =
|
|
5075
|
+
for (var n = Ja(arguments, 1), i, s = function() {
|
|
5052
5076
|
if (this instanceof i) {
|
|
5053
5077
|
var l = r.apply(
|
|
5054
5078
|
this,
|
|
@@ -5068,7 +5092,7 @@ var Di = Ur.exports, jt = {}, Fi = {}, Ui = function() {
|
|
|
5068
5092
|
c.prototype = r.prototype, i.prototype = new c(), c.prototype = null;
|
|
5069
5093
|
}
|
|
5070
5094
|
return i;
|
|
5071
|
-
}, tu = eu, Vr = Function.prototype.bind || tu, ru = Function.prototype.call, nu = Object.prototype.hasOwnProperty, iu = Vr, su = iu.call(ru, nu), R, ou = Ba, au = Ma, uu = $a, cu = qa, rt = Vi, et = Qt, lu = ja, xi = Function,
|
|
5095
|
+
}, tu = eu, Vr = Function.prototype.bind || tu, ru = Function.prototype.call, nu = Object.prototype.hasOwnProperty, iu = Vr, su = iu.call(ru, nu), R, ou = Ba, au = Ma, uu = $a, cu = qa, rt = Vi, et = Qt, lu = ja, xi = Function, Jt = function(t) {
|
|
5072
5096
|
try {
|
|
5073
5097
|
return xi('"use strict"; return (' + t + ").constructor;")();
|
|
5074
5098
|
} catch {
|
|
@@ -5174,11 +5198,11 @@ if (Y)
|
|
|
5174
5198
|
var mu = function t(e) {
|
|
5175
5199
|
var r;
|
|
5176
5200
|
if (e === "%AsyncFunction%")
|
|
5177
|
-
r =
|
|
5201
|
+
r = Jt("async function () {}");
|
|
5178
5202
|
else if (e === "%GeneratorFunction%")
|
|
5179
|
-
r =
|
|
5203
|
+
r = Jt("function* () {}");
|
|
5180
5204
|
else if (e === "%AsyncGeneratorFunction%")
|
|
5181
|
-
r =
|
|
5205
|
+
r = Jt("async function* () {}");
|
|
5182
5206
|
else if (e === "%AsyncGenerator%") {
|
|
5183
5207
|
var n = t("%AsyncGeneratorFunction%");
|
|
5184
5208
|
n && (r = n.prototype);
|
|
@@ -5425,21 +5449,21 @@ var Fu = Du ? Ht : ji, Uu = Object.prototype.toString, Vu = Function.prototype.t
|
|
|
5425
5449
|
rr = n ? tr(n) : !1;
|
|
5426
5450
|
}
|
|
5427
5451
|
return tr(e) === rr;
|
|
5428
|
-
}, Qi = Function.prototype.toString,
|
|
5429
|
-
if (typeof
|
|
5452
|
+
}, Qi = Function.prototype.toString, Xe = typeof Reflect == "object" && Reflect !== null && Reflect.apply, wr, Nt;
|
|
5453
|
+
if (typeof Xe == "function" && typeof Object.defineProperty == "function")
|
|
5430
5454
|
try {
|
|
5431
5455
|
wr = Object.defineProperty({}, "length", {
|
|
5432
5456
|
get: function() {
|
|
5433
5457
|
throw Nt;
|
|
5434
5458
|
}
|
|
5435
|
-
}), Nt = {},
|
|
5459
|
+
}), Nt = {}, Xe(function() {
|
|
5436
5460
|
throw 42;
|
|
5437
5461
|
}, null, wr);
|
|
5438
5462
|
} catch (t) {
|
|
5439
|
-
t !== Nt && (
|
|
5463
|
+
t !== Nt && (Xe = null);
|
|
5440
5464
|
}
|
|
5441
5465
|
else
|
|
5442
|
-
|
|
5466
|
+
Xe = null;
|
|
5443
5467
|
var $u = /^\s*class\b/, Er = function(e) {
|
|
5444
5468
|
try {
|
|
5445
5469
|
var r = Qi.call(e);
|
|
@@ -5468,13 +5492,13 @@ if (typeof document == "object") {
|
|
|
5468
5492
|
return !1;
|
|
5469
5493
|
});
|
|
5470
5494
|
}
|
|
5471
|
-
var
|
|
5495
|
+
var Xu = Xe ? function(e) {
|
|
5472
5496
|
if (Tr(e))
|
|
5473
5497
|
return !0;
|
|
5474
5498
|
if (!e || typeof e != "function" && typeof e != "object")
|
|
5475
5499
|
return !1;
|
|
5476
5500
|
try {
|
|
5477
|
-
|
|
5501
|
+
Xe(e, null, wr);
|
|
5478
5502
|
} catch (r) {
|
|
5479
5503
|
if (r !== Nt)
|
|
5480
5504
|
return !1;
|
|
@@ -5491,7 +5515,7 @@ var Ju = Je ? function(e) {
|
|
|
5491
5515
|
return !1;
|
|
5492
5516
|
var r = Lt.call(e);
|
|
5493
5517
|
return r !== ju && r !== Gu && !/^\[object HTML/.test(r) ? !1 : nr(e);
|
|
5494
|
-
},
|
|
5518
|
+
}, Ju = Xu, Zu = Object.prototype.toString, Wi = Object.prototype.hasOwnProperty, ec = function(e, r, n) {
|
|
5495
5519
|
for (var i = 0, s = e.length; i < s; i++)
|
|
5496
5520
|
Wi.call(e, i) && (n == null ? r(e[i], i, e) : r.call(n, e[i], i, e));
|
|
5497
5521
|
}, tc = function(e, r, n) {
|
|
@@ -5501,7 +5525,7 @@ var Ju = Je ? function(e) {
|
|
|
5501
5525
|
for (var i in e)
|
|
5502
5526
|
Wi.call(e, i) && (n == null ? r(e[i], i, e) : r.call(n, e[i], i, e));
|
|
5503
5527
|
}, nc = function(e, r, n) {
|
|
5504
|
-
if (!
|
|
5528
|
+
if (!Ju(r))
|
|
5505
5529
|
throw new TypeError("iterator must be a function");
|
|
5506
5530
|
var i;
|
|
5507
5531
|
arguments.length >= 3 && (i = n), Zu.call(e) === "[object Array]" ? ec(e, r, i) : typeof e == "string" ? tc(e, r, i) : rc(e, r, i);
|
|
@@ -5758,10 +5782,10 @@ var mc = function(e) {
|
|
|
5758
5782
|
return typeof A > "u" ? !1 : (typeof O.working > "u" && (O.working = O(new A())), O.working ? O(v) : v instanceof A);
|
|
5759
5783
|
}
|
|
5760
5784
|
t.isSharedArrayBuffer = U;
|
|
5761
|
-
function
|
|
5785
|
+
function x(v) {
|
|
5762
5786
|
return u(v) === "[object AsyncFunction]";
|
|
5763
5787
|
}
|
|
5764
|
-
t.isAsyncFunction =
|
|
5788
|
+
t.isAsyncFunction = x;
|
|
5765
5789
|
function C(v) {
|
|
5766
5790
|
return u(v) === "[object Map Iterator]";
|
|
5767
5791
|
}
|
|
@@ -5847,7 +5871,7 @@ var Sc = kr.exports;
|
|
|
5847
5871
|
y.push(o(arguments[A]));
|
|
5848
5872
|
return y.join(" ");
|
|
5849
5873
|
}
|
|
5850
|
-
for (var A = 1, O = arguments, U = O.length,
|
|
5874
|
+
for (var A = 1, O = arguments, U = O.length, x = String(h).replace(r, function(D) {
|
|
5851
5875
|
if (D === "%%") return "%";
|
|
5852
5876
|
if (A >= U) return D;
|
|
5853
5877
|
switch (D) {
|
|
@@ -5865,8 +5889,8 @@ var Sc = kr.exports;
|
|
|
5865
5889
|
return D;
|
|
5866
5890
|
}
|
|
5867
5891
|
}), C = O[A]; A < U; C = O[++A])
|
|
5868
|
-
S(C) || !de(C) ?
|
|
5869
|
-
return
|
|
5892
|
+
S(C) || !de(C) ? x += " " + C : x += " " + o(C);
|
|
5893
|
+
return x;
|
|
5870
5894
|
}, t.deprecate = function(h, y) {
|
|
5871
5895
|
if (typeof k < "u" && k.noDeprecation === !0)
|
|
5872
5896
|
return h;
|
|
@@ -5958,10 +5982,10 @@ var Sc = kr.exports;
|
|
|
5958
5982
|
var U = d(h, y);
|
|
5959
5983
|
if (U)
|
|
5960
5984
|
return U;
|
|
5961
|
-
var
|
|
5962
|
-
if (h.showHidden && (
|
|
5985
|
+
var x = Object.keys(y), C = c(x);
|
|
5986
|
+
if (h.showHidden && (x = Object.getOwnPropertyNames(y)), Ce(y) && (x.indexOf("message") >= 0 || x.indexOf("description") >= 0))
|
|
5963
5987
|
return p(y);
|
|
5964
|
-
if (
|
|
5988
|
+
if (x.length === 0) {
|
|
5965
5989
|
if (ge(y)) {
|
|
5966
5990
|
var D = y.name ? ": " + y.name : "";
|
|
5967
5991
|
return h.stylize("[Function" + D + "]", "special");
|
|
@@ -5978,13 +6002,13 @@ var Sc = kr.exports;
|
|
|
5978
6002
|
var yt = y.name ? ": " + y.name : "";
|
|
5979
6003
|
$ = " [Function" + yt + "]";
|
|
5980
6004
|
}
|
|
5981
|
-
if (le(y) && ($ = " " + RegExp.prototype.toString.call(y)), xe(y) && ($ = " " + Date.prototype.toUTCString.call(y)), Ce(y) && ($ = " " + p(y)),
|
|
6005
|
+
if (le(y) && ($ = " " + RegExp.prototype.toString.call(y)), xe(y) && ($ = " " + Date.prototype.toUTCString.call(y)), Ce(y) && ($ = " " + p(y)), x.length === 0 && (!ee || y.length == 0))
|
|
5982
6006
|
return Re[0] + $ + Re[1];
|
|
5983
6007
|
if (A < 0)
|
|
5984
6008
|
return le(y) ? h.stylize(RegExp.prototype.toString.call(y), "regexp") : h.stylize("[Object]", "special");
|
|
5985
6009
|
h.seen.push(y);
|
|
5986
6010
|
var qe;
|
|
5987
|
-
return ee ? qe = m(h, y, A, C,
|
|
6011
|
+
return ee ? qe = m(h, y, A, C, x) : qe = x.map(function(bt) {
|
|
5988
6012
|
return b(h, y, A, C, bt, ee);
|
|
5989
6013
|
}), h.seen.pop(), g(qe, $, Re);
|
|
5990
6014
|
}
|
|
@@ -6006,17 +6030,17 @@ var Sc = kr.exports;
|
|
|
6006
6030
|
return "[" + Error.prototype.toString.call(h) + "]";
|
|
6007
6031
|
}
|
|
6008
6032
|
function m(h, y, A, O, U) {
|
|
6009
|
-
for (var
|
|
6010
|
-
Me(y, String(C)) ?
|
|
6033
|
+
for (var x = [], C = 0, D = y.length; C < D; ++C)
|
|
6034
|
+
Me(y, String(C)) ? x.push(b(
|
|
6011
6035
|
h,
|
|
6012
6036
|
y,
|
|
6013
6037
|
A,
|
|
6014
6038
|
O,
|
|
6015
6039
|
String(C),
|
|
6016
6040
|
!0
|
|
6017
|
-
)) :
|
|
6041
|
+
)) : x.push("");
|
|
6018
6042
|
return U.forEach(function($) {
|
|
6019
|
-
$.match(/^\d+$/) ||
|
|
6043
|
+
$.match(/^\d+$/) || x.push(b(
|
|
6020
6044
|
h,
|
|
6021
6045
|
y,
|
|
6022
6046
|
A,
|
|
@@ -6024,12 +6048,12 @@ var Sc = kr.exports;
|
|
|
6024
6048
|
$,
|
|
6025
6049
|
!0
|
|
6026
6050
|
));
|
|
6027
|
-
}),
|
|
6051
|
+
}), x;
|
|
6028
6052
|
}
|
|
6029
|
-
function b(h, y, A, O, U,
|
|
6053
|
+
function b(h, y, A, O, U, x) {
|
|
6030
6054
|
var C, D, $;
|
|
6031
6055
|
if ($ = Object.getOwnPropertyDescriptor(y, U) || { value: y[U] }, $.get ? $.set ? D = h.stylize("[Getter/Setter]", "special") : D = h.stylize("[Getter]", "special") : $.set && (D = h.stylize("[Setter]", "special")), Me(O, U) || (C = "[" + U + "]"), D || (h.seen.indexOf($.value) < 0 ? (S(A) ? D = l(h, $.value, null) : D = l(h, $.value, A - 1), D.indexOf(`
|
|
6032
|
-
`) > -1 && (
|
|
6056
|
+
`) > -1 && (x ? D = D.split(`
|
|
6033
6057
|
`).map(function(ee) {
|
|
6034
6058
|
return " " + ee;
|
|
6035
6059
|
}).join(`
|
|
@@ -6039,16 +6063,16 @@ var Sc = kr.exports;
|
|
|
6039
6063
|
return " " + ee;
|
|
6040
6064
|
}).join(`
|
|
6041
6065
|
`))) : D = h.stylize("[Circular]", "special")), P(C)) {
|
|
6042
|
-
if (
|
|
6066
|
+
if (x && U.match(/^\d+$/))
|
|
6043
6067
|
return D;
|
|
6044
6068
|
C = JSON.stringify("" + U), C.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/) ? (C = C.slice(1, -1), C = h.stylize(C, "name")) : (C = C.replace(/'/g, "\\'").replace(/\\"/g, '"').replace(/(^"|"$)/g, "'"), C = h.stylize(C, "string"));
|
|
6045
6069
|
}
|
|
6046
6070
|
return C + ": " + D;
|
|
6047
6071
|
}
|
|
6048
6072
|
function g(h, y, A) {
|
|
6049
|
-
var O = h.reduce(function(U,
|
|
6050
|
-
return
|
|
6051
|
-
`) >= 0, U +
|
|
6073
|
+
var O = h.reduce(function(U, x) {
|
|
6074
|
+
return x.indexOf(`
|
|
6075
|
+
`) >= 0, U + x.replace(/\u001b\[\d\d?m/g, "").length + 1;
|
|
6052
6076
|
}, 0);
|
|
6053
6077
|
return O > 60 ? A[0] + (y === "" ? "" : y + `
|
|
6054
6078
|
`) + " " + h.join(`,
|
|
@@ -6167,7 +6191,7 @@ var Sc = kr.exports;
|
|
|
6167
6191
|
}), A;
|
|
6168
6192
|
}
|
|
6169
6193
|
function A() {
|
|
6170
|
-
for (var O, U,
|
|
6194
|
+
for (var O, U, x = new Promise(function($, ee) {
|
|
6171
6195
|
O = $, U = ee;
|
|
6172
6196
|
}), C = [], D = 0; D < arguments.length; D++)
|
|
6173
6197
|
C.push(arguments[D]);
|
|
@@ -6179,7 +6203,7 @@ var Sc = kr.exports;
|
|
|
6179
6203
|
} catch ($) {
|
|
6180
6204
|
U($);
|
|
6181
6205
|
}
|
|
6182
|
-
return
|
|
6206
|
+
return x;
|
|
6183
6207
|
}
|
|
6184
6208
|
return Object.setPrototypeOf(A, Object.getPrototypeOf(y)), ye && Object.defineProperty(A, ye, {
|
|
6185
6209
|
value: A,
|
|
@@ -6207,8 +6231,8 @@ var Sc = kr.exports;
|
|
|
6207
6231
|
var U = A.pop();
|
|
6208
6232
|
if (typeof U != "function")
|
|
6209
6233
|
throw new TypeError("The last argument must be of type Function");
|
|
6210
|
-
var
|
|
6211
|
-
return U.apply(
|
|
6234
|
+
var x = this, C = function() {
|
|
6235
|
+
return U.apply(x, arguments);
|
|
6212
6236
|
};
|
|
6213
6237
|
h.apply(this, A).then(
|
|
6214
6238
|
function(D) {
|
|
@@ -6239,7 +6263,7 @@ function Pe(t, e, r = Error) {
|
|
|
6239
6263
|
return `${this.name} [${this.code}]: ${this.message}`;
|
|
6240
6264
|
}, wc(n, r), n;
|
|
6241
6265
|
}
|
|
6242
|
-
var
|
|
6266
|
+
var Xi = {
|
|
6243
6267
|
createError: Pe,
|
|
6244
6268
|
AVV_ERR_EXPOSE_ALREADY_DEFINED: Pe(
|
|
6245
6269
|
"AVV_ERR_EXPOSE_ALREADY_DEFINED",
|
|
@@ -6345,10 +6369,10 @@ let Ic = class {
|
|
|
6345
6369
|
return Tc(r);
|
|
6346
6370
|
}
|
|
6347
6371
|
};
|
|
6348
|
-
var Oc = Ic, Qr = { exports: {} }, Nr = { exports: {} }, cr,
|
|
6372
|
+
var Oc = Ic, Qr = { exports: {} }, Nr = { exports: {} }, cr, Xn;
|
|
6349
6373
|
function kc() {
|
|
6350
|
-
if (
|
|
6351
|
-
|
|
6374
|
+
if (Xn) return cr;
|
|
6375
|
+
Xn = 1;
|
|
6352
6376
|
var t = 1e3, e = t * 60, r = e * 60, n = r * 24, i = n * 7, s = n * 365.25;
|
|
6353
6377
|
cr = function(l, d) {
|
|
6354
6378
|
d = d || {};
|
|
@@ -6653,8 +6677,8 @@ var Lc = Nc;
|
|
|
6653
6677
|
}
|
|
6654
6678
|
};
|
|
6655
6679
|
})(Nr, Nr.exports);
|
|
6656
|
-
var
|
|
6657
|
-
const Cc = Ii, Rc = Di.EventEmitter, Pc = jt.inherits,
|
|
6680
|
+
var Ji = Nr.exports;
|
|
6681
|
+
const Cc = Ii, Rc = Di.EventEmitter, Pc = jt.inherits, X = Ji("avvio"), { AVV_ERR_READY_TIMEOUT: _c } = Xi, lr = Symbol.for("plugin-meta");
|
|
6658
6682
|
function Dc(t, e) {
|
|
6659
6683
|
return t[lr] && t[lr].name ? t[lr].name : typeof e < "u" && typeof e != "function" && e.name ? e.name : t.name ? t.name : t.toString().split(`
|
|
6660
6684
|
`).slice(0, 2).map((r) => r.trim()).join(" -- ");
|
|
@@ -6674,7 +6698,7 @@ st.prototype.exec = function(t, e) {
|
|
|
6674
6698
|
let n = !1;
|
|
6675
6699
|
const i = this.name;
|
|
6676
6700
|
if (this.parent._error && !this.isAfter) {
|
|
6677
|
-
|
|
6701
|
+
X("skipping loading of plugin as parent errored and it is not an after", i), k.nextTick(e);
|
|
6678
6702
|
return;
|
|
6679
6703
|
}
|
|
6680
6704
|
if (this.isAfter)
|
|
@@ -6683,24 +6707,24 @@ st.prototype.exec = function(t, e) {
|
|
|
6683
6707
|
try {
|
|
6684
6708
|
this.server = this.parent.override(t, r, this.opts);
|
|
6685
6709
|
} catch (u) {
|
|
6686
|
-
return
|
|
6710
|
+
return X("override errored", i), e(u);
|
|
6687
6711
|
}
|
|
6688
|
-
this.opts = typeof this.opts == "function" ? this.opts(this.server) : this.opts,
|
|
6712
|
+
this.opts = typeof this.opts == "function" ? this.opts(this.server) : this.opts, X("exec", i);
|
|
6689
6713
|
let s;
|
|
6690
6714
|
const o = (u) => {
|
|
6691
6715
|
if (n) {
|
|
6692
|
-
|
|
6716
|
+
X("loading complete", i);
|
|
6693
6717
|
return;
|
|
6694
6718
|
}
|
|
6695
|
-
this._error = u,
|
|
6719
|
+
this._error = u, X(u ? "exec errored" : "exec completed", i), n = !0, s && clearTimeout(s), e(u);
|
|
6696
6720
|
};
|
|
6697
|
-
this.timeout > 0 && (
|
|
6698
|
-
|
|
6721
|
+
this.timeout > 0 && (X("setting up timeout", i, this.timeout), s = setTimeout(function() {
|
|
6722
|
+
X("timed out", i), s = null;
|
|
6699
6723
|
const u = new _c(i);
|
|
6700
6724
|
u.fn = r, o(u);
|
|
6701
6725
|
}, this.timeout)), this.started = !0, this.emit("start", this.server ? this.server.name : null, this.name, Date.now());
|
|
6702
6726
|
const a = r(this.server, this.opts, o);
|
|
6703
|
-
a && typeof a.then == "function" && (
|
|
6727
|
+
a && typeof a.then == "function" && (X("exec: resolving promise", i), a.then(
|
|
6704
6728
|
() => k.nextTick(o),
|
|
6705
6729
|
(u) => k.nextTick(o, u)
|
|
6706
6730
|
));
|
|
@@ -6710,36 +6734,36 @@ st.prototype.loadedSoFar = function() {
|
|
|
6710
6734
|
return Promise.resolve();
|
|
6711
6735
|
const t = () => {
|
|
6712
6736
|
this.server.after((r, n) => {
|
|
6713
|
-
this._error = r, this.q.pause(), r ? (
|
|
6737
|
+
this._error = r, this.q.pause(), r ? (X("rejecting promise", this.name, r), this._promise.reject(r)) : (X("resolving promise", this.name), this._promise.resolve()), this._promise = null, k.nextTick(n, r);
|
|
6714
6738
|
}), this.q.resume();
|
|
6715
6739
|
};
|
|
6716
6740
|
let e;
|
|
6717
6741
|
return this._promise ? e = Promise.resolve() : (this._promise = Fc(), e = this._promise.promise, this.server ? t() : this.on("start", t)), e;
|
|
6718
6742
|
};
|
|
6719
6743
|
st.prototype.enqueue = function(t, e) {
|
|
6720
|
-
|
|
6744
|
+
X("enqueue", this.name, t.name), this.emit("enqueue", this.server ? this.server.name : null, this.name, Date.now()), this.q.push(t, e);
|
|
6721
6745
|
};
|
|
6722
6746
|
st.prototype.finish = function(t, e) {
|
|
6723
|
-
|
|
6747
|
+
X("finish", this.name, t);
|
|
6724
6748
|
const r = () => {
|
|
6725
|
-
this.loaded || (
|
|
6749
|
+
this.loaded || (X("loaded", this.name), this.emit("loaded", this.server ? this.server.name : null, this.name, Date.now()), this.loaded = !0, e(t));
|
|
6726
6750
|
};
|
|
6727
6751
|
if (t) {
|
|
6728
6752
|
this._promise && (this._promise.reject(t), this._promise = null), r();
|
|
6729
6753
|
return;
|
|
6730
6754
|
}
|
|
6731
6755
|
const n = () => {
|
|
6732
|
-
if (
|
|
6756
|
+
if (X("check", this.name, this.q.length(), this.q.running(), this._promise), this.q.length() === 0 && this.q.running() === 0)
|
|
6733
6757
|
if (this._promise) {
|
|
6734
6758
|
const i = () => {
|
|
6735
|
-
|
|
6759
|
+
X("wrap"), queueMicrotask(n);
|
|
6736
6760
|
};
|
|
6737
6761
|
this._promise.resolve(), this._promise.promise.then(i, i), this._promise = null;
|
|
6738
6762
|
} else
|
|
6739
6763
|
r();
|
|
6740
6764
|
else
|
|
6741
|
-
|
|
6742
|
-
|
|
6765
|
+
X("delayed", this.name), this.q.drain = () => {
|
|
6766
|
+
X("drain", this.name), this.q.drain = Vc, queueMicrotask(n);
|
|
6743
6767
|
};
|
|
6744
6768
|
};
|
|
6745
6769
|
queueMicrotask(n), this.q.resume();
|
|
@@ -6767,13 +6791,13 @@ function Vc() {
|
|
|
6767
6791
|
Qr.exports = st;
|
|
6768
6792
|
Qr.exports.loadPlugin = Wr;
|
|
6769
6793
|
var xc = Qr.exports;
|
|
6770
|
-
const
|
|
6794
|
+
const Jn = Ii, Bc = Di.EventEmitter, Mc = jt.inherits, {
|
|
6771
6795
|
AVV_ERR_EXPOSE_ALREADY_DEFINED: dr,
|
|
6772
6796
|
AVV_ERR_CALLBACK_NOT_FN: ct,
|
|
6773
6797
|
AVV_ERR_PLUGIN_NOT_VALID: $c,
|
|
6774
6798
|
AVV_ERR_ROOT_PLG_BOOTED: qc,
|
|
6775
6799
|
AVV_ERR_READY_TIMEOUT: jc
|
|
6776
|
-
} =
|
|
6800
|
+
} = Xi, Gc = Oc, Lr = xc, nt = Ji("avvio"), Bt = Symbol("kAvvio"), pr = Symbol("kThenifyDoNotWrap");
|
|
6777
6801
|
function Qc(t, e, r) {
|
|
6778
6802
|
const n = e.expose || {}, i = n.use || "use", s = n.after || "after", o = n.ready || "ready", a = n.onClose || "onClose", u = n.close || "close";
|
|
6779
6803
|
if (t[i])
|
|
@@ -6800,14 +6824,14 @@ function Qc(t, e, r) {
|
|
|
6800
6824
|
return c ? (r.close(fr(c, this)), this) : r.close();
|
|
6801
6825
|
};
|
|
6802
6826
|
}
|
|
6803
|
-
function
|
|
6804
|
-
if (typeof t == "function" && arguments.length === 1 && (r = t, e = {}, t = null), typeof e == "function" && (r = e, e = {}), e = e || {}, !(this instanceof
|
|
6805
|
-
const n = new
|
|
6827
|
+
function J(t, e, r) {
|
|
6828
|
+
if (typeof t == "function" && arguments.length === 1 && (r = t, e = {}, t = null), typeof e == "function" && (r = e, e = {}), e = e || {}, !(this instanceof J)) {
|
|
6829
|
+
const n = new J(t, e, r);
|
|
6806
6830
|
return t && Qc(t, e, n), n;
|
|
6807
6831
|
}
|
|
6808
|
-
e.autostart !== !1 && (e.autostart = !0), t = t || this, this._timeout = Number(e.timeout) || 0, this._server = t, this._current = [], this._error = null, this._isOnCloseHandlerKey = Symbol("isOnCloseHandler"), this._lastUsed = null, this.setMaxListeners(0), r && this.once("start", r), this.started = !1, this.booted = !1, this.pluginTree = new Gc(), this._readyQ =
|
|
6832
|
+
e.autostart !== !1 && (e.autostart = !0), t = t || this, this._timeout = Number(e.timeout) || 0, this._server = t, this._current = [], this._error = null, this._isOnCloseHandlerKey = Symbol("isOnCloseHandler"), this._lastUsed = null, this.setMaxListeners(0), r && this.once("start", r), this.started = !1, this.booted = !1, this.pluginTree = new Gc(), this._readyQ = Jn(this, es, 1), this._readyQ.pause(), this._readyQ.drain = () => {
|
|
6809
6833
|
this.emit("start"), this._readyQ.drain = Zn;
|
|
6810
|
-
}, this._closeQ =
|
|
6834
|
+
}, this._closeQ = Jn(this, zc, 1), this._closeQ.pause(), this._closeQ.drain = () => {
|
|
6811
6835
|
this.emit("close"), this._closeQ.drain = Zn;
|
|
6812
6836
|
}, this._doStart = null, this._root = new Lr(this, Wc.bind(this), e, !1, 0), this._root.once("start", (n, i, s) => {
|
|
6813
6837
|
const o = this.pluginTree.start(null, i, s);
|
|
@@ -6832,11 +6856,11 @@ function X(t, e, r) {
|
|
|
6832
6856
|
function Wc(t, e, r) {
|
|
6833
6857
|
this._doStart = r, e.autostart && this.start();
|
|
6834
6858
|
}
|
|
6835
|
-
Mc(
|
|
6836
|
-
|
|
6859
|
+
Mc(J, Bc);
|
|
6860
|
+
J.prototype.start = function() {
|
|
6837
6861
|
return this.started = !0, k.nextTick(this._doStart), this;
|
|
6838
6862
|
};
|
|
6839
|
-
|
|
6863
|
+
J.prototype.override = function(t, e, r) {
|
|
6840
6864
|
return t;
|
|
6841
6865
|
};
|
|
6842
6866
|
function Hc(t) {
|
|
@@ -6844,16 +6868,16 @@ function Hc(t) {
|
|
|
6844
6868
|
throw new $c(typeof t);
|
|
6845
6869
|
return t;
|
|
6846
6870
|
}
|
|
6847
|
-
|
|
6848
|
-
|
|
6871
|
+
J.prototype[Bt] = !0;
|
|
6872
|
+
J.prototype.use = function(t, e) {
|
|
6849
6873
|
return this._lastUsed = this._addPlugin(t, e, !1), this;
|
|
6850
6874
|
};
|
|
6851
|
-
|
|
6875
|
+
J.prototype._loadRegistered = function() {
|
|
6852
6876
|
const t = this._current[0];
|
|
6853
6877
|
return !this.started && !this.booted && k.nextTick(() => this._root.q.resume()), t ? t.loadedSoFar() : Promise.resolve();
|
|
6854
6878
|
};
|
|
6855
|
-
Object.defineProperty(
|
|
6856
|
-
|
|
6879
|
+
Object.defineProperty(J.prototype, "then", { get: Zi });
|
|
6880
|
+
J.prototype._addPlugin = function(t, e, r) {
|
|
6857
6881
|
if (t = Hc(t), e = e || {}, this.booted)
|
|
6858
6882
|
throw new qc();
|
|
6859
6883
|
const n = this._current[0], i = new Lr(this, t, e, r);
|
|
@@ -6868,7 +6892,7 @@ X.prototype._addPlugin = function(t, e, r) {
|
|
|
6868
6892
|
s && (this._error = s);
|
|
6869
6893
|
}), i;
|
|
6870
6894
|
};
|
|
6871
|
-
|
|
6895
|
+
J.prototype.after = function(t) {
|
|
6872
6896
|
if (!t)
|
|
6873
6897
|
return this._loadRegistered();
|
|
6874
6898
|
this._addPlugin(e.bind(this), {}, !0);
|
|
@@ -6877,7 +6901,7 @@ X.prototype.after = function(t) {
|
|
|
6877
6901
|
}
|
|
6878
6902
|
return this;
|
|
6879
6903
|
};
|
|
6880
|
-
|
|
6904
|
+
J.prototype.onClose = function(t) {
|
|
6881
6905
|
if (typeof t != "function")
|
|
6882
6906
|
throw new Error("not a function");
|
|
6883
6907
|
t[this._isOnCloseHandlerKey] = !0, this._closeQ.unshift(t, e.bind(this));
|
|
@@ -6886,7 +6910,7 @@ X.prototype.onClose = function(t) {
|
|
|
6886
6910
|
}
|
|
6887
6911
|
return this;
|
|
6888
6912
|
};
|
|
6889
|
-
|
|
6913
|
+
J.prototype.close = function(t) {
|
|
6890
6914
|
let e;
|
|
6891
6915
|
if (t) {
|
|
6892
6916
|
if (typeof t != "function")
|
|
@@ -6903,7 +6927,7 @@ X.prototype.close = function(t) {
|
|
|
6903
6927
|
this._error = null, this._closeQ.push(t), k.nextTick(this._closeQ.resume.bind(this._closeQ));
|
|
6904
6928
|
}), e;
|
|
6905
6929
|
};
|
|
6906
|
-
|
|
6930
|
+
J.prototype.ready = function(t) {
|
|
6907
6931
|
if (t) {
|
|
6908
6932
|
if (typeof t != "function")
|
|
6909
6933
|
throw new ct("ready", typeof t);
|
|
@@ -6918,10 +6942,10 @@ X.prototype.ready = function(t) {
|
|
|
6918
6942
|
}
|
|
6919
6943
|
});
|
|
6920
6944
|
};
|
|
6921
|
-
|
|
6945
|
+
J.prototype.prettyPrint = function() {
|
|
6922
6946
|
return this.pluginTree.prittyPrint();
|
|
6923
6947
|
};
|
|
6924
|
-
|
|
6948
|
+
J.prototype.toJSON = function() {
|
|
6925
6949
|
return this.pluginTree.toJSON();
|
|
6926
6950
|
};
|
|
6927
6951
|
function Zn() {
|
|
@@ -6997,16 +7021,16 @@ function fr(t, e) {
|
|
|
6997
7021
|
}, i) : k.nextTick(i)) : t.length === 2 ? t(n, i) : t(n, this, i) : k.nextTick(i);
|
|
6998
7022
|
}
|
|
6999
7023
|
}
|
|
7000
|
-
Dr.exports =
|
|
7024
|
+
Dr.exports = J;
|
|
7001
7025
|
Dr.exports.express = function(t) {
|
|
7002
|
-
return
|
|
7026
|
+
return J(t, {
|
|
7003
7027
|
expose: {
|
|
7004
7028
|
use: "load"
|
|
7005
7029
|
}
|
|
7006
7030
|
});
|
|
7007
7031
|
};
|
|
7008
|
-
var
|
|
7009
|
-
const
|
|
7032
|
+
var Xc = Dr.exports;
|
|
7033
|
+
const Jc = /* @__PURE__ */ Oa(Xc);
|
|
7010
7034
|
(function() {
|
|
7011
7035
|
if (window.requestAnimationFrame && window.cancelAnimationFrame)
|
|
7012
7036
|
return;
|
|
@@ -7025,7 +7049,7 @@ const Xc = /* @__PURE__ */ Oa(Jc);
|
|
|
7025
7049
|
}
|
|
7026
7050
|
})();
|
|
7027
7051
|
function Sl(t, e = !0, r = !0, n = { friendsTab: "enabled" }) {
|
|
7028
|
-
const i = e ? "https://grpc-sdk.streamlayer.io:443" : "https://grpc-sdk.next.streamlayer.io:443", s = e ? "https://grpc.streamlayer.io:443" : "https://grpc.next.streamlayer.io:443", o =
|
|
7052
|
+
const i = e ? "https://grpc-sdk.streamlayer.io:443" : "https://grpc-sdk.next.streamlayer.io:443", s = e ? "https://grpc.streamlayer.io:443" : "https://grpc.next.streamlayer.io:443", o = Jc(/* @__PURE__ */ Object.create({}), { autostart: !1 });
|
|
7029
7053
|
return o.use(Ro, {
|
|
7030
7054
|
hideFriends: n.hideFriends,
|
|
7031
7055
|
skipOnboarding: n.skipOnboarding,
|