-
-
Save tmcw/14800f3f232962de8d31 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
(function() { | |
!function t(e, n, i) { | |
function o(t) { | |
if (n[t]) return n[t].exports; | |
if (e[t]) return r(t, o); | |
throw new Error('cannot find module "' + t + '"'); | |
} | |
function r(o, r) { | |
var a = n[o] = { | |
exports: {} | |
}, s = e[o], c = s[2], p = s[0], u = !0; | |
try { | |
p.call(a.exports, function(t) { | |
var n = e[o][1][t]; | |
return r(n || t); | |
}, a, a.exports, t, e, n, i); | |
u = !1; | |
} finally { | |
u ? delete n[o] : c && (n[c] = n[o]); | |
} | |
return n[o].exports; | |
} | |
var a = function() { | |
return this; | |
}(); | |
for (var s in i) i[s] ? a[i[s]] = o(s) : o(s); | |
o.duo = !0; | |
o.cache = n; | |
o.modules = e; | |
return o; | |
}({ | |
1: [ function(t) { | |
var e = window.analytics || [], n = t("./"), i = e && e.SNIPPET_VERSION ? parseFloat(e.SNIPPET_VERSION, 10) : 0; | |
n.initialize({ | |
"Segment.io": { | |
apiKey: "fGeG9GGLPaJVqdpMPfmfCH6jvJUncCj4" | |
} | |
}, { | |
initialPageview: 0 === i, | |
plan: { | |
track: {} | |
} | |
}); | |
for (;e && e.length > 0; ) { | |
var o = e.shift(), r = o.shift(); | |
n[r] && n[r].apply(n, o); | |
} | |
window.analytics = n; | |
}, { | |
"./": 2 | |
} ], | |
2: [ function(t, e) { | |
var n = t("./integrations"), i = t("analytics.js-core"), o = t("each"); | |
o(n, function(t, e) { | |
i.use(e); | |
}); | |
e.exports = i; | |
}, { | |
"./integrations": 3, | |
"analytics.js-core": 4, | |
each: 5 | |
} ], | |
3: [ function(t, e) { | |
"use strict"; | |
e.exports = { | |
adroll: t("analytics.js-integration-adroll"), | |
adwords: t("analytics.js-integration-adwords"), | |
alexa: t("analytics.js-integration-alexa"), | |
amplitude: t("analytics.js-integration-amplitude"), | |
appcues: t("analytics.js-integration-appcues"), | |
atatus: t("analytics.js-integration-atatus"), | |
autosend: t("analytics.js-integration-autosend"), | |
awesm: t("analytics.js-integration-awesm"), | |
"bing-ads": t("analytics.js-integration-bing-ads"), | |
blueshift: t("analytics.js-integration-blueshift"), | |
bronto: t("analytics.js-integration-bronto"), | |
bugherd: t("analytics.js-integration-bugherd"), | |
bugsnag: t("analytics.js-integration-bugsnag"), | |
chameleon: t("analytics.js-integration-chameleon"), | |
chartbeat: t("analytics.js-integration-chartbeat"), | |
clicktale: t("analytics.js-integration-clicktale"), | |
clicky: t("analytics.js-integration-clicky"), | |
comscore: t("analytics.js-integration-comscore"), | |
"crazy-egg": t("analytics.js-integration-crazy-egg"), | |
curebit: t("analytics.js-integration-curebit"), | |
customerio: t("analytics.js-integration-customerio"), | |
drip: t("analytics.js-integration-drip"), | |
elevio: t("analytics.js-integration-elevio"), | |
errorception: t("analytics.js-integration-errorception"), | |
evergage: t("analytics.js-integration-evergage"), | |
extole: t("analytics.js-integration-extole"), | |
"facebook-conversion-tracking": t("analytics.js-integration-facebook-conversion-tracking"), | |
foxmetrics: t("analytics.js-integration-foxmetrics"), | |
frontleaf: t("analytics.js-integration-frontleaf"), | |
fullstory: t("analytics.js-integration-fullstory"), | |
gauges: t("analytics.js-integration-gauges"), | |
"get-satisfaction": t("analytics.js-integration-get-satisfaction"), | |
"google-analytics": t("analytics.js-integration-google-analytics"), | |
"google-tag-manager": t("analytics.js-integration-google-tag-manager"), | |
gosquared: t("analytics.js-integration-gosquared"), | |
heap: t("analytics.js-integration-heap"), | |
hellobar: t("analytics.js-integration-hellobar"), | |
hittail: t("analytics.js-integration-hittail"), | |
hubspot: t("analytics.js-integration-hubspot"), | |
improvely: t("analytics.js-integration-improvely"), | |
insidevault: t("analytics.js-integration-insidevault"), | |
inspectlet: t("analytics.js-integration-inspectlet"), | |
intercom: t("analytics.js-integration-intercom"), | |
"keen-io": t("analytics.js-integration-keen-io"), | |
kenshoo: t("analytics.js-integration-kenshoo"), | |
kissmetrics: t("analytics.js-integration-kissmetrics"), | |
klaviyo: t("analytics.js-integration-klaviyo"), | |
livechat: t("analytics.js-integration-livechat"), | |
"lucky-orange": t("analytics.js-integration-lucky-orange"), | |
lytics: t("analytics.js-integration-lytics"), | |
mixpanel: t("analytics.js-integration-mixpanel"), | |
mojn: t("analytics.js-integration-mojn"), | |
mouseflow: t("analytics.js-integration-mouseflow"), | |
mousestats: t("analytics.js-integration-mousestats"), | |
navilytics: t("analytics.js-integration-navilytics"), | |
nudgespot: t("analytics.js-integration-nudgespot"), | |
olark: t("analytics.js-integration-olark"), | |
optimizely: t("analytics.js-integration-optimizely"), | |
outbound: t("analytics.js-integration-outbound"), | |
parsely: t("analytics.js-integration-parsely"), | |
"perfect-audience": t("analytics.js-integration-perfect-audience"), | |
pingdom: t("analytics.js-integration-pingdom"), | |
piwik: t("analytics.js-integration-piwik"), | |
preact: t("analytics.js-integration-preact"), | |
qualaroo: t("analytics.js-integration-qualaroo"), | |
quantcast: t("analytics.js-integration-quantcast"), | |
ramen: t("analytics.js-integration-ramen"), | |
rollbar: t("analytics.js-integration-rollbar"), | |
route: t("analytics.js-integration-route"), | |
saasquatch: t("analytics.js-integration-saasquatch"), | |
satismeter: t("analytics.js-integration-satismeter"), | |
segmentio: t("analytics.js-integration-segmentio"), | |
sentry: t("analytics.js-integration-sentry"), | |
snapengage: t("analytics.js-integration-snapengage"), | |
spinnakr: t("analytics.js-integration-spinnakr"), | |
supporthero: t("analytics.js-integration-supporthero"), | |
taplytics: t("analytics.js-integration-taplytics"), | |
tapstream: t("analytics.js-integration-tapstream"), | |
trakio: t("analytics.js-integration-trakio"), | |
"twitter-ads": t("analytics.js-integration-twitter-ads"), | |
userlike: t("analytics.js-integration-userlike"), | |
uservoice: t("analytics.js-integration-uservoice"), | |
vero: t("analytics.js-integration-vero"), | |
"visual-website-optimizer": t("analytics.js-integration-visual-website-optimizer"), | |
webengage: t("analytics.js-integration-webengage"), | |
woopra: t("analytics.js-integration-woopra"), | |
wootric: t("analytics.js-integration-wootric"), | |
"yandex-metrica": t("analytics.js-integration-yandex-metrica"), | |
"adlearn-open-platform": t("segment-integrations/analytics.js-integration-adlearn-open-platform"), | |
adometry: t("segment-integrations/analytics.js-integration-adometry"), | |
appnexus: t("segment-integrations/analytics.js-integration-appnexus"), | |
convertro: t("segment-integrations/analytics.js-integration-convertro"), | |
eloqua: t("segment-integrations/analytics.js-integration-eloqua"), | |
"email-aptitude": t("segment-integrations/analytics.js-integration-email-aptitude"), | |
"facebook-custom-audiences": t("segment-integrations/analytics.js-integration-facebook-custom-audiences"), | |
localytics: t("segment-integrations/analytics.js-integration-localytics"), | |
marketo: t("segment-integrations/analytics.js-integration-marketo"), | |
mediamath: t("segment-integrations/analytics.js-integration-mediamath"), | |
monetate: t("segment-integrations/analytics.js-integration-monetate"), | |
nanigans: t("segment-integrations/analytics.js-integration-nanigans"), | |
omniture: t("segment-integrations/analytics.js-integration-omniture"), | |
onespot: t("segment-integrations/analytics.js-integration-onespot"), | |
pardot: t("segment-integrations/analytics.js-integration-pardot"), | |
rockerbox: t("segment-integrations/analytics.js-integration-rockerbox"), | |
"rocket-fuel": t("segment-integrations/analytics.js-integration-rocket-fuel"), | |
shareasale: t("segment-integrations/analytics.js-integration-shareasale"), | |
simplifi: t("segment-integrations/analytics.js-integration-simplifi"), | |
steelhouse: t("segment-integrations/analytics.js-integration-steelhouse"), | |
"tell-apart": t("segment-integrations/analytics.js-integration-tell-apart"), | |
totango: t("segment-integrations/analytics.js-integration-totango"), | |
trackjs: t("segment-integrations/analytics.js-integration-trackjs"), | |
tvsquared: t("segment-integrations/analytics.js-integration-tvsquared"), | |
yellowhammer: t("segment-integrations/analytics.js-integration-yellowhammer"), | |
zopim: t("segment-integrations/analytics.js-integration-zopim") | |
}; | |
}, { | |
"analytics.js-integration-adroll": 6, | |
"analytics.js-integration-adwords": 7, | |
"analytics.js-integration-alexa": 8, | |
"analytics.js-integration-amplitude": 9, | |
"analytics.js-integration-appcues": 10, | |
"analytics.js-integration-atatus": 11, | |
"analytics.js-integration-autosend": 12, | |
"analytics.js-integration-awesm": 13, | |
"analytics.js-integration-bing-ads": 14, | |
"analytics.js-integration-blueshift": 15, | |
"analytics.js-integration-bronto": 16, | |
"analytics.js-integration-bugherd": 17, | |
"analytics.js-integration-bugsnag": 18, | |
"analytics.js-integration-chameleon": 19, | |
"analytics.js-integration-chartbeat": 20, | |
"analytics.js-integration-clicktale": 21, | |
"analytics.js-integration-clicky": 22, | |
"analytics.js-integration-comscore": 23, | |
"analytics.js-integration-crazy-egg": 24, | |
"analytics.js-integration-curebit": 25, | |
"analytics.js-integration-customerio": 26, | |
"analytics.js-integration-drip": 27, | |
"analytics.js-integration-elevio": 28, | |
"analytics.js-integration-errorception": 29, | |
"analytics.js-integration-evergage": 30, | |
"analytics.js-integration-extole": 31, | |
"analytics.js-integration-facebook-conversion-tracking": 32, | |
"analytics.js-integration-foxmetrics": 33, | |
"analytics.js-integration-frontleaf": 34, | |
"analytics.js-integration-fullstory": 35, | |
"analytics.js-integration-gauges": 36, | |
"analytics.js-integration-get-satisfaction": 37, | |
"analytics.js-integration-google-analytics": 38, | |
"analytics.js-integration-google-tag-manager": 39, | |
"analytics.js-integration-gosquared": 40, | |
"analytics.js-integration-heap": 41, | |
"analytics.js-integration-hellobar": 42, | |
"analytics.js-integration-hittail": 43, | |
"analytics.js-integration-hubspot": 44, | |
"analytics.js-integration-improvely": 45, | |
"analytics.js-integration-insidevault": 46, | |
"analytics.js-integration-inspectlet": 47, | |
"analytics.js-integration-intercom": 48, | |
"analytics.js-integration-keen-io": 49, | |
"analytics.js-integration-kenshoo": 50, | |
"analytics.js-integration-kissmetrics": 51, | |
"analytics.js-integration-klaviyo": 52, | |
"analytics.js-integration-livechat": 53, | |
"analytics.js-integration-lucky-orange": 54, | |
"analytics.js-integration-lytics": 55, | |
"analytics.js-integration-mixpanel": 56, | |
"analytics.js-integration-mojn": 57, | |
"analytics.js-integration-mouseflow": 58, | |
"analytics.js-integration-mousestats": 59, | |
"analytics.js-integration-navilytics": 60, | |
"analytics.js-integration-nudgespot": 61, | |
"analytics.js-integration-olark": 62, | |
"analytics.js-integration-optimizely": 63, | |
"analytics.js-integration-outbound": 64, | |
"analytics.js-integration-parsely": 65, | |
"analytics.js-integration-perfect-audience": 66, | |
"analytics.js-integration-pingdom": 67, | |
"analytics.js-integration-piwik": 68, | |
"analytics.js-integration-preact": 69, | |
"analytics.js-integration-qualaroo": 70, | |
"analytics.js-integration-quantcast": 71, | |
"analytics.js-integration-ramen": 72, | |
"analytics.js-integration-rollbar": 73, | |
"analytics.js-integration-route": 74, | |
"analytics.js-integration-saasquatch": 75, | |
"analytics.js-integration-satismeter": 76, | |
"analytics.js-integration-segmentio": 77, | |
"analytics.js-integration-sentry": 78, | |
"analytics.js-integration-snapengage": 79, | |
"analytics.js-integration-spinnakr": 80, | |
"analytics.js-integration-supporthero": 81, | |
"analytics.js-integration-taplytics": 82, | |
"analytics.js-integration-tapstream": 83, | |
"analytics.js-integration-trakio": 84, | |
"analytics.js-integration-twitter-ads": 85, | |
"analytics.js-integration-userlike": 86, | |
"analytics.js-integration-uservoice": 87, | |
"analytics.js-integration-vero": 88, | |
"analytics.js-integration-visual-website-optimizer": 89, | |
"analytics.js-integration-webengage": 90, | |
"analytics.js-integration-woopra": 91, | |
"analytics.js-integration-wootric": 92, | |
"analytics.js-integration-yandex-metrica": 93, | |
"segment-integrations/analytics.js-integration-adlearn-open-platform": 94, | |
"segment-integrations/analytics.js-integration-adometry": 95, | |
"segment-integrations/analytics.js-integration-appnexus": 96, | |
"segment-integrations/analytics.js-integration-convertro": 97, | |
"segment-integrations/analytics.js-integration-eloqua": 98, | |
"segment-integrations/analytics.js-integration-email-aptitude": 99, | |
"segment-integrations/analytics.js-integration-facebook-custom-audiences": 100, | |
"segment-integrations/analytics.js-integration-localytics": 101, | |
"segment-integrations/analytics.js-integration-marketo": 102, | |
"segment-integrations/analytics.js-integration-mediamath": 103, | |
"segment-integrations/analytics.js-integration-monetate": 104, | |
"segment-integrations/analytics.js-integration-nanigans": 105, | |
"segment-integrations/analytics.js-integration-omniture": 106, | |
"segment-integrations/analytics.js-integration-onespot": 107, | |
"segment-integrations/analytics.js-integration-pardot": 108, | |
"segment-integrations/analytics.js-integration-rockerbox": 109, | |
"segment-integrations/analytics.js-integration-rocket-fuel": 110, | |
"segment-integrations/analytics.js-integration-shareasale": 111, | |
"segment-integrations/analytics.js-integration-simplifi": 112, | |
"segment-integrations/analytics.js-integration-steelhouse": 113, | |
"segment-integrations/analytics.js-integration-tell-apart": 114, | |
"segment-integrations/analytics.js-integration-totango": 115, | |
"segment-integrations/analytics.js-integration-trackjs": 116, | |
"segment-integrations/analytics.js-integration-tvsquared": 117, | |
"segment-integrations/analytics.js-integration-yellowhammer": 118, | |
"segment-integrations/analytics.js-integration-zopim": 119 | |
} ], | |
6: [ function(t, e) { | |
var o = t("analytics.js-integration"); | |
e.exports = function() {}; | |
e.exports.Integration = o("empty"); | |
}, { | |
each: 120, | |
foldl: 121, | |
"analytics.js-integration": 122, | |
"ndhoule/map": 123, | |
"to-snake-case": 124, | |
"use-https": 125 | |
} ], | |
120: [ function(t, e) { | |
function n(t, e) { | |
for (var n = 0; n < t.length; ++n) e(t.charAt(n), n); | |
} | |
function i(t, e) { | |
for (var n in t) a.call(t, n) && e(n, t[n]); | |
} | |
function o(t, e) { | |
for (var n = 0; n < t.length; ++n) e(t[n], n); | |
} | |
var r = t("type"), a = Object.prototype.hasOwnProperty; | |
e.exports = function(t, e) { | |
switch (r(t)) { | |
case "array": | |
return o(t, e); | |
case "object": | |
return "number" == typeof t.length ? o(t, e) : i(t, e); | |
case "string": | |
return n(t, e); | |
} | |
}; | |
}, { | |
type: 126 | |
} ], | |
126: [ function(t, e) { | |
var n = Object.prototype.toString; | |
e.exports = function(t) { | |
switch (n.call(t)) { | |
case "[object Date]": | |
return "date"; | |
case "[object RegExp]": | |
return "regexp"; | |
case "[object Arguments]": | |
return "arguments"; | |
case "[object Array]": | |
return "array"; | |
case "[object Error]": | |
return "error"; | |
} | |
if (null === t) return "null"; | |
if (void 0 === t) return "undefined"; | |
if (t !== t) return "nan"; | |
if (t && 1 === t.nodeType) return "element"; | |
t = t.valueOf ? t.valueOf() : Object.prototype.valueOf.apply(t); | |
return typeof t; | |
}; | |
}, {} ], | |
121: [ function(t, e) { | |
"use strict"; | |
var n; | |
try { | |
n = t("@ndhoule/each"); | |
} catch (i) { | |
n = t("each"); | |
} | |
var o = function(t, e, i) { | |
if ("function" != typeof t) throw new TypeError("Expected a function but received a " + typeof t); | |
n(function(n, i, o) { | |
e = t(e, n, i, o); | |
}, i); | |
return e; | |
}; | |
e.exports = o; | |
}, { | |
each: 127 | |
} ], | |
127: [ function(t, e) { | |
"use strict"; | |
var n; | |
try { | |
n = t("@ndhoule/keys"); | |
} catch (i) { | |
n = t("keys"); | |
} | |
var o = Object.prototype.toString, r = function(t) { | |
var e = typeof t; | |
return "number" === e || "object" === e && "[object Number]" === o.call(t); | |
}, a = "function" == typeof Array.isArray ? Array.isArray : function(t) { | |
return "[object Array]" === o.call(t); | |
}, s = function(t) { | |
return null != t && (a(t) || "function" !== t && r(t.length)); | |
}, c = function(t, e) { | |
for (var n = 0; n < e.length && t(e[n], n, e) !== !1; n += 1) ; | |
}, p = function(t, e) { | |
for (var i = n(e), o = 0; o < i.length && t(e[i[o]], i[o], e) !== !1; o += 1) ; | |
}, u = function(t, e) { | |
return (s(e) ? c : p).call(this, t, e); | |
}; | |
e.exports = u; | |
}, { | |
keys: 128 | |
} ], | |
128: [ function(t, e) { | |
"use strict"; | |
var n = String.prototype.charAt, i = function(t, e) { | |
return n.call(t, e); | |
}, o = Object.prototype.hasOwnProperty, r = Object.prototype.toString, a = function(t, e) { | |
return o.call(t, e); | |
}, s = function(t) { | |
return "[object String]" === r.call(t); | |
}, c = function(t) { | |
return null != t && "function" != typeof t && "number" == typeof t.length; | |
}, p = function(t, e) { | |
e = e || a; | |
for (var n = [], i = 0, o = t.length; o > i; i += 1) e(t, i) && n.push(String(i)); | |
return n; | |
}, u = function(t, e) { | |
e = e || a; | |
var n = []; | |
for (var i in t) e(t, i) && n.push(String(i)); | |
return n; | |
}; | |
e.exports = function(t) { | |
return null == t ? [] : s(t) ? p(t, i) : c(t) ? p(t, a) : u(t); | |
}; | |
}, {} ], | |
122: [ function(t, e) { | |
function n(t) { | |
function e(n) { | |
if (n && n.addIntegration) return n.addIntegration(e); | |
this.debug = r("analytics:integration:" + c(t)); | |
this.options = a(o(n) || {}, this.defaults); | |
this._queue = []; | |
this.once("ready", i(this, this.flush)); | |
e.emit("construct", this); | |
this.ready = i(this, this.ready); | |
this._wrapInitialize(); | |
this._wrapPage(); | |
this._wrapTrack(); | |
} | |
e.prototype.defaults = {}; | |
e.prototype.globals = []; | |
e.prototype.templates = {}; | |
e.prototype.name = t; | |
s(e, u); | |
s(e.prototype, p); | |
return e; | |
} | |
var i = t("bind"), o = t("clone"), r = t("debug"), a = t("defaults"), s = t("extend"), c = t("slug"), p = t("./protos"), u = t("./statics"); | |
e.exports = n; | |
}, { | |
bind: 129, | |
clone: 130, | |
debug: 131, | |
defaults: 132, | |
extend: 133, | |
slug: 134, | |
"./protos": 135, | |
"./statics": 136 | |
} ], | |
129: [ function(t, e, n) { | |
function i(t, e) { | |
e = [].slice.call(arguments, 1); | |
for (var n, i = 0; n = e[i]; i++) t[n] = o(t, t[n]); | |
return t; | |
} | |
var o = t("bind"), r = t("bind-all"); | |
e.exports = n = o; | |
n.all = r; | |
n.methods = i; | |
}, { | |
bind: 137, | |
"bind-all": 138 | |
} ], | |
137: [ function(t, e) { | |
var n = [].slice; | |
e.exports = function(t, e) { | |
"string" == typeof e && (e = t[e]); | |
if ("function" != typeof e) throw new Error("bind() requires a function"); | |
var i = n.call(arguments, 2); | |
return function() { | |
return e.apply(t, i.concat(n.call(arguments))); | |
}; | |
}; | |
}, {} ], | |
138: [ function(t, e) { | |
try { | |
var n = t("bind"), i = t("type"); | |
} catch (o) { | |
var n = t("bind-component"), i = t("type-component"); | |
} | |
e.exports = function(t) { | |
for (var e in t) { | |
var o = t[e]; | |
"function" === i(o) && (t[e] = n(t, t[e])); | |
} | |
return t; | |
}; | |
}, { | |
bind: 137, | |
type: 126 | |
} ], | |
130: [ function(t, e) { | |
function n(t) { | |
switch (i(t)) { | |
case "object": | |
var e = {}; | |
for (var o in t) t.hasOwnProperty(o) && (e[o] = n(t[o])); | |
return e; | |
case "array": | |
for (var e = new Array(t.length), r = 0, a = t.length; a > r; r++) e[r] = n(t[r]); | |
return e; | |
case "regexp": | |
var s = ""; | |
s += t.multiline ? "m" : ""; | |
s += t.global ? "g" : ""; | |
s += t.ignoreCase ? "i" : ""; | |
return new RegExp(t.source, s); | |
case "date": | |
return new Date(t.getTime()); | |
default: | |
return t; | |
} | |
} | |
var i; | |
try { | |
i = t("type"); | |
} catch (o) { | |
i = t("type-component"); | |
} | |
e.exports = n; | |
}, { | |
type: 126 | |
} ], | |
131: [ function(t, e) { | |
e.exports = "undefined" == typeof window ? t("./lib/debug") : t("./debug"); | |
}, { | |
"./lib/debug": 139, | |
"./debug": 140 | |
} ], | |
139: [ function(t, e) { | |
function n() { | |
return p[l++ % p.length]; | |
} | |
function i(t) { | |
var e = 1e3, n = 6e4, i = 60 * n; | |
return t >= i ? (t / i).toFixed(1) + "h" : t >= n ? (t / n).toFixed(1) + "m" : t >= e ? (0 | t / e) + "s" : t + "ms"; | |
} | |
function o(t) { | |
function e() {} | |
function o(e) { | |
e = r(e); | |
var n = new Date(), o = n - (u[t] || n); | |
u[t] = n; | |
e = " [9" + l + "m" + t + " " + "[3" + l + "m[90m" + e + "[3" + l + "m" + " +" + i(o) + "[0m"; | |
console.error.apply(this, arguments); | |
} | |
function a(e) { | |
e = r(e); | |
e = new Date().toUTCString() + " " + t + " " + e; | |
console.error.apply(this, arguments); | |
} | |
e.enabled = !1; | |
var p = c.some(function(e) { | |
return e.test(t); | |
}); | |
if (p) return e; | |
p = s.some(function(e) { | |
return e.test(t); | |
}); | |
if (!p) return e; | |
var l = n(); | |
o.enabled = a.enabled = !0; | |
return d || process.env.DEBUG_COLORS ? o : a; | |
} | |
function r(t) { | |
return t instanceof Error ? t.stack || t.message : t; | |
} | |
var a = t("tty"); | |
e.exports = o; | |
var s = [], c = []; | |
(process.env.DEBUG || "").split(/[\s,]+/).forEach(function(t) { | |
t = t.replace("*", ".*?"); | |
"-" === t[0] ? c.push(new RegExp("^" + t.substr(1) + "$")) : s.push(new RegExp("^" + t + "$")); | |
}); | |
var p = [ 6, 2, 3, 4, 5, 1 ], u = {}, l = 0, d = a.isatty(2); | |
}, {} ], | |
140: [ function(t, e) { | |
function n(t) { | |
return n.enabled(t) ? function(e) { | |
e = i(e); | |
var o = new Date(), r = o - (n[t] || o); | |
n[t] = o; | |
e = t + " " + e + " +" + n.humanize(r); | |
window.console && console.log && Function.prototype.apply.call(console.log, console, arguments); | |
} : function() {}; | |
} | |
function i(t) { | |
return t instanceof Error ? t.stack || t.message : t; | |
} | |
e.exports = n; | |
n.names = []; | |
n.skips = []; | |
n.enable = function(t) { | |
try { | |
localStorage.debug = t; | |
} catch (e) {} | |
for (var i = (t || "").split(/[\s,]+/), o = i.length, r = 0; o > r; r++) { | |
t = i[r].replace("*", ".*?"); | |
"-" === t[0] ? n.skips.push(new RegExp("^" + t.substr(1) + "$")) : n.names.push(new RegExp("^" + t + "$")); | |
} | |
}; | |
n.disable = function() { | |
n.enable(""); | |
}; | |
n.humanize = function(t) { | |
var e = 1e3, n = 6e4, i = 60 * n; | |
return t >= i ? (t / i).toFixed(1) + "h" : t >= n ? (t / n).toFixed(1) + "m" : t >= e ? (0 | t / e) + "s" : t + "ms"; | |
}; | |
n.enabled = function(t) { | |
for (var e = 0, i = n.skips.length; i > e; e++) if (n.skips[e].test(t)) return !1; | |
for (var e = 0, i = n.names.length; i > e; e++) if (n.names[e].test(t)) return !0; | |
return !1; | |
}; | |
try { | |
window.localStorage && n.enable(localStorage.debug); | |
} catch (o) {} | |
}, {} ], | |
132: [ function(t, e) { | |
"use strict"; | |
var n = function(t, e, i) { | |
for (var o in e) i && t[o] instanceof Object && e[o] instanceof Object ? t[o] = n(t[o], e[o], !0) : o in t || (t[o] = e[o]); | |
return t; | |
}; | |
e.exports = n; | |
}, {} ], | |
133: [ function(t, e) { | |
e.exports = function(t) { | |
for (var e, n = Array.prototype.slice.call(arguments, 1), i = 0; e = n[i]; i++) if (e) for (var o in e) t[o] = e[o]; | |
return t; | |
}; | |
}, {} ], | |
134: [ function(t, e) { | |
e.exports = function(t, e) { | |
e || (e = {}); | |
return t.toLowerCase().replace(e.replace || /[^a-z0-9]/g, " ").replace(/^ +| +$/g, "").replace(/ +/g, e.separator || "-"); | |
}; | |
}, {} ], | |
135: [ function(t, e, n) { | |
function i() {} | |
function o(t) { | |
return b.array(t) ? w(r, t) ? "mixed" : "array" : b.object(t) ? "map" : "unknown"; | |
} | |
function r(t) { | |
return b.object(t) ? b.string(t.key) ? _.call(t, "value") ? !0 : !1 : !1 : !1; | |
} | |
function a(t, e) { | |
e = e || function() {}; | |
var n = new Image(); | |
n.onerror = s(e, "failed to load pixel", n); | |
n.onload = function() { | |
e(); | |
}; | |
n.src = t.src; | |
n.width = 1; | |
n.height = 1; | |
return n; | |
} | |
function s(t, e, n) { | |
return function(i) { | |
i = i || window.event; | |
var o = new Error(e); | |
o.event = i; | |
o.source = n; | |
t(o); | |
}; | |
} | |
function c(t, e) { | |
return g(function(t, n, i) { | |
t[i] = n.replace(/\{\{\ *(\w+)\ *\}\}/g, function(t, n) { | |
return e[n]; | |
}); | |
return t; | |
}, {}, t.attrs); | |
} | |
var p = t("emitter"), u = t("after"), l = t("each"), d = t("analytics-events"), f = t("fmt"), g = t("foldl"), y = t("load-iframe"), h = t("load-script"), m = t("to-no-case"), v = t("next-tick"), w = t("every"), b = t("is"), _ = Object.prototype.hasOwnProperty, k = window.onerror, j = null, x = window.setInterval, I = window.setTimeout; | |
p(n); | |
n.initialize = function() { | |
var t = this.ready; | |
v(t); | |
}; | |
n.loaded = function() { | |
return !1; | |
}; | |
n.page = function() {}; | |
n.track = function() {}; | |
n.map = function(t, e) { | |
var n = m(e), i = o(t); | |
return "unknown" === i ? [] : g(function(t, e, o) { | |
var r, a; | |
if ("map" === i) { | |
r = o; | |
a = e; | |
} | |
if ("array" === i) { | |
r = e; | |
a = e; | |
} | |
if ("mixed" === i) { | |
r = e.key; | |
a = e.value; | |
} | |
m(r) === n && t.push(a); | |
return t; | |
}, [], t); | |
}; | |
n.invoke = function(t) { | |
if (this[t]) { | |
var e = Array.prototype.slice.call(arguments, 1); | |
if (!this._ready) return this.queue(t, e); | |
var n; | |
try { | |
this.debug("%s with %o", t, e); | |
n = this[t].apply(this, e); | |
} catch (i) { | |
this.debug("error %o calling %s with %o", i, t, e); | |
} | |
return n; | |
} | |
}; | |
n.queue = function(t, e) { | |
if ("page" === t && this._assumesPageview && !this._initialized) return this.page.apply(this, e); | |
this._queue.push({ | |
method: t, | |
args: e | |
}); | |
return void 0; | |
}; | |
n.flush = function() { | |
this._ready = !0; | |
var t = this; | |
l(this._queue, function(e) { | |
t[e.method].apply(t, e.args); | |
}); | |
this._queue.length = 0; | |
}; | |
n.reset = function() { | |
for (var t = 0; t < this.globals.length; t++) window[this.globals[t]] = void 0; | |
window.setTimeout = I; | |
window.setInterval = x; | |
window.onerror = k; | |
window.onload = j; | |
}; | |
n.load = function(t, e, n) { | |
if ("function" == typeof t) { | |
n = t; | |
e = null; | |
t = null; | |
} | |
if (t && "object" == typeof t) { | |
n = e; | |
e = t; | |
t = null; | |
} | |
if ("function" == typeof e) { | |
n = e; | |
e = null; | |
} | |
t = t || "library"; | |
e = e || {}; | |
e = this.locals(e); | |
var o = this.templates[t]; | |
if (!o) throw new Error(f('template "%s" not defined.', t)); | |
var r = c(o, e); | |
n = n || i; | |
var s, p = this; | |
switch (o.type) { | |
case "img": | |
r.width = 1; | |
r.height = 1; | |
s = a(r, n); | |
break; | |
case "script": | |
s = h(r, function(t) { | |
if (!t) return n(); | |
p.debug('error loading "%s" error="%s"', p.name, t); | |
return void 0; | |
}); | |
delete r.src; | |
l(r, function(t, e) { | |
s.setAttribute(t, e); | |
}); | |
break; | |
case "iframe": | |
s = y(r, n); | |
} | |
return s; | |
}; | |
n.locals = function(t) { | |
t = t || {}; | |
var e = Math.floor(new Date().getTime() / 36e5); | |
t.hasOwnProperty("cache") || (t.cache = e); | |
l(this.options, function(e, n) { | |
t.hasOwnProperty(e) || (t[e] = n); | |
}); | |
return t; | |
}; | |
n.ready = function() { | |
this.emit("ready"); | |
}; | |
n._wrapInitialize = function() { | |
var t = this.initialize; | |
this.initialize = function() { | |
this.debug("initialize"); | |
this._initialized = !0; | |
var e = t.apply(this, arguments); | |
this.emit("initialize"); | |
return e; | |
}; | |
this._assumesPageview && (this.initialize = u(2, this.initialize)); | |
}; | |
n._wrapPage = function() { | |
var t = this.page; | |
this.page = function() { | |
return this._assumesPageview && !this._initialized ? this.initialize.apply(this, arguments) : t.apply(this, arguments); | |
}; | |
}; | |
n._wrapTrack = function() { | |
var t = this.track; | |
this.track = function(e) { | |
var n, i, o = e.event(); | |
for (var r in d) if (_.call(d, r)) { | |
var a = d[r]; | |
if (!this[r]) continue; | |
if (!a.test(o)) continue; | |
i = this[r].apply(this, arguments); | |
n = !0; | |
break; | |
} | |
n || (i = t.apply(this, arguments)); | |
return i; | |
}; | |
}; | |
}, { | |
emitter: 141, | |
after: 142, | |
each: 143, | |
"analytics-events": 144, | |
fmt: 145, | |
foldl: 121, | |
"load-iframe": 146, | |
"load-script": 147, | |
"to-no-case": 148, | |
"next-tick": 149, | |
every: 150, | |
is: 151 | |
} ], | |
141: [ function(t, e) { | |
function n(t) { | |
return t ? i(t) : void 0; | |
} | |
function i(t) { | |
for (var e in n.prototype) t[e] = n.prototype[e]; | |
return t; | |
} | |
var o = t("indexof"); | |
e.exports = n; | |
n.prototype.on = n.prototype.addEventListener = function(t, e) { | |
this._callbacks = this._callbacks || {}; | |
(this._callbacks[t] = this._callbacks[t] || []).push(e); | |
return this; | |
}; | |
n.prototype.once = function(t, e) { | |
function n() { | |
i.off(t, n); | |
e.apply(this, arguments); | |
} | |
var i = this; | |
this._callbacks = this._callbacks || {}; | |
e._off = n; | |
this.on(t, n); | |
return this; | |
}; | |
n.prototype.off = n.prototype.removeListener = n.prototype.removeAllListeners = n.prototype.removeEventListener = function(t, e) { | |
this._callbacks = this._callbacks || {}; | |
if (0 == arguments.length) { | |
this._callbacks = {}; | |
return this; | |
} | |
var n = this._callbacks[t]; | |
if (!n) return this; | |
if (1 == arguments.length) { | |
delete this._callbacks[t]; | |
return this; | |
} | |
var i = o(n, e._off || e); | |
~i && n.splice(i, 1); | |
return this; | |
}; | |
n.prototype.emit = function(t) { | |
this._callbacks = this._callbacks || {}; | |
var e = [].slice.call(arguments, 1), n = this._callbacks[t]; | |
if (n) { | |
n = n.slice(0); | |
for (var i = 0, o = n.length; o > i; ++i) n[i].apply(this, e); | |
} | |
return this; | |
}; | |
n.prototype.listeners = function(t) { | |
this._callbacks = this._callbacks || {}; | |
return this._callbacks[t] || []; | |
}; | |
n.prototype.hasListeners = function(t) { | |
return !!this.listeners(t).length; | |
}; | |
}, { | |
indexof: 152 | |
} ], | |
152: [ function(t, e) { | |
e.exports = function(t, e) { | |
if (t.indexOf) return t.indexOf(e); | |
for (var n = 0; n < t.length; ++n) if (t[n] === e) return n; | |
return -1; | |
}; | |
}, {} ], | |
142: [ function(t, e) { | |
e.exports = function(t, e) { | |
return 0 >= t ? e() : function() { | |
return --t < 1 ? e.apply(this, arguments) : void 0; | |
}; | |
}; | |
}, {} ], | |
143: [ function(t, e) { | |
function n(t, e, n) { | |
for (var i = 0; i < t.length; ++i) e.call(n, t.charAt(i), i); | |
} | |
function i(t, e, n) { | |
for (var i in t) c.call(t, i) && e.call(n, i, t[i]); | |
} | |
function o(t, e, n) { | |
for (var i = 0; i < t.length; ++i) e.call(n, t[i], i); | |
} | |
try { | |
var r = t("type"); | |
} catch (a) { | |
var r = t("component-type"); | |
} | |
var s = t("to-function"), c = Object.prototype.hasOwnProperty; | |
e.exports = function(t, e, a) { | |
e = s(e); | |
a = a || this; | |
switch (r(t)) { | |
case "array": | |
return o(t, e, a); | |
case "object": | |
return "number" == typeof t.length ? o(t, e, a) : i(t, e, a); | |
case "string": | |
return n(t, e, a); | |
} | |
}; | |
}, { | |
type: 153, | |
"component-type": 153, | |
"to-function": 154 | |
} ], | |
153: [ function(t, e) { | |
var n = Object.prototype.toString; | |
e.exports = function(t) { | |
switch (n.call(t)) { | |
case "[object Function]": | |
return "function"; | |
case "[object Date]": | |
return "date"; | |
case "[object RegExp]": | |
return "regexp"; | |
case "[object Arguments]": | |
return "arguments"; | |
case "[object Array]": | |
return "array"; | |
case "[object String]": | |
return "string"; | |
} | |
return null === t ? "null" : void 0 === t ? "undefined" : t && 1 === t.nodeType ? "element" : t === Object(t) ? "object" : typeof t; | |
}; | |
}, {} ], | |
154: [ function(t, e) { | |
function n(t) { | |
switch ({}.toString.call(t)) { | |
case "[object Object]": | |
return a(t); | |
case "[object Function]": | |
return t; | |
case "[object String]": | |
return r(t); | |
case "[object RegExp]": | |
return o(t); | |
default: | |
return i(t); | |
} | |
} | |
function i(t) { | |
return function(e) { | |
return t === e; | |
}; | |
} | |
function o(t) { | |
return function(e) { | |
return t.test(e); | |
}; | |
} | |
function r(t) { | |
return /^ *\W+/.test(t) ? new Function("_", "return _ " + t) : new Function("_", "return " + s(t)); | |
} | |
function a(t) { | |
var e = {}; | |
for (var o in t) e[o] = "string" == typeof t[o] ? i(t[o]) : n(t[o]); | |
return function(t) { | |
if ("object" != typeof t) return !1; | |
for (var n in e) { | |
if (!(n in t)) return !1; | |
if (!e[n](t[n])) return !1; | |
} | |
return !0; | |
}; | |
} | |
function s(t) { | |
var e = p(t); | |
if (!e.length) return "_." + t; | |
var n, i, o; | |
for (i = 0; i < e.length; i++) { | |
o = e[i]; | |
n = "_." + o; | |
n = "('function' == typeof " + n + " ? " + n + "() : " + n + ")"; | |
t = c(o, t, n); | |
} | |
return t; | |
} | |
function c(t, e, n) { | |
return e.replace(new RegExp("(\\.)?" + t, "g"), function(t, e) { | |
return e ? t : n; | |
}); | |
} | |
var p; | |
try { | |
p = t("props"); | |
} catch (u) { | |
p = t("component-props"); | |
} | |
e.exports = n; | |
}, { | |
props: 155, | |
"component-props": 155 | |
} ], | |
155: [ function(t, e) { | |
function n(t) { | |
return t.replace(/\.\w+|\w+ *\(|"[^"]*"|'[^']*'|\/([^/]+)\//g, "").replace(a, "").match(/[$a-zA-Z_]\w*/g) || []; | |
} | |
function i(t, e, n) { | |
var i = /\.\w+|\w+ *\(|"[^"]*"|'[^']*'|\/([^/]+)\/|[a-zA-Z_]\w*/g; | |
return t.replace(i, function(t) { | |
return "(" == t[t.length - 1] ? n(t) : ~e.indexOf(t) ? n(t) : t; | |
}); | |
} | |
function o(t) { | |
for (var e = [], n = 0; n < t.length; n++) ~e.indexOf(t[n]) || e.push(t[n]); | |
return e; | |
} | |
function r(t) { | |
return function(e) { | |
return t + e; | |
}; | |
} | |
var a = /\b(this|Array|Date|Object|Math|JSON)\b/g; | |
e.exports = function(t, e) { | |
var a = o(n(t)); | |
e && "string" == typeof e && (e = r(e)); | |
return e ? i(t, a, e) : a; | |
}; | |
}, {} ], | |
144: [ function(t, e) { | |
e.exports = { | |
removedProduct: /^[ _]?removed[ _]?product[ _]?$/i, | |
viewedProduct: /^[ _]?viewed[ _]?product[ _]?$/i, | |
viewedProductCategory: /^[ _]?viewed[ _]?product[ _]?category[ _]?$/i, | |
addedProduct: /^[ _]?added[ _]?product[ _]?$/i, | |
completedOrder: /^[ _]?completed[ _]?order[ _]?$/i, | |
startedOrder: /^[ _]?started[ _]?order[ _]?$/i, | |
updatedOrder: /^[ _]?updated[ _]?order[ _]?$/i, | |
refundedOrder: /^[ _]?refunded?[ _]?order[ _]?$/i, | |
viewedProductDetails: /^[ _]?viewed[ _]?product[ _]?details?[ _]?$/i, | |
clickedProduct: /^[ _]?clicked[ _]?product[ _]?$/i, | |
viewedPromotion: /^[ _]?viewed[ _]?promotion?[ _]?$/i, | |
clickedPromotion: /^[ _]?clicked[ _]?promotion?[ _]?$/i, | |
viewedCheckoutStep: /^[ _]?viewed[ _]?checkout[ _]?step[ _]?$/i, | |
completedCheckoutStep: /^[ _]?completed[ _]?checkout[ _]?step[ _]?$/i | |
}; | |
}, {} ], | |
145: [ function(t, e) { | |
function n(t) { | |
var e = [].slice.call(arguments, 1), i = 0; | |
return t.replace(/%([a-z])/gi, function(t, o) { | |
return n[o] ? n[o](e[i++]) : t + o; | |
}); | |
} | |
var i = window.JSON ? JSON.stringify : function(t) { | |
return String(t); | |
}; | |
e.exports = n; | |
n.o = i; | |
n.s = String; | |
n.d = parseInt; | |
}, {} ], | |
146: [ function(t, e) { | |
var n = t("script-onload"), i = t("next-tick"), o = t("type"); | |
e.exports = function(t, e) { | |
if (!t) throw new Error("Cant load nothing..."); | |
"string" == o(t) && (t = { | |
src: t | |
}); | |
var r = "https:" === document.location.protocol || "chrome-extension:" === document.location.protocol; | |
t.src && 0 === t.src.indexOf("//") && (t.src = r ? "https:" + t.src : "http:" + t.src); | |
r && t.https ? t.src = t.https : !r && t.http && (t.src = t.http); | |
var a = document.createElement("iframe"); | |
a.src = t.src; | |
a.width = t.width || 1; | |
a.height = t.height || 1; | |
a.style.display = "none"; | |
"function" == o(e) && n(a, e); | |
i(function() { | |
var t = document.getElementsByTagName("script")[0]; | |
t.parentNode.insertBefore(a, t); | |
}); | |
return a; | |
}; | |
}, { | |
"script-onload": 156, | |
"next-tick": 149, | |
type: 126 | |
} ], | |
156: [ function(t, e) { | |
function n(t, e) { | |
t.addEventListener("load", function(t, n) { | |
e(null, n); | |
}, !1); | |
t.addEventListener("error", function(n) { | |
var i = new Error('script error "' + t.src + '"'); | |
i.event = n; | |
e(i); | |
}, !1); | |
} | |
function i(t, e) { | |
t.attachEvent("onreadystatechange", function(n) { | |
/complete|loaded/.test(t.readyState) && e(null, n); | |
}); | |
t.attachEvent("onerror", function(n) { | |
var i = new Error('failed to load the script "' + t.src + '"'); | |
i.event = n || window.event; | |
e(i); | |
}); | |
} | |
e.exports = function(t, e) { | |
return t.addEventListener ? n(t, e) : i(t, e); | |
}; | |
}, {} ], | |
149: [ function(t, e) { | |
"use strict"; | |
if ("function" == typeof setImmediate) e.exports = function(t) { | |
setImmediate(t); | |
}; else if ("undefined" != typeof process && "function" == typeof process.nextTick) e.exports = process.nextTick; else if ("undefined" == typeof window || window.ActiveXObject || !window.postMessage) e.exports = function(t) { | |
setTimeout(t); | |
}; else { | |
var n = []; | |
window.addEventListener("message", function() { | |
for (var t = 0; t < n.length; ) try { | |
n[t++](); | |
} catch (e) { | |
n = n.slice(t); | |
window.postMessage("tic!", "*"); | |
throw e; | |
} | |
n.length = 0; | |
}, !0); | |
e.exports = function(t) { | |
n.length || window.postMessage("tic!", "*"); | |
n.push(t); | |
}; | |
} | |
}, {} ], | |
147: [ function(t, e) { | |
var n = t("script-onload"), i = t("next-tick"), o = t("type"); | |
e.exports = function(t, e) { | |
if (!t) throw new Error("Cant load nothing..."); | |
"string" == o(t) && (t = { | |
src: t | |
}); | |
var r = "https:" === document.location.protocol || "chrome-extension:" === document.location.protocol; | |
t.src && 0 === t.src.indexOf("//") && (t.src = r ? "https:" + t.src : "http:" + t.src); | |
r && t.https ? t.src = t.https : !r && t.http && (t.src = t.http); | |
var a = document.createElement("script"); | |
a.type = "text/javascript"; | |
a.async = !0; | |
a.src = t.src; | |
"function" == o(e) && n(a, e); | |
i(function() { | |
var t = document.getElementsByTagName("script")[0]; | |
t.parentNode.insertBefore(a, t); | |
}); | |
return a; | |
}; | |
}, { | |
"script-onload": 156, | |
"next-tick": 149, | |
type: 126 | |
} ], | |
148: [ function(t, e) { | |
function n(t) { | |
return r.test(t) ? t.toLowerCase() : a.test(t) ? i(t).toLowerCase() : o(t).toLowerCase(); | |
} | |
function i(t) { | |
return t.replace(s, function(t, e) { | |
return e ? " " + e : ""; | |
}); | |
} | |
function o(t) { | |
return t.replace(c, function(t, e, n) { | |
return e + " " + n.toLowerCase().split("").join(" "); | |
}); | |
} | |
e.exports = n; | |
var r = /\s/, a = /[\W_]/, s = /[\W_]+(.|$)/g, c = /(.)([A-Z]+)/g; | |
}, {} ], | |
150: [ function(t, e) { | |
"use strict"; | |
var n; | |
try { | |
n = t("@ndhoule/each"); | |
} catch (i) { | |
n = t("each"); | |
} | |
var o = function(t, e) { | |
if ("function" != typeof t) throw new TypeError("`predicate` must be a function but was a " + typeof t); | |
var i = !0; | |
n(function(e, n, o) { | |
i = !!t(e, n, o); | |
return i ? void 0 : !1; | |
}, e); | |
return i; | |
}; | |
e.exports = o; | |
}, { | |
each: 127 | |
} ], | |
151: [ function(t, e, n) { | |
function i(t) { | |
return function(e) { | |
return t === r(e); | |
}; | |
} | |
var o = t("is-empty"); | |
try { | |
var r = t("type"); | |
} catch (a) { | |
var r = t("component-type"); | |
} | |
for (var s, c = [ "arguments", "array", "boolean", "date", "element", "function", "null", "number", "object", "regexp", "string", "undefined" ], p = 0; s = c[p]; p++) n[s] = i(s); | |
n.fn = n["function"]; | |
n.empty = o; | |
n.nan = function(t) { | |
return n.number(t) && t != t; | |
}; | |
}, { | |
"is-empty": 157, | |
type: 126, | |
"component-type": 126 | |
} ], | |
157: [ function(t, e) { | |
function n(t) { | |
if (null == t) return !0; | |
if ("number" == typeof t) return 0 === t; | |
if (void 0 !== t.length) return 0 === t.length; | |
for (var e in t) if (i.call(t, e)) return !1; | |
return !0; | |
} | |
e.exports = n; | |
var i = Object.prototype.hasOwnProperty; | |
}, {} ], | |
136: [ function(t, e, n) { | |
function i(t) { | |
t = t.replace(' src="', ' data-src="'); | |
var e = r(t), n = {}; | |
a(e.attributes, function(e) { | |
var i = "data-src" === e.name ? "src" : e.name; | |
s(e.name + "=", t) && (n[i] = e.value); | |
}); | |
return { | |
type: e.tagName.toLowerCase(), | |
attrs: n | |
}; | |
} | |
var o = t("emitter"), r = t("domify"), a = t("each"), s = t("includes"); | |
o(n); | |
n.option = function(t, e) { | |
this.prototype.defaults[t] = e; | |
return this; | |
}; | |
n.mapping = function(t) { | |
this.option(t, []); | |
this.prototype[t] = function(e) { | |
return this.map(this.options[t], e); | |
}; | |
return this; | |
}; | |
n.global = function(t) { | |
this.prototype.globals.push(t); | |
return this; | |
}; | |
n.assumesPageview = function() { | |
this.prototype._assumesPageview = !0; | |
return this; | |
}; | |
n.readyOnLoad = function() { | |
this.prototype._readyOnLoad = !0; | |
return this; | |
}; | |
n.readyOnInitialize = function() { | |
this.prototype._readyOnInitialize = !0; | |
return this; | |
}; | |
n.tag = function(t, e) { | |
if (null == e) { | |
e = t; | |
t = "library"; | |
} | |
this.prototype.templates[t] = i(e); | |
return this; | |
}; | |
}, { | |
emitter: 141, | |
domify: 158, | |
each: 143, | |
includes: 159 | |
} ], | |
158: [ function(t, e) { | |
function n(t, e) { | |
if ("string" != typeof t) throw new TypeError("String expected"); | |
e || (e = document); | |
var n = /<([\w:]+)/.exec(t); | |
if (!n) return e.createTextNode(t); | |
t = t.replace(/^\s+|\s+$/g, ""); | |
var i = n[1]; | |
if ("body" == i) { | |
var o = e.createElement("html"); | |
o.innerHTML = t; | |
return o.removeChild(o.lastChild); | |
} | |
var a = r[i] || r._default, s = a[0], c = a[1], p = a[2], o = e.createElement("div"); | |
o.innerHTML = c + t + p; | |
for (;s--; ) o = o.lastChild; | |
if (o.firstChild == o.lastChild) return o.removeChild(o.firstChild); | |
for (var u = e.createDocumentFragment(); o.firstChild; ) u.appendChild(o.removeChild(o.firstChild)); | |
return u; | |
} | |
e.exports = n; | |
var i = document.createElement("div"); | |
i.innerHTML = ' <link/><table></table><a href="/a">a</a><input type="checkbox"/>'; | |
var o = !i.getElementsByTagName("link").length; | |
i = void 0; | |
var r = { | |
legend: [ 1, "<fieldset>", "</fieldset>" ], | |
tr: [ 2, "<table><tbody>", "</tbody></table>" ], | |
col: [ 2, "<table><tbody></tbody><colgroup>", "</colgroup></table>" ], | |
_default: o ? [ 1, "X<div>", "</div>" ] : [ 0, "", "" ] | |
}; | |
r.td = r.th = [ 3, "<table><tbody><tr>", "</tr></tbody></table>" ]; | |
r.option = r.optgroup = [ 1, '<select multiple="multiple">', "</select>" ]; | |
r.thead = r.tbody = r.colgroup = r.caption = r.tfoot = [ 1, "<table>", "</table>" ]; | |
r.polyline = r.ellipse = r.polygon = r.circle = r.text = r.line = r.path = r.rect = r.g = [ 1, '<svg xmlns="http://www.w3.org/2000/svg" version="1.1">', "</svg>" ]; | |
}, {} ], | |
159: [ function(t, e) { | |
"use strict"; | |
var n; | |
try { | |
n = t("@ndhoule/each"); | |
} catch (i) { | |
n = t("each"); | |
} | |
var o = String.prototype.indexOf, r = function(t, e) { | |
return t === e ? 0 !== t || 1 / t === 1 / e : t !== t && e !== e; | |
}, a = function(t, e) { | |
var i = !1; | |
if ("string" == typeof e) return -1 !== o.call(e, t); | |
n(function(e) { | |
if (r(e, t)) { | |
i = !0; | |
return !1; | |
} | |
}, e); | |
return i; | |
}; | |
e.exports = a; | |
}, { | |
each: 127 | |
} ], | |
123: [ function(t, e) { | |
"use strict"; | |
var n; | |
try { | |
n = t("@ndhoule/each"); | |
} catch (i) { | |
n = t("each"); | |
} | |
var o = function(t, e) { | |
if ("function" != typeof t) throw new TypeError("Expected a function but received a " + typeof t); | |
var i = []; | |
n(function(e, n, o) { | |
i.push(t(e, n, o)); | |
}, e); | |
return i; | |
}; | |
e.exports = o; | |
}, { | |
each: 127 | |
} ], | |
124: [ function(t, e) { | |
function n(t) { | |
return i(t).replace(/\s/g, "_"); | |
} | |
var i = t("to-space-case"); | |
e.exports = n; | |
}, { | |
"to-space-case": 160 | |
} ], | |
160: [ function(t, e) { | |
function n(t) { | |
return i(t).replace(/[\W_]+(.|$)/g, function(t, e) { | |
return e ? " " + e : ""; | |
}); | |
} | |
var i = t("to-no-case"); | |
e.exports = n; | |
}, { | |
"to-no-case": 161 | |
} ], | |
161: [ function(t, e) { | |
function n(t) { | |
if (r.test(t)) return t.toLowerCase(); | |
s.test(t) && (t = i(t)); | |
a.test(t) && (t = o(t)); | |
return t.toLowerCase(); | |
} | |
function i(t) { | |
return t.replace(c, function(t, e) { | |
return e ? " " + e : ""; | |
}); | |
} | |
function o(t) { | |
return t.replace(p, function(t, e, n) { | |
return e + " " + n.toLowerCase().split("").join(" "); | |
}); | |
} | |
e.exports = n; | |
var r = /\s/, a = /[a-z][A-Z]/, s = /[\W_]/, c = /[\W_]+(.|$)/g, p = /(.)([A-Z]+)/g; | |
}, {} ], | |
125: [ function(t, e) { | |
function n(t) { | |
return i() ? "https:" + t : "http:" + t; | |
} | |
function i() { | |
return "https:" == location.protocol || "chrome-extension:" == location.protocol; | |
} | |
e.exports = function(t) { | |
switch (arguments.length) { | |
case 0: | |
return i(); | |
case 1: | |
return n(t); | |
} | |
}; | |
}, {} ], | |
7: [ function(t, e) { | |
var i = t("analytics.js-integration"); | |
e.exports = function() {}; | |
e.exports.Integration = i("empty"); | |
}, { | |
each: 120, | |
"analytics.js-integration": 122 | |
} ], | |
8: [ function(t, e) { | |
var n = t("analytics.js-integration"); | |
e.exports = function() {}; | |
e.exports.Integration = n("empty"); | |
}, { | |
"analytics.js-integration": 122 | |
} ], | |
9: [ function(t, e) { | |
var n = t("analytics.js-integration"); | |
e.exports = function() {}; | |
e.exports.Integration = n("empty"); | |
}, { | |
"analytics.js-integration": 122, | |
"top-domain": 162 | |
} ], | |
162: [ function(t, e) { | |
function n(t) { | |
var e = i(t).hostname, n = e.match(o); | |
return n ? n[0] : ""; | |
} | |
var i = t("url").parse; | |
e.exports = n; | |
var o = /[a-z0-9][a-z0-9\-]*[a-z0-9]\.[a-z\.]{2,6}$/i; | |
}, { | |
url: 163 | |
} ], | |
163: [ function(t, e, n) { | |
function i(t) { | |
switch (t) { | |
case "http:": | |
return 80; | |
case "https:": | |
return 443; | |
default: | |
return location.port; | |
} | |
} | |
n.parse = function(t) { | |
var e = document.createElement("a"); | |
e.href = t; | |
return { | |
href: e.href, | |
host: e.host || location.host, | |
port: "0" === e.port || "" === e.port ? i(e.protocol) : e.port, | |
hash: e.hash, | |
hostname: e.hostname || location.hostname, | |
pathname: "/" != e.pathname.charAt(0) ? "/" + e.pathname : e.pathname, | |
protocol: e.protocol && ":" != e.protocol ? e.protocol : location.protocol, | |
search: e.search, | |
query: e.search.slice(1) | |
}; | |
}; | |
n.isAbsolute = function(t) { | |
return 0 == t.indexOf("//") || !!~t.indexOf("://"); | |
}; | |
n.isRelative = function(t) { | |
return !n.isAbsolute(t); | |
}; | |
n.isCrossDomain = function(t) { | |
t = n.parse(t); | |
var e = n.parse(window.location.href); | |
return t.hostname !== e.hostname || t.port !== e.port || t.protocol !== e.protocol; | |
}; | |
}, {} ], | |
10: [ function(t, e, n) { | |
var i = t("analytics.js-integration"); | |
e.exports = function() {}; | |
e.exports.Integration = i("empty"); | |
}, { | |
"analytics.js-integration": 122, | |
is: 164, | |
"load-script": 165 | |
} ], | |
164: [ function(t, e, n) { | |
function i(t) { | |
return function(e) { | |
return t === r(e); | |
}; | |
} | |
var o = t("is-empty"); | |
try { | |
var r = t("type"); | |
} catch (a) { | |
var r = t("component-type"); | |
} | |
for (var s, c = [ "arguments", "array", "boolean", "date", "element", "function", "null", "number", "object", "regexp", "string", "undefined" ], p = 0; s = c[p]; p++) n[s] = i(s); | |
n.fn = n["function"]; | |
n.empty = o; | |
n.nan = function(t) { | |
return n.number(t) && t != t; | |
}; | |
}, { | |
"is-empty": 157, | |
type: 126, | |
"component-type": 126 | |
} ], | |
165: [ function(t, e) { | |
var n = t("script-onload"), i = t("next-tick"), o = t("type"); | |
e.exports = function(t, e) { | |
if (!t) throw new Error("Cant load nothing..."); | |
"string" == o(t) && (t = { | |
src: t | |
}); | |
var r = "https:" === document.location.protocol || "chrome-extension:" === document.location.protocol; | |
t.src && 0 === t.src.indexOf("//") && (t.src = r ? "https:" + t.src : "http:" + t.src); | |
r && t.https ? t.src = t.https : !r && t.http && (t.src = t.http); | |
var a = document.createElement("script"); | |
a.type = "text/javascript"; | |
a.async = !0; | |
a.src = t.src; | |
"function" == o(e) && n(a, e); | |
i(function() { | |
var t = document.getElementsByTagName("script")[0]; | |
t.parentNode.insertBefore(a, t); | |
}); | |
return a; | |
}; | |
}, { | |
"script-onload": 156, | |
"next-tick": 149, | |
type: 126 | |
} ], | |
11: [ function(t, e) { | |
var n = t("analytics.js-integration"); | |
e.exports = function() {}; | |
e.exports.Integration = n("empty"); | |
}, { | |
"analytics.js-integration": 122, | |
is: 164 | |
} ], | |
12: [ function(t, e) { | |
var n = t("analytics.js-integration"); | |
e.exports = function() {}; | |
e.exports.Integration = n("empty"); | |
}, { | |
"analytics.js-integration": 122 | |
} ], | |
13: [ function(t, e) { | |
var i = t("analytics.js-integration"); | |
e.exports = function() {}; | |
e.exports.Integration = i("empty"); | |
}, { | |
each: 120, | |
"analytics.js-integration": 122 | |
} ], | |
14: [ function(t, e) { | |
var n = t("analytics.js-integration"); | |
e.exports = function() {}; | |
e.exports.Integration = n("empty"); | |
}, { | |
"analytics.js-integration": 122 | |
} ], | |
15: [ function(t, e) { | |
var i = t("analytics.js-integration"); | |
e.exports = function() {}; | |
e.exports.Integration = i("empty"); | |
}, { | |
"analytics.js-integration": 122, | |
foldl: 121 | |
} ], | |
16: [ function(t, e) { | |
var r = t("analytics.js-integration"); | |
e.exports = function() {}; | |
e.exports.Integration = r("empty"); | |
}, { | |
facade: 166, | |
each: 120, | |
"analytics.js-integration": 122, | |
querystring: 167 | |
} ], | |
166: [ function(t, e) { | |
var n = t("./facade"); | |
e.exports = n; | |
n.Alias = t("./alias"); | |
n.Group = t("./group"); | |
n.Identify = t("./identify"); | |
n.Track = t("./track"); | |
n.Page = t("./page"); | |
n.Screen = t("./screen"); | |
}, { | |
"./facade": 168, | |
"./alias": 169, | |
"./group": 170, | |
"./identify": 171, | |
"./track": 172, | |
"./page": 173, | |
"./screen": 174 | |
} ], | |
168: [ function(t, e) { | |
function n(t) { | |
t = a(t); | |
t.timestamp = t.hasOwnProperty("timestamp") ? u(t.timestamp) : new Date(); | |
o(t); | |
this.obj = t; | |
} | |
function i(t) { | |
var e = a(t); | |
return e; | |
} | |
var o = t("isodate-traverse"), r = t("./is-enabled"), a = t("./utils").clone, s = t("./utils").type, c = t("./address"), p = t("obj-case"), u = t("new-date"); | |
e.exports = n; | |
c(n.prototype); | |
n.prototype.proxy = function(t) { | |
var e = t.split("."); | |
t = e.shift(); | |
var n = this[t] || this.field(t); | |
if (!n) return n; | |
"function" == typeof n && (n = n.call(this) || {}); | |
if (0 === e.length) return i(n); | |
n = p(n, e.join(".")); | |
return i(n); | |
}; | |
n.prototype.field = function(t) { | |
var e = this.obj[t]; | |
return i(e); | |
}; | |
n.proxy = function(t) { | |
return function() { | |
return this.proxy(t); | |
}; | |
}; | |
n.field = function(t) { | |
return function() { | |
return this.field(t); | |
}; | |
}; | |
n.multi = function(t) { | |
return function() { | |
var e = this.proxy(t + "s"); | |
if ("array" == s(e)) return e; | |
var n = this.proxy(t); | |
n && (n = [ a(n) ]); | |
return n || []; | |
}; | |
}; | |
n.one = function(t) { | |
return function() { | |
var e = this.proxy(t); | |
if (e) return e; | |
var n = this.proxy(t + "s"); | |
return "array" == s(n) ? n[0] : void 0; | |
}; | |
}; | |
n.prototype.json = function() { | |
var t = a(this.obj); | |
this.type && (t.type = this.type()); | |
return t; | |
}; | |
n.prototype.context = n.prototype.options = function(t) { | |
var e = a(this.obj.options || this.obj.context) || {}; | |
if (!t) return a(e); | |
if (this.enabled(t)) { | |
var n = this.integrations(), i = n[t] || p(n, t); | |
"boolean" == typeof i && (i = {}); | |
return i || {}; | |
} | |
}; | |
n.prototype.enabled = function(t) { | |
var e = this.proxy("options.providers.all"); | |
"boolean" != typeof e && (e = this.proxy("options.all")); | |
"boolean" != typeof e && (e = this.proxy("integrations.all")); | |
"boolean" != typeof e && (e = !0); | |
var n = e && r(t), i = this.integrations(); | |
i.providers && i.providers.hasOwnProperty(t) && (n = i.providers[t]); | |
if (i.hasOwnProperty(t)) { | |
var o = i[t]; | |
n = "boolean" == typeof o ? o : !0; | |
} | |
return n ? !0 : !1; | |
}; | |
n.prototype.integrations = function() { | |
return this.obj.integrations || this.proxy("options.providers") || this.options(); | |
}; | |
n.prototype.active = function() { | |
var t = this.proxy("options.active"); | |
(null === t || void 0 === t) && (t = !0); | |
return t; | |
}; | |
n.prototype.sessionId = n.prototype.anonymousId = function() { | |
return this.field("anonymousId") || this.field("sessionId"); | |
}; | |
n.prototype.groupId = n.proxy("options.groupId"); | |
n.prototype.traits = function(t) { | |
var e = this.proxy("options.traits") || {}, n = this.userId(); | |
t = t || {}; | |
n && (e.id = n); | |
for (var i in t) { | |
var o = null == this[i] ? this.proxy("options.traits." + i) : this[i](); | |
if (null != o) { | |
e[t[i]] = o; | |
delete e[i]; | |
} | |
} | |
return e; | |
}; | |
n.prototype.library = function() { | |
var t = this.proxy("options.library"); | |
return t ? "string" == typeof t ? { | |
name: t, | |
version: null | |
} : t : { | |
name: "unknown", | |
version: null | |
}; | |
}; | |
n.prototype.userId = n.field("userId"); | |
n.prototype.channel = n.field("channel"); | |
n.prototype.timestamp = n.field("timestamp"); | |
n.prototype.userAgent = n.proxy("options.userAgent"); | |
n.prototype.ip = n.proxy("options.ip"); | |
}, { | |
"isodate-traverse": 175, | |
"./is-enabled": 176, | |
"./utils": 177, | |
"./address": 178, | |
"obj-case": 179, | |
"new-date": 180 | |
} ], | |
175: [ function(t, e) { | |
function n(t, e) { | |
void 0 === e && (e = !0); | |
return a.object(t) ? i(t, e) : a.array(t) ? o(t, e) : t; | |
} | |
function i(t, e) { | |
r(t, function(i, o) { | |
s.is(o, e) ? t[i] = s.parse(o) : (a.object(o) || a.array(o)) && n(o, e); | |
}); | |
return t; | |
} | |
function o(t, e) { | |
r(t, function(i, o) { | |
a.object(i) ? n(i, e) : s.is(i, e) && (t[o] = s.parse(i)); | |
}); | |
return t; | |
} | |
var r, a = t("is"), s = t("isodate"); | |
try { | |
r = t("each"); | |
} catch (c) { | |
r = t("each-component"); | |
} | |
e.exports = n; | |
}, { | |
is: 181, | |
isodate: 182, | |
each: 120 | |
} ], | |
181: [ function(t, e, n) { | |
function i(t) { | |
return function(e) { | |
return t === r(e); | |
}; | |
} | |
var o = t("is-empty"); | |
try { | |
var r = t("type"); | |
} catch (a) { | |
var r = t("component-type"); | |
} | |
for (var s, c = [ "arguments", "array", "boolean", "date", "element", "function", "null", "number", "object", "regexp", "string", "undefined" ], p = 0; s = c[p]; p++) n[s] = i(s); | |
n.fn = n["function"]; | |
n.empty = o; | |
n.nan = function(t) { | |
return n.number(t) && t != t; | |
}; | |
}, { | |
"is-empty": 157, | |
type: 126, | |
"component-type": 126 | |
} ], | |
182: [ function(t, e, n) { | |
var i = /^(\d{4})(?:-?(\d{2})(?:-?(\d{2}))?)?(?:([ T])(\d{2}):?(\d{2})(?::?(\d{2})(?:[,\.](\d{1,}))?)?(?:(Z)|([+\-])(\d{2})(?::?(\d{2}))?)?)?$/; | |
n.parse = function(t) { | |
var e = [ 1, 5, 6, 7, 11, 12 ], n = i.exec(t), o = 0; | |
if (!n) return new Date(t); | |
for (var r, a = 0; r = e[a]; a++) n[r] = parseInt(n[r], 10) || 0; | |
n[2] = parseInt(n[2], 10) || 1; | |
n[3] = parseInt(n[3], 10) || 1; | |
n[2]--; | |
n[8] = n[8] ? (n[8] + "00").substring(0, 3) : 0; | |
if (" " == n[4]) o = new Date().getTimezoneOffset(); else if ("Z" !== n[9] && n[10]) { | |
o = 60 * n[11] + n[12]; | |
"+" == n[10] && (o = 0 - o); | |
} | |
var s = Date.UTC(n[1], n[2], n[3], n[5], n[6] + o, n[7], n[8]); | |
return new Date(s); | |
}; | |
n.is = function(t, e) { | |
return e && !1 === /^\d{4}-\d{2}-\d{2}/.test(t) ? !1 : i.test(t); | |
}; | |
}, {} ], | |
176: [ function(t, e) { | |
var n = { | |
Salesforce: !0 | |
}; | |
e.exports = function(t) { | |
return !n[t]; | |
}; | |
}, {} ], | |
177: [ function(t, e, n) { | |
try { | |
n.inherit = t("inherit"); | |
n.clone = t("clone"); | |
n.type = t("type"); | |
} catch (i) { | |
n.inherit = t("inherit-component"); | |
n.clone = t("clone-component"); | |
n.type = t("type-component"); | |
} | |
}, { | |
inherit: 183, | |
clone: 184, | |
type: 126 | |
} ], | |
183: [ function(t, e) { | |
e.exports = function(t, e) { | |
var n = function() {}; | |
n.prototype = e.prototype; | |
t.prototype = new n(); | |
t.prototype.constructor = t; | |
}; | |
}, {} ], | |
184: [ function(t, e) { | |
function n(t) { | |
switch (i(t)) { | |
case "object": | |
var e = {}; | |
for (var o in t) t.hasOwnProperty(o) && (e[o] = n(t[o])); | |
return e; | |
case "array": | |
for (var e = new Array(t.length), r = 0, a = t.length; a > r; r++) e[r] = n(t[r]); | |
return e; | |
case "regexp": | |
var s = ""; | |
s += t.multiline ? "m" : ""; | |
s += t.global ? "g" : ""; | |
s += t.ignoreCase ? "i" : ""; | |
return new RegExp(t.source, s); | |
case "date": | |
return new Date(t.getTime()); | |
default: | |
return t; | |
} | |
} | |
var i; | |
try { | |
i = t("component-type"); | |
} catch (o) { | |
i = t("type"); | |
} | |
e.exports = n; | |
}, { | |
"component-type": 126, | |
type: 126 | |
} ], | |
178: [ function(t, e) { | |
var n = t("obj-case"); | |
e.exports = function(t) { | |
function e(t, e) { | |
return function() { | |
var i = this.traits(), o = this.properties ? this.properties() : {}; | |
return n(i, "address." + t) || n(i, t) || (e ? n(i, "address." + e) : null) || (e ? n(i, e) : null) || n(o, "address." + t) || n(o, t) || (e ? n(o, "address." + e) : null) || (e ? n(o, e) : null); | |
}; | |
} | |
t.zip = e("postalCode", "zip"); | |
t.country = e("country"); | |
t.street = e("street"); | |
t.state = e("state"); | |
t.city = e("city"); | |
}; | |
}, { | |
"obj-case": 179 | |
} ], | |
179: [ function(t, e) { | |
function n(t) { | |
return function(e, n, i, o) { | |
function r() { | |
for (p in e) { | |
var t = c(p); | |
if (0 === n.indexOf(t)) { | |
var i = n.substr(t.length); | |
if ("." === i.charAt(0) || 0 === i.length) { | |
n = i.substr(1); | |
var o = e[p]; | |
if (null == o) { | |
u = !0; | |
return; | |
} | |
if (!n.length) { | |
u = !0; | |
return; | |
} | |
e = o; | |
return; | |
} | |
} | |
} | |
p = void 0; | |
u = !0; | |
} | |
var c = o && s(o.normalizer) ? o.normalizer : a; | |
n = c(n); | |
for (var p, u = !1; !u; ) r(); | |
return p ? null == e ? e : t(e, p, i) : void 0; | |
}; | |
} | |
function i(t, e) { | |
return t.hasOwnProperty(e) ? t[e] : void 0; | |
} | |
function o(t, e) { | |
t.hasOwnProperty(e) && delete t[e]; | |
return t; | |
} | |
function r(t, e, n) { | |
t.hasOwnProperty(e) && (t[e] = n); | |
return t; | |
} | |
function a(t) { | |
return t.replace(/[^a-zA-Z0-9\.]+/g, "").toLowerCase(); | |
} | |
function s(t) { | |
return "function" == typeof t; | |
} | |
e.exports = n(i); | |
e.exports.find = e.exports; | |
e.exports.replace = function(t, e, i, o) { | |
n(r).call(this, t, e, i, o); | |
return t; | |
}; | |
e.exports.del = function(t, e, i) { | |
n(o).call(this, t, e, null, i); | |
return t; | |
}; | |
}, {} ], | |
180: [ function(t, e) { | |
function n(t) { | |
return 315576e5 > t ? 1e3 * t : t; | |
} | |
var i = t("is"), o = t("isodate"), r = t("./milliseconds"), a = t("./seconds"); | |
e.exports = function(t) { | |
return i.date(t) ? t : i.number(t) ? new Date(n(t)) : o.is(t) ? o.parse(t) : r.is(t) ? r.parse(t) : a.is(t) ? a.parse(t) : new Date(t); | |
}; | |
}, { | |
is: 185, | |
isodate: 182, | |
"./milliseconds": 186, | |
"./seconds": 187 | |
} ], | |
185: [ function(t, e, n) { | |
function i(t) { | |
return function(e) { | |
return t === a(e); | |
}; | |
} | |
for (var o, r = t("is-empty"), a = t("type"), s = [ "arguments", "array", "boolean", "date", "element", "function", "null", "number", "object", "regexp", "string", "undefined" ], c = 0; o = s[c]; c++) n[o] = i(o); | |
n.fn = n["function"]; | |
n.empty = r; | |
n.nan = function(t) { | |
return n.number(t) && t != t; | |
}; | |
}, { | |
"is-empty": 157, | |
type: 126 | |
} ], | |
186: [ function(t, e, n) { | |
var i = /\d{13}/; | |
n.is = function(t) { | |
return i.test(t); | |
}; | |
n.parse = function(t) { | |
t = parseInt(t, 10); | |
return new Date(t); | |
}; | |
}, {} ], | |
187: [ function(t, e, n) { | |
var i = /\d{10}/; | |
n.is = function(t) { | |
return i.test(t); | |
}; | |
n.parse = function(t) { | |
var e = 1e3 * parseInt(t, 10); | |
return new Date(e); | |
}; | |
}, {} ], | |
169: [ function(t, e) { | |
function n(t) { | |
o.call(this, t); | |
} | |
var i = t("./utils").inherit, o = t("./facade"); | |
e.exports = n; | |
i(n, o); | |
n.prototype.type = n.prototype.action = function() { | |
return "alias"; | |
}; | |
n.prototype.from = n.prototype.previousId = function() { | |
return this.field("previousId") || this.field("from"); | |
}; | |
n.prototype.to = n.prototype.userId = function() { | |
return this.field("userId") || this.field("to"); | |
}; | |
}, { | |
"./utils": 177, | |
"./facade": 168 | |
} ], | |
170: [ function(t, e) { | |
function n(t) { | |
a.call(this, t); | |
} | |
var i = t("./utils").inherit; | |
t("./address"); | |
var o = t("is-email"), r = t("new-date"), a = t("./facade"); | |
e.exports = n; | |
i(n, a); | |
n.prototype.type = n.prototype.action = function() { | |
return "group"; | |
}; | |
n.prototype.groupId = a.field("groupId"); | |
n.prototype.created = function() { | |
var t = this.proxy("traits.createdAt") || this.proxy("traits.created") || this.proxy("properties.createdAt") || this.proxy("properties.created"); | |
return t ? r(t) : void 0; | |
}; | |
n.prototype.email = function() { | |
var t = this.proxy("traits.email"); | |
if (t) return t; | |
var e = this.groupId(); | |
return o(e) ? e : void 0; | |
}; | |
n.prototype.traits = function(t) { | |
var e = this.properties(), n = this.groupId(); | |
t = t || {}; | |
n && (e.id = n); | |
for (var i in t) { | |
var o = null == this[i] ? this.proxy("traits." + i) : this[i](); | |
if (null != o) { | |
e[t[i]] = o; | |
delete e[i]; | |
} | |
} | |
return e; | |
}; | |
n.prototype.name = a.proxy("traits.name"); | |
n.prototype.industry = a.proxy("traits.industry"); | |
n.prototype.employees = a.proxy("traits.employees"); | |
n.prototype.properties = function() { | |
return this.field("traits") || this.field("properties") || {}; | |
}; | |
}, { | |
"./utils": 177, | |
"./address": 178, | |
"is-email": 188, | |
"new-date": 180, | |
"./facade": 168 | |
} ], | |
188: [ function(t, e) { | |
function n(t) { | |
return i.test(t); | |
} | |
e.exports = n; | |
var i = /.+\@.+\..+/; | |
}, {} ], | |
171: [ function(t, e) { | |
function n(t) { | |
i.call(this, t); | |
} | |
t("./address"); | |
var i = t("./facade"), o = t("is-email"), r = t("new-date"), a = t("./utils"), s = t("obj-case"), c = t("trim"), p = a.inherit; | |
a.clone; | |
var u = a.type; | |
e.exports = n; | |
p(n, i); | |
n.prototype.type = n.prototype.action = function() { | |
return "identify"; | |
}; | |
n.prototype.traits = function(t) { | |
var e = this.field("traits") || {}, n = this.userId(); | |
t = t || {}; | |
n && (e.id = n); | |
for (var i in t) { | |
var o = null == this[i] ? this.proxy("traits." + i) : this[i](); | |
if (null != o) { | |
e[t[i]] = o; | |
i !== t[i] && delete e[i]; | |
} | |
} | |
return e; | |
}; | |
n.prototype.email = function() { | |
var t = this.proxy("traits.email"); | |
if (t) return t; | |
var e = this.userId(); | |
return o(e) ? e : void 0; | |
}; | |
n.prototype.created = function() { | |
var t = this.proxy("traits.created") || this.proxy("traits.createdAt"); | |
return t ? r(t) : void 0; | |
}; | |
n.prototype.companyCreated = function() { | |
var t = this.proxy("traits.company.created") || this.proxy("traits.company.createdAt"); | |
return t ? r(t) : void 0; | |
}; | |
n.prototype.name = function() { | |
var t = this.proxy("traits.name"); | |
if ("string" == typeof t) return c(t); | |
var e = this.firstName(), n = this.lastName(); | |
return e && n ? c(e + " " + n) : void 0; | |
}; | |
n.prototype.firstName = function() { | |
var t = this.proxy("traits.firstName"); | |
if ("string" == typeof t) return c(t); | |
var e = this.proxy("traits.name"); | |
return "string" == typeof e ? c(e).split(" ")[0] : void 0; | |
}; | |
n.prototype.lastName = function() { | |
var t = this.proxy("traits.lastName"); | |
if ("string" == typeof t) return c(t); | |
var e = this.proxy("traits.name"); | |
if ("string" == typeof e) { | |
var n = c(e).indexOf(" "); | |
if (-1 !== n) return c(e.substr(n + 1)); | |
} | |
}; | |
n.prototype.uid = function() { | |
return this.userId() || this.username() || this.email(); | |
}; | |
n.prototype.description = function() { | |
return this.proxy("traits.description") || this.proxy("traits.background"); | |
}; | |
n.prototype.age = function() { | |
var t = this.birthday(), e = s(this.traits(), "age"); | |
if (null != e) return e; | |
if ("date" == u(t)) { | |
var n = new Date(); | |
return n.getFullYear() - t.getFullYear(); | |
} | |
}; | |
n.prototype.avatar = function() { | |
var t = this.traits(); | |
return s(t, "avatar") || s(t, "photoUrl") || s(t, "avatarUrl"); | |
}; | |
n.prototype.position = function() { | |
var t = this.traits(); | |
return s(t, "position") || s(t, "jobTitle"); | |
}; | |
n.prototype.username = i.proxy("traits.username"); | |
n.prototype.website = i.one("traits.website"); | |
n.prototype.websites = i.multi("traits.website"); | |
n.prototype.phone = i.one("traits.phone"); | |
n.prototype.phones = i.multi("traits.phone"); | |
n.prototype.address = i.proxy("traits.address"); | |
n.prototype.gender = i.proxy("traits.gender"); | |
n.prototype.birthday = i.proxy("traits.birthday"); | |
}, { | |
"./address": 178, | |
"./facade": 168, | |
"is-email": 188, | |
"new-date": 180, | |
"./utils": 177, | |
"obj-case": 179, | |
trim: 189 | |
} ], | |
189: [ function(t, e, n) { | |
function i(t) { | |
return t.trim ? t.trim() : t.replace(/^\s*|\s*$/g, ""); | |
} | |
n = e.exports = i; | |
n.left = function(t) { | |
return t.trimLeft ? t.trimLeft() : t.replace(/^\s*/, ""); | |
}; | |
n.right = function(t) { | |
return t.trimRight ? t.trimRight() : t.replace(/\s*$/, ""); | |
}; | |
}, {} ], | |
172: [ function(t, e) { | |
function n(t) { | |
a.call(this, t); | |
} | |
function i(t) { | |
if (t) { | |
if ("number" == typeof t) return t; | |
if ("string" == typeof t) { | |
t = t.replace(/\$/g, ""); | |
t = parseFloat(t); | |
return isNaN(t) ? void 0 : t; | |
} | |
} | |
} | |
var o = t("./utils").inherit; | |
t("./utils").clone; | |
var r = t("./utils").type, a = t("./facade"), s = t("./identify"), c = t("is-email"), p = t("obj-case"); | |
e.exports = n; | |
o(n, a); | |
n.prototype.type = n.prototype.action = function() { | |
return "track"; | |
}; | |
n.prototype.event = a.field("event"); | |
n.prototype.value = a.proxy("properties.value"); | |
n.prototype.category = a.proxy("properties.category"); | |
n.prototype.id = a.proxy("properties.id"); | |
n.prototype.sku = a.proxy("properties.sku"); | |
n.prototype.tax = a.proxy("properties.tax"); | |
n.prototype.name = a.proxy("properties.name"); | |
n.prototype.price = a.proxy("properties.price"); | |
n.prototype.total = a.proxy("properties.total"); | |
n.prototype.coupon = a.proxy("properties.coupon"); | |
n.prototype.shipping = a.proxy("properties.shipping"); | |
n.prototype.discount = a.proxy("properties.discount"); | |
n.prototype.description = a.proxy("properties.description"); | |
n.prototype.plan = a.proxy("properties.plan"); | |
n.prototype.orderId = function() { | |
return this.proxy("properties.id") || this.proxy("properties.orderId"); | |
}; | |
n.prototype.subtotal = function() { | |
var t, e = p(this.properties(), "subtotal"), n = this.total(); | |
if (e) return e; | |
if (!n) return 0; | |
(t = this.tax()) && (n -= t); | |
(t = this.shipping()) && (n -= t); | |
(t = this.discount()) && (n += t); | |
return n; | |
}; | |
n.prototype.products = function() { | |
var t = this.properties(), e = p(t, "products"); | |
return "array" == r(e) ? e : []; | |
}; | |
n.prototype.quantity = function() { | |
var t = this.obj.properties || {}; | |
return t.quantity || 1; | |
}; | |
n.prototype.currency = function() { | |
var t = this.obj.properties || {}; | |
return t.currency || "USD"; | |
}; | |
n.prototype.referrer = a.proxy("properties.referrer"); | |
n.prototype.query = a.proxy("options.query"); | |
n.prototype.properties = function(t) { | |
var e = this.field("properties") || {}; | |
t = t || {}; | |
for (var n in t) { | |
var i = null == this[n] ? this.proxy("properties." + n) : this[n](); | |
if (null != i) { | |
e[t[n]] = i; | |
delete e[n]; | |
} | |
} | |
return e; | |
}; | |
n.prototype.username = function() { | |
return this.proxy("traits.username") || this.proxy("properties.username") || this.userId() || this.sessionId(); | |
}; | |
n.prototype.email = function() { | |
var t = this.proxy("traits.email"); | |
t = t || this.proxy("properties.email"); | |
if (t) return t; | |
var e = this.userId(); | |
return c(e) ? e : void 0; | |
}; | |
n.prototype.revenue = function() { | |
var t = this.proxy("properties.revenue"), e = this.event(); | |
!t && e && e.match(/completed ?order/i) && (t = this.proxy("properties.total")); | |
return i(t); | |
}; | |
n.prototype.cents = function() { | |
var t = this.revenue(); | |
return "number" != typeof t ? this.value() || 0 : 100 * t; | |
}; | |
n.prototype.identify = function() { | |
var t = this.json(); | |
t.traits = this.traits(); | |
return new s(t); | |
}; | |
}, { | |
"./utils": 177, | |
"./facade": 168, | |
"./identify": 171, | |
"is-email": 188, | |
"obj-case": 179 | |
} ], | |
173: [ function(t, e) { | |
function n(t) { | |
o.call(this, t); | |
} | |
var i = t("./utils").inherit, o = t("./facade"), r = t("./track"); | |
e.exports = n; | |
i(n, o); | |
n.prototype.type = n.prototype.action = function() { | |
return "page"; | |
}; | |
n.prototype.category = o.field("category"); | |
n.prototype.name = o.field("name"); | |
n.prototype.title = o.proxy("properties.title"); | |
n.prototype.path = o.proxy("properties.path"); | |
n.prototype.url = o.proxy("properties.url"); | |
n.prototype.referrer = function() { | |
return this.proxy("properties.referrer") || this.proxy("context.referrer.url"); | |
}; | |
n.prototype.properties = function() { | |
var t = this.field("properties") || {}, e = this.category(), n = this.name(); | |
e && (t.category = e); | |
n && (t.name = n); | |
return t; | |
}; | |
n.prototype.fullName = function() { | |
var t = this.category(), e = this.name(); | |
return e && t ? t + " " + e : e; | |
}; | |
n.prototype.event = function(t) { | |
return t ? "Viewed " + t + " Page" : "Loaded a Page"; | |
}; | |
n.prototype.track = function(t) { | |
var e = this.properties(); | |
return new r({ | |
event: this.event(t), | |
timestamp: this.timestamp(), | |
context: this.context(), | |
properties: e | |
}); | |
}; | |
}, { | |
"./utils": 177, | |
"./facade": 168, | |
"./track": 172 | |
} ], | |
174: [ function(t, e) { | |
function n(t) { | |
o.call(this, t); | |
} | |
var i = t("./utils").inherit, o = t("./page"), r = t("./track"); | |
e.exports = n; | |
i(n, o); | |
n.prototype.type = n.prototype.action = function() { | |
return "screen"; | |
}; | |
n.prototype.event = function(t) { | |
return t ? "Viewed " + t + " Screen" : "Loaded a Screen"; | |
}; | |
n.prototype.track = function(t) { | |
var e = this.properties(); | |
return new r({ | |
event: this.event(t), | |
timestamp: this.timestamp(), | |
context: this.context(), | |
properties: e | |
}); | |
}; | |
}, { | |
"./utils": 177, | |
"./page": 173, | |
"./track": 172 | |
} ], | |
167: [ function(t, e, n) { | |
var i = encodeURIComponent, o = decodeURIComponent, r = t("trim"), a = t("type"); | |
n.parse = function(t) { | |
if ("string" != typeof t) return {}; | |
t = r(t); | |
if ("" == t) return {}; | |
"?" == t.charAt(0) && (t = t.slice(1)); | |
for (var e = {}, n = t.split("&"), i = 0; i < n.length; i++) { | |
var a, s = n[i].split("="), c = o(s[0]); | |
if (a = /(\w+)\[(\d+)\]/.exec(c)) { | |
e[a[1]] = e[a[1]] || []; | |
e[a[1]][a[2]] = o(s[1]); | |
} else e[s[0]] = null == s[1] ? "" : o(s[1]); | |
} | |
return e; | |
}; | |
n.stringify = function(t) { | |
if (!t) return ""; | |
var e = []; | |
for (var n in t) { | |
var o = t[n]; | |
if ("array" != a(o)) e.push(i(n) + "=" + i(t[n])); else for (var r = 0; r < o.length; ++r) e.push(i(n + "[" + r + "]") + "=" + i(o[r])); | |
} | |
return e.join("&"); | |
}; | |
}, { | |
trim: 189, | |
type: 126 | |
} ], | |
17: [ function(t, e) { | |
var n = t("analytics.js-integration"); | |
e.exports = function() {}; | |
e.exports.Integration = n("empty"); | |
}, { | |
"analytics.js-integration": 122, | |
"next-tick": 149 | |
} ], | |
18: [ function(t, e) { | |
var n = t("analytics.js-integration"); | |
e.exports = function() {}; | |
e.exports.Integration = n("empty"); | |
}, { | |
"analytics.js-integration": 122, | |
is: 164, | |
extend: 190 | |
} ], | |
190: [ function(t, e) { | |
e.exports = function(t) { | |
for (var e, n = Array.prototype.slice.call(arguments, 1), i = 0; e = n[i]; i++) if (e) for (var o in e) t[o] = e[o]; | |
return t; | |
}; | |
}, {} ], | |
19: [ function(t, e) { | |
var n = t("analytics.js-integration"); | |
e.exports = function() {}; | |
e.exports.Integration = n("empty"); | |
}, { | |
"analytics.js-integration": 122, | |
each: 120 | |
} ], | |
20: [ function(t, e) { | |
var i = t("analytics.js-integration"); | |
e.exports = function() {}; | |
e.exports.Integration = i("empty"); | |
}, { | |
defaults: 191, | |
"analytics.js-integration": 122, | |
"on-body": 192 | |
} ], | |
191: [ function(t, e) { | |
function n(t, e) { | |
for (var n in e) n in t || (t[n] = e[n]); | |
return t; | |
} | |
e.exports = n; | |
}, {} ], | |
192: [ function(t, e) { | |
function n(t) { | |
t(document.body); | |
} | |
var i = t("each"), o = !1, r = []; | |
e.exports = function(t) { | |
o ? n(t) : r.push(t); | |
}; | |
var a = setInterval(function() { | |
if (document.body) { | |
o = !0; | |
i(r, n); | |
clearInterval(a); | |
} | |
}, 5); | |
}, { | |
each: 143 | |
} ], | |
21: [ function(t, e) { | |
var r = t("analytics.js-integration"); | |
e.exports = function() {}; | |
e.exports.Integration = r("empty"); | |
}, { | |
"load-date": 193, | |
domify: 158, | |
each: 120, | |
"analytics.js-integration": 122, | |
is: 164, | |
"on-body": 192, | |
"use-https": 125 | |
} ], | |
193: [ function(t, e) { | |
var n = new Date(), i = window.performance; | |
i && i.timing && i.timing.responseEnd && (n = new Date(i.timing.responseEnd)); | |
e.exports = n; | |
}, {} ], | |
22: [ function(t, e) { | |
var o = t("analytics.js-integration"); | |
e.exports = function() {}; | |
e.exports.Integration = o("empty"); | |
}, { | |
facade: 166, | |
extend: 190, | |
"analytics.js-integration": 122, | |
is: 164 | |
} ], | |
23: [ function(t, e) { | |
var n = t("analytics.js-integration"); | |
e.exports = function() {}; | |
e.exports.Integration = n("empty"); | |
}, { | |
"analytics.js-integration": 122, | |
"use-https": 125 | |
} ], | |
24: [ function(t, e) { | |
var n = t("analytics.js-integration"); | |
e.exports = function() {}; | |
e.exports.Integration = n("empty"); | |
}, { | |
"analytics.js-integration": 122 | |
} ], | |
25: [ function(t, e) { | |
var a = t("analytics.js-integration"); | |
e.exports = function() {}; | |
e.exports.Integration = a("empty"); | |
}, { | |
facade: 166, | |
bind: 137, | |
each: 120, | |
"analytics.js-integration": 122, | |
"to-iso-string": 194, | |
"global-queue": 195, | |
throttle: 196, | |
when: 197 | |
} ], | |
194: [ function(t, e) { | |
function n(t) { | |
return t.getUTCFullYear() + "-" + i(t.getUTCMonth() + 1) + "-" + i(t.getUTCDate()) + "T" + i(t.getUTCHours()) + ":" + i(t.getUTCMinutes()) + ":" + i(t.getUTCSeconds()) + "." + String((t.getUTCMilliseconds() / 1e3).toFixed(3)).slice(2, 5) + "Z"; | |
} | |
function i(t) { | |
var e = t.toString(); | |
return 1 === e.length ? "0" + e : e; | |
} | |
e.exports = n; | |
}, {} ], | |
195: [ function(t, e) { | |
function n(t, e) { | |
e = e || {}; | |
return function(n) { | |
n = [].slice.call(arguments); | |
window[t] || (window[t] = []); | |
e.wrap === !1 ? window[t].push.apply(window[t], n) : window[t].push(n); | |
}; | |
} | |
e.exports = n; | |
}, {} ], | |
196: [ function(t, e) { | |
function n(t, e) { | |
var n, i = 0; | |
return function() { | |
var o = new Date().getTime(), r = o - i; | |
if (r >= e) { | |
n = t.apply(this, arguments); | |
i = o; | |
} | |
return n; | |
}; | |
} | |
e.exports = n; | |
}, {} ], | |
197: [ function(t, e) { | |
function n(t, e, n) { | |
if (t()) return i.async(e); | |
var o = setInterval(function() { | |
if (t()) { | |
i(e); | |
clearInterval(o); | |
} | |
}, n || 10); | |
} | |
var i = t("callback"); | |
e.exports = n; | |
}, { | |
callback: 198 | |
} ], | |
198: [ function(t, e) { | |
function n(t) { | |
"function" == typeof t && t(); | |
} | |
var i = t("next-tick"); | |
e.exports = n; | |
n.async = function(t, e) { | |
if ("function" == typeof t) { | |
if (!e) return i(t); | |
setTimeout(t, e); | |
return void 0; | |
} | |
}; | |
n.sync = n; | |
}, { | |
"next-tick": 149 | |
} ], | |
26: [ function(t, e) { | |
var a = t("analytics.js-integration"); | |
e.exports = function() {}; | |
e.exports.Integration = a("empty"); | |
}, { | |
facade: 166, | |
alias: 199, | |
"convert-dates": 200, | |
"analytics.js-integration": 122 | |
} ], | |
199: [ function(t, e) { | |
function n(t, e) { | |
switch (r(e)) { | |
case "object": | |
return i(a(t), e); | |
case "function": | |
return o(a(t), e); | |
} | |
} | |
function i(t, e) { | |
for (var n in e) if (void 0 !== t[n]) { | |
t[e[n]] = t[n]; | |
delete t[n]; | |
} | |
return t; | |
} | |
function o(t, e) { | |
var n = {}; | |
for (var i in t) n[e(i)] = t[i]; | |
return n; | |
} | |
var r = t("type"); | |
try { | |
var a = t("clone"); | |
} catch (s) { | |
var a = t("clone-component"); | |
} | |
e.exports = n; | |
}, { | |
type: 126, | |
clone: 184 | |
} ], | |
200: [ function(t, e) { | |
function n(t, e) { | |
t = o(t); | |
for (var r in t) { | |
var a = t[r]; | |
i.date(a) && (t[r] = e(a)); | |
i.object(a) && (t[r] = n(a, e)); | |
} | |
return t; | |
} | |
var i = t("is"); | |
try { | |
var o = t("clone"); | |
} catch (r) { | |
var o = t("clone-component"); | |
} | |
e.exports = n; | |
}, { | |
is: 164, | |
clone: 130 | |
} ], | |
27: [ function(t, e) { | |
var n = t("analytics.js-integration"); | |
e.exports = function() {}; | |
e.exports.Integration = n("empty"); | |
}, { | |
"analytics.js-integration": 122, | |
is: 164, | |
"global-queue": 195 | |
} ], | |
28: [ function(t, e) { | |
var n = t("analytics.js-integration"); | |
e.exports = function() {}; | |
e.exports.Integration = n("empty"); | |
}, { | |
"analytics.js-integration": 122, | |
"next-tick": 149, | |
"segmentio-obj-case": 179, | |
"ndhoule-each": 127, | |
"ndhoule-keys": 128 | |
} ], | |
29: [ function(t, e) { | |
var i = t("analytics.js-integration"); | |
e.exports = function() {}; | |
e.exports.Integration = i("empty"); | |
}, { | |
extend: 190, | |
"analytics.js-integration": 122, | |
"on-error": 201, | |
"global-queue": 195 | |
} ], | |
201: [ function(t, e) { | |
function n() { | |
for (var t, e = 0; t = o[e]; e++) t.apply(this, arguments); | |
} | |
function i(t) { | |
o.push(t); | |
if (window.onerror != n) { | |
o.push(window.onerror); | |
window.onerror = n; | |
} | |
} | |
e.exports = i; | |
var o = []; | |
"function" == typeof window.onerror && o.push(window.onerror); | |
window.onerror = n; | |
}, {} ], | |
30: [ function(t, e) { | |
var i = t("analytics.js-integration"); | |
e.exports = function() {}; | |
e.exports.Integration = i("empty"); | |
}, { | |
each: 120, | |
"analytics.js-integration": 122, | |
"global-queue": 195 | |
} ], | |
31: [ function(t, e) { | |
var a = t("analytics.js-integration"); | |
e.exports = function() {}; | |
e.exports.Integration = a("empty"); | |
}, { | |
bind: 137, | |
domify: 158, | |
each: 120, | |
extend: 190, | |
"analytics.js-integration": 122, | |
json: 202 | |
} ], | |
202: [ function(t, e) { | |
var n = window.JSON || {}, i = n.stringify, o = n.parse; | |
e.exports = o && i ? JSON : t("json-fallback"); | |
}, { | |
"json-fallback": 203 | |
} ], | |
203: [ function(require, module, exports) { | |
!function() { | |
"use strict"; | |
function f(t) { | |
return 10 > t ? "0" + t : t; | |
} | |
function quote(t) { | |
escapable.lastIndex = 0; | |
return escapable.test(t) ? '"' + t.replace(escapable, function(t) { | |
var e = meta[t]; | |
return "string" == typeof e ? e : "\\u" + ("0000" + t.charCodeAt(0).toString(16)).slice(-4); | |
}) + '"' : '"' + t + '"'; | |
} | |
function str(t, e) { | |
var n, i, o, r, a, s = gap, c = e[t]; | |
c && "object" == typeof c && "function" == typeof c.toJSON && (c = c.toJSON(t)); | |
"function" == typeof rep && (c = rep.call(e, t, c)); | |
switch (typeof c) { | |
case "string": | |
return quote(c); | |
case "number": | |
return isFinite(c) ? String(c) : "null"; | |
case "boolean": | |
case "null": | |
return String(c); | |
case "object": | |
if (!c) return "null"; | |
gap += indent; | |
a = []; | |
if ("[object Array]" === Object.prototype.toString.apply(c)) { | |
r = c.length; | |
for (n = 0; r > n; n += 1) a[n] = str(n, c) || "null"; | |
o = 0 === a.length ? "[]" : gap ? "[\n" + gap + a.join(",\n" + gap) + "\n" + s + "]" : "[" + a.join(",") + "]"; | |
gap = s; | |
return o; | |
} | |
if (rep && "object" == typeof rep) { | |
r = rep.length; | |
for (n = 0; r > n; n += 1) if ("string" == typeof rep[n]) { | |
i = rep[n]; | |
o = str(i, c); | |
o && a.push(quote(i) + (gap ? ": " : ":") + o); | |
} | |
} else for (i in c) if (Object.prototype.hasOwnProperty.call(c, i)) { | |
o = str(i, c); | |
o && a.push(quote(i) + (gap ? ": " : ":") + o); | |
} | |
o = 0 === a.length ? "{}" : gap ? "{\n" + gap + a.join(",\n" + gap) + "\n" + s + "}" : "{" + a.join(",") + "}"; | |
gap = s; | |
return o; | |
} | |
} | |
var JSON = module.exports = {}; | |
if ("function" != typeof Date.prototype.toJSON) { | |
Date.prototype.toJSON = function() { | |
return isFinite(this.valueOf()) ? this.getUTCFullYear() + "-" + f(this.getUTCMonth() + 1) + "-" + f(this.getUTCDate()) + "T" + f(this.getUTCHours()) + ":" + f(this.getUTCMinutes()) + ":" + f(this.getUTCSeconds()) + "Z" : null; | |
}; | |
String.prototype.toJSON = Number.prototype.toJSON = Boolean.prototype.toJSON = function() { | |
return this.valueOf(); | |
}; | |
} | |
var cx, escapable, gap, indent, meta, rep; | |
if ("function" != typeof JSON.stringify) { | |
escapable = /[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g; | |
meta = { | |
"\b": "\\b", | |
" ": "\\t", | |
"\n": "\\n", | |
"\f": "\\f", | |
"\r": "\\r", | |
'"': '\\"', | |
"\\": "\\\\" | |
}; | |
JSON.stringify = function(t, e, n) { | |
var i; | |
gap = ""; | |
indent = ""; | |
if ("number" == typeof n) for (i = 0; n > i; i += 1) indent += " "; else "string" == typeof n && (indent = n); | |
rep = e; | |
if (e && "function" != typeof e && ("object" != typeof e || "number" != typeof e.length)) throw new Error("JSON.stringify"); | |
return str("", { | |
"": t | |
}); | |
}; | |
} | |
if ("function" != typeof JSON.parse) { | |
cx = /[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g; | |
JSON.parse = function(text, reviver) { | |
function walk(t, e) { | |
var n, i, o = t[e]; | |
if (o && "object" == typeof o) for (n in o) if (Object.prototype.hasOwnProperty.call(o, n)) { | |
i = walk(o, n); | |
void 0 !== i ? o[n] = i : delete o[n]; | |
} | |
return reviver.call(t, e, o); | |
} | |
var j; | |
text = String(text); | |
cx.lastIndex = 0; | |
cx.test(text) && (text = text.replace(cx, function(t) { | |
return "\\u" + ("0000" + t.charCodeAt(0).toString(16)).slice(-4); | |
})); | |
if (/^[\],:{}\s]*$/.test(text.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g, "@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g, "]").replace(/(?:^|:|,)(?:\s*\[)+/g, ""))) { | |
j = eval("(" + text + ")"); | |
return "function" == typeof reviver ? walk({ | |
"": j | |
}, "") : j; | |
} | |
throw new SyntaxError("JSON.parse"); | |
}; | |
} | |
}(); | |
}, {} ], | |
32: [ function(t, e) { | |
var i = t("analytics.js-integration"); | |
e.exports = function() {}; | |
e.exports.Integration = i("empty"); | |
}, { | |
each: 120, | |
"analytics.js-integration": 122, | |
"global-queue": 195 | |
} ], | |
33: [ function(t, e) { | |
var r = t("analytics.js-integration"); | |
e.exports = function() {}; | |
e.exports.Integration = r("empty"); | |
}, { | |
facade: 166, | |
each: 120, | |
"analytics.js-integration": 122, | |
"global-queue": 195 | |
} ], | |
34: [ function(t, e) { | |
var s = t("analytics.js-integration"); | |
e.exports = function() {}; | |
e.exports.Integration = s("empty"); | |
}, { | |
bind: 137, | |
each: 120, | |
"analytics.js-integration": 122, | |
is: 164 | |
} ], | |
35: [ function(t, e) { | |
var s = t("analytics.js-integration"); | |
e.exports = function() {}; | |
e.exports.Integration = s("empty"); | |
}, { | |
"to-camel-case": 204, | |
foldl: 121, | |
"analytics.js-integration": 122, | |
is: 164 | |
} ], | |
204: [ function(t, e) { | |
function n(t) { | |
return i(t).replace(/\s(\w)/g, function(t, e) { | |
return e.toUpperCase(); | |
}); | |
} | |
var i = t("to-space-case"); | |
e.exports = n; | |
}, { | |
"to-space-case": 160 | |
} ], | |
36: [ function(t, e) { | |
var n = t("analytics.js-integration"); | |
e.exports = function() {}; | |
e.exports.Integration = n("empty"); | |
}, { | |
"analytics.js-integration": 122, | |
"global-queue": 195 | |
} ], | |
37: [ function(t, e) { | |
var n = t("analytics.js-integration"); | |
e.exports = function() {}; | |
e.exports.Integration = n("empty"); | |
}, { | |
"analytics.js-integration": 122, | |
"on-body": 192 | |
} ], | |
38: [ function(t, e, n) { | |
var y = t("analytics.js-integration"); | |
e.exports = function() {}; | |
e.exports.Integration = y("empty"); | |
}, { | |
facade: 166, | |
defaults: 191, | |
"obj-case": 179, | |
each: 120, | |
"analytics.js-integration": 122, | |
is: 164, | |
object: 205, | |
"global-queue": 195, | |
select: 206, | |
"use-https": 125 | |
} ], | |
205: [ function(t, e, n) { | |
var i = Object.prototype.hasOwnProperty; | |
n.keys = Object.keys || function(t) { | |
var e = []; | |
for (var n in t) i.call(t, n) && e.push(n); | |
return e; | |
}; | |
n.values = function(t) { | |
var e = []; | |
for (var n in t) i.call(t, n) && e.push(t[n]); | |
return e; | |
}; | |
n.merge = function(t, e) { | |
for (var n in e) i.call(e, n) && (t[n] = e[n]); | |
return t; | |
}; | |
n.length = function(t) { | |
return n.keys(t).length; | |
}; | |
n.isEmpty = function(t) { | |
return 0 == n.length(t); | |
}; | |
}, {} ], | |
206: [ function(t, e) { | |
var n = t("to-function"); | |
e.exports = function(t, e) { | |
var i = []; | |
e = n(e); | |
for (var o = 0; o < t.length; ++o) e(t[o], o) && i.push(t[o]); | |
return i; | |
}; | |
}, { | |
"to-function": 154 | |
} ], | |
39: [ function(t, e) { | |
var n = t("analytics.js-integration"); | |
e.exports = function() {}; | |
e.exports.Integration = n("empty"); | |
}, { | |
"analytics.js-integration": 122, | |
"global-queue": 195 | |
} ], | |
40: [ function(t, e) { | |
var a = t("analytics.js-integration"); | |
e.exports = function() {}; | |
e.exports.Integration = a("empty"); | |
}, { | |
facade: 166, | |
each: 120, | |
"analytics.js-integration": 122, | |
omit: 207, | |
pick: 208 | |
} ], | |
207: [ function(t, e) { | |
function n(t, e) { | |
var n = {}; | |
for (var i in e) n[i] = e[i]; | |
for (var o = 0; o < t.length; o++) delete n[t[o]]; | |
return n; | |
} | |
e.exports = n; | |
}, {} ], | |
208: [ function(t, e) { | |
function n(t) { | |
for (var e, n = [].slice.call(arguments, 1), i = {}, o = 0; e = n[o]; o++) e in t && (i[e] = t[e]); | |
return i; | |
} | |
e.exports = n; | |
}, {} ], | |
41: [ function(t, e) { | |
var n = t("analytics.js-integration"); | |
e.exports = function() {}; | |
e.exports.Integration = n("empty"); | |
}, { | |
"analytics.js-integration": 122, | |
each: 120 | |
} ], | |
42: [ function(t, e) { | |
var n = t("analytics.js-integration"); | |
e.exports = function() {}; | |
e.exports.Integration = n("empty"); | |
}, { | |
"analytics.js-integration": 122 | |
} ], | |
43: [ function(t, e) { | |
var n = t("analytics.js-integration"); | |
e.exports = function() {}; | |
e.exports.Integration = n("empty"); | |
}, { | |
"analytics.js-integration": 122, | |
is: 164 | |
} ], | |
44: [ function(t, e) { | |
var o = t("analytics.js-integration"); | |
e.exports = function() {}; | |
e.exports.Integration = o("empty"); | |
}, { | |
"convert-dates": 200, | |
"analytics.js-integration": 122, | |
"global-queue": 195 | |
} ], | |
45: [ function(t, e) { | |
var n = t("analytics.js-integration"); | |
e.exports = function() {}; | |
e.exports.Integration = n("empty"); | |
}, { | |
"analytics.js-integration": 122 | |
} ], | |
46: [ function(t, e) { | |
var i = t("analytics.js-integration"); | |
e.exports = function() {}; | |
e.exports.Integration = i("empty"); | |
}, { | |
each: 120, | |
"analytics.js-integration": 122, | |
"global-queue": 195 | |
} ], | |
47: [ function(t, e) { | |
var n = t("analytics.js-integration"); | |
e.exports = function() {}; | |
e.exports.Integration = n("empty"); | |
}, { | |
"analytics.js-integration": 122, | |
"global-queue": 195 | |
} ], | |
48: [ function(t, e) { | |
var c = t("analytics.js-integration"); | |
e.exports = function() {}; | |
e.exports.Integration = c("empty"); | |
}, { | |
alias: 199, | |
"convert-dates": 200, | |
defaults: 191, | |
"obj-case": 179, | |
"analytics.js-integration": 122, | |
is: 164 | |
} ], | |
49: [ function(t, e) { | |
var n = t("analytics.js-integration"); | |
e.exports = function() {}; | |
e.exports.Integration = n("empty"); | |
}, { | |
"analytics.js-integration": 122, | |
clone: 130 | |
} ], | |
50: [ function(t, e) { | |
var i = t("analytics.js-integration"); | |
e.exports = function() {}; | |
e.exports.Integration = i("empty"); | |
}, { | |
includes: 159, | |
"analytics.js-integration": 122, | |
is: 164 | |
} ], | |
51: [ function(t, e, n) { | |
var r = t("analytics.js-integration"); | |
e.exports = function() {}; | |
e.exports.Integration = r("empty"); | |
}, { | |
each: 120, | |
"analytics.js-integration": 122, | |
is: 164, | |
"global-queue": 195 | |
} ], | |
52: [ function(t, e) { | |
var n = t("analytics.js-integration"); | |
e.exports = function() {}; | |
e.exports.Integration = n("empty"); | |
}, { | |
"analytics.js-integration": 122, | |
"global-queue": 195, | |
"next-tick": 149 | |
} ], | |
53: [ function(t, e) { | |
var a = t("analytics.js-integration"); | |
e.exports = function() {}; | |
e.exports.Integration = a("empty"); | |
}, { | |
facade: 166, | |
clone: 130, | |
each: 120, | |
"analytics.js-integration": 122, | |
"next-tick": 149, | |
when: 197 | |
} ], | |
54: [ function(t, e) { | |
var i = t("analytics.js-integration"); | |
e.exports = function() {}; | |
e.exports.Integration = i("empty"); | |
}, { | |
facade: 166, | |
"analytics.js-integration": 122, | |
"use-https": 125 | |
} ], | |
55: [ function(t, e) { | |
var i = t("analytics.js-integration"); | |
e.exports = function() {}; | |
e.exports.Integration = i("empty"); | |
}, { | |
alias: 199, | |
"analytics.js-integration": 122 | |
} ], | |
56: [ function(t, e) { | |
var s = t("analytics.js-integration"); | |
e.exports = function() {}; | |
e.exports.Integration = s("empty"); | |
}, { | |
alias: 199, | |
"convert-dates": 200, | |
"obj-case": 179, | |
includes: 159, | |
"analytics.js-integration": 122, | |
"to-iso-string": 194 | |
} ], | |
57: [ function(t, e) { | |
var i = t("analytics.js-integration"); | |
e.exports = function() {}; | |
e.exports.Integration = i("empty"); | |
}, { | |
bind: 137, | |
"analytics.js-integration": 122, | |
is: 164, | |
when: 197 | |
} ], | |
58: [ function(t, e) { | |
var o = t("analytics.js-integration"); | |
e.exports = function() {}; | |
e.exports.Integration = o("empty"); | |
}, { | |
each: 120, | |
"analytics.js-integration": 122, | |
"global-queue": 195 | |
} ], | |
59: [ function(t, e) { | |
var i = t("analytics.js-integration"); | |
e.exports = function() {}; | |
e.exports.Integration = i("empty"); | |
}, { | |
each: 120, | |
"analytics.js-integration": 122, | |
is: 164, | |
"use-https": 125 | |
} ], | |
60: [ function(t, e) { | |
var n = t("analytics.js-integration"); | |
e.exports = function() {}; | |
e.exports.Integration = n("empty"); | |
}, { | |
"analytics.js-integration": 122, | |
"global-queue": 195 | |
} ], | |
61: [ function(t, e) { | |
var i = t("analytics.js-integration"); | |
e.exports = function() {}; | |
e.exports.Integration = i("empty"); | |
}, { | |
alias: 199, | |
"analytics.js-integration": 122 | |
} ], | |
62: [ function(t, e) { | |
var o = t("analytics.js-integration"); | |
e.exports = function() {}; | |
e.exports.Integration = o("empty"); | |
}, { | |
"use-https": 125, | |
"analytics.js-integration": 122, | |
"next-tick": 149 | |
} ], | |
63: [ function(t, e) { | |
var r = t("analytics.js-integration"); | |
e.exports = function() {}; | |
e.exports.Integration = r("empty"); | |
}, { | |
each: 120, | |
foldl: 121, | |
"analytics.js-integration": 122, | |
"global-queue": 195, | |
"next-tick": 149 | |
} ], | |
64: [ function(t, e) { | |
var n = t("analytics.js-integration"); | |
e.exports = function() {}; | |
e.exports.Integration = n("empty"); | |
}, { | |
"analytics.js-integration": 122, | |
"to-no-case": 209, | |
includes: 159, | |
foldl: 121 | |
} ], | |
209: [ function(t, e) { | |
function n(t) { | |
return r.test(t) ? t.toLowerCase() : a.test(t) ? (i(t) || t).toLowerCase() : o(t).toLowerCase(); | |
} | |
function i(t) { | |
return t.replace(s, function(t, e) { | |
return e ? " " + e : ""; | |
}); | |
} | |
function o(t) { | |
return t.replace(c, function(t, e, n) { | |
return e + " " + n.toLowerCase().split("").join(" "); | |
}); | |
} | |
e.exports = n; | |
var r = /\s/, a = /[\W_]/, s = /[\W_]+(.|$)/g, c = /(.)([A-Z]+)/g; | |
}, {} ], | |
65: [ function(t, e) { | |
var n = t("analytics.js-integration"); | |
e.exports = function() {}; | |
e.exports.Integration = n("empty"); | |
}, { | |
"analytics.js-integration": 122, | |
when: 197 | |
} ], | |
66: [ function(t, e) { | |
var n = t("analytics.js-integration"); | |
e.exports = function() {}; | |
e.exports.Integration = n("empty"); | |
}, { | |
"analytics.js-integration": 122, | |
"global-queue": 195 | |
} ], | |
67: [ function(t, e) { | |
var i = t("analytics.js-integration"); | |
e.exports = function() {}; | |
e.exports.Integration = i("empty"); | |
}, { | |
"load-date": 193, | |
"analytics.js-integration": 122, | |
"global-queue": 195 | |
} ], | |
68: [ function(t, e) { | |
var i = t("analytics.js-integration"); | |
e.exports = function() {}; | |
e.exports.Integration = i("empty"); | |
}, { | |
each: 120, | |
"analytics.js-integration": 122, | |
is: 164, | |
"global-queue": 195 | |
} ], | |
69: [ function(t, e) { | |
var o = t("analytics.js-integration"); | |
e.exports = function() {}; | |
e.exports.Integration = o("empty"); | |
}, { | |
"convert-dates": 200, | |
"analytics.js-integration": 122, | |
"global-queue": 195 | |
} ], | |
70: [ function(t, e) { | |
var n = t("analytics.js-integration"); | |
e.exports = function() {}; | |
e.exports.Integration = n("empty"); | |
}, { | |
"analytics.js-integration": 122, | |
"global-queue": 195, | |
facade: 166, | |
bind: 137, | |
when: 197 | |
} ], | |
71: [ function(t, e) { | |
var n = t("analytics.js-integration"); | |
e.exports = function() {}; | |
e.exports.Integration = n("empty"); | |
}, { | |
"analytics.js-integration": 122, | |
"global-queue": 195, | |
reduce: 210, | |
"use-https": 125 | |
} ], | |
210: [ function(t, e) { | |
e.exports = function(t, e, n) { | |
for (var i = 0, o = t.length, r = 3 == arguments.length ? n : t[i++]; o > i; ) r = e.call(null, r, t[i], ++i, t); | |
return r; | |
}; | |
}, {} ], | |
72: [ function(t, e) { | |
var n = t("analytics.js-integration"); | |
e.exports = function() {}; | |
e.exports.Integration = n("empty"); | |
}, { | |
"analytics.js-integration": 122, | |
defaults: 191, | |
is: 164, | |
"obj-case": 179 | |
} ], | |
73: [ function(t, e) { | |
var i = t("analytics.js-integration"); | |
e.exports = function() {}; | |
e.exports.Integration = i("empty"); | |
}, { | |
extend: 190, | |
"analytics.js-integration": 122, | |
is: 164 | |
} ], | |
74: [ function(t, e) { | |
var n = t("analytics.js-integration"); | |
e.exports = function() {}; | |
e.exports.Integration = n("empty"); | |
}, { | |
"analytics.js-integration": 122 | |
} ], | |
75: [ function(t, e) { | |
var n = t("analytics.js-integration"); | |
e.exports = function() {}; | |
e.exports.Integration = n("empty"); | |
}, { | |
"analytics.js-integration": 122 | |
} ], | |
76: [ function(t, e) { | |
var n = t("analytics.js-integration"); | |
e.exports = function() {}; | |
e.exports.Integration = n("empty"); | |
}, { | |
"analytics.js-integration": 122, | |
when: 197 | |
} ], | |
77: [ function(t, e, n) { | |
function i() { | |
return "http:" === d() ? "http:" : "https:"; | |
} | |
function o() {} | |
var r = t("ad-params"), a = t("clone"), s = t("cookie"), c = t("extend"), p = t("analytics.js-integration"), u = t("segmentio/json@1.0.0"), l = t("store"), d = t("protocol"), f = t("send-json"), g = t("top-domain"), y = t("utm-params"), h = t("uuid"), m = { | |
maxage: 31536e6, | |
secure: !1, | |
path: "/" | |
}, v = n = e.exports = p("Segment.io").option("apiKey", ""); | |
n.storage = function() { | |
return "file:" === d() || "chrome-extension:" === d() ? l : s; | |
}; | |
n.global = window; | |
v.prototype.initialize = function() { | |
var t = this; | |
this.ready(); | |
this.analytics.on("invoke", function(e) { | |
var n = e.action(), i = "on" + e.action(); | |
t.debug("%s %o", n, e); | |
t[i] && t[i](e); | |
t.ready(); | |
}); | |
}; | |
v.prototype.loaded = function() { | |
return !0; | |
}; | |
v.prototype.onpage = function(t) { | |
this.send("/p", t.json()); | |
}; | |
v.prototype.onidentify = function(t) { | |
this.send("/i", t.json()); | |
}; | |
v.prototype.ongroup = function(t) { | |
this.send("/g", t.json()); | |
}; | |
v.prototype.ontrack = function(t) { | |
var e = t.json(); | |
delete e.traits; | |
this.send("/t", e); | |
}; | |
v.prototype.onalias = function(t) { | |
var e = t.json(), n = this.analytics.user(); | |
e.previousId = e.previousId || e.from || n.id() || n.anonymousId(); | |
e.userId = e.userId || e.to; | |
delete e.from; | |
delete e.to; | |
this.send("/a", e); | |
}; | |
v.prototype.normalize = function(t) { | |
this.debug("normalize %o", t); | |
var e = this.analytics.user(), i = n.global, o = i.location.search, r = t.context = t.context || t.options || {}; | |
delete t.options; | |
t.writeKey = this.options.apiKey; | |
r.userAgent = navigator.userAgent; | |
r.library || (r.library = { | |
name: "analytics.js", | |
version: this.analytics.VERSION | |
}); | |
o && (r.campaign = y(o)); | |
this.referrerId(o, r); | |
t.userId = t.userId || e.id(); | |
t.anonymousId = e.anonymousId(); | |
t.messageId = h(); | |
t.sentAt = new Date(); | |
this.debug("normalized %o", t); | |
return t; | |
}; | |
v.prototype.send = function(t, e, n) { | |
var r = i() + "//api.segment.io/v1" + t, a = { | |
"Content-Type": "text/plain" | |
}; | |
n = n || o; | |
var s = this; | |
e = this.normalize(e); | |
f(r, e, a, function(t, i) { | |
s.debug("sent %O, received %O", e, arguments); | |
if (t) return n(t); | |
i.url = r; | |
n(null, i); | |
}); | |
}; | |
v.prototype.cookie = function(t, e) { | |
var i = v.storage(); | |
if (1 === arguments.length) return i(t); | |
var o = n.global, r = o.location.href, s = "." + g(r); | |
"." === s && (s = ""); | |
this.debug("store domain %s -> %s", r, s); | |
var c = a(m); | |
c.domain = s; | |
this.debug("store %s, %s, %o", t, e, c); | |
i(t, e, c); | |
if (!i(t)) { | |
delete c.domain; | |
this.debug("fallback store %s, %s, %o", t, e, c); | |
i(t, e, c); | |
} | |
}; | |
v.prototype.referrerId = function(t, e) { | |
var n, i = this.cookie("s:context.referrer"); | |
i && (i = u.parse(i)); | |
t && (n = r(t)); | |
n = n || i; | |
if (n) { | |
e.referrer = c(e.referrer || {}, n); | |
this.cookie("s:context.referrer", u.stringify(n)); | |
} | |
}; | |
}, { | |
"ad-params": 211, | |
clone: 130, | |
cookie: 212, | |
extend: 190, | |
"analytics.js-integration": 122, | |
"segmentio/json@1.0.0": 202, | |
store: 213, | |
protocol: 214, | |
"send-json": 215, | |
"top-domain": 162, | |
"utm-params": 216, | |
uuid: 217 | |
} ], | |
211: [ function(t, e) { | |
function n(t) { | |
var e = i(t); | |
for (var n in e) for (var r in o) if (n === r) return { | |
id: e[n], | |
type: o[r] | |
}; | |
} | |
var i = t("querystring").parse; | |
e.exports = n; | |
var o = { | |
btid: "dataxu", | |
urid: "millennial-media" | |
}; | |
}, { | |
querystring: 218 | |
} ], | |
218: [ function(t, e, n) { | |
var i = t("trim"), o = t("type"), r = /(\w+)\[(\d+)\]/, a = function(t) { | |
try { | |
return encodeURIComponent(t); | |
} catch (e) { | |
return t; | |
} | |
}, s = function(t) { | |
try { | |
return decodeURIComponent(t.replace(/\+/g, " ")); | |
} catch (e) { | |
return t; | |
} | |
}; | |
n.parse = function(t) { | |
if ("string" != typeof t) return {}; | |
t = i(t); | |
if ("" == t) return {}; | |
"?" == t.charAt(0) && (t = t.slice(1)); | |
for (var e = {}, n = t.split("&"), o = 0; o < n.length; o++) { | |
var a, c = n[o].split("="), p = s(c[0]); | |
if (a = r.exec(p)) { | |
e[a[1]] = e[a[1]] || []; | |
e[a[1]][a[2]] = s(c[1]); | |
} else e[c[0]] = null == c[1] ? "" : s(c[1]); | |
} | |
return e; | |
}; | |
n.stringify = function(t) { | |
if (!t) return ""; | |
var e = []; | |
for (var n in t) { | |
var i = t[n]; | |
if ("array" != o(i)) e.push(a(n) + "=" + a(t[n])); else for (var r = 0; r < i.length; ++r) e.push(a(n + "[" + r + "]") + "=" + a(i[r])); | |
} | |
return e.join("&"); | |
}; | |
}, { | |
trim: 189, | |
type: 126 | |
} ], | |
212: [ function(t, e) { | |
function n(t, e, n) { | |
n = n || {}; | |
var i = a(t) + "=" + a(e); | |
null == e && (n.maxage = -1); | |
n.maxage && (n.expires = new Date(+new Date() + n.maxage)); | |
n.path && (i += "; path=" + n.path); | |
n.domain && (i += "; domain=" + n.domain); | |
n.expires && (i += "; expires=" + n.expires.toUTCString()); | |
n.secure && (i += "; secure"); | |
document.cookie = i; | |
} | |
function i() { | |
return r(document.cookie); | |
} | |
function o(t) { | |
return i()[t]; | |
} | |
function r(t) { | |
var e, n = {}, i = t.split(/ *; */); | |
if ("" == i[0]) return n; | |
for (var o = 0; o < i.length; ++o) { | |
e = i[o].split("="); | |
n[s(e[0])] = s(e[1]); | |
} | |
return n; | |
} | |
function a(t) { | |
try { | |
return encodeURIComponent(t); | |
} catch (e) { | |
c("error `encode(%o)` - %o", t, e); | |
} | |
} | |
function s(t) { | |
try { | |
return decodeURIComponent(t); | |
} catch (e) { | |
c("error `decode(%o)` - %o", t, e); | |
} | |
} | |
var c = t("debug")("cookie"); | |
e.exports = function(t, e, r) { | |
switch (arguments.length) { | |
case 3: | |
case 2: | |
return n(t, e, r); | |
case 1: | |
return o(t); | |
default: | |
return i(); | |
} | |
}; | |
}, { | |
debug: 219 | |
} ], | |
219: [ function(t, e) { | |
e.exports = "undefined" == typeof window ? t("./lib/debug") : t("./debug"); | |
}, { | |
"./lib/debug": 220, | |
"./debug": 221 | |
} ], | |
220: [ function(t, e) { | |
function n() { | |
return p[l++ % p.length]; | |
} | |
function i(t) { | |
var e = 1e3, n = 6e4, i = 60 * n; | |
return t >= i ? (t / i).toFixed(1) + "h" : t >= n ? (t / n).toFixed(1) + "m" : t >= e ? (0 | t / e) + "s" : t + "ms"; | |
} | |
function o(t) { | |
function e() {} | |
function o(e) { | |
e = r(e); | |
var n = new Date(), o = n - (u[t] || n); | |
u[t] = n; | |
e = " [9" + l + "m" + t + " " + "[3" + l + "m[90m" + e + "[3" + l + "m" + " +" + i(o) + "[0m"; | |
console.error.apply(this, arguments); | |
} | |
function a(e) { | |
e = r(e); | |
e = new Date().toUTCString() + " " + t + " " + e; | |
console.error.apply(this, arguments); | |
} | |
e.enabled = !1; | |
var p = c.some(function(e) { | |
return e.test(t); | |
}); | |
if (p) return e; | |
p = s.some(function(e) { | |
return e.test(t); | |
}); | |
if (!p) return e; | |
var l = n(); | |
o.enabled = a.enabled = !0; | |
return d || process.env.DEBUG_COLORS ? o : a; | |
} | |
function r(t) { | |
return t instanceof Error ? t.stack || t.message : t; | |
} | |
var a = t("tty"); | |
e.exports = o; | |
var s = [], c = []; | |
(process.env.DEBUG || "").split(/[\s,]+/).forEach(function(t) { | |
t = t.replace("*", ".*?"); | |
"-" === t[0] ? c.push(new RegExp("^" + t.substr(1) + "$")) : s.push(new RegExp("^" + t + "$")); | |
}); | |
var p = [ 6, 2, 3, 4, 5, 1 ], u = {}, l = 0, d = a.isatty(2); | |
}, {} ], | |
221: [ function(t, e) { | |
function n(t) { | |
return n.enabled(t) ? function(e) { | |
e = i(e); | |
var o = new Date(), r = o - (n[t] || o); | |
n[t] = o; | |
e = t + " " + e + " +" + n.humanize(r); | |
window.console && console.log && Function.prototype.apply.call(console.log, console, arguments); | |
} : function() {}; | |
} | |
function i(t) { | |
return t instanceof Error ? t.stack || t.message : t; | |
} | |
e.exports = n; | |
n.names = []; | |
n.skips = []; | |
n.enable = function(t) { | |
try { | |
localStorage.debug = t; | |
} catch (e) {} | |
for (var i = (t || "").split(/[\s,]+/), o = i.length, r = 0; o > r; r++) { | |
t = i[r].replace("*", ".*?"); | |
"-" === t[0] ? n.skips.push(new RegExp("^" + t.substr(1) + "$")) : n.names.push(new RegExp("^" + t + "$")); | |
} | |
}; | |
n.disable = function() { | |
n.enable(""); | |
}; | |
n.humanize = function(t) { | |
var e = 1e3, n = 6e4, i = 60 * n; | |
return t >= i ? (t / i).toFixed(1) + "h" : t >= n ? (t / n).toFixed(1) + "m" : t >= e ? (0 | t / e) + "s" : t + "ms"; | |
}; | |
n.enabled = function(t) { | |
for (var e = 0, i = n.skips.length; i > e; e++) if (n.skips[e].test(t)) return !1; | |
for (var e = 0, i = n.names.length; i > e; e++) if (n.names[e].test(t)) return !0; | |
return !1; | |
}; | |
try { | |
window.localStorage && n.enable(localStorage.debug); | |
} catch (o) {} | |
}, {} ], | |
213: [ function(t, e) { | |
function n(t, e) { | |
var n = arguments.length; | |
return 0 == n ? r() : n >= 2 ? i(t, e) : 1 == n ? null == t ? a.clear() : "string" == typeof t ? o(t) : "object" == typeof t ? c(t, i) : void 0 : void 0; | |
} | |
function i(t, e) { | |
return null == e ? a.removeItem(t) : a.setItem(t, JSON.stringify(e)); | |
} | |
function o(t) { | |
return s(a.getItem(t)); | |
} | |
function r() { | |
for (var t, e = a.length, n = {}; 0 <= --e; ) { | |
t = a.key(e); | |
n[t] = o(t); | |
} | |
return n; | |
} | |
var a, s = t("unserialize"), c = t("each"); | |
try { | |
a = window.localStorage; | |
} catch (p) { | |
a = null; | |
} | |
e.exports = n; | |
n.supported = !!a; | |
}, { | |
unserialize: 222, | |
each: 143 | |
} ], | |
222: [ function(t, e) { | |
e.exports = function(t) { | |
try { | |
return JSON.parse(t); | |
} catch (e) { | |
return t || void 0; | |
} | |
}; | |
}, {} ], | |
214: [ function(t, e) { | |
function n() { | |
return o || window.location.protocol; | |
} | |
function i(t) { | |
try { | |
r(window.location, "protocol", { | |
get: function() { | |
return t; | |
} | |
}); | |
} catch (e) { | |
o = t; | |
} | |
} | |
var o, r = Object.defineProperty, a = window.location.protocol; | |
e.exports = function(t) { | |
return 0 === arguments.length ? n() : i(t); | |
}; | |
e.exports.http = function() { | |
i("http:"); | |
}; | |
e.exports.https = function() { | |
i("https:"); | |
}; | |
e.exports.reset = function() { | |
i(a); | |
}; | |
}, {} ], | |
215: [ function(t, e, n) { | |
function i(t, e, n, i) { | |
function o() { | |
return 4 == r.readyState ? i(null, r) : void 0; | |
} | |
3 == arguments.length && (i = n, n = {}); | |
var r = new XMLHttpRequest(); | |
r.onerror = i; | |
r.onreadystatechange = o; | |
r.open("POST", t, !0); | |
for (var a in n) r.setRequestHeader(a, n[a]); | |
r.send(c.stringify(e)); | |
} | |
function o(t, e, i, o) { | |
3 == arguments.length && (o = i); | |
var a = n.prefix; | |
e = r(c.stringify(e)); | |
e = encodeURIComponent(e); | |
t += "?" + a + "=" + e; | |
s(t, { | |
param: n.callback | |
}, function(e, n) { | |
if (e) return o(e); | |
o(null, { | |
url: t, | |
body: n | |
}); | |
return void 0; | |
}); | |
} | |
var r = t("base64-encode"), a = t("has-cors"), s = t("jsonp"), c = t("json"); | |
n = e.exports = a ? i : o; | |
n.callback = "callback"; | |
n.prefix = "data"; | |
n.json = i; | |
n.base64 = o; | |
n.type = a ? "xhr" : "jsonp"; | |
}, { | |
"base64-encode": 223, | |
"has-cors": 224, | |
jsonp: 225, | |
json: 202 | |
} ], | |
223: [ function(t, e) { | |
function n(t) { | |
var e, n, r, a, s, c, p, u = "", l = 0; | |
t = i(t); | |
for (;l < t.length; ) { | |
e = t.charCodeAt(l++); | |
n = t.charCodeAt(l++); | |
r = t.charCodeAt(l++); | |
a = e >> 2; | |
s = (3 & e) << 4 | n >> 4; | |
c = (15 & n) << 2 | r >> 6; | |
p = 63 & r; | |
isNaN(n) ? c = p = 64 : isNaN(r) && (p = 64); | |
u = u + o.charAt(a) + o.charAt(s) + o.charAt(c) + o.charAt(p); | |
} | |
return u; | |
} | |
var i = t("utf8-encode"), o = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="; | |
e.exports = n; | |
}, { | |
"utf8-encode": 226 | |
} ], | |
226: [ function(t, e) { | |
function n(t) { | |
t = t.replace(/\r\n/g, "\n"); | |
for (var e = "", n = 0; n < t.length; n++) { | |
var i = t.charCodeAt(n); | |
if (128 > i) e += String.fromCharCode(i); else if (i > 127 && 2048 > i) { | |
e += String.fromCharCode(192 | i >> 6); | |
e += String.fromCharCode(128 | 63 & i); | |
} else { | |
e += String.fromCharCode(224 | i >> 12); | |
e += String.fromCharCode(128 | 63 & i >> 6); | |
e += String.fromCharCode(128 | 63 & i); | |
} | |
} | |
return e; | |
} | |
e.exports = n; | |
}, {} ], | |
224: [ function(t, e) { | |
try { | |
e.exports = "undefined" != typeof XMLHttpRequest && "withCredentials" in new XMLHttpRequest(); | |
} catch (n) { | |
e.exports = !1; | |
} | |
}, {} ], | |
225: [ function(t, e) { | |
function n() {} | |
function i(t, e, i) { | |
function a() { | |
s.parentNode.removeChild(s); | |
window[g] = n; | |
} | |
if ("function" == typeof e) { | |
i = e; | |
e = {}; | |
} | |
e || (e = {}); | |
var s, c, p = e.prefix || "__jp", u = e.param || "callback", l = null != e.timeout ? e.timeout : 6e4, d = encodeURIComponent, f = document.getElementsByTagName("script")[0] || document.head, g = p + r++; | |
l && (c = setTimeout(function() { | |
a(); | |
i && i(new Error("Timeout")); | |
}, l)); | |
window[g] = function(t) { | |
o("jsonp got", t); | |
c && clearTimeout(c); | |
a(); | |
i && i(null, t); | |
}; | |
t += (~t.indexOf("?") ? "&" : "?") + u + "=" + d(g); | |
t = t.replace("?&", "?"); | |
o('jsonp req "%s"', t); | |
s = document.createElement("script"); | |
s.src = t; | |
f.parentNode.insertBefore(s, f); | |
} | |
var o = t("debug")("jsonp"); | |
e.exports = i; | |
var r = 0; | |
}, { | |
debug: 219 | |
} ], | |
216: [ function(t, e) { | |
function n(t) { | |
"?" == t.charAt(0) && (t = t.substring(1)); | |
var e, t = t.replace(/\?/g, "&"), n = i(t), o = {}; | |
for (var r in n) if (~r.indexOf("utm_")) { | |
e = r.substr(4); | |
"campaign" == e && (e = "name"); | |
o[e] = n[r]; | |
} | |
return o; | |
} | |
var i = t("querystring").parse; | |
e.exports = n; | |
}, { | |
querystring: 218 | |
} ], | |
217: [ function(t, e) { | |
e.exports = function n(t) { | |
return t ? (t ^ 16 * Math.random() >> t / 4).toString(16) : ([ 1e7 ] + -1e3 + -4e3 + -8e3 + -1e11).replace(/[018]/g, n); | |
}; | |
}, {} ], | |
78: [ function(t, e) { | |
var n = t("analytics.js-integration"); | |
e.exports = function() {}; | |
e.exports.Integration = n("empty"); | |
}, { | |
"analytics.js-integration": 122, | |
is: 164 | |
} ], | |
79: [ function(t, e) { | |
var n = t("analytics.js-integration"); | |
e.exports = function() {}; | |
e.exports.Integration = n("empty"); | |
}, { | |
"analytics.js-integration": 122, | |
is: 164, | |
"next-tick": 149 | |
} ], | |
80: [ function(t, e) { | |
var i = t("analytics.js-integration"); | |
e.exports = function() {}; | |
e.exports.Integration = i("empty"); | |
}, { | |
bind: 137, | |
"analytics.js-integration": 122, | |
when: 197 | |
} ], | |
81: [ function(t, e) { | |
var n = t("analytics.js-integration"); | |
e.exports = function() {}; | |
e.exports.Integration = n("empty"); | |
}, { | |
"analytics.js-integration": 122 | |
} ], | |
82: [ function(t, e) { | |
var n = t("analytics.js-integration"); | |
e.exports = function() {}; | |
e.exports.Integration = n("empty"); | |
}, { | |
"analytics.js-integration": 122, | |
is: 164, | |
keys: 128, | |
"global-queue": 195 | |
} ], | |
83: [ function(t, e) { | |
var n = t("analytics.js-integration"); | |
e.exports = function() {}; | |
e.exports.Integration = n("empty"); | |
}, { | |
"analytics.js-integration": 122, | |
"global-queue": 195, | |
slug: 134 | |
} ], | |
84: [ function(t, e) { | |
var i = t("analytics.js-integration"); | |
e.exports = function() {}; | |
e.exports.Integration = i("empty"); | |
}, { | |
alias: 199, | |
"analytics.js-integration": 122 | |
} ], | |
85: [ function(t, e) { | |
var n = t("analytics.js-integration"); | |
e.exports = function() {}; | |
e.exports.Integration = n("empty"); | |
}, { | |
"analytics.js-integration": 122, | |
defaults: 227, | |
foldl: 121, | |
each: 120, | |
"obj-case": 179 | |
} ], | |
227: [ function(t, e) { | |
"use strict"; | |
var n = Object.prototype.hasOwnProperty, i = function(t) { | |
return Boolean(t) && "object" == typeof t; | |
}, o = function(t) { | |
if (!i(t)) return t; | |
for (var e = Array.prototype.slice.call(arguments, 1), o = 0; o < e.length; o += 1) for (var r in e[o]) n.call(e[o], r) && void 0 === t[r] && (t[r] = e[o][r]); | |
return t; | |
}; | |
e.exports = o; | |
}, {} ], | |
86: [ function(t, e) { | |
var o = t("analytics.js-integration"); | |
e.exports = function() {}; | |
e.exports.Integration = o("empty"); | |
}, { | |
facade: 166, | |
clone: 130, | |
"analytics.js-integration": 122 | |
} ], | |
87: [ function(t, e) { | |
var s = t("analytics.js-integration"); | |
e.exports = function() {}; | |
e.exports.Integration = s("empty"); | |
}, { | |
alias: 199, | |
"convert-dates": 200, | |
"analytics.js-integration": 122, | |
"global-queue": 195, | |
"to-unix-timestamp": 228 | |
} ], | |
228: [ function(t, e) { | |
function n(t) { | |
return Math.floor(t.getTime() / 1e3); | |
} | |
e.exports = n; | |
}, {} ], | |
88: [ function(t, e) { | |
var i = t("analytics.js-integration"); | |
e.exports = function() {}; | |
e.exports.Integration = i("empty"); | |
}, { | |
"component/cookie": 212, | |
"analytics.js-integration": 122, | |
"global-queue": 195 | |
} ], | |
89: [ function(t, e) { | |
var s = t("analytics.js-integration"); | |
e.exports = function() {}; | |
e.exports.Integration = s("empty"); | |
}, { | |
each: 120, | |
"analytics.js-integration": 122, | |
"next-tick": 149 | |
} ], | |
90: [ function(t, e) { | |
var n = t("analytics.js-integration"); | |
e.exports = function() {}; | |
e.exports.Integration = n("empty"); | |
}, { | |
"analytics.js-integration": 122, | |
"use-https": 125 | |
} ], | |
91: [ function(t, e) { | |
var i = t("analytics.js-integration"); | |
e.exports = function() {}; | |
e.exports.Integration = i("empty"); | |
}, { | |
each: 120, | |
"analytics.js-integration": 122, | |
"to-snake-case": 124 | |
} ], | |
92: [ function(t, e) { | |
var n = t("analytics.js-integration"); | |
e.exports = function() {}; | |
e.exports.Integration = n("empty"); | |
}, { | |
"analytics.js-integration": 122, | |
omit: 207 | |
} ], | |
93: [ function(t, e) { | |
var o = t("analytics.js-integration"); | |
e.exports = function() {}; | |
e.exports.Integration = o("empty"); | |
}, { | |
bind: 137, | |
"analytics.js-integration": 122, | |
"next-tick": 149, | |
when: 197 | |
} ], | |
94: [ function(t, e) { | |
var i = t("analytics.js-integration"); | |
e.exports = function() {}; | |
e.exports.Integration = i("empty"); | |
}, { | |
each: 5, | |
"analytics.js-integration": 122 | |
} ], | |
5: [ function(t, e) { | |
function n(t, e) { | |
for (var n = 0; n < t.length; ++n) e(t.charAt(n), n); | |
} | |
function i(t, e) { | |
for (var n in t) c.call(t, n) && e(n, t[n]); | |
} | |
function o(t, e) { | |
for (var n = 0; n < t.length; ++n) e(t[n], n); | |
} | |
var r, a = t("to-function"); | |
try { | |
r = t("type-component"); | |
} catch (s) { | |
r = t("type"); | |
} | |
var c = Object.prototype.hasOwnProperty; | |
e.exports = function(t, e) { | |
e = a(e); | |
switch (r(t)) { | |
case "array": | |
return o(t, e); | |
case "object": | |
return "number" == typeof t.length ? o(t, e) : i(t, e); | |
case "string": | |
return n(t, e); | |
} | |
}; | |
}, { | |
"to-function": 154, | |
type: 126 | |
} ], | |
95: [ function(t, e) { | |
var r = t("analytics.js-integration"); | |
e.exports = function() {}; | |
e.exports.Integration = r("empty"); | |
}, { | |
each: 5, | |
entries: 229, | |
extend: 230, | |
"analytics.js-integration": 122, | |
map: 231, | |
pick: 232, | |
values: 233 | |
} ], | |
229: [ function(t, e) { | |
"use strict"; | |
var n = Object.prototype.hasOwnProperty, i = function(t) { | |
var e = []; | |
for (var i in t) n.call(t, i) && e.push([ i, t[i] ]); | |
return e; | |
}; | |
e.exports = i; | |
}, {} ], | |
230: [ function(t, e) { | |
"use strict"; | |
var n = Object.prototype.hasOwnProperty; | |
e.exports = function(t) { | |
for (var e = Array.prototype.slice.call(arguments, 1), i = 0; i < e.length; i += 1) for (var o in e[i]) n.call(e[i], o) && (t[o] = e[i][o]); | |
return t; | |
}; | |
}, {} ], | |
231: [ function(t, e) { | |
var n = t("to-function"); | |
e.exports = function(t, e) { | |
var i = []; | |
e = n(e); | |
for (var o = 0; o < t.length; ++o) i.push(e(t[o], o)); | |
return i; | |
}; | |
}, { | |
"to-function": 154 | |
} ], | |
232: [ function(t, e) { | |
"use strict"; | |
var n = Object.prototype.toString, i = function(t) { | |
return null != t; | |
}, o = function(t) { | |
return "[object Array]" === n.call(t); | |
}, r = function(t) { | |
return "string" == typeof t || "[object String]" === n.call(t); | |
}, a = function(t) { | |
return null != t && "object" == typeof t; | |
}, s = function(t, e) { | |
if (!i(e) || !a(e)) return {}; | |
r(t) && (t = [ t ]); | |
o(t) || (t = []); | |
for (var n = {}, s = 0; s < t.length; s += 1) r(t[s]) && t[s] in e && (n[t[s]] = e[t[s]]); | |
return n; | |
}; | |
e.exports = s; | |
}, {} ], | |
233: [ function(t, e) { | |
"use strict"; | |
var n; | |
try { | |
n = t("@ndhoule/keys"); | |
} catch (i) { | |
n = t("keys"); | |
} | |
var o = function(t) { | |
for (var e = n(t), i = new Array(e.length), o = 0; o < e.length; o += 1) i[o] = t[e[o]]; | |
return i; | |
}; | |
e.exports = o; | |
}, { | |
keys: 128 | |
} ], | |
96: [ function(t, e) { | |
var i = t("analytics.js-integration"); | |
e.exports = function() {}; | |
e.exports.Integration = i("empty"); | |
}, { | |
each: 5, | |
"analytics.js-integration": 122, | |
querystring: 234, | |
"use-https": 125 | |
} ], | |
234: [ function(t, e, n) { | |
var i = encodeURIComponent, o = decodeURIComponent, r = t("trim"), a = t("type"); | |
n.parse = function(t) { | |
if ("string" != typeof t) return {}; | |
t = r(t); | |
if ("" == t) return {}; | |
"?" == t.charAt(0) && (t = t.slice(1)); | |
for (var e = {}, n = t.split("&"), i = 0; i < n.length; i++) { | |
var a, s = n[i].split("="), c = o(s[0]); | |
if (a = /(\w+)\[(\d+)\]/.exec(c)) { | |
e[a[1]] = e[a[1]] || []; | |
e[a[1]][a[2]] = o(s[1]); | |
} else e[s[0]] = null == s[1] ? "" : o(s[1]); | |
} | |
return e; | |
}; | |
n.stringify = function(t) { | |
if (!t) return ""; | |
var e = []; | |
for (var n in t) { | |
var o = t[n]; | |
if ("array" != a(o)) e.push(i(n) + "=" + i(t[n])); else for (var r = 0; r < o.length; ++r) e.push(i(n + "[" + r + "]") + "=" + i(o[r])); | |
} | |
return e.join("&"); | |
}; | |
}, { | |
trim: 189, | |
type: 126 | |
} ], | |
97: [ function(t, e) { | |
var i = t("analytics.js-integration"); | |
e.exports = function() {}; | |
e.exports.Integration = i("empty"); | |
}, { | |
each: 5, | |
"analytics.js-integration": 122, | |
is: 164, | |
"global-queue": 195 | |
} ], | |
98: [ function(t, e) { | |
var i = t("analytics.js-integration"); | |
e.exports = function() {}; | |
e.exports.Integration = i("empty"); | |
}, { | |
"global-queue": 195, | |
"analytics.js-integration": 122 | |
} ], | |
99: [ function(t, e) { | |
var n = t("analytics.js-integration"); | |
e.exports = function() {}; | |
e.exports.Integration = n("empty"); | |
}, { | |
"analytics.js-integration": 122 | |
} ], | |
100: [ function(t, e) { | |
var n = t("analytics.js-integration"); | |
e.exports = function() {}; | |
e.exports.Integration = n("empty"); | |
}, { | |
"analytics.js-integration": 122, | |
"global-queue": 195, | |
reduce: 235 | |
} ], | |
235: [ function(t, e) { | |
var n = t("each"); | |
e.exports = function(t, e, i) { | |
n(t, function(n, o) { | |
e = i.call(null, e, n, o, t); | |
}); | |
return e; | |
}; | |
}, { | |
each: 143 | |
} ], | |
101: [ function(t, e) { | |
var n = t("analytics.js-integration"); | |
e.exports = function() {}; | |
e.exports.Integration = n("empty"); | |
}, { | |
"analytics.js-integration": 122, | |
each: 5 | |
} ], | |
102: [ function(t, e) { | |
var o = t("analytics.js-integration"); | |
e.exports = function() {}; | |
e.exports.Integration = o("empty"); | |
}, { | |
bind: 137, | |
fmt: 145, | |
"analytics.js-integration": 122, | |
is: 164, | |
jsonp: 236, | |
url: 237, | |
when: 238 | |
} ], | |
236: [ function(t, e) { | |
function n() {} | |
function i(t, e, i) { | |
function s() { | |
var t = c.parentNode; | |
t && t.removeChild(c); | |
window["__jp" + g] = n; | |
} | |
if ("function" == typeof e) { | |
i = e; | |
e = {}; | |
} | |
e || (e = {}); | |
var c, p, u = e.param || "callback", l = null != e.timeout ? e.timeout : 6e4, d = encodeURIComponent, f = document.getElementsByTagName("script")[0] || document.head, g = a++; | |
l && (p = setTimeout(function() { | |
s(); | |
i && i(new Error("Timeout")); | |
}, l)); | |
window["__jp" + g] = function(t) { | |
o("jsonp got", t); | |
p && clearTimeout(p); | |
s(); | |
i && i(null, t); | |
}; | |
t += (~r(t, "?") ? "&" : "?") + u + "=" + d("__jp" + g); | |
t = t.replace("?&", "?"); | |
o('jsonp req "%s"', t); | |
c = document.createElement("script"); | |
c.src = t; | |
f.parentNode.insertBefore(c, f); | |
} | |
var o = t("debug")("jsonp"), r = t("indexof"); | |
e.exports = i; | |
var a = 0; | |
}, { | |
debug: 219, | |
indexof: 152 | |
} ], | |
237: [ function(t, e, n) { | |
function i(t) { | |
switch (t) { | |
case "http:": | |
return 80; | |
case "https:": | |
return 443; | |
default: | |
return location.port; | |
} | |
} | |
n.parse = function(t) { | |
var e = document.createElement("a"); | |
e.href = t; | |
return { | |
href: e.href, | |
host: e.host || location.host, | |
port: "0" === e.port || "" === e.port ? i(e.protocol) : e.port, | |
hash: e.hash, | |
hostname: e.hostname || location.hostname, | |
pathname: "/" != e.pathname.charAt(0) ? "/" + e.pathname : e.pathname, | |
protocol: e.protocol && ":" != e.protocol ? e.protocol : location.protocol, | |
search: e.search, | |
query: e.search.slice(1) | |
}; | |
}; | |
n.isAbsolute = function(t) { | |
return 0 == t.indexOf("//") || !!~t.indexOf("://"); | |
}; | |
n.isRelative = function(t) { | |
return !n.isAbsolute(t); | |
}; | |
n.isCrossDomain = function(t) { | |
t = n.parse(t); | |
var e = n.parse(window.location.href); | |
return t.hostname !== e.hostname || t.port !== e.port || t.protocol !== e.protocol; | |
}; | |
}, {} ], | |
238: [ function(t, e) { | |
function n(t, e, n) { | |
if ("function" != typeof t) throw new Error("condition must be a function"); | |
if ("function" != typeof e) throw new Error("fn must be a function"); | |
if (t()) return i(e); | |
var o = setInterval(function() { | |
if (t()) { | |
i(e); | |
clearInterval(o); | |
} | |
}, n || 10); | |
} | |
var i = t("next-tick"); | |
e.exports = n; | |
}, { | |
"next-tick": 239 | |
} ], | |
239: [ function(t, e) { | |
"use strict"; | |
var n, i; | |
n = function(t) { | |
if ("function" != typeof t) throw new TypeError(t + " is not a function"); | |
return t; | |
}; | |
i = function(t) { | |
var e, i = document.createTextNode(""), o = 0; | |
new t(function() { | |
var t; | |
if (e) { | |
t = e; | |
e = null; | |
"function" != typeof t ? t.forEach(function(t) { | |
t(); | |
}) : t(); | |
} | |
}).observe(i, { | |
characterData: !0 | |
}); | |
return function(t) { | |
n(t); | |
if (e) "function" == typeof e ? e = [ e, t ] : e.push(t); else { | |
e = t; | |
i.data = o = ++o % 2; | |
} | |
}; | |
}; | |
e.exports = function() { | |
if ("object" == typeof process && process && "function" == typeof process.nextTick) return process.nextTick; | |
if ("object" == typeof document && document) { | |
if ("function" == typeof MutationObserver) return i(MutationObserver); | |
if ("function" == typeof WebKitMutationObserver) return i(WebKitMutationObserver); | |
} | |
return "function" == typeof setImmediate ? function(t) { | |
setImmediate(n(t)); | |
} : "function" == typeof setTimeout || "object" == typeof setTimeout ? function(t) { | |
setTimeout(n(t), 0); | |
} : null; | |
}(); | |
}, {} ], | |
103: [ function(t, e) { | |
var n = t("analytics.js-integration"); | |
e.exports = function() {}; | |
e.exports.Integration = n("empty"); | |
}, { | |
"analytics.js-integration": 122, | |
querystring: 234, | |
extend: 230, | |
foldl: 121, | |
each: 5 | |
} ], | |
104: [ function(t, e) { | |
var a = t("analytics.js-integration"); | |
e.exports = function() {}; | |
e.exports.Integration = a("empty"); | |
}, { | |
facade: 166, | |
each: 5, | |
"analytics.js-integration": 122, | |
"global-queue": 195 | |
} ], | |
105: [ function(t, e) { | |
var a = t("analytics.js-integration"); | |
e.exports = function() {}; | |
e.exports.Integration = a("empty"); | |
}, { | |
facade: 166, | |
"analytics.js-integration": 122, | |
"to-no-case": 148, | |
querystring: 234, | |
"js-sha256": 240 | |
} ], | |
240: [ function(t, e) { | |
!function(t, n) { | |
"use strict"; | |
var i = [ "0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "a", "b", "c", "d", "e", "f" ], o = { | |
0: 0, | |
1: 1, | |
2: 2, | |
3: 3, | |
4: 4, | |
5: 5, | |
6: 6, | |
7: 7, | |
8: 8, | |
9: 9, | |
a: 10, | |
b: 11, | |
c: 12, | |
d: 13, | |
e: 14, | |
f: 15, | |
A: 10, | |
B: 11, | |
C: 12, | |
D: 13, | |
E: 14, | |
F: 15 | |
}, r = [ 1116352408, 1899447441, 3049323471, 3921009573, 961987163, 1508970993, 2453635748, 2870763221, 3624381080, 310598401, 607225278, 1426881987, 1925078388, 2162078206, 2614888103, 3248222580, 3835390401, 4022224774, 264347078, 604807628, 770255983, 1249150122, 1555081692, 1996064986, 2554220882, 2821834349, 2952996808, 3210313671, 3336571891, 3584528711, 113926993, 338241895, 666307205, 773529912, 1294757372, 1396182291, 1695183700, 1986661051, 2177026350, 2456956037, 2730485921, 2820302411, 3259730800, 3345764771, 3516065817, 3600352804, 4094571909, 275423344, 430227734, 506948616, 659060556, 883997877, 958139571, 1322822218, 1537002063, 1747873779, 1955562222, 2024104815, 2227730452, 2361852424, 2428436474, 2756734187, 3204031479, 3329325298 ], a = function(t) { | |
return c(t, !0); | |
}, s = function(t) { | |
return c(t, !1); | |
}, c = function(t, e) { | |
e === n && (e = !0); | |
var i = l(t) ? f(t) : d(t); | |
if (e) var o = 1779033703, a = 3144134277, s = 1013904242, c = 2773480762, g = 1359893119, y = 2600822924, h = 528734635, m = 1541459225; else var o = 3238371032, a = 914150663, s = 812702999, c = 4144912697, g = 4290775857, y = 1750603025, h = 1694076839, m = 3204075428; | |
for (var v = 0, w = i.length; w > v; v += 16) { | |
for (var b, _, k = [], j = 0; 16 > j; ++j) k[j] = i[v + j]; | |
for (var j = 16; 64 > j; ++j) { | |
b = p(k[j - 15], 7) ^ p(k[j - 15], 18) ^ k[j - 15] >>> 3; | |
_ = p(k[j - 2], 17) ^ p(k[j - 2], 19) ^ k[j - 2] >>> 10; | |
k[j] = k[j - 16] + b + k[j - 7] + _; | |
} | |
for (var x, I, C, q, P = o, A = a, E = s, S = c, z = g, O = y, T = h, N = m, j = 0; 64 > j; ++j) { | |
b = p(P, 2) ^ p(P, 13) ^ p(P, 22); | |
x = P & A ^ P & E ^ A & E; | |
C = b + x; | |
_ = p(z, 6) ^ p(z, 11) ^ p(z, 25); | |
q = z & O ^ ~z & T; | |
I = 4294967295 & N + _ + q + r[j] + k[j]; | |
N = T; | |
T = O; | |
O = z; | |
z = S + I; | |
S = E; | |
E = A; | |
A = P; | |
P = I + C; | |
} | |
o += P; | |
a += A; | |
s += E; | |
c += S; | |
g += z; | |
y += O; | |
h += T; | |
m += N; | |
} | |
var L = u(o) + u(a) + u(s) + u(c) + u(g) + u(y) + u(h); | |
e && (L += u(m)); | |
return L; | |
}, p = function(t, e) { | |
return t >>> e | t << 32 - e; | |
}, u = function(t) { | |
for (var e = "", n = 0; 4 > n; n++) { | |
var o = 3 - n << 3; | |
e += i[15 & t >> o + 4] + i[15 & t >> o]; | |
} | |
return e; | |
}, l = function(t) { | |
for (var e = t.length; e--; ) if (t.charCodeAt(e) > 127) return !0; | |
return !1; | |
}, d = function(t) { | |
var e, n = t.length, i = (n + 8 >> 6) + 1, o = i << 4, r = []; | |
for (e = 0; o > e; ++e) r[e] = 0; | |
for (e = 0; n > e; ++e) r[e >> 2] |= t.charCodeAt(e) << (3 - e % 4 << 3); | |
r[e >> 2] |= 128 << (3 - e % 4 << 3); | |
r[o - 1] = n << 3; | |
return r; | |
}, f = function(t) { | |
for (var e = encodeURIComponent(t), n = [], i = 0, r = 0, a = e.length; a > i; ++i) { | |
var s = e.charCodeAt(i); | |
n[r >> 2] |= 37 == s ? (o[e.charAt(++i)] << 4 | o[e.charAt(++i)]) << (3 - r % 4 << 3) : s << (3 - r % 4 << 3); | |
++r; | |
} | |
var c = (r + 8 >> 6) + 1, p = c << 4, u = r >> 2; | |
n[u] |= 128 << (3 - r % 4 << 3); | |
for (var i = u + 1; p > i; ++i) n[i] = 0; | |
n[p - 1] = r << 3; | |
return n; | |
}; | |
if ("undefined" != typeof e) { | |
a.sha256 = a; | |
a.sha224 = s; | |
e.exports = a; | |
} else if (t) { | |
t.sha256 = a; | |
t.sha224 = s; | |
} | |
}(this); | |
}, {} ], | |
106: [ function(t, e) { | |
var u = t("analytics.js-integration"); | |
e.exports = function() {}; | |
e.exports.Integration = u("empty"); | |
}, { | |
"obj-case": 241, | |
each: 5, | |
"analytics.js-integration": 122, | |
"to-iso-string": 194, | |
map: 231, | |
type: 153 | |
} ], | |
241: [ function(t, e) { | |
function n(t) { | |
return function(e, n, i) { | |
function o() { | |
for (r in e) { | |
var t = a(r); | |
if (0 === n.indexOf(t)) { | |
var i = n.substr(t.length); | |
if ("." === i.charAt(0) || 0 === i.length) { | |
n = i.substr(1); | |
var o = e[r]; | |
if (null == o) { | |
s = !0; | |
e = null; | |
return; | |
} | |
if (!n.length) { | |
s = !0; | |
return; | |
} | |
e = o; | |
return; | |
} | |
} | |
} | |
r = void 0; | |
s = !0; | |
} | |
n = a(n); | |
for (var r, s = !1; !s; ) o(); | |
return r ? t(e, r, i) : void 0; | |
}; | |
} | |
function i(t, e) { | |
return t.hasOwnProperty(e) ? t[e] : void 0; | |
} | |
function o(t, e) { | |
t.hasOwnProperty(e) && delete t[e]; | |
return t; | |
} | |
function r(t, e, n) { | |
t.hasOwnProperty(e) && (t[e] = n); | |
return t; | |
} | |
function a(t) { | |
return t.replace(/[^a-zA-Z0-9\.]+/g, "").toLowerCase(); | |
} | |
e.exports = e.exports.find = n(i); | |
e.exports.replace = function(t) { | |
n(r).apply(this, arguments); | |
return t; | |
}; | |
e.exports.del = function(t) { | |
n(o).apply(this, arguments); | |
return t; | |
}; | |
}, {} ], | |
107: [ function(t, e) { | |
var n = t("analytics.js-integration"); | |
e.exports = function() {}; | |
e.exports.Integration = n("empty"); | |
}, { | |
"analytics.js-integration": 122 | |
} ], | |
108: [ function(t, e) { | |
var a = t("analytics.js-integration"); | |
e.exports = function() {}; | |
e.exports.Integration = a("empty"); | |
}, { | |
cookie: 212, | |
each: 5, | |
"analytics.js-integration": 122, | |
"load-script": 242, | |
querystring: 234, | |
"use-https": 125 | |
} ], | |
242: [ function(t, e) { | |
var n = t("type"); | |
e.exports = function(t, e) { | |
if (!t) throw new Error("Cant load nothing..."); | |
"string" === n(t) && (t = { | |
src: t | |
}); | |
var i = "https:" === document.location.protocol || "chrome-extension:" === document.location.protocol; | |
t.src && 0 === t.src.indexOf("//") && (t.src = i ? "https:" + t.src : "http:" + t.src); | |
i && t.https ? t.src = t.https : !i && t.http && (t.src = t.http); | |
var o = document.createElement("script"); | |
o.type = "text/javascript"; | |
o.async = !0; | |
o.src = t.src; | |
var r = document.getElementsByTagName("script")[0]; | |
r.parentNode.insertBefore(o, r); | |
if (e && "function" === n(e)) if (o.addEventListener) { | |
o.addEventListener("load", function(t) { | |
e(null, t); | |
}, !1); | |
o.addEventListener("error", function(t) { | |
e(new Error("Failed to load the script."), t); | |
}, !1); | |
} else o.attachEvent && o.attachEvent("onreadystatechange", function(t) { | |
/complete|loaded/.test(o.readyState) && e(null, t); | |
}); | |
return o; | |
}; | |
}, { | |
type: 126 | |
} ], | |
109: [ function(t, e) { | |
var r = t("analytics.js-integration"); | |
e.exports = function() {}; | |
e.exports.Integration = r("empty"); | |
}, { | |
facade: 166, | |
each: 5, | |
"analytics.js-integration": 122 | |
} ], | |
110: [ function(t, e) { | |
var i = t("analytics.js-integration"); | |
e.exports = function() {}; | |
e.exports.Integration = i("empty"); | |
}, { | |
each: 5, | |
"analytics.js-integration": 122 | |
} ], | |
111: [ function(t, e) { | |
var o = t("analytics.js-integration"); | |
e.exports = function() {}; | |
e.exports.Integration = o("empty"); | |
}, { | |
facade: 166, | |
each: 5, | |
"analytics.js-integration": 122 | |
} ], | |
112: [ function(t, e) { | |
var i = t("analytics.js-integration"); | |
e.exports = function() {}; | |
e.exports.Integration = i("empty"); | |
}, { | |
each: 5, | |
"analytics.js-integration": 122 | |
} ], | |
113: [ function(t, e) { | |
var i = t("analytics.js-integration"); | |
e.exports = function() {}; | |
e.exports.Integration = i("empty"); | |
}, { | |
"analytics.js-integration": 122, | |
facade: 166, | |
foldl: 121, | |
each: 5 | |
} ], | |
114: [ function(t, e) { | |
var a = t("analytics.js-integration"); | |
e.exports = function() {}; | |
e.exports.Integration = a("empty"); | |
}, { | |
facade: 166, | |
each: 5, | |
"analytics.js-integration": 122, | |
"use-https": 125 | |
} ], | |
115: [ function(t, e) { | |
var r = t("analytics.js-integration"); | |
e.exports = function() {}; | |
e.exports.Integration = r("empty"); | |
}, { | |
facade: 166, | |
"convert-dates": 200, | |
extend: 230, | |
"analytics.js-integration": 122, | |
"to-iso-string": 194 | |
} ], | |
116: [ function(t, e) { | |
var i = t("analytics.js-integration"); | |
e.exports = function() {}; | |
e.exports.Integration = i("empty"); | |
}, { | |
"analytics.js-integration": 122, | |
is: 164, | |
defaults: 243 | |
} ], | |
243: [ function(t, e) { | |
"use strict"; | |
var n = function(t, e, i) { | |
for (var o in e) e.hasOwnProperty(o) && (i && t[o] instanceof Object && e[o] instanceof Object ? t[o] = n(t[o], e[o], !0) : o in t || (t[o] = e[o])); | |
return t; | |
}; | |
e.exports = n; | |
}, {} ], | |
117: [ function(t, e) { | |
var n = t("analytics.js-integration"); | |
e.exports = function() {}; | |
e.exports.Integration = n("empty"); | |
}, { | |
"analytics.js-integration": 122, | |
"use-https": 125 | |
} ], | |
118: [ function(t, e) { | |
var n = t("analytics.js-integration"); | |
e.exports = function() {}; | |
e.exports.Integration = n("empty"); | |
}, { | |
"analytics.js-integration": 122, | |
each: 5 | |
} ], | |
119: [ function(t, e) { | |
var i = t("analytics.js-integration"); | |
e.exports = function() {}; | |
e.exports.Integration = i("empty"); | |
}, { | |
fmt: 145, | |
"analytics.js-integration": 122, | |
when: 238, | |
reduce: 235 | |
} ], | |
4: [ function(t, e, n) { | |
var i = t("./analytics"), o = e.exports = n = new i(); | |
o.require = t; | |
n.VERSION = t("../bower.json").version; | |
}, { | |
"./analytics": 244, | |
"../bower.json": 245 | |
} ], | |
244: [ function(t, e, n) { | |
function i() { | |
this._options({}); | |
this.Integrations = {}; | |
this._integrations = {}; | |
this._readied = !1; | |
this._timeout = 300; | |
this._user = P; | |
this.log = d("analytics.js"); | |
c.all(this); | |
var t = this; | |
this.on("initialize", function(e, n) { | |
n.initialPageview && t.page(); | |
t._parseQuery(); | |
}); | |
} | |
var o = window.analytics, r = t("emitter"), a = t("facade"), s = t("after"), c = t("bind"), p = t("callback"), u = t("clone"), l = t("./cookie"), d = t("debug"), f = t("defaults"), g = t("each"), y = t("./group"), h = t("is"), m = t("is-meta"), v = t("object").keys, w = t("./memory"), b = t("./normalize"), _ = t("event").bind, k = t("./pageDefaults"), j = t("pick"), x = t("prevent"), I = t("querystring"), C = t("object").length, q = t("./store"), P = t("./user"), A = a.Alias, E = a.Group, S = a.Identify, z = a.Page, O = a.Track; | |
n = e.exports = i; | |
n.cookie = l; | |
n.store = q; | |
n.memory = w; | |
r(i.prototype); | |
i.prototype.use = function(t) { | |
t(this); | |
return this; | |
}; | |
i.prototype.addIntegration = function(t) { | |
var e = t.prototype.name; | |
if (!e) throw new TypeError("attempted to add an invalid integration"); | |
this.Integrations[e] = t; | |
return this; | |
}; | |
i.prototype.init = i.prototype.initialize = function(t, e) { | |
t = t || {}; | |
e = e || {}; | |
this._options(e); | |
this._readied = !1; | |
var n = this; | |
g(t, function(e) { | |
var i = n.Integrations[e]; | |
i || delete t[e]; | |
}); | |
g(t, function(t, e) { | |
var i = n.Integrations[t], o = new i(u(e)); | |
n.log("initialize %o - %o", t, e); | |
n.add(o); | |
}); | |
var i = this._integrations; | |
P.load(); | |
y.load(); | |
var o = s(C(i), function() { | |
n._readied = !0; | |
n.emit("ready"); | |
}); | |
g(i, function(t, i) { | |
e.initialPageview && i.options.initialPageview === !1 && (i.page = s(2, i.page)); | |
i.analytics = n; | |
i.once("ready", o); | |
i.initialize(); | |
}); | |
this.initialized = !0; | |
this.emit("initialize", t, e); | |
return this; | |
}; | |
i.prototype.setAnonymousId = function(t) { | |
this.user().anonymousId(t); | |
return this; | |
}; | |
i.prototype.add = function(t) { | |
this._integrations[t.name] = t; | |
return this; | |
}; | |
i.prototype.identify = function(t, e, n, i) { | |
h.fn(n) && (i = n, n = null); | |
h.fn(e) && (i = e, n = null, e = null); | |
h.object(t) && (n = e, e = t, t = P.id()); | |
P.identify(t, e); | |
var o = this.normalize({ | |
options: n, | |
traits: P.traits(), | |
userId: P.id() | |
}); | |
this._invoke("identify", new S(o)); | |
this.emit("identify", t, e, n); | |
this._callback(i); | |
return this; | |
}; | |
i.prototype.user = function() { | |
return P; | |
}; | |
i.prototype.group = function(t, e, n, i) { | |
if (!arguments.length) return y; | |
h.fn(n) && (i = n, n = null); | |
h.fn(e) && (i = e, n = null, e = null); | |
h.object(t) && (n = e, e = t, t = y.id()); | |
y.identify(t, e); | |
var o = this.normalize({ | |
options: n, | |
traits: y.traits(), | |
groupId: y.id() | |
}); | |
this._invoke("group", new E(o)); | |
this.emit("group", t, e, n); | |
this._callback(i); | |
return this; | |
}; | |
i.prototype.track = function(t, e, n, i) { | |
h.fn(n) && (i = n, n = null); | |
h.fn(e) && (i = e, n = null, e = null); | |
var o = this.options.plan || {}, r = o.track || {}, a = this.normalize({ | |
properties: e, | |
options: n, | |
event: t | |
}); | |
o = r[t]; | |
if (o) { | |
this.log("plan %o - %o", t, o); | |
if (o.enabled === !1) return this._callback(i); | |
f(a.integrations, o.integrations || {}); | |
} | |
this._invoke("track", new O(a)); | |
this.emit("track", t, e, n); | |
this._callback(i); | |
return this; | |
}; | |
i.prototype.trackClick = i.prototype.trackLink = function(t, e, n) { | |
if (!t) return this; | |
h.element(t) && (t = [ t ]); | |
var i = this; | |
g(t, function(t) { | |
if (!h.element(t)) throw new TypeError("Must pass HTMLElement to `analytics.trackLink`."); | |
_(t, "click", function(o) { | |
var r = h.fn(e) ? e(t) : e, a = h.fn(n) ? n(t) : n, s = t.getAttribute("href") || t.getAttributeNS("http://www.w3.org/1999/xlink", "href") || t.getAttribute("xlink:href"); | |
i.track(r, a); | |
if (s && "_blank" !== t.target && !m(o)) { | |
x(o); | |
i._callback(function() { | |
window.location.href = s; | |
}); | |
} | |
}); | |
}); | |
return this; | |
}; | |
i.prototype.trackSubmit = i.prototype.trackForm = function(t, e, n) { | |
if (!t) return this; | |
h.element(t) && (t = [ t ]); | |
var i = this; | |
g(t, function(t) { | |
function o(o) { | |
x(o); | |
var r = h.fn(e) ? e(t) : e, a = h.fn(n) ? n(t) : n; | |
i.track(r, a); | |
i._callback(function() { | |
t.submit(); | |
}); | |
} | |
if (!h.element(t)) throw new TypeError("Must pass HTMLElement to `analytics.trackForm`."); | |
var r = window.jQuery || window.Zepto; | |
r ? r(t).submit(o) : _(t, "submit", o); | |
}); | |
return this; | |
}; | |
i.prototype.page = function(t, e, n, i, o) { | |
h.fn(i) && (o = i, i = null); | |
h.fn(n) && (o = n, i = n = null); | |
h.fn(e) && (o = e, i = n = e = null); | |
h.object(t) && (i = e, n = t, e = t = null); | |
h.object(e) && (i = n, n = e, e = null); | |
h.string(t) && !h.string(e) && (e = t, t = null); | |
n = u(n) || {}; | |
e && (n.name = e); | |
t && (n.category = t); | |
var r = k(); | |
f(n, r); | |
var a = j(v(r), n); | |
if (!h.empty(a)) { | |
i = i || {}; | |
i.context = i.context || {}; | |
i.context.page = a; | |
} | |
var s = this.normalize({ | |
properties: n, | |
category: t, | |
options: i, | |
name: e | |
}); | |
this._invoke("page", new z(s)); | |
this.emit("page", t, e, n, i); | |
this._callback(o); | |
return this; | |
}; | |
i.prototype.pageview = function(t) { | |
var e = {}; | |
t && (e.path = t); | |
this.page(e); | |
return this; | |
}; | |
i.prototype.alias = function(t, e, n, i) { | |
h.fn(n) && (i = n, n = null); | |
h.fn(e) && (i = e, n = null, e = null); | |
h.object(e) && (n = e, e = null); | |
var o = this.normalize({ | |
options: n, | |
previousId: e, | |
userId: t | |
}); | |
this._invoke("alias", new A(o)); | |
this.emit("alias", t, e, n); | |
this._callback(i); | |
return this; | |
}; | |
i.prototype.ready = function(t) { | |
h.fn(t) && (this._readied ? p.async(t) : this.once("ready", t)); | |
return this; | |
}; | |
i.prototype.timeout = function(t) { | |
this._timeout = t; | |
}; | |
i.prototype.debug = function(t) { | |
!arguments.length || t ? d.enable("analytics:" + (t || "*")) : d.disable(); | |
}; | |
i.prototype._options = function(t) { | |
t = t || {}; | |
this.options = t; | |
l.options(t.cookie); | |
q.options(t.localStorage); | |
P.options(t.user); | |
y.options(t.group); | |
return this; | |
}; | |
i.prototype._callback = function(t) { | |
p.async(t, this._timeout); | |
return this; | |
}; | |
i.prototype._invoke = function(t, e) { | |
this.emit("invoke", e); | |
g(this._integrations, function(n, i) { | |
e.enabled(n) && i.invoke.call(i, t, e); | |
}); | |
return this; | |
}; | |
i.prototype.push = function(t) { | |
var e = t.shift(); | |
this[e] && this[e].apply(this, t); | |
}; | |
i.prototype.reset = function() { | |
this.user().logout(); | |
this.group().logout(); | |
}; | |
i.prototype._parseQuery = function() { | |
var t = I.parse(window.location.search); | |
t.ajs_uid && this.identify(t.ajs_uid); | |
t.ajs_event && this.track(t.ajs_event); | |
t.ajs_aid && P.anonymousId(t.ajs_aid); | |
return this; | |
}; | |
i.prototype.normalize = function(t) { | |
t = b(t, v(this._integrations)); | |
t.anonymousId && P.anonymousId(t.anonymousId); | |
t.anonymousId = P.anonymousId(); | |
t.context.page = f(t.context.page || {}, k()); | |
return t; | |
}; | |
i.prototype.noConflict = function() { | |
window.analytics = o; | |
return this; | |
}; | |
}, { | |
emitter: 141, | |
facade: 166, | |
after: 142, | |
bind: 246, | |
callback: 198, | |
clone: 130, | |
"./cookie": 247, | |
debug: 219, | |
defaults: 132, | |
each: 120, | |
"./group": 248, | |
is: 164, | |
"is-meta": 249, | |
object: 205, | |
"./memory": 250, | |
"./normalize": 251, | |
event: 252, | |
"./pageDefaults": 253, | |
pick: 254, | |
prevent: 255, | |
querystring: 218, | |
"./store": 256, | |
"./user": 257 | |
} ], | |
246: [ function(t, e, n) { | |
function i(t, e) { | |
e = [].slice.call(arguments, 1); | |
for (var n, i = 0; n = e[i]; i++) t[n] = o(t, t[n]); | |
return t; | |
} | |
try { | |
var o = t("bind"); | |
} catch (r) { | |
var o = t("bind-component"); | |
} | |
var a = t("bind-all"); | |
e.exports = n = o; | |
n.all = a; | |
n.methods = i; | |
}, { | |
bind: 137, | |
"bind-all": 138 | |
} ], | |
247: [ function(t, e) { | |
function n(t) { | |
this.options(t); | |
} | |
var i = t("bind"), o = t("clone"), r = t("cookie"), a = t("debug")("analytics.js:cookie"), s = t("defaults"), c = t("json"), p = t("top-domain"); | |
n.prototype.options = function(t) { | |
if (0 === arguments.length) return this._options; | |
t = t || {}; | |
var e = "." + p(window.location.href); | |
"." === e && (e = null); | |
this._options = s(t, { | |
maxage: 31536e6, | |
path: "/", | |
domain: e | |
}); | |
this.set("ajs:test", !0); | |
if (!this.get("ajs:test")) { | |
a("fallback to domain=null"); | |
this._options.domain = null; | |
} | |
this.remove("ajs:test"); | |
}; | |
n.prototype.set = function(t, e) { | |
try { | |
e = c.stringify(e); | |
r(t, e, o(this._options)); | |
return !0; | |
} catch (n) { | |
return !1; | |
} | |
}; | |
n.prototype.get = function(t) { | |
try { | |
var e = r(t); | |
e = e ? c.parse(e) : null; | |
return e; | |
} catch (n) { | |
return null; | |
} | |
}; | |
n.prototype.remove = function(t) { | |
try { | |
r(t, null, o(this._options)); | |
return !0; | |
} catch (e) { | |
return !1; | |
} | |
}; | |
e.exports = i.all(new n()); | |
e.exports.Cookie = n; | |
}, { | |
bind: 246, | |
clone: 130, | |
cookie: 212, | |
debug: 219, | |
defaults: 132, | |
json: 202, | |
"top-domain": 258 | |
} ], | |
258: [ function(t, e, n) { | |
function i(t) { | |
for (var e = n.cookie, i = n.levels(t), o = 0; o < i.length; ++o) { | |
var r = "__tld__", a = i[o], s = { | |
domain: "." + a | |
}; | |
e(r, 1, s); | |
if (e(r)) { | |
e(r, null, s); | |
return a; | |
} | |
} | |
return ""; | |
} | |
var o = t("url").parse, r = t("cookie"); | |
n = e.exports = i; | |
n.cookie = r; | |
i.levels = function(t) { | |
var e = o(t).hostname, n = e.split("."), i = n[n.length - 1], r = []; | |
if (4 == n.length && parseInt(i, 10) == i) return r; | |
if (1 >= n.length) return r; | |
for (var a = n.length - 2; a >= 0; --a) r.push(n.slice(a).join(".")); | |
return r; | |
}; | |
}, { | |
url: 163, | |
cookie: 259 | |
} ], | |
259: [ function(t, e) { | |
function n(t, e, n) { | |
n = n || {}; | |
var i = a(t) + "=" + a(e); | |
null == e && (n.maxage = -1); | |
n.maxage && (n.expires = new Date(+new Date() + n.maxage)); | |
n.path && (i += "; path=" + n.path); | |
n.domain && (i += "; domain=" + n.domain); | |
n.expires && (i += "; expires=" + n.expires.toUTCString()); | |
n.secure && (i += "; secure"); | |
document.cookie = i; | |
} | |
function i() { | |
var t; | |
try { | |
t = document.cookie; | |
} catch (e) { | |
"undefined" != typeof console && "function" == typeof console.error && console.error(e.stack || e); | |
return {}; | |
} | |
return r(t); | |
} | |
function o(t) { | |
return i()[t]; | |
} | |
function r(t) { | |
var e, n = {}, i = t.split(/ *; */); | |
if ("" == i[0]) return n; | |
for (var o = 0; o < i.length; ++o) { | |
e = i[o].split("="); | |
n[s(e[0])] = s(e[1]); | |
} | |
return n; | |
} | |
function a(t) { | |
try { | |
return encodeURIComponent(t); | |
} catch (e) { | |
c("error `encode(%o)` - %o", t, e); | |
} | |
} | |
function s(t) { | |
try { | |
return decodeURIComponent(t); | |
} catch (e) { | |
c("error `decode(%o)` - %o", t, e); | |
} | |
} | |
var c = t("debug")("cookie"); | |
e.exports = function(t, e, r) { | |
switch (arguments.length) { | |
case 3: | |
case 2: | |
return n(t, e, r); | |
case 1: | |
return o(t); | |
default: | |
return i(); | |
} | |
}; | |
}, { | |
debug: 219 | |
} ], | |
248: [ function(t, e) { | |
function n(t) { | |
this.defaults = n.defaults; | |
this.debug = r; | |
i.call(this, t); | |
} | |
var i = t("./entity"), o = t("bind"), r = t("debug")("analytics:group"), a = t("inherit"); | |
n.defaults = { | |
persist: !0, | |
cookie: { | |
key: "ajs_group_id" | |
}, | |
localStorage: { | |
key: "ajs_group_properties" | |
} | |
}; | |
a(n, i); | |
e.exports = o.all(new n()); | |
e.exports.Group = n; | |
}, { | |
"./entity": 260, | |
bind: 246, | |
debug: 219, | |
inherit: 261 | |
} ], | |
260: [ function(t, e) { | |
function n(t) { | |
this.options(t); | |
this.initialize(); | |
} | |
var i = t("clone"), o = t("./cookie"), r = t("debug")("analytics:entity"), a = t("defaults"), s = t("extend"), c = t("./memory"), p = t("./store"), u = t("isodate-traverse"); | |
e.exports = n; | |
n.prototype.initialize = function() { | |
o.set("ajs:cookies", !0); | |
if (o.get("ajs:cookies")) { | |
o.remove("ajs:cookies"); | |
this._storage = o; | |
} else if (p.enabled) this._storage = p; else { | |
r("warning using memory store both cookies and localStorage are disabled"); | |
this._storage = c; | |
} | |
}; | |
n.prototype.storage = function() { | |
return this._storage; | |
}; | |
n.prototype.options = function(t) { | |
if (0 === arguments.length) return this._options; | |
this._options = a(t || {}, this.defaults || {}); | |
return void 0; | |
}; | |
n.prototype.id = function(t) { | |
switch (arguments.length) { | |
case 0: | |
return this._getId(); | |
case 1: | |
return this._setId(t); | |
} | |
}; | |
n.prototype._getId = function() { | |
var t = this._options.persist ? this.storage().get(this._options.cookie.key) : this._id; | |
return void 0 === t ? null : t; | |
}; | |
n.prototype._setId = function(t) { | |
this._options.persist ? this.storage().set(this._options.cookie.key, t) : this._id = t; | |
}; | |
n.prototype.properties = n.prototype.traits = function(t) { | |
switch (arguments.length) { | |
case 0: | |
return this._getTraits(); | |
case 1: | |
return this._setTraits(t); | |
} | |
}; | |
n.prototype._getTraits = function() { | |
var t = this._options.persist ? p.get(this._options.localStorage.key) : this._traits; | |
return t ? u(i(t)) : {}; | |
}; | |
n.prototype._setTraits = function(t) { | |
t = t || {}; | |
this._options.persist ? p.set(this._options.localStorage.key, t) : this._traits = t; | |
}; | |
n.prototype.identify = function(t, e) { | |
e = e || {}; | |
var n = this.id(); | |
(null === n || n === t) && (e = s(this.traits(), e)); | |
t && this.id(t); | |
this.debug("identify %o, %o", t, e); | |
this.traits(e); | |
this.save(); | |
}; | |
n.prototype.save = function() { | |
if (!this._options.persist) return !1; | |
o.set(this._options.cookie.key, this.id()); | |
p.set(this._options.localStorage.key, this.traits()); | |
return !0; | |
}; | |
n.prototype.logout = function() { | |
this.id(null); | |
this.traits({}); | |
o.remove(this._options.cookie.key); | |
p.remove(this._options.localStorage.key); | |
}; | |
n.prototype.reset = function() { | |
this.logout(); | |
this.options({}); | |
}; | |
n.prototype.load = function() { | |
this.id(o.get(this._options.cookie.key)); | |
this.traits(p.get(this._options.localStorage.key)); | |
}; | |
}, { | |
clone: 130, | |
"./cookie": 247, | |
debug: 219, | |
defaults: 132, | |
extend: 190, | |
"./memory": 250, | |
"./store": 256, | |
"isodate-traverse": 175 | |
} ], | |
250: [ function(t, e) { | |
function n() { | |
this.store = {}; | |
} | |
var i = t("bind"), o = t("clone"), r = Object.prototype.hasOwnProperty; | |
e.exports = i.all(new n()); | |
n.prototype.set = function(t, e) { | |
this.store[t] = o(e); | |
return !0; | |
}; | |
n.prototype.get = function(t) { | |
return r.call(this.store, t) ? o(this.store[t]) : void 0; | |
}; | |
n.prototype.remove = function(t) { | |
delete this.store[t]; | |
return !0; | |
}; | |
}, { | |
bind: 246, | |
clone: 130 | |
} ], | |
256: [ function(t, e) { | |
function n(t) { | |
this.options(t); | |
} | |
var i = t("bind"), o = t("defaults"), r = t("store.js"); | |
n.prototype.options = function(t) { | |
if (0 === arguments.length) return this._options; | |
t = t || {}; | |
o(t, { | |
enabled: !0 | |
}); | |
this.enabled = t.enabled && r.enabled; | |
this._options = t; | |
}; | |
n.prototype.set = function(t, e) { | |
return this.enabled ? r.set(t, e) : !1; | |
}; | |
n.prototype.get = function(t) { | |
return this.enabled ? r.get(t) : null; | |
}; | |
n.prototype.remove = function(t) { | |
return this.enabled ? r.remove(t) : !1; | |
}; | |
e.exports = i.all(new n()); | |
e.exports.Store = n; | |
}, { | |
bind: 246, | |
defaults: 132, | |
"store.js": 262 | |
} ], | |
262: [ function(t, e) { | |
function n() { | |
try { | |
return u in c && c[u]; | |
} catch (t) { | |
return !1; | |
} | |
} | |
function i(t) { | |
return function() { | |
var e = Array.prototype.slice.call(arguments, 0); | |
e.unshift(r); | |
d.appendChild(r); | |
r.addBehavior("#default#userData"); | |
r.load(u); | |
var n = t.apply(s, e); | |
d.removeChild(r); | |
return n; | |
}; | |
} | |
function o(t) { | |
return t.replace(y, "___"); | |
} | |
var r, a = t("json"), s = {}, c = window, p = c.document, u = "localStorage", l = "__storejs__"; | |
s.disabled = !1; | |
s.set = function() {}; | |
s.get = function() {}; | |
s.remove = function() {}; | |
s.clear = function() {}; | |
s.transact = function(t, e, n) { | |
var i = s.get(t); | |
if (null == n) { | |
n = e; | |
e = null; | |
} | |
"undefined" == typeof i && (i = e || {}); | |
n(i); | |
s.set(t, i); | |
}; | |
s.getAll = function() {}; | |
s.serialize = function(t) { | |
return a.stringify(t); | |
}; | |
s.deserialize = function(t) { | |
if ("string" != typeof t) return void 0; | |
try { | |
return a.parse(t); | |
} catch (e) { | |
return t || void 0; | |
} | |
}; | |
if (n()) { | |
r = c[u]; | |
s.set = function(t, e) { | |
if (void 0 === e) return s.remove(t); | |
r.setItem(t, s.serialize(e)); | |
return e; | |
}; | |
s.get = function(t) { | |
return s.deserialize(r.getItem(t)); | |
}; | |
s.remove = function(t) { | |
r.removeItem(t); | |
}; | |
s.clear = function() { | |
r.clear(); | |
}; | |
s.getAll = function() { | |
for (var t = {}, e = 0; e < r.length; ++e) { | |
var n = r.key(e); | |
t[n] = s.get(n); | |
} | |
return t; | |
}; | |
} else if (p.documentElement.addBehavior) { | |
var d, f; | |
try { | |
f = new ActiveXObject("htmlfile"); | |
f.open(); | |
f.write('<script>document.w=window</script><iframe src="/favicon.ico"></iframe>'); | |
f.close(); | |
d = f.w.frames[0].document; | |
r = d.createElement("div"); | |
} catch (g) { | |
r = p.createElement("div"); | |
d = p.body; | |
} | |
var y = new RegExp("[!\"#$%&'()*+,/\\\\:;<=>?@[\\]^`{|}~]", "g"); | |
s.set = i(function(t, e, n) { | |
e = o(e); | |
if (void 0 === n) return s.remove(e); | |
t.setAttribute(e, s.serialize(n)); | |
t.save(u); | |
return n; | |
}); | |
s.get = i(function(t, e) { | |
e = o(e); | |
return s.deserialize(t.getAttribute(e)); | |
}); | |
s.remove = i(function(t, e) { | |
e = o(e); | |
t.removeAttribute(e); | |
t.save(u); | |
}); | |
s.clear = i(function(t) { | |
var e = t.XMLDocument.documentElement.attributes; | |
t.load(u); | |
for (var n, i = 0; n = e[i]; i++) t.removeAttribute(n.name); | |
t.save(u); | |
}); | |
s.getAll = i(function(t) { | |
for (var e, n = t.XMLDocument.documentElement.attributes, i = {}, r = 0; e = n[r]; ++r) { | |
var a = o(e.name); | |
i[e.name] = s.deserialize(t.getAttribute(a)); | |
} | |
return i; | |
}); | |
} | |
try { | |
s.set(l, l); | |
s.get(l) != l && (s.disabled = !0); | |
s.remove(l); | |
} catch (g) { | |
s.disabled = !0; | |
} | |
s.enabled = !s.disabled; | |
e.exports = s; | |
}, { | |
json: 202 | |
} ], | |
261: [ function(t, e) { | |
e.exports = function(t, e) { | |
var n = function() {}; | |
n.prototype = e.prototype; | |
t.prototype = new n(); | |
t.prototype.constructor = t; | |
}; | |
}, {} ], | |
249: [ function(t, e) { | |
e.exports = function(t) { | |
if (t.metaKey || t.altKey || t.ctrlKey || t.shiftKey) return !0; | |
var e = t.which, n = t.button; | |
return e || void 0 === n ? 2 === e ? !0 : !1 : 1 & !n && 2 & !n && 4 & n; | |
}; | |
}, {} ], | |
251: [ function(t, e) { | |
function n(t, e) { | |
function n(t) { | |
return !(!a(t, e) && "all" !== t.toLowerCase() && !a(t.toLowerCase(), l)); | |
} | |
var l = c(e, function(t) { | |
return t.toLowerCase(); | |
}), d = t.options || {}, f = d.integrations || {}, g = d.providers || {}, y = d.context || {}, h = {}; | |
i("<-", t); | |
r(d, function(t, e) { | |
if (n(t)) { | |
p.call(f, t) || (f[t] = e); | |
delete d[t]; | |
} | |
}); | |
delete d.providers; | |
r(g, function(t, e) { | |
n(t) && (s.object(f[t]) || p.call(f, t) && "boolean" == typeof g[t] || (f[t] = e)); | |
}); | |
r(d, function(t) { | |
a(t, u) ? h[t] = d[t] : y[t] = d[t]; | |
}); | |
delete t.options; | |
h.integrations = f; | |
h.context = y; | |
h = o(h, t); | |
i("->", h); | |
return h; | |
} | |
var i = t("debug")("analytics.js:normalize"), o = t("defaults"), r = t("each"), a = t("includes"), s = t("is"), c = t("component/map"), p = Object.prototype.hasOwnProperty; | |
e.exports = n; | |
var u = [ "integrations", "anonymousId", "timestamp", "context" ]; | |
}, { | |
debug: 219, | |
defaults: 132, | |
each: 120, | |
includes: 159, | |
is: 164, | |
"component/map": 231 | |
} ], | |
252: [ function(t, e, n) { | |
n.bind = function(t, e, n, i) { | |
t.addEventListener ? t.addEventListener(e, n, i || !1) : t.attachEvent("on" + e, n); | |
return n; | |
}; | |
n.unbind = function(t, e, n, i) { | |
t.removeEventListener ? t.removeEventListener(e, n, i || !1) : t.detachEvent("on" + e, n); | |
return n; | |
}; | |
}, {} ], | |
253: [ function(t, e) { | |
function n() { | |
return { | |
path: i(), | |
referrer: document.referrer, | |
search: location.search, | |
title: document.title, | |
url: o(location.search) | |
}; | |
} | |
function i() { | |
var t = r(); | |
if (!t) return window.location.pathname; | |
var e = s.parse(t); | |
return e.pathname; | |
} | |
function o(t) { | |
var e = r(); | |
if (e) return a("?", e) ? e : e + t; | |
var n = window.location.href, i = n.indexOf("#"); | |
return -1 === i ? n : n.slice(0, i); | |
} | |
var r = t("canonical"), a = t("includes"), s = t("url"); | |
e.exports = n; | |
}, { | |
canonical: 263, | |
includes: 159, | |
url: 237 | |
} ], | |
263: [ function(t, e) { | |
e.exports = function() { | |
for (var t, e = document.getElementsByTagName("link"), n = 0; t = e[n]; n++) if ("canonical" == t.getAttribute("rel")) return t.getAttribute("href"); | |
}; | |
}, {} ], | |
254: [ function(t, e) { | |
"use strict"; | |
var n = Object.prototype.toString, i = function(t) { | |
return null != t; | |
}, o = function(t) { | |
return "[object Array]" === n.call(t); | |
}, r = function(t) { | |
return "string" == typeof t || "[object String]" === n.call(t); | |
}, a = function(t) { | |
return null != t && "object" == typeof t; | |
}, s = function(t, e) { | |
if (!i(e) || !a(e)) return {}; | |
r(t) && (t = [ t ]); | |
o(t) || (t = []); | |
for (var n = {}, s = 0; s < t.length; s += 1) r(t[s]) && t[s] in e && (n[t[s]] = e[t[s]]); | |
return n; | |
}; | |
e.exports = s; | |
}, {} ], | |
255: [ function(t, e) { | |
e.exports = function(t) { | |
t = t || window.event; | |
return t.preventDefault ? t.preventDefault() : t.returnValue = !1; | |
}; | |
}, {} ], | |
257: [ function(t, e) { | |
function n(t) { | |
this.defaults = n.defaults; | |
this.debug = a; | |
i.call(this, t); | |
} | |
var i = t("./entity"), o = t("bind"), r = t("./cookie"), a = t("debug")("analytics:user"), s = t("inherit"), c = t("cookie"), p = t("uuid"); | |
n.defaults = { | |
persist: !0, | |
cookie: { | |
key: "ajs_user_id", | |
oldKey: "ajs_user" | |
}, | |
localStorage: { | |
key: "ajs_user_traits" | |
} | |
}; | |
s(n, i); | |
n.prototype.id = function(t) { | |
var e = this._getId(), n = i.prototype.id.apply(this, arguments); | |
if (null == e) return n; | |
e != t && t && this.anonymousId(null); | |
return n; | |
}; | |
n.prototype.anonymousId = function(t) { | |
var e = this.storage(); | |
if (arguments.length) { | |
e.set("ajs_anonymous_id", t); | |
return this; | |
} | |
t = e.get("ajs_anonymous_id"); | |
if (t) return t; | |
t = c("_sio"); | |
if (t) { | |
t = t.split("----")[0]; | |
e.set("ajs_anonymous_id", t); | |
e.remove("_sio"); | |
return t; | |
} | |
t = p(); | |
e.set("ajs_anonymous_id", t); | |
return e.get("ajs_anonymous_id"); | |
}; | |
n.prototype.logout = function() { | |
i.prototype.logout.call(this); | |
this.anonymousId(null); | |
}; | |
n.prototype.load = function() { | |
this._loadOldCookie() || i.prototype.load.call(this); | |
}; | |
n.prototype._loadOldCookie = function() { | |
var t = r.get(this._options.cookie.oldKey); | |
if (!t) return !1; | |
this.id(t.id); | |
this.traits(t.traits); | |
r.remove(this._options.cookie.oldKey); | |
return !0; | |
}; | |
e.exports = o.all(new n()); | |
e.exports.User = n; | |
}, { | |
"./entity": 260, | |
bind: 246, | |
"./cookie": 247, | |
debug: 219, | |
inherit: 261, | |
cookie: 212, | |
uuid: 217 | |
} ], | |
245: [ function(t, e) { | |
e.exports = { | |
name: "analytics-core", | |
version: "2.10.0", | |
main: "analytics.js", | |
dependencies: {}, | |
devDependencies: {} | |
}; | |
}, {} ] | |
}, {}, { | |
1: "" | |
}); | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment