, l = -1 !== u ? r[u + 1] : null;
if (l)
return q(this, st, pt).call(this, l);
var f = r[0];
if ("string" == typeof f && /^[a-z0-9]{10,}$/i.test(f))
return "Playgama ".concat(f)
}
} catch (t) {
return null
}
return null
}
function pt(t) {
return "string" != typeof t || 0 === t.length ? "" : t.replace(/-/g, " ").replace(/\b\w/g, (function(t) {
return t.toUpperCase()
}
))
}
function ht() {
var t = this;
K(this, et) || X(this, et, setInterval((function() {
t.send("".concat(e.CORE, "_ping"), e.CORE)
}
), 15e3))
}
const dt = new (function(t) {
!function(t, e) {
if ("function" != typeof e && null !== e)
throw new TypeError("Super expression must either be null or a function");
t.prototype = Object.create(e && e.prototype, {
constructor: {
value: t,
writable: !0,
configurable: !0
}
}),
Object.defineProperty(t, "prototype", {
writable: !1
}),
e && V(t, e)
}(s, t);
var r, n, o, i, a = (o = s,
i = function() {
if ("undefined" == typeof Reflect || !Reflect.construct)
return !1;
if (Reflect.construct.sham)
return !1;
if ("function" == typeof Proxy)
return !0;
try {
return Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], (function() {}
))),
!0
} catch (t) {
return !1
}
}(),
function() {
var t, e = z(o);
if (i) {
var r = z(this).constructor;
t = Reflect.construct(e, arguments, r)
} else
t = e.apply(this, arguments);
return function(t, e) {
if (e && ("object" === x(e) || "function" == typeof e))
return e;
if (void 0 !== e)
throw new TypeError("Derived constructors may only return object or undefined");
return W(t)
}(this, t)
}
);
function s() {
var t;
!function(t, e) {
if (!(t instanceof e))
throw new TypeError("Cannot call a class as a function")
}(this, s);
for (var e = arguments.length, r = new Array(e), n = 0; n < e; n++)
r[n] = arguments[n];
return Z(W(t = a.call.apply(a, [this].concat(r))), ct),
Z(W(t), st),
Z(W(t), at),
Z(W(t), it),
Z(W(t), ot),
Y(W(t), $, {
writable: !0,
value: []
}),
Y(W(t), tt, {
writable: !0,
value: null
}),
Y(W(t), et, {
writable: !0,
value: null
}),
Y(W(t), rt, {
writable: !0,
value: null
}),
Y(W(t), nt, {
writable: !0,
value: (new Date).toISOString()
}),
t
}
return r = s,
n = [{
key: "initialize",
value: function(t) {
this._platformBridge = t,
X(this, rt, q(this, it, lt).call(this));
var r = {
event_name: "".concat(e.CORE, "_initialization_started"),
module: e.CORE,
bridge_version: B,
platform_id: this._platformBridge.platformId,
game_id: K(this, rt),
timestamp: K(this, nt),
data: {}
};
return K(this, $).push(r),
q(this, ct, ht).call(this),
this
}
}, {
key: "send",
value: function(t, e) {
var r, n = this, o = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : {};
if (!1 !== (null === (r = this._platformBridge.options) || void 0 === r ? void 0 : r.sendAnalyticsEvents)) {
var i = window.location.href;
if (!(i.startsWith("file://") || i.includes("localhost") || i.includes("127.0.0.1"))) {
var a = {
event_name: t,
module: e,
bridge_version: B,
platform_id: this._platformBridge.platformId,
game_id: K(this, rt),
timestamp: (new Date).toISOString(),
data: o
};
K(this, $).push(a),
K(this, tt) && clearTimeout(K(this, tt)),
X(this, tt, setTimeout((function() {
q(n, ot, ut).call(n)
}
), 3e3))
}
}
}
}],
n && F(r.prototype, n),
Object.defineProperty(r, "prototype", {
writable: !1
}),
s
}(M));
function yt(t) {
return yt = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(t) {
return typeof t
}
: function(t) {
|