Created
July 19, 2017 07:42
-
-
Save serjepatoff/22e15e75bb41ff6f0cf8925476ed268a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var nsqpd, | |
nsqpdp, | |
nspdbbpddp, | |
nsdqq = {}, | |
nsdqqbdqqd = {}, | |
nsdqbp, | |
nsqpbpd, | |
nsdqqb, | |
nsqpbpdqqd, | |
nsdbpdbqd, | |
nspdbbp, | |
nsdqbpbdb, | |
nspdppdd, | |
nspqqqbd, | |
nsqpbp, | |
nspdppdddp, | |
nspqqqb = -1, | |
nsdbpd = -1, | |
nspdp = [], | |
nsqpbpdqq = [], | |
nsqpdpqqbb = "fspm", | |
nsdqb = null, | |
nds = window.ndsapi || (window.ndsapi = {}); | |
function ndwti(a) { | |
nspqqqb = nspqd(); | |
"string" === typeof a && (a = nsbbpddbpd(a)); | |
nsqpd = a.did; | |
nsqpdp = a.fff; | |
nspdbbpddp = a.ffft; | |
nsdqq = a.wmd; | |
nsdqqbdqqd = a.fd; | |
nsdqbp = a.ffmm; | |
nsqpbpd = a.fsss; | |
nsdqqb = a.ddkv; | |
nsqpbpdqqd = a.dddf; | |
nsdbpdbqd = a.dddr; | |
nspdbbp = a.ddde; | |
nsdqbpbdb = a.ppns; | |
nspdppdd = a.ppmm; | |
nspqqqbd = a.ppdd; | |
nsqpbp = a.ppds; | |
nspdppdddp = a.wwwe; | |
"undefined" !== typeof a.mp && (nsdqb = a.mp); | |
nsqpbqd(); | |
for (var b = 0; b < nsqpbpdqq.length; b++) | |
(0, nsqpbpdqq[b][1])(a, nsdqq[nsqpbpdqq[b][0]]); | |
nsqpbqd(); | |
nsdbpd = nspqd(); | |
nsqpbqd() | |
} | |
function ndwtr() { | |
for (var a = 0; a < nsqpbpdqq.length; a++) | |
if (3 <= nsqpbpdqq[a].length && "undefined" !== typeof nsqpbpdqq[a][2]) | |
(0, nsqpbpdqq[a][2])(); | |
nsqpbqd() | |
} | |
function nsbbbdbpqp(a) { | |
return nsqpdp.replace(nspdbbpddp, a) | |
} | |
function nsppbdq(a) { | |
nspdp.push(a); | |
nspdqpp(nsbbbdbpqp("jse"), nspqq.stringify(nspdp)) | |
} | |
function nsbpd(a, b) { | |
nsdqqbdqqd[a] = b | |
} | |
function nsqpbqd() { | |
var a = "", | |
b; | |
for (b in nsdqqbdqqd) | |
nsdqbp === nsqpdpqqbb ? a += nsbbbdbpqp(b) + nsdqqb + nsdqqbdqqd[b] + nsqpbpdqqd : nspdqpp(nsbbbdbpqp(b), nsdqqbdqqd[b]); | |
nsdqbp === nsqpdpqqbb && (a.substring(a.length - nsqpbpdqqd.length, a.length) === nsqpbpdqqd && (a = a.substring(0, a.length - nsqpbpdqqd.length)), nspdbbp && (a = a.replace(/[^a-zA-Z0-9\-_~\^|\.,]+/g, nsdbpdbqd)), nspdqpp(nsqpbpd, a)) | |
} | |
function nspqdqqpbd(a, b, c, d) { | |
nsqpbpdqq.push([a, b, c, d]) | |
} | |
function nsqpbqdq(a) { | |
return a | |
} | |
function nsbbpddbpd(a) { | |
return a | |
} | |
function nspdqpp(a, b) { | |
var c = [""]; | |
null !== nsdqb && (c = nsdqb); | |
for (var d = 0; d < c.length; d++) { | |
var e = c[d]; | |
"" != e && (e = "-" + e); | |
var f = nsbbbdbp(a + e); | |
if (null !== f) | |
f.value = b; | |
else { | |
var h = nsbbbdbp(nsqpd + e), | |
f = document.createElement("input"); | |
f.id = a + e; | |
f.name = a; | |
f.value = b; | |
f.type = "hidden"; | |
null !== h && h.appendChild(f) | |
} | |
} | |
} | |
nds.bindNewFields = function(a) { | |
for (var b = 0; b < nsqpbpdqq.length; b++) | |
if (4 <= nsqpbpdqq[b].length && "undefined" !== typeof nsqpbpdqq[b][3]) | |
(0, nsqpbpdqq[b][3])(a); | |
nsqpbqd() | |
}; | |
"undefined" == typeof nds && (nds = window.ndsapi || (window.ndsapi = {})); | |
nds.common = {}; | |
nds.common.util = {}; | |
nds.common.bi = {}; | |
nds.common.querySelectorAll = function(a) { | |
return document.querySelectorAll(a) | |
}; | |
document.querySelectorAll || (nds.common.querySelectorAll = function(a) { | |
return [] | |
}); | |
nds.common.addEventListener = function(a, b, c) { | |
try { | |
a.addEventListener ? a.addEventListener(b, c, !1) : a.attachEvent && a.attachEvent("on" + b, c) | |
} catch (d) {} | |
return function() { | |
nds.common.removeEventListener(a, b, c) | |
} | |
}; | |
nds.common.removeEventListener = function(a, b, c) { | |
try { | |
a.removeEventListener ? a.removeEventListener(b, c, !1) : a.detachEvent && a.detachEvent("on" + b, c) | |
} catch (d) {} | |
}; | |
nds.common.util.truncTo = function(a, b, c) { | |
c = "undefined" !== typeof c ? c : "TRUNC"; | |
if ("string" !== typeof a) | |
return a; | |
var d = b - c.length; | |
return 1 > d ? a.substring(0, b) : a.length > d ? a.substring(0, d) + c : a | |
}; | |
nds.common.util.quickHash = function(a) { | |
var b = 0, | |
c = 0, | |
d, | |
e, | |
f; | |
if (0 === a.length) | |
return "00000000"; | |
d = 0; | |
for (e = a.length; d < e; d++) | |
f = a.charCodeAt(d), 0 === d % 2 ? (b = (b << 5) - b + f, b |= 0) : (c = (c << 5) - c + f, c |= 0); | |
0 > b && (b = 4294967295 + b + 1); | |
0 > c && (c = 4294967295 + c + 1); | |
return b.toString(16) + c.toString(16) | |
}; | |
nds.common.bi.getScreenFingerprint = function() { | |
var a = ""; | |
window.screen && (a += [window.screen.width, window.screen.height].sort().join("x"), a += " " + window.screen.colorDepth); | |
return a | |
}; | |
nds.common.util.getComputedStyle = function(a, b) { | |
if (document.defaultView && document.defaultView.getComputedStyle) | |
return document.defaultView.getComputedStyle(a, null).getPropertyValue(b); | |
try { | |
if (a.currentStyle) | |
return b = b.replace(/-(\w)/g, function(a, b) { | |
return b.toUpperCase() | |
}), a.currentStyle[b] | |
} catch (c) {} | |
}; | |
nds.common.bi.getScreenInfo = function() { | |
var a = ""; | |
"undefined" !== typeof window.screen && ("undefined" !== typeof window.screen.width && "undefined" !== typeof window.screen.height && (a += window.screen.width + "x" + window.screen.height), "undefined" !== typeof window.screen.availWidth && "undefined" !== typeof window.screen.availHeight && (a += " " + window.screen.availWidth + "x" + window.screen.availHeight), "undefined" !== typeof window.screen.colorDepth && (a += " " + window.screen.colorDepth), "undefined" !== typeof window.screen.pixelDepth && | |
(a += " " + window.screen.pixelDepth)); | |
return a | |
}; | |
nds.common.bi.isFlashInstalled = function() { | |
try { | |
if (new ActiveXObject("ShockwaveFlash.ShockwaveFlash")) | |
return !0 | |
} catch (a) {} | |
try { | |
if (void 0 != navigator.mimeTypes["application/x-shockwave-flash"] && navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin) | |
return !0 | |
} catch (a) {} | |
return !1 | |
}; | |
nds.common.bi.getDeviceLanguage = function() { | |
return window.navigator.userLanguage || window.navigator.language || window.navigator.browserLanguage | |
}; | |
nds.common.bi.getDeviceTimezone = function() { | |
var a = (new Date(2014, 0, 2)).getTimezoneOffset(), | |
b = (new Date(2014, 5, 2)).getTimezoneOffset(); | |
return Math.max(a, b) | |
}; | |
nds.common.bi.getPlugins = function() { | |
var a = [], | |
b = /([0-9]+)\.[0-9|.]+/g; | |
if (window.ActiveXObject) { | |
if (document.plugins && 0 < document.plugins.length) | |
for (var c = 0; c < document.plugins.length; c++) | |
a.push(document.plugins[c].src.replace(b, "$1")) | |
} else | |
try { | |
if (navigator.plugins && 0 < navigator.plugins.length) | |
for (c = 0; c < navigator.plugins.length; c++) | |
a.push(navigator.plugins[c].name.replace(b, "$1")) | |
} catch (d) { | |
a.push("denied") | |
} | |
0 < a.length && a.sort(); | |
b = "p"; | |
for (c = 0; c < a.length; c++) | |
b += "," + a[c]; | |
return b | |
}; | |
nds.common.bi.getWebGLInfo = function() { | |
for (var a = {}, b = document.createElement("canvas"), c = ["webgl", "experimental-webgl", "moz-webgl", "webkit-3d"], d, e = 0; e < c.length; e++) | |
try { | |
if (d = b.getContext(c[e])) { | |
a.ContextName = c[e]; | |
break | |
} | |
} catch (f) {} | |
if (!(d && "getParameter" in d)) | |
return null; | |
b = "VENDOR VERSION RENDERER SHADING_LANGUAGE_VERSION DEPTH_BITS MAX_VERTEX_ATTRIBS MAX_VERTEX_TEXTURE_IMAGE_UNITS MAX_VARYING_VECTORS MAX_VERTEX_UNIFORM_VECTORS MAX_COMBINED_TEXTURE_IMAGE_UNITS MAX_TEXTURE_SIZE MAX_CUBE_MAP_TEXTURE_SIZE NUM_COMPRESSED_TEXTURE_FORMATS MAX_RENDERBUFFER_SIZE MAX_VIEWPORT_DIMS ALIASED_LINE_WIDTH_RANGE ALIASED_POINT_SIZE_RANGE".split(" "); | |
for (c = 0; c < b.length; c++) | |
e = b[c], e in d && (a[e] = d.getParameter(d[e])); | |
return a | |
}; | |
nds.common.bi.getDeviceTouchSettings = function() { | |
var a = { | |
mtp: "NA" | |
}; | |
"undefined" !== typeof navigator.maxTouchPoints ? a.mtp = navigator.maxTouchPoints : "undefined" !== typeof navigator.msMaxTouchPoints && (a.mtp = navigator.msMaxTouchPoints); | |
a.ts = !1; | |
"ontouchstart" in window && (a.ts = !0); | |
a.te = !1; | |
try { | |
document.createEvent("TouchEvent"), a.te = !0 | |
} catch (b) {} | |
return a | |
}; | |
nds.common.bi.getCookiesEnabled = function(a) { | |
var b = !0, | |
c = "undefined" !== typeof navigator.cookieEnabled && navigator.cookieEnabled ? !0 : !1; | |
if (1 == a) | |
try { | |
document.cookie = "ncookietest=1", b = -1 != document.cookie.indexOf("ncookietest="), document.cookie = "ncookietest=1; expires=Thu, 01-Jan-1970 00:00:01 GMT" | |
} catch (d) {} | |
return { | |
tc: b, | |
nc: c | |
} | |
}; | |
nds.common.bi.getHTML5CanvasSignature = function() { | |
var a = "NA"; | |
try { | |
var b = document.createElement("canvas"); | |
b.width = 200; | |
b.height = 40; | |
b.style.display = "inline"; | |
var c = b.getContext("2d"); | |
c.fillText("aBc#$efG~ \ude73\ud63d", 4, 10); | |
c.fillStyle = "rgba(67, 92, 0, 0.5)"; | |
c.font = "18pt Arial"; | |
c.fillText("aBc#$~efG \ude73\ud63d", 8, 12); | |
a = b.toDataURL() | |
} catch (d) {} | |
return a | |
}; | |
nds.common.bi.getFontMetrics = function() { | |
var a = []; | |
try { | |
for (var b = document.createElement("canvas").getContext("2d"), c = nds.common.bi.fontMetricsFontList, d = 0; d < c.length; d += 1) { | |
b.font = '72px "' + c[d] + '"'; | |
var e = b.measureText("mmmmmmmmmmlli").width; | |
a.push(e) | |
} | |
} catch (f) {} | |
return a | |
}; | |
nds.common.bi.getHTML5LocalStorage = function() { | |
var a = !1; | |
try { | |
var b = window.localStorage; | |
b.setItem("ndls", "ndls"); | |
b.removeItem("ndls"); | |
a = !0 | |
} catch (c) {} | |
return a | |
}; | |
nds.common.bi.getHTML5SupportedVideo = function() { | |
var a = "fv"; | |
try { | |
var b = document.createElement("video"), | |
c = ["ogg", "mp4", "webm"]; | |
if ("undefined" !== typeof b) | |
for (var d in c) | |
c.hasOwnProperty(d) && "" != b.canPlayType("video/" + c[d]) && (a += "," + c[d]) | |
} catch (e) {} | |
return a | |
}; | |
nds.common.bi.getHTML5SupportedAudio = function() { | |
var a = "fa"; | |
try { | |
var b = document.createElement("audio"), | |
c = ["mpeg", "ogg", "wav"]; | |
if ("undefined" !== typeof b) | |
for (var d in c) | |
c.hasOwnProperty(d) && "" != b.canPlayType("audio/" + c[d]) && (a += "," + c[d]) | |
} catch (e) {} | |
return a | |
}; | |
nds.common.bi.getPlatform = function() { | |
var a = "NA"; | |
try { | |
a = navigator.platform | |
} catch (b) {} | |
return a | |
}; | |
nds.common.bi.fontMetricsFontList = "monospace;sans-serif;serif;Andale Mono;Arial;Arial Black;Arial Hebrew;Arial MT;Arial Narrow;Arial Rounded MT Bold;Arial Unicode MS;Bitstream Vera Sans Mono;Book Antiqua;Bookman Old Style;Calibri;Cambria;Cambria Math;Century;Century Gothic;Century Schoolbook;Comic Sans;Comic Sans MS;Consolas;Courier;Courier New;Garamond;Geneva;Georgia;Helvetica;Helvetica Neue;Impact;Lucida Bright;Lucida Calligraphy;Lucida Console;Lucida Fax;LUCIDA GRANDE;Lucida Handwriting;Lucida Sans;Lucida Sans Typewriter;Lucida Sans Unicode;Microsoft Sans Serif;Monaco;Monotype Corsiva;MS Gothic;MS Outlook;MS PGothic;MS Reference Sans Serif;MS Sans Serif;MS Serif;MYRIAD;MYRIAD PRO;Palatino;Palatino Linotype;Segoe Print;Segoe Script;Segoe UI;Segoe UI Light;Segoe UI Semibold;Segoe UI Symbol;Tahoma;Times;Times New Roman;Times New Roman PS;Trebuchet MS;Verdana;Wingdings;Wingdings 2;Wingdings 3".split(";"); | |
var nspqq; | |
nspqq || (nspqq = {}); | |
(function() { | |
function a(a) { | |
return 10 > a ? "0" + a : a | |
} | |
function b(a) { | |
e.lastIndex = 0; | |
return e.test(a) ? '"' + a.replace(e, function(a) { | |
var b = p[a]; | |
return "string" === typeof b ? b : "\\u" + ("0000" + a.charCodeAt(0).toString(16)).slice(-4) | |
}) + '"' : '"' + a + '"' | |
} | |
function c(a, d) { | |
var e, | |
n, | |
l, | |
q, | |
r = f, | |
k, | |
g = d[a]; | |
g && "object" === typeof g && "function" === typeof g.toNDJSON && (g = g.toNDJSON(a)); | |
"function" === typeof m && (g = m.call(d, a, g)); | |
switch (typeof g) { | |
case "string": | |
return b(g); | |
case "number": | |
return isFinite(g) ? String(g) : "null"; | |
case "boolean": | |
case "null": | |
return String(g); | |
case "object": | |
if (!g) | |
return "null"; | |
f += h; | |
k = []; | |
if ("[object Array]" === Object.prototype.toString.apply(g)) { | |
q = g.length; | |
for (e = 0; e < q; e += 1) | |
k[e] = c(e, g) || "null"; | |
l = 0 === k.length ? "[]" : f ? "[\n" + f + k.join(",\n" + f) + "\n" + r + "]" : "[" + k.join(",") + "]"; | |
f = r; | |
return l | |
} | |
if (m && "object" === typeof m) | |
for (q = m.length, e = 0; e < q; e += 1) | |
"string" === typeof m[e] && (n = m[e], (l = c(n, g)) && k.push(b(n) + (f ? ": " : ":") + l)); | |
else | |
for (n in g) | |
Object.prototype.hasOwnProperty.call(g, n) && (l = c(n, g)) && k.push(b(n) + (f ? ": " : ":") + l); | |
l = 0 === k.length ? "{}" : f ? "{\n" + f + k.join(",\n" + | |
f) + "\n" + r + "}" : "{" + k.join(",") + "}"; | |
f = r; | |
return l | |
} | |
} | |
"function" !== typeof Date.prototype.toNDJSON && (Date.prototype.toNDJSON = function(b) { | |
return isFinite(this.valueOf()) ? this.getUTCFullYear() + "-" + a(this.getUTCMonth() + 1) + "-" + a(this.getUTCDate()) + "T" + a(this.getUTCHours()) + ":" + a(this.getUTCMinutes()) + ":" + a(this.getUTCSeconds()) + "Z" : null | |
}, String.prototype.toNDJSON = Number.prototype.toNDJSON = Boolean.prototype.toNDJSON = function(a) { | |
return this.valueOf() | |
}); | |
var d = /[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g, | |
e = /[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g, | |
f, | |
h, | |
p = { | |
"\b": "\\b", | |
"\t": "\\t", | |
"\n": "\\n", | |
"\f": "\\f", | |
"\r": "\\r", | |
'"': '\\"', | |
"\\": "\\\\" | |
}, | |
m; | |
"function" !== typeof nspqq.stringify && (nspqq.stringify = function(a, b, d) { | |
var e; | |
h = f = ""; | |
if ("number" === typeof d) | |
for (e = 0; e < d; e += 1) | |
h += " "; | |
else | |
"string" === typeof d && (h = d); | |
if ((m = b) && "function" !== typeof b && ("object" !== typeof b || "number" !== typeof b.length)) | |
throw Error("nspqq.stringify"); | |
return c("", { | |
"": a | |
}) | |
}); | |
"function" !== typeof nspqq.parse && (nspqq.parse = function(a, b) { | |
function c(a, d) { | |
var e, | |
f, | |
g = a[d]; | |
if (g && "object" === typeof g) | |
for (e in g) | |
Object.prototype.hasOwnProperty.call(g, e) && (f = c(g, e), void 0 !== f ? g[e] = f : delete g[e]); | |
return b.call(a, d, g) | |
} | |
var e; | |
a = String(a); | |
d.lastIndex = 0; | |
d.test(a) && (a = a.replace(d, function(a) { | |
return "\\u" + ("0000" + a.charCodeAt(0).toString(16)).slice(-4) | |
})); | |
if (/^[\],:{}\s]*$/.test(a.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g, "@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g, | |
"]").replace(/(?:^|:|,)(?:\s*\[)+/g, ""))) | |
return e = eval("(" + a + ")"), "function" === typeof b ? c({ | |
"": e | |
}, "") : e; | |
throw new SyntaxError("nspqq.parse"); | |
}) | |
})(); | |
Array.prototype.indexOf || (Array.prototype.indexOf = function(a, b) { | |
var c = this.length >>> 0, | |
d = Number(b) || 0, | |
d = 0 > d ? Math.ceil(d) : Math.floor(d); | |
for (0 > d && (d += c); d < c; d++) | |
if (d in this && this[d] === a) | |
return d; | |
return -1 | |
}); | |
var autofillList = []; | |
function ndoAutofillInit(a, b) { | |
nds.common.addEventListener(document, "submit", nsbbpddb); | |
window.setTimeout(nsbbpddb, 2E3); | |
window.setTimeout(nsbbpddb, 5E3) | |
} | |
function nsbbpddb() { | |
try { | |
var a = nds.common.querySelectorAll(":-webkit-autofill"), | |
b; | |
for (b = 0; b < a.length; ++b) | |
-1 == autofillList.indexOf(a[b].name) && autofillList.push(a[b].name) | |
} catch (c) { | |
autofillList = [] | |
} | |
nsbpd("af", autofillList.join()); | |
nsqpbqd() | |
} | |
nspqdqqpbd("af", ndoAutofillInit); | |
function nsppbdqqp(a, b) { | |
nsbpd("di", nsqddqbd()); | |
nsbpd("bi", nsppbd(b)); | |
nsbpd("probe", nsbpdqbbdd()) | |
} | |
nspqdqqpbd("di", nsppbdqqp); | |
function nspqdqqpb() { | |
var a = []; | |
a.push(nsbbpd()); | |
a.push(nds.common.bi.getScreenFingerprint()); | |
a.push(nds.common.bi.getDeviceTimezone()); | |
a.push(nds.common.bi.getPlugins()); | |
for (var b = "DI", c = 0; c < a.length; c++) | |
b += "." + a[c]; | |
return b | |
} | |
function nsppbd(a) { | |
var b = []; | |
b.push(nds.common.bi.getScreenInfo()); | |
b.push(nds.common.bi.getDeviceTimezone()); | |
b.push(nds.common.bi.getDeviceLanguage()); | |
b.push("bp1-" + nds.common.util.quickHash(nds.common.bi.getPlugins())); | |
b.push(nds.common.bi.isFlashInstalled().toString()); | |
var c = a.rt || 128; | |
b.push(nds.common.util.truncTo(document.referrer.replace(/\|/g, ""), c)); | |
a = a.ut || 512; | |
b.push(nds.common.util.truncTo(navigator.userAgent.replace(/\|/g, ""), a)); | |
a = nds.common.bi.getWebGLInfo(); | |
null === a ? b.push("Not Supported") : | |
b.push("wg1-" + nds.common.util.quickHash(nspqq.stringify(a))); | |
a = "b2"; | |
for (c = 0; c < b.length; c++) | |
a += "|" + b[c]; | |
return a | |
} | |
function nsbpdqbbdd() { | |
var a = ""; | |
if (window._phantom || window.callPhantom || window.__phantomas) | |
a += "p"; | |
window.Buffer && (a += "n"); | |
window.emit && (a += "c"); | |
window.spawn && (a += "r"); | |
window.webdriver && (a += "s"); | |
if (window.domAutomation || window.domAutomationController) | |
a += "b"; | |
return a | |
} | |
function nsqddqbd() { | |
return "d1-" + nds.common.util.quickHash(nspqdqqpb()) | |
} | |
function nsbbpd() { | |
var a = "NotAvail"; | |
"undefined" !== typeof navigator && "undefined" !== typeof navigator.userAgent && (a = navigator.userAgent, a = a.replace(/([0-9]+\.[0-9]+)\.[0-9]+\.[0-9]+/g, "$1").replace(/([0-9]+\.[0-9]+)\.[0-9]+/g, "$1"), a = a.replace(/([0-9]+_[0-9]+)_[0-9]+_[0-9]+/g, "$1").replace(/([0-9]+_[0-9]+)_[0-9]+/g, "$1")); | |
return a | |
} | |
var nspdbbpdd = 0, | |
nsdbp = null, | |
nspdbb = !1, | |
nsdbpdbq = null, | |
nspdppd = /^(text|password|email|url|search|tel)$/i, | |
nsqpdpq = !0; | |
function nspqdqq(a, b) { | |
nsdbp = b.fm; | |
nspdbb = "lm" in b && b.lm; | |
nsqpbq(nsdbp, nspdbb); | |
nsbpd("ipr", ""); | |
nsbpdqbb() | |
} | |
function nsbbbdb() {} | |
function nsbpdqbbd(a) { | |
nsqpbq(a, nspdbb) | |
} | |
nspqdqqpbd("ipr", nspqdqq, nsbbbdb, nsbpdqbbd); | |
function unbindNDEventHandlers() { | |
nsqpdpq = !1 | |
} | |
function nsbpdqbb() { | |
var a = nsqddq(); | |
nsqpbqdqqp(nsqpbqdqq, [a]) | |
} | |
function nsqddq() { | |
for (var a = [], b = 0; b < nsdbpdbq.length; b++) { | |
var c = nsdbpdbq[b]; | |
c.type && c.type.match(nspdppd) && (a.push(c.id), a.push(c.value.length)) | |
} | |
return a.join(",") | |
} | |
var nsqpdpqqb = "a", | |
nspdpp = "b", | |
nsqpdpqq = "c", | |
nspqqq = "d", | |
nsdqqbdq = "e", | |
nsdqbpbdbq = "f"; | |
function nspdq(a) { | |
a || (a = window.event); | |
var b = null; | |
a.target ? b = a.target : a.srcElement && (b = a.srcElement); | |
3 == b.nodeType && (b = b.parentNode); | |
var c; | |
a.keyCode ? c = a.keyCode : a.which && (c = a.which); | |
var d = !1; | |
a.which ? d = 3 == a.which : a.button && (d = 2 == a.button); | |
var e = 0, | |
f = 0; | |
if (a.pageX || a.pageY) | |
e = a.pageX, f = a.pageY; | |
else if (a.clientX || a.clientY) | |
e = a.clientX + document.body.scrollLeft + document.documentElement.scrollLeft, f = a.clientY + document.body.scrollTop + document.documentElement.scrollTop; | |
var h = {}; | |
h[nsqpdpqqb] = a; | |
h[nspdpp] = b; | |
h[nsqpdpqq] = | |
d; | |
h[nspqqq] = c; | |
h[nsdqqbdq] = e; | |
h[nsdqbpbdbq] = f; | |
return h | |
} | |
function nsbbp(a) { | |
return !nspdpp in a ? null : "string" === typeof a[nspdpp].id && "" !== a[nspdpp].id ? a[nspdpp].id : a[nspdpp].name | |
} | |
var nsdqqbdqq = function(a) { | |
nsqpdpq && (nspdq(a), nsqpbqdqqp(nspdb, [])) | |
}, | |
nsdqqbd = function(a) { | |
nsqpdpq && (a = nspdq(a), nsqpbqdqqp(nsbpdqb, [nspdpp in a && "undefined" !== typeof a[nspdpp].value ? a[nspdpp].value.length : null, nsbbp(a)]), nsqpbqdqqp(nsqpbpdq, [nsbbp(a)])) | |
}, | |
nsqpb = function(a) { | |
nsqpdpq && (a = nspdq(a), nsqpbqdqqp(nsdqbpbd, [nsbbp(a)])) | |
}, | |
nsdqbpb = function(a) { | |
nsqpdpq && (a = nspdq(a), nsqpbqdqqp(nspdppddd, [a[nsdqqbdq], a[nsdqbpbdbq], nsbbp(a)])) | |
}, | |
nspqqqbdqb = function(a) { | |
nsqpdpq && (a = nspdq(a), a[nsqpdpqqb] && a[nsqpdpqqb].touches && | |
a[nsqpdpqqb].touches[0] && "undefined" !== typeof a[nsqpdpqqb].touches[0].pageX ? nsqpbqdqqp(nspdqpppqp, [a[nsqpdpqqb].touches[0].pageX, a[nsqpdpqqb].touches[0].pageY, nsbbp(a)]) : nsqpbqdqqp(nspdqpppqp, [-1, -1, nsbbp(a)])) | |
}, | |
nsdbpdb = function(a) { | |
if (nsqpdpq) { | |
if (nspqd() < nspdbbpdd) | |
return !1; | |
nspdbbpdd = nspqd() + 5; | |
a = nspdq(a); | |
nsqpbqdqqp(nsdbpdbqdp, [a[nsdqqbdq], a[nsdqbpbdbq], nsbbp(a)]) | |
} | |
}, | |
nspqqqbdq = function(a) { | |
nsqpdpq && (a = nspdq(a), nsqpbqdqqp(nspqdqqp, [a[nsdqqbdq], a[nsdqbpbdbq], nsbbp(a)])) | |
}; | |
function nsqpbq(a, b) { | |
var c = nspdqppp(document.documentElement, "input"); | |
if (b) { | |
a = []; | |
for (var d = 0; d < c.length; d++) { | |
var e = c[d]; | |
e.type && e.type.match(nspdppd) && a.push(e) | |
} | |
} else { | |
for (var f = [], d = 0; d < a.length; d++) { | |
var h = nsbbbdbp(a[d]); | |
if (null === h) | |
for (var p = 0; p < c.length; p++) | |
e = c[p], e.type && e.type.match(nspdppd) && e.name && e.name === a[d] && (h = e); | |
null !== h && f.push(h) | |
} | |
a = f | |
} | |
nsdbpdbq = a; | |
for (d = 0; d < a.length; d++) | |
h = a[d], null !== h && h.nodeName.match(/input/i) && (nds.common.addEventListener(h, "keydown", nsdqqbdqq), nds.common.addEventListener(h, | |
"focus", nsdqqbd), nds.common.addEventListener(h, "blur", nsqpb)); | |
nds.common.addEventListener(document, "click", nsdqbpb); | |
nds.common.addEventListener(document, "touchstart", nspqqqbdqb); | |
nds.common.addEventListener(document, "mousemove", nsdbpdb); | |
c = nspdqppp(document.documentElement, "form"); | |
for (d = 0; d < c.length; d++) | |
nds.common.addEventListener(c[d], "submit", nspqqqbdq) | |
} | |
var nsqpbpdq = "ff", | |
nsdqbpbd = "fb", | |
nspdb = "kd", | |
nspdbbpd = "ku", | |
nsdbpdbqdp = "mm", | |
nspdppddd = "mc", | |
nsqddqb = "ac", | |
nspdqpppqp = "te", | |
nspqdqqp = "fs", | |
nsppbdqq = "sp", | |
nsbpdqb = "kk", | |
nsqpbqdqq = "st", | |
nsbbbd = 1, | |
nsbbpddbp = 1, | |
nsqddqbdb = null, | |
nsbbpdd = null, | |
nspdqp = null, | |
nspdqpppq = null, | |
nsbbb = "", | |
nsppbdqqpb = ""; | |
function nsqpbqdqqp(a, b) { | |
var c = nsqddqbdbq(); | |
null == nsbbpdd && (nspdqpppq = nsbbpdd = nsqddqbdb = nsqddqbdbq(), nsbpdq("ncip", c, [nspqd(), nsbbbd, nsbbpddbp])); | |
nsbpdq(a, c, b); | |
15E3 <= c - nspdqpppq && (nsbpdq("ts", c, [c - nsqddqbdb]), nspdqpppq = c); | |
switch (a) { | |
case nsdqbpbd: | |
case nspdppddd: | |
case nspqdqqp: | |
nspqdq(c); | |
break; | |
default: | |
2E3 < c - nspdqp && nspqdq(c) | |
} | |
} | |
function nspqdq(a) { | |
nspdqp = a; | |
a = ""; | |
"" !== nsbbb && (nsppbdqqpb += nsbbb, nsbbb = "", a = nsppbdqqpb, nsdqbpbdb === nspdppdd && (a = a.replace(new RegExp(nsqpbp, "g"), nspqqqbd)), nsbpd("ipr", a), nsqpbqd()) | |
} | |
function nsbpdq(a, b, c) { | |
var d = b - nsbbpdd; | |
1 < nsbbpddbp && (d = Math.round(d / nsbbpddbp)); | |
a = a + "," + d.toString(16); | |
if (null != c && 0 < c.length) { | |
for (var d = [], e = 0; e < c.length; e++) | |
"number" === typeof c[e] ? d.push(Math.round(c[e]).toString(16)) : null != c[e] && d.push(c[e].toString()); | |
a = a + "," + d.join(",") | |
} | |
nsbbb = nsbbb + a + ";"; | |
nsbbpdd = b | |
} | |
function nsppb(a, b) { | |
nsbpd("fv", nds.common.bi.getHTML5SupportedVideo()); | |
nsbpd("fa", nds.common.bi.getHTML5SupportedAudio()); | |
nsbpd("bp", nds.common.bi.getPlugins()) | |
} | |
nspqdqqpbd("misc", nsppb); | |
function nsqdd(a, b) { | |
if (nspdppdddp) { | |
var c = Math.floor(1E6 * Math.random()) + 1E3; | |
nsbpd("wkr", c); | |
nsbbbdbpq(b.r + "?r=" + c + "&wt=" + b.w); | |
nsbpd("wk", "p") | |
} | |
} | |
nspqdqqpbd("wk", nsqdd); | |
function ndwtw(a) { | |
nspdppdddp && ("string" === typeof a && (a = nsbbpddbpd(a)), nsbpd("wk", a.wk), nsqpbqd()) | |
} | |
function nspqd() { | |
return parseInt((new Date).getTime() / 1E3, 10) | |
} | |
function nsqddqbdbq() { | |
return parseInt((new Date).getTime(), 10) | |
} | |
function nsbbbdbpq(a) { | |
var b = document.createElement("script"); | |
b.setAttribute("type", "text/JavaScript"); | |
b.setAttribute("src", a); | |
document.getElementsByTagName("head")[0].appendChild(b) | |
} | |
function nsbbbdbp(a) { | |
var b = null; | |
document.getElementById ? b = document.getElementById(a) : document.all && (b = document.all[a]); | |
return b | |
} | |
function nspdqppp(a, b) { | |
var c = []; | |
"undefined" !== typeof a.getElementsByTagName && (c = a.getElementsByTagName(b)); | |
return c | |
} | |
var ndoWidgetUtil = { | |
isLoaded: function(a, b) { | |
try { | |
nds.common.addEventListener(window, "load", function d() { | |
var c = nsbbbdbpqp(a), | |
f = !1; | |
document.getElementById(c) && (f = !0); | |
b(f); | |
nds.common.removeEventListener(window, "load", d) | |
}) | |
} catch (c) { | |
b(!1) | |
} | |
} | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment