!function(e){"function"==typeof e&&e.amd&&(e=undefined);!function(){function e(t,n,o){function i(a,s){if(!n[a]){if(!t[a]){var c="function"==typeof require&&require;if(!s&&c)return c(a,!0);if(r)return r(a,!0);var p=new Error("Cannot find module '"+a+"'");throw p.code="MODULE_NOT_FOUND",p}var u=n[a]={exports:{}};t[a][0].call(u.exports,function(e){return i(t[a][1][e]||e)},u,u.exports,e,t,n,o)}return n[a].exports}for(var r="function"==typeof require&&require,a=0;a0;){var d=r.shift(),l=d.shift();"function"==typeof o[l]&&o[l].apply(o,d)}r=null;t.analytics=o}}).call(this,"undefined"!=typeof window&&window.document&&window.document.implementation?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{})},{"./analytics":1,"./bot":2,"./integrations":4,"extend":838}],4:[function(e,t,n){"use strict";t.exports={"adlearn-open-platform":e("@segment/analytics.js-integration-adlearn-open-platform"),"adobe-analytics":e("@segment/analytics.js-integration-adobe-analytics"),"adobe-target":e("@segment/analytics.js-integration-adobe-target"),"adometry":e("@segment/analytics.js-integration-adometry"),"adroll":e("@segment/analytics.js-integration-adroll"),"adwords":e("@segment/analytics.js-integration-adwords"),"alexa":e("@segment/analytics.js-integration-alexa"),"ambassador":e("@segment/analytics.js-integration-ambassador"),"amplitude":e("@segment/analytics.js-integration-amplitude"),"appboy":e("@segment/analytics.js-integration-appboy"),"appcues":e("@segment/analytics.js-integration-appcues"),"appnexus":e("@segment/analytics.js-integration-appnexus"),"aptrinsic":e("@segment/analytics.js-integration-aptrinsic"),"atatus":e("@segment/analytics.js-integration-atatus"),"autosend":e("@segment/analytics.js-integration-autosend"),"awesm":e("@segment/analytics.js-integration-awesm"),"bing-ads":e("@segment/analytics.js-integration-bing-ads"),"blueshift":e("@segment/analytics.js-integration-blueshift"),"boomtrain":e("@segment/analytics.js-integration-boomtrain"),"bronto":e("@segment/analytics.js-integration-bronto"),"bugherd":e("@segment/analytics.js-integration-bugherd"),"bugsnag":e("@segment/analytics.js-integration-bugsnag"),"castle":e("@segment/analytics.js-integration-castle"),"chameleon":e("@segment/analytics.js-integration-chameleon"),"chartbeat":e("@segment/analytics.js-integration-chartbeat"),"clevertap":e("@segment/analytics.js-integration-clevertap"),"clicky":e("@segment/analytics.js-integration-clicky"),"comscore":e("@segment/analytics.js-integration-comscore"),"convertro":e("@segment/analytics.js-integration-convertro"),"crazy-egg":e("@segment/analytics.js-integration-crazy-egg"),"criteo":e("@segment/analytics.js-integration-criteo"),"curebit":e("@segment/analytics.js-integration-curebit"),"customerio":e("@segment/analytics.js-integration-customerio"),"cxense":e("@segment/analytics.js-integration-cxense"),"doubleclick-floodlight":e("@segment/analytics.js-integration-doubleclick-floodlight"),"drift":e("@segment/analytics.js-integration-drift"),"drip":e("@segment/analytics.js-integration-drip"),"elevio":e("@segment/analytics.js-integration-elevio"),"eloqua":e("@segment/analytics.js-integration-eloqua"),"email-aptitude":e("@segment/analytics.js-integration-email-aptitude"),"errorception":e("@segment/analytics.js-integration-errorception"),"evergage":e("@segment/analytics.js-integration-evergage"),"extole":e("@segment/analytics.js-integration-extole"),"facebook-conversion-tracking":e("@segment/analytics.js-integration-facebook-conversion-tracking"),"facebook-custom-audiences":e("@segment/analytics.js-integration-facebook-custom-audiences"),"facebook-pixel":e("@segment/analytics.js-integration-facebook-pixel"),"foxmetrics":e("@segment/analytics.js-integration-foxmetrics"),"friendbuy":e("@segment/analytics.js-integration-friendbuy"),"fullstory":e("@segment/analytics.js-integration-fullstory"),"gauges":e("@segment/analytics.js-integration-gauges"),"get-satisfaction":e("@segment/analytics.js-integration-get-satisfaction"),"google-adwords-new":e("@segment/analytics.js-integration-google-adwords-new"),"google-analytics":e("@segment/analytics.js-integration-google-analytics"),"google-tag-manager":e("@segment/analytics.js-integration-google-tag-manager"),"gosquared":e("@segment/analytics.js-integration-gosquared"),"heap":e("@segment/analytics.js-integration-heap"),"hellobar":e("@segment/analytics.js-integration-hellobar"),"hindsight":e("@segment/analytics.js-integration-hindsight"),"hittail":e("@segment/analytics.js-integration-hittail"),"hotjar":e("@segment/analytics.js-integration-hotjar"),"hubspot":e("@segment/analytics.js-integration-hubspot"),"improvely":e("@segment/analytics.js-integration-improvely"),"inspectlet":e("@segment/analytics.js-integration-inspectlet"),"intercom":e("@segment/analytics.js-integration-intercom"),"keen-io":e("@segment/analytics.js-integration-keen-io"),"kenshoo":e("@segment/analytics.js-integration-kenshoo"),"kenshoo-infinity":e("@segment/analytics.js-integration-kenshoo-infinity"),"kissmetrics":e("@segment/analytics.js-integration-kissmetrics"),"klaviyo":e("@segment/analytics.js-integration-klaviyo"),"linkedin-insight-tag":e("@segment/analytics.js-integration-linkedin-insight-tag"),"livechat":e("@segment/analytics.js-integration-livechat"),"localytics":e("@segment/analytics.js-integration-localytics"),"lucky-orange":e("@segment/analytics.js-integration-lucky-orange"),"lytics":e("@segment/analytics.js-integration-lytics"),"madkudu":e("@segment/analytics.js-integration-madkudu"),"marketo":e("@segment/analytics.js-integration-marketo"),"marketo-v2":e("@segment/analytics.js-integration-marketo-v2"),"mediamath":e("@segment/analytics.js-integration-mediamath"),"mixpanel":e("@segment/analytics.js-integration-mixpanel"),"moengage":e("@segment/analytics.js-integration-moengage"),"mojn":e("@segment/analytics.js-integration-mojn"),"monetate":e("@segment/analytics.js-integration-monetate"),"mouseflow":e("@segment/analytics.js-integration-mouseflow"),"mousestats":e("@segment/analytics.js-integration-mousestats"),"nanigans":e("@segment/analytics.js-integration-nanigans"),"navilytics":e("@segment/analytics.js-integration-navilytics"),"nielsen-dcr":e("@segment/analytics.js-integration-nielsen-dcr"),"nudgespot":e("@segment/analytics.js-integration-nudgespot"),"olark":e("@segment/analytics.js-integration-olark"),"omniture":e("@segment/analytics.js-integration-omniture"),"onespot":e("@segment/analytics.js-integration-onespot"),"optimizely":e("@segment/analytics.js-integration-optimizely"),"outbound":e("@segment/analytics.js-integration-outbound"),"pardot":e("@segment/analytics.js-integration-pardot"),"parsely":e("@segment/analytics.js-integration-parsely"),"pendo":e("@segment/analytics.js-integration-pendo"),"perfect-audience":e("@segment/analytics.js-integration-perfect-audience"),"perimeterx":e("@segment/analytics.js-integration-perimeterx"),"pingdom":e("@segment/analytics.js-integration-pingdom"),"pinterest-tag":e("@segment/analytics.js-integration-pinterest-tag"),"piwik":e("@segment/analytics.js-integration-piwik"),"qualaroo":e("@segment/analytics.js-integration-qualaroo"),"quantcast":e("@segment/analytics.js-integration-quantcast"),"quanticmind":e("@segment/analytics.js-integration-quanticmind"),"quora-conversion-pixel":e("@segment/analytics.js-integration-quora-conversion-pixel"),"ramen":e("@segment/analytics.js-integration-ramen"),"rockerbox":e("@segment/analytics.js-integration-rockerbox"),"rocket-fuel":e("@segment/analytics.js-integration-rocket-fuel"),"rollbar":e("@segment/analytics.js-integration-rollbar"),"route":e("@segment/analytics.js-integration-route"),"saasquatch":e("@segment/analytics.js-integration-saasquatch"),"salesforce-dmp":e("@segment/analytics.js-integration-salesforce-dmp"),"salesforce-live-agent":e("@segment/analytics.js-integration-salesforce-live-agent"),"satismeter":e("@segment/analytics.js-integration-satismeter"),"segmentio":e("@segment/analytics.js-integration-segmentio"),"sentry":e("@segment/analytics.js-integration-sentry"),"shareasale":e("@segment/analytics.js-integration-shareasale"),"simplereach":e("@segment/analytics.js-integration-simplereach"),"simplifi":e("@segment/analytics.js-integration-simplifi"),"snapengage":e("@segment/analytics.js-integration-snapengage"),"spinnakr":e("@segment/analytics.js-integration-spinnakr"),"steelhouse":e("@segment/analytics.js-integration-steelhouse"),"stripe-radar":e("@segment/analytics.js-integration-stripe-radar"),"supporthero":e("@segment/analytics.js-integration-supporthero"),"tag-injector":e("@segment/analytics.js-integration-tag-injector"),"taplytics":e("@segment/analytics.js-integration-taplytics"),"tapstream":e("@segment/analytics.js-integration-tapstream"),"tell-apart":e("@segment/analytics.js-integration-tell-apart"),"totango":e("@segment/analytics.js-integration-totango"),"trackjs":e("@segment/analytics.js-integration-trackjs"),"tvsquared":e("@segment/analytics.js-integration-tvsquared"),"twitter-ads":e("@segment/analytics.js-integration-twitter-ads"),"userlike":e("@segment/analytics.js-integration-userlike"),"uservoice":e("@segment/analytics.js-integration-uservoice"),"vero":e("@segment/analytics.js-integration-vero"),"visual-website-optimizer":e("@segment/analytics.js-integration-visual-website-optimizer"),"webengage":e("@segment/analytics.js-integration-webengage"),"wigzo":e("@segment/analytics.js-integration-wigzo"),"wishpond":e("@segment/analytics.js-integration-wishpond"),"woopra":e("@segment/analytics.js-integration-woopra"),"wootric":e("@segment/analytics.js-integration-wootric"),"yandex-metrica":e("@segment/analytics.js-integration-yandex-metrica"),"yellowhammer":e("@segment/analytics.js-integration-yellowhammer"),"youbora":e("@segment/analytics.js-integration-youbora"),"zopim":e("@segment/analytics.js-integration-zopim")}},{"@segment/analytics.js-integration-adlearn-open-platform":35,"@segment/analytics.js-integration-adobe-analytics":42,"@segment/analytics.js-integration-adobe-target":43,"@segment/analytics.js-integration-adometry":50,"@segment/analytics.js-integration-adroll":57,"@segment/analytics.js-integration-adwords":58,"@segment/analytics.js-integration-alexa":65,"@segment/analytics.js-integration-ambassador":72,"@segment/analytics.js-integration-amplitude":79,"@segment/analytics.js-integration-appboy":86,"@segment/analytics.js-integration-appcues":87,"@segment/analytics.js-integration-appnexus":94,"@segment/analytics.js-integration-aptrinsic":101,"@segment/analytics.js-integration-atatus":108,"@segment/analytics.js-integration-autosend":115,"@segment/analytics.js-integration-awesm":122,"@segment/analytics.js-integration-bing-ads":129,"@segment/analytics.js-integration-blueshift":136,"@segment/analytics.js-integration-boomtrain":143,"@segment/analytics.js-integration-bronto":150,"@segment/analytics.js-integration-bugherd":151,"@segment/analytics.js-integration-bugsnag":158,"@segment/analytics.js-integration-castle":165,"@segment/analytics.js-integration-chameleon":166,"@segment/analytics.js-integration-chartbeat":173,"@segment/analytics.js-integration-clevertap":174,"@segment/analytics.js-integration-clicky":175,"@segment/analytics.js-integration-comscore":182,"@segment/analytics.js-integration-convertro":189,"@segment/analytics.js-integration-crazy-egg":190,"@segment/analytics.js-integration-criteo":197,"@segment/analytics.js-integration-curebit":199,"@segment/analytics.js-integration-customerio":200,"@segment/analytics.js-integration-cxense":207,"@segment/analytics.js-integration-doubleclick-floodlight":208,"@segment/analytics.js-integration-drift":209,"@segment/analytics.js-integration-drip":216,"@segment/analytics.js-integration-elevio":217,"@segment/analytics.js-integration-eloqua":219,"@segment/analytics.js-integration-email-aptitude":226,"@segment/analytics.js-integration-errorception":233,"@segment/analytics.js-integration-evergage":241,"@segment/analytics.js-integration-extole":248,"@segment/analytics.js-integration-facebook-conversion-tracking":255,"@segment/analytics.js-integration-facebook-custom-audiences":262,"@segment/analytics.js-integration-facebook-pixel":263,"@segment/analytics.js-integration-foxmetrics":264,"@segment/analytics.js-integration-friendbuy":265,"@segment/analytics.js-integration-fullstory":267,"@segment/analytics.js-integration-gauges":275,"@segment/analytics.js-integration-get-satisfaction":282,"@segment/analytics.js-integration-google-adwords-new":289,"@segment/analytics.js-integration-google-analytics":290,"@segment/analytics.js-integration-google-tag-manager":291,"@segment/analytics.js-integration-gosquared":292,"@segment/analytics.js-integration-heap":293,"@segment/analytics.js-integration-hellobar":294,"@segment/analytics.js-integration-hindsight":301,"@segment/analytics.js-integration-hittail":302,"@segment/analytics.js-integration-hotjar":309,"@segment/analytics.js-integration-hubspot":310,"@segment/analytics.js-integration-improvely":311,"@segment/analytics.js-integration-inspectlet":318,"@segment/analytics.js-integration-intercom":325,"@segment/analytics.js-integration-keen-io":332,"@segment/analytics.js-integration-kenshoo":340,"@segment/analytics.js-integration-kenshoo-infinity":339,"@segment/analytics.js-integration-kissmetrics":347,"@segment/analytics.js-integration-klaviyo":354,"@segment/analytics.js-integration-linkedin-insight-tag":355,"@segment/analytics.js-integration-livechat":362,"@segment/analytics.js-integration-localytics":369,"@segment/analytics.js-integration-lucky-orange":376,"@segment/analytics.js-integration-lytics":377,"@segment/analytics.js-integration-madkudu":384,"@segment/analytics.js-integration-marketo":398,"@segment/analytics.js-integration-marketo-v2":391,"@segment/analytics.js-integration-mediamath":405,"@segment/analytics.js-integration-mixpanel":412,"@segment/analytics.js-integration-moengage":419,"@segment/analytics.js-integration-mojn":420,"@segment/analytics.js-integration-monetate":427,"@segment/analytics.js-integration-mouseflow":428,"@segment/analytics.js-integration-mousestats":429,"@segment/analytics.js-integration-nanigans":436,"@segment/analytics.js-integration-navilytics":445,"@segment/analytics.js-integration-nielsen-dcr":452,"@segment/analytics.js-integration-nudgespot":453,"@segment/analytics.js-integration-olark":460,"@segment/analytics.js-integration-omniture":467,"@segment/analytics.js-integration-onespot":474,"@segment/analytics.js-integration-optimizely":481,"@segment/analytics.js-integration-outbound":490,"@segment/analytics.js-integration-pardot":499,"@segment/analytics.js-integration-parsely":508,"@segment/analytics.js-integration-pendo":509,"@segment/analytics.js-integration-perfect-audience":510,"@segment/analytics.js-integration-perimeterx":511,"@segment/analytics.js-integration-pingdom":512,"@segment/analytics.js-integration-pinterest-tag":519,"@segment/analytics.js-integration-piwik":526,"@segment/analytics.js-integration-qualaroo":533,"@segment/analytics.js-integration-quantcast":540,"@segment/analytics.js-integration-quanticmind":541,"@segment/analytics.js-integration-quora-conversion-pixel":548,"@segment/analytics.js-integration-ramen":555,"@segment/analytics.js-integration-rockerbox":562,"@segment/analytics.js-integration-rocket-fuel":569,"@segment/analytics.js-integration-rollbar":576,"@segment/analytics.js-integration-route":583,"@segment/analytics.js-integration-saasquatch":590,"@segment/analytics.js-integration-salesforce-dmp":597,"@segment/analytics.js-integration-salesforce-live-agent":604,"@segment/analytics.js-integration-satismeter":611,"@segment/analytics.js-integration-segmentio":618,"@segment/analytics.js-integration-sentry":625,"@segment/analytics.js-integration-shareasale":632,"@segment/analytics.js-integration-simplereach":633,"@segment/analytics.js-integration-simplifi":640,"@segment/analytics.js-integration-snapengage":647,"@segment/analytics.js-integration-spinnakr":654,"@segment/analytics.js-integration-steelhouse":661,"@segment/analytics.js-integration-stripe-radar":668,"@segment/analytics.js-integration-supporthero":669,"@segment/analytics.js-integration-tag-injector":676,"@segment/analytics.js-integration-taplytics":677,"@segment/analytics.js-integration-tapstream":684,"@segment/analytics.js-integration-tell-apart":691,"@segment/analytics.js-integration-totango":692,"@segment/analytics.js-integration-trackjs":699,"@segment/analytics.js-integration-tvsquared":706,"@segment/analytics.js-integration-twitter-ads":713,"@segment/analytics.js-integration-userlike":714,"@segment/analytics.js-integration-uservoice":721,"@segment/analytics.js-integration-vero":728,"@segment/analytics.js-integration-visual-website-optimizer":735,"@segment/analytics.js-integration-webengage":736,"@segment/analytics.js-integration-wigzo":743,"@segment/analytics.js-integration-wishpond":744,"@segment/analytics.js-integration-woopra":751,"@segment/analytics.js-integration-wootric":758,"@segment/analytics.js-integration-yandex-metrica":765,"@segment/analytics.js-integration-yellowhammer":772,"@segment/analytics.js-integration-youbora":779,"@segment/analytics.js-integration-zopim":780}],5:[function(e,t,n){"use strict";var o=e("@ndhoule/arity"),i=Object.prototype.toString,r=function(e){return"function"==typeof e},a=function(e){var t=typeof e;return"number"===t||"object"===t&&"[object Number]"===i.call(e)},s=function(e,t){if(!a(e))throw new TypeError("Expected a number but received "+typeof e);if(!r(t))throw new TypeError("Expected a function but received "+typeof t);var n=0;return o(t.length,function(){n+=1;if(!(n=0)n.log("Skipping invokation of .%s method of %s integration. Integation failed to initialize properly.",e,r);else try{h.increment("analytics_js.integration.invoke",{method:e,integration_name:i.name});i.invoke.call(i,e,t)}catch(a){h.increment("analytics_js.integration.invoke.error",{method:e,integration_name:i.name});n.log("Error invoking .%s method of %s integration: %o",e,r,a)}},this._integrations);return this};o.prototype.push=function(e){var t=e.shift();this[t]&&this[t].apply(this,e)};o.prototype.reset=function(){this.user().logout();this.group().logout()};o.prototype._parseQuery=function(e){function t(e,t){var n,o=e.length;return b(function(t,i,r){if(r.substr(0,o)===e){n=r.substr(o);t[n]=i}return t},{},t)}var n=q.parse(e),o=t("ajs_trait_",n),i=t("ajs_prop_",n);n.ajs_uid&&this.identify(n.ajs_uid,o);n.ajs_event&&this.track(n.ajs_event,i);n.ajs_aid&&N.anonymousId(n.ajs_aid);return this};o.prototype.normalize=function(e){e=C(e,j(this._integrations));e.anonymousId&&N.anonymousId(e.anonymousId);e.anonymousId=N.anonymousId();e.context.page=v(e.context.page||{},E());return e};o.prototype._mergeInitializeAndPlanIntegrations=function(e){if(!this.options.integrations)return e;var t,n=m({},this.options.integrations);!1===e.All&&(n={All:!1});for(t in e)e.hasOwnProperty(t)&&!1!==this.options.integrations[t]&&(n[t]=e[t]);return n};o.prototype.noConflict=function(){window.analytics=i;return this};t.exports=o;t.exports.cookie=g;t.exports.memory=I;t.exports.store=M;t.exports.metrics=h}).call(this,"undefined"!=typeof window&&window.document&&window.document.implementation?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{})},{"./cookie":24,"./group":26,"./memory":28,"./metrics":29,"./normalize":30,"./pageDefaults":31,"./store":32,"./user":33,"@ndhoule/after":5,"@ndhoule/clone":7,"@ndhoule/defaults":8,"@ndhoule/each":10,"@ndhoule/foldl":14,"@ndhoule/keys":16,"@ndhoule/pick":18,"@segment/is-meta":796,"@segment/prevent-default":809,"bind-all":818,"component-emitter":825,"component-event":826,"component-querystring":829,"component-type":831,"debug":835,"extend":838,"is":846,"next-tick":862,"segmentio-facade":878}],24:[function(e,t,n){"use strict";function o(e){this.options(e)}var i=e("bind-all"),r=e("@ndhoule/clone"),a=e("component-cookie"),s=e("debug")("analytics.js:cookie"),c=e("@ndhoule/defaults"),p=e("json3"),u=e("@segment/top-domain");o.prototype.options=function(e){if(0===arguments.length)return this._options;e=e||{};var t="."+u(window.location.href);"."===t&&(t=null);this._options=c(e,{maxage:31536e6,path:"/",domain:t});this.set("ajs:test",!0);if(!this.get("ajs:test")){s("fallback to domain=null");this._options.domain=null}this.remove("ajs:test")};o.prototype.set=function(e,t){try{t=p.stringify(t);a(e,t,r(this._options));return!0}catch(n){return!1}};o.prototype.get=function(e){try{var t=a(e);t=t?p.parse(t):null;return t}catch(n){return null}};o.prototype.remove=function(e){try{a(e,null,r(this._options));return!0}catch(t){return!1}};t.exports=i(new o);t.exports.Cookie=o},{"@ndhoule/clone":7,"@ndhoule/defaults":8,"@segment/top-domain":814,"bind-all":818,"component-cookie":822,"debug":835,"json3":851}],25:[function(e,t,n){"use strict";function o(e){this.options(e);this.initialize()}var i=e("@ndhoule/clone"),r=e("./cookie"),a=e("debug")("analytics:entity"),s=e("@ndhoule/defaults"),c=e("@ndhoule/extend"),p=e("./memory"),u=e("./store"),d=e("@segment/isodate-traverse");t.exports=o;o.prototype.initialize=function(){r.set("ajs:cookies",!0);if(r.get("ajs:cookies")){r.remove("ajs:cookies");this._storage=r}else if(u.enabled)this._storage=u;else{a("warning using memory store both cookies and localStorage are disabled");this._storage=p}};o.prototype.storage=function(){return this._storage};o.prototype.options=function(e){if(0===arguments.length)return this._options;this._options=s(e||{},this.defaults||{})};o.prototype.id=function(e){switch(arguments.length){case 0:return this._getId();case 1:return this._setId(e)}};o.prototype._getId=function(){var e=this._options.persist?this.storage().get(this._options.cookie.key):this._id;return e===undefined?null:e};o.prototype._setId=function(e){this._options.persist?this.storage().set(this._options.cookie.key,e):this._id=e};o.prototype.properties=o.prototype.traits=function(e){switch(arguments.length){case 0:return this._getTraits();case 1:return this._setTraits(e)}};o.prototype._getTraits=function(){var e=this._options.persist?u.get(this._options.localStorage.key):this._traits;return e?d(i(e)):{}};o.prototype._setTraits=function(e){e=e||{};this._options.persist?u.set(this._options.localStorage.key,e):this._traits=e};o.prototype.identify=function(e,t){t=t||{};var n=this.id();null!==n&&n!==e||(t=c(this.traits(),t));e&&this.id(e);this.debug("identify %o, %o",e,t);this.traits(t);this.save()};o.prototype.save=function(){if(!this._options.persist)return!1;r.set(this._options.cookie.key,this.id());u.set(this._options.localStorage.key,this.traits());return!0};o.prototype.logout=function(){this.id(null);this.traits({});r.remove(this._options.cookie.key);u.remove(this._options.localStorage.key)};o.prototype.reset=function(){this.logout();this.options({})};o.prototype.load=function(){this.id(r.get(this._options.cookie.key));this.traits(u.get(this._options.localStorage.key))}},{"./cookie":24,"./memory":28,"./store":32,"@ndhoule/clone":7,"@ndhoule/defaults":8,"@ndhoule/extend":13,"@segment/isodate-traverse":797,"debug":835}],26:[function(e,t,n){"use strict";function o(e){this.defaults=o.defaults;this.debug=a;i.call(this,e)}var i=e("./entity"),r=e("bind-all"),a=e("debug")("analytics:group"),s=e("inherits");o.defaults={persist:!0,cookie:{key:"ajs_group_id"},localStorage:{key:"ajs_group_properties"}};s(o,i);t.exports=r(new o);t.exports.Group=o},{"./entity":25,"bind-all":818,"debug":835,"inherits":843}],27:[function(e,t,n){"use strict";var o=e("./analytics"),i=new o;i.require=e;i.VERSION=e("../package.json").version;t.exports=i},{"../package.json":34,"./analytics":23}],28:[function(e,t,n){"use strict";function o(){this.store={}}var i=e("bind-all"),r=e("@ndhoule/clone"),a=Object.prototype.hasOwnProperty;t.exports=i(new o);o.prototype.set=function(e,t){this.store[e]=r(t);return!0};o.prototype.get=function(e){if(a.call(this.store,e))return r(this.store[e])};o.prototype.remove=function(e){delete this.store[e];return!0}},{"@ndhoule/clone":7,"bind-all":818}],29:[function(e,t,n){"use strict";function o(e){this.options(e)}var i=e("bind-all"),r=e("@segment/send-json"),a=e("debug")("analytics.js:metrics");o.prototype.options=function(e){e=e||{};this.host=e.host||"api.segment.io/v1";this.sampleRate=e.sampleRate||0;this.flushTimer=e.flushTimer||3e4;this.maxQueueSize=e.maxQueueSize||20;this.queue=[];if(this.sampleRate>0){var t=this;setInterval(function(){t._flush()},this.flushTimer)}};o.prototype.increment=function(e,t){if(!(Math.random()>this.sampleRate||this.queue.length>=this.maxQueueSize)){this.queue.push({type:"Counter",metric:e,value:1,tags:t});e.indexOf("error")>0&&this._flush()}};o.prototype._flush=function(){var e=this;if(!(e.queue.length<=0)){var t={series:this.queue},n={"Content-Type":"text/plain"};e.queue=[];"xhr"===r.type&&r("https://"+this.host+"/m",t,n,function(e,n){a("sent %O, received %O",t,[e,n])})}};t.exports=i(new o);t.exports.Metrics=o},{"@segment/send-json":811,"bind-all":818,"debug":835}],30:[function(e,t,n){"use strict";function o(e,t){function n(e){return!(!s(e,t)&&"all"!==e.toLowerCase()&&!s(e.toLowerCase(),o))}var o=c(function(e){return e.toLowerCase()},t),l=e.options||{},f=l.integrations||{},m=l.providers||{},g=l.context||{},h={};i("<-",e);a(function(e,t){if(n(t)){u.call(f,t)||(f[t]=e);delete l[t]}},l);delete l.providers;a(function(e,t){n(t)&&"object"!==p(f[t])&&(u.call(f,t)&&"boolean"==typeof m[t]||(f[t]=e))},m);a(function(e,t){s(t,d)?h[t]=l[t]:g[t]=l[t]},l);delete e.options;h.integrations=f;h.context=g;h=r(h,e);i("->",h);return h}var i=e("debug")("analytics.js:normalize"),r=e("@ndhoule/defaults"),a=e("@ndhoule/each"),s=e("@ndhoule/includes"),c=e("@ndhoule/map"),p=e("component-type"),u=Object.prototype.hasOwnProperty;t.exports=o;var d=["integrations","anonymousId","timestamp","context"]},{"@ndhoule/defaults":8,"@ndhoule/each":10,"@ndhoule/includes":15,"@ndhoule/map":17,"component-type":831,"debug":835}],31:[function(e,t,n){"use strict";function o(){return{path:i(),referrer:document.referrer,search:location.search,title:document.title,url:r(location.search)}}function i(){var e=a();return e?c.parse(e).pathname:window.location.pathname}function r(e){var t=a();if(t)return s("?",t)?t:t+e;var n=window.location.href,o=n.indexOf("#");return-1===o?n:n.slice(0,o)}var a=e("@segment/canonical"),s=e("@ndhoule/includes"),c=e("component-url");t.exports=o},{"@ndhoule/includes":15,"@segment/canonical":793,"component-url":832}],32:[function(e,t,n){"use strict";function o(e){this.options(e)}var i=e("bind-all"),r=e("@ndhoule/defaults"),a=e("@segment/store");o.prototype.options=function(e){if(0===arguments.length)return this._options;e=e||{};r(e,{enabled:!0});this.enabled=e.enabled&&a.enabled;this._options=e};o.prototype.set=function(e,t){return!!this.enabled&&a.set(e,t)};o.prototype.get=function(e){return this.enabled?a.get(e):null};o.prototype.remove=function(e){return!!this.enabled&&a.remove(e)};t.exports=i(new o);t.exports.Store=o},{"@ndhoule/defaults":8,"@segment/store":812,"bind-all":818}],33:[function(e,t,n){"use strict";function o(e){this.defaults=o.defaults;this.debug=s;i.call(this,e)}var i=e("./entity"),r=e("bind-all"),a=e("./cookie"),s=e("debug")("analytics:user"),c=e("inherits"),p=e("component-cookie"),u=e("uuid");o.defaults={persist:!0,cookie:{key:"ajs_user_id",oldKey:"ajs_user"},localStorage:{key:"ajs_user_traits"}};c(o,i);o.prototype.id=function(e){var t=this._getId(),n=i.prototype.id.apply(this,arguments);if(null==t)return n;t!=e&&e&&this.anonymousId(null);return n};o.prototype.anonymousId=function(e){var t=this.storage();if(arguments.length){t.set("ajs_anonymous_id",e);return this}e=t.get("ajs_anonymous_id");if(e)return e;e=p("_sio");if(e){e=e.split("----")[0];t.set("ajs_anonymous_id",e);t.remove("_sio");return e}e=u.v4();t.set("ajs_anonymous_id",e);return t.get("ajs_anonymous_id")};o.prototype.logout=function(){i.prototype.logout.call(this);this.anonymousId(null)};o.prototype.load=function(){this._loadOldCookie()||i.prototype.load.call(this)};o.prototype._loadOldCookie=function(){var e=a.get(this._options.cookie.oldKey);if(!e)return!1;this.id(e.id);this.traits(e.traits);a.remove(this._options.cookie.oldKey);return!0};t.exports=r(new o);t.exports.User=o},{"./cookie":24,"./entity":25,"bind-all":818,"component-cookie":822,"debug":835,"inherits":843,"uuid":902}],34:[function(e,t,n){t.exports={"_args":[[{"raw":"@segment/analytics.js-core@3.6.0","scope":"@segment","escapedName":"@segment%2fanalytics.js-core","name":"@segment/analytics.js-core","rawSpec":"3.6.0","spec":"3.6.0","type":"version"},"/home/circleci/project"]],"_from":"@segment/analytics.js-core@3.6.0","_id":"@segment/analytics.js-core@3.6.0","_inCache":!0,"_location":"/@segment/analytics.js-core","_nodeVersion":"4.9.1","_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/analytics.js-core_3.6.0_1525912944164_0.8279452315000675"},"_npmUser":{"name":"segment-admin","email":"tools+npm@segment.com"},"_npmVersion":"2.15.11","_phantomChildren":{},"_requested":{"raw":"@segment/analytics.js-core@3.6.0","scope":"@segment","escapedName":"@segment%2fanalytics.js-core","name":"@segment/analytics.js-core","rawSpec":"3.6.0","spec":"3.6.0","type":"version"},"_requiredBy":["#DEV:/","#USER"],"_resolved":"https://registry.npmjs.org/@segment/analytics.js-core/-/analytics.js-core-3.6.0.tgz","_shasum":"bb355d13f3112ac75d6b99f7b3b0aeb350dfa880","_shrinkwrap":null,"_spec":"@segment/analytics.js-core@3.6.0","_where":"/home/circleci/project","author":{"name":"Segment","email":"friends@segment.com"},"bugs":{"url":"https://github.com/segmentio/analytics.js-core/issues"},"dependencies":{"@ndhoule/after":"^1.0.0","@ndhoule/clone":"^1.0.0","@ndhoule/defaults":"^2.0.1","@ndhoule/each":"^2.0.1","@ndhoule/extend":"^2.0.0","@ndhoule/foldl":"^2.0.1","@ndhoule/includes":"^2.0.1","@ndhoule/keys":"^2.0.0","@ndhoule/map":"^2.0.1","@ndhoule/pick":"^2.0.0","@segment/canonical":"^1.0.0","@segment/is-meta":"^1.0.0","@segment/isodate":"^1.0.2","@segment/isodate-traverse":"^1.0.1","@segment/prevent-default":"^1.0.0","@segment/send-json":"^3.0.0","@segment/store":"^1.3.20","@segment/top-domain":"^3.0.0","bind-all":"^1.0.0","component-cookie":"^1.1.2","component-emitter":"^1.2.1","component-event":"^0.1.4","component-querystring":"^2.0.0","component-type":"^1.2.1","component-url":"^0.2.1","debug":"^0.7.4","extend":"3.0.1","inherits":"^2.0.1","install":"^0.7.3","is":"^3.1.0","json3":"^3.3.2","new-date":"^1.0.0","next-tick":"^0.2.2","segmentio-facade":"^3.0.2","uuid":"^2.0.2"},"description":"The hassle-free way to integrate analytics into any web application.","devDependencies":{"@segment/analytics.js-integration":"^3.2.1","@segment/eslint-config":"^3.1.1","browserify":"13.0.0","compat-trigger-event":"^1.0.0","component-each":"^0.2.6","eslint":"^2.9.0","eslint-plugin-mocha":"^2.2.0","eslint-plugin-require-path-exists":"^1.1.5","jquery":"^3.2.1","karma":"1.3.0","karma-browserify":"^5.0.4","karma-chrome-launcher":"^1.0.1","karma-coverage":"^1.0.0","karma-junit-reporter":"^1.0.0","karma-mocha":"1.0.1","karma-phantomjs-launcher":"^1.0.0","karma-sauce-launcher":"^1.0.0","karma-spec-reporter":"0.0.26","mocha":"^2.2.5","phantomjs-prebuilt":"^2.1.7","proclaim":"^3.4.1","sinon":"^1.7.3","watchify":"^3.7.0"},"directories":{},"dist":{"shasum":"bb355d13f3112ac75d6b99f7b3b0aeb350dfa880","tarball":"https://registry.npmjs.org/@segment/analytics.js-core/-/analytics.js-core-3.6.0.tgz","fileCount":34,"unpackedSize":196499,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJa85VwCRA9TVsSAnZWagAAvA8QAJ9mG6auKMgjGJQT+vUF\nMXXTl/5S9QxWCjfihdDEzF1/F66lnbxkdm6htaqY5x8EgrQzkYVWAmqIIyJv\nbtg3tx9klCHbTWDHVLQGLDWnLBHuxKcmi0r4GNTY98SixQ1gbcVeLSXHCVhA\naC+pmV1h8yruzjInyFjk6fN8/NZ3QJYLT11gHVTaqjlW+WyVA1khW6tEDgLk\nrjmnwcj51ye16GUZ3N5iWj+zF02ViFwUzU+/dSJbVgYEUQmzFN/r2HdWYME4\n6FLGhCAHZONLMSzxdKCC1kgcC3DcRzfWAqJiEbTLgwu+YABUBXILGLssn04d\n+EYB+Oarm5CttESFBa9ky15zp3LkM+WLIJzzW3PFEYAeP3yv5BxM2D9cWFlv\nt4z4A7JgFX+o5xuYPrF36+/NyiC1PIBArgKVOmg6t0V+J4QKTG1fXAH4WTsx\nw9PXSrg+CGtNHHgece+i55n7IlbMiHxxbK9mFDA0Pa5SFVyNrT+Wt+O3D7pI\n12JGmAZF4k6gi+MCRU5Mv/c/ZQ5s2G+Y0KlLlrkSaMt8UldmSCExe15mPGZ4\ngMny4CjfLqj4JZAJUOB28gCrTceJQ4KWt47xXRuJecV4TDKGpgxnlzOT/CPb\niwa6O3pKCMuzzktQFL999AQPB+BsyaFbuqYhkiWhfjdEcLsJMRf50kCuBBcQ\n6h8s\r\n=NuQm\r\n-----END PGP SIGNATURE-----\r\n"},"gitHead":"77215a1a888752f4b049e2ce35d825f25cf7f0e0","homepage":"https://github.com/segmentio/analytics.js-core#readme","keywords":["analytics","analytics.js","segment","segment.io"],"license":"SEE LICENSE IN LICENSE","main":"lib/index.js","maintainers":[{"name":"achille-roussel","email":"achille.roussel@gmail.com"},{"name":"alan-segment","email":"alan@segment.com"},{"name":"albert.segment","email":"albert@segment.com"},{"name":"andreiko_ru","email":"mail@andreiko.ru"},{"name":"anoonan","email":"amnoonann@gmail.com"},{"name":"atrivedi1","email":"akash@segment.com"},{"name":"bgamwell","email":"brennan@segment.com"},{"name":"boggsboggs","email":"john.boggs@segment.com"},{"name":"calvinfo","email":"calvin@calv.info"},{"name":"carlosmecha","email":"mecha.carlos@gmail.com"},{"name":"ccnixon","email":"chrisnxn@gmail.com"},{"name":"chrisbuttery","email":"info@chrisbuttery.com"},{"name":"codenameatlas","email":"anavarrete255@gmail.com"},{"name":"dfuentes","email":"daniel.richard.fuentes@gmail.com"},{"name":"dominicbarnes","email":"dominic@dbarnes.info"},{"name":"dscrobonia","email":"davidscrobonia@gmail.com"},{"name":"eesegment","email":"eric.ellett@segment.com"},{"name":"ejcx","email":"evan@segment.com"},{"name":"emilio-gomez-lavin","email":"emilio@segment.com"},{"name":"emily.luckette","email":"emily@segment.com"},{"name":"erickimsegment","email":"eric@segment.com"},{"name":"f2prateek","email":"f2prateek@gmail.com"},{"name":"fforres","email":"felipe.torressepulveda@gmail.com"},{"name":"gnijor","email":"nijor22@gmail.com"},{"name":"hanothan","email":"hankim813@gmail.com"},{"name":"ivolo","email":"ilya@segment.io"},{"name":"jamesmcguinness","email":"james.mcguinness@segment.com"},{"name":"jeroenransijn","email":"jssrdesign@gmail.com"},{"name":"jfabre-segment","email":"julien@segment.com"},{"name":"jfmaggie","email":"jfmaggie@gmail.com"},{"name":"jlee9595","email":"justin@segment.com"},{"name":"joeybloggs","email":"dean@segment.com"},{"name":"josh_segment","email":"josh@segment.com"},{"name":"ladanazita","email":"ladanazita@gmail.com"},{"name":"lauramunozjimenez","email":"laura.munoz@segment.com"},{"name":"leifdreizler","email":"leifdreizler@gmail.com"},{"name":"mag"},{"name":"maxence-charriere","email":"charriere@outlook.com"},{"name":"monicadamborenea","email":"monica@segment.com"},{"name":"msanterre","email":"mooxeh@gmail.com"},{"name":"n2parko","email":"kevin@segment.com"},{"name":"nettofarah","email":"nettofarah@gmail.com"},{"name":"nielst","email":"NTerwiesch@gmail.com"},{"name":"notfelineit","email":"notfelineit@gmail.com"},{"name":"nzoschke","email":"nzoschke@gmail.com"},{"name":"peripheral","email":"peter.h.richmond@gmail.com"},{"name":"rarchana2001asu","email":"archana@segment.com"},{"name":"rlc4","email":"rickyconnell@gmail.com"},{"name":"rowno","email":"rowno@webspirited.com"},{"name":"rpaul80","email":"rpaul80@gmail.com"},{"name":"sahilp","email":"sahil@segment.com"},{"name":"segment-admin","email":"tools+npm@segment.com"},{"name":"segment-anastassia","email":"anastassia@segment.com"},{"name":"segment-andy-yeo","email":"andy.yeo@segment.com"},{"name":"segment-cyammine","email":"chris.yammine@segment.com"},{"name":"segment-danielstjules","email":"danielst.jules@segment.com"},{"name":"segment-scott","email":"scott@segment.com"},{"name":"segment-ulysse","email":"ulysse@segment.com"},{"name":"segmentaimee","email":"aimee@segment.com"},{"name":"segmentio","email":"tools@segment.com"},{"name":"segmentmfischer","email":"michael.fischer@segment.com"},{"name":"sperand-io","email":"chris@sperand.io"},{"name":"srthurman","email":"srthurman@gmail.com"},{"name":"systemizer","email":"robmcqn@gmail.com"},{"name":"tamarrow","email":"tamarrow@gmail.com"},{"name":"tejasmanohar","email":"me@tejas.io"},{"name":"tyson_segment","email":"tyson@segment.com"},{"name":"vdemedes","email":"vdemedes@gmail.com"},{"name":"willallison","email":"will.allison@segment.com"},{"name":"williams-blake","email":"blake@segment.com"},{"name":"xagos","email":"xavier.agostini@mail.mcgill.ca"},{"name":"yields","email":"yields@icloud.com"}],"name":"@segment/analytics.js-core","optionalDependencies":{},"readme":"ERROR: No README data found!","repository":{"type":"git","url":"git+https://github.com/segmentio/analytics.js-core.git"},"scripts":{"test":"make test"},"version":"3.6.0"}},{}],35:[function(e,t,n){;var i=e("@segment/analytics.js-integration");t.exports=function(){};t.exports.Integration=i("empty");},{"@ndhoule/each":10,"@segment/analytics.js-integration":36}],36:[function(e,t,n){"use strict";function o(e){function t(n){if(n&&n.addIntegration)return n.addIntegration(t);this.debug=a("analytics:integration:"+p(e));this.options=s(r(n)||{},this.defaults);this._queue=[];this.once("ready",i(this,this.flush));t.emit("construct",this);this.ready=i(this,this.ready);this._wrapInitialize();this._wrapPage();this._wrapTrack()}t.prototype.defaults={};t.prototype.globals=[];t.prototype.templates={};t.prototype.name=e;c(t,d);c(t.prototype,u);return t}var i=e("component-bind"),r=e("@ndhoule/clone"),a=e("debug"),s=e("@ndhoule/defaults"),c=e("@ndhoule/extend"),p=e("slug-component"),u=e("./protos"),d=e("./statics");t.exports=o},{"./protos":37,"./statics":38,"@ndhoule/clone":7,"@ndhoule/defaults":8,"@ndhoule/extend":13,"component-bind":820,"debug":40,"slug-component":884}],37:[function(e,t,n){"use strict";function o(e){return g.array(e)?l(i,e)?"mixed":"array":g.object(e)?"map":"unknown"}function i(e){return!!g.object(e)&&(!!g.string(e.key)&&!!b.call(e,"value"))}function r(e,t){t=t||function(){};var n=new Image;n.onerror=a(t,"failed to load pixel",n);n.onload=function(){t()};n.src=e.src;n.width=1;n.height=1;return n}function a(e,t,n){return function(o){o=o||window.event;var i=new Error(t);i.event=o;i.source=n;e(i)}}function s(e,t){return m(function(e,n,o){e[o]=n.replace(/\{\{\ *(\w+)\ *\}\}/g,function(e,n){return t[n]});return e},{},e.attrs)}var c=e("component-emitter"),p=e("@ndhoule/after"),u=e("@ndhoule/each"),d=e("analytics-events"),l=e("@ndhoule/every"),f=e("@segment/fmt"),m=e("@ndhoule/foldl"),g=e("is"),h=e("load-iframe"),y=e("@segment/load-script"),v=e("next-tick"),w=e("to-no-case"),b=Object.prototype.hasOwnProperty,_=function(){},k=window.onerror;c(n);n.initialize=function(){var e=this.ready;v(e)};n.loaded=function(){return!1};n.page=function(e){};n.track=function(e){};n.map=function(e,t){var n=w(t),i=o(e);return"unknown"===i?[]:m(function(e,t,o){var r,a;if("map"===i){r=o;a=t}if("array"===i){r=t;a=t}if("mixed"===i){r=t.key;a=t.value}w(r)===n&&e.push(a);return e},[],e)};n.invoke=function(e){if(this[e]){var t=Array.prototype.slice.call(arguments,1);if(!this._ready)return this.queue(e,t);this.debug("%s with %o",e,t);return this[e].apply(this,t)}};n.queue=function(e,t){if("page"===e&&this._assumesPageview&&!this._initialized)return this.page.apply(this,t);this._queue.push({method:e,args:t})};n.flush=function(){this._ready=!0;var e=this;u(function(t){e[t.method].apply(e,t.args)},this._queue);this._queue.length=0};n.reset=function(){for(var e=0;e=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))}function r(e){var t=this.useColors;e[0]=(t?"%c":"")+this.namespace+(t?" %c":" ")+e[0]+(t?"%c ":" ")+"+"+n.humanize(this.diff);if(t){var o="color: "+this.color;e.splice(1,0,o,"color: inherit");var i=0,r=0;e[0].replace(/%[a-zA-Z%]/g,function(e){if("%%"!==e){i++;"%c"===e&&(r=i)}});e.splice(r,0,o)}}function a(){return"object"==typeof console&&console.log&&Function.prototype.apply.call(console.log,console,arguments)}function s(e){try{null==e?n.storage.removeItem("debug"):n.storage.debug=e}catch(t){}}function c(){var e;try{e=n.storage.debug}catch(t){}!e&&void 0!==o&&"env"in o&&(e=o.env.DEBUG);return e}n=t.exports=e("./debug");n.log=a;n.formatArgs=r;n.save=s;n.load=c;n.useColors=i;n.storage="undefined"!=typeof chrome&&"undefined"!=typeof chrome.storage?chrome.storage.local:function(){try{return window.localStorage}catch(e){}}();n.colors=["lightseagreen","forestgreen","goldenrod","dodgerblue","darkorchid","crimson"];n.formatters.j=function(e){try{return JSON.stringify(e)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}};n.enable(c())}).call(this,e("_process"))},{"./debug":41,"_process":869}],41:[function(e,t,n){function o(e){var t,o=0;for(t in e){o=(o<<5)-o+e.charCodeAt(t);o|=0}return n.colors[Math.abs(o)%n.colors.length]}function i(e){function t(){if(t.enabled){var e=t,o=+new Date,i=o-(p||o);e.diff=i;e.prev=p;e.curr=o;p=o;for(var r=new Array(arguments.length),a=0;a=200&&n.status<300?t(null,n.responseText?l.parse(n.responseText):null):t(n.statusText||"Unknown Error",null))};n.send()}function a(e){return e.split(".").splice(-2).join(".")}var s=e("@segment/ad-params"),c=e("component-clone"),p=e("component-cookie"),u=e("@ndhoule/extend"),d=e("@segment/analytics.js-integration"),l=e("json3"),f=e("@ndhoule/keys"),m=e("yields-store"),g=e("spark-md5").hash,h=e("@segment/protocol"),y=e("@segment/send-json"),v=e("@segment/top-domain"),w=e("@segment/utm-params"),b=e("uuid").v4,_=e("@segment/localstorage-retry"),k={maxage:31536e6,secure:!1,path:"/"},x={maxRetryDelay:36e4,minRetryDelay:1e3,backoffFactor:2,maxAttempts:10,maxItems:100},j=n=t.exports=d("Segment.io").option("apiKey","").option("apiHost","api.segment.io/v1").option("crossDomainIdServers",[]).option("retryQueue",!1).option("addBundledMetadata",!1).option("unbundledIntegrations",[]);n.storage=function(){return"file:"===h()||"chrome-extension:"===h()?m:p};n.global=window;n.sendJsonWithTimeout=function(e,t,n,o,i){function r(){if(4===a.readyState)return i(null,a)}if("xhr"===y.type){var a=new XMLHttpRequest;a.onerror=i;a.onreadystatechange=r;a.open("POST",e,!0);a.timeout=o;a.ontimeout=i;for(var s in n)a.setRequestHeader(s,n[s]);a.send(l.stringify(t))}else y(e,t,n,i)};j.prototype.initialize=function(){var e=this;if(this.options.retryQueue){this._lsqueue=new _("segmentio",x,function(t,n){t.msg.sentAt=new Date;j.sendJsonWithTimeout(t.url,t.msg,t.headers,1e4,function(o,i){e.debug("sent %O, received %O",t.msg,[o,i]);if(o)return n(o);n(null,i)})});this._lsqueue.start()}this.ready();this.analytics.on("invoke",function(t){var n=t.action(),o="on"+t.action();e.debug("%s %o",n,t);e[o]&&e[o](t);e.ready()});if(this.cookie("segment_cross_domain_id")){this.cookie("seg_xid",this.cookie("segment_cross_domain_id"));this.cookie("seg_xid_fd",this.cookie("segment_cross_domain_id_from_domain"));this.cookie("seg_xid_ts",this.cookie("segment_cross_domain_id_timestamp"));this.cookie("segment_cross_domain_id",null);this.cookie("segment_cross_domain_id_from_domain",null);this.cookie("segment_cross_domain_id_timestamp",null)}this.options.crossDomainIdServers&&this.options.crossDomainIdServers.length>0&&this.retrieveCrossDomainId()};j.prototype.loaded=function(){return!0};j.prototype.onpage=function(e){this.enqueue("/p",e.json())};j.prototype.onidentify=function(e){this.enqueue("/i",e.json())};j.prototype.ongroup=function(e){this.enqueue("/g",e.json())};j.prototype.ontrack=function(e){var t=e.json();delete t.traits;this.enqueue("/t",t)};j.prototype.onalias=function(e){var t=e.json(),n=this.analytics.user();t.previousId=t.previousId||t.from||n.id()||n.anonymousId();t.userId=t.userId||t.to;delete t.from;delete t.to;this.enqueue("/a",t)};j.prototype.normalize=function(e){this.debug("normalize %o",e);var t=this.analytics.user(),o=n.global,i=o.location.search,r=e.context=e.context||e.options||{};delete e.options;e.writeKey=this.options.apiKey;r.userAgent=navigator.userAgent;r.library||(r.library={name:"analytics.js",version:this.analytics.VERSION});var a=this.cookie("seg_xid");a&&(r.traits?r.traits.crossDomainId||(r.traits.crossDomainId=a):r.traits={crossDomainId:a});i&&!r.campaign&&(r.campaign=w(i));this.referrerId(i,r);e.userId=e.userId||t.id();e.anonymousId=t.anonymousId();e.sentAt=new Date;var s=this.analytics.failedInitializations||[];s.length>0&&(e._metadata={failedInitializations:s});if(this.options.addBundledMetadata){var c=f(this.analytics.Integrations);e._metadata=e._metadata||{};e._metadata.bundled=c;e._metadata.unbundled=this.options.unbundledIntegrations}e.messageId="ajs-"+g(l.stringify(e)+b());this.debug("normalized %o",e);this.ampId(r);return e};j.prototype.ampId=function(e){var t=this.cookie("segment_amp_id");t&&(e.amp={id:t})};j.prototype.enqueue=function(e,t,n){var o="https://"+this.options.apiHost+e,i={"Content-Type":"text/plain"};t=this.normalize(t);l.stringify(t).length>32e3&&this.debug("message must be less than 32kb %O",t);this.debug("enqueueing %O",t);var r=this;this.options.retryQueue?this._lsqueue.addItem({url:o,headers:i,msg:t}):y(o,t,i,function(e,o){r.debug("sent %O, received %O",t,[e,o]);if(n){if(e)return n(e);n(null,o)}})};j.prototype.cookie=function(e,t){var o=j.storage();if(1===arguments.length)return o(e);var i=n.global,r=i.location.href,a="."+v(r);"."===a&&(a="");this.debug("store domain %s -> %s",r,a);var s=c(k);s.domain=a;this.debug("store %s, %s, %o",e,t,s);o(e,t,s);if(!o(e)){delete s.domain;this.debug("fallback store %s, %s, %o",e,t,s);o(e,t,s)}};j.prototype.referrerId=function(e,t){var n,o=this.cookie("s:context.referrer");o&&(o=l.parse(o));e&&(n=s(e));n=n||o;if(n){t.referrer=u(t.referrer||{},n);this.cookie("s:context.referrer",l.stringify(n))}};j.prototype.retrieveCrossDomainId=function(e){if(this.options.crossDomainIdServers){if(!this.cookie("seg_xid")){for(var t=this,n=this.options.apiKey,i=a(window.location.hostname),r=[],s=0;s>2;s=(3&t)<<4|n>>4;c=(15&n)<<2|o>>6;p=63&o;isNaN(n)?c=p=64:isNaN(o)&&(p=64);u=u+r.charAt(a)+r.charAt(s)+r.charAt(c)+r.charAt(p)}return u}var i=e("utf8-encode"),r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";t.exports=o},{"utf8-encode":900}],793:[function(e,t,n){"use strict";function o(){for(var e,t=document.getElementsByTagName("link"),n=0;e=t[n];n++)if("canonical"===e.getAttribute("rel"))return e.getAttribute("href")}t.exports=o},{}],794:[function(e,t,n){"use strict";function o(e,t){e=i(e);r(function(n,i){"date"===a(n)&&(e[i]=t(n));"object"!==a(n)&&"array"!==a(n)||(e[i]=o(n,t))},e);return e}var i=e("@ndhoule/clone"),r=e("@ndhoule/each"),a=e("component-type");t.exports=o},{"@ndhoule/clone":7,"@ndhoule/each":10,"component-type":831}],795:[function(e,t,n){(function(e){"use strict";function n(e){var t=Array.prototype.slice.call(arguments,1),o=0;return e.replace(/%([a-z])/gi,function(e,i){return n[i]?n[i](t[o++]):e+i})}var o=e.JSON&&"function"==typeof JSON.stringify?JSON.stringify:String;n.o=o;n.s=String;n.d=parseInt;t.exports=n}).call(this,"undefined"!=typeof window&&window.document&&window.document.implementation?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{})},{}],796:[function(e,t,n){"use strict";function o(e){if(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)return!0;var t=e.which,n=e.button;return t||n===undefined?2===t:1&!n&&2&!n&&4&n}t.exports=o},{}],797:[function(e,t,n){"use strict";function o(e,t){t===undefined&&(t=!0);return"object"===a(e)?i(e,t):"array"===a(e)?r(e,t):e}function i(e,t){if(e.length&&"number"==typeof e.length&&!(e.length-1 in e)){e.lengthNonArray=e.length;delete e.length}s(e,function(n,i){c.is(i,t)?e[n]=c.parse(i):"object"!==a(i)&&"array"!==a(i)||o(i,t)});if(e.lengthNonArray){e.length=e.lengthNonArray;delete e.lengthNonArray}return e}function r(e,t){s(e,function(n,i){"object"===a(n)?o(n,t):c.is(n,t)&&(e[i]=c.parse(n))});return e}var a=e("component-type"),s=e("component-each"),c=e("@segment/isodate");t.exports=o},{"@segment/isodate":798,"component-each":823,"component-type":831}],798:[function(e,t,n){"use strict";var o=/^(\d{4})(?:-?(\d{2})(?:-?(\d{2}))?)?(?:([ T])(\d{2}):?(\d{2})(?::?(\d{2})(?:[,\.](\d{1,}))?)?(?:(Z)|([+\-])(\d{2})(?::?(\d{2}))?)?)?$/;n.parse=function(e){var t=[1,5,6,7,11,12],n=o.exec(e),i=0;if(!n)return new Date(e);for(var r,a=0;r=t[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])i=(new Date).getTimezoneOffset();else if("Z"!==n[9]&&n[10]){i=60*n[11]+n[12];"+"===n[10]&&(i=0-i)}var s=Date.UTC(n[1],n[2],n[3],n[5],n[6]+i,n[7],n[8]);return new Date(s)};n.is=function(e,t){return"string"==typeof e&&((!t||!1!==/^\d{4}-\d{2}-\d{2}/.test(e))&&o.test(e))} },{}],799:[function(e,t,n){"use strict";function o(e,t){if(!e)throw new Error("Can't load nothing...");"string"===a(e)&&(e={src:e});var n="https:"===document.location.protocol||"chrome-extension:"===document.location.protocol;e.src&&0===e.src.indexOf("//")&&(e.src=(n?"https:":"http:")+e.src);n&&e.https?e.src=e.https:!n&&e.http&&(e.src=e.http);var o=document.createElement("script");o.type="text/javascript";o.async=!0;o.src=e.src;"function"===a(t)&&i(o,t);r(function(){var e=document.getElementsByTagName("script")[0];e.parentNode.insertBefore(o,e)});return o}var i=e("script-onload"),r=e("next-tick"),a=e("component-type");t.exports=o},{"component-type":831,"next-tick":862,"script-onload":871}],800:[function(e,t,n){"use strict";function o(){try{if(!window.localStorage)return!1;var e=r();window.localStorage.setItem(e,"test_value");var t=window.localStorage.getItem(e);window.localStorage.removeItem(e);return"test_value"===t}catch(n){return!1}}var i=e("@ndhoule/keys"),r=e("uuid").v4,a={_data:{},length:0,setItem:function(e,t){this._data[e]=t;this.length=i(this._data).length;return t},getItem:function(e){return e in this._data?this._data[e]:null},removeItem:function(e){e in this._data&&delete this._data[e];this.length=i(this._data).length;return null},clear:function(){this._data={};this.length=0},key:function(e){return i(this._data)[e]}};t.exports.defaultEngine=function(){return o()?window.localStorage:a}();t.exports.inMemoryEngine=a},{"@ndhoule/keys":16,"uuid":804}],801:[function(e,t,n){"use strict";function o(e,t){return function(){return e.apply(t,arguments)}}function i(e,t,n){"function"==typeof t&&(n=t);this.name=e;this.id=r();this.fn=n;this.maxItems=t.maxItems||Infinity;this.maxAttempts=t.maxAttempts||Infinity;this.backoff={MIN_RETRY_DELAY:t.minRetryDelay||1e3,MAX_RETRY_DELAY:t.maxRetryDelay||3e4,FACTOR:t.backoffFactor||2,JITTER:t.backoffJitter||0};this.timeouts={ACK_TIMER:1e3,RECLAIM_TIMER:3e3,RECLAIM_TIMEOUT:1e4,RECLAIM_WAIT:500};this.keys={IN_PROGRESS:"inProgress",QUEUE:"queue",ACK:"ack",RECLAIM_START:"reclaimStart",RECLAIM_END:"reclaimEnd"};this._schedule=new c;this._processId=0;this._store=new a(this.name,this.id,this.keys);this._store.set(this.keys.IN_PROGRESS,{});this._store.set(this.keys.QUEUE,[]);this._ack=o(this._ack,this);this._checkReclaim=o(this._checkReclaim,this);this._processHead=o(this._processHead,this);this._running=!1}var r=e("uuid").v4,a=e("./store"),s=e("@ndhoule/each"),c=e("./schedule"),p=e("debug")("localstorage-retry");e("component-emitter")(i.prototype);i.prototype.start=function(){this._running&&this.stop();this._running=!0;this._ack();this._checkReclaim();this._processHead()};i.prototype.stop=function(){this._schedule.cancelAll();this._running=!1};i.prototype.shouldRetry=function(e,t){return!(t>this.maxAttempts)};i.prototype.getDelay=function(e){var t=this.backoff.MIN_RETRY_DELAY*Math.pow(this.backoff.FACTOR,e);if(this.backoff.JITTER){var n=Math.random(),o=Math.floor(n*this.backoff.JITTER*t);Math.floor(10*n)<5?t-=o:t+=o}return Number(Math.min(t,this.backoff.MAX_RETRY_DELAY).toPrecision(1))};i.prototype.addItem=function(e){this._enqueue({item:e,attemptNumber:0,time:this._schedule.now()})};i.prototype.requeue=function(e,t,n){this.shouldRetry(e,t,n)?this._enqueue({item:e,attemptNumber:t,time:this._schedule.now()+this.getDelay(t)}):this.emit("discard",e,t)};i.prototype._enqueue=function(e){var t=this._store.get(this.keys.QUEUE)||[];t=t.slice(-(this.maxItems-1));t.push(e);t=t.sort(function(e,t){return e.time-t.time});this._store.set(this.keys.QUEUE,t);this._running&&this._processHead()};i.prototype._processHead=function(){var e=this,t=this._store;this._schedule.cancel(this._processId);for(var n=t.get(this.keys.QUEUE)||[],o=t.get(this.keys.IN_PROGRESS)||{},i=this._schedule.now(),a=[];n.length&&n[0].time<=i;){var c=n.shift(),u=r();o[u]={item:c.item,attemptNumber:c.attemptNumber,time:this._schedule.now()};a.push({item:c.item,done:function(n,o){var i=t.get(e.keys.IN_PROGRESS)||{};delete i[u];t.set(e.keys.IN_PROGRESS,i);e.emit("processed",n,o,c.item);n&&e.requeue(c.item,c.attemptNumber+1,n)}})}t.set(this.keys.QUEUE,n);t.set(this.keys.IN_PROGRESS,o);s(function(t){try{e.fn(t.item,t.done)}catch(n){p("Process function threw error: "+n)}},a);n=t.get(this.keys.QUEUE)||[];this._schedule.cancel(this._processId);n.length>0&&(this._processId=this._schedule.run(this._processHead,n[0].time-i))};i.prototype._ack=function(){this._store.set(this.keys.ACK,this._schedule.now());this._store.set(this.keys.RECLAIM_START,null);this._store.set(this.keys.RECLAIM_END,null);this._schedule.run(this._ack,this.timeouts.ACK_TIMER)};i.prototype._checkReclaim=function(){function e(e){e.set(t.keys.RECLAIM_START,t.id);e.set(t.keys.ACK,t._schedule.now());t._schedule.run(function(){if(e.get(t.keys.RECLAIM_START)===t.id){e.set(t.keys.RECLAIM_END,t.id);t._schedule.run(function(){e.get(t.keys.RECLAIM_END)===t.id&&e.get(t.keys.RECLAIM_START)===t.id&&t._reclaim(e.id)},t.timeouts.RECLAIM_WAIT)}},t.timeouts.RECLAIM_WAIT)}var t=this;s(function(n){n.id!==t.id&&(t._schedule.now()-n.get(t.keys.ACK)>>((3&t)<<3)&255}return r}}},{}],807:[function(e,t,n){function o(e,t,n){var o=t&&n||0,u=t||[];e=e||{};var d=e.node||i,l=e.clockseq!==undefined?e.clockseq:r;if(null==d||null==l){var f=a();null==d&&(d=i=[1|f[0],f[1],f[2],f[3],f[4],f[5]]);null==l&&(l=r=16383&(f[6]<<8|f[7]))}var m=e.msecs!==undefined?e.msecs:(new Date).getTime(),g=e.nsecs!==undefined?e.nsecs:p+1,h=m-c+(g-p)/1e4;h<0&&e.clockseq===undefined&&(l=l+1&16383);(h<0||m>c)&&e.nsecs===undefined&&(g=0);if(g>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");c=m;p=g;r=l;m+=122192928e5;var y=(1e4*(268435455&m)+g)%4294967296;u[o++]=y>>>24&255;u[o++]=y>>>16&255;u[o++]=y>>>8&255;u[o++]=255&y;var v=m/4294967296*1e4&268435455;u[o++]=v>>>8&255;u[o++]=255&v;u[o++]=v>>>24&15|16;u[o++]=v>>>16&255;u[o++]=l>>>8|128;u[o++]=255&l;for(var w=0;w<6;++w)u[o+w]=d[w];return t||s(u)}var i,r,a=e("./lib/rng"),s=e("./lib/bytesToUuid"),c=0,p=0;t.exports=o},{"./lib/bytesToUuid":805,"./lib/rng":806}],808:[function(e,t,n){function o(e,t,n){var o=t&&n||0;if("string"==typeof e){t="binary"===e?new Array(16):null;e=null}e=e||{};var a=e.random||(e.rng||i)();a[6]=15&a[6]|64;a[8]=63&a[8]|128;if(t)for(var s=0;s<16;++s)t[o+s]=a[s];return t||r(a)}var i=e("./lib/rng"),r=e("./lib/bytesToUuid");t.exports=o},{"./lib/bytesToUuid":805,"./lib/rng":806}],809:[function(e,t,n){"use strict";function o(e){e=e||window.event;return e.preventDefault?e.preventDefault():e.returnValue=!1}t.exports=o},{}],810:[function(e,t,n){"use strict";function o(){return r||window.location.protocol}function i(e){try{a(window.location,"protocol",{get:function(){return e}})}catch(t){r=e}}var r,a=Object.defineProperty,s=window.location.protocol;t.exports=function(e){return 0===arguments.length?o():i(e)};t.exports.http=function(){i("http:")};t.exports.https=function(){i("https:")};t.exports.reset=function(){i(s)}},{}],811:[function(e,t,n){"use strict";function o(e,t,n,o){function i(){if(4===r.readyState)return o(null,r)}3===arguments.length&&(o=n,n={});var r=new XMLHttpRequest;r.onerror=o;r.onreadystatechange=i;r.open("POST",e,!0);for(var s in n)r.setRequestHeader(s,n[s]);r.send(a.stringify(t))}function i(e,t,o,i){3===arguments.length&&(i=o);var a=n.prefix,s=r(t);e+="?"+a+"="+s;p(e,{param:n.callback},function(t,n){if(t)return i(t);i(null,{url:e,body:n})})}function r(e){var t="";t=a.stringify(e);t=s(t);t=t.replace(/\+/g,"-").replace(/\//g,"_");return encodeURIComponent(t)}var a=e("json3"),s=e("@segment/base64-encode"),c=e("has-cors"),p=e("jsonp");n=t.exports=c?o:i;n.callback="callback";n.prefix="data";n.json=o;n.base64=i;n.type=c?"xhr":"jsonp"},{"@segment/base64-encode":792,"has-cors":842,"json3":851,"jsonp":852}],812:[function(e,t,n){(function(n){"use strict";var o=e("json3");t.exports=function(){var e,t={},i="undefined"!=typeof window?window:n,r=i.document,a="localStorage";t.disabled=!1;t.version="1.3.20";t.set=function(e,t){};t.get=function(e,t){};t.has=function(e){return t.get(e)!==undefined};t.remove=function(e){};t.clear=function(){};t.transact=function(e,n,o){if(null==o){o=n;n=null}null==n&&(n={});var i=t.get(e,n);o(i);t.set(e,i)};t.getAll=function(){var e={};t.forEach(function(t,n){e[t]=n});return e};t.forEach=function(){};t.serialize=function(e){return o.stringify(e)};t.deserialize=function(e){if("string"!=typeof e)return undefined;try{return o.parse(e)}catch(t){return e||undefined}};if(function(){try{return a in i&&i[a]}catch(e){return!1}}()){e=i[a];t.set=function(n,o){if(o===undefined)return t.remove(n);e.setItem(n,t.serialize(o));return o};t.get=function(n,o){var i=t.deserialize(e.getItem(n));return i===undefined?o:i};t.remove=function(t){e.removeItem(t)};t.clear=function(){e.clear()};t.forEach=function(n){for(var o=0;odocument.w=window<\/script>');c.close();s=c.w.frames[0].document;e=s.createElement("div")}catch(f){e=r.createElement("div");s=r.body}var p=function(n){return function(){var o=Array.prototype.slice.call(arguments,0);o.unshift(e);s.appendChild(e);e.addBehavior("#default#userData");e.load(a);var i=n.apply(t,o);s.removeChild(e);return i}},u=new RegExp("[!\"#$%&'()*+,/\\\\:;<=>?@[\\]^`{|}~]","g"),d=function(e){return e.replace(/^d/,"___$&").replace(u,"___")};t.set=p(function(e,n,o){n=d(n);if(o===undefined)return t.remove(n);e.setAttribute(n,t.serialize(o));e.save(a);return o});t.get=p(function(e,n,o){n=d(n);var i=t.deserialize(e.getAttribute(n));return i===undefined?o:i});t.remove=p(function(e,t){t=d(t);e.removeAttribute(t);e.save(a)});t.clear=p(function(e){var t=e.XMLDocument.documentElement.attributes;e.load(a);for(var n=t.length-1;n>=0;n--)e.removeAttribute(t[n].name);e.save(a)});t.forEach=p(function(e,n){for(var o,i=e.XMLDocument.documentElement.attributes,r=0;o=i[r];++r)n(o.name,t.deserialize(e.getAttribute(o.name)))})}try{var l="__storejs__";t.set(l,l);t.get(l)!=l&&(t.disabled=!0);t.remove(l)}catch(f){t.disabled=!0}t.enabled=!t.disabled;return t}()}).call(this,"undefined"!=typeof window&&window.document&&window.document.implementation?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{})},{"json3":851}],813:[function(e,t,n){"use strict";function o(e){var t=e.toString();return 1===t.length?"0"+t:t}function i(e){return e.getUTCFullYear()+"-"+o(e.getUTCMonth()+1)+"-"+o(e.getUTCDate())+"T"+o(e.getUTCHours())+":"+o(e.getUTCMinutes())+":"+o(e.getUTCSeconds())+"."+String((e.getUTCMilliseconds()/1e3).toFixed(3)).slice(2,5)+"Z"}t.exports=i},{}],814:[function(e,t,n){"use strict";function o(e){for(var t=n.cookie,o=n.levels(e),i=0;i=0;--a)r.push(n.slice(a).join("."));return r};o.cookie=r;n=t.exports=o},{"component-cookie":822,"component-url":832}],815:[function(e,t,n){"use strict";function o(e){return!("object"!=typeof e||e instanceof Array)}function i(e,t,n){n||(n={});for(var r=!1,c=0;c>>32-t},rotr:function(e,t){return e<<32-t|e>>>t},endian:function(e){if(e.constructor==Number)return 16711935&n.rotl(e,8)|4278255360&n.rotl(e,24);for(var t=0;t0;e--)t.push(Math.floor(256*Math.random()));return t},bytesToWords:function(e){for(var t=[],n=0,o=0;n>>5]|=e[n]<<24-o%32;return t},wordsToBytes:function(e){for(var t=[],n=0;n<32*e.length;n+=8)t.push(e[n>>>5]>>>24-n%32&255);return t},bytesToHex:function(e){for(var t=[],n=0;n>>4).toString(16));t.push((15&e[n]).toString(16))}return t.join("")},hexToBytes:function(e){for(var t=[],n=0;n>>6*(3-r)&63)):n.push("=");return n.join("")},base64ToBytes:function(t){t=t.replace(/[^A-Z0-9+\/]/gi,"");for(var n=[],o=0,i=0;o>>6-2*i);return n}};t.exports=n}()},{}],834:[function(t,n,o){!function(t){"use strict";function i(e,t){e=String(e);t=t||2;for(;e.length0?"-":"+")+i(100*Math.floor(Math.abs(k)/60)+Math.abs(k)%60,4),S:["th","st","nd","rd"][m%10>3?0:(m%100-m%10!=10)*m%10],W:x,N:j};return p.replace(e,function(e){return e in I?I[e]:e.slice(1,e.length-1)})}}();c.masks={"default":"ddd mmm dd yyyy HH:MM:ss","shortDate":"m/d/yy","mediumDate":"mmm d, yyyy", "longDate":"mmmm d, yyyy","fullDate":"dddd, mmmm d, yyyy","shortTime":"h:MM TT","mediumTime":"h:MM:ss TT","longTime":"h:MM:ss TT Z","isoDate":"yyyy-mm-dd","isoTime":"HH:MM:ss","isoDateTime":"yyyy-mm-dd'T'HH:MM:sso","isoUtcDateTime":"UTC:yyyy-mm-dd'T'HH:MM:ss'Z'","expiresHeaderFormat":"ddd, dd mmm yyyy HH:MM:ss Z"};c.i18n={dayNames:["Sun","Mon","Tue","Wed","Thu","Fri","Sat","Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],monthNames:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec","January","February","March","April","May","June","July","August","September","October","November","December"]};"function"==typeof e&&e.amd?e(function(){return c}):"object"==typeof o?n.exports=c:t.dateFormat=c}(this)},{}],835:[function(e,t,n){function o(e){return o.enabled(e)?function(t){t=i(t);var n=new Date,r=n-(o[e]||n);o[e]=n;t=e+" "+t+" +"+o.humanize(r);window.console&&console.log&&Function.prototype.apply.call(console.log,console,arguments)}:function(){}}function i(e){return e instanceof Error?e.stack||e.message:e}t.exports=o;o.names=[];o.skips=[];o.enable=function(e){try{localStorage.debug=e}catch(r){}for(var t=(e||"").split(/[\s,]+/),n=t.length,i=0;i=36e5?(e/36e5).toFixed(1)+"h":e>=6e4?(e/6e4).toFixed(1)+"m":e>=1e3?(e/1e3|0)+"s":e+"ms"};o.enabled=function(e){for(var t=0,n=o.skips.length;t
a';r=!i.getElementsByTagName("link").length;i=undefined}var a={legend:[1,"
","
"],tr:[2,"","
"],col:[2,"","
"],_default:r?[1,"X
","
"]:[0,"",""]};a.td=a.th=[3,"","
"];a.option=a.optgroup=[1,'"];a.thead=a.tbody=a.colgroup=a.caption=a.tfoot=[1,"","
"];a.polyline=a.ellipse=a.polygon=a.circle=a.text=a.line=a.path=a.rect=a.g=[1,'',""]},{}],838:[function(e,t,n){"use strict";var o=Object.prototype.hasOwnProperty,i=Object.prototype.toString,r=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===i.call(e)},a=function(e){if(!e||"[object Object]"!==i.call(e))return!1;var t=o.call(e,"constructor"),n=e.constructor&&e.constructor.prototype&&o.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!t&&!n)return!1;var r;for(r in e);return void 0===r||o.call(e,r)};t.exports=function s(){var e,t,n,o,i,c,p=arguments[0],u=1,d=arguments.length,l=!1;if("boolean"==typeof p){l=p;p=arguments[1]||{};u=2}(null==p||"object"!=typeof p&&"function"!=typeof p)&&(p={});for(;u=0};d.bool=d["boolean"]=function(e){return"[object Boolean]"===a.call(e)};d["false"]=function(e){return d.bool(e)&&!1===Boolean(Number(e))};d["true"]=function(e){return d.bool(e)&&!0===Boolean(Number(e))};d.date=function(e){return"[object Date]"===a.call(e)};d.date.valid=function(e){return d.date(e)&&!isNaN(Number(e))};d.element=function(e){return e!==undefined&&"undefined"!=typeof HTMLElement&&e instanceof HTMLElement&&1===e.nodeType};d.error=function(e){return"[object Error]"===a.call(e)};d.fn=d["function"]=function(e){if("undefined"!=typeof window&&e===window.alert)return!0;var t=a.call(e);return"[object Function]"===t||"[object GeneratorFunction]"===t||"[object AsyncFunction]"===t};d.number=function(e){return"[object Number]"===a.call(e)};d.infinite=function(e){return e===Infinity||e===-Infinity};d.decimal=function(e){return d.number(e)&&!s(e)&&!d.infinite(e)&&e%1!=0};d.divisibleBy=function(e,t){var n=d.infinite(e),o=d.infinite(t),i=d.number(e)&&!s(e)&&d.number(t)&&!s(t)&&0!==t;return n||o||i&&e%t==0};d.integer=d["int"]=function(e){return d.number(e)&&!s(e)&&e%1==0};d.maximum=function(e,t){if(s(e))throw new TypeError("NaN is not a valid value");if(!d.arraylike(t))throw new TypeError("second argument must be array-like");for(var n=t.length;--n>=0;)if(e=0;)if(e>t[n])return!1;return!0};d.nan=function(e){return!d.number(e)||e!==e};d.even=function(e){return d.infinite(e)||d.number(e)&&e===e&&e%2==0};d.odd=function(e){return d.infinite(e)||d.number(e)&&e===e&&e%2!=0};d.ge=function(e,t){if(s(e)||s(t))throw new TypeError("NaN is not a valid value");return!d.infinite(e)&&!d.infinite(t)&&e>=t};d.gt=function(e,t){if(s(e)||s(t))throw new TypeError("NaN is not a valid value");return!d.infinite(e)&&!d.infinite(t)&&e>t};d.le=function(e,t){if(s(e)||s(t))throw new TypeError("NaN is not a valid value");return!d.infinite(e)&&!d.infinite(t)&&e<=t};d.lt=function(e,t){if(s(e)||s(t))throw new TypeError("NaN is not a valid value");return!d.infinite(e)&&!d.infinite(t)&&e=t&&e<=n};d.object=function(e){return"[object Object]"===a.call(e)};d.primitive=function(e){return!e||!("object"==typeof e||d.object(e)||d.fn(e)||d.array(e))};d.hash=function(e){return d.object(e)&&e.constructor===Object&&!e.nodeType&&!e.setInterval};d.regexp=function(e){return"[object RegExp]"===a.call(e)};d.string=function(e){return"[object String]"===a.call(e)};d.base64=function(e){return d.string(e)&&(!e.length||p.test(e))};d.hex=function(e){return d.string(e)&&(!e.length||u.test(e))};d.symbol=function(e){return"function"==typeof Symbol&&"[object Symbol]"===a.call(e)&&"symbol"==typeof o.call(e)};t.exports=d},{}],847:[function(e,t,n){var o={}.toString;t.exports=Array.isArray||function(e){return"[object Array]"==o.call(e)}},{}],848:[function(e,t,n){"use strict";var o=e("isarray");t.exports=function(e){return null!=e&&"object"==typeof e&&!1===o(e)}},{"isarray":847}],849:[function(e,t,n){function o(e){return"string"==typeof e&&i.test(e)&&!isNaN(Date.parse(e))}t.exports=o;var i=new RegExp("^\\d{4}-\\d{2}-\\d{2}((T\\d{2}:\\d{2}(:\\d{2})?)(\\.\\d{1,6})?(Z|(\\+|-)\\d{2}:\\d{2})?)?$")},{}],850:[function(e,t,n){(function(e,n){!function(o){"use strict";"object"==typeof e&&e.versions&&e.versions.node&&(o=n);var i=!o.JS_SHA256_TEST&&"object"==typeof t&&t.exports,r="0123456789abcdef".split(""),a=[-2147483648,8388608,32768,128],s=[24,16,8,0],c=[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],p=[],u=function(e){return d(e,!0)},d=function(e,t){var n="string"!=typeof e;n&&e.constructor==o.ArrayBuffer&&(e=new Uint8Array(e));var i,u,d,l,f,m,g,h,y,v,w,b,_,k,x,j,I,A,C,S,E,P,T=!0,q=!1,M=0,N=0,O=0,z=e.length;if(t){i=3238371032;u=914150663;d=812702999;l=4144912697;f=4290775857;m=1750603025;g=1694076839;h=3204075428}else{i=1779033703;u=3144134277;d=1013904242;l=2773480762;f=1359893119;m=2600822924;g=528734635;h=1541459225}y=0;do{p[0]=y;p[16]=p[1]=p[2]=p[3]=p[4]=p[5]=p[6]=p[7]=p[8]=p[9]=p[10]=p[11]=p[12]=p[13]=p[14]=p[15]=0;if(n)for(w=N;M>2]|=e[M]<>2]|=v<>2]|=(192|v>>6)<>2]|=(128|63&v)<=57344){p[w>>2]|=(224|v>>12)<>2]|=(128|v>>6&63)<>2]|=(128|63&v)<>2]|=(240|v>>18)<>2]|=(128|v>>12&63)<>2]|=(128|v>>6&63)<>2]|=(128|63&v)<>2]|=a[3&w];++M}y=p[16];if(M>z&&w<56){p[15]=O<<3;q=!0}var L=i,U=u,D=d,R=l,B=f,V=m,F=g,K=h;for(b=16;b<64;++b){j=p[b-15];_=(j>>>7|j<<25)^(j>>>18|j<<14)^j>>>3;j=p[b-2];k=(j>>>17|j<<15)^(j>>>19|j<<13)^j>>>10;p[b]=p[b-16]+_+p[b-7]+k<<0}P=U&D;for(b=0;b<64;b+=4){if(T){if(t){C=300032;j=p[0]-1413257819;K=j-150054599<<0;R=j+24177077<<0}else{C=704751109;j=p[0]-210244248;K=j-1521486534<<0;R=j+143694565<<0}T=!1}else{_=(L>>>2|L<<30)^(L>>>13|L<<19)^(L>>>22|L<<10);k=(B>>>6|B<<26)^(B>>>11|B<<21)^(B>>>25|B<<7);C=L&U;x=C^L&D^P;A=B&V^~B&F;j=K+k+A+c[b]+p[b];I=_+x;K=R+j<<0;R=j+I<<0}_=(R>>>2|R<<30)^(R>>>13|R<<19)^(R>>>22|R<<10);k=(K>>>6|K<<26)^(K>>>11|K<<21)^(K>>>25|K<<7);S=R&L;x=S^R&U^C;A=K&B^~K&V;j=F+k+A+c[b+1]+p[b+1];I=_+x;F=D+j<<0;D=j+I<<0;_=(D>>>2|D<<30)^(D>>>13|D<<19)^(D>>>22|D<<10);k=(F>>>6|F<<26)^(F>>>11|F<<21)^(F>>>25|F<<7);E=D&R;x=E^D&L^S;A=F&K^~F&B;j=V+k+A+c[b+2]+p[b+2];I=_+x;V=U+j<<0;U=j+I<<0;_=(U>>>2|U<<30)^(U>>>13|U<<19)^(U>>>22|U<<10);k=(V>>>6|V<<26)^(V>>>11|V<<21)^(V>>>25|V<<7);P=U&D;x=P^U&R^E;A=V&F^~V&K;j=B+k+A+c[b+3]+p[b+3];I=_+x;B=L+j<<0;L=j+I<<0}i=i+L<<0;u=u+U<<0;d=d+D<<0;l=l+R<<0;f=f+B<<0;m=m+V<<0;g=g+F<<0;h=h+K<<0}while(!q);var H=r[i>>28&15]+r[i>>24&15]+r[i>>20&15]+r[i>>16&15]+r[i>>12&15]+r[i>>8&15]+r[i>>4&15]+r[15&i]+r[u>>28&15]+r[u>>24&15]+r[u>>20&15]+r[u>>16&15]+r[u>>12&15]+r[u>>8&15]+r[u>>4&15]+r[15&u]+r[d>>28&15]+r[d>>24&15]+r[d>>20&15]+r[d>>16&15]+r[d>>12&15]+r[d>>8&15]+r[d>>4&15]+r[15&d]+r[l>>28&15]+r[l>>24&15]+r[l>>20&15]+r[l>>16&15]+r[l>>12&15]+r[l>>8&15]+r[l>>4&15]+r[15&l]+r[f>>28&15]+r[f>>24&15]+r[f>>20&15]+r[f>>16&15]+r[f>>12&15]+r[f>>8&15]+r[f>>4&15]+r[15&f]+r[m>>28&15]+r[m>>24&15]+r[m>>20&15]+r[m>>16&15]+r[m>>12&15]+r[m>>8&15]+r[m>>4&15]+r[15&m]+r[g>>28&15]+r[g>>24&15]+r[g>>20&15]+r[g>>16&15]+r[g>>12&15]+r[g>>8&15]+r[g>>4&15]+r[15&g];t||(H+=r[h>>28&15]+r[h>>24&15]+r[h>>20&15]+r[h>>16&15]+r[h>>12&15]+r[h>>8&15]+r[h>>4&15]+r[15&h]);return H};if(i){d.sha256=d;d.sha224=u;t.exports=d}else if(o){o.sha256=d;o.sha224=u}}(this)}).call(this,e("_process"),"undefined"!=typeof window&&window.document&&window.document.implementation?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{})},{"_process":869}],851:[function(t,n,o){(function(t){(function(){function i(e,t){function n(e){if(n[e]!==h)return n[e];var i;if("bug-string-char-index"==e)i="a"!="a"[0];else if("json"==e)i=n("json-stringify")&&n("json-parse");else{var a,s='{"a":[1,true,false,null,"\\u0000\\b\\n\\f\\r\\t"]}';if("json-stringify"==e){var c=t.stringify,u="function"==typeof c&&w;if(u){(a=function(){return 1}).toJSON=a;try{u="0"===c(0)&&"0"===c(new o)&&'""'==c(new r)&&c(v)===h&&c(h)===h&&c()===h&&"1"===c(a)&&"[1]"==c([a])&&"[null]"==c([h])&&"null"==c(null)&&"[null,null,null]"==c([h,v,null])&&c({"a":[a,!0,!1,null,"\0\b\n\f\r\t"]})==s&&"1"===c(null,a)&&"[\n 1,\n 2\n]"==c([1,2],null,1)&&'"-271821-04-20T00:00:00.000Z"'==c(new p(-864e13))&&'"+275760-09-13T00:00:00.000Z"'==c(new p(864e13))&&'"-000001-01-01T00:00:00.000Z"'==c(new p(-621987552e5))&&'"1969-12-31T23:59:59.999Z"'==c(new p(-1))}catch(f){u=!1}}i=u}if("json-parse"==e){var d=t.parse;if("function"==typeof d)try{if(0===d("0")&&!d(!1)){a=d(s);var l=5==a.a.length&&1===a.a[0];if(l){try{l=!d('"\t"')}catch(f){}if(l)try{l=1!==d("01")}catch(f){}if(l)try{l=1!==d("1.")}catch(f){}}}}catch(f){l=!1}i=l}}return n[e]=!!i}e||(e=c.Object());t||(t=c.Object());var o=e.Number||c.Number,r=e.String||c.String,s=e.Object||c.Object,p=e.Date||c.Date,u=e.SyntaxError||c.SyntaxError,d=e.TypeError||c.TypeError,l=e.Math||c.Math,f=e.JSON||c.JSON;if("object"==typeof f&&f){t.stringify=f.stringify;t.parse=f.parse}var m,g,h,y=s.prototype,v=y.toString,w=new p(-0xc782b5b800cec);try{w=-109252==w.getUTCFullYear()&&0===w.getUTCMonth()&&1===w.getUTCDate()&&10==w.getUTCHours()&&37==w.getUTCMinutes()&&6==w.getUTCSeconds()&&708==w.getUTCMilliseconds()}catch(L){}if(!n("json")){var b=n("bug-string-char-index");if(!w)var _=l.floor,k=[0,31,59,90,120,151,181,212,243,273,304,334],x=function(e,t){return k[t]+365*(e-1970)+_((e-1969+(t=+(t>1)))/4)-_((e-1901+t)/100)+_((e-1601+t)/400)};(m=y.hasOwnProperty)||(m=function(e){var t,n={};if((n.__proto__=null,n.__proto__={"toString":1},n).toString!=v)m=function(e){var t=this.__proto__,n=e in(this.__proto__=null,this);this.__proto__=t;return n};else{t=n.constructor;m=function(e){var n=(this.constructor||t).prototype;return e in this&&!(e in n&&this[e]===n[e])}}n=null;return m.call(this,e)});g=function(e,t){var n,o,i,r=0;(n=function(){this.valueOf=0}).prototype.valueOf=0;o=new n;for(i in o)m.call(o,i)&&r++;n=o=null;if(r)g=2==r?function(e,t){var n,o={},i="[object Function]"==v.call(e);for(n in e)i&&"prototype"==n||m.call(o,n)||!(o[n]=1)||!m.call(e,n)||t(n)}:function(e,t){var n,o,i="[object Function]"==v.call(e);for(n in e)i&&"prototype"==n||!m.call(e,n)||(o="constructor"===n)||t(n);(o||m.call(e,n="constructor"))&&t(n)};else{o=["valueOf","toString","toLocaleString","propertyIsEnumerable","isPrototypeOf","hasOwnProperty","constructor"];g=function(e,t){var n,i,r="[object Function]"==v.call(e),s=!r&&"function"!=typeof e.constructor&&a[typeof e.hasOwnProperty]&&e.hasOwnProperty||m;for(n in e)r&&"prototype"==n||!s.call(e,n)||t(n);for(i=o.length;n=o[--i];s.call(e,n)&&t(n));}}return g(e,t)};if(!n("json-stringify")){var j={92:"\\\\",34:'\\"',8:"\\b",12:"\\f",10:"\\n",13:"\\r",9:"\\t"},I=function(e,t){return("000000"+(t||0)).slice(-e)},A=function(e){for(var t='"',n=0,o=e.length,i=!b||o>10,r=i&&(b?e.split(""):e);n-1/0&&s<1/0){if(x){l=_(s/864e5);for(p=_(l/365.2425)+1970-1;x(p+1,0)<=l;p++);for(u=_((l-x(p,0))/30.42);x(p,u+1)<=l;u++);l=1+l-x(p,u);f=(s%864e5+864e5)%864e5;y=_(f/36e5)%24;w=_(f/6e4)%60;b=_(f/1e3)%60;k=f%1e3}else{p=s.getUTCFullYear();u=s.getUTCMonth();l=s.getUTCDate();y=s.getUTCHours();w=s.getUTCMinutes();b=s.getUTCSeconds();k=s.getUTCMilliseconds()}s=(p<=0||p>=1e4?(p<0?"-":"+")+I(6,p<0?-p:p):I(4,p))+"-"+I(2,u+1)+"-"+I(2,l)+"T"+I(2,y)+":"+I(2,w)+":"+I(2,b)+"."+I(3,k)+"Z"}else s=null}n&&(s=n.call(t,e,s));if(null===s)return"null";c=v.call(s);if("[object Boolean]"==c)return""+s;if("[object Number]"==c)return s>-1/0&&s<1/0?""+s:"null";if("[object String]"==c)return A(""+s);if("object"==typeof s){for(P=a.length;P--;)if(a[P]===s)throw d();a.push(s);j=[];T=r;r+=i;if("[object Array]"==c){for(E=0,P=s.length;E0)for(o="",n>10&&(n=10);o.length=48&&i<=57||i>=97&&i<=102||i>=65&&i<=70||q()}e+=P("0x"+r.slice(t,S));break;default:q()}}else{if(34==i)break;i=r.charCodeAt(S);t=S;for(;i>=32&&92!=i&&34!=i;)i=r.charCodeAt(++S);e+=r.slice(t,S)}}if(34==r.charCodeAt(S)){S++;return e}q();default:t=S;if(45==i){o=!0;i=r.charCodeAt(++S)}if(i>=48&&i<=57){48==i&&(i=r.charCodeAt(S+1),i>=48&&i<=57)&&q();o=!1;for(;S=48&&i<=57);S++);if(46==r.charCodeAt(S)){n=++S;for(;n=48&&i<=57);n++);n==S&&q();S=n}i=r.charCodeAt(S);if(101==i||69==i){i=r.charCodeAt(++S);43!=i&&45!=i||S++;for(n=S;n=48&&i<=57);n++);n==S&&q();S=n}return+r.slice(t,S)}o&&q();if("true"==r.slice(S,S+4)){S+=4;return!0}if("false"==r.slice(S,S+5)){S+=5;return!1}if("null"==r.slice(S,S+4)){S+=4;return null}q()}}return"$"},N=function(e){var t,n;"$"==e&&q();if("string"==typeof e){if("@"==(b?e.charAt(0):e[0]))return e.slice(1);if("["==e){t=[];for(;;n||(n=!0)){e=M();if("]"==e)break;if(n)if(","==e){e=M();"]"==e&&q()}else q();","==e&&q();t.push(N(e))}return t}if("{"==e){t={};for(;;n||(n=!0)){e=M();if("}"==e)break;if(n)if(","==e){e=M();"}"==e&&q()}else q();","!=e&&"string"==typeof e&&"@"==(b?e.charAt(0):e[0])&&":"==M()||q();t[e.slice(1)]=N(M())}return t}q()}return e},O=function(e,t,n){var o=z(e,t,n);o===h?delete e[t]:e[t]=o},z=function(e,t,n){var o,i=e[t];if("object"==typeof i&&i)if("[object Array]"==v.call(i))for(o=i.length;o--;)O(i,o,n);else g(i,function(e){O(i,e,n)});return n.call(e,t,i)};t.parse=function(e,t){var n,o;S=0;E=""+e;n=N(M());"$"!=M()&&q();S=E=null;return t&&"[object Function]"==v.call(t)?z((o={},o[""]=n,o),"",t):n}}}t.runInContext=i;return t}var r="function"==typeof e&&e.amd,a={"function":!0,"object":!0},s=a[typeof o]&&o&&!o.nodeType&&o,c=a[typeof window]&&window||this,p=s&&a[typeof n]&&n&&!n.nodeType&&"object"==typeof t&&t;!p||p.global!==p&&p.window!==p&&p.self!==p||(c=p);if(s&&!r)i(c,s);else{var u=c.JSON,d=c.JSON3,l=!1,f=i(c,c.JSON3={"noConflict":function(){if(!l){l=!0;c.JSON=u;c.JSON3=d;u=d=null}return f}});c.JSON={"parse":f.parse,"stringify":f.stringify}}r&&e(function(){return f})}).call(this)}).call(this,"undefined"!=typeof window&&window.document&&window.document.implementation?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{})},{}],852:[function(e,t,n){function o(){}function i(e,t,n){function i(){c.parentNode&&c.parentNode.removeChild(c);window[d]=o;p&&clearTimeout(p)}function s(){window[d]&&i()}if("function"==typeof t){n=t;t={}}t||(t={});var c,p,u=t.prefix||"__jp",d=t.name||u+a++,l=t.param||"callback",f=null!=t.timeout?t.timeout:6e4,m=encodeURIComponent,g=document.getElementsByTagName("script")[0]||document.head;f&&(p=setTimeout(function(){i();n&&n(new Error("Timeout"))},f));window[d]=function(e){r("jsonp got",e);i();n&&n(null,e)};e+=(~e.indexOf("?")?"&":"?")+l+"="+m(d);e=e.replace("?&","?");r('jsonp req "%s"',e);c=document.createElement("script");c.src=e;g.parentNode.insertBefore(c,g);return s}var r=e("debug")("jsonp");t.exports=i;var a=0},{"debug":853}],853:[function(e,t,n){arguments[4][40][0].apply(n,arguments)},{"./debug":854,"_process":869,"dup":40}],854:[function(e,t,n){arguments[4][41][0].apply(n,arguments)},{"dup":41,"ms":857}],855:[function(e,t,n){var o=e("is"),i=e("script-onload"),r=e("next-tick");t.exports=function(e,t){if(!e)throw new Error("Cant load nothing...");o.string(e)&&(e={src:e});var n="https:"===document.location.protocol||"chrome-extension:"===document.location.protocol;e.src&&0===e.src.indexOf("//")&&(e.src=n?"https:"+e.src:"http:"+e.src);n&&e.https?e.src=e.https:!n&&e.http&&(e.src=e.http);var a=document.createElement("iframe");a.src=e.src;a.width=e.width||1;a.height=e.height||1;a.style.display="none";o.fn(t)&&i(a,t);r(function(){var e=document.getElementsByTagName("script")[0];e.parentNode.insertBefore(a,e)});return a}},{"is":846,"next-tick":862,"script-onload":871}],856:[function(e,t,n){!function(){var n=e("crypt"),o=e("charenc").utf8,i=e("is-buffer"),r=e("charenc").bin,a=function(e,t){e.constructor==String?e=t&&"binary"===t.encoding?r.stringToBytes(e):o.stringToBytes(e):i(e)?e=Array.prototype.slice.call(e,0):Array.isArray(e)||(e=e.toString());for(var s=n.bytesToWords(e),c=8*e.length,p=1732584193,u=-271733879,d=-1732584194,l=271733878,f=0;f>>24)|4278255360&(s[f]<<24|s[f]>>>8);s[c>>>5]|=128<>>9<<4)]=c;for(var m=a._ff,g=a._gg,h=a._hh,y=a._ii,f=0;f>>0;u=u+w>>>0;d=d+b>>>0;l=l+_>>>0}return n.endian([p,u,d,l])};a._ff=function(e,t,n,o,i,r,a){var s=e+(t&n|~t&o)+(i>>>0)+a;return(s<>>32-r)+t};a._gg=function(e,t,n,o,i,r,a){var s=e+(t&o|n&~o)+(i>>>0)+a;return(s<>>32-r)+t};a._hh=function(e,t,n,o,i,r,a){var s=e+(t^n^o)+(i>>>0)+a;return(s<>>32-r)+t};a._ii=function(e,t,n,o,i,r,a){var s=e+(n^(t|~o))+(i>>>0)+a;return(s<>>32-r)+t};a._blocksize=16;a._digestsize=16;t.exports=function(e,t){if(e===undefined||null===e)throw new Error("Illegal argument "+e);var o=n.wordsToBytes(a(e,t));return t&&t.asBytes?o:t&&t.asString?r.bytesToString(o):n.bytesToHex(o)}}()},{"charenc":819,"crypt":833,"is-buffer":844}],857:[function(e,t,n){function o(e){e=String(e);if(!(e.length>100)){var t=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(e);if(t){var n=parseFloat(t[1]);switch((t[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return n*d;case"days":case"day":case"d":return n*u;case"hours":case"hour":case"hrs":case"hr":case"h":return n*p;case"minutes":case"minute":case"mins":case"min":case"m":return n*c;case"seconds":case"second":case"secs":case"sec":case"s":return n*s;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return n;default:return undefined}}}}function i(e){return e>=u?Math.round(e/u)+"d":e>=p?Math.round(e/p)+"h":e>=c?Math.round(e/c)+"m":e>=s?Math.round(e/s)+"s":e+"ms"}function r(e){return a(e,u,"day")||a(e,p,"hour")||a(e,c,"minute")||a(e,s,"second")||e+" ms"}function a(e,t,n){if(!(e0)return o(e);if("number"===n&&!1===isNaN(e))return t["long"]?r(e):i(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},{}],858:[function(e,t,n){"use strict";function o(e){return e<315576e5?1e3*e:e}var i=e("is"),r=e("@segment/isodate"),a=e("./milliseconds"),s=e("./seconds");t.exports=function(e){return i.date(e)?e:i.number(e)?new Date(o(e)):r.is(e)?r.parse(e):a.is(e)?a.parse(e):s.is(e)?s.parse(e):new Date(e)}},{"./milliseconds":859,"./seconds":860,"@segment/isodate":861,"is":846}],859:[function(e,t,n){"use strict";var o=/\d{13}/;n.is=function(e){return o.test(e)};n.parse=function(e){e=parseInt(e,10);return new Date(e)}},{}],860:[function(e,t,n){"use strict";var o=/\d{10}/;n.is=function(e){return o.test(e)};n.parse=function(e){var t=1e3*parseInt(e,10);return new Date(t)}},{}],861:[function(e,t,n){"use strict";var o=/^(\d{4})(?:-?(\d{2})(?:-?(\d{2}))?)?(?:([ T])(\d{2}):?(\d{2})(?::?(\d{2})(?:[,\.](\d{1,}))?)?(?:(Z)|([+\-])(\d{2})(?::?(\d{2}))?)?)?$/;n.parse=function(e){var t=[1,5,6,7,11,12],n=o.exec(e),i=0;if(!n)return new Date(e);for(var r,a=0;r=t[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])i=(new Date).getTimezoneOffset();else if("Z"!==n[9]&&n[10]){i=60*n[11]+n[12];"+"===n[10]&&(i=0-i)}var s=Date.UTC(n[1],n[2],n[3],n[5],n[6]+i,n[7],n[8]);return new Date(s)};n.is=function(e,t){return(!t||!1!==/^\d{4}-\d{2}-\d{2}/.test(e))&&o.test(e)}},{}],862:[function(e,t,n){arguments[4][485][0].apply(n,arguments)},{"_process":869,"dup":485,"timers":887}],863:[function(e,t,n){function o(e){return function(t,n,o,i){normalize=i&&c(i.normalizer)?i.normalizer:s;n=normalize(n);for(var r,a=!1;!a;)!function(){for(r in t){var e=normalize(r);if(0===n.indexOf(e)){var o=n.substr(e.length);if("."===o.charAt(0)||0===o.length){n=o.substr(1);var i=t[r];if(null==i){a=!0;return}if(!n.length){a=!0;return}t=i;return}}}r=undefined;a=!0}();if(r)return null==t?t:e(t,r,o)}}function i(e,t){if(e.hasOwnProperty(t))return e[t]}function r(e,t){e.hasOwnProperty(t)&&delete e[t];return e}function a(e,t,n){e.hasOwnProperty(t)&&(e[t]=n);return e}function s(e){return e.replace(/[^a-zA-Z0-9\.]+/g,"").toLowerCase()}function c(e){return"function"==typeof e}t.exports=o(i);t.exports.find=t.exports;t.exports.replace=function(e,t,n,i){o(a).call(this,e,t,n,i);return e};t.exports.del=function(e,t,n){o(r).call(this,e,t,null,n);return e}},{}],864:[function(e,t,n){var o=Object.prototype.hasOwnProperty;n.keys=Object.keys||function(e){var t=[];for(var n in e)o.call(e,n)&&t.push(n);return t};n.values=function(e){var t=[];for(var n in e)o.call(e,n)&&t.push(e[n]);return t} ;n.merge=function(e,t){for(var n in t)o.call(t,n)&&(e[n]=t[n]);return e};n.length=function(e){return n.keys(e).length};n.isEmpty=function(e){return 0==n.length(e)}},{}],865:[function(e,t,n){function o(e,t){var n={};for(var o in t)n[o]=t[o];for(var i=0;i1)for(var n=1;n-1&&(e.type="ios");t.indexOf("android")>-1&&(e.type="android");return e};o.prototype.userAgent=o.proxy("context.userAgent");o.prototype.timezone=o.proxy("context.timezone");o.prototype.timestamp=o.field("timestamp");o.prototype.channel=o.field("channel");o.prototype.ip=o.proxy("context.ip");o.prototype.userId=o.field("userId");r(o.prototype);t.exports=o},{"./address":872,"./is-enabled":879,"./utils":883,"@segment/isodate-traverse":797,"new-date":858,"obj-case":863}],876:[function(e,t,n){"use strict";function o(e,t){s.call(this,e,t)}var i=e("./utils").inherit,r=e("is-email"),a=e("new-date"),s=e("./facade");i(o,s);o.prototype.action=function(){return"group"};o.prototype.type=o.prototype.action;o.prototype.groupId=s.field("groupId");o.prototype.created=function(){var e=this.proxy("traits.createdAt")||this.proxy("traits.created")||this.proxy("properties.createdAt")||this.proxy("properties.created");if(e)return a(e)};o.prototype.email=function(){var e=this.proxy("traits.email");if(e)return e;var t=this.groupId();return r(t)?t:void 0};o.prototype.traits=function(e){var t=this.properties(),n=this.groupId();e=e||{};n&&(t.id=n);for(var o in e){var i=null==this[o]?this.proxy("traits."+o):this[o]();if(null!=i){t[e[o]]=i;delete t[o]}}return t};o.prototype.name=s.proxy("traits.name");o.prototype.industry=s.proxy("traits.industry");o.prototype.employees=s.proxy("traits.employees");o.prototype.properties=function(){return this.field("traits")||this.field("properties")||{}};t.exports=o},{"./facade":875,"./utils":883,"is-email":845,"new-date":858}],877:[function(e,t,n){"use strict";function o(e,t){i.call(this,e,t)}var i=e("./facade"),r=e("obj-case"),a=e("./utils").inherit,s=e("is-email"),c=e("new-date"),p=e("trim"),u=e("./utils").type;a(o,i);o.prototype.action=function(){return"identify"};o.prototype.type=o.prototype.action;o.prototype.traits=function(e){var t=this.field("traits")||{},n=this.userId();e=e||{};n&&(t.id=n);for(var o in e){var i=null==this[o]?this.proxy("traits."+o):this[o]();if(null!=i){t[e[o]]=i;o!==e[o]&&delete t[o]}}return t};o.prototype.email=function(){var e=this.proxy("traits.email");if(e)return e;var t=this.userId();return s(t)?t:void 0};o.prototype.created=function(){var e=this.proxy("traits.created")||this.proxy("traits.createdAt");if(e)return c(e)};o.prototype.companyCreated=function(){var e=this.proxy("traits.company.created")||this.proxy("traits.company.createdAt");if(e)return c(e)};o.prototype.companyName=function(){return this.proxy("traits.company.name")};o.prototype.name=function(){var e=this.proxy("traits.name");if("string"==typeof e)return p(e);var t=this.firstName(),n=this.lastName();return t&&n?p(t+" "+n):void 0};o.prototype.firstName=function(){var e=this.proxy("traits.firstName");if("string"==typeof e)return p(e);var t=this.proxy("traits.name");return"string"==typeof t?p(t).split(" ")[0]:void 0};o.prototype.lastName=function(){var e=this.proxy("traits.lastName");if("string"==typeof e)return p(e);var t=this.proxy("traits.name");if("string"==typeof t){var n=p(t).indexOf(" ");if(-1!==n)return p(t.substr(n+1))}};o.prototype.uid=function(){return this.userId()||this.username()||this.email()};o.prototype.description=function(){return this.proxy("traits.description")||this.proxy("traits.background")};o.prototype.age=function(){var e=this.birthday(),t=r(this.traits(),"age");if(null!=t)return t;if("date"===u(e)){return(new Date).getFullYear()-e.getFullYear()}};o.prototype.avatar=function(){var e=this.traits();return r(e,"avatar")||r(e,"photoUrl")||r(e,"avatarUrl")};o.prototype.position=function(){var e=this.traits();return r(e,"position")||r(e,"jobTitle")};o.prototype.username=i.proxy("traits.username");o.prototype.website=i.one("traits.website");o.prototype.websites=i.multi("traits.website");o.prototype.phone=i.one("traits.phone");o.prototype.phones=i.multi("traits.phone");o.prototype.address=i.proxy("traits.address");o.prototype.gender=i.proxy("traits.gender");o.prototype.birthday=i.proxy("traits.birthday");t.exports=o},{"./facade":875,"./utils":883,"is-email":845,"new-date":858,"obj-case":863,"trim":895}],878:[function(e,t,n){"use strict";var o=e("./facade");o.Alias=e("./alias");o.Group=e("./group");o.Identify=e("./identify");o.Track=e("./track");o.Page=e("./page");o.Screen=e("./screen");o.Delete=e("./delete");t.exports=o},{"./alias":873,"./delete":874,"./facade":875,"./group":876,"./identify":877,"./page":880,"./screen":881,"./track":882}],879:[function(e,t,n){"use strict";var o={Salesforce:!0};t.exports=function(e){return!o[e]}},{}],880:[function(e,t,n){"use strict";function o(e,t){r.call(this,e,t)}var i=e("./utils").inherit,r=e("./facade"),a=e("./track"),s=e("is-email");i(o,r);o.prototype.action=function(){return"page"};o.prototype.type=o.prototype.action;o.prototype.category=r.field("category");o.prototype.name=r.field("name");o.prototype.title=r.proxy("properties.title");o.prototype.path=r.proxy("properties.path");o.prototype.url=r.proxy("properties.url");o.prototype.referrer=function(){return this.proxy("context.referrer.url")||this.proxy("context.page.referrer")||this.proxy("properties.referrer")};o.prototype.properties=function(e){var t=this.field("properties")||{},n=this.category(),o=this.name();e=e||{};n&&(t.category=n);o&&(t.name=o);for(var i in e){var r=null==this[i]?this.proxy("properties."+i):this[i]();if(null!=r){t[e[i]]=r;i!==e[i]&&delete t[i]}}return t};o.prototype.email=function(){var e=this.proxy("context.traits.email")||this.proxy("properties.email");if(e)return e;var t=this.userId();return s(t)?t:void 0};o.prototype.fullName=function(){var e=this.category(),t=this.name();return t&&e?e+" "+t:t};o.prototype.event=function(e){return e?"Viewed "+e+" Page":"Loaded a Page"};o.prototype.track=function(e){var t=this.json();t.event=this.event(e);t.timestamp=this.timestamp();t.properties=this.properties();return new a(t,this.opts)};t.exports=o},{"./facade":875,"./track":882,"./utils":883,"is-email":845}],881:[function(e,t,n){"use strict";function o(e,t){r.call(this,e,t)}var i=e("./utils").inherit,r=e("./page"),a=e("./track");i(o,r);o.prototype.action=function(){return"screen"};o.prototype.type=o.prototype.action;o.prototype.event=function(e){return e?"Viewed "+e+" Screen":"Loaded a Screen"};o.prototype.track=function(e){var t=this.json();t.event=this.event(e);t.timestamp=this.timestamp();t.properties=this.properties();return new a(t,this.opts)};t.exports=o},{"./page":880,"./track":882,"./utils":883}],882:[function(e,t,n){"use strict";function o(e,t){s.call(this,e,t)}function i(e){if(e){if("number"==typeof e)return e;if("string"==typeof e){e=e.replace(/\$/g,"");e=parseFloat(e);return isNaN(e)?void 0:e}}}var r=e("./utils").inherit,a=e("./utils").type,s=e("./facade"),c=e("./identify"),p=e("is-email"),u=e("obj-case");r(o,s);o.prototype.action=function(){return"track"};o.prototype.type=o.prototype.action;o.prototype.event=s.field("event");o.prototype.value=s.proxy("properties.value");o.prototype.category=s.proxy("properties.category");o.prototype.id=s.proxy("properties.id");o.prototype.productId=function(){return this.proxy("properties.product_id")||this.proxy("properties.productId")};o.prototype.promotionId=function(){return this.proxy("properties.promotion_id")||this.proxy("properties.promotionId")};o.prototype.cartId=function(){return this.proxy("properties.cart_id")||this.proxy("properties.cartId")};o.prototype.checkoutId=function(){return this.proxy("properties.checkout_id")||this.proxy("properties.checkoutId")};o.prototype.paymentId=function(){return this.proxy("properties.payment_id")||this.proxy("properties.paymentId")};o.prototype.couponId=function(){return this.proxy("properties.coupon_id")||this.proxy("properties.couponId")};o.prototype.wishlistId=function(){return this.proxy("properties.wishlist_id")||this.proxy("properties.wishlistId")};o.prototype.reviewId=function(){return this.proxy("properties.review_id")||this.proxy("properties.reviewId")};o.prototype.orderId=function(){return this.proxy("properties.id")||this.proxy("properties.order_id")||this.proxy("properties.orderId")};o.prototype.sku=s.proxy("properties.sku");o.prototype.tax=s.proxy("properties.tax");o.prototype.name=s.proxy("properties.name");o.prototype.price=s.proxy("properties.price");o.prototype.total=s.proxy("properties.total");o.prototype.repeat=s.proxy("properties.repeat");o.prototype.coupon=s.proxy("properties.coupon");o.prototype.shipping=s.proxy("properties.shipping");o.prototype.discount=s.proxy("properties.discount");o.prototype.shippingMethod=function(){return this.proxy("properties.shipping_method")||this.proxy("properties.shippingMethod")};o.prototype.paymentMethod=function(){return this.proxy("properties.payment_method")||this.proxy("properties.paymentMethod")};o.prototype.description=s.proxy("properties.description");o.prototype.plan=s.proxy("properties.plan");o.prototype.subtotal=function(){var e=u(this.properties(),"subtotal"),t=this.total()||this.revenue();if(e)return e;if(!t)return 0;if(this.total()){var n=this.tax();n&&(t-=n);n=this.shipping();n&&(t-=n);n=this.discount();n&&(t+=n)}return t};o.prototype.products=function(){var e=this.properties(),t=u(e,"products");return"array"===a(t)?t:[]};o.prototype.quantity=function(){return(this.obj.properties||{}).quantity||1};o.prototype.currency=function(){return(this.obj.properties||{}).currency||"USD"};o.prototype.referrer=function(){return this.proxy("context.referrer.url")||this.proxy("context.page.referrer")||this.proxy("properties.referrer")};o.prototype.query=s.proxy("options.query");o.prototype.properties=function(e){var t=this.field("properties")||{};e=e||{};for(var n in e){var o=null==this[n]?this.proxy("properties."+n):this[n]();if(null!=o){t[e[n]]=o;delete t[n]}}return t};o.prototype.username=function(){return this.proxy("traits.username")||this.proxy("properties.username")||this.userId()||this.sessionId()};o.prototype.email=function(){var e=this.proxy("traits.email")||this.proxy("properties.email")||this.proxy("options.traits.email");if(e)return e;var t=this.userId();return p(t)?t:void 0};o.prototype.revenue=function(){var e=this.proxy("properties.revenue"),t=this.event(),n=/^[ _]?completed[ _]?order[ _]?|^[ _]?order[ _]?completed[ _]?$/i;!e&&t&&t.match(n)&&(e=this.proxy("properties.total"));return i(e)};o.prototype.cents=function(){var e=this.revenue();return"number"!=typeof e?this.value()||0:100*e};o.prototype.identify=function(){var e=this.json();e.traits=this.traits();return new c(e,this.opts)};t.exports=o},{"./facade":875,"./identify":877,"./utils":883,"is-email":845,"obj-case":863}],883:[function(e,t,n){"use strict";n.inherit=e("inherits");n.clone=e("@ndhoule/clone");n.type=e("type-component")},{"@ndhoule/clone":7,"inherits":843,"type-component":896}],884:[function(e,t,n){t.exports=function(e,t){t||(t={});return e.toLowerCase().replace(t.replace||/[^a-z0-9]/g," ").replace(/^ +| +$/g,"").replace(/ +/g,t.separator||"-")}},{}],885:[function(t,n,o){!function(t){if("object"==typeof o)n.exports=t();else if("function"==typeof e&&e.amd)e(t);else{var i;try{i=window}catch(r){i=self}i.SparkMD5=t()}}(function(e){"use strict";function t(e,t,n,o,i,r){t=w(w(t,e),w(o,r));return w(t<>>32-i,n)}function n(e,n,o,i,r,a,s){return t(n&o|~n&i,e,n,r,a,s)}function o(e,n,o,i,r,a,s){return t(n&i|o&~i,e,n,r,a,s)}function i(e,n,o,i,r,a,s){return t(n^o^i,e,n,r,a,s)}function r(e,n,o,i,r,a,s){return t(o^(n|~i),e,n,r,a,s)}function a(e,t){var a=e[0],s=e[1],c=e[2],p=e[3];a=n(a,s,c,p,t[0],7,-680876936);p=n(p,a,s,c,t[1],12,-389564586);c=n(c,p,a,s,t[2],17,606105819);s=n(s,c,p,a,t[3],22,-1044525330);a=n(a,s,c,p,t[4],7,-176418897);p=n(p,a,s,c,t[5],12,1200080426);c=n(c,p,a,s,t[6],17,-1473231341);s=n(s,c,p,a,t[7],22,-45705983);a=n(a,s,c,p,t[8],7,1770035416);p=n(p,a,s,c,t[9],12,-1958414417);c=n(c,p,a,s,t[10],17,-42063);s=n(s,c,p,a,t[11],22,-1990404162);a=n(a,s,c,p,t[12],7,1804603682);p=n(p,a,s,c,t[13],12,-40341101);c=n(c,p,a,s,t[14],17,-1502002290);s=n(s,c,p,a,t[15],22,1236535329);a=o(a,s,c,p,t[1],5,-165796510);p=o(p,a,s,c,t[6],9,-1069501632);c=o(c,p,a,s,t[11],14,643717713);s=o(s,c,p,a,t[0],20,-373897302);a=o(a,s,c,p,t[5],5,-701558691);p=o(p,a,s,c,t[10],9,38016083);c=o(c,p,a,s,t[15],14,-660478335);s=o(s,c,p,a,t[4],20,-405537848);a=o(a,s,c,p,t[9],5,568446438);p=o(p,a,s,c,t[14],9,-1019803690);c=o(c,p,a,s,t[3],14,-187363961);s=o(s,c,p,a,t[8],20,1163531501);a=o(a,s,c,p,t[13],5,-1444681467);p=o(p,a,s,c,t[2],9,-51403784);c=o(c,p,a,s,t[7],14,1735328473);s=o(s,c,p,a,t[12],20,-1926607734);a=i(a,s,c,p,t[5],4,-378558);p=i(p,a,s,c,t[8],11,-2022574463);c=i(c,p,a,s,t[11],16,1839030562);s=i(s,c,p,a,t[14],23,-35309556);a=i(a,s,c,p,t[1],4,-1530992060);p=i(p,a,s,c,t[4],11,1272893353);c=i(c,p,a,s,t[7],16,-155497632);s=i(s,c,p,a,t[10],23,-1094730640);a=i(a,s,c,p,t[13],4,681279174);p=i(p,a,s,c,t[0],11,-358537222);c=i(c,p,a,s,t[3],16,-722521979);s=i(s,c,p,a,t[6],23,76029189);a=i(a,s,c,p,t[9],4,-640364487);p=i(p,a,s,c,t[12],11,-421815835);c=i(c,p,a,s,t[15],16,530742520);s=i(s,c,p,a,t[2],23,-995338651);a=r(a,s,c,p,t[0],6,-198630844);p=r(p,a,s,c,t[7],10,1126891415);c=r(c,p,a,s,t[14],15,-1416354905);s=r(s,c,p,a,t[5],21,-57434055);a=r(a,s,c,p,t[12],6,1700485571);p=r(p,a,s,c,t[3],10,-1894986606);c=r(c,p,a,s,t[10],15,-1051523);s=r(s,c,p,a,t[1],21,-2054922799);a=r(a,s,c,p,t[8],6,1873313359);p=r(p,a,s,c,t[15],10,-30611744);c=r(c,p,a,s,t[6],15,-1560198380);s=r(s,c,p,a,t[13],21,1309151649);a=r(a,s,c,p,t[4],6,-145523070);p=r(p,a,s,c,t[11],10,-1120210379);c=r(c,p,a,s,t[2],15,718787259);s=r(s,c,p,a,t[9],21,-343485551);e[0]=w(a,e[0]);e[1]=w(s,e[1]);e[2]=w(c,e[2]);e[3]=w(p,e[3])}function s(e){var t,n=[];for(t=0;t<64;t+=4)n[t>>2]=e.charCodeAt(t)+(e.charCodeAt(t+1)<<8)+(e.charCodeAt(t+2)<<16)+(e.charCodeAt(t+3)<<24);return n}function c(e){var t,n=[];for(t=0;t<64;t+=4)n[t>>2]=e[t]+(e[t+1]<<8)+(e[t+2]<<16)+(e[t+3]<<24);return n}function p(e){var t,n,o,i,r,c,p=e.length,u=[1732584193,-271733879,-1732584194,271733878];for(t=64;t<=p;t+=64)a(u,s(e.substring(t-64,t)));e=e.substring(t-64);n=e.length;o=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(t=0;t>2]|=e.charCodeAt(t)<<(t%4<<3);o[t>>2]|=128<<(t%4<<3);if(t>55){a(u,o);for(t=0;t<16;t+=1)o[t]=0}i=8*p;i=i.toString(16).match(/(.*?)(.{0,8})$/);r=parseInt(i[2],16);c=parseInt(i[1],16)||0;o[14]=r;o[15]=c;a(u,o);return u}function u(e){var t,n,o,i,r,s,p=e.length,u=[1732584193,-271733879,-1732584194,271733878];for(t=64;t<=p;t+=64)a(u,c(e.subarray(t-64,t)));e=t-64>2]|=e[t]<<(t%4<<3);o[t>>2]|=128<<(t%4<<3);if(t>55){a(u,o);for(t=0;t<16;t+=1)o[t]=0}i=8*p;i=i.toString(16).match(/(.*?)(.{0,8})$/);r=parseInt(i[2],16);s=parseInt(i[1],16)||0;o[14]=r;o[15]=s;a(u,o);return u}function d(e){var t,n="";for(t=0;t<4;t+=1)n+=b[e>>8*t+4&15]+b[e>>8*t&15];return n}function l(e){var t;for(t=0;t>16)+(t>>16)+(n>>16)<<16|65535&n});"undefined"==typeof ArrayBuffer||ArrayBuffer.prototype.slice||!function(){function t(e,t){e=0|e||0;return e<0?Math.max(e+t,0):Math.min(e,t)}ArrayBuffer.prototype.slice=function(n,o){var i,r,a,s,c=this.byteLength,p=t(n,c),u=c;o!==e&&(u=t(o,c));if(p>u)return new ArrayBuffer(0);i=u-p;r=new ArrayBuffer(i);a=new Uint8Array(r);s=new Uint8Array(this,p,i);a.set(s);return r}}();v.prototype.append=function(e){this.appendBinary(f(e));return this};v.prototype.appendBinary=function(e){this._buff+=e;this._length+=e.length;var t,n=this._buff.length;for(t=64;t<=n;t+=64)a(this._hash,s(this._buff.substring(t-64,t)));this._buff=this._buff.substring(t-64);return this};v.prototype.end=function(e){var t,n,o=this._buff,i=o.length,r=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(t=0;t>2]|=o.charCodeAt(t)<<(t%4<<3);this._finish(r,i);n=l(this._hash);e&&(n=y(n));this.reset();return n};v.prototype.reset=function(){this._buff="";this._length=0;this._hash=[1732584193,-271733879,-1732584194,271733878];return this};v.prototype.getState=function(){return{buff:this._buff,length:this._length,hash:this._hash}};v.prototype.setState=function(e){this._buff=e.buff;this._length=e.length;this._hash=e.hash;return this};v.prototype.destroy=function(){delete this._hash;delete this._buff;delete this._length};v.prototype._finish=function(e,t){var n,o,i,r=t;e[r>>2]|=128<<(r%4<<3);if(r>55){a(this._hash,e);for(r=0;r<16;r+=1)e[r]=0}n=8*this._length;n=n.toString(16).match(/(.*?)(.{0,8})$/);o=parseInt(n[2],16);i=parseInt(n[1],16)||0;e[14]=o;e[15]=i;a(this._hash,e)};v.hash=function(e,t){return v.hashBinary(f(e),t)};v.hashBinary=function(e,t){var n=p(e),o=l(n);return t?y(o):o};v.ArrayBuffer=function(){this.reset()};v.ArrayBuffer.prototype.append=function(e){var t,n=h(this._buff.buffer,e,!0),o=n.length;this._length+=e.byteLength;for(t=64;t<=o;t+=64)a(this._hash,c(n.subarray(t-64,t)));this._buff=t-64>2]|=o[t]<<(t%4<<3);this._finish(r,i);n=l(this._hash);e&&(n=y(n));this.reset();return n};v.ArrayBuffer.prototype.reset=function(){this._buff=new Uint8Array(0);this._length=0;this._hash=[1732584193,-271733879,-1732584194,271733878];return this};v.ArrayBuffer.prototype.getState=function(){var e=v.prototype.getState.call(this);e.buff=g(e.buff);return e};v.ArrayBuffer.prototype.setState=function(e){e.buff=m(e.buff,!0);return v.prototype.setState.call(this,e)};v.ArrayBuffer.prototype.destroy=v.prototype.destroy;v.ArrayBuffer.prototype._finish=v.prototype._finish;v.ArrayBuffer.hash=function(e,t){var n=u(new Uint8Array(e)),o=l(n);return t?y(o):o};return v})},{}],886:[function(e,t,n){function o(e,t){var n,o=0;return function(){var i=(new Date).getTime();if(i-o>=t){n=e.apply(this,arguments);o=i}return n}}t.exports=o},{}],887:[function(e,t,n){(function(t,o){function i(e,t){this._id=e;this._clearFn=t}var r=e("process/browser.js").nextTick,a=Function.prototype.apply,s=Array.prototype.slice,c={},p=0;n.setTimeout=function(){return new i(a.call(setTimeout,window,arguments),clearTimeout)};n.setInterval=function(){return new i(a.call(setInterval,window,arguments),clearInterval)};n.clearTimeout=n.clearInterval=function(e){e.close()};i.prototype.unref=i.prototype.ref=function(){};i.prototype.close=function(){this._clearFn.call(window,this._id)};n.enroll=function(e,t){clearTimeout(e._idleTimeoutId);e._idleTimeout=t};n.unenroll=function(e){clearTimeout(e._idleTimeoutId);e._idleTimeout=-1};n._unrefActive=n.active=function(e){clearTimeout(e._idleTimeoutId);var t=e._idleTimeout;t>=0&&(e._idleTimeoutId=setTimeout(function(){e._onTimeout&&e._onTimeout()},t))};n.setImmediate="function"==typeof t?t:function(e){var t=p++,o=!(arguments.length<2)&&s.call(arguments,1);c[t]=!0;r(function(){if(c[t]){o?e.apply(null,o):e.call(null);n.clearImmediate(t)}});return t};n.clearImmediate="function"==typeof o?o:function(e){delete c[e]}}).call(this,e("timers").setImmediate,e("timers").clearImmediate)},{"process/browser.js":869,"timers":887}],888:[function(e,t,n){function o(e){return i(e).replace(/\s(\w)/g,function(e,t){return t.toUpperCase()})}var i=e("to-space-case");t.exports=o},{"to-space-case":892}],889:[function(e,t,n){function o(e){switch({}.toString.call(e)){case"[object Object]":return s(e);case"[object Function]":return e;case"[object String]":return a(e);case"[object RegExp]":return r(e);default:return i(e)}}function i(e){return function(t){return e===t}}function r(e){return function(t){return e.test(t)}}function a(e){return/^ *\W+/.test(e)?new Function("_","return _ "+e):new Function("_","return "+c(e))}function s(e){var t={};for(var n in e)t[n]="string"==typeof e[n]?i(e[n]):o(e[n]);return function(e){if("object"!=typeof e)return!1;for(var n in t){if(!(n in e))return!1;if(!t[n](e[n]))return!1}return!0}}function c(e){var t=u(e);if(!t.length)return"_."+e;var n,o,i;for(o=0;o127&&o<2048){t+=String.fromCharCode(o>>6|192);t+=String.fromCharCode(63&o|128)}else{t+=String.fromCharCode(o>>12|224);t+=String.fromCharCode(o>>6&63|128);t+=String.fromCharCode(63&o|128)}}return t}t.exports=o},{}],901:[function(e,t,n){(function(e){var n,o=e.crypto||e.msCrypto;if(o&&o.getRandomValues){var i=new Uint8Array(16);n=function(){o.getRandomValues(i);return i}}if(!n){var r=new Array(16);n=function(){for(var e,t=0;t<16;t++){0==(3&t)&&(e=4294967296*Math.random());r[t]=e>>>((3&t)<<3)&255}return r}}t.exports=n}).call(this,"undefined"!=typeof window&&window.document&&window.document.implementation?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{})},{}],902:[function(e,t,n){function o(e,t,n){var o=t&&n||0,i=0;t=t||[];e.toLowerCase().replace(/[0-9a-f]{2}/g,function(e){i<16&&(t[o+i++]=p[e])});for(;i<16;)t[o+i++]=0;return t}function i(e,t){var n=t||0,o=c;return o[e[n++]]+o[e[n++]]+o[e[n++]]+o[e[n++]]+"-"+o[e[n++]]+o[e[n++]]+"-"+o[e[n++]]+o[e[n++]]+"-"+o[e[n++]]+o[e[n++]]+"-"+o[e[n++]]+o[e[n++]]+o[e[n++]]+o[e[n++]]+o[e[n++]]+o[e[n++]]}function r(e,t,n){var o=t&&n||0,r=t||[];e=e||{};var a=e.clockseq!==undefined?e.clockseq:f,s=e.msecs!==undefined?e.msecs:(new Date).getTime(),c=e.nsecs!==undefined?e.nsecs:g+1,p=s-m+(c-g)/1e4;p<0&&e.clockseq===undefined&&(a=a+1&16383);(p<0||s>m)&&e.nsecs===undefined&&(c=0);if(c>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");m=s;g=c;f=a;s+=122192928e5;var u=(1e4*(268435455&s)+c)%4294967296;r[o++]=u>>>24&255;r[o++]=u>>>16&255;r[o++]=u>>>8&255;r[o++]=255&u;var d=s/4294967296*1e4&268435455;r[o++]=d>>>8&255;r[o++]=255&d;r[o++]=d>>>24&15|16;r[o++]=d>>>16&255;r[o++]=a>>>8|128;r[o++]=255&a;for(var h=e.node||l,y=0;y<6;y++)r[o+y]=h[y];return t||i(r)}function a(e,t,n){var o=t&&n||0;if("string"==typeof e){t="binary"==e?new Array(16):null;e=null}e=e||{} ;var r=e.random||(e.rng||s)();r[6]=15&r[6]|64;r[8]=63&r[8]|128;if(t)for(var a=0;a<16;a++)t[o+a]=r[a];return t||i(r)}for(var s=e("./rng"),c=[],p={},u=0;u<256;u++){c[u]=(u+256).toString(16).substr(1);p[c[u]]=u}var d=s(),l=[1|d[0],d[1],d[2],d[3],d[4],d[5]],f=16383&(d[6]<<8|d[7]),m=0,g=0,h=a;h.v1=r;h.v4=a;h.parse=o;h.unparse=i;t.exports=h},{"./rng":901}],903:[function(e,t,n){function o(e,t){var n=arguments.length;return 0==n?a():2<=n?i(e,t):1==n?null==e?s.clear():"string"==typeof e?r(e):"object"==typeof e?p(e,i):void 0:void 0}function i(e,t){return null==t?s.removeItem(e):s.setItem(e,JSON.stringify(t))}function r(e){return c(s.getItem(e))}function a(){for(var e,t=s.length,n={};0<=--t;){e=s.key(t);n[e]=r(e)}return n}var s,c=e("unserialize"),p=e("each");try{s=window.localStorage}catch(u){s=null}t.exports=o;o.supported=!!s},{"each":823,"unserialize":904}],904:[function(e,t,n){t.exports=function(e){try{return JSON.parse(e)}catch(t){return e||undefined}}},{}]},{},[3])}(window.define);