y: "showNativePopup",
value: function(t) {
var e = fn(this, pn, dn).call(this, t);
return this._platformBridge.leaderboardsShowNativePopup(e)
}
}]) && on(e.prototype, r),
Object.defineProperty(e, "prototype", {
writable: !1
}),
a
}(M);
function vn(t) {
return vn = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(t) {
return typeof t
}
: function(t) {
return t && "function" == typeof Symbol && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t
}
,
vn(t)
}
function _n(t, e) {
for (var r = 0; r < e.length; r++) {
var n = e[r];
n.enumerable = n.enumerable || !1,
n.configurable = !0,
"value"in n && (n.writable = !0),
Object.defineProperty(t, gn(n.key), n)
}
}
function gn(t) {
var e = function(t, e) {
if ("object" != vn(t) || !t)
return t;
var r = t[Symbol.toPrimitive];
if (void 0 !== r) {
var n = r.call(t, "string");
if ("object" != vn(n))
return n;
throw new TypeError("@@toPrimitive must return a primitive value.")
}
return String(t)
}(t);
return "symbol" == vn(e) ? e : String(e)
}
function Sn(t, e) {
return Sn = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(t, e) {
return t.__proto__ = e,
t
}
,
Sn(t, e)
}
function bn(t) {
return bn = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(t) {
return t.__proto__ || Object.getPrototypeOf(t)
}
,
bn(t)
}
const En = 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 && Sn(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 = bn(o);
if (i) {
var r = bn(this).constructor;
t = Reflect.construct(e, arguments, r)
} else
t = e.apply(this, arguments);
return function(t, e) {
if (e && ("object" === vn(e) || "function" == typeof e))
return e;
if (void 0 !== e)
throw new TypeError("Derived constructors may only return object or undefined");
return function(t) {
if (void 0 === t)
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
return t
}(t)
}(this, t)
}
);
function s() {
return function(t, e) {
if (!(t instanceof e))
throw new TypeError("Cannot call a class as a function")
}(this, s),
a.apply(this, arguments)
}
return r = s,
(n = [{
key: "isSupported",
get: function() {
return this._platformBridge.isPaymentsSupported
}
}, {
key: "purchase",
value: function(t, r) {
return dt.send("".concat(e.PAYMENTS, "_purchase_started"), e.PAYMENTS, {
id: t
}),
this._platformBridge.paymentsPurchase(t, r).then((function(r) {
return dt.send("".concat(e.PAYMENTS, "_purchase_completed"), e.PAYMENTS, {
id: t
}),
r
}
)).catch((function(r) {
throw dt.send("".concat(e.PAYMENTS, "_purchase_failed"), e.PAYMENTS, {
id: t
}),
r
}
))
}
}, {
key: "getPurchases",
value: function() {
return dt.send("".concat(e.PAYMENTS, "_get_purchases_started"), e.PAYMENTS),
this._platformBridge.paymentsGetPurchases().then((function(t) {
return dt.send("".concat(e.PAYMENTS, "_get_purchases_completed"), e.PAYMENTS),
t
}
)).catch((function(t) {
throw dt.send("".concat(e.PAYMENTS, "_get_purchases_failed"), e.PAYMENTS),
t
}
))
}
}, {
key: "getCatalog",
value: function() {
return dt.send("".concat(e.PAYMENTS, "_get_catalog_started"), e.PAYMENTS),
this._platformBridg |