Path: blob/main/projects/crossy-road/poki-sdk-core-v2.234.2.js
4626 views
(() => {1var e = {2564: (e, t, i) => {3var n, r, a;4! function(i, o) {5if (i) {6var s = {},7d = i.TraceKit,8A = [].slice,9c = "?",10l = /^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/;11s.noConflict = function() {12return i.TraceKit = d, s13}, s.wrap = function(e) {14return function() {15try {16return e.apply(this, arguments)17} catch (e) {18throw s.report(e), e19}20}21}, s.report = function() {22var e, t, n, r, a = [],23o = null,24d = null;2526function A(e, t, i) {27var n = null;28if (!t || s.collectWindowErrors) {29for (var r in a)30if (p(a, r)) try {31a[r](e, t, i)32} catch (e) {33n = e34}35if (n) throw n36}37}3839function c(t, i, n, r, a) {40if (d) s.computeStackTrace.augmentStackTraceWithInitialElement(d, i, n, t), h();41else if (a) A(s.computeStackTrace(a), !0, a);42else {43var o, c = {44url: i,45line: n,46column: r47},48p = t;49if ("[object String]" === {}.toString.call(t)) {50var u = t.match(l);51u && (o = u[1], p = u[2])52}53c.func = s.computeStackTrace.guessFunctionName(c.url, c.line), c.context = s.computeStackTrace.gatherContext(c.url, c.line), A({54name: o,55message: p,56mode: "onerror",57stack: [c]58}, !0, null)59}60return !!e && e.apply(this, arguments)61}6263function u(e) {64A(s.computeStackTrace(e.reason), !0, e.reason)65}6667function h() {68var e = d,69t = o;70d = null, o = null, A(e, !1, t)71}7273function m(e) {74if (d) {75if (o === e) return;76h()77}78var t = s.computeStackTrace(e);79throw d = t, o = e, setTimeout((function() {80o === e && h()81}), t.incomplete ? 2e3 : 0), e82}83return m.subscribe = function(o) {84! function() {85if (!0 === t) return;86e = i.onerror, i.onerror = c, t = !087}(),88function() {89if (!0 === r) return;90n = i.onunhandledrejection, i.onunhandledrejection = u, r = !091}(), a.push(o)92}, m.unsubscribe = function(o) {93for (var s = a.length - 1; s >= 0; --s) a[s] === o && a.splice(s, 1);940 === a.length && (t && (i.onerror = e, t = !1), r && (i.onunhandledrejection = n, r = !1))95}, m96}(), s.computeStackTrace = function() {97var e = !1,98t = {};99100function n(e) {101if ("string" != typeof e) return [];102if (!p(t, e)) {103var n = "",104r = "";105try {106r = i.document.domain107} catch (e) {}108var a = /(.*)\:\/\/([^:\/]+)([:\d]*)\/{0,1}([\s\S]*)/.exec(e);109a && a[2] === r && (n = function(e) {110if (!s.remoteFetching) return "";111try {112var t = function() {113try {114return new i.XMLHttpRequest115} catch (e) {116return new i.ActiveXObject("Microsoft.XMLHTTP")117}118}();119return t.open("GET", e, !1), t.send(""), t.responseText120} catch (e) {121return ""122}123}(e)), t[e] = n ? n.split("\n") : []124}125return t[e]126}127128function r(e, t) {129var i, r = /function ([^(]*)\(([^)]*)\)/,130a = /['"]?([0-9A-Za-z$_]+)['"]?\s*[:=]\s*(function|eval|new Function)/,131o = "",132s = n(e);133if (!s.length) return c;134for (var d = 0; d < 10; ++d)135if (!u(o = s[t - d] + o)) {136if (i = a.exec(o)) return i[1];137if (i = r.exec(o)) return i[1]138} return c139}140141function a(e, t) {142var i = n(e);143if (!i.length) return null;144var r = [],145a = Math.floor(s.linesOfContext / 2),146o = a + s.linesOfContext % 2,147d = Math.max(0, t - a - 1),148A = Math.min(i.length, t + o - 1);149t -= 1;150for (var c = d; c < A; ++c) u(i[c]) || r.push(i[c]);151return r.length > 0 ? r : null152}153154function o(e) {155return e.replace(/[\-\[\]{}()*+?.,\\\^$|#]/g, "\\$&")156}157158function d(e) {159return o(e).replace("<", "(?:<|<)").replace(">", "(?:>|>)").replace("&", "(?:&|&)").replace('"', '(?:"|")').replace(/\s+/g, "\\s+")160}161162function A(e, t) {163for (var i, r, a = 0, o = t.length; a < o; ++a)164if ((i = n(t[a])).length && (i = i.join("\n"), r = e.exec(i))) return {165url: t[a],166line: i.substring(0, r.index).split("\n").length,167column: r.index - i.lastIndexOf("\n", r.index) - 1168};169return null170}171172function l(e, t, i) {173var r, a = n(t),174s = new RegExp("\\b" + o(e) + "\\b");175return i -= 1, a && a.length > i && (r = s.exec(a[i])) ? r.index : null176}177178function h(e) {179if (!u(i && i.document)) {180for (var t, n, r, a, s = [i.location.href], c = i.document.getElementsByTagName("script"), l = "" + e, p = 0; p < c.length; ++p) {181var h = c[p];182h.src && s.push(h.src)183}184if (r = /^function(?:\s+([\w$]+))?\s*\(([\w\s,]*)\)\s*\{\s*(\S[\s\S]*\S)\s*\}\s*$/.exec(l)) {185var m = r[1] ? "\\s+" + r[1] : "",186g = r[2].split(",").join("\\s*,\\s*");187t = o(r[3]).replace(/;$/, ";?"), n = new RegExp("function" + m + "\\s*\\(\\s*" + g + "\\s*\\)\\s*{\\s*" + t + "\\s*}")188} else n = new RegExp(o(l).replace(/\s+/g, "\\s+"));189if (a = A(n, s)) return a;190if (r = /^function on([\w$]+)\s*\(event\)\s*\{\s*(\S[\s\S]*\S)\s*\}\s*$/.exec(l)) {191var v = r[1];192if (t = d(r[2]), a = A(n = new RegExp("on" + v + "=[\\'\"]\\s*" + t + "\\s*[\\'\"]", "i"), s[0])) return a;193if (a = A(n = new RegExp(t), s)) return a194}195return null196}197}198199function m(e) {200if (!e.stack) return null;201for (var t, i, n, o = /^\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, A = /(\S+) line (\d+)(?: > eval line \d+)* > eval/i, p = /\((\S*)(?::(\d+))(?::(\d+))\)/, h = e.stack.split("\n"), m = [], g = /^(.*) is undefined$/.exec(e.message), v = 0, f = h.length; v < f; ++v) {202if (i = o.exec(h[v])) {203var b = i[2] && 0 === i[2].indexOf("native");204i[2] && 0 === i[2].indexOf("eval") && (t = p.exec(i[2])) && (i[2] = t[1], i[3] = t[2], i[4] = t[3]), n = {205url: b ? null : i[2],206func: i[1] || c,207args: b ? [i[2]] : [],208line: i[3] ? +i[3] : null,209column: i[4] ? +i[4] : null210}211} else if (i = d.exec(h[v])) n = {212url: i[2],213func: i[1] || c,214args: [],215line: +i[3],216column: i[4] ? +i[4] : null217};218else {219if (!(i = s.exec(h[v]))) continue;220i[3] && i[3].indexOf(" > eval") > -1 && (t = A.exec(i[3])) ? (i[3] = t[1], i[4] = t[2], i[5] = null) : 0 !== v || i[5] || u(e.columnNumber) || (m[0].column = e.columnNumber + 1), n = {221url: i[3],222func: i[1] || c,223args: i[2] ? i[2].split(",") : [],224line: i[4] ? +i[4] : null,225column: i[5] ? +i[5] : null226}227}!n.func && n.line && (n.func = r(n.url, n.line)), n.context = n.line ? a(n.url, n.line) : null, m.push(n)228}229return m.length ? (m[0] && m[0].line && !m[0].column && g && (m[0].column = l(g[1], m[0].url, m[0].line)), {230mode: "stack",231name: e.name,232message: e.message,233stack: m234}) : null235}236237function g(e, t, i, n) {238var o = {239url: t,240line: i241};242if (o.url && o.line) {243e.incomplete = !1, o.func || (o.func = r(o.url, o.line)), o.context || (o.context = a(o.url, o.line));244var s = / '([^']+)' /.exec(n);245if (s && (o.column = l(s[1], o.url, o.line)), e.stack.length > 0 && e.stack[0].url === o.url) {246if (e.stack[0].line === o.line) return !1;247if (!e.stack[0].line && e.stack[0].func === o.func) return e.stack[0].line = o.line, e.stack[0].context = o.context, !1248}249return e.stack.unshift(o), e.partial = !0, !0250}251return e.incomplete = !0, !1252}253254function v(e, t) {255for (var i, n, a, o = /function\s+([_$a-zA-Z\xA0-\uFFFF][_$a-zA-Z0-9\xA0-\uFFFF]*)?\s*\(/i, d = [], A = {}, p = !1, u = v.caller; u && !p; u = u.caller)256if (u !== f && u !== s.report) {257if (n = {258url: null,259func: c,260args: [],261line: null,262column: null263}, u.name ? n.func = u.name : (i = o.exec(u.toString())) && (n.func = i[1]), void 0 === n.func) try {264n.func = i.input.substring(0, i.input.indexOf("{"))265} catch (e) {}266if (a = h(u)) {267n.url = a.url, n.line = a.line, n.func === c && (n.func = r(n.url, n.line));268var m = / '([^']+)' /.exec(e.message || e.description);269m && (n.column = l(m[1], a.url, a.line))270}271A["" + u] ? p = !0 : A["" + u] = !0, d.push(n)272} t && d.splice(0, t);273var b = {274mode: "callers",275name: e.name,276message: e.message,277stack: d278};279return g(b, e.sourceURL || e.fileName, e.line || e.lineNumber, e.message || e.description), b280}281282function f(t, o) {283var s = null;284o = null == o ? 0 : +o;285try {286if (s = function(e) {287var t = e.stacktrace;288if (t) {289for (var i, n = / line (\d+).*script (?:in )?(\S+)(?:: in function (\S+))?$/i, o = / line (\d+), column (\d+)\s*(?:in (?:<anonymous function: ([^>]+)>|([^\)]+))\((.*)\))? in (.*):\s*$/i, s = t.split("\n"), d = [], A = 0; A < s.length; A += 2) {290var c = null;291if ((i = n.exec(s[A])) ? c = {292url: i[2],293line: +i[1],294column: null,295func: i[3],296args: []297} : (i = o.exec(s[A])) && (c = {298url: i[6],299line: +i[1],300column: +i[2],301func: i[3] || i[4],302args: i[5] ? i[5].split(",") : []303}), c) {304if (!c.func && c.line && (c.func = r(c.url, c.line)), c.line) try {305c.context = a(c.url, c.line)306} catch (e) {}307c.context || (c.context = [s[A + 1]]), d.push(c)308}309}310return d.length ? {311mode: "stacktrace",312name: e.name,313message: e.message,314stack: d315} : null316}317}(t), s) return s318} catch (t) {319e320}321try {322if (s = m(t)) return s323} catch (t) {324e325}326try {327if (s = function(e) {328var t = e.message.split("\n");329if (t.length < 4) return null;330var o, s = /^\s*Line (\d+) of linked script ((?:file|https?|blob)\S+)(?:: in function (\S+))?\s*$/i,331c = /^\s*Line (\d+) of inline#(\d+) script in ((?:file|https?|blob)\S+)(?:: in function (\S+))?\s*$/i,332l = /^\s*Line (\d+) of function script\s*$/i,333u = [],334h = i && i.document && i.document.getElementsByTagName("script"),335m = [];336for (var g in h) p(h, g) && !h[g].src && m.push(h[g]);337for (var v = 2; v < t.length; v += 2) {338var f = null;339if (o = s.exec(t[v])) f = {340url: o[2],341func: o[3],342args: [],343line: +o[1],344column: null345};346else if (o = c.exec(t[v])) {347f = {348url: o[3],349func: o[4],350args: [],351line: +o[1],352column: null353};354var b = +o[1],355y = m[o[2] - 1];356if (y) {357var k = n(f.url);358if (k) {359var w = (k = k.join("\n")).indexOf(y.innerText);360w >= 0 && (f.line = b + k.substring(0, w).split("\n").length)361}362}363} else if (o = l.exec(t[v])) {364var I = i.location.href.replace(/#.*$/, ""),365S = A(new RegExp(d(t[v + 1])), [I]);366f = {367url: I,368func: "",369args: [],370line: S ? S.line : o[1],371column: null372}373}374if (f) {375f.func || (f.func = r(f.url, f.line));376var E = a(f.url, f.line),377_ = E ? E[Math.floor(E.length / 2)] : null;378E && _.replace(/^\s*/, "") === t[v + 1].replace(/^\s*/, "") ? f.context = E : f.context = [t[v + 1]], u.push(f)379}380}381return u.length ? {382mode: "multiline",383name: e.name,384message: t[0],385stack: u386} : null387}(t), s) return s388} catch (t) {389e390}391try {392if (s = v(t, o + 1)) return s393} catch (t) {394e395}396return {397name: t.name,398message: t.message,399mode: "failed"400}401}402return f.augmentStackTraceWithInitialElement = g, f.computeStackTraceFromStackProp = m, f.guessFunctionName = r, f.gatherContext = a, f.ofCaller = function(e) {403e = 1 + (null == e ? 0 : +e);404try {405throw new Error406} catch (t) {407return f(t, e + 1)408}409}, f.getSource = n, f410}(), s.extendToAsynchronousCallbacks = function() {411var e = function(e) {412var t = i[e];413i[e] = function() {414var e = A.call(arguments),415i = e[0];416return "function" == typeof i && (e[0] = s.wrap(i)), t.apply ? t.apply(this, e) : t(e[0], e[1])417}418};419e("setTimeout"), e("setInterval")420}, s.remoteFetching || (s.remoteFetching = !0), s.collectWindowErrors || (s.collectWindowErrors = !0), (!s.linesOfContext || s.linesOfContext < 1) && (s.linesOfContext = 11), r = [], void 0 === (a = "function" == typeof(n = s) ? n.apply(t, r) : n) || (e.exports = a)421}422423function p(e, t) {424return Object.prototype.hasOwnProperty.call(e, t)425}426427function u(e) {428return void 0 === e429}430}("undefined" != typeof window ? window : i.g)431}432},433t = {};434435function i(n) {436if (t[n]) return t[n].exports;437var r = t[n] = {438exports: {}439};440return e[n](r, r.exports, i), r.exports441}442i.n = e => {443var t = e && e.__esModule ? () => e.default : () => e;444return i.d(t, {445a: t446}), t447}, i.d = (e, t) => {448for (var n in t) i.o(t, n) && !i.o(e, n) && Object.defineProperty(e, n, {449enumerable: !0,450get: t[n]451})452}, i.g = function() {453if ("object" == typeof globalThis) return globalThis;454try {455return this || new Function("return this")()456} catch (e) {457if ("object" == typeof window) return window458}459}(), i.o = (e, t) => Object.prototype.hasOwnProperty.call(e, t), (() => {460"use strict";461var e = i(564),462t = i.n(e);463const n = {464ready: "pokiAppReady",465adblocked: "pokiAppAdblocked",466ads: {467completed: "pokiAdsCompleted",468error: "pokiAdsError",469impression: "pokiAdsImpression",470durationChange: "pokiAdsDurationChange",471limit: "pokiAdsLimit",472ready: "pokiAdsReady",473requested: "pokiAdsRequested",474prebidRequested: "pokiAdsPrebidRequested",475skipped: "pokiAdsSkipped",476started: "pokiAdsStarted",477stopped: "pokiAdsStopped",478busy: "pokiAdsBusy",479position: {480preroll: "PP",481midroll: "PM",482rewarded: "PR",483display: "DP"484},485video: {486clicked: "pokiVideoAdsClicked",487firstQuartile: "pokiVideoAdsFirstQuartile",488midPoint: "pokiVideoAdsMidPoint",489thirdQuartile: "pokiVideoAdsThirdQuartile",490error: "pokiVideoAdsError",491loaderError: "pokiVideoAdsLoaderError",492paused: "pokiVideoAdsPauseTriggered",493resumed: "pokiVideoAdsResumedTriggered",494progress: "pokiVideoAdsProgress",495buffering: "pokiVideoAdsBuffering"496}497},498info: {499messages: {500timeLimit: "The ad-request was not processed, because of a time constraint",501prerollLimit: "The ad-request was cancelled, because we're not allowed to show a preroll"502}503},504message: {505event: "pokiMessageEvent",506sdkDetails: "pokiMessageSdkDetails",507toggleProgrammaticAds: "pokiMessageToggleProgrammaticAds"508},509tracking: {510custom: "pokiTrackingCustom",511togglePlayerAdvertisingConsent: "pokiTrackingTogglePlayerAdvertisingConsent",512debugTrueInProduction: "pokiMessageDebugTrueProduction",513screen: {514gameplayStart: "pokiTrackingScreenGameplayStart",515gameplayStop: "pokiTrackingScreenGameplayStop",516gameLoadingStarted: "pokiTrackingScreenGameLoadingStarted",517gameLoadingProgress: "pokiTrackingScreenGameLoadingProgress",518gameLoadingFinished: "pokiTrackingScreenGameLoadingFinished",519commercialBreak: "pokiTrackingScreenCommercialBreak",520rewardedBreak: "pokiTrackingScreenRewardedBreak",521happyTime: "pokiTrackingScreenHappyTime",522firstRound: "pokiTrackingScreenFirstRound",523roundStart: "pokiTrackingScreenRoundStart",524roundEnd: "pokiTrackingScreenRoundEnd",525gameInteractive: "pokiTrackingScreenGameInteractive",526displayAd: "pokiTrackingScreenDisplayAdRequest",527destroyAd: "pokiTrackingScreenDisplayAdDestroy"528},529sdk: {530status: {531initialized: "pokiTrackingSdkStatusInitialized",532failed: "pokiTrackingSdkStatusFailed"533}534},535ads: {536status: {537busy: "pokiTrackingAdsStatusBusy",538completed: "pokiTrackingAdsStatusCompleted",539error: "pokiTrackingAdsStatusError",540displayError: "pokiTrackingAdsStatusDisplayError",541impression: "pokiTrackingAdsStatusImpression",542limit: "pokiTrackingAdsStatusLimit",543ready: "pokiTrackingAdsStatusReady",544requested: "pokiTrackingAdsStatusRequested",545prebidRequested: "pokiTrackingAdsStatusPrebidRequested",546skipped: "pokiTrackingAdsStatusSkipped",547started: "pokiTrackingAdsStatusStarted",548buffering: "pokiTrackingAdsStatusBuffering"549},550video: {551clicked: "pokiTrackingAdsVideoClicked",552error: "pokiTrackingAdsVideoError",553loaderError: "pokiTrackingAdsVideoLoaderError",554progress: "pokiTrackingAdsVideoProgress",555paused: "pokiTrackingAdsVideoPaused",556resumed: "pokiTrackingAdsVideoResumed"557},558display: {559requested: "pokiTrackingScreenDisplayAdRequested",560impression: "pokiTrackingScreenDisplayAdImpression",561viewable: "pokiTrackingScreenDisplayAdViewable"562}563}564}565};566const r = function() {567function e() {}568return e.debug = !1, e.log = !1, e569}();570var a = function() {571return a = Object.assign || function(e) {572for (var t, i = 1, n = arguments.length; i < n; i++)573for (var r in t = arguments[i]) Object.prototype.hasOwnProperty.call(t, r) && (e[r] = t[r]);574return e575}, a.apply(this, arguments)576};577const o = function() {578function e() {}579return e.clearEventListeners = function() {580this.listeners = {}581}, e.removeEventListener = function(e, t) {582if (Object.prototype.hasOwnProperty.call(this.listeners, e)) {583var i = this.listeners[e].indexOf(t); - 1 !== i && this.listeners[e].splice(i, 1)584}585}, e.addEventListener = function(e, t, i) {586var n = this;587if (void 0 === i && (i = !1), i = !!i, Object.prototype.hasOwnProperty.call(this.listeners, e) || (this.listeners[e] = []), i) {588var r = function(i) {589n.removeEventListener.bind(n)(e, r), t(i)590};591this.listeners[e].push(r)592} else this.listeners[e].push(t)593}, e.dispatchEvent = function(e, t) {594void 0 === t && (t = {}), !r.debug || window.process && window.process.env && "test" === window.process.env.NODE_ENV || console.info(e, t);595for (var i = Object.keys(this.listeners), n = 0; n < i.length; n++) {596var o = i[n];597if (e === o)598for (var s = this.listeners[o], d = 0; d < s.length; d++) s[d](a(a({}, this.dataAnnotations), t))599}600}, e.setDataAnnotations = function(e) {601this.dataAnnotations = a(a({}, this.dataAnnotations), e)602}, e.getDataAnnotations = function() {603return this.dataAnnotations604}, e.clearAnnotations = function() {605this.dataAnnotations = {}606}, e.listeners = {}, e.dataAnnotations = {}, e607}();608const s = function(e, t) {609var i = !1;610return Object.keys(t).forEach((function(n) {611t[n] === e && (i = !0)612})), i613};614615function d() {616var e, t = (null === (e = null === window || void 0 === window ? void 0 : window.location) || void 0 === e ? void 0 : e.hostname) || "";617return "game-cdn.poki.com" === t || t.endsWith(".poki-gdn.com"), !1618}619var A = {620adTagUrl: "",621adTiming: {622preroll: !1,623timeBetweenAds: 12e4,624timePerTry: 7e3,625startAdsAfter: 12e4626},627waterfallRetries: d() ? 1 : 2628},629c = {630AE: {631video: {632amazon: .7,633appnexus: .76634}635},636AL: {637video: {638amazon: .75639}640},641AT: {642video: {643appnexus: .6,644onetag: .81,645pubmatic: .82646}647},648AU: {649video: {650pubmatic: .43,651rubicon: .38652}653},654AZ: {655video: {656amazon: .72,657onetag: .84658}659},660BE: {661video: {662amazon: .83,663appnexus: .79664}665},666BG: {667video: {668appnexus: .72669}670},671BO: {672video: {673ix: .84674}675},676CA: {677video: {678amazon: .84,679pubmatic: .81680}681},682CL: {683video: {684amazon: .78685}686},687CO: {688video: {689amazon: .85690}691},692CZ: {693video: {694appnexus: .77695}696},697DE: {698video: {699appnexus: .21,700onetag: .81701}702},703DO: {704video: {705onetag: .84706}707},708DZ: {709video: {710amazon: .41711}712},713EG: {714video: {715amazon: .15,716rubicon: .63717}718},719ES: {720video: {721appnexus: .66,722ix: .84,723onetag: .82,724openx: .84,725pubmatic: .79726}727},728FI: {729video: {730appnexus: .43731}732},733FR: {734video: {735appnexus: .26,736ix: .53,737onetag: .81738}739},740GB: {741video: {742districtm: .83,743onetag: .8744}745},746GT: {747video: {748amazon: .74749}750},751HU: {752video: {753amazon: .55,754appnexus: .65755}756},757IE: {758video: {759onetag: .66760}761},762IN: {763video: {764appnexus: .72765}766},767IT: {768video: {769appnexus: .46,770onetag: .46771}772},773JP: {774video: {775onetag: .84776}777},778KE: {779video: {780onetag: .84781}782},783KW: {784video: {785onetag: .83786}787},788KZ: {789video: {790onetag: .8791}792},793LU: {794video: {795onetag: .82796}797},798MA: {799video: {800amazon: .68801}802},803MD: {804video: {805onetag: .7806}807},808MX: {809video: {810amazon: .47,811pubmatic: .75812}813},814NL: {815video: {816ix: .39,817onetag: .81,818openx: .71,819richaudience: .72820}821},822NZ: {823video: {824amazon: .76,825openx: .83826}827},828OM: {829video: {830onetag: .84831}832},833PE: {834video: {835amazon: .82836}837},838PL: {839video: {840appnexus: .84,841districtm: .71,842onetag: .73843}844},845PR: {846video: {847amazon: .83848}849},850RU: {851video: {852amazon: .78,853onetag: .84854}855},856SA: {857video: {858amazon: .83,859appnexus: .74860}861},862SK: {863video: {864appnexus: .79865}866},867TN: {868video: {869amazon: .61870}871},872UA: {873video: {874onetag: .8875}876},877US: {878video: {879pubmatic: .01880}881},882VE: {883video: {884onetag: .8885}886},887VN: {888video: {889appnexus: .81890}891}892};893const l = A;894const p = function(e) {895return e instanceof Array ? e : [e]896};897const u = function() {898function e(e) {899void 0 === e && (e = {}), this.setTimings(e), this.timingIdx = {900timePerTry: 0901}, this.timers = {902timePerTry: void 0,903timeBetweenAds: void 0,904startAdsAfter: void 0905}, o.addEventListener(n.ads.requested, this.startTimeBetweenAdsTimer.bind(this)), o.addEventListener(n.ads.completed, this.startTimeBetweenAdsTimer.bind(this)), o.addEventListener(n.ads.stopped, this.startTimeBetweenAdsTimer.bind(this))906}907return e.prototype.setTimings = function(e) {908var t = l.adTiming,909i = e.preroll,910n = void 0 === i ? t.preroll : i,911r = e.timePerTry,912a = void 0 === r ? t.timePerTry : r,913o = e.timeBetweenAds,914s = void 0 === o ? t.timeBetweenAds : o,915d = e.startAdsAfter,916A = void 0 === d ? t.startAdsAfter : d;917this.timings = {918preroll: !1 !== n,919timePerTry: p(a),920timeBetweenAds: s,921startAdsAfter: A922}923}, e.prototype.startTimeBetweenAdsTimer = function() {924this.startTimer("timeBetweenAds")925}, e.prototype.startStartAdsAfterTimer = function() {926this.startTimer("startAdsAfter")927}, e.prototype.requestPossible = function() {928return !this.timers.timeBetweenAds && !this.timers.startAdsAfter929}, e.prototype.startWaterfallTimer = function(e) {930this.startTimer("timePerTry", e)931}, e.prototype.stopWaterfallTimer = function() {932this.stopTimer("timePerTry")933}, e.prototype.nextWaterfallTimer = function() {934this.nextTiming("timePerTry")935}, e.prototype.resetWaterfallTimerIdx = function() {936this.resetTimingIdx("timePerTry")937}, e.prototype.stopTimer = function(e) {938this.timers[e] && (clearTimeout(this.timers[e]), this.timers[e] = void 0)939}, e.prototype.startTimer = function(e, t) {940var i = this;941void 0 === t && (t = function() {}), this.getTiming(e) <= 0 ? t() : (this.timers[e] && clearTimeout(this.timers[e]), this.timers[e] = window.setTimeout((function() {942i.stopTimer(e), t()943}), this.getTiming(e)))944}, e.prototype.getTiming = function(e) {945var t = this.timings[e];946return t instanceof Array ? t[this.timingIdx[e]] : t947}, e.prototype.nextTiming = function(e) {948if (void 0 === this.timingIdx[e]) throw new Error("AdTimings Error: " + e + " does not have multiple timers");949this.timingIdx[e] = (this.timingIdx[e] + 1) % this.timings[e].length950}, e.prototype.resetTimingIdx = function(e) {951if (void 0 === this.timingIdx[e]) throw new Error("AdTimings Error: " + e + " does not have multiple timers");952this.timingIdx[e] = 0953}, e.prototype.prerollPossible = function() {954return this.timings.preroll955}, e956}();957var h = document.location.hostname;958959function m(e) {960var t = new RegExp(e + "=([^;]+)(?:;|$)").exec(document.cookie);961return t ? t[1] : ""962}963964function g(e, t) {965document.cookie = e + "=" + t + "; path=/; samesite=none; secure; max-age=15552000; domain=" + h966}967h.endsWith("poki-gdn.com") && (h = "poki-gdn.com");968var v = function(e, t, i, n) {969return new(i || (i = Promise))((function(r, a) {970function o(e) {971try {972d(n.next(e))973} catch (e) {974a(e)975}976}977978function s(e) {979try {980d(n.throw(e))981} catch (e) {982a(e)983}984}985986function d(e) {987var t;988e.done ? r(e.value) : (t = e.value, t instanceof i ? t : new i((function(e) {989e(t)990}))).then(o, s)991}992d((n = n.apply(e, t || [])).next())993}))994},995f = function(e, t) {996var i, n, r, a, o = {997label: 0,998sent: function() {999if (1 & r[0]) throw r[1];1000return r[1]1001},1002trys: [],1003ops: []1004};1005return a = {1006next: s(0),1007throw: s(1),1008return: s(2)1009}, "function" == typeof Symbol && (a[Symbol.iterator] = function() {1010return this1011}), a;10121013function s(a) {1014return function(s) {1015return function(a) {1016if (i) throw new TypeError("Generator is already executing.");1017for (; o;) try {1018if (i = 1, n && (r = 2 & a[0] ? n.return : a[0] ? n.throw || ((r = n.return) && r.call(n), 0) : n.next) && !(r = r.call(n, a[1])).done) return r;1019switch (n = 0, r && (a = [2 & a[0], r.value]), a[0]) {1020case 0:1021case 1:1022r = a;1023break;1024case 4:1025return o.label++, {1026value: a[1],1027done: !11028};1029case 5:1030o.label++, n = a[1], a = [0];1031continue;1032case 7:1033a = o.ops.pop(), o.trys.pop();1034continue;1035default:1036if (!(r = o.trys, (r = r.length > 0 && r[r.length - 1]) || 6 !== a[0] && 2 !== a[0])) {1037o = 0;1038continue1039}1040if (3 === a[0] && (!r || a[1] > r[0] && a[1] < r[3])) {1041o.label = a[1];1042break1043}1044if (6 === a[0] && o.label < r[1]) {1045o.label = r[1], r = a;1046break1047}1048if (r && o.label < r[2]) {1049o.label = r[2], o.ops.push(a);1050break1051}1052r[2] && o.ops.pop(), o.trys.pop();1053continue1054}1055a = t.call(e, o)1056} catch (e) {1057a = [6, e], n = 01058} finally {1059i = r = 01060}1061if (5 & a[0]) throw a[1];1062return {1063value: a[0] ? a[1] : void 0,1064done: !01065}1066}([a, s])1067}1068}1069},1070b = function(e, t, i) {1071if (i || 2 === arguments.length)1072for (var n, r = 0, a = t.length; r < a; r++) !n && r in t || (n || (n = Array.prototype.slice.call(t, 0, r)), n[r] = t[r]);1073return e.concat(n || Array.prototype.slice.call(t))1074},1075y = "poki_gcuid",1076k = m(y);1077const w = function() {1078function e() {}1079return e.collectAndLog = function() {1080return v(this, void 0, void 0, (function() {1081var e, t, i, n, r;1082return f(this, (function(a) {1083switch (a.label) {1084case 0:1085return a.trys.push([0, 5, , 6]), [4, window.cookieStore.getAll()];1086case 1:1087return e = a.sent(), window.indexedDB.databases ? [4, window.indexedDB.databases()] : [3, 3];1088case 2:1089return i = a.sent(), [3, 4];1090case 3:1091i = [], a.label = 4;1092case 4:1093return t = i, n = b(b(b([], e.map((function(e) {1094return {1095name: e.name,1096expire_seconds: Math.round((e.expires - Date.now()) / 1e3),1097type: "cookie"1098}1099})), !0), Object.keys(window.localStorage).map((function(e) {1100return {1101name: e,1102expire_seconds: 15552e3,1103type: "localStorage"1104}1105})), !0), t.map((function(e) {1106return {1107name: e.name,1108expire_seconds: 0,1109type: "idb"1110}1111})), !0), r = {1112cookies: n,1113p4d_game_id: tt.gameId,1114user_id: k1115}, window.fetch("https://t.poki.io/game-cookies", {1116method: "post",1117body: JSON.stringify(r)1118}).catch(), [3, 6];1119case 5:1120return a.sent(), [3, 6];1121case 6:1122return [2]1123}1124}))1125}))1126}, e.trackSavegames = function() {1127window.cookieStore && window.cookieStore.getAll && tt.gameId && (Math.random() > .01 || (k || (k = Math.random().toString(36).substr(2, 9), g(y, k)), e.collectAndLog(), setInterval(e.collectAndLog, 12e4)))1128}, e1129}(),1130I = function() {1131return window.location.href1132},1133S = function() {1134return "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)1135},1136E = function() {1137return "undefined" != typeof navigator && /(?:ipad|playbook|(?:android|bb\d+|meego|silk)(?! .+? mobile))/i.test(navigator.userAgent)1138},1139_ = function(e, t) {1140var i;1141if ("undefined" == typeof window && !t) return "";1142e = e.replace(/[\[]/, "\\[").replace(/[\]]/, "\\]");1143var n = new RegExp("(?:[\\?&]|^)" + e + "=([^&#]*)").exec(t || (null === (i = null === window || void 0 === window ? void 0 : window.location) || void 0 === i ? void 0 : i.search) || "");1144return null === n ? "" : decodeURIComponent(n[1].replace(/\+/g, " "))1145},1146x = function() {1147return "undefined" != typeof navigator && /MSIE \\d|Trident.*rv:/i.test(navigator.userAgent)1148};1149var C = {11501: "eNjDw1AVTr",11512: "HkuQJaWnBa",11523: "AfRKClvdYk",11534: "Db7uYbsnlW",11545: "UprdYKe74r",11556: "tBCJC9E6Y4",11567: "AfRKClvdYk",11578: "tJ44vpLpuM",11589: "mF5ASaga4A",115910: "rKV8rMwiwk",116011: "SvK8BH5qS5",116112: "SpfIMxnWTS",116213: "ysxIcmt3tW",116314: "gLmtGS4aUq",116415: "RU6ebIFLw9",116516: "r9G4tVMYw7",116617: "SgcDa5B8s1",116718: "AfRKClvdYk",116819: "DNZX8XdJXV",116920: "39o4YUyZTX",117021: "5sb2HFpz5a",117122: "pgXzCJZipE",117223: "Oani8EAGI9",117324: "IzCeh7d7vW",117425: "I5vRNtjoMr",117526: "KpySvG7luq",117627: "dK42J4rI14",117728: "HuYorw3fRg",117829: "mf84cGYc1h",117930: "9ALgxEyGXU",118031: "lBzSdVGY8F",118132: "hKYgk9Wb8q",118233: "xPBr8E54eE",118334: "ZvIK2WKC7G",118435: "7kiYi3zlIX",118536: "VpygYMTDgm",118637: "mis9Mt4np4",118738: "AfRKClvdYk",118841: "Fqmjp9Hit3",118942: "lS2XGg058L",119043: "AfRKClvdYk",119146: "AfRKClvdYk",119247: "21OybbiIdc",119348: "AfRKClvdYk",119449: "CMVoMvvEmu",119550: "IoQrhRb3wU",119652: "AfRKClvdYk",119753: "AfRKClvdYk"1198};1199const T = function(e) {1200return 15 === e ? "MP_gIE1VDieUi" : C[e] || ""1201};1202var B = ["AU", "CA", "IE", "NZ", "US", "GB"],1203P = ["AT", "BE", "DK", "FI", "FR", "DE", "JA", "NO", "NL", "SA", "ES", "SE", "CH", "AE", "IT"],1204D = ["BR", "CL", "CZ", "HU", "PL", "PT", "RU", "SK", "TH"],1205M = ["AR", "BG", "CO", "EC", "GR", "IN", "MX", "PE", "PH", "RO", "TR", "UY"];12061207function R(e) {1208return B.includes(e) ? .13 : P.includes(e) ? .07 : D.includes(e) ? .04 : .021209}12101211function L(e) {1212return "US" === e ? 1.5 : B.includes(e) ? .5 : P.includes(e) ? .15 : D.includes(e) ? .08 : M.includes(e) ? .03 : .021213}1214const z = function(e) {1215r.debug ? console.log(e) : fetch("https://t.poki.io/adserver", {1216method: "POST",1217mode: "no-cors",1218body: JSON.stringify(e)1219})1220};1221var O = ["https://a.poki.com/houseads/duo_survival_3.xml", "https://a.poki.com/houseads/like_a_king.xml", "https://a.poki.com/houseads/merge_cyber_racers.xml", "https://a.poki.com/houseads/subway_surfers.xml", "https://a.poki.com/houseads/tower_crush_compressed.xml"];12221223function G() {1224return (e = O)[Math.floor(Math.random() * e.length)];1225var e1226}1227var j = {1228v_k0treo: 2.5,1229v_qr1wxs: 7.5,1230v_9diccg: 19,1231v_13q0xkw: .25,1232v_dn33ls: 1,1233v_z07u2o: 1.5,1234v_1400iyo: 2.25,1235v_9w8kxs: 3,1236v_ufej9c: 3.5,1237v_10960ao: 4.25,1238v_1ksbym8: 4.75,1239v_1ag9340: 5.25,1240v_1tbhh4w: 5.75,1241v_jjcgzk: 6.5,1242v_brnu9s: 7,1243v_1wscef4: 7.75,1244v_q22xhc: 8.5,1245v_f8irk0: 9,1246v_1rik45c: 9.75,1247v_lxhyww: 10.5,1248v_a9z0u8: 11,1249v_1yhiww0: 11.75,1250v_10mwg74: 12.25,1251v_1ji4u80: 12.75,1252v_wm2c5c: 13.5,1253v_2na6tc: 14,1254v_1myzri8: 14.75,1255v_3pzm68: 6,1256v_16kerr4: 6.25,1257v_1mdrmkg: 6.75,1258v_1ga0k5c: 7.25,1259v_5iwz5s: 8,1260v_12tk934: 8.25,1261v_1hsybr4: 8.75,1262v_1cj61hc: 9.25,1263v_y3r5kw: 9.5,1264v_94ow0: 10,1265v_15woqgw: 10.25,1266v_1orx4hs: 10.75,1267v_1d4e6f4: 11.25,1268v_t57ev4: 11.5,1269v_783hmo: 12,1270v_m7hkao: 12.5,1271v_hmo9hc: 13,1272v_19djnr4: 13.25,1273v_1twpm2o: 13.75,1274v_17zlou8: 14.25,1275v_ign1mo: 14.5,1276v_ccvz7k: 15,1277v_1f7b4sg: 15.25,1278v_snq4g0: 15.5,1279v_5wnf28: 16,1280v_137aozk: 16.25,1281v_1j0njsw: 16.75,1282v_1b8yx34: 17.25,1283v_yhhlhc: 17.5,1284v_25swe8: 18,1285v_15081z4: 18.25,1286v_1pje0ao: 18.75,1287v_1eptudc: 19.25,1288v_1xl28e8: 19.75,1289v_gfliio: 21,1290v_3y3sao: 22,1291v_ixhuyo: 22.5,1292v_ro52io: 23.5,1293v_qa73ls: 24.5,1294v_emo5j4: 25,1295v_yq5fk: 26,1296v_aobxts: 27,1297v_6shmgw: 28,1298v_natgqo: 28.5,1299v_x0f94w: 29.5,1300v_d2hfr4: 31,1301v_dch14w: 33,1302v_1jyadc: 34,1303v_8p5tz4: 36,1304v_fwv9xc: 37,1305v_c60r9c: 39,1306v_58awow: 40,1307v_bbcow: 42,1308v_a0x534: 43,1309v_hdmdq8: 45,1310v_2e8b28: 46,1311v_5nljb4: 48,1312v_1wr0n4: 50,1313v_pam1og: .5,1314v_1ipf08w: .75,1315v_1axqdj4: 1.25,1316v_1qr38cg: 1.75,1317v_15ldds: 2,1318v_1q248w0: 2.75,1319v_1eelatc: 3.25,1320v_1x9tou8: 3.75,1321v_8iam0w: 4,1322v_nhooow: 4.5,1323v_fq01z4: 5,1324v_w0u77k: 5.5,1325v_1vi5a0w: 15.75,1326v_orvt34: 16.5,1327v_dybn5s: 17,1328v_1q8czr4: 17.75,1329v_l11af4: 18.5,1330v_uqn2tc: 19.5,1331v_7zkdfk: 20,1332v_o7a58g: 20.5,1333v_vezl6o: 21.5,1334v_b5t88w: 23,1335v_4x2d4w: 24,1336v_xhwjk0: 25.5,1337v_lhw3r4: 26.5,1338v_tjkbuo: 27.5,1339v_h72ebk: 29,1340v_31n3sw: 30,1341v_64rl6o: 32,1342v_9lmigw: 35,1343v_3fdjpc: 38,1344v_fapfcw: 41,1345v_7o0lc0: 44,1346v_clbdvk: 47,1347v_ee8qv4: 491348};1349var U = function() {1350return U = Object.assign || function(e) {1351for (var t, i = 1, n = arguments.length; i < n; i++)1352for (var r in t = arguments[i]) Object.prototype.hasOwnProperty.call(t, r) && (e[r] = t[r]);1353return e1354}, U.apply(this, arguments)1355},1356N = function(e, t, i) {1357if (i || 2 === arguments.length)1358for (var n, r = 0, a = t.length; r < a; r++) !n && r in t || (n || (n = Array.prototype.slice.call(t, 0, r)), n[r] = t[r]);1359return e.concat(n || Array.prototype.slice.call(t))1360},1361Q = parseInt(_("site_id"), 10) || 0,1362F = "desktop";1363S() && (F = "mobile"), E() && (F = "tablet");1364var X = "rewarded",1365Z = "video",1366K = {1367"728x90": "/21682198607/" + F + "_ingame_728x90/" + Q + "_" + F + "_ingame_728x90",1368"300x250": "/21682198607/" + F + "_ingame_300x250/" + Q + "_" + F + "_ingame_300x250",1369"970x250": "/21682198607/" + F + "_ingame_970x250/" + Q + "_" + F + "_ingame_970x250",1370"160x600": "/21682198607/" + F + "_ingame_160x600/" + Q + "_" + F + "_ingame_160x600",1371"320x50": "/21682198607/" + F + "_ingame_320x50/" + Q + "_" + F + "_ingame_320x50",1372"728x90_external": "/21682198607/external_" + F + "_display_ingame/external_" + F + "_ingame_728x90",1373"300x250_external": "/21682198607/external_" + F + "_display_ingame/external_" + F + "_ingame_300x250",1374"970x250_external": "/21682198607/external_" + F + "_display_ingame/external_" + F + "_ingame_970x250",1375"160x600_external": "/21682198607/external_" + F + "_display_ingame/external_" + F + "_ingame_160x600",1376"320x50_external": "/21682198607/external_" + F + "_display_ingame/external_" + F + "_ingame_320x50"1377},1378H = parseInt(_("site_id"), 10) || 0,1379W = function(e) {1380var t = x() || S() || E() ? ["video/mp4", "application/javascript"] : ["video/mp4", "video/webm", "video/ogg", "application/javascript"],1381i = U(U({1382mimes: t,1383minduration: 0,1384maxduration: 15,1385protocols: [2, 3, 5, 6, 7, 8],1386w: 640,1387h: 480,1388placement: 1,1389linearity: 11390}, e ? {} : {1391skip: 1,1392skipafter: 51393}), {1394boxingallowed: 1,1395pos: 1,1396api: [2]1397});1398return {1399bids: [{1400bidder: "appnexus",1401params: {1402placementId: 13184250,1403supplyType: "web"1404}1405}, {1406bidder: "openx",1407params: {1408delDomain: "poki-d.openx.net",1409unit: "540105196"1410}1411}, {1412bidder: "spotx",1413params: {1414channel_id: "265590",1415ad_unit: "instream",1416secure: !0,1417hide_skin: !01418}1419}, {1420bidder: "ix",1421params: {1422siteId: "436284",1423video: U({}, i)1424}1425}, {1426bidder: "richaudience",1427params: {1428pid: T(H),1429supplyType: "site"1430}1431}, {1432bidder: "onetag",1433params: {1434pubId: "6da09f566a9dc06"1435}1436}, {1437bidder: "onetag",1438params: {1439pubId: "6da09f566a9dc06",1440ext: {1441override_maxduration: 3600,1442enforce_skip: !01443}1444}1445}, {1446bidder: "rubicon",1447params: {1448accountId: "18608",1449siteId: "266914",1450zoneId: "1322034",1451position: "atf",1452video: {1453size_id: 2041454}1455}1456}, {1457bidder: "pubmatic",1458params: {1459publisherId: "156838",1460adSlot: "3607869@640x360"1461}1462}, {1463bidder: "districtm",1464params: {1465placementId: 129067891466}1467}],1468mediaTypes: {1469video: U({1470context: "instream",1471playerSize: [640, 480]1472}, i)1473}1474}1475},1476V = W(!0),1477q = W(!1),1478J = [{1479code: Z,1480mediaTypes: q.mediaTypes,1481bids: N([], q.bids, !0)1482}, {1483code: X,1484mediaTypes: V.mediaTypes,1485bids: N([], V.bids, !0)1486}, {1487code: K["728x90"],1488mediaTypes: {1489banner: {1490sizes: [1491[728, 90]1492]1493}1494},1495bids: [{1496bidder: "districtm",1497params: {1498placementId: "12906789"1499}1500}, {1501bidder: "appnexus",1502params: {1503placementId: "12940427"1504}1505}, {1506bidder: "openx",1507params: {1508unit: "539859872",1509delDomain: "poki-d.openx.net"1510}1511}, {1512bidder: "ix",1513params: {1514siteId: "268177",1515size: [728, 90]1516}1517}, {1518bidder: "pubmatic",1519params: {1520publisherId: "156838",1521adSlot: "1374895@728x90"1522}1523}, {1524bidder: "emx_digital",1525params: {1526tagid: "80117"1527}1528}, {1529bidder: "conversant",1530params: {1531site_id: "117477",1532secure: 1,1533position: 11534}1535}, {1536bidder: "rubicon",1537params: {1538accountId: "18608",1539siteId: "204596",1540zoneId: "1008080"1541}1542}, {1543bidder: "onetag",1544params: {1545pubId: "6da09f566a9dc06"1546}1547}, {1548bidder: "richaudience",1549params: {1550pid: 15 === H ? "MP_gIE1VDieUi" : "1V6a2fgLvX",1551supplyType: "site"1552}1553}]1554}, {1555code: K["300x250"],1556mediaTypes: {1557banner: {1558sizes: [1559[300, 250]1560]1561}1562},1563bids: [{1564bidder: "districtm",1565params: {1566placementId: "12906789"1567}1568}, {1569bidder: "appnexus",1570params: {1571placementId: "12935252"1572}1573}, {1574bidder: "openx",1575params: {1576unit: "539859873",1577delDomain: "poki-d.openx.net"1578}1579}, {1580bidder: "ix",1581params: {1582siteId: "268178",1583size: [300, 250]1584}1585}, {1586bidder: "pubmatic",1587params: {1588publisherId: "156838",1589adSlot: "1374896@300x250"1590}1591}, {1592bidder: "emx_digital",1593params: {1594tagid: "80118"1595}1596}, {1597bidder: "conversant",1598params: {1599site_id: "117477",1600secure: 1,1601position: 11602}1603}, {1604bidder: "rubicon",1605params: {1606accountId: "18608",1607siteId: "204596",1608zoneId: "1008080"1609}1610}, {1611bidder: "onetag",1612params: {1613pubId: "6da09f566a9dc06"1614}1615}, {1616bidder: "richaudience",1617params: {1618pid: 15 === H ? "MP_gIE1VDieUi" : "pKqNt5LyvF",1619supplyType: "site"1620}1621}]1622}, {1623code: K["970x250"],1624mediaTypes: {1625banner: {1626sizes: [1627[970, 250]1628]1629}1630},1631bids: [{1632bidder: "districtm",1633params: {1634placementId: "12906789"1635}1636}, {1637bidder: "appnexus",1638params: {1639placementId: "20595278"1640}1641}, {1642bidder: "openx",1643params: {1644unit: "543540497",1645delDomain: "poki-d.openx.net"1646}1647}, {1648bidder: "ix",1649params: {1650siteId: "597527",1651size: [970, 250]1652}1653}, {1654bidder: "pubmatic",1655params: {1656publisherId: "156838",1657adSlot: "3344351@970x250"1658}1659}, {1660bidder: "emx_digital",1661params: {1662tagid: "123738"1663}1664}, {1665bidder: "conversant",1666params: {1667site_id: "117477",1668secure: 1,1669position: 11670}1671}, {1672bidder: "onetag",1673params: {1674pubId: "6da09f566a9dc06"1675}1676}, {1677bidder: "richaudience",1678params: {1679pid: 15 === H ? "MP_gIE1VDieUi" : "yYyae7vnIh",1680supplyType: "site"1681}1682}]1683}, {1684code: K["160x600"],1685mediaTypes: {1686banner: {1687sizes: [1688[160, 600]1689]1690}1691},1692bids: [{1693bidder: "districtm",1694params: {1695placementId: "12906789"1696}1697}, {1698bidder: "appnexus",1699params: {1700placementId: "12940425"1701}1702}, {1703bidder: "openx",1704params: {1705unit: "539859871",1706delDomain: "poki-d.openx.net"1707}1708}, {1709bidder: "ix",1710params: {1711siteId: "268175",1712size: [160, 600]1713}1714}, {1715bidder: "pubmatic",1716params: {1717publisherId: "156838",1718adSlot: "1374893@160x600"1719}1720}, {1721bidder: "emx_digital",1722params: {1723tagid: "80119"1724}1725}, {1726bidder: "conversant",1727params: {1728site_id: "117477",1729secure: 1,1730position: 11731}1732}, {1733bidder: "rubicon",1734params: {1735accountId: "18608",1736siteId: "204596",1737zoneId: "1008080"1738}1739}, {1740bidder: "onetag",1741params: {1742pubId: "6da09f566a9dc06"1743}1744}, {1745bidder: "richaudience",1746params: {1747pid: 15 === H ? "MP_gIE1VDieUi" : "rAEnPimPzC",1748supplyType: "site"1749}1750}]1751}, {1752code: K["320x50"],1753mediaTypes: {1754banner: {1755sizes: [1756[320, 50]1757]1758}1759},1760bids: [{1761bidder: "districtm",1762params: {1763placementId: "12906789"1764}1765}, {1766bidder: "appnexus",1767params: {1768placementId: "20595224"1769}1770}, {1771bidder: "openx",1772params: {1773unit: "543540495",1774delDomain: "poki-d.openx.net"1775}1776}, {1777bidder: "ix",1778params: {1779siteId: "597529",1780size: [320, 50]1781}1782}, {1783bidder: "pubmatic",1784params: {1785publisherId: "156838",1786adSlot: "3344350@320x50"1787}1788}, {1789bidder: "conversant",1790params: {1791site_id: "117477",1792secure: 1,1793position: 11794}1795}, {1796bidder: "rubicon",1797params: {1798accountId: "18608",1799siteId: "204596",1800zoneId: "1008080"1801}1802}, {1803bidder: "emx_digital",1804params: {1805tagid: "123737"1806}1807}, {1808bidder: "onetag",1809params: {1810pubId: "6da09f566a9dc06"1811}1812}, {1813bidder: "richaudience",1814params: {1815pid: 15 === H ? "MP_gIE1VDieUi" : "1DP5EtcOip",1816supplyType: "site"1817}1818}]1819}, {1820code: K["728x90_external"],1821mediaTypes: {1822banner: {1823sizes: [1824[728, 90]1825]1826}1827},1828bids: [{1829bidder: "districtm",1830params: {1831placementId: "12906789"1832}1833}, {1834bidder: "appnexus",1835params: {1836placementId: "20973406"1837}1838}, {1839bidder: "openx",1840params: {1841unit: "543885656",1842delDomain: "poki-d.openx.net"1843}1844}, {1845bidder: "ix",1846params: {1847siteId: "268177",1848placementId: "625562",1849size: [728, 90]1850}1851}, {1852bidder: "pubmatic",1853params: {1854publisherId: "156838",1855adSlot: "3457872"1856}1857}, {1858bidder: "emx_digital",1859params: {1860tagid: "132973"1861}1862}, {1863bidder: "conversant",1864params: {1865site_id: "117477",1866tag_id: "96373699",1867secure: 1,1868position: 11869}1870}, {1871bidder: "rubicon",1872params: {1873accountId: "18608",1874siteId: "362566",1875zoneId: "1962680-2"1876}1877}, {1878bidder: "onetag",1879params: {1880pubId: "6da09f566a9dc06"1881}1882}, {1883bidder: "richaudience",1884params: {1885pid: 15 === H ? "MP_gIE1VDieUi" : "1V6a2fgLvX",1886supplyType: "site"1887}1888}]1889}, {1890code: K["300x250_external"],1891mediaTypes: {1892banner: {1893sizes: [1894[300, 250]1895]1896}1897},1898bids: [{1899bidder: "districtm",1900params: {1901placementId: "12906789"1902}1903}, {1904bidder: "appnexus",1905params: {1906placementId: "20973408"1907}1908}, {1909bidder: "openx",1910params: {1911unit: "543885657",1912delDomain: "poki-d.openx.net"1913}1914}, {1915bidder: "ix",1916params: {1917siteId: "625564",1918size: [300, 250]1919}1920}, {1921bidder: "pubmatic",1922params: {1923publisherId: "156838",1924adSlot: "3457874"1925}1926}, {1927bidder: "emx_digital",1928params: {1929tagid: "132975"1930}1931}, {1932bidder: "conversant",1933params: {1934site_id: "117477",1935tag_id: "94f55c24",1936secure: 1,1937position: 11938}1939}, {1940bidder: "rubicon",1941params: {1942accountId: "18608",1943siteId: "362566",1944zoneId: "1962680-15"1945}1946}, {1947bidder: "onetag",1948params: {1949pubId: "6da09f566a9dc06"1950}1951}, {1952bidder: "richaudience",1953params: {1954pid: 15 === H ? "MP_gIE1VDieUi" : "pKqNt5LyvF",1955supplyType: "site"1956}1957}]1958}, {1959code: K["970x250_external"],1960mediaTypes: {1961banner: {1962sizes: [1963[970, 250]1964]1965}1966},1967bids: [{1968bidder: "districtm",1969params: {1970placementId: "12906789"1971}1972}, {1973bidder: "appnexus",1974params: {1975placementId: "20973415"1976}1977}, {1978bidder: "openx",1979params: {1980unit: "543885650",1981delDomain: "poki-d.openx.net"1982}1983}, {1984bidder: "ix",1985params: {1986siteId: "625560",1987size: [970, 250]1988}1989}, {1990bidder: "pubmatic",1991params: {1992publisherId: "156838",1993adSlot: "3457879"1994}1995}, {1996bidder: "emx_digital",1997params: {1998tagid: "132979"1999}2000}, {2001bidder: "conversant",2002params: {2003site_id: "117477",2004tag_id: "62235ccb",2005secure: 1,2006position: 12007}2008}, {2009bidder: "rubicon",2010params: {2011accountId: "18608",2012siteId: "362566",2013zoneId: "1962680-57"2014}2015}, {2016bidder: "onetag",2017params: {2018pubId: "6da09f566a9dc06"2019}2020}, {2021bidder: "richaudience",2022params: {2023pid: 15 === H ? "MP_gIE1VDieUi" : "yYyae7vnIh",2024supplyType: "site"2025}2026}]2027}, {2028code: K["160x600_external"],2029mediaTypes: {2030banner: {2031sizes: [2032[160, 600]2033]2034}2035},2036bids: [{2037bidder: "districtm",2038params: {2039placementId: "12906789"2040}2041}, {2042bidder: "appnexus",2043params: {2044placementId: "20973407"2045}2046}, {2047bidder: "openx",2048params: {2049unit: "543885653",2050delDomain: "poki-d.openx.net"2051}2052}, {2053bidder: "ix",2054params: {2055siteId: "625563",2056size: [160, 600]2057}2058}, {2059bidder: "pubmatic",2060params: {2061publisherId: "156838",2062adSlot: "3457877"2063}2064}, {2065bidder: "emx_digital",2066params: {2067tagid: "132974"2068}2069}, {2070bidder: "conversant",2071params: {2072site_id: "117477",2073tag_id: "9960183e",2074secure: 1,2075position: 12076}2077}, {2078bidder: "rubicon",2079params: {2080accountId: "18608",2081siteId: "362566",2082zoneId: "1962680-9"2083}2084}, {2085bidder: "onetag",2086params: {2087pubId: "6da09f566a9dc06"2088}2089}, {2090bidder: "richaudience",2091params: {2092pid: 15 === H ? "MP_gIE1VDieUi" : "rAEnPimPzC",2093supplyType: "site"2094}2095}]2096}, {2097code: K["320x50_external"],2098mediaTypes: {2099banner: {2100sizes: [2101[320, 50]2102]2103}2104},2105bids: [{2106bidder: "districtm",2107params: {2108placementId: "12906789"2109}2110}, {2111bidder: "appnexus",2112params: {2113placementId: "20973413"2114}2115}, {2116bidder: "openx",2117params: {2118unit: "543885649",2119delDomain: "poki-d.openx.net"2120}2121}, {2122bidder: "ix",2123params: {2124siteId: "625559",2125size: [320, 50]2126}2127}, {2128bidder: "pubmatic",2129params: {2130publisherId: "156838",2131adSlot: "3457875"2132}2133}, {2134bidder: "conversant",2135params: {2136site_id: "117477",2137tag_id: "402db827",2138secure: 1,2139position: 12140}2141}, {2142bidder: "rubicon",2143params: {2144accountId: "18608",2145siteId: "362566",2146zoneId: "1962680-43"2147}2148}, {2149bidder: "emx_digital",2150params: {2151tagid: "132978"2152}2153}, {2154bidder: "onetag",2155params: {2156pubId: "6da09f566a9dc06"2157}2158}, {2159bidder: "richaudience",2160params: {2161pid: 15 === H ? "MP_gIE1VDieUi" : "1DP5EtcOip",2162supplyType: "site"2163}2164}]2165}],2166Y = {2167debug: !1,2168enableSendAllBids: !0,2169usePrebidCache: !0,2170bidderTimeout: 1500,2171priceGranularity: {2172buckets: [{2173precision: 2,2174min: .01,2175max: 3,2176increment: .012177}, {2178precision: 2,2179min: 3,2180max: 8,2181increment: .052182}, {2183precision: 2,2184min: 8,2185max: 20,2186increment: .52187}, {2188precision: 2,2189min: 20,2190max: 45,2191increment: 12192}]2193},2194currency: {2195adServerCurrency: "EUR",2196defaultRates: {2197EUR: {2198EUR: 1,2199GBP: .86408,2200USD: 1.22122201},2202GBP: {2203EUR: 1.157300249976854,2204GBP: 1,2205USD: 1.41329506527173422206},2207USD: {2208EUR: .8188666885031116,2209GBP: .7075663282017687,2210USD: 12211}2212}2213},2214cache: {2215url: "https://prebid.adnxs.com/pbc/v1/cache"2216},2217targetingControls: {2218allowTargetingKeys: ["BIDDER", "AD_ID", "PRICE_BUCKET", "SIZE", "DEAL", "SOURCE", "FORMAT", "UUID", "CACHE_ID", "CACHE_HOST", "ADOMAIN"],2219allowSendAllBidsTargetingKeys: ["BIDDER", "AD_ID", "PRICE_BUCKET", "SIZE", "DEAL", "SOURCE", "FORMAT", "UUID", "CACHE_ID", "CACHE_HOST", "ADOMAIN"]2220},2221userSync: {2222filterSettings: {2223all: {2224bidders: "*",2225filter: "include"2226}2227},2228syncsPerBidder: 1e3,2229syncDelay: 100,2230userIds: [{2231name: "pubCommonId",2232storage: {2233type: "cookie",2234name: "poki_pubcid",2235expires: 1802236}2237}]2238}2239},2240$ = function(e, t) {2241window.pbjs = window.pbjs || {}, window.pbjs.que = window.pbjs.que || [], window.pbjs.que.push((function() {2242window.pbjs.aliasBidder("appnexus", "districtm");2243var i = U(U({2244floors: {2245data: {2246currency: "EUR",2247schema: {2248fields: ["mediaType"]2249},2250values: {2251banner: R(t),2252video: L(t)2253}2254}2255}2256}, Y), e.config);2257window.pbjs.addAdUnits(function(e, t, i) {2258var n, r, a = t[i = i.toUpperCase()];2259if (!a) return e;2260for (var o = Math.random(), s = 0; s <= e.length; s++)2261for (var d = e[s], A = a[(null === (n = null == d ? void 0 : d.mediaTypes) || void 0 === n ? void 0 : n.video) ? "video" : "display"] || {}, c = (null === (r = null == d ? void 0 : d.bids) || void 0 === r ? void 0 : r.length) - 1; c >= 0; c--) {2262var l = d.bids[c];2263A[l.bidder] && o > A[l.bidder] && e[s].bids.splice(c, 1)2264}2265return e2266}(e.adUnits || J, c, t)), window.pbjs.setConfig(i), window.pbjs.bidderSettings = {2267districtm: {2268bidCpmAdjustment: function(e) {2269return .85 * e2270}2271}2272}2273}))2274},2275ee = !1,2276te = function(e, t, i) {2277(function(e, t) {2278var i, n, r = null === (n = null === (i = e[t = t.toUpperCase()]) || void 0 === i ? void 0 : i.video) || void 0 === n ? void 0 : n.amazon;2279return !!r && Math.random() > r2280})(c, t) || window.apstag && window.apstag.init(e.settings || U({2281pubID: "e32f1423-28bc-43ed-8ab0-5ae6b4449cf8",2282adServer: "",2283videoAdServer: "GAM"2284}, i ? {2285gdpr: {2286cmpTimeout: 1e42287}2288} : {}), (function() {2289ee = !0, e.callback && e.callback()2290}))2291},2292ie = function() {2293! function() {2294if (!window.__tcfapi) {2295var e = window.top,2296t = {};2297window.__tcfapi = function(i, n, r, a) {2298var o = "" + Math.random(),2299s = {2300__tcfapiCall: {2301command: i,2302parameter: a,2303version: n,2304callId: o2305}2306};2307t[o] = r, e.postMessage(s, "*")2308}, window.addEventListener("message", (function(e) {2309var i = {};2310try {2311i = "string" == typeof e.data ? JSON.parse(e.data) : e.data2312} catch (e) {}2313var n = i.__tcfapiReturn;2314n && "function" == typeof t[n.callId] && (t[n.callId](n.returnValue, n.success), t[n.callId] = null)2315}), !1)2316}2317}(), window.pbjs.que.push((function() {2318window.pbjs.setConfig({2319consentManagement: {2320gdpr: {2321cmpApi: "iab",2322timeout: 8e3,2323defaultGdprScope: !02324}2325}2326})2327}))2328},2329ne = function() {2330! function() {2331if (!window.__uspapi) {2332var e = window.top,2333t = {};2334window.__uspapi = function(i, n, r) {2335var a = "" + Math.random(),2336o = {2337__uspapiCall: {2338command: i,2339version: n,2340callId: a2341}2342};2343t[a] = r, e.postMessage(o, "*")2344}, window.addEventListener("message", (function(e) {2345var i = e && e.data && e.data.__uspapiReturn;2346i && i.callId && "function" == typeof t[i.callId] && (t[i.callId](i.returnValue, i.success), t[i.callId] = null)2347}), !1)2348}2349}(), window.pbjs.que.push((function() {2350window.pbjs.setConfig({2351consentManagement: {2352usp: {2353cmpApi: "iab",2354timeout: 8e32355}2356}2357})2358}))2359};23602361function re(e, t, i, r, a) {2362var s = d(),2363A = s ? "nope" : t;2364if (window.pbjs && window.pbjs.que && window.pbjs.getConfig) {2365var c, l = I().split("?"),2366p = encodeURIComponent(l[0]),2367u = r ? X : Z,2368h = o.getDataAnnotations(),2369m = 1,2370g = function() {2371if (!(--m > 0)) try {2372o.dispatchEvent(n.ads.prebidRequested);2373var d = window.pbjs.adUnits.filter((function(e) {2374return e.code === u2375}))[0];2376if ("undefined" === d) return console.error("Video-ad-unit not found, did you give it the adunit.code='video' value?"), void e.requestAd(A);2377var l = window.pbjs.adServers.dfp.buildVideoUrl({2378adUnit: d,2379params: {2380iu: _("iu", t),2381sz: "640x360|640x480",2382output: "vast",2383cust_params: i,2384description_url: p2385}2386}),2387g = window.pbjs.getHighestCpmBids(u);2388window.pbjs.markWinningBidAsUsed({2389adUnitCode: u2390}), c && (l = l.replace("cust_params=", "cust_params=" + c + "%26"));2391var v = !1;2392if (s) {2393var f = void 0;2394if (g.length > 0 && (f = g[0]), c) {2395var b = function(e) {2396var t = decodeURIComponent(e),2397i = _("amznbid", t);2398if (!i) return null;2399var n = j[i];2400return n ? {2401bid: n,2402vast: "https://aax.amazon-adsystem.com/e/dtb/vast?b=" + _("amzniid", t) + "&rnd=" + Math.round(1e10 * Math.random()) + "&pp=" + i2403} : null2404}(c);2405b && (!f || !f.videoCacheKey || f.cpm < b.bid) && (f = {2406cpm: b.bid,2407vast: b.vast,2408bidder: "amazon",2409videoCacheKey: "amazon"2410})2411}2412if ((!f || !f.videoCacheKey || f.cpm < L(a)) && (r || Math.random() > .5)) {2413var y = void 0;2414y = function(e) {2415return "US" === e ? 6.1 : B.includes(e) ? .5 : P.includes(e) ? .15 : D.includes(e) ? .08 : M.includes(e) ? .03 : .022416}(a), f = {2417cpm: 2 * y,2418vast: G(),2419bidder: "poki",2420videoCacheKey: "poki"2421}2422}2423if (!f || !f.videoCacheKey) return void o.dispatchEvent(n.ads.completed);2424switch (f.bidder) {2425case "onetag":2426l = "https://onetag-sys.com/invocation/?key=" + f.videoCacheKey;2427break;2428case "rubicon":2429l = "https://prebid-server.rubiconproject.com/cache?uuid=" + f.videoCacheKey;2430break;2431case "spotx":2432l = "https://search.spotxchange.com/ad/vast.html?key=" + f.videoCacheKey;2433break;2434case "amazon":2435case "poki":2436l = f.vast;2437break;2438default:2439l = "https://prebid.adnxs.com/pbc/v1/cache?uuid=" + f.videoCacheKey2440}2441z({2442event: "video-ready",2443size: "640x360v",2444opportunityId: null == h ? void 0 : h.opportunityId,2445adUnitPath: null == h ? void 0 : h.adUnitPath,2446p4d_game_id: tt.gameId,2447p4d_version_id: tt.versionId,2448bidder: null == f ? void 0 : f.bidder,2449bid: null == f ? void 0 : f.cpm2450}), v = !0, o.setDataAnnotations({2451p4d_game_id: tt.gameId,2452p4d_version_id: tt.versionId,2453bidder: null == f ? void 0 : f.bidder,2454bid: null == f ? void 0 : f.cpm2455})2456}2457if (o.setDataAnnotations({2458vhbOnlyMode: v,2459adTagUrl: l2460}), g.length > 0) {2461f = g[0];2462o.setDataAnnotations({2463prebidBidder: null == f ? void 0 : f.bidder,2464prebidBid: null == f ? void 0 : f.cpm2465})2466} else o.setDataAnnotations({2467prebidBidder: void 0,2468prebidBid: void 02469});2470e.requestAd(l)2471} catch (t) {2472e.requestAd(A)2473}2474};2475ee && (m++, window.apstag.fetchBids({2476slots: [{2477slotID: r ? "Rewarded" : "Midroll",2478mediaType: "video"2479}],2480timeout: Y.bidderTimeout2481}, (function(e) {2482e.length > 0 && (c = e[0].encodedQsParams), g()2483}))), s && z({2484event: "video-request",2485size: "640x360v",2486opportunityId: null == h ? void 0 : h.opportunityId,2487adUnitPath: null == h ? void 0 : h.adUnitPath,2488p4d_game_id: tt.gameId,2489p4d_version_id: tt.versionId2490}), window.pbjs.que.push((function() {2491window.pbjs.requestBids({2492adUnitCodes: [u],2493bidsBackHandler: function() {2494g()2495}2496})2497}))2498} else e.requestAd(A)2499}2500var ae = function() {2501function e(e, t) {2502void 0 === t && (t = {}), this.retries = 0, this.running = !1, this.ima = e, this.siteID = t.siteID || 3, this.country = t.country || "ZZ", this.totalRetries = t.totalRetries || l.waterfallRetries || 1, this.timing = t.timing || new u(l.adTiming), d() && (this.totalRetries = 1), o.addEventListener(n.ads.video.error, this.moveThroughWaterfall.bind(this)), o.addEventListener(n.ads.video.loaderError, this.moveThroughWaterfall.bind(this)), o.addEventListener(n.ads.ready, this.timing.stopWaterfallTimer.bind(this.timing)), o.addEventListener(n.ads.started, this.stopWaterfall.bind(this))2503}2504return e.prototype.moveThroughWaterfall = function() {2505if (!1 !== this.running) {2506if (this.timing.stopWaterfallTimer(), this.retries < this.totalRetries) return this.timing.nextWaterfallTimer(), void this.requestAd();2507this.running = !1, this.timing.resetWaterfallTimerIdx(), o.dispatchEvent(n.ads.error, {2508message: "No ads"2509})2510}2511}, e.prototype.cutOffWaterfall = function() {2512this.ima.tearDown(), this.moveThroughWaterfall()2513}, e.prototype.buildAdUnitPaths = function(e) {2514if (r.debug) {2515var t = "/21682198607/debug-video/";2516return e === n.ads.position.rewarded ? [t + "debug-video-rewarded"] : e === n.ads.position.preroll ? [t + "debug-video-preroll"] : [t + "debug-video-midroll"]2517}2518var i = "desktop",2519a = "midroll";2520S() ? i = "mobile" : E() && (i = "tablet"), e === n.ads.position.rewarded && (a = "rewarded");2521var o = "/21682198607/";2522return nt.GetIsPokiIFrame() ? ["" + o + i + "_ingame_" + a + "_1/" + this.siteID + "_" + i + "_ingame_" + a + "_1", "" + o + i + "_ingame_" + a + "_2/" + this.siteID + "_" + i + "_ingame_" + a + "_2"] : [o + "external_" + i + "_video_1/external_" + i + "_ingame_" + a + "_1", o + "external_" + i + "_video_2/external_" + i + "_ingame_" + a + "_2"]2523}, e.prototype.start = function(e, t) {2524void 0 === e && (e = {}), this.running = !0, this.retries = 0, this.criteria = e, this.timing.resetWaterfallTimerIdx(), this.rewarded = t === n.ads.position.rewarded, this.adUnitPaths = this.buildAdUnitPaths(t), this.requestAd()2525}, e.prototype.requestAd = function() {2526this.timing.startWaterfallTimer(this.cutOffWaterfall.bind(this)), this.retries++, this.criteria.waterfall = this.retries;2527var e = (this.retries - 1) % this.adUnitPaths.length,2528t = this.adUnitPaths[e],2529i = "https://securepubads.g.doubleclick.net/gampad/ads?sz=640x360|640x480&iu=" + t + "&ciu_szs&impl=s&gdfp_req=1&env=vp&output=vast&unviewed_position_start=1&url={url}&description_url={descriptionUrl}&correlator={timestamp}";2530nt.consentString && nt.consentString.length > 0 && (this.criteria.consent_string = nt.consentString);2531var r = Math.max(document.documentElement.clientWidth || 0, window.innerWidth || 0) > 970;2532this.criteria.billboards_fit = r ? "yes" : "no";2533var a, s, A = function(e) {2534var t = I().split("?"),2535i = encodeURIComponent(t[0]);2536return (e = e.split("{descriptionUrl}").join(i)).split("{timestamp}").join((new Date).getTime().toString())2537}(i) + (a = this.criteria, s = "", Object.keys(a).forEach((function(e) {2538if (Object.prototype.hasOwnProperty.call(a, e)) {2539var t = a[e];2540Array.isArray(t) && (t = t.join()), s += e + "=" + t + "&"2541}2542})), "&cust_params=" + (s = encodeURIComponent(s)) + "&");2543nt.childDirected && (A += "&tfcd=1"), nt.nonPersonalized && (A += "&npa=1"), o.setDataAnnotations({2544adUnitPath: t,2545adTagUrl: A,2546waterfall: this.retries2547}), o.dispatchEvent(n.ads.requested), d() || 1 === this.retries && !S() && !E() ? (console.debug("adRequest started with Prebid Video enabled"), re(this.ima, A, this.criteria, this.rewarded, this.country)) : (console.debug("adRequest started in plain mode"), this.ima.requestAd(A))2548}, e.prototype.isRunning = function() {2549return this.running2550}, e.prototype.stopWaterfall = function() {2551this.running = !1, this.timing.stopWaterfallTimer(), this.timing.resetWaterfallTimerIdx()2552}, e2553}();2554const oe = ae;2555var se = "pokiSdkContainer",2556de = "pokiSdkFixed",2557Ae = "pokiSdkOverlay",2558ce = "pokiSdkHidden",2559le = "pokiSdkInsideContainer",2560pe = "pokiSdkPauseButton",2561ue = "pokiSdkPauseButtonBG",2562he = "pokiSdkStartAdButton",2563me = "pokiSdkProgressBar",2564ge = "pokiSdkProgressContainer",2565ve = "pokiSdkSpinnerContainer",2566fe = "pokiSdkVideoContainer",2567be = "pokiSdkVisible",2568ye = "pokiSDKAdContainer";2569var ke = function(e, t, i) {2570if (i || 2 === arguments.length)2571for (var n, r = 0, a = t.length; r < a; r++) !n && r in t || (n || (n = Array.prototype.slice.call(t, 0, r)), n[r] = t[r]);2572return e.concat(n || Array.prototype.slice.call(t))2573};2574const we = function() {2575function e(e) {2576var t = this;2577if (this.hideElement = function(e) {2578e.classList.add(ce), e.classList.remove(be)2579}, this.showElement = function(e) {2580e.classList.add(be), e.classList.remove(ce)2581}, this.wrapper = e.wrapper, this.progressFaker = new Ie((function(e) {2582return t.updateProgressBar(e)2583})), this.progressFaker.queueFakeProgress(10, 1e3, n.ads.prebidRequested), this.progressFaker.queueFakeProgress(20, 2e3, n.ads.started), 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) {2584var i = document.createElement("style");2585i.innerHTML = "\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,\n.pokiSdkSpinnerContainer.pokiSdkHidden {\n\tdisplay: none;\n}\n\n.pokiSdkContainer.pokiSdkHidden,\n.pokiSdkSpinnerContainer {\n\tpointer-events: none;\n}\n\n.pokiSdkSpinnerContainer {\n\tz-index: 10;\n\tposition: absolute;\n\ttop: 0;\n\tleft: 0;\n\twidth: 100%;\n\theight: 100%;\n\tbackground: url('https://a.poki.com/images/thumb_anim_2x.gif') 50% 50% no-repeat;\n\tuser-select: 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 {\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 15pt 'Arial', sans-serif;\n\tfont-weight: bold;\n\tletter-spacing: 1px;\n\ttransition: 0.1s ease-in-out;\n\tline-height: 1em;\n}\n\n.pokiSdkPauseButton {\n\tcursor:pointer;\n position: absolute;\n top: 50%;\n left: 50%;\n z-index: 1;\n}\n\n.pokiSdkPauseButton:before {\n\tcontent: '';\n\tposition: absolute;\n\twidth: 100px;\n\theight: 100px;\n\tdisplay: block;\n\tborder: 2px solid #fff;\n\tborder-radius: 50%;\n\tuser-select: none;\n\tbackground-color: rgba(0, 0, 0, 0.6);\n\ttransition: background-color 0.5s ease;\n\tanimation: 1s linear infinite pulse;\n}\n\n.pokiSdkPauseButton:after {\n\tcontent: '';\n\tposition: absolute;\n\tdisplay: block;\n\tbox-sizing: border-box;\n\tborder-color: transparent transparent transparent #fff;\n\tborder-style: solid;\n\tborder-width: 26px 0 26px 40px;\n\tpointer-events: none;\n\tanimation: 1s linear infinite pulse;\n\tleft: 6px;\n}\n.pokiSdkPauseButtonBG {\n position: fixed;\n top: 0;\n left: 0;\n display: block;\n content: '';\n background: rgba(0, 43, 80, 0.5);\n width: 100%;\n height: 100%;\n}\n\n.pokiSdkPauseButtonBG:hover{\n\tbackground: rgba(0, 43, 80, 0.7);\n}\n\n@keyframes pulse {\n\t0% {\n\t\ttransform: translate(-50%, -50%) scale(0.95);\n\t}\n\t70% {\n\t\ttransform: translate(-50%, -50%) scale(1.1);\n\t}\n\t100% {\n\t\ttransform: translate(-50%, -50%) scale(0.95);\n\t}\n}\n\n.pokiSdkProgressContainer {\n\tbackground: #B8C7DD;\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: #FFDC00;\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", document.head.appendChild(i)2586}2587}2588return e.prototype.updateProgressBar = function(e) {2589this.progressBar.style.width = e + "%"2590}, e.prototype.setupEvents = function(e) {2591this.internalSDK = e2592}, e.prototype.hide = function() {2593this.hideElement(this.containerDiv), this.hideElement(this.progressContainer), this.hidePauseButton(), this.hideElement(this.startAdButton), this.containerDiv.classList.remove(Ae), this.progressBar.style.width = "0%", this.progressFaker.reset()2594}, e.prototype.hideSpinner = function() {2595this.hideElement(this.spinnerContainer)2596}, e.prototype.show = function() {2597this.containerDiv.classList.add(Ae), this.showElement(this.containerDiv), this.showElement(this.spinnerContainer), this.showElement(this.progressContainer), this.progressFaker.start()2598}, e.prototype.getVideoBounds = function() {2599return this.adContainer.getBoundingClientRect()2600}, e.prototype.getAdContainer = function() {2601return this.adContainer2602}, e.prototype.getVideoContainer = function() {2603return this.videoContainer2604}, e.prototype.showPauseButton = function() {2605this.showElement(this.pauseButton), this.internalSDK && this.pauseButton.addEventListener("click", this.internalSDK.resumeAd.bind(this.internalSDK))2606}, e.prototype.hidePauseButton = function() {2607this.hideElement(this.pauseButton), this.internalSDK && this.pauseButton.removeEventListener("click", this.internalSDK.resumeAd.bind(this.internalSDK))2608}, e.prototype.showStartAdButton = function() {2609this.showElement(this.startAdButton), this.internalSDK && this.startAdButton.addEventListener("click", this.internalSDK.startAdClicked.bind(this.internalSDK))2610}, e.prototype.hideStartAdButton = function() {2611this.hideElement(this.startAdButton), this.internalSDK && this.startAdButton.removeEventListener("click", this.internalSDK.startAdClicked.bind(this.internalSDK))2612}, e.prototype.createElements = function() {2613if (this.containerDiv = document.createElement("div"), this.insideContainer = document.createElement("div"), this.pauseButton = document.createElement("div"), this.pauseButtonBG = 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 = se, this.insideContainer.className = le, this.pauseButton.className = pe, this.pauseButtonBG.className = ue, this.pauseButton.appendChild(this.pauseButtonBG), this.startAdButton.className = he, this.startAdButton.innerHTML = "Tap anywhere to play ad", this.progressBar.className = me, this.progressContainer.className = ge, this.spinnerContainer.className = ve, this.adContainer.className = ye, this.videoContainer.className = fe, 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(de);2614else {2615var e = window.getComputedStyle(this.wrapper).position;2616e && -1 !== ["absolute", "fixed", "relative"].indexOf(e) || (this.wrapper.style.position = "relative")2617}2618}, e2619}();2620var Ie = function() {2621function e(e) {2622var t = this;2623this.storedQueue = [], this.progressCallback = e, this.reset(), o.addEventListener(n.ads.video.progress, (function(e) {2624var i = 100 - t.currentProgress,2625n = e.currentTime / e.duration * i;2626n < i && t.progressCallback(t.currentProgress + n)2627})), this.initializeNoProgressFix()2628}2629return e.prototype.queueFakeProgress = function(e, t, i) {2630var n = this;2631this.storedQueue.push({2632progressToFake: e,2633duration: t,2634stopEvent: i2635}), o.addEventListener(i, (function() {2636n.eventWatcher[i] = !0, n.currentProgress = n.startProgress + e, n.startProgress = n.currentProgress, n.progressCallback(n.currentProgress), n.activeQueue.shift(), n.activeQueue.length > 0 ? n.continue() : n.pause()2637}))2638}, e.prototype.fakeProgress = function(e, t, i) {2639this.activeQueue.push({2640progressToFake: e,2641duration: t,2642stopEvent: i2643}), this.fakeProgressEvents = !0, this.continue()2644}, e.prototype.start = function() {2645this.activeQueue.length > 0 || (this.activeQueue = ke([], this.storedQueue, !0), this.active = !0, this.continue())2646}, e.prototype.continue = function() {2647if (this.activeQueue.length > 0 && !this.tickInterval) {2648this.startTime = Date.now();2649this.tickInterval = window.setInterval(this.tick.bind(this), 50), this.active = !02650}2651}, e.prototype.pause = function() {2652this.clearInterval()2653}, e.prototype.tick = function() {2654var e = this.activeQueue[0],2655t = Date.now() - this.startTime,2656i = Math.min(t / e.duration, 1);2657this.currentProgress = this.startProgress + e.progressToFake * i, this.fakeProgressEvents && o.dispatchEvent(n.ads.video.progress, {2658duration: e.duration / 1e3,2659currentTime: t / 1e32660}), this.progressCallback(this.currentProgress), (this.eventWatcher[e.stopEvent] || 1 === i) && this.pause()2661}, e.prototype.clearInterval = function() {2662this.tickInterval && (clearInterval(this.tickInterval), this.tickInterval = 0)2663}, e.prototype.initializeNoProgressFix = function() {2664var e = this;2665o.addEventListener(n.ads.started, (function(t) {2666e.progressWatcherTimeout = window.setTimeout((function() {2667if (e.active) {2668var i = 100 - e.currentProgress,2669r = 1e3 * t.duration - 1e3;2670e.fakeProgress(i, r, n.ads.completed)2671}2672}), 1e3)2673})), o.addEventListener(n.ads.video.progress, (function() {2674e.progressWatcherTimeout && (clearTimeout(e.progressWatcherTimeout), e.progressWatcherTimeout = 0)2675}))2676}, e.prototype.reset = function() {2677this.eventWatcher = {}, this.startProgress = 0, this.startTime = 0, this.currentProgress = 0, this.activeQueue = [], this.active = !1, this.fakeProgressEvents = !1, this.clearInterval()2678}, e2679}(),2680Se = !0,2681Ee = {};26822683function _e() {2684if (document.body && document.body.appendChild) {2685var e = document.createElement("iframe");2686if (e.style.display = "none", document.body.appendChild(e), e.contentWindow && (window.pokiKeysChanged = new Map, e.contentWindow.document.open(), e.contentWindow.document.write("<script>\nconst lsKey = 'poki_lsexpire';\nconst lifetime = 1000*60*60*24*30*6;\n\nwindow.addEventListener('storage', function(event) {\n\ttry {\n\t\tconst key = event.key;\n\n\t\t// key is null when localStorage.clear() is called.\n\t\tif (key === null) {\n\t\t\tlocalStorage.removeItem(lsKey);\n\t\t\treturn;\n\t\t}\n\n\t\tif (key === lsKey) return;\n\n\t\tconst updates = JSON.parse(localStorage.getItem(lsKey)) || {};\n\n\t\t// newValue is null when localStorage.removeItem() is called.\n\t\tif (event.newValue === null) {\n\t\t\tdelete updates[key];\n\n\t\t\t// window.parent is the game itself. This code is executed in\n\t\t\t// an iframe without src which makes it the same context as it's parent\n\t\t\t// which makes it save to access the parent's properties.\n\t\t\twindow.parent.pokiKeysChanged.set(key, 'remove');\n\t\t} else {\n\t\t\tupdates[key] = Date.now();\n\t\t\twindow.parent.pokiKeysChanged.set(key, 'set');\n\t\t}\n\t\tlocalStorage.setItem(lsKey, JSON.stringify(updates));\n\t} catch (e) {}\n});\n\nfunction expire() {\n\tconst updates = JSON.parse(localStorage.getItem(lsKey)) || {};\n\tconst expireBefore = Date.now() - lifetime;\n\tvar removed = false;\n\n\tObject.keys(updates).map(function(key) {\n\t\tif (updates[key] < expireBefore) {\n\t\t\tlocalStorage.removeItem(key);\n\t\t\tdelete updates[key];\n\t\t\tremoved = true;\n\t\t}\n\t});\n\n\tif (removed) {\n\t\tlocalStorage.setItem(lsKey, JSON.stringify(updates));\n\t}\n}\n\ntry {\n\texpire();\n} catch (e) {}\n<\/script>"), e.contentWindow.document.close(), !window.location.hostname.endsWith("poki-gdn.com") && tt.gameId)) {2687var t = document.createElement("iframe");2688t.style.display = "none", t.src = "https://" + tt.gameId + ".poki-gdn.com/poki-savegame-store.html", t.onload = function() {2689if (setInterval((function() {2690var e = [];2691window.pokiKeysChanged.forEach((function(t, i) {2692"set" === t ? e.push([t, i, localStorage.getItem(i)]) : e.push([t, i])2693})), e.length > 0 && (t.contentWindow && t.contentWindow.postMessage({2694type: "store",2695data: e2696}, "*"), window.pokiKeysChanged.clear())2697}), 1e3), !localStorage.getItem("pokiMigrated")) {2698for (var e = [], i = 0; i < localStorage.length; i++) {2699var n = localStorage.key(i);2700e.push(["set", n, localStorage.getItem(n)])2701}2702e.length > 0 && t.contentWindow && t.contentWindow.postMessage({2703type: "store",2704data: e2705}, "*"), localStorage.setItem("pokiMigrated", "1")2706}2707}, document.body.appendChild(t)2708}2709} else document.addEventListener("DOMContentLoaded", _e)2710}2711var xe = ["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", "IS", "LI", "NO"],2712Ce = ["US"],2713Te = ["ZZ"];27142715function Be(e) {2716return xe.includes(e)2717}27182719function Pe(e) {2720return Te.includes(e)2721}2722var De = function(e, t, i, n) {2723return new(i || (i = Promise))((function(r, a) {2724function o(e) {2725try {2726d(n.next(e))2727} catch (e) {2728a(e)2729}2730}27312732function s(e) {2733try {2734d(n.throw(e))2735} catch (e) {2736a(e)2737}2738}27392740function d(e) {2741var t;2742e.done ? r(e.value) : (t = e.value, t instanceof i ? t : new i((function(e) {2743e(t)2744}))).then(o, s)2745}2746d((n = n.apply(e, t || [])).next())2747}))2748},2749Me = function(e, t) {2750var i, n, r, a, o = {2751label: 0,2752sent: function() {2753if (1 & r[0]) throw r[1];2754return r[1]2755},2756trys: [],2757ops: []2758};2759return a = {2760next: s(0),2761throw: s(1),2762return: s(2)2763}, "function" == typeof Symbol && (a[Symbol.iterator] = function() {2764return this2765}), a;27662767function s(a) {2768return function(s) {2769return function(a) {2770if (i) throw new TypeError("Generator is already executing.");2771for (; o;) try {2772if (i = 1, n && (r = 2 & a[0] ? n.return : a[0] ? n.throw || ((r = n.return) && r.call(n), 0) : n.next) && !(r = r.call(n, a[1])).done) return r;2773switch (n = 0, r && (a = [2 & a[0], r.value]), a[0]) {2774case 0:2775case 1:2776r = a;2777break;2778case 4:2779return o.label++, {2780value: a[1],2781done: !12782};2783case 5:2784o.label++, n = a[1], a = [0];2785continue;2786case 7:2787a = o.ops.pop(), o.trys.pop();2788continue;2789default:2790if (!(r = o.trys, (r = r.length > 0 && r[r.length - 1]) || 6 !== a[0] && 2 !== a[0])) {2791o = 0;2792continue2793}2794if (3 === a[0] && (!r || a[1] > r[0] && a[1] < r[3])) {2795o.label = a[1];2796break2797}2798if (6 === a[0] && o.label < r[1]) {2799o.label = r[1], r = a;2800break2801}2802if (r && o.label < r[2]) {2803o.label = r[2], o.ops.push(a);2804break2805}2806r[2] && o.ops.pop(), o.trys.pop();2807continue2808}2809a = t.call(e, o)2810} catch (e) {2811a = [6, e], n = 02812} finally {2813i = r = 02814}2815if (5 & a[0]) throw a[1];2816return {2817value: a[0] ? a[1] : void 0,2818done: !02819}2820}([a, s])2821}2822}2823};2824const Re = function() {2825function e(e) {2826var t = this;2827this.bannerTimeout = null, this.allowedToPlayAd = !1, this.runningAd = !1, this.currentWidth = 640, this.currentHeight = 480, this.currentRequestIsMuted = !1, this.volume = 1, this.canWeAutoPlayWithSound = function() {2828return De(t, void 0, void 0, (function() {2829return Me(this, (function(e) {2830switch (e.label) {2831case 0:2832if (!this.blankVideo) return [2, !1];2833e.label = 1;2834case 1:2835return e.trys.push([1, 3, , 4]), [4, this.blankVideo.play()];2836case 2:2837return e.sent(), [2, !0];2838case 3:2839return e.sent(), [2, !1];2840case 4:2841return [2]2842}2843}))2844}))2845}, this.videoElement = document.getElementById("pokiSDKVideoContainer"), this.adsManager = null, this.volume = e, this.initAdDisplayContainer(), this.initBlankVideo(), this.initAdsLoader()2846}2847return e.prototype.initAdDisplayContainer = function() {28482849}, e.prototype.initBlankVideo = function() {2850this.blankVideo = document.createElement("video"), this.blankVideo.setAttribute("playsinline", "playsinline");2851var e = document.createElement("source");2852e.src = "data:video/mp4;base64, AAAAHGZ0eXBNNFYgAAACAGlzb21pc28yYXZjMQAAAAhmcmVlAAAGF21kYXTeBAAAbGliZmFhYyAxLjI4AABCAJMgBDIARwAAArEGBf//rdxF6b3m2Ui3lizYINkj7u94MjY0IC0gY29yZSAxNDIgcjIgOTU2YzhkOCAtIEguMjY0L01QRUctNCBBVkMgY29kZWMgLSBDb3B5bGVmdCAyMDAzLTIwMTQgLSBodHRwOi8vd3d3LnZpZGVvbGFuLm9yZy94MjY0Lmh0bWwgLSBvcHRpb25zOiBjYWJhYz0wIHJlZj0zIGRlYmxvY2s9MTowOjAgYW5hbHlzZT0weDE6MHgxMTEgbWU9aGV4IHN1Ym1lPTcgcHN5PTEgcHN5X3JkPTEuMDA6MC4wMCBtaXhlZF9yZWY9MSBtZV9yYW5nZT0xNiBjaHJvbWFfbWU9MSB0cmVsbGlzPTEgOHg4ZGN0PTAgY3FtPTAgZGVhZHpvbmU9MjEsMTEgZmFzdF9wc2tpcD0xIGNocm9tYV9xcF9vZmZzZXQ9LTIgdGhyZWFkcz02IGxvb2thaGVhZF90aHJlYWRzPTEgc2xpY2VkX3RocmVhZHM9MCBucj0wIGRlY2ltYXRlPTEgaW50ZXJsYWNlZD0wIGJsdXJheV9jb21wYXQ9MCBjb25zdHJhaW5lZF9pbnRyYT0wIGJmcmFtZXM9MCB3ZWlnaHRwPTAga2V5aW50PTI1MCBrZXlpbnRfbWluPTI1IHNjZW5lY3V0PTQwIGludHJhX3JlZnJlc2g9MCByY19sb29rYWhlYWQ9NDAgcmM9Y3JmIG1idHJlZT0xIGNyZj0yMy4wIHFjb21wPTAuNjAgcXBtaW49MCBxcG1heD02OSBxcHN0ZXA9NCB2YnZfbWF4cmF0ZT03NjggdmJ2X2J1ZnNpemU9MzAwMCBjcmZfbWF4PTAuMCBuYWxfaHJkPW5vbmUgZmlsbGVyPTAgaXBfcmF0aW89MS40MCBhcT0xOjEuMDAAgAAAAFZliIQL8mKAAKvMnJycnJycnJycnXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXiEASZACGQAjgCEASZACGQAjgAAAAAdBmjgX4GSAIQBJkAIZACOAAAAAB0GaVAX4GSAhAEmQAhkAI4AhAEmQAhkAI4AAAAAGQZpgL8DJIQBJkAIZACOAIQBJkAIZACOAAAAABkGagC/AySEASZACGQAjgAAAAAZBmqAvwMkhAEmQAhkAI4AhAEmQAhkAI4AAAAAGQZrAL8DJIQBJkAIZACOAAAAABkGa4C/AySEASZACGQAjgCEASZACGQAjgAAAAAZBmwAvwMkhAEmQAhkAI4AAAAAGQZsgL8DJIQBJkAIZACOAIQBJkAIZACOAAAAABkGbQC/AySEASZACGQAjgCEASZACGQAjgAAAAAZBm2AvwMkhAEmQAhkAI4AAAAAGQZuAL8DJIQBJkAIZACOAIQBJkAIZACOAAAAABkGboC/AySEASZACGQAjgAAAAAZBm8AvwMkhAEmQAhkAI4AhAEmQAhkAI4AAAAAGQZvgL8DJIQBJkAIZACOAAAAABkGaAC/AySEASZACGQAjgCEASZACGQAjgAAAAAZBmiAvwMkhAEmQAhkAI4AhAEmQAhkAI4AAAAAGQZpAL8DJIQBJkAIZACOAAAAABkGaYC/AySEASZACGQAjgCEASZACGQAjgAAAAAZBmoAvwMkhAEmQAhkAI4AAAAAGQZqgL8DJIQBJkAIZACOAIQBJkAIZACOAAAAABkGawC/AySEASZACGQAjgAAAAAZBmuAvwMkhAEmQAhkAI4AhAEmQAhkAI4AAAAAGQZsAL8DJIQBJkAIZACOAAAAABkGbIC/AySEASZACGQAjgCEASZACGQAjgAAAAAZBm0AvwMkhAEmQAhkAI4AhAEmQAhkAI4AAAAAGQZtgL8DJIQBJkAIZACOAAAAABkGbgCvAySEASZACGQAjgCEASZACGQAjgAAAAAZBm6AnwMkhAEmQAhkAI4AhAEmQAhkAI4AhAEmQAhkAI4AhAEmQAhkAI4AAAAhubW9vdgAAAGxtdmhkAAAAAAAAAAAAAAAAAAAD6AAABDcAAQAAAQAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAwAAAzB0cmFrAAAAXHRraGQAAAADAAAAAAAAAAAAAAABAAAAAAAAA+kAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAABAAAAAALAAAACQAAAAAAAkZWR0cwAAABxlbHN0AAAAAAAAAAEAAAPpAAAAAAABAAAAAAKobWRpYQAAACBtZGhkAAAAAAAAAAAAAAAAAAB1MAAAdU5VxAAAAAAALWhkbHIAAAAAAAAAAHZpZGUAAAAAAAAAAAAAAABWaWRlb0hhbmRsZXIAAAACU21pbmYAAAAUdm1oZAAAAAEAAAAAAAAAAAAAACRkaW5mAAAAHGRyZWYAAAAAAAAAAQAAAAx1cmwgAAAAAQAAAhNzdGJsAAAAr3N0c2QAAAAAAAAAAQAAAJ9hdmMxAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAALAAkABIAAAASAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAGP//AAAALWF2Y0MBQsAN/+EAFWdCwA3ZAsTsBEAAAPpAADqYA8UKkgEABWjLg8sgAAAAHHV1aWRraEDyXyRPxbo5pRvPAyPzAAAAAAAAABhzdHRzAAAAAAAAAAEAAAAeAAAD6QAAABRzdHNzAAAAAAAAAAEAAAABAAAAHHN0c2MAAAAAAAAAAQAAAAEAAAABAAAAAQAAAIxzdHN6AAAAAAAAAAAAAAAeAAADDwAAAAsAAAALAAAACgAAAAoAAAAKAAAACgAAAAoAAAAKAAAACgAAAAoAAAAKAAAACgAAAAoAAAAKAAAACgAAAAoAAAAKAAAACgAAAAoAAAAKAAAACgAAAAoAAAAKAAAACgAAAAoAAAAKAAAACgAAAAoAAAAKAAAAiHN0Y28AAAAAAAAAHgAAAEYAAANnAAADewAAA5gAAAO0AAADxwAAA+MAAAP2AAAEEgAABCUAAARBAAAEXQAABHAAAASMAAAEnwAABLsAAATOAAAE6gAABQYAAAUZAAAFNQAABUgAAAVkAAAFdwAABZMAAAWmAAAFwgAABd4AAAXxAAAGDQAABGh0cmFrAAAAXHRraGQAAAADAAAAAAAAAAAAAAACAAAAAAAABDcAAAAAAAAAAAAAAAEBAAAAAAEAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAkZWR0cwAAABxlbHN0AAAAAAAAAAEAAAQkAAADcAABAAAAAAPgbWRpYQAAACBtZGhkAAAAAAAAAAAAAAAAAAC7gAAAykBVxAAAAAAALWhkbHIAAAAAAAAAAHNvdW4AAAAAAAAAAAAAAABTb3VuZEhhbmRsZXIAAAADi21pbmYAAAAQc21oZAAAAAAAAAAAAAAAJGRpbmYAAAAcZHJlZgAAAAAAAAABAAAADHVybCAAAAABAAADT3N0YmwAAABnc3RzZAAAAAAAAAABAAAAV21wNGEAAAAAAAAAAQAAAAAAAAAAAAIAEAAAAAC7gAAAAAAAM2VzZHMAAAAAA4CAgCIAAgAEgICAFEAVBbjYAAu4AAAADcoFgICAAhGQBoCAgAECAAAAIHN0dHMAAAAAAAAAAgAAADIAAAQAAAAAAQAAAkAAAAFUc3RzYwAAAAAAAAAbAAAAAQAAAAEAAAABAAAAAgAAAAIAAAABAAAAAwAAAAEAAAABAAAABAAAAAIAAAABAAAABgAAAAEAAAABAAAABwAAAAIAAAABAAAACAAAAAEAAAABAAAACQAAAAIAAAABAAAACgAAAAEAAAABAAAACwAAAAIAAAABAAAADQAAAAEAAAABAAAADgAAAAIAAAABAAAADwAAAAEAAAABAAAAEAAAAAIAAAABAAAAEQAAAAEAAAABAAAAEgAAAAIAAAABAAAAFAAAAAEAAAABAAAAFQAAAAIAAAABAAAAFgAAAAEAAAABAAAAFwAAAAIAAAABAAAAGAAAAAEAAAABAAAAGQAAAAIAAAABAAAAGgAAAAEAAAABAAAAGwAAAAIAAAABAAAAHQAAAAEAAAABAAAAHgAAAAIAAAABAAAAHwAAAAQAAAABAAAA4HN0c3oAAAAAAAAAAAAAADMAAAAaAAAACQAAAAkAAAAJAAAACQAAAAkAAAAJAAAACQAAAAkAAAAJAAAACQAAAAkAAAAJAAAACQAAAAkAAAAJAAAACQAAAAkAAAAJAAAACQAAAAkAAAAJAAAACQAAAAkAAAAJAAAACQAAAAkAAAAJAAAACQAAAAkAAAAJAAAACQAAAAkAAAAJAAAACQAAAAkAAAAJAAAACQAAAAkAAAAJAAAACQAAAAkAAAAJAAAACQAAAAkAAAAJAAAACQAAAAkAAAAJAAAACQAAAAkAAACMc3RjbwAAAAAAAAAfAAAALAAAA1UAAANyAAADhgAAA6IAAAO+AAAD0QAAA+0AAAQAAAAEHAAABC8AAARLAAAEZwAABHoAAASWAAAEqQAABMUAAATYAAAE9AAABRAAAAUjAAAFPwAABVIAAAVuAAAFgQAABZ0AAAWwAAAFzAAABegAAAX7AAAGFwAAAGJ1ZHRhAAAAWm1ldGEAAAAAAAAAIWhkbHIAAAAAAAAAAG1kaXJhcHBsAAAAAAAAAAAAAAAALWlsc3QAAAAlqXRvbwAAAB1kYXRhAAAAAQAAAABMYXZmNTUuMzMuMTAw", this.blankVideo.appendChild(e)2853}, e.prototype.initAdsLoader = function() {2854var e = this;2855this.adsLoader || window.google && (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() {2856return e.adsLoader.contentComplete()2857})))2858}, e.prototype.requestAd = function(e) {2859return De(this, void 0, void 0, (function() {2860var t;2861return Me(this, (function(i) {2862switch (i.label) {2863case 0:2864return this.runningAd ? [2] : (this.runningAd = !0, this.adDisplayContainer.initialize(), this.videoElement.src = "", (t = new google.ima.AdsRequest).adTagUrl = e, t.linearAdSlotWidth = this.currentWidth, t.linearAdSlotHeight = this.currentHeight, t.nonLinearAdSlotWidth = this.currentWidth, t.nonLinearAdSlotHeight = this.currentHeight, t.forceNonLinearFullSlot = !0, [4, this.canWeAutoPlayWithSound()]);2865case 1:2866return i.sent() ? (t.setAdWillPlayMuted(!1), this.currentRequestIsMuted = !1) : (t.setAdWillPlayMuted(!0), this.currentRequestIsMuted = !0), this.allowedToPlayAd = !0, this.adsLoader.requestAds(t), [2]2867}2868}))2869}))2870}, e.prototype.resize = function(e, t, i) {2871void 0 === i && (i = google.ima.ViewMode.NORMAL), this.currentWidth = e, this.currentHeight = t, this.adsManager && this.adsManager.resize(e, t, i)2872}, e.prototype.onAdsManagerLoaded = function(e) {2873var t = new google.ima.AdsRenderingSettings;2874t.enablePreloading = !0, t.restoreCustomPlaybackStateOnAdBreakComplete = !0, t.mimeTypes = x() || S() || E() ? ["video/mp4"] : ["video/mp4", "video/webm", "video/ogg"], t.loadVideoTimeout = 8e3, this.adsManager = e.getAdsManager(this.videoElement, t), this.adsManager.setVolume(Math.max(0, Math.min(1, this.volume))), this.currentRequestIsMuted && this.adsManager.setVolume(0), this.allowedToPlayAd ? (this.attachAdEvents(), o.dispatchEvent(n.ads.ready)) : this.tearDown()2875}, e.prototype.setVolume = function(e) {2876this.volume = e, this.adsManager && this.adsManager.setVolume(Math.max(0, Math.min(1, this.volume)))2877}, e.prototype.startPlayback = function() {2878try {2879this.adsManager.init(this.currentWidth, this.currentHeight, google.ima.ViewMode.NORMAL), this.adsManager.start()2880} catch (e) {2881this.videoElement.play()2882}2883}, e.prototype.startIOSPlayback = function() {2884this.adsManager.start()2885}, e.prototype.stopPlayback = function() {2886o.dispatchEvent(n.ads.stopped), this.tearDown()2887}, e.prototype.resumeAd = function() {2888o.dispatchEvent(n.ads.video.resumed), this.adsManager && this.adsManager.resume()2889}, e.prototype.tearDown = function() {2890this.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 = !12891}, e.prototype.attachAdEvents = function() {2892var e = this,2893t = google.ima.AdEvent.Type;2894this.adsManager.addEventListener(google.ima.AdErrorEvent.Type.AD_ERROR, this.onAdError, !1, this), [t.AD_PROGRESS, t.ALL_ADS_COMPLETED, t.CLICK, t.COMPLETE, t.IMPRESSION, t.PAUSED, t.SKIPPED, t.STARTED, t.USER_CLOSE, t.AD_BUFFERING].forEach((function(t) {2895e.adsManager.addEventListener(t, e.onAdEvent, !1, e)2896}))2897}, e.prototype.onAdEvent = function(e) {2898var t = this,2899i = e.getAd();2900switch (e.type) {2901case google.ima.AdEvent.Type.AD_PROGRESS:2902o.dispatchEvent(n.ads.video.progress, e.getAdData());2903break;2904case google.ima.AdEvent.Type.STARTED:2905e.remainingTime = this.adsManager.getRemainingTime(), e.remainingTime <= 0 && (e.remainingTime = 15), i.isLinear() || (this.bannerTimeout = window.setTimeout((function() {2906o.dispatchEvent(n.ads.completed, {2907rewardAllowed: !!e.rewardAllowed2908}), t.tearDown()2909}), 1e3 * (e.remainingTime + 1))), o.setDataAnnotations({2910creativeId: i.getCreativeId()2911}), o.dispatchEvent(n.ads.started, {2912duration: i.getDuration()2913});2914break;2915case google.ima.AdEvent.Type.COMPLETE:2916o.dispatchEvent(n.ads.completed, {2917rewardAllowed: !02918}), this.tearDown();2919break;2920case google.ima.AdEvent.Type.ALL_ADS_COMPLETED:2921case google.ima.AdEvent.Type.USER_CLOSE:2922this.tearDown();2923break;2924case google.ima.AdEvent.Type.PAUSED:2925this.adsManager.pause(), o.dispatchEvent(n.ads.video.paused);2926break;2927case google.ima.AdEvent.Type.AD_BUFFERING:2928o.dispatchEvent(n.ads.video.buffering);2929break;2930case google.ima.AdEvent.Type.CLICK:2931o.dispatchEvent(n.ads.video.clicked);2932break;2933case google.ima.AdEvent.Type.SKIPPED:2934o.dispatchEvent(n.ads.skipped), o.dispatchEvent(n.ads.completed, {2935rewardAllowed: !02936}), document.activeElement && document.activeElement.blur();2937break;2938case google.ima.AdEvent.Type.IMPRESSION:2939o.dispatchEvent(n.ads.impression)2940}2941}, e.prototype.onAdLoaderError = function(e) {2942this.tearDown();2943var t = e.getError && e.getError().toString() || "Unknown";2944o.dispatchEvent(n.ads.video.loaderError, {2945message: t2946})2947}, e.prototype.onAdError = function(e) {2948this.tearDown();2949var t = e.getError && e.getError().toString() || "Unknown";2950o.dispatchEvent(n.ads.video.error, {2951message: t2952})2953}, e.prototype.muteAd = function() {2954void 0 !== this.adsManager && null != this.adsManager && this.adsManager.setVolume(0)2955}, e.prototype.isAdRunning = function() {2956return this.runningAd2957}, e2958}();2959const Le = function(e) {2960return new Promise((function(t, i) {2961var n = document.createElement("script");2962n.type = "text/javascript", n.async = !0, n.src = e;2963var r = function() {2964n.readyState && "loaded" !== n.readyState && "complete" !== n.readyState || (t(), n.onload = null, n.onreadystatechange = null)2965};2966n.onload = r, n.onreadystatechange = r, n.onerror = i, document.head.appendChild(n)2967}))2968};2969var ze = function(e, t, i, n) {2970return new(i || (i = Promise))((function(r, a) {2971function o(e) {2972try {2973d(n.next(e))2974} catch (e) {2975a(e)2976}2977}29782979function s(e) {2980try {2981d(n.throw(e))2982} catch (e) {2983a(e)2984}2985}29862987function d(e) {2988var t;2989e.done ? r(e.value) : (t = e.value, t instanceof i ? t : new i((function(e) {2990e(t)2991}))).then(o, s)2992}2993d((n = n.apply(e, t || [])).next())2994}))2995},2996Oe = function(e, t) {2997var i, n, r, a, o = {2998label: 0,2999sent: function() {3000if (1 & r[0]) throw r[1];3001return r[1]3002},3003trys: [],3004ops: []3005};3006return a = {3007next: s(0),3008throw: s(1),3009return: s(2)3010}, "function" == typeof Symbol && (a[Symbol.iterator] = function() {3011return this3012}), a;30133014function s(a) {3015return function(s) {3016return function(a) {3017if (i) throw new TypeError("Generator is already executing.");3018for (; o;) try {3019if (i = 1, n && (r = 2 & a[0] ? n.return : a[0] ? n.throw || ((r = n.return) && r.call(n), 0) : n.next) && !(r = r.call(n, a[1])).done) return r;3020switch (n = 0, r && (a = [2 & a[0], r.value]), a[0]) {3021case 0:3022case 1:3023r = a;3024break;3025case 4:3026return o.label++, {3027value: a[1],3028done: !13029};3030case 5:3031o.label++, n = a[1], a = [0];3032continue;3033case 7:3034a = o.ops.pop(), o.trys.pop();3035continue;3036default:3037if (!(r = o.trys, (r = r.length > 0 && r[r.length - 1]) || 6 !== a[0] && 2 !== a[0])) {3038o = 0;3039continue3040}3041if (3 === a[0] && (!r || a[1] > r[0] && a[1] < r[3])) {3042o.label = a[1];3043break3044}3045if (6 === a[0] && o.label < r[1]) {3046o.label = r[1], r = a;3047break3048}3049if (r && o.label < r[2]) {3050o.label = r[2], o.ops.push(a);3051break3052}3053r[2] && o.ops.pop(), o.trys.pop();3054continue3055}3056a = t.call(e, o)3057} catch (e) {3058a = [6, e], n = 03059} finally {3060i = r = 03061}3062if (5 & a[0]) throw a[1];3063return {3064value: a[0] ? a[1] : void 0,3065done: !03066}3067}([a, s])3068}3069}3070};3071const Ge = function() {30723073};3074var je = function(e, t, i, n) {3075return new(i || (i = Promise))((function(r, a) {3076function o(e) {3077try {3078d(n.next(e))3079} catch (e) {3080a(e)3081}3082}30833084function s(e) {3085try {3086d(n.throw(e))3087} catch (e) {3088a(e)3089}3090}30913092function d(e) {3093var t;3094e.done ? r(e.value) : (t = e.value, t instanceof i ? t : new i((function(e) {3095e(t)3096}))).then(o, s)3097}3098d((n = n.apply(e, t || [])).next())3099}))3100},3101Ue = function(e, t) {3102var i, n, r, a, o = {3103label: 0,3104sent: function() {3105if (1 & r[0]) throw r[1];3106return r[1]3107},3108trys: [],3109ops: []3110};3111return a = {3112next: s(0),3113throw: s(1),3114return: s(2)3115}, "function" == typeof Symbol && (a[Symbol.iterator] = function() {3116return this3117}), a;31183119function s(a) {3120return function(s) {3121return function(a) {3122if (i) throw new TypeError("Generator is already executing.");3123for (; o;) try {3124if (i = 1, n && (r = 2 & a[0] ? n.return : a[0] ? n.throw || ((r = n.return) && r.call(n), 0) : n.next) && !(r = r.call(n, a[1])).done) return r;3125switch (n = 0, r && (a = [2 & a[0], r.value]), a[0]) {3126case 0:3127case 1:3128r = a;3129break;3130case 4:3131return o.label++, {3132value: a[1],3133done: !13134};3135case 5:3136o.label++, n = a[1], a = [0];3137continue;3138case 7:3139a = o.ops.pop(), o.trys.pop();3140continue;3141default:3142if (!(r = o.trys, (r = r.length > 0 && r[r.length - 1]) || 6 !== a[0] && 2 !== a[0])) {3143o = 0;3144continue3145}3146if (3 === a[0] && (!r || a[1] > r[0] && a[1] < r[3])) {3147o.label = a[1];3148break3149}3150if (6 === a[0] && o.label < r[1]) {3151o.label = r[1], r = a;3152break3153}3154if (r && o.label < r[2]) {3155o.label = r[2], o.ops.push(a);3156break3157}3158r[2] && o.ops.pop(), o.trys.pop();3159continue3160}3161a = t.call(e, o)3162} catch (e) {3163a = [6, e], n = 03164} finally {3165i = r = 03166}3167if (5 & a[0]) throw a[1];3168return {3169value: a[0] ? a[1] : void 0,3170done: !03171}3172}([a, s])3173}3174}3175};31763177function Ne() {31783179}3180var Qe = function(e, t, i, n) {3181return new(i || (i = Promise))((function(r, a) {3182function o(e) {3183try {3184d(n.next(e))3185} catch (e) {3186a(e)3187}3188}31893190function s(e) {3191try {3192d(n.throw(e))3193} catch (e) {3194a(e)3195}3196}31973198function d(e) {3199var t;3200e.done ? r(e.value) : (t = e.value, t instanceof i ? t : new i((function(e) {3201e(t)3202}))).then(o, s)3203}3204d((n = n.apply(e, t || [])).next())3205}))3206},3207Fe = function(e, t) {3208var i, n, r, a, o = {3209label: 0,3210sent: function() {3211if (1 & r[0]) throw r[1];3212return r[1]3213},3214trys: [],3215ops: []3216};3217return a = {3218next: s(0),3219throw: s(1),3220return: s(2)3221}, "function" == typeof Symbol && (a[Symbol.iterator] = function() {3222return this3223}), a;32243225function s(a) {3226return function(s) {3227return function(a) {3228if (i) throw new TypeError("Generator is already executing.");3229for (; o;) try {3230if (i = 1, n && (r = 2 & a[0] ? n.return : a[0] ? n.throw || ((r = n.return) && r.call(n), 0) : n.next) && !(r = r.call(n, a[1])).done) return r;3231switch (n = 0, r && (a = [2 & a[0], r.value]), a[0]) {3232case 0:3233case 1:3234r = a;3235break;3236case 4:3237return o.label++, {3238value: a[1],3239done: !13240};3241case 5:3242o.label++, n = a[1], a = [0];3243continue;3244case 7:3245a = o.ops.pop(), o.trys.pop();3246continue;3247default:3248if (!(r = o.trys, (r = r.length > 0 && r[r.length - 1]) || 6 !== a[0] && 2 !== a[0])) {3249o = 0;3250continue3251}3252if (3 === a[0] && (!r || a[1] > r[0] && a[1] < r[3])) {3253o.label = a[1];3254break3255}3256if (6 === a[0] && o.label < r[1]) {3257o.label = r[1], r = a;3258break3259}3260if (r && o.label < r[2]) {3261o.label = r[2], o.ops.push(a);3262break3263}3264r[2] && o.ops.pop(), o.trys.pop();3265continue3266}3267a = t.call(e, o)3268} catch (e) {3269a = [6, e], n = 03270} finally {3271i = r = 03272}3273if (5 & a[0]) throw a[1];3274return {3275value: a[0] ? a[1] : void 0,3276done: !03277}3278}([a, s])3279}3280}3281},3282Xe = !1,3283Ze = function() {3284return Qe(void 0, void 0, void 0, (function() {3285var e, t, i;3286return Fe(this, (function(n) {3287switch (n.label) {3288case 0:3289if (Xe) return [2];3290n.label = 1;3291case 1:3292return n.trys.push([1, 4, , 5]), [4, fetch("./touchControllerConfig.json")];3293case 2:3294return [4, n.sent().json()];3295case 3:3296return (e = n.sent()) && ((t = document.createElement("script")).src = "//game-cdn.poki.com/scripts/touchOverlayController.js", t.onload = function() {3297new window.OverlayController(document.body, e)3298}, document.head.appendChild(t), Xe = !0), [3, 5];3299case 4:3300return i = n.sent(), console.log(i), [3, 5];3301case 5:3302return [2]3303}3304}))3305}))3306};3307const Ke = function() {3308for (var e = Math.floor(Date.now() / 1e3), t = "", i = 0; i < 4; i++) t = String.fromCharCode(255 & e) + t, e >>= 8;3309if (window.crypto && crypto.getRandomValues && Uint32Array) {3310var n = new Uint32Array(12);3311crypto.getRandomValues(n);3312for (i = 0; i < 12; i++) t += String.fromCharCode(255 & n[i])3313} else3314for (i = 0; i < 12; i++) t += String.fromCharCode(Math.floor(256 * Math.random()));3315return btoa(t).replace(/\+/g, "-").replace(/\//g, "_").replace(/=/g, "")3316};3317var He = function() {3318function e() {3319this.slotMap = new Map3320}3321return e.prototype.waitUntilReady = function(e) {3322window.pbjs.que.push((function() {3323e()3324}))3325}, e.prototype.setupSlotRenderEndedListener = function() {3326var e = this;3327this.waitUntilReady((function() {3328window.googletag.pubads().addEventListener("slotRenderEnded", (function(t) {3329})), window.googletag.pubads().addEventListener("impressionViewable", (function(t) {3330}))3331}))3332}, e.prototype.validateDisplaySettings = function(e) {3333return !!(S() || E() || ["970x250", "300x250", "728x90", "160x600", "320x50"].includes(e)) && !((S() || E()) && !["320x50"].includes(e))3334}, e.prototype.getDisplaySlotConfig = function(e) {3335var t = e.split("x").map((function(e) {3336return parseInt(e, 10)3337})),3338i = "/21682198607/debug-display/debug-display-" + e,3339n = "desktop";3340S() && (n = "mobile"), E() && (n = "tablet");3341var a = parseInt(_("site_id"), 10) || 0;3342return r.debug || (i = nt.GetIsPokiIFrame() ? "/21682198607/" + n + "_ingame_" + e + "/" + a + "_" + n + "_ingame_" + e : "/21682198607/external_" + n + "_display_ingame/external_" + n + "_ingame_" + e), {3343id: "poki-" + Ke(),3344adUnitPath: i,3345size: e,3346width: t[0],3347height: t[1],3348refresh: !13349}3350}, e.prototype.renderIGDAd = function(e, t, i, n, r) {3351var a = this,3352o = this.getIGDSlotID(e);3353o && this.slotMap.get(o) && (console.error("displayAd called with a container that already contains an ad"), this.clearIGDAd(e));3354var s = this.getDisplaySlotConfig(t);3355this.slotMap.set(s.id, s), s.opportunityId = n, s.duringGameplayFn = r;3356var d = document.createElement("div");3357d.style.width = s.width + "px", d.style.height = s.height + "px", e.appendChild(d), e.setAttribute("data-poki-ad-id", s.id), s.intersectionObserver = new window.IntersectionObserver((function(t) {3358var r;3359t[0].isIntersecting && (null === (r = s.intersectionObserver) || void 0 === r || r.disconnect(), a.waitUntilReady((function() {3360var t = a.slotMap.get(s.id);3361if (t && t.opportunityId === n) {3362d.style.background = "#CCC", d.innerHTML = "<p>ADVERTISEMENT</p>", d.style.display = "flex", d.style.justifyContent = "center", d.style.alignItems = "center", d.style.position = "absolute", d.style.zIndex = "1", d.style.fontFamily = "Helvetica", d.style.fontSize = "16px", d.style.color = "#888", d.style.pointerEvents = "none";3363var r = document.createElement("div");3364r.id = s.id, r.className = "poki-ad-slot", r.style.width = s.width + "px", r.style.height = s.height + "px", r.style.position = "relative", r.style.zIndex = "2", r.setAttribute("data-poki-ad-size", s.size), e.appendChild(r), a.setupGPT(s, i), a.requestAd(s)3365}3366})))3367}), {3368threshold: 13369}), s.intersectionObserver.observe(d)3370}, e.prototype.setupGPT = function(e, t) {3371var i;3372e.gptSlot = window.googletag.defineSlot(e.adUnitPath, [e.width, e.height], e.id).addService(window.googletag.pubads()), window.googletag.enableServices(), null === (i = e.gptSlot) || void 0 === i || i.clearTargeting(), Object.keys(t).forEach((function(i) {3373var n;3374null === (n = e.gptSlot) || void 0 === n || n.setTargeting(i, t[i])3375}))3376}, e.prototype.requestAd = function(e) {3377var t, i = this;3378dt.track(n.tracking.ads.display.requested, {3379size: e.size,3380opportunityId: e.opportunityId,3381adUnitPath: e.adUnitPath,3382refresh: e.refresh,3383duringGameplay: null === (t = e.duringGameplayFn) || void 0 === t ? void 0 : t.call(e)3384}), window.pbjs.requestBids({3385adUnitCodes: [e.adUnitPath],3386bidsBackHandler: function() {3387i.bidsBackHandler(e.id)3388}3389})3390}, e.prototype.clearIGDAd = function(e) {3391var t, i = this.getIGDSlotID(e);3392if (i) {3393var r = this.slotMap.get(i) || null;3394if (r) {3395for (dt.track(n.tracking.screen.destroyAd, {3396opportunityId: r.opportunityId3397}), null === (t = r.intersectionObserver) || void 0 === t || t.disconnect(), r.gptSlot && googletag.destroySlots([r.gptSlot]); e.lastChild;) e.removeChild(e.lastChild);3398e.removeAttribute("data-poki-ad-id"), this.slotMap.delete(r.id)3399}3400} else console.error("destroyAd called on a container without ad")3401}, e.prototype.getIGDSlotID = function(e) {3402if (!e) return null;3403var t = e.getAttribute("data-poki-ad-id");3404return t || null3405}, e.prototype.bidsBackHandler = function(e) {3406var t = this.slotMap.get(e);3407t && t.gptSlot && (window.pbjs.setTargetingForGPTAsync([t.adUnitPath]), t.adserverTargeting = window.pbjs.getAdserverTargetingForAdUnitCode([t.adUnitPath]), window.googletag.display(t.id))3408}, e3409}();3410const We = He;3411var Ve, qe = (Ve = function(e, t) {3412return Ve = Object.setPrototypeOf || {3413__proto__: []3414}3415instanceof Array && function(e, t) {3416e.__proto__ = t3417} || function(e, t) {3418for (var i in t) Object.prototype.hasOwnProperty.call(t, i) && (e[i] = t[i])3419}, Ve(e, t)3420}, function(e, t) {3421if ("function" != typeof t && null !== t) throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");34223423function i() {3424this.constructor = e3425}3426Ve(e, t), e.prototype = null === t ? Object.create(t) : (i.prototype = t.prototype, new i)3427}),3428Je = function(e) {3429function t() {3430return null !== e && e.apply(this, arguments) || this3431}3432return qe(t, e), t.prototype.waitUntilReady = function(e) {3433window.pbjs.que.push((function() {3434e()3435}))3436}, t.prototype.requestAd = function(t) {3437z({3438event: "request",3439size: t.size,3440opportunityId: t.opportunityId,3441adUnitPath: t.adUnitPath,3442p4d_game_id: tt.gameId,3443p4d_version_id: tt.versionId3444}), e.prototype.requestAd.call(this, t)3445}, t.prototype.bidsBackHandler = function(e) {3446var t, i, r = this.slotMap.get(e);3447if (r) {3448var a = document.createElement("iframe");3449a.setAttribute("frameborder", "0"), a.setAttribute("scrolling", "no"), a.setAttribute("marginheight", "0"), a.setAttribute("marginwidth", "0"), a.setAttribute("topmargin", "0"), a.setAttribute("leftmargin", "0"), a.setAttribute("allowtransparency", "true"), a.setAttribute("width", "" + r.width), a.setAttribute("height", "" + r.height);3450var o = document.getElementById(r.id);3451if (o) {3452o.appendChild(a);3453var s = null === (t = null == a ? void 0 : a.contentWindow) || void 0 === t ? void 0 : t.document;3454if (!s) return console.error("IGD error - iframe injection for ad failed", e), void this.clearIGDAd(o.parentNode);3455if (r.adserverTargeting = window.pbjs.getAdserverTargetingForAdUnitCode([r.adUnitPath]), !r.adserverTargeting.hb_adid) return console.error("IGD info - nothing to render", e, r.adserverTargeting), void this.clearIGDAd(o.parentNode);3456var d = r.adserverTargeting.hb_bidder,3457A = parseFloat(r.adserverTargeting.hb_pb);3458isNaN(A) && (A = 0), window.pbjs.renderAd(s, r.adserverTargeting.hb_adid), dt.track(n.tracking.ads.display.impression, {3459size: r.size,3460opportunityId: r.opportunityId,3461duringGameplay: null === (i = r.duringGameplayFn) || void 0 === i ? void 0 : i.call(r),3462adUnitPath: r.adUnitPath,3463prebidBid: A,3464prebidBidder: d,3465preBidWon: !0,3466dfpIsBackfill: !1,3467dfpLineItemId: void 0,3468dfpCampaignId: void 03469}), z({3470event: "impression",3471size: r.size,3472opportunityId: r.opportunityId,3473adUnitPath: r.adUnitPath,3474p4d_game_id: tt.gameId,3475p4d_version_id: tt.versionId,3476bidder: d,3477bid: A3478}), r.intersectionObserver = new IntersectionObserver((function(e) {3479e.forEach((function(e) {3480e.isIntersecting ? r.intersectingTimer || (r.intersectingTimer = setTimeout((function() {3481var t, i;3482null === (t = r.intersectionObserver) || void 0 === t || t.unobserve(e.target), dt.track(n.tracking.ads.display.viewable, {3483size: r.size,3484opportunityId: r.opportunityId,3485duringGameplay: null === (i = r.duringGameplayFn) || void 0 === i ? void 0 : i.call(r),3486adUnitPath: r.adUnitPath3487}), z({3488event: "viewable",3489size: r.size,3490opportunityId: r.opportunityId,3491adUnitPath: r.adUnitPath,3492p4d_game_id: tt.gameId,3493p4d_version_id: tt.versionId,3494bidder: d,3495bid: A3496})3497}), 1e3)) : r.intersectingTimer && (clearTimeout(r.intersectingTimer), r.intersectingTimer = void 0)3498}))3499}), {3500threshold: .53501}), r.intersectionObserver.observe(o)3502} else console.error("IGD error - container not found", e)3503}3504}, t.prototype.setupGPT = function(e, t) {}, t.prototype.setupSlotRenderEndedListener = function() {}, t3505}(We);3506const Ye = Je;3507var $e = function() {3508return $e = Object.assign || function(e) {3509for (var t, i = 1, n = arguments.length; i < n; i++)3510for (var r in t = arguments[i]) Object.prototype.hasOwnProperty.call(t, r) && (e[r] = t[r]);3511return e3512}, $e.apply(this, arguments)3513},3514et = function(e, t, i) {3515if (i || 2 === arguments.length)3516for (var n, r = 0, a = t.length; r < a; r++) !n && r in t || (n || (n = Array.prototype.slice.call(t, 0, r)), n[r] = t[r]);3517return e.concat(n || Array.prototype.slice.call(t))3518},3519tt = {3520gameId: _("game_id"),3521versionId: _("game_version_id")3522},3523it = function() {3524function e() {3525this.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.installedTCFv2 = !1, this.installedUSP = !1, this.isBot = !1, this.adReady = !1, this.debugTouchOverlayController = !1, this.setPlayerAge = function(e) {3526e && function(e, t) {3527if (Se) try {3528localStorage.setItem(e, t)3529} catch (i) {3530Se = !1, Ee[e] = t3531} else Ee[e] = t3532}("playerAge", e)3533}, this.toggleNonPersonalized = function(t) {3534e.nonPersonalized = t3535}, this.setConsentString = function(t) {3536e.consentString = t3537}, this.setLogging = function(e) {3538r.log = e3539}, this.sdkNotBootedButCalled = function() {3540console.error("The Poki SDK has not yet been initialized")3541}, d() ? this.IGD = new Ye : this.IGD = new We;3542var t = _("pokiDebug");3543"" !== t && (this.setDebug("true" === t), this.debugIsOverwritten = !0), "" !== _("pokiLogging") && this.setLogging(!0)3544}3545return e.prototype.init = function(e) {3546if (void 0 === e && (e = {}), "undefined" != typeof window) {3547var t = e.onReady,3548i = void 0 === t ? null : t,3549n = e.onAdblocked,3550r = void 0 === n ? null : n;3551return this.initOptions = e, i && this.registerHandler("onReady", i), r && this.registerHandler("onAdblocked", r), this.isInitialized ? console.error("Poki SDK has already been initialized") : (this.initializingPromise || (this.initializingPromise = this.lazyLoadInit()), this.initializingPromise)3552}3553}, e.prototype.lazyLoadInit = function() {3554var t = this,3555i = this.initOptions,3556a = i.debug,3557s = void 0 !== a && a,3558d = i.prebid,3559A = void 0 === d ? {} : d,3560c = i.a9,3561p = void 0 === c ? {} : c,3562u = i.volume,3563h = void 0 === u ? 1 : u,3564m = i.waterfallRetries,3565g = i.wrapper,3566v = void 0 === g ? document.body : g,3567f = parseInt(_("site_id"), 10) || 0;3568this.isBot = "1" === _("bot") || {35693570}, this.setupDefaultEvents(), dt.setupDefaultEvents(), e.GetIsPokiIFrame() && _e(), setTimeout(w.trackSavegames, 1e4);3571var b = $e({}, l),3572y = Ge;3573r.debug && (y = function() {3574return Promise.resolve()3575});3576var k = Ne,3577I = _("ccpaApplies"),3578x = this.initOptions.country || _("country"),3579C = void 0 !== this.initOptions.isCCPA ? this.initOptions.isCCPA : "" !== I ? "1" === I : void 0;3580x && void 0 !== C && (k = function() {3581return Promise.resolve({3582ISO: x,3583ccpaApplies: C3584})3585});3586var T = !1;3587x && ($(A, x), T = !0), window.addEventListener("resize", this.resize.bind(this), !1), window.addEventListener("message", this.onMessage.bind(this), !1), this.debugIsOverwritten || this.setDebug(r.debug || s), this.debugTouchOverlayController && (S() || E()) && Ze();3588var B = [y(), k()],3589P = et([], B, !0);3590this.isBot || P.push(Le(""));3591var D = function(e, i, a) {3592if (void 0 === a && (a = !0), t.country = x || (null == i ? void 0 : i.ISO) || "zz", t.isCCPA = void 0 === C ? (null == i ? void 0 : i.ccpaApplies) || !1 : C, e) {3593tt.gameId || (tt.gameId = e.gameId);3594[""].includes(tt.gameId) && (S() || E()) && Ze(), b.adTiming = e.adTiming, b.customCriteria = $e($e({}, b.customCriteria), {3595p4d_game_id: tt.gameId3596})3597}3598Be(t.country) && !r.debug && (ie(), console.debug("GDPR - waiting for __tcfapi callback"), window.__tcfapi("ping", 2, (function() {3599console.debug("GDPR - __tcfapi callback received"), t.installedTCFv2 = !0, a && o.dispatchEvent(n.ready)3600})), setTimeout((function() {3601t.installedTCFv2 || (console.error("GDPR - No __tcfapi callback after 2s, verify implementation!"), a && o.dispatchEvent(n.ready))3602}), 2e3)), t.isCCPA && !r.debug && (ne(), console.debug("USPrivacy - waiting for __uspapi callback"), window.__uspapi("uspPing", 1, (function() {3603console.debug("USPrivacy - __uspapi callback received"), t.installedUSP = !0, a && o.dispatchEvent(n.ready)3604})), setTimeout((function() {3605t.installedUSP || (console.error("USPrivacy - No __uspapi callback after 2s, verify implementation!"), a && o.dispatchEvent(n.ready))3606}), 2e3))3607};3608return Promise.all(P).catch((function() {3609Promise.all(B).then((function(e) {3610var t = e[0],3611i = e[1];3612D(t, i, !1)3613})), o.dispatchEvent(n.adblocked)3614})).then((function(e) {3615if (void 0 !== e) {3616var i = e[0],3617a = e[1];3618D(i, a), T || $(A, t.country), r.debug && (b.adTiming.startAdsAfter = 0), t.enableSettings(b), t.playerSkin = new we({3619wrapper: v3620}), t.ima = new Re(h), t.playerSkin.setupEvents(t), t.startStartAdsAfterTimerOnInit && t.adTimings.startStartAdsAfterTimer(), t.waterfall = new oe(t.ima, {3621timing: t.adTimings,3622totalRetries: m,3623siteID: f,3624country: t.country3625}), t.IGD.setupSlotRenderEndedListener();3626var s = Be(t.country);3627te(p, t.country, s), t.isInitialized = !0, t.isCCPA || s || o.dispatchEvent(n.ready), r.debug && o.dispatchEvent(n.ready)3628}3629}))3630}, e.prototype.requestAd = function(e) {3631void 0 === e && (e = {});3632var t = e.autoStart,3633i = void 0 === t || t,3634a = e.onFinish,3635d = void 0 === a ? null : a,3636A = e.onStart,3637c = void 0 === A ? null : A,3638l = e.position,3639p = void 0 === l ? null : l;3640if (this.autoStartOnReady = !1 !== i, d && this.registerHandler("onFinish", d), c && this.registerHandler("onStart", c), this.forceDisableCommercialBreak && [n.ads.position.midroll, n.ads.position.preroll].includes(p)) d && d();3641else if (this.isBot) d && d({});3642else {3643if (!this.sdkBooted) return o.dispatchEvent(n.ads.error, {3644message: "Requesting ad on unbooted SDK"3645}), void this.sdkNotBootedButCalled();3646else if (!S() && !E() || p === n.ads.position.rewarded)3647if (null !== p && s(p, n.ads.position))3648if (!Be(this.country) || this.installedTCFv2 || r.debug)3649if (!this.isCCPA || this.installedUSP)3650if (this.adReady) o.dispatchEvent(n.ads.ready);36513652if (p === n.ads.position.rewarded) {36533654} else o.dispatchEvent(n.ads.limit, {3655reason: n.info.messages.timeLimit3656});36573658}3659}, e.prototype.displayAd = function(e, t, i, a) {3660if (!this.isBot) {3661var s = n.ads.position.display;3662if (!Be(this.country) || this.installedTCFv2 || r.debug)3663if (!this.isCCPA || window.__uspapi)3664if (t) {3665if (!this.sdkBooted) return o.dispatchEvent(n.ads.error, {3666message: "Requesting ad on unbooted SDK",3667position: s3668}), void this.sdkNotBootedButCalled();3669if (e)3670if (this.sdkImaError) o.dispatchEvent(n.ads.error, {3671message: "Adblocker has been detected",3672position: s3673});3674else {3675if (!this.IGD.validateDisplaySettings(t)) return o.dispatchEvent(n.ads.error, {3676reason: "Display size " + t + " is not supported on this device",3677position: s3678});3679var d = $e($e({}, this.genericCriteria()), this.criteria);3680this.IGD.renderIGDAd(e, t, d, i, a)3681}3682else o.dispatchEvent(n.ads.error, {3683message: "Provided container does not exist",3684position: s3685})3686} else o.dispatchEvent(n.ads.error, {3687message: "No ad size given, usage: displayAd(<container>, <size>)",3688position: s3689});3690else o.dispatchEvent(n.ads.error, {3691message: "No USP detected, please contact [email protected] for more information",3692position: s3693});3694else o.dispatchEvent(n.ads.error, {3695message: "No TCFv2 CMP detected, please contact [email protected] for more information",3696position: s3697})3698}3699}, e.prototype.destroyAd = function(e) {3700if (!this.sdkBooted) return o.dispatchEvent(), void this.sdkNotBootedButCalled();3701this.sdkImaError ? o.dispatchEvent() : (e = e || document.body, this.IGD.clearIGDAd(e))3702}, e.prototype.startStartAdsAfterTimer = function() {3703}, e.prototype.enableSettings = function(e) {3704this.criteria = $e({}, e.customCriteria), this.adTimings = new u(e.adTiming)3705}, e.prototype.togglePlayerAdvertisingConsent = function(e) {3706if (e) {3707var t, i = parseInt(function(e) {3708if (!Se) return Ee[e];3709try {3710return localStorage.getItem(e)3711} catch (t) {3712return Ee[e]3713}3714}("playerAge"), 10) || 0,3715n = this.country,3716r = Be(n),3717a = (t = n, Ce.includes(t)),3718o = Pe(n);3719(r || a || Pe) && (r && i <= 12 || a && i <= 16 || o && i <= 16) ? this.disableProgrammatic(): this.enableProgrammatic()3720} else this.disableProgrammatic()3721}, e.prototype.disableProgrammatic = function() {3722e.childDirected = !0, this.programmaticAdsEnabled = !13723}, e.prototype.enableProgrammatic = function() {3724e.childDirected = !1, this.programmaticAdsEnabled = !03725}, e.prototype.getProgrammaticAdsEnabled = function() {3726return this.programmaticAdsEnabled3727}, e.prototype.setDebug = function(e) {3728this.debugIsOverwritten ? e && dt.track(n.tracking.debugTrueInProduction) : r.debug = e3729}, e.prototype.resize = function() {3730var e = this;3731if (!this.sdkBooted) return this.sdkNotBootedButCalled();3732if (!this.sdkImaError) {3733var t = this.playerSkin.getVideoBounds();37340 !== t.width && 0 !== t.height ? this.ima.resize(t.width, t.height) : setTimeout((function() {3735e.resize()3736}), 100)3737}3738}, e.prototype.onMessage = function(e) {3739if ("string" == typeof e.data.type) switch (e.data.type) {3740case "toggleNonPersonalized":3741this.toggleNonPersonalized(!(!e.data.content || !e.data.content.nonPersonalized));3742break;3743case "setPersonalizedADConsent":3744this.toggleNonPersonalized(!(e.data.content && e.data.content.consent)), this.setConsentString(e.data.content ? e.data.content.consentString : "");3745break;3746case "forceDisableCommercialBreak":3747this.forceDisableCommercialBreak = !03748}3749}, e.prototype.startAd = function() {3750if (!this.sdkBooted) return this.sdkNotBootedButCalled();3751this.sdkImaError || (this.adReady ? (this.resize(), this.ima.startPlayback()) : o.dispatchEvent(n.ads.error, {3752message: "No ads ready to start"3753}))3754}, e.prototype.startAdClicked = function() {3755"undefined" != typeof navigator && /(iPad|iPhone|iPod)/gi.test(navigator.userAgent) && this.startAdEnabled && (this.startAdEnabled = !1, this.playerSkin.hideStartAdButton(), this.ima.startIOSPlayback())3756}, e.prototype.stopAd = function() {3757if (!this.sdkBooted) return this.sdkNotBootedButCalled();3758this.sdkImaError || (this.waterfall.stopWaterfall(), this.ima.stopPlayback(), this.playerSkin.hide())3759}, e.prototype.resumeAd = function() {3760if (!this.sdkBooted) return this.sdkNotBootedButCalled();3761this.sdkImaError || (this.playerSkin.hidePauseButton(), this.ima.resumeAd())3762}, e.prototype.skipAd = function() {3763this.stopAd(), this.callHandler("onFinish", {3764type: n.ads.completed,3765rewardAllowed: !03766})3767}, e.prototype.muteAd = function() {3768if (!this.sdkBooted) return this.sdkNotBootedButCalled();3769this.sdkImaError || this.ima.muteAd()3770}, e.prototype.registerHandler = function(e, t) {3771this.handlers[e] = t3772}, e.prototype.callHandler = function(e) {3773for (var t = [], i = 1; i < arguments.length; i++) t[i - 1] = arguments[i];3774"function" == typeof this.handlers[e] && this.handlers[e](t)3775}, e.prototype.setupDefaultEvents = function() {3776var e = this;3777o.addEventListener(n.ready, (function() {3778e.sdkBooted = !0, e.callHandler("onReady")3779})), o.addEventListener(n.adblocked, (function() {3780e.sdkBooted = !0, e.callHandler("onReady")3781})), o.addEventListener(n.ads.ready, (function() {3782e.adReady = !0, e.callHandler("onReady")3783})), o.addEventListener(n.ads.started, (function() {3784e.playerSkin.hideSpinner(), e.callHandler("onStart", {3785type: n.ads.limit3786})3787})), o.addEventListener(n.ads.video.paused, (function() {3788e.playerSkin.showPauseButton()3789})), o.addEventListener(n.ads.limit, (function() {3790e.callHandler("onFinish", {3791type: n.ads.limit,3792rewardAllowed: !13793})3794})), o.addEventListener(n.ads.stopped, (function() {3795e.callHandler("onFinish", {3796type: n.ads.stopped,3797rewardAllowed: !13798})3799})), o.addEventListener(n.ads.error, (function() {3800e.callHandler("onFinish", {3801type: n.ads.error,3802rewardAllowed: !13803})3804})), o.addEventListener(n.ads.busy, (function() {3805e.callHandler("onFinish", {3806type: n.ads.busy,3807rewardAllowed: !13808})3809})), o.addEventListener(n.ads.completed, (function(t) {3810e.callHandler("onFinish", {3811type: n.ads.completed,3812rewardAllowed: !!t.rewardAllowed3813})3814})), [n.ads.limit, n.ads.stopped, n.ads.error, n.ads.busy, n.ads.completed].forEach((function(t) {3815o.addEventListener(t, (function() {3816e.playerSkin && e.playerSkin.hide(), e.adReady = !13817}))3818}))3819}, e.prototype.genericCriteria = function() {3820var e = {},3821t = encodeURIComponent(_("tag") || ""),3822i = encodeURIComponent(_("site_id") || ""),3823n = encodeURIComponent(_("experiment") || ""),3824r = encodeURIComponent(_("categories") || "");3825return e.tag = t, e.tag_site = t + "|" + i, e.site_id = i, e.experiment = n, e.categories = r, this.programmaticAdsEnabled || (e.disable_programmatic = 1), e3826}, e.prototype.setVolume = function(e) {3827this.ima && this.ima.setVolume(e)3828}, e.GetIsPokiIFrame = function() {3829return (parseInt(_("site_id"), 10) || 0) > 03830}, e.childDirected = !1, e.nonPersonalized = !1, e.consentString = "", e3831}();3832const nt = it;3833const rt = function() {3834function e() {}3835return e.sendMessage = function(e, t) {3836var i = window.parent;3837if (!s(e, n.message)) {3838var r = Object.keys(n.message).map((function(e) {3839return "poki.message." + e3840}));3841throw new TypeError("Argument 'type' must be one of " + r.join(", "))3842}3843var a = t || {};3844tt.gameId && tt.versionId && (a.pokifordevs = {3845game_id: tt.gameId,3846game_version_id: tt.versionId3847}), i.postMessage({3848type: e,3849content: a3850}, "*")3851}, e3852}();3853var at = function(e) {3854var t = new Array;3855return Object.keys(e).forEach((function(i) {3856"object" == typeof e[i] ? t = t.concat(at(e[i])) : t.push(e[i])3857})), t3858};3859var ot = function() {3860return ot = Object.assign || function(e) {3861for (var t, i = 1, n = arguments.length; i < n; i++)3862for (var r in t = arguments[i]) Object.prototype.hasOwnProperty.call(t, r) && (e[r] = t[r]);3863return e3864}, ot.apply(this, arguments)3865},3866st = at(n.tracking);3867const dt = function() {3868function e() {}3869return e.track = function(e, t) {3870if (void 0 === t && (t = {}), -1 === st.indexOf(e)) throw new TypeError("Invalid 'event', must be one of " + st.join(", "));3871if ("object" != typeof t) throw new TypeError("Invalid data, must be an object");3872var i = o.getDataAnnotations();3873if (null == i ? void 0 : i.vhbOnlyMode) switch (e) {3874case n.tracking.ads.status.impression:3875z(ot({3876event: "video-impression",3877size: "640x360v"3878}, i));3879break;3880case n.tracking.ads.video.error:3881z(ot({3882event: "video-error",3883size: "640x360v"3884}, i));3885break;3886case n.tracking.ads.video.loaderError:3887z(ot({3888event: "video-adsloader-error",3889size: "640x360v"3890}, i));3891break;3892case n.tracking.ads.status.completed:3893z(ot({3894event: "video-complete",3895size: "640x360v"3896}, i))3897}3898if (r.debug || r.log) {3899if (window.process && window.process.env && "test" === window.process.env.NODE_ENV) return;3900Object.keys(t).length ? console.info("%cPOKI_TRACKER: %cTracked event '" + e + "' with data:", "font-weight: bold", "", t) : console.info("%cPOKI_TRACKER: %cTracked event '" + e + "'", "font-weight: bold", "")3901}3902rt.sendMessage(n.message.event, {3903event: e,3904data: t3905})3906}, e.setupDefaultEvents = function() {3907var t, i = ((t = {})[n.ready] = n.tracking.sdk.status.initialized, t[n.adblocked] = console.log(n.tracking.sdk.status.failed), t[n.ads.busy] = n.tracking.ads.status.busy, t[n.ads.completed] = n.tracking.ads.status.completed, t[n.ads.error] = console.log(n.tracking.ads.status.error), t[n.ads.displayError] = console.log(n.tracking.ads.status.displayError), t[n.ads.impression] = n.tracking.ads.status.impression, t[n.ads.limit] = n.tracking.ads.status.limit, t[n.ads.ready] = n.tracking.ads.status.ready, t[n.ads.requested] = n.tracking.ads.status.requested, t[n.ads.prebidRequested] = n.tracking.ads.status.prebidRequested, t[n.ads.skipped] = n.tracking.ads.status.skipped, t[n.ads.started] = n.tracking.ads.status.started, t[n.ads.video.clicked] = n.tracking.ads.video.clicked, t[n.ads.video.error] = n.tracking.ads.video.error, t[n.ads.video.loaderError] = n.tracking.ads.video.loaderError, t[n.ads.video.buffering] = n.tracking.ads.status.buffering, t[n.ads.video.progress] = n.tracking.ads.video.progress, t[n.ads.video.paused] = n.tracking.ads.video.paused, t[n.ads.video.resumed] = n.tracking.ads.video.resumed, t[n.tracking.screen.gameplayStart] = n.tracking.screen.gameplayStart, t[n.tracking.screen.gameplayStop] = n.tracking.screen.gameplayStop, t[n.tracking.screen.loadingProgress] = n.tracking.screen.loadingProgress, t[n.tracking.screen.commercialBreak] = n.tracking.screen.commercialBreak, t[n.tracking.screen.rewardedBreak] = n.tracking.screen.rewardedBreak, t[n.tracking.screen.happyTime] = n.tracking.screen.happyTime, t);3908Object.keys(i).forEach((function(t) {3909o.addEventListener(t, (function(n) {3910e.track(i[t], n)3911}))3912}))3913}, e3914}();39153916function At(e) {3917switch (Object.prototype.toString.call(e)) {3918case "[object Error]":3919case "[object Exception]":3920case "[object DOMException]":3921return !0;3922default:3923return e instanceof Error3924}3925}3926var ct = "poki_erruid",3927lt = Date.now(),3928pt = m(ct);39293930function ut(e) {3931if (tt.gameId && tt.versionId) {3932if (!(Date.now() < lt)) {3933pt || (pt = Math.random().toString(36).substr(2, 9), g(ct, pt));3934try {3935var t = JSON.stringify({3936gid: tt.gameId,3937vid: tt.versionId,3938ve: 7,3939n: e.name,3940m: e.message,3941s: JSON.stringify(e.stack),3942ui: pt3943}),3944i = "https://t.poki.io/ge";3945if (navigator.sendBeacon) navigator.sendBeacon(i, t);3946else {3947var n = new XMLHttpRequest;3948n.open("POST", i, !0), n.send(t)3949}3950lt = Date.now() + 1003951} catch (e) {3952console.error(e)3953}3954}3955} else console.log(e)3956}3957"undefined" != typeof window && (t().remoteFetching = !1, t().report.subscribe((function(e) {3958if ("Script error." === e.message && window.pokiLastCatch) {3959var i = window.pokiLastCatch;3960window.pokiLastCatch = null, t().report(i)3961} else ut(e)3962})), window.onunhandledrejection = function(e) {3963At(e.reason) ? t().report(e.reason) : ut({3964name: "unhandledrejection",3965message: JSON.stringify(e.reason)3966})3967});3968var ht = function() {3969return ht = Object.assign || function(e) {3970for (var t, i = 1, n = arguments.length; i < n; i++)3971for (var r in t = arguments[i]) Object.prototype.hasOwnProperty.call(t, r) && (e[r] = t[r]);3972return e3973}, ht.apply(this, arguments)3974},3975mt = function() {3976function t() {3977var t = this;3978this.gameStarted = !1, this.SDK = new nt, this.gameplayStartCounter = 0, this.gameplayStopCounter = 0, this.duringGameplay = !1, this.init = function(e) {3979return void 0 === e && (e = {}), new Promise((function(i, r) {3980t.SDK.init(ht({3981onReady: function() {3982if (_("preroll")) {3983var e = t.SDK.adTimings.prerollPossible;3984t.SDK.adTimings.prerollPossible = function() {3985return !03986}, t.commercialBreak(), t.SDK.adTimings.prerollPossible = e3987}3988i()3989},3990onAdblocked: r3991}, e)), rt.sendMessage(n.message.sdkDetails, {3992version: "2.234.2"3993})3994}))3995}, this.initWithVideoHB = function() {3996return t.init()3997}, this.gameLoadingProgress = function(e) {3998var t = {};3999void 0 !== e.percentageDone && (t.percentageDone = Number(e.percentageDone)), void 0 !== e.kbLoaded && (t.kbLoaded = Number(e.kbLoaded)), void 0 !== e.kbTotal && (t.kbTotal = Number(e.kbTotal)), void 0 !== e.fileNameLoaded && (t.fileNameLoaded = String(e.fileNameLoaded)), void 0 !== e.filesLoaded && (t.filesLoaded = Number(e.filesLoaded)), void 0 !== e.filesTotal && (t.filesTotal = Number(e.filesTotal)), dt.track(n.tracking.screen.gameLoadingProgress, t)4000}, this.gameLoadingStart = function() {4001var e, t;4002dt.track(n.tracking.screen.gameLoadingStarted, {4003now: Math.round(null === (t = null === (e = window.performance) || void 0 === e ? void 0 : e.now) || void 0 === t ? void 0 : t.call(e)) || void 04004})4005}, this.gameLoadingFinished = function() {4006var e, t, i, r, a;4007try {4008i = performance.getEntriesByType("resource").map((function(e) {4009return e.transferSize4010})).reduce((function(e, t) {4011return e + t4012})), i += performance.getEntriesByType("navigation")[0].transferSize4013} catch (e) {}4014dt.track(n.tracking.screen.gameLoadingFinished, {4015transferSize: i,4016trackers: (r = window, a = [], "function" != typeof r.ga, r.mixpanel && "function" == typeof r.mixpanel.track && a.push("mixpanel"), r.Countly && a.push("countly"), r.amplitude && a.push("amplitude"), a).join(","),4017now: Math.round(null === (t = null === (e = window.performance) || void 0 === e ? void 0 : e.now) || void 0 === t ? void 0 : t.call(e)) || void 04018})4019}, this.gameplayStart = function(e) {4020t.gameplayStartCounter++, t.duringGameplay = !0, t.gameStarted || (t.gameStarted = !0, dt.track(n.tracking.screen.firstRound), t.SDK.startStartAdsAfterTimer()), dt.track(n.tracking.screen.gameplayStart, ht(ht({}, e), {4021playId: t.gameplayStartCounter4022}))4023}, this.gameInteractive = function() {4024dt.track(n.tracking.screen.gameInteractive)4025}, this.gameplayStop = function(e) {4026t.gameplayStopCounter++, t.duringGameplay = !1, dt.track(n.tracking.screen.gameplayStop, ht(ht({}, e), {4027playId: t.gameplayStartCounter,4028stopId: t.gameplayStopCounter4029}))4030}, this.roundStart = function(e) {4031void 0 === e && (e = ""), e = String(e), dt.track(n.tracking.screen.roundStart, {4032identifier: e4033})4034}, this.roundEnd = function(e) {4035void 0 === e && (e = ""), e = String(e), dt.track(n.tracking.screen.roundEnd, {4036identifier: e4037})4038}, this.customEvent = function(e, i, r) {4039void 0 === r && (r = {}), e && i ? (e = String(e), i = String(i), r = ht({}, r), dt.track(n.tracking.custom, {4040eventNoun: e,4041eventVerb: i,4042eventData: r4043})) : t.error("customEvent", "customEvent needs at least a noun and a verb")4044}, this.commercialBreak = function(e) {4045return new Promise((function(i) {4046var r = t.gameStarted ? n.ads.position.midroll : n.ads.position.preroll;4047o.clearAnnotations(), o.setDataAnnotations({4048opportunityId: Ke(),4049position: r4050}), dt.track(n.tracking.screen.commercialBreak), t.SDK.requestAd({4051position: r,4052onFinish: i,4053onStart: e4054})4055}))4056}, this.rewardedBreak = function(e) {4057return new Promise((function(i) {4058var r = n.ads.position.rewarded;4059o.clearAnnotations(), o.setDataAnnotations({4060opportunityId: Ke(),4061position: r4062}), dt.track(n.tracking.screen.rewardedBreak), t.SDK.requestAd({4063position: r,4064onFinish: function(e) {4065e.length > 0 ? i(e[0].rewardAllowed) : i(!1)4066},4067onStart: e4068})4069}))4070}, this.happyTime = function(e) {4071void 0 === e && (e = 1), ((e = Number(e)) < 0 || e > 1) && (e = Math.max(0, Math.min(1, e)), t.warning("happyTime", "Intensity should be a value between 0 and 1, adjusted to " + e)), dt.track(n.tracking.screen.happyTime, {4072intensity: e4073})4074}, this.muteAd = function() {4075t.SDK.muteAd()4076}, this.setPlayerAge = function(e) {4077e && t.SDK.setPlayerAge(e)4078}, this.togglePlayerAdvertisingConsent = function(e) {4079dt.track(n.tracking.togglePlayerAdvertisingConsent, {4080didConsent: e4081}), t.SDK.togglePlayerAdvertisingConsent(e), rt.sendMessage(n.message.toggleProgrammaticAds, {4082enabled: t.SDK.getProgrammaticAdsEnabled()4083})4084}, this.displayAd = function(e, i) {4085o.clearAnnotations();4086var r = Ke();4087dt.track(n.tracking.screen.displayAd, {4088size: i,4089opportunityId: r,4090duringGameplay: t.duringGameplay4091}), t.SDK.displayAd(e, i, r, (function() {4092return t.duringGameplay4093}))4094}, this.logError = function(t) {4095At(t) ? e.report(t) : ut({4096name: "logError",4097message: JSON.stringify(t)4098})4099}, this.sendHighscore = function() {}, this.setDebugTouchOverlayController = function(e) {4100t.SDK.debugTouchOverlayController = e4101}, this.getLeaderboard = function() {4102return Promise.resolve([])4103}, this.getIsoLanguage = function() {4104return _("iso_lang")4105}, this.warning = function(e, t) {4106console.warn("PokiSDK." + e + ": " + t)4107}, this.error = function(e, t) {4108console.error("PokiSDK." + e + ": " + t)4109}4110}4111return t.prototype.setDebug = function(e) {4112void 0 === e && (e = !0), this.SDK.setDebug(e)4113}, t.prototype.disableProgrammatic = function() {4114this.SDK.disableProgrammatic()4115}, t.prototype.toggleNonPersonalized = function(e) {4116void 0 === e && (e = !1), this.SDK.toggleNonPersonalized(e)4117}, t.prototype.setConsentString = function(e) {4118this.SDK.setConsentString(e)4119}, t.prototype.destroyAd = function(e) {4120this.SDK.destroyAd(e)4121}, t.prototype.setVolume = function(e) {4122this.SDK.setVolume(e)4123}, t4124}();4125var gt = new mt;4126for (var vt in gt) window.PokiSDK[vt] = gt[vt]4127})()4128})();41294130