Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ! function(t) {
- var e = {};
- function r(n) {
- if (e[n]) return e[n].exports;
- var o = e[n] = {
- i: n,
- l: !1,
- exports: {}
- };
- return t[n].call(o.exports, o, o.exports, r), o.l = !0, o.exports
- }
- r.m = t, r.c = e, r.d = function(t, e, n) {
- r.o(t, e) || Object.defineProperty(t, e, {
- enumerable: !0,
- get: n
- })
- }, r.r = function(t) {
- "undefined" != typeof Symbol && Symbol.toStringTag && Object.defineProperty(t, Symbol.toStringTag, {
- value: "Module"
- }), Object.defineProperty(t, "__esModule", {
- value: !0
- })
- }, r.t = function(t, e) {
- if (1 & e && (t = r(t)), 8 & e) return t;
- if (4 & e && "object" == typeof t && t && t.__esModule) return t;
- var n = Object.create(null);
- if (r.r(n), Object.defineProperty(n, "default", {
- enumerable: !0,
- value: t
- }), 2 & e && "string" != typeof t)
- for (var o in t) r.d(n, o, function(e) {
- return t[e]
- }.bind(null, o));
- return n
- }, r.n = function(t) {
- var e = t && t.__esModule ? function() {
- return t.default
- } : function() {
- return t
- };
- return r.d(e, "a", e), e
- }, r.o = function(t, e) {
- return Object.prototype.hasOwnProperty.call(t, e)
- }, r.p = "./", r(r.s = 4)
- }([
- /*!***************************************************************************!*\
- !*** ./node_modules/epic-webpack-config/node_modules/promise/lib/core.js ***!
- \***************************************************************************/
- /*! no static exports found */
- /*! all exports used */
- /*! ModuleConcatenation bailout: Module is not an ECMAScript module */
- function(t, e, r) {
- "use strict";
- var n = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(t) {
- return typeof t
- } : function(t) {
- return t && "function" == typeof Symbol && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t
- },
- o = r( /*! asap/raw */ 7);
- function i() {}
- var a = null,
- s = {};
- function u(t) {
- if ("object" !== n(this)) throw new TypeError("Promises must be constructed via new");
- if ("function" != typeof t) throw new TypeError("Promise constructor's argument is not a function");
- this._h = 0, this._i = 0, this._j = null, this._k = null, t !== i && p(t, this)
- }
- function f(t, e) {
- for (; 3 === t._i;) t = t._j;
- if (u._l && u._l(t), 0 === t._i) return 0 === t._h ? (t._h = 1, void(t._k = e)) : 1 === t._h ? (t._h = 2, void(t._k = [t._k, e])) : void t._k.push(e);
- ! function(t, e) {
- o(function() {
- var r = 1 === t._i ? e.onFulfilled : e.onRejected;
- if (null !== r) {
- var n = function(t, e) {
- try {
- return t(e)
- } catch (t) {
- return a = t, s
- }
- }(r, t._j);
- n === s ? l(e.promise, a) : c(e.promise, n)
- } else 1 === t._i ? c(e.promise, t._j) : l(e.promise, t._j)
- })
- }(t, e)
- }
- function c(t, e) {
- if (e === t) return l(t, new TypeError("A promise cannot be resolved with itself."));
- if (e && ("object" === (void 0 === e ? "undefined" : n(e)) || "function" == typeof e)) {
- var r = function(t) {
- try {
- return t.then
- } catch (t) {
- return a = t, s
- }
- }(e);
- if (r === s) return l(t, a);
- if (r === t.then && e instanceof u) return t._i = 3, t._j = e, void d(t);
- if ("function" == typeof r) return void p(r.bind(e), t)
- }
- t._i = 1, t._j = e, d(t)
- }
- function l(t, e) {
- t._i = 2, t._j = e, u._m && u._m(t, e), d(t)
- }
- function d(t) {
- if (1 === t._h && (f(t, t._k), t._k = null), 2 === t._h) {
- for (var e = 0; e < t._k.length; e++) f(t, t._k[e]);
- t._k = null
- }
- }
- function h(t, e, r) {
- this.onFulfilled = "function" == typeof t ? t : null, this.onRejected = "function" == typeof e ? e : null, this.promise = r
- }
- function p(t, e) {
- var r = !1,
- n = function(t, e, r) {
- try {
- t(e, r)
- } catch (t) {
- return a = t, s
- }
- }(t, function(t) {
- r || (r = !0, c(e, t))
- }, function(t) {
- r || (r = !0, l(e, t))
- });
- r || n !== s || (r = !0, l(e, a))
- }
- t.exports = u, u._l = null, u._m = null, u._n = i, u.prototype.then = function(t, e) {
- if (this.constructor !== u) return function(t, e, r) {
- return new t.constructor(function(n, o) {
- var a = new u(i);
- a.then(n, o), f(t, new h(e, r, a))
- })
- }(this, t, e);
- var r = new u(i);
- return f(this, new h(t, e, r)), r
- }
- },
- /*!***********************************!*\
- !*** (webpack)/buildin/global.js ***!
- \***********************************/
- /*! no static exports found */
- /*! all exports used */
- /*! ModuleConcatenation bailout: Module is not an ECMAScript module */
- function(t, e) {
- var r;
- r = function() {
- return this
- }();
- try {
- r = r || new Function("return this")()
- } catch (t) {
- "object" == typeof window && (r = window)
- }
- t.exports = r
- },
- /*!*************************************************!*\
- !*** ./app/scripts/client/classes/BaseEvent.js ***!
- \*************************************************/
- /*! no static exports found */
- /*! all exports used */
- /*! ModuleConcatenation bailout: Module is not an ECMAScript module */
- function(t, e, r) {
- "use strict";
- Object.defineProperty(e, "__esModule", {
- value: !0
- }), e.default = void 0;
- var n, o = r( /*! window-or-global */ 3),
- i = (n = o) && n.__esModule ? n : {
- default: n
- };
- var a = "/track.png",
- s = function() {
- function t(e) {
- ! function(t, e) {
- if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function")
- }(this, t), this.BASE_URL = e, this.TRACKING_URL = this.BASE_URL + a
- }
- return t.prototype.track = function(t, e) {
- var r = void 0 === i.default.navigator.doNotTrack ? i.default.doNotTrack : i.default.navigator.doNotTrack,
- n = t || {};
- if (1 !== r && "1" !== r) {
- n.referringUrl = document.referrer ? document.referrer : "none", n.now = Date.now(), n.eventType = this.eventType;
- var o = new Image;
- o.src = this.buildUrl(n), e && (o.onload = e)
- }
- }, t.prototype.buildUrl = function(t) {
- var e = "?";
- for (var r in t) t.hasOwnProperty(r) && (e = "?" === e ? "" + e + r + "=" + encodeURIComponent(t[r]) : e + "&" + r + "=" + encodeURIComponent(t[r]));
- return this.TRACKING_URL + e
- }, t
- }();
- e.default = s
- },
- /*!****************************************************!*\
- !*** ./node_modules/window-or-global/lib/index.js ***!
- \****************************************************/
- /*! no static exports found */
- /*! all exports used */
- /*! ModuleConcatenation bailout: Module is not an ECMAScript module */
- function(t, e, r) {
- "use strict";
- (function(e) {
- t.exports = "object" == typeof self && self.self === self && self || "object" == typeof e && e.global === e && e || this
- }).call(this, r( /*! ./../../webpack/buildin/global.js */ 1))
- },
- /*!**********************************************************************************************!*\
- !*** multi ./node_modules/epic-webpack-config/utils/polyfills.js ./app/scripts/client/index ***!
- \**********************************************************************************************/
- /*! no static exports found */
- /*! all exports used */
- /*! ModuleConcatenation bailout: Module is not an ECMAScript module */
- function(t, e, r) {
- r( /*! /Tracking/node/node_modules/epic-webpack-config/utils/polyfills.js */ 5), t.exports = r( /*! ./app/scripts/client/index */ 11)
- },
- /*!*************************************************************!*\
- !*** ./node_modules/epic-webpack-config/utils/polyfills.js ***!
- \*************************************************************/
- /*! no static exports found */
- /*! all exports used */
- /*! ModuleConcatenation bailout: Module is not an ECMAScript module */
- function(t, e, r) {
- "use strict";
- "undefined" == typeof Promise && (r( /*! promise/lib/rejection-tracking */ 6).enable(), window.Promise = r( /*! promise/lib/es6-extensions.js */ 8)), r( /*! whatwg-fetch */ 9), Object.assign = r( /*! object-assign */ 10)
- },
- /*!*****************************************************************************************!*\
- !*** ./node_modules/epic-webpack-config/node_modules/promise/lib/rejection-tracking.js ***!
- \*****************************************************************************************/
- /*! no static exports found */
- /*! all exports used */
- /*! ModuleConcatenation bailout: Module is not an ECMAScript module */
- function(t, e, r) {
- "use strict";
- var n = r( /*! ./core */ 0),
- o = [ReferenceError, TypeError, RangeError],
- i = !1;
- function a() {
- i = !1, n._l = null, n._m = null
- }
- function s(t, e) {
- return e.some(function(e) {
- return t instanceof e
- })
- }
- e.disable = a, e.enable = function(t) {
- t = t || {}, i && a();
- i = !0;
- var e = 0,
- r = 0,
- u = {};
- function f(e) {
- (t.allRejections || s(u[e].error, t.whitelist || o)) && (u[e].displayId = r++, t.onUnhandled ? (u[e].logged = !0, t.onUnhandled(u[e].displayId, u[e].error)) : (u[e].logged = !0, function(t, e) {
- console.warn("Possible Unhandled Promise Rejection (id: " + t + "):"), ((e && (e.stack || e)) + "").split("\n").forEach(function(t) {
- console.warn(" " + t)
- })
- }(u[e].displayId, u[e].error)))
- }
- n._l = function(e) {
- var r;
- 2 === e._i && u[e._o] && (u[e._o].logged ? (r = e._o, u[r].logged && (t.onHandled ? t.onHandled(u[r].displayId, u[r].error) : u[r].onUnhandled || (console.warn("Promise Rejection Handled (id: " + u[r].displayId + "):"), console.warn(' This means you can ignore any previous messages of the form "Possible Unhandled Promise Rejection" with id ' + u[r].displayId + ".")))) : clearTimeout(u[e._o].timeout), delete u[e._o])
- }, n._m = function(t, r) {
- 0 === t._h && (t._o = e++, u[t._o] = {
- displayId: null,
- error: r,
- timeout: setTimeout(f.bind(null, t._o), s(r, o) ? 100 : 2e3),
- logged: !1
- })
- }
- }
- },
- /*!******************************************!*\
- !*** ./node_modules/asap/browser-raw.js ***!
- \******************************************/
- /*! no static exports found */
- /*! all exports used */
- /*! ModuleConcatenation bailout: Module is not an ECMAScript module */
- function(t, e, r) {
- "use strict";
- (function(e) {
- function r(t) {
- o.length || (n(), !0), o[o.length] = t
- }
- t.exports = r;
- var n, o = [],
- i = 0,
- a = 1024;
- function s() {
- for (; i < o.length;) {
- var t = i;
- if (i += 1, o[t].call(), i > a) {
- for (var e = 0, r = o.length - i; e < r; e++) o[e] = o[e + i];
- o.length -= i, i = 0
- }
- }
- o.length = 0, i = 0, !1
- }
- var u, f, c, l = void 0 !== e ? e : self,
- d = l.MutationObserver || l.WebKitMutationObserver;
- function h(t) {
- return function() {
- var e = setTimeout(n, 0),
- r = setInterval(n, 50);
- function n() {
- clearTimeout(e), clearInterval(r), t()
- }
- }
- }
- "function" == typeof d ? (u = 1, f = new d(s), c = document.createTextNode(""), f.observe(c, {
- characterData: !0
- }), n = function() {
- u = -u, c.data = u
- }) : n = h(s), r.requestFlush = n, r.makeRequestCallFromTimer = h
- }).call(this, r( /*! ./../webpack/buildin/global.js */ 1))
- },
- /*!*************************************************************************************!*\
- !*** ./node_modules/epic-webpack-config/node_modules/promise/lib/es6-extensions.js ***!
- \*************************************************************************************/
- /*! no static exports found */
- /*! all exports used */
- /*! ModuleConcatenation bailout: Module is not an ECMAScript module */
- function(t, e, r) {
- "use strict";
- var n = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(t) {
- return typeof t
- } : function(t) {
- return t && "function" == typeof Symbol && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t
- },
- o = r( /*! ./core.js */ 0);
- t.exports = o;
- var i = l(!0),
- a = l(!1),
- s = l(null),
- u = l(void 0),
- f = l(0),
- c = l("");
- function l(t) {
- var e = new o(o._n);
- return e._i = 1, e._j = t, e
- }
- o.resolve = function(t) {
- if (t instanceof o) return t;
- if (null === t) return s;
- if (void 0 === t) return u;
- if (!0 === t) return i;
- if (!1 === t) return a;
- if (0 === t) return f;
- if ("" === t) return c;
- if ("object" === (void 0 === t ? "undefined" : n(t)) || "function" == typeof t) try {
- var e = t.then;
- if ("function" == typeof e) return new o(e.bind(t))
- } catch (t) {
- return new o(function(e, r) {
- r(t)
- })
- }
- return l(t)
- }, o.all = function(t) {
- var e = Array.prototype.slice.call(t);
- return new o(function(t, r) {
- if (0 === e.length) return t([]);
- var i = e.length;
- function a(s, u) {
- if (u && ("object" === (void 0 === u ? "undefined" : n(u)) || "function" == typeof u)) {
- if (u instanceof o && u.then === o.prototype.then) {
- for (; 3 === u._i;) u = u._j;
- return 1 === u._i ? a(s, u._j) : (2 === u._i && r(u._j), void u.then(function(t) {
- a(s, t)
- }, r))
- }
- var f = u.then;
- if ("function" == typeof f) return void new o(f.bind(u)).then(function(t) {
- a(s, t)
- }, r)
- }
- e[s] = u, 0 == --i && t(e)
- }
- for (var s = 0; s < e.length; s++) a(s, e[s])
- })
- }, o.reject = function(t) {
- return new o(function(e, r) {
- r(t)
- })
- }, o.race = function(t) {
- return new o(function(e, r) {
- t.forEach(function(t) {
- o.resolve(t).then(e, r)
- })
- })
- }, o.prototype.catch = function(t) {
- return this.then(null, t)
- }
- },
- /*!********************************************!*\
- !*** ./node_modules/whatwg-fetch/fetch.js ***!
- \********************************************/
- /*! no static exports found */
- /*! all exports used */
- /*! ModuleConcatenation bailout: Module is not an ECMAScript module */
- function(t, e) {
- ! function(t) {
- "use strict";
- if (!t.fetch) {
- var e = {
- searchParams: "URLSearchParams" in t,
- iterable: "Symbol" in t && "iterator" in Symbol,
- blob: "FileReader" in t && "Blob" in t && function() {
- try {
- return new Blob, !0
- } catch (t) {
- return !1
- }
- }(),
- formData: "FormData" in t,
- arrayBuffer: "ArrayBuffer" in t
- };
- if (e.arrayBuffer) var r = ["[object Int8Array]", "[object Uint8Array]", "[object Uint8ClampedArray]", "[object Int16Array]", "[object Uint16Array]", "[object Int32Array]", "[object Uint32Array]", "[object Float32Array]", "[object Float64Array]"],
- n = function(t) {
- return t && DataView.prototype.isPrototypeOf(t)
- },
- o = ArrayBuffer.isView || function(t) {
- return t && r.indexOf(Object.prototype.toString.call(t)) > -1
- };
- c.prototype.append = function(t, e) {
- t = s(t), e = u(e);
- var r = this.map[t];
- this.map[t] = r ? r + "," + e : e
- }, c.prototype.delete = function(t) {
- delete this.map[s(t)]
- }, c.prototype.get = function(t) {
- return t = s(t), this.has(t) ? this.map[t] : null
- }, c.prototype.has = function(t) {
- return this.map.hasOwnProperty(s(t))
- }, c.prototype.set = function(t, e) {
- this.map[s(t)] = u(e)
- }, c.prototype.forEach = function(t, e) {
- for (var r in this.map) this.map.hasOwnProperty(r) && t.call(e, this.map[r], r, this)
- }, c.prototype.keys = function() {
- var t = [];
- return this.forEach(function(e, r) {
- t.push(r)
- }), f(t)
- }, c.prototype.values = function() {
- var t = [];
- return this.forEach(function(e) {
- t.push(e)
- }), f(t)
- }, c.prototype.entries = function() {
- var t = [];
- return this.forEach(function(e, r) {
- t.push([r, e])
- }), f(t)
- }, e.iterable && (c.prototype[Symbol.iterator] = c.prototype.entries);
- var i = ["DELETE", "GET", "HEAD", "OPTIONS", "POST", "PUT"];
- b.prototype.clone = function() {
- return new b(this, {
- body: this._bodyInit
- })
- }, y.call(b.prototype), y.call(w.prototype), w.prototype.clone = function() {
- return new w(this._bodyInit, {
- status: this.status,
- statusText: this.statusText,
- headers: new c(this.headers),
- url: this.url
- })
- }, w.error = function() {
- var t = new w(null, {
- status: 0,
- statusText: ""
- });
- return t.type = "error", t
- };
- var a = [301, 302, 303, 307, 308];
- w.redirect = function(t, e) {
- if (-1 === a.indexOf(e)) throw new RangeError("Invalid status code");
- return new w(null, {
- status: e,
- headers: {
- location: t
- }
- })
- }, t.Headers = c, t.Request = b, t.Response = w, t.fetch = function(t, r) {
- return new Promise(function(n, o) {
- var i = new b(t, r),
- a = new XMLHttpRequest;
- a.onload = function() {
- var t, e, r = {
- status: a.status,
- statusText: a.statusText,
- headers: (t = a.getAllResponseHeaders() || "", e = new c, t.replace(/\r?\n[\t ]+/g, " ").split(/\r?\n/).forEach(function(t) {
- var r = t.split(":"),
- n = r.shift().trim();
- if (n) {
- var o = r.join(":").trim();
- e.append(n, o)
- }
- }), e)
- };
- r.url = "responseURL" in a ? a.responseURL : r.headers.get("X-Request-URL");
- var o = "response" in a ? a.response : a.responseText;
- n(new w(o, r))
- }, a.onerror = function() {
- o(new TypeError("Network request failed"))
- }, a.ontimeout = function() {
- o(new TypeError("Network request failed"))
- }, a.open(i.method, i.url, !0), "include" === i.credentials ? a.withCredentials = !0 : "omit" === i.credentials && (a.withCredentials = !1), "responseType" in a && e.blob && (a.responseType = "blob"), i.headers.forEach(function(t, e) {
- a.setRequestHeader(e, t)
- }), a.send(void 0 === i._bodyInit ? null : i._bodyInit)
- })
- }, t.fetch.polyfill = !0
- }
- function s(t) {
- if ("string" != typeof t && (t = String(t)), /[^a-z0-9\-#$%&'*+.\^_`|~]/i.test(t)) throw new TypeError("Invalid character in header field name");
- return t.toLowerCase()
- }
- function u(t) {
- return "string" != typeof t && (t = String(t)), t
- }
- function f(t) {
- var r = {
- next: function() {
- var e = t.shift();
- return {
- done: void 0 === e,
- value: e
- }
- }
- };
- return e.iterable && (r[Symbol.iterator] = function() {
- return r
- }), r
- }
- function c(t) {
- this.map = {}, t instanceof c ? t.forEach(function(t, e) {
- this.append(e, t)
- }, this) : Array.isArray(t) ? t.forEach(function(t) {
- this.append(t[0], t[1])
- }, this) : t && Object.getOwnPropertyNames(t).forEach(function(e) {
- this.append(e, t[e])
- }, this)
- }
- function l(t) {
- if (t.bodyUsed) return Promise.reject(new TypeError("Already read"));
- t.bodyUsed = !0
- }
- function d(t) {
- return new Promise(function(e, r) {
- t.onload = function() {
- e(t.result)
- }, t.onerror = function() {
- r(t.error)
- }
- })
- }
- function h(t) {
- var e = new FileReader,
- r = d(e);
- return e.readAsArrayBuffer(t), r
- }
- function p(t) {
- if (t.slice) return t.slice(0);
- var e = new Uint8Array(t.byteLength);
- return e.set(new Uint8Array(t)), e.buffer
- }
- function y() {
- return this.bodyUsed = !1, this._initBody = function(t) {
- if (this._bodyInit = t, t)
- if ("string" == typeof t) this._bodyText = t;
- else if (e.blob && Blob.prototype.isPrototypeOf(t)) this._bodyBlob = t;
- else if (e.formData && FormData.prototype.isPrototypeOf(t)) this._bodyFormData = t;
- else if (e.searchParams && URLSearchParams.prototype.isPrototypeOf(t)) this._bodyText = t.toString();
- else if (e.arrayBuffer && e.blob && n(t)) this._bodyArrayBuffer = p(t.buffer), this._bodyInit = new Blob([this._bodyArrayBuffer]);
- else {
- if (!e.arrayBuffer || !ArrayBuffer.prototype.isPrototypeOf(t) && !o(t)) throw new Error("unsupported BodyInit type");
- this._bodyArrayBuffer = p(t)
- } else this._bodyText = "";
- this.headers.get("content-type") || ("string" == typeof t ? this.headers.set("content-type", "text/plain;charset=UTF-8") : this._bodyBlob && this._bodyBlob.type ? this.headers.set("content-type", this._bodyBlob.type) : e.searchParams && URLSearchParams.prototype.isPrototypeOf(t) && this.headers.set("content-type", "application/x-www-form-urlencoded;charset=UTF-8"))
- }, e.blob && (this.blob = function() {
- var t = l(this);
- if (t) return t;
- if (this._bodyBlob) return Promise.resolve(this._bodyBlob);
- if (this._bodyArrayBuffer) return Promise.resolve(new Blob([this._bodyArrayBuffer]));
- if (this._bodyFormData) throw new Error("could not read FormData body as blob");
- return Promise.resolve(new Blob([this._bodyText]))
- }, this.arrayBuffer = function() {
- return this._bodyArrayBuffer ? l(this) || Promise.resolve(this._bodyArrayBuffer) : this.blob().then(h)
- }), this.text = function() {
- var t, e, r, n = l(this);
- if (n) return n;
- if (this._bodyBlob) return t = this._bodyBlob, e = new FileReader, r = d(e), e.readAsText(t), r;
- if (this._bodyArrayBuffer) return Promise.resolve(function(t) {
- for (var e = new Uint8Array(t), r = new Array(e.length), n = 0; n < e.length; n++) r[n] = String.fromCharCode(e[n]);
- return r.join("")
- }(this._bodyArrayBuffer));
- if (this._bodyFormData) throw new Error("could not read FormData body as text");
- return Promise.resolve(this._bodyText)
- }, e.formData && (this.formData = function() {
- return this.text().then(v)
- }), this.json = function() {
- return this.text().then(JSON.parse)
- }, this
- }
- function b(t, e) {
- var r, n, o = (e = e || {}).body;
- if (t instanceof b) {
- if (t.bodyUsed) throw new TypeError("Already read");
- this.url = t.url, this.credentials = t.credentials, e.headers || (this.headers = new c(t.headers)), this.method = t.method, this.mode = t.mode, o || null == t._bodyInit || (o = t._bodyInit, t.bodyUsed = !0)
- } else this.url = String(t);
- if (this.credentials = e.credentials || this.credentials || "omit", !e.headers && this.headers || (this.headers = new c(e.headers)), this.method = (r = e.method || this.method || "GET", n = r.toUpperCase(), i.indexOf(n) > -1 ? n : r), this.mode = e.mode || this.mode || null, this.referrer = null, ("GET" === this.method || "HEAD" === this.method) && o) throw new TypeError("Body not allowed for GET or HEAD requests");
- this._initBody(o)
- }
- function v(t) {
- var e = new FormData;
- return t.trim().split("&").forEach(function(t) {
- if (t) {
- var r = t.split("="),
- n = r.shift().replace(/\+/g, " "),
- o = r.join("=").replace(/\+/g, " ");
- e.append(decodeURIComponent(n), decodeURIComponent(o))
- }
- }), e
- }
- function w(t, e) {
- e || (e = {}), this.type = "default", this.status = void 0 === e.status ? 200 : e.status, this.ok = this.status >= 200 && this.status < 300, this.statusText = "statusText" in e ? e.statusText : "OK", this.headers = new c(e.headers), this.url = e.url || "", this._initBody(t)
- }
- }("undefined" != typeof self ? self : this)
- },
- /*!*********************************************!*\
- !*** ./node_modules/object-assign/index.js ***!
- \*********************************************/
- /*! no static exports found */
- /*! all exports used */
- /*! ModuleConcatenation bailout: Module is not an ECMAScript module */
- function(t, e, r) {
- "use strict";
- /*
- object-assign
- (c) Sindre Sorhus
- @license MIT
- */
- var n = Object.getOwnPropertySymbols,
- o = Object.prototype.hasOwnProperty,
- i = Object.prototype.propertyIsEnumerable;
- t.exports = function() {
- try {
- if (!Object.assign) return !1;
- var t = new String("abc");
- if (t[5] = "de", "5" === Object.getOwnPropertyNames(t)[0]) return !1;
- for (var e = {}, r = 0; r < 10; r++) e["_" + String.fromCharCode(r)] = r;
- if ("0123456789" !== Object.getOwnPropertyNames(e).map(function(t) {
- return e[t]
- }).join("")) return !1;
- var n = {};
- return "abcdefghijklmnopqrst".split("").forEach(function(t) {
- n[t] = t
- }), "abcdefghijklmnopqrst" === Object.keys(Object.assign({}, n)).join("")
- } catch (t) {
- return !1
- }
- }() ? Object.assign : function(t, e) {
- for (var r, a, s = function(t) {
- if (null == t) throw new TypeError("Object.assign cannot be called with null or undefined");
- return Object(t)
- }(t), u = 1; u < arguments.length; u++) {
- for (var f in r = Object(arguments[u])) o.call(r, f) && (s[f] = r[f]);
- if (n) {
- a = n(r);
- for (var c = 0; c < a.length; c++) i.call(r, a[c]) && (s[a[c]] = r[a[c]])
- }
- }
- return s
- }
- },
- /*!*************************************!*\
- !*** ./app/scripts/client/index.js ***!
- \*************************************/
- /*! no static exports found */
- /*! all exports used */
- /*! ModuleConcatenation bailout: Module is not an ECMAScript module */
- function(t, e, r) {
- "use strict";
- var n, o = r( /*! ./bootstrap */ 12);
- (0, ((n = o) && n.__esModule ? n : {
- default: n
- }).default)()
- },
- /*!*****************************************!*\
- !*** ./app/scripts/client/bootstrap.js ***!
- \*****************************************/
- /*! no static exports found */
- /*! all exports used */
- /*! ModuleConcatenation bailout: Module is not an ECMAScript module */
- function(t, e, r) {
- "use strict";
- Object.defineProperty(e, "__esModule", {
- value: !0
- });
- var n = a(r( /*! ./classes/TrackingPixel */ 13)),
- o = a(r( /*! ./utils/url */ 16)),
- i = a(r( /*! window-or-global */ 3));
- function a(t) {
- return t && t.__esModule ? t : {
- default: t
- }
- }
- var s = function() {
- var t = i.default.__tracking_base || (0, o.default)();
- if (!t) throw new Error("Failed to find trackingUrl");
- i.default._epicTracking ? console.warn("Duplicate tracking pixel found in global") : (i.default._epicTracking = new n.default(t), i.default._epicTracking.trackEvent("PageView"))
- };
- e.default = function() {
- var t = document.readyState;
- "complete" === t || "loaded" === t || "interactive" === t ? s() : document.addEventListener("DOMContentLoaded", function() {
- s()
- })
- }
- },
- /*!*****************************************************!*\
- !*** ./app/scripts/client/classes/TrackingPixel.js ***!
- \*****************************************************/
- /*! no static exports found */
- /*! all exports used */
- /*! ModuleConcatenation bailout: Module is not an ECMAScript module */
- function(t, e, r) {
- "use strict";
- Object.defineProperty(e, "__esModule", {
- value: !0
- }), e.default = void 0;
- var n = i(r( /*! ./PageViewEvent */ 14)),
- o = i(r( /*! ./InteractionEvent */ 15));
- function i(t) {
- return t && t.__esModule ? t : {
- default: t
- }
- }
- var a = function() {
- function t(e) {
- ! function(t, e) {
- if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function")
- }(this, t), this.pageViewEvent = new n.default(e), this.interactionEvent = new o.default(e), this.registerHistoryEvent()
- }
- return t.prototype.trackEvent = function() {
- var t = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : "PageView",
- e = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {},
- r = arguments[2];
- switch (t) {
- case "PageView":
- this.pageViewEvent.track(e, r);
- break;
- case "Interaction":
- this.interactionEvent.track(e, r);
- break;
- default:
- console.error("Event Type " + t + " is not supported")
- }
- }, t.prototype.registerHistoryEvent = function() {
- var t = this,
- e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : window.history || {};
- try {
- var r = e.pushState,
- n = e.replaceState;
- window.onpopstate = function() {
- t.trackEvent()
- }, "function" == typeof e.pushState ? e.pushState = function() {
- for (var n = arguments.length, o = Array(n), i = 0; i < n; i++) o[i] = arguments[i];
- return t.trackEvent(), r.apply(e, o)
- } : console.warn("Browser doesn't support history.pushState, fail to initiate history change handler"), "function" == typeof e.replaceState ? e.replaceState = function() {
- for (var r = arguments.length, o = Array(r), i = 0; i < r; i++) o[i] = arguments[i];
- return t.trackEvent(), n.apply(e, o)
- } : console.warn("Browser doesn't support history.replaceState, fail to initiate history change handler")
- } catch (t) {
- console.warn("Unable to initiate browser history handler", t)
- }
- }, t
- }();
- e.default = a
- },
- /*!*****************************************************!*\
- !*** ./app/scripts/client/classes/PageViewEvent.js ***!
- \*****************************************************/
- /*! no static exports found */
- /*! all exports used */
- /*! ModuleConcatenation bailout: Module is not an ECMAScript module */
- function(t, e, r) {
- "use strict";
- Object.defineProperty(e, "__esModule", {
- value: !0
- }), e.default = void 0;
- var n, o = r( /*! ./BaseEvent */ 2);
- function i(t, e) {
- if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e);
- t.prototype = Object.create(e && e.prototype, {
- constructor: {
- value: t,
- enumerable: !1,
- writable: !0,
- configurable: !0
- }
- }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : function(t, e) {
- for (var r = Object.getOwnPropertyNames(e), n = 0; n < r.length; n++) {
- var o = r[n],
- i = Object.getOwnPropertyDescriptor(e, o);
- i && i.configurable && void 0 === t[o] && Object.defineProperty(t, o, i)
- }
- }(t, e))
- }
- var a = function(t) {
- function e(r) {
- ! function(t, e) {
- if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function")
- }(this, e);
- var n = function(t, e) {
- if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
- return !e || "object" != typeof e && "function" != typeof e ? t : e
- }(this, t.call(this, r));
- return n.eventType = "pageView", n
- }
- return i(e, t), e
- }(((n = o) && n.__esModule ? n : {
- default: n
- }).default);
- e.default = a
- },
- /*!********************************************************!*\
- !*** ./app/scripts/client/classes/InteractionEvent.js ***!
- \********************************************************/
- /*! no static exports found */
- /*! all exports used */
- /*! ModuleConcatenation bailout: Module is not an ECMAScript module */
- function(t, e, r) {
- "use strict";
- Object.defineProperty(e, "__esModule", {
- value: !0
- }), e.default = void 0;
- var n, o = r( /*! ./BaseEvent */ 2);
- function i(t, e) {
- if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e);
- t.prototype = Object.create(e && e.prototype, {
- constructor: {
- value: t,
- enumerable: !1,
- writable: !0,
- configurable: !0
- }
- }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : function(t, e) {
- for (var r = Object.getOwnPropertyNames(e), n = 0; n < r.length; n++) {
- var o = r[n],
- i = Object.getOwnPropertyDescriptor(e, o);
- i && i.configurable && void 0 === t[o] && Object.defineProperty(t, o, i)
- }
- }(t, e))
- }
- var a = function(t) {
- function e(r) {
- ! function(t, e) {
- if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function")
- }(this, e);
- var n = function(t, e) {
- if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
- return !e || "object" != typeof e && "function" != typeof e ? t : e
- }(this, t.call(this, r));
- return n.eventType = "interaction", n
- }
- return i(e, t), e.prototype.track = function(e, r) {
- var n = e.eventCategory,
- o = e.eventAction,
- i = e.interactionType;
- n && o && i ? t.prototype.track.call(this, e, r) : console.error("eventCategory or eventAction or interactionType is not given, cannot fire a tracking event")
- }, e
- }(((n = o) && n.__esModule ? n : {
- default: n
- }).default);
- e.default = a
- },
- /*!*****************************************!*\
- !*** ./app/scripts/client/utils/url.js ***!
- \*****************************************/
- /*! no static exports found */
- /*! all exports used */
- /*! ModuleConcatenation bailout: Module is not an ECMAScript module */
- function(t, e, r) {
- "use strict";
- Object.defineProperty(e, "__esModule", {
- value: !0
- });
- e.default = function() {
- var t = null;
- try {
- var e = document.scripts,
- r = /^(http|https)?(:\/\/)?tracking.(epicgames|unrealengine).*\/tracking\.js/,
- n = !0,
- o = !1,
- i = void 0;
- try {
- for (var a, s = e[Symbol.iterator](); !(n = (a = s.next()).done); n = !0) {
- var u = a.value.src || null;
- u && r.test(u) && (t = new URL(u).origin)
- }
- } catch (t) {
- o = !0, i = t
- } finally {
- try {
- !n && s.return && s.return()
- } finally {
- if (o) throw i
- }
- }
- } catch (t) {
- console.error("Failed to find baseUrl", t)
- }
- return t
- }
- }
- ]);
- //# sourceMappingURL=tracking.tracking-site.js.map
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement