waves/public/assets/g/stickman-hook/poki2.js
2025-04-09 17:11:14 -05:00

4592 lines
233 KiB
JavaScript

! function(t) {
var n = {};
function e(i) {
if (n[i]) return n[i].exports;
var r = n[i] = {
i: i,
l: !1,
exports: {}
};
return t[i].call(r.exports, r, r.exports, e), r.l = !0, r.exports
}
e.m = t, e.c = n, e.d = function(t, n, i) {
e.o(t, n) || Object.defineProperty(t, n, {
enumerable: !0,
get: i
})
}, e.r = function(t) {
"undefined" != typeof Symbol && Symbol.toStringTag && Object.defineProperty(t, Symbol.toStringTag, {
value: "Module"
}), Object.defineProperty(t, "__esModule", {
value: !0
})
}, e.t = function(t, n) {
if (1 & n && (t = e(t)), 8 & n) return t;
if (4 & n && "object" == typeof t && t && t.__esModule) return t;
var i = Object.create(null);
if (e.r(i), Object.defineProperty(i, "default", {
enumerable: !0,
value: t
}), 2 & n && "string" != typeof t)
for (var r in t) e.d(i, r, function(n) {
return t[n]
}.bind(null, r));
return i
}, e.n = function(t) {
var n = t && t.__esModule ? function() {
return t.default
} : function() {
return t
};
return e.d(n, "a", n), n
}, e.o = function(t, n) {
return Object.prototype.hasOwnProperty.call(t, n)
}, e.p = "", e(e.s = 110)
}([function(t, n, e) {
(function(n) {
var e = function(t) {
return t && t.Math == Math && t
};
t.exports = e("object" == typeof globalThis && globalThis) || e("object" == typeof window && window) || e("object" == typeof self && self) || e("object" == typeof n && n) || Function("return this")()
}).call(this, e(37))
}, function(t, n, e) {
var i = e(0),
r = e(43),
o = e(3),
a = e(44),
s = e(51),
d = e(80),
c = r("wks"),
u = i.Symbol,
l = d ? u : u && u.withoutSetter || a;
t.exports = function(t) {
return o(c, t) || (s && o(u, t) ? c[t] = u[t] : c[t] = l("Symbol." + t)), c[t]
}
}, function(t, n) {
t.exports = function(t) {
try {
return !!t()
} catch (t) {
return !0
}
}
}, function(t, n) {
var e = {}.hasOwnProperty;
t.exports = function(t, n) {
return e.call(t, n)
}
}, function(t, n, e) {
var i = e(8);
t.exports = function(t) {
if (!i(t)) throw TypeError(String(t) + " is not an object");
return t
}
}, function(t, n, e) {
var i = e(0),
r = e(23).f,
o = e(7),
a = e(12),
s = e(26),
d = e(72),
c = e(48);
t.exports = function(t, n) {
var e, u, l, A, m, f = t.target,
p = t.global,
g = t.stat;
if (e = p ? i : g ? i[f] || s(f, {}) : (i[f] || {}).prototype)
for (u in n) {
if (A = n[u], l = t.noTargetGet ? (m = r(e, u)) && m.value : e[u], !c(p ? u : f + (g ? "." : "#") + u, t.forced) && void 0 !== l) {
if (typeof A == typeof l) continue;
d(A, l)
}(t.sham || l && l.sham) && o(A, "sham", !0), a(e, u, A, t)
}
}
}, function(t, n, e) {
var i = e(2);
t.exports = !i((function() {
return 7 != Object.defineProperty({}, 1, {
get: function() {
return 7
}
})[1]
}))
}, function(t, n, e) {
var i = e(6),
r = e(9),
o = e(19);
t.exports = i ? function(t, n, e) {
return r.f(t, n, o(1, e))
} : function(t, n, e) {
return t[n] = e, t
}
}, function(t, n) {
t.exports = function(t) {
return "object" == typeof t ? null !== t : "function" == typeof t
}
}, function(t, n, e) {
var i = e(6),
r = e(41),
o = e(4),
a = e(40),
s = Object.defineProperty;
n.f = i ? s : function(t, n, e) {
if (o(t), n = a(n, !0), o(e), r) try {
return s(t, n, e)
} catch (t) {}
if ("get" in e || "set" in e) throw TypeError("Accessors not supported");
return "value" in e && (t[n] = e.value), t
}
}, function(t, n, e) {
var i = e(30),
r = e(0),
o = function(t) {
return "function" == typeof t ? t : void 0
};
t.exports = function(t, n) {
return arguments.length < 2 ? o(i[t]) || o(r[t]) : i[t] && i[t][n] || r[t] && r[t][n]
}
}, function(t, n, e) {
(function(e) {
var i, r, o;
! function(e, a) {
if (e) {
var s = {},
d = e.TraceKit,
c = [].slice,
u = /^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/;
s.noConflict = function() {
return e.TraceKit = d, s
}, s.wrap = function(t) {
return function() {
try {
return t.apply(this, arguments)
} catch (t) {
throw s.report(t), t
}
}
}, s.report = function() {
var t, n, i = [],
r = null,
o = null;
function a(t, n, e) {
var r = null;
if (!n || s.collectWindowErrors) {
for (var o in i)
if (l(i, o)) try {
i[o](t, n, e)
} catch (t) {
r = t
}
if (r) throw r
}
}
function d(n, e, i, r, d) {
if (o) s.computeStackTrace.augmentStackTraceWithInitialElement(o, e, i, n), c();
else if (d) a(s.computeStackTrace(d), !0, d);
else {
var l, A = {
url: e,
line: i,
column: r
},
m = n;
if ("[object String]" === {}.toString.call(n)) {
var f = n.match(u);
f && (l = f[1], m = f[2])
}
A.func = s.computeStackTrace.guessFunctionName(A.url, A.line), A.context = s.computeStackTrace.gatherContext(A.url, A.line), a({
name: l,
message: m,
mode: "onerror",
stack: [A]
}, !0, null)
}
return !!t && t.apply(this, arguments)
}
function c() {
var t = o,
n = r;
o = null, r = null, a(t, !1, n)
}
function A(t) {
if (o) {
if (r === t) return;
c()
}
var n = s.computeStackTrace(t);
throw o = n, r = t, setTimeout((function() {
r === t && c()
}), n.incomplete ? 2e3 : 0), t
}
return A.subscribe = function(r) {
! function() {
if (!0 === n) return;
t = e.onerror, e.onerror = d, n = !0
}(), i.push(r)
}, A.unsubscribe = function(r) {
for (var o = i.length - 1; o >= 0; --o) i[o] === r && i.splice(o, 1);
0 === i.length && (e.onerror = t, n = !1)
}, A
}(), s.computeStackTrace = function() {
var t = {};
function n(n) {
if ("string" != typeof n) return [];
if (!l(t, n)) {
var i = "",
r = "";
try {
r = e.document.domain
} catch (t) {}
var o = /(.*)\:\/\/([^:\/]+)([:\d]*)\/{0,1}([\s\S]*)/.exec(n);
o && o[2] === r && (i = function(t) {
if (!s.remoteFetching) return "";
try {
var n = function() {
try {
return new e.XMLHttpRequest
} catch (t) {
return new e.ActiveXObject("Microsoft.XMLHTTP")
}
}();
return n.open("GET", t, !1), n.send(""), n.responseText
} catch (t) {
return ""
}
}(n)), t[n] = i ? i.split("\n") : []
}
return t[n]
}
function i(t, e) {
var i, r = /function ([^(]*)\(([^)]*)\)/,
o = /['"]?([0-9A-Za-z$_]+)['"]?\s*[:=]\s*(function|eval|new Function)/,
a = "",
s = n(t);
if (!s.length) return "?";
for (var d = 0; d < 10; ++d)
if (!A(a = s[e - d] + a)) {
if (i = o.exec(a)) return i[1];
if (i = r.exec(a)) return i[1]
}
return "?"
}
function r(t, e) {
var i = n(t);
if (!i.length) return null;
var r = [],
o = Math.floor(s.linesOfContext / 2),
a = o + s.linesOfContext % 2,
d = Math.max(0, e - o - 1),
c = Math.min(i.length, e + a - 1);
e -= 1;
for (var u = d; u < c; ++u) A(i[u]) || r.push(i[u]);
return r.length > 0 ? r : null
}
function o(t) {
return t.replace(/[\-\[\]{}()*+?.,\\\^$|#]/g, "\\$&")
}
function a(t) {
return o(t).replace("<", "(?:<|&lt;)").replace(">", "(?:>|&gt;)").replace("&", "(?:&|&amp;)").replace('"', '(?:"|&quot;)').replace(/\s+/g, "\\s+")
}
function d(t, e) {
for (var i, r, o = 0, a = e.length; o < a; ++o)
if ((i = n(e[o])).length && (i = i.join("\n"), r = t.exec(i))) return {
url: e[o],
line: i.substring(0, r.index).split("\n").length,
column: r.index - i.lastIndexOf("\n", r.index) - 1
};
return null
}
function c(t, e, i) {
var r, a = n(e),
s = new RegExp("\\b" + o(t) + "\\b");
return i -= 1, a && a.length > i && (r = s.exec(a[i])) ? r.index : null
}
function u(t) {
if (!A(e && e.document)) {
for (var n, i, r, s, c = [e.location.href], u = e.document.getElementsByTagName("script"), l = "" + t, m = 0; m < u.length; ++m) {
var f = u[m];
f.src && c.push(f.src)
}
if (r = /^function(?:\s+([\w$]+))?\s*\(([\w\s,]*)\)\s*\{\s*(\S[\s\S]*\S)\s*\}\s*$/.exec(l)) {
var p = r[1] ? "\\s+" + r[1] : "",
g = r[2].split(",").join("\\s*,\\s*");
n = o(r[3]).replace(/;$/, ";?"), i = new RegExp("function" + p + "\\s*\\(\\s*" + g + "\\s*\\)\\s*{\\s*" + n + "\\s*}")
} else i = new RegExp(o(l).replace(/\s+/g, "\\s+"));
if (s = d(i, c)) return s;
if (r = /^function on([\w$]+)\s*\(event\)\s*\{\s*(\S[\s\S]*\S)\s*\}\s*$/.exec(l)) {
var h = r[1];
if (n = a(r[2]), s = d(i = new RegExp("on" + h + "=[\\'\"]\\s*" + n + "\\s*[\\'\"]", "i"), c[0])) return s;
if (s = d(i = new RegExp(n), c)) return s
}
return null
}
}
function m(t) {
if (!t.stack) return null;
for (var n, e, o, a = /^\s*at (.*?) ?\(((?:file|https?|blob|chrome-extension|native|eval|webpack|<anonymous>|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i, s = /^\s*(.*?)(?:\((.*?)\))?(?:^|@)((?:file|https?|blob|chrome|webpack|resource|\[native).*?|[^@]*bundle)(?::(\d+))?(?::(\d+))?\s*$/i, d = /^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i, u = /(\S+) line (\d+)(?: > eval line \d+)* > eval/i, l = /\((\S*)(?::(\d+))(?::(\d+))\)/, m = t.stack.split("\n"), f = [], p = /^(.*) is undefined$/.exec(t.message), g = 0, h = m.length; g < h; ++g) {
if (e = a.exec(m[g])) {
var w = e[2] && 0 === e[2].indexOf("native");
e[2] && 0 === e[2].indexOf("eval") && (n = l.exec(e[2])) && (e[2] = n[1], e[3] = n[2], e[4] = n[3]), o = {
url: w ? null : e[2],
func: e[1] || "?",
args: w ? [e[2]] : [],
line: e[3] ? +e[3] : null,
column: e[4] ? +e[4] : null
}
} else if (e = d.exec(m[g])) o = {
url: e[2],
func: e[1] || "?",
args: [],
line: +e[3],
column: e[4] ? +e[4] : null
};
else {
if (!(e = s.exec(m[g]))) continue;
e[3] && e[3].indexOf(" > eval") > -1 && (n = u.exec(e[3])) ? (e[3] = n[1], e[4] = n[2], e[5] = null) : 0 !== g || e[5] || A(t.columnNumber) || (f[0].column = t.columnNumber + 1), o = {
url: e[3],
func: e[1] || "?",
args: e[2] ? e[2].split(",") : [],
line: e[4] ? +e[4] : null,
column: e[5] ? +e[5] : null
}
}!o.func && o.line && (o.func = i(o.url, o.line)), o.context = o.line ? r(o.url, o.line) : null, f.push(o)
}
return f.length ? (f[0] && f[0].line && !f[0].column && p && (f[0].column = c(p[1], f[0].url, f[0].line)), {
mode: "stack",
name: t.name,
message: t.message,
stack: f
}) : null
}
function f(t, n, e, o) {
var a = {
url: n,
line: e
};
if (a.url && a.line) {
t.incomplete = !1, a.func || (a.func = i(a.url, a.line)), a.context || (a.context = r(a.url, a.line));
var s = / '([^']+)' /.exec(o);
if (s && (a.column = c(s[1], a.url, a.line)), t.stack.length > 0 && t.stack[0].url === a.url) {
if (t.stack[0].line === a.line) return !1;
if (!t.stack[0].line && t.stack[0].func === a.func) return t.stack[0].line = a.line, t.stack[0].context = a.context, !1
}
return t.stack.unshift(a), t.partial = !0, !0
}
return t.incomplete = !0, !1
}
function p(t, n) {
for (var e, r, o, a = /function\s+([_$a-zA-Z\xA0-\uFFFF][_$a-zA-Z0-9\xA0-\uFFFF]*)?\s*\(/i, d = [], l = {}, A = !1, m = p.caller; m && !A; m = m.caller)
if (m !== g && m !== s.report) {
if (r = {
url: null,
func: "?",
args: [],
line: null,
column: null
}, m.name ? r.func = m.name : (e = a.exec(m.toString())) && (r.func = e[1]), void 0 === r.func) try {
r.func = e.input.substring(0, e.input.indexOf("{"))
} catch (t) {}
if (o = u(m)) {
r.url = o.url, r.line = o.line, "?" === r.func && (r.func = i(r.url, r.line));
var h = / '([^']+)' /.exec(t.message || t.description);
h && (r.column = c(h[1], o.url, o.line))
}
l["" + m] ? A = !0 : l["" + m] = !0, d.push(r)
}
n && d.splice(0, n);
var w = {
mode: "callers",
name: t.name,
message: t.message,
stack: d
};
return f(w, t.sourceURL || t.fileName, t.line || t.lineNumber, t.message || t.description), w
}
function g(t, o) {
var s = null;
o = null == o ? 0 : +o;
try {
if (s = function(t) {
var n = t.stacktrace;
if (n) {
for (var e, o = / line (\d+).*script (?:in )?(\S+)(?:: in function (\S+))?$/i, a = / line (\d+), column (\d+)\s*(?:in (?:<anonymous function: ([^>]+)>|([^\)]+))\((.*)\))? in (.*):\s*$/i, s = n.split("\n"), d = [], c = 0; c < s.length; c += 2) {
var u = null;
if ((e = o.exec(s[c])) ? u = {
url: e[2],
line: +e[1],
column: null,
func: e[3],
args: []
} : (e = a.exec(s[c])) && (u = {
url: e[6],
line: +e[1],
column: +e[2],
func: e[3] || e[4],
args: e[5] ? e[5].split(",") : []
}), u) {
if (!u.func && u.line && (u.func = i(u.url, u.line)), u.line) try {
u.context = r(u.url, u.line)
} catch (t) {}
u.context || (u.context = [s[c + 1]]), d.push(u)
}
}
return d.length ? {
mode: "stacktrace",
name: t.name,
message: t.message,
stack: d
} : null
}
}(t)) return s
} catch (t) {
0
}
try {
if (s = m(t)) return s
} catch (t) {
0
}
try {
if (s = function(t) {
var o = t.message.split("\n");
if (o.length < 4) return null;
var s, c = /^\s*Line (\d+) of linked script ((?:file|https?|blob)\S+)(?:: in function (\S+))?\s*$/i,
u = /^\s*Line (\d+) of inline#(\d+) script in ((?:file|https?|blob)\S+)(?:: in function (\S+))?\s*$/i,
A = /^\s*Line (\d+) of function script\s*$/i,
m = [],
f = e && e.document && e.document.getElementsByTagName("script"),
p = [];
for (var g in f) l(f, g) && !f[g].src && p.push(f[g]);
for (var h = 2; h < o.length; h += 2) {
var w = null;
if (s = c.exec(o[h])) w = {
url: s[2],
func: s[3],
args: [],
line: +s[1],
column: null
};
else if (s = u.exec(o[h])) {
w = {
url: s[3],
func: s[4],
args: [],
line: +s[1],
column: null
};
var y = +s[1],
v = p[s[2] - 1];
if (v) {
var b = n(w.url);
if (b) {
var k = (b = b.join("\n")).indexOf(v.innerText);
k >= 0 && (w.line = y + b.substring(0, k).split("\n").length)
}
}
} else if (s = A.exec(o[h])) {
var S = e.location.href.replace(/#.*$/, ""),
E = d(new RegExp(a(o[h + 1])), [S]);
w = {
url: S,
func: "",
args: [],
line: E ? E.line : s[1],
column: null
}
}
if (w) {
w.func || (w.func = i(w.url, w.line));
var x = r(w.url, w.line),
T = x ? x[Math.floor(x.length / 2)] : null;
x && T.replace(/^\s*/, "") === o[h + 1].replace(/^\s*/, "") ? w.context = x : w.context = [o[h + 1]], m.push(w)
}
}
return m.length ? {
mode: "multiline",
name: t.name,
message: o[0],
stack: m
} : null
}(t)) return s
} catch (t) {
0
}
try {
if (s = p(t, o + 1)) return s
} catch (t) {
0
}
return {
name: t.name,
message: t.message,
mode: "failed"
}
}
return g.augmentStackTraceWithInitialElement = f, g.computeStackTraceFromStackProp = m, g.guessFunctionName = i, g.gatherContext = r, g.ofCaller = function(t) {
t = 1 + (null == t ? 0 : +t);
try {
throw new Error
} catch (n) {
return g(n, t + 1)
}
}, g.getSource = n, g
}(), s.extendToAsynchronousCallbacks = function() {
var t = function(t) {
var n = e[t];
e[t] = function() {
var t = c.call(arguments),
e = t[0];
return "function" == typeof e && (t[0] = s.wrap(e)), n.apply ? n.apply(this, t) : n(t[0], t[1])
}
};
t("setTimeout"), t("setInterval")
}, s.remoteFetching || (s.remoteFetching = !0), s.collectWindowErrors || (s.collectWindowErrors = !0), (!s.linesOfContext || s.linesOfContext < 1) && (s.linesOfContext = 11), r = [], void 0 === (o = "function" == typeof(i = s) ? i.apply(n, r) : i) || (t.exports = o)
}
function l(t, n) {
return Object.prototype.hasOwnProperty.call(t, n)
}
function A(t) {
return void 0 === t
}
}("undefined" != typeof window ? window : e)
}).call(this, e(37))
}, function(t, n, e) {
var i = e(0),
r = e(7),
o = e(3),
a = e(26),
s = e(27),
d = e(15),
c = d.get,
u = d.enforce,
l = String(String).split("String");
(t.exports = function(t, n, e, s) {
var d = !!s && !!s.unsafe,
c = !!s && !!s.enumerable,
A = !!s && !!s.noTargetGet;
"function" == typeof e && ("string" != typeof n || o(e, "name") || r(e, "name", n), u(e).source = l.join("string" == typeof n ? n : "")), t !== i ? (d ? !A && t[n] && (c = !0) : delete t[n], c ? t[n] = e : r(t, n, e)) : c ? t[n] = e : a(n, e)
})(Function.prototype, "toString", (function() {
return "function" == typeof this && c(this).source || s(this)
}))
}, function(t, n) {
t.exports = function(t) {
if ("function" != typeof t) throw TypeError(String(t) + " is not a function");
return t
}
}, function(t, n) {
var e = {}.toString;
t.exports = function(t) {
return e.call(t).slice(8, -1)
}
}, function(t, n, e) {
var i, r, o, a = e(71),
s = e(0),
d = e(8),
c = e(7),
u = e(3),
l = e(28),
A = e(29),
m = s.WeakMap;
if (a) {
var f = new m,
p = f.get,
g = f.has,
h = f.set;
i = function(t, n) {
return h.call(f, t, n), n
}, r = function(t) {
return p.call(f, t) || {}
}, o = function(t) {
return g.call(f, t)
}
} else {
var w = l("state");
A[w] = !0, i = function(t, n) {
return c(t, w, n), n
}, r = function(t) {
return u(t, w) ? t[w] : {}
}, o = function(t) {
return u(t, w)
}
}
t.exports = {
set: i,
get: r,
has: o,
enforce: function(t) {
return o(t) ? r(t) : i(t, {})
},
getterFor: function(t) {
return function(n) {
var e;
if (!d(n) || (e = r(n)).type !== t) throw TypeError("Incompatible receiver, " + t + " required");
return e
}
}
}
}, function(t, n) {
t.exports = !1
}, function(t, n) {
t.exports = {}
}, function(t, n, e) {
"use strict";
var i = e(13),
r = function(t) {
var n, e;
this.promise = new t((function(t, i) {
if (void 0 !== n || void 0 !== e) throw TypeError("Bad Promise constructor");
n = t, e = i
})), this.resolve = i(n), this.reject = i(e)
};
t.exports.f = function(t) {
return new r(t)
}
}, function(t, n) {
t.exports = function(t, n) {
return {
enumerable: !(1 & t),
configurable: !(2 & t),
writable: !(4 & t),
value: n
}
}
}, function(t, n, e) {
var i = e(39),
r = e(24);
t.exports = function(t) {
return i(r(t))
}
}, function(t, n, e) {
var i = e(4),
r = e(96),
o = e(46),
a = e(58),
s = e(97),
d = e(98),
c = function(t, n) {
this.stopped = t, this.result = n
};
(t.exports = function(t, n, e, u, l) {
var A, m, f, p, g, h, w, y = a(n, e, u ? 2 : 1);
if (l) A = t;
else {
if ("function" != typeof(m = s(t))) throw TypeError("Target is not iterable");
if (r(m)) {
for (f = 0, p = o(t.length); p > f; f++)
if ((g = u ? y(i(w = t[f])[0], w[1]) : y(t[f])) && g instanceof c) return g;
return new c(!1)
}
A = m.call(t)
}
for (h = A.next; !(w = h.call(A)).done;)
if ("object" == typeof(g = d(A, y, w.value, u)) && g && g instanceof c) return g;
return new c(!1)
}).stop = function(t) {
return new c(!0, t)
}
}, function(t, n) {
t.exports = function(t) {
try {
return {
error: !1,
value: t()
}
} catch (t) {
return {
error: !0,
value: t
}
}
}
}, function(t, n, e) {
var i = e(6),
r = e(38),
o = e(19),
a = e(20),
s = e(40),
d = e(3),
c = e(41),
u = Object.getOwnPropertyDescriptor;
n.f = i ? u : function(t, n) {
if (t = a(t), n = s(n, !0), c) try {
return u(t, n)
} catch (t) {}
if (d(t, n)) return o(!r.f.call(t, n), t[n])
}
}, function(t, n) {
t.exports = function(t) {
if (null == t) throw TypeError("Can't call method on " + t);
return t
}
}, function(t, n, e) {
var i = e(0),
r = e(8),
o = i.document,
a = r(o) && r(o.createElement);
t.exports = function(t) {
return a ? o.createElement(t) : {}
}
}, function(t, n, e) {
var i = e(0),
r = e(7);
t.exports = function(t, n) {
try {
r(i, t, n)
} catch (e) {
i[t] = n
}
return n
}
}, function(t, n, e) {
var i = e(42),
r = Function.toString;
"function" != typeof i.inspectSource && (i.inspectSource = function(t) {
return r.call(t)
}), t.exports = i.inspectSource
}, function(t, n, e) {
var i = e(43),
r = e(44),
o = i("keys");
t.exports = function(t) {
return o[t] || (o[t] = r(t))
}
}, function(t, n) {
t.exports = {}
}, function(t, n, e) {
var i = e(0);
t.exports = i
}, function(t, n) {
var e = Math.ceil,
i = Math.floor;
t.exports = function(t) {
return isNaN(t = +t) ? 0 : (t > 0 ? i : e)(t)
}
}, function(t, n) {
t.exports = ["constructor", "hasOwnProperty", "isPrototypeOf", "propertyIsEnumerable", "toLocaleString", "toString", "valueOf"]
}, function(t, n, e) {
var i = {};
i[e(1)("toStringTag")] = "z", t.exports = "[object z]" === String(i)
}, function(t, n, e) {
var i = e(3),
r = e(50),
o = e(28),
a = e(85),
s = o("IE_PROTO"),
d = Object.prototype;
t.exports = a ? Object.getPrototypeOf : function(t) {
return t = r(t), i(t, s) ? t[s] : "function" == typeof t.constructor && t instanceof t.constructor ? t.constructor.prototype : t instanceof Object ? d : null
}
}, function(t, n, e) {
var i, r = e(4),
o = e(86),
a = e(32),
s = e(29),
d = e(55),
c = e(25),
u = e(28),
l = u("IE_PROTO"),
A = function() {},
m = function(t) {
return "<script>" + t + "<\/script>"
},
f = function() {
try {
i = document.domain && new ActiveXObject("htmlfile")
} catch (t) {}
var t, n;
f = i ? function(t) {
t.write(m("")), t.close();
var n = t.parentWindow.Object;
return t = null, n
}(i) : ((n = c("iframe")).style.display = "none", d.appendChild(n), n.src = String("javascript:"), (t = n.contentWindow.document).open(), t.write(m("document.F=Object")), t.close(), t.F);
for (var e = a.length; e--;) delete f.prototype[a[e]];
return f()
};
s[l] = !0, t.exports = Object.create || function(t, n) {
var e;
return null !== t ? (A.prototype = r(t), e = new A, A.prototype = null, e[l] = t) : e = f(), void 0 === n ? e : o(e, n)
}
}, function(t, n, e) {
var i = e(9).f,
r = e(3),
o = e(1)("toStringTag");
t.exports = function(t, n, e) {
t && !r(t = e ? t : t.prototype, o) && i(t, o, {
configurable: !0,
value: n
})
}
}, function(t, n) {
var e;
e = function() {
return this
}();
try {
e = e || new Function("return this")()
} catch (t) {
"object" == typeof window && (e = window)
}
t.exports = e
}, function(t, n, e) {
"use strict";
var i = {}.propertyIsEnumerable,
r = Object.getOwnPropertyDescriptor,
o = r && !i.call({
1: 2
}, 1);
n.f = o ? function(t) {
var n = r(this, t);
return !!n && n.enumerable
} : i
}, function(t, n, e) {
var i = e(2),
r = e(14),
o = "".split;
t.exports = i((function() {
return !Object("z").propertyIsEnumerable(0)
})) ? function(t) {
return "String" == r(t) ? o.call(t, "") : Object(t)
} : Object
}, function(t, n, e) {
var i = e(8);
t.exports = function(t, n) {
if (!i(t)) return t;
var e, r;
if (n && "function" == typeof(e = t.toString) && !i(r = e.call(t))) return r;
if ("function" == typeof(e = t.valueOf) && !i(r = e.call(t))) return r;
if (!n && "function" == typeof(e = t.toString) && !i(r = e.call(t))) return r;
throw TypeError("Can't convert object to primitive value")
}
}, function(t, n, e) {
var i = e(6),
r = e(2),
o = e(25);
t.exports = !i && !r((function() {
return 7 != Object.defineProperty(o("div"), "a", {
get: function() {
return 7
}
}).a
}))
}, function(t, n, e) {
var i = e(0),
r = e(26),
o = i["__core-js_shared__"] || r("__core-js_shared__", {});
t.exports = o
}, function(t, n, e) {
var i = e(16),
r = e(42);
(t.exports = function(t, n) {
return r[t] || (r[t] = void 0 !== n ? n : {})
})("versions", []).push({
version: "3.6.5",
mode: i ? "pure" : "global",
copyright: "© 2020 Denis Pushkarev (zloirock.ru)"
})
}, function(t, n) {
var e = 0,
i = Math.random();
t.exports = function(t) {
return "Symbol(" + String(void 0 === t ? "" : t) + ")_" + (++e + i).toString(36)
}
}, function(t, n, e) {
var i = e(3),
r = e(20),
o = e(75).indexOf,
a = e(29);
t.exports = function(t, n) {
var e, s = r(t),
d = 0,
c = [];
for (e in s) !i(a, e) && i(s, e) && c.push(e);
for (; n.length > d;) i(s, e = n[d++]) && (~o(c, e) || c.push(e));
return c
}
}, function(t, n, e) {
var i = e(31),
r = Math.min;
t.exports = function(t) {
return t > 0 ? r(i(t), 9007199254740991) : 0
}
}, function(t, n) {
n.f = Object.getOwnPropertySymbols
}, function(t, n, e) {
var i = e(2),
r = /#|\.prototype\./,
o = function(t, n) {
var e = s[a(t)];
return e == c || e != d && ("function" == typeof n ? i(n) : !!n)
},
a = o.normalize = function(t) {
return String(t).replace(r, ".").toLowerCase()
},
s = o.data = {},
d = o.NATIVE = "N",
c = o.POLYFILL = "P";
t.exports = o
}, function(t, n, e) {
var i = e(45),
r = e(32);
t.exports = Object.keys || function(t) {
return i(t, r)
}
}, function(t, n, e) {
var i = e(24);
t.exports = function(t) {
return Object(i(t))
}
}, function(t, n, e) {
var i = e(2);
t.exports = !!Object.getOwnPropertySymbols && !i((function() {
return !String(Symbol())
}))
}, function(t, n, e) {
var i = e(33),
r = e(14),
o = e(1)("toStringTag"),
a = "Arguments" == r(function() {
return arguments
}());
t.exports = i ? r : function(t) {
var n, e, i;
return void 0 === t ? "Undefined" : null === t ? "Null" : "string" == typeof(e = function(t, n) {
try {
return t[n]
} catch (t) {}
}(n = Object(t), o)) ? e : a ? r(n) : "Object" == (i = r(n)) && "function" == typeof n.callee ? "Arguments" : i
}
}, function(t, n, e) {
"use strict";
var i = e(5),
r = e(84),
o = e(34),
a = e(56),
s = e(36),
d = e(7),
c = e(12),
u = e(1),
l = e(16),
A = e(17),
m = e(54),
f = m.IteratorPrototype,
p = m.BUGGY_SAFARI_ITERATORS,
g = u("iterator"),
h = function() {
return this
};
t.exports = function(t, n, e, u, m, w, y) {
r(e, n, u);
var v, b, k, S = function(t) {
if (t === m && C) return C;
if (!p && t in T) return T[t];
switch (t) {
case "keys":
case "values":
case "entries":
return function() {
return new e(this, t)
}
}
return function() {
return new e(this)
}
},
E = n + " Iterator",
x = !1,
T = t.prototype,
z = T[g] || T["@@iterator"] || m && T[m],
C = !p && z || S(m),
I = "Array" == n && T.entries || z;
if (I && (v = o(I.call(new t)), f !== Object.prototype && v.next && (l || o(v) === f || (a ? a(v, f) : "function" != typeof v[g] && d(v, g, h)), s(v, E, !0, !0), l && (A[E] = h))), "values" == m && z && "values" !== z.name && (x = !0, C = function() {
return z.call(this)
}), l && !y || T[g] === C || d(T, g, C), A[n] = C, m)
if (b = {
values: S("values"),
keys: w ? C : S("keys"),
entries: S("entries")
}, y)
for (k in b)(p || x || !(k in T)) && c(T, k, b[k]);
else i({
target: n,
proto: !0,
forced: p || x
}, b);
return b
}
}, function(t, n, e) {
"use strict";
var i, r, o, a = e(34),
s = e(7),
d = e(3),
c = e(1),
u = e(16),
l = c("iterator"),
A = !1;
[].keys && ("next" in (o = [].keys()) ? (r = a(a(o))) !== Object.prototype && (i = r) : A = !0), null == i && (i = {}), u || d(i, l) || s(i, l, (function() {
return this
})), t.exports = {
IteratorPrototype: i,
BUGGY_SAFARI_ITERATORS: A
}
}, function(t, n, e) {
var i = e(10);
t.exports = i("document", "documentElement")
}, function(t, n, e) {
var i = e(4),
r = e(87);
t.exports = Object.setPrototypeOf || ("__proto__" in {} ? function() {
var t, n = !1,
e = {};
try {
(t = Object.getOwnPropertyDescriptor(Object.prototype, "__proto__").set).call(e, []), n = e instanceof Array
} catch (t) {}
return function(e, o) {
return i(e), r(o), n ? t.call(e, o) : e.__proto__ = o, e
}
}() : void 0)
}, function(t, n, e) {
var i = e(0);
t.exports = i.Promise
}, function(t, n, e) {
var i = e(13);
t.exports = function(t, n, e) {
if (i(t), void 0 === n) return t;
switch (e) {
case 0:
return function() {
return t.call(n)
};
case 1:
return function(e) {
return t.call(n, e)
};
case 2:
return function(e, i) {
return t.call(n, e, i)
};
case 3:
return function(e, i, r) {
return t.call(n, e, i, r)
}
}
return function() {
return t.apply(n, arguments)
}
}
}, function(t, n, e) {
var i = e(4),
r = e(13),
o = e(1)("species");
t.exports = function(t, n) {
var e, a = i(t).constructor;
return void 0 === a || null == (e = i(a)[o]) ? n : r(e)
}
}, function(t, n, e) {
var i, r, o, a = e(0),
s = e(2),
d = e(14),
c = e(58),
u = e(55),
l = e(25),
A = e(61),
m = a.location,
f = a.setImmediate,
p = a.clearImmediate,
g = a.process,
h = a.MessageChannel,
w = a.Dispatch,
y = 0,
v = {},
b = function(t) {
if (v.hasOwnProperty(t)) {
var n = v[t];
delete v[t], n()
}
},
k = function(t) {
return function() {
b(t)
}
},
S = function(t) {
b(t.data)
},
E = function(t) {
a.postMessage(t + "", m.protocol + "//" + m.host)
};
f && p || (f = function(t) {
for (var n = [], e = 1; arguments.length > e;) n.push(arguments[e++]);
return v[++y] = function() {
("function" == typeof t ? t : Function(t)).apply(void 0, n)
}, i(y), y
}, p = function(t) {
delete v[t]
}, "process" == d(g) ? i = function(t) {
g.nextTick(k(t))
} : w && w.now ? i = function(t) {
w.now(k(t))
} : h && !A ? (o = (r = new h).port2, r.port1.onmessage = S, i = c(o.postMessage, o, 1)) : !a.addEventListener || "function" != typeof postMessage || a.importScripts || s(E) || "file:" === m.protocol ? i = "onreadystatechange" in l("script") ? function(t) {
u.appendChild(l("script")).onreadystatechange = function() {
u.removeChild(this), b(t)
}
} : function(t) {
setTimeout(k(t), 0)
} : (i = E, a.addEventListener("message", S, !1))), t.exports = {
set: f,
clear: p
}
}, function(t, n, e) {
var i = e(62);
t.exports = /(iphone|ipod|ipad).*applewebkit/i.test(i)
}, function(t, n, e) {
var i = e(10);
t.exports = i("navigator", "userAgent") || ""
}, function(t, n, e) {
var i = e(4),
r = e(8),
o = e(18);
t.exports = function(t, n) {
if (i(t), r(n) && n.constructor === t) return n;
var e = o.f(t);
return (0, e.resolve)(n), e.promise
}
}, function(t, n, e) {
"use strict";
var i = e(5),
r = e(13),
o = e(18),
a = e(22),
s = e(21);
i({
target: "Promise",
stat: !0
}, {
allSettled: function(t) {
var n = this,
e = o.f(n),
i = e.resolve,
d = e.reject,
c = a((function() {
var e = r(n.resolve),
o = [],
a = 0,
d = 1;
s(t, (function(t) {
var r = a++,
s = !1;
o.push(void 0), d++, e.call(n, t).then((function(t) {
s || (s = !0, o[r] = {
status: "fulfilled",
value: t
}, --d || i(o))
}), (function(t) {
s || (s = !0, o[r] = {
status: "rejected",
reason: t
}, --d || i(o))
}))
})), --d || i(o)
}));
return c.error && d(c.value), e.promise
}
})
}, function(t, n, e) {
var i = e(69);
t.exports = i
}, function(t, n, e) {
var i = e(78);
e(104), e(105), e(106), e(107), t.exports = i
}, function(t) {
t.exports = JSON.parse('{"a":"./prebid4.12.0.js"}')
}, , function(t, n, e) {
e(70);
var i = e(30);
t.exports = i.Object.assign
}, function(t, n, e) {
var i = e(5),
r = e(77);
i({
target: "Object",
stat: !0,
forced: Object.assign !== r
}, {
assign: r
})
}, function(t, n, e) {
var i = e(0),
r = e(27),
o = i.WeakMap;
t.exports = "function" == typeof o && /native code/.test(r(o))
}, function(t, n, e) {
var i = e(3),
r = e(73),
o = e(23),
a = e(9);
t.exports = function(t, n) {
for (var e = r(n), s = a.f, d = o.f, c = 0; c < e.length; c++) {
var u = e[c];
i(t, u) || s(t, u, d(n, u))
}
}
}, function(t, n, e) {
var i = e(10),
r = e(74),
o = e(47),
a = e(4);
t.exports = i("Reflect", "ownKeys") || function(t) {
var n = r.f(a(t)),
e = o.f;
return e ? n.concat(e(t)) : n
}
}, function(t, n, e) {
var i = e(45),
r = e(32).concat("length", "prototype");
n.f = Object.getOwnPropertyNames || function(t) {
return i(t, r)
}
}, function(t, n, e) {
var i = e(20),
r = e(46),
o = e(76),
a = function(t) {
return function(n, e, a) {
var s, d = i(n),
c = r(d.length),
u = o(a, c);
if (t && e != e) {
for (; c > u;)
if ((s = d[u++]) != s) return !0
} else
for (; c > u; u++)
if ((t || u in d) && d[u] === e) return t || u || 0;
return !t && -1
}
};
t.exports = {
includes: a(!0),
indexOf: a(!1)
}
}, function(t, n, e) {
var i = e(31),
r = Math.max,
o = Math.min;
t.exports = function(t, n) {
var e = i(t);
return e < 0 ? r(e + n, 0) : o(e, n)
}
}, function(t, n, e) {
"use strict";
var i = e(6),
r = e(2),
o = e(49),
a = e(47),
s = e(38),
d = e(50),
c = e(39),
u = Object.assign,
l = Object.defineProperty;
t.exports = !u || r((function() {
if (i && 1 !== u({
b: 1
}, u(l({}, "a", {
enumerable: !0,
get: function() {
l(this, "b", {
value: 3,
enumerable: !1
})
}
}), {
b: 2
})).b) return !0;
var t = {},
n = {},
e = Symbol();
return t[e] = 7, "abcdefghijklmnopqrst".split("").forEach((function(t) {
n[t] = t
})), 7 != u({}, t)[e] || "abcdefghijklmnopqrst" != o(u({}, n)).join("")
})) ? function(t, n) {
for (var e = d(t), r = arguments.length, u = 1, l = a.f, A = s.f; r > u;)
for (var m, f = c(arguments[u++]), p = l ? o(f).concat(l(f)) : o(f), g = p.length, h = 0; g > h;) m = p[h++], i && !A.call(f, m) || (e[m] = f[m]);
return e
} : u
}, function(t, n, e) {
e(79), e(82), e(88), e(92), e(64), e(103);
var i = e(30);
t.exports = i.Promise
}, function(t, n, e) {
var i = e(33),
r = e(12),
o = e(81);
i || r(Object.prototype, "toString", o, {
unsafe: !0
})
}, function(t, n, e) {
var i = e(51);
t.exports = i && !Symbol.sham && "symbol" == typeof Symbol.iterator
}, function(t, n, e) {
"use strict";
var i = e(33),
r = e(52);
t.exports = i ? {}.toString : function() {
return "[object " + r(this) + "]"
}
}, function(t, n, e) {
"use strict";
var i = e(83).charAt,
r = e(15),
o = e(53),
a = r.set,
s = r.getterFor("String Iterator");
o(String, "String", (function(t) {
a(this, {
type: "String Iterator",
string: String(t),
index: 0
})
}), (function() {
var t, n = s(this),
e = n.string,
r = n.index;
return r >= e.length ? {
value: void 0,
done: !0
} : (t = i(e, r), n.index += t.length, {
value: t,
done: !1
})
}))
}, function(t, n, e) {
var i = e(31),
r = e(24),
o = function(t) {
return function(n, e) {
var o, a, s = String(r(n)),
d = i(e),
c = s.length;
return d < 0 || d >= c ? t ? "" : void 0 : (o = s.charCodeAt(d)) < 55296 || o > 56319 || d + 1 === c || (a = s.charCodeAt(d + 1)) < 56320 || a > 57343 ? t ? s.charAt(d) : o : t ? s.slice(d, d + 2) : a - 56320 + (o - 55296 << 10) + 65536
}
};
t.exports = {
codeAt: o(!1),
charAt: o(!0)
}
}, function(t, n, e) {
"use strict";
var i = e(54).IteratorPrototype,
r = e(35),
o = e(19),
a = e(36),
s = e(17),
d = function() {
return this
};
t.exports = function(t, n, e) {
var c = n + " Iterator";
return t.prototype = r(i, {
next: o(1, e)
}), a(t, c, !1, !0), s[c] = d, t
}
}, function(t, n, e) {
var i = e(2);
t.exports = !i((function() {
function t() {}
return t.prototype.constructor = null, Object.getPrototypeOf(new t) !== t.prototype
}))
}, function(t, n, e) {
var i = e(6),
r = e(9),
o = e(4),
a = e(49);
t.exports = i ? Object.defineProperties : function(t, n) {
o(t);
for (var e, i = a(n), s = i.length, d = 0; s > d;) r.f(t, e = i[d++], n[e]);
return t
}
}, function(t, n, e) {
var i = e(8);
t.exports = function(t) {
if (!i(t) && null !== t) throw TypeError("Can't set " + String(t) + " as a prototype");
return t
}
}, function(t, n, e) {
var i = e(0),
r = e(89),
o = e(90),
a = e(7),
s = e(1),
d = s("iterator"),
c = s("toStringTag"),
u = o.values;
for (var l in r) {
var A = i[l],
m = A && A.prototype;
if (m) {
if (m[d] !== u) try {
a(m, d, u)
} catch (t) {
m[d] = u
}
if (m[c] || a(m, c, l), r[l])
for (var f in o)
if (m[f] !== o[f]) try {
a(m, f, o[f])
} catch (t) {
m[f] = o[f]
}
}
}
}, function(t, n) {
t.exports = {
CSSRuleList: 0,
CSSStyleDeclaration: 0,
CSSValueList: 0,
ClientRectList: 0,
DOMRectList: 0,
DOMStringList: 0,
DOMTokenList: 1,
DataTransferItemList: 0,
FileList: 0,
HTMLAllCollection: 0,
HTMLCollection: 0,
HTMLFormElement: 0,
HTMLSelectElement: 0,
MediaList: 0,
MimeTypeArray: 0,
NamedNodeMap: 0,
NodeList: 1,
PaintRequestList: 0,
Plugin: 0,
PluginArray: 0,
SVGLengthList: 0,
SVGNumberList: 0,
SVGPathSegList: 0,
SVGPointList: 0,
SVGStringList: 0,
SVGTransformList: 0,
SourceBufferList: 0,
StyleSheetList: 0,
TextTrackCueList: 0,
TextTrackList: 0,
TouchList: 0
}
}, function(t, n, e) {
"use strict";
var i = e(20),
r = e(91),
o = e(17),
a = e(15),
s = e(53),
d = a.set,
c = a.getterFor("Array Iterator");
t.exports = s(Array, "Array", (function(t, n) {
d(this, {
type: "Array Iterator",
target: i(t),
index: 0,
kind: n
})
}), (function() {
var t = c(this),
n = t.target,
e = t.kind,
i = t.index++;
return !n || i >= n.length ? (t.target = void 0, {
value: void 0,
done: !0
}) : "keys" == e ? {
value: i,
done: !1
} : "values" == e ? {
value: n[i],
done: !1
} : {
value: [i, n[i]],
done: !1
}
}), "values"), o.Arguments = o.Array, r("keys"), r("values"), r("entries")
}, function(t, n, e) {
var i = e(1),
r = e(35),
o = e(9),
a = i("unscopables"),
s = Array.prototype;
null == s[a] && o.f(s, a, {
configurable: !0,
value: r(null)
}), t.exports = function(t) {
s[a][t] = !0
}
}, function(t, n, e) {
"use strict";
var i, r, o, a, s = e(5),
d = e(16),
c = e(0),
u = e(10),
l = e(57),
A = e(12),
m = e(93),
f = e(36),
p = e(94),
g = e(8),
h = e(13),
w = e(95),
y = e(14),
v = e(27),
b = e(21),
k = e(99),
S = e(59),
E = e(60).set,
x = e(100),
T = e(63),
z = e(101),
C = e(18),
I = e(22),
_ = e(15),
B = e(48),
P = e(1),
D = e(102),
L = P("species"),
O = "Promise",
j = _.get,
R = _.set,
M = _.getterFor(O),
Z = l,
G = c.TypeError,
N = c.document,
F = c.process,
X = u("fetch"),
U = C.f,
Q = U,
H = "process" == y(F),
W = !!(N && N.createEvent && c.dispatchEvent),
V = B(O, (function() {
if (!(v(Z) !== String(Z))) {
if (66 === D) return !0;
if (!H && "function" != typeof PromiseRejectionEvent) return !0
}
if (d && !Z.prototype.finally) return !0;
if (D >= 51 && /native code/.test(Z)) return !1;
var t = Z.resolve(1),
n = function(t) {
t((function() {}), (function() {}))
};
return (t.constructor = {})[L] = n, !(t.then((function() {})) instanceof n)
})),
q = V || !k((function(t) {
Z.all(t).catch((function() {}))
})),
K = function(t) {
var n;
return !(!g(t) || "function" != typeof(n = t.then)) && n
},
J = function(t, n, e) {
if (!n.notified) {
n.notified = !0;
var i = n.reactions;
x((function() {
for (var r = n.value, o = 1 == n.state, a = 0; i.length > a;) {
var s, d, c, u = i[a++],
l = o ? u.ok : u.fail,
A = u.resolve,
m = u.reject,
f = u.domain;
try {
l ? (o || (2 === n.rejection && nt(t, n), n.rejection = 1), !0 === l ? s = r : (f && f.enter(), s = l(r), f && (f.exit(), c = !0)), s === u.promise ? m(G("Promise-chain cycle")) : (d = K(s)) ? d.call(s, A, m) : A(s)) : m(r)
} catch (t) {
f && !c && f.exit(), m(t)
}
}
n.reactions = [], n.notified = !1, e && !n.rejection && $(t, n)
}))
}
},
Y = function(t, n, e) {
var i, r;
W ? ((i = N.createEvent("Event")).promise = n, i.reason = e, i.initEvent(t, !1, !0), c.dispatchEvent(i)) : i = {
promise: n,
reason: e
}, (r = c["on" + t]) ? r(i) : "unhandledrejection" === t && z("Unhandled promise rejection", e)
},
$ = function(t, n) {
E.call(c, (function() {
var e, i = n.value;
if (tt(n) && (e = I((function() {
H ? F.emit("unhandledRejection", i, t) : Y("unhandledrejection", t, i)
})), n.rejection = H || tt(n) ? 2 : 1, e.error)) throw e.value
}))
},
tt = function(t) {
return 1 !== t.rejection && !t.parent
},
nt = function(t, n) {
E.call(c, (function() {
H ? F.emit("rejectionHandled", t) : Y("rejectionhandled", t, n.value)
}))
},
et = function(t, n, e, i) {
return function(r) {
t(n, e, r, i)
}
},
it = function(t, n, e, i) {
n.done || (n.done = !0, i && (n = i), n.value = e, n.state = 2, J(t, n, !0))
},
rt = function(t, n, e, i) {
if (!n.done) {
n.done = !0, i && (n = i);
try {
if (t === e) throw G("Promise can't be resolved itself");
var r = K(e);
r ? x((function() {
var i = {
done: !1
};
try {
r.call(e, et(rt, t, i, n), et(it, t, i, n))
} catch (e) {
it(t, i, e, n)
}
})) : (n.value = e, n.state = 1, J(t, n, !1))
} catch (e) {
it(t, {
done: !1
}, e, n)
}
}
};
V && (Z = function(t) {
w(this, Z, O), h(t), i.call(this);
var n = j(this);
try {
t(et(rt, this, n), et(it, this, n))
} catch (t) {
it(this, n, t)
}
}, (i = function(t) {
R(this, {
type: O,
done: !1,
notified: !1,
parent: !1,
reactions: [],
rejection: !1,
state: 0,
value: void 0
})
}).prototype = m(Z.prototype, {
then: function(t, n) {
var e = M(this),
i = U(S(this, Z));
return i.ok = "function" != typeof t || t, i.fail = "function" == typeof n && n, i.domain = H ? F.domain : void 0, e.parent = !0, e.reactions.push(i), 0 != e.state && J(this, e, !1), i.promise
},
catch: function(t) {
return this.then(void 0, t)
}
}), r = function() {
var t = new i,
n = j(t);
this.promise = t, this.resolve = et(rt, t, n), this.reject = et(it, t, n)
}, C.f = U = function(t) {
return t === Z || t === o ? new r(t) : Q(t)
}, d || "function" != typeof l || (a = l.prototype.then, A(l.prototype, "then", (function(t, n) {
var e = this;
return new Z((function(t, n) {
a.call(e, t, n)
})).then(t, n)
}), {
unsafe: !0
}), "function" == typeof X && s({
global: !0,
enumerable: !0,
forced: !0
}, {
fetch: function(t) {
return T(Z, X.apply(c, arguments))
}
}))), s({
global: !0,
wrap: !0,
forced: V
}, {
Promise: Z
}), f(Z, O, !1, !0), p(O), o = u(O), s({
target: O,
stat: !0,
forced: V
}, {
reject: function(t) {
var n = U(this);
return n.reject.call(void 0, t), n.promise
}
}), s({
target: O,
stat: !0,
forced: d || V
}, {
resolve: function(t) {
return T(d && this === o ? Z : this, t)
}
}), s({
target: O,
stat: !0,
forced: q
}, {
all: function(t) {
var n = this,
e = U(n),
i = e.resolve,
r = e.reject,
o = I((function() {
var e = h(n.resolve),
o = [],
a = 0,
s = 1;
b(t, (function(t) {
var d = a++,
c = !1;
o.push(void 0), s++, e.call(n, t).then((function(t) {
c || (c = !0, o[d] = t, --s || i(o))
}), r)
})), --s || i(o)
}));
return o.error && r(o.value), e.promise
},
race: function(t) {
var n = this,
e = U(n),
i = e.reject,
r = I((function() {
var r = h(n.resolve);
b(t, (function(t) {
r.call(n, t).then(e.resolve, i)
}))
}));
return r.error && i(r.value), e.promise
}
})
}, function(t, n, e) {
var i = e(12);
t.exports = function(t, n, e) {
for (var r in n) i(t, r, n[r], e);
return t
}
}, function(t, n, e) {
"use strict";
var i = e(10),
r = e(9),
o = e(1),
a = e(6),
s = o("species");
t.exports = function(t) {
var n = i(t),
e = r.f;
a && n && !n[s] && e(n, s, {
configurable: !0,
get: function() {
return this
}
})
}
}, function(t, n) {
t.exports = function(t, n, e) {
if (!(t instanceof n)) throw TypeError("Incorrect " + (e ? e + " " : "") + "invocation");
return t
}
}, function(t, n, e) {
var i = e(1),
r = e(17),
o = i("iterator"),
a = Array.prototype;
t.exports = function(t) {
return void 0 !== t && (r.Array === t || a[o] === t)
}
}, function(t, n, e) {
var i = e(52),
r = e(17),
o = e(1)("iterator");
t.exports = function(t) {
if (null != t) return t[o] || t["@@iterator"] || r[i(t)]
}
}, function(t, n, e) {
var i = e(4);
t.exports = function(t, n, e, r) {
try {
return r ? n(i(e)[0], e[1]) : n(e)
} catch (n) {
var o = t.return;
throw void 0 !== o && i(o.call(t)), n
}
}
}, function(t, n, e) {
var i = e(1)("iterator"),
r = !1;
try {
var o = 0,
a = {
next: function() {
return {
done: !!o++
}
},
return: function() {
r = !0
}
};
a[i] = function() {
return this
}, Array.from(a, (function() {
throw 2
}))
} catch (t) {}
t.exports = function(t, n) {
if (!n && !r) return !1;
var e = !1;
try {
var o = {};
o[i] = function() {
return {
next: function() {
return {
done: e = !0
}
}
}
}, t(o)
} catch (t) {}
return e
}
}, function(t, n, e) {
var i, r, o, a, s, d, c, u, l = e(0),
A = e(23).f,
m = e(14),
f = e(60).set,
p = e(61),
g = l.MutationObserver || l.WebKitMutationObserver,
h = l.process,
w = l.Promise,
y = "process" == m(h),
v = A(l, "queueMicrotask"),
b = v && v.value;
b || (i = function() {
var t, n;
for (y && (t = h.domain) && t.exit(); r;) {
n = r.fn, r = r.next;
try {
n()
} catch (t) {
throw r ? a() : o = void 0, t
}
}
o = void 0, t && t.enter()
}, y ? a = function() {
h.nextTick(i)
} : g && !p ? (s = !0, d = document.createTextNode(""), new g(i).observe(d, {
characterData: !0
}), a = function() {
d.data = s = !s
}) : w && w.resolve ? (c = w.resolve(void 0), u = c.then, a = function() {
u.call(c, i)
}) : a = function() {
f.call(l, i)
}), t.exports = b || function(t) {
var n = {
fn: t,
next: void 0
};
o && (o.next = n), r || (r = n, a()), o = n
}
}, function(t, n, e) {
var i = e(0);
t.exports = function(t, n) {
var e = i.console;
e && e.error && (1 === arguments.length ? e.error(t) : e.error(t, n))
}
}, function(t, n, e) {
var i, r, o = e(0),
a = e(62),
s = o.process,
d = s && s.versions,
c = d && d.v8;
c ? r = (i = c.split("."))[0] + i[1] : a && (!(i = a.match(/Edge\/(\d+)/)) || i[1] >= 74) && (i = a.match(/Chrome\/(\d+)/)) && (r = i[1]), t.exports = r && +r
}, function(t, n, e) {
"use strict";
var i = e(5),
r = e(16),
o = e(57),
a = e(2),
s = e(10),
d = e(59),
c = e(63),
u = e(12);
i({
target: "Promise",
proto: !0,
real: !0,
forced: !!o && a((function() {
o.prototype.finally.call({
then: function() {}
}, (function() {}))
}))
}, {
finally: function(t) {
var n = d(this, s("Promise")),
e = "function" == typeof t;
return this.then(e ? function(e) {
return c(n, t()).then((function() {
return e
}))
} : t, e ? function(e) {
return c(n, t()).then((function() {
throw e
}))
} : t)
}
}), r || "function" != typeof o || o.prototype.finally || u(o.prototype, "finally", s("Promise").prototype.finally)
}, function(t, n, e) {
"use strict";
var i = e(5),
r = e(6),
o = e(34),
a = e(56),
s = e(35),
d = e(9),
c = e(19),
u = e(21),
l = e(7),
A = e(15),
m = A.set,
f = A.getterFor("AggregateError"),
p = function(t, n) {
var e = this;
if (!(e instanceof p)) return new p(t, n);
a && (e = a(new Error(n), o(e)));
var i = [];
return u(t, i.push, i), r ? m(e, {
errors: i,
type: "AggregateError"
}) : e.errors = i, void 0 !== n && l(e, "message", String(n)), e
};
p.prototype = s(Error.prototype, {
constructor: c(5, p),
message: c(5, ""),
name: c(5, "AggregateError")
}), r && d.f(p.prototype, "errors", {
get: function() {
return f(this).errors
},
configurable: !0
}), i({
global: !0
}, {
AggregateError: p
})
}, function(t, n, e) {
e(64)
}, function(t, n, e) {
"use strict";
var i = e(5),
r = e(18),
o = e(22);
i({
target: "Promise",
stat: !0
}, {
try: function(t) {
var n = r.f(this),
e = o(t);
return (e.error ? n.reject : n.resolve)(e.value), n.promise
}
})
}, function(t, n, e) {
"use strict";
var i = e(5),
r = e(13),
o = e(10),
a = e(18),
s = e(22),
d = e(21);
i({
target: "Promise",
stat: !0
}, {
any: function(t) {
var n = this,
e = a.f(n),
i = e.resolve,
c = e.reject,
u = s((function() {
var e = r(n.resolve),
a = [],
s = 0,
u = 1,
l = !1;
d(t, (function(t) {
var r = s++,
d = !1;
a.push(void 0), u++, e.call(n, t).then((function(t) {
d || l || (l = !0, i(t))
}), (function(t) {
d || l || (d = !0, a[r] = t, --u || c(new(o("AggregateError"))(a, "No one promise resolved")))
}))
})), --u || c(new(o("AggregateError"))(a, "No one promise resolved"))
}));
return u.error && c(u.value), e.promise
}
})
}, function(t, n) {
! function(t) {
"use strict";
if (!t.fetch) {
var n = "URLSearchParams" in t,
e = "Symbol" in t && "iterator" in Symbol,
i = "FileReader" in t && "Blob" in t && function() {
try {
return new Blob, !0
} catch (t) {
return !1
}
}(),
r = "FormData" in t,
o = "ArrayBuffer" in t;
if (o) var a = ["[object Int8Array]", "[object Uint8Array]", "[object Uint8ClampedArray]", "[object Int16Array]", "[object Uint16Array]", "[object Int32Array]", "[object Uint32Array]", "[object Float32Array]", "[object Float64Array]"],
s = function(t) {
return t && DataView.prototype.isPrototypeOf(t)
},
d = ArrayBuffer.isView || function(t) {
return t && a.indexOf(Object.prototype.toString.call(t)) > -1
};
f.prototype.append = function(t, n) {
t = l(t), n = A(n);
var e = this.map[t];
this.map[t] = e ? e + "," + n : n
}, f.prototype.delete = function(t) {
delete this.map[l(t)]
}, f.prototype.get = function(t) {
return t = l(t), this.has(t) ? this.map[t] : null
}, f.prototype.has = function(t) {
return this.map.hasOwnProperty(l(t))
}, f.prototype.set = function(t, n) {
this.map[l(t)] = A(n)
}, f.prototype.forEach = function(t, n) {
for (var e in this.map) this.map.hasOwnProperty(e) && t.call(n, this.map[e], e, this)
}, f.prototype.keys = function() {
var t = [];
return this.forEach((function(n, e) {
t.push(e)
})), m(t)
}, f.prototype.values = function() {
var t = [];
return this.forEach((function(n) {
t.push(n)
})), m(t)
}, f.prototype.entries = function() {
var t = [];
return this.forEach((function(n, e) {
t.push([e, n])
})), m(t)
}, e && (f.prototype[Symbol.iterator] = f.prototype.entries);
var c = ["DELETE", "GET", "HEAD", "OPTIONS", "POST", "PUT"];
v.prototype.clone = function() {
return new v(this, {
body: this._bodyInit
})
}, y.call(v.prototype), y.call(k.prototype), k.prototype.clone = function() {
return new k(this._bodyInit, {
status: this.status,
statusText: this.statusText,
headers: new f(this.headers),
url: this.url
})
}, k.error = function() {
var t = new k(null, {
status: 0,
statusText: ""
});
return t.type = "error", t
};
var u = [301, 302, 303, 307, 308];
k.redirect = function(t, n) {
if (-1 === u.indexOf(n)) throw new RangeError("Invalid status code");
return new k(null, {
status: n,
headers: {
location: t
}
})
}, t.Headers = f, t.Request = v, t.Response = k, t.fetch = function(t, n) {
return new Promise((function(e, r) {
var o = new v(t, n),
a = new XMLHttpRequest;
a.onload = function() {
var t, n, i = {
status: a.status,
statusText: a.statusText,
headers: (t = a.getAllResponseHeaders() || "", n = new f, t.replace(/\r?\n[\t ]+/g, " ").split(/\r?\n/).forEach((function(t) {
var e = t.split(":"),
i = e.shift().trim();
if (i) {
var r = e.join(":").trim();
n.append(i, r)
}
})), n)
};
i.url = "responseURL" in a ? a.responseURL : i.headers.get("X-Request-URL");
var r = "response" in a ? a.response : a.responseText;
e(new k(r, i))
}, a.onerror = function() {
r(new TypeError("Network request failed"))
}, a.ontimeout = function() {
r(new TypeError("Network request failed"))
}, a.open(o.method, o.url, !0), "include" === o.credentials ? a.withCredentials = !0 : "omit" === o.credentials && (a.withCredentials = !1), "responseType" in a && i && (a.responseType = "blob"), o.headers.forEach((function(t, n) {
a.setRequestHeader(n, t)
})), a.send(void 0 === o._bodyInit ? null : o._bodyInit)
}))
}, t.fetch.polyfill = !0
}
function l(t) {
if ("string" != typeof t && (t = String(t)), /[^a-z0-9\-#$%&'*+.\^_`|~]/i.test(t)) throw new TypeError("Invalid character in header field name");
return t.toLowerCase()
}
function A(t) {
return "string" != typeof t && (t = String(t)), t
}
function m(t) {
var n = {
next: function() {
var n = t.shift();
return {
done: void 0 === n,
value: n
}
}
};
return e && (n[Symbol.iterator] = function() {
return n
}), n
}
function f(t) {
this.map = {}, t instanceof f ? t.forEach((function(t, n) {
this.append(n, t)
}), this) : Array.isArray(t) ? t.forEach((function(t) {
this.append(t[0], t[1])
}), this) : t && Object.getOwnPropertyNames(t).forEach((function(n) {
this.append(n, t[n])
}), this)
}
function p(t) {
if (t.bodyUsed) return Promise.reject(new TypeError("Already read"));
t.bodyUsed = !0
}
function g(t) {
return new Promise((function(n, e) {
t.onload = function() {
n(t.result)
}, t.onerror = function() {
e(t.error)
}
}))
}
function h(t) {
var n = new FileReader,
e = g(n);
return n.readAsArrayBuffer(t), e
}
function w(t) {
if (t.slice) return t.slice(0);
var n = new Uint8Array(t.byteLength);
return n.set(new Uint8Array(t)), n.buffer
}
function y() {
return this.bodyUsed = !1, this._initBody = function(t) {
if (this._bodyInit = t, t)
if ("string" == typeof t) this._bodyText = t;
else if (i && Blob.prototype.isPrototypeOf(t)) this._bodyBlob = t;
else if (r && FormData.prototype.isPrototypeOf(t)) this._bodyFormData = t;
else if (n && URLSearchParams.prototype.isPrototypeOf(t)) this._bodyText = t.toString();
else if (o && i && s(t)) this._bodyArrayBuffer = w(t.buffer), this._bodyInit = new Blob([this._bodyArrayBuffer]);
else {
if (!o || !ArrayBuffer.prototype.isPrototypeOf(t) && !d(t)) throw new Error("unsupported BodyInit type");
this._bodyArrayBuffer = w(t)
} else this._bodyText = "";
this.headers.get("content-type") || ("string" == typeof t ? this.headers.set("content-type", "text/plain;charset=UTF-8") : this._bodyBlob && this._bodyBlob.type ? this.headers.set("content-type", this._bodyBlob.type) : n && URLSearchParams.prototype.isPrototypeOf(t) && this.headers.set("content-type", "application/x-www-form-urlencoded;charset=UTF-8"))
}, i && (this.blob = function() {
var t = p(this);
if (t) return t;
if (this._bodyBlob) return Promise.resolve(this._bodyBlob);
if (this._bodyArrayBuffer) return Promise.resolve(new Blob([this._bodyArrayBuffer]));
if (this._bodyFormData) throw new Error("could not read FormData body as blob");
return Promise.resolve(new Blob([this._bodyText]))
}, this.arrayBuffer = function() {
return this._bodyArrayBuffer ? p(this) || Promise.resolve(this._bodyArrayBuffer) : this.blob().then(h)
}), this.text = function() {
var t, n, e, i = p(this);
if (i) return i;
if (this._bodyBlob) return t = this._bodyBlob, n = new FileReader, e = g(n), n.readAsText(t), e;
if (this._bodyArrayBuffer) return Promise.resolve(function(t) {
for (var n = new Uint8Array(t), e = new Array(n.length), i = 0; i < n.length; i++) e[i] = String.fromCharCode(n[i]);
return e.join("")
}(this._bodyArrayBuffer));
if (this._bodyFormData) throw new Error("could not read FormData body as text");
return Promise.resolve(this._bodyText)
}, r && (this.formData = function() {
return this.text().then(b)
}), this.json = function() {
return this.text().then(JSON.parse)
}, this
}
function v(t, n) {
var e, i, r = (n = n || {}).body;
if (t instanceof v) {
if (t.bodyUsed) throw new TypeError("Already read");
this.url = t.url, this.credentials = t.credentials, n.headers || (this.headers = new f(t.headers)), this.method = t.method, this.mode = t.mode, r || null == t._bodyInit || (r = t._bodyInit, t.bodyUsed = !0)
} else this.url = String(t);
if (this.credentials = n.credentials || this.credentials || "omit", !n.headers && this.headers || (this.headers = new f(n.headers)), this.method = (e = n.method || this.method || "GET", i = e.toUpperCase(), c.indexOf(i) > -1 ? i : e), this.mode = n.mode || this.mode || null, this.referrer = null, ("GET" === this.method || "HEAD" === this.method) && r) throw new TypeError("Body not allowed for GET or HEAD requests");
this._initBody(r)
}
function b(t) {
var n = new FormData;
return t.trim().split("&").forEach((function(t) {
if (t) {
var e = t.split("="),
i = e.shift().replace(/\+/g, " "),
r = e.join("=").replace(/\+/g, " ");
n.append(decodeURIComponent(i), decodeURIComponent(r))
}
})), n
}
function k(t, n) {
n || (n = {}), this.type = "default", this.status = void 0 === n.status ? 200 : n.status, this.ok = this.status >= 200 && this.status < 300, this.statusText = "statusText" in n ? n.statusText : "OK", this.headers = new f(n.headers), this.url = n.url || "", this._initBody(t)
}
}("undefined" != typeof self ? self : this)
}, function(t, n) {
/*! @source http://purl.eligrey.com/github/classList.js/blob/master/classList.js */
"document" in window.self && ((!("classList" in document.createElement("_")) || document.createElementNS && !("classList" in document.createElementNS("http://www.w3.org/2000/svg", "g"))) && function(t) {
"use strict";
if ("Element" in t) {
var n = t.Element.prototype,
e = Object,
i = String.prototype.trim || function() {
return this.replace(/^\s+|\s+$/g, "")
},
r = Array.prototype.indexOf || function(t) {
for (var n = 0, e = this.length; n < e; n++)
if (n in this && this[n] === t) return n;
return -1
},
o = function(t, n) {
this.name = t, this.code = DOMException[t], this.message = n
},
a = function(t, n) {
if ("" === n) throw new o("SYNTAX_ERR", "An invalid or illegal string was specified");
if (/\s/.test(n)) throw new o("INVALID_CHARACTER_ERR", "String contains an invalid character");
return r.call(t, n)
},
s = function(t) {
for (var n = i.call(t.getAttribute("class") || ""), e = n ? n.split(/\s+/) : [], r = 0, o = e.length; r < o; r++) this.push(e[r]);
this._updateClassName = function() {
t.setAttribute("class", this.toString())
}
},
d = s.prototype = [],
c = function() {
return new s(this)
};
if (o.prototype = Error.prototype, d.item = function(t) {
return this[t] || null
}, d.contains = function(t) {
return -1 !== a(this, t += "")
}, d.add = function() {
var t, n = arguments,
e = 0,
i = n.length,
r = !1;
do {
t = n[e] + "", -1 === a(this, t) && (this.push(t), r = !0)
} while (++e < i);
r && this._updateClassName()
}, d.remove = function() {
var t, n, e = arguments,
i = 0,
r = e.length,
o = !1;
do {
for (t = e[i] + "", n = a(this, t); - 1 !== n;) this.splice(n, 1), o = !0, n = a(this, t)
} while (++i < r);
o && this._updateClassName()
}, d.toggle = function(t, n) {
t += "";
var e = this.contains(t),
i = e ? !0 !== n && "remove" : !1 !== n && "add";
return i && this[i](t), !0 === n || !1 === n ? n : !e
}, d.toString = function() {
return this.join(" ")
}, e.defineProperty) {
var u = {
get: c,
enumerable: !0,
configurable: !0
};
try {
e.defineProperty(n, "classList", u)
} catch (t) {
void 0 !== t.number && -2146823252 !== t.number || (u.enumerable = !1, e.defineProperty(n, "classList", u))
}
} else e.prototype.__defineGetter__ && n.__defineGetter__("classList", c)
}
}(window.self), function() {
"use strict";
var t = document.createElement("_");
if (t.classList.add("c1", "c2"), !t.classList.contains("c2")) {
var n = function(t) {
var n = DOMTokenList.prototype[t];
DOMTokenList.prototype[t] = function(t) {
var e, i = arguments.length;
for (e = 0; e < i; e++) t = arguments[e], n.call(this, t)
}
};
n("add"), n("remove")
}
if (t.classList.toggle("c3", !1), t.classList.contains("c3")) {
var e = DOMTokenList.prototype.toggle;
DOMTokenList.prototype.toggle = function(t, n) {
return 1 in arguments && !this.contains(t) == !n ? n : e.call(this, t)
}
}
t = null
}())
}, function(t, n, e) {
"use strict";
e.r(n);
var i = e(65),
r = e.n(i),
o = e(66),
a = e.n(o);
e(108), e(109);
void 0 === Object.assign && (Object.assign = r.a), "undefined" == typeof Promise && (window.Promise = a.a);
var s, d, c, u = e(11),
l = e.n(u),
A = {
ready: "pokiAppReady",
adblocked: "pokiAppAdblocked",
ads: {
completed: "pokiAdsCompleted",
error: "pokiAdsError",
impression: "pokiAdsImpression",
durationChange: "pokiAdsDurationChange",
limit: "pokiAdsLimit",
ready: "pokiAdsReady",
requested: "pokiAdsRequested",
prebidRequested: "pokiAdsPrebidRequested",
skipped: "pokiAdsSkipped",
started: "pokiAdsStarted",
stopped: "pokiAdsStopped",
busy: "pokiAdsBusy",
position: {
preroll: "PP",
midroll: "PM",
rewarded: "PR",
display: "DP"
},
video: {
clicked: "pokiVideoAdsClicked",
firstQuartile: "pokiVideoAdsFirstQuartile",
midPoint: "pokiVideoAdsMidPoint",
thirdQuartile: "pokiVideoAdsThirdQuartile",
error: "pokiVideoAdsError",
loaderError: "pokiVideoAdsLoaderError",
paused: "pokiVideoAdsPauseTriggered",
resumed: "pokiVideoAdsResumedTriggered",
progress: "pokiVideoAdsProgress",
buffering: "pokiVideoAdsBuffering"
}
},
info: {
messages: {
timeLimit: "The ad-request was not processed, because of a time constraint",
prerollLimit: "The ad-request was cancelled, because we're not allowed to show a preroll"
}
},
message: {
event: "pokiMessageEvent",
sdkDetails: "pokiMessageSdkDetails",
toggleProgrammaticAds: "pokiMessageToggleProgrammaticAds"
},
tracking: {
custom: "pokiTrackingCustom",
setPlayerAge: "pokiTrackingSetPlayerAge",
togglePlayerAdvertisingConsent: "pokiTrackingTogglePlayerAdvertisingConsent",
debugTrueInProduction: "pokiMessageDebugTrueProduction",
screen: {
gameplayStart: "pokiTrackingScreenGameplayStart",
gameplayStop: "pokiTrackingScreenGameplayStop",
gameLoadingStarted: "pokiTrackingScreenGameLoadingStarted",
gameLoadingProgress: "pokiTrackingScreenGameLoadingProgress",
gameLoadingFinished: "pokiTrackingScreenGameLoadingFinished",
commercialBreak: "pokiTrackingScreenCommercialBreak",
rewardedBreak: "pokiTrackingScreenRewardedBreak",
happyTime: "pokiTrackingScreenHappyTime",
firstRound: "pokiTrackingScreenFirstRound",
roundStart: "pokiTrackingScreenRoundStart",
roundEnd: "pokiTrackingScreenRoundEnd",
gameInteractive: "pokiTrackingScreenGameInteractive",
displayAd: "pokiTrackingScreenDisplayAdRequest",
destroyAd: "pokiTrackingScreenDisplayAdDestroy"
},
sdk: {
status: {
initialized: "pokiTrackingSdkStatusInitialized",
failed: "pokiTrackingSdkStatusFailed"
}
},
ads: {
status: {
busy: "pokiTrackingAdsStatusBusy",
completed: "pokiTrackingAdsStatusCompleted",
error: "pokiTrackingAdsStatusError",
displayError: "pokiTrackingAdsStatusDisplayError",
impression: "pokiTrackingAdsStatusImpression",
limit: "pokiTrackingAdsStatusLimit",
ready: "pokiTrackingAdsStatusReady",
requested: "pokiTrackingAdsStatusRequested",
prebidRequested: "pokiTrackingAdsStatusPrebidRequested",
skipped: "pokiTrackingAdsStatusSkipped",
started: "pokiTrackingAdsStatusStarted",
buffering: "pokiTrackingAdsStatusBuffering"
},
video: {
clicked: "pokiTrackingAdsVideoClicked",
error: "pokiTrackingAdsVideoError",
loaderError: "pokiTrackingAdsVideoLoaderError"
},
display: {
requested: "pokiTrackingScreenDisplayAdRequested",
impression: "pokiTrackingScreenDisplayAdImpression",
viewable: "pokiTrackingScreenDisplayAdViewable"
}
}
}
},
m = function() {
return (m = Object.assign || function(t) {
for (var n, e = 1, i = arguments.length; e < i; e++)
for (var r in n = arguments[e]) Object.prototype.hasOwnProperty.call(n, r) && (t[r] = n[r]);
return t
}).apply(this, arguments)
},
f = function() {
function t() {}
return t.clearEventListeners = function() {
this.listeners = {}
}, t.removeEventListener = function(t, n) {
if (Object.prototype.hasOwnProperty.call(this.listeners, t)) {
var e = this.listeners[t].indexOf(n); - 1 !== e && this.listeners[t].splice(e, 1)
}
}, t.addEventListener = function(t, n, e) {
var i = this;
if (void 0 === e && (e = !1), e = !!e, Object.prototype.hasOwnProperty.call(this.listeners, t) || (this.listeners[t] = []), e) {
var r = function(e) {
i.removeEventListener.bind(i)(t, r), n(e)
};
this.listeners[t].push(r)
} else this.listeners[t].push(n)
}, t.dispatchEvent = function(t, n) {
void 0 === n && (n = {}), !this.debug || window.process && window.process.env && "test" === window.process.env.NODE_ENV || console.info(t, n);
for (var e = Object.keys(this.listeners), i = 0; i < e.length; i++) {
var r = e[i];
if (t === r)
for (var o = this.listeners[r], a = 0; a < o.length; a++) o[a](m(m({}, this.dataAnnotations), n))
}
}, t.setDebug = function(t) {
this.debug = t
}, t.setDataAnnotations = function(t) {
this.dataAnnotations = m(m({}, this.dataAnnotations), t)
}, t.getDataAnnotations = function() {
return this.dataAnnotations
}, t.clearAnnotations = function() {
this.dataAnnotations = {}
}, t.listeners = {}, t.debug = !1, t.dataAnnotations = {}, t
}(),
p = function(t, n) {
var e = !1;
return Object.keys(n).forEach((function(i) {
n[i] === t && (e = !0)
})), e
},
g = function() {
function t() {}
return t.sendMessage = function(t, n) {
void 0 === n && (n = {});
var e = window.parent;
if (!p(t, A.message)) {
var i = Object.keys(A.message).map((function(t) {
return "poki.message." + t
}));
throw new TypeError("Argument 'type' must be one of " + i.join(", "))
}
e.postMessage({
type: t,
content: n
}, "*")
}, t
}(),
h = function(t) {
var n = new Array;
return Object.keys(t).forEach((function(e) {
"object" == typeof t[e] ? n = n.concat(h(t[e])) : n.push(t[e])
})), n
},
w = h(A.tracking),
y = function() {
function t() {}
return t.setDebug = function(t) {
this.debug = t
}, t.track = function(t, n) {
if (void 0 === n && (n = {}), -1 === w.indexOf(t)) throw new TypeError("Invalid 'event', must be one of " + w.join(", "));
if ("object" != typeof n) throw new TypeError("Invalid data, must be an object");
if (this.debug) {
if (window.process && window.process.env && "test" === window.process.env.NODE_ENV) return;
Object.keys(n).length ? console.info("%cPOKI_TRACKER: %cTracked event '" + t + "' with data:", "font-weight: bold", "", n) : console.info("%cPOKI_TRACKER: %cTracked event '" + t + "'", "font-weight: bold", "")
}
g.sendMessage(A.message.event, {
event: t,
data: n
})
}, t.setupDefaultEvents = function() {
var n, e = ((n = {})[A.ready] = A.tracking.sdk.status.initialized, n[A.adblocked] = A.tracking.sdk.status.failed, n[A.ads.busy] = A.tracking.ads.status.busy, n[A.ads.completed] = A.tracking.ads.status.completed, n[A.ads.error] = A.tracking.ads.status.error, n[A.ads.displayError] = A.tracking.ads.status.displayError, n[A.ads.impression] = A.tracking.ads.status.impression, n[A.ads.limit] = A.tracking.ads.status.limit, n[A.ads.ready] = A.tracking.ads.status.ready, n[A.ads.requested] = A.tracking.ads.status.requested, n[A.ads.prebidRequested] = A.tracking.ads.status.prebidRequested, n[A.ads.skipped] = A.tracking.ads.status.skipped, n[A.ads.started] = A.tracking.ads.status.started, n[A.ads.video.clicked] = A.tracking.ads.video.clicked, n[A.ads.video.error] = A.tracking.ads.video.error, n[A.ads.video.loaderError] = A.tracking.ads.video.loaderError, n[A.ads.video.buffering] = A.tracking.ads.status.buffering, n[A.tracking.screen.gameplayStart] = A.tracking.screen.gameplayStart, n[A.tracking.screen.gameplayStop] = A.tracking.screen.gameplayStop, n[A.tracking.screen.loadingProgress] = A.tracking.screen.loadingProgress, n[A.tracking.screen.commercialBreak] = A.tracking.screen.commercialBreak, n[A.tracking.screen.rewardedBreak] = A.tracking.screen.rewardedBreak, n[A.tracking.screen.happyTime] = A.tracking.screen.happyTime, n);
Object.keys(e).forEach((function(n) {
f.addEventListener(n, (function(i) {
t.track(e[n], i)
}))
}))
}, t.debug = !1, t
}(),
v = {
adTagUrl: "//pubads.g.doubleclick.net/gampad/ads?sz=640x360|640x480&iu=/1053551/Pub-Poki-Generic&ciu_szs&impl=s&gdfp_req=1&env=vp&output=xml_vast2&unviewed_position_start=1&url={url}&description_url={descriptionUrl}&correlator={timestamp}",
adTiming: {
preroll: !1,
timeBetweenAds: 12e4,
timePerTry: 7e3,
startAdsAfter: 12e4
},
waterfallRetries: 2,
country: "NL"
},
b = function(t) {
return t instanceof Array ? t : [t]
},
k = function() {
function t(t) {
void 0 === t && (t = {}), this.setTimings(t), this.timingIdx = {
timePerTry: 0
}, this.timers = {
timePerTry: void 0,
timeBetweenAds: void 0,
startAdsAfter: void 0
}, f.addEventListener(A.ads.requested, this.startTimeBetweenAdsTimer.bind(this)), f.addEventListener(A.ads.completed, this.startTimeBetweenAdsTimer.bind(this)), f.addEventListener(A.ads.stopped, this.startTimeBetweenAdsTimer.bind(this))
}
return t.prototype.setTimings = function(t) {
var n = v.adTiming,
e = t.preroll,
i = void 0 === e ? n.preroll : e,
r = t.timePerTry,
o = void 0 === r ? n.timePerTry : r,
a = t.timeBetweenAds,
s = void 0 === a ? n.timeBetweenAds : a,
d = t.startAdsAfter,
c = void 0 === d ? n.startAdsAfter : d;
this.timings = {
preroll: !1 !== i,
timePerTry: b(o),
timeBetweenAds: s,
startAdsAfter: c
}
}, t.prototype.startTimeBetweenAdsTimer = function() {
this.startTimer("timeBetweenAds")
}, t.prototype.startStartAdsAfterTimer = function() {
this.startTimer("startAdsAfter")
}, t.prototype.requestPossible = function() {
return !this.timers.timeBetweenAds && !this.timers.startAdsAfter
}, t.prototype.startWaterfallTimer = function(t) {
this.startTimer("timePerTry", t)
}, t.prototype.stopWaterfallTimer = function() {
this.stopTimer("timePerTry")
}, t.prototype.nextWaterfallTimer = function() {
this.nextTiming("timePerTry")
}, t.prototype.resetWaterfallTimerIdx = function() {
this.resetTimingIdx("timePerTry")
}, t.prototype.stopTimer = function(t) {
this.timers[t] && (clearTimeout(this.timers[t]), this.timers[t] = void 0)
}, t.prototype.startTimer = function(t, n) {
var e = this;
void 0 === n && (n = function() {}), this.getTiming(t) <= 0 ? n() : (this.timers[t] && clearTimeout(this.timers[t]), this.timers[t] = setTimeout((function() {
e.stopTimer(t), n()
}), this.getTiming(t)))
}, t.prototype.getTiming = function(t) {
var n = this.timings[t];
return n instanceof Array ? n[this.timingIdx[t]] : n
}, t.prototype.nextTiming = function(t) {
if (void 0 === this.timingIdx[t]) throw new Error("AdTimings Error: " + t + " does not have multiple timers");
this.timingIdx[t] = (this.timingIdx[t] + 1) % this.timings[t].length
}, t.prototype.resetTimingIdx = function(t) {
if (void 0 === this.timingIdx[t]) throw new Error("AdTimings Error: " + t + " does not have multiple timers");
this.timingIdx[t] = 0
}, t.prototype.prerollPossible = function() {
return this.timings.preroll
}, t
}(),
S = function() {
return window.location.href
},
E = function() {
return "undefined" != typeof navigator && /(?:phone|windows\s+phone|ipod|blackberry|(?:android|bb\d+|meego|silk|googlebot) .+? mobile|palm|windows\s+ce|opera\smini|avantgo|mobilesafari|docomo)/i.test(navigator.userAgent)
},
x = function() {
return "undefined" != typeof navigator && /(?:ipad|playbook|(?:android|bb\d+|meego|silk)(?! .+? mobile))/i.test(navigator.userAgent)
},
T = function(t, n) {
if ("undefined" == typeof window) return "";
t = t.replace(/[\[]/, "\\[").replace(/[\]]/, "\\]");
var e = new RegExp("[\\?&]" + t + "=([^&#]*)").exec(n || window.location.search);
return null === e ? "" : decodeURIComponent(e[1].replace(/\+/g, " "))
},
z = function() {
return "undefined" != typeof navigator && /MSIE \\d|Trident.*rv:/i.test(navigator.userAgent)
},
C = {
1: "eNjDw1AVTr",
2: "HkuQJaWnBa",
3: "AfRKClvdYk",
4: "Db7uYbsnlW",
5: "UprdYKe74r",
6: "eHFDjD5npr",
7: "mm1jSFJjLl",
8: "tJ44vpLpuM",
9: "mF5ASaga4A",
10: "rKV8rMwiwk",
11: "SvK8BH5qS5",
12: "qjcaVGp8Hs",
13: "ysxIcmt3tW",
14: "fz6aK9wMQe",
15: "RU6ebIFLw9",
16: "r9G4tVMYw7",
17: "SgcDa5B8s1",
18: "9wDNMnChv6",
19: "DNZX8XdJXV",
20: "39o4YUyZTX",
21: "5sb2HFpz5a",
22: "pgXzCJZipE",
23: "Oani8EAGI9",
24: "IzCeh7d7vW",
25: "I5vRNtjoMr",
26: "KpySvG7luq",
27: "dK42J4rI14",
28: "HuYorw3fRg",
29: "mf84cGYc1h",
30: "I2v6sQKXVD",
31: "lBzSdVGY8F",
32: "hKYgk9Wb8q",
33: "xPBr8E54eE",
34: "ZvIK2WKC7G",
35: "7kiYi3zlIX",
36: "VpygYMTDgm",
37: "mis9Mt4np4",
38: "451KJIoEIh",
41: "Fqmjp9Hit3",
42: "lS2XGg058L",
43: "3uFf2PlICy",
46: "voeIq5uRvl",
47: "21OybbiIdc",
48: "9i3RwPHzWW",
49: "CMVoMvvEmu",
50: "IoQrhRb3wU"
},
I = function(t) {
return C[t] || ""
},
_ = function() {
try {
return window.self !== window.top
} catch (t) {
return !0
}
},
B = function() {
return (B = Object.assign || function(t) {
for (var n, e = 1, i = arguments.length; e < i; e++)
for (var r in n = arguments[e]) Object.prototype.hasOwnProperty.call(n, r) && (t[r] = n[r]);
return t
}).apply(this, arguments)
},
P = function() {
for (var t = 0, n = 0, e = arguments.length; n < e; n++) t += arguments[n].length;
var i = Array(t),
r = 0;
for (n = 0; n < e; n++)
for (var o = arguments[n], a = 0, s = o.length; a < s; a++, r++) i[r] = o[a];
return i
},
D = (s = parseInt(T("site_id"), 10) || 0, d = z() || E() || x() ? ["video/mp4"] : ["video/mp4", "video/webm", "video/ogg"], {
bids: [{
bidder: "appnexus",
params: B(B({
placementId: 13184250,
maxduration: 15
}, c = {
allowSmallerSizes: !0,
frameworks: [2],
h: 480,
w: 640,
video: {
playback_method: ["auto_play_sound_on", "auto_play_sound_off", "auto_play_sound_unknown"]
}
}), {
video: B(B({}, c.video), {
skippable: !0
})
})
}, {
bidder: "appnexus",
params: B(B({
placementId: 13184309,
maxduration: 15
}, c), {
video: B(B({}, c.video), {
skippable: !1,
maxduration: 15
})
})
}, {
bidder: "openx",
params: {
unit: "540105196",
delDomain: "poki-d.openx.net",
openrtb: {
imp: [{
video: {
mimes: [d.join(",")],
protocols: [2, 3, 5, 6, 7, 8],
maxduration: 15,
skip: 1,
skipafter: 5,
w: 640,
h: 480
}
}]
}
}
}, {
bidder: "openx",
params: {
unit: "540719065",
delDomain: "poki-d.openx.net",
openrtb: {
imp: [{
video: {
mimes: [d.join(",")],
protocols: [2, 3, 5, 6, 7, 8],
maxduration: 15,
skip: 0,
w: 640,
h: 480
}
}]
}
}
}, {
bidder: "districtm",
params: B(B({
placementId: 12906789,
maxduration: 15
}, c), {
video: B(B({}, c.video), {
skippable: !1,
maxduration: 15
})
})
}, {
bidder: "spotx",
params: {
channel_id: "265590",
ad_unit: "instream",
secure: !0,
mimes: d,
hide_skin: !0
}
}, {
bidder: "ix",
params: {
siteId: "436284",
size: [640, 480],
video: {
mimes: d,
protocols: [2, 3, 5, 6, 7, 8],
minduration: 0,
maxduration: 15,
api: [1, 2]
}
}
}, {
bidder: "richaudience",
params: {
pid: I(s),
supplyType: "site"
}
}],
mediaTypes: {
video: {
context: "instream",
playerSize: [640, 480],
mimes: d,
protocols: [2, 3, 5, 6, 7, 8],
maxduration: 15,
skip: 1,
linearity: 1,
api: [2]
}
}
}),
L = [{
code: "video",
mediaTypes: D.mediaTypes,
bids: P(D.bids, [{
bidder: "rubicon",
params: {
accountId: "18608",
siteId: "266914",
zoneId: "1322034",
video: {
size_id: 204
}
}
}])
}, {
code: "rewarded",
mediaTypes: D.mediaTypes,
bids: P(D.bids, [{
bidder: "rubicon",
params: {
accountId: "18608",
siteId: "266916",
zoneId: "1322048",
video: {
size_id: 202
}
}
}])
}],
O = {
EUR: {
EUR: 1,
GBP: .858595,
USD: 1.13151
},
GBP: {
EUR: 1.164693481792929,
GBP: 1,
USD: 1.3178623215835172
},
USD: {
EUR: .8837747788353616,
GBP: .7588046062341472,
USD: 1
}
},
j = {
debug: !1,
enableSendAllBids: !0,
usePrebidCache: !0,
bidderTimeout: 1500,
priceGranularity: {
buckets: [{
precision: 2,
min: .01,
max: 3,
increment: .01
}, {
precision: 2,
min: 3,
max: 8,
increment: .05
}, {
precision: 2,
min: 8,
max: 20,
increment: .5
}, {
precision: 2,
min: 20,
max: 45,
increment: 1
}]
},
currency: {
adServerCurrency: "EUR",
rates: O,
defaultRates: O,
bidderCurrencyDefault: {
openx: "EUR"
}
},
cache: {
url: "https://prebid.adnxs.com/pbc/v1/cache"
},
userSync: {
filterSettings: {
all: {
bidders: "*",
filter: "include"
}
},
syncsPerBidder: 1e3,
syncDelay: 100,
userIds: [{
name: "pubCommonId",
storage: {
type: "cookie",
name: "poki_pubcid",
expires: 365
}
}]
}
},
R = !1,
M = function() {
! function() {
if (!window.__tcfapi) {
var t = {};
window.__tcfapi = function(n, e, i, r) {
if (!kt.GetIsPokiIFrame() && !_()) return i({
msg: "CMP not found"
}, !1), void console.error("A TCFv2 compliant CMP should be added to this game");
var o = Math.random(),
a = {
__tcfapiCall: {
command: n,
parameter: r,
version: e,
callId: o
}
};
t[o] = i, window.parent.postMessage(a, "*")
}, window.addEventListener("message", (function(n) {
var e = {};
try {
e = "string" == typeof n.data ? JSON.parse(n.data) : n.data
} catch (t) {}
var i = e.__tcfapiReturn;
i && "function" == typeof t[i.callId] && (t[i.callId](i.returnValue, i.success), t[i.callId] = null)
}), !1)
}
}(), window.pbjs.que.push((function() {
window.pbjs.setConfig({
consentManagement: {
gdpr: {
cmpApi: "iab",
timeout: 8e3,
defaultGdprScope: !0
}
}
})
}))
};
function Z(t) {
try {
var n = window.pbjs.getBidResponsesForAdUnitCode(t).bids;
window.pokiAuctionsSeen || (window.pokiAuctionsSeen = {}), window.pokiAuctionsSeen[t] || (window.pokiAuctionsSeen[t] = {});
var e = 0;
if (n) {
for (var i = 0; i < n.length; i++)
if (!window.pokiAuctionsSeen[t][n[i].auctionId]) {
var r = n[i].cpm;
r && r > e && (e = r)
}
for (i = 0; i < n.length; i++) window.pokiAuctionsSeen[t][n[i].auctionId] = !0
}
return e
} catch (t) {
console.error(t)
}
return 0
}
var G = function() {
function t(t, n) {
void 0 === n && (n = {}), this.retries = 0, this.running = !1, this.ima = t, this.siteID = n.siteID || 3, 0 === n.siteID && (n.siteID = 3), this.totalRetries = n.totalRetries || v.waterfallRetries || 1, this.timing = n.timing || new k(v.adTiming), this.overwriteAdTagUrls = n.adTagUrl ? b(n.adTagUrl) : [], f.addEventListener(A.ads.video.error, this.moveThroughWaterfall.bind(this)), f.addEventListener(A.ads.video.loaderError, this.moveThroughWaterfall.bind(this)), f.addEventListener(A.ads.ready, this.timing.stopWaterfallTimer.bind(this.timing)), f.addEventListener(A.ads.started, this.stopWaterfall.bind(this))
}
return t.prototype.moveThroughWaterfall = function() {
if (!1 !== this.running) {
if (this.timing.stopWaterfallTimer(), this.retries < this.totalRetries) return this.timing.nextWaterfallTimer(), void this.requestAd();
this.running = !1, this.timing.resetWaterfallTimerIdx(), f.dispatchEvent(A.ads.error, {
message: "No ads"
})
}
}, t.prototype.cutOffWaterfall = function() {
this.ima.tearDown(), this.moveThroughWaterfall()
}, t.prototype.buildAdTagUrls = function(t) {
var n = "&ciu_szs&impl=s&gdfp_req=1&env=vp&output=vast&unviewed_position_start=1&url={url}&description_url={descriptionUrl}&correlator={timestamp}";
if (this.debug) {
var e = "https://securepubads.g.doubleclick.net/gampad/ads?sz=640x360|640x480&iu=/21682198607/debug-video/";
return t === A.ads.position.rewarded ? [e + "debug-video-rewarded" + n] : t === A.ads.position.preroll ? [e + "debug-video-preroll" + n] : [e + "debug-video-midroll" + n]
}
if (this.overwriteAdTagUrls.length > 0 && kt.GetIsPokiPlatform()) return this.overwriteAdTagUrls;
var i = "desktop",
r = "midroll";
E() ? i = "mobile" : x() && (i = "tablet"), t === A.ads.position.rewarded && (r = "rewarded");
var o = "https://securepubads.g.doubleclick.net/gampad/ads?sz=640x360|640x480&iu=/21682198607/";
return kt.GetIsPokiIFrame() ? ["" + o + i + "_ingame_" + r + "_1/" + this.siteID + "_" + i + "_ingame_" + r + "_1" + n, "" + o + i + "_ingame_" + r + "_2/" + this.siteID + "_" + i + "_ingame_" + r + "_2" + n] : [o + "external_" + i + "_video_1/external_" + i + "_ingame_" + r + "_1" + n, o + "external_" + i + "_video_2/external_" + i + "_ingame_" + r + "_2" + n]
}, t.prototype.start = function(t, n) {
void 0 === t && (t = {}), this.running = !0, this.retries = 0, this.criteria = t, this.timing.resetWaterfallTimerIdx(), this.rewarded = n === A.ads.position.rewarded, this.adTagUrls = this.buildAdTagUrls(n), this.requestAd()
}, t.prototype.requestAd = function() {
this.timing.startWaterfallTimer(this.cutOffWaterfall.bind(this)), this.retries++, kt.GetIsPokiPlatform() || (this.criteria.waterfall = this.retries);
var t = (this.retries - 1) % this.adTagUrls.length,
n = this.adTagUrls[t];
kt.consentString && kt.consentString.length > 0 && (this.criteria.consent_string = kt.consentString);
var e, i, r = function(t) {
var n = S().split("?"),
e = encodeURIComponent(n[0]);
return t = (t = t.split("{descriptionUrl}").join(e)).split("{timestamp}").join((new Date).getTime().toString())
}(n) + (e = this.criteria, i = "", Object.keys(e).forEach((function(t) {
if (Object.prototype.hasOwnProperty.call(e, t)) {
var n = e[t];
Array.isArray(n) && (n = n.join()), i += t + "=" + n + "&"
}
})), "&cust_params=" + (i = encodeURIComponent(i)) + "&");
kt.childDirected && (r += "&tfcd=1"), kt.nonPersonalized && (r += "&npa=1"), f.setDataAnnotations({
adTagUrl: r,
waterfall: this.retries
}), f.dispatchEvent(A.ads.requested), 1 !== this.retries || E() || x() ? (console.debug("adRequest started in plain mode"), this.ima.requestAd(r)) : (console.debug("adRequest started with Prebid Video enabled"), function(t, n, e, i) {
if (window.pbjs && window.pbjs.que && window.pbjs.getConfig) {
var r, o = S().split("?"),
a = encodeURIComponent(o[0]),
s = i ? "rewarded" : "video",
d = 1,
c = function() {
if (!(--d > 0)) try {
f.dispatchEvent(A.ads.prebidRequested);
var i = window.pbjs.adUnits.filter((function(t) {
return t.code === s
}))[0];
if ("undefined" === i) return console.error("Video-ad-unit not found, did you give it the adunit.code='video' value?"), void t.requestAd(n);
var o = window.pbjs.adServers.dfp.buildVideoUrl({
adUnit: i,
params: {
iu: T("iu", n),
sz: "640x360|640x480",
output: "vast",
cust_params: e,
description_url: a
}
});
window.pbjs.markWinningBidAsUsed({
adUnitCode: s
}), r && (o = o.replace("cust_params=", "cust_params=" + r + "%26")), t.requestAd(o)
} catch (e) {
t.requestAd(n)
}
};
R && (d++, window.apstag.fetchBids({
slots: [{
slotID: i ? "Rewarded" : "Midroll",
mediaType: "video"
}],
timeout: j.bidderTimeout
}, (function(t) {
t.length > 0 && (r = t[0].encodedQsParams), c()
}))), window.pbjs.que.push((function() {
window.pbjs.requestBids({
adUnitCodes: [s],
bidsBackHandler: function() {
c()
}
})
}))
} else t.requestAd(n)
}(this.ima, r, this.criteria, this.rewarded))
}, t.prototype.isRunning = function() {
return this.running
}, t.prototype.stopWaterfall = function() {
this.running = !1, this.timing.stopWaterfallTimer(), this.timing.resetWaterfallTimerIdx()
}, t.prototype.setDebug = function(t) {
this.debug = t
}, t
}(),
N = "pokiSdkPauseButton",
F = "pokiSdkProgressBar",
X = "pokiSdkSpinnerContainer",
U = "pokiSdkVisible",
Q = function() {
function t(t) {
var n = this;
if (this.hideElement = function(t) {
t.classList.add("pokiSdkHidden"), t.classList.remove(U)
}, this.showElement = function(t) {
t.classList.add(U), t.classList.remove("pokiSdkHidden")
}, this.wrapper = t.wrapper, f.addEventListener(A.ads.video.progress, (function(t) {
var e = t.currentTime / t.duration * 100;
e < 100 && (n.progressBar.style.width = e + "%")
})), this.wrapper instanceof HTMLElement || (console.error("POKI-SDK: wrapper is not a HTMLElement, falling back to document.body"), this.wrapper = document.body), this.createElements(), "undefined" != typeof window && document) {
var e = document.createElement("style");
e.innerHTML = "\n@font-face {\n\tfont-display: swap;\n\tfont-family: 'Proxima Nova';\n\tfont-weight: 700;\n\tsrc: url(https://a.poki.com/fonts/proxima-nova-bold-latin.woff2) format('woff2'), url(https://a.poki.com/fonts/proxima-nova-bold-latin.woff) format('woff');\n\tunicode-range: U+0020-007F, U+00A0-00FF\n}\n\n@font-face {\n\tfont-display: swap;\n\tfont-family: 'Proxima Nova';\n\tfont-weight: 700;\n\tsrc: url(https://a.poki.com/fonts/proxima-nova-bold-latin-ext-a.woff2) format('woff2'), url(https://a.poki.com/fonts/proxima-nova-bold-latin-ext-a.woff) format('woff');\n\tunicode-range: U+0100-017F\n}\n\n@font-face {\n\tfont-display: swap;\n\tfont-family: 'Proxima Nova';\n\tfont-weight: 700;\n\tsrc: url(https://a.poki.com/fonts/proxima-nova-bold-latin-ext-b.woff2) format('woff2'), url(https://a.poki.com/fonts/proxima-nova-bold-latin-ext-b.woff) format('woff');\n\tunicode-range: U+0180-024F\n}\n\n.pokiSdkContainer {\n\toverflow: hidden;\n\tposition: absolute;\n\tleft: 0;\n\ttop: 0;\n\twidth: 100%;\n\theight: 100%;\n\tz-index: 1000;\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: center;\n}\n\n.pokiSdkContainer.pokiSdkFixed {\n\tposition: fixed;\n}\n\n.pokiSdkContainer.pokiSdkVisible {\n\tdisplay: block;\n}\n\n.pokiSdkContainer.pokiSdkHidden, .pokiSdkSpinnerContainer.pokiSdkHidden {\n\tdisplay: none;\n}\n\n.pokiSdkContainer.pokiSdkHidden, .pokiSdkSpinnerContainer, .pokiSdkSpinnerContainer div, .pokiSdkSpinnerContainer img {\n\tpointer-events: none;\n}\n\n.pokiSdkInsideContainer {\n\tbackground: #000;\n\tposition: relative;\n\tz-index: 1;\n\twidth: 100%;\n\theight: 100%;\n\tdisplay: flex;\n\tflex-direction: column;\n\n\topacity: 0;\n\t-webkit-transition: opacity 0.5s ease-in-out;\n\t-moz-transition: opacity 0.5s ease-in-out;\n\t-ms-transition: opacity 0.5s ease-in-out;\n\t-o-transition: opacity 0.5s ease-in-out;\n\ttransition: opacity 0.5s ease-in-out;\n}\n\n.pokiSdkContainer.pokiSdkVisible .pokiSdkInsideContainer {\n\topacity: 1;\n}\n\n.pokiSDKAdContainer, .pokiSdkVideoContainer {\n\tposition: absolute;\n\twidth: 100%;\n\theight: 100%;\n}\n\n.pokiSdkStartAdButton, .pokiSdkPauseButton {\n\tposition: absolute;\n\tz-index: 9999;\n\ttop: 0;\n\n\tpadding-top: 10%;\n\twidth: 100%;\n\theight: 100%;\n\ttext-align: center;\n\tcolor: #FFF;\n\n\tfont: 700 16pt 'Proxima Nova', sans-serif;\n\tfont-weight: bold;\n\tletter-spacing: 1px;\n\ttransition: 0.1s ease-in-out;\n\tline-height: 1em;\n}\n\n.pokiSdkProgressContainer {\n\tbackground: #002B50;\n\twidth: 100%;\n\theight: 5px;\n\tposition: absolute;\n\tbottom: 0;\n\tz-index: 9999;\n}\n\n.pokiSdkProgressBar {\n\tposition:relative;\n\tbottom:0px;\n\tbackground: #009CFF;\n\theight: 100%;\n\twidth: 0%;\n\ttransition: width 0.5s;\n\ttransition-timing-function: linear;\n}\n\n.pokiSdkProgressBar.pokiSdkVisible, .pokiSdkPauseButton.pokiSdkVisible, .pokiSdkStartAdButton.pokiSdkVisible {\n\tdisplay: block;\n\tpointer-events: auto;\n}\n\n.pokiSdkProgressBar.pokiSdkHidden, .pokiSdkPauseButton.pokiSdkHidden, .pokiSdkStartAdButton.pokiSdkHidden {\n\tdisplay: none;\n\tpointer-events: none;\n}\n\n\n@keyframes gwd-gen-no02gwdanimation_gwd-keyframes{0%{opacity:0;transform:translate3d(0,0,0);-webkit-transform:translate3d(0,0,0);-moz-transform:translate3d(0,0,0);animation-timing-function:step-end;-webkit-animation-timing-function:step-end;-moz-animation-timing-function:step-end}25%{transform:translate3d(0,0,0);-webkit-transform:translate3d(0,0,0);-moz-transform:translate3d(0,0,0);animation-timing-function:step-end;-webkit-animation-timing-function:step-end;-moz-animation-timing-function:step-end}35%{opacity:1;transform:translate3d(0,0,0);-webkit-transform:translate3d(0,0,0);-moz-transform:translate3d(0,0,0);animation-timing-function:step-end;-webkit-animation-timing-function:step-end;-moz-animation-timing-function:step-end}40%{opacity:0;transform:translate3d(0,0,0);-webkit-transform:translate3d(0,0,0);-moz-transform:translate3d(0,0,0);animation-timing-function:linear;-webkit-animation-timing-function:linear;-moz-animation-timing-function:linear}100%{opacity:0;transform:translate3d(0,0,0);-webkit-transform:translate3d(0,0,0);-moz-transform:translate3d(0,0,0);animation-timing-function:linear;-webkit-animation-timing-function:linear;-moz-animation-timing-function:linear}}@-webkit-keyframes gwd-gen-no02gwdanimation_gwd-keyframes{0%{opacity:0;-webkit-transform:translate3d(0,0,0);-webkit-animation-timing-function:step-end}25%{-webkit-transform:translate3d(0,0,0);-webkit-animation-timing-function:step-end}35%{opacity:1;-webkit-transform:translate3d(0,0,0);-webkit-animation-timing-function:step-end}40%{opacity:0;-webkit-transform:translate3d(0,0,0);-webkit-animation-timing-function:linear}100%{opacity:0;-webkit-transform:translate3d(0,0,0);-webkit-animation-timing-function:linear}}@-moz-keyframes gwd-gen-no02gwdanimation_gwd-keyframes{0%{opacity:0;-moz-transform:translate3d(0,0,0);-moz-animation-timing-function:step-end}25%{-moz-transform:translate3d(0,0,0);-moz-animation-timing-function:step-end}35%{opacity:1;-moz-transform:translate3d(0,0,0);-moz-animation-timing-function:step-end}40%{opacity:0;-moz-transform:translate3d(0,0,0);-moz-animation-timing-function:linear}100%{opacity:0;-moz-transform:translate3d(0,0,0);-moz-animation-timing-function:linear}}[data-gwd-group=SpinnerGroup] .gwd-gen-no02gwdanimation{animation:gwd-gen-no02gwdanimation_gwd-keyframes 2s linear 0s infinite normal forwards;-webkit-animation:gwd-gen-no02gwdanimation_gwd-keyframes 2s linear 0s infinite normal forwards;-moz-animation:gwd-gen-no02gwdanimation_gwd-keyframes 2s linear 0s infinite normal forwards}@keyframes gwd-gen-4pvrgwdanimation_gwd-keyframes{0%{opacity:0;transform:translate3d(0,0,0);-webkit-transform:translate3d(0,0,0);-moz-transform:translate3d(0,0,0);animation-timing-function:step-end;-webkit-animation-timing-function:step-end;-moz-animation-timing-function:step-end}25%{transform:translate3d(0,0,0);-webkit-transform:translate3d(0,0,0);-moz-transform:translate3d(0,0,0);animation-timing-function:step-end;-webkit-animation-timing-function:step-end;-moz-animation-timing-function:step-end}40%{opacity:1;transform:translate3d(0,0,0);-webkit-transform:translate3d(0,0,0);-moz-transform:translate3d(0,0,0);animation-timing-function:step-end;-webkit-animation-timing-function:step-end;-moz-animation-timing-function:step-end}45%{opacity:0;transform:translate3d(0,0,0);-webkit-transform:translate3d(0,0,0);-moz-transform:translate3d(0,0,0);animation-timing-function:linear;-webkit-animation-timing-function:linear;-moz-animation-timing-function:linear}100%{opacity:0;transform:translate3d(0,0,0);-webkit-transform:translate3d(0,0,0);-moz-transform:translate3d(0,0,0);animation-timing-function:linear;-webkit-animation-timing-function:linear;-moz-animation-timing-function:linear}}@-webkit-keyframes gwd-gen-4pvrgwdanimation_gwd-keyframes{0%{opacity:0;-webkit-transform:translate3d(0,0,0);-webkit-animation-timing-function:step-end}25%{-webkit-transform:translate3d(0,0,0);-webkit-animation-timing-function:step-end}40%{opacity:1;-webkit-transform:translate3d(0,0,0);-webkit-animation-timing-function:step-end}45%{opacity:0;-webkit-transform:translate3d(0,0,0);-webkit-animation-timing-function:linear}100%{opacity:0;-webkit-transform:translate3d(0,0,0);-webkit-animation-timing-function:linear}}@-moz-keyframes gwd-gen-4pvrgwdanimation_gwd-keyframes{0%{opacity:0;-moz-transform:translate3d(0,0,0);-moz-animation-timing-function:step-end}25%{-moz-transform:translate3d(0,0,0);-moz-animation-timing-function:step-end}40%{opacity:1;-moz-transform:translate3d(0,0,0);-moz-animation-timing-function:step-end}45%{opacity:0;-moz-transform:translate3d(0,0,0);-moz-animation-timing-function:linear}100%{opacity:0;-moz-transform:translate3d(0,0,0);-moz-animation-timing-function:linear}}[data-gwd-group=SpinnerGroup] .gwd-gen-4pvrgwdanimation{animation:gwd-gen-4pvrgwdanimation_gwd-keyframes 2s linear 0s infinite normal forwards;-webkit-animation:gwd-gen-4pvrgwdanimation_gwd-keyframes 2s linear 0s infinite normal forwards;-moz-animation:gwd-gen-4pvrgwdanimation_gwd-keyframes 2s linear 0s infinite normal forwards}@keyframes gwd-gen-kw40gwdanimation_gwd-keyframes{0%{opacity:0;transform:translate3d(0,0,0);-webkit-transform:translate3d(0,0,0);-moz-transform:translate3d(0,0,0);animation-timing-function:step-end;-webkit-animation-timing-function:step-end;-moz-animation-timing-function:step-end}25%{transform:translate3d(0,0,0);-webkit-transform:translate3d(0,0,0);-moz-transform:translate3d(0,0,0);animation-timing-function:step-end;-webkit-animation-timing-function:step-end;-moz-animation-timing-function:step-end}45%{opacity:1;transform:translate3d(0,0,0);-webkit-transform:translate3d(0,0,0);-moz-transform:translate3d(0,0,0);animation-timing-function:step-end;-webkit-animation-timing-function:step-end;-moz-animation-timing-function:step-end}50%{opacity:0;transform:translate3d(0,0,0);-webkit-transform:translate3d(0,0,0);-moz-transform:translate3d(0,0,0);animation-timing-function:linear;-webkit-animation-timing-function:linear;-moz-animation-timing-function:linear}100%{opacity:0;transform:translate3d(0,0,0);-webkit-transform:translate3d(0,0,0);-moz-transform:translate3d(0,0,0);animation-timing-function:linear;-webkit-animation-timing-function:linear;-moz-animation-timing-function:linear}}@-webkit-keyframes gwd-gen-kw40gwdanimation_gwd-keyframes{0%{opacity:0;-webkit-transform:translate3d(0,0,0);-webkit-animation-timing-function:step-end}25%{-webkit-transform:translate3d(0,0,0);-webkit-animation-timing-function:step-end}45%{opacity:1;-webkit-transform:translate3d(0,0,0);-webkit-animation-timing-function:step-end}50%{opacity:0;-webkit-transform:translate3d(0,0,0);-webkit-animation-timing-function:linear}100%{opacity:0;-webkit-transform:translate3d(0,0,0);-webkit-animation-timing-function:linear}}@-moz-keyframes gwd-gen-kw40gwdanimation_gwd-keyframes{0%{opacity:0;-moz-transform:translate3d(0,0,0);-moz-animation-timing-function:step-end}25%{-moz-transform:translate3d(0,0,0);-moz-animation-timing-function:step-end}45%{opacity:1;-moz-transform:translate3d(0,0,0);-moz-animation-timing-function:step-end}50%{opacity:0;-moz-transform:translate3d(0,0,0);-moz-animation-timing-function:linear}100%{opacity:0;-moz-transform:translate3d(0,0,0);-moz-animation-timing-function:linear}}[data-gwd-group=SpinnerGroup] .gwd-gen-kw40gwdanimation{animation:gwd-gen-kw40gwdanimation_gwd-keyframes 2s linear 0s infinite normal forwards;-webkit-animation:gwd-gen-kw40gwdanimation_gwd-keyframes 2s linear 0s infinite normal forwards;-moz-animation:gwd-gen-kw40gwdanimation_gwd-keyframes 2s linear 0s infinite normal forwards}@keyframes gwd-gen-2uv8gwdanimation_gwd-keyframes{0%{opacity:0;transform:translate3d(0,0,0);-webkit-transform:translate3d(0,0,0);-moz-transform:translate3d(0,0,0);animation-timing-function:step-end;-webkit-animation-timing-function:step-end;-moz-animation-timing-function:step-end}25%{transform:translate3d(0,0,0);-webkit-transform:translate3d(0,0,0);-moz-transform:translate3d(0,0,0);animation-timing-function:step-end;-webkit-animation-timing-function:step-end;-moz-animation-timing-function:step-end}50%{opacity:1;transform:translate3d(0,0,0);-webkit-transform:translate3d(0,0,0);-moz-transform:translate3d(0,0,0);animation-timing-function:step-end;-webkit-animation-timing-function:step-end;-moz-animation-timing-function:step-end}55%{opacity:0;transform:translate3d(0,0,0);-webkit-transform:translate3d(0,0,0);-moz-transform:translate3d(0,0,0);animation-timing-function:linear;-webkit-animation-timing-function:linear;-moz-animation-timing-function:linear}100%{opacity:0;transform:translate3d(0,0,0);-webkit-transform:translate3d(0,0,0);-moz-transform:translate3d(0,0,0);animation-timing-function:linear;-webkit-animation-timing-function:linear;-moz-animation-timing-function:linear}}@-webkit-keyframes gwd-gen-2uv8gwdanimation_gwd-keyframes{0%{opacity:0;-webkit-transform:translate3d(0,0,0);-webkit-animation-timing-function:step-end}25%{-webkit-transform:translate3d(0,0,0);-webkit-animation-timing-function:step-end}50%{opacity:1;-webkit-transform:translate3d(0,0,0);-webkit-animation-timing-function:step-end}55%{opacity:0;-webkit-transform:translate3d(0,0,0);-webkit-animation-timing-function:linear}100%{opacity:0;-webkit-transform:translate3d(0,0,0);-webkit-animation-timing-function:linear}}@-moz-keyframes gwd-gen-2uv8gwdanimation_gwd-keyframes{0%{opacity:0;-moz-transform:translate3d(0,0,0);-moz-animation-timing-function:step-end}25%{-moz-transform:translate3d(0,0,0);-moz-animation-timing-function:step-end}50%{opacity:1;-moz-transform:translate3d(0,0,0);-moz-animation-timing-function:step-end}55%{opacity:0;-moz-transform:translate3d(0,0,0);-moz-animation-timing-function:linear}100%{opacity:0;-moz-transform:translate3d(0,0,0);-moz-animation-timing-function:linear}}[data-gwd-group=SpinnerGroup] .gwd-gen-2uv8gwdanimation{animation:gwd-gen-2uv8gwdanimation_gwd-keyframes 2s linear 0s infinite normal forwards;-webkit-animation:gwd-gen-2uv8gwdanimation_gwd-keyframes 2s linear 0s infinite normal forwards;-moz-animation:gwd-gen-2uv8gwdanimation_gwd-keyframes 2s linear 0s infinite normal forwards}@keyframes gwd-gen-1x97gwdanimation_gwd-keyframes{0%{opacity:0;transform:translate3d(0,0,0);-webkit-transform:translate3d(0,0,0);-moz-transform:translate3d(0,0,0);animation-timing-function:step-end;-webkit-animation-timing-function:step-end;-moz-animation-timing-function:step-end}25%{transform:translate3d(0,0,0);-webkit-transform:translate3d(0,0,0);-moz-transform:translate3d(0,0,0);animation-timing-function:step-end;-webkit-animation-timing-function:step-end;-moz-animation-timing-function:step-end}55%{opacity:1;transform:translate3d(0,0,0);-webkit-transform:translate3d(0,0,0);-moz-transform:translate3d(0,0,0);animation-timing-function:step-end;-webkit-animation-timing-function:step-end;-moz-animation-timing-function:step-end}60%{opacity:0;transform:translate3d(0,0,0);-webkit-transform:translate3d(0,0,0);-moz-transform:translate3d(0,0,0);animation-timing-function:linear;-webkit-animation-timing-function:linear;-moz-animation-timing-function:linear}100%{opacity:0;transform:translate3d(0,0,0);-webkit-transform:translate3d(0,0,0);-moz-transform:translate3d(0,0,0);animation-timing-function:linear;-webkit-animation-timing-function:linear;-moz-animation-timing-function:linear}}@-webkit-keyframes gwd-gen-1x97gwdanimation_gwd-keyframes{0%{opacity:0;-webkit-transform:translate3d(0,0,0);-webkit-animation-timing-function:step-end}25%{-webkit-transform:translate3d(0,0,0);-webkit-animation-timing-function:step-end}55%{opacity:1;-webkit-transform:translate3d(0,0,0);-webkit-animation-timing-function:step-end}60%{opacity:0;-webkit-transform:translate3d(0,0,0);-webkit-animation-timing-function:linear}100%{opacity:0;-webkit-transform:translate3d(0,0,0);-webkit-animation-timing-function:linear}}@-moz-keyframes gwd-gen-1x97gwdanimation_gwd-keyframes{0%{opacity:0;-moz-transform:translate3d(0,0,0);-moz-animation-timing-function:step-end}25%{-moz-transform:translate3d(0,0,0);-moz-animation-timing-function:step-end}55%{opacity:1;-moz-transform:translate3d(0,0,0);-moz-animation-timing-function:step-end}60%{opacity:0;-moz-transform:translate3d(0,0,0);-moz-animation-timing-function:linear}100%{opacity:0;-moz-transform:translate3d(0,0,0);-moz-animation-timing-function:linear}}[data-gwd-group=SpinnerGroup] .gwd-gen-1x97gwdanimation{animation:gwd-gen-1x97gwdanimation_gwd-keyframes 2s linear 0s infinite normal forwards;-webkit-animation:gwd-gen-1x97gwdanimation_gwd-keyframes 2s linear 0s infinite normal forwards;-moz-animation:gwd-gen-1x97gwdanimation_gwd-keyframes 2s linear 0s infinite normal forwards}@keyframes gwd-gen-1i1egwdanimation_gwd-keyframes{0%{opacity:0;transform:translate3d(0,0,0);-webkit-transform:translate3d(0,0,0);-moz-transform:translate3d(0,0,0);animation-timing-function:step-end;-webkit-animation-timing-function:step-end;-moz-animation-timing-function:step-end}25%{transform:translate3d(0,0,0);-webkit-transform:translate3d(0,0,0);-moz-transform:translate3d(0,0,0);animation-timing-function:step-end;-webkit-animation-timing-function:step-end;-moz-animation-timing-function:step-end}60%{opacity:1;transform:translate3d(0,0,0);-webkit-transform:translate3d(0,0,0);-moz-transform:translate3d(0,0,0);animation-timing-function:step-end;-webkit-animation-timing-function:step-end;-moz-animation-timing-function:step-end}65%{opacity:0;transform:translate3d(0,0,0);-webkit-transform:translate3d(0,0,0);-moz-transform:translate3d(0,0,0);animation-timing-function:linear;-webkit-animation-timing-function:linear;-moz-animation-timing-function:linear}100%{opacity:0;transform:translate3d(0,0,0);-webkit-transform:translate3d(0,0,0);-moz-transform:translate3d(0,0,0);animation-timing-function:linear;-webkit-animation-timing-function:linear;-moz-animation-timing-function:linear}}@-webkit-keyframes gwd-gen-1i1egwdanimation_gwd-keyframes{0%{opacity:0;-webkit-transform:translate3d(0,0,0);-webkit-animation-timing-function:step-end}25%{-webkit-transform:translate3d(0,0,0);-webkit-animation-timing-function:step-end}60%{opacity:1;-webkit-transform:translate3d(0,0,0);-webkit-animation-timing-function:step-end}65%{opacity:0;-webkit-transform:translate3d(0,0,0);-webkit-animation-timing-function:linear}100%{opacity:0;-webkit-transform:translate3d(0,0,0);-webkit-animation-timing-function:linear}}@-moz-keyframes gwd-gen-1i1egwdanimation_gwd-keyframes{0%{opacity:0;-moz-transform:translate3d(0,0,0);-moz-animation-timing-function:step-end}25%{-moz-transform:translate3d(0,0,0);-moz-animation-timing-function:step-end}60%{opacity:1;-moz-transform:translate3d(0,0,0);-moz-animation-timing-function:step-end}65%{opacity:0;-moz-transform:translate3d(0,0,0);-moz-animation-timing-function:linear}100%{opacity:0;-moz-transform:translate3d(0,0,0);-moz-animation-timing-function:linear}}[data-gwd-group=SpinnerGroup] .gwd-gen-1i1egwdanimation{animation:gwd-gen-1i1egwdanimation_gwd-keyframes 2s linear 0s infinite normal forwards;-webkit-animation:gwd-gen-1i1egwdanimation_gwd-keyframes 2s linear 0s infinite normal forwards;-moz-animation:gwd-gen-1i1egwdanimation_gwd-keyframes 2s linear 0s infinite normal forwards}@keyframes gwd-gen-1sapgwdanimation_gwd-keyframes{0%{opacity:0;transform:translate3d(0,0,0);-webkit-transform:translate3d(0,0,0);-moz-transform:translate3d(0,0,0);animation-timing-function:step-end;-webkit-animation-timing-function:step-end;-moz-animation-timing-function:step-end}25%{transform:translate3d(0,0,0);-webkit-transform:translate3d(0,0,0);-moz-transform:translate3d(0,0,0);animation-timing-function:step-end;-webkit-animation-timing-function:step-end;-moz-animation-timing-function:step-end}65%{opacity:1;transform:translate3d(0,0,0);-webkit-transform:translate3d(0,0,0);-moz-transform:translate3d(0,0,0);animation-timing-function:step-end;-webkit-animation-timing-function:step-end;-moz-animation-timing-function:step-end}70%{opacity:0;transform:translate3d(0,0,0);-webkit-transform:translate3d(0,0,0);-moz-transform:translate3d(0,0,0);animation-timing-function:linear;-webkit-animation-timing-function:linear;-moz-animation-timing-function:linear}100%{opacity:0;transform:translate3d(0,0,0);-webkit-transform:translate3d(0,0,0);-moz-transform:translate3d(0,0,0);animation-timing-function:linear;-webkit-animation-timing-function:linear;-moz-animation-timing-function:linear}}@-webkit-keyframes gwd-gen-1sapgwdanimation_gwd-keyframes{0%{opacity:0;-webkit-transform:translate3d(0,0,0);-webkit-animation-timing-function:step-end}25%{-webkit-transform:translate3d(0,0,0);-webkit-animation-timing-function:step-end}65%{opacity:1;-webkit-transform:translate3d(0,0,0);-webkit-animation-timing-function:step-end}70%{opacity:0;-webkit-transform:translate3d(0,0,0);-webkit-animation-timing-function:linear}100%{opacity:0;-webkit-transform:translate3d(0,0,0);-webkit-animation-timing-function:linear}}@-moz-keyframes gwd-gen-1sapgwdanimation_gwd-keyframes{0%{opacity:0;-moz-transform:translate3d(0,0,0);-moz-animation-timing-function:step-end}25%{-moz-transform:translate3d(0,0,0);-moz-animation-timing-function:step-end}65%{opacity:1;-moz-transform:translate3d(0,0,0);-moz-animation-timing-function:step-end}70%{opacity:0;-moz-transform:translate3d(0,0,0);-moz-animation-timing-function:linear}100%{opacity:0;-moz-transform:translate3d(0,0,0);-moz-animation-timing-function:linear}}[data-gwd-group=SpinnerGroup] .gwd-gen-1sapgwdanimation{animation:gwd-gen-1sapgwdanimation_gwd-keyframes 2s linear 0s infinite normal forwards;-webkit-animation:gwd-gen-1sapgwdanimation_gwd-keyframes 2s linear 0s infinite normal forwards;-moz-animation:gwd-gen-1sapgwdanimation_gwd-keyframes 2s linear 0s infinite normal forwards}@keyframes gwd-gen-5qotgwdanimation_gwd-keyframes{0%{transform:translate3d(0,0,0) rotateZ(0) scale3d(1,1,1);-webkit-transform:translate3d(0,0,0) rotateZ(0) scale3d(1,1,1);-moz-transform:translate3d(0,0,0) rotateZ(0) scale3d(1,1,1);animation-timing-function:cubic-bezier(1,0,.58,1);-webkit-animation-timing-function:cubic-bezier(1,0,.58,1);-moz-animation-timing-function:cubic-bezier(1,0,.58,1)}12.5%{transform:translate3d(0,200px,0) rotateZ(0) scale3d(1.2,.8,1);-webkit-transform:translate3d(0,200px,0) rotateZ(0) scale3d(1.2,.8,1);-moz-transform:translate3d(0,200px,0) rotateZ(0) scale3d(1.2,.8,1);animation-timing-function:cubic-bezier(.42,0,0,1);-webkit-animation-timing-function:cubic-bezier(.42,0,0,1);-moz-animation-timing-function:cubic-bezier(.42,0,0,1)}25%{transform:translate3d(0,0,0) rotateZ(0) scale3d(1,1,1);-webkit-transform:translate3d(0,0,0) rotateZ(0) scale3d(1,1,1);-moz-transform:translate3d(0,0,0) rotateZ(0) scale3d(1,1,1);animation-timing-function:cubic-bezier(1,0,.58,1);-webkit-animation-timing-function:cubic-bezier(1,0,.58,1);-moz-animation-timing-function:cubic-bezier(1,0,.58,1)}37.5%{transform:translate3d(0,200px,0) rotateZ(0) scale3d(1.2,.8,1);-webkit-transform:translate3d(0,200px,0) rotateZ(0) scale3d(1.2,.8,1);-moz-transform:translate3d(0,200px,0) rotateZ(0) scale3d(1.2,.8,1);animation-timing-function:cubic-bezier(.42,0,0,1);-webkit-animation-timing-function:cubic-bezier(.42,0,0,1);-moz-animation-timing-function:cubic-bezier(.42,0,0,1)}50%{transform:translate3d(0,0,0) rotateZ(0) scale3d(1,1,1);-webkit-transform:translate3d(0,0,0) rotateZ(0) scale3d(1,1,1);-moz-transform:translate3d(0,0,0) rotateZ(0) scale3d(1,1,1);animation-timing-function:cubic-bezier(1,0,.58,1);-webkit-animation-timing-function:cubic-bezier(1,0,.58,1);-moz-animation-timing-function:cubic-bezier(1,0,.58,1)}62.5%{transform:translate3d(0,200px,0) rotateZ(0) scale3d(1.2,.8,1);-webkit-transform:translate3d(0,200px,0) rotateZ(0) scale3d(1.2,.8,1);-moz-transform:translate3d(0,200px,0) rotateZ(0) scale3d(1.2,.8,1);animation-timing-function:cubic-bezier(.42,0,0,1);-webkit-animation-timing-function:cubic-bezier(.42,0,0,1);-moz-animation-timing-function:cubic-bezier(.42,0,0,1)}75%{transform:translate3d(0,0,0) rotateZ(0) scale3d(1,1,1);-webkit-transform:translate3d(0,0,0) rotateZ(0) scale3d(1,1,1);-moz-transform:translate3d(0,0,0) rotateZ(0) scale3d(1,1,1);animation-timing-function:cubic-bezier(1,0,.58,1);-webkit-animation-timing-function:cubic-bezier(1,0,.58,1);-moz-animation-timing-function:cubic-bezier(1,0,.58,1)}87.5%{transform:translate3d(0,200px,0) rotateZ(0) scale3d(1.2,.8,1);-webkit-transform:translate3d(0,200px,0) rotateZ(0) scale3d(1.2,.8,1);-moz-transform:translate3d(0,200px,0) rotateZ(0) scale3d(1.2,.8,1);animation-timing-function:cubic-bezier(.42,0,0,1);-webkit-animation-timing-function:cubic-bezier(.42,0,0,1);-moz-animation-timing-function:cubic-bezier(.42,0,0,1)}100%{transform:translate3d(0,0,0) rotateZ(360deg) scale3d(1,1,1);-webkit-transform:translate3d(0,0,0) rotateZ(360deg) scale3d(1,1,1);-moz-transform:translate3d(0,0,0) rotateZ(360deg) scale3d(1,1,1);animation-timing-function:linear;-webkit-animation-timing-function:linear;-moz-animation-timing-function:linear}}@-webkit-keyframes gwd-gen-5qotgwdanimation_gwd-keyframes{0%{-webkit-transform:translate3d(0,0,0) rotateZ(0) scale3d(1,1,1);-webkit-animation-timing-function:cubic-bezier(1,0,.58,1)}12.5%{-webkit-transform:translate3d(0,200px,0) rotateZ(0) scale3d(1.2,.8,1);-webkit-animation-timing-function:cubic-bezier(.42,0,0,1)}25%{-webkit-transform:translate3d(0,0,0) rotateZ(0) scale3d(1,1,1);-webkit-animation-timing-function:cubic-bezier(1,0,.58,1)}37.5%{-webkit-transform:translate3d(0,200px,0) rotateZ(0) scale3d(1.2,.8,1);-webkit-animation-timing-function:cubic-bezier(.42,0,0,1)}50%{-webkit-transform:translate3d(0,0,0) rotateZ(0) scale3d(1,1,1);-webkit-animation-timing-function:cubic-bezier(1,0,.58,1)}62.5%{-webkit-transform:translate3d(0,200px,0) rotateZ(0) scale3d(1.2,.8,1);-webkit-animation-timing-function:cubic-bezier(.42,0,0,1)}75%{-webkit-transform:translate3d(0,0,0) rotateZ(0) scale3d(1,1,1);-webkit-animation-timing-function:cubic-bezier(1,0,.58,1)}87.5%{-webkit-transform:translate3d(0,200px,0) rotateZ(0) scale3d(1.2,.8,1);-webkit-animation-timing-function:cubic-bezier(.42,0,0,1)}100%{-webkit-transform:translate3d(0,0,0) rotateZ(360deg) scale3d(1,1,1);-webkit-animation-timing-function:linear}}@-moz-keyframes gwd-gen-5qotgwdanimation_gwd-keyframes{0%{-moz-transform:translate3d(0,0,0) rotateZ(0) scale3d(1,1,1);-moz-animation-timing-function:cubic-bezier(1,0,.58,1)}12.5%{-moz-transform:translate3d(0,200px,0) rotateZ(0) scale3d(1.2,.8,1);-moz-animation-timing-function:cubic-bezier(.42,0,0,1)}25%{-moz-transform:translate3d(0,0,0) rotateZ(0) scale3d(1,1,1);-moz-animation-timing-function:cubic-bezier(1,0,.58,1)}37.5%{-moz-transform:translate3d(0,200px,0) rotateZ(0) scale3d(1.2,.8,1);-moz-animation-timing-function:cubic-bezier(.42,0,0,1)}50%{-moz-transform:translate3d(0,0,0) rotateZ(0) scale3d(1,1,1);-moz-animation-timing-function:cubic-bezier(1,0,.58,1)}62.5%{-moz-transform:translate3d(0,200px,0) rotateZ(0) scale3d(1.2,.8,1);-moz-animation-timing-function:cubic-bezier(.42,0,0,1)}75%{-moz-transform:translate3d(0,0,0) rotateZ(0) scale3d(1,1,1);-moz-animation-timing-function:cubic-bezier(1,0,.58,1)}87.5%{-moz-transform:translate3d(0,200px,0) rotateZ(0) scale3d(1.2,.8,1);-moz-animation-timing-function:cubic-bezier(.42,0,0,1)}100%{-moz-transform:translate3d(0,0,0) rotateZ(360deg) scale3d(1,1,1);-moz-animation-timing-function:linear}}[data-gwd-group=SpinnerGroup] .gwd-gen-5qotgwdanimation{animation:gwd-gen-5qotgwdanimation_gwd-keyframes 4s linear 0s infinite normal forwards;-webkit-animation:gwd-gen-5qotgwdanimation_gwd-keyframes 4s linear 0s infinite normal forwards;-moz-animation:gwd-gen-5qotgwdanimation_gwd-keyframes 4s linear 0s infinite normal forwards}@keyframes gwd-gen-faadgwdanimation_gwd-keyframes{0%{opacity:.2;transform:scale3d(.5,.8,1);-webkit-transform:scale3d(.5,.8,1);-moz-transform:scale3d(.5,.8,1);animation-timing-function:cubic-bezier(1,0,.58,1);-webkit-animation-timing-function:cubic-bezier(1,0,.58,1);-moz-animation-timing-function:cubic-bezier(1,0,.58,1)}50%{opacity:.5;transform:scale3d(1,.8,1);-webkit-transform:scale3d(1,.8,1);-moz-transform:scale3d(1,.8,1);animation-timing-function:cubic-bezier(.42,0,0,1);-webkit-animation-timing-function:cubic-bezier(.42,0,0,1);-moz-animation-timing-function:cubic-bezier(.42,0,0,1)}100%{opacity:.2;transform:scale3d(.5,.8,1);-webkit-transform:scale3d(.5,.8,1);-moz-transform:scale3d(.5,.8,1);animation-timing-function:linear;-webkit-animation-timing-function:linear;-moz-animation-timing-function:linear}}@-webkit-keyframes gwd-gen-faadgwdanimation_gwd-keyframes{0%{opacity:.2;-webkit-transform:scale3d(.5,.8,1);-webkit-animation-timing-function:cubic-bezier(1,0,.58,1)}50%{opacity:.5;-webkit-transform:scale3d(1,.8,1);-webkit-animation-timing-function:cubic-bezier(.42,0,0,1)}100%{opacity:.2;-webkit-transform:scale3d(.5,.8,1);-webkit-animation-timing-function:linear}}@-moz-keyframes gwd-gen-faadgwdanimation_gwd-keyframes{0%{opacity:.2;-moz-transform:scale3d(.5,.8,1);-moz-animation-timing-function:cubic-bezier(1,0,.58,1)}50%{opacity:.5;-moz-transform:scale3d(1,.8,1);-moz-animation-timing-function:cubic-bezier(.42,0,0,1)}100%{opacity:.2;-moz-transform:scale3d(.5,.8,1);-moz-animation-timing-function:linear}}[data-gwd-group=SpinnerGroup] .gwd-gen-faadgwdanimation{animation:gwd-gen-faadgwdanimation_gwd-keyframes 1s linear 0s infinite normal forwards;-webkit-animation:gwd-gen-faadgwdanimation_gwd-keyframes 1s linear 0s infinite normal forwards;-moz-animation:gwd-gen-faadgwdanimation_gwd-keyframes 1s linear 0s infinite normal forwards}[data-gwd-group=SpinnerGroup] .gwd-grp-13td.gwd-img-1653{position:absolute;top:0;width:612px;height:568px;opacity:0;transform:translate3d(0,0,0);-webkit-transform:translate3d(0,0,0);-moz-transform:translate3d(0,0,0);left:0}[data-gwd-group=SpinnerGroup] .gwd-grp-13td.gwd-img-alsm{position:absolute;top:0;width:612px;height:568px;opacity:0;transform:translate3d(0,0,0);-webkit-transform:translate3d(0,0,0);-moz-transform:translate3d(0,0,0);left:0}[data-gwd-group=SpinnerGroup] .gwd-grp-13td.gwd-img-f0mu{position:absolute;top:0;width:612px;height:568px;opacity:0;transform:translate3d(0,0,0);-webkit-transform:translate3d(0,0,0);-moz-transform:translate3d(0,0,0);left:0}[data-gwd-group=SpinnerGroup] .gwd-grp-13td.gwd-img-1sr3{position:absolute;top:0;width:612px;height:568px;opacity:0;transform:translate3d(0,0,0);-webkit-transform:translate3d(0,0,0);-moz-transform:translate3d(0,0,0);left:0}[data-gwd-group=SpinnerGroup] .gwd-grp-13td.gwd-img-1ffn{position:absolute;top:0;width:612px;height:568px;opacity:0;transform:translate3d(0,0,0);-webkit-transform:translate3d(0,0,0);-moz-transform:translate3d(0,0,0);left:0}[data-gwd-group=SpinnerGroup] .gwd-grp-13td.gwd-img-16f3{position:absolute;top:0;width:612px;height:568px;opacity:0;transform:translate3d(0,0,0);-webkit-transform:translate3d(0,0,0);-moz-transform:translate3d(0,0,0);left:0}[data-gwd-group=SpinnerGroup] .gwd-grp-13td.gwd-img-1rrs{position:absolute;top:0;width:612px;height:568px;opacity:0;transform:translate3d(0,0,0);-webkit-transform:translate3d(0,0,0);-moz-transform:translate3d(0,0,0);left:0}[data-gwd-group=SpinnerGroup] .gwd-grp-13td.gwd-img-1dhi{position:absolute;transform-origin:283.711px 283.516px 0;-webkit-transform-origin:283.711px 283.516px 0;-moz-transform-origin:283.711px 283.516px 0;height:568px;width:568px;top:0;transform:translate3d(0,0,0) rotateZ(0) scale3d(1,1,1);-webkit-transform:translate3d(0,0,0) rotateZ(0) scale3d(1,1,1);-moz-transform:translate3d(0,0,0) rotateZ(0) scale3d(1,1,1);transform-style:preserve-3d;-webkit-transform-style:preserve-3d;-moz-transform-style:preserve-3d;left:0}[data-gwd-group=SpinnerGroup] .gwd-grp-13td.gwd-img-1izg{position:absolute;width:568px;height:604.02px;opacity:.2;transform-style:preserve-3d;-webkit-transform-style:preserve-3d;-moz-transform-style:preserve-3d;transform:scale3d(.5,.8,1);-webkit-transform:scale3d(.5,.8,1);-moz-transform:scale3d(.5,.8,1);top:55px;left:0}[data-gwd-group=SpinnerGroup]{width:611.979px;height:598.605px}.gwd-div-1v1s{transform:scale(.5,.5)}\n", document.head.appendChild(e)
}
}
return t.prototype.setupEvents = function(t) {
this.internalSDK = t
}, t.prototype.hide = function() {
this.hideElement(this.containerDiv), this.hideElement(this.progressContainer), this.hidePauseButton(), this.hideElement(this.startAdButton), this.containerDiv.classList.remove("pokiSdkOverlay"), this.progressBar.style.width = "0%"
}, t.prototype.hideSpinner = function() {
this.hideElement(this.spinnerContainer)
}, t.prototype.showWithOpacity = function() {
this.showElement(this.spinnerContainer), this.showElement(this.containerDiv), this.showElement(this.progressContainer)
}, t.prototype.show = function() {
this.containerDiv.classList.add("pokiSdkOverlay"), this.showElement(this.containerDiv), this.showElement(this.progressContainer)
}, t.prototype.getVideoBounds = function() {
return this.adContainer.getBoundingClientRect()
}, t.prototype.getAdContainer = function() {
return this.adContainer
}, t.prototype.getVideoContainer = function() {
return this.videoContainer
}, t.prototype.showPauseButton = function() {
this.showElement(this.pauseButton), this.internalSDK && this.pauseButton.addEventListener("click", this.internalSDK.resumeAd.bind(this.internalSDK))
}, t.prototype.hidePauseButton = function() {
this.hideElement(this.pauseButton), this.internalSDK && this.pauseButton.removeEventListener("click", this.internalSDK.resumeAd.bind(this.internalSDK))
}, t.prototype.showStartAdButton = function() {
this.showElement(this.startAdButton), this.internalSDK && this.startAdButton.addEventListener("click", this.internalSDK.startAdClicked.bind(this.internalSDK))
}, t.prototype.hideStartAdButton = function() {
this.hideElement(this.startAdButton), this.internalSDK && this.startAdButton.removeEventListener("click", this.internalSDK.startAdClicked.bind(this.internalSDK))
}, t.prototype.createElements = function() {
if (this.containerDiv = document.createElement("div"), this.insideContainer = document.createElement("div"), this.pauseButton = document.createElement("div"), this.startAdButton = document.createElement("div"), this.progressBar = document.createElement("div"), this.progressContainer = document.createElement("div"), this.spinnerContainer = document.createElement("div"), this.adContainer = document.createElement("div"), this.videoContainer = document.createElement("video"), this.adContainer.id = "pokiSDKAdContainer", this.videoContainer.id = "pokiSDKVideoContainer", this.containerDiv.className = "pokiSdkContainer", this.insideContainer.className = "pokiSdkInsideContainer", this.pauseButton.className = N, this.pauseButton.innerHTML = "Tap anywhere to ▶️", this.startAdButton.className = "pokiSdkStartAdButton", this.startAdButton.innerHTML = "Tap anywhere to play ad", this.progressBar.className = F, this.progressContainer.className = "pokiSdkProgressContainer", this.spinnerContainer.className = X, this.adContainer.className = "pokiSDKAdContainer", this.videoContainer.className = "pokiSdkVideoContainer", this.spinnerContainer.innerHTML = '\n\t\t\t<div id="new-progress-spinner" style="z-index:10;position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%) scale3d(0.5, 0.5, 0.5);">\n\t\t\t\t<div class="gwd-div-1v1s" data-gwd-group="SpinnerGroup">\n\t\t\t\t\t<img src="https://game-cdn.poki.com/loaders/v2/static/spinner/Sparkle_1.svg" class="gwd-img-1653 gwd-gen-no02gwdanimation gwd-grp-13td" data-gwd-grp-id="Sparkle_1">\n\t\t\t\t\t<img src="https://game-cdn.poki.com/loaders/v2/static/spinner/Sparkle_2.svg" class="gwd-img-alsm gwd-gen-4pvrgwdanimation gwd-grp-13td" data-gwd-grp-id="Sparkle_2">\n\t\t\t\t\t<img src="https://game-cdn.poki.com/loaders/v2/static/spinner/Sparkle_3.svg" class="gwd-img-f0mu gwd-gen-kw40gwdanimation gwd-grp-13td" data-gwd-grp-id="Sparkle_3">\n\t\t\t\t\t<img src="https://game-cdn.poki.com/loaders/v2/static/spinner/Sparkle_4.svg" class="gwd-img-1sr3 gwd-gen-2uv8gwdanimation gwd-grp-13td" data-gwd-grp-id="Sparkle_4">\n\t\t\t\t\t<img src="https://game-cdn.poki.com/loaders/v2/static/spinner/Sparkle_5.svg" class="gwd-img-1ffn gwd-gen-1x97gwdanimation gwd-grp-13td" data-gwd-grp-id="Sparkle_5">\n\t\t\t\t\t<img src="https://game-cdn.poki.com/loaders/v2/static/spinner/Sparkle_6.svg" class="gwd-img-16f3 gwd-gen-1i1egwdanimation gwd-grp-13td" data-gwd-grp-id="Sparkle_6">\n\t\t\t\t\t<img src="https://game-cdn.poki.com/loaders/v2/static/spinner/Sparkle_7.svg" class="gwd-img-1rrs gwd-gen-1sapgwdanimation gwd-grp-13td" data-gwd-grp-id="Sparkle_7">\n\t\t\t\t\t<img src="https://game-cdn.poki.com/loaders/v2.0/static/hand_fingers_isolated.svg" class="gwd-img-1dhi gwd-gen-5qotgwdanimation gwd-grp-13td" data-gwd-grp-id="heart">\n\t\t\t\t\t<img src="https://game-cdn.poki.com/loaders/v2/static/spinner/shadow_new_3.svg" class="gwd-img-1izg gwd-gen-faadgwdanimation gwd-grp-13td" data-gwd-grp-id="shadow_new_3">\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t', this.hide(), this.videoContainer.setAttribute("playsinline", "playsinline"), this.videoContainer.setAttribute("muted", "muted"), this.containerDiv.appendChild(this.insideContainer), this.containerDiv.appendChild(this.spinnerContainer), this.insideContainer.appendChild(this.progressContainer), this.insideContainer.appendChild(this.videoContainer), this.insideContainer.appendChild(this.adContainer), this.containerDiv.appendChild(this.pauseButton), this.containerDiv.appendChild(this.startAdButton), this.progressContainer.appendChild(this.progressBar), this.wrapper.appendChild(this.containerDiv), this.wrapper === document.body) this.containerDiv.classList.add("pokiSdkFixed");
else {
var t = window.getComputedStyle(this.wrapper).position;
t && -1 !== ["absolute", "fixed", "relative"].indexOf(t) || (this.wrapper.style.position = "relative")
}
}, t
}(),
H = !0,
W = {};
var V = ["AT", "BE", "BG", "HR", "CY", "CZ", "DK", "EE", "FI", "FR", "DE", "GR", "HU", "IE", "IT", "LV", "LT", "LU", "MT", "NL", "PL", "PT", "RO", "SK", "SI", "ES", "SE", "GB", "IS", "LI", "NO"],
q = ["US"],
K = ["ZZ"];
function J(t) {
return V.includes(t)
}
function Y(t) {
return K.includes(t)
}
var $ = function(t, n, e, i) {
return new(e || (e = Promise))((function(r, o) {
function a(t) {
try {
d(i.next(t))
} catch (t) {
o(t)
}
}
function s(t) {
try {
d(i.throw(t))
} catch (t) {
o(t)
}
}
function d(t) {
var n;
t.done ? r(t.value) : (n = t.value, n instanceof e ? n : new e((function(t) {
t(n)
}))).then(a, s)
}
d((i = i.apply(t, n || [])).next())
}))
},
tt = function(t, n) {
var e, i, r, o, a = {
label: 0,
sent: function() {
if (1 & r[0]) throw r[1];
return r[1]
},
trys: [],
ops: []
};
return o = {
next: s(0),
throw: s(1),
return: s(2)
}, "function" == typeof Symbol && (o[Symbol.iterator] = function() {
return this
}), o;
function s(o) {
return function(s) {
return function(o) {
if (e) throw new TypeError("Generator is already executing.");
for (; a;) try {
if (e = 1, i && (r = 2 & o[0] ? i.return : o[0] ? i.throw || ((r = i.return) && r.call(i), 0) : i.next) && !(r = r.call(i, o[1])).done) return r;
switch (i = 0, r && (o = [2 & o[0], r.value]), o[0]) {
case 0:
case 1:
r = o;
break;
case 4:
return a.label++, {
value: o[1],
done: !1
};
case 5:
a.label++, i = o[1], o = [0];
continue;
case 7:
o = a.ops.pop(), a.trys.pop();
continue;
default:
if (!(r = a.trys, (r = r.length > 0 && r[r.length - 1]) || 6 !== o[0] && 2 !== o[0])) {
a = 0;
continue
}
if (3 === o[0] && (!r || o[1] > r[0] && o[1] < r[3])) {
a.label = o[1];
break
}
if (6 === o[0] && a.label < r[1]) {
a.label = r[1], r = o;
break
}
if (r && a.label < r[2]) {
a.label = r[2], a.ops.push(o);
break
}
r[2] && a.ops.pop(), a.trys.pop();
continue
}
o = n.call(t, a)
} catch (t) {
o = [6, t], i = 0
} finally {
e = r = 0
}
if (5 & o[0]) throw o[1];
return {
value: o[0] ? o[1] : void 0,
done: !0
}
}([o, s])
}
}
},
nt = function() {
function t(t) {
var n = this;
this.bannerTimeout = null, this.allowedToPlayAd = !1, this.runningAd = !1, this.currentWidth = 640, this.currentHeight = 480, this.currentRequestIsMuted = !1, this.volume = 1, this.canWeAutoPlayWithSound = function() {
return $(n, void 0, void 0, (function() {
return tt(this, (function(t) {
switch (t.label) {
case 0:
if (!this.blankVideo) return [2, !1];
t.label = 1;
case 1:
return t.trys.push([1, 3, , 4]), [4, this.blankVideo.play()];
case 2:
return t.sent(), [2, !0];
case 3:
return t.sent(), [2, !1];
case 4:
return [2]
}
}))
}))
}, this.videoElement = document.getElementById("pokiSDKVideoContainer"), this.adsManager = null, this.volume = t, this.initAdDisplayContainer(), this.initBlankVideo(), this.initAdsLoader()
}
return t.prototype.initAdDisplayContainer = function() {
this.adDisplayContainer || (this.adDisplayContainer = new google.ima.AdDisplayContainer(document.getElementById("pokiSDKAdContainer"), this.videoElement))
}, t.prototype.initBlankVideo = function() {
this.blankVideo = document.createElement("video"), this.blankVideo.setAttribute("playsinline", "playsinline");
var t = document.createElement("source");
t.src = "data:video/mp4;base64, AAAAHGZ0eXBNNFYgAAACAGlzb21pc28yYXZjMQAAAAhmcmVlAAAGF21kYXTeBAAAbGliZmFhYyAxLjI4AABCAJMgBDIARwAAArEGBf//rdxF6b3m2Ui3lizYINkj7u94MjY0IC0gY29yZSAxNDIgcjIgOTU2YzhkOCAtIEguMjY0L01QRUctNCBBVkMgY29kZWMgLSBDb3B5bGVmdCAyMDAzLTIwMTQgLSBodHRwOi8vd3d3LnZpZGVvbGFuLm9yZy94MjY0Lmh0bWwgLSBvcHRpb25zOiBjYWJhYz0wIHJlZj0zIGRlYmxvY2s9MTowOjAgYW5hbHlzZT0weDE6MHgxMTEgbWU9aGV4IHN1Ym1lPTcgcHN5PTEgcHN5X3JkPTEuMDA6MC4wMCBtaXhlZF9yZWY9MSBtZV9yYW5nZT0xNiBjaHJvbWFfbWU9MSB0cmVsbGlzPTEgOHg4ZGN0PTAgY3FtPTAgZGVhZHpvbmU9MjEsMTEgZmFzdF9wc2tpcD0xIGNocm9tYV9xcF9vZmZzZXQ9LTIgdGhyZWFkcz02IGxvb2thaGVhZF90aHJlYWRzPTEgc2xpY2VkX3RocmVhZHM9MCBucj0wIGRlY2ltYXRlPTEgaW50ZXJsYWNlZD0wIGJsdXJheV9jb21wYXQ9MCBjb25zdHJhaW5lZF9pbnRyYT0wIGJmcmFtZXM9MCB3ZWlnaHRwPTAga2V5aW50PTI1MCBrZXlpbnRfbWluPTI1IHNjZW5lY3V0PTQwIGludHJhX3JlZnJlc2g9MCByY19sb29rYWhlYWQ9NDAgcmM9Y3JmIG1idHJlZT0xIGNyZj0yMy4wIHFjb21wPTAuNjAgcXBtaW49MCBxcG1heD02OSBxcHN0ZXA9NCB2YnZfbWF4cmF0ZT03NjggdmJ2X2J1ZnNpemU9MzAwMCBjcmZfbWF4PTAuMCBuYWxfaHJkPW5vbmUgZmlsbGVyPTAgaXBfcmF0aW89MS40MCBhcT0xOjEuMDAAgAAAAFZliIQL8mKAAKvMnJycnJycnJycnXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXiEASZACGQAjgCEASZACGQAjgAAAAAdBmjgX4GSAIQBJkAIZACOAAAAAB0GaVAX4GSAhAEmQAhkAI4AhAEmQAhkAI4AAAAAGQZpgL8DJIQBJkAIZACOAIQBJkAIZACOAAAAABkGagC/AySEASZACGQAjgAAAAAZBmqAvwMkhAEmQAhkAI4AhAEmQAhkAI4AAAAAGQZrAL8DJIQBJkAIZACOAAAAABkGa4C/AySEASZACGQAjgCEASZACGQAjgAAAAAZBmwAvwMkhAEmQAhkAI4AAAAAGQZsgL8DJIQBJkAIZACOAIQBJkAIZACOAAAAABkGbQC/AySEASZACGQAjgCEASZACGQAjgAAAAAZBm2AvwMkhAEmQAhkAI4AAAAAGQZuAL8DJIQBJkAIZACOAIQBJkAIZACOAAAAABkGboC/AySEASZACGQAjgAAAAAZBm8AvwMkhAEmQAhkAI4AhAEmQAhkAI4AAAAAGQZvgL8DJIQBJkAIZACOAAAAABkGaAC/AySEASZACGQAjgCEASZACGQAjgAAAAAZBmiAvwMkhAEmQAhkAI4AhAEmQAhkAI4AAAAAGQZpAL8DJIQBJkAIZACOAAAAABkGaYC/AySEASZACGQAjgCEASZACGQAjgAAAAAZBmoAvwMkhAEmQAhkAI4AAAAAGQZqgL8DJIQBJkAIZACOAIQBJkAIZACOAAAAABkGawC/AySEASZACGQAjgAAAAAZBmuAvwMkhAEmQAhkAI4AhAEmQAhkAI4AAAAAGQZsAL8DJIQBJkAIZACOAAAAABkGbIC/AySEASZACGQAjgCEASZACGQAjgAAAAAZBm0AvwMkhAEmQAhkAI4AhAEmQAhkAI4AAAAAGQZtgL8DJIQBJkAIZACOAAAAABkGbgCvAySEASZACGQAjgCEASZACGQAjgAAAAAZBm6AnwMkhAEmQAhkAI4AhAEmQAhkAI4AhAEmQAhkAI4AhAEmQAhkAI4AAAAhubW9vdgAAAGxtdmhkAAAAAAAAAAAAAAAAAAAD6AAABDcAAQAAAQAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAwAAAzB0cmFrAAAAXHRraGQAAAADAAAAAAAAAAAAAAABAAAAAAAAA+kAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAABAAAAAALAAAACQAAAAAAAkZWR0cwAAABxlbHN0AAAAAAAAAAEAAAPpAAAAAAABAAAAAAKobWRpYQAAACBtZGhkAAAAAAAAAAAAAAAAAAB1MAAAdU5VxAAAAAAALWhkbHIAAAAAAAAAAHZpZGUAAAAAAAAAAAAAAABWaWRlb0hhbmRsZXIAAAACU21pbmYAAAAUdm1oZAAAAAEAAAAAAAAAAAAAACRkaW5mAAAAHGRyZWYAAAAAAAAAAQAAAAx1cmwgAAAAAQAAAhNzdGJsAAAAr3N0c2QAAAAAAAAAAQAAAJ9hdmMxAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAALAAkABIAAAASAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAGP//AAAALWF2Y0MBQsAN/+EAFWdCwA3ZAsTsBEAAAPpAADqYA8UKkgEABWjLg8sgAAAAHHV1aWRraEDyXyRPxbo5pRvPAyPzAAAAAAAAABhzdHRzAAAAAAAAAAEAAAAeAAAD6QAAABRzdHNzAAAAAAAAAAEAAAABAAAAHHN0c2MAAAAAAAAAAQAAAAEAAAABAAAAAQAAAIxzdHN6AAAAAAAAAAAAAAAeAAADDwAAAAsAAAALAAAACgAAAAoAAAAKAAAACgAAAAoAAAAKAAAACgAAAAoAAAAKAAAACgAAAAoAAAAKAAAACgAAAAoAAAAKAAAACgAAAAoAAAAKAAAACgAAAAoAAAAKAAAACgAAAAoAAAAKAAAACgAAAAoAAAAKAAAAiHN0Y28AAAAAAAAAHgAAAEYAAANnAAADewAAA5gAAAO0AAADxwAAA+MAAAP2AAAEEgAABCUAAARBAAAEXQAABHAAAASMAAAEnwAABLsAAATOAAAE6gAABQYAAAUZAAAFNQAABUgAAAVkAAAFdwAABZMAAAWmAAAFwgAABd4AAAXxAAAGDQAABGh0cmFrAAAAXHRraGQAAAADAAAAAAAAAAAAAAACAAAAAAAABDcAAAAAAAAAAAAAAAEBAAAAAAEAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAkZWR0cwAAABxlbHN0AAAAAAAAAAEAAAQkAAADcAABAAAAAAPgbWRpYQAAACBtZGhkAAAAAAAAAAAAAAAAAAC7gAAAykBVxAAAAAAALWhkbHIAAAAAAAAAAHNvdW4AAAAAAAAAAAAAAABTb3VuZEhhbmRsZXIAAAADi21pbmYAAAAQc21oZAAAAAAAAAAAAAAAJGRpbmYAAAAcZHJlZgAAAAAAAAABAAAADHVybCAAAAABAAADT3N0YmwAAABnc3RzZAAAAAAAAAABAAAAV21wNGEAAAAAAAAAAQAAAAAAAAAAAAIAEAAAAAC7gAAAAAAAM2VzZHMAAAAAA4CAgCIAAgAEgICAFEAVBbjYAAu4AAAADcoFgICAAhGQBoCAgAECAAAAIHN0dHMAAAAAAAAAAgAAADIAAAQAAAAAAQAAAkAAAAFUc3RzYwAAAAAAAAAbAAAAAQAAAAEAAAABAAAAAgAAAAIAAAABAAAAAwAAAAEAAAABAAAABAAAAAIAAAABAAAABgAAAAEAAAABAAAABwAAAAIAAAABAAAACAAAAAEAAAABAAAACQAAAAIAAAABAAAACgAAAAEAAAABAAAACwAAAAIAAAABAAAADQAAAAEAAAABAAAADgAAAAIAAAABAAAADwAAAAEAAAABAAAAEAAAAAIAAAABAAAAEQAAAAEAAAABAAAAEgAAAAIAAAABAAAAFAAAAAEAAAABAAAAFQAAAAIAAAABAAAAFgAAAAEAAAABAAAAFwAAAAIAAAABAAAAGAAAAAEAAAABAAAAGQAAAAIAAAABAAAAGgAAAAEAAAABAAAAGwAAAAIAAAABAAAAHQAAAAEAAAABAAAAHgAAAAIAAAABAAAAHwAAAAQAAAABAAAA4HN0c3oAAAAAAAAAAAAAADMAAAAaAAAACQAAAAkAAAAJAAAACQAAAAkAAAAJAAAACQAAAAkAAAAJAAAACQAAAAkAAAAJAAAACQAAAAkAAAAJAAAACQAAAAkAAAAJAAAACQAAAAkAAAAJAAAACQAAAAkAAAAJAAAACQAAAAkAAAAJAAAACQAAAAkAAAAJAAAACQAAAAkAAAAJAAAACQAAAAkAAAAJAAAACQAAAAkAAAAJAAAACQAAAAkAAAAJAAAACQAAAAkAAAAJAAAACQAAAAkAAAAJAAAACQAAAAkAAACMc3RjbwAAAAAAAAAfAAAALAAAA1UAAANyAAADhgAAA6IAAAO+AAAD0QAAA+0AAAQAAAAEHAAABC8AAARLAAAEZwAABHoAAASWAAAEqQAABMUAAATYAAAE9AAABRAAAAUjAAAFPwAABVIAAAVuAAAFgQAABZ0AAAWwAAAFzAAABegAAAX7AAAGFwAAAGJ1ZHRhAAAAWm1ldGEAAAAAAAAAIWhkbHIAAAAAAAAAAG1kaXJhcHBsAAAAAAAAAAAAAAAALWlsc3QAAAAlqXRvbwAAAB1kYXRhAAAAAQAAAABMYXZmNTUuMzMuMTAw", this.blankVideo.appendChild(t)
}, t.prototype.initAdsLoader = function() {
var t = this;
this.adsLoader || (this.adsLoader = new google.ima.AdsLoader(this.adDisplayContainer), this.adsLoader.getSettings().setVpaidMode(google.ima.ImaSdkSettings.VpaidMode.INSECURE), this.adsLoader.getSettings().setDisableCustomPlaybackForIOS10Plus(!0), this.adsLoader.addEventListener(google.ima.AdsManagerLoadedEvent.Type.ADS_MANAGER_LOADED, this.onAdsManagerLoaded, !1, this), this.adsLoader.addEventListener(google.ima.AdErrorEvent.Type.AD_ERROR, this.onAdLoaderError, !1, this), this.videoElement.addEventListener("onended", (function() {
return t.adsLoader.contentComplete()
})))
}, t.prototype.requestAd = function(t) {
return $(this, void 0, void 0, (function() {
var n;
return tt(this, (function(e) {
switch (e.label) {
case 0:
return this.runningAd ? [2] : (this.runningAd = !0, this.adDisplayContainer.initialize(), this.videoElement.src = "", (n = new google.ima.AdsRequest).adTagUrl = t, n.linearAdSlotWidth = this.currentWidth, n.linearAdSlotHeight = this.currentHeight, n.nonLinearAdSlotWidth = this.currentWidth, n.nonLinearAdSlotHeight = this.currentHeight, n.forceNonLinearFullSlot = !0, [4, this.canWeAutoPlayWithSound()]);
case 1:
return e.sent() ? (n.setAdWillPlayMuted(!1), this.currentRequestIsMuted = !1) : (n.setAdWillPlayMuted(!0), this.currentRequestIsMuted = !0), this.allowedToPlayAd = !0, this.adsLoader.requestAds(n), [2]
}
}))
}))
}, t.prototype.resize = function(t, n, e) {
void 0 === e && (e = google.ima.ViewMode.NORMAL), this.currentWidth = t, this.currentHeight = n, this.adsManager && this.adsManager.resize(t, n, e)
}, t.prototype.onAdsManagerLoaded = function(t) {
var n = new google.ima.AdsRenderingSettings;
n.enablePreloading = !0, n.restoreCustomPlaybackStateOnAdBreakComplete = !0, n.mimeTypes = z() || E() || x() ? ["video/mp4"] : ["video/mp4", "video/webm", "video/ogg"], this.adsManager = t.getAdsManager(this.videoElement, n), this.adsManager.setVolume(Math.max(0, Math.min(1, this.volume))), this.currentRequestIsMuted && this.adsManager.setVolume(0), this.allowedToPlayAd ? (this.attachAdEvents(), f.dispatchEvent(A.ads.ready)) : this.tearDown()
}, t.prototype.setVolume = function(t) {
this.volume = t, this.adsManager && this.adsManager.setVolume(Math.max(0, Math.min(1, this.volume)))
}, t.prototype.startPlayback = function() {
try {
this.adsManager.init(this.currentWidth, this.currentHeight, google.ima.ViewMode.NORMAL), this.adsManager.start()
} catch (t) {
this.videoElement.play()
}
}, t.prototype.startIOSPlayback = function() {
this.adsManager.start()
}, t.prototype.stopPlayback = function() {
f.dispatchEvent(A.ads.stopped), this.tearDown()
}, t.prototype.resumeAd = function() {
f.dispatchEvent(A.ads.video.resumed), this.adsManager && this.adsManager.resume()
}, t.prototype.tearDown = function() {
this.adsManager && (this.adsManager.stop(), this.adsManager.destroy(), this.adsManager = null), null !== this.bannerTimeout && (clearTimeout(this.bannerTimeout), this.bannerTimeout = null), this.adsLoader && (this.adsLoader.contentComplete(), this.adsLoader.destroy(), this.adsLoader = null, this.initAdsLoader()), this.runningAd = !1
}, t.prototype.attachAdEvents = function() {
var t = this,
n = google.ima.AdEvent.Type;
this.adsManager.addEventListener(google.ima.AdErrorEvent.Type.AD_ERROR, this.onAdError, !1, this), [n.AD_PROGRESS, n.ALL_ADS_COMPLETED, n.CLICK, n.COMPLETE, n.IMPRESSION, n.PAUSED, n.SKIPPED, n.STARTED, n.USER_CLOSE, n.AD_BUFFERING].forEach((function(n) {
t.adsManager.addEventListener(n, t.onAdEvent, !1, t)
}))
}, t.prototype.onAdEvent = function(t) {
var n = this,
e = t.getAd();
switch (t.type) {
case google.ima.AdEvent.Type.AD_PROGRESS:
f.dispatchEvent(A.ads.video.progress, t.getAdData());
break;
case google.ima.AdEvent.Type.STARTED:
t.remainingTime = this.adsManager.getRemainingTime(), t.remainingTime <= 0 && (t.remainingTime = 15), e.isLinear() || (this.bannerTimeout = window.setTimeout((function() {
f.dispatchEvent(A.ads.completed, {
rewardAllowed: !!t.rewardAllowed
}), n.tearDown()
}), 1e3 * (t.remainingTime + 1))), f.dispatchEvent(A.ads.started, {
creativeId: e.getCreativeId(),
adId: e.getAdId(),
duration: e.getDuration()
});
break;
case google.ima.AdEvent.Type.COMPLETE:
f.dispatchEvent(A.ads.completed, {
rewardAllowed: !0
}), this.tearDown();
break;
case google.ima.AdEvent.Type.ALL_ADS_COMPLETED:
case google.ima.AdEvent.Type.USER_CLOSE:
this.tearDown();
break;
case google.ima.AdEvent.Type.PAUSED:
this.adsManager.pause(), f.dispatchEvent(A.ads.video.paused);
break;
case google.ima.AdEvent.Type.AD_BUFFERING:
f.dispatchEvent(A.ads.video.buffering);
break;
case google.ima.AdEvent.Type.CLICK:
f.dispatchEvent(A.ads.video.clicked);
break;
case google.ima.AdEvent.Type.SKIPPED:
f.dispatchEvent(A.ads.skipped), f.dispatchEvent(A.ads.completed), document.activeElement && document.activeElement.blur();
break;
case google.ima.AdEvent.Type.IMPRESSION:
f.dispatchEvent(A.ads.impression, {
userValueIndicator: Z(f.getDataAnnotations().position === A.ads.position.rewarded ? "rewarded" : "video")
})
}
}, t.prototype.onAdLoaderError = function(t) {
this.tearDown();
var n = t.getError && t.getError().toString() || "Unknown";
f.dispatchEvent(A.ads.video.loaderError, {
message: n
})
}, t.prototype.onAdError = function(t) {
this.tearDown();
var n = t.getError && t.getError().toString() || "Unknown";
f.dispatchEvent(A.ads.video.error, {
message: n
})
}, t.prototype.muteAd = function() {
void 0 !== this.adsManager && null != this.adsManager && this.adsManager.setVolume(0)
}, t.prototype.isAdRunning = function() {
return this.runningAd
}, t
}(),
et = function(t) {
return new Promise((function(n, e) {
var i = document.createElement("script");
i.type = "text/javascript", i.async = !0, i.src = t;
var r = function() {
i.readyState && "loaded" !== i.readyState && "complete" !== i.readyState || (n(), i.onload = null, i.onreadystatechange = null)
};
i.onload = r, i.onreadystatechange = r, i.onerror = e, document.head.appendChild(i)
}))
},
it = function(t, n, e, i) {
return new(e || (e = Promise))((function(r, o) {
function a(t) {
try {
d(i.next(t))
} catch (t) {
o(t)
}
}
function s(t) {
try {
d(i.throw(t))
} catch (t) {
o(t)
}
}
function d(t) {
var n;
t.done ? r(t.value) : (n = t.value, n instanceof e ? n : new e((function(t) {
t(n)
}))).then(a, s)
}
d((i = i.apply(t, n || [])).next())
}))
},
rt = function(t, n) {
var e, i, r, o, a = {
label: 0,
sent: function() {
if (1 & r[0]) throw r[1];
return r[1]
},
trys: [],
ops: []
};
return o = {
next: s(0),
throw: s(1),
return: s(2)
}, "function" == typeof Symbol && (o[Symbol.iterator] = function() {
return this
}), o;
function s(o) {
return function(s) {
return function(o) {
if (e) throw new TypeError("Generator is already executing.");
for (; a;) try {
if (e = 1, i && (r = 2 & o[0] ? i.return : o[0] ? i.throw || ((r = i.return) && r.call(i), 0) : i.next) && !(r = r.call(i, o[1])).done) return r;
switch (i = 0, r && (o = [2 & o[0], r.value]), o[0]) {
case 0:
case 1:
r = o;
break;
case 4:
return a.label++, {
value: o[1],
done: !1
};
case 5:
a.label++, i = o[1], o = [0];
continue;
case 7:
o = a.ops.pop(), a.trys.pop();
continue;
default:
if (!(r = a.trys, (r = r.length > 0 && r[r.length - 1]) || 6 !== o[0] && 2 !== o[0])) {
a = 0;
continue
}
if (3 === o[0] && (!r || o[1] > r[0] && o[1] < r[3])) {
a.label = o[1];
break
}
if (6 === o[0] && a.label < r[1]) {
a.label = r[1], r = o;
break
}
if (r && a.label < r[2]) {
a.label = r[2], a.ops.push(o);
break
}
r[2] && a.ops.pop(), a.trys.pop();
continue
}
o = n.call(t, a)
} catch (t) {
o = [6, t], i = 0
} finally {
e = r = 0
}
if (5 & o[0]) throw o[1];
return {
value: o[0] ? o[1] : void 0,
done: !0
}
}([o, s])
}
}
};
var ot = function() {
var t = window.location.pathname;
"/" !== t[0] && (t = "/" + t);
var n = encodeURIComponent(window.location.protocol + "//" + window.location.host + t + window.location.search),
e = encodeURIComponent(document.referrer);
return fetch("", {
method: "GET",
headers: {
"Content-Type": "text/plain"
}
}).then((function(t) {
return it(void 0, void 0, void 0, (function() {
var n;
return rt(this, (function(e) {
switch (e.label) {
case 0:
return t.status >= 200 && t.status < 400 ? [4, t.json()] : [3, 2];
case 1:
return (n = e.sent()).game_id ? [2, {
gameId: n.game_id,
adTiming: {
preroll: n.ad_settings.preroll,
timePerTry: n.ad_settings.time_per_try,
timeBetweenAds: n.ad_settings.time_between_ads,
startAdsAfter: n.ad_settings.start_ads_after
}
}] : [2, void 0];
case 2:
throw t
}
}))
}))
})).catch((function(t) {
return function(t) {
return it(this, void 0, void 0, (function() {
var n, e, i, r, o, a, s, d, c, u, l, A;
return rt(this, (function(m) {
switch (m.label) {
case 0:
return m.trys.push([0, 3, , 4]), "/" !== (n = window.location.pathname)[0] && (n = "/" + n), r = (i = JSON).stringify, o = {
c: "sdk-p4d-error",
ve: 7
}, a = {
k: "error"
}, d = (s = JSON).stringify, c = {
status: t.status
}, (u = t.json) ? [4, t.json()] : [3, 2];
case 1:
u = m.sent(), m.label = 2;
case 2:
if (e = r.apply(i, [(o.d = [(a.v = d.apply(s, [(c.json = u, c.body = JSON.stringify({
href: window.location.protocol + "//" + window.location.host + n + window.location.search
}), c.name = t.name, c.message = t.message, c)]), a)], o)]), l = "", navigator.sendBeacon) navigator.sendBeacon(l, e);
else try {
(A = new XMLHttpRequest).open("POST", l, !0), A.send(e)
} catch (t) {}
return [3, 4];
case 3:
return m.sent(), [3, 4];
case 4:
return [2]
}
}))
}))
}(t)
}))
},
at = function(t, n, e, i) {
return new(e || (e = Promise))((function(r, o) {
function a(t) {
try {
d(i.next(t))
} catch (t) {
o(t)
}
}
function s(t) {
try {
d(i.throw(t))
} catch (t) {
o(t)
}
}
function d(t) {
var n;
t.done ? r(t.value) : (n = t.value, n instanceof e ? n : new e((function(t) {
t(n)
}))).then(a, s)
}
d((i = i.apply(t, n || [])).next())
}))
},
st = function(t, n) {
var e, i, r, o, a = {
label: 0,
sent: function() {
if (1 & r[0]) throw r[1];
return r[1]
},
trys: [],
ops: []
};
return o = {
next: s(0),
throw: s(1),
return: s(2)
}, "function" == typeof Symbol && (o[Symbol.iterator] = function() {
return this
}), o;
function s(o) {
return function(s) {
return function(o) {
if (e) throw new TypeError("Generator is already executing.");
for (; a;) try {
if (e = 1, i && (r = 2 & o[0] ? i.return : o[0] ? i.throw || ((r = i.return) && r.call(i), 0) : i.next) && !(r = r.call(i, o[1])).done) return r;
switch (i = 0, r && (o = [2 & o[0], r.value]), o[0]) {
case 0:
case 1:
r = o;
break;
case 4:
return a.label++, {
value: o[1],
done: !1
};
case 5:
a.label++, i = o[1], o = [0];
continue;
case 7:
o = a.ops.pop(), a.trys.pop();
continue;
default:
if (!(r = a.trys, (r = r.length > 0 && r[r.length - 1]) || 6 !== o[0] && 2 !== o[0])) {
a = 0;
continue
}
if (3 === o[0] && (!r || o[1] > r[0] && o[1] < r[3])) {
a.label = o[1];
break
}
if (6 === o[0] && a.label < r[1]) {
a.label = r[1], r = o;
break
}
if (r && a.label < r[2]) {
a.label = r[2], a.ops.push(o);
break
}
r[2] && a.ops.pop(), a.trys.pop();
continue
}
o = n.call(t, a)
} catch (t) {
o = [6, t], i = 0
} finally {
e = r = 0
}
if (5 & o[0]) throw o[1];
return {
value: o[0] ? o[1] : void 0,
done: !0
}
}([o, s])
}
}
};
function dt() {
return at(this, void 0, Promise, (function() {
var t;
return st(this, (function(n) {
switch (n.label) {
case 0:
return n.trys.push([0, 3, , 4]), [4, fetch("", {
method: "GET",
headers: {
"Content-Type": "text/plain"
}
})];
case 1:
return [4, n.sent().json()];
case 2:
return [2, n.sent().ISO];
case 3:
return t = n.sent(), console.error(t), [2, "ZZ"];
case 4:
return [2]
}
}))
}))
}
var ct = e(67),
ut = function(t, n, e, i) {
return new(e || (e = Promise))((function(r, o) {
function a(t) {
try {
d(i.next(t))
} catch (t) {
o(t)
}
}
function s(t) {
try {
d(i.throw(t))
} catch (t) {
o(t)
}
}
function d(t) {
var n;
t.done ? r(t.value) : (n = t.value, n instanceof e ? n : new e((function(t) {
t(n)
}))).then(a, s)
}
d((i = i.apply(t, n || [])).next())
}))
},
lt = function(t, n) {
var e, i, r, o, a = {
label: 0,
sent: function() {
if (1 & r[0]) throw r[1];
return r[1]
},
trys: [],
ops: []
};
return o = {
next: s(0),
throw: s(1),
return: s(2)
}, "function" == typeof Symbol && (o[Symbol.iterator] = function() {
return this
}), o;
function s(o) {
return function(s) {
return function(o) {
if (e) throw new TypeError("Generator is already executing.");
for (; a;) try {
if (e = 1, i && (r = 2 & o[0] ? i.return : o[0] ? i.throw || ((r = i.return) && r.call(i), 0) : i.next) && !(r = r.call(i, o[1])).done) return r;
switch (i = 0, r && (o = [2 & o[0], r.value]), o[0]) {
case 0:
case 1:
r = o;
break;
case 4:
return a.label++, {
value: o[1],
done: !1
};
case 5:
a.label++, i = o[1], o = [0];
continue;
case 7:
o = a.ops.pop(), a.trys.pop();
continue;
default:
if (!(r = a.trys, (r = r.length > 0 && r[r.length - 1]) || 6 !== o[0] && 2 !== o[0])) {
a = 0;
continue
}
if (3 === o[0] && (!r || o[1] > r[0] && o[1] < r[3])) {
a.label = o[1];
break
}
if (6 === o[0] && a.label < r[1]) {
a.label = r[1], r = o;
break
}
if (r && a.label < r[2]) {
a.label = r[2], a.ops.push(o);
break
}
r[2] && a.ops.pop(), a.trys.pop();
continue
}
o = n.call(t, a)
} catch (t) {
o = [6, t], i = 0
} finally {
e = r = 0
}
if (5 & o[0]) throw o[1];
return {
value: o[0] ? o[1] : void 0,
done: !0
}
}([o, s])
}
}
},
At = !1,
mt = function() {
return ut(void 0, void 0, void 0, (function() {
var t, n, e;
return lt(this, (function(i) {
switch (i.label) {
case 0:
if (At) return [2];
i.label = 1;
case 1:
return i.trys.push([1, 4, , 5]), [4, fetch("./touchControllerConfig.json")];
case 2:
return [4, i.sent().json()];
case 3:
return (t = i.sent()) && ((n = document.createElement("script")).src = "//game-cdn.poki.com/scripts/touchOverlayController.js", n.onload = function() {
new window.OverlayController(document.body, t)
}, document.head.appendChild(n), At = !0), [3, 5];
case 4:
return e = i.sent(), console.log(e), [3, 5];
case 5:
return [2]
}
}))
}))
},
ft = function() {
for (var t = Math.floor(Date.now() / 1e3), n = "", e = 0; e < 4; e++) n = String.fromCharCode(255 & t) + n, t >>= 8;
if (window.crypto && crypto.getRandomValues && Uint32Array) {
var i = new Uint32Array(12);
crypto.getRandomValues(i);
for (e = 0; e < 12; e++) n += String.fromCharCode(255 & i[e])
} else
for (e = 0; e < 12; e++) n += String.fromCharCode(Math.floor(256 * Math.random()));
return btoa(n).replace(/\+/g, "-").replace(/\//g, "_").replace(/=/g, "")
},
pt = !1,
gt = new Map,
ht = function(t) {
if (!t) return null;
for (var n = 0, e = Array.from(t.getElementsByClassName("poki-ad-slot")); n < e.length; n++) {
var i = e[n],
r = gt.get(i.id);
if (r) return r.id
}
return null
},
wt = function(t, n) {
var e = ht(t),
i = gt.get(e || "") || null;
if (i) {
var r = n.split("x").map((function(t) {
return parseInt(t, 10)
})) || [0, 0];
if (i.width === r[0] && i.height === r[1]) return i.id;
yt(t)
}
var o = function(t) {
var n = t.split("x").map((function(t) {
return parseInt(t, 10)
})),
e = "/21682198607/debug-display/debug-display-" + t,
i = "desktop";
E() && (i = "mobile"), x() && (i = "tablet");
var r = parseInt(T("site_id"), 10) || 0;
return pt || (e = kt.GetIsPokiIFrame() ? "/21682198607/" + i + "_ingame_" + t + "/" + r + "_" + i + "_ingame_" + t : "/21682198607/external_" + i + "_display_ingame/external_" + i + "_ingame_" + t), {
id: "poki-" + ft(),
adUnitPath: e,
size: t,
width: n[0],
height: n[1],
refresh: !1
}
}(n);
return gt.set(o.id, o), googletag.cmd.push((function() {
var n = document.createElement("div");
n.id = o.id, n.className = "poki-ad-slot", n.style.width = o.width + "px", n.style.height = o.height + "px", n.setAttribute("data-poki-ad-size", o.size), t.appendChild(n), t.setAttribute("data-poki-ad-id", o.id), o.gptSlot = googletag.defineSlot(o.adUnitPath, [o.width, o.height], o.id).addService(googletag.pubads()), googletag.enableServices(), gt.set(o.id, o)
})), o.id
},
yt = function(t) {
googletag.cmd.push((function() {
var n, e = ht(t),
i = gt.get(e || "") || null;
i && i.gptSlot && (y.track(A.tracking.screen.destroyAd, {
opportunityId: i.opportunityId
}), googletag.destroySlots([i.gptSlot]), null === (n = t.querySelector("div#" + i.id)) || void 0 === n || n.remove(), t.removeAttribute("data-poki-ad-id"), gt.delete(i.id))
}))
},
vt = function() {
return (vt = Object.assign || function(t) {
for (var n, e = 1, i = arguments.length; e < i; e++)
for (var r in n = arguments[e]) Object.prototype.hasOwnProperty.call(n, r) && (t[r] = n[r]);
return t
}).apply(this, arguments)
},
bt = {
gameId: T("game_id"),
versionId: T("game_version_id")
},
kt = function() {
function t() {
this.autoStartOnReady = !1, this.criteria = {}, this.debugIsOverwritten = !1, this.handlers = {}, this.initializingPromise = null, this.isInitialized = !1, this.programmaticAdsEnabled = !0, this.sdkBooted = !1, this.sdkImaError = !1, this.startAdEnabled = !1, this.startStartAdsAfterTimerOnInit = !1, this.initOptions = {}, this.forceDisableCommercialBreak = !1, this.debug = !1, this.adReady = !1, this.debugTouchOverlayController = !1, this.setPlayerAge = function(t) {
t && function(t, n) {
if (H) try {
localStorage.setItem(t, n)
} catch (e) {
H = !1, W[t] = n
} else W[t] = n
}("playerAge", t)
}, this.toggleNonPersonalized = function(n) {
t.nonPersonalized = n
}, this.setConsentString = function(n) {
t.consentString = n
}, this.sdkNotBootedButCalled = function() {
console.error("The Poki SDK has not yet been initialized")
};
var n = T("pokiDebug");
"" !== n && (this.setDebug("true" === n), this.debugIsOverwritten = !0)
}
return t.prototype.init = function(t) {
if (void 0 === t && (t = {}), "undefined" != typeof window) {
var n = t.onReady,
e = void 0 === n ? null : n,
i = t.onAdblocked,
r = void 0 === i ? null : i;
return this.initOptions = t, e && this.registerHandler("onReady", e), r && this.registerHandler("onAdblocked", r), this.isInitialized ? console.error("Poki SDK has already been initialized") : (this.initializingPromise || (this.initializingPromise = this.lazyLoadInit()), this.initializingPromise)
}
}, t.prototype.lazyLoadInit = function() {
var n, e = this,
i = this.initOptions,
r = i.adTagUrl,
o = i.adTiming,
a = void 0 === o ? {} : o,
s = i.customCriteria,
d = void 0 === s ? {} : s,
c = i.debug,
u = void 0 !== c && c,
l = i.prebid,
m = void 0 === l ? {} : l,
p = i.a9,
g = void 0 === p ? {} : p,
h = i.volume,
w = void 0 === h ? 1 : h,
b = i.waterfallRetries,
k = i.wrapper,
S = void 0 === k ? document.body : k,
z = parseInt(T("site_id"), 10) || 0;
window.googletag = window.googletag || {
cmd: []
}, this.setupDefaultEvents(), y.setupDefaultEvents(), n = m, window.pbjs = window.pbjs || {}, window.pbjs.que = window.pbjs.que || [], window.pbjs.que.push((function() {
window.pbjs.addAdUnits(n.adUnits || L), window.pbjs.setConfig(B(B({}, j), n.config)), window.pbjs.bidderSettings = {
districtm: {
bidCpmAdjustment: function(t) {
return .85 * t
}
},
richaudience: {
bidCpmAdjustment: function(t) {
return .9 * t
}
}
}
}));
var C = vt({}, v);
r ? (t.isPokiPlatform = !0, C = vt(vt({}, C), {
adTagUrl: r,
customCriteria: d,
adTiming: a
})) : t.isPokiPlatform = !1;
var I = ot;
(t.isPokiPlatform || this.debug) && (I = function() {
return Promise.resolve()
});
var _ = dt,
P = this.initOptions.country || T("country");
return P && (_ = function() {
return Promise.resolve(P)
}), window.addEventListener("resize", this.resize.bind(this), !1), window.addEventListener("message", this.onMessage.bind(this), !1), this.debugIsOverwritten || this.setDebug(this.debug || u), this.debugTouchOverlayController && (E() || x()) && mt(), Promise.all([I(), _(),
et(""),
et(""),
et(ct.a),
et("")]).catch((function() {
f.dispatchEvent(A.adblocked)
})).then((function(n) {
if (void 0 !== n) {
var i = n[0],
r = n[1],
o = vt(vt({}, C), {
country: r
});
if (i) {
bt.gameId || (bt.gameId = i.gameId);
["7fb1fd45-24ce-4ade-b5c4-9ee55ec99526"].includes(bt.gameId) && (E() || x()) && mt(), o.adTiming = i.adTiming, o.customCriteria = vt(vt({}, o.customCriteria), {
p4d_game_id: bt.gameId
})
}
e.debug && (o.adTiming.startAdsAfter = 0), e.enableSettings(o);
var a = J(e.country);
a && (t.GetIsPokiPlatform() || t.GetIsPokiIFrame()) && M(), e.playerSkin = new Q({
wrapper: S
}), e.ima = new nt(w), e.playerSkin.setupEvents(e), e.startStartAdsAfterTimerOnInit && e.adTimings.startStartAdsAfterTimer(), e.waterfall = new G(e.ima, {
timing: e.adTimings,
totalRetries: b,
adTagUrl: o.adTagUrl,
siteID: z
}), window.googletag.cmd.push((function() {
window.googletag.pubads().addEventListener("slotRenderEnded", (function(t) {
var n = t.slot.getSlotElementId(),
e = gt.get(n);
e && e.gptSlot && y.track(A.tracking.ads.display.impression, {
size: e.size,
opportunityId: e.opportunityId,
adUnitPath: e.adUnitPath
})
})), window.googletag.pubads().addEventListener("impressionViewable", (function(t) {
var n = t.slot.getSlotElementId(),
e = gt.get(n);
e && e.gptSlot && y.track(A.tracking.ads.display.viewable, {
size: e.size,
opportunityId: e.opportunityId,
adUnitPath: e.adUnitPath
})
}))
})),
function(t, n) {
window.apstag && window.apstag.init(t.settings || B({
pubID: "e32f1423-28bc-43ed-8ab0-5ae6b4449cf8",
adServer: "googletag",
videoAdServer: "DFP"
}, n ? {
gdpr: {
cmpTimeout: 1e4
}
} : {}), (function() {
R = !0, t.callback && t.callback()
}))
}(g, a), e.isInitialized = !0, f.dispatchEvent(A.ready)
}
}))
}, t.prototype.requestAd = function(n) {
var e = this;
void 0 === n && (n = {});
var i = function() {
var i = n.autoStart,
r = void 0 === i || i,
o = n.customCriteria,
a = void 0 === o ? {} : o,
s = n.onFinish,
d = void 0 === s ? null : s,
c = n.onStart,
u = void 0 === c ? null : c,
l = n.position,
m = void 0 === l ? null : l;
if (e.autoStartOnReady = !1 !== r, d && e.registerHandler("onFinish", d), u && e.registerHandler("onStart", u), e.forceDisableCommercialBreak && [A.ads.position.midroll, A.ads.position.preroll].includes(m)) d && d();
else {
if (!e.sdkBooted) return f.dispatchEvent(A.ads.error, {
message: "Requesting ad on unbooted SDK"
}), void e.sdkNotBootedButCalled();
if (e.sdkImaError) f.dispatchEvent(A.ads.error, {
message: "Adblocker has been detected"
});
else if (!E() && !x() || m === A.ads.position.rewarded)
if (null !== m && p(m, A.ads.position))
if (e.ima.isAdRunning() || e.waterfall.isRunning()) f.dispatchEvent(A.ads.busy);
else if (e.adReady) f.dispatchEvent(A.ads.ready);
else if (m !== A.ads.position.preroll || e.adTimings.prerollPossible())
if (m === A.ads.position.rewarded || e.adTimings.requestPossible()) {
var g = vt(vt(vt({}, e.genericCriteria()), e.criteria), {
position: m
});
(t.isPokiPlatform || m === A.ads.position.rewarded) && (g = vt(vt({}, g), a)), e.playerSkin.showWithOpacity(), e.resize(), e.waterfall.start(g, m)
} else f.dispatchEvent(A.ads.limit, {
reason: A.info.messages.timeLimit
});
else f.dispatchEvent(A.ads.limit, {
reason: A.info.messages.prerollLimit
});
else console.error("POKI-SDK: Invalid position");
else f.dispatchEvent(A.ads.error, {
reason: "Interstitials are disabled on mobile"
})
}
};
this.isInitialized ? i() : this.lazyLoadInit().then(i)
}, t.prototype.displayAd = function(t, n) {
var e = this,
i = function() {
f.clearAnnotations();
var i = ft(),
r = A.ads.position.display;
if (n) {
if (!e.sdkBooted) return f.dispatchEvent(A.ads.error, {
message: "Requesting ad on unbooted SDK",
position: r
}), void e.sdkNotBootedButCalled();
if (t)
if (e.sdkImaError) f.dispatchEvent(A.ads.error, {
message: "Adblocker has been detected",
position: r
});
else {
if (! function(t) {
return !!(E() || x() || ["970x250", "300x250", "728x90", "160x600", "320x50"].includes(t)) && !((E() || x()) && !["320x50"].includes(t))
}(n)) return f.dispatchEvent(A.ads.error, {
reason: "Display size " + n + " is not supported on this device",
position: r
});
var o = vt(vt({}, e.genericCriteria()), e.criteria),
a = wt(t, n);
! function(t, n) {
googletag.cmd.push((function() {
var e, i = gt.get(t);
i && i.gptSlot && (null === (e = i.gptSlot) || void 0 === e || e.clearTargeting(), Object.keys(n).forEach((function(t) {
var e;
null === (e = i.gptSlot) || void 0 === e || e.setTargeting(t, n[t])
})))
}))
}(a, o),
function(t, n) {
googletag.cmd.push((function() {
var e = gt.get(t);
e && e.gptSlot && (e.opportunityId = n, y.track(A.tracking.ads.display.requested, {
size: e.size,
opportunityId: e.opportunityId,
adUnitPath: e.adUnitPath
}), e.refresh && e.gptSlot ? googletag.pubads().refresh([e.gptSlot]) : (googletag.display(e.id), e.refresh = !0, gt.set(e.id, e)))
}))
}(a, i)
}
else f.dispatchEvent(A.ads.error, {
message: "Provided container does not exist",
position: r
})
} else f.dispatchEvent(A.ads.error, {
message: "No ad size given, usage: displayAd(<container>, <size>)",
position: r
})
};
this.isInitialized ? i() : this.lazyLoadInit().then(i)
}, t.prototype.destroyAd = function(t) {
var n = this,
e = function() {
if (!n.sdkBooted) return f.dispatchEvent(A.ads.displayError, {
message: "Attempting destroyAd on unbooted SDK"
}), void n.sdkNotBootedButCalled();
n.sdkImaError ? f.dispatchEvent(A.ads.displayError, {
message: "Adblocker has been detected"
}) : (t = t || document.body, yt(t))
};
this.isInitialized ? e() : this.lazyLoadInit().then(e)
}, t.prototype.startStartAdsAfterTimer = function() {
this.sdkBooted && !this.sdkImaError ? this.adTimings.startStartAdsAfterTimer() : this.startStartAdsAfterTimerOnInit = !0
}, t.prototype.enableSettings = function(t) {
this.criteria = vt({}, t.customCriteria), this.adTimings = new k(t.adTiming), this.country = t.country
}, t.prototype.togglePlayerAdvertisingConsent = function(t) {
if (t) {
var n, e = parseInt(function(t) {
if (!H) return W[t];
try {
return localStorage.getItem(t)
} catch (n) {
return W[t]
}
}("playerAge"), 10) || 0,
i = this.country,
r = J(i),
o = (n = i, q.includes(n)),
a = Y(i);
(r || o || Y) && (r && e <= 12 || o && e <= 16 || a && e <= 16) ? this.disableProgrammatic(): this.enableProgrammatic()
} else this.disableProgrammatic()
}, t.prototype.disableProgrammatic = function() {
t.childDirected = !0, this.programmaticAdsEnabled = !1
}, t.prototype.enableProgrammatic = function() {
t.childDirected = !1, this.programmaticAdsEnabled = !0
}, t.prototype.getProgrammaticAdsEnabled = function() {
return this.programmaticAdsEnabled
}, t.prototype.setDebug = function(t) {
var n = this;
this.debugIsOverwritten ? t && y.track(A.tracking.debugTrueInProduction) : (y.setDebug(t), f.setDebug(t), this.waterfall ? this.waterfall.setDebug(t) : f.addEventListener(A.ready, (function() {
n.waterfall && n.waterfall.setDebug(t)
})), pt = t, this.debug = t)
}, t.prototype.resize = function() {
var t = this;
if (!this.sdkBooted) return this.sdkNotBootedButCalled();
if (!this.sdkImaError) {
var n = this.playerSkin.getVideoBounds();
0 !== n.width && 0 !== n.height ? this.ima.resize(n.width, n.height) : setTimeout((function() {
t.resize()
}), 100)
}
}, t.prototype.onMessage = function(t) {
if ("string" == typeof t.data.type) switch (t.data.type) {
case "toggleNonPersonalized":
this.toggleNonPersonalized(!(!t.data.content || !t.data.content.nonPersonalized));
break;
case "setPersonalizedADConsent":
this.toggleNonPersonalized(!(t.data.content && t.data.content.consent)), this.setConsentString(t.data.content ? t.data.content.consentString : "");
break;
case "forceDisableCommercialBreak":
this.forceDisableCommercialBreak = !0
}
}, t.prototype.startAd = function() {
if (!this.sdkBooted) return this.sdkNotBootedButCalled();
this.sdkImaError || (this.adReady ? (this.playerSkin.show(), this.resize(), this.ima.startPlayback()) : f.dispatchEvent(A.ads.error, {
message: "No ads ready to start"
}))
}, t.prototype.startAdClicked = function() {
"undefined" != typeof navigator && /(iPad|iPhone|iPod)/gi.test(navigator.userAgent) && this.startAdEnabled && (this.startAdEnabled = !1, this.playerSkin.hideStartAdButton(), this.ima.startIOSPlayback())
}, t.prototype.stopAd = function() {
if (!this.sdkBooted) return this.sdkNotBootedButCalled();
this.sdkImaError || (this.waterfall.stopWaterfall(), this.ima.stopPlayback(), this.playerSkin.hide())
}, t.prototype.resumeAd = function() {
if (!this.sdkBooted) return this.sdkNotBootedButCalled();
this.sdkImaError || (this.playerSkin.hidePauseButton(), this.ima.resumeAd())
}, t.prototype.skipAd = function() {
this.stopAd(), this.callHandler("onFinish", {
type: A.ads.completed,
rewardAllowed: !0
})
}, t.prototype.muteAd = function() {
if (!this.sdkBooted) return this.sdkNotBootedButCalled();
this.sdkImaError || this.ima.muteAd()
}, t.prototype.registerHandler = function(t, n) {
this.handlers[t] = n
}, t.prototype.callHandler = function(t) {
for (var n = [], e = 1; e < arguments.length; e++) n[e - 1] = arguments[e];
"function" == typeof this.handlers[t] && this.handlers[t](n)
}, t.prototype.setupDefaultEvents = function() {
var t = this;
f.addEventListener(A.ready, (function() {
t.sdkBooted = !0, t.callHandler("onReady")
})), f.addEventListener(A.adblocked, (function() {
t.sdkBooted = !0, t.sdkImaError = !0, t.callHandler("onAdblocked")
})), f.addEventListener(A.ads.ready, (function() {
t.adReady = !0, t.autoStartOnReady && t.startAd()
})), f.addEventListener(A.ads.started, (function() {
t.playerSkin.hideSpinner(), t.callHandler("onStart", {
type: A.ads.limit
})
})), f.addEventListener(A.ads.video.paused, (function() {
t.playerSkin.showPauseButton()
})), f.addEventListener(A.ads.limit, (function() {
t.callHandler("onFinish", {
type: A.ads.limit,
rewardAllowed: !1
})
})), f.addEventListener(A.ads.stopped, (function() {
t.callHandler("onFinish", {
type: A.ads.stopped,
rewardAllowed: !1
})
})), f.addEventListener(A.ads.error, (function() {
t.callHandler("onFinish", {
type: A.ads.error,
rewardAllowed: !1
})
})), f.addEventListener(A.ads.busy, (function() {
t.callHandler("onFinish", {
type: A.ads.busy,
rewardAllowed: !1
})
})), f.addEventListener(A.ads.completed, (function(n) {
t.callHandler("onFinish", {
type: A.ads.completed,
rewardAllowed: !!n.rewardAllowed
})
})), [A.ads.limit, A.ads.stopped, A.ads.error, A.ads.busy, A.ads.completed].forEach((function(n) {
f.addEventListener(n, (function() {
t.playerSkin && t.playerSkin.hide(), t.adReady = !1
}))
}))
}, t.prototype.genericCriteria = function() {
var t = {},
n = encodeURIComponent(T("tag") || ""),
e = encodeURIComponent(T("site_id") || ""),
i = encodeURIComponent(T("experiment") || ""),
r = encodeURIComponent(T("categories") || "");
return t.tag = n, t.tag_site = n + "|" + e, t.site_id = e, t.experiment = i, t.categories = r, this.programmaticAdsEnabled || (t.disable_programmatic = 1), t
}, t.prototype.setVolume = function(t) {
this.ima && this.ima.setVolume(t)
}, t.GetIsPokiPlatform = function() {
return t.isPokiPlatform
}, t.GetIsPokiIFrame = function() {
return (parseInt(T("site_id"), 10) || 0) > 0
}, t.childDirected = !1, t.isPokiPlatform = !1, t.nonPersonalized = !1, t.consentString = "", t
}();
function St(t) {
switch (Object.prototype.toString.call(t)) {
case "[object Error]":
case "[object Exception]":
case "[object DOMException]":
return !0;
default:
return t instanceof Error
}
}
var Et = document.location.hostname;
Et.endsWith("poki-gdn.com") && (Et = "poki-gdn.com");
var xt, Tt = Date.now(),
zt = (xt = new RegExp("poki_erruid" + "=([^;]+)(?:;|$)").exec(document.cookie)) ? xt[1] : "";
function Ct(t) {
if (bt.gameId && bt.versionId) {
if (!(Date.now() < Tt)) {
zt || function(t, n, e) {
document.cookie = t + "=" + n + "; path=/; samesite=lax; max-age=" + (e || 63072e3) + "; domain=" + Et
}("poki_erruid", zt = Math.random().toString(36).substr(2, 9));
try {
var n = JSON.stringify({
gid: bt.gameId,
vid: bt.versionId,
ve: 7,
n: t.name,
m: t.message,
s: JSON.stringify(t.stack),
ui: zt
}),
e = "https://t.poki.io/ge";
if (navigator.sendBeacon) navigator.sendBeacon(e, n);
else {
var i = new XMLHttpRequest;
i.open("POST", e, !0), i.send(n)
}
Tt = Date.now() + 100
} catch (t) {
console.error(t)
}
}
} else console.log(t)
}
function It(t) {
return "function" == typeof t
}
function _t(t, n) {
return Object.prototype.hasOwnProperty.call(t, n)
}
function Bt(t, n, e) {
if (null != t) {
var i = t[n];
i && i.__poki__ || (t[n] = e(i), t[n].__poki__ = !0, t[n].__orig__ = i)
}
}
function Pt(t) {
if (!It(t)) return t;
try {
if (t.__poki__) return t;
if (t.__poki_wrapper__) return t.__poki_wrapper__
} catch (n) {
return t
}
function n() {
for (var n = [], e = arguments.length; e--;) n[e] = Pt(arguments[e]);
try {
var i = t.apply(this, n);
return window.pokiLastCatch = null, i
} catch (t) {
throw window.pokiLastCatch = t, t
}
}
for (var e in t) _t(t, e) && (n[e] = t[e]);
return n.prototype = t.prototype, t.__poki_wrapper__ = n, n.__poki__ = !0, n.__orig__ = t, n
}
function Dt(t) {
return function(n, e) {
for (var i = new Array(arguments.length), r = 0; r < i.length; ++r) i[r] = arguments[r];
var o = i[0];
return It(o) && (i[0] = Pt(o)), t.apply ? t.apply(this, i) : t(i[0], i[1])
}
}
if ("undefined" != typeof window) {
l.a.remoteFetching = !1, l.a.report.subscribe((function(t) {
if ("Script error." === t.message && window.pokiLastCatch) {
var n = window.pokiLastCatch;
window.pokiLastCatch = null, l.a.report(n)
} else Ct(t)
})), window.onunhandledrejection = function(t) {
St(t.reason) ? l.a.report(t.reason) : Ct({
name: "unhandledrejection",
message: JSON.stringify(t.reason)
})
};
"bd6bdd9e-33a9-11ea-a08a-acde48001122" === bt.gameId && (["EventTarget", "Window", "Node", "ApplicationCache", "AudioTrackList", "ChannelMergerNode", "CryptoOperation", "EventSource", "FileReader", "HTMLUnknownElement", "IDBDatabase", "IDBRequest", "IDBTransaction", "KeyOperation", "MediaController", "MessagePort", "ModalWindow", "Notification", "SVGElementInstance", "Screen", "TextTrack", "TextTrackCue", "TextTrackList", "WebSocket", "WebSocketWorker", "Worker", "XMLHttpRequest", "XMLHttpRequestEventTarget", "XMLHttpRequestUpload"].forEach((function(t) {
return n = t, void((e = window[n] && window[n].prototype) && e.hasOwnProperty && e.hasOwnProperty("addEventListener") && (Bt(e, "addEventListener", (function(t) {
return function(n, e, i, r) {
try {
e && e.handleEvent && (e.handleEvent = Pt(e.handleEvent))
} catch (t) {}
return t.call(this, n, Pt(e), i, r)
}
})), Bt(e, "removeEventListener", (function(t) {
return function(n, e, i, r) {
try {
e = e && (e.__poki_wrapper__ ? e.__poki_wrapper__ : e)
} catch (t) {}
return t.call(this, n, e, i, r)
}
}))));
var n, e
})), Bt(window, "setTimeout", Dt), Bt(window, "setInterval", Dt), void 0 !== window.requestAnimationFrame && Bt(window, "requestAnimationFrame", (function(t) {
return function(n) {
return t(Pt(n))
}
})))
}
var Lt = function() {
return (Lt = Object.assign || function(t) {
for (var n, e = 1, i = arguments.length; e < i; e++)
for (var r in n = arguments[e]) Object.prototype.hasOwnProperty.call(n, r) && (t[r] = n[r]);
return t
}).apply(this, arguments)
},
Ot = new(function() {
function t() {
var t = this;
this.gameStarted = !1, this.SDK = new kt, this.gameplayStartCounter = 0, this.gameplayStopCounter = 0, this.init = function(n) {
return void 0 === n && (n = {}), new Promise((function(e, i) {
n && n.adTagUrl && window && (window.__InternalSDK = t.SDK), t.SDK.init(Lt({
onReady: e,
onAdblocked: i
}, n)), g.sendMessage(A.message.sdkDetails, {
version: "2.150.0"
})
}))
}, this.initWithVideoHB = function() {
return t.init()
}, this.gameLoadingProgress = function(t) {
var n = {};
void 0 !== t.percentageDone && (n.percentageDone = Number(t.percentageDone)), void 0 !== t.kbLoaded && (n.kbLoaded = Number(t.kbLoaded)), void 0 !== t.kbTotal && (n.kbTotal = Number(t.kbTotal)), void 0 !== t.fileNameLoaded && (n.fileNameLoaded = String(t.fileNameLoaded)), void 0 !== t.filesLoaded && (n.filesLoaded = Number(t.filesLoaded)), void 0 !== t.filesTotal && (n.filesTotal = Number(t.filesTotal)), y.track(A.tracking.screen.gameLoadingProgress, n)
}, this.gameLoadingStart = function() {
y.track(A.tracking.screen.gameLoadingStarted)
}, this.gameLoadingFinished = function() {
y.track(A.tracking.screen.gameLoadingFinished)
}, this.gameplayStart = function(n) {
t.gameplayStartCounter++, t.gameStarted || (t.gameStarted = !0, y.track(A.tracking.screen.firstRound), t.SDK.startStartAdsAfterTimer()), y.track(A.tracking.screen.gameplayStart, Lt(Lt({}, n), {
playId: t.gameplayStartCounter
}))
}, this.gameInteractive = function() {
y.track(A.tracking.screen.gameInteractive)
}, this.gameplayStop = function(n) {
t.gameplayStopCounter++, y.track(A.tracking.screen.gameplayStop, Lt(Lt({}, n), {
playId: t.gameplayStartCounter,
stopId: t.gameplayStopCounter
}))
}, this.roundStart = function(t) {
void 0 === t && (t = ""), t = String(t), y.track(A.tracking.screen.roundStart, {
identifier: t
})
}, this.roundEnd = function(t) {
void 0 === t && (t = ""), t = String(t), y.track(A.tracking.screen.roundEnd, {
identifier: t
})
}, this.customEvent = function(n, e, i) {
void 0 === i && (i = {}), n && e ? (n = String(n), e = String(e), i = Lt({}, i), y.track(A.tracking.custom, {
eventNoun: n,
eventVerb: e,
eventData: i
})) : t.error("customEvent", "customEvent needs at least a noun and a verb")
}, this.commercialBreak = function() {
return new Promise((function(n) {
var e = t.gameStarted ? A.ads.position.midroll : A.ads.position.preroll;
f.clearAnnotations(), f.setDataAnnotations({
opportunityId: ft(),
position: e
}), y.track(A.tracking.screen.commercialBreak), t.SDK.requestAd({
position: e,
onFinish: n
})
}))
}, this.rewardedBreak = function() {
return new Promise((function(n) {
var e = A.ads.position.rewarded;
f.clearAnnotations(), f.setDataAnnotations({
opportunityId: ft(),
position: e
}), y.track(A.tracking.screen.rewardedBreak), t.SDK.requestAd({
position: e,
onFinish: function(t) {
t.length > 0 ? n(t[0].rewardAllowed) : n(!1)
}
})
}))
}, this.happyTime = function(n) {
void 0 === n && (n = 1), ((n = Number(n)) < 0 || n > 1) && (n = Math.max(0, Math.min(1, n)), t.warning("happyTime", "Intensity should be a value between 0 and 1, adjusted to " + n)), y.track(A.tracking.screen.happyTime, {
intensity: n
})
}, this.muteAd = function() {
t.SDK.muteAd()
}, this.setPlayerAge = function(n) {
y.track(A.tracking.setPlayerAge, {
age: n
}), n && t.SDK.setPlayerAge(n)
}, this.togglePlayerAdvertisingConsent = function(n) {
y.track(A.tracking.togglePlayerAdvertisingConsent, {
didConsent: n
}), t.SDK.togglePlayerAdvertisingConsent(n), g.sendMessage(A.message.toggleProgrammaticAds, {
enabled: t.SDK.getProgrammaticAdsEnabled()
})
}, this.logError = function(t) {
St(t) ? u.report(t) : Ct({
name: "logError",
message: JSON.stringify(t)
})
}, this.sendHighscore = function() {}, this.setDebugTouchOverlayController = function(n) {
t.SDK.debugTouchOverlayController = n
}, this.getLeaderboard = function() {
return Promise.resolve([])
}, this.warning = function(t, n) {
console.warn("PokiSDK." + t + ": " + n)
}, this.error = function(t, n) {
console.error("PokiSDK." + t + ": " + n)
}
}
return t.prototype.setDebug = function(t) {
void 0 === t && (t = !0), this.SDK.setDebug(t)
}, t.prototype.disableProgrammatic = function() {
this.SDK.disableProgrammatic()
}, t.prototype.toggleNonPersonalized = function(t) {
void 0 === t && (t = !1), this.SDK.toggleNonPersonalized(t)
}, t.prototype.setConsentString = function(t) {
this.SDK.setConsentString(t)
}, t.prototype.displayAd = function(t, n) {
y.track(A.tracking.screen.displayAd, {
size: n
}), this.SDK.displayAd(t, n)
}, t.prototype.destroyAd = function(t) {
this.SDK.destroyAd(t)
}, t.prototype.setVolume = function(t) {
this.SDK.setVolume(t)
}, t
}());
for (var jt in Ot) window.PokiSDK[jt] = Ot[jt]
}]);