forked from segmentio/analytics.js
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathanalytics.min.js
2 lines (2 loc) · 45.4 KB
/
analytics.min.js
1
2
(function(){function require(a,b,c){var d=require.resolve(a);if(null==d){c=c||a,b=b||"root";var e=new Error('Failed to require "'+c+'" from "'+b+'"');throw e.path=c,e.parent=b,e.require=!0,e}var f=require.modules[d];return f.exports||(f.exports={},f.client=f.component=!0,f.call(this,f.exports,require.relative(d),f)),f.exports}var has=Object.prototype.hasOwnProperty;require.modules={},require.aliases={},require.resolve=function(a){a.charAt(0)==="/"&&(a=a.slice(1));var b=a+"/index.js",c=[a,a+".js",a+".json",a+"/index.js",a+"/index.json"];for(var d=0;d<c.length;d++){var a=c[d];if(has.call(require.modules,a))return a}if(has.call(require.aliases,b))return require.aliases[b]},require.normalize=function(a,b){var c=[];if("."!=b.charAt(0))return b;a=a.split("/"),b=b.split("/");for(var d=0;d<b.length;++d)".."==b[d]?a.pop():"."!=b[d]&&""!=b[d]&&c.push(b[d]);return a.concat(c).join("/")},require.register=function(a,b){require.modules[a]=b},require.alias=function(a,b){if(!has.call(require.modules,a))throw new Error('Failed to alias "'+a+'", it does not exist');require.aliases[b]=a},require.relative=function(a){function c(a,b){var c=a.length;while(c--)if(a[c]===b)return c;return-1}function d(b){var c=d.resolve(b);return require(c,a,b)}var b=require.normalize(a,"..");return d.resolve=function(d){var e=d.charAt(0);if("/"==e)return d.slice(1);if("."==e)return require.normalize(b,d);var f=a.split("/"),g=c(f,"deps")+1;return g||(g=0),d=f.slice(0,g+1).join("/")+"/deps/"+d,d},d.exists=function(a){return has.call(require.modules,d.resolve(a))},d},require.register("component-clone/index.js",function(a,b,c){function f(a){switch(d(a)){case"object":var b={};for(var c in a)a.hasOwnProperty(c)&&(b[c]=f(a[c]));return b;case"array":var b=new Array(a.length);for(var e=0,g=a.length;e<g;e++)b[e]=f(a[e]);return b;case"regexp":var h="";return h+=a.multiline?"m":"",h+=a.global?"g":"",h+=a.ignoreCase?"i":"",new RegExp(a.source,h);case"date":return new Date(a.getTime());default:return a}}var d;try{d=b("type")}catch(e){d=b("type-component")}c.exports=f}),require.register("component-cookie/index.js",function(a,b,c){function f(a,b,c){c=c||{};var e=d(a)+"="+d(b);null==b&&(c.maxage=-1),c.maxage&&(c.expires=new Date(+(new Date)+c.maxage)),c.path&&(e+="; path="+c.path),c.domain&&(e+="; domain="+c.domain),c.expires&&(e+="; expires="+c.expires.toUTCString()),c.secure&&(e+="; secure"),document.cookie=e}function g(){return i(document.cookie)}function h(a){return g()[a]}function i(a){var b={},c=a.split(/ *; */),d;if(""==c[0])return b;for(var f=0;f<c.length;++f)d=c[f].split("="),b[e(d[0])]=e(d[1]);return b}var d=encodeURIComponent,e=decodeURIComponent;c.exports=function(a,b,c){switch(arguments.length){case 3:case 2:return f(a,b,c);case 1:return h(a);default:return g()}}}),require.register("component-each/index.js",function(a,b,c){function f(a,b){for(var c=0;c<a.length;++c)b(a.charAt(c),c)}function g(a,b){for(var c in a)e.call(a,c)&&b(c,a[c])}function h(a,b){for(var c=0;c<a.length;++c)b(a[c],c)}var d=b("type"),e=Object.prototype.hasOwnProperty;c.exports=function(a,b){switch(d(a)){case"array":return h(a,b);case"object":if("number"==typeof a.length)return h(a,b);return g(a,b);case"string":return f(a,b)}}}),require.register("component-event/index.js",function(a,b,c){a.bind=function(a,b,c,d){return a.addEventListener?a.addEventListener(b,c,d||!1):a.attachEvent("on"+b,c),c},a.unbind=function(a,b,c,d){return a.removeEventListener?a.removeEventListener(b,c,d||!1):a.detachEvent("on"+b,c),c}}),require.register("component-json/index.js",function(a,b,c){c.exports="undefined"==typeof JSON?b("json-fallback"):JSON}),require.register("component-json-fallback/index.js",function(exports,require,module){var JSON={};(function(){function f(a){return a<10?"0"+a:a}function quote(a){return escapable.lastIndex=0,escapable.test(a)?'"'+a.replace(escapable,function(a){var b=meta[a];return typeof b=="string"?b:"\\u"+("0000"+a.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+a+'"'}function str(a,b){var c,d,e,f,g=gap,h,i=b[a];i&&typeof i=="object"&&typeof i.toJSON=="function"&&(i=i.toJSON(a)),typeof rep=="function"&&(i=rep.call(b,a,i));switch(typeof i){case"string":return quote(i);case"number":return isFinite(i)?String(i):"null";case"boolean":case"null":return String(i);case"object":if(!i)return"null";gap+=indent,h=[];if(Object.prototype.toString.apply(i)==="[object Array]"){f=i.length;for(c=0;c<f;c+=1)h[c]=str(c,i)||"null";return e=h.length===0?"[]":gap?"[\n"+gap+h.join(",\n"+gap)+"\n"+g+"]":"["+h.join(",")+"]",gap=g,e}if(rep&&typeof rep=="object"){f=rep.length;for(c=0;c<f;c+=1)typeof rep[c]=="string"&&(d=rep[c],e=str(d,i),e&&h.push(quote(d)+(gap?": ":":")+e))}else for(d in i)Object.prototype.hasOwnProperty.call(i,d)&&(e=str(d,i),e&&h.push(quote(d)+(gap?": ":":")+e));return e=h.length===0?"{}":gap?"{\n"+gap+h.join(",\n"+gap)+"\n"+g+"}":"{"+h.join(",")+"}",gap=g,e}}"use strict",typeof Date.prototype.toJSON!="function"&&(Date.prototype.toJSON=function(a){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(a){return this.valueOf()});var cx=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,escapable=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,gap,indent,meta={"\b":"\\b"," ":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},rep;typeof JSON.stringify!="function"&&(JSON.stringify=function(a,b,c){var d;gap="",indent="";if(typeof c=="number")for(d=0;d<c;d+=1)indent+=" ";else typeof c=="string"&&(indent=c);rep=b;if(!b||typeof b=="function"||typeof b=="object"&&typeof b.length=="number")return str("",{"":a});throw new Error("JSON.stringify")}),typeof JSON.parse!="function"&&(JSON.parse=function(text,reviver){function walk(a,b){var c,d,e=a[b];if(e&&typeof e=="object")for(c in e)Object.prototype.hasOwnProperty.call(e,c)&&(d=walk(e,c),d!==undefined?e[c]=d:delete e[c]);return reviver.call(a,b,e)}var j;text=String(text),cx.lastIndex=0,cx.test(text)&&(text=text.replace(cx,function(a){return"\\u"+("0000"+a.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,"")))return j=eval("("+text+")"),typeof reviver=="function"?walk({"":j},""):j;throw new SyntaxError("JSON.parse")})})(),module.exports=JSON}),require.register("component-object/index.js",function(a,b,c){var d=Object.prototype.hasOwnProperty;a.keys=Object.keys||function(a){var b=[];for(var c in a)d.call(a,c)&&b.push(c);return b},a.values=function(a){var b=[];for(var c in a)d.call(a,c)&&b.push(a[c]);return b},a.merge=function(a,b){for(var c in b)d.call(b,c)&&(a[c]=b[c]);return a},a.length=function(b){return a.keys(b).length},a.isEmpty=function(b){return 0==a.length(b)}}),require.register("component-trim/index.js",function(a,b,c){function d(a){return a.replace(/^\s*|\s*$/g,"")}a=c.exports=d,a.left=function(a){return a.replace(/^\s*/,"")},a.right=function(a){return a.replace(/\s*$/,"")}}),require.register("component-querystring/index.js",function(a,b,c){var d=b("trim");a.parse=function(a){if("string"!=typeof a)return{};a=d(a);if(""==a)return{};var b={},c=a.split("&");for(var e=0;e<c.length;e++){var f=c[e].split("=");b[f[0]]=null==f[1]?"":decodeURIComponent(f[1])}return b},a.stringify=function(a){if(!a)return"";var b=[];for(var c in a)b.push(encodeURIComponent(c)+"="+encodeURIComponent(a[c]));return b.join("&")}}),require.register("component-type/index.js",function(a,b,c){var d=Object.prototype.toString;c.exports=function(a){switch(d.call(a)){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 a===null?"null":a===undefined?"undefined":a&&a.nodeType===1?"element":a===Object(a)?"object":typeof a}}),require.register("component-url/index.js",function(a,b,c){a.parse=function(a){var b=document.createElement("a");return b.href=a,{href:b.href,host:b.host||location.host,port:b.port||location.port,hash:b.hash,hostname:b.hostname||location.hostname,pathname:b.pathname.charAt(0)!="/"?"/"+b.pathname:b.pathname,protocol:!b.protocol||":"==b.protocol?location.protocol:b.protocol,search:b.search,query:b.search.slice(1)}},a.isAbsolute=function(a){return 0==a.indexOf("//")||!!~a.indexOf("://")},a.isRelative=function(b){return!a.isAbsolute(b)},a.isCrossDomain=function(b){return b=a.parse(b),b.hostname!==location.hostname||b.port!==location.port||b.protocol!==location.protocol}}),require.register("segmentio-after/index.js",function(a,b,c){c.exports=function(b,c){return b<=0?c():function(){if(--b<1)return c.apply(this,arguments)}}}),require.register("segmentio-alias/index.js",function(a,b,c){c.exports=function(b,c){for(var d in c){var e=c[d];b[d]!==undefined&&(b[e]=b[d],delete b[d])}}}),require.register("segmentio-canonical/index.js",function(a,b,c){c.exports=function(){var b=document.getElementsByTagName("link");for(var c=0,d;d=b[c];c++)if("canonical"==d.getAttribute("rel"))return d.getAttribute("href")}}),require.register("segmentio-extend/index.js",function(a,b,c){c.exports=function(b){var c=Array.prototype.slice.call(arguments,1);for(var d=0,e;e=c[d];d++){if(!e)continue;for(var f in e)b[f]=e[f]}return b}}),require.register("segmentio-is-email/index.js",function(a,b,c){c.exports=function(b){return/.+\@.+\..+/.test(b)}}),require.register("segmentio-is-meta/index.js",function(a,b,c){c.exports=function(b){if(b.metaKey||b.altKey||b.ctrlKey||b.shiftKey)return!0;var c=b.which,d=b.button;return!c&&d!==undefined?!d&1&&!d&2&&d&4:c===2?!0:!1}}),require.register("segmentio-load-date/index.js",function(a,b,c){var d=new Date,e=window.performance;e&&e.timing&&e.timing.responseEnd&&(d=new Date(e.timing.responseEnd)),c.exports=d}),require.register("segmentio-load-script/index.js",function(a,b,c){var d=b("type");c.exports=function(b,c){if(!b)throw new Error("Cant load nothing...");d(b)==="string"&&(b={src:b});var e=document.location.protocol==="https:";b.src&&b.src.indexOf("//")===0&&(b.src=e?"https:"+b.src:"http:"+b.src),e&&b.https?b.src=b.https:!e&&b.http&&(b.src=b.http);var f=document.createElement("script");f.type="text/javascript",f.async=!0,f.src=b.src;var g=document.getElementsByTagName("script")[0];return g.parentNode.insertBefore(f,g),c&&d(c)==="function"&&(f.addEventListener?f.addEventListener("load",c,!1):f.attachEvent&&f.attachEvent("onreadystatechange",function(){/complete|loaded/.test(f.readyState)&&c()})),f}}),require.register("segmentio-new-date/index.js",function(a,b,c){var d=b("type");c.exports=function(b){return"number"===d(b)&&b<315576e5&&(b*=1e3),new Date(b)}}),require.register("segmentio-on-body/index.js",function(a,b,c){function h(a){a(document.body)}var d=b("each"),e=!1,f=[];c.exports=function(b){e?h(b):f.push(b)};var g=setInterval(function(){if(!document.body)return;e=!0,d(f,h),clearInterval(g)},5)}),require.register("yields-prevent/index.js",function(a,b,c){c.exports=function(a){return a=a||window.event,a.preventDefault?a.preventDefault():a.returnValue=!1}}),require.register("analytics/src/index.js",function(a,b,c){var d=b("./analytics"),e=b("./providers");c.exports=new d(e)}),require.register("analytics/src/analytics.js",function(a,b,c){function t(a){var b=this;this.VERSION="0.9.10",g(a,function(a){b.addProvider(a)});var c=window.onload;window.onload=function(){b.loaded=!0,"function"===p(c)&&c()}}var d=b("after"),e=b("event").bind,f=b("clone"),g=b("each"),h=b("extend"),i=b("is-meta"),j=b("new-date"),k=b("object").length,l=b("prevent"),m=b("./provider"),n=b("./providers"),o=b("querystring"),p=b("type"),q=b("url"),r=b("./user"),s=b("./utils");c.exports=t,h(t.prototype,{loaded:!1,initialized:!1,readied:!1,callbacks:[],timeout:300,user:r,Provider:m,_providers:{},providers:[],addProvider:function(a){this._providers[a.prototype.name]=a},initialize:function(a,b){var c=this;this.providers=[],this.initialized=!1,this.readied=!1,r.options(b),r.load();var e=d(k(a),function(){c.readied=!0;var a;while(a=c.callbacks.shift())a()});g(a,function(a,b){var d=c._providers[a];if(!d)throw new Error('Couldnt find a provider named "'+a+'"');c.providers.push(new d(b,e))});var f=q.parse(window.location.href).query,h=o.parse(f);h.ajs_uid&&this.identify(h.ajs_uid),h.ajs_event&&this.track(h.ajs_event),this.initialized=!0},ready:function(a){if(p(a)!=="function")return;if(this.readied)return a();this.callbacks.push(a)},identify:function(a,b,c,d){if(!this.initialized)return;p(c)==="function"&&(d=c,c=undefined),p(b)==="function"&&(d=b,b=undefined),p(a)==="object"&&(b&&p(b)==="function"&&(d=b),b=a,a=undefined);if(a===undefined||r===null)a=r.id();var e=r.update(a,b);b=f(r.traits()),b&&b.created&&(b.created=j(b.created)),b&&b.company&&b.company.created&&(b.company.created=j(b.company.created)),g(this.providers,function(d){if(d.identify&&u(d,c)){var e=[a,f(b),f(c)];d.ready?d.identify.apply(d,e):d.enqueue("identify",e)}}),d&&p(d)==="function"&&setTimeout(d,this.timeout)},track:function(a,b,c,d){if(!this.initialized)return;p(c)==="function"&&(d=c,c=undefined),p(b)==="function"&&(d=b,b=undefined),g(this.providers,function(d){if(d.track&&u(d,c)){var e=[a,f(b),f(c)];d.ready?d.track.apply(d,e):d.enqueue("track",e)}}),d&&p(d)==="function"&&setTimeout(d,this.timeout)},trackLink:function(a,b,c){if(!a)return;"element"===p(a)&&(a=[a]);var d=this,f="function"===p(c);g(a,function(a){e(a,"click",function(e){var g=f?c(a):c;d.track(b,g),a.href&&a.target!=="_blank"&&!i(e)&&(l(e),setTimeout(function(){window.location.href=a.href},d.timeout))})})},trackForm:function(a,b,c){if(!a)return;"element"===p(a)&&(a=[a]);var d=this,f="function"===p(c);g(a,function(a){var g=function(e){var g=f?c(a):c;d.track(b,g),l(e),setTimeout(function(){a.submit()},d.timeout)},h=window.jQuery||window.Zepto;h?h(a).submit(g):e(a,"submit",g)})},pageview:function(a){if(!this.initialized)return;g(this.providers,function(b){if(b.pageview){var c=[a];b.ready?b.pageview.apply(b,c):b.enqueue("pageview",c)}})},alias:function(a,b,c){if(!this.initialized)return;p(b)==="object"&&(c=b,b=undefined),g(this.providers,function(d){if(d.alias&&u(d,c)){var e=[a,b];d.ready?d.alias.apply(d,e):d.enqueue("alias",e)}})},log:function(a,b,c){if(!this.initialized)return;g(this.providers,function(d){if(d.log&&u(d,c)){var e=[a,b,c];d.ready?d.log.apply(d,e):d.enqueue("log",e)}})}}),t.prototype.trackClick=t.prototype.trackLink,t.prototype.trackSubmit=t.prototype.trackForm;var u=function(a,b){var c=!0;if(!b||!b.providers)return c;var d=b.providers;d.all!==undefined&&(c=d.all),d.All!==undefined&&(c=d.All);var e=a.name;return d[e]!==undefined&&(c=d[e]),c}}),require.register("analytics/src/provider.js",function(a,b,c){function g(a,b){var c=this;this.queue=[],this.ready=!1;if(f(a)!=="object"){if(f(a)!=="string"||!this.key)throw new Error("Couldnt resolve options.");var g=a;a={},a[this.key]=g}this.options=e({},this.defaults,a);var h=function(){d(c.queue,function(a){var b=a.method,d=a.args;c[b].apply(c,d)}),c.ready=!0,c.queue=[],b()};this.initialize.call(this,this.options,h)}var d=b("each"),e=b("extend"),f=b("type");c.exports=g,g.extend=function(a){var b=this,c=function(){return b.apply(this,arguments)},d=function(){this.constructor=c};return d.prototype=b.prototype,c.prototype=new d,e(c.prototype,a),c},e(g.prototype,{options:{},key:undefined,initialize:function(a,b){b()},enqueue:function(a,b){this.queue.push({method:a,args:b})}})}),require.register("analytics/src/user.js",function(a,b,c){function l(){return{id:null,traits:{}}}var d=b("cookie"),e=b("clone"),f=b("extend"),g=b("json"),h=b("type"),i=l(),j=a.cookie={name:"ajs_user",maxage:31536e6,enabled:!0,path:"/"};a.options=function(a){a||(a={}),"boolean"===h(a.cookie)?j.enabled=a.cookie:"object"===h(a.cookie)&&(j.enabled=!0,a.cookie.name&&(j.name=a.cookie.name),a.cookie.maxage&&(j.maxage=a.cookie.maxage),a.cookie.domain&&(j.domain=a.cookie.domain),a.cookie.path&&(j.path=a.cookie.path),j.domain&&j.domain.charAt(0)!=="."&&(j.domain="."+j.domain))},a.id=function(){return i.id},a.traits=function(){return e(i.traits)},a.update=function(a,b){var c=!i.id&&a&&j.enabled;return b||(b={}),i.id&&a&&i.id!==a?i.traits=b:f(i.traits,b),a&&(i.id=a),j.enabled&&k(i),c},a.clear=function(){j.enabled&&d(j.name,null,e(j)),i=l()};var k=function(a){try{return d(j.name,g.stringify(a),e(j)),!0}catch(b){return!1}};a.load=function(){if(!j.enabled)return i;var a=d(j.name);if(a)try{i=g.parse(a)}catch(b){i=l()}return i}}),require.register("analytics/src/utils.js",function(a,b,c){a.getUrlParameter=function(a,b){var c=a.replace("?","").split("&");for(var d=0;d<c.length;d+=1){var e=c[d].split("=");if(e.length===2&&e[0]===b)return decodeURIComponent(e[1])}}}),require.register("analytics/src/providers/adroll.js",function(a,b,c){var d=b("../provider"),e=b("load-script");c.exports=d.extend({name:"AdRoll",defaults:{advId:null,pixId:null},initialize:function(a,b){window.adroll_adv_id=a.advId,window.adroll_pix_id=a.pixId,window.__adroll_loaded=!0,e({http:"http://a.adroll.com/j/roundtrip.js",https:"https://s.adroll.com/j/roundtrip.js"},b)}})}),require.register("analytics/src/providers/bitdeli.js",function(a,b,c){var d=b("../provider"),e=b("load-script");c.exports=d.extend({name:"Bitdeli",defaults:{inputId:null,authToken:null,initialPageview:!0},initialize:function(a,b){window._bdq=window._bdq||[],window._bdq.push(["setAccount",a.inputId,a.authToken]),a.initialPageview&&this.pageview(),e("//d2flrkr957qc5j.cloudfront.net/bitdeli.min.js"),b()},identify:function(a,b){a&&window._bdq.push(["identify",a]),b&&window._bdq.push(["set",b])},track:function(a,b){window._bdq.push(["track",a,b])},pageview:function(a){window._bdq.push(["trackPageview",a])}})}),require.register("analytics/src/providers/bugherd.js",function(a,b,c){var d=b("../provider"),e=b("load-script");c.exports=d.extend({name:"BugHerd",key:"apiKey",defaults:{apiKey:null,showFeedbackTab:!0},initialize:function(a,b){a.showFeedbackTab||(window.BugHerdConfig={feedback:{hide:!0}}),e("//www.bugherd.com/sidebarv2.js?apikey="+a.apiKey,b)}})}),require.register("analytics/src/providers/chartbeat.js",function(a,b,c){var d=b("../provider"),e=b("load-script");c.exports=d.extend({name:"Chartbeat",defaults:{domain:null,uid:null},initialize:function(a,b){window._sf_async_config=a;var c=function(){if(!document.body)return setTimeout(c,5);window._sf_endpt=(new Date).getTime(),e({https:"https://a248.e.akamai.net/chartbeat.download.akamai.com/102508/js/chartbeat.js",http:"http://static.chartbeat.com/js/chartbeat.js"},b)};c()},pageview:function(a){if(!window.pSUPERFLY)return;window.pSUPERFLY.virtualPage(a||window.location.pathname)}})}),require.register("analytics/src/providers/clicktale.js",function(a,b,c){var d=b("load-date"),e=b("../provider"),f=b("load-script");c.exports=e.extend({name:"ClickTale",key:"projectId",defaults:{httpCdnUrl:"http://s.clicktale.net/WRe0.js",httpsCdnUrl:null,projectId:null,recordingRatio:.01,partitionId:null},initialize:function(a,b){if(document.location.protocol==="https:"&&!a.httpsCdnUrl)return;window.WRInitTime=d.getTime();var c=function(){if(!document.body)return setTimeout(c,5);var a=document.createElement("div");a.setAttribute("id","ClickTaleDiv"),a.setAttribute("style","display: none;"),document.body.appendChild(a)};c();var e=function(){window.ClickTale(a.projectId,a.recordingRatio,a.partitionId),b()};f({http:a.httpCdnUrl,https:a.httpsCdnUrl},e)},identify:function(a,b){window.ClickTaleSetUID&&window.ClickTaleSetUID(a);if(window.ClickTaleField)for(var c in b)window.ClickTaleField(c,b[c])},track:function(a,b){window.ClickTaleEvent&&window.ClickTaleEvent(a)}})}),require.register("analytics/src/providers/clicky.js",function(a,b,c){var d=b("../provider"),e=b("../user"),f=b("extend"),g=b("load-script");c.exports=d.extend({name:"Clicky",key:"siteId",defaults:{siteId:null},initialize:function(a,b){window.clicky_site_ids=window.clicky_site_ids||[],window.clicky_site_ids.push(a.siteId);var c=e.id(),d=e.traits(),h={};c&&(h.id=c),f(h,d),window.clicky_custom={session:h},g("//static.getclicky.com/js",b)},track:function(a,b){window.clicky.log(window.location.href,a)}})}),require.register("analytics/src/providers/comscore.js",function(a,b,c){var d=b("../provider"),e=b("load-script");c.exports=d.extend({name:"comScore",key:"c2",defaults:{c1:"2",c2:null},initialize:function(a,b){window._comscore=window._comscore||[],window._comscore.push(a),e({http:"http://b.scorecardresearch.com/beacon.js",https:"https://sb.scorecardresearch.com/beacon.js"},b)}})}),require.register("analytics/src/providers/crazyegg.js",function(a,b,c){var d=b("../provider"),e=b("load-script");c.exports=d.extend({name:"CrazyEgg",key:"accountNumber",defaults:{accountNumber:null},initialize:function(a,b){var c=a.accountNumber.slice(0,4)+"/"+a.accountNumber.slice(4);e("//dnn506yrbagrg.cloudfront.net/pages/scripts/"+c+".js?"+Math.floor((new Date).getTime()/36e5),b)}})}),require.register("analytics/src/providers/customerio.js",function(a,b,c){var d=b("../provider"),e=b("is-email"),f=b("load-script");c.exports=d.extend({name:"Customer.io",key:"siteId",defaults:{siteId:null},initialize:function(a,b){var c=window._cio=window._cio||[];(function(){var a,b,d;a=function(a){return function(){c.push([a].concat(Array.prototype.slice.call(arguments,0)))}},b=["identify","track"];for(d=0;d<b.length;d++)c[b[d]]=a(b[d])})();var d=f("https://assets.customer.io/assets/track.js");d.id="cio-tracker",d.setAttribute("data-site-id",a.siteId),b()},identify:function(a,b){if(!a)return;b||(b={}),b.id=a,!b.email&&e(a)&&(b.email=a),b.created&&(b.created_at=Math.floor(b.created/1e3),delete b.created),window._cio.identify(b)},track:function(a,b){window._cio.track(a,b)}})}),require.register("analytics/src/providers/errorception.js",function(a,b,c){var d=b("../provider"),e=b("extend"),f=b("load-script"),g=b("type");c.exports=d.extend({name:"Errorception",key:"projectId",defaults:{projectId:null,meta:!0},initialize:function(a,b){window._errs=window._errs||[a.projectId],f("//d15qhc0lu1ghnk.cloudfront.net/beacon.js");var c=window.onerror;window.onerror=function(){window._errs.push(arguments),"function"===g(c)&&c.apply(this,arguments)},b()},identify:function(a,b){if(!this.options.meta)return;window._errs.meta||(window._errs.meta={}),b||(b={}),a&&(b.id=a),e(window._errs.meta,b)}})}),require.register("analytics/src/providers/foxmetrics.js",function(a,b,c){var d=b("../provider"),e=b("load-script");c.exports=d.extend({name:"FoxMetrics",key:"appId",defaults:{appId:null},initialize:function(a,b){var c=window._fxm||{};window._fxm=c.events||[],e("//d35tca7vmefkrc.cloudfront.net/scripts/"+a.appId+".js"),b()},identify:function(a,b){if(!a)return;var c=null,d=null,e=null;b&&b.name&&(c=b.name.split(" ")[0],d=b.name.split(" ")[1]),b&&b.email&&(e=b.email),window._fxm.push(["_fxm.visitor.profile",a,c,d,e,null,null,null,b||null])},track:function(a,b){window._fxm.push([a,null,b])},pageview:function(a){window._fxm.push(["_fxm.pages.view",null,null,null,a||null,null])}})}),require.register("analytics/src/providers/gauges.js",function(a,b,c){var d=b("../provider"),e=b("load-script");c.exports=d.extend({name:"Gauges",key:"siteId",defaults:{siteId:null},initialize:function(a,b){window._gauges=window._gauges||[];var c=e("//secure.gaug.es/track.js");c.id="gauges-tracker",c.setAttribute("data-site-id",a.siteId),b()},pageview:function(a){window._gauges.push(["track"])}})}),require.register("analytics/src/providers/google-analytics.js",function(a,b,c){var d=b("../provider"),e=b("load-script"),f=b("type"),g=b("url"),h=b("canonical");c.exports=d.extend({name:"Google Analytics",key:"trackingId",defaults:{universalClient:!1,trackingId:null,initialPageview:!0,domain:null,anonymizeIp:!1,enhancedLinkAttribution:!1,siteSpeedSampleRate:null,doubleClick:!1,ignoreReferrer:null},initialize:function(a,b){a.universalClient?this.initializeUniversal(a,b):this.initializeClassic(a,b)},initializeClassic:function(a,b){window._gaq=window._gaq||[],window._gaq.push(["_setAccount",a.trackingId]),a.domain&&window._gaq.push(["_setDomainName",a.domain]);if(a.enhancedLinkAttribution){var c="https:"===document.location.protocol?"https:":"http:",d=c+"//www.google-analytics.com/plugins/ga/inpage_linkid.js";window._gaq.push(["_require","inpage_linkid",d])}f(a.siteSpeedSampleRate)==="number"&&window._gaq.push(["_setSiteSpeedSampleRate",a.siteSpeedSampleRate]),a.anonymizeIp&&window._gaq.push(["_gat._anonymizeIp"]);if(a.initialPageview){var i,j=h();j&&(i=g.parse(j).pathname),this.pageview(i)}a.ignoreReferrer&&window._gaq.push(["_addIgnoredRef",a.ignoreReferrer]),a.doubleClick?e("//stats.g.doubleclick.net/dc.js"):e({http:"http://www.google-analytics.com/ga.js",https:"https://ssl.google-analytics.com/ga.js"}),b()},initializeUniversal:function(a,b){var c=this.global="ga";window.GoogleAnalyticsObject=c,window[c]=window[c]||function(){(window[c].q=window[c].q||[]).push(arguments)},window[c].l=1*new Date;var d={};a.domain&&(d.cookieDomain=a.domain||"none"),f(a.siteSpeedSampleRate)==="number"&&(d.siteSpeedSampleRate=a.siteSpeedSampleRate),a.anonymizeIp&&ga("set","anonymizeIp",!0),ga("create",a.trackingId,d);if(a.initialPageview){var i,j=h();j&&(i=g.parse(j).pathname),this.pageview(i)}e("//www.google-analytics.com/analytics.js"),b()},track:function(a,b){b||(b={});var c;f(b.value)==="number"&&(c=b.value);if(this.options.universalClient){var d={};b.noninteraction&&(d.nonInteraction=b.noninteraction),window[this.global]("send","event",b.category||"All",a,b.label,Math.round(b.revenue)||c,d)}else window._gaq.push(["_trackEvent",b.category||"All",a,b.label,Math.round(b.revenue)||c,b.noninteraction])},pageview:function(a){this.options.universalClient?window[this.global]("send","pageview",a):window._gaq.push(["_trackPageview",a])}})}),require.register("analytics/src/providers/gosquared.js",function(a,b,c){var d=b("../provider"),e=b("../user"),f=b("load-script"),g=b("on-body");c.exports=d.extend({name:"GoSquared",key:"siteToken",defaults:{siteToken:null},initialize:function(a,b){g(function(){var c=window.GoSquared={};c.acct=a.siteToken,c.q=[],window._gstc_lt=+(new Date),c.VisitorName=e.id(),c.Visitor=e.traits(),f("//d1l6p2sc9645hc.cloudfront.net/tracker.js"),b()})},identify:function(a,b){a&&(window.GoSquared.UserName=a),b&&(window.GoSquared.Visitor=b)},track:function(a,b){window.GoSquared.q.push(["TrackEvent",a,b||{}])},pageview:function(a){window.GoSquared.q.push(["TrackView",a])}})}),require.register("analytics/src/providers/heap.js",function(a,b,c){var d=b("../provider"),e=b("load-script");c.exports=d.extend({name:"Heap",key:"apiKey",defaults:{apiKey:null},initialize:function(a,b){window.heap=window.heap||[],window.heap.load=function(a){window._heapid=a;var b=document.createElement("script");b.type="text/javascript",b.async=!0,b.src=("https:"===document.location.protocol?"https:":"http:")+"//d36lvucg9kzous.cloudfront.net";var c=document.getElementsByTagName("script")[0];c.parentNode.insertBefore(b,c);var d=function(a){return function(){heap.push([a].concat(Array.prototype.slice.call(arguments,0)))}},e=["identify","track"];for(var f=0;f<e.length;f++)heap[e[f]]=d(e[f])},window.heap.load(a.apiKey),b()},identify:function(a,b){window.heap.identify(b)},track:function(a,b){window.heap.track(a,b)}})}),require.register("analytics/src/providers/hittail.js",function(a,b,c){var d=b("../provider"),e=b("load-script");c.exports=d.extend({name:"HitTail",key:"siteId",defaults:{siteId:null},initialize:function(a,b){e("//"+a.siteId+".hittail.com/mlt.js",b)}})}),require.register("analytics/src/providers/hubspot.js",function(a,b,c){var d=b("../provider"),e=b("is-email"),f=b("load-script");c.exports=d.extend({name:"HubSpot",key:"portalId",defaults:{portalId:null},initialize:function(a,b){if(!document.getElementById("hs-analytics")){window._hsq=window._hsq||[];var c=f("https://js.hubspot.com/analytics/"+Math.ceil(new Date/3e5)*3e5+"/"+a.portalId+".js");c.id="hs-analytics"}b()},identify:function(a,b){(!b||!b.email)&&e(a)&&(b||(b={}),b.email=a);if(!b)return;window._hsq.push(["identify",b])},track:function(a,b){window._hsq.push(["trackEvent",a,b])},pageview:function(a){window._hsq.push(["_trackPageview"])}})}),require.register("analytics/src/providers/index.js",function(a,b,c){c.exports=[b("./adroll"),b("./bitdeli"),b("./bugherd"),b("./chartbeat"),b("./clicktale"),b("./clicky"),b("./comscore"),b("./crazyegg"),b("./customerio"),b("./errorception"),b("./foxmetrics"),b("./gauges"),b("./google-analytics"),b("./gosquared"),b("./heap"),b("./hittail"),b("./hubspot"),b("./intercom"),b("./keen-io"),b("./kissmetrics"),b("./klaviyo"),b("./livechat"),b("./lytics"),b("./mixpanel"),b("./olark"),b("./perfect-audience"),b("./pingdom"),b("./qualaroo"),b("./quantcast"),b("./sentry"),b("./snapengage"),b("./usercycle"),b("./userfox"),b("./uservoice"),b("./vero"),b("./woopra")]}),require.register("analytics/src/providers/intercom.js",function(a,b,c){var d=b("../provider"),e=b("extend"),f=b("load-script"),g=b("is-email");c.exports=d.extend({name:"Intercom",booted:!1,key:"appId",defaults:{appId:null,activator:null,counter:!0},initialize:function(a,b){f("https://api.intercom.io/api/js/library.js",b)},identify:function(a,b,c){if(!a)return;if(!this.booted&&!a)return;var d=e({custom_data:b||{}},c&&c.intercom?c.intercom:{});b&&b.created&&(d.created_at=Math.floor(b.created/1e3),delete b.created),b&&b.email?(d.email=b.email,delete b.email):g(a)&&(d.email=a),b&&b.name?(d.name=b.name,delete b.name):b&&b.firstName&&b.lastName&&(d.name=b.firstName+" "+b.lastName),b&&b.company&&(b.company.created&&(b.company.created_at=Math.floor(b.company.created/1e3),delete b.company.created),d.company=b.company,delete b.company),this.options.activator&&(d.widget={activator:this.options.activator,use_counter:this.options.counter}),this.booted?window.Intercom("update",d):(e(d,{app_id:this.options.appId,user_id:a}),this.options.userHash&&(d.user_hash=this.options.userHash),window.Intercom("boot",d)),this.booted=!0}})}),require.register("analytics/src/providers/keen-io.js",function(a,b,c){var d=b("../provider"),e=b("load-script");c.exports=d.extend({name:"Keen IO",defaults:{projectToken:null,pageview:!0,initialPageview:!0},initialize:function(a,b){window.Keen=window.Keen||{configure:function(a,b,c){this._pId=a,this._ak=b,this._op=c},addEvent:function(a,b,c,d){this._eq=this._eq||[],this._eq.push([a,b,c,d])},setGlobalProperties:function(a){this._gp=a},onChartsReady:function(a){this._ocrq=this._ocrq||[],this._ocrq.push(a)}},window.Keen.configure(a.projectToken),e("//dc8na2hxrj29i.cloudfront.net/code/keen-2.0.0-min.js"),a.initialPageview&&this.pageview(),b()},identify:function(a,b){var c={};a&&(c.userId=a),b&&(c.traits=b),(a||b)&&window.Keen.setGlobalProperties(function(a){return{user:c}})},track:function(a,b){window.Keen.addEvent(a,b)},pageview:function(a){if(!this.options.pageview)return;var b={url:a||document.location.href,name:document.title};this.track("Loaded a Page",b)}})}),require.register("analytics/src/providers/kissmetrics.js",function(a,b,c){var d=b("../provider"),e=b("alias"),f=b("load-script");c.exports=d.extend({name:"KISSmetrics",key:"apiKey",defaults:{apiKey:null},initialize:function(a,b){window._kmq=window._kmq||[],f("//i.kissmetrics.com/i.js"),f("//doug1izaerwt3.cloudfront.net/"+a.apiKey+".1.js"),b()},identify:function(a,b){a&&window._kmq.push(["identify",a]),b&&window._kmq.push(["set",b])},track:function(a,b){b&&e(b,{revenue:"Billing Amount"}),window._kmq.push(["record",a,b])},alias:function(a,b){window._kmq.push(["alias",a,b])}})}),require.register("analytics/src/providers/klaviyo.js",function(a,b,c){var d=b("../provider"),e=b("load-script");c.exports=d.extend({name:"Klaviyo",key:"apiKey",defaults:{apiKey:null},initialize:function(a,b){window._learnq=window._learnq||[],window._learnq.push(["account",a.apiKey]),e("//a.klaviyo.com/media/js/learnmarklet.js"),b()},identify:function(a,b){if(!a&&!b)return;b||(b={}),a&&(b.$id=a),window._learnq.push(["identify",b])},track:function(a,b){window._learnq.push(["track",a,b])}})}),require.register("analytics/src/providers/livechat.js",function(a,b,c){var d=b("../provider"),e=b("each"),f=b("load-script");c.exports=d.extend({name:"LiveChat",key:"license",defaults:{license:null},initialize:function(a,b){window.__lc={license:a.license},f("//cdn.livechatinc.com/tracking.js",b)},identify:function(a,b){if(!window.LC_API)return;if(!a&&!b)return;var c=[];a&&c.push({name:"User ID",value:a}),b&&e(b,function(a,b){
c.push({name:a,value:b})}),window.LC_API.set_custom_variables(c)}})}),require.register("analytics/src/providers/lytics.js",function(a,b,c){var d=b("../provider"),e=b("load-script");c.exports=d.extend({name:"Lytics",key:"cid",defaults:{cid:null},initialize:function(a,b){window.jstag=function(){var b={_q:[],_c:{cid:a.cid,url:"//c.lytics.io"},ts:(new Date).getTime()};return b.send=function(){return this._q.push(["ready","send",Array.prototype.slice.call(arguments)]),this},b}(),e("//c.lytics.io/static/io.min.js"),b()},identify:function(a,b){b._uid=a,window.jstag.send(b)},track:function(a,b){b._e=a,window.jstag.send(b)},pageview:function(a){window.jstag.send()}})}),require.register("analytics/src/providers/mixpanel.js",function(a,b,c){var d=b("../provider"),e=b("alias"),f=b("is-email"),g=b("load-script");c.exports=d.extend({name:"Mixpanel",key:"token",defaults:{nameTag:!0,people:!1,token:null,pageview:!1,initialPageview:!1},initialize:function(a,b){(function(a,c){window.mixpanel=c;var d,e,f,h;c._i=[],c.init=function(a,b,d){function e(a,b){var c=b.split(".");2==c.length&&(a=a[c[0]],b=c[1]),a[b]=function(){a.push([b].concat(Array.prototype.slice.call(arguments,0)))}}var g=c;"undefined"!=typeof d?g=c[d]=[]:d="mixpanel",g.people=g.people||[],f=["disable","track","track_pageview","track_links","track_forms","register","register_once","unregister","identify","alias","name_tag","set_config","people.set","people.increment","people.track_charge","people.append"];for(h=0;h<f.length;h++)e(g,f[h]);c._i.push([a,b,d])},c.__SV=1.2,g("//cdn.mxpnl.com/libs/mixpanel-2.2.min.js",b)})(document,window.mixpanel||[]),window.mixpanel.init(a.token,a),a.initialPageview&&this.pageview()},identify:function(a,b){a&&f(a)&&b&&!b.email&&(b||(b={}),b.email=a),b&&e(b,{created:"$created",email:"$email",firstName:"$first_name",lastName:"$last_name",lastSeen:"$last_seen",name:"$name",username:"$username"}),a&&(window.mixpanel.identify(a),this.options.nameTag&&window.mixpanel.name_tag(b&&b.$email||a)),b&&(window.mixpanel.register(b),this.options.people&&window.mixpanel.people.set(b))},track:function(a,b){window.mixpanel.track(a,b),b&&b.revenue&&this.options.people&&window.mixpanel.people.track_charge(b.revenue)},pageview:function(a){window.mixpanel.track_pageview(a);if(!this.options.pageview)return;var b={url:a||document.location.href,name:document.title};this.track("Loaded a Page",b)},alias:function(a,b){if(window.mixpanel.get_distinct_id&&window.mixpanel.get_distinct_id()===a)return;if(window.mixpanel.get_property&&window.mixpanel.get_property("$people_distinct_id")===a)return;window.mixpanel.alias(a,b)}})}),require.register("analytics/src/providers/olark.js",function(a,b,c){var d=b("../provider"),e=b("is-email");c.exports=d.extend({name:"Olark",key:"siteId",chatInProgress:!1,defaults:{siteId:null,identify:!0,track:!1,pageview:!0},initialize:function(a,b){window.olark||function(a){var b=window,c=document,d=b.location.protocol=="https:"?"https:":"http:",e=a.name,f="load",g=function(){function j(){h.P(f),b[e](f)}b[e]=function(){(h.s=h.s||[]).push(arguments)};var h=b[e]._={},i=a.methods.length;while(i--)(function(a){b[e][a]=function(){b[e]("call",a,arguments)}})(a.methods[i]);h.l=a.loader,h.i=g,h.p={0:+(new Date)},h.P=function(a){h.p[a]=new Date-h.p[0]},b.addEventListener?b.addEventListener(f,j,!1):b.attachEvent("on"+f,j);var k=function(){function b(a){return a="head",["<",a,"></",a,"><",f,' onload="var d=',q,";d.getElementsByTagName('head')[0].",i,"(d.",j,"('script')).",m,"='",d,"//",h.l,"'",'"',"></",f,">"].join("")}var f="body",g=c[f];if(!g)return setTimeout(k,100);h.P(1);var i="appendChild",j="createElement",m="src",n=c[j]("div"),o=n[i](c[j](e)),p=c[j]("iframe"),q="document",r="domain",s;n.style.display="none",g.insertBefore(n,g.firstChild).id=e,p.frameBorder="0",p.id=e+"-loader",/MSIE[ ]+6/.test(navigator.userAgent)&&(p.src="javascript:false"),p.allowTransparency="true",o[i](p);try{p.contentWindow[q].open()}catch(t){a[r]=c[r],s="javascript:var d="+q+".open();d.domain='"+c.domain+"';",p[m]=s+"void(0);"}try{var u=p.contentWindow[q];u.write(b()),u.close()}catch(v){p[m]=s+'d.write("'+b().replace(/"/g,String.fromCharCode(92)+'"')+'");d.close();'}h.P(2)};k()};g()}({loader:"static.olark.com/jsclient/loader0.js",name:"olark",methods:["configure","extend","declare","identify"]}),window.olark.identify(a.siteId);var c=this;window.olark("api.box.onExpand",function(){c.chatInProgress=!0}),window.olark("api.box.onShrink",function(){c.chatInProgress=!1}),b()},identify:function(a,b){if(!this.options.identify)return;b||(b={}),!b.email&&e(a)&&(b.email=a),b.email&&window.olark("api.visitor.updateEmailAddress",{emailAddress:b.email}),b.name?window.olark("api.visitor.updateFullName",{fullName:b.name}):b.firstName&&b.lastName&&window.olark("api.visitor.updateFullName",{fullName:b.firstName+" "+b.lastName}),b.phone&&window.olark("api.visitor.updatePhoneNumber",{phoneNumber:b.phone}),window.olark("api.visitor.updateCustomFields",b);var c=a;b.email&&(c=b.email),b.name&&(c=b.name),b.name&&b.email&&(c+=" ("+b.email+")");if(!c)return;window.olark("api.chat.updateVisitorNickname",{snippet:c})},track:function(a,b){if(!this.options.track||!this.chatInProgress)return;window.olark("api.chat.sendNotificationToOperator",{body:'visitor triggered "'+a+'"'})},pageview:function(a){if(!this.options.pageview||!this.chatInProgress)return;window.olark("api.chat.sendNotificationToOperator",{body:"looking at "+window.location.href})}})}),require.register("analytics/src/providers/perfect-audience.js",function(a,b,c){var d=b("../provider"),e=b("load-script");c.exports=d.extend({name:"Perfect Audience",key:"siteId",defaults:{siteId:null},initialize:function(a,b){window._pa||(window._pa={}),e("//tag.perfectaudience.com/serve/"+a.siteId+".js",b)},track:function(a,b){window._pa.track(a,b)}})}),require.register("analytics/src/providers/pingdom.js",function(a,b,c){var d=b("load-date"),e=b("../provider"),f=b("load-script");c.exports=e.extend({name:"Pingdom",key:"id",defaults:{id:null},initialize:function(a,b){window._prum=[["id","5168f8c6abe53db732000000"],["mark","firstbyte",d.getTime()]],f("//rum-static.pingdom.net/prum.min.js",b)}})}),require.register("analytics/src/providers/qualaroo.js",function(a,b,c){var d=b("../provider"),e=b("is-email"),f=b("load-script");c.exports=d.extend({name:"Qualaroo",defaults:{customerId:null,siteToken:null,track:!1},initialize:function(a,b){window._kiq=window._kiq||[],f("//s3.amazonaws.com/ki.js/"+a.customerId+"/"+a.siteToken+".js"),b()},identify:function(a,b){var c=a;b&&b.email&&!e(a)&&(c=b.email),c&&window._kiq.push(["identify",c]),b&&window._kiq.push(["set",b])},track:function(a,b){if(!this.options.track)return;var c={};c["Triggered: "+a]=!0,this.identify(null,c)}})}),require.register("analytics/src/providers/quantcast.js",function(a,b,c){var d=b("../provider"),e=b("load-script");c.exports=d.extend({name:"Quantcast",key:"pCode",defaults:{pCode:null},initialize:function(a,b){window._qevents=window._qevents||[],window._qevents.push({qacct:a.pCode}),e({http:"http://edge.quantserve.com/quant.js",https:"https://secure.quantserve.com/quant.js"},b)}})}),require.register("analytics/src/providers/sentry.js",function(a,b,c){var d=b("../provider"),e=b("load-script");c.exports=d.extend({name:"Sentry",key:"config",defaults:{config:null},initialize:function(a,b){e("//d3nslu0hdya83q.cloudfront.net/dist/1.0/raven.min.js",function(){window.Raven.config(a.config).install(),b()})},identify:function(a,b){b||(b={}),a&&(b.id=a),window.Raven.setUser(b)},log:function(a,b){window.Raven.captureException(a,b)}})}),require.register("analytics/src/providers/snapengage.js",function(a,b,c){var d=b("../provider"),e=b("load-script");c.exports=d.extend({name:"SnapEngage",key:"apiKey",defaults:{apiKey:null},initialize:function(a,b){e("//commondatastorage.googleapis.com/code.snapengage.com/js/"+a.apiKey+".js",b)}})}),require.register("analytics/src/providers/usercycle.js",function(a,b,c){var d=b("../provider"),e=b("load-script"),f=b("../user");c.exports=d.extend({name:"USERcycle",key:"key",defaults:{key:null},initialize:function(a,b){window._uc=window._uc||[],window._uc.push(["_key",a.key]),e("//api.usercycle.com/javascripts/track.js"),b()},identify:function(a,b){a&&window._uc.push(["uid",a])},track:function(a,b){var c=f.traits();window._uc.push(["action",a,c])}})}),require.register("analytics/src/providers/userfox.js",function(a,b,c){var d=b("../provider"),e=b("extend"),f=b("load-script"),g=b("is-email");c.exports=d.extend({name:"userfox",key:"clientId",defaults:{clientId:null},initialize:function(a,b){window._ufq=window._ufq||[],f("//d2y71mjhnajxcg.cloudfront.net/js/userfox-stable.js"),b()},identify:function(a,b,c){var d;a&&g(a)&&(d=a),b&&g(b.email)&&(d=b.email);if(!d)return;window._ufq.push(["init",{clientId:this.options.clientId,email:d}]),b&&b.created&&window._ufq.push(["track",{signup_date:b.created.getTime()+""}])}})}),require.register("analytics/src/providers/uservoice.js",function(a,b,c){var d=b("../provider"),e=b("load-script"),f=b("alias"),g=b("clone");c.exports=d.extend({name:"UserVoice",defaults:{widgetId:null,forumId:null,showTab:!0,mode:"full",primaryColor:"#cc6d00",linkColor:"#007dbf",defaultMode:"support",supportTabName:null,feedbackTabName:null,tabLabel:"Feedback & Support",tabColor:"#cc6d00",tabPosition:"middle-right",tabInverted:!1},initialize:function(a,b){window.UserVoice=window.UserVoice||[],e("//widget.uservoice.com/"+a.widgetId+".js",b);var c=g(a);f(c,{forumId:"forum_id",primaryColor:"primary_color",linkColor:"link_color",defaultMode:"default_mode",supportTabName:"support_tab_name",feedbackTabName:"feedback_tab_name",tabLabel:"tab_label",tabColor:"tab_color",tabPosition:"tab_position",tabInverted:"tab_inverted"}),window.showClassicWidget=function(a){window.UserVoice.push([a||"showLightbox","classic_widget",c])},a.showTab&&window.showClassicWidget("showTab")}})}),require.register("analytics/src/providers/vero.js",function(a,b,c){var d=b("../provider"),e=b("is-email"),f=b("load-script");c.exports=d.extend({name:"Vero",key:"apiKey",defaults:{apiKey:null},initialize:function(a,b){window._veroq=window._veroq||[],window._veroq.push(["init",{api_key:a.apiKey}]),f("//www.getvero.com/assets/m.js"),b()},identify:function(a,b){if(!a)return;b||(b={}),b.id=a,!b.email&&e(a)&&(b.email=a);if(!b.id||!b.email)return;window._veroq.push(["user",b])},track:function(a,b){window._veroq.push(["track",a,b])}})}),require.register("analytics/src/providers/woopra.js",function(a,b,c){var d=b("../provider"),e=b("each"),f=b("extend"),g=b("is-email"),h=b("load-script"),i=b("type"),j=b("../user");c.exports=d.extend({name:"Woopra",key:"domain",defaults:{domain:null},initialize:function(a,b){var c=this;window.woopraReady=function(a){a.setDomain(c.options.domain),a.setIdleTimeout(3e5);var d=j.id(),e=j.traits();return c.addTraits(d,e,a),a.track(),b(),!1},h("//static.woopra.com/js/woopra.js")},identify:function(a,b){if(!window.woopraTracker)return;this.addTraits(a,b,window.woopraTracker)},addTraits:function(a,b,c){var d=c.addVisitorProperty;a&&d("id",a),g(a)&&d("email",a),e(b,function(a,b){i(b)==="string"&&d(a,b)})},track:function(a,b){if(!window.woopraTracker)return;var c={};c.name=a,b&&(c=f({},b,c)),window.woopraTracker.pushEvent(c)}})}),require.alias("component-clone/index.js","analytics/deps/clone/index.js"),require.alias("component-type/index.js","component-clone/deps/type/index.js"),require.alias("component-cookie/index.js","analytics/deps/cookie/index.js"),require.alias("component-each/index.js","analytics/deps/each/index.js"),require.alias("component-type/index.js","component-each/deps/type/index.js"),require.alias("component-event/index.js","analytics/deps/event/index.js"),require.alias("component-json/index.js","analytics/deps/json/index.js"),require.alias("component-json-fallback/index.js","analytics/deps/json-fallback/index.js"),require.alias("component-object/index.js","analytics/deps/object/index.js"),require.alias("component-querystring/index.js","analytics/deps/querystring/index.js"),require.alias("component-trim/index.js","component-querystring/deps/trim/index.js"),require.alias("component-type/index.js","analytics/deps/type/index.js"),require.alias("component-url/index.js","analytics/deps/url/index.js"),require.alias("segmentio-after/index.js","analytics/deps/after/index.js"),require.alias("segmentio-alias/index.js","analytics/deps/alias/index.js"),require.alias("segmentio-canonical/index.js","analytics/deps/canonical/index.js"),require.alias("segmentio-extend/index.js","analytics/deps/extend/index.js"),require.alias("segmentio-is-email/index.js","analytics/deps/is-email/index.js"),require.alias("segmentio-is-meta/index.js","analytics/deps/is-meta/index.js"),require.alias("segmentio-load-date/index.js","analytics/deps/load-date/index.js"),require.alias("segmentio-load-script/index.js","analytics/deps/load-script/index.js"),require.alias("component-type/index.js","segmentio-load-script/deps/type/index.js"),require.alias("segmentio-new-date/index.js","analytics/deps/new-date/index.js"),require.alias("component-type/index.js","segmentio-new-date/deps/type/index.js"),require.alias("segmentio-on-body/index.js","analytics/deps/on-body/index.js"),require.alias("component-each/index.js","segmentio-on-body/deps/each/index.js"),require.alias("component-type/index.js","component-each/deps/type/index.js"),require.alias("yields-prevent/index.js","analytics/deps/prevent/index.js"),require.alias("analytics/src/index.js","analytics/index.js"),typeof exports=="object"?module.exports=require("analytics"):typeof define=="function"&&define.amd?define(function(){return require("analytics")}):window.analytics=require("analytics")})();