!function (t) { function e(r) { if (n[r]) return n[r].exports; var o = n[r] = { "exports": {}, "id": r, "loaded": !1 }; return t[r].call(o.exports, o, o.exports, e), o.loaded = !0, o.exports } var n = {}; e.m = t, e.c = n, e.p = "", e(0) }([function (t, e, n) { var r = n(1), o = n(64), i = n(73).GLOBAL; n(83)(r, i), o[i] = r }, function (t, e, n) { function r(t) { return this instanceof r ? (this.init(t), this) : new r(t) } var o = n(2), i = n(9), c = n(72), a = n(74), s = n(65), u = n(73); r.prototype.init = function (t) { this.configure(t); for (var e in r.Plugins) r.Plugins.hasOwnProperty(e) && r.Plugins[e].configure.call(this, t); if (window.addEventListener) { var n = this; window.addEventListener("pagehide", function () { n._windowBeingUnloaded = !0 }) } }, r.version = r.prototype.version = a, r.prototype.log = function () { for (var t = ["[" + u.GLOBAL + "]"], e = 0, n = arguments.length - 1; e <= n; e++)t.push(arguments[e]); "undefined" != typeof console && this.client.logging && console.log.apply(console, t) }, r.prototype.configure = c.configure, r.prototype.set = c.set, r.prototype.get = c.get, r.prototype.ready = n(75), r.prototype.applyProperties = o.applyProperties, r.prototype.addRecord = o.addRecord, r.prototype._sendRecord = o._sendRecord, r.prototype.blockEvents = o.blockEvents, r.prototype.unblockEvents = o.unblockEvents, r.prototype.areEventsBlocked = o.areEventsBlocked, r.prototype.setSignedMode = o.setSignedMode, r.prototype.setAnonymousMode = o.setAnonymousMode, r.prototype.inSignedMode = o.inSignedMode, r.prototype.getCookie = s.getItem, r.prototype._configurator = c, r.Plugins = { "Clicks": n(76), "GlobalID": n(78), "Personalization": n(79), "Track": n(80), "ServerSideCookie": n(82) }, i.forIn(r.Plugins, function (t) { i.forIn(t, function (t, e) { r.prototype[e] || (r.prototype[e] = t) }) }), t.exports = r }, function (t, e, n) { function r(t, e) { o(s.isString(t), "Must provide a table"), o(/^[a-z0-9_]{3,255}$/.test(t), "Table must be between 3 and 255 characters and must consist only of lower case letters, numbers, and _"), o(s.isObject(e), "Must provide a record") } var o = n(3).invariant, i = n(3).noop, c = n(3).fetchWithTimeout, a = n(4), s = n(9), u = n(64), l = n(65), f = n(66), p = n(67); e.BLOCKEVENTSCOOKIE = "__td_blockEvents", e.SIGNEDMODECOOKIE = "__td_signed", e.blockEvents = function () { f(this.client.storage, "__td_blockEvents", "true") }, e.unblockEvents = function () { f(this.client.storage, "__td_blockEvents", "false") }, e.areEventsBlocked = function () { return "true" === l.getItem("__td_blockEvents") }, e.setSignedMode = function (t) { return this.client.storeConsentByLocalStorage ? u.localStorage.setItem("__td_signed", "true") : f(this.client.storage, "__td_signed", "true"), this }, e.setAnonymousMode = function (t) { return this.client.storeConsentByLocalStorage ? u.localStorage.setItem("__td_signed", "false") : f(this.client.storage, "__td_signed", "false"), this }, e.inSignedMode = function () { return this.client.storeConsentByLocalStorage ? "false" !== u.localStorage.getItem(["__td_signed"]) && ("true" === u.localStorage.getItem(["__td_signed"]) || this.client.startInSignedMode) : "false" !== l.getItem("__td_signed") && ("true" === l.getItem("__td_signed") || this.client.startInSignedMode) }, e._sendRecord = function (t, e, n) { if (e = e || i, n = n || i, !this.areEventsBlocked()) { o("jsonp" === t.type, "Request type " + t.type + " not supported"); var r = ["api_key=" + encodeURIComponent(t.apikey), "modified=" + encodeURIComponent((new Date).getTime()), "data=" + encodeURIComponent(p(t.record))]; t.time && r.push("time=" + encodeURIComponent(t.time)); var s = t.url + "?" + r.join("&"), u = "a" === t.record.tag && !!t.record.href; window.fetch && (this._windowBeingUnloaded || u) ? c(s, this.client.jsonpTimeout, { "method": "POST", "keepalive": !0 }).then(function (t) { e(t) })["catch"](function (t) { n(t) }) : a(s, { "prefix": "TreasureJSONPCallback", "timeout": this.client.jsonpTimeout }, function (t, r) { return t ? n(t) : e(r) }) } }, e.applyProperties = function (t, e) { return s.assign({}, this.get("$global"), this.get(t), e) }, e.addRecord = function (t, e, n, o) { r(t, e); var i = this.applyProperties(t, e), c = this.inSignedMode() ? i : s.omit(i, ["td_ip", "td_client_id", "td_global_id"]), a = { "apikey": this.client.writeKey, "record": c, "time": null, "type": this.client.requestType, "url": this.client.endpoint + this.client.database + "/" + t }; a.record.time && (a.time = a.record.time), this.client.development ? this.log("addRecord", a) : this.areEventsBlocked() || this._sendRecord(a, n, o) }, e._validateRecord = r }, function (t, e) { function n(t) { var e = !1; return function () { e || (e = !0, t()) } } function r(t, e) { if (!t) throw new Error(e) } function o() { } function i(t, e, n) { var r = new Promise(function (e, r) { setTimeout(function () { r(new Error(n || "Operation Timeout")) }, t) }); return Promise.race([r, e]) } function c(t, e, n) { if (window.AbortController) { var r = new window.AbortController, o = window.fetch(t, Object.assign({}, n, { "signal": r.signal })), c = setTimeout(function () { r.abort() }, e); return o["finally"](function () { clearTimeout(c) }) } return i(e, window.fetch(t, n), "Request Timeout") } t.exports = { "disposable": n, "invariant": r, "noop": o, "fetchWithTimeout": c } }, function (t, e, n) { function r() { } function o(t, e, n) { function o() { s.parentNode && s.parentNode.removeChild(s), window[f] = r, u && clearTimeout(u) } function a() { window[f] && o() } "function" == typeof e && (n = e, e = {}), e || (e = {}); var s, u, l = e.prefix || "__jp", f = e.name || l + c++, p = e.param || "callback", d = null != e.timeout ? e.timeout : 6e4, h = encodeURIComponent, g = document.getElementsByTagName("script")[0] || document.head; return d && (u = setTimeout(function () { o(), n && n(new Error("Timeout")) }, d)), window[f] = function (t) { i("jsonp got", t), o(), n && n(null, t) }, t += (~t.indexOf("?") ? "&" : "?") + p + "=" + h(f), t = t.replace("?&", "?"), i('jsonp req "%s"', t), s = document.createElement("script"), s.src = t, g.parentNode.insertBefore(s, g), a } var i = n(5)("jsonp"); t.exports = o; var c = 0 }, function (t, e, n) { (function (r) { function o() { return !("undefined" == typeof window || !window.process || "renderer" !== window.process.type) || ("undefined" != typeof document && document.documentElement && document.documentElement.style && document.documentElement.style.WebkitAppearance || "undefined" != typeof window && window.console && (window.console.firebug || window.console.exception && window.console.table) || "undefined" != typeof navigator && navigator.userAgent && navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/) && parseInt(RegExp.$1, 10) >= 31 || "undefined" != typeof navigator && navigator.userAgent && navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)) } function i(t) { var n = this.useColors; if (t[0] = (n ? "%c" : "") + this.namespace + (n ? " %c" : " ") + t[0] + (n ? "%c " : " ") + "+" + e.humanize(this.diff), n) { var r = "color: " + this.color; t.splice(1, 0, r, "color: inherit"); var o = 0, i = 0; t[0].replace(/%[a-zA-Z%]/g, function (t) { "%%" !== t && (o++, "%c" === t && (i = o)) }), t.splice(i, 0, r) } } function c() { return "object" == typeof console && console.log && Function.prototype.apply.call(console.log, console, arguments) } function a(t) { try { null == t ? e.storage.removeItem("debug") : e.storage.debug = t } catch (n) { } } function s() { var t; try { t = e.storage.debug } catch (n) { } return !t && void 0 !== r && "env" in r && (t = r.env.DEBUG), t } e = t.exports = n(7), e.log = c, e.formatArgs = i, e.save = a, e.load = s, e.useColors = o, e.storage = "undefined" != typeof chrome && "undefined" != typeof chrome.storage ? chrome.storage.local : function () { try { return window.localStorage } catch (t) { } }(), e.colors = ["lightseagreen", "forestgreen", "goldenrod", "dodgerblue", "darkorchid", "crimson"], e.formatters.j = function (t) { try { return JSON.stringify(t) } catch (e) { return "[UnexpectedJSONParseError]: " + e.message } }, e.enable(s()) }).call(e, n(6)) }, function (t, e) { function n() { throw new Error("setTimeout has not been defined") } function r() { throw new Error("clearTimeout has not been defined") } function o(t) { if (l === setTimeout) return setTimeout(t, 0); if ((l === n || !l) && setTimeout) return l = setTimeout, setTimeout(t, 0); try { return l(t, 0) } catch (e) { try { return l.call(null, t, 0) } catch (e) { return l.call(this, t, 0) } } } function i(t) { if (f === clearTimeout) return clearTimeout(t); if ((f === r || !f) && clearTimeout) return f = clearTimeout, clearTimeout(t); try { return f(t) } catch (e) { try { return f.call(null, t) } catch (e) { return f.call(this, t) } } } function c() { g && d && (g = !1, d.length ? h = d.concat(h) : v = -1, h.length && a()) } function a() { if (!g) { var t = o(c); g = !0; for (var e = h.length; e;) { for (d = h, h = []; ++v < e;)d && d[v].run(); v = -1, e = h.length } d = null, g = !1, i(t) } } function s(t, e) { this.fun = t, this.array = e } function u() { } var l, f, p = t.exports = {}; !function () { try { l = "function" == typeof setTimeout ? setTimeout : n } catch (t) { l = n } try { f = "function" == typeof clearTimeout ? clearTimeout : r } catch (t) { f = r } }(); var d, h = [], g = !1, v = -1; p.nextTick = function (t) { var e = new Array(arguments.length - 1); if (arguments.length > 1) for (var n = 1; n < arguments.length; n++)e[n - 1] = arguments[n]; h.push(new s(t, e)), 1 !== h.length || g || o(a) }, s.prototype.run = function () { this.fun.apply(null, this.array) }, p.title = "browser", p.browser = !0, p.env = {}, p.argv = [], p.version = "", p.versions = {}, p.on = u, p.addListener = u, p.once = u, p.off = u, p.removeListener = u, p.removeAllListeners = u, p.emit = u, p.binding = function (t) { throw new Error("process.binding is not supported") }, p.cwd = function () { return "/" }, p.chdir = function (t) { throw new Error("process.chdir is not supported") }, p.umask = function () { return 0 } }, function (t, e, n) { function r(t) { var n, r = 0; for (n in t) r = (r << 5) - r + t.charCodeAt(n), r |= 0; return e.colors[Math.abs(r) % e.colors.length] } function o(t) { function n() { if (n.enabled) { var t = n, r = +new Date, o = r - (u || r); t.diff = o, t.prev = u, t.curr = r, u = r; for (var i = new Array(arguments.length), c = 0; c < i.length; c++)i[c] = arguments[c]; i[0] = e.coerce(i[0]), "string" != typeof i[0] && i.unshift("%O"); var a = 0; i[0] = i[0].replace(/%([a-zA-Z%])/g, function (n, r) { if ("%%" === n) return n; a++; var o = e.formatters[r]; if ("function" == typeof o) { var c = i[a]; n = o.call(t, c), i.splice(a, 1), a-- } return n }), e.formatArgs.call(t, i); (n.log || e.log || console.log.bind(console)).apply(t, i) } } return n.namespace = t, n.enabled = e.enabled(t), n.useColors = e.useColors(), n.color = r(t), "function" == typeof e.init && e.init(n), n } function i(t) { e.save(t), e.names = [], e.skips = []; for (var n = ("string" == typeof t ? t : "").split(/[\s,]+/), r = n.length, o = 0; o < r; o++)n[o] && (t = n[o].replace(/\*/g, ".*?"), "-" === t[0] ? e.skips.push(new RegExp("^" + t.substr(1) + "$")) : e.names.push(new RegExp("^" + t + "$"))) } function c() { e.enable("") } function a(t) { var n, r; for (n = 0, r = e.skips.length; n < r; n++)if (e.skips[n].test(t)) return !1; for (n = 0, r = e.names.length; n < r; n++)if (e.names[n].test(t)) return !0; return !1 } function s(t) { return t instanceof Error ? t.stack || t.message : t } e = t.exports = o.debug = o["default"] = o, e.coerce = s, e.disable = c, e.enable = i, e.enabled = a, e.humanize = n(8), e.names = [], e.skips = [], e.formatters = {}; var u }, function (t, e) { function n(t) { if (t = String(t), !(t.length > 100)) { var e = /^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(t); if (e) { var n = parseFloat(e[1]); switch ((e[2] || "ms").toLowerCase()) { case "years": case "year": case "yrs": case "yr": case "y": return n * l; case "days": case "day": case "d": return n * u; case "hours": case "hour": case "hrs": case "hr": case "h": return n * s; case "minutes": case "minute": case "mins": case "min": case "m": return n * a; case "seconds": case "second": case "secs": case "sec": case "s": return n * c; case "milliseconds": case "millisecond": case "msecs": case "msec": case "ms": return n; default: return undefined } } } } function r(t) { return t >= u ? Math.round(t / u) + "d" : t >= s ? Math.round(t / s) + "h" : t >= a ? Math.round(t / a) + "m" : t >= c ? Math.round(t / c) + "s" : t + "ms" } function o(t) { return i(t, u, "day") || i(t, s, "hour") || i(t, a, "minute") || i(t, c, "second") || t + " ms" } function i(t, e, n) { if (!(t < e)) return t < 1.5 * e ? Math.floor(t / e) + " " + n : Math.ceil(t / e) + " " + n + "s" } var c = 1e3, a = 60 * c, s = 60 * a, u = 24 * s, l = 365.25 * u; t.exports = function (t, e) { e = e || {}; var i = typeof t; if ("string" === i && t.length > 0) return n(t); if ("number" === i && !1 === isNaN(t)) return e["long"] ? o(t) : r(t); throw new Error("val is not a non-empty string or a valid number. val=" + JSON.stringify(t)) } }, function (t, e, n) { t.exports = { "forEach": n(10), "isNumber": n(39), "isObject": n(17), "isString": n(18), "isArray": n(32), "keys": n(21), "assign": n(40), "forIn": n(47), "omit": n(49), "noop": n(63) } }, function (t, e, n) { var r = n(11), o = n(12), i = n(36), c = i(r, o); t.exports = c }, function (t, e) { function n(t, e) { for (var n = -1, r = t.length; ++n < r && !1 !== e(t[n], n, t);); return t } t.exports = n }, function (t, e, n) { var r = n(13), o = n(35), i = o(r); t.exports = i }, function (t, e, n) { function r(t, e) { return o(t, e, i) } var o = n(14), i = n(21); t.exports = r }, function (t, e, n) { var r = n(15), o = r(); t.exports = o }, function (t, e, n) { function r(t) { return function (e, n, r) { for (var i = o(e), c = r(e), a = c.length, s = t ? a : -1; t ? s-- : ++s < a;) { var u = c[s]; if (!1 === n(i[u], u, i)) break } return e } } var o = n(16); t.exports = r }, function (t, e, n) { function r(t) { if (c.unindexedChars && i(t)) { for (var e = -1, n = t.length, r = Object(t); ++e < n;)r[e] = t.charAt(e); return r } return o(t) ? t : Object(t) } var o = n(17), i = n(18), c = n(20); t.exports = r }, function (t, e) { function n(t) { var e = typeof t; return !!t && ("object" == e || "function" == e) } t.exports = n }, function (t, e, n) { function r(t) { return "string" == typeof t || o(t) && a.call(t) == i } var o = n(19), i = "[object String]", c = Object.prototype, a = c.toString; t.exports = r }, function (t, e) { function n(t) { return !!t && "object" == typeof t } t.exports = n }, function (t, e) { var n = Array.prototype, r = Error.prototype, o = Object.prototype, i = o.propertyIsEnumerable, c = n.splice, a = {}; !function (t) { var e = function () { this.x = 1 }, n = { "0": 1, "length": 1 }, o = []; e.prototype = { "valueOf": 1, "y": 1 }; for (var s in new e) o.push(s); a.enumErrorProps = i.call(r, "message") || i.call(r, "name"), a.enumPrototypes = i.call(e, "prototype"), a.nonEnumShadows = !/valueOf/.test(o), a.ownLast = "x" != o[0], a.spliceObjects = (c.call(n, 0, 1), !n[0]), a.unindexedChars = "x"[0] + Object("x")[0] != "xx" }(), t.exports = a }, function (t, e, n) { var r = n(22), o = n(26), i = n(17), c = n(30), a = n(20), s = r(Object, "keys"), u = s ? function (t) { var e = null == t ? undefined : t.constructor; return "function" == typeof e && e.prototype === t || ("function" == typeof t ? a.enumPrototypes : o(t)) ? c(t) : i(t) ? s(t) : [] } : c; t.exports = u }, function (t, e, n) { function r(t, e) { var n = null == t ? undefined : t[e]; return o(n) ? n : undefined } var o = n(23); t.exports = r }, function (t, e, n) { function r(t) { return null != t && (o(t) ? f.test(u.call(t)) : c(t) && (i(t) ? f : a).test(t)) } var o = n(24), i = n(25), c = n(19), a = /^\[object .+?Constructor\]$/, s = Object.prototype, u = Function.prototype.toString, l = s.hasOwnProperty, f = RegExp("^" + u.call(l).replace(/[\\^$.*+?()[\]{}|]/g, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"); t.exports = r }, function (t, e, n) { function r(t) { return o(t) && a.call(t) == i } var o = n(17), i = "[object Function]", c = Object.prototype, a = c.toString; t.exports = r }, function (t, e) { var n = function () { try { Object({ "toString": 0 } + "") } catch (t) { return function () { return !1 } } return function (t) { return "function" != typeof t.toString && "string" == typeof (t + "") } }(); t.exports = n }, function (t, e, n) { function r(t) { return null != t && i(o(t)) } var o = n(27), i = n(29); t.exports = r }, function (t, e, n) { var r = n(28), o = r("length"); t.exports = o }, function (t, e, n) { function r(t) { return function (e) { return null == e ? undefined : o(e)[t] } } var o = n(16); t.exports = r }, function (t, e) { function n(t) { return "number" == typeof t && t > -1 && t % 1 == 0 && t <= r } var r = 9007199254740991; t.exports = n }, function (t, e, n) { function r(t) { for (var e = u(t), n = e.length, r = n && t.length, l = !!r && a(r) && (i(t) || o(t) || s(t)), p = -1, d = []; ++p < n;) { var h = e[p]; (l && c(h, r) || f.call(t, h)) && d.push(h) } return d } var o = n(31), i = n(32), c = n(33), a = n(29), s = n(18), u = n(34), l = Object.prototype, f = l.hasOwnProperty; t.exports = r }, function (t, e, n) { function r(t) { return i(t) && o(t) && a.call(t, "callee") && !s.call(t, "callee") } var o = n(26), i = n(19), c = Object.prototype, a = c.hasOwnProperty, s = c.propertyIsEnumerable; t.exports = r }, function (t, e, n) { var r = n(22), o = n(29), i = n(19), c = Object.prototype, a = c.toString, s = r(Array, "isArray"), u = s || function (t) { return i(t) && o(t.length) && "[object Array]" == a.call(t) }; t.exports = u }, function (t, e) { function n(t, e) { return t = "number" == typeof t || r.test(t) ? +t : -1, e = null == e ? o : e, t > -1 && t % 1 == 0 && t < e } var r = /^\d+$/, o = 9007199254740991; t.exports = n }, function (t, e, n) { function r(t) { if (null == t) return []; l(t) || (t = Object(t)); var e = t.length; e = e && u(e) && (c(t) || i(t) || f(t)) && e || 0; for (var n = t.constructor, r = -1, o = a(n) && n.prototype || y, S = o === t, k = Array(e), j = e > 0, E = p.enumErrorProps && (t === m || t instanceof Error), T = p.enumPrototypes && a(t); ++r < e;)k[r] = r + ""; for (var C in t) T && "prototype" == C || E && ("message" == C || "name" == C) || j && s(C, e) || "constructor" == C && (S || !x.call(t, C)) || k.push(C); if (p.nonEnumShadows && t !== y) { var A = t === b ? g : t === m ? d : w.call(t), O = _[A] || _[h]; for (A == h && (o = y), e = v.length; e--;) { C = v[e]; var I = O[C]; S && I || (I ? !x.call(t, C) : t[C] === o[C]) || k.push(C) } } return k } var o = n(11), i = n(31), c = n(32), a = n(24), s = n(33), u = n(29), l = n(17), f = n(18), p = n(20), d = "[object Error]", h = "[object Object]", g = "[object String]", v = ["constructor", "hasOwnProperty", "isPrototypeOf", "propertyIsEnumerable", "toLocaleString", "toString", "valueOf"], m = Error.prototype, y = Object.prototype, b = String.prototype, x = y.hasOwnProperty, w = y.toString, _ = {}; _["[object Array]"] = _["[object Date]"] = _["[object Number]"] = { "constructor": !0, "toLocaleString": !0, "toString": !0, "valueOf": !0 }, _["[object Boolean]"] = _[g] = { "constructor": !0, "toString": !0, "valueOf": !0 }, _[d] = _["[object Function]"] = _["[object RegExp]"] = { "constructor": !0, "toString": !0 }, _[h] = { "constructor": !0 }, o(v, function (t) { for (var e in _) if (x.call(_, e)) { var n = _[e]; n[t] = x.call(n, t) } }), t.exports = r }, function (t, e, n) { function r(t, e) { return function (n, r) { var a = n ? o(n) : 0; if (!i(a)) return t(n, r); for (var s = e ? a : -1, u = c(n); (e ? s-- : ++s < a) && !1 !== r(u[s], s, u);); return n } } var o = n(27), i = n(29), c = n(16); t.exports = r }, function (t, e, n) { function r(t, e) { return function (n, r, c) { return "function" == typeof r && c === undefined && i(n) ? t(n, r) : e(n, o(r, c, 3)) } } var o = n(37), i = n(32); t.exports = r }, function (t, e, n) { function r(t, e, n) { if ("function" != typeof t) return o; if (e === undefined) return t; switch (n) { case 1: return function (n) { return t.call(e, n) }; case 3: return function (n, r, o) { return t.call(e, n, r, o) }; case 4: return function (n, r, o, i) { return t.call(e, n, r, o, i) }; case 5: return function (n, r, o, i, c) { return t.call(e, n, r, o, i, c) } }return function () { return t.apply(e, arguments) } } var o = n(38); t.exports = r }, function (t, e) { function n(t) { return t } t.exports = n }, function (t, e, n) { function r(t) { return "number" == typeof t || o(t) && a.call(t) == i } var o = n(19), i = "[object Number]", c = Object.prototype, a = c.toString; t.exports = r }, function (t, e, n) { var r = n(41), o = n(42), i = n(44), c = i(function (t, e, n) { return n ? r(t, e, n) : o(t, e) }); t.exports = c }, function (t, e, n) { function r(t, e, n) { for (var r = -1, i = o(e), c = i.length; ++r < c;) { var a = i[r], s = t[a], u = n(s, e[a], a, t, e); (u === u ? u === s : s !== s) && (s !== undefined || a in t) || (t[a] = u) } return t } var o = n(21); t.exports = r }, function (t, e, n) { function r(t, e) { return null == e ? t : o(e, i(e), t) } var o = n(43), i = n(21); t.exports = r }, function (t, e) { function n(t, e, n) { n || (n = {}); for (var r = -1, o = e.length; ++r < o;) { var i = e[r]; n[i] = t[i] } return n } t.exports = n }, function (t, e, n) { function r(t) { return c(function (e, n) { var r = -1, c = null == e ? 0 : n.length, a = c > 2 ? n[c - 2] : undefined, s = c > 2 ? n[2] : undefined, u = c > 1 ? n[c - 1] : undefined; for ("function" == typeof a ? (a = o(a, u, 5), c -= 2) : (a = "function" == typeof u ? u : undefined, c -= a ? 1 : 0), s && i(n[0], n[1], s) && (a = c < 3 ? undefined : a, c = 1); ++r < c;) { var l = n[r]; l && t(e, l, a) } return e }) } var o = n(37), i = n(45), c = n(46); t.exports = r }, function (t, e, n) { function r(t, e, n) { if (!c(n)) return !1; var r = typeof e; if ("number" == r ? o(n) && i(e, n.length) : "string" == r && e in n) { var a = n[e]; return t === t ? t === a : a !== a } return !1 } var o = n(26), i = n(33), c = n(17); t.exports = r }, function (t, e) { function n(t, e) { if ("function" != typeof t) throw new TypeError(r); return e = o(e === undefined ? t.length - 1 : +e || 0, 0), function () { for (var n = arguments, r = -1, i = o(n.length - e, 0), c = Array(i); ++r < i;)c[r] = n[e + r]; switch (e) { case 0: return t.call(this, c); case 1: return t.call(this, n[0], c); case 2: return t.call(this, n[0], n[1], c) }var a = Array(e + 1); for (r = -1; ++r < e;)a[r] = n[r]; return a[e] = c, t.apply(this, a) } } var r = "Expected a function", o = Math.max; t.exports = n }, function (t, e, n) { var r = n(14), o = n(48), i = o(r); t.exports = i }, function (t, e, n) { function r(t) { return function (e, n, r) { return "function" == typeof n && r === undefined || (n = o(n, r, 3)), t(e, n, i) } } var o = n(37), i = n(34); t.exports = r }, function (t, e, n) { var r = n(50), o = n(51), i = n(58), c = n(37), a = n(34), s = n(60), u = n(61), l = n(46), f = l(function (t, e) { if (null == t) return {}; if ("function" != typeof e[0]) { var e = r(i(e), String); return s(t, o(a(t), e)) } var n = c(e[0], e[1], 3); return u(t, function (t, e, r) { return !n(t, e, r) }) }); t.exports = f }, function (t, e) { function n(t, e) { for (var n = -1, r = t.length, o = Array(r); ++n < r;)o[n] = e(t[n], n, t); return o } t.exports = n }, function (t, e, n) { function r(t, e) { var n = t ? t.length : 0, r = []; if (!n) return r; var s = -1, u = o, l = !0, f = l && e.length >= a ? c(e) : null, p = e.length; f && (u = i, l = !1, e = f); t: for (; ++s < n;) { var d = t[s]; if (l && d === d) { for (var h = p; h--;)if (e[h] === d) continue t; r.push(d) } else u(e, d, 0) < 0 && r.push(d) } return r } var o = n(52), i = n(54), c = n(55), a = 200; t.exports = r }, function (t, e, n) { function r(t, e, n) { if (e !== e) return o(t, n); for (var r = n - 1, i = t.length; ++r < i;)if (t[r] === e) return r; return -1 } var o = n(53); t.exports = r }, function (t, e) { function n(t, e, n) { for (var r = t.length, o = e + (n ? 0 : -1); n ? o-- : ++o < r;) { var i = t[o]; if (i !== i) return o } return -1 } t.exports = n }, function (t, e, n) { function r(t, e) { var n = t.data; return ("string" == typeof e || o(e) ? n.set.has(e) : n.hash[e]) ? 0 : -1 } var o = n(17); t.exports = r }, function (t, e, n) { (function (e) { function r(t) { return a && c ? new o(t) : null } var o = n(56), i = n(22), c = i(e, "Set"), a = i(Object, "create"); t.exports = r }).call(e, function () { return this }()) }, function (t, e, n) { (function (e) { function r(t) { var e = t ? t.length : 0; for (this.data = { "hash": a(null), "set": new c }; e--;)this.push(t[e]) } var o = n(57), i = n(22), c = i(e, "Set"), a = i(Object, "create"); r.prototype.push = o, t.exports = r }).call(e, function () { return this }()) }, function (t, e, n) { function r(t) { var e = this.data; "string" == typeof t || o(t) ? e.set.add(t) : e.hash[t] = !0 } var o = n(17); t.exports = r }, function (t, e, n) { function r(t, e, n, u) { u || (u = []); for (var l = -1, f = t.length; ++l < f;) { var p = t[l]; s(p) && a(p) && (n || c(p) || i(p)) ? e ? r(p, e, n, u) : o(u, p) : n || (u[u.length] = p) } return u } var o = n(59), i = n(31), c = n(32), a = n(26), s = n(19); t.exports = r }, function (t, e) { function n(t, e) { for (var n = -1, r = e.length, o = t.length; ++n < r;)t[o + n] = e[n]; return t } t.exports = n }, function (t, e, n) { function r(t, e) { t = o(t); for (var n = -1, r = e.length, i = {}; ++n < r;) { var c = e[n]; c in t && (i[c] = t[c]) } return i } var o = n(16); t.exports = r }, function (t, e, n) { function r(t, e) { var n = {}; return o(t, function (t, r, o) { e(t, r, o) && (n[r] = t) }), n } var o = n(62); t.exports = r }, function (t, e, n) { function r(t, e) { return o(t, e, i) } var o = n(14), i = n(34); t.exports = r }, function (t, e) { function n() { } t.exports = n }, function (t, e) { (function (e) { "undefined" != typeof window ? t.exports = window : void 0 !== e ? t.exports = e : "undefined" != typeof self ? t.exports = self : t.exports = {} }).call(e, function () { return this }()) }, function (t, e) { var n = function (t) { try { return encodeURIComponent(t) } catch (e) { console.error("error encode %o") } return null }, r = function (t) { try { return decodeURIComponent(t) } catch (e) { console.error("error decode %o") } return null }, o = function (t) { return n(t).replace(/[\-\.\+\*]/g, "\\$&") }, i = { "getItem": function (t) { return t ? r(document.cookie.replace(new RegExp("(?:(?:^|.*;)\\s*" + o(t) + "\\s*\\=\\s*([^;]*).*$)|^.*$"), "$1")) || null : null }, "setItem": function (t, e, r, o, i, c) { if (!t || /^(?:expires|max\-age|path|domain|secure)$/i.test(t)) return !1; var a = ""; if (r) switch (r.constructor) { case Number: a = r === Infinity ? "; expires=Fri, 31 Dec 9999 23:59:59 GMT" : "; max-age=" + r; break; case String: a = "; expires=" + r; break; case Date: a = "; expires=" + r.toUTCString() }return document.cookie = [n(t), "=", n(e), a, i ? "; domain=" + i : "", o ? "; path=" + o : "", c ? "; secure" : ""].join(""), !0 }, "removeItem": function (t, e, r) { return !!this.hasItem(t) && (document.cookie = [n(t), "=; expires=Thu, 01 Jan 1970 00:00:00 GMT", r ? "; domain=" + r : "", e ? "; path=" + e : ""].join(""), !0) }, "hasItem": function (t) { return !!t && new RegExp("(?:^|;\\s*)" + n(t).replace(/[\-\.\+\*]/g, "\\$&") + "\\s*\\=").test(document.cookie) }, "keys": function () { var t = document.cookie.replace(/((?:^|\s*;)[^=]+)(?=;|$)|^\s*|\s*(?:=[^;]*)?(?:\1|$)/g, "").split(/\s*(?:=[^;]*)?;\s*/); return t = t.map(function (t) { return r(t) }) } }; t.exports = i }, function (t, e, n) { function r(t) { for (var e = t.split("."), n = [], r = e.length - 1; r >= 0; r--)n.push(e.slice(r).join(".")); return n } var o = n(65), i = n(9); t.exports = function (t, e, n) { var c = i.assign({}, t), a = { "ip": t.domain.match(/\d*\.\d*\.\d*\.\d*$/), "local": "localhost" === t.domain, "custom": t.customDomain }, s = new Date; if (s.setSeconds(s.getSeconds() + c.expires), a.ip || a.local || a.custom) c.domain = a.local ? null : c.domain, o.setItem(e, n, s, c.path, c.domain); else { var u = r(t.domain), l = u.length, f = 0; if (n) { for (; f < l; f++)if (c.domain = u[f], o.setItem(e, n, s, c.path, c.domain), o.getItem(e) === n) { t.domain = c.domain; break } } else for (; f < l; f++)o.removeItem(e, t.path, u[f]) } } }, function (t, e, n) { var r = n(68), o = n(71); t.exports = function (t) { return o(r.stringify(t)) } }, function (t, e, n) { var r; (function (t, o) { (function () { function i(t, e) { function n(t) { if (n[t] !== v) return n[t]; var i; if ("bug-string-char-index" == t) i = "a" != "a"[0]; else if ("json" == t) i = n("json-stringify") && n("json-parse"); else { var c, a = '{"a":[1,true,false,null,"\\u0000\\b\\n\\f\\r\\t"]}'; if ("json-stringify" == t) { var u = e.stringify, l = "function" == typeof u && b; if (l) { (c = function () { return 1 }).toJSON = c; try { l = "0" === u(0) && "0" === u(new r) && '""' == u(new o) && u(y) === v && u(v) === v && u() === v && "1" === u(c) && "[1]" == u([c]) && "[null]" == u([v]) && "null" == u(null) && "[null,null,null]" == u([v, y, null]) && u({ "a": [c, !0, !1, null, "\0\b\n\f\r\t"] }) == a && "1" === u(null, c) && "[\n 1,\n 2\n]" == u([1, 2], null, 1) && '"-271821-04-20T00:00:00.000Z"' == u(new s(-864e13)) && '"+275760-09-13T00:00:00.000Z"' == u(new s(864e13)) && '"-000001-01-01T00:00:00.000Z"' == u(new s(-621987552e5)) && '"1969-12-31T23:59:59.999Z"' == u(new s(-1)) } catch (d) { l = !1 } } i = l } if ("json-parse" == t) { var f = e.parse; if ("function" == typeof f) try { if (0 === f("0") && !f(!1)) { c = f(a); var p = 5 == c.a.length && 1 === c.a[0]; if (p) { try { p = !f('"\t"') } catch (d) { } if (p) try { p = 1 !== f("01") } catch (d) { } if (p) try { p = 1 !== f("1.") } catch (d) { } } } } catch (d) { p = !1 } i = p } } return n[t] = !!i } t || (t = u.Object()), e || (e = u.Object()); var r = t.Number || u.Number, o = t.String || u.String, c = t.Object || u.Object, s = t.Date || u.Date, l = t.SyntaxError || u.SyntaxError, f = t.TypeError || u.TypeError, p = t.Math || u.Math, d = t.JSON || u.JSON; "object" == typeof d && d && (e.stringify = d.stringify, e.parse = d.parse); var h, g, v, m = c.prototype, y = m.toString, b = new s(-0xc782b5b800cec); try { b = -109252 == b.getUTCFullYear() && 0 === b.getUTCMonth() && 1 === b.getUTCDate() && 10 == b.getUTCHours() && 37 == b.getUTCMinutes() && 6 == b.getUTCSeconds() && 708 == b.getUTCMilliseconds() } catch (U) { } if (!n("json")) { var x = n("bug-string-char-index"); if (!b) var w = p.floor, _ = [0, 31, 59, 90, 120, 151, 181, 212, 243, 273, 304, 334], S = function (t, e) { return _[e] + 365 * (t - 1970) + w((t - 1969 + (e = +(e > 1))) / 4) - w((t - 1901 + e) / 100) + w((t - 1601 + e) / 400) }; if ((h = m.hasOwnProperty) || (h = function (t) { var e, n = {}; return (n.__proto__ = null, n.__proto__ = { "toString": 1 }, n).toString != y ? h = function (t) { var e = this.__proto__, n = t in (this.__proto__ = null, this); return this.__proto__ = e, n } : (e = n.constructor, h = function (t) { var n = (this.constructor || e).prototype; return t in this && !(t in n && this[t] === n[t]) }), n = null, h.call(this, t) }), g = function (t, e) { var n, r, o, i = 0; (n = function () { this.valueOf = 0 }).prototype.valueOf = 0, r = new n; for (o in r) h.call(r, o) && i++; return n = r = null, i ? g = 2 == i ? function (t, e) { var n, r = {}, o = "[object Function]" == y.call(t); for (n in t) o && "prototype" == n || h.call(r, n) || !(r[n] = 1) || !h.call(t, n) || e(n) } : function (t, e) { var n, r, o = "[object Function]" == y.call(t); for (n in t) o && "prototype" == n || !h.call(t, n) || (r = "constructor" === n) || e(n); (r || h.call(t, n = "constructor")) && e(n) } : (r = ["valueOf", "toString", "toLocaleString", "propertyIsEnumerable", "isPrototypeOf", "hasOwnProperty", "constructor"], g = function (t, e) { var n, o, i = "[object Function]" == y.call(t), c = !i && "function" != typeof t.constructor && a[typeof t.hasOwnProperty] && t.hasOwnProperty || h; for (n in t) i && "prototype" == n || !c.call(t, n) || e(n); for (o = r.length; n = r[--o]; c.call(t, n) && e(n)); }), g(t, e) }, !n("json-stringify")) { var k = { "92": "\\\\", "34": '\\"', "8": "\\b", "12": "\\f", "10": "\\n", "13": "\\r", "9": "\\t" }, j = function (t, e) { return ("000000" + (e || 0)).slice(-t) }, E = function (t) { for (var e = '"', n = 0, r = t.length, o = !x || r > 10, i = o && (x ? t.split("") : t); n < r; n++) { var c = t.charCodeAt(n); switch (c) { case 8: case 9: case 10: case 12: case 13: case 34: case 92: e += k[c]; break; default: if (c < 32) { e += "\\u00" + j(2, c.toString(16)); break } e += o ? i[n] : t.charAt(n) } } return e + '"' }, T = function (t, e, n, r, o, i, c) { var a, s, u, l, p, d, m, b, x, _, k, C, A, O, I, N; try { a = e[t] } catch (U) { } if ("object" == typeof a && a) if ("[object Date]" != (s = y.call(a)) || h.call(a, "toJSON")) "function" == typeof a.toJSON && ("[object Number]" != s && "[object String]" != s && "[object Array]" != s || h.call(a, "toJSON")) && (a = a.toJSON(t)); else if (a > -1 / 0 && a < 1 / 0) { if (S) { for (p = w(a / 864e5), u = w(p / 365.2425) + 1970 - 1; S(u + 1, 0) <= p; u++); for (l = w((p - S(u, 0)) / 30.42); S(u, l + 1) <= p; l++); p = 1 + p - S(u, l), d = (a % 864e5 + 864e5) % 864e5, m = w(d / 36e5) % 24, b = w(d / 6e4) % 60, x = w(d / 1e3) % 60, _ = d % 1e3 } else u = a.getUTCFullYear(), l = a.getUTCMonth(), p = a.getUTCDate(), m = a.getUTCHours(), b = a.getUTCMinutes(), x = a.getUTCSeconds(), _ = a.getUTCMilliseconds(); a = (u <= 0 || u >= 1e4 ? (u < 0 ? "-" : "+") + j(6, u < 0 ? -u : u) : j(4, u)) + "-" + j(2, l + 1) + "-" + j(2, p) + "T" + j(2, m) + ":" + j(2, b) + ":" + j(2, x) + "." + j(3, _) + "Z" } else a = null; if (n && (a = n.call(e, t, a)), null === a) return "null"; if ("[object Boolean]" == (s = y.call(a))) return "" + a; if ("[object Number]" == s) return a > -1 / 0 && a < 1 / 0 ? "" + a : "null"; if ("[object String]" == s) return E("" + a); if ("object" == typeof a) { for (O = c.length; O--;)if (c[O] === a) throw f(); if (c.push(a), k = [], I = i, i += o, "[object Array]" == s) { for (A = 0, O = a.length; A < O; A++)C = T(A, a, n, r, o, i, c), k.push(C === v ? "null" : C); N = k.length ? o ? "[\n" + i + k.join(",\n" + i) + "\n" + I + "]" : "[" + k.join(",") + "]" : "[]" } else g(r || a, function (t) { var e = T(t, a, n, r, o, i, c); e !== v && k.push(E(t) + ":" + (o ? " " : "") + e) }), N = k.length ? o ? "{\n" + i + k.join(",\n" + i) + "\n" + I + "}" : "{" + k.join(",") + "}" : "{}"; return c.pop(), N } }; e.stringify = function (t, e, n) { var r, o, i, c; if (a[typeof e] && e) if ("[object Function]" == (c = y.call(e))) o = e; else if ("[object Array]" == c) { i = {}; for (var s, u = 0, l = e.length; u < l; s = e[u++], ("[object String]" == (c = y.call(s)) || "[object Number]" == c) && (i[s] = 1)); } if (n) if ("[object Number]" == (c = y.call(n))) { if ((n -= n % 1) > 0) for (r = "", n > 10 && (n = 10); r.length < n; r += " "); } else "[object String]" == c && (r = n.length <= 10 ? n : n.slice(0, 10)); return T("", (s = {}, s[""] = t, s), o, i, r, "", []) } } if (!n("json-parse")) { var C, A, O = o.fromCharCode, I = { "92": "\\", "34": '"', "47": "/", "98": "\b", "116": "\t", "110": "\n", "102": "\f", "114": "\r" }, N = function () { throw C = A = null, l() }, D = function () { for (var t, e, n, r, o, i = A, c = i.length; C < c;)switch (o = i.charCodeAt(C)) { case 9: case 10: case 13: case 32: C++; break; case 123: case 125: case 91: case 93: case 58: case 44: return t = x ? i.charAt(C) : i[C], C++, t; case 34: for (t = "@", C++; C < c;)if ((o = i.charCodeAt(C)) < 32) N(); else if (92 == o) switch (o = i.charCodeAt(++C)) { case 92: case 34: case 47: case 98: case 116: case 110: case 102: case 114: t += I[o], C++; break; case 117: for (e = ++C, n = C + 4; C < n; C++)(o = i.charCodeAt(C)) >= 48 && o <= 57 || o >= 97 && o <= 102 || o >= 65 && o <= 70 || N(); t += O("0x" + i.slice(e, C)); break; default: N() } else { if (34 == o) break; for (o = i.charCodeAt(C), e = C; o >= 32 && 92 != o && 34 != o;)o = i.charCodeAt(++C); t += i.slice(e, C) } if (34 == i.charCodeAt(C)) return C++, t; N(); default: if (e = C, 45 == o && (r = !0, o = i.charCodeAt(++C)), o >= 48 && o <= 57) { for (48 == o && (o = i.charCodeAt(C + 1)) >= 48 && o <= 57 && N(), r = !1; C < c && (o = i.charCodeAt(C)) >= 48 && o <= 57; C++); if (46 == i.charCodeAt(C)) { for (n = ++C; n < c && (o = i.charCodeAt(n)) >= 48 && o <= 57; n++); n == C && N(), C = n } if (101 == (o = i.charCodeAt(C)) || 69 == o) { for (o = i.charCodeAt(++C), 43 != o && 45 != o || C++, n = C; n < c && (o = i.charCodeAt(n)) >= 48 && o <= 57; n++); n == C && N(), C = n } return +i.slice(e, C) } if (r && N(), "true" == i.slice(C, C + 4)) return C += 4, !0; if ("false" == i.slice(C, C + 5)) return C += 5, !1; if ("null" == i.slice(C, C + 4)) return C += 4, null; N() }return "$" }, M = function (t) { var e, n; if ("$" == t && N(), "string" == typeof t) { if ("@" == (x ? t.charAt(0) : t[0])) return t.slice(1); if ("[" == t) { for (e = []; "]" != (t = D()); n || (n = !0))n && ("," == t ? "]" == (t = D()) && N() : N()), "," == t && N(), e.push(M(t)); return e } if ("{" == t) { for (e = {}; "}" != (t = D()); n || (n = !0))n && ("," == t ? "}" == (t = D()) && N() : N()), "," != t && "string" == typeof t && "@" == (x ? t.charAt(0) : t[0]) && ":" == D() || N(), e[t.slice(1)] = M(D()); return e } N() } return t }, L = function (t, e, n) { var r = P(t, e, n); r === v ? delete t[e] : t[e] = r }, P = function (t, e, n) { var r, o = t[e]; if ("object" == typeof o && o) if ("[object Array]" == y.call(o)) for (r = o.length; r--;)L(o, r, n); else g(o, function (t) { L(o, t, n) }); return n.call(t, e, o) }; e.parse = function (t, e) { var n, r; return C = 0, A = "" + t, n = M(D()), "$" != D() && N(), C = A = null, e && "[object Function]" == y.call(e) ? P((r = {}, r[""] = n, r), "", e) : n } } } return e.runInContext = i, e } var c = n(70), a = { "function": !0, "object": !0 }, s = a[typeof e] && e && !e.nodeType && e, u = a[typeof window] && window || this, l = s && a[typeof t] && t && !t.nodeType && "object" == typeof o && o; if (!l || l.global !== l && l.window !== l && l.self !== l || (u = l), s && !c) i(u, s); else { var f = u.JSON, p = u.JSON3, d = !1, h = i(u, u.JSON3 = { "noConflict": function () { return d || (d = !0, u.JSON = f, u.JSON3 = p, f = p = null), h } }); u.JSON = { "parse": h.parse, "stringify": h.stringify } } c && (r = function () { return h }.call(e, n, e, t)) !== undefined && (t.exports = r) }).call(this) }).call(e, n(69)(t), function () { return this }()) }, function (t, e) { t.exports = function (t) { return t.webpackPolyfill || (t.deprecate = function () { }, t.paths = [], t.children = [], t.webpackPolyfill = 1), t } }, function (t, e) { (function (e) { t.exports = e }).call(e, {}) }, function (t, e) { function n(t) { var e, n, o, c, a, s, u, l = "", f = 0; for (t = r(t); f < t.length;)e = t.charCodeAt(f++), n = t.charCodeAt(f++), o = t.charCodeAt(f++), c = e >> 2, a = (3 & e) << 4 | n >> 4, s = isNaN(n) ? 64 : (15 & n) << 2 | o >> 6, u = isNaN(n) || isNaN(o) ? 64 : 63 & o, l = l + i.charAt(c) + i.charAt(a) + i.charAt(s) + i.charAt(u); return l } function r(t) { for (var e, n = "", r = 0; r < t.length;)e = t.charCodeAt(r++), n += e < 128 ? o(e) : e > 127 && e < 2048 ? o(e >> 6 | 192) + o(63 & e | 128) : o(e >> 12 | 224) + o(e >> 6 & 63 | 128) + o(63 & e | 128); return n } var o = String.fromCharCode, i = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="; t.exports = n }, function (t, e, n) { function r(t) { i(o.isObject(t), "Check out our JavaScript SDK Usage Guide: http://docs.treasuredata.com/articles/javascript-sdk"), i(o.isString(t.writeKey), "Must provide a writeKey"), i(o.isString(t.database), "Must provide a database"), i(/^[a-z0-9_]{3,255}$/.test(t.database), "Database must be between 3 and 255 characters and must consist only of lower case letters, numbers, and _") } var o = n(9), i = n(3).invariant, c = n(73), a = n(65), s = function () { for (var t = document.location.hostname.split("."), e = t.length - 2; e >= 1; e--) { var n = t.slice(e).join("."), r = "_td_domain_" + n; if (a.setItem(r, n, 3600, "/", n), a.getItem(r) === n) return n } return document.location.hostname }; e.DEFAULT_CONFIG = { "database": c.DATABASE, "development": !1, "globalIdCookie": "_td_global", "host": c.HOST, "logging": !0, "pathname": c.PATHNAME, "requestType": "jsonp", "jsonpTimeout": 1e4, "startInSignedMode": !1, "useServerSideCookie": !1, "sscDomain": s, "sscServer": function (t) { return ["ssc", t].join(".") }, "storeConsentByLocalStorage": !1 }, e.configure = function (t) { return this.client = o.assign({ "globals": {} }, e.DEFAULT_CONFIG, t, { "requestType": "jsonp" }), r(this.client), this.client.endpoint || (this.client.endpoint = "https://" + this.client.host + this.client.pathname), this }, e.set = function (t, e, n) { return o.isObject(t) && (e = t, t = "$global"), this.client.globals[t] = this.client.globals[t] || {}, o.isObject(e) ? o.assign(this.client.globals[t], e) : this.client.globals[t][e] = n, this }, e.get = function (t, e) { return t = t || "$global", this.client.globals[t] = this.client.globals[t] || {}, e ? this.client.globals[t][e] : this.client.globals[t] } }, function (t, e) { t.exports = { "GLOBAL": "JuicerTreasure", "VERSION": "2.3.0", "HOST": "in.treasuredata.com", "DATABASE": "", "PATHNAME": "/js/v3/event/" } }, function (t, e, n) { t.exports = n(73).VERSION }, function (t, e, n) {/*! * domready (c) Dustin Diaz 2012 - License MIT */ !function (e, n) { t.exports = n() }(0, function (t) { function e(t) { for (s = 1; t = r.shift();)t() } var n, r = [], o = document, i = o.documentElement, c = i.doScroll, a = c ? /^loaded|^c/ : /^loaded|c/, s = a.test(o.readyState); return o.addEventListener && o.addEventListener("DOMContentLoaded", n = function () { o.removeEventListener("DOMContentLoaded", n, !1), e() }, !1), c && o.attachEvent("onreadystatechange", n = function () { /^c/.test(o.readyState) && (o.detachEvent("onreadystatechange", n), e()) }), t = c ? function (e) { self != top ? s ? e() : r.push(e) : function () { try { i.doScroll("left") } catch (n) { return setTimeout(function () { t(e) }, 50) } e() }() } : function (t) { s ? t() : r.push(t) } }) }, function (t, e, n) { function r(t, e) { return e } function o() { this._clickTrackingInstalled = !1 } function i(t) { function e(t) { var e = a.findElement(a.getEventTarget(t)); if (e && !i(e)) { var r = a.getElementData(e), c = o.extendClickData(t, r); c && n.trackEvent(o.tableName, c) } } if (!this._clickTrackingInstalled) { var n = this, o = s({ "element": c.document, "extendClickData": r, "ignoreAttribute": "td-ignore", "tableName": "clicks" }, t), i = a.createTreeHasIgnoreAttribute(o.ignoreAttribute), l = a.addEventListener(o.element, "click", e); return n._clickTrackingInstalled = !0, u(function () { l(), n._clickTrackingInstalled = !1 }) } } var c = n(64), a = n(77), s = n(9).assign, u = n(3).disposable; t.exports = { "configure": o, "trackClicks": i } }, function (t, e, n) { function r(t) { var e = t.target || t.srcElement || window.document; return 3 === e.nodeType ? e.parentNode : e } function o(t, e, n) { function r(e) { n.call(t, e || window.event) } if (t.addEventListener) return t.addEventListener(e, r, !1), d(function () { t.removeEventListener(e, r, !1) }); if (t.attachEvent) return t.attachEvent("on" + e, r), d(function () { t.detachEvent("on" + e, r) }); throw new Error("addEventListener") } function i(t) { if (!t || !t.tagName) return null; for (var e = t.tagName.toLowerCase(); e && "body" !== e; t = t.parentNode, e = t && t.tagName && t.tagName.toLowerCase()) { var n = t.getAttribute("type"); if ("input" === e && "password" === n) return null; var r = t.getAttribute("role"); if ("button" === r || "link" === r || "a" === e || "button" === e || "input" === e) return t } return null } function c(t) { var e = "data-" + t; return function n(r) { return !(!r || !r.tagName || "html" === r.tagName.toLowerCase()) && (!(!l(r, t) && !l(r, e)) || n(r.parentNode)) } } function a(t) { var e = { "tag": t.tagName.toLowerCase(), "tree": s(t) }; return f(["alt", "class", "href", "id", "name", "role", "title", "type"], function (n) { l(t, n) && (e[n] = t.getAttribute(n)) }), e } function s(t) { for (var e, n = [], r = 0, o = 0, i = " > ".length; t && r++ < 5 && !("html" === (e = u(t)) || r > 1 && o + n.length * i + e.length >= 80);)n.push(e), o += e.length, t = t.parentNode; return n.reverse().join(" > ") } function u(t) { var e, n, r, o, i, c = []; if (!t || !t.tagName) return ""; if (c.push(t.tagName.toLowerCase()), t.id && c.push("#" + t.id), (e = t.className) && p(e)) for (n = e.split(" "), i = 0; i < n.length; i++)c.push("." + n[i]); var a = ["type", "name", "title", "alt"]; for (i = 0; i < a.length; i++)r = a[i], (o = t.getAttribute(r)) && c.push("[" + r + '="' + o + '"]'); return c.join("") } function l(t, e) { return "function" == typeof t.hasAttribute ? t.hasAttribute(e) : null !== t.getAttribute(e) } var f = n(9).forEach, p = n(9).isString, d = n(3).disposable; t.exports = { "addEventListener": o, "createTreeHasIgnoreAttribute": c, "getElementData": a, "getEventTarget": r, "hasAttribute": l, "htmlElementAsString": u, "htmlTreeAsString": s, "findElement": i } }, function (t, e, n) { function r(t, e) { return t.global_id ? (u.setItem(e, t.global_id, 6e3), t.global_id) : null } function o() { } function i(t, e, n) { if (t = t || s, e = e || s, !this.inSignedMode()) return e("not in signed in mode"); var o = this.client.globalIdCookie, i = u.getItem(this.client.globalIdCookie); if (i && !n) return setTimeout(function () { t(i) }, 0); var l = "https://" + this.client.host + "/js/v3/global_id"; a("jsonp" === this.client.requestType, "Request type " + this.client.requestType + " not supported"), c(l, { "prefix": "TreasureJSONPCallback", "timeout": this.client.jsonpTimeout }, function (n, i) { return n ? e(n) : t(r(i, o)) }) } var c = n(4), a = n(3).invariant, s = n(3).noop, u = n(65); t.exports = { "cacheSuccess": r, "configure": o, "fetchGlobalID": i } }, function (t, e, n) { function r(t) { return t = s.isObject(t) ? t : {}, this.client.cdpHost = t.cdpHost || "cdp.in.treasuredata.com", this } function o(t, e, n) { var r = s.isObject(t) && !s.isArray(t), o = r ? t.audienceToken : t, u = r && t.keys || {}; e = e || c, n = n || c, a("string" == typeof o || s.isArray(o), 'audienceToken must be a string or array; received "' + o.toString() + '"'), a(s.isObject(u), 'keys must be an object; received "' + u + '"'); var l = s.isArray(o) ? o.join(",") : o, f = s.keys(u), p = []; s.forEach(f, function (t) { p.push(["key.", t, "=", u[t]].join("")) }); var d = p.join("&"), h = "https://" + this.client.cdpHost + "/cdp/lookup/collect/segments?version=2&token=" + l + (d && "&" + d); i(h, { "prefix": "TreasureJSONPCallback", "timeout": this.client.jsonpTimeout }, function (t, r) { return t ? n(t) : e(r) }) } var i = n(4), c = n(3).noop, a = n(3).invariant, s = n(9); t.exports = { "configure": r, "fetchUserSegments": o } }, function (t, e, n) { function r(t) { return s.assign({ "td_version": function () { return p }, "td_client_id": function () { return t.uuid }, "td_charset": function () { return (d.characterSet || d.charset || "-").toLowerCase() }, "td_language": function () { var t = a.navigator; return (t && (t.language || t.browserLanguage) || "-").toLowerCase() }, "td_color": function () { return a.screen ? a.screen.colorDepth + "-bit" : "-" }, "td_screen": function () { return a.screen ? a.screen.width + "x" + a.screen.height : "-" }, "td_viewport": function () { var t = d.documentElement && d.documentElement.clientHeight, e = d.documentElement && d.documentElement.clientWidth, n = a.innerHeight, r = a.innerWidth, o = t < n ? n : t; return (e < r ? r : e) + "x" + o }, "td_title": function () { return d.title }, "td_description": function () { return c("description") }, "td_url": function () { return d.location && d.location.href ? d.location.href.split("#")[0] : "" }, "td_user_agent": function () { return a.navigator.userAgent }, "td_platform": function () { return a.navigator.platform }, "td_host": function () { return d.location.host }, "td_path": function () { return d.location.pathname }, "td_referrer": function () { return d.referrer }, "td_ip": function () { return "td_ip" }, "td_browser": function () { return "td_browser" }, "td_browser_version": function () { return "td_browser_version" }, "td_os": function () { return "td_os" }, "td_os_version": function () { return "td_os_version" } }, t.values) } function o(t) { return s.assign({ "pageviews": "pageviews", "events": "events", "values": {} }, t) } function i(t) { return "none" !== t && (t = s.isObject(t) ? t : {}, s.assign({ "name": "_td", "expires": 63072e3, "domain": d.location.hostname, "customDomain": !!t.domain, "path": "/" }, t)) } function c(t) { for (var e = d.head || d.getElementsByTagName("head")[0], n = e.getElementsByTagName("meta"), r = n.length, o = 0; o < r; o++)if (n[o].getAttribute("name") === t) return (n[o].getAttribute("content") || "").substr(0, 8192); return "" }/*! * ---------------------- * Treasure Tracker * ---------------------- */ var a = n(64), s = n(9), u = n(65), l = n(66), f = n(81), p = n(74), d = a.document; e.configure = function (t) { return t = s.isObject(t) ? t : {}, this.client.track = t.track = o(t.track), this.client.storage = t.storage = i(t.storage), s.isNumber(t.clientId) ? t.clientId = t.clientId.toString() : t.clientId && s.isString(t.clientId) || (t.storage && t.storage.name && (t.clientId = u.getItem(t.storage.name)), t.clientId && "undefined" !== t.clientId || (t.clientId = f())), this.resetUUID(t.storage, t.clientId), this }, e.resetUUID = function (t, e) { var n = e || f(), o = t || this.client.storage; return this.client.track.uuid = n.replace(/\0/g, ""), o && o.expires && (l(o, o.name, undefined), l(o, o.name, this.client.track.uuid)), this.client.track.values = s.assign(r(this.client.track), this.client.track.values), this }, e.trackEvent = function (t, e, n, r) { return t || (t = this.client.track.events), e = s.assign(this.getTrackValues(), e), this.addRecord(t, e, n, r), this }, e.trackPageview = function (t, e, n) { return t || (t = this.client.track.pageviews), this.trackEvent(t, {}, e, n), this }, e.getTrackValues = function () { var t = {}; return s.forIn(this.client.track.values, function (e, n) { e && (t[n] = "function" == typeof e ? e() : e) }), t } }, function (t, e, n) { var r = n(64); t.exports = function () { var t = (new Date).getTime(); return r.performance && "function" == typeof r.performance.now && (t += r.performance.now()), "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function (e) { var n = (t + 16 * Math.random()) % 16 | 0; return t = Math.floor(t / 16), ("x" === e ? n : 3 & n | 8).toString(16) }) } }, function (t, e, n) { function r() { return this } function o(t, e, n) { if (t = t || c, e = e || c, !this.inSignedMode()) return e("not in signed in mode"); if (!this.client.useServerSideCookie) return e("server side cookie not enabled"); this._serverCookieDomainHost || ("function" == typeof this.client.sscDomain ? this._serverCookieDomain = this.client.sscDomain() : this._serverCookieDomain = this.client.sscDomain, "function" == typeof this.client.sscServer ? this._serverCookieDomainHost = this.client.sscServer(this._serverCookieDomain) : this._serverCookieDomainHost = this.client.sscServer); var r = "https://" + this._serverCookieDomainHost + "/get_cookie_id?cookie_domain=" + window.encodeURI(this._serverCookieDomain) + "&r=" + (new Date).getTime(), o = s.getItem(u); if (o && !n) return setTimeout(function () { t(o) }, 0); a("jsonp" === this.client.requestType, "Request type " + this.client.requestType + " not supported"), i(r, { "prefix": "TreasureJSONPCallback", "timeout": this.client.jsonpTimeout }, function (n, r) { return n ? e(n) : t(r.td_ssc_id) }) } var i = n(4), c = n(3).noop, a = n(3).invariant, s = n(65), u = "_td_ssc_id"; t.exports = { "configure": r, "fetchServerCookie": o } }, function (t, e, n) { function r(t, e) { var n = "_" + e; if (t[n]) { for (var r = t[n] || []; r.length;)t[e].apply(t, r.shift()); delete t[n] } } var o = n(9), i = n(64), c = ["init", "set", "blockEvents", "unblockEvents", "setSignedMode", "setAnonymousMode", "resetUUID", "addRecord", "fetchGlobalID", "trackPageview", "trackEvent", "trackClicks", "fetchUserSegments", "fetchServerCookie", "ready"]; t.exports = function (t, e) { if (o.isObject(i[e])) { var n = i[e], a = n.clients; o.forIn(t.prototype, function (t, e) { n.prototype[e] = t }), o.forEach(a, function (t) { o.forEach(c, function (e) { r(t, e) }) }) } } }]);