/* Asynchronously write javascript, even with document.write., v1.4.0 https://krux.github.io/postscribe Copyright (c) 2015 Derek Brans, MIT license https://github.com/krux/postscribe/blob/master/LICENSE */ !function () { function a(a, h) { a = a || "", h = h || {}; for (var i in b) b.hasOwnProperty(i) && (h.autoFix && (h["fix_" + i] = !0), h.fix = h.fix || h["fix_" + i]); var j = [], k = { "©": "169", "·": "183", "€": "8364", " ": "160", "&": "38", """: "34", "®": "174", "™": "8482", "“": "8220", "”": "8221", "‘": "8216", "’": "8217", "«": "171", "»": "187", "‹": "8249", "›": "8250", "§": "167", "¶": "182", "•": "8226", "…": "8230", "¦": "166", "–": "8211", "—": "8212", "¤": "164", "¢": "162", "£": "163", "¥": "165", "<": "60", ">": "62", "≤": "8804", "≥": "8805", "×": "215", "÷": "247", "−": "8722", "±": "177", "≠": "8800", "¹": "185", "²": "178", "³": "179", "½": "189", "¼": "188", "¾": "190", "‰": "8240", "°": "176", "√": "8730", "∞": "8734", "←": "8592", "↑": "8593", "→": "8594", "↓": "8595", "↔": "8596", "↵": "8629", "⌈": "8968", "⌉": "8969", "⌊": "8970", "⌋": "8971", "♠": "9824", "♣": "9827", "♥": "9829", "♦": "9830", "◊": "9674", "†": "8224", "‡": "8225", "¡": "161", "¿": "191" }, l = function (a) { if (a && "string" == typeof a) { a = a.replace(/(\d{1,4};)/gm, function (a) { var b = a.substring(2, a.length - 1); return String.fromCharCode(b) }), a = a.replace(/(&.{2,6};)/gm, function (a) { var b = k[a]; return b ? String.fromCharCode(b) : a }) } return a }, m = function (b) { if (b) { var c = b.indexOf(""); -1 !== c && (b = b.substring(0, c) + b.substring(c + 15)) } a += b }, n = function (b) { a = b + a }, o = { comment: /^"); return b >= 0 ? {content: a.substr(4, b - 1), length: b + 3} : void 0 }, endTag: function () { var b = a.match(d); return b ? {tagName: b[1], length: b[0].length} : void 0 }, atomicTag: function () { var b = p.startTag(); if (b) { var c = a.slice(b.length); if (c.match(new RegExp("\\s*" + b.tagName + "\\s*>", "i"))) { var d = c.match(new RegExp("([\\s\\S]*?)\\s*" + b.tagName + "\\s*>", "i")); if (d) return { tagName: b.tagName, attrs: b.attrs, content: d[1], length: d[0].length + b.length } } } }, startTag: function () { var b = a.indexOf(">"); if (-1 === b) return null; var d = a.match(c); if (d) { var g = {}, h = {}, i = d[2]; return d[2].replace(e, function (a, b) { if (arguments[2] || arguments[3] || arguments[4] || arguments[5]) if (arguments[5]) g[arguments[5]] = "", h[b] = !0; else { var c = arguments[2] || arguments[3] || arguments[4] || f.test(b) && b || ""; g[b] = l(c) } else g[b] = null; i = i.replace(a, "") }), {tagName: d[1], attrs: g, booleanAttrs: h, rest: i, unary: !!d[3], length: d[0].length} } }, chars: function () { var b = a.indexOf("<"); return {length: b >= 0 ? b : a.length} } }, q = function () { for (var b in o) if (o[b].test(a)) { g && console.log("suspected " + b); var c = p[b](); return c ? (g && console.log("parsed " + b, c), c.type = c.type || b, c.text = a.substr(0, c.length), a = a.slice(c.length), c) : null } }, r = function (a) { for (var b; b = q();) if (a[b.type] && a[b.type](b) === !1) return }, s = function () { var b = a; return a = "", b }, t = function () { return a }; return h.fix && !function () { var b = /^(AREA|BASE|BASEFONT|BR|COL|FRAME|HR|IMG|INPUT|ISINDEX|LINK|META|PARAM|EMBED)$/i, c = /^(COLGROUP|DD|DT|LI|OPTIONS|P|TD|TFOOT|TH|THEAD|TR)$/i, d = []; d.last = function () { return this[this.length - 1] }, d.lastTagNameEq = function (a) { var b = this.last(); return b && b.tagName && b.tagName.toUpperCase() === a.toUpperCase() }, d.containsTagName = function (a) { for (var b, c = 0; b = this[c]; c++) if (b.tagName === a) return !0; return !1 }; var e = function (a) { return a && "startTag" === a.type && (a.unary = b.test(a.tagName) || a.unary, a.html5Unary = !/\/>$/.test(a.text)), a }, f = q, g = function () { var b = a, c = e(f()); return a = b, c }, i = function () { var a = d.pop(); n("" + a.tagName + ">") }, j = { startTag: function (a) { var b = a.tagName; "TR" === b.toUpperCase() && d.lastTagNameEq("TABLE") ? (n("
"), l()) : h.fix_selfClose && c.test(b) && d.containsTagName(b) ? d.lastTagNameEq(b) ? i() : (n("" + a.tagName + ">"), l()) : a.unary || d.push(a) }, endTag: function (a) { var b = d.last(); b ? h.fix_tagSoup && !d.lastTagNameEq(a.tagName) ? i() : d.pop() : h.fix_tagSoup && k() } }, k = function () { f(), l() }, l = function () { var a = g(); a && j[a.type] && j[a.type](a) }; q = function () { return l(), e(f()) } }(), {append: m, readToken: q, readTokens: r, clear: s, rest: t, stack: j} } var b = function () { var a, b = {}, c = this.document.createElement("div"); return a = "", c.innerHTML = a, b.tagSoup = c.innerHTML !== a, c.innerHTML = "
", b.selfClose = 2 === c.childNodes.length, b }(), c = /^<([\-A-Za-z0-9_]+)((?:\s+[\w\-]+(?:\s*=?\s*(?:(?:"[^"]*")|(?:'[^']*')|[^>\s]+))?)*)\s*(\/?)>/, d = /^<\/([\-A-Za-z0-9_]+)[^>]*>/, e = /(?:([\-A-Za-z0-9_]+)\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|([^>\s]+)))|(?:([\-A-Za-z0-9_]+)(\s|$)+)/g, f = /^(checked|compact|declare|defer|disabled|ismap|multiple|nohref|noresize|noshade|nowrap|readonly|selected)$/i, g = !1, h = this.ADTECH; a.supports = b, a.tokenToString = function (a) { var b = { comment: function (a) { return "