var o = null === (t = this._platformBridge.options) || void 0 === t || null === (t = t.advertisement) || void 0 === t || null === (t = t.interstitial) || void 0 === t ? void 0 : t.placements
, i = He(this, sr, _r).call(this, n, o);
this._platformBridge.preloadInterstitial(i)
}
}
}, {
key: "showInterstitial",
value: function() {
var t, e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : null;
if (!He(this, nr, dr).call(this)) {
var r, n = e;
if (n || null !== (r = this._platformBridge.options) && void 0 !== r && null !== (r = r.advertisement) && void 0 !== r && null !== (r = r.interstitial) && void 0 !== r && r.placementFallback && (n = this._platformBridge.options.advertisement.interstitial.placementFallback),
xe(this, Ye, n),
He(this, ir, mr).call(this, i.LOADING),
this.isInterstitialSupported)
if (this._platformBridge.isMinimumDelayBetweenInterstitialEnabled && Fe(this, Je) && Fe(this, Je).state === ge)
He(this, ir, mr).call(this, i.FAILED);
else {
var o = null === (t = this._platformBridge.options) || void 0 === t || null === (t = t.advertisement) || void 0 === t || null === (t = t.interstitial) || void 0 === t ? void 0 : t.placements
, a = He(this, sr, _r).call(this, n, o);
this._platformBridge.showInterstitial(a)
}
else
He(this, ir, mr).call(this, i.FAILED)
}
}
}, {
key: "preloadRewarded",
value: function() {
var t, e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : null;
if (this.isRewardedSupported) {
var r, n = e;
n && "string" == typeof n || null !== (r = this._platformBridge.options) && void 0 !== r && null !== (r = r.advertisement) && void 0 !== r && null !== (r = r.rewarded) && void 0 !== r && r.placementFallback && (n = this._platformBridge.options.advertisement.rewarded.placementFallback);
var o = null === (t = this._platformBridge.options) || void 0 === t || null === (t = t.advertisement) || void 0 === t || null === (t = t.rewarded) || void 0 === t ? void 0 : t.placements
, i = He(this, sr, _r).call(this, n, o);
this._platformBridge.preloadRewarded(i)
}
}
}, {
key: "showRewarded",
value: function() {
var t, e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : null;
if (!He(this, nr, dr).call(this)) {
var r;
xe(this, Xe, e),
Fe(this, Xe) || null !== (r = this._platformBridge.options) && void 0 !== r && null !== (r = r.advertisement) && void 0 !== r && null !== (r = r.rewarded) && void 0 !== r && r.placementFallback && xe(this, Xe, this._platformBridge.options.advertisement.rewarded.placementFallback);
var n = null === (t = this._platformBridge.options) || void 0 === t || null === (t = t.advertisement) || void 0 === t || null === (t = t.rewarded) || void 0 === t ? void 0 : t.placements
, o = He(this, sr, _r).call(this, Fe(this, Xe), n);
He(this, ar, vr).call(this, a.LOADING),
this.isRewardedSupported ? this._platformBridge.showRewarded(o) : He(this, ar, vr).call(this, a.FAILED)
}
}
}, {
key: "checkAdBlock",
value: function() {
return this._platformBridge.checkAdBlock()
}
}],
r && Re(e.prototype, r),
Object.defineProperty(e, "prototype", {
writable: !1
}),
l
}(M);
function ur(t) {
xe(this, Ke, t),
Fe(this, Je) && (Fe(this, Je).stop(),
He(this, rr, hr).call(this))
}
function lr(t) {
if ("number" == typeof t)
return t;
if ("string" == typeof t) {
var e = parseInt(t, 10);
return Number.isNaN(e) ? null : e
}
return null
}
function fr() {
var t = He(this, er, pr).call(this);
if (void 0 !== t) {
var e = He(this, $e, lr).call(this, t);
null !== e && He(this, Qe, ur).call(this, e)
}
}
function pr() {
var t;
return null === (t = this._platformBridge.options) || void 0 === t || null === (t = t.advertisement) || void 0 === t ? void 0 : t.minimumDelayBetweenInterstitial
}
function hr() {
Fe(this, Ke) > 0 && this._platformBridge.isMinimumDelayBetweenInterstitialEnabled && (xe(this, Je, new De(Fe(this, Ke))),
Fe(this, Je).start())
}
function dr() {
var t = [i.LOADING, i.OPENED].includes(Fe(this, Ze))
, e = [a.LOADING, a.OPENED, a.REWARDED].includes(Fe(this, qe));
return t || e
}
function yr(t) {
Fe(this, Ve) !== t && (xe(this, Ve, t),
dt.send("".concat(e.ADVERTISEMENT, "_banner_").concat(t), e.ADVERTISEMENT, {
position: Fe(this, We),
placement: Fe(this, ze)
}),
this.emit(n.BANNER_STATE_CHANGED, Fe(this, Ve)))
}
function mr(t) {
Fe(this, Ze) !== t && (xe(this, Ze, t),
dt.send("".concat(e.ADVERTISEMENT, "_interstitial_").concat(t), e.ADVERTISEMENT, {
placement: Fe(this, Ye)
}),
this.emit(n.INTERSTITIAL_STATE_CHANGED, Fe(this, Ze)))
}
function vr(t) {
|