Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- webpackJsonp([0], [, function(t, e, n) {
- t.exports = n.p + "images/sparkle.png?id=17d316c7"
- }, function(t, e) {
- t.exports = function(t, e, n, i, o) {
- var s, r = t = t || {},
- a = typeof t.default;
- "object" !== a && "function" !== a || (s = t, r = t.default);
- var l = "function" == typeof r ? r.options : r;
- e && (l.render = e.render, l.staticRenderFns = e.staticRenderFns), i && (l._scopeId = i);
- var c;
- if (o ? (c = function(t) {
- t = t || this.$vnode && this.$vnode.ssrContext || this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext, t || "undefined" == typeof __VUE_SSR_CONTEXT__ || (t = __VUE_SSR_CONTEXT__), n && n.call(this, t), t && t._registeredComponents && t._registeredComponents.add(o)
- }, l._ssrRegister = c) : n && (c = n), c) {
- var u = l.functional,
- h = u ? l.render : l.beforeCreate;
- u ? l.render = function(t, e) {
- return c.call(e), h(t, e)
- } : l.beforeCreate = h ? [].concat(h, c) : [c]
- }
- return {
- esModule: s,
- exports: r,
- options: l
- }
- }
- }, , function(t, e, n) {
- "use strict";
- function i() {
- var t = new Date;
- return t.setTime(t.getTime() - a), {
- bits: {
- session: {
- updateTime: t,
- value: null
- },
- week: {
- updateTime: t,
- value: null
- },
- month: {
- updateTime: t,
- value: null
- },
- all: {
- updateTime: t,
- value: null
- }
- },
- loyalty: {
- week: {
- updateTime: t,
- value: null
- },
- month: {
- updateTime: t,
- value: null
- },
- all: {
- updateTime: t,
- value: null
- }
- },
- subs: {
- updateTime: t,
- value: null
- },
- subgift: {
- session: {
- updateTime: t,
- value: null
- },
- week: {
- updateTime: t,
- value: null
- },
- month: {
- updateTime: t,
- value: null
- },
- all: {
- updateTime: t,
- value: null
- }
- }
- }
- }
- Object.defineProperty(e, "__esModule", {
- value: !0
- });
- var o = n(3),
- s = n(5);
- o.default.use(s.a);
- var r = "https://xt.streamlabs.com/api/twitch-extensions/v1/leaderboard",
- a = 6e4;
- e.default = o.default.extend({
- name: "leaderboard",
- template: "#leaderboard__template",
- data: function() {
- return {
- period: "month",
- activeLb: "bits",
- leaderboards: null,
- leaderboardCache: i(),
- settings: {
- theme: "day",
- tab: "bits",
- period: "month",
- maxItems: 10,
- cheers: !0,
- loyalty: !0,
- subs: !0,
- subgift: !0,
- loyaltyOnboarded: !1,
- loyaltyPointsName: "points",
- main_background_color: "",
- rank_wrapper_background_color: "",
- text_color: "",
- title_color: "",
- font: ""
- },
- rowBackground: "linear-gradient(to right, rgba(248,250,251,.9), rgba(248,250,251,1))",
- loading: !1,
- thumbnails: null,
- channelId: null,
- clientId: null,
- token: null,
- partner: !1,
- loyaltyUrl: null,
- error: !1,
- UP: 1,
- SAME: 0,
- DOWN: -1
- }
- },
- created: function() {
- var t = this;
- window.Twitch && window.Twitch.ext && window.Twitch.ext.onAuthorized(function(e) {
- var n = e.channelId,
- i = e.clientId,
- o = e.token,
- s = e.userId;
- t.channelId = n, t.clientId = i, t.token = o, t.userId = s;
- var l = {
- headers: {
- "Client-ID": t.clientId,
- Accept: "application/vnd.twitchtv.v5+json"
- }
- },
- c = {
- headers: {
- Authorization: "Bearer " + o
- }
- };
- new Promise(function(e, i) {
- t.$http.get(r + "/user/twitch/" + n, c).then(function(n) {
- try {
- 200 !== n.status && i(), t.loyaltyUrl = "https://streamlabs.com/" + n.body.name + "#/loyalty/leaderboard", e()
- } catch (t) {
- i(t)
- }
- })
- }), Promise.all([, new Promise(function(e, i) {
- t.$http.get("https://api.twitch.tv/kraken/channels/" + n, l).then(function(n) {
- try {
- 200 !== n.status && i(), t.partner = "affiliate" === n.body.broadcaster_type || "partner" === n.body.broadcaster_type, e()
- } catch (t) {
- i(t)
- }
- })
- }), new Promise(function(e, i) {
- t.$http.get("https://xt.streamlabs.com/api/v5/twitch-extensions/leaderboard/" + n + "/settings", c).then(function(n) {
- try {
- 200 !== n.status && i(n.status);
- var o = n.body;
- Object.keys(t.settings).forEach(function(e) {
- o[e] && (t.settings[e] = o[e])
- }), t.settings.cheers = "true" == t.settings.cheers, t.settings.loyalty = "true" == t.settings.loyalty, t.settings.subs = "true" == t.settings.subs, t.settings.subgift = "true" == t.settings.subgift, t.activeLb = t.settings.tab, t.period = t.settings.period, "null" !== t.settings.font && "" !== t.settings.font && t.loadFont(), e()
- } catch (t) {
- i(t)
- }
- })
- })]).then(function() {
- t.partner || "bits" !== t.settings.tab || (t.activeLb = "loyalty");
- var e = function() {
- this.fetchData(!0)
- };
- t.$watch("activeLb", e), t.$watch("period", e), t.fetchData(!0), setInterval(t.fetchData, a)
- }).catch(function(e) {
- t.error = !0
- })
- })
- },
- computed: {
- hasData: function() {
- return !this.loading && this.leaderboards && this.leaderboards.length > 0
- }
- },
- mounted: function() {
- this.watchScroll()
- },
- methods: {
- addRankChanges: function(t, e) {
- for (var n = t.map(function(t) {
- return t.username
- }), i = e.map(function(t) {
- return t.username
- }), s = 0; s < n.length; s++) {
- var r = n[s],
- a = i.indexOf(r);
- t[s].change = r > a || -1 === r ? o.default.UP : r < a ? o.default.DOWN : o.default.SAME
- }
- },
- fetchData: function() {
- var t = arguments.length > 0 && void 0 !== arguments[0] && arguments[0];
- this.loading = t;
- var e = new Date,
- n = null;
- "loyalty" === this.activeLb.toLowerCase() && "session" === this.period.toLowerCase() && (this.period = "month"), n = "subs" === this.activeLb ? this.leaderboardCache[this.activeLb] : this.leaderboardCache[this.activeLb][this.period];
- e.getTime(), n.updateTime.getTime();
- if (e.getTime() - n.updateTime.getTime() > a) {
- var i = r + "/" + this.channelId + "/" + this.activeLb;
- "subs" !== this.activeLb && (i += "/" + this.period), this.$http.get(i).then(function(t) {
- this.thumbnails = t.body.new.thumbnails;
- var n = t.body.new.data,
- i = t.body.old.data;
- this.addRankChanges(n, i), this.leaderboardCache[this.activeLb][this.period] = {
- value: n,
- updateTime: e
- }, this.leaderboards = n, this.loading = !1
- })
- } else this.leaderboards = n.value, this.loading = !1;
- document.querySelectorAll(".lb__nav-bot")[0].classList.add("hideFadeAll")
- },
- channelLink: function(t) {
- return "https://go.twitch.tv/" + t
- },
- watchScroll: function() {
- window.addEventListener("scroll", function() {
- var t = document.documentElement,
- e = document.querySelectorAll(".lb__nav-top")[0],
- n = document.querySelectorAll(".lb__nav-bot")[0],
- i = document.querySelectorAll(".lb__rank1-small")[0];
- t.scrollTop > 80 ? (e.classList.add("isScrolled"), i.classList.add("isScrolled")) : (e.classList.remove("isScrolled"), i.classList.remove("isScrolled")), t.scrollHeight - t.scrollTop === window.innerHeight ? (n.classList.add("hideFade"), setTimeout(function() {
- n.classList.add("hideFadeAll")
- }, 300)) : (n.classList.remove("hideFadeAll"), n.classList.remove("hideFade"))
- })
- },
- onSeeAllClick: function() {
- this.$http.put(r + "/see-all-clicked")
- },
- hexToRgb: function(t) {
- return t.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i, function(t, e, n, i) {
- return "#" + e + e + n + n + i + i
- }).substring(1).match(/.{2}/g).map(function(t) {
- return parseInt(t, 16)
- })
- },
- customMainStyle: function() {
- var t = {};
- return null !== this.settings.main_background_color && "" !== this.settings.main_background_color && (t["background-color"] = "" + this.settings.main_background_color), null !== this.settings.font && "" !== this.settings.font && (t["font-family"] = "'" + this.settings.font + "', sans-serif"), null !== this.settings.text_color && "" !== this.settings.text_color && (t.color = this.settings.text_color + " !important"), t
- },
- customRankWrapperBackground: function(t) {
- t = t.toLowerCase();
- var e = "" !== this.settings.rank_wrapper_background_color ? this.hexToRgb(this.settings.rank_wrapper_background_color).toString() : "111,60,242";
- return {
- background: "linear-gradient(rgba(" + e + ",.98), rgba(" + e + ",.80)), url(" + (this.thumbnails && this.thumbnails[t] ? this.thumbnails[t] : "https://d1qb2nb5cznatu.cloudfront.net/startups/i/4876-bba247ca28a1c4a035741180f963ff4d-medium_jpg.jpg?buster=1472502356") + ") no-repeat center center/cover"
- }
- },
- loadFont: function() {
- WebFont.load({
- google: {
- families: [this.settings.font]
- }
- })
- }
- }
- })
- }, function(t, e, n) {
- "use strict";
- function i(t) {
- this.state = z, this.value = void 0, this.deferred = [];
- var e = this;
- try {
- t(function(t) {
- e.resolve(t)
- }, function(t) {
- e.reject(t)
- })
- } catch (t) {
- e.reject(t)
- }
- }
- function o(t, e) {
- t instanceof Promise ? this.promise = t : this.promise = new Promise(t.bind(e)), this.context = e
- }
- function s(t) {
- "undefined" != typeof console && Z && console.warn("[VueResource warn]: " + t)
- }
- function r(t) {
- "undefined" != typeof console && console.error(t)
- }
- function a(t, e) {
- return J(t, e)
- }
- function l(t) {
- return t ? t.replace(/^\s*|\s*$/g, "") : ""
- }
- function c(t, e) {
- return t && void 0 === e ? t.replace(/\s+$/, "") : t && e ? t.replace(new RegExp("[" + e + "]+$"), "") : t
- }
- function u(t) {
- return t ? t.toLowerCase() : ""
- }
- function h(t) {
- return t ? t.toUpperCase() : ""
- }
- function d(t) {
- return "string" == typeof t
- }
- function p(t) {
- return "function" == typeof t
- }
- function f(t) {
- return null !== t && "object" == typeof t
- }
- function m(t) {
- return f(t) && Object.getPrototypeOf(t) == Object.prototype
- }
- function v(t) {
- return "undefined" != typeof Blob && t instanceof Blob
- }
- function g(t) {
- return "undefined" != typeof FormData && t instanceof FormData
- }
- function b(t, e, n) {
- var i = o.resolve(t);
- return arguments.length < 2 ? i : i.then(e, n)
- }
- function _(t, e, n) {
- return n = n || {}, p(n) && (n = n.call(e)), w(t.bind({
- $vm: e,
- $options: n
- }), t, {
- $options: n
- })
- }
- function y(t, e) {
- var n, i;
- if (nt(t))
- for (n = 0; n < t.length; n++) e.call(t[n], t[n], n);
- else if (f(t))
- for (i in t) K.call(t, i) && e.call(t[i], t[i], i);
- return t
- }
- function w(t) {
- return Y.call(arguments, 1).forEach(function(e) {
- C(t, e, !0)
- }), t
- }
- function k(t) {
- return Y.call(arguments, 1).forEach(function(e) {
- for (var n in e) void 0 === t[n] && (t[n] = e[n])
- }), t
- }
- function x(t) {
- return Y.call(arguments, 1).forEach(function(e) {
- C(t, e)
- }), t
- }
- function C(t, e, n) {
- for (var i in e) n && (m(e[i]) || nt(e[i])) ? (m(e[i]) && !m(t[i]) && (t[i] = {}), nt(e[i]) && !nt(t[i]) && (t[i] = []), C(t[i], e[i], n)) : void 0 !== e[i] && (t[i] = e[i])
- }
- function O(t, e, n) {
- var i = T(t),
- o = i.expand(e);
- return n && n.push.apply(n, i.vars), o
- }
- function T(t) {
- var e = ["+", "#", ".", "/", ";", "?", "&"],
- n = [];
- return {
- vars: n,
- expand: function(i) {
- return t.replace(/\{([^\{\}]+)\}|([^\{\}]+)/g, function(t, o, s) {
- if (o) {
- var r = null,
- a = [];
- if (-1 !== e.indexOf(o.charAt(0)) && (r = o.charAt(0), o = o.substr(1)), o.split(/,/g).forEach(function(t) {
- var e = /([^:\*]*)(?::(\d+)|(\*))?/.exec(t);
- a.push.apply(a, L(i, r, e[1], e[2] || e[3])), n.push(e[1])
- }), r && "+" !== r) {
- var l = ",";
- return "?" === r ? l = "&" : "#" !== r && (l = r), (0 !== a.length ? r : "") + a.join(l)
- }
- return a.join(",")
- }
- return P(s)
- })
- }
- }
- }
- function L(t, e, n, i) {
- var o = t[n],
- s = [];
- if (S(o) && "" !== o)
- if ("string" == typeof o || "number" == typeof o || "boolean" == typeof o) o = o.toString(), i && "*" !== i && (o = o.substring(0, parseInt(i, 10))), s.push(j(e, o, E(e) ? n : null));
- else if ("*" === i) Array.isArray(o) ? o.filter(S).forEach(function(t) {
- s.push(j(e, t, E(e) ? n : null))
- }) : Object.keys(o).forEach(function(t) {
- S(o[t]) && s.push(j(e, o[t], t))
- });
- else {
- var r = [];
- Array.isArray(o) ? o.filter(S).forEach(function(t) {
- r.push(j(e, t))
- }) : Object.keys(o).forEach(function(t) {
- S(o[t]) && (r.push(encodeURIComponent(t)), r.push(j(e, o[t].toString())))
- }), E(e) ? s.push(encodeURIComponent(n) + "=" + r.join(",")) : 0 !== r.length && s.push(r.join(","))
- } else ";" === e ? s.push(encodeURIComponent(n)) : "" !== o || "&" !== e && "?" !== e ? "" === o && s.push("") : s.push(encodeURIComponent(n) + "=");
- return s
- }
- function S(t) {
- return void 0 !== t && null !== t
- }
- function E(t) {
- return ";" === t || "&" === t || "?" === t
- }
- function j(t, e, n) {
- return e = "+" === t || "#" === t ? P(e) : encodeURIComponent(e), n ? encodeURIComponent(n) + "=" + e : e
- }
- function P(t) {
- return t.split(/(%[0-9A-Fa-f]{2})/g).map(function(t) {
- return /%[0-9A-Fa-f]/.test(t) || (t = encodeURI(t)), t
- }).join("")
- }
- function A(t, e) {
- var n, i = this || {},
- o = t;
- return d(t) && (o = {
- url: t,
- params: e
- }), o = w({}, A.options, i.$options, o), A.transforms.forEach(function(t) {
- d(t) && (t = A.transform[t]), p(t) && (n = N(t, n, i.$vm))
- }), n(o)
- }
- function N(t, e, n) {
- return function(i) {
- return t.call(n, i, e)
- }
- }
- function I(t, e, n) {
- var i, o = nt(e),
- s = m(e);
- y(e, function(e, r) {
- i = f(e) || nt(e), n && (r = n + "[" + (s || i ? r : "") + "]"), !n && o ? t.add(e.name, e.value) : i ? I(t, e, r) : t.add(r, e)
- })
- }
- function $(t) {
- var e = t.match(/^\[|^\{(?!\{)/),
- n = {
- "[": /]$/,
- "{": /}$/
- };
- return e && n[e[0]].test(t)
- }
- function B(t, e) {
- e((t.client || (tt ? gt : bt))(t))
- }
- function U(t, e) {
- return Object.keys(t).reduce(function(t, n) {
- return u(e) === u(n) ? n : t
- }, null)
- }
- function R(t) {
- if (/[^a-z0-9\-#$%&'*+.\^_`|~]/i.test(t)) throw new TypeError("Invalid character in header field name");
- return l(t)
- }
- function M(t) {
- return new o(function(e) {
- var n = new FileReader;
- n.readAsText(t), n.onload = function() {
- e(n.result)
- }
- })
- }
- function W(t) {
- return 0 === t.type.indexOf("text") || -1 !== t.type.indexOf("json")
- }
- function q(t) {
- var e = this || {},
- n = _t(e.$vm);
- return k(t || {}, e.$options, q.options), q.interceptors.forEach(function(t) {
- d(t) && (t = q.interceptor[t]), p(t) && n.use(t)
- }), n(new kt(t)).then(function(t) {
- return t.ok ? t : o.reject(t)
- }, function(t) {
- return t instanceof Error && r(t), o.reject(t)
- })
- }
- function F(t, e, n, i) {
- var o = this || {},
- s = {};
- return n = it({}, F.actions, n), y(n, function(n, r) {
- n = w({
- url: t,
- params: it({}, e)
- }, i, n), s[r] = function() {
- return (o.$http || q)(D(n, arguments))
- }
- }), s
- }
- function D(t, e) {
- var n, i = it({}, t),
- o = {};
- switch (e.length) {
- case 2:
- o = e[0], n = e[1];
- break;
- case 1:
- /^(POST|PUT|PATCH)$/i.test(i.method) ? n = e[0] : o = e[0];
- break;
- case 0:
- break;
- default:
- throw "Expected up to 2 arguments [params, body], got " + e.length + " arguments"
- }
- return i.body = n, i.params = it({}, i.params, o), i
- }
- function H(t) {
- H.installed || (et(t), t.url = A, t.http = q, t.resource = F, t.Promise = o, Object.defineProperties(t.prototype, {
- $url: {
- get: function() {
- return _(t.url, this, this.$options.url)
- }
- },
- $http: {
- get: function() {
- return _(t.http, this, this.$options.http)
- }
- },
- $resource: {
- get: function() {
- return t.resource.bind(this)
- }
- },
- $promise: {
- get: function() {
- var e = this;
- return function(n) {
- return new t.Promise(n, e)
- }
- }
- }
- }))
- }
- /*!
- * vue-resource v1.3.4
- * https://github.com/pagekit/vue-resource
- * Released under the MIT License.
- */
- var z = 2;
- i.reject = function(t) {
- return new i(function(e, n) {
- n(t)
- })
- }, i.resolve = function(t) {
- return new i(function(e, n) {
- e(t)
- })
- }, i.all = function(t) {
- return new i(function(e, n) {
- var o = 0,
- s = [];
- 0 === t.length && e(s);
- for (var r = 0; r < t.length; r += 1) i.resolve(t[r]).then(function(n) {
- return function(i) {
- s[n] = i, (o += 1) === t.length && e(s)
- }
- }(r), n)
- })
- }, i.race = function(t) {
- return new i(function(e, n) {
- for (var o = 0; o < t.length; o += 1) i.resolve(t[o]).then(e, n)
- })
- };
- var G = i.prototype;
- G.resolve = function(t) {
- var e = this;
- if (e.state === z) {
- if (t === e) throw new TypeError("Promise settled with itself.");
- var n = !1;
- try {
- var i = t && t.then;
- if (null !== t && "object" == typeof t && "function" == typeof i) return void i.call(t, function(t) {
- n || e.resolve(t), n = !0
- }, function(t) {
- n || e.reject(t), n = !0
- })
- } catch (t) {
- return void(n || e.reject(t))
- }
- e.state = 0, e.value = t, e.notify()
- }
- }, G.reject = function(t) {
- var e = this;
- if (e.state === z) {
- if (t === e) throw new TypeError("Promise settled with itself.");
- e.state = 1, e.value = t, e.notify()
- }
- }, G.notify = function() {
- var t = this;
- a(function() {
- if (t.state !== z)
- for (; t.deferred.length;) {
- var e = t.deferred.shift(),
- n = e[0],
- i = e[1],
- o = e[2],
- s = e[3];
- try {
- 0 === t.state ? o("function" == typeof n ? n.call(void 0, t.value) : t.value) : 1 === t.state && ("function" == typeof i ? o(i.call(void 0, t.value)) : s(t.value))
- } catch (t) {
- s(t)
- }
- }
- })
- }, G.then = function(t, e) {
- var n = this;
- return new i(function(i, o) {
- n.deferred.push([t, e, i, o]), n.notify()
- })
- }, G.catch = function(t) {
- return this.then(void 0, t)
- }, "undefined" == typeof Promise && (window.Promise = i), o.all = function(t, e) {
- return new o(Promise.all(t), e)
- }, o.resolve = function(t, e) {
- return new o(Promise.resolve(t), e)
- }, o.reject = function(t, e) {
- return new o(Promise.reject(t), e)
- }, o.race = function(t, e) {
- return new o(Promise.race(t), e)
- };
- var V = o.prototype;
- V.bind = function(t) {
- return this.context = t, this
- }, V.then = function(t, e) {
- return t && t.bind && this.context && (t = t.bind(this.context)), e && e.bind && this.context && (e = e.bind(this.context)), new o(this.promise.then(t, e), this.context)
- }, V.catch = function(t) {
- return t && t.bind && this.context && (t = t.bind(this.context)), new o(this.promise.catch(t), this.context)
- }, V.finally = function(t) {
- return this.then(function(e) {
- return t.call(this), e
- }, function(e) {
- return t.call(this), Promise.reject(e)
- })
- };
- var J, X = {},
- K = X.hasOwnProperty,
- Q = [],
- Y = Q.slice,
- Z = !1,
- tt = "undefined" != typeof window,
- et = function(t) {
- var e = t.config,
- n = t.nextTick;
- J = n, Z = e.debug || !e.silent
- },
- nt = Array.isArray,
- it = Object.assign || x,
- ot = function(t, e) {
- var n = e(t);
- return d(t.root) && !/^(https?:)?\//.test(n) && (n = c(t.root, "/") + "/" + n), n
- },
- st = function(t, e) {
- var n = Object.keys(A.options.params),
- i = {},
- o = e(t);
- return y(t.params, function(t, e) {
- -1 === n.indexOf(e) && (i[e] = t)
- }), i = A.params(i), i && (o += (-1 == o.indexOf("?") ? "?" : "&") + i), o
- },
- rt = function(t) {
- var e = [],
- n = O(t.url, t.params, e);
- return e.forEach(function(e) {
- delete t.params[e]
- }), n
- };
- A.options = {
- url: "",
- root: null,
- params: {}
- }, A.transform = {
- template: rt,
- query: st,
- root: ot
- }, A.transforms = ["template", "query", "root"], A.params = function(t) {
- var e = [],
- n = encodeURIComponent;
- return e.add = function(t, e) {
- p(e) && (e = e()), null === e && (e = ""), this.push(n(t) + "=" + n(e))
- }, I(e, t), e.join("&").replace(/%20/g, "+")
- }, A.parse = function(t) {
- var e = document.createElement("a");
- return document.documentMode && (e.href = t, t = e.href), e.href = t, {
- href: e.href,
- protocol: e.protocol ? e.protocol.replace(/:$/, "") : "",
- port: e.port,
- host: e.host,
- hostname: e.hostname,
- pathname: "/" === e.pathname.charAt(0) ? e.pathname : "/" + e.pathname,
- search: e.search ? e.search.replace(/^\?/, "") : "",
- hash: e.hash ? e.hash.replace(/^#/, "") : ""
- }
- };
- var at = function(t) {
- return new o(function(e) {
- var n = new XDomainRequest,
- i = function(i) {
- var o = i.type,
- s = 0;
- "load" === o ? s = 200 : "error" === o && (s = 500), e(t.respondWith(n.responseText, {
- status: s
- }))
- };
- t.abort = function() {
- return n.abort()
- }, n.open(t.method, t.getUrl()), t.timeout && (n.timeout = t.timeout), n.onload = i, n.onabort = i, n.onerror = i, n.ontimeout = i, n.onprogress = function() {}, n.send(t.getBody())
- })
- },
- lt = tt && "withCredentials" in new XMLHttpRequest,
- ct = function(t, e) {
- if (tt) {
- var n = A.parse(location.href),
- i = A.parse(t.getUrl());
- i.protocol === n.protocol && i.host === n.host || (t.crossOrigin = !0, t.emulateHTTP = !1, lt || (t.client = at))
- }
- e()
- },
- ut = function(t, e) {
- g(t.body) ? t.headers.delete("Content-Type") : f(t.body) && t.emulateJSON && (t.body = A.params(t.body), t.headers.set("Content-Type", "application/x-www-form-urlencoded")), e()
- },
- ht = function(t, e) {
- var n = t.headers.get("Content-Type") || "";
- f(t.body) && 0 === n.indexOf("application/json") && (t.body = JSON.stringify(t.body)), e(function(t) {
- return t.bodyText ? b(t.text(), function(e) {
- if (n = t.headers.get("Content-Type") || "", 0 === n.indexOf("application/json") || $(e)) try {
- t.body = JSON.parse(e)
- } catch (e) {
- t.body = null
- } else t.body = e;
- return t
- }) : t
- })
- },
- dt = function(t) {
- return new o(function(e) {
- var n, i, o = t.jsonp || "callback",
- s = t.jsonpCallback || "_jsonp" + Math.random().toString(36).substr(2),
- r = null;
- n = function(n) {
- var o = n.type,
- a = 0;
- "load" === o && null !== r ? a = 200 : "error" === o && (a = 500), a && window[s] && (delete window[s], document.body.removeChild(i)), e(t.respondWith(r, {
- status: a
- }))
- }, window[s] = function(t) {
- r = JSON.stringify(t)
- }, t.abort = function() {
- n({
- type: "abort"
- })
- }, t.params[o] = s, t.timeout && setTimeout(t.abort, t.timeout), i = document.createElement("script"), i.src = t.getUrl(), i.type = "text/javascript", i.async = !0, i.onload = n, i.onerror = n, document.body.appendChild(i)
- })
- },
- pt = function(t, e) {
- "JSONP" == t.method && (t.client = dt), e()
- },
- ft = function(t, e) {
- p(t.before) && t.before.call(this, t), e()
- },
- mt = function(t, e) {
- t.emulateHTTP && /^(PUT|PATCH|DELETE)$/i.test(t.method) && (t.headers.set("X-HTTP-Method-Override", t.method), t.method = "POST"), e()
- },
- vt = function(t, e) {
- y(it({}, q.headers.common, t.crossOrigin ? {} : q.headers.custom, q.headers[u(t.method)]), function(e, n) {
- t.headers.has(n) || t.headers.set(n, e)
- }), e()
- },
- gt = function(t) {
- return new o(function(e) {
- var n = new XMLHttpRequest,
- i = function(i) {
- var o = t.respondWith("response" in n ? n.response : n.responseText, {
- status: 1223 === n.status ? 204 : n.status,
- statusText: 1223 === n.status ? "No Content" : l(n.statusText)
- });
- y(l(n.getAllResponseHeaders()).split("\n"), function(t) {
- o.headers.append(t.slice(0, t.indexOf(":")), t.slice(t.indexOf(":") + 1))
- }), e(o)
- };
- t.abort = function() {
- return n.abort()
- }, t.progress && ("GET" === t.method ? n.addEventListener("progress", t.progress) : /^(POST|PUT)$/i.test(t.method) && n.upload.addEventListener("progress", t.progress)), n.open(t.method, t.getUrl(), !0), t.timeout && (n.timeout = t.timeout), t.responseType && "responseType" in n && (n.responseType = t.responseType), (t.withCredentials || t.credentials) && (n.withCredentials = !0), t.crossOrigin || t.headers.set("X-Requested-With", "XMLHttpRequest"), t.headers.forEach(function(t, e) {
- n.setRequestHeader(e, t)
- }), n.onload = i, n.onabort = i, n.onerror = i, n.ontimeout = i, n.send(t.getBody())
- })
- },
- bt = function(t) {
- var e = n(6);
- return new o(function(n) {
- var i, o = t.getUrl(),
- s = t.getBody(),
- r = t.method,
- a = {};
- t.headers.forEach(function(t, e) {
- a[e] = t
- }), e(o, {
- body: s,
- method: r,
- headers: a
- }).then(i = function(e) {
- var i = t.respondWith(e.body, {
- status: e.statusCode,
- statusText: l(e.statusMessage)
- });
- y(e.headers, function(t, e) {
- i.headers.set(e, t)
- }), n(i)
- }, function(t) {
- return i(t.response)
- })
- })
- },
- _t = function(t) {
- function e(e) {
- return new o(function(o, a) {
- function l() {
- n = i.pop(), p(n) ? n.call(t, e, c) : (s("Invalid interceptor of type " + typeof n + ", must be a function"), c())
- }
- function c(e) {
- if (p(e)) r.unshift(e);
- else if (f(e)) return r.forEach(function(n) {
- e = b(e, function(e) {
- return n.call(t, e) || e
- }, a)
- }), void b(e, o, a);
- l()
- }
- l()
- }, t)
- }
- var n, i = [B],
- r = [];
- return f(t) || (t = null), e.use = function(t) {
- i.push(t)
- }, e
- },
- yt = function(t) {
- var e = this;
- this.map = {}, y(t, function(t, n) {
- return e.append(n, t)
- })
- };
- yt.prototype.has = function(t) {
- return null !== U(this.map, t)
- }, yt.prototype.get = function(t) {
- var e = this.map[U(this.map, t)];
- return e ? e.join() : null
- }, yt.prototype.getAll = function(t) {
- return this.map[U(this.map, t)] || []
- }, yt.prototype.set = function(t, e) {
- this.map[R(U(this.map, t) || t)] = [l(e)]
- }, yt.prototype.append = function(t, e) {
- var n = this.map[U(this.map, t)];
- n ? n.push(l(e)) : this.set(t, e)
- }, yt.prototype.delete = function(t) {
- delete this.map[U(this.map, t)]
- }, yt.prototype.deleteAll = function() {
- this.map = {}
- }, yt.prototype.forEach = function(t, e) {
- var n = this;
- y(this.map, function(i, o) {
- y(i, function(i) {
- return t.call(e, i, o, n)
- })
- })
- };
- var wt = function(t, e) {
- var n = e.url,
- i = e.headers,
- o = e.status,
- s = e.statusText;
- this.url = n, this.ok = o >= 200 && o < 300, this.status = o || 0, this.statusText = s || "", this.headers = new yt(i), this.body = t, d(t) ? this.bodyText = t : v(t) && (this.bodyBlob = t, W(t) && (this.bodyText = M(t)))
- };
- wt.prototype.blob = function() {
- return b(this.bodyBlob)
- }, wt.prototype.text = function() {
- return b(this.bodyText)
- }, wt.prototype.json = function() {
- return b(this.text(), function(t) {
- return JSON.parse(t)
- })
- }, Object.defineProperty(wt.prototype, "data", {
- get: function() {
- return this.body
- },
- set: function(t) {
- this.body = t
- }
- });
- var kt = function(t) {
- this.body = null, this.params = {}, it(this, t, {
- method: h(t.method || "GET")
- }), this.headers instanceof yt || (this.headers = new yt(this.headers))
- };
- kt.prototype.getUrl = function() {
- return A(this)
- }, kt.prototype.getBody = function() {
- return this.body
- }, kt.prototype.respondWith = function(t, e) {
- return new wt(t, it(e || {}, {
- url: this.getUrl()
- }))
- };
- var xt = {
- Accept: "application/json, text/plain, */*"
- },
- Ct = {
- "Content-Type": "application/json;charset=utf-8"
- };
- q.options = {}, q.headers = {
- put: Ct,
- post: Ct,
- patch: Ct,
- delete: Ct,
- common: xt,
- custom: {}
- }, q.interceptor = {
- before: ft,
- method: mt,
- jsonp: pt,
- json: ht,
- form: ut,
- header: vt,
- cors: ct
- }, q.interceptors = ["before", "method", "jsonp", "json", "form", "header", "cors"], ["get", "delete", "head", "jsonp"].forEach(function(t) {
- q[t] = function(e, n) {
- return this(it(n || {}, {
- url: e,
- method: t
- }))
- }
- }), ["post", "put", "patch"].forEach(function(t) {
- q[t] = function(e, n, i) {
- return this(it(i || {}, {
- url: e,
- method: t,
- body: n
- }))
- }
- }), F.actions = {
- get: {
- method: "GET"
- },
- save: {
- method: "POST"
- },
- query: {
- method: "GET"
- },
- update: {
- method: "PUT"
- },
- remove: {
- method: "DELETE"
- },
- delete: {
- method: "DELETE"
- }
- }, "undefined" != typeof window && window.Vue && window.Vue.use(H), e.a = H
- }, function(t, e) {}, function(t, e, n) {
- t.exports = n.p + "images/balance.svg?id=4faa9cb7"
- }, function(t, e, n) {
- t.exports = n.p + "images/rank1-star.svg?id=1deec6d5"
- }, , , function(t, e, n) {
- var i = n(2)(n(4), n(12), null, null, null);
- t.exports = i.exports
- }, function(t, e, n) {
- t.exports = {
- render: function() {
- var t = this,
- e = t.$createElement,
- i = t._self._c || e;
- return i("div", {
- ref: "leaderboard",
- staticClass: "lb",
- class: {
- night: "night" === t.settings.theme
- },
- style: t.customMainStyle()
- }, [i("div", {
- staticClass: "lb__nav-top"
- }, [t.settings.loyalty ? i("input", {
- directives: [{
- name: "model",
- rawName: "v-model",
- value: t.activeLb,
- expression: "activeLb"
- }],
- attrs: {
- id: "loyaltyOption",
- type: "radio",
- name: "type",
- value: "loyalty"
- },
- domProps: {
- checked: "loyalty" === t.settings.tab,
- checked: t._q(t.activeLb, "loyalty")
- },
- on: {
- change: function(e) {
- t.activeLb = "loyalty"
- }
- }
- }) : t._e(), t._v(" "), t.settings.loyalty ? i("label", {
- staticClass: "lb__nav-top-label",
- class: {
- loading: !t.hasData && "day" === t.settings.theme
- },
- style: {
- color: t.settings.title_color
- },
- attrs: {
- for: "loyaltyOption"
- }
- }, [t._v(t._s(t.settings.loyaltyPointsName))]) : t._e(), t._v(" "), t.settings.cheers ? i("input", {
- directives: [{
- name: "model",
- rawName: "v-model",
- value: t.activeLb,
- expression: "activeLb"
- }],
- attrs: {
- id: "bitsOption",
- type: "radio",
- value: "bits",
- disabled: !t.partner,
- name: "type"
- },
- domProps: {
- checked: t.partner || "bits" === t.settings.tab,
- checked: t._q(t.activeLb, "bits")
- },
- on: {
- change: function(e) {
- t.activeLb = "bits"
- }
- }
- }) : t._e(), t._v(" "), t.settings.cheers ? i("label", {
- staticClass: "lb__nav-top-label",
- class: {
- loading: !t.hasData && "day" === t.settings.theme
- },
- style: {
- color: t.settings.title_color
- },
- attrs: {
- for: "bitsOption"
- }
- }, [t._v("Bits")]) : t._e(), t._v(" "), t.settings.subs ? i("input", {
- directives: [{
- name: "model",
- rawName: "v-model",
- value: t.activeLb,
- expression: "activeLb"
- }],
- attrs: {
- id: "subsOption",
- type: "radio",
- value: "subs",
- name: "type"
- },
- domProps: {
- checked: "subs" === t.settings.tab,
- checked: t._q(t.activeLb, "subs")
- },
- on: {
- change: function(e) {
- t.activeLb = "subs"
- }
- }
- }) : t._e(), t._v(" "), t.settings.subs ? i("label", {
- staticClass: "lb__nav-top-label",
- class: {
- loading: !t.hasData && "day" === t.settings.theme
- },
- style: {
- color: t.settings.title_color
- },
- attrs: {
- for: "subsOption"
- }
- }, [t._v("Subs")]) : t._e(), t._v(" "), t.settings.subgift ? i("input", {
- directives: [{
- name: "model",
- rawName: "v-model",
- value: t.activeLb,
- expression: "activeLb"
- }],
- attrs: {
- id: "subgiftOption",
- type: "radio",
- value: "subgift",
- name: "type"
- },
- domProps: {
- checked: "subgift" === t.settings.tab,
- checked: t._q(t.activeLb, "subgift")
- },
- on: {
- change: function(e) {
- t.activeLb = "subgift"
- }
- }
- }) : t._e(), t._v(" "), t.settings.subgift ? i("label", {
- staticClass: "lb__nav-top-label",
- class: {
- loading: !t.hasData && "day" === t.settings.theme
- },
- style: {
- color: t.settings.title_color
- },
- attrs: {
- for: "subgiftOption"
- }
- }, [t._v("Gifts")]) : t._e()]), t._v(" "), t.hasData ? i("div", [t._l(t.leaderboards, function(e, o) {
- return 0 === o ? i("div", {
- staticClass: "lb__rank1-small",
- style: [t.customRankWrapperBackground(e.username)]
- }, [i("table", {
- staticClass: "lb__rank1-table"
- }, [i("tr", {
- staticClass: "lb__row"
- }, [t._m(0, !0), t._v(" "), i("td", {
- staticClass: "lb__username"
- }, [i("div", {
- staticClass: "lb__user-img-wrapper"
- }, [t._m(1, !0), t._v(" "), t._m(2, !0), t._v(" "), t.thumbnails[e.username.toLowerCase()] ? i("img", {
- staticClass: "lb__user-img",
- attrs: {
- src: t.thumbnails[e.username.toLowerCase()]
- }
- }) : i("img", {
- staticClass: "lb__user-img",
- attrs: {
- src: "https://d1qb2nb5cznatu.cloudfront.net/startups/i/4876-bba247ca28a1c4a035741180f963ff4d-medium_jpg.jpg?buster=1472502356"
- }
- })]), t._v(" "), t.thumbnails[e.username.toLowerCase()] ? i("div", [i("a", {
- staticClass: "lb__rank1-link",
- style: {
- color: t.settings.text_color
- },
- attrs: {
- href: t.channelLink(e.username.toLowerCase()),
- target: "_blank"
- }
- }, [t._v(t._s(e.username))])]) : i("div", {
- style: {
- color: t.settings.text_color
- }
- }, [t._v("\n " + t._s(e.username) + "\n ")])]), t._v(" "), i("td", {
- staticClass: "lb__donation-amount",
- style: {
- color: t.settings.text_color
- }
- }, ["subs" !== t.activeLb && "subgift" !== t.activeLb ? i("span", {
- staticClass: "lb__balance-img"
- }, [i("img", {
- attrs: {
- src: n(7),
- alt: ""
- }
- })]) : t._e(), t._v("\n " + t._s(e.total) + "\n ")])])])]) : t._e()
- }), t._v(" "), t._l(t.leaderboards, function(e, o) {
- return 0 === o ? i("div", {
- staticClass: "lb__rank1-wrapper",
- style: [t.customRankWrapperBackground(e.username)]
- }, [i("div", {
- staticClass: "lb__user-img-wrapper"
- }, [t._m(3, !0), t._v(" "), t._m(4, !0), t._v(" "), t._m(5, !0), t._v(" "), i("div", {
- staticClass: "lb__img-confetti"
- }), t._v(" "), t.thumbnails[e.username.toLowerCase()] ? i("img", {
- staticClass: "lb__user-img",
- attrs: {
- src: t.thumbnails[e.username.toLowerCase()]
- }
- }) : i("img", {
- staticClass: "lb__user-img",
- attrs: {
- src: "https://d1qb2nb5cznatu.cloudfront.net/startups/i/4876-bba247ca28a1c4a035741180f963ff4d-medium_jpg.jpg?buster=1472502356"
- }
- }), t._v(" "), i("img", {
- staticClass: "lb__rank1-star",
- attrs: {
- src: n(8)
- }
- }), t._v(" "), i("span", {
- staticClass: "lb__rank"
- }, [t._v("1")])]), t._v(" "), i("div", {
- staticClass: "lb__user-stats"
- }, [t.thumbnails[e.username.toLowerCase()] ? i("div", [i("p", {
- staticClass: "lb__username"
- }, [i("a", {
- staticClass: "lb__rank1-link",
- style: {
- color: t.settings.title_color
- },
- attrs: {
- href: t.channelLink(e.username.toLowerCase()),
- target: "_blank"
- },
- on: {
- click: t.onSeeAllClick
- }
- }, [t._v("\n " + t._s(e.username) + "\n ")])])]) : i("div", {
- style: {
- color: t.settings.title_color
- }
- }, [i("p", {
- staticClass: "lb__username"
- }, [t._v(t._s(e.username))])]), t._v(" "), i("div", {
- staticClass: "lb__donation-amount",
- style: {
- color: t.settings.text_color
- }
- }, ["subs" !== t.activeLb && "subgift" !== t.activeLb ? i("span", {
- staticClass: "lb__balance-img"
- }, [i("img", {
- attrs: {
- src: n(7),
- alt: ""
- }
- })]) : t._e(), t._v("\n " + t._s(e.total) + "\n ")])])]) : t._e()
- }), t._v(" "), i("div", {
- staticClass: "lb__table-wrapper",
- style: [t.customMainStyle()]
- }, [i("table", {
- staticClass: "lb__table"
- }, [i("tr", {
- staticClass: "lb__row"
- }, [i("th", {
- style: {
- color: t.settings.title_color
- }
- }, [t._v("Rank")]), t._v(" "), i("th", {
- staticClass: "lb__th-mid",
- style: {
- color: t.settings.title_color
- }
- }, [t._v("Twitch User")]), t._v(" "), "bits" === t.activeLb ? i("th", {
- style: {
- color: t.settings.title_color
- }
- }, [t._v("Bits")]) : t._e(), t._v(" "), "loyalty" === t.activeLb ? i("th", {
- style: {
- color: t.settings.title_color
- }
- }, [t._v("Loyalty")]) : t._e(), t._v(" "), "subs" === t.activeLb ? i("th", {
- style: {
- color: t.settings.title_color
- }
- }, [t._v("Subs")]) : t._e(), t._v(" "), "subgift" === t.activeLb ? i("th", {
- style: {
- color: t.settings.title_color
- }
- }, [t._v("Gifts")]) : t._e()]), t._v(" "), t._l(t.leaderboards, function(e, o) {
- return i("tr", {
- staticClass: "lb__row",
- class: {
- hidden: 0 === o
- }
- }, [i("td", {
- staticClass: "lb__user-rank"
- }, [o + 1 === 2 ? i("div", {
- staticClass: "lb__user-rank--star"
- }, ["night" === t.settings.theme ? i("img", {
- attrs: {
- src: n(13),
- alt: ""
- }
- }) : i("img", {
- attrs: {
- src: n(14),
- alt: ""
- }
- })]) : o + 1 === 3 ? i("div", {
- staticClass: "lb__user-rank--star"
- }, ["night" === t.settings.theme ? i("img", {
- attrs: {
- src: n(15),
- alt: ""
- }
- }) : i("img", {
- attrs: {
- src: n(16),
- alt: ""
- }
- })]) : i("div", {
- staticClass: "lb__user-rank-wrapper"
- }, [i("span", {
- style: {
- color: t.settings.text_color
- }
- }, [t._v(t._s(o + 1))])])]), t._v(" "), i("td", {
- staticClass: "lb__username"
- }, [i("div", {
- staticClass: "lb__user-img-wrapper"
- }, [t.thumbnails[e.username.toLowerCase()] ? i("img", {
- staticClass: "lb__user-img",
- attrs: {
- src: t.thumbnails[e.username.toLowerCase()]
- }
- }) : i("img", {
- staticClass: "lb__user-img",
- attrs: {
- src: "https://d1qb2nb5cznatu.cloudfront.net/startups/i/4876-bba247ca28a1c4a035741180f963ff4d-medium_jpg.jpg?buster=1472502356"
- }
- })]), t._v(" "), t.thumbnails[e.username.toLowerCase()] ? i("div", [i("a", {
- class: {
- day: "day" === t.settings.theme, night: "night" === t.settings.theme
- },
- style: {
- color: t.settings.text_color
- },
- attrs: {
- href: t.channelLink(e.username.toLowerCase()),
- target: "_blank"
- },
- on: {
- click: t.onSeeAllClick
- }
- }, [t._v(t._s(e.username))])]) : i("div", {
- style: {
- color: t.settings.text_color
- }
- }, [t._v("\n " + t._s(e.username) + "\n ")]), t._v(" "), e.change === t.UP ? i("span", {
- staticClass: "lb__rank-up"
- }) : e.change === t.DOWN ? i("span", {
- staticClass: "lb__rank-down"
- }) : t._e()]), t._v(" "), i("td", {
- staticClass: "lb__donation-amount",
- style: {
- color: t.settings.text_color
- }
- }, ["subs" !== t.activeLb && "subgift" !== t.activeLb ? i("span", {
- staticClass: "lb__balance-img"
- }, ["night" === t.settings.theme ? i("img", {
- attrs: {
- src: n(17),
- alt: ""
- }
- }) : i("img", {
- attrs: {
- src: n(18),
- alt: ""
- }
- })]) : t._e(), t._v("\n " + t._s(e.total) + "\n ")])])
- })], 2)])], 2) : t.loading ? i("div", {
- staticClass: "spinner-wrapper"
- }) : i("div", {
- staticClass: "flex"
- }, [i("div", {
- staticClass: "placeholder-wrapper"
- }, ["night" == t.settings.theme ? i("img", {
- attrs: {
- src: n(19),
- alt: ""
- }
- }) : t._e(), t._v(" "), "day" == t.settings.theme ? i("img", {
- attrs: {
- src: n(20),
- alt: ""
- }
- }) : t._e()])]), t._v(" "), i("div", {
- staticClass: "lb__nav-bot",
- style: [{
- display: "subs" === t.activeLb ? "none" : ""
- }, t.customMainStyle()]
- }, ["loyalty" !== t.activeLb ? i("input", {
- directives: [{
- name: "model",
- rawName: "v-model",
- value: t.period,
- expression: "period"
- }],
- attrs: {
- id: "sessionOption",
- type: "radio",
- name: "period",
- value: "session"
- },
- domProps: {
- checked: t._q(t.period, "session")
- },
- on: {
- change: function(e) {
- t.period = "session"
- }
- }
- }) : t._e(), t._v(" "), "loyalty" !== t.activeLb ? i("label", {
- style: {
- color: t.settings.title_color
- },
- attrs: {
- for: "sessionOption"
- }
- }, [t._v("SESSION")]) : t._e(), t._v(" "), i("input", {
- directives: [{
- name: "model",
- rawName: "v-model",
- value: t.period,
- expression: "period"
- }],
- attrs: {
- id: "weekOption",
- type: "radio",
- name: "period",
- value: "week"
- },
- domProps: {
- checked: t._q(t.period, "week")
- },
- on: {
- change: function(e) {
- t.period = "week"
- }
- }
- }), t._v(" "), i("label", {
- style: {
- color: t.settings.title_color
- },
- attrs: {
- for: "weekOption"
- }
- }, [t._v("WEEK")]), t._v(" "), i("input", {
- directives: [{
- name: "model",
- rawName: "v-model",
- value: t.period,
- expression: "period"
- }],
- attrs: {
- id: "monthOption",
- type: "radio",
- name: "period",
- value: "month"
- },
- domProps: {
- checked: t._q(t.period, "month")
- },
- on: {
- change: function(e) {
- t.period = "month"
- }
- }
- }), t._v(" "), i("label", {
- style: {
- color: t.settings.title_color
- },
- attrs: {
- for: "monthOption"
- }
- }, [t._v("MONTH")]), t._v(" "), i("input", {
- directives: [{
- name: "model",
- rawName: "v-model",
- value: t.period,
- expression: "period"
- }],
- attrs: {
- id: "allTimeOption",
- type: "radio",
- name: "period",
- value: "all"
- },
- domProps: {
- checked: t._q(t.period, "all")
- },
- on: {
- change: function(e) {
- t.period = "all"
- }
- }
- }), t._v(" "), i("label", {
- style: {
- color: t.settings.title_color
- },
- attrs: {
- for: "allTimeOption"
- }
- }, [t._v("ALL-TIME")])])])
- },
- staticRenderFns: [function() {
- var t = this,
- e = t.$createElement,
- i = t._self._c || e;
- return i("td", {
- staticClass: "lb__user-rank"
- }, [i("div", {
- staticClass: "lb__user-rank-wrapper"
- }, [i("img", {
- staticClass: "lb__gold-outer",
- attrs: {
- src: n(21)
- }
- }), t._v(" "), i("img", {
- staticClass: "lb__gold-star",
- attrs: {
- src: n(8)
- }
- }), t._v(" "), i("span", [t._v("1")])])])
- }, function() {
- var t = this,
- e = t.$createElement,
- i = t._self._c || e;
- return i("div", {
- staticClass: "sparkle sparkle4"
- }, [i("img", {
- attrs: {
- src: n(1)
- }
- })])
- }, function() {
- var t = this,
- e = t.$createElement,
- i = t._self._c || e;
- return i("div", {
- staticClass: "sparkle sparkle5"
- }, [i("img", {
- attrs: {
- src: n(1)
- }
- })])
- }, function() {
- var t = this,
- e = t.$createElement,
- i = t._self._c || e;
- return i("div", {
- staticClass: "sparkle sparkle1"
- }, [i("img", {
- attrs: {
- src: n(1)
- }
- })])
- }, function() {
- var t = this,
- e = t.$createElement,
- i = t._self._c || e;
- return i("div", {
- staticClass: "sparkle sparkle2"
- }, [i("img", {
- attrs: {
- src: n(1)
- }
- })])
- }, function() {
- var t = this,
- e = t.$createElement,
- i = t._self._c || e;
- return i("div", {
- staticClass: "sparkle sparkle3"
- }, [i("img", {
- attrs: {
- src: n(1)
- }
- })])
- }]
- }
- }, function(t, e, n) {
- t.exports = n.p + "images/silver-star-night.svg?id=33f68783"
- }, function(t, e, n) {
- t.exports = n.p + "images/silver-star.svg?id=3e195c36"
- }, function(t, e, n) {
- t.exports = n.p + "images/bronze-star-night.svg?id=9a53076a"
- }, function(t, e, n) {
- t.exports = n.p + "images/bronze-star.svg?id=ef05f686"
- }, function(t, e, n) {
- t.exports = n.p + "images/balance-night.svg?id=c8435b88"
- }, function(t, e, n) {
- t.exports = n.p + "images/balance-gray.svg?id=dfd28da0"
- }, function(t, e, n) {
- t.exports = n.p + "images/night-donation-placeholder.gif?id=68d51289"
- }, function(t, e, n) {
- t.exports = n.p + "images/day-donation-placeholder.gif?id=ead633ac"
- }, function(t, e, n) {
- t.exports = n.p + "images/gold-stars.svg?id=79761d14"
- }, , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , function(t, e, n) {
- "use strict";
- Object.defineProperty(e, "__esModule", {
- value: !0
- });
- var i = n(3),
- o = n(53),
- s = n.n(o),
- r = n(11),
- a = n.n(r);
- n(55), n(56), new i.default({
- el: "#app",
- components: {
- leaderboard: a.a
- },
- render: function(t) {
- return t(s.a)
- }
- })
- }, function(t, e, n) {
- var i = n(2)(n(4), n(54), null, null, null);
- t.exports = i.exports
- }, function(t, e) {
- t.exports = {
- render: function() {
- var t = this,
- e = t.$createElement;
- return (t._self._c || e)("leaderboard")
- },
- staticRenderFns: []
- }
- }, function(t, e) {}, function(t, e) {
- ! function(t, e, n) {
- function i(t) {
- return function() {
- return this[t]
- }
- }
- function o(t, e) {
- var n = t.split("."),
- i = tt;
- !(n[0] in i) && i.execScript && i.execScript("var " + n[0]);
- for (var o; n.length && (o = n.shift());) n.length || void 0 === e ? i = i[o] ? i[o] : i[o] = {} : i[o] = e
- }
- function s(t, e, n) {
- return t.call.apply(t.bind, arguments)
- }
- function r(t, e, n) {
- if (!t) throw Error();
- if (2 < arguments.length) {
- var i = Array.prototype.slice.call(arguments, 2);
- return function() {
- var n = Array.prototype.slice.call(arguments);
- return Array.prototype.unshift.apply(n, i), t.apply(e, n)
- }
- }
- return function() {
- return t.apply(e, arguments)
- }
- }
- function a(t, e, n) {
- return a = Function.prototype.bind && -1 != Function.prototype.bind.toString().indexOf("native code") ? s : r, a.apply(Y, arguments)
- }
- function l(t, e) {
- this.G = t, this.v = e || t, this.z = this.v.document
- }
- function c(t, n, i) {
- t = t.z.getElementsByTagName(n)[0], t || (t = e.documentElement), t && t.lastChild && t.insertBefore(i, t.lastChild)
- }
- function u(t, e, n) {
- e = e || [], n = n || [];
- for (var i = t.className.split(/\s+/), o = 0; o < e.length; o += 1) {
- for (var s = Z, r = 0; r < i.length; r += 1)
- if (e[o] === i[r]) {
- s = Q;
- break
- } s || i.push(e[o])
- }
- for (e = [], o = 0; o < i.length; o += 1) {
- for (s = Z, r = 0; r < n.length; r += 1)
- if (i[o] === n[r]) {
- s = Q;
- break
- } s || e.push(i[o])
- }
- t.className = e.join(" ").replace(/\s+/g, " ").replace(/^\s+|\s+$/, "")
- }
- function h(t, e) {
- for (var n = t.className.split(/\s+/), i = 0, o = n.length; i < o; i++)
- if (n[i] == e) return Q;
- return Z
- }
- function d(t) {
- var e = t.v.location.protocol;
- return "about:" == e && (e = t.G.location.protocol), "https:" == e ? "https:" : "http:"
- }
- function p(t, e) {
- var n = t.createElement("link", {
- rel: "stylesheet",
- href: e
- }),
- i = Z;
- n.onload = function() {
- i || (i = Q)
- }, n.onerror = function() {
- i || (i = Q)
- }, c(t, "head", n)
- }
- function f(e, n, i, o) {
- var s = e.z.getElementsByTagName("head")[0];
- if (s) {
- var r = e.createElement("script", {
- src: n
- }),
- a = Z;
- return r.onload = r.onreadystatechange = function() {
- a || this.readyState && "loaded" != this.readyState && "complete" != this.readyState || (a = Q, i && i(Y), r.onload = r.onreadystatechange = Y, "HEAD" == r.parentNode.tagName && s.removeChild(r))
- }, s.appendChild(r), t.setTimeout(function() {
- a || (a = Q, i && i(Error("Script load timeout")))
- }, o || 5e3), r
- }
- return Y
- }
- function m(t, e, n) {
- this.M = t, this.U = e, this.Aa = n
- }
- function v(t, e, n, i) {
- this.d = t != Y ? t : Y, this.o = e != Y ? e : Y, this.aa = n != Y ? n : Y, this.f = i != Y ? i : Y
- }
- function g(t) {
- t = nt.exec(t);
- var e = Y,
- n = Y,
- i = Y,
- o = Y;
- return t && (t[1] !== Y && t[1] && (e = parseInt(t[1], 10)), t[2] !== Y && t[2] && (n = parseInt(t[2], 10)), t[3] !== Y && t[3] && (i = parseInt(t[3], 10)), t[4] !== Y && t[4] && (o = /^[0-9]+$/.test(t[4]) ? parseInt(t[4], 10) : t[4])), new v(e, n, i, o)
- }
- function b(t, e, n, i, o, s, r, a, l, c, u) {
- this.K = t, this.Ga = e, this.za = n, this.fa = i, this.Ea = o, this.ea = s, this.wa = r, this.Fa = a, this.va = l, this.da = c, this.j = u
- }
- function _(t, e) {
- this.a = t, this.I = e
- }
- function y(t) {
- var e = x(t.a, /(iPod|iPad|iPhone|Android|Windows Phone|BB\d{2}|BlackBerry)/, 1);
- return "" != e ? (/BB\d{2}/.test(e) && (e = "BlackBerry"), e) : (t = x(t.a, /(Linux|Mac_PowerPC|Macintosh|Windows|CrOS)/, 1), "" != t ? ("Mac_PowerPC" == t && (t = "Macintosh"), t) : "Unknown")
- }
- function w(t) {
- var e = x(t.a, /(OS X|Windows NT|Android) ([^;)]+)/, 2);
- if (e || (e = x(t.a, /Windows Phone( OS)? ([^;)]+)/, 2)) || (e = x(t.a, /(iPhone )?OS ([\d_]+)/, 2))) return e;
- if (e = x(t.a, /(?:Linux|CrOS) ([^;)]+)/, 1))
- for (var e = e.split(/\s/), n = 0; n < e.length; n += 1)
- if (/^[\d\._]+$/.test(e[n])) return e[n];
- return (t = x(t.a, /(BB\d{2}|BlackBerry).*?Version\/([^\s]*)/, 2)) ? t : "Unknown"
- }
- function k(t) {
- var e = y(t),
- n = w(t),
- i = g(n),
- o = x(t.a, /AppleWeb(?:K|k)it\/([\d\.\+]+)/, 1),
- s = g(o),
- r = "Unknown",
- a = new v,
- l = "Unknown",
- c = Z;
- return /OPR\/[\d.]+/.test(t.a) ? r = "Opera" : -1 != t.a.indexOf("Chrome") || -1 != t.a.indexOf("CrMo") || -1 != t.a.indexOf("CriOS") ? r = "Chrome" : /Silk\/\d/.test(t.a) ? r = "Silk" : "BlackBerry" == e || "Android" == e ? r = "BuiltinBrowser" : -1 != t.a.indexOf("PhantomJS") ? r = "PhantomJS" : -1 != t.a.indexOf("Safari") ? r = "Safari" : -1 != t.a.indexOf("AdobeAIR") && (r = "AdobeAIR"), "BuiltinBrowser" == r ? l = "Unknown" : "Silk" == r ? l = x(t.a, /Silk\/([\d\._]+)/, 1) : "Chrome" == r ? l = x(t.a, /(Chrome|CrMo|CriOS)\/([\d\.]+)/, 2) : -1 != t.a.indexOf("Version/") ? l = x(t.a, /Version\/([\d\.\w]+)/, 1) : "AdobeAIR" == r ? l = x(t.a, /AdobeAIR\/([\d\.]+)/, 1) : "Opera" == r ? l = x(t.a, /OPR\/([\d.]+)/, 1) : "PhantomJS" == r && (l = x(t.a, /PhantomJS\/([\d.]+)/, 1)), a = g(l), c = "AdobeAIR" == r ? 2 < a.d || 2 == a.d && 5 <= a.o : "BlackBerry" == e ? 10 <= i.d : "Android" == e ? 2 < i.d || 2 == i.d && 1 < i.o : 526 <= s.d || 525 <= s.d && 13 <= s.o, new b(r, a, l, "AppleWebKit", s, o, e, i, n, C(t.I), new m(c, 536 > s.d || 536 == s.d && 11 > s.o, "iPhone" == e || "iPad" == e || "iPod" == e || "Macintosh" == e))
- }
- function x(t, e, n) {
- return (t = t.match(e)) && t[n] ? t[n] : ""
- }
- function C(t) {
- if (t.documentMode) return t.documentMode
- }
- function O(t) {
- this.ua = t || "-"
- }
- function T(t, e) {
- this.K = t, this.V = 4, this.L = "n";
- var n = (e || "n4").match(/^([nio])([1-9])$/i);
- n && (this.L = n[1], this.V = parseInt(n[2], 10))
- }
- function L(t) {
- return t.L + t.V
- }
- function S(t) {
- var e = 4,
- n = "n",
- i = Y;
- return t && ((i = t.match(/(normal|oblique|italic)/i)) && i[1] && (n = i[1].substr(0, 1).toLowerCase()), (i = t.match(/([1-9]00|normal|bold)/i)) && i[1] && (/bold/i.test(i[1]) ? e = 7 : /[1-9]00/.test(i[1]) && (e = parseInt(i[1].substr(0, 1), 10)))), n + e
- }
- function E(t, e, n) {
- this.c = t, this.m = e, this.O = n, this.h = "wf", this.g = new O("-")
- }
- function j(t) {
- var e = h(t.m, t.g.f(t.h, "active")),
- n = [],
- i = [t.g.f(t.h, "loading")];
- e || n.push(t.g.f(t.h, "inactive")), u(t.m, n, i), P(t, "inactive")
- }
- function P(t, e, n) {
- t.O[e] && (n ? t.O[e](n.getName(), L(n)) : t.O[e]())
- }
- function A() {
- this.w = {}
- }
- function N(t, e) {
- this.c = t, this.C = e, this.s = this.c.createElement("span", {
- "aria-hidden": "true"
- }, this.C)
- }
- function I(t, e) {
- var n;
- n = [];
- for (var i = e.K.split(/,\s*/), o = 0; o < i.length; o++) {
- var s = i[o].replace(/['"]/g, ""); - 1 == s.indexOf(" ") ? n.push(s) : n.push("'" + s + "'")
- }
- n = n.join(","), i = "normal", o = e.V + "00", "o" === e.L ? i = "oblique" : "i" === e.L && (i = "italic"), t.s.style.cssText = "display:block;position:absolute;top:-999px;left:-999px;font-size:300px;width:auto;height:auto;line-height:normal;margin:0;padding:0;font-variant:normal;white-space:nowrap;font-family:" + n + ";font-style:" + i + ";font-weight:" + o + ";"
- }
- function $(t) {
- c(t.c, "body", t.s)
- }
- function B(t, e, n, i, o, s, r, a) {
- this.W = t, this.sa = e, this.c = n, this.q = i, this.C = a || "BESbswy", this.j = o, this.F = {}, this.T = s || 5e3, this.Z = r || Y, this.B = this.A = Y, t = new N(this.c, this.C), $(t);
- for (var l in ot) ot.hasOwnProperty(l) && (I(t, new T(ot[l], L(this.q))), this.F[ot[l]] = t.s.offsetWidth);
- t.remove()
- }
- function U(t, e, n) {
- for (var i in ot)
- if (ot.hasOwnProperty(i) && e === t.F[ot[i]] && n === t.F[ot[i]]) return Q;
- return Z
- }
- function R(t) {
- var e = t.A.s.offsetWidth,
- n = t.B.s.offsetWidth;
- e === t.F.serif && n === t.F["sans-serif"] || t.j.U && U(t, e, n) ? et() - t.xa >= t.T ? t.j.U && U(t, e, n) && (t.Z === Y || t.Z.hasOwnProperty(t.q.getName())) ? M(t, t.W) : M(t, t.sa) : setTimeout(a(function() {
- R(this)
- }, t), 25) : M(t, t.W)
- }
- function M(t, e) {
- t.A.remove(), t.B.remove(), e(t.q)
- }
- function W(t, e, n, i) {
- this.c = e, this.t = n, this.P = 0, this.ba = this.Y = Z, this.T = i, this.j = t.j
- }
- function q(t, e, n, i, o) {
- if (0 === e.length && o) j(t.t);
- else
- for (t.P += e.length, o && (t.Y = o), o = 0; o < e.length; o++) {
- var s = e[o],
- r = n[s.getName()],
- l = t.t,
- c = s;
- u(l.m, [l.g.f(l.h, c.getName(), L(c).toString(), "loading")]), P(l, "fontloading", c), new B(a(t.ga, t), a(t.ha, t), t.c, s, t.j, t.T, i, r).start()
- }
- }
- function F(t) {
- 0 == --t.P && t.Y && (t.ba ? (t = t.t, u(t.m, [t.g.f(t.h, "active")], [t.g.f(t.h, "loading"), t.g.f(t.h, "inactive")]), P(t, "active")) : j(t.t))
- }
- function D(t) {
- this.G = t, this.u = new A, this.ya = new _(t.navigator.userAgent, t.document), this.a = this.ya.parse(), this.Q = this.R = 0
- }
- function H(t, e) {
- this.c = t, this.e = e, this.k = []
- }
- function z(t, e) {
- this.c = t, this.e = e, this.k = []
- }
- function G(t, e) {
- this.c = t, this.e = e
- }
- function V(t, e, n) {
- this.N = t || e + st, this.p = [], this.S = [], this.ca = n || ""
- }
- function J(t) {
- this.p = t, this.$ = [], this.J = {}
- }
- function X(t, n) {
- this.a = new _(navigator.userAgent, e).parse(), this.c = t, this.e = n
- }
- function K(t, e) {
- this.c = t, this.e = e, this.k = []
- }
- var Q = !0,
- Y = null,
- Z = !1,
- tt = this,
- et = Date.now || function() {
- return +new Date
- };
- l.prototype.createElement = function(t, e, n) {
- if (t = this.z.createElement(t), e)
- for (var i in e) e.hasOwnProperty(i) && ("style" == i ? t.style.cssText = e[i] : t.setAttribute(i, e[i]));
- return n && t.appendChild(this.z.createTextNode(n)), t
- }, o("webfont.BrowserInfo", m), m.prototype.pa = i("M"), m.prototype.hasWebFontSupport = m.prototype.pa, m.prototype.qa = i("U"), m.prototype.hasWebKitFallbackBug = m.prototype.qa, m.prototype.ra = i("Aa"), m.prototype.hasWebKitMetricsBug = m.prototype.ra;
- var nt = /^([0-9]+)(?:[\._-]([0-9]+))?(?:[\._-]([0-9]+))?(?:[\._+-]?(.*))?$/;
- v.prototype.toString = function() {
- return [this.d, this.o || "", this.aa || "", this.f || ""].join("")
- }, o("webfont.UserAgent", b), b.prototype.getName = i("K"), b.prototype.getName = b.prototype.getName, b.prototype.oa = i("za"), b.prototype.getVersion = b.prototype.oa, b.prototype.ka = i("fa"), b.prototype.getEngine = b.prototype.ka, b.prototype.la = i("ea"), b.prototype.getEngineVersion = b.prototype.la, b.prototype.ma = i("wa"), b.prototype.getPlatform = b.prototype.ma, b.prototype.na = i("va"), b.prototype.getPlatformVersion = b.prototype.na, b.prototype.ja = i("da"), b.prototype.getDocumentMode = b.prototype.ja, b.prototype.ia = i("j"), b.prototype.getBrowserInfo = b.prototype.ia;
- var it = new b("Unknown", new v, "Unknown", "Unknown", new v, "Unknown", "Unknown", new v, "Unknown", void 0, new m(Z, Z, Z));
- _.prototype.parse = function() {
- var t;
- if (-1 != this.a.indexOf("MSIE") || -1 != this.a.indexOf("Trident/")) {
- t = y(this);
- var e = w(this),
- n = g(e),
- i = Y,
- o = Y,
- s = Y,
- r = Y,
- a = x(this.a, /Trident\/([\d\w\.]+)/, 1),
- l = C(this.I),
- i = -1 != this.a.indexOf("MSIE") ? x(this.a, /MSIE ([\d\w\.]+)/, 1) : x(this.a, /rv:([\d\w\.]+)/, 1),
- o = g(i);
- "" != a ? (s = "Trident", r = g(a)) : (s = "Unknown", r = new v, a = "Unknown"), t = new b("MSIE", o, i, s, r, a, t, n, e, l, new m("Windows" == t && 6 <= o.d || "Windows Phone" == t && 8 <= n.d, Z, Z))
- } else if (-1 != this.a.indexOf("Opera")) t: if (t = "Unknown", e = x(this.a, /Presto\/([\d\w\.]+)/, 1), n = g(e), i = w(this), o = g(i), s = C(this.I), n.d !== Y ? t = "Presto" : (-1 != this.a.indexOf("Gecko") && (t = "Gecko"), e = x(this.a, /rv:([^\)]+)/, 1), n = g(e)), -1 != this.a.indexOf("Opera Mini/")) r = x(this.a, /Opera Mini\/([\d\.]+)/, 1), a = g(r), t = new b("OperaMini", a, r, t, n, e, y(this), o, i, s, new m(Z, Z, Z));
- else {
- if (-1 != this.a.indexOf("Version/") && (r = x(this.a, /Version\/([\d\.]+)/, 1), a = g(r), a.d !== Y)) {
- t = new b("Opera", a, r, t, n, e, y(this), o, i, s, new m(10 <= a.d, Z, Z));
- break t
- }
- r = x(this.a, /Opera[\/ ]([\d\.]+)/, 1), a = g(r), t = a.d !== Y ? new b("Opera", a, r, t, n, e, y(this), o, i, s, new m(10 <= a.d, Z, Z)) : new b("Opera", new v, "Unknown", t, n, e, y(this), o, i, s, new m(Z, Z, Z))
- }
- else /OPR\/[\d.]+/.test(this.a) ? t = k(this) : /AppleWeb(K|k)it/.test(this.a) ? t = k(this) : -1 != this.a.indexOf("Gecko") ? (t = "Unknown", e = new v, n = "Unknown", i = w(this), o = g(i), s = Z, -1 != this.a.indexOf("Firefox") ? (t = "Firefox", n = x(this.a, /Firefox\/([\d\w\.]+)/, 1), e = g(n), s = 3 <= e.d && 5 <= e.o) : -1 != this.a.indexOf("Mozilla") && (t = "Mozilla"), r = x(this.a, /rv:([^\)]+)/, 1), a = g(r), s || (s = 1 < a.d || 1 == a.d && 9 < a.o || 1 == a.d && 9 == a.o && 2 <= a.aa || r.match(/1\.9\.1b[123]/) != Y || r.match(/1\.9\.1\.[\d\.]+/) != Y), t = new b(t, e, n, "Gecko", a, r, y(this), o, i, C(this.I), new m(s, Z, Z))) : t = it;
- return t
- }, O.prototype.f = function(t) {
- for (var e = [], n = 0; n < arguments.length; n++) e.push(arguments[n].replace(/[\W_]+/g, "").toLowerCase());
- return e.join(this.ua)
- }, T.prototype.getName = i("K"), N.prototype.remove = function() {
- var t = this.s;
- t.parentNode && t.parentNode.removeChild(t)
- };
- var ot = {
- Da: "serif",
- Ca: "sans-serif",
- Ba: "monospace"
- };
- B.prototype.start = function() {
- this.A = new N(this.c, this.C), $(this.A), this.B = new N(this.c, this.C), $(this.B), this.xa = et(), I(this.A, new T(this.q.getName() + ",serif", L(this.q))), I(this.B, new T(this.q.getName() + ",sans-serif", L(this.q))), R(this)
- }, W.prototype.ga = function(t) {
- var e = this.t;
- u(e.m, [e.g.f(e.h, t.getName(), L(t).toString(), "active")], [e.g.f(e.h, t.getName(), L(t).toString(), "loading"), e.g.f(e.h, t.getName(), L(t).toString(), "inactive")]), P(e, "fontactive", t), this.ba = Q, F(this)
- }, W.prototype.ha = function(t) {
- var e = this.t,
- n = h(e.m, e.g.f(e.h, t.getName(), L(t).toString(), "active")),
- i = [],
- o = [e.g.f(e.h, t.getName(), L(t).toString(), "loading")];
- n || i.push(e.g.f(e.h, t.getName(), L(t).toString(), "inactive")), u(e.m, i, o), P(e, "fontinactive", t), F(this)
- }, D.prototype.load = function(t) {
- var e = t.context || this.G;
- this.c = new l(this.G, e);
- var e = new E(this.c, e.document.documentElement, t),
- n = [],
- i = t.timeout;
- u(e.m, [e.g.f(e.h, "loading")]), P(e, "loading");
- var o, n = this.u,
- s = this.c,
- r = [];
- for (o in t)
- if (t.hasOwnProperty(o)) {
- var c = n.w[o];
- c && r.push(c(t[o], s))
- } for (n = r, this.Q = this.R = n.length, t = new W(this.a, this.c, e, i), o = 0, i = n.length; o < i; o++) s = n[o], s.H(this.a, a(this.ta, this, s, e, t))
- }, D.prototype.ta = function(t, e, n, i) {
- var o = this;
- i ? t.load(function(t, e, i) {
- var s = 0 == --o.R;
- setTimeout(function() {
- q(n, t, e || {}, i || Y, s)
- }, 0)
- }) : (t = 0 == --this.R, this.Q--, t && 0 == this.Q && j(e), q(n, [], {}, Y, t))
- }, H.prototype.D = function(t) {
- return d(this.c) + (this.e.api || "//f.fontdeck.com/s/css/js/") + (this.c.v.location.hostname || this.c.G.location.hostname) + "/" + t + ".js"
- }, H.prototype.H = function(t, e) {
- var n = this.e.id,
- i = this.c.v,
- o = this;
- n ? (i.__webfontfontdeckmodule__ || (i.__webfontfontdeckmodule__ = {}), i.__webfontfontdeckmodule__[n] = function(t, n) {
- for (var i = 0, s = n.fonts.length; i < s; ++i) {
- var r = n.fonts[i];
- o.k.push(new T(r.name, S("font-weight:" + r.weight + ";font-style:" + r.style)))
- }
- e(t)
- }, f(this.c, this.D(n), function(t) {
- t && e(Z)
- })) : e(Z)
- }, H.prototype.load = function(t) {
- t(this.k)
- }, z.prototype.D = function(t) {
- var e = d(this.c);
- return (this.e.api || e + "//use.typekit.net") + "/" + t + ".js"
- }, z.prototype.H = function(t, e) {
- var n = this.e.id,
- i = this.e,
- o = this.c.v,
- s = this;
- n ? (o.__webfonttypekitmodule__ || (o.__webfonttypekitmodule__ = {}), o.__webfonttypekitmodule__[n] = function(n) {
- n(t, i, function(t, n, i) {
- for (var o = 0; o < n.length; o += 1) {
- var r = i[n[o]];
- if (r)
- for (var a = 0; a < r.length; a += 1) s.k.push(new T(n[o], r[a]));
- else s.k.push(new T(n[o]))
- }
- e(t)
- })
- }, f(this.c, this.D(n), function(t) {
- t && e(Z)
- }, 2e3)) : e(Z)
- }, z.prototype.load = function(t) {
- t(this.k)
- }, G.prototype.load = function(t) {
- var e, n, i = this.e.urls || [],
- o = this.e.families || [],
- s = this.e.testStrings || {};
- for (e = 0, n = i.length; e < n; e++) p(this.c, i[e]);
- for (i = [], e = 0, n = o.length; e < n; e++) {
- var r = o[e].split(":");
- if (r[1])
- for (var a = r[1].split(","), l = 0; l < a.length; l += 1) i.push(new T(r[0], a[l]));
- else i.push(new T(r[0]))
- }
- t(i, s)
- }, G.prototype.H = function(t, e) {
- return e(t.j.M)
- };
- var st = "//fonts.googleapis.com/css";
- V.prototype.f = function() {
- if (0 == this.p.length) throw Error("No fonts to load!");
- if (-1 != this.N.indexOf("kit=")) return this.N;
- for (var t = this.p.length, e = [], n = 0; n < t; n++) e.push(this.p[n].replace(/ /g, "+"));
- return t = this.N + "?family=" + e.join("%7C"), 0 < this.S.length && (t += "&subset=" + this.S.join(",")), 0 < this.ca.length && (t += "&text=" + encodeURIComponent(this.ca)), t
- };
- var rt = {
- latin: "BESbswy",
- cyrillic: "йяЖ",
- greek: "αβΣ",
- khmer: "កខគ",
- Hanuman: "កខគ"
- },
- at = {
- thin: "1",
- extralight: "2",
- "extra-light": "2",
- ultralight: "2",
- "ultra-light": "2",
- light: "3",
- regular: "4",
- book: "4",
- medium: "5",
- "semi-bold": "6",
- semibold: "6",
- "demi-bold": "6",
- demibold: "6",
- bold: "7",
- "extra-bold": "8",
- extrabold: "8",
- "ultra-bold": "8",
- ultrabold: "8",
- black: "9",
- heavy: "9",
- l: "3",
- r: "4",
- b: "7"
- },
- lt = {
- i: "i",
- italic: "i",
- n: "n",
- normal: "n"
- },
- ct = RegExp("^(thin|(?:(?:extra|ultra)-?)?light|regular|book|medium|(?:(?:semi|demi|extra|ultra)-?)?bold|black|heavy|l|r|b|[1-9]00)?(n|i|normal|italic)?$");
- J.prototype.parse = function() {
- for (var t = this.p.length, e = 0; e < t; e++) {
- var n = this.p[e].split(":"),
- i = n[0].replace(/\+/g, " "),
- o = ["n4"];
- if (2 <= n.length) {
- var s, r = n[1];
- if (s = [], r)
- for (var r = r.split(","), a = r.length, l = 0; l < a; l++) {
- var c;
- if (c = r[l], c.match(/^[\w-]+$/)) {
- c = ct.exec(c.toLowerCase());
- var u = void 0;
- if (c == Y) u = "";
- else {
- if (u = void 0, (u = c[1]) == Y || "" == u) u = "4";
- else var h = at[u],
- u = h || (isNaN(u) ? "4" : u.substr(0, 1));
- u = [c[2] == Y || "" == c[2] ? "n" : lt[c[2]], u].join("")
- }
- c = u
- } else c = "";
- c && s.push(c)
- }
- 0 < s.length && (o = s), 3 == n.length && (n = n[2], s = [], n = n ? n.split(",") : s, 0 < n.length && (n = rt[n[0]]) && (this.J[i] = n))
- }
- for (this.J[i] || (n = rt[i]) && (this.J[i] = n), n = 0; n < o.length; n += 1) this.$.push(new T(i, o[n]))
- }
- };
- var ut = {
- Arimo: Q,
- Cousine: Q,
- Tinos: Q
- };
- X.prototype.H = function(t, e) {
- e(t.j.M)
- }, X.prototype.load = function(t) {
- var e = this.c;
- if ("MSIE" == this.a.getName() && this.e.blocking != Q) {
- var n = a(this.X, this, t);
- ! function t() {
- e.z.body ? n() : setTimeout(t, 0)
- }()
- } else this.X(t)
- }, X.prototype.X = function(t) {
- for (var e = this.c, n = new V(this.e.api, d(e), this.e.text), i = this.e.families, o = i.length, s = 0; s < o; s++) {
- var r = i[s].split(":");
- 3 == r.length && n.S.push(r.pop());
- var a = "";
- 2 == r.length && "" != r[1] && (a = ":"), n.p.push(r.join(a))
- }
- i = new J(i), i.parse(), p(e, n.f()), t(i.$, i.J, ut)
- }, K.prototype.H = function(t, e) {
- var n = this,
- i = n.e.projectId,
- o = n.e.version;
- if (i) {
- var s = n.c.v;
- f(this.c, n.D(i, o), function(o) {
- if (o) e(Z);
- else {
- if (s["__mti_fntLst" + i] && (o = s["__mti_fntLst" + i]()))
- for (var r = 0; r < o.length; r++) n.k.push(new T(o[r].fontfamily));
- e(t.j.M)
- }
- }).id = "__MonotypeAPIScript__" + i
- } else e(Z)
- }, K.prototype.D = function(t, e) {
- return d(this.c) + "//" + (this.e.api || "fast.fonts.net/jsapi").replace(/^.*http(s?):(\/\/)?/, "") + "/" + t + ".js" + (e ? "?v=" + e : "")
- }, K.prototype.load = function(t) {
- t(this.k)
- };
- var ht = new D(tt);
- ht.u.w.custom = function(t, e) {
- return new G(e, t)
- }, ht.u.w.fontdeck = function(t, e) {
- return new H(e, t)
- }, ht.u.w.monotype = function(t, e) {
- return new K(e, t)
- }, ht.u.w.typekit = function(t, e) {
- return new z(e, t)
- }, ht.u.w.google = function(t, e) {
- return new X(e, t)
- }, tt.WebFont || (tt.WebFont = {}, tt.WebFont.load = a(ht.load, ht), tt.WebFontConfig && ht.load(tt.WebFontConfig))
- }(this, document)
- }], [52]);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement