Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
EmulatorOS
GitHub Repository: EmulatorOS/attaeht.github.io
Path: blob/main/ehtsite/assets/games/subway/game.js
2251 views
1
! function(e) {
2
var n = {};
3
4
function t(o) {
5
if (n[o]) return n[o].exports;
6
var r = n[o] = {
7
i: o,
8
l: !1,
9
exports: {}
10
};
11
return e[o].call(r.exports, r, r.exports, t), r.l = !0, r.exports
12
}
13
t.m = e, t.c = n, t.d = function(e, n, o) {
14
t.o(e, n) || Object.defineProperty(e, n, {
15
enumerable: !0,
16
get: o
17
})
18
}, t.r = function(e) {
19
"undefined" != typeof Symbol && Symbol.toStringTag && Object.defineProperty(e, Symbol.toStringTag, {
20
value: "Module"
21
}), Object.defineProperty(e, "__esModule", {
22
value: !0
23
})
24
}, t.t = function(e, n) {
25
if (1 & n && (e = t(e)), 8 & n) return e;
26
if (4 & n && "object" == typeof e && e && e.__esModule) return e;
27
var o = Object.create(null);
28
if (t.r(o), Object.defineProperty(o, "default", {
29
enumerable: !0,
30
value: e
31
}), 2 & n && "string" != typeof e)
32
for (var r in e) t.d(o, r, function(n) {
33
return e[n]
34
}.bind(null, r));
35
return o
36
}, t.n = function(e) {
37
var n = e && e.__esModule ? function() {
38
return e.default
39
} : function() {
40
return e
41
};
42
return t.d(n, "a", n), n
43
}, t.o = function(e, n) {
44
return Object.prototype.hasOwnProperty.call(e, n)
45
}, t.p = "", t(t.s = 68)
46
}({
47
68: function(e, n, t) {
48
var o = new(function() {
49
function e() {
50
var e = this;
51
this.queue = [], this.init = function(n) {
52
return void 0 === n && (n = {}), new Promise((function(t, o) {
53
e.enqueue("init", n, t, o)
54
}))
55
}, this.rewardedBreak = function() {
56
return new Promise((function(e) {
57
e(!1)
58
}))
59
}, this.noArguments = function(n) {
60
return function() {
61
e.enqueue(n)
62
}
63
}, this.oneArgument = function(n) {
64
return function(t) {
65
e.enqueue(n, t)
66
}
67
}, this.handleAutoResolvePromise = function() {
68
return new Promise((function(e) {
69
e()
70
}))
71
}, this.handleAutoResolvePromiseObj = function() {
72
return new Promise((function(e) {
73
e()
74
}))
75
}, this.throwNotLoaded = function() {
76
console.debug("PokiSDK is not loaded yet. Not all methods are available.")
77
}
78
}
79
return e.prototype.enqueue = function(e, n, t, o) {
80
var r = {
81
fn: e,
82
options: n,
83
resolveFn: t,
84
rejectFn: o
85
};
86
this.queue.push(r)
87
}, e.prototype.dequeue = function() {
88
for (var e = function() {
89
var e = n.queue.shift(),
90
t = e,
91
o = t.fn,
92
r = t.options;
93
"function" == typeof window.PokiSDK[o] ? (null == e ? void 0 : e.resolveFn) || (null == e ? void 0 : e.rejectFn) ? window.PokiSDK[o](r).then((function() {
94
for (var n = [], t = 0; t < arguments.length; t++) n[t] = arguments[t];
95
"function" == typeof e.resolveFn && e.resolveFn.apply(e, n)
96
})).catch((function() {
97
for (var n = [], t = 0; t < arguments.length; t++) n[t] = arguments[t];
98
"function" == typeof e.rejectFn && e.rejectFn.apply(e, n)
99
})) : void 0 !== (null == e ? void 0 : e.fn) && window.PokiSDK[o](r) : console.error("Cannot execute " + e.fn)
100
}, n = this; this.queue.length > 0;) e()
101
}, e
102
}());
103
window.PokiSDK = {
104
init: o.init,
105
initWithVideoHB: o.init,
106
customEvent: o.throwNotLoaded,
107
commercialBreak: o.handleAutoResolvePromise,
108
rewardedBreak: o.rewardedBreak,
109
displayAd: o.throwNotLoaded,
110
destroyAd: o.throwNotLoaded,
111
getLeaderboard: o.handleAutoResolvePromiseObj
112
}, ["disableProgrammatic", "gameLoadingStart", "gameLoadingFinished", "gameInteractive", "roundStart", "roundEnd", "muteAd"].forEach((function(e) {
113
window.PokiSDK[e] = o.noArguments(e)
114
})), ["setDebug", "gameplayStart", "gameplayStop", "gameLoadingProgress", "happyTime", "setPlayerAge", "togglePlayerAdvertisingConsent", "toggleNonPersonalized", "setConsentString", "logError", "sendHighscore", "setDebugTouchOverlayController"].forEach((function(e) {
115
window.PokiSDK[e] = o.oneArgument(e)
116
}));
117
var r = function() {
118
var e, n = window.pokiSDKVersion;
119
n || (n = (e = RegExp("[?&]" + "ab" + "=([^&]*)").exec(window.location.search)) && decodeURIComponent(e[1].replace(/\+/g, " ")) || "v2");
120
return "./set.js"
121
}(),
122
i = document.createElement("script");
123
i.setAttribute("src", r), i.setAttribute("type", "text/javascript"), i.onload = function() {
124
return o.dequeue()
125
}, document.head.appendChild(i)
126
}
127
});
128